create-nextjs-cms 0.5.18 → 0.5.20

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.
Files changed (272) hide show
  1. package/dist/index.js +9 -5
  2. package/package.json +3 -3
  3. package/templates/default/.uploads/.photos/categories/000e56fada378de1a84a4 +0 -0
  4. package/templates/default/.uploads/.photos/categories/121e7d13ee3b5fa03795b +0 -0
  5. package/templates/default/.uploads/.photos/categories/17a55c5a53eb62293c69e +0 -0
  6. package/templates/default/.uploads/.photos/categories/4c86ad8c1f51f1e3a953b +0 -0
  7. package/templates/default/.uploads/.photos/categories/4d360813741a45744327c +0 -0
  8. package/templates/default/.uploads/.photos/categories/5238fefaa3cbebf388178 +0 -0
  9. package/templates/default/.uploads/.photos/categories/541d7cf8c69895bcb15cd +0 -0
  10. package/templates/default/.uploads/.photos/categories/57a2f689a910a378247ea +0 -0
  11. package/templates/default/.uploads/.photos/categories/6de4bdb341a3e1f70ddc3 +0 -0
  12. package/templates/default/.uploads/.photos/categories/6f52739eaa686441a28f4 +0 -0
  13. package/templates/default/.uploads/.photos/categories/8a21b9fa8ecd88f460a15 +0 -0
  14. package/templates/default/.uploads/.photos/categories/91948abcb073c9445fdec +0 -0
  15. package/templates/default/.uploads/.photos/categories/9ae700d1abfd6b85780e8 +0 -0
  16. package/templates/default/.uploads/.photos/categories/9edee86e932985fc589b5 +0 -0
  17. package/templates/default/.uploads/.photos/categories/a520e77b082f35b575dba +0 -0
  18. package/templates/default/.uploads/.photos/categories/b19c449029330f0a74b20 +0 -0
  19. package/templates/default/.uploads/.photos/categories/b9802010f68afd4edb0e8 +0 -0
  20. package/templates/default/.uploads/.photos/categories/c1d7c3b986739bf496730 +0 -0
  21. package/templates/default/.uploads/.photos/categories/c25dc38567384513ffe93 +0 -0
  22. package/templates/default/.uploads/.photos/categories/cbe3874a3d13afba388df +0 -0
  23. package/templates/default/.uploads/.photos/categories/d450fdeb04f0d070442d6 +0 -0
  24. package/templates/default/.uploads/.photos/categories/f80bf3a4515680ead5a5c +0 -0
  25. package/templates/default/.uploads/.photos/categories/f8639c2d5b0d24cb76fb1 +0 -0
  26. package/templates/default/.uploads/.photos/categories/f8d997149d10aab046e40 +0 -0
  27. package/templates/default/.uploads/.photos/categories/fa2c55690ff96e33a16fe +0 -0
  28. package/templates/default/.uploads/.photos/featured_slider/d00be4edb4c38ca34b5a5 +0 -0
  29. package/templates/default/.uploads/.thumbs/categories/000e56fada378de1a84a4 +0 -0
  30. package/templates/default/.uploads/.thumbs/categories/121e7d13ee3b5fa03795b +0 -0
  31. package/templates/default/.uploads/.thumbs/categories/17a55c5a53eb62293c69e +0 -0
  32. package/templates/default/.uploads/.thumbs/categories/4c86ad8c1f51f1e3a953b +0 -0
  33. package/templates/default/.uploads/.thumbs/categories/4d360813741a45744327c +0 -0
  34. package/templates/default/.uploads/.thumbs/categories/5238fefaa3cbebf388178 +0 -0
  35. package/templates/default/.uploads/.thumbs/categories/541d7cf8c69895bcb15cd +0 -0
  36. package/templates/default/.uploads/.thumbs/categories/57a2f689a910a378247ea +0 -0
  37. package/templates/default/.uploads/.thumbs/categories/6de4bdb341a3e1f70ddc3 +0 -0
  38. package/templates/default/.uploads/.thumbs/categories/6f52739eaa686441a28f4 +0 -0
  39. package/templates/default/.uploads/.thumbs/categories/8a21b9fa8ecd88f460a15 +0 -0
  40. package/templates/default/.uploads/.thumbs/categories/91948abcb073c9445fdec +0 -0
  41. package/templates/default/.uploads/.thumbs/categories/9ae700d1abfd6b85780e8 +0 -0
  42. package/templates/default/.uploads/.thumbs/categories/9edee86e932985fc589b5 +0 -0
  43. package/templates/default/.uploads/.thumbs/categories/a520e77b082f35b575dba +0 -0
  44. package/templates/default/.uploads/.thumbs/categories/b19c449029330f0a74b20 +0 -0
  45. package/templates/default/.uploads/.thumbs/categories/b9802010f68afd4edb0e8 +0 -0
  46. package/templates/default/.uploads/.thumbs/categories/c1d7c3b986739bf496730 +0 -0
  47. package/templates/default/.uploads/.thumbs/categories/c25dc38567384513ffe93 +0 -0
  48. package/templates/default/.uploads/.thumbs/categories/cbe3874a3d13afba388df +0 -0
  49. package/templates/default/.uploads/.thumbs/categories/d450fdeb04f0d070442d6 +0 -0
  50. package/templates/default/.uploads/.thumbs/categories/f80bf3a4515680ead5a5c +0 -0
  51. package/templates/default/.uploads/.thumbs/categories/f8639c2d5b0d24cb76fb1 +0 -0
  52. package/templates/default/.uploads/.thumbs/categories/f8d997149d10aab046e40 +0 -0
  53. package/templates/default/.uploads/.thumbs/categories/fa2c55690ff96e33a16fe +0 -0
  54. package/templates/default/_gitignore +57 -0
  55. package/templates/default/components/form/helpers/_section-hot-reload.ts +11 -0
  56. package/templates/default/next-env.d.ts +6 -0
  57. package/templates/default/package.json +2 -2
  58. package/templates/default/public/tinymce/CHANGELOG.md +3785 -0
  59. package/templates/default/public/tinymce/README.md +77 -0
  60. package/templates/default/public/tinymce/bower.json +27 -0
  61. package/templates/default/public/tinymce/composer.json +52 -0
  62. package/templates/default/public/tinymce/icons/default/icons.js +231 -0
  63. package/templates/default/public/tinymce/icons/default/icons.min.js +1 -0
  64. package/templates/default/public/tinymce/icons/default/index.js +7 -0
  65. package/templates/default/public/tinymce/license.md +6 -0
  66. package/templates/default/public/tinymce/models/dom/index.js +7 -0
  67. package/templates/default/public/tinymce/models/dom/model.js +8994 -0
  68. package/templates/default/public/tinymce/models/dom/model.min.js +1 -0
  69. package/templates/default/public/tinymce/notices.txt +21 -0
  70. package/templates/default/public/tinymce/package.json +32 -0
  71. package/templates/default/public/tinymce/plugins/accordion/index.js +7 -0
  72. package/templates/default/public/tinymce/plugins/accordion/plugin.js +1349 -0
  73. package/templates/default/public/tinymce/plugins/accordion/plugin.min.js +1 -0
  74. package/templates/default/public/tinymce/plugins/advlist/index.js +7 -0
  75. package/templates/default/public/tinymce/plugins/advlist/plugin.js +471 -0
  76. package/templates/default/public/tinymce/plugins/advlist/plugin.min.js +1 -0
  77. package/templates/default/public/tinymce/plugins/anchor/index.js +7 -0
  78. package/templates/default/public/tinymce/plugins/anchor/plugin.js +237 -0
  79. package/templates/default/public/tinymce/plugins/anchor/plugin.min.js +1 -0
  80. package/templates/default/public/tinymce/plugins/autolink/index.js +7 -0
  81. package/templates/default/public/tinymce/plugins/autolink/plugin.js +318 -0
  82. package/templates/default/public/tinymce/plugins/autolink/plugin.min.js +1 -0
  83. package/templates/default/public/tinymce/plugins/autoresize/index.js +7 -0
  84. package/templates/default/public/tinymce/plugins/autoresize/plugin.js +223 -0
  85. package/templates/default/public/tinymce/plugins/autoresize/plugin.min.js +1 -0
  86. package/templates/default/public/tinymce/plugins/autosave/index.js +7 -0
  87. package/templates/default/public/tinymce/plugins/autosave/plugin.js +252 -0
  88. package/templates/default/public/tinymce/plugins/autosave/plugin.min.js +1 -0
  89. package/templates/default/public/tinymce/plugins/charmap/index.js +7 -0
  90. package/templates/default/public/tinymce/plugins/charmap/plugin.js +997 -0
  91. package/templates/default/public/tinymce/plugins/charmap/plugin.min.js +1 -0
  92. package/templates/default/public/tinymce/plugins/code/index.js +7 -0
  93. package/templates/default/public/tinymce/plugins/code/plugin.js +97 -0
  94. package/templates/default/public/tinymce/plugins/code/plugin.min.js +1 -0
  95. package/templates/default/public/tinymce/plugins/codesample/index.js +7 -0
  96. package/templates/default/public/tinymce/plugins/codesample/plugin.js +3654 -0
  97. package/templates/default/public/tinymce/plugins/codesample/plugin.min.js +9 -0
  98. package/templates/default/public/tinymce/plugins/directionality/index.js +7 -0
  99. package/templates/default/public/tinymce/plugins/directionality/plugin.js +636 -0
  100. package/templates/default/public/tinymce/plugins/directionality/plugin.min.js +1 -0
  101. package/templates/default/public/tinymce/plugins/emoticons/index.js +7 -0
  102. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.js +1 -0
  103. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -0
  104. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.js +1 -0
  105. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.min.js +1 -0
  106. package/templates/default/public/tinymce/plugins/emoticons/plugin.js +809 -0
  107. package/templates/default/public/tinymce/plugins/emoticons/plugin.min.js +1 -0
  108. package/templates/default/public/tinymce/plugins/fullscreen/index.js +7 -0
  109. package/templates/default/public/tinymce/plugins/fullscreen/plugin.js +1609 -0
  110. package/templates/default/public/tinymce/plugins/fullscreen/plugin.min.js +1 -0
  111. package/templates/default/public/tinymce/plugins/help/index.js +7 -0
  112. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ar.js +93 -0
  113. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +93 -0
  114. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ca.js +93 -0
  115. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/cs.js +93 -0
  116. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/da.js +93 -0
  117. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/de.js +93 -0
  118. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/el.js +93 -0
  119. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/en.js +93 -0
  120. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/es.js +93 -0
  121. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/eu.js +93 -0
  122. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fa.js +93 -0
  123. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fi.js +93 -0
  124. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +93 -0
  125. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he_IL.js +93 -0
  126. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hi.js +93 -0
  127. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hr.js +93 -0
  128. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +93 -0
  129. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/id.js +93 -0
  130. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/it.js +93 -0
  131. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ja.js +93 -0
  132. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/kk.js +93 -0
  133. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +93 -0
  134. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ms.js +93 -0
  135. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +93 -0
  136. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nl.js +93 -0
  137. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pl.js +93 -0
  138. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +93 -0
  139. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +93 -0
  140. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ro.js +93 -0
  141. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ru.js +93 -0
  142. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sk.js +93 -0
  143. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +93 -0
  144. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +93 -0
  145. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th_TH.js +93 -0
  146. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/tr.js +93 -0
  147. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/uk.js +93 -0
  148. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/vi.js +93 -0
  149. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +87 -0
  150. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +93 -0
  151. package/templates/default/public/tinymce/plugins/help/plugin.js +828 -0
  152. package/templates/default/public/tinymce/plugins/help/plugin.min.js +1 -0
  153. package/templates/default/public/tinymce/plugins/image/index.js +7 -0
  154. package/templates/default/public/tinymce/plugins/image/plugin.js +1689 -0
  155. package/templates/default/public/tinymce/plugins/image/plugin.min.js +1 -0
  156. package/templates/default/public/tinymce/plugins/importcss/index.js +7 -0
  157. package/templates/default/public/tinymce/plugins/importcss/plugin.js +403 -0
  158. package/templates/default/public/tinymce/plugins/importcss/plugin.min.js +1 -0
  159. package/templates/default/public/tinymce/plugins/insertdatetime/index.js +7 -0
  160. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.js +186 -0
  161. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.min.js +1 -0
  162. package/templates/default/public/tinymce/plugins/link/index.js +7 -0
  163. package/templates/default/public/tinymce/plugins/link/plugin.js +1577 -0
  164. package/templates/default/public/tinymce/plugins/link/plugin.min.js +1 -0
  165. package/templates/default/public/tinymce/plugins/lists/index.js +7 -0
  166. package/templates/default/public/tinymce/plugins/lists/plugin.js +2544 -0
  167. package/templates/default/public/tinymce/plugins/lists/plugin.min.js +1 -0
  168. package/templates/default/public/tinymce/plugins/media/index.js +7 -0
  169. package/templates/default/public/tinymce/plugins/media/plugin.js +1450 -0
  170. package/templates/default/public/tinymce/plugins/media/plugin.min.js +1 -0
  171. package/templates/default/public/tinymce/plugins/nonbreaking/index.js +7 -0
  172. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.js +128 -0
  173. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.min.js +1 -0
  174. package/templates/default/public/tinymce/plugins/pagebreak/index.js +7 -0
  175. package/templates/default/public/tinymce/plugins/pagebreak/plugin.js +123 -0
  176. package/templates/default/public/tinymce/plugins/pagebreak/plugin.min.js +1 -0
  177. package/templates/default/public/tinymce/plugins/preview/index.js +7 -0
  178. package/templates/default/public/tinymce/plugins/preview/plugin.js +765 -0
  179. package/templates/default/public/tinymce/plugins/preview/plugin.min.js +1 -0
  180. package/templates/default/public/tinymce/plugins/quickbars/index.js +7 -0
  181. package/templates/default/public/tinymce/plugins/quickbars/plugin.js +654 -0
  182. package/templates/default/public/tinymce/plugins/quickbars/plugin.min.js +1 -0
  183. package/templates/default/public/tinymce/plugins/save/index.js +7 -0
  184. package/templates/default/public/tinymce/plugins/save/plugin.js +136 -0
  185. package/templates/default/public/tinymce/plugins/save/plugin.min.js +1 -0
  186. package/templates/default/public/tinymce/plugins/searchreplace/index.js +7 -0
  187. package/templates/default/public/tinymce/plugins/searchreplace/plugin.js +1370 -0
  188. package/templates/default/public/tinymce/plugins/searchreplace/plugin.min.js +1 -0
  189. package/templates/default/public/tinymce/plugins/table/index.js +7 -0
  190. package/templates/default/public/tinymce/plugins/table/plugin.js +4019 -0
  191. package/templates/default/public/tinymce/plugins/table/plugin.min.js +1 -0
  192. package/templates/default/public/tinymce/plugins/visualblocks/index.js +7 -0
  193. package/templates/default/public/tinymce/plugins/visualblocks/plugin.js +106 -0
  194. package/templates/default/public/tinymce/plugins/visualblocks/plugin.min.js +1 -0
  195. package/templates/default/public/tinymce/plugins/visualchars/index.js +7 -0
  196. package/templates/default/public/tinymce/plugins/visualchars/plugin.js +809 -0
  197. package/templates/default/public/tinymce/plugins/visualchars/plugin.min.js +1 -0
  198. package/templates/default/public/tinymce/plugins/wordcount/index.js +7 -0
  199. package/templates/default/public/tinymce/plugins/wordcount/plugin.js +480 -0
  200. package/templates/default/public/tinymce/plugins/wordcount/plugin.min.js +1 -0
  201. package/templates/default/public/tinymce/skins/content/dark/content.css +75 -0
  202. package/templates/default/public/tinymce/skins/content/dark/content.js +10 -0
  203. package/templates/default/public/tinymce/skins/content/dark/content.min.css +10 -0
  204. package/templates/default/public/tinymce/skins/content/default/content.css +70 -0
  205. package/templates/default/public/tinymce/skins/content/default/content.js +10 -0
  206. package/templates/default/public/tinymce/skins/content/default/content.min.css +10 -0
  207. package/templates/default/public/tinymce/skins/content/document/content.css +75 -0
  208. package/templates/default/public/tinymce/skins/content/document/content.js +10 -0
  209. package/templates/default/public/tinymce/skins/content/document/content.min.css +10 -0
  210. package/templates/default/public/tinymce/skins/content/tinymce-5/content.css +70 -0
  211. package/templates/default/public/tinymce/skins/content/tinymce-5/content.js +10 -0
  212. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.css +10 -0
  213. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.css +75 -0
  214. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.js +10 -0
  215. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -0
  216. package/templates/default/public/tinymce/skins/content/writer/content.css +71 -0
  217. package/templates/default/public/tinymce/skins/content/writer/content.js +10 -0
  218. package/templates/default/public/tinymce/skins/content/writer/content.min.css +10 -0
  219. package/templates/default/public/tinymce/skins/ui/oxide/content.css +893 -0
  220. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.css +887 -0
  221. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.js +10 -0
  222. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.css +10 -0
  223. package/templates/default/public/tinymce/skins/ui/oxide/content.js +10 -0
  224. package/templates/default/public/tinymce/skins/ui/oxide/content.min.css +10 -0
  225. package/templates/default/public/tinymce/skins/ui/oxide/skin.css +5141 -0
  226. package/templates/default/public/tinymce/skins/ui/oxide/skin.js +1 -0
  227. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.css +1 -0
  228. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
  229. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.js +1 -0
  230. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  231. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.css +881 -0
  232. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.css +887 -0
  233. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.js +10 -0
  234. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -0
  235. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.js +10 -0
  236. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.css +10 -0
  237. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.css +5144 -0
  238. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.js +1 -0
  239. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  240. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
  241. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +1 -0
  242. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  243. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.css +893 -0
  244. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.css +887 -0
  245. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.js +10 -0
  246. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -0
  247. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.js +10 -0
  248. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.css +10 -0
  249. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.css +5260 -0
  250. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.js +1 -0
  251. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
  252. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +30 -0
  253. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +1 -0
  254. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  255. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.css +881 -0
  256. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.css +887 -0
  257. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.js +10 -0
  258. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -0
  259. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.js +10 -0
  260. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -0
  261. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.css +5260 -0
  262. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.js +1 -0
  263. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  264. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +30 -0
  265. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +1 -0
  266. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  267. package/templates/default/public/tinymce/themes/silver/index.js +7 -0
  268. package/templates/default/public/tinymce/themes/silver/theme.js +34798 -0
  269. package/templates/default/public/tinymce/themes/silver/theme.min.js +1 -0
  270. package/templates/default/public/tinymce/tinymce.d.ts +3350 -0
  271. package/templates/default/public/tinymce/tinymce.js +38694 -0
  272. package/templates/default/public/tinymce/tinymce.min.js +11 -0
