@lotte-innovate/ui-component-test 0.0.108 → 0.0.110

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. package/dist/lib/components/Avatar/index.js +1 -1
  2. package/dist/lib/components/ContextMenu/ContextMenuItem.js +1 -1
  3. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +1 -1
  4. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +1 -1
  5. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
  6. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +1 -1
  7. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +1 -1
  8. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
  9. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +1 -1
  10. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +1 -1
  11. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +1 -1
  12. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
  13. package/dist/lib/components/Editor/index.js +1 -1
  14. package/dist/lib/components/Editor/index.mjs +1 -1
  15. package/dist/lib/components/HoverCard/HoverCardContent.js +1 -1
  16. package/dist/lib/components/IconButton/index.js +1 -1
  17. package/dist/lib/components/Menubar/MenubarItem.js +1 -1
  18. package/dist/lib/components/Menubar/MenubarSeparator.js +1 -1
  19. package/dist/lib/components/Menubar/MenubarSeparator.mjs +1 -1
  20. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
  21. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  22. package/dist/tsconfig.tsbuildinfo +1 -1
  23. package/package.json +1 -2
  24. package/dist/public/tinymce/icons/default/icons.d.ts +0 -0
  25. package/dist/public/tinymce/icons/default/icons.js +0 -195
  26. package/dist/public/tinymce/icons/default/index.d.ts +0 -1
  27. package/dist/public/tinymce/icons/default/index.js +0 -8
  28. package/dist/public/tinymce/models/dom/index.d.ts +0 -1
  29. package/dist/public/tinymce/models/dom/index.js +0 -8
  30. package/dist/public/tinymce/models/dom/model.d.ts +0 -0
  31. package/dist/public/tinymce/models/dom/model.js +0 -7988
  32. package/dist/public/tinymce/plugins/advlist/index.d.ts +0 -1
  33. package/dist/public/tinymce/plugins/advlist/index.js +0 -8
  34. package/dist/public/tinymce/plugins/advlist/plugin.d.ts +0 -0
  35. package/dist/public/tinymce/plugins/advlist/plugin.js +0 -255
  36. package/dist/public/tinymce/plugins/autolink/index.d.ts +0 -1
  37. package/dist/public/tinymce/plugins/autolink/index.js +0 -8
  38. package/dist/public/tinymce/plugins/autolink/plugin.d.ts +0 -0
  39. package/dist/public/tinymce/plugins/autolink/plugin.js +0 -221
  40. package/dist/public/tinymce/plugins/code/index.d.ts +0 -1
  41. package/dist/public/tinymce/plugins/code/index.js +0 -8
  42. package/dist/public/tinymce/plugins/code/plugin.d.ts +0 -0
  43. package/dist/public/tinymce/plugins/code/plugin.js +0 -77
  44. package/dist/public/tinymce/plugins/codesample/index.d.ts +0 -1
  45. package/dist/public/tinymce/plugins/codesample/index.js +0 -8
  46. package/dist/public/tinymce/plugins/codesample/plugin.d.ts +0 -45
  47. package/dist/public/tinymce/plugins/codesample/plugin.js +0 -2462
  48. package/dist/public/tinymce/plugins/image/index.d.ts +0 -1
  49. package/dist/public/tinymce/plugins/image/index.js +0 -8
  50. package/dist/public/tinymce/plugins/image/plugin.d.ts +0 -0
  51. package/dist/public/tinymce/plugins/image/plugin.js +0 -1523
  52. package/dist/public/tinymce/plugins/link/index.d.ts +0 -1
  53. package/dist/public/tinymce/plugins/link/index.js +0 -8
  54. package/dist/public/tinymce/plugins/link/plugin.d.ts +0 -0
  55. package/dist/public/tinymce/plugins/link/plugin.js +0 -1246
  56. package/dist/public/tinymce/plugins/lists/index.d.ts +0 -1
  57. package/dist/public/tinymce/plugins/lists/index.js +0 -8
  58. package/dist/public/tinymce/plugins/lists/plugin.d.ts +0 -0
  59. package/dist/public/tinymce/plugins/lists/plugin.js +0 -2191
  60. package/dist/public/tinymce/plugins/table/index.d.ts +0 -1
  61. package/dist/public/tinymce/plugins/table/index.js +0 -8
  62. package/dist/public/tinymce/plugins/table/plugin.d.ts +0 -0
  63. package/dist/public/tinymce/plugins/table/plugin.js +0 -3399
  64. package/dist/public/tinymce/skins/content/default/content.d.ts +0 -0
  65. package/dist/public/tinymce/skins/content/default/content.js +0 -3
  66. package/dist/public/tinymce/skins/ui/oxide/content.d.ts +0 -0
  67. package/dist/public/tinymce/skins/ui/oxide/content.inline.d.ts +0 -0
  68. package/dist/public/tinymce/skins/ui/oxide/content.inline.js +0 -3
  69. package/dist/public/tinymce/skins/ui/oxide/content.js +0 -3
  70. package/dist/public/tinymce/skins/ui/oxide/skin.d.ts +0 -0
  71. package/dist/public/tinymce/skins/ui/oxide/skin.js +0 -3
  72. package/dist/public/tinymce/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  73. package/dist/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -3
  74. package/dist/public/tinymce/skins/ui/oxide-dark/content.d.ts +0 -0
  75. package/dist/public/tinymce/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  76. package/dist/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -3
  77. package/dist/public/tinymce/skins/ui/oxide-dark/content.js +0 -3
  78. package/dist/public/tinymce/skins/ui/oxide-dark/skin.d.ts +0 -0
  79. package/dist/public/tinymce/skins/ui/oxide-dark/skin.js +0 -3
  80. package/dist/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  81. package/dist/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -3
  82. package/dist/public/tinymce/themes/silver/index.d.ts +0 -1
  83. package/dist/public/tinymce/themes/silver/index.js +0 -8
  84. package/dist/public/tinymce/themes/silver/theme.d.ts +0 -0
  85. package/dist/public/tinymce/themes/silver/theme.js +0 -29731
  86. package/dist/public/tinymce/tinymce.d.ts +0 -1
  87. package/dist/public/tinymce/tinymce.js +0 -31974
  88. package/public/tinymce/CHANGELOG.md +0 -3453
  89. package/public/tinymce/README.md +0 -73
  90. package/public/tinymce/bower.json +0 -27
  91. package/public/tinymce/composer.json +0 -52
  92. package/public/tinymce/icons/default/icons.js +0 -194
  93. package/public/tinymce/icons/default/icons.min.js +0 -1
  94. package/public/tinymce/icons/default/index.js +0 -7
  95. package/public/tinymce/license.txt +0 -21
  96. package/public/tinymce/models/dom/index.js +0 -7
  97. package/public/tinymce/models/dom/model.js +0 -8040
  98. package/public/tinymce/models/dom/model.min.js +0 -4
  99. package/public/tinymce/package.json +0 -32
  100. package/public/tinymce/plugins/advlist/index.js +0 -7
  101. package/public/tinymce/plugins/advlist/plugin.js +0 -259
  102. package/public/tinymce/plugins/advlist/plugin.min.js +0 -4
  103. package/public/tinymce/plugins/autolink/index.js +0 -7
  104. package/public/tinymce/plugins/autolink/plugin.js +0 -228
  105. package/public/tinymce/plugins/autolink/plugin.min.js +0 -4
  106. package/public/tinymce/plugins/code/index.js +0 -7
  107. package/public/tinymce/plugins/code/plugin.js +0 -85
  108. package/public/tinymce/plugins/code/plugin.min.js +0 -4
  109. package/public/tinymce/plugins/codesample/index.js +0 -7
  110. package/public/tinymce/plugins/codesample/plugin.js +0 -2463
  111. package/public/tinymce/plugins/codesample/plugin.min.js +0 -4
  112. package/public/tinymce/plugins/image/index.js +0 -7
  113. package/public/tinymce/plugins/image/plugin.js +0 -1505
  114. package/public/tinymce/plugins/image/plugin.min.js +0 -4
  115. package/public/tinymce/plugins/link/index.js +0 -7
  116. package/public/tinymce/plugins/link/plugin.js +0 -1242
  117. package/public/tinymce/plugins/link/plugin.min.js +0 -4
  118. package/public/tinymce/plugins/lists/index.js +0 -7
  119. package/public/tinymce/plugins/lists/plugin.js +0 -2172
  120. package/public/tinymce/plugins/lists/plugin.min.js +0 -4
  121. package/public/tinymce/plugins/table/index.js +0 -7
  122. package/public/tinymce/plugins/table/plugin.js +0 -3462
  123. package/public/tinymce/plugins/table/plugin.min.js +0 -4
  124. package/public/tinymce/skins/content/default/content.css +0 -61
  125. package/public/tinymce/skins/content/default/content.js +0 -2
  126. package/public/tinymce/skins/content/default/content.min.css +0 -1
  127. package/public/tinymce/skins/ui/oxide/content.css +0 -785
  128. package/public/tinymce/skins/ui/oxide/content.inline.css +0 -779
  129. package/public/tinymce/skins/ui/oxide/content.inline.js +0 -2
  130. package/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
  131. package/public/tinymce/skins/ui/oxide/content.js +0 -2
  132. package/public/tinymce/skins/ui/oxide/content.min.css +0 -1
  133. package/public/tinymce/skins/ui/oxide/skin.css +0 -3763
  134. package/public/tinymce/skins/ui/oxide/skin.js +0 -2
  135. package/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  136. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  137. package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
  138. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  139. package/public/tinymce/skins/ui/oxide-dark/content.css +0 -766
  140. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  141. package/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
  142. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
  143. package/public/tinymce/skins/ui/oxide-dark/content.js +0 -2
  144. package/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
  145. package/public/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  146. package/public/tinymce/skins/ui/oxide-dark/skin.js +0 -2
  147. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  148. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  149. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
  150. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  151. package/public/tinymce/themes/silver/index.js +0 -7
  152. package/public/tinymce/themes/silver/theme.js +0 -30775
  153. package/public/tinymce/themes/silver/theme.min.js +0 -384
  154. package/public/tinymce/tinymce.d.ts +0 -3238
  155. package/public/tinymce/tinymce.js +0 -31779
  156. package/public/tinymce/tinymce.min.js +0 -384
