create-nextjs-cms 0.5.56 → 0.5.58

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 (337) hide show
  1. package/package.json +4 -4
  2. package/templates/default/CHANGELOG.md +140 -140
  3. package/templates/default/_gitignore +1 -0
  4. package/templates/default/app/(rootLayout)/admins/page.tsx +7 -2
  5. package/templates/default/app/(rootLayout)/advanced/page.tsx +8 -2
  6. package/templates/default/app/(rootLayout)/browse/[section]/[page]/page.tsx +17 -3
  7. package/templates/default/app/(rootLayout)/categorized/[section]/page.tsx +9 -1
  8. package/templates/default/app/(rootLayout)/dashboard-new/page.tsx +7 -0
  9. package/templates/default/app/(rootLayout)/edit/[section]/[itemId]/page.tsx +11 -1
  10. package/templates/default/app/(rootLayout)/layout.tsx +8 -1
  11. package/templates/default/app/(rootLayout)/new/[section]/page.tsx +9 -1
  12. package/templates/default/app/(rootLayout)/section/[section]/page.tsx +10 -1
  13. package/templates/default/app/(rootLayout)/settings/page.tsx +7 -1
  14. package/templates/default/app/api/trpc/[trpc]/route.ts +1 -1
  15. package/templates/default/app/api/video/route.ts +1 -1
  16. package/templates/default/app/layout.tsx +1 -1
  17. package/templates/default/app/providers.tsx +4 -4
  18. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/LICENSE +191 -0
  19. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/README.md +118 -0
  20. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/install/build.js +38 -0
  21. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/install/check.js +14 -0
  22. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/channel.js +177 -0
  23. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/colour.js +195 -0
  24. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/composite.js +212 -0
  25. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/constructor.js +499 -0
  26. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/index.d.ts +1971 -0
  27. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/index.js +16 -0
  28. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/input.js +809 -0
  29. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/is.js +143 -0
  30. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/libvips.js +207 -0
  31. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/operation.js +1016 -0
  32. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/output.js +1666 -0
  33. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/resize.js +595 -0
  34. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/sharp.js +121 -0
  35. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/utility.js +291 -0
  36. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/package.json +202 -0
  37. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/binding.gyp +298 -0
  38. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/common.cc +1130 -0
  39. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/common.h +402 -0
  40. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/metadata.cc +346 -0
  41. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/metadata.h +90 -0
  42. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/operations.cc +499 -0
  43. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/operations.h +137 -0
  44. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/pipeline.cc +1814 -0
  45. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/pipeline.h +408 -0
  46. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/sharp.cc +43 -0
  47. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/stats.cc +186 -0
  48. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/stats.h +62 -0
  49. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/utilities.cc +288 -0
  50. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/utilities.h +22 -0
  51. package/templates/default/components/BrowsePage.tsx +4 -4
  52. package/templates/default/components/DashboardNewPage.tsx +252 -0
  53. package/templates/default/components/LogPage.tsx +2 -3
  54. package/templates/default/components/SettingsPage.tsx +1 -1
  55. package/templates/default/components/form/Form.tsx +5 -5
  56. package/templates/default/components/form/helpers/util.ts +5 -5
  57. package/templates/default/dynamic-schemas/schema.ts +381 -381
  58. package/templates/default/next-env.d.ts +1 -1
  59. package/templates/default/next.config.ts +24 -0
  60. package/templates/default/package.json +23 -17
  61. package/templates/default/{middleware.ts → proxy.ts} +3 -4
  62. package/templates/default/test/prize.section.ts +58 -0
  63. package/templates/default/tsconfig.json +6 -3
  64. package/templates/default/app/api/placeholder/route.ts +0 -7
  65. package/templates/default/components/form/helpers/_section-hot-reload.js +0 -11
  66. package/templates/default/public/tinymce/CHANGELOG.md +0 -3940
  67. package/templates/default/public/tinymce/README.md +0 -77
  68. package/templates/default/public/tinymce/bower.json +0 -27
  69. package/templates/default/public/tinymce/composer.json +0 -52
  70. package/templates/default/public/tinymce/icons/default/icons.js +0 -239
  71. package/templates/default/public/tinymce/icons/default/icons.min.js +0 -1
  72. package/templates/default/public/tinymce/icons/default/index.js +0 -7
  73. package/templates/default/public/tinymce/license.md +0 -9
  74. package/templates/default/public/tinymce/models/dom/index.js +0 -7
  75. package/templates/default/public/tinymce/models/dom/model.js +0 -8980
  76. package/templates/default/public/tinymce/models/dom/model.min.js +0 -1
  77. package/templates/default/public/tinymce/notices.txt +0 -21
  78. package/templates/default/public/tinymce/package.json +0 -32
  79. package/templates/default/public/tinymce/plugins/accordion/index.js +0 -7
  80. package/templates/default/public/tinymce/plugins/accordion/plugin.js +0 -1373
  81. package/templates/default/public/tinymce/plugins/accordion/plugin.min.js +0 -1
  82. package/templates/default/public/tinymce/plugins/advlist/index.js +0 -7
  83. package/templates/default/public/tinymce/plugins/advlist/plugin.js +0 -473
  84. package/templates/default/public/tinymce/plugins/advlist/plugin.min.js +0 -1
  85. package/templates/default/public/tinymce/plugins/anchor/index.js +0 -7
  86. package/templates/default/public/tinymce/plugins/anchor/plugin.js +0 -237
  87. package/templates/default/public/tinymce/plugins/anchor/plugin.min.js +0 -1
  88. package/templates/default/public/tinymce/plugins/autolink/index.js +0 -7
  89. package/templates/default/public/tinymce/plugins/autolink/plugin.js +0 -315
  90. package/templates/default/public/tinymce/plugins/autolink/plugin.min.js +0 -1
  91. package/templates/default/public/tinymce/plugins/autoresize/index.js +0 -7
  92. package/templates/default/public/tinymce/plugins/autoresize/plugin.js +0 -221
  93. package/templates/default/public/tinymce/plugins/autoresize/plugin.min.js +0 -1
  94. package/templates/default/public/tinymce/plugins/autosave/index.js +0 -7
  95. package/templates/default/public/tinymce/plugins/autosave/plugin.js +0 -249
  96. package/templates/default/public/tinymce/plugins/autosave/plugin.min.js +0 -1
  97. package/templates/default/public/tinymce/plugins/charmap/index.js +0 -7
  98. package/templates/default/public/tinymce/plugins/charmap/plugin.js +0 -997
  99. package/templates/default/public/tinymce/plugins/charmap/plugin.min.js +0 -1
  100. package/templates/default/public/tinymce/plugins/code/index.js +0 -7
  101. package/templates/default/public/tinymce/plugins/code/plugin.js +0 -98
  102. package/templates/default/public/tinymce/plugins/code/plugin.min.js +0 -1
  103. package/templates/default/public/tinymce/plugins/codesample/index.js +0 -7
  104. package/templates/default/public/tinymce/plugins/codesample/plugin.js +0 -3655
  105. package/templates/default/public/tinymce/plugins/codesample/plugin.min.js +0 -9
  106. package/templates/default/public/tinymce/plugins/directionality/index.js +0 -7
  107. package/templates/default/public/tinymce/plugins/directionality/plugin.js +0 -634
  108. package/templates/default/public/tinymce/plugins/directionality/plugin.min.js +0 -1
  109. package/templates/default/public/tinymce/plugins/emoticons/index.js +0 -7
  110. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.js +0 -1
  111. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.min.js +0 -1
  112. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.js +0 -1
  113. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.min.js +0 -1
  114. package/templates/default/public/tinymce/plugins/emoticons/plugin.js +0 -809
  115. package/templates/default/public/tinymce/plugins/emoticons/plugin.min.js +0 -1
  116. package/templates/default/public/tinymce/plugins/fullscreen/index.js +0 -7
  117. package/templates/default/public/tinymce/plugins/fullscreen/plugin.js +0 -1607
  118. package/templates/default/public/tinymce/plugins/fullscreen/plugin.min.js +0 -1
  119. package/templates/default/public/tinymce/plugins/help/index.js +0 -7
  120. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ar.js +0 -93
  121. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg-BG.js +0 -93
  122. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +0 -93
  123. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ca.js +0 -93
  124. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/cs.js +0 -93
  125. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/da.js +0 -93
  126. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/de.js +0 -93
  127. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/el.js +0 -93
  128. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/en.js +0 -93
  129. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/es.js +0 -93
  130. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/eu.js +0 -93
  131. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fa.js +0 -93
  132. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fi.js +0 -93
  133. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr-FR.js +0 -93
  134. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +0 -93
  135. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he-IL.js +0 -93
  136. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he_IL.js +0 -93
  137. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hi.js +0 -93
  138. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hr.js +0 -93
  139. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu-HU.js +0 -93
  140. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +0 -93
  141. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/id.js +0 -93
  142. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/it.js +0 -93
  143. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ja.js +0 -93
  144. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/kk.js +0 -93
  145. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko-KR.js +0 -93
  146. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +0 -93
  147. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ms.js +0 -93
  148. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb-NO.js +0 -93
  149. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +0 -93
  150. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nl.js +0 -93
  151. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pl.js +0 -93
  152. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-BR.js +0 -93
  153. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-PT.js +0 -93
  154. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +0 -93
  155. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +0 -93
  156. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ro.js +0 -93
  157. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ru.js +0 -93
  158. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sk.js +0 -93
  159. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl-SI.js +0 -93
  160. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +0 -93
  161. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv-SE.js +0 -93
  162. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +0 -93
  163. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th-TH.js +0 -93
  164. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th_TH.js +0 -93
  165. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/tr.js +0 -93
  166. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/uk.js +0 -93
  167. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/vi.js +0 -93
  168. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-CN.js +0 -87
  169. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-TW.js +0 -93
  170. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +0 -87
  171. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +0 -93
  172. package/templates/default/public/tinymce/plugins/help/plugin.js +0 -826
  173. package/templates/default/public/tinymce/plugins/help/plugin.min.js +0 -1
  174. package/templates/default/public/tinymce/plugins/image/index.js +0 -7
  175. package/templates/default/public/tinymce/plugins/image/plugin.js +0 -1691
  176. package/templates/default/public/tinymce/plugins/image/plugin.min.js +0 -1
  177. package/templates/default/public/tinymce/plugins/importcss/index.js +0 -7
  178. package/templates/default/public/tinymce/plugins/importcss/plugin.js +0 -401
  179. package/templates/default/public/tinymce/plugins/importcss/plugin.min.js +0 -1
  180. package/templates/default/public/tinymce/plugins/insertdatetime/index.js +0 -7
  181. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.js +0 -187
  182. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.min.js +0 -1
  183. package/templates/default/public/tinymce/plugins/link/index.js +0 -7
  184. package/templates/default/public/tinymce/plugins/link/plugin.js +0 -1709
  185. package/templates/default/public/tinymce/plugins/link/plugin.min.js +0 -1
  186. package/templates/default/public/tinymce/plugins/lists/index.js +0 -7
  187. package/templates/default/public/tinymce/plugins/lists/plugin.js +0 -602
  188. package/templates/default/public/tinymce/plugins/lists/plugin.min.js +0 -1
  189. package/templates/default/public/tinymce/plugins/media/index.js +0 -7
  190. package/templates/default/public/tinymce/plugins/media/plugin.js +0 -1442
  191. package/templates/default/public/tinymce/plugins/media/plugin.min.js +0 -1
  192. package/templates/default/public/tinymce/plugins/nonbreaking/index.js +0 -7
  193. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.js +0 -128
  194. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.min.js +0 -1
  195. package/templates/default/public/tinymce/plugins/pagebreak/index.js +0 -7
  196. package/templates/default/public/tinymce/plugins/pagebreak/plugin.js +0 -123
  197. package/templates/default/public/tinymce/plugins/pagebreak/plugin.min.js +0 -1
  198. package/templates/default/public/tinymce/plugins/preview/index.js +0 -7
  199. package/templates/default/public/tinymce/plugins/preview/plugin.js +0 -843
  200. package/templates/default/public/tinymce/plugins/preview/plugin.min.js +0 -1
  201. package/templates/default/public/tinymce/plugins/quickbars/index.js +0 -7
  202. package/templates/default/public/tinymce/plugins/quickbars/plugin.js +0 -654
  203. package/templates/default/public/tinymce/plugins/quickbars/plugin.min.js +0 -1
  204. package/templates/default/public/tinymce/plugins/save/index.js +0 -7
  205. package/templates/default/public/tinymce/plugins/save/plugin.js +0 -136
  206. package/templates/default/public/tinymce/plugins/save/plugin.min.js +0 -1
  207. package/templates/default/public/tinymce/plugins/searchreplace/index.js +0 -7
  208. package/templates/default/public/tinymce/plugins/searchreplace/plugin.js +0 -1367
  209. package/templates/default/public/tinymce/plugins/searchreplace/plugin.min.js +0 -1
  210. package/templates/default/public/tinymce/plugins/table/index.js +0 -7
  211. package/templates/default/public/tinymce/plugins/table/plugin.js +0 -4008
  212. package/templates/default/public/tinymce/plugins/table/plugin.min.js +0 -1
  213. package/templates/default/public/tinymce/plugins/visualblocks/index.js +0 -7
  214. package/templates/default/public/tinymce/plugins/visualblocks/plugin.js +0 -106
  215. package/templates/default/public/tinymce/plugins/visualblocks/plugin.min.js +0 -1
  216. package/templates/default/public/tinymce/plugins/visualchars/index.js +0 -7
  217. package/templates/default/public/tinymce/plugins/visualchars/plugin.js +0 -808
  218. package/templates/default/public/tinymce/plugins/visualchars/plugin.min.js +0 -1
  219. package/templates/default/public/tinymce/plugins/wordcount/index.js +0 -7
  220. package/templates/default/public/tinymce/plugins/wordcount/plugin.js +0 -480
  221. package/templates/default/public/tinymce/plugins/wordcount/plugin.min.js +0 -1
  222. package/templates/default/public/tinymce/skins/content/dark/content.css +0 -75
  223. package/templates/default/public/tinymce/skins/content/dark/content.js +0 -10
  224. package/templates/default/public/tinymce/skins/content/dark/content.min.css +0 -10
  225. package/templates/default/public/tinymce/skins/content/dark/content.min.ts +0 -3
  226. package/templates/default/public/tinymce/skins/content/dark/content.ts +0 -3
  227. package/templates/default/public/tinymce/skins/content/default/content.css +0 -70
  228. package/templates/default/public/tinymce/skins/content/default/content.js +0 -10
  229. package/templates/default/public/tinymce/skins/content/default/content.min.css +0 -10
  230. package/templates/default/public/tinymce/skins/content/default/content.min.ts +0 -3
  231. package/templates/default/public/tinymce/skins/content/default/content.ts +0 -3
  232. package/templates/default/public/tinymce/skins/content/document/content.css +0 -75
  233. package/templates/default/public/tinymce/skins/content/document/content.js +0 -10
  234. package/templates/default/public/tinymce/skins/content/document/content.min.css +0 -10
  235. package/templates/default/public/tinymce/skins/content/document/content.min.ts +0 -3
  236. package/templates/default/public/tinymce/skins/content/document/content.ts +0 -3
  237. package/templates/default/public/tinymce/skins/content/tinymce-5/content.css +0 -70
  238. package/templates/default/public/tinymce/skins/content/tinymce-5/content.js +0 -10
  239. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.css +0 -10
  240. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.ts +0 -3
  241. package/templates/default/public/tinymce/skins/content/tinymce-5/content.ts +0 -3
  242. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.css +0 -75
  243. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.js +0 -10
  244. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -10
  245. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.ts +0 -3
  246. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.ts +0 -3
  247. package/templates/default/public/tinymce/skins/content/writer/content.css +0 -71
  248. package/templates/default/public/tinymce/skins/content/writer/content.js +0 -10
  249. package/templates/default/public/tinymce/skins/content/writer/content.min.css +0 -10
  250. package/templates/default/public/tinymce/skins/content/writer/content.min.ts +0 -3
  251. package/templates/default/public/tinymce/skins/content/writer/content.ts +0 -3
  252. package/templates/default/public/tinymce/skins/ui/oxide/content.css +0 -1037
  253. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.css +0 -1031
  254. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.js +0 -10
  255. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -10
  256. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.ts +0 -116
  257. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.ts +0 -116
  258. package/templates/default/public/tinymce/skins/ui/oxide/content.js +0 -10
  259. package/templates/default/public/tinymce/skins/ui/oxide/content.min.css +0 -10
  260. package/templates/default/public/tinymce/skins/ui/oxide/content.min.ts +0 -116
  261. package/templates/default/public/tinymce/skins/ui/oxide/content.ts +0 -116
  262. package/templates/default/public/tinymce/skins/ui/oxide/skin.css +0 -5615
  263. package/templates/default/public/tinymce/skins/ui/oxide/skin.js +0 -1
  264. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  265. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.ts +0 -507
  266. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  267. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -1
  268. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  269. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.ts +0 -9
  270. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.ts +0 -9
  271. package/templates/default/public/tinymce/skins/ui/oxide/skin.ts +0 -507
  272. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.css +0 -1025
  273. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -1031
  274. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -10
  275. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -10
  276. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.ts +0 -116
  277. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.ts +0 -116
  278. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.js +0 -10
  279. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -10
  280. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.ts +0 -116
  281. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.ts +0 -116
  282. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.css +0 -5618
  283. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.js +0 -1
  284. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  285. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.ts +0 -507
  286. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  287. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -1
  288. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  289. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.ts +0 -9
  290. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.ts +0 -9
  291. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.ts +0 -507
  292. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.css +0 -1037
  293. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.css +0 -1031
  294. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.js +0 -10
  295. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -10
  296. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.ts +0 -116
  297. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.ts +0 -116
  298. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.js +0 -10
  299. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.css +0 -10
  300. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.ts +0 -116
  301. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.ts +0 -116
  302. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.css +0 -5734
  303. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.js +0 -1
  304. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.css +0 -1
  305. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.ts +0 -508
  306. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
  307. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +0 -1
  308. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
  309. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.ts +0 -9
  310. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.ts +0 -9
  311. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.ts +0 -508
  312. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.css +0 -1025
  313. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -1031
  314. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.js +0 -10
  315. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -10
  316. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.ts +0 -116
  317. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.ts +0 -116
  318. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.js +0 -10
  319. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -10
  320. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.ts +0 -116
  321. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.ts +0 -116
  322. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -5734
  323. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.js +0 -1
  324. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -1
  325. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.ts +0 -508
  326. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
  327. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +0 -1
  328. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
  329. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.ts +0 -9
  330. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.ts +0 -9
  331. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.ts +0 -508
  332. package/templates/default/public/tinymce/themes/silver/index.js +0 -7
  333. package/templates/default/public/tinymce/themes/silver/theme.js +0 -34748
  334. package/templates/default/public/tinymce/themes/silver/theme.min.js +0 -1
  335. package/templates/default/public/tinymce/tinymce.d.ts +0 -3413
  336. package/templates/default/public/tinymce/tinymce.js +0 -41518
  337. package/templates/default/public/tinymce/tinymce.min.js +0 -10