@@ -0,0 +1,765 @@
1
+ /**
2
+ * TinyMCE version 7.9.1 (2025-05-29)
3
+ */
4
+
5
+ (function () {
6
+ 'use strict';
7
+
8
+ var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
+
10
+ /* eslint-disable @typescript-eslint/no-wrapper-object-types */
11
+ const eq = (t) => (a) => t === a;
12
+ const isUndefined = eq(undefined);
13
+ const isNullable = (a) => a === null || a === undefined;
14
+ const isNonNullable = (a) => !isNullable(a);
15
+
16
+ const constant = (value) => {
17
+ return () => {
18
+ return value;
19
+ };
20
+ };
21
+ const never = constant(false);
22
+
23
+ /**
24
+ * The `Optional` type represents a value (of any type) that potentially does
25
+ * not exist. Any `Optional<T>` can either be a `Some<T>` (in which case the
26
+ * value does exist) or a `None` (in which case the value does not exist). This
27
+ * module defines a whole lot of FP-inspired utility functions for dealing with
28
+ * `Optional` objects.
29
+ *
30
+ * Comparison with null or undefined:
31
+ * - We don't get fancy null coalescing operators with `Optional`
32
+ * - We do get fancy helper functions with `Optional`
33
+ * - `Optional` support nesting, and allow for the type to still be nullable (or
34
+ * another `Optional`)
35
+ * - There is no option to turn off strict-optional-checks like there is for
36
+ * strict-null-checks
37
+ */
38
+ class Optional {
39
+ // The internal representation has a `tag` and a `value`, but both are
40
+ // private: able to be console.logged, but not able to be accessed by code
41
+ constructor(tag, value) {
42
+ this.tag = tag;
43
+ this.value = value;
44
+ }
45
+ // --- Identities ---
46
+ /**
47
+ * Creates a new `Optional<T>` that **does** contain a value.
48
+ */
49
+ static some(value) {
50
+ return new Optional(true, value);
51
+ }
52
+ /**
53
+ * Create a new `Optional<T>` that **does not** contain a value. `T` can be
54
+ * any type because we don't actually have a `T`.
55
+ */
56
+ static none() {
57
+ return Optional.singletonNone;
58
+ }
59
+ /**
60
+ * Perform a transform on an `Optional` type. Regardless of whether this
61
+ * `Optional` contains a value or not, `fold` will return a value of type `U`.
62
+ * If this `Optional` does not contain a value, the `U` will be created by
63
+ * calling `onNone`. If this `Optional` does contain a value, the `U` will be
64
+ * created by calling `onSome`.
65
+ *
66
+ * For the FP enthusiasts in the room, this function:
67
+ * 1. Could be used to implement all of the functions below
68
+ * 2. Forms a catamorphism
69
+ */
70
+ fold(onNone, onSome) {
71
+ if (this.tag) {
72
+ return onSome(this.value);
73
+ }
74
+ else {
75
+ return onNone();
76
+ }
77
+ }
78
+ /**
79
+ * Determine if this `Optional` object contains a value.
80
+ */
81
+ isSome() {
82
+ return this.tag;
83
+ }
84
+ /**
85
+ * Determine if this `Optional` object **does not** contain a value.
86
+ */
87
+ isNone() {
88
+ return !this.tag;
89
+ }
90
+ // --- Functor (name stolen from Haskell / maths) ---
91
+ /**
92
+ * Perform a transform on an `Optional` object, **if** there is a value. If
93
+ * you provide a function to turn a T into a U, this is the function you use
94
+ * to turn an `Optional<T>` into an `Optional<U>`. If this **does** contain
95
+ * a value then the output will also contain a value (that value being the
96
+ * output of `mapper(this.value)`), and if this **does not** contain a value
97
+ * then neither will the output.
98
+ */
99
+ map(mapper) {
100
+ if (this.tag) {
101
+ return Optional.some(mapper(this.value));
102
+ }
103
+ else {
104
+ return Optional.none();
105
+ }
106
+ }
107
+ // --- Monad (name stolen from Haskell / maths) ---
108
+ /**
109
+ * Perform a transform on an `Optional` object, **if** there is a value.
110
+ * Unlike `map`, here the transform itself also returns an `Optional`.
111
+ */
112
+ bind(binder) {
113
+ if (this.tag) {
114
+ return binder(this.value);
115
+ }
116
+ else {
117
+ return Optional.none();
118
+ }
119
+ }
120
+ // --- Traversable (name stolen from Haskell / maths) ---
121
+ /**
122
+ * For a given predicate, this function finds out if there **exists** a value
123
+ * inside this `Optional` object that meets the predicate. In practice, this
124
+ * means that for `Optional`s that do not contain a value it returns false (as
125
+ * no predicate-meeting value exists).
126
+ */
127
+ exists(predicate) {
128
+ return this.tag && predicate(this.value);
129
+ }
130
+ /**
131
+ * For a given predicate, this function finds out if **all** the values inside
132
+ * this `Optional` object meet the predicate. In practice, this means that
133
+ * for `Optional`s that do not contain a value it returns true (as all 0
134
+ * objects do meet the predicate).
135
+ */
136
+ forall(predicate) {
137
+ return !this.tag || predicate(this.value);
138
+ }
139
+ filter(predicate) {
140
+ if (!this.tag || predicate(this.value)) {
141
+ return this;
142
+ }
143
+ else {
144
+ return Optional.none();
145
+ }
146
+ }
147
+ // --- Getters ---
148
+ /**
149
+ * Get the value out of the inside of the `Optional` object, using a default
150
+ * `replacement` value if the provided `Optional` object does not contain a
151
+ * value.
152
+ */
153
+ getOr(replacement) {
154
+ return this.tag ? this.value : replacement;
155
+ }
156
+ /**
157
+ * Get the value out of the inside of the `Optional` object, using a default
158
+ * `replacement` value if the provided `Optional` object does not contain a
159
+ * value. Unlike `getOr`, in this method the `replacement` object is also
160
+ * `Optional` - meaning that this method will always return an `Optional`.
161
+ */
162
+ or(replacement) {
163
+ return this.tag ? this : replacement;
164
+ }
165
+ /**
166
+ * Get the value out of the inside of the `Optional` object, using a default
167
+ * `replacement` value if the provided `Optional` object does not contain a
168
+ * value. Unlike `getOr`, in this method the `replacement` value is
169
+ * "thunked" - that is to say that you don't pass a value to `getOrThunk`, you
170
+ * pass a function which (if called) will **return** the `value` you want to
171
+ * use.
172
+ */
173
+ getOrThunk(thunk) {
174
+ return this.tag ? this.value : thunk();
175
+ }
176
+ /**
177
+ * Get the value out of the inside of the `Optional` object, using a default
178
+ * `replacement` value if the provided Optional object does not contain a
179
+ * value.
180
+ *
181
+ * Unlike `or`, in this method the `replacement` value is "thunked" - that is
182
+ * to say that you don't pass a value to `orThunk`, you pass a function which
183
+ * (if called) will **return** the `value` you want to use.
184
+ *
185
+ * Unlike `getOrThunk`, in this method the `replacement` value is also
186
+ * `Optional`, meaning that this method will always return an `Optional`.
187
+ */
188
+ orThunk(thunk) {
189
+ return this.tag ? this : thunk();
190
+ }
191
+ /**
192
+ * Get the value out of the inside of the `Optional` object, throwing an
193
+ * exception if the provided `Optional` object does not contain a value.
194
+ *
195
+ * WARNING:
196
+ * You should only be using this function if you know that the `Optional`
197
+ * object **is not** empty (otherwise you're throwing exceptions in production
198
+ * code, which is bad).
199
+ *
200
+ * In tests this is more acceptable.
201
+ *
202
+ * Prefer other methods to this, such as `.each`.
203
+ */
204
+ getOrDie(message) {
205
+ if (!this.tag) {
206
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
207
+ }
208
+ else {
209
+ return this.value;
210
+ }
211
+ }
212
+ // --- Interop with null and undefined ---
213
+ /**
214
+ * Creates an `Optional` value from a nullable (or undefined-able) input.
215
+ * Null, or undefined, is converted to `None`, and anything else is converted
216
+ * to `Some`.
217
+ */
218
+ static from(value) {
219
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
220
+ }
221
+ /**
222
+ * Converts an `Optional` to a nullable type, by getting the value if it
223
+ * exists, or returning `null` if it does not.
224
+ */
225
+ getOrNull() {
226
+ return this.tag ? this.value : null;
227
+ }
228
+ /**
229
+ * Converts an `Optional` to an undefined-able type, by getting the value if
230
+ * it exists, or returning `undefined` if it does not.
231
+ */
232
+ getOrUndefined() {
233
+ return this.value;
234
+ }
235
+ // --- Utilities ---
236
+ /**
237
+ * If the `Optional` contains a value, perform an action on that value.
238
+ * Unlike the rest of the methods on this type, `.each` has side-effects. If
239
+ * you want to transform an `Optional<T>` **into** something, then this is not
240
+ * the method for you. If you want to use an `Optional<T>` to **do**
241
+ * something, then this is the method for you - provided you're okay with not
242
+ * doing anything in the case where the `Optional` doesn't have a value inside
243
+ * it. If you're not sure whether your use-case fits into transforming
244
+ * **into** something or **doing** something, check whether it has a return
245
+ * value. If it does, you should be performing a transform.
246
+ */
247
+ each(worker) {
248
+ if (this.tag) {
249
+ worker(this.value);
250
+ }
251
+ }
252
+ /**
253
+ * Turn the `Optional` object into an array that contains all of the values
254
+ * stored inside the `Optional`. In practice, this means the output will have
255
+ * either 0 or 1 elements.
256
+ */
257
+ toArray() {
258
+ return this.tag ? [this.value] : [];
259
+ }
260
+ /**
261
+ * Turn the `Optional` object into a string for debugging or printing. Not
262
+ * recommended for production code, but good for debugging. Also note that
263
+ * these days an `Optional` object can be logged to the console directly, and
264
+ * its inner value (if it exists) will be visible.
265
+ */
266
+ toString() {
267
+ return this.tag ? `some(${this.value})` : 'none()';
268
+ }
269
+ }
270
+ // Sneaky optimisation: every instance of Optional.none is identical, so just
271
+ // reuse the same object
272
+ Optional.singletonNone = new Optional(false);
273
+
274
+ const findUntil = (xs, pred, until) => {
275
+ for (let i = 0, len = xs.length; i < len; i++) {
276
+ const x = xs[i];
277
+ if (pred(x, i)) {
278
+ return Optional.some(x);
279
+ }
280
+ else if (until(x, i)) {
281
+ break;
282
+ }
283
+ }
284
+ return Optional.none();
285
+ };
286
+ const find$1 = (xs, pred) => {
287
+ return findUntil(xs, pred, never);
288
+ };
289
+ const findMap = (arr, f) => {
290
+ for (let i = 0; i < arr.length; i++) {
291
+ const r = f(arr[i], i);
292
+ if (r.isSome()) {
293
+ return r;
294
+ }
295
+ }
296
+ return Optional.none();
297
+ };
298
+
299
+ const contains = (str, substr, start = 0, end) => {
300
+ const idx = str.indexOf(substr, start);
301
+ if (idx !== -1) {
302
+ return isUndefined(end) ? true : idx + substr.length <= end;
303
+ }
304
+ else {
305
+ return false;
306
+ }
307
+ };
308
+
309
+ const cached = (f) => {
310
+ let called = false;
311
+ let r;
312
+ return (...args) => {
313
+ if (!called) {
314
+ called = true;
315
+ r = f.apply(null, args);
316
+ }
317
+ return r;
318
+ };
319
+ };
320
+
321
+ const DeviceType = (os, browser, userAgent, mediaMatch) => {
322
+ const isiPad = os.isiOS() && /ipad/i.test(userAgent) === true;
323
+ const isiPhone = os.isiOS() && !isiPad;
324
+ const isMobile = os.isiOS() || os.isAndroid();
325
+ const isTouch = isMobile || mediaMatch('(pointer:coarse)');
326
+ const isTablet = isiPad || !isiPhone && isMobile && mediaMatch('(min-device-width:768px)');
327
+ const isPhone = isiPhone || isMobile && !isTablet;
328
+ const iOSwebview = browser.isSafari() && os.isiOS() && /safari/i.test(userAgent) === false;
329
+ const isDesktop = !isPhone && !isTablet && !iOSwebview;
330
+ return {
331
+ isiPad: constant(isiPad),
332
+ isiPhone: constant(isiPhone),
333
+ isTablet: constant(isTablet),
334
+ isPhone: constant(isPhone),
335
+ isTouch: constant(isTouch),
336
+ isAndroid: os.isAndroid,
337
+ isiOS: os.isiOS,
338
+ isWebView: constant(iOSwebview),
339
+ isDesktop: constant(isDesktop)
340
+ };
341
+ };
342
+
343
+ const firstMatch = (regexes, s) => {
344
+ for (let i = 0; i < regexes.length; i++) {
345
+ const x = regexes[i];
346
+ if (x.test(s)) {
347
+ return x;
348
+ }
349
+ }
350
+ return undefined;
351
+ };
352
+ const find = (regexes, agent) => {
353
+ const r = firstMatch(regexes, agent);
354
+ if (!r) {
355
+ return { major: 0, minor: 0 };
356
+ }
357
+ const group = (i) => {
358
+ return Number(agent.replace(r, '$' + i));
359
+ };
360
+ return nu$2(group(1), group(2));
361
+ };
362
+ const detect$3 = (versionRegexes, agent) => {
363
+ const cleanedAgent = String(agent).toLowerCase();
364
+ if (versionRegexes.length === 0) {
365
+ return unknown$2();
366
+ }
367
+ return find(versionRegexes, cleanedAgent);
368
+ };
369
+ const unknown$2 = () => {
370
+ return nu$2(0, 0);
371
+ };
372
+ const nu$2 = (major, minor) => {
373
+ return { major, minor };
374
+ };
375
+ const Version = {
376
+ nu: nu$2,
377
+ detect: detect$3,
378
+ unknown: unknown$2
379
+ };
380
+
381
+ const detectBrowser$1 = (browsers, userAgentData) => {
382
+ return findMap(userAgentData.brands, (uaBrand) => {
383
+ const lcBrand = uaBrand.brand.toLowerCase();
384
+ return find$1(browsers, (browser) => { var _a; return lcBrand === ((_a = browser.brand) === null || _a === void 0 ? void 0 : _a.toLowerCase()); })
385
+ .map((info) => ({
386
+ current: info.name,
387
+ version: Version.nu(parseInt(uaBrand.version, 10), 0)
388
+ }));
389
+ });
390
+ };
391
+
392
+ const detect$2 = (candidates, userAgent) => {
393
+ const agent = String(userAgent).toLowerCase();
394
+ return find$1(candidates, (candidate) => {
395
+ return candidate.search(agent);
396
+ });
397
+ };
398
+ // They (browser and os) are the same at the moment, but they might
399
+ // not stay that way.
400
+ const detectBrowser = (browsers, userAgent) => {
401
+ return detect$2(browsers, userAgent).map((browser) => {
402
+ const version = Version.detect(browser.versionRegexes, userAgent);
403
+ return {
404
+ current: browser.name,
405
+ version
406
+ };
407
+ });
408
+ };
409
+ const detectOs = (oses, userAgent) => {
410
+ return detect$2(oses, userAgent).map((os) => {
411
+ const version = Version.detect(os.versionRegexes, userAgent);
412
+ return {
413
+ current: os.name,
414
+ version
415
+ };
416
+ });
417
+ };
418
+
419
+ const normalVersionRegex = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/;
420
+ const checkContains = (target) => {
421
+ return (uastring) => {
422
+ return contains(uastring, target);
423
+ };
424
+ };
425
+ const browsers = [
426
+ // This is legacy Edge
427
+ {
428
+ name: 'Edge',
429
+ versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
430
+ search: (uastring) => {
431
+ return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
432
+ }
433
+ },
434
+ // This is Google Chrome and Chromium Edge
435
+ {
436
+ name: 'Chromium',
437
+ brand: 'Chromium',
438
+ versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/, normalVersionRegex],
439
+ search: (uastring) => {
440
+ return contains(uastring, 'chrome') && !contains(uastring, 'chromeframe');
441
+ }
442
+ },
443
+ {
444
+ name: 'IE',
445
+ versionRegexes: [/.*?msie\ ?([0-9]+)\.([0-9]+).*/, /.*?rv:([0-9]+)\.([0-9]+).*/],
446
+ search: (uastring) => {
447
+ return contains(uastring, 'msie') || contains(uastring, 'trident');
448
+ }
449
+ },
450
+ // INVESTIGATE: Is this still the Opera user agent?
451
+ {
452
+ name: 'Opera',
453
+ versionRegexes: [normalVersionRegex, /.*?opera\/([0-9]+)\.([0-9]+).*/],
454
+ search: checkContains('opera')
455
+ },
456
+ {
457
+ name: 'Firefox',
458
+ versionRegexes: [/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],
459
+ search: checkContains('firefox')
460
+ },
461
+ {
462
+ name: 'Safari',
463
+ versionRegexes: [normalVersionRegex, /.*?cpu os ([0-9]+)_([0-9]+).*/],
464
+ search: (uastring) => {
465
+ return (contains(uastring, 'safari') || contains(uastring, 'mobile/')) && contains(uastring, 'applewebkit');
466
+ }
467
+ }
468
+ ];
469
+ const oses = [
470
+ {
471
+ name: 'Windows',
472
+ search: checkContains('win'),
473
+ versionRegexes: [/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]
474
+ },
475
+ {
476
+ name: 'iOS',
477
+ search: (uastring) => {
478
+ return contains(uastring, 'iphone') || contains(uastring, 'ipad');
479
+ },
480
+ versionRegexes: [/.*?version\/\ ?([0-9]+)\.([0-9]+).*/, /.*cpu os ([0-9]+)_([0-9]+).*/, /.*cpu iphone os ([0-9]+)_([0-9]+).*/]
481
+ },
482
+ {
483
+ name: 'Android',
484
+ search: checkContains('android'),
485
+ versionRegexes: [/.*?android\ ?([0-9]+)\.([0-9]+).*/]
486
+ },
487
+ {
488
+ name: 'macOS',
489
+ search: checkContains('mac os x'),
490
+ versionRegexes: [/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]
491
+ },
492
+ {
493
+ name: 'Linux',
494
+ search: checkContains('linux'),
495
+ versionRegexes: []
496
+ },
497
+ { name: 'Solaris',
498
+ search: checkContains('sunos'),
499
+ versionRegexes: []
500
+ },
501
+ {
502
+ name: 'FreeBSD',
503
+ search: checkContains('freebsd'),
504
+ versionRegexes: []
505
+ },
506
+ {
507
+ name: 'ChromeOS',
508
+ search: checkContains('cros'),
509
+ versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/]
510
+ }
511
+ ];
512
+ const PlatformInfo = {
513
+ browsers: constant(browsers),
514
+ oses: constant(oses)
515
+ };
516
+
517
+ const edge = 'Edge';
518
+ const chromium = 'Chromium';
519
+ const ie = 'IE';
520
+ const opera = 'Opera';
521
+ const firefox = 'Firefox';
522
+ const safari = 'Safari';
523
+ const unknown$1 = () => {
524
+ return nu$1({
525
+ current: undefined,
526
+ version: Version.unknown()
527
+ });
528
+ };
529
+ const nu$1 = (info) => {
530
+ const current = info.current;
531
+ const version = info.version;
532
+ const isBrowser = (name) => () => current === name;
533
+ return {
534
+ current,
535
+ version,
536
+ isEdge: isBrowser(edge),
537
+ isChromium: isBrowser(chromium),
538
+ // NOTE: isIe just looks too weird
539
+ isIE: isBrowser(ie),
540
+ isOpera: isBrowser(opera),
541
+ isFirefox: isBrowser(firefox),
542
+ isSafari: isBrowser(safari)
543
+ };
544
+ };
545
+ const Browser = {
546
+ unknown: unknown$1,
547
+ nu: nu$1,
548
+ edge: constant(edge),
549
+ chromium: constant(chromium),
550
+ ie: constant(ie),
551
+ opera: constant(opera),
552
+ firefox: constant(firefox),
553
+ safari: constant(safari)
554
+ };
555
+
556
+ const windows = 'Windows';
557
+ const ios = 'iOS';
558
+ const android = 'Android';
559
+ const linux = 'Linux';
560
+ const macos = 'macOS';
561
+ const solaris = 'Solaris';
562
+ const freebsd = 'FreeBSD';
563
+ const chromeos = 'ChromeOS';
564
+ // Though there is a bit of dupe with this and Browser, trying to
565
+ // reuse code makes it much harder to follow and change.
566
+ const unknown = () => {
567
+ return nu({
568
+ current: undefined,
569
+ version: Version.unknown()
570
+ });
571
+ };
572
+ const nu = (info) => {
573
+ const current = info.current;
574
+ const version = info.version;
575
+ const isOS = (name) => () => current === name;
576
+ return {
577
+ current,
578
+ version,
579
+ isWindows: isOS(windows),
580
+ // TODO: Fix capitalisation
581
+ isiOS: isOS(ios),
582
+ isAndroid: isOS(android),
583
+ isMacOS: isOS(macos),
584
+ isLinux: isOS(linux),
585
+ isSolaris: isOS(solaris),
586
+ isFreeBSD: isOS(freebsd),
587
+ isChromeOS: isOS(chromeos)
588
+ };
589
+ };
590
+ const OperatingSystem = {
591
+ unknown,
592
+ nu,
593
+ windows: constant(windows),
594
+ ios: constant(ios),
595
+ android: constant(android),
596
+ linux: constant(linux),
597
+ macos: constant(macos),
598
+ solaris: constant(solaris),
599
+ freebsd: constant(freebsd),
600
+ chromeos: constant(chromeos)
601
+ };
602
+
603
+ const detect$1 = (userAgent, userAgentDataOpt, mediaMatch) => {
604
+ const browsers = PlatformInfo.browsers();
605
+ const oses = PlatformInfo.oses();
606
+ const browser = userAgentDataOpt.bind((userAgentData) => detectBrowser$1(browsers, userAgentData))
607
+ .orThunk(() => detectBrowser(browsers, userAgent))
608
+ .fold(Browser.unknown, Browser.nu);
609
+ const os = detectOs(oses, userAgent).fold(OperatingSystem.unknown, OperatingSystem.nu);
610
+ const deviceType = DeviceType(os, browser, userAgent, mediaMatch);
611
+ return {
612
+ browser,
613
+ os,
614
+ deviceType
615
+ };
616
+ };
617
+ const PlatformDetection = {
618
+ detect: detect$1
619
+ };
620
+
621
+ const mediaMatch = (query) => window.matchMedia(query).matches;
622
+ // IMPORTANT: Must be in a thunk, otherwise rollup thinks calling this immediately
623
+ // causes side effects and won't tree shake this away
624
+ // Note: navigator.userAgentData is not part of the native typescript types yet
625
+ let platform = cached(() => PlatformDetection.detect(window.navigator.userAgent, Optional.from((window.navigator.userAgentData)), mediaMatch));
626
+ const detect = () => platform();
627
+
628
+ const isMacOS = () => detect().os.isMacOS();
629
+ const isiOS = () => detect().os.isiOS();
630
+
631
+ const getPreventClicksOnLinksScript = () => {
632
+ const isMacOSOrIOS = isMacOS() || isiOS();
633
+ const fn = (isMacOSOrIOS) => {
634
+ document.addEventListener('click', (e) => {
635
+ for (let elm = e.target; elm; elm = elm.parentNode) {
636
+ if (elm.nodeName === 'A') {
637
+ const anchor = elm;
638
+ const href = anchor.getAttribute('href');
639
+ if (href && href.startsWith('#')) {
640
+ e.preventDefault();
641
+ const targetElement = document.getElementById(href.substring(1));
642
+ if (targetElement) {
643
+ targetElement.scrollIntoView({ behavior: 'smooth' });
644
+ }
645
+ return;
646
+ }
647
+ const isMetaKeyPressed = isMacOSOrIOS ? e.metaKey : e.ctrlKey && !e.altKey;
648
+ if (!isMetaKeyPressed) {
649
+ e.preventDefault();
650
+ }
651
+ }
652
+ }
653
+ }, false);
654
+ };
655
+ return `<script>(${fn.toString()})(${isMacOSOrIOS})</script>`;
656
+ };
657
+
658
+ var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
659
+
660
+ const option = (name) => (editor) => editor.options.get(name);
661
+ const getContentStyle = option('content_style');
662
+ const shouldUseContentCssCors = option('content_css_cors');
663
+ const getBodyClass = option('body_class');
664
+ const getBodyId = option('body_id');
665
+
666
+ const getPreviewHtml = (editor) => {
667
+ var _a;
668
+ let headHtml = '';
669
+ const encode = editor.dom.encode;
670
+ const contentStyle = (_a = getContentStyle(editor)) !== null && _a !== void 0 ? _a : '';
671
+ headHtml += `<base href="${encode(editor.documentBaseURI.getURI())}">`;
672
+ const cors = shouldUseContentCssCors(editor) ? ' crossorigin="anonymous"' : '';
673
+ global.each(editor.contentCSS, (url) => {
674
+ headHtml += '<link type="text/css" rel="stylesheet" href="' + encode(editor.documentBaseURI.toAbsolute(url)) + '"' + cors + '>';
675
+ });
676
+ if (contentStyle) {
677
+ headHtml += '<style type="text/css">' + contentStyle + '</style>';
678
+ }
679
+ const bodyId = getBodyId(editor);
680
+ const bodyClass = getBodyClass(editor);
681
+ const directionality = editor.getBody().dir;
682
+ const dirAttr = directionality ? ' dir="' + encode(directionality) + '"' : '';
683
+ const previewHtml = ('<!DOCTYPE html>' +
684
+ '<html>' +
685
+ '<head>' +
686
+ headHtml +
687
+ '</head>' +
688
+ '<body id="' + encode(bodyId) + '" class="mce-content-body ' + encode(bodyClass) + '"' + dirAttr + '>' +
689
+ editor.getContent() +
690
+ getPreventClicksOnLinksScript() +
691
+ '</body>' +
692
+ '</html>');
693
+ return previewHtml;
694
+ };
695
+
696
+ const open = (editor) => {
697
+ const content = getPreviewHtml(editor);
698
+ const dataApi = editor.windowManager.open({
699
+ title: 'Preview',
700
+ size: 'large',
701
+ body: {
702
+ type: 'panel',
703
+ items: [
704
+ {
705
+ name: 'preview',
706
+ type: 'iframe',
707
+ sandboxed: true,
708
+ transparent: false
709
+ }
710
+ ]
711
+ },
712
+ buttons: [
713
+ {
714
+ type: 'cancel',
715
+ name: 'close',
716
+ text: 'Close',
717
+ primary: true
718
+ }
719
+ ],
720
+ initialData: {
721
+ preview: content
722
+ }
723
+ });
724
+ // Focus the close button, as by default the first element in the body is selected
725
+ // which we don't want to happen here since the body only has the iframe content
726
+ dataApi.focus('close');
727
+ };
728
+
729
+ const register$1 = (editor) => {
730
+ editor.addCommand('mcePreview', () => {
731
+ open(editor);
732
+ });
733
+ };
734
+
735
+ const register = (editor) => {
736
+ const onAction = () => editor.execCommand('mcePreview');
737
+ editor.ui.registry.addButton('preview', {
738
+ icon: 'preview',
739
+ tooltip: 'Preview',
740
+ onAction,
741
+ context: 'any'
742
+ });
743
+ editor.ui.registry.addMenuItem('preview', {
744
+ icon: 'preview',
745
+ text: 'Preview',
746
+ onAction,
747
+ context: 'any'
748
+ });
749
+ };
750
+
751
+ var Plugin = () => {
752
+ global$1.add('preview', (editor) => {
753
+ register$1(editor);
754
+ register(editor);
755
+ });
756
+ };
757
+
758
+ Plugin();
759
+ /** *****
760
+ * DO NOT EXPORT ANYTHING
761
+ *
762
+ * IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE
763
+ *******/
764
+
765
+ })();