1// @tiptap/[email protected] downloaded from https://ga.jspm.io/npm:@tiptap/[email protected]/dist/index.js 2 3import{textInputRule as s,Extension as o}from"@tiptap/core";const emDash=o=>s({find:/--$/,replace:o!==null&&o!==void 0?o:"â"});const ellipsis=o=>s({find:/\.\.\.$/,replace:o!==null&&o!==void 0?o:"â¦"});const openDoubleQuote=o=>s({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:o!==null&&o!==void 0?o:"â"});const closeDoubleQuote=o=>s({find:/"$/,replace:o!==null&&o!==void 0?o:"â"});const openSingleQuote=o=>s({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:o!==null&&o!==void 0?o:"â"});const closeSingleQuote=o=>s({find:/'$/,replace:o!==null&&o!==void 0?o:"â"});const leftArrow=o=>s({find:/<-$/,replace:o!==null&&o!==void 0?o:"â"});const rightArrow=o=>s({find:/->$/,replace:o!==null&&o!==void 0?o:"â"});const copyright=o=>s({find:/\(c\)$/,replace:o!==null&&o!==void 0?o:"©"});const trademark=o=>s({find:/\(tm\)$/,replace:o!==null&&o!==void 0?o:"â¢"});const servicemark=o=>s({find:/\(sm\)$/,replace:o!==null&&o!==void 0?o:"â "});const registeredTrademark=o=>s({find:/\(r\)$/,replace:o!==null&&o!==void 0?o:"®"});const oneHalf=o=>s({find:/(?:^|\s)(1\/2)\s$/,replace:o!==null&&o!==void 0?o:"½"});const plusMinus=o=>s({find:/\+\/-$/,replace:o!==null&&o!==void 0?o:"±"});const notEqual=o=>s({find:/!=$/,replace:o!==null&&o!==void 0?o:"â "});const laquo=o=>s({find:/<<$/,replace:o!==null&&o!==void 0?o:"«"});const raquo=o=>s({find:/>>$/,replace:o!==null&&o!==void 0?o:"»"});const multiplication=o=>s({find:/\d+\s?([*x])\s?\d+$/,replace:o!==null&&o!==void 0?o:"Ã"});const superscriptTwo=o=>s({find:/\^2$/,replace:o!==null&&o!==void 0?o:"²"});const superscriptThree=o=>s({find:/\^3$/,replace:o!==null&&o!==void 0?o:"³"});const oneQuarter=o=>s({find:/(?:^|\s)(1\/4)\s$/,replace:o!==null&&o!==void 0?o:"¼"});const threeQuarters=o=>s({find:/(?:^|\s)(3\/4)\s$/,replace:o!==null&&o!==void 0?o:"¾"});const i=o.create({name:"typography",addOptions(){return{closeDoubleQuote:"â",closeSingleQuote:"â",copyright:"©",ellipsis:"â¦",emDash:"â",laquo:"«",leftArrow:"â",multiplication:"Ã",notEqual:"â ",oneHalf:"½",oneQuarter:"¼",openDoubleQuote:"â",openSingleQuote:"â",plusMinus:"±",raquo:"»",registeredTrademark:"®",rightArrow:"â",servicemark:"â ",superscriptThree:"³",superscriptTwo:"²",threeQuarters:"¾",trademark:"â¢"}},addInputRules(){const s=[];this.options.emDash!==false&&s.push(emDash(this.options.emDash));this.options.ellipsis!==false&&s.push(ellipsis(this.options.ellipsis));this.options.openDoubleQuote!==false&&s.push(openDoubleQuote(this.options.openDoubleQuote));this.options.closeDoubleQuote!==false&&s.push(closeDoubleQuote(this.options.closeDoubleQuote));this.options.openSingleQuote!==false&&s.push(openSingleQuote(this.options.openSingleQuote));this.options.closeSingleQuote!==false&&s.push(closeSingleQuote(this.options.closeSingleQuote));this.options.leftArrow!==false&&s.push(leftArrow(this.options.leftArrow));this.options.rightArrow!==false&&s.push(rightArrow(this.options.rightArrow));this.options.copyright!==false&&s.push(copyright(this.options.copyright));this.options.trademark!==false&&s.push(trademark(this.options.trademark));this.options.servicemark!==false&&s.push(servicemark(this.options.servicemark));this.options.registeredTrademark!==false&&s.push(registeredTrademark(this.options.registeredTrademark));this.options.oneHalf!==false&&s.push(oneHalf(this.options.oneHalf));this.options.plusMinus!==false&&s.push(plusMinus(this.options.plusMinus));this.options.notEqual!==false&&s.push(notEqual(this.options.notEqual));this.options.laquo!==false&&s.push(laquo(this.options.laquo));this.options.raquo!==false&&s.push(raquo(this.options.raquo));this.options.multiplication!==false&&s.push(multiplication(this.options.multiplication));this.options.superscriptTwo!==false&&s.push(superscriptTwo(this.options.superscriptTwo));this.options.superscriptThree!==false&&s.push(superscriptThree(this.options.superscriptThree));this.options.oneQuarter!==false&&s.push(oneQuarter(this.options.oneQuarter));this.options.threeQuarters!==false&&s.push(threeQuarters(this.options.threeQuarters));return s}});
3export{i as Typography,closeDoubleQuote,closeSingleQuote,copyright,i as default,ellipsis,emDash,laquo,leftArrow,multiplication,notEqual,oneHalf,oneQuarter,openDoubleQuote,openSingleQuote,plusMinus,raquo,registeredTrademark,rightArrow,servicemark,superscriptThree,superscriptTwo,threeQuarters,trademark}; 4
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.