@@ -1,4 +0,0 @@
1
- /**
2
- * TinyMCE version 6.8.5 (TBD)
3
- */
4
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(l=o.constructor)||void 0===l?void 0:l.name)===r.name)?"string":t;var n,o,r,l})(t)===e,n=e=>t=>typeof t===e,o=t("string"),r=t("object"),l=t("array"),i=(null,e=>null===e);const a=n("boolean"),s=e=>!(e=>null==e)(e),c=n("function"),u=(e,t)=>{if(l(e)){for(let n=0,o=e.length;n<o;++n)if(!t(e[n]))return!1;return!0}return!1},g=()=>{},d=(e,t)=>e===t;class m{constructor(e,t){this.tag=e,this.value=t}static some(e){return new m(!0,e)}static none(){return m.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?m.some(e(this.value)):m.none()}bind(e){return this.tag?e(this.value):m.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:m.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return s(e)?m.some(e):m.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}m.singletonNone=new m(!1);const h=Array.prototype.indexOf,f=Array.prototype.push,p=e=>{const t=[];for(let n=0,o=e.length;n<o;++n){if(!l(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);f.apply(t,e[n])}return t},k=(e,t)=>{for(let n=0;n<e.length;n++){const o=t(e[n],n);if(o.isSome())return o}return m.none()},v=(e,t,n=d)=>e.exists((e=>n(e,t))),x=e=>{const t=[],n=e=>{t.push(e)};for(let t=0;t<e.length;t++)e[t].each(n);return t},y=(e,t)=>e?m.some(t):m.none(),b=e=>t=>t.options.get(e),_=b("link_assume_external_targets"),w=b("link_context_toolbar"),C=b("link_list"),O=b("link_default_target"),N=b("link_default_protocol"),A=b("link_target_list"),S=b("link_rel_list"),E=b("link_class_list"),T=b("link_title"),R=b("allow_unsafe_link_target"),P=b("link_quicklink");var L=tinymce.util.Tools.resolve("tinymce.util.Tools");const M=e=>o(e.value)?e.value:"",D=(e,t)=>{const n=[];return L.each(e,(e=>{const r=(e=>o(e.text)?e.text:o(e.title)?e.title:"")(e);if(void 0!==e.menu){const o=D(e.menu,t);n.push({text:r,items:o})}else{const o=t(e);n.push({text:r,value:o})}})),n},B=(e=M)=>t=>m.from(t).map((t=>D(t,e))),I=e=>B(M)(e),j=B,K=(e,t)=>n=>({name:e,type:"listbox",label:t,items:n}),U=M,q=Object.keys,F=Object.hasOwnProperty,V=(e,t)=>F.call(e,t);var $=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),z=tinymce.util.Tools.resolve("tinymce.util.URI");const G=e=>s(e)&&"a"===e.nodeName.toLowerCase(),H=e=>G(e)&&!!Q(e),J=(e,t)=>{if(e.collapsed)return[];{const n=e.cloneContents(),o=n.firstChild,r=new $(o,n),l=[];let i=o;do{t(i)&&l.push(i)}while(i=r.next());return l}},W=e=>/^\w+:/i.test(e),Q=e=>{var t,n;return null!==(n=null!==(t=e.getAttribute("data-mce-href"))&&void 0!==t?t:e.getAttribute("href"))&&void 0!==n?n:""},X=(e,t)=>{const n=["noopener"],o=e?e.split(/\s+/):[],r=e=>e.filter((e=>-1===L.inArray(n,e))),l=t?(e=>(e=r(e)).length>0?e.concat(n):n)(o):r(o);return l.length>0?(e=>L.trim(e.sort().join(" ")))(l):""},Y=(e,t)=>(t=t||te(e.selection.getRng())[0]||e.selection.getNode(),le(t)?m.from(e.dom.select("a[href]",t)[0]):m.from(e.dom.getParent(t,"a[href]"))),Z=(e,t)=>Y(e,t).isSome(),ee=(e,t)=>t.fold((()=>e.getContent({format:"text"})),(e=>e.innerText||e.textContent||"")).replace(/\uFEFF/g,""),te=e=>J(e,H),ne=e=>L.grep(e,H),oe=e=>ne(e).length>0,re=e=>{const t=e.schema.getTextInlineElements();if(Y(e).exists((e=>e.hasAttribute("data-mce-block"))))return!1;const n=e.selection.getRng();return!!n.collapsed||0===J(n,(e=>1===e.nodeType&&!G(e)&&!V(t,e.nodeName.toLowerCase()))).length},le=e=>s(e)&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className),ie=(e,t,n)=>{const o=e.selection.getNode(),r=Y(e,o),l=((e,t)=>{const n={...t};if(0===S(e).length&&!R(e)){const e=X(n.rel,"_blank"===n.target);n.rel=e||null}return m.from(n.target).isNone()&&!1===A(e)&&(n.target=O(e)),n.href=((e,t)=>"http"!==t&&"https"!==t||W(e)?e:t+"://"+e)(n.href,_(e)),n})(e,(e=>{return t=["title","rel","class","target"],n=(t,n)=>(e[n].each((e=>{t[n]=e.length>0?e:null})),t),o={href:e.href},((e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n],n)})(t,((e,t)=>{o=n(o,e)})),o;var t,n,o})(n));e.undoManager.transact((()=>{n.href===t.href&&t.attach(),r.fold((()=>{((e,t,n,o)=>{const r=e.dom;le(t)?ge(r,t,o):n.fold((()=>{e.execCommand("mceInsertLink",!1,o)}),(t=>{e.insertContent(r.createHTML("a",o,r.encode(t)))}))})(e,o,n.text,l)}),(t=>{e.focus(),((e,t,n,o)=>{n.each((e=>{V(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,o),e.selection.select(t)})(e,t,n.text,l)}))}))},ae=e=>{const{class:t,href:n,rel:o,target:r,text:l,title:a}=e;return((e,t)=>{const n={};var o;return((e,t,n,o)=>{((e,t)=>{const n=q(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}})(e,((e,r)=>{(t(e,r)?n:o)(e,r)}))})(e,((e,t)=>!1===i(e)),(o=n,(e,t)=>{o[t]=e}),g),n})({class:t.getOrNull(),href:n,rel:o.getOrNull(),target:r.getOrNull(),text:l.getOrNull(),title:a.getOrNull()})},se=(e,t,n)=>{const o=((e,t)=>{const n=e.options.get,o={allow_html_data_urls:n("allow_html_data_urls"),allow_script_urls:n("allow_script_urls"),allow_svg_data_urls:n("allow_svg_data_urls")},r=t.href;return{...t,href:z.isDomSafe(r,"a",o)?r:""}})(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,ae(o)):ie(e,t,o)},ce=e=>{e.hasPlugin("rtc",!0)?e.execCommand("unlink"):(e=>{e.undoManager.transact((()=>{const t=e.selection.getNode();le(t)?ue(e,t):(e=>{const t=e.dom,n=e.selection,o=n.getBookmark(),r=n.getRng().cloneRange(),l=t.getParent(r.startContainer,"a[href]",e.getBody()),i=t.getParent(r.endContainer,"a[href]",e.getBody());l&&r.setStartBefore(l),i&&r.setEndAfter(i),n.setRng(r),e.execCommand("unlink"),n.moveToBookmark(o)})(e),e.focus()}))})(e)},ue=(e,t)=>{var n;const o=e.dom.select("img",t)[0];if(o){const r=e.dom.getParents(o,"a[href]",t)[0];r&&(null===(n=r.parentNode)||void 0===n||n.insertBefore(o,r),e.dom.remove(r))}},ge=(e,t,n)=>{var o;const r=e.select("img",t)[0];if(r){const t=e.create("a",n);null===(o=r.parentNode)||void 0===o||o.insertBefore(t,r),t.appendChild(r)}},de=(e,t)=>k(t,(t=>(e=>{return V(t=e,n="items")&&void 0!==t[n]&&null!==t[n];var t,n})(t)?de(e,t.items):y(t.value===e,t))),me=(e,t)=>{const n={text:e.text,title:e.title},o=(e,o)=>{const r=(l=t,i=o,"link"===i?l.link:"anchor"===i?l.anchor:m.none()).getOr([]);var l,i;return((e,t,n,o)=>{const r=o[t],l=e.length>0;return void 0!==r?de(r,n).map((t=>({url:{value:t.value,meta:{text:l?e:t.text,attach:g}},text:l?e:t.text}))):m.none()})(n.text,o,r,e)};return{onChange:(e,t)=>{const r=t.name;return"url"===r?(e=>{const t=(o=e.url,y(n.text.length<=0,m.from(null===(r=o.meta)||void 0===r?void 0:r.text).getOr(o.value)));var o,r;const l=(e=>{var t;return y(n.title.length<=0,m.from(null===(t=e.meta)||void 0===t?void 0:t.title).getOr(""))})(e.url);return t.isSome()||l.isSome()?m.some({...t.map((e=>({text:e}))).getOr({}),...l.map((e=>({title:e}))).getOr({})}):m.none()})(e()):((e,t)=>h.call(e,t))(["anchor","link"],r)>-1?o(e(),r):"text"===r||"title"===r?(n[r]=e()[r],m.none()):m.none()}}};var he=tinymce.util.Tools.resolve("tinymce.util.Delay");const fe=e=>{const t=e.href;return t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:")?m.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:e=>({...e,href:"mailto:"+t})}):m.none()},pe=(e,t)=>n=>{const o=n.href;return 1===e&&!W(o)||0===e&&/^\s*www(\.|\d\.)/i.test(o)?m.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${t}:// prefix?`,preprocess:e=>({...e,href:t+"://"+o})}):m.none()},ke=e=>{const t=e.dom.select("a:not([href])"),n=p(((e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o})(t,(e=>{const t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]})));return n.length>0?m.some([{text:"None",value:""}].concat(n)):m.none()},ve=e=>{const t=E(e);return t.length>0?I(t):m.none()},xe=e=>{try{return m.some(JSON.parse(e))}catch(e){return m.none()}},ye=(e,t)=>{const n=S(e);if(n.length>0){const o=v(t,"_blank"),r=e=>X(U(e),o);return(!1===R(e)?j(r):I)(n)}return m.none()},be=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],_e=e=>{const t=A(e);return l(t)?I(t).orThunk((()=>m.some(be))):!1===t?m.none():m.some(be)},we=(e,t,n)=>{const o=e.getAttrib(t,n);return null!==o&&o.length>0?m.some(o):m.none()},Ce=(e,t)=>(e=>{const t=t=>e.convertURL(t.value||t.url||"","href"),n=C(e);return new Promise((e=>{o(n)?fetch(n).then((e=>e.ok?e.text().then(xe):Promise.reject())).then(e,(()=>e(m.none()))):c(n)?n((t=>e(m.some(t)))):e(m.from(n))})).then((e=>e.bind(j(t)).map((e=>e.length>0?[{text:"None",value:""}].concat(e):e))))})(e).then((n=>{const o=((e,t)=>{const n=e.dom,o=re(e)?m.some(ee(e.selection,t)):m.none(),r=t.bind((e=>m.from(n.getAttrib(e,"href")))),l=t.bind((e=>m.from(n.getAttrib(e,"target")))),i=t.bind((e=>we(n,e,"rel"))),a=t.bind((e=>we(n,e,"class")));return{url:r,text:o,title:t.bind((e=>we(n,e,"title"))),target:l,rel:i,linkClass:a}})(e,t);return{anchor:o,catalogs:{targets:_e(e),rels:ye(e,o.target),classes:ve(e),anchor:ke(e),link:n},optNode:t,flags:{titleEnabled:T(e)}}})),Oe=e=>{const t=(e=>{const t=Y(e);return Ce(e,t)})(e);t.then((t=>{const n=((e,t)=>n=>{const o=n.getData();if(!o.url.value)return ce(e),void n.close();const r=e=>m.from(o[e]).filter((n=>!v(t.anchor[e],n))),l={href:o.url.value,text:r("text"),target:r("target"),rel:r("rel"),class:r("linkClass"),title:r("title")},i={href:o.url.value,attach:void 0!==o.url.meta&&o.url.meta.attach?o.url.meta.attach:g};((e,t)=>k([fe,pe(_(e),N(e))],(e=>e(t))).fold((()=>Promise.resolve(t)),(n=>new Promise((o=>{((e,t,n)=>{const o=e.selection.getRng();he.setEditorTimeout(e,(()=>{e.windowManager.confirm(t,(t=>{e.selection.setRng(o),n(t)}))}))})(e,n.message,(e=>{o(e?n.preprocess(t):t)}))})))))(e,l).then((t=>{se(e,i,t)})),n.close()})(e,t);return((e,t,n)=>{const o=e.anchor.text.map((()=>({name:"text",type:"input",label:"Text to display"}))).toArray(),r=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],l=((e,t)=>{const n=e.anchor,o=n.url.getOr("");return{url:{value:o,meta:{original:{value:o}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:o,link:o,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}})(e,m.from(O(n))),i=e.catalogs,a=me(l,i);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:p([[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],o,r,x([i.anchor.map(K("anchor","Anchors")),i.rels.map(K("rel","Rel")),i.targets.map(K("target","Open link in...")),i.link.map(K("link","Link list")),i.classes.map(K("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:l,onChange:(e,{name:t})=>{a.onChange(e.getData,{name:t}).each((t=>{e.setData(t)}))},onSubmit:t}})(t,n,e)})).then((t=>{e.windowManager.open(t)}))};var Ne=tinymce.util.Tools.resolve("tinymce.util.VK");const Ae=(e,t)=>e.dom.getParent(t,"a[href]"),Se=e=>Ae(e,e.selection.getStart()),Ee=(e,t)=>{if(t){const n=Q(t);if(/^#/.test(n)){const t=e.dom.select(n);t.length&&e.selection.scrollIntoView(t[0],!0)}else(e=>{const t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),((e,t)=>{document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)})(t,n)})(t.href)}},Te=e=>()=>{e.execCommand("mceLink",!1,{dialog:!0})},Re=e=>()=>{Ee(e,Se(e))},Pe=(e,t)=>(e.on("NodeChange",t),()=>e.off("NodeChange",t)),Le=e=>t=>{const n=()=>{t.setActive(!e.mode.isReadOnly()&&Z(e,e.selection.getNode())),t.setEnabled(e.selection.isEditable())};return n(),Pe(e,n)},Me=e=>t=>{const n=()=>{t.setEnabled(e.selection.isEditable())};return n(),Pe(e,n)},De=e=>t=>{const n=()=>t.setEnabled((e=>1===(e.selection.isCollapsed()?ne(e.dom.getParents(e.selection.getStart())):te(e.selection.getRng())).length)(e));return n(),Pe(e,n)},Be=e=>t=>{const n=e.dom.getParents(e.selection.getStart()),o=n=>{t.setEnabled((t=>{return oe(t)||(n=e.selection.getRng(),te(n).length>0);var n})(n)&&e.selection.isEditable())};return o(n),Pe(e,(e=>o(e.parents)))};e.add("link",(e=>{(e=>{const t=e.options.register;t("link_assume_external_targets",{processor:e=>{const t=o(e)||a(e);return t?!0===e?{value:1,valid:t}:"http"===e||"https"===e?{value:e,valid:t}:{value:0,valid:t}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),t("link_context_toolbar",{processor:"boolean",default:!1}),t("link_list",{processor:e=>o(e)||c(e)||u(e,r)}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"}),t("link_target_list",{processor:e=>a(e)||u(e,r),default:!0}),t("link_rel_list",{processor:"object[]",default:[]}),t("link_class_list",{processor:"object[]",default:[]}),t("link_title",{processor:"boolean",default:!0}),t("allow_unsafe_link_target",{processor:"boolean",default:!1}),t("link_quicklink",{processor:"boolean",default:!1})})(e),(e=>{e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Te(e),onSetup:Le(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Re(e),onSetup:De(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>ce(e),onSetup:Be(e)})})(e),(e=>{e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Re(e),onSetup:De(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onSetup:Me(e),onAction:Te(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>ce(e),onSetup:Be(e)})})(e),(e=>{e.ui.registry.addContextMenu("link",{update:t=>e.dom.isEditable(t)?oe(e.dom.getParents(t,"a"))?"link unlink openlink":"link":""})})(e),(e=>{const t=t=>{const n=e.selection.getNode();return t.setEnabled(Z(e,n)),g};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Le(e)},label:"Link",predicate:t=>w(e)&&Z(e,t),initValue:()=>Y(e).fold((()=>""),Q),commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:t=>{const n=e.selection.getNode();return t.setActive(Z(e,n)),Le(e)(t)},onAction:t=>{const n=t.getValue(),o=(t=>{const n=Y(e),o=re(e);if(n.isNone()&&o){const o=ee(e.selection,n);return y(0===o.length,t)}return m.none()})(n);se(e,{href:n,attach:g},{href:n,text:o,title:m.none(),rel:m.none(),target:m.none(),class:m.none()}),(e=>{e.selection.collapse(!1)})(e),t.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:t,onAction:t=>{ce(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:t,onAction:t=>{Re(e)(),t.hide()}}]})})(e),(e=>{e.on("click",(t=>{const n=Ae(e,t.target);n&&Ne.metaKeyPressed(t)&&(t.preventDefault(),Ee(e,n))})),e.on("keydown",(t=>{if(!t.isDefaultPrevented()&&13===t.keyCode&&(e=>!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey)(t)){const n=Se(e);n&&(t.preventDefault(),Ee(e,n))}}))})(e),(e=>{e.addCommand("mceLink",((t,n)=>{!0!==(null==n?void 0:n.dialog)&&P(e)?e.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"}):Oe(e)}))})(e),(e=>{e.addShortcut("Meta+K","",(()=>{e.execCommand("mceLink")}))})(e)}))}();
@@ -1,7 +0,0 @@
1
- // Exports the "lists" plugin for usage with module loaders
2
- // Usage:
3
- // CommonJS:
4
- // require('tinymce/plugins/lists')
5
- // ES2015:
6
- // import 'tinymce/plugins/lists'
7
- require('./plugin.js');