create-nextjs-cms 0.5.55 → 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 (341) 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/(auth)/auth/login/LoginPage.tsx +14 -11
  5. package/templates/default/app/(rootLayout)/admins/page.tsx +7 -2
  6. package/templates/default/app/(rootLayout)/advanced/page.tsx +8 -2
  7. package/templates/default/app/(rootLayout)/browse/[section]/[page]/page.tsx +17 -3
  8. package/templates/default/app/(rootLayout)/categorized/[section]/page.tsx +9 -1
  9. package/templates/default/app/(rootLayout)/dashboard-new/page.tsx +7 -0
  10. package/templates/default/app/(rootLayout)/edit/[section]/[itemId]/page.tsx +11 -1
  11. package/templates/default/app/(rootLayout)/layout.tsx +8 -1
  12. package/templates/default/app/(rootLayout)/new/[section]/page.tsx +9 -1
  13. package/templates/default/app/(rootLayout)/section/[section]/page.tsx +10 -1
  14. package/templates/default/app/(rootLayout)/settings/page.tsx +7 -1
  15. package/templates/default/app/api/trpc/[trpc]/route.ts +1 -1
  16. package/templates/default/app/api/video/route.ts +1 -1
  17. package/templates/default/app/layout.tsx +5 -3
  18. package/templates/default/app/providers.tsx +10 -9
  19. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/LICENSE +191 -0
  20. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/README.md +118 -0
  21. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/install/build.js +38 -0
  22. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/install/check.js +14 -0
  23. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/channel.js +177 -0
  24. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/colour.js +195 -0
  25. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/composite.js +212 -0
  26. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/constructor.js +499 -0
  27. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/index.d.ts +1971 -0
  28. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/index.js +16 -0
  29. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/input.js +809 -0
  30. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/is.js +143 -0
  31. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/libvips.js +207 -0
  32. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/operation.js +1016 -0
  33. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/output.js +1666 -0
  34. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/resize.js +595 -0
  35. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/sharp.js +121 -0
  36. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/utility.js +291 -0
  37. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/package.json +202 -0
  38. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/binding.gyp +298 -0
  39. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/common.cc +1130 -0
  40. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/common.h +402 -0
  41. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/metadata.cc +346 -0
  42. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/metadata.h +90 -0
  43. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/operations.cc +499 -0
  44. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/operations.h +137 -0
  45. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/pipeline.cc +1814 -0
  46. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/pipeline.h +408 -0
  47. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/sharp.cc +43 -0
  48. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/stats.cc +186 -0
  49. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/stats.h +62 -0
  50. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/utilities.cc +288 -0
  51. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/utilities.h +22 -0
  52. package/templates/default/components/BrowsePage.tsx +4 -4
  53. package/templates/default/components/DashboardNewPage.tsx +252 -0
  54. package/templates/default/components/Layout.tsx +2 -2
  55. package/templates/default/components/LogPage.tsx +2 -3
  56. package/templates/default/components/NavbarAlt.tsx +5 -5
  57. package/templates/default/components/SettingsPage.tsx +1 -1
  58. package/templates/default/components/Sidebar.tsx +7 -7
  59. package/templates/default/components/form/Form.tsx +5 -5
  60. package/templates/default/components/form/helpers/util.ts +5 -5
  61. package/templates/default/dynamic-schemas/schema.ts +381 -381
  62. package/templates/default/next-env.d.ts +1 -1
  63. package/templates/default/next.config.ts +24 -0
  64. package/templates/default/package.json +23 -17
  65. package/templates/default/{middleware.ts → proxy.ts} +3 -4
  66. package/templates/default/test/prize.section.ts +58 -0
  67. package/templates/default/tsconfig.json +6 -3
  68. package/templates/default/app/api/placeholder/route.ts +0 -7
  69. package/templates/default/components/form/helpers/_section-hot-reload.js +0 -11
  70. package/templates/default/public/tinymce/CHANGELOG.md +0 -3940
  71. package/templates/default/public/tinymce/README.md +0 -77
  72. package/templates/default/public/tinymce/bower.json +0 -27
  73. package/templates/default/public/tinymce/composer.json +0 -52
  74. package/templates/default/public/tinymce/icons/default/icons.js +0 -239
  75. package/templates/default/public/tinymce/icons/default/icons.min.js +0 -1
  76. package/templates/default/public/tinymce/icons/default/index.js +0 -7
  77. package/templates/default/public/tinymce/license.md +0 -9
  78. package/templates/default/public/tinymce/models/dom/index.js +0 -7
  79. package/templates/default/public/tinymce/models/dom/model.js +0 -8980
  80. package/templates/default/public/tinymce/models/dom/model.min.js +0 -1
  81. package/templates/default/public/tinymce/notices.txt +0 -21
  82. package/templates/default/public/tinymce/package.json +0 -32
  83. package/templates/default/public/tinymce/plugins/accordion/index.js +0 -7
  84. package/templates/default/public/tinymce/plugins/accordion/plugin.js +0 -1373
  85. package/templates/default/public/tinymce/plugins/accordion/plugin.min.js +0 -1
  86. package/templates/default/public/tinymce/plugins/advlist/index.js +0 -7
  87. package/templates/default/public/tinymce/plugins/advlist/plugin.js +0 -473
  88. package/templates/default/public/tinymce/plugins/advlist/plugin.min.js +0 -1
  89. package/templates/default/public/tinymce/plugins/anchor/index.js +0 -7
  90. package/templates/default/public/tinymce/plugins/anchor/plugin.js +0 -237
  91. package/templates/default/public/tinymce/plugins/anchor/plugin.min.js +0 -1
  92. package/templates/default/public/tinymce/plugins/autolink/index.js +0 -7
  93. package/templates/default/public/tinymce/plugins/autolink/plugin.js +0 -315
  94. package/templates/default/public/tinymce/plugins/autolink/plugin.min.js +0 -1
  95. package/templates/default/public/tinymce/plugins/autoresize/index.js +0 -7
  96. package/templates/default/public/tinymce/plugins/autoresize/plugin.js +0 -221
  97. package/templates/default/public/tinymce/plugins/autoresize/plugin.min.js +0 -1
  98. package/templates/default/public/tinymce/plugins/autosave/index.js +0 -7
  99. package/templates/default/public/tinymce/plugins/autosave/plugin.js +0 -249
  100. package/templates/default/public/tinymce/plugins/autosave/plugin.min.js +0 -1
  101. package/templates/default/public/tinymce/plugins/charmap/index.js +0 -7
  102. package/templates/default/public/tinymce/plugins/charmap/plugin.js +0 -997
  103. package/templates/default/public/tinymce/plugins/charmap/plugin.min.js +0 -1
  104. package/templates/default/public/tinymce/plugins/code/index.js +0 -7
  105. package/templates/default/public/tinymce/plugins/code/plugin.js +0 -98
  106. package/templates/default/public/tinymce/plugins/code/plugin.min.js +0 -1
  107. package/templates/default/public/tinymce/plugins/codesample/index.js +0 -7
  108. package/templates/default/public/tinymce/plugins/codesample/plugin.js +0 -3655
  109. package/templates/default/public/tinymce/plugins/codesample/plugin.min.js +0 -9
  110. package/templates/default/public/tinymce/plugins/directionality/index.js +0 -7
  111. package/templates/default/public/tinymce/plugins/directionality/plugin.js +0 -634
  112. package/templates/default/public/tinymce/plugins/directionality/plugin.min.js +0 -1
  113. package/templates/default/public/tinymce/plugins/emoticons/index.js +0 -7
  114. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.js +0 -1
  115. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.min.js +0 -1
  116. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.js +0 -1
  117. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.min.js +0 -1
  118. package/templates/default/public/tinymce/plugins/emoticons/plugin.js +0 -809
  119. package/templates/default/public/tinymce/plugins/emoticons/plugin.min.js +0 -1
  120. package/templates/default/public/tinymce/plugins/fullscreen/index.js +0 -7
  121. package/templates/default/public/tinymce/plugins/fullscreen/plugin.js +0 -1607
  122. package/templates/default/public/tinymce/plugins/fullscreen/plugin.min.js +0 -1
  123. package/templates/default/public/tinymce/plugins/help/index.js +0 -7
  124. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ar.js +0 -93
  125. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg-BG.js +0 -93
  126. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +0 -93
  127. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ca.js +0 -93
  128. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/cs.js +0 -93
  129. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/da.js +0 -93
  130. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/de.js +0 -93
  131. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/el.js +0 -93
  132. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/en.js +0 -93
  133. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/es.js +0 -93
  134. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/eu.js +0 -93
  135. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fa.js +0 -93
  136. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fi.js +0 -93
  137. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr-FR.js +0 -93
  138. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +0 -93
  139. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he-IL.js +0 -93
  140. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he_IL.js +0 -93
  141. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hi.js +0 -93
  142. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hr.js +0 -93
  143. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu-HU.js +0 -93
  144. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +0 -93
  145. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/id.js +0 -93
  146. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/it.js +0 -93
  147. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ja.js +0 -93
  148. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/kk.js +0 -93
  149. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko-KR.js +0 -93
  150. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +0 -93
  151. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ms.js +0 -93
  152. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb-NO.js +0 -93
  153. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +0 -93
  154. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nl.js +0 -93
  155. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pl.js +0 -93
  156. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-BR.js +0 -93
  157. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-PT.js +0 -93
  158. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +0 -93
  159. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +0 -93
  160. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ro.js +0 -93
  161. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ru.js +0 -93
  162. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sk.js +0 -93
  163. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl-SI.js +0 -93
  164. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +0 -93
  165. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv-SE.js +0 -93
  166. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +0 -93
  167. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th-TH.js +0 -93
  168. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th_TH.js +0 -93
  169. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/tr.js +0 -93
  170. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/uk.js +0 -93
  171. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/vi.js +0 -93
  172. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-CN.js +0 -87
  173. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-TW.js +0 -93
  174. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +0 -87
  175. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +0 -93
  176. package/templates/default/public/tinymce/plugins/help/plugin.js +0 -826
  177. package/templates/default/public/tinymce/plugins/help/plugin.min.js +0 -1
  178. package/templates/default/public/tinymce/plugins/image/index.js +0 -7
  179. package/templates/default/public/tinymce/plugins/image/plugin.js +0 -1691
  180. package/templates/default/public/tinymce/plugins/image/plugin.min.js +0 -1
  181. package/templates/default/public/tinymce/plugins/importcss/index.js +0 -7
  182. package/templates/default/public/tinymce/plugins/importcss/plugin.js +0 -401
  183. package/templates/default/public/tinymce/plugins/importcss/plugin.min.js +0 -1
  184. package/templates/default/public/tinymce/plugins/insertdatetime/index.js +0 -7
  185. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.js +0 -187
  186. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.min.js +0 -1
  187. package/templates/default/public/tinymce/plugins/link/index.js +0 -7
  188. package/templates/default/public/tinymce/plugins/link/plugin.js +0 -1709
  189. package/templates/default/public/tinymce/plugins/link/plugin.min.js +0 -1
  190. package/templates/default/public/tinymce/plugins/lists/index.js +0 -7
  191. package/templates/default/public/tinymce/plugins/lists/plugin.js +0 -602
  192. package/templates/default/public/tinymce/plugins/lists/plugin.min.js +0 -1
  193. package/templates/default/public/tinymce/plugins/media/index.js +0 -7
  194. package/templates/default/public/tinymce/plugins/media/plugin.js +0 -1442
  195. package/templates/default/public/tinymce/plugins/media/plugin.min.js +0 -1
  196. package/templates/default/public/tinymce/plugins/nonbreaking/index.js +0 -7
  197. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.js +0 -128
  198. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.min.js +0 -1
  199. package/templates/default/public/tinymce/plugins/pagebreak/index.js +0 -7
  200. package/templates/default/public/tinymce/plugins/pagebreak/plugin.js +0 -123
  201. package/templates/default/public/tinymce/plugins/pagebreak/plugin.min.js +0 -1
  202. package/templates/default/public/tinymce/plugins/preview/index.js +0 -7
  203. package/templates/default/public/tinymce/plugins/preview/plugin.js +0 -843
  204. package/templates/default/public/tinymce/plugins/preview/plugin.min.js +0 -1
  205. package/templates/default/public/tinymce/plugins/quickbars/index.js +0 -7
  206. package/templates/default/public/tinymce/plugins/quickbars/plugin.js +0 -654
  207. package/templates/default/public/tinymce/plugins/quickbars/plugin.min.js +0 -1
  208. package/templates/default/public/tinymce/plugins/save/index.js +0 -7
  209. package/templates/default/public/tinymce/plugins/save/plugin.js +0 -136
  210. package/templates/default/public/tinymce/plugins/save/plugin.min.js +0 -1
  211. package/templates/default/public/tinymce/plugins/searchreplace/index.js +0 -7
  212. package/templates/default/public/tinymce/plugins/searchreplace/plugin.js +0 -1367
  213. package/templates/default/public/tinymce/plugins/searchreplace/plugin.min.js +0 -1
  214. package/templates/default/public/tinymce/plugins/table/index.js +0 -7
  215. package/templates/default/public/tinymce/plugins/table/plugin.js +0 -4008
  216. package/templates/default/public/tinymce/plugins/table/plugin.min.js +0 -1
  217. package/templates/default/public/tinymce/plugins/visualblocks/index.js +0 -7
  218. package/templates/default/public/tinymce/plugins/visualblocks/plugin.js +0 -106
  219. package/templates/default/public/tinymce/plugins/visualblocks/plugin.min.js +0 -1
  220. package/templates/default/public/tinymce/plugins/visualchars/index.js +0 -7
  221. package/templates/default/public/tinymce/plugins/visualchars/plugin.js +0 -808
  222. package/templates/default/public/tinymce/plugins/visualchars/plugin.min.js +0 -1
  223. package/templates/default/public/tinymce/plugins/wordcount/index.js +0 -7
  224. package/templates/default/public/tinymce/plugins/wordcount/plugin.js +0 -480
  225. package/templates/default/public/tinymce/plugins/wordcount/plugin.min.js +0 -1
  226. package/templates/default/public/tinymce/skins/content/dark/content.css +0 -75
  227. package/templates/default/public/tinymce/skins/content/dark/content.js +0 -10
  228. package/templates/default/public/tinymce/skins/content/dark/content.min.css +0 -10
  229. package/templates/default/public/tinymce/skins/content/dark/content.min.ts +0 -3
  230. package/templates/default/public/tinymce/skins/content/dark/content.ts +0 -3
  231. package/templates/default/public/tinymce/skins/content/default/content.css +0 -70
  232. package/templates/default/public/tinymce/skins/content/default/content.js +0 -10
  233. package/templates/default/public/tinymce/skins/content/default/content.min.css +0 -10
  234. package/templates/default/public/tinymce/skins/content/default/content.min.ts +0 -3
  235. package/templates/default/public/tinymce/skins/content/default/content.ts +0 -3
  236. package/templates/default/public/tinymce/skins/content/document/content.css +0 -75
  237. package/templates/default/public/tinymce/skins/content/document/content.js +0 -10
  238. package/templates/default/public/tinymce/skins/content/document/content.min.css +0 -10
  239. package/templates/default/public/tinymce/skins/content/document/content.min.ts +0 -3
  240. package/templates/default/public/tinymce/skins/content/document/content.ts +0 -3
  241. package/templates/default/public/tinymce/skins/content/tinymce-5/content.css +0 -70
  242. package/templates/default/public/tinymce/skins/content/tinymce-5/content.js +0 -10
  243. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.css +0 -10
  244. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.ts +0 -3
  245. package/templates/default/public/tinymce/skins/content/tinymce-5/content.ts +0 -3
  246. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.css +0 -75
  247. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.js +0 -10
  248. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -10
  249. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.ts +0 -3
  250. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.ts +0 -3
  251. package/templates/default/public/tinymce/skins/content/writer/content.css +0 -71
  252. package/templates/default/public/tinymce/skins/content/writer/content.js +0 -10
  253. package/templates/default/public/tinymce/skins/content/writer/content.min.css +0 -10
  254. package/templates/default/public/tinymce/skins/content/writer/content.min.ts +0 -3
  255. package/templates/default/public/tinymce/skins/content/writer/content.ts +0 -3
  256. package/templates/default/public/tinymce/skins/ui/oxide/content.css +0 -1037
  257. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.css +0 -1031
  258. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.js +0 -10
  259. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -10
  260. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.ts +0 -116
  261. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.ts +0 -116
  262. package/templates/default/public/tinymce/skins/ui/oxide/content.js +0 -10
  263. package/templates/default/public/tinymce/skins/ui/oxide/content.min.css +0 -10
  264. package/templates/default/public/tinymce/skins/ui/oxide/content.min.ts +0 -116
  265. package/templates/default/public/tinymce/skins/ui/oxide/content.ts +0 -116
  266. package/templates/default/public/tinymce/skins/ui/oxide/skin.css +0 -5615
  267. package/templates/default/public/tinymce/skins/ui/oxide/skin.js +0 -1
  268. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  269. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.ts +0 -507
  270. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  271. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -1
  272. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  273. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.ts +0 -9
  274. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.ts +0 -9
  275. package/templates/default/public/tinymce/skins/ui/oxide/skin.ts +0 -507
  276. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.css +0 -1025
  277. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -1031
  278. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -10
  279. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -10
  280. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.ts +0 -116
  281. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.ts +0 -116
  282. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.js +0 -10
  283. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -10
  284. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.ts +0 -116
  285. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.ts +0 -116
  286. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.css +0 -5618
  287. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.js +0 -1
  288. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  289. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.ts +0 -507
  290. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  291. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -1
  292. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  293. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.ts +0 -9
  294. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.ts +0 -9
  295. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.ts +0 -507
  296. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.css +0 -1037
  297. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.css +0 -1031
  298. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.js +0 -10
  299. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -10
  300. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.ts +0 -116
  301. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.ts +0 -116
  302. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.js +0 -10
  303. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.css +0 -10
  304. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.ts +0 -116
  305. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.ts +0 -116
  306. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.css +0 -5734
  307. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.js +0 -1
  308. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.css +0 -1
  309. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.ts +0 -508
  310. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
  311. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +0 -1
  312. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
  313. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.ts +0 -9
  314. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.ts +0 -9
  315. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.ts +0 -508
  316. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.css +0 -1025
  317. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -1031
  318. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.js +0 -10
  319. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -10
  320. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.ts +0 -116
  321. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.ts +0 -116
  322. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.js +0 -10
  323. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -10
  324. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.ts +0 -116
  325. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.ts +0 -116
  326. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -5734
  327. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.js +0 -1
  328. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -1
  329. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.ts +0 -508
  330. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
  331. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +0 -1
  332. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
  333. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.ts +0 -9
  334. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.ts +0 -9
  335. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.ts +0 -508
  336. package/templates/default/public/tinymce/themes/silver/index.js +0 -7
  337. package/templates/default/public/tinymce/themes/silver/theme.js +0 -34748
  338. package/templates/default/public/tinymce/themes/silver/theme.min.js +0 -1
  339. package/templates/default/public/tinymce/tinymce.d.ts +0 -3413
  340. package/templates/default/public/tinymce/tinymce.js +0 -41518
  341. package/templates/default/public/tinymce/tinymce.min.js +0 -10
