@lotte-innovate/ui-component-test 0.0.112 → 0.0.114

Sign up to get free protection for your applications and to get access to all the features.
Files changed (586) hide show
  1. package/dist/lib/_virtual/index.mjs +2 -0
  2. package/dist/lib/_virtual/index10.mjs +2 -0
  3. package/dist/lib/_virtual/index10.mjs.map +1 -0
  4. package/dist/lib/_virtual/index11.mjs +2 -0
  5. package/dist/lib/_virtual/index11.mjs.map +1 -0
  6. package/dist/lib/_virtual/index12.mjs +2 -0
  7. package/dist/lib/_virtual/index12.mjs.map +1 -0
  8. package/dist/lib/_virtual/index13.mjs +2 -0
  9. package/dist/lib/_virtual/index13.mjs.map +1 -0
  10. package/dist/lib/_virtual/index14.mjs +2 -0
  11. package/dist/lib/_virtual/index14.mjs.map +1 -0
  12. package/dist/lib/_virtual/index2.mjs +2 -0
  13. package/dist/lib/_virtual/index2.mjs.map +1 -0
  14. package/dist/lib/_virtual/index3.mjs +2 -0
  15. package/dist/lib/_virtual/index3.mjs.map +1 -0
  16. package/dist/lib/_virtual/index4.mjs +2 -0
  17. package/dist/lib/_virtual/index4.mjs.map +1 -0
  18. package/dist/lib/_virtual/index5.mjs +2 -0
  19. package/dist/lib/_virtual/index5.mjs.map +1 -0
  20. package/dist/lib/_virtual/index6.mjs +2 -0
  21. package/dist/lib/_virtual/index6.mjs.map +1 -0
  22. package/dist/lib/_virtual/index7.mjs +2 -0
  23. package/dist/lib/_virtual/index7.mjs.map +1 -0
  24. package/dist/lib/_virtual/index8.mjs +2 -0
  25. package/dist/lib/_virtual/index8.mjs.map +1 -0
  26. package/dist/lib/_virtual/index9.mjs +2 -0
  27. package/dist/lib/_virtual/index9.mjs.map +1 -0
  28. package/dist/lib/_virtual/model.mjs +2 -0
  29. package/dist/lib/_virtual/model.mjs.map +1 -0
  30. package/dist/lib/_virtual/plugin.mjs +2 -0
  31. package/dist/lib/_virtual/plugin.mjs.map +1 -0
  32. package/dist/lib/_virtual/plugin2.mjs +2 -0
  33. package/dist/lib/_virtual/plugin2.mjs.map +1 -0
  34. package/dist/lib/_virtual/plugin3.mjs +2 -0
  35. package/dist/lib/_virtual/plugin3.mjs.map +1 -0
  36. package/dist/lib/_virtual/plugin4.mjs +2 -0
  37. package/dist/lib/_virtual/plugin4.mjs.map +1 -0
  38. package/dist/lib/_virtual/plugin5.mjs +2 -0
  39. package/dist/lib/_virtual/plugin5.mjs.map +1 -0
  40. package/dist/lib/_virtual/theme.mjs +2 -0
  41. package/dist/lib/_virtual/theme.mjs.map +1 -0
  42. package/dist/lib/components/Editor/index.d.ts +11 -13
  43. package/dist/lib/components/Editor/index.js +11 -13
  44. package/dist/lib/lib/color/alpha.mjs.map +1 -0
  45. package/dist/lib/lib/color/constants.mjs.map +1 -0
  46. package/dist/lib/lib/color/light.mjs.map +1 -0
  47. package/dist/lib/lib/components/AlertDialog/index.mjs.map +1 -0
  48. package/dist/lib/lib/components/BarChart/index.mjs.map +1 -0
  49. package/dist/lib/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
  50. package/dist/lib/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
  51. package/dist/lib/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
  52. package/dist/lib/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
  53. package/dist/lib/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
  54. package/dist/lib/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
  55. package/dist/lib/lib/components/Breadcrumb/index.mjs.map +1 -0
  56. package/dist/lib/lib/components/BubbleChart/index.mjs.map +1 -0
  57. package/dist/lib/lib/components/Callout/index.mjs.map +1 -0
  58. package/dist/lib/lib/components/CheckboxGroup/index.mjs.map +1 -0
  59. package/dist/lib/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
  60. package/dist/lib/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
  61. package/dist/lib/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  62. package/dist/lib/lib/components/ContextMenu/index.mjs.map +1 -0
  63. package/dist/lib/lib/components/DataList/index.mjs.map +1 -0
  64. package/dist/lib/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
  65. package/dist/lib/lib/components/Dialog/index.mjs.map +1 -0
  66. package/dist/lib/lib/components/DoughnutChart/index.mjs.map +1 -0
  67. package/dist/lib/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
  68. package/dist/lib/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
  69. package/dist/lib/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
  70. package/dist/lib/lib/components/DropdownMenu/index.mjs.map +1 -0
  71. package/dist/lib/lib/components/Editor/index.mjs +3 -0
  72. package/dist/lib/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  73. package/dist/lib/lib/components/Gnb/index.mjs.map +1 -0
  74. package/dist/lib/lib/components/Grid/Pagination.mjs.map +1 -0
  75. package/dist/lib/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
  76. package/dist/lib/lib/components/HoverCard/index.mjs.map +1 -0
  77. package/dist/lib/lib/components/LineChart/index.mjs.map +1 -0
  78. package/dist/lib/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
  79. package/dist/lib/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
  80. package/dist/lib/lib/components/Menubar/MenubarSub.mjs.map +1 -0
  81. package/dist/lib/lib/components/Menubar/index.mjs.map +1 -0
  82. package/dist/lib/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
  83. package/dist/lib/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
  84. package/dist/lib/lib/components/NavigationMenu/index.mjs.map +1 -0
  85. package/dist/lib/lib/components/PieChart/index.mjs.map +1 -0
  86. package/dist/lib/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
  87. package/dist/lib/lib/components/Popover/index.mjs.map +1 -0
  88. package/dist/lib/lib/components/RadarChart/index.mjs.map +1 -0
  89. package/dist/lib/lib/components/RadioCards/index.mjs.map +1 -0
  90. package/dist/lib/lib/components/RadioGroup/index.mjs.map +1 -0
  91. package/dist/lib/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
  92. package/dist/lib/lib/components/SegmentedControl/index.mjs.map +1 -0
  93. package/dist/lib/lib/components/Toast/index.mjs.map +1 -0
  94. package/dist/lib/lib/components/ToggleGroup/index.mjs.map +1 -0
  95. package/dist/lib/lib/constants.mjs.map +1 -0
  96. package/dist/lib/lib/index.mjs.map +1 -0
  97. package/dist/lib/lib/utils/utils.mjs.map +1 -0
  98. package/{public/tinymce/icons/default/icons.min.js → dist/lib/public/tinymce/icons/default/icons.mjs} +3 -1
  99. package/dist/lib/public/tinymce/icons/default/icons.mjs.map +1 -0
  100. package/dist/lib/public/tinymce/models/dom/index.mjs +2 -0
  101. package/dist/lib/public/tinymce/models/dom/index.mjs.map +1 -0
  102. package/dist/lib/public/tinymce/models/dom/model.mjs +2 -0
  103. package/dist/lib/public/tinymce/models/dom/model.mjs.map +1 -0
  104. package/dist/lib/public/tinymce/plugins/advlist/index.mjs +2 -0
  105. package/dist/lib/public/tinymce/plugins/advlist/index.mjs.map +1 -0
  106. package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs +2 -0
  107. package/dist/lib/public/tinymce/plugins/advlist/plugin.mjs.map +1 -0
  108. package/dist/lib/public/tinymce/plugins/code/index.mjs +2 -0
  109. package/dist/lib/public/tinymce/plugins/code/index.mjs.map +1 -0
  110. package/dist/lib/public/tinymce/plugins/code/plugin.mjs +2 -0
  111. package/dist/lib/public/tinymce/plugins/code/plugin.mjs.map +1 -0
  112. package/dist/lib/public/tinymce/plugins/link/index.mjs +2 -0
  113. package/dist/lib/public/tinymce/plugins/link/index.mjs.map +1 -0
  114. package/dist/lib/public/tinymce/plugins/link/plugin.mjs +2 -0
  115. package/dist/lib/public/tinymce/plugins/link/plugin.mjs.map +1 -0
  116. package/dist/lib/public/tinymce/plugins/lists/index.mjs +2 -0
  117. package/dist/lib/public/tinymce/plugins/lists/index.mjs.map +1 -0
  118. package/dist/lib/public/tinymce/plugins/lists/plugin.mjs +2 -0
  119. package/dist/lib/public/tinymce/plugins/lists/plugin.mjs.map +1 -0
  120. package/dist/lib/public/tinymce/plugins/table/index.mjs +2 -0
  121. package/dist/lib/public/tinymce/plugins/table/index.mjs.map +1 -0
  122. package/dist/lib/public/tinymce/plugins/table/plugin.mjs +2 -0
  123. package/dist/lib/public/tinymce/plugins/table/plugin.mjs.map +1 -0
  124. package/dist/lib/public/tinymce/skins/content/default/content.mjs +3 -0
  125. package/dist/lib/public/tinymce/skins/content/default/content.mjs.map +1 -0
  126. package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs +3 -0
  127. package/dist/lib/public/tinymce/skins/ui/oxide/content.mjs.map +1 -0
  128. package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs +3 -0
  129. package/dist/lib/public/tinymce/skins/ui/oxide/skin.mjs.map +1 -0
  130. package/dist/lib/public/tinymce/themes/silver/index.mjs +2 -0
  131. package/dist/lib/public/tinymce/themes/silver/index.mjs.map +1 -0
  132. package/dist/lib/public/tinymce/themes/silver/theme.mjs +2 -0
  133. package/dist/lib/public/tinymce/themes/silver/theme.mjs.map +1 -0
  134. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  135. package/dist/public/tinymce/icons/default/icons.d.ts +0 -0
  136. package/dist/public/tinymce/icons/default/icons.js +195 -0
  137. package/dist/public/tinymce/icons/default/index.d.ts +1 -0
  138. package/{public → dist/public}/tinymce/icons/default/index.js +1 -1
  139. package/dist/public/tinymce/models/dom/index.d.ts +1 -0
  140. package/{public → dist/public}/tinymce/models/dom/index.js +2 -1
  141. package/dist/public/tinymce/models/dom/model.d.ts +0 -0
  142. package/dist/public/tinymce/models/dom/model.js +7988 -0
  143. package/dist/public/tinymce/plugins/advlist/index.d.ts +1 -0
  144. package/{public → dist/public}/tinymce/plugins/advlist/index.js +2 -1
  145. package/dist/public/tinymce/plugins/advlist/plugin.d.ts +0 -0
  146. package/dist/public/tinymce/plugins/advlist/plugin.js +255 -0
  147. package/dist/public/tinymce/plugins/autolink/index.d.ts +1 -0
  148. package/{public → dist/public}/tinymce/plugins/autolink/index.js +2 -1
  149. package/dist/public/tinymce/plugins/autolink/plugin.d.ts +0 -0
  150. package/dist/public/tinymce/plugins/autolink/plugin.js +221 -0
  151. package/dist/public/tinymce/plugins/code/index.d.ts +1 -0
  152. package/{public → dist/public}/tinymce/plugins/code/index.js +2 -1
  153. package/dist/public/tinymce/plugins/code/plugin.d.ts +0 -0
  154. package/dist/public/tinymce/plugins/code/plugin.js +77 -0
  155. package/dist/public/tinymce/plugins/codesample/index.d.ts +1 -0
  156. package/{public → dist/public}/tinymce/plugins/codesample/index.js +2 -1
  157. package/dist/public/tinymce/plugins/codesample/plugin.d.ts +45 -0
  158. package/dist/public/tinymce/plugins/codesample/plugin.js +2462 -0
  159. package/dist/public/tinymce/plugins/image/index.d.ts +1 -0
  160. package/{public → dist/public}/tinymce/plugins/image/index.js +2 -1
  161. package/dist/public/tinymce/plugins/image/plugin.d.ts +0 -0
  162. package/dist/public/tinymce/plugins/image/plugin.js +1523 -0
  163. package/dist/public/tinymce/plugins/link/index.d.ts +1 -0
  164. package/{public → dist/public}/tinymce/plugins/link/index.js +2 -1
  165. package/dist/public/tinymce/plugins/link/plugin.d.ts +0 -0
  166. package/dist/public/tinymce/plugins/link/plugin.js +1246 -0
  167. package/dist/public/tinymce/plugins/lists/index.d.ts +1 -0
  168. package/{public → dist/public}/tinymce/plugins/lists/index.js +2 -1
  169. package/dist/public/tinymce/plugins/lists/plugin.d.ts +0 -0
  170. package/dist/public/tinymce/plugins/lists/plugin.js +2191 -0
  171. package/dist/public/tinymce/plugins/table/index.d.ts +1 -0
  172. package/{public → dist/public}/tinymce/plugins/table/index.js +2 -1
  173. package/dist/public/tinymce/plugins/table/plugin.d.ts +0 -0
  174. package/dist/public/tinymce/plugins/table/plugin.js +3399 -0
  175. package/dist/public/tinymce/skins/content/default/content.d.ts +0 -0
  176. package/{public → dist/public}/tinymce/skins/content/default/content.js +2 -1
  177. package/dist/public/tinymce/skins/ui/oxide/content.d.ts +0 -0
  178. package/dist/public/tinymce/skins/ui/oxide/content.inline.d.ts +0 -0
  179. package/{public → dist/public}/tinymce/skins/ui/oxide/content.inline.js +2 -1
  180. package/{public → dist/public}/tinymce/skins/ui/oxide/content.js +2 -1
  181. package/dist/public/tinymce/skins/ui/oxide/skin.d.ts +0 -0
  182. package/{public → dist/public}/tinymce/skins/ui/oxide/skin.js +2 -1
  183. package/dist/public/tinymce/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  184. package/{public → dist/public}/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -1
  185. package/dist/public/tinymce/skins/ui/oxide-dark/content.d.ts +0 -0
  186. package/dist/public/tinymce/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  187. package/{public → dist/public}/tinymce/skins/ui/oxide-dark/content.inline.js +2 -1
  188. package/{public → dist/public}/tinymce/skins/ui/oxide-dark/content.js +2 -1
  189. package/dist/public/tinymce/skins/ui/oxide-dark/skin.d.ts +0 -0
  190. package/{public → dist/public}/tinymce/skins/ui/oxide-dark/skin.js +2 -1
  191. package/dist/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  192. package/{public → dist/public}/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -1
  193. package/dist/public/tinymce/themes/silver/index.d.ts +1 -0
  194. package/{public → dist/public}/tinymce/themes/silver/index.js +2 -1
  195. package/dist/public/tinymce/themes/silver/theme.d.ts +0 -0
  196. package/dist/public/tinymce/themes/silver/theme.js +29731 -0
  197. package/dist/public/tinymce/tinymce.d.ts +1 -0
  198. package/dist/public/tinymce/tinymce.js +31974 -0
  199. package/dist/tsconfig.tsbuildinfo +1 -1
  200. package/package.json +1 -2
  201. package/dist/lib/color/alpha.mjs.map +0 -1
  202. package/dist/lib/color/constants.mjs.map +0 -1
  203. package/dist/lib/color/light.mjs.map +0 -1
  204. package/dist/lib/components/AlertDialog/index.mjs.map +0 -1
  205. package/dist/lib/components/BarChart/index.mjs.map +0 -1
  206. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +0 -1
  207. package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +0 -1
  208. package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +0 -1
  209. package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +0 -1
  210. package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +0 -1
  211. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +0 -1
  212. package/dist/lib/components/Breadcrumb/index.mjs.map +0 -1
  213. package/dist/lib/components/BubbleChart/index.mjs.map +0 -1
  214. package/dist/lib/components/Callout/index.mjs.map +0 -1
  215. package/dist/lib/components/CheckboxGroup/index.mjs.map +0 -1
  216. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +0 -1
  217. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +0 -1
  218. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +0 -1
  219. package/dist/lib/components/ContextMenu/index.mjs.map +0 -1
  220. package/dist/lib/components/DataList/index.mjs.map +0 -1
  221. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +0 -1
  222. package/dist/lib/components/Dialog/index.mjs.map +0 -1
  223. package/dist/lib/components/DoughnutChart/index.mjs.map +0 -1
  224. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +0 -1
  225. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +0 -1
  226. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +0 -1
  227. package/dist/lib/components/DropdownMenu/index.mjs.map +0 -1
  228. package/dist/lib/components/Editor/index.mjs +0 -3
  229. package/dist/lib/components/Gnb/GnbLogo.mjs.map +0 -1
  230. package/dist/lib/components/Gnb/index.mjs.map +0 -1
  231. package/dist/lib/components/Grid/Pagination.mjs.map +0 -1
  232. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +0 -1
  233. package/dist/lib/components/HoverCard/index.mjs.map +0 -1
  234. package/dist/lib/components/LineChart/index.mjs.map +0 -1
  235. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +0 -1
  236. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +0 -1
  237. package/dist/lib/components/Menubar/MenubarSub.mjs.map +0 -1
  238. package/dist/lib/components/Menubar/index.mjs.map +0 -1
  239. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +0 -1
  240. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +0 -1
  241. package/dist/lib/components/NavigationMenu/index.mjs.map +0 -1
  242. package/dist/lib/components/PieChart/index.mjs.map +0 -1
  243. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +0 -1
  244. package/dist/lib/components/Popover/index.mjs.map +0 -1
  245. package/dist/lib/components/RadarChart/index.mjs.map +0 -1
  246. package/dist/lib/components/RadioCards/index.mjs.map +0 -1
  247. package/dist/lib/components/RadioGroup/index.mjs.map +0 -1
  248. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +0 -1
  249. package/dist/lib/components/SegmentedControl/index.mjs.map +0 -1
  250. package/dist/lib/components/Toast/index.mjs.map +0 -1
  251. package/dist/lib/components/ToggleGroup/index.mjs.map +0 -1
  252. package/dist/lib/constants.mjs.map +0 -1
  253. package/dist/lib/utils/utils.mjs.map +0 -1
  254. package/public/tinymce/CHANGELOG.md +0 -3453
  255. package/public/tinymce/README.md +0 -73
  256. package/public/tinymce/bower.json +0 -27
  257. package/public/tinymce/composer.json +0 -52
  258. package/public/tinymce/icons/default/icons.js +0 -194
  259. package/public/tinymce/license.txt +0 -21
  260. package/public/tinymce/models/dom/model.js +0 -8040
  261. package/public/tinymce/models/dom/model.min.js +0 -4
  262. package/public/tinymce/package.json +0 -32
  263. package/public/tinymce/plugins/advlist/plugin.js +0 -259
  264. package/public/tinymce/plugins/advlist/plugin.min.js +0 -4
  265. package/public/tinymce/plugins/autolink/plugin.js +0 -228
  266. package/public/tinymce/plugins/autolink/plugin.min.js +0 -4
  267. package/public/tinymce/plugins/code/plugin.js +0 -85
  268. package/public/tinymce/plugins/code/plugin.min.js +0 -4
  269. package/public/tinymce/plugins/codesample/plugin.js +0 -2463
  270. package/public/tinymce/plugins/codesample/plugin.min.js +0 -4
  271. package/public/tinymce/plugins/image/plugin.js +0 -1505
  272. package/public/tinymce/plugins/image/plugin.min.js +0 -4
  273. package/public/tinymce/plugins/link/plugin.js +0 -1242
  274. package/public/tinymce/plugins/link/plugin.min.js +0 -4
  275. package/public/tinymce/plugins/lists/plugin.js +0 -2172
  276. package/public/tinymce/plugins/lists/plugin.min.js +0 -4
  277. package/public/tinymce/plugins/table/plugin.js +0 -3462
  278. package/public/tinymce/plugins/table/plugin.min.js +0 -4
  279. package/public/tinymce/skins/content/default/content.css +0 -61
  280. package/public/tinymce/skins/content/default/content.min.css +0 -1
  281. package/public/tinymce/skins/ui/oxide/content.css +0 -785
  282. package/public/tinymce/skins/ui/oxide/content.inline.css +0 -779
  283. package/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
  284. package/public/tinymce/skins/ui/oxide/content.min.css +0 -1
  285. package/public/tinymce/skins/ui/oxide/skin.css +0 -3763
  286. package/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  287. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  288. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  289. package/public/tinymce/skins/ui/oxide-dark/content.css +0 -766
  290. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  291. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
  292. package/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
  293. package/public/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  294. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  295. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  296. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  297. package/public/tinymce/themes/silver/theme.js +0 -30775
  298. package/public/tinymce/themes/silver/theme.min.js +0 -384
  299. package/public/tinymce/tinymce.d.ts +0 -3238
  300. package/public/tinymce/tinymce.js +0 -31779
  301. package/public/tinymce/tinymce.min.js +0 -384
  302. /package/dist/lib/{index.mjs.map → _virtual/index.mjs.map} +0 -0
  303. /package/dist/lib/{Typography → lib/Typography}/Header/index.mjs +0 -0
  304. /package/dist/lib/{Typography → lib/Typography}/Header/index.mjs.map +0 -0
  305. /package/dist/lib/{Typography → lib/Typography}/Text/index.mjs +0 -0
  306. /package/dist/lib/{Typography → lib/Typography}/Text/index.mjs.map +0 -0
  307. /package/dist/lib/{color → lib/color}/alpha.mjs +0 -0
  308. /package/dist/lib/{color → lib/color}/constants.mjs +0 -0
  309. /package/dist/lib/{color → lib/color}/light.mjs +0 -0
  310. /package/dist/lib/{components → lib/components}/Accordion/index.mjs +0 -0
  311. /package/dist/lib/{components → lib/components}/Accordion/index.mjs.map +0 -0
  312. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogAction.mjs +0 -0
  313. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogAction.mjs.map +0 -0
  314. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogCancel.mjs +0 -0
  315. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogCancel.mjs.map +0 -0
  316. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogContent.mjs +0 -0
  317. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogContent.mjs.map +0 -0
  318. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogDescription.mjs +0 -0
  319. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogDescription.mjs.map +0 -0
  320. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogRoot.mjs +0 -0
  321. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogRoot.mjs.map +0 -0
  322. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogTitle.mjs +0 -0
  323. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogTitle.mjs.map +0 -0
  324. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogTrigger.mjs +0 -0
  325. /package/dist/lib/{components → lib/components}/AlertDialog/AlertDialogTrigger.mjs.map +0 -0
  326. /package/dist/lib/{components → lib/components}/AlertDialog/index.mjs +0 -0
  327. /package/dist/lib/{components → lib/components}/AspectRatio/index.mjs +0 -0
  328. /package/dist/lib/{components → lib/components}/AspectRatio/index.mjs.map +0 -0
  329. /package/dist/lib/{components → lib/components}/Avatar/index.mjs +0 -0
  330. /package/dist/lib/{components → lib/components}/Avatar/index.mjs.map +0 -0
  331. /package/dist/lib/{components → lib/components}/Badge/index.mjs +0 -0
  332. /package/dist/lib/{components → lib/components}/Badge/index.mjs.map +0 -0
  333. /package/dist/lib/{components → lib/components}/BarChart/index.mjs +0 -0
  334. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbEllipsis.mjs +0 -0
  335. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbItem.mjs +0 -0
  336. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbLink.mjs +0 -0
  337. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbList.mjs +0 -0
  338. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbPage.mjs +0 -0
  339. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbRoot.mjs +0 -0
  340. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbRoot.mjs.map +0 -0
  341. /package/dist/lib/{components → lib/components}/Breadcrumb/BreadcrumbSeparator.mjs +0 -0
  342. /package/dist/lib/{components → lib/components}/Breadcrumb/index.mjs +0 -0
  343. /package/dist/lib/{components → lib/components}/BubbleChart/index.mjs +0 -0
  344. /package/dist/lib/{components → lib/components}/Button/index.mjs +0 -0
  345. /package/dist/lib/{components → lib/components}/Button/index.mjs.map +0 -0
  346. /package/dist/lib/{components → lib/components}/Callout/CalloutIcon.mjs +0 -0
  347. /package/dist/lib/{components → lib/components}/Callout/CalloutIcon.mjs.map +0 -0
  348. /package/dist/lib/{components → lib/components}/Callout/CalloutRoot.mjs +0 -0
  349. /package/dist/lib/{components → lib/components}/Callout/CalloutRoot.mjs.map +0 -0
  350. /package/dist/lib/{components → lib/components}/Callout/CalloutText.mjs +0 -0
  351. /package/dist/lib/{components → lib/components}/Callout/CalloutText.mjs.map +0 -0
  352. /package/dist/lib/{components → lib/components}/Callout/index.mjs +0 -0
  353. /package/dist/lib/{components → lib/components}/Card/index.mjs +0 -0
  354. /package/dist/lib/{components → lib/components}/Card/index.mjs.map +0 -0
  355. /package/dist/lib/{components → lib/components}/Checkbox/index.mjs +0 -0
  356. /package/dist/lib/{components → lib/components}/Checkbox/index.mjs.map +0 -0
  357. /package/dist/lib/{components → lib/components}/CheckboxCard/index.mjs +0 -0
  358. /package/dist/lib/{components → lib/components}/CheckboxCard/index.mjs.map +0 -0
  359. /package/dist/lib/{components → lib/components}/CheckboxGroup/CheckboxGroupItem.mjs +0 -0
  360. /package/dist/lib/{components → lib/components}/CheckboxGroup/CheckboxGroupItem.mjs.map +0 -0
  361. /package/dist/lib/{components → lib/components}/CheckboxGroup/CheckboxGroupRoot.mjs +0 -0
  362. /package/dist/lib/{components → lib/components}/CheckboxGroup/CheckboxGroupRoot.mjs.map +0 -0
  363. /package/dist/lib/{components → lib/components}/CheckboxGroup/index.mjs +0 -0
  364. /package/dist/lib/{components → lib/components}/Collapsible/index.mjs +0 -0
  365. /package/dist/lib/{components → lib/components}/Collapsible/index.mjs.map +0 -0
  366. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuCheckboxItem.mjs +0 -0
  367. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuCheckboxItem.mjs.map +0 -0
  368. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuContent.mjs +0 -0
  369. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuContent.mjs.map +0 -0
  370. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuGroup.mjs +0 -0
  371. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuItem.mjs +0 -0
  372. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuItem.mjs.map +0 -0
  373. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuItemIndicator.mjs +0 -0
  374. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuItemIndicator.mjs.map +0 -0
  375. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuLabel.mjs +0 -0
  376. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuLabel.mjs.map +0 -0
  377. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuRadioGroup.mjs +0 -0
  378. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuRadioGroup.mjs.map +0 -0
  379. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuRadioItem.mjs +0 -0
  380. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuRadioItem.mjs.map +0 -0
  381. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuRoot.mjs +0 -0
  382. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuRoot.mjs.map +0 -0
  383. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuSeparator.mjs +0 -0
  384. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuSubContent.mjs +0 -0
  385. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuSubContent.mjs.map +0 -0
  386. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuSubTrigger.mjs +0 -0
  387. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuSubTrigger.mjs.map +0 -0
  388. /package/dist/lib/{components → lib/components}/ContextMenu/ContextMenuTrigger.mjs +0 -0
  389. /package/dist/lib/{components → lib/components}/ContextMenu/index.mjs +0 -0
  390. /package/dist/lib/{components → lib/components}/DataList/DataListItem.mjs +0 -0
  391. /package/dist/lib/{components → lib/components}/DataList/DataListItem.mjs.map +0 -0
  392. /package/dist/lib/{components → lib/components}/DataList/DataListLabel.mjs +0 -0
  393. /package/dist/lib/{components → lib/components}/DataList/DataListLabel.mjs.map +0 -0
  394. /package/dist/lib/{components → lib/components}/DataList/DataListRoot.mjs +0 -0
  395. /package/dist/lib/{components → lib/components}/DataList/DataListRoot.mjs.map +0 -0
  396. /package/dist/lib/{components → lib/components}/DataList/DataListValue.mjs +0 -0
  397. /package/dist/lib/{components → lib/components}/DataList/DataListValue.mjs.map +0 -0
  398. /package/dist/lib/{components → lib/components}/DataList/index.mjs +0 -0
  399. /package/dist/lib/{components → lib/components}/Dialog/DialogAction.mjs +0 -0
  400. /package/dist/lib/{components → lib/components}/Dialog/DialogAction.mjs.map +0 -0
  401. /package/dist/lib/{components → lib/components}/Dialog/DialogCancel.mjs +0 -0
  402. /package/dist/lib/{components → lib/components}/Dialog/DialogCancel.mjs.map +0 -0
  403. /package/dist/lib/{components → lib/components}/Dialog/DialogContent.mjs +0 -0
  404. /package/dist/lib/{components → lib/components}/Dialog/DialogContent.mjs.map +0 -0
  405. /package/dist/lib/{components → lib/components}/Dialog/DialogDescription.mjs +0 -0
  406. /package/dist/lib/{components → lib/components}/Dialog/DialogDescription.mjs.map +0 -0
  407. /package/dist/lib/{components → lib/components}/Dialog/DialogRoot.mjs +0 -0
  408. /package/dist/lib/{components → lib/components}/Dialog/DialogRoot.mjs.map +0 -0
  409. /package/dist/lib/{components → lib/components}/Dialog/DialogSlot.mjs +0 -0
  410. /package/dist/lib/{components → lib/components}/Dialog/DialogSlot.mjs.map +0 -0
  411. /package/dist/lib/{components → lib/components}/Dialog/DialogTitle.mjs +0 -0
  412. /package/dist/lib/{components → lib/components}/Dialog/DialogTitle.mjs.map +0 -0
  413. /package/dist/lib/{components → lib/components}/Dialog/DialogTrigger.mjs +0 -0
  414. /package/dist/lib/{components → lib/components}/Dialog/index.mjs +0 -0
  415. /package/dist/lib/{components → lib/components}/DoughnutChart/index.mjs +0 -0
  416. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdonMenuRadioGroup.mjs +0 -0
  417. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdonMenuSubContent.mjs +0 -0
  418. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdonMenuSubContent.mjs.map +0 -0
  419. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuCheckboxItem.mjs +0 -0
  420. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +0 -0
  421. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuContent.mjs +0 -0
  422. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuContent.mjs.map +0 -0
  423. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuItem.mjs +0 -0
  424. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuItem.mjs.map +0 -0
  425. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuItemIndicator.mjs +0 -0
  426. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuItemIndicator.mjs.map +0 -0
  427. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuLable.mjs +0 -0
  428. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuLable.mjs.map +0 -0
  429. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuRadioItem.mjs +0 -0
  430. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuRadioItem.mjs.map +0 -0
  431. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuRoot.mjs +0 -0
  432. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuRoot.mjs.map +0 -0
  433. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuSeparator.mjs +0 -0
  434. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuSub.mjs +0 -0
  435. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuSubTrigger.mjs +0 -0
  436. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuSubTrigger.mjs.map +0 -0
  437. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuTrigger.mjs +0 -0
  438. /package/dist/lib/{components → lib/components}/DropdownMenu/DropdownMenuTrigger.mjs.map +0 -0
  439. /package/dist/lib/{components → lib/components}/DropdownMenu/index.mjs +0 -0
  440. /package/dist/lib/{components → lib/components}/Editor/index.mjs.map +0 -0
  441. /package/dist/lib/{components → lib/components}/Footer/index.mjs +0 -0
  442. /package/dist/lib/{components → lib/components}/Footer/index.mjs.map +0 -0
  443. /package/dist/lib/{components → lib/components}/Gnb/GnbInfo.mjs +0 -0
  444. /package/dist/lib/{components → lib/components}/Gnb/GnbInfo.mjs.map +0 -0
  445. /package/dist/lib/{components → lib/components}/Gnb/GnbLogo.mjs +0 -0
  446. /package/dist/lib/{components → lib/components}/Gnb/GnbMenu.mjs +0 -0
  447. /package/dist/lib/{components → lib/components}/Gnb/GnbMenu.mjs.map +0 -0
  448. /package/dist/lib/{components → lib/components}/Gnb/GnbRoot.mjs +0 -0
  449. /package/dist/lib/{components → lib/components}/Gnb/GnbRoot.mjs.map +0 -0
  450. /package/dist/lib/{components → lib/components}/Gnb/index.mjs +0 -0
  451. /package/dist/lib/{components → lib/components}/Grid/Pagination.mjs +0 -0
  452. /package/dist/lib/{components → lib/components}/Grid/index.mjs +0 -0
  453. /package/dist/lib/{components → lib/components}/Grid/index.mjs.map +0 -0
  454. /package/dist/lib/{components → lib/components}/Grid/useGrid.mjs +0 -0
  455. /package/dist/lib/{components → lib/components}/Grid/useGrid.mjs.map +0 -0
  456. /package/dist/lib/{components → lib/components}/HoverCard/HoverCardContent.mjs +0 -0
  457. /package/dist/lib/{components → lib/components}/HoverCard/HoverCardContent.mjs.map +0 -0
  458. /package/dist/lib/{components → lib/components}/HoverCard/HoverCardRoot.mjs +0 -0
  459. /package/dist/lib/{components → lib/components}/HoverCard/HoverCardRoot.mjs.map +0 -0
  460. /package/dist/lib/{components → lib/components}/HoverCard/HoverCardTrigger.mjs +0 -0
  461. /package/dist/lib/{components → lib/components}/HoverCard/index.mjs +0 -0
  462. /package/dist/lib/{components → lib/components}/IconButton/index.mjs +0 -0
  463. /package/dist/lib/{components → lib/components}/IconButton/index.mjs.map +0 -0
  464. /package/dist/lib/{components → lib/components}/Inset/index.mjs +0 -0
  465. /package/dist/lib/{components → lib/components}/Inset/index.mjs.map +0 -0
  466. /package/dist/lib/{components → lib/components}/Label/index.mjs +0 -0
  467. /package/dist/lib/{components → lib/components}/Label/index.mjs.map +0 -0
  468. /package/dist/lib/{components → lib/components}/LineChart/index.mjs +0 -0
  469. /package/dist/lib/{components → lib/components}/Menubar/MenubarCheckboxItem.mjs +0 -0
  470. /package/dist/lib/{components → lib/components}/Menubar/MenubarCheckboxItem.mjs.map +0 -0
  471. /package/dist/lib/{components → lib/components}/Menubar/MenubarContent.mjs +0 -0
  472. /package/dist/lib/{components → lib/components}/Menubar/MenubarContent.mjs.map +0 -0
  473. /package/dist/lib/{components → lib/components}/Menubar/MenubarItem.mjs +0 -0
  474. /package/dist/lib/{components → lib/components}/Menubar/MenubarItem.mjs.map +0 -0
  475. /package/dist/lib/{components → lib/components}/Menubar/MenubarItemIndicator.mjs +0 -0
  476. /package/dist/lib/{components → lib/components}/Menubar/MenubarItemIndicator.mjs.map +0 -0
  477. /package/dist/lib/{components → lib/components}/Menubar/MenubarMenu.mjs +0 -0
  478. /package/dist/lib/{components → lib/components}/Menubar/MenubarRadioGroup.mjs +0 -0
  479. /package/dist/lib/{components → lib/components}/Menubar/MenubarRadioGroup.mjs.map +0 -0
  480. /package/dist/lib/{components → lib/components}/Menubar/MenubarRadioItem.mjs +0 -0
  481. /package/dist/lib/{components → lib/components}/Menubar/MenubarRadioItem.mjs.map +0 -0
  482. /package/dist/lib/{components → lib/components}/Menubar/MenubarRoot.mjs +0 -0
  483. /package/dist/lib/{components → lib/components}/Menubar/MenubarRoot.mjs.map +0 -0
  484. /package/dist/lib/{components → lib/components}/Menubar/MenubarSeparator.mjs +0 -0
  485. /package/dist/lib/{components → lib/components}/Menubar/MenubarSub.mjs +0 -0
  486. /package/dist/lib/{components → lib/components}/Menubar/MenubarSubContent.mjs +0 -0
  487. /package/dist/lib/{components → lib/components}/Menubar/MenubarSubContent.mjs.map +0 -0
  488. /package/dist/lib/{components → lib/components}/Menubar/MenubarSubTrigger.mjs +0 -0
  489. /package/dist/lib/{components → lib/components}/Menubar/MenubarSubTrigger.mjs.map +0 -0
  490. /package/dist/lib/{components → lib/components}/Menubar/MenubarTrigger.mjs +0 -0
  491. /package/dist/lib/{components → lib/components}/Menubar/MenubarTrigger.mjs.map +0 -0
  492. /package/dist/lib/{components → lib/components}/Menubar/index.mjs +0 -0
  493. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuContent.mjs +0 -0
  494. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuContent.mjs.map +0 -0
  495. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuIndicator.mjs +0 -0
  496. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuItem.mjs +0 -0
  497. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuLink.mjs +0 -0
  498. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuLink.mjs.map +0 -0
  499. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuList.mjs +0 -0
  500. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuList.mjs.map +0 -0
  501. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuRoot.mjs +0 -0
  502. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuRoot.mjs.map +0 -0
  503. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuTrigger.mjs +0 -0
  504. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuTrigger.mjs.map +0 -0
  505. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuViewport.mjs +0 -0
  506. /package/dist/lib/{components → lib/components}/NavigationMenu/NavigationMenuViewport.mjs.map +0 -0
  507. /package/dist/lib/{components → lib/components}/NavigationMenu/index.mjs +0 -0
  508. /package/dist/lib/{components → lib/components}/PieChart/index.mjs +0 -0
  509. /package/dist/lib/{components → lib/components}/Popover/PopoverClose.mjs +0 -0
  510. /package/dist/lib/{components → lib/components}/Popover/PopoverClose.mjs.map +0 -0
  511. /package/dist/lib/{components → lib/components}/Popover/PopoverContent.mjs +0 -0
  512. /package/dist/lib/{components → lib/components}/Popover/PopoverContent.mjs.map +0 -0
  513. /package/dist/lib/{components → lib/components}/Popover/PopoverRoot.mjs +0 -0
  514. /package/dist/lib/{components → lib/components}/Popover/PopoverRoot.mjs.map +0 -0
  515. /package/dist/lib/{components → lib/components}/Popover/PopoverTrigger.mjs +0 -0
  516. /package/dist/lib/{components → lib/components}/Popover/index.mjs +0 -0
  517. /package/dist/lib/{components → lib/components}/Progress/index.mjs +0 -0
  518. /package/dist/lib/{components → lib/components}/Progress/index.mjs.map +0 -0
  519. /package/dist/lib/{components → lib/components}/RadarChart/index.mjs +0 -0
  520. /package/dist/lib/{components → lib/components}/Radio/index.mjs +0 -0
  521. /package/dist/lib/{components → lib/components}/Radio/index.mjs.map +0 -0
  522. /package/dist/lib/{components → lib/components}/RadioCards/RadioCardsItem.mjs +0 -0
  523. /package/dist/lib/{components → lib/components}/RadioCards/RadioCardsItem.mjs.map +0 -0
  524. /package/dist/lib/{components → lib/components}/RadioCards/RadioCardsRoot.mjs +0 -0
  525. /package/dist/lib/{components → lib/components}/RadioCards/RadioCardsRoot.mjs.map +0 -0
  526. /package/dist/lib/{components → lib/components}/RadioCards/index.mjs +0 -0
  527. /package/dist/lib/{components → lib/components}/RadioGroup/RadioGroupItem.mjs +0 -0
  528. /package/dist/lib/{components → lib/components}/RadioGroup/RadioGroupItem.mjs.map +0 -0
  529. /package/dist/lib/{components → lib/components}/RadioGroup/RadioGroupRoot.mjs +0 -0
  530. /package/dist/lib/{components → lib/components}/RadioGroup/RadioGroupRoot.mjs.map +0 -0
  531. /package/dist/lib/{components → lib/components}/RadioGroup/index.mjs +0 -0
  532. /package/dist/lib/{components → lib/components}/ScrollArea/index.mjs +0 -0
  533. /package/dist/lib/{components → lib/components}/ScrollArea/index.mjs.map +0 -0
  534. /package/dist/lib/{components → lib/components}/SegmentedControl/SegmentedControlItem.mjs +0 -0
  535. /package/dist/lib/{components → lib/components}/SegmentedControl/SegmentedControlRoot.mjs +0 -0
  536. /package/dist/lib/{components → lib/components}/SegmentedControl/SegmentedControlRoot.mjs.map +0 -0
  537. /package/dist/lib/{components → lib/components}/SegmentedControl/index.mjs +0 -0
  538. /package/dist/lib/{components → lib/components}/Select/index.mjs +0 -0
  539. /package/dist/lib/{components → lib/components}/Select/index.mjs.map +0 -0
  540. /package/dist/lib/{components → lib/components}/Separator/index.mjs +0 -0
  541. /package/dist/lib/{components → lib/components}/Separator/index.mjs.map +0 -0
  542. /package/dist/lib/{components → lib/components}/Skeleton/index.mjs +0 -0
  543. /package/dist/lib/{components → lib/components}/Skeleton/index.mjs.map +0 -0
  544. /package/dist/lib/{components → lib/components}/Slider/index.mjs +0 -0
  545. /package/dist/lib/{components → lib/components}/Slider/index.mjs.map +0 -0
  546. /package/dist/lib/{components → lib/components}/Spinner/index.mjs +0 -0
  547. /package/dist/lib/{components → lib/components}/Spinner/index.mjs.map +0 -0
  548. /package/dist/lib/{components → lib/components}/TabNav/index.mjs +0 -0
  549. /package/dist/lib/{components → lib/components}/TabNav/index.mjs.map +0 -0
  550. /package/dist/lib/{components → lib/components}/Table/index.mjs +0 -0
  551. /package/dist/lib/{components → lib/components}/Table/index.mjs.map +0 -0
  552. /package/dist/lib/{components → lib/components}/Tabs/index.mjs +0 -0
  553. /package/dist/lib/{components → lib/components}/Tabs/index.mjs.map +0 -0
  554. /package/dist/lib/{components → lib/components}/TextArea/index.mjs +0 -0
  555. /package/dist/lib/{components → lib/components}/TextArea/index.mjs.map +0 -0
  556. /package/dist/lib/{components → lib/components}/TextField/index.mjs +0 -0
  557. /package/dist/lib/{components → lib/components}/TextField/index.mjs.map +0 -0
  558. /package/dist/lib/{components → lib/components}/Toast/ToastActionButton.mjs +0 -0
  559. /package/dist/lib/{components → lib/components}/Toast/ToastActionButton.mjs.map +0 -0
  560. /package/dist/lib/{components → lib/components}/Toast/ToastDescription.mjs +0 -0
  561. /package/dist/lib/{components → lib/components}/Toast/ToastDescription.mjs.map +0 -0
  562. /package/dist/lib/{components → lib/components}/Toast/ToastRoot.mjs +0 -0
  563. /package/dist/lib/{components → lib/components}/Toast/ToastRoot.mjs.map +0 -0
  564. /package/dist/lib/{components → lib/components}/Toast/ToastTitle.mjs +0 -0
  565. /package/dist/lib/{components → lib/components}/Toast/ToastTitle.mjs.map +0 -0
  566. /package/dist/lib/{components → lib/components}/Toast/index.mjs +0 -0
  567. /package/dist/lib/{components → lib/components}/Toggle/ToggleWithText.mjs +0 -0
  568. /package/dist/lib/{components → lib/components}/Toggle/ToggleWithText.mjs.map +0 -0
  569. /package/dist/lib/{components → lib/components}/Toggle/index.mjs +0 -0
  570. /package/dist/lib/{components → lib/components}/Toggle/index.mjs.map +0 -0
  571. /package/dist/lib/{components → lib/components}/ToggleGroup/ToggleGroupItem.mjs +0 -0
  572. /package/dist/lib/{components → lib/components}/ToggleGroup/ToggleGroupItem.mjs.map +0 -0
  573. /package/dist/lib/{components → lib/components}/ToggleGroup/ToggleGroupRoot.mjs +0 -0
  574. /package/dist/lib/{components → lib/components}/ToggleGroup/ToggleGroupRoot.mjs.map +0 -0
  575. /package/dist/lib/{components → lib/components}/ToggleGroup/index.mjs +0 -0
  576. /package/dist/lib/{components → lib/components}/ToggleSwitch/index.mjs +0 -0
  577. /package/dist/lib/{components → lib/components}/ToggleSwitch/index.mjs.map +0 -0
  578. /package/dist/lib/{components → lib/components}/Tooltip/index.mjs +0 -0
  579. /package/dist/lib/{components → lib/components}/Tooltip/index.mjs.map +0 -0
  580. /package/dist/lib/{constants.mjs → lib/constants.mjs} +0 -0
  581. /package/dist/lib/{index.mjs → lib/index.mjs} +0 -0
  582. /package/dist/lib/{theme → lib/theme}/ThemeProvider.mjs +0 -0
  583. /package/dist/lib/{theme → lib/theme}/ThemeProvider.mjs.map +0 -0
  584. /package/dist/lib/{utils → lib/utils}/useDarkMode.mjs +0 -0
  585. /package/dist/lib/{utils → lib/utils}/useDarkMode.mjs.map +0 -0
  586. /package/dist/lib/{utils → lib/utils}/utils.mjs +0 -0
