@editora/plugins 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CodePlugin.native-Bwf25lLX.js +460 -0
- package/dist/CodePlugin.native-Cpp4u3Jl.mjs +648 -0
- package/dist/a11y-checker.cjs.js +16 -16
- package/dist/a11y-checker.esm.js +79 -75
- package/dist/anchor.cjs.js +9 -9
- package/dist/anchor.esm.js +61 -60
- package/dist/anchoredPopover-Bg-ey7Yo.js +1 -0
- package/dist/anchoredPopover-D_JbjvdA.mjs +111 -0
- package/dist/approval-workflow.cjs.js +5 -5
- package/dist/approval-workflow.esm.js +105 -104
- package/dist/background-color.cjs.js +1 -1
- package/dist/background-color.esm.js +1 -1
- package/dist/blocks-library.cjs.js +6 -6
- package/dist/blocks-library.esm.js +226 -202
- package/dist/capitalization.cjs.js +1 -1
- package/dist/capitalization.esm.js +9 -4
- package/dist/checklist.cjs.js +1 -1
- package/dist/checklist.esm.js +154 -116
- package/dist/citations.cjs.js +43 -18
- package/dist/citations.esm.js +465 -446
- package/dist/clear-formatting.cjs.js +1 -1
- package/dist/clear-formatting.esm.js +21 -20
- package/dist/code-sample.cjs.js +85 -66
- package/dist/code-sample.esm.js +301 -190
- package/dist/code.cjs.js +1 -669
- package/dist/code.esm.js +2 -4560
- package/dist/collaboration.cjs.js +68 -0
- package/dist/collaboration.esm.js +7428 -0
- package/dist/comments.cjs.js +11 -11
- package/dist/comments.esm.js +284 -237
- package/dist/conditional-content.cjs.js +67 -60
- package/dist/conditional-content.esm.js +270 -220
- package/dist/data-binding.cjs.js +3 -3
- package/dist/data-binding.esm.js +28 -27
- package/dist/dialogHelpers-5d5BuOCW.mjs +39 -0
- package/dist/dialogHelpers-zU6zpMIA.js +12 -0
- package/dist/document-manager.cjs.js +1 -1
- package/dist/document-manager.esm.js +1 -1
- package/dist/{documentManager-Jf0RbSks.js → documentManager-BDz6tovy.js} +2 -2
- package/dist/{documentManager-CTqRftU8.mjs → documentManager-yjRBab4v.mjs} +3 -3
- package/dist/embed-iframe.cjs.js +37 -17
- package/dist/embed-iframe.esm.js +188 -143
- package/dist/emojis.cjs.js +13 -10
- package/dist/emojis.esm.js +288 -76
- package/dist/enterprise.cjs.js +1 -1
- package/dist/enterprise.esm.js +9 -7
- package/dist/escapeHtml-D2Zh82pD.js +1 -0
- package/dist/escapeHtml-DyksyvcZ.mjs +6 -0
- package/dist/font-family.cjs.js +1 -1
- package/dist/font-family.esm.js +48 -41
- package/dist/font-size.cjs.js +1 -1
- package/dist/font-size.esm.js +67 -60
- package/dist/format-painter.cjs.js +1 -1
- package/dist/format-painter.esm.js +2 -1
- package/dist/history.cjs.js +1 -1
- package/dist/history.esm.js +40 -36
- package/dist/historyHelpers-BEKwNOtA.mjs +14 -0
- package/dist/historyHelpers-Cu8Pk7m1.js +1 -0
- package/dist/index-Bm1eqYHh.mjs +194 -0
- package/dist/index-CoflqYuK.js +30 -0
- package/dist/index-CxhJLMPS.js +221 -0
- package/dist/{index-D3CycEFU.mjs → index-Di1ZqIDs.mjs} +6420 -6232
- package/dist/index.cjs.js +1 -1
- package/dist/{index.es-DQ78mYYo.mjs → index.es-B7pVaNEV.mjs} +1558 -1542
- package/dist/{index.es-CE_A4QSm.js → index.es-I9N4o4Iq.js} +5 -5
- package/dist/index.esm.js +17 -15
- package/dist/{jspdf.es.min-BoS80556.js → jspdf.es.min-B5Idu0Wl.js} +2 -2
- package/dist/{jspdf.es.min-DQCoX5yh.mjs → jspdf.es.min-BCzHIwvz.mjs} +3 -2
- package/dist/link.cjs.js +17 -13
- package/dist/link.esm.js +138 -69
- package/dist/list.cjs.js +1 -1
- package/dist/list.esm.js +66 -33
- package/dist/math.cjs.js +22 -22
- package/dist/math.esm.js +221 -126
- package/dist/media-manager.cjs.js +12 -12
- package/dist/media-manager.esm.js +55 -50
- package/dist/mentions.cjs.js +2 -2
- package/dist/mentions.esm.js +17 -12
- package/dist/merge-tag.cjs.js +2 -2
- package/dist/merge-tag.esm.js +43 -42
- package/dist/plugins.css +1 -1
- package/dist/preview.cjs.js +3 -3
- package/dist/preview.esm.js +30 -27
- package/dist/{purify.es-T2a3nLiC.js → purify.es-DWpzYfqy.js} +1 -1
- package/dist/{purify.es-DHhaBdbu.mjs → purify.es-Dewe88eZ.mjs} +2 -2
- package/dist/slash-commands.cjs.js +13 -7
- package/dist/slash-commands.esm.js +90 -79
- package/dist/smart-paste.cjs.js +5 -5
- package/dist/smart-paste.esm.js +85 -81
- package/dist/special-characters.cjs.js +6 -3
- package/dist/special-characters.esm.js +72 -25
- package/dist/spell-check.cjs.js +8 -8
- package/dist/spell-check.esm.js +10189 -295
- package/dist/table.cjs.js +166 -13
- package/dist/table.esm.js +543 -266
- package/dist/template.cjs.js +11 -11
- package/dist/template.esm.js +290 -264
- package/dist/text-color.cjs.js +1 -1
- package/dist/text-color.esm.js +1 -1
- package/dist/translation-workflow.cjs.js +4 -4
- package/dist/translation-workflow.esm.js +33 -31
- package/dist/version-diff.cjs.js +6 -6
- package/dist/version-diff.esm.js +40 -40
- package/package.json +10 -4
- package/dist/anchoredPopover-BzqGPOAE.js +0 -1
- package/dist/anchoredPopover-Dts0IrgU.mjs +0 -106
- package/dist/index-BFsKNTTj.mjs +0 -145
- package/dist/index-CvJk4DKa.js +0 -221
- package/dist/index-tqLTHcO6.js +0 -1
package/dist/emojis.cjs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p={all:{name:"All",emojis:["❤️","💔","💙","💚","💛","🖤","🤍","🤎","✔️","❌","☑️","❗","❓","⚠️","💯","➕","➖","✖️","➗","♻️","⚡","🔥","✨","⭐","⭕","🚫","😀","😃","😄","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😍","😘","😎","🤓","😐","😑","😬","🙄","😏","😌","🤩","🥳","🤔","😴","😭","😢","😡","🤯","👍","👎","👌","✌️","🤞","🙏","👏","🙌","💪","🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐸","🐵","🐔","🐧","🐦","🦆","🦅","🦄","🐝","🦋","🌲","🌳","🌴","🌵","🌸","🌼","🌻","☀️","🌙","⭐","🌈","🌧️","❄️","🌊","🍎","🍌","🍉","🍇","🍓","🍒","🍍","🥭","🍐","🍊","🍋","🍑","🥝","🥑","🍔","🍟","🍕","🌭","🥪","🌮","🌯","🍣","🍜","🍰","🧁","🍩","🍪","🍫","☕","🍵","🥤","🍺","🍷","🍸","🍹","🥂","⚽","🏀","🏈","⚾","🎾","🏐","🏉","🎮","🎯","🎳","🎲","♟️","🏃","🚴","🏊","🏋️","🧘","🎸","🎹","🥁","🎺","🎤","🏆","🥇","🚗","🚕","🚌","🚎","🚓","🚑","🚒","✈️","🚀","🚁","🚤","🛳️","🚢","🏠","🏢","🏬","🏫","🏥","🏰","🗼","🗽","⛩️","🕌","🌍","🌎","🌏","🏖️","🏝️","📱","💻","🖥️","⌨️","🖱️","📷","📸","🎥","📹","📚","📖","📝","📄","📂","🔒","🔑","🗝️","💡","🔦","🕯️","🧰","🛠️","🔧","⚙️","📦","💳","💰","🔋","🔌","🇮🇳","🇺🇸","🇬🇧","🇨🇦","🇦🇺","🇩🇪","🇫🇷","🇪🇸","🇮🇹","🇯🇵","🇰🇷","🇨🇳","🇧🇷","🇲🇽","🇷🇺","🇿🇦","🇳🇿"]},symbols:{name:"Symbols",emojis:["❤️","💔","💙","💚","💛","🖤","🤍","🤎","✔️","❌","☑️","❗","❓","⚠️","💯","➕","➖","✖️","➗","♻️","⚡","🔥","✨","⭐","⭕","🚫","⬆️","⬇️","⬅️","➡️","🔄","🔁","🔀","🔔","🔕","⏰","⌛","⏳"]},people:{name:"People",emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😍","😘","😎","🤓","😐","😑","😬","🙄","😏","😌","🤩","🥳","🤔","😴","😭","😢","😡","🤯","👍","👎","👌","✌️","🤞","🙏","👏","🙌","💪"]},"animals-nature":{name:"Animals & Nature",emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐸","🐵","🐔","🐧","🐦","🦆","🦅","🦄","🐝","🦋","🌲","🌳","🌴","🌵","🌸","🌼","🌻","☀️","🌙","⭐","🌈","🌧️","❄️","🌊"]},"food-drink":{name:"Food & Drink",emojis:["🍎","🍌","🍉","🍇","🍓","🍒","🍍","🥭","🍐","🍊","🍋","🍑","🥝","🥑","🍔","🍟","🍕","🌭","🥪","🌮","🌯","🍣","🍜","🍰","🧁","🍩","🍪","🍫","☕","🍵","🥤","🍺","🍷","🍸","🍹","🥂"]},activity:{name:"Activity",emojis:["⚽","🏀","🏈","⚾","🎾","🏐","🏉","🎮","🎯","🎳","🎲","♟️","🏃","🚴","🏊","🏋️","🧘","🎸","🎹","🥁","🎺","🎤","🏆","🥇","🥈","🥉"]},"travel-places":{name:"Travel & Places",emojis:["🚗","🚕","🚌","🚎","🚓","🚑","🚒","✈️","🚀","🚁","🚤","🛳️","🚢","🏠","🏢","🏬","🏫","🏥","🏰","🗼","🗽","⛩️","🕌","🌍","🌎","🌏","🏖️","🏝️"]},objects:{name:"Objects",emojis:["📱","💻","🖥️","⌨️","🖱️","📷","📸","🎥","📹","📚","📖","📝","📄","📂","🔒","🔑","🗝️","💡","🔦","🕯️","🧰","🛠️","🔧","⚙️","📦","💳","💰","🔋","🔌"]},flags:{name:"Flags",emojis:["🇮🇳","🇺🇸","🇬🇧","🇨🇦","🇦🇺","🇩🇪","🇫🇷","🇪🇸","🇮🇹","🇯🇵","🇰🇷","🇨🇳","🇧🇷","🇲🇽","🇷🇺","🇿🇦","🇳🇿"]}},x={"💙":"blue heart","💚":"green heart","💛":"yellow heart","🖤":"black heart","🤍":"white heart","🤎":"brown heart","☑️":"check box with check","🔴":"red circle","🟢":"green circle","🟡":"yellow circle","🔵":"blue circle","⬆️":"up arrow","⬇️":"down arrow","⬅️":"left arrow","➡️":"right arrow","🔄":"counterclockwise arrows","🔁":"repeat button","🔀":"shuffle tracks","🔔":"bell","🔕":"muted bell","⏰":"alarm clock","⏳":"hourglass not done","⌛":"hourglass done","♠️":"spade suit","♥️":"heart suit","♦️":"diamond suit","♣️":"club suit","🚫":"prohibited","⭕":"hollow red circle","❎":"cross mark button","😐":"neutral face","😑":"expressionless face","😬":"grimacing face","🙄":"face with rolling eyes","😏":"smirking face","😌":"relieved face","🤩":"star struck","😜":"winking face with tongue","😝":"squinting face with tongue","🤪":"zany face","😢":"crying face","😥":"sad but relieved face","😓":"downcast face with sweat","😱":"face screaming in fear","😨":"fearful face","🤗":"hugging face","🤭":"face with hand over mouth","🤫":"shushing face","🤥":"lying face","👌":"ok hand","✌️":"victory hand","🤞":"crossed fingers","🙌":"raising hands","💪":"flexed biceps","🐔":"chicken","🐧":"penguin","🐦":"bird","🐤":"baby chick","🦆":"duck","🦅":"eagle","🐺":"wolf","🦄":"unicorn","🐝":"honeybee","🐞":"lady beetle","🦋":"butterfly","🐢":"turtle","🐍":"snake","🦖":"t-rex","🌿":"herb","🍀":"four leaf clover","🍁":"maple leaf","🍂":"fallen leaf","🌊":"water wave","❄️":"snowflake","☁️":"cloud","⛈️":"cloud with lightning and rain","🌪️":"tornado","🍐":"pear","🍊":"tangerine","🍋":"lemon","🍑":"peach","🥝":"kiwi fruit","🥑":"avocado","🍆":"eggplant","🌽":"ear of corn","🥕":"carrot","🥔":"potato","🍞":"bread","🥐":"croissant","🥖":"baguette bread","🧀":"cheese wedge","🍖":"meat on bone","🍗":"poultry leg","🥩":"cut of meat","🍦":"soft ice cream","🍨":"ice cream","🍫":"chocolate bar","🍬":"candy","🥛":"glass of milk","🧃":"beverage box","🍹":"tropical drink","🥂":"clinking glasses","🏓":"ping pong","🥊":"boxing glove","🥋":"martial arts uniform","⛳":"flag in hole","🏹":"bow and arrow","🎿":"skis","⛷️":"skier","🏂":"snowboarder","🎤":"microphone","🎬":"clapper board","🎨":"artist palette","🧩":"puzzle piece","🪀":"yo-yo","🚇":"metro","🚉":"station","🚊":"tram","🚝":"monorail","🛻":"pickup truck","🚐":"minibus","🗺️":"world map","🧭":"compass","⛰️":"mountain","🏔️":"snow capped mountain","🌋":"volcano","🏜️":"desert","🏕️":"camping","🏙️":"cityscape","🌆":"city at dusk","🌃":"night with stars","📦":"package","📫":"closed mailbox with raised flag","📬":"open mailbox with raised flag","📭":"open mailbox with lowered flag","🧾":"receipt","💳":"credit card","💰":"money bag","🪙":"coin","🔋":"battery","🔌":"electric plug","🧯":"fire extinguisher","🪜":"ladder","🪞":"mirror","🧹":"broom","🧸":"teddy bear"};let g=null,s="all",u="",n=null,l=null,d=null;const k='[data-theme="dark"], .dark, .editora-theme-dark',w=()=>({name:"emojis",toolbar:[{label:"Insert Emoji",command:"openEmojiDialog",icon:'<svg width="24" height="24" focusable="false"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Z" fill-rule="nonzero"></path></svg>',shortcut:"Mod-Shift-j",type:"button"}],commands:{openEmojiDialog:(t,r)=>{const e=r?.contentElement||b();return e?(y(e),!0):!1},insertEmoji:(t,r)=>{if(!t)return!1;const e=r?.contentElement||b();if(!e)return!1;try{return v(t,e),!0}catch{return!1}}},keymap:{"Mod-Shift-j":"openEmojiDialog"}});function y(t){m(),s="all",u="";const r=window.getSelection();l=null,r&&r.rangeCount>0&&t.contains(r.anchorNode)&&(l=r.getRangeAt(0).cloneRange());const e=document.createElement("div");e.className="emojis-overlay",S(t)&&e.classList.add("rte-ui-theme-dark"),e.onclick=m;const o=document.createElement("div");o.className="emojis-dialog",o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.onclick=a=>a.stopPropagation();const i=Object.keys(p);o.innerHTML=`
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("./escapeHtml-D2Zh82pD.js"),x=require("./dialogHelpers-zU6zpMIA.js"),y=require("./historyHelpers-Cu8Pk7m1.js"),p={all:{name:"All",emojis:["❤️","💔","💙","💚","💛","🖤","🤍","🤎","✔️","❌","☑️","❗","❓","⚠️","💯","➕","➖","✖️","➗","♻️","⚡","🔥","✨","⭐","⭕","🚫","😀","😃","😄","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😍","😘","😎","🤓","😐","😑","😬","🙄","😏","😌","🤩","🥳","🤔","😴","😭","😢","😡","🤯","👍","👎","👌","✌️","🤞","🙏","👏","🙌","💪","🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐸","🐵","🐔","🐧","🐦","🦆","🦅","🦄","🐝","🦋","🌲","🌳","🌴","🌵","🌸","🌼","🌻","☀️","🌙","⭐","🌈","🌧️","❄️","🌊","🍎","🍌","🍉","🍇","🍓","🍒","🍍","🥭","🍐","🍊","🍋","🍑","🥝","🥑","🍔","🍟","🍕","🌭","🥪","🌮","🌯","🍣","🍜","🍰","🧁","🍩","🍪","🍫","☕","🍵","🥤","🍺","🍷","🍸","🍹","🥂","⚽","🏀","🏈","⚾","🎾","🏐","🏉","🎮","🎯","🎳","🎲","♟️","🏃","🚴","🏊","🏋️","🧘","🎸","🎹","🥁","🎺","🎤","🏆","🥇","🚗","🚕","🚌","🚎","🚓","🚑","🚒","✈️","🚀","🚁","🚤","🛳️","🚢","🏠","🏢","🏬","🏫","🏥","🏰","🗼","🗽","⛩️","🕌","🌍","🌎","🌏","🏖️","🏝️","📱","💻","🖥️","⌨️","🖱️","📷","📸","🎥","📹","📚","📖","📝","📄","📂","🔒","🔑","🗝️","💡","🔦","🕯️","🧰","🛠️","🔧","⚙️","📦","💳","💰","🔋","🔌","🇮🇳","🇺🇸","🇬🇧","🇨🇦","🇦🇺","🇩🇪","🇫🇷","🇪🇸","🇮🇹","🇯🇵","🇰🇷","🇨🇳","🇧🇷","🇲🇽","🇷🇺","🇿🇦","🇳🇿"]},symbols:{name:"Symbols",emojis:["❤️","💔","💙","💚","💛","🖤","🤍","🤎","✔️","❌","☑️","❗","❓","⚠️","💯","➕","➖","✖️","➗","♻️","⚡","🔥","✨","⭐","⭕","🚫","⬆️","⬇️","⬅️","➡️","🔄","🔁","🔀","🔔","🔕","⏰","⌛","⏳"]},people:{name:"People",emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","😊","😇","🙂","🙃","😉","😍","😘","😎","🤓","😐","😑","😬","🙄","😏","😌","🤩","🥳","🤔","😴","😭","😢","😡","🤯","👍","👎","👌","✌️","🤞","🙏","👏","🙌","💪"]},"animals-nature":{name:"Animals & Nature",emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐸","🐵","🐔","🐧","🐦","🦆","🦅","🦄","🐝","🦋","🌲","🌳","🌴","🌵","🌸","🌼","🌻","☀️","🌙","⭐","🌈","🌧️","❄️","🌊"]},"food-drink":{name:"Food & Drink",emojis:["🍎","🍌","🍉","🍇","🍓","🍒","🍍","🥭","🍐","🍊","🍋","🍑","🥝","🥑","🍔","🍟","🍕","🌭","🥪","🌮","🌯","🍣","🍜","🍰","🧁","🍩","🍪","🍫","☕","🍵","🥤","🍺","🍷","🍸","🍹","🥂"]},activity:{name:"Activity",emojis:["⚽","🏀","🏈","⚾","🎾","🏐","🏉","🎮","🎯","🎳","🎲","♟️","🏃","🚴","🏊","🏋️","🧘","🎸","🎹","🥁","🎺","🎤","🏆","🥇","🥈","🥉"]},"travel-places":{name:"Travel & Places",emojis:["🚗","🚕","🚌","🚎","🚓","🚑","🚒","✈️","🚀","🚁","🚤","🛳️","🚢","🏠","🏢","🏬","🏫","🏥","🏰","🗼","🗽","⛩️","🕌","🌍","🌎","🌏","🏖️","🏝️"]},objects:{name:"Objects",emojis:["📱","💻","🖥️","⌨️","🖱️","📷","📸","🎥","📹","📚","📖","📝","📄","📂","🔒","🔑","🗝️","💡","🔦","🕯️","🧰","🛠️","🔧","⚙️","📦","💳","💰","🔋","🔌"]},flags:{name:"Flags",emojis:["🇮🇳","🇺🇸","🇬🇧","🇨🇦","🇦🇺","🇩🇪","🇫🇷","🇪🇸","🇮🇹","🇯🇵","🇰🇷","🇨🇳","🇧🇷","🇲🇽","🇷🇺","🇿🇦","🇳🇿"]}},E={"💙":"blue heart","💚":"green heart","💛":"yellow heart","🖤":"black heart","🤍":"white heart","🤎":"brown heart","☑️":"check box with check","🔴":"red circle","🟢":"green circle","🟡":"yellow circle","🔵":"blue circle","⬆️":"up arrow","⬇️":"down arrow","⬅️":"left arrow","➡️":"right arrow","🔄":"counterclockwise arrows","🔁":"repeat button","🔀":"shuffle tracks","🔔":"bell","🔕":"muted bell","⏰":"alarm clock","⏳":"hourglass not done","⌛":"hourglass done","♠️":"spade suit","♥️":"heart suit","♦️":"diamond suit","♣️":"club suit","🚫":"prohibited","⭕":"hollow red circle","❎":"cross mark button","😐":"neutral face","😑":"expressionless face","😬":"grimacing face","🙄":"face with rolling eyes","😏":"smirking face","😌":"relieved face","🤩":"star struck","😜":"winking face with tongue","😝":"squinting face with tongue","🤪":"zany face","😢":"crying face sad","😥":"sad but relieved face","😓":"downcast face with sweat","😱":"face screaming in fear","😨":"fearful face","🤗":"hugging face","🤭":"face with hand over mouth","🤫":"shushing face","🤥":"lying face","👌":"ok hand","✌️":"victory hand","🤞":"crossed fingers","🙌":"raising hands","💪":"flexed biceps","🐔":"chicken","🐧":"penguin","🐦":"bird","🐤":"baby chick","🦆":"duck","🦅":"eagle","🐺":"wolf","🦄":"unicorn","🐝":"honeybee","🐞":"lady beetle","🦋":"butterfly","🐢":"turtle","🐍":"snake","🦖":"t-rex","🌿":"herb","🍀":"four leaf clover","🍁":"maple leaf","🍂":"fallen leaf","🌊":"water wave","❄️":"snowflake","☁️":"cloud","⛈️":"cloud with lightning and rain","🌪️":"tornado","🍐":"pear","🍊":"tangerine","🍋":"lemon","🍑":"peach","🥝":"kiwi fruit","🥑":"avocado","🍆":"eggplant","🌽":"ear of corn","🥕":"carrot","🥔":"potato","🍞":"bread","🥐":"croissant","🥖":"baguette bread","🧀":"cheese wedge","🍖":"meat on bone","🍗":"poultry leg","🥩":"cut of meat","🍦":"soft ice cream","🍨":"ice cream","🍫":"chocolate bar","🍬":"candy","🥛":"glass of milk","🧃":"beverage box","🍹":"tropical drink","🥂":"clinking glasses","🏓":"ping pong","🥊":"boxing glove","🥋":"martial arts uniform","⛳":"flag in hole","🏹":"bow and arrow","🎿":"skis","⛷️":"skier","🏂":"snowboarder","🎤":"microphone","🎬":"clapper board","🎨":"artist palette","🧩":"puzzle piece","🪀":"yo-yo","🚇":"metro","🚉":"station","🚊":"tram","🚝":"monorail","🛻":"pickup truck","🚐":"minibus","🗺️":"world map","🧭":"compass","⛰️":"mountain","🏔️":"snow capped mountain","🌋":"volcano","🏜️":"desert","🏕️":"camping","🏙️":"cityscape","🌆":"city at dusk","🌃":"night with stars","📦":"package","📫":"closed mailbox with raised flag","📬":"open mailbox with raised flag","📭":"open mailbox with lowered flag","🧾":"receipt","💳":"credit card","💰":"money bag","🪙":"coin","🔋":"battery","🔌":"electric plug","🧯":"fire extinguisher","🪜":"ladder","🪞":"mirror","🧹":"broom","🧸":"teddy bear","❤️":"red heart love","💔":"broken heart","✔️":"check mark","❌":"cross mark","❗":"exclamation mark","❓":"question mark","⚠️":"warning","💯":"hundred points","➕":"plus sign","➖":"minus sign","✖️":"multiplication sign","➗":"division sign","♻️":"recycling symbol","⚡":"high voltage","🔥":"fire","✨":"sparkles","⭐":"star","😀":"grinning face","😃":"grinning face with big eyes","😄":"grinning face with smiling eyes","😁":"beaming face with smiling eyes","😆":"grinning squinting face","😅":"grinning face with sweat","😂":"face with tears of joy lol","🤣":"rolling on the floor laughing lol","😊":"smiling face with smiling eyes smile happy","😇":"smiling face with halo","🙂":"slightly smiling face smile happy","🙃":"upside-down face","😉":"winking face","😍":"smiling face with heart-eyes love","😘":"face blowing a kiss","😎":"smiling face with sunglasses cool","🤓":"nerd face","🥳":"partying face","🤔":"thinking face","😴":"sleeping face","😭":"loudly crying face","😡":"pouting face angry","🤯":"exploding head","👍":"thumbs up","👎":"thumbs down","🙏":"folded hands","👏":"clapping hands","🐶":"dog face","🐱":"cat face","🐭":"mouse face","🐹":"hamster","🐰":"rabbit face","🦊":"fox","🐻":"bear","🐼":"panda","🐨":"koala","🐯":"tiger face","🦁":"lion","🐮":"cow face","🐷":"pig face","🐸":"frog","🐵":"monkey face","🌲":"evergreen tree","🌳":"deciduous tree","🌴":"palm tree","🌵":"cactus","🌸":"cherry blossom","🌼":"blossom","🌻":"sunflower","☀️":"sun","🌙":"crescent moon","🌈":"rainbow","🌧️":"cloud with rain","🍎":"red apple","🍌":"banana","🍉":"watermelon","🍇":"grapes","🍓":"strawberry","🍒":"cherries","🍍":"pineapple","🥭":"mango","🍔":"hamburger","🍟":"french fries","🍕":"pizza","🌭":"hot dog","🥪":"sandwich","🌮":"taco","🌯":"burrito","🍣":"sushi","🍜":"steaming bowl","🍰":"shortcake","🧁":"cupcake","🍩":"doughnut","🍪":"cookie","☕":"hot beverage","🍵":"teacup without handle","🥤":"cup with straw","🍺":"beer mug","🍷":"wine glass","🍸":"cocktail glass","⚽":"soccer ball","🏀":"basketball","🏈":"american football","⚾":"baseball","🎾":"tennis","🏐":"volleyball","🏉":"rugby football","🎮":"video game","🎯":"direct hit","🎳":"bowling","🎲":"game die","♟️":"chess pawn","🏃":"person running","🚴":"person biking","🏊":"person swimming","🏋️":"person lifting weights","🧘":"person in lotus position","🎸":"guitar","🎹":"musical keyboard","🥁":"drum","🎺":"trumpet","🏆":"trophy","🥇":"gold medal","🥈":"silver medal","🥉":"bronze medal","🚗":"automobile","🚕":"taxi","🚌":"bus","🚎":"trolleybus","🚓":"police car","🚑":"ambulance","🚒":"fire engine","✈️":"airplane","🚀":"rocket","🚁":"helicopter","🚤":"speedboat","🛳️":"passenger ship","🚢":"ship","🏠":"house","🏢":"office building","🏬":"department store","🏫":"school","🏥":"hospital","🏰":"castle","🗼":"tokyo tower","🗽":"statue of liberty","⛩️":"shinto shrine","🕌":"mosque","🌍":"globe showing europe-africa","🌎":"globe showing americas","🌏":"globe showing asia-australia","🏖️":"beach with umbrella","🏝️":"desert island","📱":"mobile phone","💻":"laptop","🖥️":"desktop computer","⌨️":"keyboard","🖱️":"computer mouse","📷":"camera","📸":"camera with flash","🎥":"movie camera","📹":"video camera","📚":"books","📖":"open book","📝":"memo","📄":"page facing up","📂":"open file folder","🔒":"locked","🔑":"key","🗝️":"old key","💡":"light bulb","🔦":"flashlight","🕯️":"candle","🧰":"toolbox","🛠️":"hammer and wrench","🔧":"wrench","⚙️":"gear","🇮🇳":"flag: india","🇺🇸":"flag: united states","🇬🇧":"flag: united kingdom","🇨🇦":"flag: canada","🇦🇺":"flag: australia","🇩🇪":"flag: germany","🇫🇷":"flag: france","🇪🇸":"flag: spain","🇮🇹":"flag: italy","🇯🇵":"flag: japan","🇰🇷":"flag: south korea","🇨🇳":"flag: china","🇧🇷":"flag: brazil","🇲🇽":"flag: mexico","🇷🇺":"flag: russia","🇿🇦":"flag: south africa","🇳🇿":"flag: new zealand"};let g=null,l="all",u="",n=null,c=null,d=null;const z='[data-theme="dark"], .dark, .editora-theme-dark',S=()=>({name:"emojis",toolbar:[{label:"Insert Emoji",command:"openEmojiDialog",icon:'<svg width="24" height="24" focusable="false"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Z" fill-rule="nonzero"></path></svg>',shortcut:"Mod-Shift-j",type:"button"}],commands:{openEmojiDialog:(e,t)=>{const i=t?.contentElement||f();return i&&!h(i)?(A(i),!0):!1},insertEmoji:(e,t)=>{if(!e)return!1;const i=t?.contentElement||f();if(!i||h(i))return!1;try{return w(e,i),!0}catch{return!1}}},keymap:{"Mod-Shift-j":"openEmojiDialog"}});function A(e){m(),l="all",u="";const t=window.getSelection();c=null,t&&t.rangeCount>0&&e.contains(t.anchorNode)&&(c=t.getRangeAt(0).cloneRange());const i=document.createElement("div");x.initDialogOverlay(i),i.className="emojis-overlay",q(e)&&i.classList.add("rte-ui-theme-dark"),i.onclick=m;const r=document.createElement("div");r.className="emojis-dialog",r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),r.onclick=a=>a.stopPropagation();const o=Object.keys(p);r.innerHTML=`
|
|
2
2
|
<div class="rte-dialog-header emojis-header">
|
|
3
3
|
<h3>Insert Emojis</h3>
|
|
4
4
|
<button class="rte-dialog-close emojis-close">×</button>
|
|
5
5
|
</div>
|
|
6
6
|
<div class="rte-dialog-body emojis-content">
|
|
7
7
|
<div class="emojis-tabs">
|
|
8
|
-
${
|
|
9
|
-
<button class="emojis-tab ${a===
|
|
8
|
+
${o.map(a=>`
|
|
9
|
+
<button class="emojis-tab ${a===l?"active":""}" data-category="${a}">
|
|
10
10
|
${p[a].name}
|
|
11
11
|
</button>
|
|
12
12
|
`).join("")}
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
/>
|
|
26
26
|
</div>
|
|
27
27
|
<div class="emojis-grid" id="emojis-grid">
|
|
28
|
-
${j(
|
|
28
|
+
${j(l,u)}
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
|
-
`,
|
|
32
|
+
`,i.appendChild(r),document.body.appendChild(i),g=i,d=a=>{a.key==="Escape"&&(a.preventDefault(),a.stopPropagation(),m())},document.addEventListener("keydown",d,!0),L(r,e),D(),requestAnimationFrame(()=>{r.querySelector("#emoji-search-input")?.focus()})}function L(e,t){e.querySelector(".emojis-close")?.addEventListener("click",m),e.querySelectorAll(".emojis-tab").forEach(o=>{o.addEventListener("click",a=>{const s=a.target.getAttribute("data-category");s&&T(e,s)})}),e.querySelector("#emoji-search-input")?.addEventListener("input",o=>{u=o.target.value,n!==null&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,v(e)},90)}),e.querySelector("#emojis-grid")?.addEventListener("click",o=>{const s=o.target.closest(".emojis-item");if(!s)return;const b=s.getAttribute("data-emoji")||s.textContent?.trim()||"";b&&(w(b,t),m())})}function T(e,t){l=t,e.querySelectorAll(".emojis-tab").forEach(i=>{i.classList.toggle("active",i.getAttribute("data-category")===t)}),v(e)}function v(e){const t=e.querySelector("#emojis-grid");t&&(t.innerHTML=j(l,u))}function j(e,t){let i=p[e].emojis;return t.trim()&&(i=i.filter(r=>r.toLowerCase().includes(t.toLowerCase())?!0:(E[r]||"").toLowerCase().includes(t.toLowerCase()))),i.length===0&&t.trim()?`<div class="emojis-no-results">No emojis found for "${k.escapeHtml(t)}"</div>`:i.map(r=>`
|
|
33
33
|
<button
|
|
34
34
|
class="emojis-item"
|
|
35
|
-
title="Insert ${
|
|
36
|
-
data-emoji="${
|
|
35
|
+
title="Insert ${r}"
|
|
36
|
+
data-emoji="${r}"
|
|
37
37
|
>
|
|
38
|
-
${
|
|
38
|
+
${r}
|
|
39
39
|
</button>
|
|
40
|
-
`).join("")}function m(){d&&(document.removeEventListener("keydown",d,!0),d=null),n!==null&&(window.clearTimeout(n),n=null),g&&(g.remove(),g=null)}function
|
|
40
|
+
`).join("")}function m(){d&&(document.removeEventListener("keydown",d,!0),d=null),n!==null&&(window.clearTimeout(n),n=null),g&&(g.remove(),g=null)}function h(e){return e.getAttribute("contenteditable")==="false"||e.getAttribute("data-readonly")==="true"}function w(e,t){if(h(t))return;const i=t.innerHTML;t.focus();let r=window.getSelection();if(c&&(r?.removeAllRanges(),r?.addRange(c),c=null),r=window.getSelection(),r&&r.rangeCount>0){const o=r.getRangeAt(0);o.deleteContents();const a=document.createTextNode(e);o.insertNode(a),o.setStartAfter(a),o.setEndAfter(a),r.removeAllRanges(),r.addRange(o)}y.recordDomHistory(t,i),t.dispatchEvent(new Event("input",{bubbles:!0}))}function f(){const e=window.getSelection();if(e&&e.rangeCount>0){const i=e.anchorNode,o=(i instanceof HTMLElement?i:i?.parentElement)?.closest(".editora-content, .rte-content");if(o)return o}const t=document.activeElement;return t&&(t.classList.contains("editora-content")||t.classList.contains("rte-content"))?t:document.querySelector(".editora-content, .rte-content")}function q(e){const t=e||f();return t?!!t.closest(z):!1}function D(){if(document.getElementById("emojis-dialog-styles"))return;const e=document.createElement("style");e.id="emojis-dialog-styles",e.textContent=`
|
|
41
41
|
.emojis-overlay {
|
|
42
42
|
--rte-emoji-overlay-bg: rgba(15, 23, 36, 0.56);
|
|
43
43
|
--rte-emoji-dialog-bg: #ffffff;
|
|
@@ -286,6 +286,9 @@
|
|
|
286
286
|
border-bottom: 1px solid var(--rte-emoji-border);
|
|
287
287
|
flex-direction: row;
|
|
288
288
|
overflow-x: auto;
|
|
289
|
+
/* As a column-flex child with overflow set it would shrink below its
|
|
290
|
+
content height when the dialog is short, clipping the tab labels. */
|
|
291
|
+
flex-shrink: 0;
|
|
289
292
|
}
|
|
290
293
|
|
|
291
294
|
.emojis-tab {
|
|
@@ -306,4 +309,4 @@
|
|
|
306
309
|
font-size: 16px;
|
|
307
310
|
}
|
|
308
311
|
}
|
|
309
|
-
`,document.head.appendChild(
|
|
312
|
+
`,document.head.appendChild(e)}exports.EmojisPlugin=S;
|
package/dist/emojis.esm.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { e as k } from "./escapeHtml-DyksyvcZ.mjs";
|
|
2
|
+
import { i as x } from "./dialogHelpers-5d5BuOCW.mjs";
|
|
3
|
+
import { r as y } from "./historyHelpers-BEKwNOtA.mjs";
|
|
1
4
|
const p = {
|
|
2
5
|
all: {
|
|
3
6
|
name: "All",
|
|
@@ -540,7 +543,7 @@ const p = {
|
|
|
540
543
|
"🇳🇿"
|
|
541
544
|
]
|
|
542
545
|
}
|
|
543
|
-
},
|
|
546
|
+
}, E = {
|
|
544
547
|
"💙": "blue heart",
|
|
545
548
|
"💚": "green heart",
|
|
546
549
|
"💛": "yellow heart",
|
|
@@ -581,7 +584,7 @@ const p = {
|
|
|
581
584
|
"😜": "winking face with tongue",
|
|
582
585
|
"😝": "squinting face with tongue",
|
|
583
586
|
"🤪": "zany face",
|
|
584
|
-
"😢": "crying face",
|
|
587
|
+
"😢": "crying face sad",
|
|
585
588
|
"😥": "sad but relieved face",
|
|
586
589
|
"😓": "downcast face with sweat",
|
|
587
590
|
"😱": "face screaming in fear",
|
|
@@ -686,10 +689,210 @@ const p = {
|
|
|
686
689
|
"🪜": "ladder",
|
|
687
690
|
"🪞": "mirror",
|
|
688
691
|
"🧹": "broom",
|
|
689
|
-
"🧸": "teddy bear"
|
|
692
|
+
"🧸": "teddy bear",
|
|
693
|
+
/* Symbols */
|
|
694
|
+
"❤️": "red heart love",
|
|
695
|
+
"💔": "broken heart",
|
|
696
|
+
"✔️": "check mark",
|
|
697
|
+
"❌": "cross mark",
|
|
698
|
+
"❗": "exclamation mark",
|
|
699
|
+
"❓": "question mark",
|
|
700
|
+
"⚠️": "warning",
|
|
701
|
+
"💯": "hundred points",
|
|
702
|
+
"➕": "plus sign",
|
|
703
|
+
"➖": "minus sign",
|
|
704
|
+
"✖️": "multiplication sign",
|
|
705
|
+
"➗": "division sign",
|
|
706
|
+
"♻️": "recycling symbol",
|
|
707
|
+
"⚡": "high voltage",
|
|
708
|
+
"🔥": "fire",
|
|
709
|
+
"✨": "sparkles",
|
|
710
|
+
"⭐": "star",
|
|
711
|
+
/* Faces */
|
|
712
|
+
"😀": "grinning face",
|
|
713
|
+
"😃": "grinning face with big eyes",
|
|
714
|
+
"😄": "grinning face with smiling eyes",
|
|
715
|
+
"😁": "beaming face with smiling eyes",
|
|
716
|
+
"😆": "grinning squinting face",
|
|
717
|
+
"😅": "grinning face with sweat",
|
|
718
|
+
"😂": "face with tears of joy lol",
|
|
719
|
+
"🤣": "rolling on the floor laughing lol",
|
|
720
|
+
"😊": "smiling face with smiling eyes smile happy",
|
|
721
|
+
"😇": "smiling face with halo",
|
|
722
|
+
"🙂": "slightly smiling face smile happy",
|
|
723
|
+
"🙃": "upside-down face",
|
|
724
|
+
"😉": "winking face",
|
|
725
|
+
"😍": "smiling face with heart-eyes love",
|
|
726
|
+
"😘": "face blowing a kiss",
|
|
727
|
+
"😎": "smiling face with sunglasses cool",
|
|
728
|
+
"🤓": "nerd face",
|
|
729
|
+
"🥳": "partying face",
|
|
730
|
+
"🤔": "thinking face",
|
|
731
|
+
"😴": "sleeping face",
|
|
732
|
+
"😭": "loudly crying face",
|
|
733
|
+
"😡": "pouting face angry",
|
|
734
|
+
"🤯": "exploding head",
|
|
735
|
+
"👍": "thumbs up",
|
|
736
|
+
"👎": "thumbs down",
|
|
737
|
+
"🙏": "folded hands",
|
|
738
|
+
"👏": "clapping hands",
|
|
739
|
+
/* Animals */
|
|
740
|
+
"🐶": "dog face",
|
|
741
|
+
"🐱": "cat face",
|
|
742
|
+
"🐭": "mouse face",
|
|
743
|
+
"🐹": "hamster",
|
|
744
|
+
"🐰": "rabbit face",
|
|
745
|
+
"🦊": "fox",
|
|
746
|
+
"🐻": "bear",
|
|
747
|
+
"🐼": "panda",
|
|
748
|
+
"🐨": "koala",
|
|
749
|
+
"🐯": "tiger face",
|
|
750
|
+
"🦁": "lion",
|
|
751
|
+
"🐮": "cow face",
|
|
752
|
+
"🐷": "pig face",
|
|
753
|
+
"🐸": "frog",
|
|
754
|
+
"🐵": "monkey face",
|
|
755
|
+
/* Nature */
|
|
756
|
+
"🌲": "evergreen tree",
|
|
757
|
+
"🌳": "deciduous tree",
|
|
758
|
+
"🌴": "palm tree",
|
|
759
|
+
"🌵": "cactus",
|
|
760
|
+
"🌸": "cherry blossom",
|
|
761
|
+
"🌼": "blossom",
|
|
762
|
+
"🌻": "sunflower",
|
|
763
|
+
"☀️": "sun",
|
|
764
|
+
"🌙": "crescent moon",
|
|
765
|
+
"🌈": "rainbow",
|
|
766
|
+
"🌧️": "cloud with rain",
|
|
767
|
+
/* Food & Drink */
|
|
768
|
+
"🍎": "red apple",
|
|
769
|
+
"🍌": "banana",
|
|
770
|
+
"🍉": "watermelon",
|
|
771
|
+
"🍇": "grapes",
|
|
772
|
+
"🍓": "strawberry",
|
|
773
|
+
"🍒": "cherries",
|
|
774
|
+
"🍍": "pineapple",
|
|
775
|
+
"🥭": "mango",
|
|
776
|
+
"🍔": "hamburger",
|
|
777
|
+
"🍟": "french fries",
|
|
778
|
+
"🍕": "pizza",
|
|
779
|
+
"🌭": "hot dog",
|
|
780
|
+
"🥪": "sandwich",
|
|
781
|
+
"🌮": "taco",
|
|
782
|
+
"🌯": "burrito",
|
|
783
|
+
"🍣": "sushi",
|
|
784
|
+
"🍜": "steaming bowl",
|
|
785
|
+
"🍰": "shortcake",
|
|
786
|
+
"🧁": "cupcake",
|
|
787
|
+
"🍩": "doughnut",
|
|
788
|
+
"🍪": "cookie",
|
|
789
|
+
"☕": "hot beverage",
|
|
790
|
+
"🍵": "teacup without handle",
|
|
791
|
+
"🥤": "cup with straw",
|
|
792
|
+
"🍺": "beer mug",
|
|
793
|
+
"🍷": "wine glass",
|
|
794
|
+
"🍸": "cocktail glass",
|
|
795
|
+
/* Activity */
|
|
796
|
+
"⚽": "soccer ball",
|
|
797
|
+
"🏀": "basketball",
|
|
798
|
+
"🏈": "american football",
|
|
799
|
+
"⚾": "baseball",
|
|
800
|
+
"🎾": "tennis",
|
|
801
|
+
"🏐": "volleyball",
|
|
802
|
+
"🏉": "rugby football",
|
|
803
|
+
"🎮": "video game",
|
|
804
|
+
"🎯": "direct hit",
|
|
805
|
+
"🎳": "bowling",
|
|
806
|
+
"🎲": "game die",
|
|
807
|
+
"♟️": "chess pawn",
|
|
808
|
+
"🏃": "person running",
|
|
809
|
+
"🚴": "person biking",
|
|
810
|
+
"🏊": "person swimming",
|
|
811
|
+
"🏋️": "person lifting weights",
|
|
812
|
+
"🧘": "person in lotus position",
|
|
813
|
+
"🎸": "guitar",
|
|
814
|
+
"🎹": "musical keyboard",
|
|
815
|
+
"🥁": "drum",
|
|
816
|
+
"🎺": "trumpet",
|
|
817
|
+
"🏆": "trophy",
|
|
818
|
+
"🥇": "gold medal",
|
|
819
|
+
"🥈": "silver medal",
|
|
820
|
+
"🥉": "bronze medal",
|
|
821
|
+
/* Travel & Places */
|
|
822
|
+
"🚗": "automobile",
|
|
823
|
+
"🚕": "taxi",
|
|
824
|
+
"🚌": "bus",
|
|
825
|
+
"🚎": "trolleybus",
|
|
826
|
+
"🚓": "police car",
|
|
827
|
+
"🚑": "ambulance",
|
|
828
|
+
"🚒": "fire engine",
|
|
829
|
+
"✈️": "airplane",
|
|
830
|
+
"🚀": "rocket",
|
|
831
|
+
"🚁": "helicopter",
|
|
832
|
+
"🚤": "speedboat",
|
|
833
|
+
"🛳️": "passenger ship",
|
|
834
|
+
"🚢": "ship",
|
|
835
|
+
"🏠": "house",
|
|
836
|
+
"🏢": "office building",
|
|
837
|
+
"🏬": "department store",
|
|
838
|
+
"🏫": "school",
|
|
839
|
+
"🏥": "hospital",
|
|
840
|
+
"🏰": "castle",
|
|
841
|
+
"🗼": "tokyo tower",
|
|
842
|
+
"🗽": "statue of liberty",
|
|
843
|
+
"⛩️": "shinto shrine",
|
|
844
|
+
"🕌": "mosque",
|
|
845
|
+
"🌍": "globe showing europe-africa",
|
|
846
|
+
"🌎": "globe showing americas",
|
|
847
|
+
"🌏": "globe showing asia-australia",
|
|
848
|
+
"🏖️": "beach with umbrella",
|
|
849
|
+
"🏝️": "desert island",
|
|
850
|
+
/* Objects */
|
|
851
|
+
"📱": "mobile phone",
|
|
852
|
+
"💻": "laptop",
|
|
853
|
+
"🖥️": "desktop computer",
|
|
854
|
+
"⌨️": "keyboard",
|
|
855
|
+
"🖱️": "computer mouse",
|
|
856
|
+
"📷": "camera",
|
|
857
|
+
"📸": "camera with flash",
|
|
858
|
+
"🎥": "movie camera",
|
|
859
|
+
"📹": "video camera",
|
|
860
|
+
"📚": "books",
|
|
861
|
+
"📖": "open book",
|
|
862
|
+
"📝": "memo",
|
|
863
|
+
"📄": "page facing up",
|
|
864
|
+
"📂": "open file folder",
|
|
865
|
+
"🔒": "locked",
|
|
866
|
+
"🔑": "key",
|
|
867
|
+
"🗝️": "old key",
|
|
868
|
+
"💡": "light bulb",
|
|
869
|
+
"🔦": "flashlight",
|
|
870
|
+
"🕯️": "candle",
|
|
871
|
+
"🧰": "toolbox",
|
|
872
|
+
"🛠️": "hammer and wrench",
|
|
873
|
+
"🔧": "wrench",
|
|
874
|
+
"⚙️": "gear",
|
|
875
|
+
/* Flags */
|
|
876
|
+
"🇮🇳": "flag: india",
|
|
877
|
+
"🇺🇸": "flag: united states",
|
|
878
|
+
"🇬🇧": "flag: united kingdom",
|
|
879
|
+
"🇨🇦": "flag: canada",
|
|
880
|
+
"🇦🇺": "flag: australia",
|
|
881
|
+
"🇩🇪": "flag: germany",
|
|
882
|
+
"🇫🇷": "flag: france",
|
|
883
|
+
"🇪🇸": "flag: spain",
|
|
884
|
+
"🇮🇹": "flag: italy",
|
|
885
|
+
"🇯🇵": "flag: japan",
|
|
886
|
+
"🇰🇷": "flag: south korea",
|
|
887
|
+
"🇨🇳": "flag: china",
|
|
888
|
+
"🇧🇷": "flag: brazil",
|
|
889
|
+
"🇲🇽": "flag: mexico",
|
|
890
|
+
"🇷🇺": "flag: russia",
|
|
891
|
+
"🇿🇦": "flag: south africa",
|
|
892
|
+
"🇳🇿": "flag: new zealand"
|
|
690
893
|
};
|
|
691
|
-
let g = null,
|
|
692
|
-
const
|
|
894
|
+
let g = null, l = "all", u = "", n = null, c = null, d = null;
|
|
895
|
+
const z = '[data-theme="dark"], .dark, .editora-theme-dark', H = () => ({
|
|
693
896
|
name: "emojis",
|
|
694
897
|
toolbar: [
|
|
695
898
|
{
|
|
@@ -701,16 +904,16 @@ const k = '[data-theme="dark"], .dark, .editora-theme-dark', A = () => ({
|
|
|
701
904
|
}
|
|
702
905
|
],
|
|
703
906
|
commands: {
|
|
704
|
-
openEmojiDialog: (
|
|
705
|
-
const
|
|
706
|
-
return
|
|
907
|
+
openEmojiDialog: (e, t) => {
|
|
908
|
+
const r = t?.contentElement || f();
|
|
909
|
+
return r && !h(r) ? (A(r), !0) : !1;
|
|
707
910
|
},
|
|
708
|
-
insertEmoji: (
|
|
709
|
-
if (!t) return !1;
|
|
710
|
-
const e = r?.contentElement || b();
|
|
911
|
+
insertEmoji: (e, t) => {
|
|
711
912
|
if (!e) return !1;
|
|
913
|
+
const r = t?.contentElement || f();
|
|
914
|
+
if (!r || h(r)) return !1;
|
|
712
915
|
try {
|
|
713
|
-
return
|
|
916
|
+
return w(e, r), !0;
|
|
714
917
|
} catch {
|
|
715
918
|
return !1;
|
|
716
919
|
}
|
|
@@ -720,24 +923,24 @@ const k = '[data-theme="dark"], .dark, .editora-theme-dark', A = () => ({
|
|
|
720
923
|
"Mod-Shift-j": "openEmojiDialog"
|
|
721
924
|
}
|
|
722
925
|
});
|
|
723
|
-
function
|
|
724
|
-
m(),
|
|
725
|
-
const
|
|
726
|
-
|
|
727
|
-
const
|
|
728
|
-
|
|
729
|
-
const
|
|
730
|
-
|
|
731
|
-
const
|
|
732
|
-
|
|
926
|
+
function A(e) {
|
|
927
|
+
m(), l = "all", u = "";
|
|
928
|
+
const t = window.getSelection();
|
|
929
|
+
c = null, t && t.rangeCount > 0 && e.contains(t.anchorNode) && (c = t.getRangeAt(0).cloneRange());
|
|
930
|
+
const r = document.createElement("div");
|
|
931
|
+
x(r), r.className = "emojis-overlay", T(e) && r.classList.add("rte-ui-theme-dark"), r.onclick = m;
|
|
932
|
+
const i = document.createElement("div");
|
|
933
|
+
i.className = "emojis-dialog", i.setAttribute("role", "dialog"), i.setAttribute("aria-modal", "true"), i.onclick = (a) => a.stopPropagation();
|
|
934
|
+
const o = Object.keys(p);
|
|
935
|
+
i.innerHTML = `
|
|
733
936
|
<div class="rte-dialog-header emojis-header">
|
|
734
937
|
<h3>Insert Emojis</h3>
|
|
735
938
|
<button class="rte-dialog-close emojis-close">×</button>
|
|
736
939
|
</div>
|
|
737
940
|
<div class="rte-dialog-body emojis-content">
|
|
738
941
|
<div class="emojis-tabs">
|
|
739
|
-
${
|
|
740
|
-
<button class="emojis-tab ${a ===
|
|
942
|
+
${o.map((a) => `
|
|
943
|
+
<button class="emojis-tab ${a === l ? "active" : ""}" data-category="${a}">
|
|
741
944
|
${p[a].name}
|
|
742
945
|
</button>
|
|
743
946
|
`).join("")}
|
|
@@ -756,84 +959,90 @@ function w(t) {
|
|
|
756
959
|
/>
|
|
757
960
|
</div>
|
|
758
961
|
<div class="emojis-grid" id="emojis-grid">
|
|
759
|
-
${j(
|
|
962
|
+
${j(l, u)}
|
|
760
963
|
</div>
|
|
761
964
|
</div>
|
|
762
965
|
</div>
|
|
763
|
-
`,
|
|
966
|
+
`, r.appendChild(i), document.body.appendChild(r), g = r, d = (a) => {
|
|
764
967
|
a.key === "Escape" && (a.preventDefault(), a.stopPropagation(), m());
|
|
765
|
-
}, document.addEventListener("keydown", d, !0),
|
|
766
|
-
|
|
968
|
+
}, document.addEventListener("keydown", d, !0), S(i, e), D(), requestAnimationFrame(() => {
|
|
969
|
+
i.querySelector("#emoji-search-input")?.focus();
|
|
767
970
|
});
|
|
768
971
|
}
|
|
769
|
-
function
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
const
|
|
773
|
-
|
|
972
|
+
function S(e, t) {
|
|
973
|
+
e.querySelector(".emojis-close")?.addEventListener("click", m), e.querySelectorAll(".emojis-tab").forEach((o) => {
|
|
974
|
+
o.addEventListener("click", (a) => {
|
|
975
|
+
const s = a.target.getAttribute("data-category");
|
|
976
|
+
s && L(e, s);
|
|
774
977
|
});
|
|
775
|
-
}),
|
|
776
|
-
u =
|
|
777
|
-
n = null,
|
|
978
|
+
}), e.querySelector("#emoji-search-input")?.addEventListener("input", (o) => {
|
|
979
|
+
u = o.target.value, n !== null && window.clearTimeout(n), n = window.setTimeout(() => {
|
|
980
|
+
n = null, v(e);
|
|
778
981
|
}, 90);
|
|
779
|
-
}),
|
|
780
|
-
const
|
|
781
|
-
if (!
|
|
782
|
-
const
|
|
783
|
-
|
|
982
|
+
}), e.querySelector("#emojis-grid")?.addEventListener("click", (o) => {
|
|
983
|
+
const s = o.target.closest(".emojis-item");
|
|
984
|
+
if (!s) return;
|
|
985
|
+
const b = s.getAttribute("data-emoji") || s.textContent?.trim() || "";
|
|
986
|
+
b && (w(b, t), m());
|
|
784
987
|
});
|
|
785
988
|
}
|
|
786
|
-
function
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}),
|
|
989
|
+
function L(e, t) {
|
|
990
|
+
l = t, e.querySelectorAll(".emojis-tab").forEach((r) => {
|
|
991
|
+
r.classList.toggle("active", r.getAttribute("data-category") === t);
|
|
992
|
+
}), v(e);
|
|
790
993
|
}
|
|
791
|
-
function
|
|
792
|
-
const
|
|
793
|
-
|
|
994
|
+
function v(e) {
|
|
995
|
+
const t = e.querySelector("#emojis-grid");
|
|
996
|
+
t && (t.innerHTML = j(l, u));
|
|
794
997
|
}
|
|
795
|
-
function j(
|
|
796
|
-
let
|
|
797
|
-
return
|
|
998
|
+
function j(e, t) {
|
|
999
|
+
let r = p[e].emojis;
|
|
1000
|
+
return t.trim() && (r = r.filter((i) => i.toLowerCase().includes(t.toLowerCase()) ? !0 : (E[i] || "").toLowerCase().includes(t.toLowerCase()))), r.length === 0 && t.trim() ? `<div class="emojis-no-results">No emojis found for "${k(t)}"</div>` : r.map((i) => `
|
|
798
1001
|
<button
|
|
799
1002
|
class="emojis-item"
|
|
800
|
-
title="Insert ${
|
|
801
|
-
data-emoji="${
|
|
1003
|
+
title="Insert ${i}"
|
|
1004
|
+
data-emoji="${i}"
|
|
802
1005
|
>
|
|
803
|
-
${
|
|
1006
|
+
${i}
|
|
804
1007
|
</button>
|
|
805
1008
|
`).join("");
|
|
806
1009
|
}
|
|
807
1010
|
function m() {
|
|
808
1011
|
d && (document.removeEventListener("keydown", d, !0), d = null), n !== null && (window.clearTimeout(n), n = null), g && (g.remove(), g = null);
|
|
809
1012
|
}
|
|
810
|
-
function
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
1013
|
+
function h(e) {
|
|
1014
|
+
return e.getAttribute("contenteditable") === "false" || e.getAttribute("data-readonly") === "true";
|
|
1015
|
+
}
|
|
1016
|
+
function w(e, t) {
|
|
1017
|
+
if (h(t)) return;
|
|
1018
|
+
const r = t.innerHTML;
|
|
1019
|
+
t.focus();
|
|
1020
|
+
let i = window.getSelection();
|
|
1021
|
+
if (c && (i?.removeAllRanges(), i?.addRange(c), c = null), i = window.getSelection(), i && i.rangeCount > 0) {
|
|
1022
|
+
const o = i.getRangeAt(0);
|
|
815
1023
|
o.deleteContents();
|
|
816
|
-
const
|
|
817
|
-
o.insertNode(
|
|
1024
|
+
const a = document.createTextNode(e);
|
|
1025
|
+
o.insertNode(a), o.setStartAfter(a), o.setEndAfter(a), i.removeAllRanges(), i.addRange(o);
|
|
818
1026
|
}
|
|
1027
|
+
y(t, r), t.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
819
1028
|
}
|
|
820
|
-
function
|
|
821
|
-
const
|
|
822
|
-
if (
|
|
823
|
-
const
|
|
824
|
-
if (
|
|
1029
|
+
function f() {
|
|
1030
|
+
const e = window.getSelection();
|
|
1031
|
+
if (e && e.rangeCount > 0) {
|
|
1032
|
+
const r = e.anchorNode, o = (r instanceof HTMLElement ? r : r?.parentElement)?.closest(".editora-content, .rte-content");
|
|
1033
|
+
if (o) return o;
|
|
825
1034
|
}
|
|
826
|
-
const
|
|
827
|
-
return
|
|
1035
|
+
const t = document.activeElement;
|
|
1036
|
+
return t && (t.classList.contains("editora-content") || t.classList.contains("rte-content")) ? t : document.querySelector(".editora-content, .rte-content");
|
|
828
1037
|
}
|
|
829
|
-
function
|
|
830
|
-
const
|
|
831
|
-
return
|
|
1038
|
+
function T(e) {
|
|
1039
|
+
const t = e || f();
|
|
1040
|
+
return t ? !!t.closest(z) : !1;
|
|
832
1041
|
}
|
|
833
|
-
function
|
|
1042
|
+
function D() {
|
|
834
1043
|
if (document.getElementById("emojis-dialog-styles")) return;
|
|
835
|
-
const
|
|
836
|
-
|
|
1044
|
+
const e = document.createElement("style");
|
|
1045
|
+
e.id = "emojis-dialog-styles", e.textContent = `
|
|
837
1046
|
.emojis-overlay {
|
|
838
1047
|
--rte-emoji-overlay-bg: rgba(15, 23, 36, 0.56);
|
|
839
1048
|
--rte-emoji-dialog-bg: #ffffff;
|
|
@@ -1082,6 +1291,9 @@ function S() {
|
|
|
1082
1291
|
border-bottom: 1px solid var(--rte-emoji-border);
|
|
1083
1292
|
flex-direction: row;
|
|
1084
1293
|
overflow-x: auto;
|
|
1294
|
+
/* As a column-flex child with overflow set it would shrink below its
|
|
1295
|
+
content height when the dialog is short, clipping the tab labels. */
|
|
1296
|
+
flex-shrink: 0;
|
|
1085
1297
|
}
|
|
1086
1298
|
|
|
1087
1299
|
.emojis-tab {
|
|
@@ -1102,8 +1314,8 @@ function S() {
|
|
|
1102
1314
|
font-size: 16px;
|
|
1103
1315
|
}
|
|
1104
1316
|
}
|
|
1105
|
-
`, document.head.appendChild(
|
|
1317
|
+
`, document.head.appendChild(e);
|
|
1106
1318
|
}
|
|
1107
1319
|
export {
|
|
1108
|
-
|
|
1320
|
+
H as EmojisPlugin
|
|
1109
1321
|
};
|
package/dist/enterprise.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./mentions.cjs.js"),t=require("./track-changes.cjs.js"),o=require("./version-diff.cjs.js"),l=require("./conditional-content.cjs.js"),r=require("./data-binding.cjs.js"),g=require("./content-rules.cjs.js"),u=require("./citations.cjs.js"),s=require("./approval-workflow.cjs.js"),c=require("./pii-redaction.cjs.js"),P=require("./smart-paste.cjs.js"),m=require("./blocks-library.cjs.js"),C=require("./doc-schema.cjs.js"),d=require("./translation-workflow.cjs.js"),p=require("./slash-commands.cjs.js"),M=require("./spell-check.cjs.js"),T=require("./a11y-checker.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./mentions.cjs.js"),t=require("./track-changes.cjs.js"),o=require("./version-diff.cjs.js"),l=require("./conditional-content.cjs.js"),r=require("./data-binding.cjs.js"),g=require("./content-rules.cjs.js"),u=require("./citations.cjs.js"),s=require("./approval-workflow.cjs.js"),c=require("./pii-redaction.cjs.js"),P=require("./smart-paste.cjs.js"),m=require("./blocks-library.cjs.js"),C=require("./doc-schema.cjs.js"),d=require("./translation-workflow.cjs.js"),p=require("./slash-commands.cjs.js"),M=require("./spell-check.cjs.js"),T=require("./a11y-checker.cjs.js"),q=require("./comments.cjs.js"),f=require("./merge-tag.cjs.js"),e=require("./template.cjs.js"),n=require("./media-manager.cjs.js"),i=require("./index-CoflqYuK.js"),k=require("./collaboration.cjs.js");exports.MentionPlugin=a.MentionPlugin;exports.TrackChangesPlugin=t.TrackChangesPlugin;exports.VersionDiffPlugin=o.VersionDiffPlugin;exports.ConditionalContentPlugin=l.ConditionalContentPlugin;exports.DataBindingPlugin=r.DataBindingPlugin;exports.ContentRulesPlugin=g.ContentRulesPlugin;exports.CitationsPlugin=u.CitationsPlugin;exports.ApprovalWorkflowPlugin=s.ApprovalWorkflowPlugin;exports.PIIRedactionPlugin=c.PIIRedactionPlugin;exports.SmartPastePlugin=P.SmartPastePlugin;exports.BlocksLibraryPlugin=m.BlocksLibraryPlugin;exports.DocSchemaPlugin=C.DocSchemaPlugin;exports.TranslationWorkflowPlugin=d.TranslationWorkflowPlugin;exports.SlashCommandsPlugin=p.SlashCommandsPlugin;exports.SpellCheckPlugin=M.SpellCheckPlugin;exports.A11yCheckerPlugin=T.A11yCheckerPlugin;exports.CommentsPlugin=q.CommentsPlugin;exports.MergeTagPlugin=f.MergeTagPlugin;exports.PREDEFINED_TEMPLATES=e.PREDEFINED_TEMPLATES;exports.TemplatePlugin=e.TemplatePlugin;exports.addCustomTemplate=e.addCustomTemplate;exports.getAllTemplates=e.getAllTemplates;exports.getTemplateCategories=e.getTemplateCategories;exports.getTemplatesByCategory=e.getTemplatesByCategory;exports.sanitizeTemplate=e.sanitizeTemplate;exports.searchTemplates=e.searchTemplates;exports.validateTemplate=e.validateTemplate;exports.MediaManagerPlugin=n.MediaManagerPlugin;exports.getMediaManagerConfig=n.getMediaManagerConfig;exports.setMediaManagerConfig=n.setMediaManagerConfig;exports.DocumentManagerPlugin=i.DocumentManagerPlugin;exports.getDocumentManagerConfig=i.getDocumentManagerConfig;exports.setDocumentManagerConfig=i.setDocumentManagerConfig;exports.CollaborationPlugin=k.CollaborationPlugin;
|