@@ -1,634 +0,0 @@
1
- /**
2
- * TinyMCE version 8.3.1 (2025-12-17)
3
- */
4
-
5
- (function () {
6
- 'use strict';
7
-
8
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
-
10
- /* eslint-disable @typescript-eslint/no-wrapper-object-types */
11
- const hasProto = (v, constructor, predicate) => {
12
- if (predicate(v, constructor.prototype)) {
13
- return true;
14
- }
15
- else {
16
- // String-based fallback time
17
- return v.constructor?.name === constructor.name;
18
- }
19
- };
20
- const typeOf = (x) => {
21
- const t = typeof x;
22
- if (x === null) {
23
- return 'null';
24
- }
25
- else if (t === 'object' && Array.isArray(x)) {
26
- return 'array';
27
- }
28
- else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
29
- return 'string';
30
- }
31
- else {
32
- return t;
33
- }
34
- };
35
- const isType$1 = (type) => (value) => typeOf(value) === type;
36
- const isSimpleType = (type) => (value) => typeof value === type;
37
- const isString = isType$1('string');
38
- const isBoolean = isSimpleType('boolean');
39
- const isNullable = (a) => a === null || a === undefined;
40
- const isNonNullable = (a) => !isNullable(a);
41
- const isFunction = isSimpleType('function');
42
- const isNumber = isSimpleType('number');
43
-
44
- /** Compose two unary functions. Similar to compose, but avoids using Function.prototype.apply. */
45
- const compose1 = (fbc, fab) => (a) => fbc(fab(a));
46
- const constant = (value) => {
47
- return () => {
48
- return value;
49
- };
50
- };
51
- const never = constant(false);
52
-
53
- /**
54
- * The `Optional` type represents a value (of any type) that potentially does
55
- * not exist. Any `Optional<T>` can either be a `Some<T>` (in which case the
56
- * value does exist) or a `None` (in which case the value does not exist). This
57
- * module defines a whole lot of FP-inspired utility functions for dealing with
58
- * `Optional` objects.
59
- *
60
- * Comparison with null or undefined:
61
- * - We don't get fancy null coalescing operators with `Optional`
62
- * - We do get fancy helper functions with `Optional`
63
- * - `Optional` support nesting, and allow for the type to still be nullable (or
64
- * another `Optional`)
65
- * - There is no option to turn off strict-optional-checks like there is for
66
- * strict-null-checks
67
- */
68
- class Optional {
69
- tag;
70
- value;
71
- // Sneaky optimisation: every instance of Optional.none is identical, so just
72
- // reuse the same object
73
- static singletonNone = new Optional(false);
74
- // The internal representation has a `tag` and a `value`, but both are
75
- // private: able to be console.logged, but not able to be accessed by code
76
- constructor(tag, value) {
77
- this.tag = tag;
78
- this.value = value;
79
- }
80
- // --- Identities ---
81
- /**
82
- * Creates a new `Optional<T>` that **does** contain a value.
83
- */
84
- static some(value) {
85
- return new Optional(true, value);
86
- }
87
- /**
88
- * Create a new `Optional<T>` that **does not** contain a value. `T` can be
89
- * any type because we don't actually have a `T`.
90
- */
91
- static none() {
92
- return Optional.singletonNone;
93
- }
94
- /**
95
- * Perform a transform on an `Optional` type. Regardless of whether this
96
- * `Optional` contains a value or not, `fold` will return a value of type `U`.
97
- * If this `Optional` does not contain a value, the `U` will be created by
98
- * calling `onNone`. If this `Optional` does contain a value, the `U` will be
99
- * created by calling `onSome`.
100
- *
101
- * For the FP enthusiasts in the room, this function:
102
- * 1. Could be used to implement all of the functions below
103
- * 2. Forms a catamorphism
104
- */
105
- fold(onNone, onSome) {
106
- if (this.tag) {
107
- return onSome(this.value);
108
- }
109
- else {
110
- return onNone();
111
- }
112
- }
113
- /**
114
- * Determine if this `Optional` object contains a value.
115
- */
116
- isSome() {
117
- return this.tag;
118
- }
119
- /**
120
- * Determine if this `Optional` object **does not** contain a value.
121
- */
122
- isNone() {
123
- return !this.tag;
124
- }
125
- // --- Functor (name stolen from Haskell / maths) ---
126
- /**
127
- * Perform a transform on an `Optional` object, **if** there is a value. If
128
- * you provide a function to turn a T into a U, this is the function you use
129
- * to turn an `Optional<T>` into an `Optional<U>`. If this **does** contain
130
- * a value then the output will also contain a value (that value being the
131
- * output of `mapper(this.value)`), and if this **does not** contain a value
132
- * then neither will the output.
133
- */
134
- map(mapper) {
135
- if (this.tag) {
136
- return Optional.some(mapper(this.value));
137
- }
138
- else {
139
- return Optional.none();
140
- }
141
- }
142
- // --- Monad (name stolen from Haskell / maths) ---
143
- /**
144
- * Perform a transform on an `Optional` object, **if** there is a value.
145
- * Unlike `map`, here the transform itself also returns an `Optional`.
146
- */
147
- bind(binder) {
148
- if (this.tag) {
149
- return binder(this.value);
150
- }
151
- else {
152
- return Optional.none();
153
- }
154
- }
155
- // --- Traversable (name stolen from Haskell / maths) ---
156
- /**
157
- * For a given predicate, this function finds out if there **exists** a value
158
- * inside this `Optional` object that meets the predicate. In practice, this
159
- * means that for `Optional`s that do not contain a value it returns false (as
160
- * no predicate-meeting value exists).
161
- */
162
- exists(predicate) {
163
- return this.tag && predicate(this.value);
164
- }
165
- /**
166
- * For a given predicate, this function finds out if **all** the values inside
167
- * this `Optional` object meet the predicate. In practice, this means that
168
- * for `Optional`s that do not contain a value it returns true (as all 0
169
- * objects do meet the predicate).
170
- */
171
- forall(predicate) {
172
- return !this.tag || predicate(this.value);
173
- }
174
- filter(predicate) {
175
- if (!this.tag || predicate(this.value)) {
176
- return this;
177
- }
178
- else {
179
- return Optional.none();
180
- }
181
- }
182
- // --- Getters ---
183
- /**
184
- * Get the value out of the inside of the `Optional` object, using a default
185
- * `replacement` value if the provided `Optional` object does not contain a
186
- * value.
187
- */
188
- getOr(replacement) {
189
- return this.tag ? this.value : replacement;
190
- }
191
- /**
192
- * Get the value out of the inside of the `Optional` object, using a default
193
- * `replacement` value if the provided `Optional` object does not contain a
194
- * value. Unlike `getOr`, in this method the `replacement` object is also
195
- * `Optional` - meaning that this method will always return an `Optional`.
196
- */
197
- or(replacement) {
198
- return this.tag ? this : replacement;
199
- }
200
- /**
201
- * Get the value out of the inside of the `Optional` object, using a default
202
- * `replacement` value if the provided `Optional` object does not contain a
203
- * value. Unlike `getOr`, in this method the `replacement` value is
204
- * "thunked" - that is to say that you don't pass a value to `getOrThunk`, you
205
- * pass a function which (if called) will **return** the `value` you want to
206
- * use.
207
- */
208
- getOrThunk(thunk) {
209
- return this.tag ? this.value : thunk();
210
- }
211
- /**
212
- * Get the value out of the inside of the `Optional` object, using a default
213
- * `replacement` value if the provided Optional object does not contain a
214
- * value.
215
- *
216
- * Unlike `or`, in this method the `replacement` value is "thunked" - that is
217
- * to say that you don't pass a value to `orThunk`, you pass a function which
218
- * (if called) will **return** the `value` you want to use.
219
- *
220
- * Unlike `getOrThunk`, in this method the `replacement` value is also
221
- * `Optional`, meaning that this method will always return an `Optional`.
222
- */
223
- orThunk(thunk) {
224
- return this.tag ? this : thunk();
225
- }
226
- /**
227
- * Get the value out of the inside of the `Optional` object, throwing an
228
- * exception if the provided `Optional` object does not contain a value.
229
- *
230
- * WARNING:
231
- * You should only be using this function if you know that the `Optional`
232
- * object **is not** empty (otherwise you're throwing exceptions in production
233
- * code, which is bad).
234
- *
235
- * In tests this is more acceptable.
236
- *
237
- * Prefer other methods to this, such as `.each`.
238
- */
239
- getOrDie(message) {
240
- if (!this.tag) {
241
- throw new Error(message ?? 'Called getOrDie on None');
242
- }
243
- else {
244
- return this.value;
245
- }
246
- }
247
- // --- Interop with null and undefined ---
248
- /**
249
- * Creates an `Optional` value from a nullable (or undefined-able) input.
250
- * Null, or undefined, is converted to `None`, and anything else is converted
251
- * to `Some`.
252
- */
253
- static from(value) {
254
- return isNonNullable(value) ? Optional.some(value) : Optional.none();
255
- }
256
- /**
257
- * Converts an `Optional` to a nullable type, by getting the value if it
258
- * exists, or returning `null` if it does not.
259
- */
260
- getOrNull() {
261
- return this.tag ? this.value : null;
262
- }
263
- /**
264
- * Converts an `Optional` to an undefined-able type, by getting the value if
265
- * it exists, or returning `undefined` if it does not.
266
- */
267
- getOrUndefined() {
268
- return this.value;
269
- }
270
- // --- Utilities ---
271
- /**
272
- * If the `Optional` contains a value, perform an action on that value.
273
- * Unlike the rest of the methods on this type, `.each` has side-effects. If
274
- * you want to transform an `Optional<T>` **into** something, then this is not
275
- * the method for you. If you want to use an `Optional<T>` to **do**
276
- * something, then this is the method for you - provided you're okay with not
277
- * doing anything in the case where the `Optional` doesn't have a value inside
278
- * it. If you're not sure whether your use-case fits into transforming
279
- * **into** something or **doing** something, check whether it has a return
280
- * value. If it does, you should be performing a transform.
281
- */
282
- each(worker) {
283
- if (this.tag) {
284
- worker(this.value);
285
- }
286
- }
287
- /**
288
- * Turn the `Optional` object into an array that contains all of the values
289
- * stored inside the `Optional`. In practice, this means the output will have
290
- * either 0 or 1 elements.
291
- */
292
- toArray() {
293
- return this.tag ? [this.value] : [];
294
- }
295
- /**
296
- * Turn the `Optional` object into a string for debugging or printing. Not
297
- * recommended for production code, but good for debugging. Also note that
298
- * these days an `Optional` object can be logged to the console directly, and
299
- * its inner value (if it exists) will be visible.
300
- */
301
- toString() {
302
- return this.tag ? `some(${this.value})` : 'none()';
303
- }
304
- }
305
-
306
- const nativeSlice = Array.prototype.slice;
307
- const map = (xs, f) => {
308
- // pre-allocating array size when it's guaranteed to be known
309
- // http://jsperf.com/push-allocated-vs-dynamic/22
310
- const len = xs.length;
311
- const r = new Array(len);
312
- for (let i = 0; i < len; i++) {
313
- const x = xs[i];
314
- r[i] = f(x, i);
315
- }
316
- return r;
317
- };
318
- // Unwound implementing other functions in terms of each.
319
- // The code size is roughly the same, and it should allow for better optimisation.
320
- // const each = function<T, U>(xs: T[], f: (x: T, i?: number, xs?: T[]) => void): void {
321
- const each = (xs, f) => {
322
- for (let i = 0, len = xs.length; i < len; i++) {
323
- const x = xs[i];
324
- f(x, i);
325
- }
326
- };
327
- const filter = (xs, pred) => {
328
- const r = [];
329
- for (let i = 0, len = xs.length; i < len; i++) {
330
- const x = xs[i];
331
- if (pred(x, i)) {
332
- r.push(x);
333
- }
334
- }
335
- return r;
336
- };
337
- isFunction(Array.from) ? Array.from : (x) => nativeSlice.call(x);
338
-
339
- const fromHtml = (html, scope) => {
340
- const doc = scope || document;
341
- const div = doc.createElement('div');
342
- div.innerHTML = html;
343
- if (!div.hasChildNodes() || div.childNodes.length > 1) {
344
- const message = 'HTML does not have a single root node';
345
- // eslint-disable-next-line no-console
346
- console.error(message, html);
347
- throw new Error(message);
348
- }
349
- return fromDom(div.childNodes[0]);
350
- };
351
- const fromTag = (tag, scope) => {
352
- const doc = scope || document;
353
- const node = doc.createElement(tag);
354
- return fromDom(node);
355
- };
356
- const fromText = (text, scope) => {
357
- const doc = scope || document;
358
- const node = doc.createTextNode(text);
359
- return fromDom(node);
360
- };
361
- const fromDom = (node) => {
362
- // TODO: Consider removing this check, but left atm for safety
363
- if (node === null || node === undefined) {
364
- throw new Error('Node cannot be null or undefined');
365
- }
366
- return {
367
- dom: node
368
- };
369
- };
370
- const fromPoint = (docElm, x, y) => Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
371
- // tslint:disable-next-line:variable-name
372
- const SugarElement = {
373
- fromHtml,
374
- fromTag,
375
- fromText,
376
- fromDom,
377
- fromPoint
378
- };
379
-
380
- const DOCUMENT_FRAGMENT = 11;
381
- const ELEMENT = 1;
382
- const TEXT = 3;
383
-
384
- const is = (element, selector) => {
385
- const dom = element.dom;
386
- if (dom.nodeType !== ELEMENT) {
387
- return false;
388
- }
389
- else {
390
- const elem = dom;
391
- if (elem.matches !== undefined) {
392
- return elem.matches(selector);
393
- }
394
- else if (elem.msMatchesSelector !== undefined) {
395
- return elem.msMatchesSelector(selector);
396
- }
397
- else if (elem.webkitMatchesSelector !== undefined) {
398
- return elem.webkitMatchesSelector(selector);
399
- }
400
- else if (elem.mozMatchesSelector !== undefined) {
401
- // cast to any as mozMatchesSelector doesn't exist in TS DOM lib
402
- return elem.mozMatchesSelector(selector);
403
- }
404
- else {
405
- throw new Error('Browser lacks native selectors');
406
- } // unfortunately we can't throw this on startup :(
407
- }
408
- };
409
-
410
- const name = (element) => {
411
- const r = element.dom.nodeName;
412
- return r.toLowerCase();
413
- };
414
- const type = (element) => element.dom.nodeType;
415
- const isType = (t) => (element) => type(element) === t;
416
- const isElement = isType(ELEMENT);
417
- const isText = isType(TEXT);
418
- const isDocumentFragment = isType(DOCUMENT_FRAGMENT);
419
- const isTag = (tag) => (e) => isElement(e) && name(e) === tag;
420
-
421
- const parent = (element) => Optional.from(element.dom.parentNode).map(SugarElement.fromDom);
422
- const children$2 = (element) => map(element.dom.childNodes, SugarElement.fromDom);
423
-
424
- /**
425
- * Is the element a ShadowRoot?
426
- *
427
- * Note: this is insufficient to test if any element is a shadow root, but it is sufficient to differentiate between
428
- * a Document and a ShadowRoot.
429
- */
430
- const isShadowRoot = (dos) => isDocumentFragment(dos) && isNonNullable(dos.dom.host);
431
- const getRootNode = (e) => SugarElement.fromDom(e.dom.getRootNode());
432
- /** If this element is in a ShadowRoot, return it. */
433
- const getShadowRoot = (e) => {
434
- const r = getRootNode(e);
435
- return isShadowRoot(r) ? Optional.some(r) : Optional.none();
436
- };
437
- /** Return the host of a ShadowRoot.
438
- *
439
- * This function will throw if Shadow DOM is unsupported in the browser, or if the host is null.
440
- * If you actually have a ShadowRoot, this shouldn't happen.
441
- */
442
- const getShadowHost = (e) => SugarElement.fromDom(e.dom.host);
443
-
444
- const rawSet = (dom, key, value) => {
445
- /*
446
- * JQuery coerced everything to a string, and silently did nothing on text node/null/undefined.
447
- *
448
- * We fail on those invalid cases, only allowing numbers and booleans.
449
- */
450
- if (isString(value) || isBoolean(value) || isNumber(value)) {
451
- dom.setAttribute(key, value + '');
452
- }
453
- else {
454
- // eslint-disable-next-line no-console
455
- console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
456
- throw new Error('Attribute value was not simple');
457
- }
458
- };
459
- const set = (element, key, value) => {
460
- rawSet(element.dom, key, value);
461
- };
462
- const remove = (element, key) => {
463
- element.dom.removeAttribute(key);
464
- };
465
-
466
- // some elements, such as mathml, don't have style attributes
467
- // others, such as angular elements, have style attributes that aren't a CSSStyleDeclaration
468
- const isSupported = (dom) => dom.style !== undefined && isFunction(dom.style.getPropertyValue);
469
-
470
- // Node.contains() is very, very, very good performance
471
- // http://jsperf.com/closest-vs-contains/5
472
- const inBody = (element) => {
473
- // Technically this is only required on IE, where contains() returns false for text nodes.
474
- // But it's cheap enough to run everywhere and Sugar doesn't have platform detection (yet).
475
- const dom = isText(element) ? element.dom.parentNode : element.dom;
476
- // use ownerDocument.body to ensure this works inside iframes.
477
- // Normally contains is bad because an element "contains" itself, but here we want that.
478
- if (dom === undefined || dom === null || dom.ownerDocument === null) {
479
- return false;
480
- }
481
- const doc = dom.ownerDocument;
482
- return getShadowRoot(SugarElement.fromDom(dom)).fold(() => doc.body.contains(dom), compose1(inBody, getShadowHost));
483
- };
484
-
485
- /*
486
- * NOTE: For certain properties, this returns the "used value" which is subtly different to the "computed value" (despite calling getComputedStyle).
487
- * Blame CSS 2.0.
488
- *
489
- * https://developer.mozilla.org/en-US/docs/Web/CSS/used_value
490
- */
491
- const get = (element, property) => {
492
- const dom = element.dom;
493
- /*
494
- * IE9 and above per
495
- * https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle
496
- *
497
- * Not in numerosity, because it doesn't memoize and looking this up dynamically in performance critical code would be horrendous.
498
- *
499
- * JQuery has some magic here for IE popups, but we don't really need that.
500
- * It also uses element.ownerDocument.defaultView to handle iframes but that hasn't been required since FF 3.6.
501
- */
502
- const styles = window.getComputedStyle(dom);
503
- const r = styles.getPropertyValue(property);
504
- // jquery-ism: If r is an empty string, check that the element is not in a document. If it isn't, return the raw value.
505
- // Turns out we do this a lot.
506
- return (r === '' && !inBody(element)) ? getUnsafeProperty(dom, property) : r;
507
- };
508
- // removed: support for dom().style[property] where prop is camel case instead of normal property name
509
- // empty string is what the browsers (IE11 and Chrome) return when the propertyValue doesn't exists.
510
- const getUnsafeProperty = (dom, property) => isSupported(dom) ? dom.style.getPropertyValue(property) : '';
511
-
512
- const getDirection = (element) => get(element, 'direction') === 'rtl' ? 'rtl' : 'ltr';
513
-
514
- const ancestor$1 = (scope, predicate, isRoot) => {
515
- let element = scope.dom;
516
- const stop = isFunction(isRoot) ? isRoot : never;
517
- while (element.parentNode) {
518
- element = element.parentNode;
519
- const el = SugarElement.fromDom(element);
520
- if (predicate(el)) {
521
- return Optional.some(el);
522
- }
523
- else if (stop(el)) {
524
- break;
525
- }
526
- }
527
- return Optional.none();
528
- };
529
-
530
- const ancestor = (scope, selector, isRoot) => ancestor$1(scope, (e) => is(e, selector), isRoot);
531
-
532
- const children$1 = (scope, predicate) => filter(children$2(scope), predicate);
533
-
534
- const children = (scope, selector) =>
535
- // It may surprise you to learn this is exactly what JQuery does
536
- // TODO: Avoid all the wrapping and unwrapping
537
- children$1(scope, (e) => is(e, selector));
538
-
539
- const getParentElement = (element) => parent(element).filter(isElement);
540
- // if the block is a list item, we need to get the parent of the list itself
541
- const getNormalizedBlock = (element, isListItem) => {
542
- const normalizedElement = isListItem ? ancestor(element, 'ol,ul') : Optional.some(element);
543
- return normalizedElement.getOr(element);
544
- };
545
- const isListItem = isTag('li');
546
- const setDirOnElements = (dom, blocks, dir) => {
547
- each(blocks, (block) => {
548
- const blockElement = SugarElement.fromDom(block);
549
- const isBlockElementListItem = isListItem(blockElement);
550
- const normalizedBlock = getNormalizedBlock(blockElement, isBlockElementListItem);
551
- const normalizedBlockParent = getParentElement(normalizedBlock);
552
- normalizedBlockParent.each((parent) => {
553
- // TINY-9314: Remove any inline direction style to ensure that it is only set when necessary and that
554
- // the dir attribute is favored
555
- dom.setStyle(normalizedBlock.dom, 'direction', null);
556
- const parentDirection = getDirection(parent);
557
- if (parentDirection === dir) {
558
- remove(normalizedBlock, 'dir');
559
- }
560
- else {
561
- set(normalizedBlock, 'dir', dir);
562
- }
563
- // TINY-9314: Set an inline direction style if computed css direction is still not as desired. This can
564
- // happen when the direction style is derived from a stylesheet.
565
- if (getDirection(normalizedBlock) !== dir) {
566
- dom.setStyle(normalizedBlock.dom, 'direction', dir);
567
- }
568
- // Remove dir attr and direction style from list children
569
- if (isBlockElementListItem) {
570
- const listItems = children(normalizedBlock, 'li[dir],li[style]');
571
- each(listItems, (listItem) => {
572
- remove(listItem, 'dir');
573
- dom.setStyle(listItem.dom, 'direction', null);
574
- });
575
- }
576
- });
577
- });
578
- };
579
- const setDir = (editor, dir) => {
580
- if (editor.selection.isEditable()) {
581
- setDirOnElements(editor.dom, editor.selection.getSelectedBlocks(), dir);
582
- editor.nodeChanged();
583
- }
584
- };
585
-
586
- const register$1 = (editor) => {
587
- editor.addCommand('mceDirectionLTR', () => {
588
- setDir(editor, 'ltr');
589
- });
590
- editor.addCommand('mceDirectionRTL', () => {
591
- setDir(editor, 'rtl');
592
- });
593
- };
594
-
595
- const getNodeChangeHandler = (editor, dir) => (api) => {
596
- const nodeChangeHandler = (e) => {
597
- const element = SugarElement.fromDom(e.element);
598
- api.setActive(getDirection(element) === dir);
599
- api.setEnabled(editor.selection.isEditable());
600
- };
601
- editor.on('NodeChange', nodeChangeHandler);
602
- api.setEnabled(editor.selection.isEditable());
603
- return () => editor.off('NodeChange', nodeChangeHandler);
604
- };
605
- const register = (editor) => {
606
- editor.ui.registry.addToggleButton('ltr', {
607
- tooltip: 'Left to right',
608
- icon: 'ltr',
609
- onAction: () => editor.execCommand('mceDirectionLTR'),
610
- onSetup: getNodeChangeHandler(editor, 'ltr')
611
- });
612
- editor.ui.registry.addToggleButton('rtl', {
613
- tooltip: 'Right to left',
614
- icon: 'rtl',
615
- onAction: () => editor.execCommand('mceDirectionRTL'),
616
- onSetup: getNodeChangeHandler(editor, 'rtl')
617
- });
618
- };
619
-
620
- var Plugin = () => {
621
- global.add('directionality', (editor) => {
622
- register$1(editor);
623
- register(editor);
624
- });
625
- };
626
-
627
- Plugin();
628
- /** *****
629
- * DO NOT EXPORT ANYTHING
630
- *
631
- * IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE
632
- *******/
633
-
634
- })();
@@ -1 +0,0 @@
1
- !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=t=>e=>typeof e===t,r=t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(r=o=t,(n=String).prototype.isPrototypeOf(r)||o.constructor?.name===n.name)?"string":e;var r,o,n})(t),o=e("boolean"),n=t=>!(t=>null==t)(t),i=e("function"),s=e("number"),l=()=>false;class a{tag;value;static singletonNone=new a(!1);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(t??"Called getOrDie on None")}static from(t){return n(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()"}}Array.prototype.slice;const u=(t,e)=>{for(let r=0,o=t.length;r<o;r++)e(t[r],r)};i(Array.from)&&Array.from;const c=t=>{if(null==t)throw new Error("Node cannot be null or undefined");return{dom:t}},d=c,h=(t,e)=>{const r=t.dom;if(1!==r.nodeType)return!1;{const t=r;if(void 0!==t.matches)return t.matches(e);if(void 0!==t.msMatchesSelector)return t.msMatchesSelector(e);if(void 0!==t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(void 0!==t.mozMatchesSelector)return t.mozMatchesSelector(e);throw new Error("Browser lacks native selectors")}},m=t=>e=>(t=>t.dom.nodeType)(e)===t,g=m(1),f=m(3),v=m(11),y=t=>d(t.dom.host),p=(t,e)=>{t.dom.removeAttribute(e)},w=t=>{const e=f(t)?t.dom.parentNode:t.dom;if(null==e||null===e.ownerDocument)return!1;const r=e.ownerDocument;return(t=>{const e=(t=>d(t.dom.getRootNode()))(t);return v(r=e)&&n(r.dom.host)?a.some(e):a.none();var r})(d(e)).fold((()=>r.body.contains(e)),(o=w,i=y,t=>o(i(t))));var o,i},b=t=>"rtl"===((t,e)=>{const r=t.dom,o=window.getComputedStyle(r).getPropertyValue(e);return""!==o||w(t)?o:((t,e)=>(t=>void 0!==t.style&&i(t.style.getPropertyValue))(t)?t.style.getPropertyValue(e):"")(r,e)})(t,"direction")?"rtl":"ltr",S=(t,e)=>(t=>((t,e)=>{const r=[];for(let o=0,n=t.length;o<n;o++){const n=t[o];e(n,o)&&r.push(n)}return r})(((t,e)=>{const r=t.length,o=new Array(r);for(let n=0;n<r;n++){const r=t[n];o[n]=e(r,n)}return o})(t.dom.childNodes,d),(t=>h(t,e))))(t),N=t=>g(t)&&"li"===t.dom.nodeName.toLowerCase();const A=(t,e,n)=>{u(e,(e=>{const c=d(e),m=N(c),f=((t,e)=>{return(e?(r=t,o="ol,ul",((t,e,r)=>{let n=t.dom;const s=i(r)?r:l;for(;n.parentNode;){n=n.parentNode;const t=d(n);if(h(t,o))return a.some(t);if(s(t))break}return a.none()})(r,0,n)):a.some(t)).getOr(t);var r,o,n})(c,m);var v;(v=f,(t=>a.from(t.dom.parentNode).map(d))(v).filter(g)).each((e=>{if(t.setStyle(f.dom,"direction",null),b(e)===n?p(f,"dir"):((t,e,n)=>{((t,e,n)=>{if(!(r(n)||o(n)||s(n)))throw console.error("Invalid call to Attribute.set. Key ",e,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(e,n+"")})(t.dom,e,n)})(f,"dir",n),b(f)!==n&&t.setStyle(f.dom,"direction",n),m){const e=S(f,"li[dir],li[style]");u(e,(e=>{p(e,"dir"),t.setStyle(e.dom,"direction",null)}))}}))}))},T=(t,e)=>{t.selection.isEditable()&&(A(t.dom,t.selection.getSelectedBlocks(),e),t.nodeChanged())},C=(t,e)=>r=>{const o=o=>{const n=d(o.element);r.setActive(b(n)===e),r.setEnabled(t.selection.isEditable())};return t.on("NodeChange",o),r.setEnabled(t.selection.isEditable()),()=>t.off("NodeChange",o)};t.add("directionality",(t=>{(t=>{t.addCommand("mceDirectionLTR",(()=>{T(t,"ltr")})),t.addCommand("mceDirectionRTL",(()=>{T(t,"rtl")}))})(t),(t=>{t.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:()=>t.execCommand("mceDirectionLTR"),onSetup:C(t,"ltr")}),t.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:()=>t.execCommand("mceDirectionRTL"),onSetup:C(t,"rtl")})})(t)}))}();
@@ -1,7 +0,0 @@
1
- // Exports the "emoticons" plugin for usage with module loaders
2
- // Usage:
3
- // CommonJS:
4
- // require('tinymce/plugins/emoticons')
5
- // ES2015:
6
- // import 'tinymce/plugins/emoticons'
7
- require('./plugin.js');