@@ -0,0 +1,1246 @@
1
+ "use strict";
2
+ /**
3
+ * TinyMCE version 6.8.5 (TBD)
4
+ */
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ (function () {
17
+ 'use strict';
18
+ var global$5 = tinymce.util.Tools.resolve('tinymce.PluginManager');
19
+ var hasProto = function (v, constructor, predicate) {
20
+ var _a;
21
+ if (predicate(v, constructor.prototype)) {
22
+ return true;
23
+ }
24
+ else {
25
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
26
+ }
27
+ };
28
+ var typeOf = function (x) {
29
+ var t = typeof x;
30
+ if (x === null) {
31
+ return 'null';
32
+ }
33
+ else if (t === 'object' && Array.isArray(x)) {
34
+ return 'array';
35
+ }
36
+ else if (t === 'object' && hasProto(x, String, function (o, proto) { return proto.isPrototypeOf(o); })) {
37
+ return 'string';
38
+ }
39
+ else {
40
+ return t;
41
+ }
42
+ };
43
+ var isType = function (type) { return function (value) { return typeOf(value) === type; }; };
44
+ var isSimpleType = function (type) { return function (value) { return typeof value === type; }; };
45
+ var eq = function (t) { return function (a) { return t === a; }; };
46
+ var isString = isType('string');
47
+ var isObject = isType('object');
48
+ var isArray = isType('array');
49
+ var isNull = eq(null);
50
+ var isBoolean = isSimpleType('boolean');
51
+ var isNullable = function (a) { return a === null || a === undefined; };
52
+ var isNonNullable = function (a) { return !isNullable(a); };
53
+ var isFunction = isSimpleType('function');
54
+ var isArrayOf = function (value, pred) {
55
+ if (isArray(value)) {
56
+ for (var i = 0, len = value.length; i < len; ++i) {
57
+ if (!pred(value[i])) {
58
+ return false;
59
+ }
60
+ }
61
+ return true;
62
+ }
63
+ return false;
64
+ };
65
+ var noop = function () {
66
+ };
67
+ var constant = function (value) {
68
+ return function () {
69
+ return value;
70
+ };
71
+ };
72
+ var tripleEquals = function (a, b) {
73
+ return a === b;
74
+ };
75
+ var Optional = /** @class */ (function () {
76
+ function Optional(tag, value) {
77
+ this.tag = tag;
78
+ this.value = value;
79
+ }
80
+ Optional.some = function (value) {
81
+ return new Optional(true, value);
82
+ };
83
+ Optional.none = function () {
84
+ return Optional.singletonNone;
85
+ };
86
+ Optional.prototype.fold = function (onNone, onSome) {
87
+ if (this.tag) {
88
+ return onSome(this.value);
89
+ }
90
+ else {
91
+ return onNone();
92
+ }
93
+ };
94
+ Optional.prototype.isSome = function () {
95
+ return this.tag;
96
+ };
97
+ Optional.prototype.isNone = function () {
98
+ return !this.tag;
99
+ };
100
+ Optional.prototype.map = function (mapper) {
101
+ if (this.tag) {
102
+ return Optional.some(mapper(this.value));
103
+ }
104
+ else {
105
+ return Optional.none();
106
+ }
107
+ };
108
+ Optional.prototype.bind = function (binder) {
109
+ if (this.tag) {
110
+ return binder(this.value);
111
+ }
112
+ else {
113
+ return Optional.none();
114
+ }
115
+ };
116
+ Optional.prototype.exists = function (predicate) {
117
+ return this.tag && predicate(this.value);
118
+ };
119
+ Optional.prototype.forall = function (predicate) {
120
+ return !this.tag || predicate(this.value);
121
+ };
122
+ Optional.prototype.filter = function (predicate) {
123
+ if (!this.tag || predicate(this.value)) {
124
+ return this;
125
+ }
126
+ else {
127
+ return Optional.none();
128
+ }
129
+ };
130
+ Optional.prototype.getOr = function (replacement) {
131
+ return this.tag ? this.value : replacement;
132
+ };
133
+ Optional.prototype.or = function (replacement) {
134
+ return this.tag ? this : replacement;
135
+ };
136
+ Optional.prototype.getOrThunk = function (thunk) {
137
+ return this.tag ? this.value : thunk();
138
+ };
139
+ Optional.prototype.orThunk = function (thunk) {
140
+ return this.tag ? this : thunk();
141
+ };
142
+ Optional.prototype.getOrDie = function (message) {
143
+ if (!this.tag) {
144
+ throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
145
+ }
146
+ else {
147
+ return this.value;
148
+ }
149
+ };
150
+ Optional.from = function (value) {
151
+ return isNonNullable(value) ? Optional.some(value) : Optional.none();
152
+ };
153
+ Optional.prototype.getOrNull = function () {
154
+ return this.tag ? this.value : null;
155
+ };
156
+ Optional.prototype.getOrUndefined = function () {
157
+ return this.value;
158
+ };
159
+ Optional.prototype.each = function (worker) {
160
+ if (this.tag) {
161
+ worker(this.value);
162
+ }
163
+ };
164
+ Optional.prototype.toArray = function () {
165
+ return this.tag ? [this.value] : [];
166
+ };
167
+ Optional.prototype.toString = function () {
168
+ return this.tag ? "some(".concat(this.value, ")") : 'none()';
169
+ };
170
+ return Optional;
171
+ }());
172
+ Optional.singletonNone = new Optional(false);
173
+ var nativeIndexOf = Array.prototype.indexOf;
174
+ var nativePush = Array.prototype.push;
175
+ var rawIndexOf = function (ts, t) { return nativeIndexOf.call(ts, t); };
176
+ var contains = function (xs, x) { return rawIndexOf(xs, x) > -1; };
177
+ var map = function (xs, f) {
178
+ var len = xs.length;
179
+ var r = new Array(len);
180
+ for (var i = 0; i < len; i++) {
181
+ var x = xs[i];
182
+ r[i] = f(x, i);
183
+ }
184
+ return r;
185
+ };
186
+ var each$1 = function (xs, f) {
187
+ for (var i = 0, len = xs.length; i < len; i++) {
188
+ var x = xs[i];
189
+ f(x, i);
190
+ }
191
+ };
192
+ var foldl = function (xs, f, acc) {
193
+ each$1(xs, function (x, i) {
194
+ acc = f(acc, x, i);
195
+ });
196
+ return acc;
197
+ };
198
+ var flatten = function (xs) {
199
+ var r = [];
200
+ for (var i = 0, len = xs.length; i < len; ++i) {
201
+ if (!isArray(xs[i])) {
202
+ throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
203
+ }
204
+ nativePush.apply(r, xs[i]);
205
+ }
206
+ return r;
207
+ };
208
+ var bind = function (xs, f) { return flatten(map(xs, f)); };
209
+ var findMap = function (arr, f) {
210
+ for (var i = 0; i < arr.length; i++) {
211
+ var r = f(arr[i], i);
212
+ if (r.isSome()) {
213
+ return r;
214
+ }
215
+ }
216
+ return Optional.none();
217
+ };
218
+ var is = function (lhs, rhs, comparator) {
219
+ if (comparator === void 0) { comparator = tripleEquals; }
220
+ return lhs.exists(function (left) { return comparator(left, rhs); });
221
+ };
222
+ var cat = function (arr) {
223
+ var r = [];
224
+ var push = function (x) {
225
+ r.push(x);
226
+ };
227
+ for (var i = 0; i < arr.length; i++) {
228
+ arr[i].each(push);
229
+ }
230
+ return r;
231
+ };
232
+ var someIf = function (b, a) { return b ? Optional.some(a) : Optional.none(); };
233
+ var option = function (name) { return function (editor) { return editor.options.get(name); }; };
234
+ var register$1 = function (editor) {
235
+ var registerOption = editor.options.register;
236
+ registerOption('link_assume_external_targets', {
237
+ processor: function (value) {
238
+ var valid = isString(value) || isBoolean(value);
239
+ if (valid) {
240
+ if (value === true) {
241
+ return {
242
+ value: 1,
243
+ valid: valid
244
+ };
245
+ }
246
+ else if (value === 'http' || value === 'https') {
247
+ return {
248
+ value: value,
249
+ valid: valid
250
+ };
251
+ }
252
+ else {
253
+ return {
254
+ value: 0,
255
+ valid: valid
256
+ };
257
+ }
258
+ }
259
+ else {
260
+ return {
261
+ valid: false,
262
+ message: 'Must be a string or a boolean.'
263
+ };
264
+ }
265
+ },
266
+ default: false
267
+ });
268
+ registerOption('link_context_toolbar', {
269
+ processor: 'boolean',
270
+ default: false
271
+ });
272
+ registerOption('link_list', { processor: function (value) { return isString(value) || isFunction(value) || isArrayOf(value, isObject); } });
273
+ registerOption('link_default_target', { processor: 'string' });
274
+ registerOption('link_default_protocol', {
275
+ processor: 'string',
276
+ default: 'https'
277
+ });
278
+ registerOption('link_target_list', {
279
+ processor: function (value) { return isBoolean(value) || isArrayOf(value, isObject); },
280
+ default: true
281
+ });
282
+ registerOption('link_rel_list', {
283
+ processor: 'object[]',
284
+ default: []
285
+ });
286
+ registerOption('link_class_list', {
287
+ processor: 'object[]',
288
+ default: []
289
+ });
290
+ registerOption('link_title', {
291
+ processor: 'boolean',
292
+ default: true
293
+ });
294
+ registerOption('allow_unsafe_link_target', {
295
+ processor: 'boolean',
296
+ default: false
297
+ });
298
+ registerOption('link_quicklink', {
299
+ processor: 'boolean',
300
+ default: false
301
+ });
302
+ };
303
+ var assumeExternalTargets = option('link_assume_external_targets');
304
+ var hasContextToolbar = option('link_context_toolbar');
305
+ var getLinkList = option('link_list');
306
+ var getDefaultLinkTarget = option('link_default_target');
307
+ var getDefaultLinkProtocol = option('link_default_protocol');
308
+ var getTargetList = option('link_target_list');
309
+ var getRelList = option('link_rel_list');
310
+ var getLinkClassList = option('link_class_list');
311
+ var shouldShowLinkTitle = option('link_title');
312
+ var allowUnsafeLinkTarget = option('allow_unsafe_link_target');
313
+ var useQuickLink = option('link_quicklink');
314
+ var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
315
+ var getValue = function (item) { return isString(item.value) ? item.value : ''; };
316
+ var getText = function (item) {
317
+ if (isString(item.text)) {
318
+ return item.text;
319
+ }
320
+ else if (isString(item.title)) {
321
+ return item.title;
322
+ }
323
+ else {
324
+ return '';
325
+ }
326
+ };
327
+ var sanitizeList = function (list, extractValue) {
328
+ var out = [];
329
+ global$4.each(list, function (item) {
330
+ var text = getText(item);
331
+ if (item.menu !== undefined) {
332
+ var items = sanitizeList(item.menu, extractValue);
333
+ out.push({
334
+ text: text,
335
+ items: items
336
+ });
337
+ }
338
+ else {
339
+ var value = extractValue(item);
340
+ out.push({
341
+ text: text,
342
+ value: value
343
+ });
344
+ }
345
+ });
346
+ return out;
347
+ };
348
+ var sanitizeWith = function (extracter) {
349
+ if (extracter === void 0) { extracter = getValue; }
350
+ return function (list) { return Optional.from(list).map(function (list) { return sanitizeList(list, extracter); }); };
351
+ };
352
+ var sanitize = function (list) { return sanitizeWith(getValue)(list); };
353
+ var createUi = function (name, label) { return function (items) { return ({
354
+ name: name,
355
+ type: 'listbox',
356
+ label: label,
357
+ items: items
358
+ }); }; };
359
+ var ListOptions = {
360
+ sanitize: sanitize,
361
+ sanitizeWith: sanitizeWith,
362
+ createUi: createUi,
363
+ getValue: getValue
364
+ };
365
+ var keys = Object.keys;
366
+ var hasOwnProperty = Object.hasOwnProperty;
367
+ var each = function (obj, f) {
368
+ var props = keys(obj);
369
+ for (var k = 0, len = props.length; k < len; k++) {
370
+ var i = props[k];
371
+ var x = obj[i];
372
+ f(x, i);
373
+ }
374
+ };
375
+ var objAcc = function (r) { return function (x, i) {
376
+ r[i] = x;
377
+ }; };
378
+ var internalFilter = function (obj, pred, onTrue, onFalse) {
379
+ each(obj, function (x, i) {
380
+ (pred(x, i) ? onTrue : onFalse)(x, i);
381
+ });
382
+ };
383
+ var filter = function (obj, pred) {
384
+ var t = {};
385
+ internalFilter(obj, pred, objAcc(t), noop);
386
+ return t;
387
+ };
388
+ var has = function (obj, key) { return hasOwnProperty.call(obj, key); };
389
+ var hasNonNullableKey = function (obj, key) { return has(obj, key) && obj[key] !== undefined && obj[key] !== null; };
390
+ var global$3 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
391
+ var global$2 = tinymce.util.Tools.resolve('tinymce.util.URI');
392
+ var isAnchor = function (elm) { return isNonNullable(elm) && elm.nodeName.toLowerCase() === 'a'; };
393
+ var isLink = function (elm) { return isAnchor(elm) && !!getHref(elm); };
394
+ var collectNodesInRange = function (rng, predicate) {
395
+ if (rng.collapsed) {
396
+ return [];
397
+ }
398
+ else {
399
+ var contents = rng.cloneContents();
400
+ var firstChild = contents.firstChild;
401
+ var walker = new global$3(firstChild, contents);
402
+ var elements = [];
403
+ var current = firstChild;
404
+ do {
405
+ if (predicate(current)) {
406
+ elements.push(current);
407
+ }
408
+ } while (current = walker.next());
409
+ return elements;
410
+ }
411
+ };
412
+ var hasProtocol = function (url) { return /^\w+:/i.test(url); };
413
+ var getHref = function (elm) {
414
+ var _a, _b;
415
+ return (_b = (_a = elm.getAttribute('data-mce-href')) !== null && _a !== void 0 ? _a : elm.getAttribute('href')) !== null && _b !== void 0 ? _b : '';
416
+ };
417
+ var applyRelTargetRules = function (rel, isUnsafe) {
418
+ var rules = ['noopener'];
419
+ var rels = rel ? rel.split(/\s+/) : [];
420
+ var toString = function (rels) { return global$4.trim(rels.sort().join(' ')); };
421
+ var addTargetRules = function (rels) {
422
+ rels = removeTargetRules(rels);
423
+ return rels.length > 0 ? rels.concat(rules) : rules;
424
+ };
425
+ var removeTargetRules = function (rels) { return rels.filter(function (val) { return global$4.inArray(rules, val) === -1; }); };
426
+ var newRels = isUnsafe ? addTargetRules(rels) : removeTargetRules(rels);
427
+ return newRels.length > 0 ? toString(newRels) : '';
428
+ };
429
+ var trimCaretContainers = function (text) { return text.replace(/\uFEFF/g, ''); };
430
+ var getAnchorElement = function (editor, selectedElm) {
431
+ selectedElm = selectedElm || getLinksInSelection(editor.selection.getRng())[0] || editor.selection.getNode();
432
+ if (isImageFigure(selectedElm)) {
433
+ return Optional.from(editor.dom.select('a[href]', selectedElm)[0]);
434
+ }
435
+ else {
436
+ return Optional.from(editor.dom.getParent(selectedElm, 'a[href]'));
437
+ }
438
+ };
439
+ var isInAnchor = function (editor, selectedElm) { return getAnchorElement(editor, selectedElm).isSome(); };
440
+ var getAnchorText = function (selection, anchorElm) {
441
+ var text = anchorElm.fold(function () { return selection.getContent({ format: 'text' }); }, function (anchorElm) { return anchorElm.innerText || anchorElm.textContent || ''; });
442
+ return trimCaretContainers(text);
443
+ };
444
+ var getLinksInSelection = function (rng) { return collectNodesInRange(rng, isLink); };
445
+ var getLinks$1 = function (elements) { return global$4.grep(elements, isLink); };
446
+ var hasLinks = function (elements) { return getLinks$1(elements).length > 0; };
447
+ var hasLinksInSelection = function (rng) { return getLinksInSelection(rng).length > 0; };
448
+ var isOnlyTextSelected = function (editor) {
449
+ var inlineTextElements = editor.schema.getTextInlineElements();
450
+ var isElement = function (elm) { return elm.nodeType === 1 && !isAnchor(elm) && !has(inlineTextElements, elm.nodeName.toLowerCase()); };
451
+ var isInBlockAnchor = getAnchorElement(editor).exists(function (anchor) { return anchor.hasAttribute('data-mce-block'); });
452
+ if (isInBlockAnchor) {
453
+ return false;
454
+ }
455
+ var rng = editor.selection.getRng();
456
+ if (!rng.collapsed) {
457
+ var elements = collectNodesInRange(rng, isElement);
458
+ return elements.length === 0;
459
+ }
460
+ else {
461
+ return true;
462
+ }
463
+ };
464
+ var isImageFigure = function (elm) { return isNonNullable(elm) && elm.nodeName === 'FIGURE' && /\bimage\b/i.test(elm.className); };
465
+ var getLinkAttrs = function (data) {
466
+ var attrs = [
467
+ 'title',
468
+ 'rel',
469
+ 'class',
470
+ 'target'
471
+ ];
472
+ return foldl(attrs, function (acc, key) {
473
+ data[key].each(function (value) {
474
+ acc[key] = value.length > 0 ? value : null;
475
+ });
476
+ return acc;
477
+ }, { href: data.href });
478
+ };
479
+ var handleExternalTargets = function (href, assumeExternalTargets) {
480
+ if ((assumeExternalTargets === 'http' || assumeExternalTargets === 'https') && !hasProtocol(href)) {
481
+ return assumeExternalTargets + '://' + href;
482
+ }
483
+ return href;
484
+ };
485
+ var applyLinkOverrides = function (editor, linkAttrs) {
486
+ var newLinkAttrs = __assign({}, linkAttrs);
487
+ if (getRelList(editor).length === 0 && !allowUnsafeLinkTarget(editor)) {
488
+ var newRel = applyRelTargetRules(newLinkAttrs.rel, newLinkAttrs.target === '_blank');
489
+ newLinkAttrs.rel = newRel ? newRel : null;
490
+ }
491
+ if (Optional.from(newLinkAttrs.target).isNone() && getTargetList(editor) === false) {
492
+ newLinkAttrs.target = getDefaultLinkTarget(editor);
493
+ }
494
+ newLinkAttrs.href = handleExternalTargets(newLinkAttrs.href, assumeExternalTargets(editor));
495
+ return newLinkAttrs;
496
+ };
497
+ var updateLink = function (editor, anchorElm, text, linkAttrs) {
498
+ text.each(function (text) {
499
+ if (has(anchorElm, 'innerText')) {
500
+ anchorElm.innerText = text;
501
+ }
502
+ else {
503
+ anchorElm.textContent = text;
504
+ }
505
+ });
506
+ editor.dom.setAttribs(anchorElm, linkAttrs);
507
+ editor.selection.select(anchorElm);
508
+ };
509
+ var createLink = function (editor, selectedElm, text, linkAttrs) {
510
+ var dom = editor.dom;
511
+ if (isImageFigure(selectedElm)) {
512
+ linkImageFigure(dom, selectedElm, linkAttrs);
513
+ }
514
+ else {
515
+ text.fold(function () {
516
+ editor.execCommand('mceInsertLink', false, linkAttrs);
517
+ }, function (text) {
518
+ editor.insertContent(dom.createHTML('a', linkAttrs, dom.encode(text)));
519
+ });
520
+ }
521
+ };
522
+ var linkDomMutation = function (editor, attachState, data) {
523
+ var selectedElm = editor.selection.getNode();
524
+ var anchorElm = getAnchorElement(editor, selectedElm);
525
+ var linkAttrs = applyLinkOverrides(editor, getLinkAttrs(data));
526
+ editor.undoManager.transact(function () {
527
+ if (data.href === attachState.href) {
528
+ attachState.attach();
529
+ }
530
+ anchorElm.fold(function () {
531
+ createLink(editor, selectedElm, data.text, linkAttrs);
532
+ }, function (elm) {
533
+ editor.focus();
534
+ updateLink(editor, elm, data.text, linkAttrs);
535
+ });
536
+ });
537
+ };
538
+ var unlinkSelection = function (editor) {
539
+ var dom = editor.dom, selection = editor.selection;
540
+ var bookmark = selection.getBookmark();
541
+ var rng = selection.getRng().cloneRange();
542
+ var startAnchorElm = dom.getParent(rng.startContainer, 'a[href]', editor.getBody());
543
+ var endAnchorElm = dom.getParent(rng.endContainer, 'a[href]', editor.getBody());
544
+ if (startAnchorElm) {
545
+ rng.setStartBefore(startAnchorElm);
546
+ }
547
+ if (endAnchorElm) {
548
+ rng.setEndAfter(endAnchorElm);
549
+ }
550
+ selection.setRng(rng);
551
+ editor.execCommand('unlink');
552
+ selection.moveToBookmark(bookmark);
553
+ };
554
+ var unlinkDomMutation = function (editor) {
555
+ editor.undoManager.transact(function () {
556
+ var node = editor.selection.getNode();
557
+ if (isImageFigure(node)) {
558
+ unlinkImageFigure(editor, node);
559
+ }
560
+ else {
561
+ unlinkSelection(editor);
562
+ }
563
+ editor.focus();
564
+ });
565
+ };
566
+ var unwrapOptions = function (data) {
567
+ var cls = data.class, href = data.href, rel = data.rel, target = data.target, text = data.text, title = data.title;
568
+ return filter({
569
+ class: cls.getOrNull(),
570
+ href: href,
571
+ rel: rel.getOrNull(),
572
+ target: target.getOrNull(),
573
+ text: text.getOrNull(),
574
+ title: title.getOrNull()
575
+ }, function (v, _k) { return isNull(v) === false; });
576
+ };
577
+ var sanitizeData = function (editor, data) {
578
+ var getOption = editor.options.get;
579
+ var uriOptions = {
580
+ allow_html_data_urls: getOption('allow_html_data_urls'),
581
+ allow_script_urls: getOption('allow_script_urls'),
582
+ allow_svg_data_urls: getOption('allow_svg_data_urls')
583
+ };
584
+ var href = data.href;
585
+ return __assign(__assign({}, data), { href: global$2.isDomSafe(href, 'a', uriOptions) ? href : '' });
586
+ };
587
+ var link = function (editor, attachState, data) {
588
+ var sanitizedData = sanitizeData(editor, data);
589
+ editor.hasPlugin('rtc', true) ? editor.execCommand('createlink', false, unwrapOptions(sanitizedData)) : linkDomMutation(editor, attachState, sanitizedData);
590
+ };
591
+ var unlink = function (editor) {
592
+ editor.hasPlugin('rtc', true) ? editor.execCommand('unlink') : unlinkDomMutation(editor);
593
+ };
594
+ var unlinkImageFigure = function (editor, fig) {
595
+ var _a;
596
+ var img = editor.dom.select('img', fig)[0];
597
+ if (img) {
598
+ var a = editor.dom.getParents(img, 'a[href]', fig)[0];
599
+ if (a) {
600
+ (_a = a.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(img, a);
601
+ editor.dom.remove(a);
602
+ }
603
+ }
604
+ };
605
+ var linkImageFigure = function (dom, fig, attrs) {
606
+ var _a;
607
+ var img = dom.select('img', fig)[0];
608
+ if (img) {
609
+ var a = dom.create('a', attrs);
610
+ (_a = img.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(a, img);
611
+ a.appendChild(img);
612
+ }
613
+ };
614
+ var isListGroup = function (item) { return hasNonNullableKey(item, 'items'); };
615
+ var findTextByValue = function (value, catalog) { return findMap(catalog, function (item) {
616
+ if (isListGroup(item)) {
617
+ return findTextByValue(value, item.items);
618
+ }
619
+ else {
620
+ return someIf(item.value === value, item);
621
+ }
622
+ }); };
623
+ var getDelta = function (persistentText, fieldName, catalog, data) {
624
+ var value = data[fieldName];
625
+ var hasPersistentText = persistentText.length > 0;
626
+ return value !== undefined ? findTextByValue(value, catalog).map(function (i) { return ({
627
+ url: {
628
+ value: i.value,
629
+ meta: {
630
+ text: hasPersistentText ? persistentText : i.text,
631
+ attach: noop
632
+ }
633
+ },
634
+ text: hasPersistentText ? persistentText : i.text
635
+ }); }) : Optional.none();
636
+ };
637
+ var findCatalog = function (catalogs, fieldName) {
638
+ if (fieldName === 'link') {
639
+ return catalogs.link;
640
+ }
641
+ else if (fieldName === 'anchor') {
642
+ return catalogs.anchor;
643
+ }
644
+ else {
645
+ return Optional.none();
646
+ }
647
+ };
648
+ var init = function (initialData, linkCatalog) {
649
+ var persistentData = {
650
+ text: initialData.text,
651
+ title: initialData.title
652
+ };
653
+ var getTitleFromUrlChange = function (url) {
654
+ var _a;
655
+ return someIf(persistentData.title.length <= 0, Optional.from((_a = url.meta) === null || _a === void 0 ? void 0 : _a.title).getOr(''));
656
+ };
657
+ var getTextFromUrlChange = function (url) {
658
+ var _a;
659
+ return someIf(persistentData.text.length <= 0, Optional.from((_a = url.meta) === null || _a === void 0 ? void 0 : _a.text).getOr(url.value));
660
+ };
661
+ var onUrlChange = function (data) {
662
+ var text = getTextFromUrlChange(data.url);
663
+ var title = getTitleFromUrlChange(data.url);
664
+ if (text.isSome() || title.isSome()) {
665
+ return Optional.some(__assign(__assign({}, text.map(function (text) { return ({ text: text }); }).getOr({})), title.map(function (title) { return ({ title: title }); }).getOr({})));
666
+ }
667
+ else {
668
+ return Optional.none();
669
+ }
670
+ };
671
+ var onCatalogChange = function (data, change) {
672
+ var catalog = findCatalog(linkCatalog, change).getOr([]);
673
+ return getDelta(persistentData.text, change, catalog, data);
674
+ };
675
+ var onChange = function (getData, change) {
676
+ var name = change.name;
677
+ if (name === 'url') {
678
+ return onUrlChange(getData());
679
+ }
680
+ else if (contains([
681
+ 'anchor',
682
+ 'link'
683
+ ], name)) {
684
+ return onCatalogChange(getData(), name);
685
+ }
686
+ else if (name === 'text' || name === 'title') {
687
+ persistentData[name] = getData()[name];
688
+ return Optional.none();
689
+ }
690
+ else {
691
+ return Optional.none();
692
+ }
693
+ };
694
+ return { onChange: onChange };
695
+ };
696
+ var DialogChanges = {
697
+ init: init,
698
+ getDelta: getDelta
699
+ };
700
+ var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay');
701
+ var delayedConfirm = function (editor, message, callback) {
702
+ var rng = editor.selection.getRng();
703
+ global$1.setEditorTimeout(editor, function () {
704
+ editor.windowManager.confirm(message, function (state) {
705
+ editor.selection.setRng(rng);
706
+ callback(state);
707
+ });
708
+ });
709
+ };
710
+ var tryEmailTransform = function (data) {
711
+ var url = data.href;
712
+ var suggestMailTo = url.indexOf('@') > 0 && url.indexOf('/') === -1 && url.indexOf('mailto:') === -1;
713
+ return suggestMailTo ? Optional.some({
714
+ message: 'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?',
715
+ preprocess: function (oldData) { return (__assign(__assign({}, oldData), { href: 'mailto:' + url })); }
716
+ }) : Optional.none();
717
+ };
718
+ var tryProtocolTransform = function (assumeExternalTargets, defaultLinkProtocol) { return function (data) {
719
+ var url = data.href;
720
+ var suggestProtocol = assumeExternalTargets === 1 && !hasProtocol(url) || assumeExternalTargets === 0 && /^\s*www(\.|\d\.)/i.test(url);
721
+ return suggestProtocol ? Optional.some({
722
+ message: "The URL you entered seems to be an external link. Do you want to add the required ".concat(defaultLinkProtocol, ":// prefix?"),
723
+ preprocess: function (oldData) { return (__assign(__assign({}, oldData), { href: defaultLinkProtocol + '://' + url })); }
724
+ }) : Optional.none();
725
+ }; };
726
+ var preprocess = function (editor, data) { return findMap([
727
+ tryEmailTransform,
728
+ tryProtocolTransform(assumeExternalTargets(editor), getDefaultLinkProtocol(editor))
729
+ ], function (f) { return f(data); }).fold(function () { return Promise.resolve(data); }, function (transform) { return new Promise(function (callback) {
730
+ delayedConfirm(editor, transform.message, function (state) {
731
+ callback(state ? transform.preprocess(data) : data);
732
+ });
733
+ }); }); };
734
+ var DialogConfirms = { preprocess: preprocess };
735
+ var getAnchors = function (editor) {
736
+ var anchorNodes = editor.dom.select('a:not([href])');
737
+ var anchors = bind(anchorNodes, function (anchor) {
738
+ var id = anchor.name || anchor.id;
739
+ return id ? [{
740
+ text: id,
741
+ value: '#' + id
742
+ }] : [];
743
+ });
744
+ return anchors.length > 0 ? Optional.some([{
745
+ text: 'None',
746
+ value: ''
747
+ }].concat(anchors)) : Optional.none();
748
+ };
749
+ var AnchorListOptions = { getAnchors: getAnchors };
750
+ var getClasses = function (editor) {
751
+ var list = getLinkClassList(editor);
752
+ if (list.length > 0) {
753
+ return ListOptions.sanitize(list);
754
+ }
755
+ return Optional.none();
756
+ };
757
+ var ClassListOptions = { getClasses: getClasses };
758
+ var parseJson = function (text) {
759
+ try {
760
+ return Optional.some(JSON.parse(text));
761
+ }
762
+ catch (err) {
763
+ return Optional.none();
764
+ }
765
+ };
766
+ var getLinks = function (editor) {
767
+ var extractor = function (item) { return editor.convertURL(item.value || item.url || '', 'href'); };
768
+ var linkList = getLinkList(editor);
769
+ return new Promise(function (resolve) {
770
+ if (isString(linkList)) {
771
+ fetch(linkList).then(function (res) { return res.ok ? res.text().then(parseJson) : Promise.reject(); }).then(resolve, function () { return resolve(Optional.none()); });
772
+ }
773
+ else if (isFunction(linkList)) {
774
+ linkList(function (output) { return resolve(Optional.some(output)); });
775
+ }
776
+ else {
777
+ resolve(Optional.from(linkList));
778
+ }
779
+ }).then(function (optItems) { return optItems.bind(ListOptions.sanitizeWith(extractor)).map(function (items) {
780
+ if (items.length > 0) {
781
+ var noneItem = [{
782
+ text: 'None',
783
+ value: ''
784
+ }];
785
+ return noneItem.concat(items);
786
+ }
787
+ else {
788
+ return items;
789
+ }
790
+ }); });
791
+ };
792
+ var LinkListOptions = { getLinks: getLinks };
793
+ var getRels = function (editor, initialTarget) {
794
+ var list = getRelList(editor);
795
+ if (list.length > 0) {
796
+ var isTargetBlank_1 = is(initialTarget, '_blank');
797
+ var enforceSafe = allowUnsafeLinkTarget(editor) === false;
798
+ var safeRelExtractor = function (item) { return applyRelTargetRules(ListOptions.getValue(item), isTargetBlank_1); };
799
+ var sanitizer = enforceSafe ? ListOptions.sanitizeWith(safeRelExtractor) : ListOptions.sanitize;
800
+ return sanitizer(list);
801
+ }
802
+ return Optional.none();
803
+ };
804
+ var RelOptions = { getRels: getRels };
805
+ var fallbacks = [
806
+ {
807
+ text: 'Current window',
808
+ value: ''
809
+ },
810
+ {
811
+ text: 'New window',
812
+ value: '_blank'
813
+ }
814
+ ];
815
+ var getTargets = function (editor) {
816
+ var list = getTargetList(editor);
817
+ if (isArray(list)) {
818
+ return ListOptions.sanitize(list).orThunk(function () { return Optional.some(fallbacks); });
819
+ }
820
+ else if (list === false) {
821
+ return Optional.none();
822
+ }
823
+ return Optional.some(fallbacks);
824
+ };
825
+ var TargetOptions = { getTargets: getTargets };
826
+ var nonEmptyAttr = function (dom, elem, name) {
827
+ var val = dom.getAttrib(elem, name);
828
+ return val !== null && val.length > 0 ? Optional.some(val) : Optional.none();
829
+ };
830
+ var extractFromAnchor = function (editor, anchor) {
831
+ var dom = editor.dom;
832
+ var onlyText = isOnlyTextSelected(editor);
833
+ var text = onlyText ? Optional.some(getAnchorText(editor.selection, anchor)) : Optional.none();
834
+ var url = anchor.bind(function (anchorElm) { return Optional.from(dom.getAttrib(anchorElm, 'href')); });
835
+ var target = anchor.bind(function (anchorElm) { return Optional.from(dom.getAttrib(anchorElm, 'target')); });
836
+ var rel = anchor.bind(function (anchorElm) { return nonEmptyAttr(dom, anchorElm, 'rel'); });
837
+ var linkClass = anchor.bind(function (anchorElm) { return nonEmptyAttr(dom, anchorElm, 'class'); });
838
+ var title = anchor.bind(function (anchorElm) { return nonEmptyAttr(dom, anchorElm, 'title'); });
839
+ return {
840
+ url: url,
841
+ text: text,
842
+ title: title,
843
+ target: target,
844
+ rel: rel,
845
+ linkClass: linkClass
846
+ };
847
+ };
848
+ var collect = function (editor, linkNode) { return LinkListOptions.getLinks(editor).then(function (links) {
849
+ var anchor = extractFromAnchor(editor, linkNode);
850
+ return {
851
+ anchor: anchor,
852
+ catalogs: {
853
+ targets: TargetOptions.getTargets(editor),
854
+ rels: RelOptions.getRels(editor, anchor.target),
855
+ classes: ClassListOptions.getClasses(editor),
856
+ anchor: AnchorListOptions.getAnchors(editor),
857
+ link: links
858
+ },
859
+ optNode: linkNode,
860
+ flags: { titleEnabled: shouldShowLinkTitle(editor) }
861
+ };
862
+ }); };
863
+ var DialogInfo = { collect: collect };
864
+ var handleSubmit = function (editor, info) { return function (api) {
865
+ var data = api.getData();
866
+ if (!data.url.value) {
867
+ unlink(editor);
868
+ api.close();
869
+ return;
870
+ }
871
+ var getChangedValue = function (key) { return Optional.from(data[key]).filter(function (value) { return !is(info.anchor[key], value); }); };
872
+ var changedData = {
873
+ href: data.url.value,
874
+ text: getChangedValue('text'),
875
+ target: getChangedValue('target'),
876
+ rel: getChangedValue('rel'),
877
+ class: getChangedValue('linkClass'),
878
+ title: getChangedValue('title')
879
+ };
880
+ var attachState = {
881
+ href: data.url.value,
882
+ attach: data.url.meta !== undefined && data.url.meta.attach ? data.url.meta.attach : noop
883
+ };
884
+ DialogConfirms.preprocess(editor, changedData).then(function (pData) {
885
+ link(editor, attachState, pData);
886
+ });
887
+ api.close();
888
+ }; };
889
+ var collectData = function (editor) {
890
+ var anchorNode = getAnchorElement(editor);
891
+ return DialogInfo.collect(editor, anchorNode);
892
+ };
893
+ var getInitialData = function (info, defaultTarget) {
894
+ var anchor = info.anchor;
895
+ var url = anchor.url.getOr('');
896
+ return {
897
+ url: {
898
+ value: url,
899
+ meta: { original: { value: url } }
900
+ },
901
+ text: anchor.text.getOr(''),
902
+ title: anchor.title.getOr(''),
903
+ anchor: url,
904
+ link: url,
905
+ rel: anchor.rel.getOr(''),
906
+ target: anchor.target.or(defaultTarget).getOr(''),
907
+ linkClass: anchor.linkClass.getOr('')
908
+ };
909
+ };
910
+ var makeDialog = function (settings, onSubmit, editor) {
911
+ var urlInput = [{
912
+ name: 'url',
913
+ type: 'urlinput',
914
+ filetype: 'file',
915
+ label: 'URL',
916
+ picker_text: 'Browse links'
917
+ }];
918
+ var displayText = settings.anchor.text.map(function () { return ({
919
+ name: 'text',
920
+ type: 'input',
921
+ label: 'Text to display'
922
+ }); }).toArray();
923
+ var titleText = settings.flags.titleEnabled ? [{
924
+ name: 'title',
925
+ type: 'input',
926
+ label: 'Title'
927
+ }] : [];
928
+ var defaultTarget = Optional.from(getDefaultLinkTarget(editor));
929
+ var initialData = getInitialData(settings, defaultTarget);
930
+ var catalogs = settings.catalogs;
931
+ var dialogDelta = DialogChanges.init(initialData, catalogs);
932
+ var body = {
933
+ type: 'panel',
934
+ items: flatten([
935
+ urlInput,
936
+ displayText,
937
+ titleText,
938
+ cat([
939
+ catalogs.anchor.map(ListOptions.createUi('anchor', 'Anchors')),
940
+ catalogs.rels.map(ListOptions.createUi('rel', 'Rel')),
941
+ catalogs.targets.map(ListOptions.createUi('target', 'Open link in...')),
942
+ catalogs.link.map(ListOptions.createUi('link', 'Link list')),
943
+ catalogs.classes.map(ListOptions.createUi('linkClass', 'Class'))
944
+ ])
945
+ ])
946
+ };
947
+ return {
948
+ title: 'Insert/Edit Link',
949
+ size: 'normal',
950
+ body: body,
951
+ buttons: [
952
+ {
953
+ type: 'cancel',
954
+ name: 'cancel',
955
+ text: 'Cancel'
956
+ },
957
+ {
958
+ type: 'submit',
959
+ name: 'save',
960
+ text: 'Save',
961
+ primary: true
962
+ }
963
+ ],
964
+ initialData: initialData,
965
+ onChange: function (api, _c) {
966
+ var name = _c.name;
967
+ dialogDelta.onChange(api.getData, { name: name }).each(function (newData) {
968
+ api.setData(newData);
969
+ });
970
+ },
971
+ onSubmit: onSubmit
972
+ };
973
+ };
974
+ var open$1 = function (editor) {
975
+ var data = collectData(editor);
976
+ data.then(function (info) {
977
+ var onSubmit = handleSubmit(editor, info);
978
+ return makeDialog(info, onSubmit, editor);
979
+ }).then(function (spec) {
980
+ editor.windowManager.open(spec);
981
+ });
982
+ };
983
+ var register = function (editor) {
984
+ editor.addCommand('mceLink', function (_ui, value) {
985
+ if ((value === null || value === void 0 ? void 0 : value.dialog) === true || !useQuickLink(editor)) {
986
+ open$1(editor);
987
+ }
988
+ else {
989
+ editor.dispatch('contexttoolbar-show', { toolbarKey: 'quicklink' });
990
+ }
991
+ });
992
+ };
993
+ var global = tinymce.util.Tools.resolve('tinymce.util.VK');
994
+ var appendClickRemove = function (link, evt) {
995
+ document.body.appendChild(link);
996
+ link.dispatchEvent(evt);
997
+ document.body.removeChild(link);
998
+ };
999
+ var open = function (url) {
1000
+ var link = document.createElement('a');
1001
+ link.target = '_blank';
1002
+ link.href = url;
1003
+ link.rel = 'noreferrer noopener';
1004
+ var evt = document.createEvent('MouseEvents');
1005
+ evt.initMouseEvent('click', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
1006
+ appendClickRemove(link, evt);
1007
+ };
1008
+ var getLink = function (editor, elm) { return editor.dom.getParent(elm, 'a[href]'); };
1009
+ var getSelectedLink = function (editor) { return getLink(editor, editor.selection.getStart()); };
1010
+ var hasOnlyAltModifier = function (e) {
1011
+ return e.altKey === true && e.shiftKey === false && e.ctrlKey === false && e.metaKey === false;
1012
+ };
1013
+ var gotoLink = function (editor, a) {
1014
+ if (a) {
1015
+ var href = getHref(a);
1016
+ if (/^#/.test(href)) {
1017
+ var targetEl = editor.dom.select(href);
1018
+ if (targetEl.length) {
1019
+ editor.selection.scrollIntoView(targetEl[0], true);
1020
+ }
1021
+ }
1022
+ else {
1023
+ open(a.href);
1024
+ }
1025
+ }
1026
+ };
1027
+ var openDialog = function (editor) { return function () {
1028
+ editor.execCommand('mceLink', false, { dialog: true });
1029
+ }; };
1030
+ var gotoSelectedLink = function (editor) { return function () {
1031
+ gotoLink(editor, getSelectedLink(editor));
1032
+ }; };
1033
+ var setupGotoLinks = function (editor) {
1034
+ editor.on('click', function (e) {
1035
+ var link = getLink(editor, e.target);
1036
+ if (link && global.metaKeyPressed(e)) {
1037
+ e.preventDefault();
1038
+ gotoLink(editor, link);
1039
+ }
1040
+ });
1041
+ editor.on('keydown', function (e) {
1042
+ if (!e.isDefaultPrevented() && e.keyCode === 13 && hasOnlyAltModifier(e)) {
1043
+ var link_1 = getSelectedLink(editor);
1044
+ if (link_1) {
1045
+ e.preventDefault();
1046
+ gotoLink(editor, link_1);
1047
+ }
1048
+ }
1049
+ });
1050
+ };
1051
+ var toggleState = function (editor, toggler) {
1052
+ editor.on('NodeChange', toggler);
1053
+ return function () { return editor.off('NodeChange', toggler); };
1054
+ };
1055
+ var toggleLinkState = function (editor) { return function (api) {
1056
+ var updateState = function () {
1057
+ api.setActive(!editor.mode.isReadOnly() && isInAnchor(editor, editor.selection.getNode()));
1058
+ api.setEnabled(editor.selection.isEditable());
1059
+ };
1060
+ updateState();
1061
+ return toggleState(editor, updateState);
1062
+ }; };
1063
+ var toggleLinkMenuState = function (editor) { return function (api) {
1064
+ var updateState = function () {
1065
+ api.setEnabled(editor.selection.isEditable());
1066
+ };
1067
+ updateState();
1068
+ return toggleState(editor, updateState);
1069
+ }; };
1070
+ var hasExactlyOneLinkInSelection = function (editor) {
1071
+ var links = editor.selection.isCollapsed() ? getLinks$1(editor.dom.getParents(editor.selection.getStart())) : getLinksInSelection(editor.selection.getRng());
1072
+ return links.length === 1;
1073
+ };
1074
+ var toggleGotoLinkState = function (editor) { return function (api) {
1075
+ var updateState = function () { return api.setEnabled(hasExactlyOneLinkInSelection(editor)); };
1076
+ updateState();
1077
+ return toggleState(editor, updateState);
1078
+ }; };
1079
+ var toggleUnlinkState = function (editor) { return function (api) {
1080
+ var hasLinks$1 = function (parents) { return hasLinks(parents) || hasLinksInSelection(editor.selection.getRng()); };
1081
+ var parents = editor.dom.getParents(editor.selection.getStart());
1082
+ var updateEnabled = function (parents) {
1083
+ api.setEnabled(hasLinks$1(parents) && editor.selection.isEditable());
1084
+ };
1085
+ updateEnabled(parents);
1086
+ return toggleState(editor, function (e) { return updateEnabled(e.parents); });
1087
+ }; };
1088
+ var setup = function (editor) {
1089
+ editor.addShortcut('Meta+K', '', function () {
1090
+ editor.execCommand('mceLink');
1091
+ });
1092
+ };
1093
+ var setupButtons = function (editor) {
1094
+ editor.ui.registry.addToggleButton('link', {
1095
+ icon: 'link',
1096
+ tooltip: 'Insert/edit link',
1097
+ onAction: openDialog(editor),
1098
+ onSetup: toggleLinkState(editor)
1099
+ });
1100
+ editor.ui.registry.addButton('openlink', {
1101
+ icon: 'new-tab',
1102
+ tooltip: 'Open link',
1103
+ onAction: gotoSelectedLink(editor),
1104
+ onSetup: toggleGotoLinkState(editor)
1105
+ });
1106
+ editor.ui.registry.addButton('unlink', {
1107
+ icon: 'unlink',
1108
+ tooltip: 'Remove link',
1109
+ onAction: function () { return unlink(editor); },
1110
+ onSetup: toggleUnlinkState(editor)
1111
+ });
1112
+ };
1113
+ var setupMenuItems = function (editor) {
1114
+ editor.ui.registry.addMenuItem('openlink', {
1115
+ text: 'Open link',
1116
+ icon: 'new-tab',
1117
+ onAction: gotoSelectedLink(editor),
1118
+ onSetup: toggleGotoLinkState(editor)
1119
+ });
1120
+ editor.ui.registry.addMenuItem('link', {
1121
+ icon: 'link',
1122
+ text: 'Link...',
1123
+ shortcut: 'Meta+K',
1124
+ onSetup: toggleLinkMenuState(editor),
1125
+ onAction: openDialog(editor)
1126
+ });
1127
+ editor.ui.registry.addMenuItem('unlink', {
1128
+ icon: 'unlink',
1129
+ text: 'Remove link',
1130
+ onAction: function () { return unlink(editor); },
1131
+ onSetup: toggleUnlinkState(editor)
1132
+ });
1133
+ };
1134
+ var setupContextMenu = function (editor) {
1135
+ var inLink = 'link unlink openlink';
1136
+ var noLink = 'link';
1137
+ editor.ui.registry.addContextMenu('link', {
1138
+ update: function (element) {
1139
+ var isEditable = editor.dom.isEditable(element);
1140
+ if (!isEditable) {
1141
+ return '';
1142
+ }
1143
+ return hasLinks(editor.dom.getParents(element, 'a')) ? inLink : noLink;
1144
+ }
1145
+ });
1146
+ };
1147
+ var setupContextToolbars = function (editor) {
1148
+ var collapseSelectionToEnd = function (editor) {
1149
+ editor.selection.collapse(false);
1150
+ };
1151
+ var onSetupLink = function (buttonApi) {
1152
+ var node = editor.selection.getNode();
1153
+ buttonApi.setEnabled(isInAnchor(editor, node));
1154
+ return noop;
1155
+ };
1156
+ var getLinkText = function (value) {
1157
+ var anchor = getAnchorElement(editor);
1158
+ var onlyText = isOnlyTextSelected(editor);
1159
+ if (anchor.isNone() && onlyText) {
1160
+ var text = getAnchorText(editor.selection, anchor);
1161
+ return someIf(text.length === 0, value);
1162
+ }
1163
+ else {
1164
+ return Optional.none();
1165
+ }
1166
+ };
1167
+ editor.ui.registry.addContextForm('quicklink', {
1168
+ launch: {
1169
+ type: 'contextformtogglebutton',
1170
+ icon: 'link',
1171
+ tooltip: 'Link',
1172
+ onSetup: toggleLinkState(editor)
1173
+ },
1174
+ label: 'Link',
1175
+ predicate: function (node) { return hasContextToolbar(editor) && isInAnchor(editor, node); },
1176
+ initValue: function () {
1177
+ var elm = getAnchorElement(editor);
1178
+ return elm.fold(constant(''), getHref);
1179
+ },
1180
+ commands: [
1181
+ {
1182
+ type: 'contextformtogglebutton',
1183
+ icon: 'link',
1184
+ tooltip: 'Link',
1185
+ primary: true,
1186
+ onSetup: function (buttonApi) {
1187
+ var node = editor.selection.getNode();
1188
+ buttonApi.setActive(isInAnchor(editor, node));
1189
+ return toggleLinkState(editor)(buttonApi);
1190
+ },
1191
+ onAction: function (formApi) {
1192
+ var value = formApi.getValue();
1193
+ var text = getLinkText(value);
1194
+ var attachState = {
1195
+ href: value,
1196
+ attach: noop
1197
+ };
1198
+ link(editor, attachState, {
1199
+ href: value,
1200
+ text: text,
1201
+ title: Optional.none(),
1202
+ rel: Optional.none(),
1203
+ target: Optional.none(),
1204
+ class: Optional.none()
1205
+ });
1206
+ collapseSelectionToEnd(editor);
1207
+ formApi.hide();
1208
+ }
1209
+ },
1210
+ {
1211
+ type: 'contextformbutton',
1212
+ icon: 'unlink',
1213
+ tooltip: 'Remove link',
1214
+ onSetup: onSetupLink,
1215
+ onAction: function (formApi) {
1216
+ unlink(editor);
1217
+ formApi.hide();
1218
+ }
1219
+ },
1220
+ {
1221
+ type: 'contextformbutton',
1222
+ icon: 'new-tab',
1223
+ tooltip: 'Open link',
1224
+ onSetup: onSetupLink,
1225
+ onAction: function (formApi) {
1226
+ gotoSelectedLink(editor)();
1227
+ formApi.hide();
1228
+ }
1229
+ }
1230
+ ]
1231
+ });
1232
+ };
1233
+ var Plugin = function () {
1234
+ global$5.add('link', function (editor) {
1235
+ register$1(editor);
1236
+ setupButtons(editor);
1237
+ setupMenuItems(editor);
1238
+ setupContextMenu(editor);
1239
+ setupContextToolbars(editor);
1240
+ setupGotoLinks(editor);
1241
+ register(editor);
1242
+ setup(editor);
1243
+ });
1244
+ };
1245
+ Plugin();
1246
+ })();