@lotte-innovate/ui-component-test 0.1.102 → 0.1.104

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. package/dist/lib/_virtual/_commonjsHelpers.mjs +2 -0
  2. package/dist/lib/_virtual/_commonjsHelpers.mjs.map +1 -0
  3. package/dist/lib/_virtual/icons.mjs +2 -0
  4. package/dist/lib/_virtual/icons.mjs.map +1 -0
  5. package/dist/lib/_virtual/index.mjs +1 -1
  6. package/dist/lib/_virtual/index10.mjs +2 -0
  7. package/dist/lib/_virtual/index10.mjs.map +1 -0
  8. package/dist/lib/_virtual/index11.mjs +2 -0
  9. package/dist/lib/_virtual/index11.mjs.map +1 -0
  10. package/dist/lib/_virtual/index12.mjs +2 -0
  11. package/dist/lib/_virtual/index12.mjs.map +1 -0
  12. package/dist/lib/_virtual/index13.mjs +2 -0
  13. package/dist/lib/_virtual/index13.mjs.map +1 -0
  14. package/dist/lib/_virtual/index14.mjs +2 -0
  15. package/dist/lib/_virtual/index14.mjs.map +1 -0
  16. package/dist/lib/_virtual/index15.mjs +2 -0
  17. package/dist/lib/_virtual/index15.mjs.map +1 -0
  18. package/dist/lib/_virtual/index16.mjs +2 -0
  19. package/dist/lib/_virtual/index16.mjs.map +1 -0
  20. package/dist/lib/_virtual/index17.mjs +2 -0
  21. package/dist/lib/_virtual/index17.mjs.map +1 -0
  22. package/dist/lib/_virtual/index18.mjs +2 -0
  23. package/dist/lib/_virtual/index18.mjs.map +1 -0
  24. package/dist/lib/_virtual/index2.mjs +1 -1
  25. package/dist/lib/_virtual/index3.mjs +1 -1
  26. package/dist/lib/_virtual/index4.mjs +2 -0
  27. package/dist/lib/_virtual/index4.mjs.map +1 -0
  28. package/dist/lib/_virtual/index5.mjs +2 -0
  29. package/dist/lib/_virtual/index5.mjs.map +1 -0
  30. package/dist/lib/_virtual/index6.mjs +2 -0
  31. package/dist/lib/_virtual/index6.mjs.map +1 -0
  32. package/dist/lib/_virtual/index7.mjs +2 -0
  33. package/dist/lib/_virtual/index7.mjs.map +1 -0
  34. package/dist/lib/_virtual/index8.mjs +2 -0
  35. package/dist/lib/_virtual/index8.mjs.map +1 -0
  36. package/dist/lib/_virtual/index9.mjs +2 -0
  37. package/dist/lib/_virtual/index9.mjs.map +1 -0
  38. package/dist/lib/_virtual/model.mjs +2 -0
  39. package/dist/lib/_virtual/model.mjs.map +1 -0
  40. package/dist/lib/_virtual/plugin.mjs +2 -0
  41. package/dist/lib/_virtual/plugin.mjs.map +1 -0
  42. package/dist/lib/_virtual/plugin2.mjs +2 -0
  43. package/dist/lib/_virtual/plugin2.mjs.map +1 -0
  44. package/dist/lib/_virtual/plugin3.mjs +2 -0
  45. package/dist/lib/_virtual/plugin3.mjs.map +1 -0
  46. package/dist/lib/_virtual/plugin4.mjs +2 -0
  47. package/dist/lib/_virtual/plugin4.mjs.map +1 -0
  48. package/dist/lib/_virtual/plugin5.mjs +2 -0
  49. package/dist/lib/_virtual/plugin5.mjs.map +1 -0
  50. package/dist/lib/_virtual/plugin6.mjs +2 -0
  51. package/dist/lib/_virtual/plugin6.mjs.map +1 -0
  52. package/dist/lib/_virtual/theme.mjs +2 -0
  53. package/dist/lib/_virtual/theme.mjs.map +1 -0
  54. package/dist/lib/_virtual/tinymce.mjs +1 -1
  55. package/dist/lib/components/Editor/index copy.d.ts +12 -0
  56. package/dist/lib/components/Editor/index copy.js +77 -0
  57. package/dist/lib/components/Editor/index.d.ts +14 -1
  58. package/dist/lib/components/Editor/index.js +33 -39
  59. package/dist/lib/dist/lib/components/Editor/index.mjs +1 -1
  60. package/dist/lib/index.css +3749 -0
  61. package/dist/lib/node_modules/tinymce/icons/default/icons.mjs +2 -0
  62. package/dist/lib/node_modules/tinymce/icons/default/icons.mjs.map +1 -0
  63. package/dist/lib/node_modules/tinymce/icons/default/index.mjs +2 -0
  64. package/dist/lib/node_modules/tinymce/icons/default/index.mjs.map +1 -0
  65. package/dist/lib/node_modules/tinymce/models/dom/index.mjs +2 -0
  66. package/dist/lib/node_modules/tinymce/models/dom/index.mjs.map +1 -0
  67. package/dist/lib/node_modules/tinymce/models/dom/model.mjs +2 -0
  68. package/dist/lib/node_modules/tinymce/models/dom/model.mjs.map +1 -0
  69. package/dist/lib/node_modules/tinymce/plugins/advlist/index.mjs +2 -0
  70. package/dist/lib/node_modules/tinymce/plugins/advlist/index.mjs.map +1 -0
  71. package/dist/lib/node_modules/tinymce/plugins/advlist/plugin.mjs +2 -0
  72. package/dist/lib/node_modules/tinymce/plugins/advlist/plugin.mjs.map +1 -0
  73. package/dist/lib/node_modules/tinymce/plugins/code/index.mjs +2 -0
  74. package/dist/lib/node_modules/tinymce/plugins/code/index.mjs.map +1 -0
  75. package/dist/lib/node_modules/tinymce/plugins/code/plugin.mjs +2 -0
  76. package/dist/lib/node_modules/tinymce/plugins/code/plugin.mjs.map +1 -0
  77. package/dist/lib/node_modules/tinymce/plugins/emoticons/index.mjs +2 -0
  78. package/dist/lib/node_modules/tinymce/plugins/emoticons/index.mjs.map +1 -0
  79. package/dist/lib/node_modules/tinymce/plugins/emoticons/js/emojis.mjs +2 -0
  80. package/dist/lib/node_modules/tinymce/plugins/emoticons/js/emojis.mjs.map +1 -0
  81. package/dist/lib/node_modules/tinymce/plugins/emoticons/plugin.mjs +2 -0
  82. package/dist/lib/node_modules/tinymce/plugins/emoticons/plugin.mjs.map +1 -0
  83. package/dist/lib/node_modules/tinymce/plugins/link/index.mjs +2 -0
  84. package/dist/lib/node_modules/tinymce/plugins/link/index.mjs.map +1 -0
  85. package/dist/lib/node_modules/tinymce/plugins/link/plugin.mjs +2 -0
  86. package/dist/lib/node_modules/tinymce/plugins/link/plugin.mjs.map +1 -0
  87. package/dist/lib/node_modules/tinymce/plugins/lists/index.mjs +2 -0
  88. package/dist/lib/node_modules/tinymce/plugins/lists/index.mjs.map +1 -0
  89. package/dist/lib/node_modules/tinymce/plugins/lists/plugin.mjs +2 -0
  90. package/dist/lib/node_modules/tinymce/plugins/lists/plugin.mjs.map +1 -0
  91. package/dist/lib/node_modules/tinymce/plugins/table/index.mjs +2 -0
  92. package/dist/lib/node_modules/tinymce/plugins/table/index.mjs.map +1 -0
  93. package/dist/lib/node_modules/tinymce/plugins/table/plugin.mjs +2 -0
  94. package/dist/lib/node_modules/tinymce/plugins/table/plugin.mjs.map +1 -0
  95. package/dist/lib/node_modules/tinymce/themes/silver/index.mjs +2 -0
  96. package/dist/lib/node_modules/tinymce/themes/silver/index.mjs.map +1 -0
  97. package/dist/lib/node_modules/tinymce/themes/silver/theme.mjs +2 -0
  98. package/dist/lib/node_modules/tinymce/themes/silver/theme.mjs.map +1 -0
  99. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  100. package/dist/tsconfig.tsbuildinfo +1 -1
  101. package/package.json +1 -1
  102. package/dist/lib/_virtual/react-is.development.mjs +0 -2
  103. package/dist/lib/_virtual/react-is.development.mjs.map +0 -1
  104. package/dist/lib/_virtual/react-is.production.min.mjs +0 -2
  105. package/dist/lib/_virtual/react-is.production.min.mjs.map +0 -1
  106. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.mjs +0 -2
  107. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.mjs.map +0 -1
  108. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.mjs +0 -2
  109. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.mjs.map +0 -1
  110. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.mjs +0 -2
  111. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.mjs.map +0 -1
  112. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs +0 -2
  113. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs.map +0 -1
  114. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.mjs +0 -2
  115. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.mjs.map +0 -1
  116. package/dist/lib/node_modules/marked/lib/marked.esm.mjs +0 -2
  117. package/dist/lib/node_modules/marked/lib/marked.esm.mjs.map +0 -1
  118. package/dist/lib/node_modules/object-assign/index.mjs +0 -7
  119. package/dist/lib/node_modules/object-assign/index.mjs.map +0 -1
  120. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs +0 -2
  121. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs.map +0 -1
  122. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs +0 -2
  123. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs.map +0 -1
  124. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs +0 -2
  125. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs.map +0 -1
  126. package/dist/lib/node_modules/prop-types/index.mjs +0 -2
  127. package/dist/lib/node_modules/prop-types/index.mjs.map +0 -1
  128. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +0 -2
  129. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs.map +0 -1
  130. package/dist/lib/node_modules/prop-types/lib/has.mjs +0 -2
  131. package/dist/lib/node_modules/prop-types/lib/has.mjs.map +0 -1
  132. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs +0 -10
  133. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs.map +0 -1
  134. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs +0 -10
  135. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs.map +0 -1
  136. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs +0 -2
  137. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs.map +0 -1