@@ -1,997 +0,0 @@
1
- /**
2
- * TinyMCE version 8.3.1 (2025-12-17)
3
- */
4
-
5
- (function () {
6
- 'use strict';
7
-
8
- var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
-
10
- const fireInsertCustomChar = (editor, chr) => {
11
- return editor.dispatch('insertCustomChar', { chr });
12
- };
13
-
14
- const insertChar = (editor, chr) => {
15
- const evtChr = fireInsertCustomChar(editor, chr).chr;
16
- editor.execCommand('mceInsertContent', false, evtChr);
17
- };
18
-
19
- /* eslint-disable @typescript-eslint/no-wrapper-object-types */
20
- const hasProto = (v, constructor, predicate) => {
21
- if (predicate(v, constructor.prototype)) {
22
- return true;
23
- }
24
- else {
25
- // String-based fallback time
26
- return v.constructor?.name === constructor.name;
27
- }
28
- };
29
- const typeOf = (x) => {
30
- const t = typeof x;
31
- if (x === null) {
32
- return 'null';
33
- }
34
- else if (t === 'object' && Array.isArray(x)) {
35
- return 'array';
36
- }
37
- else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
38
- return 'string';
39
- }
40
- else {
41
- return t;
42
- }
43
- };
44
- const isType = (type) => (value) => typeOf(value) === type;
45
- const isSimpleType = (type) => (value) => typeof value === type;
46
- const eq = (t) => (a) => t === a;
47
- const isArray$1 = isType('array');
48
- const isNull = eq(null);
49
- const isUndefined = eq(undefined);
50
- const isNullable = (a) => a === null || a === undefined;
51
- const isNonNullable = (a) => !isNullable(a);
52
- const isFunction = isSimpleType('function');
53
-
54
- const constant = (value) => {
55
- return () => {
56
- return value;
57
- };
58
- };
59
- const never = constant(false);
60
-
61
- /**
62
- * The `Optional` type represents a value (of any type) that potentially does
63
- * not exist. Any `Optional<T>` can either be a `Some<T>` (in which case the
64
- * value does exist) or a `None` (in which case the value does not exist). This
65
- * module defines a whole lot of FP-inspired utility functions for dealing with
66
- * `Optional` objects.
67
- *
68
- * Comparison with null or undefined:
69
- * - We don't get fancy null coalescing operators with `Optional`
70
- * - We do get fancy helper functions with `Optional`
71
- * - `Optional` support nesting, and allow for the type to still be nullable (or
72
- * another `Optional`)
73
- * - There is no option to turn off strict-optional-checks like there is for
74
- * strict-null-checks
75
- */
76
- class Optional {
77
- tag;
78
- value;
79
- // Sneaky optimisation: every instance of Optional.none is identical, so just
80
- // reuse the same object
81
- static singletonNone = new Optional(false);
82
- // The internal representation has a `tag` and a `value`, but both are
83
- // private: able to be console.logged, but not able to be accessed by code
84
- constructor(tag, value) {
85
- this.tag = tag;
86
- this.value = value;
87
- }
88
- // --- Identities ---
89
- /**
90
- * Creates a new `Optional<T>` that **does** contain a value.
91
- */
92
- static some(value) {
93
- return new Optional(true, value);
94
- }
95
- /**
96
- * Create a new `Optional<T>` that **does not** contain a value. `T` can be
97
- * any type because we don't actually have a `T`.
98
- */
99
- static none() {
100
- return Optional.singletonNone;
101
- }
102
- /**
103
- * Perform a transform on an `Optional` type. Regardless of whether this
104
- * `Optional` contains a value or not, `fold` will return a value of type `U`.
105
- * If this `Optional` does not contain a value, the `U` will be created by
106
- * calling `onNone`. If this `Optional` does contain a value, the `U` will be
107
- * created by calling `onSome`.
108
- *
109
- * For the FP enthusiasts in the room, this function:
110
- * 1. Could be used to implement all of the functions below
111
- * 2. Forms a catamorphism
112
- */
113
- fold(onNone, onSome) {
114
- if (this.tag) {
115
- return onSome(this.value);
116
- }
117
- else {
118
- return onNone();
119
- }
120
- }
121
- /**
122
- * Determine if this `Optional` object contains a value.
123
- */
124
- isSome() {
125
- return this.tag;
126
- }
127
- /**
128
- * Determine if this `Optional` object **does not** contain a value.
129
- */
130
- isNone() {
131
- return !this.tag;
132
- }
133
- // --- Functor (name stolen from Haskell / maths) ---
134
- /**
135
- * Perform a transform on an `Optional` object, **if** there is a value. If
136
- * you provide a function to turn a T into a U, this is the function you use
137
- * to turn an `Optional<T>` into an `Optional<U>`. If this **does** contain
138
- * a value then the output will also contain a value (that value being the
139
- * output of `mapper(this.value)`), and if this **does not** contain a value
140
- * then neither will the output.
141
- */
142
- map(mapper) {
143
- if (this.tag) {
144
- return Optional.some(mapper(this.value));
145
- }
146
- else {
147
- return Optional.none();
148
- }
149
- }
150
- // --- Monad (name stolen from Haskell / maths) ---
151
- /**
152
- * Perform a transform on an `Optional` object, **if** there is a value.
153
- * Unlike `map`, here the transform itself also returns an `Optional`.
154
- */
155
- bind(binder) {
156
- if (this.tag) {
157
- return binder(this.value);
158
- }
159
- else {
160
- return Optional.none();
161
- }
162
- }
163
- // --- Traversable (name stolen from Haskell / maths) ---
164
- /**
165
- * For a given predicate, this function finds out if there **exists** a value
166
- * inside this `Optional` object that meets the predicate. In practice, this
167
- * means that for `Optional`s that do not contain a value it returns false (as
168
- * no predicate-meeting value exists).
169
- */
170
- exists(predicate) {
171
- return this.tag && predicate(this.value);
172
- }
173
- /**
174
- * For a given predicate, this function finds out if **all** the values inside
175
- * this `Optional` object meet the predicate. In practice, this means that
176
- * for `Optional`s that do not contain a value it returns true (as all 0
177
- * objects do meet the predicate).
178
- */
179
- forall(predicate) {
180
- return !this.tag || predicate(this.value);
181
- }
182
- filter(predicate) {
183
- if (!this.tag || predicate(this.value)) {
184
- return this;
185
- }
186
- else {
187
- return Optional.none();
188
- }
189
- }
190
- // --- Getters ---
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.
195
- */
196
- getOr(replacement) {
197
- return this.tag ? this.value : replacement;
198
- }
199
- /**
200
- * Get the value out of the inside of the `Optional` object, using a default
201
- * `replacement` value if the provided `Optional` object does not contain a
202
- * value. Unlike `getOr`, in this method the `replacement` object is also
203
- * `Optional` - meaning that this method will always return an `Optional`.
204
- */
205
- or(replacement) {
206
- return this.tag ? this : replacement;
207
- }
208
- /**
209
- * Get the value out of the inside of the `Optional` object, using a default
210
- * `replacement` value if the provided `Optional` object does not contain a
211
- * value. Unlike `getOr`, in this method the `replacement` value is
212
- * "thunked" - that is to say that you don't pass a value to `getOrThunk`, you
213
- * pass a function which (if called) will **return** the `value` you want to
214
- * use.
215
- */
216
- getOrThunk(thunk) {
217
- return this.tag ? this.value : thunk();
218
- }
219
- /**
220
- * Get the value out of the inside of the `Optional` object, using a default
221
- * `replacement` value if the provided Optional object does not contain a
222
- * value.
223
- *
224
- * Unlike `or`, in this method the `replacement` value is "thunked" - that is
225
- * to say that you don't pass a value to `orThunk`, you pass a function which
226
- * (if called) will **return** the `value` you want to use.
227
- *
228
- * Unlike `getOrThunk`, in this method the `replacement` value is also
229
- * `Optional`, meaning that this method will always return an `Optional`.
230
- */
231
- orThunk(thunk) {
232
- return this.tag ? this : thunk();
233
- }
234
- /**
235
- * Get the value out of the inside of the `Optional` object, throwing an
236
- * exception if the provided `Optional` object does not contain a value.
237
- *
238
- * WARNING:
239
- * You should only be using this function if you know that the `Optional`
240
- * object **is not** empty (otherwise you're throwing exceptions in production
241
- * code, which is bad).
242
- *
243
- * In tests this is more acceptable.
244
- *
245
- * Prefer other methods to this, such as `.each`.
246
- */
247
- getOrDie(message) {
248
- if (!this.tag) {
249
- throw new Error(message ?? 'Called getOrDie on None');
250
- }
251
- else {
252
- return this.value;
253
- }
254
- }
255
- // --- Interop with null and undefined ---
256
- /**
257
- * Creates an `Optional` value from a nullable (or undefined-able) input.
258
- * Null, or undefined, is converted to `None`, and anything else is converted
259
- * to `Some`.
260
- */
261
- static from(value) {
262
- return isNonNullable(value) ? Optional.some(value) : Optional.none();
263
- }
264
- /**
265
- * Converts an `Optional` to a nullable type, by getting the value if it
266
- * exists, or returning `null` if it does not.
267
- */
268
- getOrNull() {
269
- return this.tag ? this.value : null;
270
- }
271
- /**
272
- * Converts an `Optional` to an undefined-able type, by getting the value if
273
- * it exists, or returning `undefined` if it does not.
274
- */
275
- getOrUndefined() {
276
- return this.value;
277
- }
278
- // --- Utilities ---
279
- /**
280
- * If the `Optional` contains a value, perform an action on that value.
281
- * Unlike the rest of the methods on this type, `.each` has side-effects. If
282
- * you want to transform an `Optional<T>` **into** something, then this is not
283
- * the method for you. If you want to use an `Optional<T>` to **do**
284
- * something, then this is the method for you - provided you're okay with not
285
- * doing anything in the case where the `Optional` doesn't have a value inside
286
- * it. If you're not sure whether your use-case fits into transforming
287
- * **into** something or **doing** something, check whether it has a return
288
- * value. If it does, you should be performing a transform.
289
- */
290
- each(worker) {
291
- if (this.tag) {
292
- worker(this.value);
293
- }
294
- }
295
- /**
296
- * Turn the `Optional` object into an array that contains all of the values
297
- * stored inside the `Optional`. In practice, this means the output will have
298
- * either 0 or 1 elements.
299
- */
300
- toArray() {
301
- return this.tag ? [this.value] : [];
302
- }
303
- /**
304
- * Turn the `Optional` object into a string for debugging or printing. Not
305
- * recommended for production code, but good for debugging. Also note that
306
- * these days an `Optional` object can be logged to the console directly, and
307
- * its inner value (if it exists) will be visible.
308
- */
309
- toString() {
310
- return this.tag ? `some(${this.value})` : 'none()';
311
- }
312
- }
313
-
314
- const nativeSlice = Array.prototype.slice;
315
- const nativePush = Array.prototype.push;
316
- const map = (xs, f) => {
317
- // pre-allocating array size when it's guaranteed to be known
318
- // http://jsperf.com/push-allocated-vs-dynamic/22
319
- const len = xs.length;
320
- const r = new Array(len);
321
- for (let i = 0; i < len; i++) {
322
- const x = xs[i];
323
- r[i] = f(x, i);
324
- }
325
- return r;
326
- };
327
- // Unwound implementing other functions in terms of each.
328
- // The code size is roughly the same, and it should allow for better optimisation.
329
- // const each = function<T, U>(xs: T[], f: (x: T, i?: number, xs?: T[]) => void): void {
330
- const each = (xs, f) => {
331
- for (let i = 0, len = xs.length; i < len; i++) {
332
- const x = xs[i];
333
- f(x, i);
334
- }
335
- };
336
- const findUntil = (xs, pred, until) => {
337
- for (let i = 0, len = xs.length; i < len; i++) {
338
- const x = xs[i];
339
- if (pred(x, i)) {
340
- return Optional.some(x);
341
- }
342
- else if (until(x, i)) {
343
- break;
344
- }
345
- }
346
- return Optional.none();
347
- };
348
- const find = (xs, pred) => {
349
- return findUntil(xs, pred, never);
350
- };
351
- const flatten = (xs) => {
352
- // Note, this is possible because push supports multiple arguments:
353
- // http://jsperf.com/concat-push/6
354
- // Note that in the past, concat() would silently work (very slowly) for array-like objects.
355
- // With this change it will throw an error.
356
- const r = [];
357
- for (let i = 0, len = xs.length; i < len; ++i) {
358
- // Ensure that each value is an array itself
359
- if (!isArray$1(xs[i])) {
360
- throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
361
- }
362
- nativePush.apply(r, xs[i]);
363
- }
364
- return r;
365
- };
366
- const bind = (xs, f) => flatten(map(xs, f));
367
- isFunction(Array.from) ? Array.from : (x) => nativeSlice.call(x);
368
-
369
- const Cell = (initial) => {
370
- let value = initial;
371
- const get = () => {
372
- return value;
373
- };
374
- const set = (v) => {
375
- value = v;
376
- };
377
- return {
378
- get,
379
- set
380
- };
381
- };
382
-
383
- const contains = (str, substr, start = 0, end) => {
384
- const idx = str.indexOf(substr, start);
385
- if (idx !== -1) {
386
- return isUndefined(end) ? true : idx + substr.length <= end;
387
- }
388
- else {
389
- return false;
390
- }
391
- };
392
- const fromCodePoint = String.fromCodePoint;
393
-
394
- // Run a function fn after rate ms. If another invocation occurs
395
- // during the time it is waiting, reschedule the function again
396
- // with the new arguments.
397
- const last = (fn, rate) => {
398
- let timer = null;
399
- const cancel = () => {
400
- if (!isNull(timer)) {
401
- clearTimeout(timer);
402
- timer = null;
403
- }
404
- };
405
- const throttle = (...args) => {
406
- cancel();
407
- timer = setTimeout(() => {
408
- timer = null;
409
- fn.apply(null, args);
410
- }, rate);
411
- };
412
- return {
413
- cancel,
414
- throttle
415
- };
416
- };
417
-
418
- var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
419
-
420
- const option = (name) => (editor) => editor.options.get(name);
421
- const register$2 = (editor) => {
422
- const registerOption = editor.options.register;
423
- const charMapProcessor = (value) => isFunction(value) || isArray$1(value);
424
- registerOption('charmap', {
425
- processor: charMapProcessor,
426
- });
427
- registerOption('charmap_append', {
428
- processor: charMapProcessor
429
- });
430
- };
431
- const getCharMap$1 = option('charmap');
432
- const getCharMapAppend = option('charmap_append');
433
-
434
- const isArray = global.isArray;
435
- const UserDefined = 'User Defined';
436
- const getDefaultCharMap = () => {
437
- return [
438
- // TODO: Merge categories with TBIO
439
- // {
440
- // name: 'Unknown',
441
- // characters : [
442
- // [160, 'no-break space'],
443
- // [173, 'soft hyphen'],
444
- // [34, 'quotation mark']
445
- // ]
446
- // },
447
- { name: 'Currency',
448
- characters: [
449
- [36, 'dollar sign'],
450
- [162, 'cent sign'],
451
- [8364, 'euro sign'],
452
- [163, 'pound sign'],
453
- [165, 'yen sign'],
454
- [164, 'currency sign'],
455
- [8352, 'euro-currency sign'],
456
- [8353, 'colon sign'],
457
- [8354, 'cruzeiro sign'],
458
- [8355, 'french franc sign'],
459
- [8356, 'lira sign'],
460
- [8357, 'mill sign'],
461
- [8358, 'naira sign'],
462
- [8359, 'peseta sign'],
463
- [8360, 'rupee sign'],
464
- [8361, 'won sign'],
465
- [8362, 'new sheqel sign'],
466
- [8363, 'dong sign'],
467
- [8365, 'kip sign'],
468
- [8366, 'tugrik sign'],
469
- [8367, 'drachma sign'],
470
- [8368, 'german penny symbol'],
471
- [8369, 'peso sign'],
472
- [8370, 'guarani sign'],
473
- [8371, 'austral sign'],
474
- [8372, 'hryvnia sign'],
475
- [8373, 'cedi sign'],
476
- [8374, 'livre tournois sign'],
477
- [8375, 'spesmilo sign'],
478
- [8376, 'tenge sign'],
479
- [8377, 'indian rupee sign'],
480
- [8378, 'turkish lira sign'],
481
- [8379, 'nordic mark sign'],
482
- [8380, 'manat sign'],
483
- [8381, 'ruble sign'],
484
- [20870, 'yen character'],
485
- [20803, 'yuan character'],
486
- [22291, 'yuan character, in hong kong and taiwan'],
487
- [22278, 'yen/yuan character variant one']
488
- ]
489
- },
490
- { name: 'Text',
491
- characters: [
492
- [169, 'copyright sign'],
493
- [174, 'registered sign'],
494
- [8482, 'trade mark sign'],
495
- [8240, 'per mille sign'],
496
- [181, 'micro sign'],
497
- [183, 'middle dot'],
498
- [8226, 'bullet'],
499
- [8230, 'three dot leader'],
500
- [8242, 'minutes / feet'],
501
- [8243, 'seconds / inches'],
502
- [167, 'section sign'],
503
- [182, 'paragraph sign'],
504
- [223, 'sharp s / ess-zed']
505
- ]
506
- },
507
- { name: 'Quotations',
508
- characters: [
509
- [8249, 'single left-pointing angle quotation mark'],
510
- [8250, 'single right-pointing angle quotation mark'],
511
- [171, 'left pointing guillemet'],
512
- [187, 'right pointing guillemet'],
513
- [8216, 'left single quotation mark'],
514
- [8217, 'right single quotation mark'],
515
- [8220, 'left double quotation mark'],
516
- [8221, 'right double quotation mark'],
517
- [8218, 'single low-9 quotation mark'],
518
- [8222, 'double low-9 quotation mark'],
519
- [60, 'less-than sign'],
520
- [62, 'greater-than sign'],
521
- [8804, 'less-than or equal to'],
522
- [8805, 'greater-than or equal to'],
523
- [8211, 'en dash'],
524
- [8212, 'em dash'],
525
- [175, 'macron'],
526
- [8254, 'overline'],
527
- [164, 'currency sign'],
528
- [166, 'broken bar'],
529
- [168, 'diaeresis'],
530
- [161, 'inverted exclamation mark'],
531
- [191, 'turned question mark'],
532
- [710, 'circumflex accent'],
533
- [732, 'small tilde'],
534
- [176, 'degree sign'],
535
- [8722, 'minus sign'],
536
- [177, 'plus-minus sign'],
537
- [247, 'division sign'],
538
- [8260, 'fraction slash'],
539
- [215, 'multiplication sign'],
540
- [185, 'superscript one'],
541
- [178, 'superscript two'],
542
- [179, 'superscript three'],
543
- [188, 'fraction one quarter'],
544
- [189, 'fraction one half'],
545
- [190, 'fraction three quarters']
546
- ]
547
- },
548
- {
549
- name: 'Mathematical',
550
- characters: [
551
- [402, 'function / florin'],
552
- [8747, 'integral'],
553
- [8721, 'n-ary sumation'],
554
- [8734, 'infinity'],
555
- [8730, 'square root'],
556
- [8764, 'similar to'],
557
- [8773, 'approximately equal to'],
558
- [8776, 'almost equal to'],
559
- [8800, 'not equal to'],
560
- [8801, 'identical to'],
561
- [8712, 'element of'],
562
- [8713, 'not an element of'],
563
- [8715, 'contains as member'],
564
- [8719, 'n-ary product'],
565
- [8743, 'logical and'],
566
- [8744, 'logical or'],
567
- [172, 'not sign'],
568
- [8745, 'intersection'],
569
- [8746, 'union'],
570
- [8706, 'partial differential'],
571
- [8704, 'for all'],
572
- [8707, 'there exists'],
573
- [8709, 'diameter'],
574
- [8711, 'backward difference'],
575
- [8727, 'asterisk operator'],
576
- [8733, 'proportional to'],
577
- [8736, 'angle']
578
- ]
579
- },
580
- // TODO: Merge categories with TBIO
581
- // {
582
- // name: 'Undefined',
583
- // characters: [
584
- // [180, 'acute accent'],
585
- // [184, 'cedilla'],
586
- // [170, 'feminine ordinal indicator'],
587
- // [186, 'masculine ordinal indicator'],
588
- // [8224, 'dagger'],
589
- // [8225, 'double dagger']
590
- // ]
591
- // },
592
- {
593
- name: 'Extended Latin',
594
- characters: [
595
- [192, 'A - grave'],
596
- [193, 'A - acute'],
597
- [194, 'A - circumflex'],
598
- [195, 'A - tilde'],
599
- [196, 'A - diaeresis'],
600
- [197, 'A - ring above'],
601
- [256, 'A - macron'],
602
- [198, 'ligature AE'],
603
- [199, 'C - cedilla'],
604
- [200, 'E - grave'],
605
- [201, 'E - acute'],
606
- [202, 'E - circumflex'],
607
- [203, 'E - diaeresis'],
608
- [274, 'E - macron'],
609
- [204, 'I - grave'],
610
- [205, 'I - acute'],
611
- [206, 'I - circumflex'],
612
- [207, 'I - diaeresis'],
613
- [298, 'I - macron'],
614
- [208, 'ETH'],
615
- [209, 'N - tilde'],
616
- [210, 'O - grave'],
617
- [211, 'O - acute'],
618
- [212, 'O - circumflex'],
619
- [213, 'O - tilde'],
620
- [214, 'O - diaeresis'],
621
- [216, 'O - slash'],
622
- [332, 'O - macron'],
623
- [338, 'ligature OE'],
624
- [352, 'S - caron'],
625
- [217, 'U - grave'],
626
- [218, 'U - acute'],
627
- [219, 'U - circumflex'],
628
- [220, 'U - diaeresis'],
629
- [362, 'U - macron'],
630
- [221, 'Y - acute'],
631
- [376, 'Y - diaeresis'],
632
- [562, 'Y - macron'],
633
- [222, 'THORN'],
634
- [224, 'a - grave'],
635
- [225, 'a - acute'],
636
- [226, 'a - circumflex'],
637
- [227, 'a - tilde'],
638
- [228, 'a - diaeresis'],
639
- [229, 'a - ring above'],
640
- [257, 'a - macron'],
641
- [230, 'ligature ae'],
642
- [231, 'c - cedilla'],
643
- [232, 'e - grave'],
644
- [233, 'e - acute'],
645
- [234, 'e - circumflex'],
646
- [235, 'e - diaeresis'],
647
- [275, 'e - macron'],
648
- [236, 'i - grave'],
649
- [237, 'i - acute'],
650
- [238, 'i - circumflex'],
651
- [239, 'i - diaeresis'],
652
- [299, 'i - macron'],
653
- [240, 'eth'],
654
- [241, 'n - tilde'],
655
- [242, 'o - grave'],
656
- [243, 'o - acute'],
657
- [244, 'o - circumflex'],
658
- [245, 'o - tilde'],
659
- [246, 'o - diaeresis'],
660
- [248, 'o slash'],
661
- [333, 'o macron'],
662
- [339, 'ligature oe'],
663
- [353, 's - caron'],
664
- [249, 'u - grave'],
665
- [250, 'u - acute'],
666
- [251, 'u - circumflex'],
667
- [252, 'u - diaeresis'],
668
- [363, 'u - macron'],
669
- [253, 'y - acute'],
670
- [254, 'thorn'],
671
- [255, 'y - diaeresis'],
672
- [563, 'y - macron'],
673
- [913, 'Alpha'],
674
- [914, 'Beta'],
675
- [915, 'Gamma'],
676
- [916, 'Delta'],
677
- [917, 'Epsilon'],
678
- [918, 'Zeta'],
679
- [919, 'Eta'],
680
- [920, 'Theta'],
681
- [921, 'Iota'],
682
- [922, 'Kappa'],
683
- [923, 'Lambda'],
684
- [924, 'Mu'],
685
- [925, 'Nu'],
686
- [926, 'Xi'],
687
- [927, 'Omicron'],
688
- [928, 'Pi'],
689
- [929, 'Rho'],
690
- [931, 'Sigma'],
691
- [932, 'Tau'],
692
- [933, 'Upsilon'],
693
- [934, 'Phi'],
694
- [935, 'Chi'],
695
- [936, 'Psi'],
696
- [937, 'Omega'],
697
- [945, 'alpha'],
698
- [946, 'beta'],
699
- [947, 'gamma'],
700
- [948, 'delta'],
701
- [949, 'epsilon'],
702
- [950, 'zeta'],
703
- [951, 'eta'],
704
- [952, 'theta'],
705
- [953, 'iota'],
706
- [954, 'kappa'],
707
- [955, 'lambda'],
708
- [956, 'mu'],
709
- [957, 'nu'],
710
- [958, 'xi'],
711
- [959, 'omicron'],
712
- [960, 'pi'],
713
- [961, 'rho'],
714
- [962, 'final sigma'],
715
- [963, 'sigma'],
716
- [964, 'tau'],
717
- [965, 'upsilon'],
718
- [966, 'phi'],
719
- [967, 'chi'],
720
- [968, 'psi'],
721
- [969, 'omega']
722
- ]
723
- },
724
- {
725
- name: 'Symbols',
726
- characters: [
727
- [8501, 'alef symbol'],
728
- [982, 'pi symbol'],
729
- [8476, 'real part symbol'],
730
- [978, 'upsilon - hook symbol'],
731
- [8472, 'Weierstrass p'],
732
- [8465, 'imaginary part']
733
- ]
734
- },
735
- {
736
- name: 'Arrows',
737
- characters: [
738
- [8592, 'leftwards arrow'],
739
- [8593, 'upwards arrow'],
740
- [8594, 'rightwards arrow'],
741
- [8595, 'downwards arrow'],
742
- [8596, 'left right arrow'],
743
- [8629, 'carriage return'],
744
- [8656, 'leftwards double arrow'],
745
- [8657, 'upwards double arrow'],
746
- [8658, 'rightwards double arrow'],
747
- [8659, 'downwards double arrow'],
748
- [8660, 'left right double arrow'],
749
- [8756, 'therefore'],
750
- [8834, 'subset of'],
751
- [8835, 'superset of'],
752
- [8836, 'not a subset of'],
753
- [8838, 'subset of or equal to'],
754
- [8839, 'superset of or equal to'],
755
- [8853, 'circled plus'],
756
- [8855, 'circled times'],
757
- [8869, 'perpendicular'],
758
- [8901, 'dot operator'],
759
- [8968, 'left ceiling'],
760
- [8969, 'right ceiling'],
761
- [8970, 'left floor'],
762
- [8971, 'right floor'],
763
- [9001, 'left-pointing angle bracket'],
764
- [9002, 'right-pointing angle bracket'],
765
- [9674, 'lozenge'],
766
- [9824, 'black spade suit'],
767
- [9827, 'black club suit'],
768
- [9829, 'black heart suit'],
769
- [9830, 'black diamond suit'],
770
- [8194, 'en space'],
771
- [8195, 'em space'],
772
- [8201, 'thin space'],
773
- [8204, 'zero width non-joiner'],
774
- [8205, 'zero width joiner'],
775
- [8206, 'left-to-right mark'],
776
- [8207, 'right-to-left mark']
777
- ]
778
- }
779
- ];
780
- };
781
- const charmapFilter = (charmap) => {
782
- return global.grep(charmap, (item) => {
783
- return isArray(item) && item.length === 2;
784
- });
785
- };
786
- const getCharsFromOption = (optionValue) => {
787
- if (isArray(optionValue)) {
788
- return charmapFilter(optionValue);
789
- }
790
- if (typeof optionValue === 'function') {
791
- return optionValue();
792
- }
793
- return [];
794
- };
795
- const extendCharMap = (editor, charmap) => {
796
- const userCharMap = getCharMap$1(editor);
797
- if (userCharMap) {
798
- charmap = [{ name: UserDefined, characters: getCharsFromOption(userCharMap) }];
799
- }
800
- const userCharMapAppend = getCharMapAppend(editor);
801
- if (userCharMapAppend) {
802
- const userDefinedGroup = global.grep(charmap, (cg) => cg.name === UserDefined);
803
- if (userDefinedGroup.length) {
804
- userDefinedGroup[0].characters = [...userDefinedGroup[0].characters, ...getCharsFromOption(userCharMapAppend)];
805
- return charmap;
806
- }
807
- return charmap.concat({ name: UserDefined, characters: getCharsFromOption(userCharMapAppend) });
808
- }
809
- return charmap;
810
- };
811
- const getCharMap = (editor) => {
812
- const groups = extendCharMap(editor, getDefaultCharMap());
813
- return groups.length > 1 ? [
814
- {
815
- name: 'All',
816
- characters: bind(groups, (g) => g.characters)
817
- }
818
- ].concat(groups) : groups;
819
- };
820
-
821
- const get = (editor) => {
822
- const getCharMap$1 = () => {
823
- return getCharMap(editor);
824
- };
825
- const insertChar$1 = (chr) => {
826
- insertChar(editor, chr);
827
- };
828
- return {
829
- getCharMap: getCharMap$1,
830
- insertChar: insertChar$1
831
- };
832
- };
833
-
834
- const charMatches = (charCode, name, lowerCasePattern) => {
835
- if (contains(fromCodePoint(charCode).toLowerCase(), lowerCasePattern)) {
836
- return true;
837
- }
838
- else {
839
- return contains(name.toLowerCase(), lowerCasePattern) || contains(name.toLowerCase().replace(/\s+/g, ''), lowerCasePattern);
840
- }
841
- };
842
- const scan = (group, pattern) => {
843
- const matches = [];
844
- const lowerCasePattern = pattern.toLowerCase();
845
- each(group.characters, (g) => {
846
- if (charMatches(g[0], g[1], lowerCasePattern)) {
847
- matches.push(g);
848
- }
849
- });
850
- return map(matches, (m) => ({
851
- text: m[1],
852
- value: fromCodePoint(m[0]),
853
- icon: fromCodePoint(m[0])
854
- }));
855
- };
856
-
857
- const patternName = 'pattern';
858
- const open = (editor, charMap) => {
859
- const makeGroupItems = () => [
860
- {
861
- label: 'Search',
862
- type: 'input',
863
- name: patternName
864
- },
865
- {
866
- type: 'collection',
867
- name: 'results'
868
- // TODO TINY-3229 implement collection columns properly
869
- // columns: 'auto'
870
- }
871
- ];
872
- const makeTabs = () => map(charMap, (charGroup) => ({
873
- title: charGroup.name,
874
- name: charGroup.name,
875
- items: makeGroupItems()
876
- }));
877
- const makePanel = () => ({ type: 'panel', items: makeGroupItems() });
878
- const makeTabPanel = () => ({ type: 'tabpanel', tabs: makeTabs() });
879
- const currentTab = charMap.length === 1 ? Cell(UserDefined) : Cell('All');
880
- const scanAndSet = (dialogApi, pattern) => {
881
- find(charMap, (group) => group.name === currentTab.get()).each((f) => {
882
- const items = scan(f, pattern);
883
- dialogApi.setData({
884
- results: items
885
- });
886
- });
887
- };
888
- const SEARCH_DELAY = 40;
889
- const updateFilter = last((dialogApi) => {
890
- const pattern = dialogApi.getData().pattern;
891
- scanAndSet(dialogApi, pattern);
892
- }, SEARCH_DELAY);
893
- const body = charMap.length === 1 ? makePanel() : makeTabPanel();
894
- const initialData = {
895
- pattern: '',
896
- results: scan(charMap[0], '')
897
- };
898
- const bridgeSpec = {
899
- title: 'Special Character',
900
- size: 'normal',
901
- body,
902
- buttons: [
903
- {
904
- type: 'cancel',
905
- name: 'close',
906
- text: 'Close',
907
- primary: true
908
- }
909
- ],
910
- initialData,
911
- onAction: (api, details) => {
912
- if (details.name === 'results') {
913
- insertChar(editor, details.value);
914
- api.close();
915
- }
916
- },
917
- onTabChange: (dialogApi, details) => {
918
- currentTab.set(details.newTabName);
919
- updateFilter.throttle(dialogApi);
920
- },
921
- onChange: (dialogApi, changeData) => {
922
- if (changeData.name === patternName) {
923
- updateFilter.throttle(dialogApi);
924
- }
925
- }
926
- };
927
- const dialogApi = editor.windowManager.open(bridgeSpec);
928
- dialogApi.focus(patternName);
929
- };
930
-
931
- const register$1 = (editor, charMap) => {
932
- editor.addCommand('mceShowCharmap', () => {
933
- open(editor, charMap);
934
- });
935
- };
936
-
937
- const init = (editor, all) => {
938
- editor.ui.registry.addAutocompleter('charmap', {
939
- trigger: ':',
940
- columns: 'auto',
941
- minChars: 2,
942
- fetch: (pattern, _maxResults) => new Promise((resolve, _reject) => {
943
- resolve(scan(all, pattern));
944
- }),
945
- onAction: (autocompleteApi, rng, value) => {
946
- editor.selection.setRng(rng);
947
- editor.insertContent(value);
948
- autocompleteApi.hide();
949
- }
950
- });
951
- };
952
-
953
- const onSetupEditable = (editor) => (api) => {
954
- const nodeChanged = () => {
955
- api.setEnabled(editor.selection.isEditable());
956
- };
957
- editor.on('NodeChange', nodeChanged);
958
- nodeChanged();
959
- return () => {
960
- editor.off('NodeChange', nodeChanged);
961
- };
962
- };
963
- const register = (editor) => {
964
- const onAction = () => editor.execCommand('mceShowCharmap');
965
- editor.ui.registry.addButton('charmap', {
966
- icon: 'insert-character',
967
- tooltip: 'Special character',
968
- onAction,
969
- onSetup: onSetupEditable(editor)
970
- });
971
- editor.ui.registry.addMenuItem('charmap', {
972
- icon: 'insert-character',
973
- text: 'Special character...',
974
- onAction,
975
- onSetup: onSetupEditable(editor)
976
- });
977
- };
978
-
979
- var Plugin = () => {
980
- global$1.add('charmap', (editor) => {
981
- register$2(editor);
982
- const charMap = getCharMap(editor);
983
- register$1(editor, charMap);
984
- register(editor);
985
- init(editor, charMap[0]);
986
- return get(editor);
987
- });
988
- };
989
-
990
- Plugin();
991
- /** *****
992
- * DO NOT EXPORT ANYTHING
993
- *
994
- * IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE
995
- *******/
996
-
997
- })();