@@ -0,0 +1,2 @@
1
+ import{__exports as r}from"../../../../_virtual/index2.mjs";import{__require as e}from"./plugin.mjs";var i;function o(){return i||(i=1,e()),r}export{o as __require};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../node_modules/tinymce/plugins/advlist/index.js"],"sourcesContent":["// Exports the \"advlist\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/advlist')\n// ES2015:\n// import 'tinymce/plugins/advlist'\nrequire('./plugin.js');"],"names":["require$$0"],"mappings":"uIAMsBA"}
@@ -0,0 +1,2 @@
1
+ import{__exports as t}from"../../../../_virtual/plugin.mjs";var e;function s(){return e||(e=1,function(){var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(t,e,s)=>{const r="UL"===e?"InsertUnorderedList":"InsertOrderedList";t.execCommand(r,!1,!1===s?null:{"list-style-type":s})},s=t=>e=>e.options.get(t),r=s("advlist_number_styles"),n=s("advlist_bullet_styles"),i=t=>null==t,l=t=>!i(t);var o=tinymce.util.Tools.resolve("tinymce.util.Tools");class a{constructor(t,e){this.tag=t,this.value=e}static some(t){return new a(!0,t)}static none(){return a.singletonNone}fold(t,e){return this.tag?e(this.value):t()}isSome(){return this.tag}isNone(){return!this.tag}map(t){return this.tag?a.some(t(this.value)):a.none()}bind(t){return this.tag?t(this.value):a.none()}exists(t){return this.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:a.none()}getOr(t){return this.tag?this.value:t}or(t){return this.tag?this:t}getOrThunk(t){return this.tag?this.value:t()}orThunk(t){return this.tag?this:t()}getOrDie(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}static from(t){return l(t)?a.some(t):a.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(t){this.tag&&t(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}a.singletonNone=new a(!1);const u=t=>e=>l(e)&&t.test(e.nodeName),d=u(/^(OL|UL|DL)$/),g=u(/^(TH|TD)$/),c=(t,e,s)=>((t,e,s)=>{for(let r=0,n=t.length;r<n;r++){const n=t[r];if(e(n,r))return a.some(n);if(s(n,r))break}return a.none()})(e,(t=>d(t)&&!/\btox\-/.test(t.className)),g).exists((e=>e.nodeName===s&&((t,e)=>t.dom.isChildOf(e,t.getBody()))(t,e))),h=t=>i(t)||"default"===t?"":t,m=(t,e)=>s=>((t,e)=>{const s=t.selection.getNode();return e({parents:t.dom.getParents(s),element:s}),t.on("NodeChange",e),()=>t.off("NodeChange",e)})(t,(r=>((t,r)=>{const n=t.selection.getStart(!0);s.setActive(c(t,r,e)),s.setEnabled(!((t,e)=>{const s=t.dom.getParent(e,"ol,ul,dl");return((t,e)=>null!==e&&!t.dom.isEditable(e))(t,s)&&t.selection.isEditable()})(t,n)&&t.selection.isEditable())})(t,r.parents))),p=(t,s,r,n,i,l)=>{t.ui.registry.addSplitButton(s,{tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:t=>{t(o.map(l,(t=>{const e="OL"===i?"num":"bull",s="disc"===t||"decimal"===t?"default":t,r=h(t),n=(t=>t.replace(/\-/g," ").replace(/\b\w/g,(t=>t.toUpperCase())))(t);return{type:"choiceitem",value:r,icon:"list-"+e+"-"+s,text:n}})))},onAction:()=>t.execCommand(n),onItemAction:(s,r)=>{e(t,i,r)},select:e=>{const s=(t=>{const e=t.dom.getParent(t.selection.getNode(),"ol,ul"),s=t.dom.getStyle(e,"listStyleType");return a.from(s)})(t);return s.map((t=>e===t)).getOr(!1)},onSetup:m(t,i)})},v=(t,s,r,n,i,l)=>{l.length>1?p(t,s,r,n,i,l):((t,s,r,n,i,l)=>{t.ui.registry.addToggleButton(s,{active:!1,tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:m(t,i),onAction:()=>t.queryCommandState(n)||""===l?t.execCommand(n):e(t,i,l)})})(t,s,r,n,i,h(l[0]))};t.add("advlist",(t=>{t.hasPlugin("lists")?((t=>{const e=t.options.register;e("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),e("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})})(t),(t=>{v(t,"numlist","Numbered list","InsertOrderedList","OL",r(t)),v(t,"bullist","Bullet list","InsertUnorderedList","UL",n(t))})(t),(t=>{t.addCommand("ApplyUnorderedListStyle",((s,r)=>{e(t,"UL",r["list-style-type"])})),t.addCommand("ApplyOrderedListStyle",((s,r)=>{e(t,"OL",r["list-style-type"])}))})(t)):console.error("Please use the Lists plugin together with the Advanced List plugin.")}))}()),t}export{s as __require};
2
+ //# sourceMappingURL=plugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.mjs","sources":["../../../../../../node_modules/tinymce/plugins/advlist/plugin.js"],"sourcesContent":["/**\n * TinyMCE version 6.8.5 (TBD)\n */\n\n(function () {\n 'use strict';\n\n var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');\n\n const applyListFormat = (editor, listName, styleValue) => {\n const cmd = listName === 'UL' ? 'InsertUnorderedList' : 'InsertOrderedList';\n editor.execCommand(cmd, false, styleValue === false ? null : { 'list-style-type': styleValue });\n };\n\n const register$2 = editor => {\n editor.addCommand('ApplyUnorderedListStyle', (ui, value) => {\n applyListFormat(editor, 'UL', value['list-style-type']);\n });\n editor.addCommand('ApplyOrderedListStyle', (ui, value) => {\n applyListFormat(editor, 'OL', value['list-style-type']);\n });\n };\n\n const option = name => editor => editor.options.get(name);\n const register$1 = editor => {\n const registerOption = editor.options.register;\n registerOption('advlist_number_styles', {\n processor: 'string[]',\n default: 'default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman'.split(',')\n });\n registerOption('advlist_bullet_styles', {\n processor: 'string[]',\n default: 'default,circle,square'.split(',')\n });\n };\n const getNumberStyles = option('advlist_number_styles');\n const getBulletStyles = option('advlist_bullet_styles');\n\n const isNullable = a => a === null || a === undefined;\n const isNonNullable = a => !isNullable(a);\n\n var global = tinymce.util.Tools.resolve('tinymce.util.Tools');\n\n class Optional {\n constructor(tag, value) {\n this.tag = tag;\n this.value = value;\n }\n static some(value) {\n return new Optional(true, value);\n }\n static none() {\n return Optional.singletonNone;\n }\n fold(onNone, onSome) {\n if (this.tag) {\n return onSome(this.value);\n } else {\n return onNone();\n }\n }\n isSome() {\n return this.tag;\n }\n isNone() {\n return !this.tag;\n }\n map(mapper) {\n if (this.tag) {\n return Optional.some(mapper(this.value));\n } else {\n return Optional.none();\n }\n }\n bind(binder) {\n if (this.tag) {\n return binder(this.value);\n } else {\n return Optional.none();\n }\n }\n exists(predicate) {\n return this.tag && predicate(this.value);\n }\n forall(predicate) {\n return !this.tag || predicate(this.value);\n }\n filter(predicate) {\n if (!this.tag || predicate(this.value)) {\n return this;\n } else {\n return Optional.none();\n }\n }\n getOr(replacement) {\n return this.tag ? this.value : replacement;\n }\n or(replacement) {\n return this.tag ? this : replacement;\n }\n getOrThunk(thunk) {\n return this.tag ? this.value : thunk();\n }\n orThunk(thunk) {\n return this.tag ? this : thunk();\n }\n getOrDie(message) {\n if (!this.tag) {\n throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');\n } else {\n return this.value;\n }\n }\n static from(value) {\n return isNonNullable(value) ? Optional.some(value) : Optional.none();\n }\n getOrNull() {\n return this.tag ? this.value : null;\n }\n getOrUndefined() {\n return this.value;\n }\n each(worker) {\n if (this.tag) {\n worker(this.value);\n }\n }\n toArray() {\n return this.tag ? [this.value] : [];\n }\n toString() {\n return this.tag ? `some(${ this.value })` : 'none()';\n }\n }\n Optional.singletonNone = new Optional(false);\n\n const findUntil = (xs, pred, until) => {\n for (let i = 0, len = xs.length; i < len; i++) {\n const x = xs[i];\n if (pred(x, i)) {\n return Optional.some(x);\n } else if (until(x, i)) {\n break;\n }\n }\n return Optional.none();\n };\n\n const isCustomList = list => /\\btox\\-/.test(list.className);\n const isChildOfBody = (editor, elm) => {\n return editor.dom.isChildOf(elm, editor.getBody());\n };\n const matchNodeNames = regex => node => isNonNullable(node) && regex.test(node.nodeName);\n const isListNode = matchNodeNames(/^(OL|UL|DL)$/);\n const isTableCellNode = matchNodeNames(/^(TH|TD)$/);\n const inList = (editor, parents, nodeName) => findUntil(parents, parent => isListNode(parent) && !isCustomList(parent), isTableCellNode).exists(list => list.nodeName === nodeName && isChildOfBody(editor, list));\n const getSelectedStyleType = editor => {\n const listElm = editor.dom.getParent(editor.selection.getNode(), 'ol,ul');\n const style = editor.dom.getStyle(listElm, 'listStyleType');\n return Optional.from(style);\n };\n const isWithinNonEditable = (editor, element) => element !== null && !editor.dom.isEditable(element);\n const isWithinNonEditableList = (editor, element) => {\n const parentList = editor.dom.getParent(element, 'ol,ul,dl');\n return isWithinNonEditable(editor, parentList) && editor.selection.isEditable();\n };\n const setNodeChangeHandler = (editor, nodeChangeHandler) => {\n const initialNode = editor.selection.getNode();\n nodeChangeHandler({\n parents: editor.dom.getParents(initialNode),\n element: initialNode\n });\n editor.on('NodeChange', nodeChangeHandler);\n return () => editor.off('NodeChange', nodeChangeHandler);\n };\n\n const styleValueToText = styleValue => {\n return styleValue.replace(/\\-/g, ' ').replace(/\\b\\w/g, chr => {\n return chr.toUpperCase();\n });\n };\n const normalizeStyleValue = styleValue => isNullable(styleValue) || styleValue === 'default' ? '' : styleValue;\n const makeSetupHandler = (editor, nodeName) => api => {\n const updateButtonState = (editor, parents) => {\n const element = editor.selection.getStart(true);\n api.setActive(inList(editor, parents, nodeName));\n api.setEnabled(!isWithinNonEditableList(editor, element) && editor.selection.isEditable());\n };\n const nodeChangeHandler = e => updateButtonState(editor, e.parents);\n return setNodeChangeHandler(editor, nodeChangeHandler);\n };\n const addSplitButton = (editor, id, tooltip, cmd, nodeName, styles) => {\n editor.ui.registry.addSplitButton(id, {\n tooltip,\n icon: nodeName === 'OL' ? 'ordered-list' : 'unordered-list',\n presets: 'listpreview',\n columns: 3,\n fetch: callback => {\n const items = global.map(styles, styleValue => {\n const iconStyle = nodeName === 'OL' ? 'num' : 'bull';\n const iconName = styleValue === 'disc' || styleValue === 'decimal' ? 'default' : styleValue;\n const itemValue = normalizeStyleValue(styleValue);\n const displayText = styleValueToText(styleValue);\n return {\n type: 'choiceitem',\n value: itemValue,\n icon: 'list-' + iconStyle + '-' + iconName,\n text: displayText\n };\n });\n callback(items);\n },\n onAction: () => editor.execCommand(cmd),\n onItemAction: (_splitButtonApi, value) => {\n applyListFormat(editor, nodeName, value);\n },\n select: value => {\n const listStyleType = getSelectedStyleType(editor);\n return listStyleType.map(listStyle => value === listStyle).getOr(false);\n },\n onSetup: makeSetupHandler(editor, nodeName)\n });\n };\n const addButton = (editor, id, tooltip, cmd, nodeName, styleValue) => {\n editor.ui.registry.addToggleButton(id, {\n active: false,\n tooltip,\n icon: nodeName === 'OL' ? 'ordered-list' : 'unordered-list',\n onSetup: makeSetupHandler(editor, nodeName),\n onAction: () => editor.queryCommandState(cmd) || styleValue === '' ? editor.execCommand(cmd) : applyListFormat(editor, nodeName, styleValue)\n });\n };\n const addControl = (editor, id, tooltip, cmd, nodeName, styles) => {\n if (styles.length > 1) {\n addSplitButton(editor, id, tooltip, cmd, nodeName, styles);\n } else {\n addButton(editor, id, tooltip, cmd, nodeName, normalizeStyleValue(styles[0]));\n }\n };\n const register = editor => {\n addControl(editor, 'numlist', 'Numbered list', 'InsertOrderedList', 'OL', getNumberStyles(editor));\n addControl(editor, 'bullist', 'Bullet list', 'InsertUnorderedList', 'UL', getBulletStyles(editor));\n };\n\n var Plugin = () => {\n global$1.add('advlist', editor => {\n if (editor.hasPlugin('lists')) {\n register$1(editor);\n register(editor);\n register$2(editor);\n } else {\n console.error('Please use the Lists plugin together with the Advanced List plugin.');\n }\n });\n };\n\n Plugin();\n\n})();\n"],"names":["global$1","tinymce","util","Tools","resolve","applyListFormat","editor","listName","styleValue","cmd","execCommand","option","name","options","get","getNumberStyles","getBulletStyles","isNullable","a","isNonNullable","global","Optional","constructor","tag","value","this","some","none","singletonNone","fold","onNone","onSome","isSome","isNone","map","mapper","bind","binder","exists","predicate","forall","filter","getOr","replacement","or","getOrThunk","thunk","orThunk","getOrDie","message","Error","from","getOrNull","getOrUndefined","each","worker","toArray","toString","matchNodeNames","regex","node","test","nodeName","isListNode","isTableCellNode","inList","parents","xs","pred","until","i","len","length","x","findUntil","parent","className","list","elm","dom","isChildOf","getBody","isChildOfBody","normalizeStyleValue","makeSetupHandler","api","nodeChangeHandler","initialNode","selection","getNode","getParents","element","on","off","setNodeChangeHandler","e","getStart","setActive","setEnabled","parentList","getParent","isEditable","isWithinNonEditable","isWithinNonEditableList","updateButtonState","addSplitButton","id","tooltip","styles","ui","registry","icon","presets","columns","fetch","callback","iconStyle","iconName","itemValue","displayText","replace","chr","toUpperCase","styleValueToText","type","text","onAction","onItemAction","_splitButtonApi","select","listStyleType","listElm","style","getStyle","getSelectedStyleType","listStyle","onSetup","addControl","addToggleButton","active","queryCommandState","addButton","add","hasPlugin","registerOption","register","processor","default","split","register$1","addCommand","register$2","console","error"],"mappings":"8FAIA,WAGI,IAAIA,EAAWC,QAAQC,KAAKC,MAAMC,QAAQ,yBAE1C,MAAMC,EAAkB,CAACC,EAAQC,EAAUC,KACzC,MAAMC,EAAmB,OAAbF,EAAoB,sBAAwB,oBACxDD,EAAOI,YAAYD,GAAK,GAAsB,IAAfD,EAAuB,KAAO,CAAE,kBAAmBA,GAAa,EAY3FG,EAASC,GAAQN,GAAUA,EAAOO,QAAQC,IAAIF,GAY9CG,EAAkBJ,EAAO,yBACzBK,EAAkBL,EAAO,yBAEzBM,EAAaC,GAAKA,QAClBC,EAAgBD,IAAMD,EAAWC,GAEvC,IAAIE,EAASnB,QAAQC,KAAKC,MAAMC,QAAQ,sBAExC,MAAMiB,EACJ,WAAAC,CAAYC,EAAKC,GACfC,KAAKF,IAAMA,EACXE,KAAKD,MAAQA,CACrB,CACM,WAAOE,CAAKF,GACV,OAAO,IAAIH,GAAS,EAAMG,EAClC,CACM,WAAOG,GACL,OA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QAAQC,MAAM,sEACxB,GAMC,CA9PD"}
@@ -0,0 +1,2 @@
1
+ import{__exports as r}from"../../../../_virtual/index8.mjs";import{__require as e}from"./plugin.mjs";var i;function o(){return i||(i=1,e()),r}export{o as __require};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../node_modules/tinymce/plugins/code/index.js"],"sourcesContent":["// Exports the \"code\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/code')\n// ES2015:\n// import 'tinymce/plugins/code'\nrequire('./plugin.js');"],"names":["require$$0"],"mappings":"uIAMsBA"}
@@ -0,0 +1,2 @@
1
+ import{__exports as e}from"../../../../_virtual/plugin3.mjs";var o;function t(){return o||(o=1,tinymce.util.Tools.resolve("tinymce.PluginManager").add("code",(e=>((e=>{e.addCommand("mceCodeEditor",(()=>{(e=>{const o=(e=>e.getContent({source_view:!0}))(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:o},onSubmit:o=>{((e,o)=>{e.focus(),e.undoManager.transact((()=>{e.setContent(o)})),e.selection.setCursorLocation(),e.nodeChanged()})(e,o.getData().code),o.close()}})})(e)}))})(e),(e=>{const o=()=>e.execCommand("mceCodeEditor");e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:o}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:o})})(e),{})))),e}export{t as __require};
2
+ //# sourceMappingURL=plugin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.mjs","sources":["../../../../../../node_modules/tinymce/plugins/code/plugin.js"],"sourcesContent":["/**\n * TinyMCE version 6.8.5 (TBD)\n */\n\n(function () {\n 'use strict';\n\n var global = tinymce.util.Tools.resolve('tinymce.PluginManager');\n\n const setContent = (editor, html) => {\n editor.focus();\n editor.undoManager.transact(() => {\n editor.setContent(html);\n });\n editor.selection.setCursorLocation();\n editor.nodeChanged();\n };\n const getContent = editor => {\n return editor.getContent({ source_view: true });\n };\n\n const open = editor => {\n const editorContent = getContent(editor);\n editor.windowManager.open({\n title: 'Source Code',\n size: 'large',\n body: {\n type: 'panel',\n items: [{\n type: 'textarea',\n name: 'code'\n }]\n },\n buttons: [\n {\n type: 'cancel',\n name: 'cancel',\n text: 'Cancel'\n },\n {\n type: 'submit',\n name: 'save',\n text: 'Save',\n primary: true\n }\n ],\n initialData: { code: editorContent },\n onSubmit: api => {\n setContent(editor, api.getData().code);\n api.close();\n }\n });\n };\n\n const register$1 = editor => {\n editor.addCommand('mceCodeEditor', () => {\n open(editor);\n });\n };\n\n const register = editor => {\n const onAction = () => editor.execCommand('mceCodeEditor');\n editor.ui.registry.addButton('code', {\n icon: 'sourcecode',\n tooltip: 'Source code',\n onAction\n });\n editor.ui.registry.addMenuItem('code', {\n icon: 'sourcecode',\n text: 'Source code',\n onAction\n });\n };\n\n var Plugin = () => {\n global.add('code', editor => {\n register$1(editor);\n register(editor);\n return {};\n });\n };\n\n Plugin();\n\n})();\n"],"names":["tinymce","util","Tools","resolve","add","editor","addCommand","editorContent","getContent","source_view","windowManager","open","title","size","body","type","items","name","buttons","text","primary","initialData","code","onSubmit","api","html","focus","undoManager","transact","setContent","selection","setCursorLocation","nodeChanged","getData","close","register$1","onAction","execCommand","ui","registry","addButton","icon","tooltip","addMenuItem","register"],"mappings":"+FAOiBA,QAAQC,KAAKC,MAAMC,QAAQ,yBAoE/BC,IAAI,QAAQC,IArBFA,KACjBA,EAAOC,WAAW,iBAAiB,KAlCxBD,KACX,MAAME,EALWF,IACVA,EAAOG,WAAW,CAAEC,aAAa,IAIlBD,CAAWH,GACjCA,EAAOK,cAAcC,KAAK,CACxBC,MAAO,cACPC,KAAM,QACNC,KAAM,CACJC,KAAM,QACNC,MAAO,CAAC,CACJD,KAAM,WACNE,KAAM,UAGZC,QAAS,CACP,CACEH,KAAM,SACNE,KAAM,SACNE,KAAM,UAER,CACEJ,KAAM,SACNE,KAAM,OACNE,KAAM,OACNC,SAAS,IAGbC,YAAa,CAAEC,KAAMf,GACrBgB,SAAUC,IAtCK,EAACnB,EAAQoB,KAC1BpB,EAAOqB,QACPrB,EAAOsB,YAAYC,UAAS,KAC1BvB,EAAOwB,WAAWJ,EAAK,IAEzBpB,EAAOyB,UAAUC,oBACjB1B,EAAO2B,aAAa,EAiChBH,CAAWxB,EAAQmB,EAAIS,UAAUX,MACjCE,EAAIU,OAAO,GAEb,EAKAvB,CAAKN,EAAO,GACZ,EAmBA8B,CAAW9B,GAhBEA,KACf,MAAM+B,EAAW,IAAM/B,EAAOgC,YAAY,iBAC1ChC,EAAOiC,GAAGC,SAASC,UAAU,OAAQ,CACnCC,KAAM,aACNC,QAAS,cACTN,aAEF/B,EAAOiC,GAAGC,SAASI,YAAY,OAAQ,CACrCF,KAAM,aACNtB,KAAM,cACNiB,YACA,EAMAQ,CAASvC,GACF"}
@@ -0,0 +1,2 @@
1
+ import{__exports as r}from"../../../../_virtual/index4.mjs";import{__require as e}from"./plugin.mjs";var i;function o(){return i||(i=1,e()),r}export{o as __require};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../node_modules/tinymce/plugins/emoticons/index.js"],"sourcesContent":["// Exports the \"emoticons\" plugin for usage with module loaders\n// Usage:\n// CommonJS:\n// require('tinymce/plugins/emoticons')\n// ES2015:\n// import 'tinymce/plugins/emoticons'\nrequire('./plugin.js');"],"names":["require$$0"],"mappings":"uIAMsBA"}