@frontify/guideline-blocks-settings 0.33.3 → 0.33.5

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 (508) hide show
  1. package/dist/components/Attachments/AttachmentItem.es.js +174 -0
  2. package/dist/components/Attachments/AttachmentItem.es.js.map +1 -0
  3. package/dist/components/Attachments/Attachments.es.js +160 -0
  4. package/dist/components/Attachments/Attachments.es.js.map +1 -0
  5. package/dist/components/Attachments/AttachmentsButtonTrigger.es.js +29 -0
  6. package/dist/components/Attachments/AttachmentsButtonTrigger.es.js.map +1 -0
  7. package/dist/components/BlockInjectButton/BlockInjectButton.es.js +150 -0
  8. package/dist/components/BlockInjectButton/BlockInjectButton.es.js.map +1 -0
  9. package/dist/components/BlockItemWrapper/BlockItemWrapper.es.js +71 -0
  10. package/dist/components/BlockItemWrapper/BlockItemWrapper.es.js.map +1 -0
  11. package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.es.js +33 -0
  12. package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.es.js.map +1 -0
  13. package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.es.js +26 -0
  14. package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.es.js.map +1 -0
  15. package/dist/components/BlockItemWrapper/Toolbar/BaseToolbarButton.es.js +28 -0
  16. package/dist/components/BlockItemWrapper/Toolbar/BaseToolbarButton.es.js.map +1 -0
  17. package/dist/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.es.js +35 -0
  18. package/dist/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.es.js.map +1 -0
  19. package/dist/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.es.js +44 -0
  20. package/dist/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.es.js.map +1 -0
  21. package/dist/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.es.js +25 -0
  22. package/dist/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.es.js.map +1 -0
  23. package/dist/components/BlockItemWrapper/Toolbar/MenuToolbarButton/ToolbarFlyoutMenu.es.js +29 -0
  24. package/dist/components/BlockItemWrapper/Toolbar/MenuToolbarButton/ToolbarFlyoutMenu.es.js.map +1 -0
  25. package/dist/components/BlockItemWrapper/Toolbar/Toolbar.es.js +22 -0
  26. package/dist/components/BlockItemWrapper/Toolbar/Toolbar.es.js.map +1 -0
  27. package/dist/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.es.js +12 -0
  28. package/dist/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.es.js.map +1 -0
  29. package/dist/components/BlockItemWrapper/Toolbar/ToolbarButtonTooltip.es.js +20 -0
  30. package/dist/components/BlockItemWrapper/Toolbar/ToolbarButtonTooltip.es.js.map +1 -0
  31. package/dist/components/BlockItemWrapper/Toolbar/ToolbarSegment.es.js +6 -0
  32. package/dist/components/BlockItemWrapper/Toolbar/ToolbarSegment.es.js.map +1 -0
  33. package/dist/components/BlockItemWrapper/Toolbar/context/DragPreviewContext.es.js +11 -0
  34. package/dist/components/BlockItemWrapper/Toolbar/context/DragPreviewContext.es.js.map +1 -0
  35. package/dist/components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.es.js +18 -0
  36. package/dist/components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.es.js.map +1 -0
  37. package/dist/components/BlockItemWrapper/Toolbar/helpers.es.js +26 -0
  38. package/dist/components/BlockItemWrapper/Toolbar/helpers.es.js.map +1 -0
  39. package/dist/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.es.js +18 -0
  40. package/dist/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.es.js.map +1 -0
  41. package/dist/components/BlockItemWrapper/constants.es.js +6 -0
  42. package/dist/components/BlockItemWrapper/constants.es.js.map +1 -0
  43. package/dist/components/DownloadButton/DownloadButton.es.js +39 -0
  44. package/dist/components/DownloadButton/DownloadButton.es.js.map +1 -0
  45. package/dist/components/Link/LinkInput.es.js +63 -0
  46. package/dist/components/Link/LinkInput.es.js.map +1 -0
  47. package/dist/components/Link/LinkSelector/DocumentLink.es.js +68 -0
  48. package/dist/components/Link/LinkSelector/DocumentLink.es.js.map +1 -0
  49. package/dist/components/Link/LinkSelector/DocumentLinks.es.js +60 -0
  50. package/dist/components/Link/LinkSelector/DocumentLinks.es.js.map +1 -0
  51. package/dist/components/Link/LinkSelector/LinkSelector.es.js +78 -0
  52. package/dist/components/Link/LinkSelector/LinkSelector.es.js.map +1 -0
  53. package/dist/components/Link/LinkSelector/LoadingIndicator.es.js +7 -0
  54. package/dist/components/Link/LinkSelector/LoadingIndicator.es.js.map +1 -0
  55. package/dist/components/Link/LinkSelector/PageLink.es.js +70 -0
  56. package/dist/components/Link/LinkSelector/PageLink.es.js.map +1 -0
  57. package/dist/components/Link/LinkSelector/PageLinks.es.js +38 -0
  58. package/dist/components/Link/LinkSelector/PageLinks.es.js.map +1 -0
  59. package/dist/components/Link/LinkSelector/SectionLink.es.js +25 -0
  60. package/dist/components/Link/LinkSelector/SectionLink.es.js.map +1 -0
  61. package/dist/components/Link/utils/getUrl.es.js +18 -0
  62. package/dist/components/Link/utils/getUrl.es.js.map +1 -0
  63. package/dist/components/Link/utils/relativeUrlRegex.es.js +5 -0
  64. package/dist/components/Link/utils/relativeUrlRegex.es.js.map +1 -0
  65. package/dist/components/Link/utils/url.es.js +17 -0
  66. package/dist/components/Link/utils/url.es.js.map +1 -0
  67. package/dist/components/RichTextEditor/RichTextEditor.es.js +42 -0
  68. package/dist/components/RichTextEditor/RichTextEditor.es.js.map +1 -0
  69. package/dist/components/RichTextEditor/SerializedText.es.js +20 -0
  70. package/dist/components/RichTextEditor/SerializedText.es.js.map +1 -0
  71. package/dist/components/RichTextEditor/constants.es.js +5 -0
  72. package/dist/components/RichTextEditor/constants.es.js.map +1 -0
  73. package/dist/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js +35 -0
  74. package/dist/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js.map +1 -0
  75. package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js +54 -0
  76. package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js.map +1 -0
  77. package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/index.es.js +12 -0
  78. package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/index.es.js.map +1 -0
  79. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.es.js +17 -0
  80. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.es.js.map +1 -0
  81. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.es.js +30 -0
  82. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.es.js.map +1 -0
  83. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.es.js +16 -0
  84. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.es.js.map +1 -0
  85. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js +43 -0
  86. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js.map +1 -0
  87. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButton.es.js +25 -0
  88. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButton.es.js.map +1 -0
  89. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonEditButton.es.js +20 -0
  90. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonEditButton.es.js.map +1 -0
  91. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonUrlInput.es.js +26 -0
  92. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonUrlInput.es.js.map +1 -0
  93. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js +69 -0
  94. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js.map +1 -0
  95. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js +105 -0
  96. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js.map +1 -0
  97. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/UnlinkButton.es.js +20 -0
  98. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/UnlinkButton.es.js.map +1 -0
  99. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.es.js +32 -0
  100. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.es.js.map +1 -0
  101. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js +58 -0
  102. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js.map +1 -0
  103. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.es.js +19 -0
  104. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.es.js.map +1 -0
  105. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.es.js +26 -0
  106. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.es.js.map +1 -0
  107. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js +43 -0
  108. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js.map +1 -0
  109. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.es.js +18 -0
  110. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.es.js.map +1 -0
  111. package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js +68 -0
  112. package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js.map +1 -0
  113. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js +13 -0
  114. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js.map +1 -0
  115. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js +25 -0
  116. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js.map +1 -0
  117. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js +35 -0
  118. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js.map +1 -0
  119. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js +86 -0
  120. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js.map +1 -0
  121. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js +24 -0
  122. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js.map +1 -0
  123. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js +19 -0
  124. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js.map +1 -0
  125. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js +13 -0
  126. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js.map +1 -0
  127. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.es.js +11 -0
  128. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.es.js.map +1 -0
  129. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js +10 -0
  130. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js.map +1 -0
  131. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js +81 -0
  132. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js.map +1 -0
  133. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js +18 -0
  134. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js.map +1 -0
  135. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js +17 -0
  136. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js.map +1 -0
  137. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js +14 -0
  138. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js.map +1 -0
  139. package/dist/components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js +53 -0
  140. package/dist/components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js.map +1 -0
  141. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js +19 -0
  142. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js.map +1 -0
  143. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js +43 -0
  144. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js.map +1 -0
  145. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/useFloatingLinkEdit.es.js +53 -0
  146. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/useFloatingLinkEdit.es.js.map +1 -0
  147. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/FloatingLink.es.js +29 -0
  148. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/FloatingLink.es.js.map +1 -0
  149. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js +8 -0
  150. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js.map +1 -0
  151. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js +66 -0
  152. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js.map +1 -0
  153. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useFloatingLinkInsert.es.js +40 -0
  154. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useFloatingLinkInsert.es.js.map +1 -0
  155. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js +93 -0
  156. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js.map +1 -0
  157. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js +25 -0
  158. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js.map +1 -0
  159. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js +27 -0
  160. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js.map +1 -0
  161. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.es.js +12 -0
  162. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.es.js.map +1 -0
  163. package/dist/components/RichTextEditor/plugins/LinkPlugin/id.es.js +5 -0
  164. package/dist/components/RichTextEditor/plugins/LinkPlugin/id.es.js.map +1 -0
  165. package/dist/components/RichTextEditor/plugins/LinkPlugin/index.es.js +45 -0
  166. package/dist/components/RichTextEditor/plugins/LinkPlugin/index.es.js.map +1 -0
  167. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js +51 -0
  168. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js.map +1 -0
  169. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js +51 -0
  170. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js.map +1 -0
  171. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js +51 -0
  172. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js.map +1 -0
  173. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js +52 -0
  174. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js.map +1 -0
  175. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js +52 -0
  176. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js.map +1 -0
  177. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js +52 -0
  178. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js.map +1 -0
  179. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js +52 -0
  180. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js.map +1 -0
  181. package/dist/components/RichTextEditor/plugins/TextStylePlugins/helpers.es.js +40 -0
  182. package/dist/components/RichTextEditor/plugins/TextStylePlugins/helpers.es.js.map +1 -0
  183. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js +52 -0
  184. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js.map +1 -0
  185. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js +52 -0
  186. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js.map +1 -0
  187. package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js +46 -0
  188. package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js.map +1 -0
  189. package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js +54 -0
  190. package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js.map +1 -0
  191. package/dist/components/RichTextEditor/plugins/styles.es.js +167 -0
  192. package/dist/components/RichTextEditor/plugins/styles.es.js.map +1 -0
  193. package/dist/helpers/addHttps.es.js +14 -0
  194. package/dist/helpers/addHttps.es.js.map +1 -0
  195. package/dist/helpers/convertToRichTextValue.es.js +6 -0
  196. package/dist/helpers/convertToRichTextValue.es.js.map +1 -0
  197. package/dist/helpers/customCoordinatesGetterFactory.es.js +32 -0
  198. package/dist/helpers/customCoordinatesGetterFactory.es.js.map +1 -0
  199. package/dist/helpers/hasRichTextValue.es.js +15 -0
  200. package/dist/helpers/hasRichTextValue.es.js.map +1 -0
  201. package/dist/helpers/isDownloadable.es.js +6 -0
  202. package/dist/helpers/isDownloadable.es.js.map +1 -0
  203. package/dist/helpers/mapColorPalettes.es.js +28 -0
  204. package/dist/helpers/mapColorPalettes.es.js.map +1 -0
  205. package/dist/hooks/useAttachments.es.js +53 -0
  206. package/dist/hooks/useAttachments.es.js.map +1 -0
  207. package/dist/hooks/useDndSensors.es.js +20 -0
  208. package/dist/hooks/useDndSensors.es.js.map +1 -0
  209. package/dist/index.cjs.js +4 -0
  210. package/dist/index.cjs.js.map +1 -0
  211. package/dist/index.d.ts +1193 -0
  212. package/dist/index.es.js +217 -0
  213. package/dist/index.es.js.map +1 -0
  214. package/dist/index.umd.js +4 -0
  215. package/dist/index.umd.js.map +1 -0
  216. package/dist/settings/background.es.js +22 -0
  217. package/dist/settings/background.es.js.map +1 -0
  218. package/dist/settings/border.es.js +61 -0
  219. package/dist/settings/border.es.js.map +1 -0
  220. package/dist/settings/borderRadius.es.js +56 -0
  221. package/dist/settings/borderRadius.es.js.map +1 -0
  222. package/dist/settings/borderRadiusExtended.es.js +64 -0
  223. package/dist/settings/borderRadiusExtended.es.js.map +1 -0
  224. package/dist/settings/defaultValues.es.js +19 -0
  225. package/dist/settings/defaultValues.es.js.map +1 -0
  226. package/dist/settings/gutter.es.js +56 -0
  227. package/dist/settings/gutter.es.js.map +1 -0
  228. package/dist/settings/margin.es.js +53 -0
  229. package/dist/settings/margin.es.js.map +1 -0
  230. package/dist/settings/marginExtended.es.js +65 -0
  231. package/dist/settings/marginExtended.es.js.map +1 -0
  232. package/dist/settings/padding.es.js +53 -0
  233. package/dist/settings/padding.es.js.map +1 -0
  234. package/dist/settings/paddingExtended.es.js +65 -0
  235. package/dist/settings/paddingExtended.es.js.map +1 -0
  236. package/dist/settings/securityDownloadable.es.js +19 -0
  237. package/dist/settings/securityDownloadable.es.js.map +1 -0
  238. package/dist/settings/securityGlobalControl.es.js +33 -0
  239. package/dist/settings/securityGlobalControl.es.js.map +1 -0
  240. package/dist/settings/types.es.js +48 -0
  241. package/dist/settings/types.es.js.map +1 -0
  242. package/dist/styles.css +1 -0
  243. package/dist/styles.css.es.js +2 -0
  244. package/dist/styles.css.es.js.map +1 -0
  245. package/dist/utilities/color/getReadableColor.es.js +14 -0
  246. package/dist/utilities/color/getReadableColor.es.js.map +1 -0
  247. package/dist/utilities/color/isDark.es.js +10 -0
  248. package/dist/utilities/color/isDark.es.js.map +1 -0
  249. package/dist/utilities/color/setAlpha.es.js +6 -0
  250. package/dist/utilities/color/setAlpha.es.js.map +1 -0
  251. package/dist/utilities/color/toColorObject.es.js +9 -0
  252. package/dist/utilities/color/toColorObject.es.js.map +1 -0
  253. package/dist/utilities/color/toHex8String.es.js +7 -0
  254. package/dist/utilities/color/toHex8String.es.js.map +1 -0
  255. package/dist/utilities/color/toHexString.es.js +7 -0
  256. package/dist/utilities/color/toHexString.es.js.map +1 -0
  257. package/dist/utilities/color/toRgbaString.es.js +7 -0
  258. package/dist/utilities/color/toRgbaString.es.js.map +1 -0
  259. package/dist/utilities/color/toShortRgba.es.js +11 -0
  260. package/dist/utilities/color/toShortRgba.es.js.map +1 -0
  261. package/dist/utilities/moveItemInArray.es.js +12 -0
  262. package/dist/utilities/moveItemInArray.es.js.map +1 -0
  263. package/dist/utilities/react/getBackgroundColorStyles.es.js +8 -0
  264. package/dist/utilities/react/getBackgroundColorStyles.es.js.map +1 -0
  265. package/dist/utilities/react/getBorderStyles.es.js +12 -0
  266. package/dist/utilities/react/getBorderStyles.es.js.map +1 -0
  267. package/dist/utilities/react/getRadiusStyles.es.js +8 -0
  268. package/dist/utilities/react/getRadiusStyles.es.js.map +1 -0
  269. package/dist/utilities/react/joinClassNames.es.js +5 -0
  270. package/dist/utilities/react/joinClassNames.es.js.map +1 -0
  271. package/package.json +8 -2
  272. package/.eslintrc.cjs +0 -27
  273. package/.prettierrc +0 -7
  274. package/CHANGELOG.md +0 -778
  275. package/postcss.config.cjs +0 -8
  276. package/setupTests.ts +0 -23
  277. package/src/components/Attachments/AttachmentItem.tsx +0 -247
  278. package/src/components/Attachments/Attachments.spec.ct.tsx +0 -165
  279. package/src/components/Attachments/Attachments.tsx +0 -241
  280. package/src/components/Attachments/AttachmentsButtonTrigger.tsx +0 -30
  281. package/src/components/Attachments/index.ts +0 -4
  282. package/src/components/Attachments/types.ts +0 -40
  283. package/src/components/BlockInjectButton/BlockInjectButton.spec.ct.tsx +0 -48
  284. package/src/components/BlockInjectButton/BlockInjectButton.tsx +0 -212
  285. package/src/components/BlockInjectButton/index.ts +0 -4
  286. package/src/components/BlockInjectButton/types.ts +0 -18
  287. package/src/components/BlockItemWrapper/BlockItemWrapper.spec.ct.tsx +0 -145
  288. package/src/components/BlockItemWrapper/BlockItemWrapper.tsx +0 -76
  289. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.spec.tsx +0 -96
  290. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.tsx +0 -42
  291. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.spec.tsx +0 -44
  292. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.tsx +0 -24
  293. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/index.ts +0 -3
  294. package/src/components/BlockItemWrapper/Toolbar/BaseToolbarButton.spec.tsx +0 -40
  295. package/src/components/BlockItemWrapper/Toolbar/BaseToolbarButton.tsx +0 -37
  296. package/src/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.spec.tsx +0 -89
  297. package/src/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.tsx +0 -40
  298. package/src/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/index.ts +0 -3
  299. package/src/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.spec.tsx +0 -140
  300. package/src/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.tsx +0 -61
  301. package/src/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/index.ts +0 -3
  302. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.spec.tsx +0 -77
  303. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.tsx +0 -30
  304. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/ToolbarFlyoutMenu.spec.tsx +0 -63
  305. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/ToolbarFlyoutMenu.tsx +0 -40
  306. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/index.ts +0 -4
  307. package/src/components/BlockItemWrapper/Toolbar/Toolbar.spec.tsx +0 -259
  308. package/src/components/BlockItemWrapper/Toolbar/Toolbar.tsx +0 -36
  309. package/src/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.spec.tsx +0 -70
  310. package/src/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.tsx +0 -19
  311. package/src/components/BlockItemWrapper/Toolbar/ToolbarButton/index.ts +0 -3
  312. package/src/components/BlockItemWrapper/Toolbar/ToolbarButtonTooltip.tsx +0 -25
  313. package/src/components/BlockItemWrapper/Toolbar/ToolbarSegment.tsx +0 -9
  314. package/src/components/BlockItemWrapper/Toolbar/context/DragPreviewContext.tsx +0 -15
  315. package/src/components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.tsx +0 -25
  316. package/src/components/BlockItemWrapper/Toolbar/context/index.ts +0 -4
  317. package/src/components/BlockItemWrapper/Toolbar/helpers.ts +0 -33
  318. package/src/components/BlockItemWrapper/Toolbar/hooks/index.ts +0 -3
  319. package/src/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.spec.tsx +0 -59
  320. package/src/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.ts +0 -24
  321. package/src/components/BlockItemWrapper/Toolbar/index.ts +0 -10
  322. package/src/components/BlockItemWrapper/Toolbar/types.ts +0 -18
  323. package/src/components/BlockItemWrapper/constants.ts +0 -4
  324. package/src/components/BlockItemWrapper/index.ts +0 -6
  325. package/src/components/BlockItemWrapper/types.ts +0 -24
  326. package/src/components/DownloadButton/DownloadButton.spec.ct.tsx +0 -20
  327. package/src/components/DownloadButton/DownloadButton.tsx +0 -36
  328. package/src/components/DownloadButton/index.ts +0 -3
  329. package/src/components/DownloadButton/types.ts +0 -5
  330. package/src/components/Link/LinkInput.spec.ct.tsx +0 -142
  331. package/src/components/Link/LinkInput.tsx +0 -86
  332. package/src/components/Link/LinkSelector/DocumentLink.tsx +0 -81
  333. package/src/components/Link/LinkSelector/DocumentLinks.tsx +0 -102
  334. package/src/components/Link/LinkSelector/LinkSelector.spec.ct.tsx +0 -196
  335. package/src/components/Link/LinkSelector/LinkSelector.tsx +0 -96
  336. package/src/components/Link/LinkSelector/LoadingIndicator.tsx +0 -11
  337. package/src/components/Link/LinkSelector/PageLink.tsx +0 -96
  338. package/src/components/Link/LinkSelector/PageLinks.tsx +0 -71
  339. package/src/components/Link/LinkSelector/SectionLink.tsx +0 -36
  340. package/src/components/Link/LinkSelector/index.ts +0 -3
  341. package/src/components/Link/index.ts +0 -6
  342. package/src/components/Link/types.ts +0 -6
  343. package/src/components/Link/utils/getUrl.ts +0 -30
  344. package/src/components/Link/utils/index.ts +0 -5
  345. package/src/components/Link/utils/relativeUrlRegex.spec.ts +0 -32
  346. package/src/components/Link/utils/relativeUrlRegex.ts +0 -3
  347. package/src/components/Link/utils/url.spec.ts +0 -75
  348. package/src/components/Link/utils/url.ts +0 -21
  349. package/src/components/RichTextEditor/RichTextEditor.spec.ct.tsx +0 -231
  350. package/src/components/RichTextEditor/RichTextEditor.tsx +0 -62
  351. package/src/components/RichTextEditor/SerializedText.tsx +0 -29
  352. package/src/components/RichTextEditor/constants.ts +0 -3
  353. package/src/components/RichTextEditor/index.ts +0 -6
  354. package/src/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.tsx +0 -55
  355. package/src/components/RichTextEditor/pluginPresets/index.ts +0 -3
  356. package/src/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.tsx +0 -74
  357. package/src/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/index.ts +0 -11
  358. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.tsx +0 -20
  359. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.tsx +0 -56
  360. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.tsx +0 -19
  361. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.tsx +0 -42
  362. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButton.tsx +0 -37
  363. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonEditButton.tsx +0 -22
  364. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonUrlInput.tsx +0 -30
  365. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.tsx +0 -81
  366. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/types.ts +0 -13
  367. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.ts +0 -143
  368. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/UnlinkButton.tsx +0 -31
  369. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.ts +0 -46
  370. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/index.ts +0 -12
  371. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.ts +0 -113
  372. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.ts +0 -21
  373. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.ts +0 -30
  374. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.ts +0 -71
  375. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.ts +0 -22
  376. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/index.ts +0 -3
  377. package/src/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.ts +0 -118
  378. package/src/components/RichTextEditor/plugins/ButtonPlugin/index.ts +0 -7
  379. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/index.ts +0 -8
  380. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.ts +0 -17
  381. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.ts +0 -40
  382. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.ts +0 -68
  383. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.ts +0 -198
  384. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.ts +0 -40
  385. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.ts +0 -30
  386. package/src/components/RichTextEditor/plugins/ButtonPlugin/types.ts +0 -13
  387. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.ts +0 -28
  388. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.ts +0 -14
  389. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.ts +0 -18
  390. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/index.ts +0 -8
  391. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.ts +0 -83
  392. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.ts +0 -23
  393. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.ts +0 -30
  394. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.ts +0 -45
  395. package/src/components/RichTextEditor/plugins/ButtonPlugin/withButton.ts +0 -106
  396. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.tsx +0 -26
  397. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.tsx +0 -43
  398. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/index.ts +0 -4
  399. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/useFloatingLinkEdit.ts +0 -113
  400. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/FloatingLink.tsx +0 -45
  401. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.tsx +0 -5
  402. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.tsx +0 -88
  403. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/index.ts +0 -4
  404. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/types.ts +0 -11
  405. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useFloatingLinkInsert.ts +0 -73
  406. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.ts +0 -136
  407. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkButton.tsx +0 -38
  408. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.tsx +0 -36
  409. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.ts +0 -11
  410. package/src/components/RichTextEditor/plugins/LinkPlugin/id.ts +0 -3
  411. package/src/components/RichTextEditor/plugins/LinkPlugin/index.ts +0 -49
  412. package/src/components/RichTextEditor/plugins/LinkPlugin/types.ts +0 -12
  413. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.tsx +0 -62
  414. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.tsx +0 -62
  415. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.tsx +0 -63
  416. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.tsx +0 -62
  417. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.tsx +0 -62
  418. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.tsx +0 -62
  419. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.tsx +0 -63
  420. package/src/components/RichTextEditor/plugins/TextStylePlugins/helpers.tsx +0 -44
  421. package/src/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.tsx +0 -62
  422. package/src/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.tsx +0 -62
  423. package/src/components/RichTextEditor/plugins/TextStylePlugins/index.ts +0 -15
  424. package/src/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.tsx +0 -58
  425. package/src/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.tsx +0 -63
  426. package/src/components/RichTextEditor/plugins/index.ts +0 -6
  427. package/src/components/RichTextEditor/plugins/styles.ts +0 -178
  428. package/src/components/RichTextEditor/types.ts +0 -23
  429. package/src/components/index.ts +0 -8
  430. package/src/helpers/addHttps.spec.ts +0 -42
  431. package/src/helpers/addHttps.ts +0 -15
  432. package/src/helpers/convertToRichTextValue.spec.ts +0 -32
  433. package/src/helpers/convertToRichTextValue.ts +0 -6
  434. package/src/helpers/customCoordinatesGetterFactory.spec.ts +0 -69
  435. package/src/helpers/customCoordinatesGetterFactory.ts +0 -39
  436. package/src/helpers/hasRichTextValue.spec.ts +0 -63
  437. package/src/helpers/hasRichTextValue.ts +0 -29
  438. package/src/helpers/index.ts +0 -8
  439. package/src/helpers/isDownloadable.spec.ts +0 -47
  440. package/src/helpers/isDownloadable.ts +0 -7
  441. package/src/helpers/mapColorPalettes.spec.ts +0 -47
  442. package/src/helpers/mapColorPalettes.ts +0 -65
  443. package/src/hooks/index.ts +0 -4
  444. package/src/hooks/useAttachments.spec.tsx +0 -127
  445. package/src/hooks/useAttachments.tsx +0 -90
  446. package/src/hooks/useDndSensors.spec.ts +0 -40
  447. package/src/hooks/useDndSensors.ts +0 -23
  448. package/src/index.ts +0 -138
  449. package/src/settings/background.spec.ts +0 -173
  450. package/src/settings/background.ts +0 -52
  451. package/src/settings/border.spec.ts +0 -76
  452. package/src/settings/border.ts +0 -90
  453. package/src/settings/borderRadius.spec.ts +0 -30
  454. package/src/settings/borderRadius.ts +0 -73
  455. package/src/settings/borderRadiusExtended.spec.ts +0 -52
  456. package/src/settings/borderRadiusExtended.ts +0 -84
  457. package/src/settings/defaultValues.ts +0 -21
  458. package/src/settings/gutter.spec.ts +0 -60
  459. package/src/settings/gutter.ts +0 -75
  460. package/src/settings/index.ts +0 -14
  461. package/src/settings/margin.spec.ts +0 -42
  462. package/src/settings/margin.ts +0 -72
  463. package/src/settings/marginExtended.spec.ts +0 -45
  464. package/src/settings/marginExtended.ts +0 -91
  465. package/src/settings/padding.spec.ts +0 -42
  466. package/src/settings/padding.ts +0 -73
  467. package/src/settings/paddingExtended.spec.ts +0 -45
  468. package/src/settings/paddingExtended.ts +0 -91
  469. package/src/settings/security.spec.ts +0 -87
  470. package/src/settings/security.ts +0 -61
  471. package/src/settings/securityDownloadable.spec.ts +0 -46
  472. package/src/settings/securityDownloadable.ts +0 -33
  473. package/src/settings/securityGlobalControl.ts +0 -42
  474. package/src/settings/types.ts +0 -128
  475. package/src/styles.css +0 -3
  476. package/src/utilities/color/getReadableColor.spec.ts +0 -32
  477. package/src/utilities/color/getReadableColor.ts +0 -34
  478. package/src/utilities/color/index.ts +0 -10
  479. package/src/utilities/color/isDark.spec.ts +0 -33
  480. package/src/utilities/color/isDark.ts +0 -29
  481. package/src/utilities/color/setAlpha.spec.ts +0 -28
  482. package/src/utilities/color/setAlpha.ts +0 -14
  483. package/src/utilities/color/toColorObject.spec.ts +0 -19
  484. package/src/utilities/color/toColorObject.ts +0 -16
  485. package/src/utilities/color/toHex8String.spec.ts +0 -17
  486. package/src/utilities/color/toHex8String.ts +0 -14
  487. package/src/utilities/color/toHexString.spec.ts +0 -17
  488. package/src/utilities/color/toHexString.ts +0 -10
  489. package/src/utilities/color/toRgbaString.spec.ts +0 -12
  490. package/src/utilities/color/toRgbaString.ts +0 -14
  491. package/src/utilities/color/toShortRgba.spec.ts +0 -16
  492. package/src/utilities/color/toShortRgba.ts +0 -35
  493. package/src/utilities/index.ts +0 -5
  494. package/src/utilities/moveItemInArray.spec.ts +0 -17
  495. package/src/utilities/moveItemInArray.ts +0 -21
  496. package/src/utilities/react/getBackgroundColorStyles.spec.ts +0 -18
  497. package/src/utilities/react/getBackgroundColorStyles.ts +0 -10
  498. package/src/utilities/react/getBorderStyles.spec.ts +0 -39
  499. package/src/utilities/react/getBorderStyles.ts +0 -20
  500. package/src/utilities/react/getRadiusStyles.spec.ts +0 -25
  501. package/src/utilities/react/getRadiusStyles.ts +0 -8
  502. package/src/utilities/react/index.ts +0 -6
  503. package/src/utilities/react/joinClassNames.spec.ts +0 -18
  504. package/src/utilities/react/joinClassNames.ts +0 -10
  505. package/tailwind.config.ts +0 -27
  506. package/tsconfig.json +0 -24
  507. package/tsconfig.node.json +0 -12
  508. package/vite.config.ts +0 -71
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading3Plugin.es.js","sources":["../../../../../src/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport type { CSSProperties } from 'react';\nimport {\n MarkupElement,\n Plugin,\n PluginProps,\n TextStyleRenderElementProps,\n alignmentClassnames,\n getColumnBreakClasses,\n merge,\n} from '@frontify/fondue';\nimport { BlockStyles, TextStyles } from '../styles';\n\nconst ID = 'textstyle-heading3-plugin';\n\nexport class Heading3Plugin extends Plugin {\n public styles: CSSProperties = {};\n constructor({ styles = BlockStyles.heading3, ...props }: PluginProps = {}) {\n super(TextStyles.heading3, {\n label: 'Heading 3',\n markupElement: new Heading3MarkupElement(),\n ...props,\n });\n this.styles = styles;\n }\n\n plugins() {\n return [createHeading3Plugin(this.styles)];\n }\n}\n\nclass Heading3MarkupElement extends MarkupElement {\n constructor(id = ID, node = Heading3MarkupElementNode) {\n super(id, node);\n }\n}\nconst Heading3MarkupElementNode = ({ element, attributes, children, styles }: TextStyleRenderElementProps) => {\n const align = element.align as string;\n return (\n <h3\n {...attributes}\n className={merge([align && alignmentClassnames[align], getColumnBreakClasses(element)])}\n style={styles}\n >\n {children}\n </h3>\n );\n};\n\nconst createHeading3Plugin = (styles: CSSProperties) =>\n createPluginFactory({\n key: TextStyles.heading3,\n isElement: true,\n component: Heading3MarkupElementNode,\n deserializeHtml: {\n rules: [{ validNodeName: ['h3', 'H3'] }],\n },\n })({\n component: (props: TextStyleRenderElementProps) => <Heading3MarkupElementNode {...props} styles={styles} />,\n });\n"],"names":["ID","Heading3Plugin","Plugin","styles","BlockStyles","props","TextStyles","Heading3MarkupElement","__publicField","createHeading3Plugin","MarkupElement","id","node","Heading3MarkupElementNode","element","attributes","children","align","jsx","merge","alignmentClassnames","getColumnBreakClasses","createPluginFactory"],"mappings":";;;;;;;AAeA,MAAMA,IAAK;AAEJ,MAAMC,UAAuBC,EAAO;AAAA,EAEvC,YAAY,EAAE,QAAAC,IAASC,EAAY,UAAU,GAAGC,EAAuB,IAAA,IAAI;AACvE,UAAMC,EAAW,UAAU;AAAA,MACvB,OAAO;AAAA,MACP,eAAe,IAAIC,EAAsB;AAAA,MACzC,GAAGF;AAAA,IAAA,CACN;AANE,IAAAG,EAAA,gBAAwB,CAAA;AAO3B,SAAK,SAASL;AAAA,EAClB;AAAA,EAEA,UAAU;AACN,WAAO,CAACM,EAAqB,KAAK,MAAM,CAAC;AAAA,EAC7C;AACJ;AAEA,MAAMF,UAA8BG,EAAc;AAAA,EAC9C,YAAYC,IAAKX,GAAIY,IAAOC,GAA2B;AACnD,UAAMF,GAAIC,CAAI;AAAA,EAClB;AACJ;AACA,MAAMC,IAA4B,CAAC,EAAE,SAAAC,GAAS,YAAAC,GAAY,UAAAC,GAAU,QAAAb,QAA0C;AAC1G,QAAMc,IAAQH,EAAQ;AAElB,SAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGH;AAAA,MACJ,WAAWI,EAAM,CAACF,KAASG,EAAoBH,CAAK,GAAGI,EAAsBP,CAAO,CAAC,CAAC;AAAA,MACtF,OAAOX;AAAA,MAEN,UAAAa;AAAA,IAAA;AAAA,EAAA;AAGb,GAEMP,IAAuB,CAACN,MAC1BmB,EAAoB;AAAA,EAChB,KAAKhB,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAWO;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,IAAI,GAAG;AAAA,EAC3C;AACJ,CAAC,EAAE;AAAA,EACC,WAAW,CAACR,wBAAwCQ,GAA2B,EAAA,GAAGR,GAAO,QAAAF,GAAgB;AAC7G,CAAC;"}
@@ -0,0 +1,52 @@
1
+ var m = Object.defineProperty;
2
+ var g = (t, e, n) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var r = (t, e, n) => (g(t, typeof e != "symbol" ? e + "" : e, n), n);
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import { createPluginFactory as u } from "@udecode/plate";
6
+ import { Plugin as c, MarkupElement as d, merge as p, alignmentClassnames as y, getColumnBreakClasses as h } from "@frontify/fondue";
7
+ import { TextStyles as o, BlockStyles as k } from "../styles.es.js";
8
+ const H = "textstyle-heading4-plugin";
9
+ class B extends c {
10
+ constructor({ styles: n = k.heading4, ...s } = {}) {
11
+ super(o.heading4, {
12
+ label: "Heading 4",
13
+ markupElement: new x(),
14
+ ...s
15
+ });
16
+ r(this, "styles", {});
17
+ this.styles = n;
18
+ }
19
+ plugins() {
20
+ return [E(this.styles)];
21
+ }
22
+ }
23
+ class x extends d {
24
+ constructor(e = H, n = l) {
25
+ super(e, n);
26
+ }
27
+ }
28
+ const l = ({ element: t, attributes: e, children: n, styles: s }) => {
29
+ const a = t.align;
30
+ return /* @__PURE__ */ i(
31
+ "h4",
32
+ {
33
+ ...e,
34
+ className: p([a && y[a], h(t)]),
35
+ style: s,
36
+ children: n
37
+ }
38
+ );
39
+ }, E = (t) => u({
40
+ key: o.heading4,
41
+ isElement: !0,
42
+ component: l,
43
+ deserializeHtml: {
44
+ rules: [{ validNodeName: ["h4", "H4"] }]
45
+ }
46
+ })({
47
+ component: (e) => /* @__PURE__ */ i(l, { ...e, styles: t })
48
+ });
49
+ export {
50
+ B as Heading4Plugin
51
+ };
52
+ //# sourceMappingURL=heading4Plugin.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading4Plugin.es.js","sources":["../../../../../src/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport type { CSSProperties } from 'react';\nimport {\n MarkupElement,\n Plugin,\n PluginProps,\n TextStyleRenderElementProps,\n alignmentClassnames,\n getColumnBreakClasses,\n merge,\n} from '@frontify/fondue';\nimport { BlockStyles, TextStyles } from '../styles';\n\nconst ID = 'textstyle-heading4-plugin';\n\nexport class Heading4Plugin extends Plugin {\n public styles: CSSProperties = {};\n constructor({ styles = BlockStyles.heading4, ...props }: PluginProps = {}) {\n super(TextStyles.heading4, {\n label: 'Heading 4',\n markupElement: new Heading4MarkupElement(),\n ...props,\n });\n this.styles = styles;\n }\n\n plugins() {\n return [createHeading4Plugin(this.styles)];\n }\n}\n\nclass Heading4MarkupElement extends MarkupElement {\n constructor(id = ID, node = Heading4MarkupElementNode) {\n super(id, node);\n }\n}\n\nconst Heading4MarkupElementNode = ({ element, attributes, children, styles }: TextStyleRenderElementProps) => {\n const align = element.align as string;\n return (\n <h4\n {...attributes}\n className={merge([align && alignmentClassnames[align], getColumnBreakClasses(element)])}\n style={styles}\n >\n {children}\n </h4>\n );\n};\n\nconst createHeading4Plugin = (styles: CSSProperties) =>\n createPluginFactory({\n key: TextStyles.heading4,\n isElement: true,\n component: Heading4MarkupElementNode,\n deserializeHtml: {\n rules: [{ validNodeName: ['h4', 'H4'] }],\n },\n })({\n component: (props: TextStyleRenderElementProps) => <Heading4MarkupElementNode {...props} styles={styles} />,\n });\n"],"names":["ID","Heading4Plugin","Plugin","styles","BlockStyles","props","TextStyles","Heading4MarkupElement","__publicField","createHeading4Plugin","MarkupElement","id","node","Heading4MarkupElementNode","element","attributes","children","align","jsx","merge","alignmentClassnames","getColumnBreakClasses","createPluginFactory"],"mappings":";;;;;;;AAeA,MAAMA,IAAK;AAEJ,MAAMC,UAAuBC,EAAO;AAAA,EAEvC,YAAY,EAAE,QAAAC,IAASC,EAAY,UAAU,GAAGC,EAAuB,IAAA,IAAI;AACvE,UAAMC,EAAW,UAAU;AAAA,MACvB,OAAO;AAAA,MACP,eAAe,IAAIC,EAAsB;AAAA,MACzC,GAAGF;AAAA,IAAA,CACN;AANE,IAAAG,EAAA,gBAAwB,CAAA;AAO3B,SAAK,SAASL;AAAA,EAClB;AAAA,EAEA,UAAU;AACN,WAAO,CAACM,EAAqB,KAAK,MAAM,CAAC;AAAA,EAC7C;AACJ;AAEA,MAAMF,UAA8BG,EAAc;AAAA,EAC9C,YAAYC,IAAKX,GAAIY,IAAOC,GAA2B;AACnD,UAAMF,GAAIC,CAAI;AAAA,EAClB;AACJ;AAEA,MAAMC,IAA4B,CAAC,EAAE,SAAAC,GAAS,YAAAC,GAAY,UAAAC,GAAU,QAAAb,QAA0C;AAC1G,QAAMc,IAAQH,EAAQ;AAElB,SAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGH;AAAA,MACJ,WAAWI,EAAM,CAACF,KAASG,EAAoBH,CAAK,GAAGI,EAAsBP,CAAO,CAAC,CAAC;AAAA,MACtF,OAAOX;AAAA,MAEN,UAAAa;AAAA,IAAA;AAAA,EAAA;AAGb,GAEMP,IAAuB,CAACN,MAC1BmB,EAAoB;AAAA,EAChB,KAAKhB,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAWO;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,IAAI,GAAG;AAAA,EAC3C;AACJ,CAAC,EAAE;AAAA,EACC,WAAW,CAACR,wBAAwCQ,GAA2B,EAAA,GAAGR,GAAO,QAAAF,GAAgB;AAC7G,CAAC;"}
@@ -0,0 +1,40 @@
1
+ import { TextStyles as t } from "../styles.es.js";
2
+ import { Heading1Plugin as i } from "./heading1Plugin.es.js";
3
+ import { Heading2Plugin as o } from "./heading2Plugin.es.js";
4
+ import { Heading3Plugin as e } from "./heading3Plugin.es.js";
5
+ import { Heading4Plugin as n } from "./heading4Plugin.es.js";
6
+ import { Custom1Plugin as m } from "./custom1Plugin.es.js";
7
+ import { Custom2Plugin as g } from "./custom2Plugin.es.js";
8
+ import { Custom3Plugin as r } from "./custom3Plugin.es.js";
9
+ import { QuotePlugin as l } from "./quotePlugin.es.js";
10
+ import { ParagraphPlugin as u } from "./paragraphPlugin.es.js";
11
+ import { ImageCaptionPlugin as a } from "./imageCaptionPlugin.es.js";
12
+ import { ImageTitlePlugin as p } from "./imageTitlePlugin.es.js";
13
+ const s = [
14
+ new i(),
15
+ new o(),
16
+ new e(),
17
+ new n(),
18
+ new m(),
19
+ new g(),
20
+ new r(),
21
+ new l(),
22
+ new u()
23
+ ], P = [
24
+ t.heading1,
25
+ t.heading2,
26
+ t.heading3,
27
+ t.heading4,
28
+ t.custom1,
29
+ t.custom2,
30
+ t.custom3,
31
+ t.quote,
32
+ t.p
33
+ ], A = [...s, new a(), new p()], W = [...P, t.imageCaption, t.imageTitle];
34
+ export {
35
+ A as AllTextStylePlugins,
36
+ W as AllTextStyles,
37
+ s as TextStylePluginsWithoutImage,
38
+ P as TextStylesWithoutImage
39
+ };
40
+ //# sourceMappingURL=helpers.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.es.js","sources":["../../../../../src/components/RichTextEditor/plugins/TextStylePlugins/helpers.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport {\n Custom1Plugin,\n Custom2Plugin,\n Custom3Plugin,\n Heading1Plugin,\n Heading2Plugin,\n Heading3Plugin,\n Heading4Plugin,\n ImageCaptionPlugin,\n ImageTitlePlugin,\n ParagraphPlugin,\n QuotePlugin,\n} from '.';\nimport { TextStyles } from '../styles';\n\nexport const TextStylePluginsWithoutImage = [\n new Heading1Plugin(),\n new Heading2Plugin(),\n new Heading3Plugin(),\n new Heading4Plugin(),\n new Custom1Plugin(),\n new Custom2Plugin(),\n new Custom3Plugin(),\n new QuotePlugin(),\n new ParagraphPlugin(),\n];\n\nexport const TextStylesWithoutImage = [\n TextStyles.heading1,\n TextStyles.heading2,\n TextStyles.heading3,\n TextStyles.heading4,\n TextStyles.custom1,\n TextStyles.custom2,\n TextStyles.custom3,\n TextStyles.quote,\n TextStyles.p,\n];\n\nexport const AllTextStylePlugins = [...TextStylePluginsWithoutImage, new ImageCaptionPlugin(), new ImageTitlePlugin()];\n\nexport const AllTextStyles = [...TextStylesWithoutImage, TextStyles.imageCaption, TextStyles.imageTitle];\n"],"names":["TextStylePluginsWithoutImage","Heading1Plugin","Heading2Plugin","Heading3Plugin","Heading4Plugin","Custom1Plugin","Custom2Plugin","Custom3Plugin","QuotePlugin","ParagraphPlugin","TextStylesWithoutImage","TextStyles","AllTextStylePlugins","ImageCaptionPlugin","ImageTitlePlugin","AllTextStyles"],"mappings":";;;;;;;;;;;;AAiBO,MAAMA,IAA+B;AAAA,EACxC,IAAIC,EAAe;AAAA,EACnB,IAAIC,EAAe;AAAA,EACnB,IAAIC,EAAe;AAAA,EACnB,IAAIC,EAAe;AAAA,EACnB,IAAIC,EAAc;AAAA,EAClB,IAAIC,EAAc;AAAA,EAClB,IAAIC,EAAc;AAAA,EAClB,IAAIC,EAAY;AAAA,EAChB,IAAIC,EAAgB;AACxB,GAEaC,IAAyB;AAAA,EAClCC,EAAW;AAAA,EACXA,EAAW;AAAA,EACXA,EAAW;AAAA,EACXA,EAAW;AAAA,EACXA,EAAW;AAAA,EACXA,EAAW;AAAA,EACXA,EAAW;AAAA,EACXA,EAAW;AAAA,EACXA,EAAW;AACf,GAEaC,IAAsB,CAAC,GAAGZ,GAA8B,IAAIa,EAAmB,GAAG,IAAIC,GAAkB,GAExGC,IAAgB,CAAC,GAAGL,GAAwBC,EAAW,cAAcA,EAAW,UAAU;"}
@@ -0,0 +1,52 @@
1
+ var r = Object.defineProperty;
2
+ var p = (t, e, a) => e in t ? r(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
+ var l = (t, e, a) => (p(t, typeof e != "symbol" ? e + "" : e, a), a);
4
+ import { jsx as m } from "react/jsx-runtime";
5
+ import { createPluginFactory as g } from "@udecode/plate";
6
+ import { Plugin as u, MarkupElement as c, merge as C, alignmentClassnames as y, getColumnBreakClasses as k } from "@frontify/fondue";
7
+ import { TextStyles as s, BlockStyles as x } from "../styles.es.js";
8
+ const I = "textstyle-imageCaption-plugin";
9
+ class B extends u {
10
+ constructor({ styles: a = x.imageCaption, ...n } = {}) {
11
+ super(s.imageCaption, {
12
+ label: "Image Caption",
13
+ markupElement: new d(),
14
+ ...n
15
+ });
16
+ l(this, "styles", {});
17
+ this.styles = a;
18
+ }
19
+ plugins() {
20
+ return [E(this.styles)];
21
+ }
22
+ }
23
+ class d extends c {
24
+ constructor(e = I, a = o) {
25
+ super(e, a);
26
+ }
27
+ }
28
+ const o = ({ element: t, attributes: e, children: a, styles: n }) => {
29
+ const i = t.align;
30
+ return /* @__PURE__ */ m(
31
+ "p",
32
+ {
33
+ ...e,
34
+ className: C([i && y[i], k(t)]),
35
+ style: n,
36
+ children: a
37
+ }
38
+ );
39
+ }, E = (t) => g({
40
+ key: s.imageCaption,
41
+ isElement: !0,
42
+ component: o,
43
+ deserializeHtml: {
44
+ rules: [{ validClassName: s.imageCaption }]
45
+ }
46
+ })({
47
+ component: (e) => /* @__PURE__ */ m(o, { ...e, styles: t })
48
+ });
49
+ export {
50
+ B as ImageCaptionPlugin
51
+ };
52
+ //# sourceMappingURL=imageCaptionPlugin.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imageCaptionPlugin.es.js","sources":["../../../../../src/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport type { CSSProperties } from 'react';\nimport {\n MarkupElement,\n Plugin,\n PluginProps,\n TextStyleRenderElementProps,\n alignmentClassnames,\n getColumnBreakClasses,\n merge,\n} from '@frontify/fondue';\nimport { BlockStyles, TextStyles } from '../styles';\n\nconst ID = 'textstyle-imageCaption-plugin';\n\nexport class ImageCaptionPlugin extends Plugin {\n public styles: CSSProperties = {};\n constructor({ styles = BlockStyles.imageCaption, ...props }: PluginProps = {}) {\n super(TextStyles.imageCaption, {\n label: 'Image Caption',\n markupElement: new ImageCaptionMarkupElement(),\n ...props,\n });\n this.styles = styles;\n }\n\n plugins() {\n return [createImageCaptionPlugin(this.styles)];\n }\n}\n\nclass ImageCaptionMarkupElement extends MarkupElement {\n constructor(id = ID, node = ImageCaptionMarkupElementNode) {\n super(id, node);\n }\n}\nconst ImageCaptionMarkupElementNode = ({ element, attributes, children, styles }: TextStyleRenderElementProps) => {\n const align = element.align as string;\n return (\n <p\n {...attributes}\n className={merge([align && alignmentClassnames[align], getColumnBreakClasses(element)])}\n style={styles}\n >\n {children}\n </p>\n );\n};\n\nconst createImageCaptionPlugin = (styles: CSSProperties) =>\n createPluginFactory({\n key: TextStyles.imageCaption,\n isElement: true,\n component: ImageCaptionMarkupElementNode,\n deserializeHtml: {\n rules: [{ validClassName: TextStyles.imageCaption }],\n },\n })({\n component: (props: TextStyleRenderElementProps) => <ImageCaptionMarkupElementNode {...props} styles={styles} />,\n });\n"],"names":["ID","ImageCaptionPlugin","Plugin","styles","BlockStyles","props","TextStyles","ImageCaptionMarkupElement","__publicField","createImageCaptionPlugin","MarkupElement","id","node","ImageCaptionMarkupElementNode","element","attributes","children","align","jsx","merge","alignmentClassnames","getColumnBreakClasses","createPluginFactory"],"mappings":";;;;;;;AAeA,MAAMA,IAAK;AAEJ,MAAMC,UAA2BC,EAAO;AAAA,EAE3C,YAAY,EAAE,QAAAC,IAASC,EAAY,cAAc,GAAGC,EAAuB,IAAA,IAAI;AAC3E,UAAMC,EAAW,cAAc;AAAA,MAC3B,OAAO;AAAA,MACP,eAAe,IAAIC,EAA0B;AAAA,MAC7C,GAAGF;AAAA,IAAA,CACN;AANE,IAAAG,EAAA,gBAAwB,CAAA;AAO3B,SAAK,SAASL;AAAA,EAClB;AAAA,EAEA,UAAU;AACN,WAAO,CAACM,EAAyB,KAAK,MAAM,CAAC;AAAA,EACjD;AACJ;AAEA,MAAMF,UAAkCG,EAAc;AAAA,EAClD,YAAYC,IAAKX,GAAIY,IAAOC,GAA+B;AACvD,UAAMF,GAAIC,CAAI;AAAA,EAClB;AACJ;AACA,MAAMC,IAAgC,CAAC,EAAE,SAAAC,GAAS,YAAAC,GAAY,UAAAC,GAAU,QAAAb,QAA0C;AAC9G,QAAMc,IAAQH,EAAQ;AAElB,SAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGH;AAAA,MACJ,WAAWI,EAAM,CAACF,KAASG,EAAoBH,CAAK,GAAGI,EAAsBP,CAAO,CAAC,CAAC;AAAA,MACtF,OAAOX;AAAA,MAEN,UAAAa;AAAA,IAAA;AAAA,EAAA;AAGb,GAEMP,IAA2B,CAACN,MAC9BmB,EAAoB;AAAA,EAChB,KAAKhB,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAWO;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,gBAAgBP,EAAW,cAAc;AAAA,EACvD;AACJ,CAAC,EAAE;AAAA,EACC,WAAW,CAACD,wBAAwCQ,GAA+B,EAAA,GAAGR,GAAO,QAAAF,GAAgB;AACjH,CAAC;"}
@@ -0,0 +1,52 @@
1
+ var o = Object.defineProperty;
2
+ var g = (t, e, l) => e in t ? o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l;
3
+ var n = (t, e, l) => (g(t, typeof e != "symbol" ? e + "" : e, l), l);
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { createPluginFactory as u } from "@udecode/plate";
6
+ import { Plugin as c, MarkupElement as p, merge as T, alignmentClassnames as y, getColumnBreakClasses as k } from "@frontify/fondue";
7
+ import { TextStyles as i, BlockStyles as x } from "../styles.es.js";
8
+ const I = "textstyle-imageTitle-plugin";
9
+ class h extends c {
10
+ constructor({ styles: l = x.imageTitle, ...s } = {}) {
11
+ super(i.imageTitle, {
12
+ label: "Image Title",
13
+ markupElement: new d(),
14
+ ...s
15
+ });
16
+ n(this, "styles", {});
17
+ this.styles = l;
18
+ }
19
+ plugins() {
20
+ return [E(this.styles)];
21
+ }
22
+ }
23
+ class d extends p {
24
+ constructor(e = I, l = a) {
25
+ super(e, l);
26
+ }
27
+ }
28
+ const a = ({ element: t, attributes: e, children: l, styles: s }) => {
29
+ const m = t.align;
30
+ return /* @__PURE__ */ r(
31
+ "p",
32
+ {
33
+ ...e,
34
+ className: T([m && y[m], k(t)]),
35
+ style: s,
36
+ children: l
37
+ }
38
+ );
39
+ }, E = (t) => u({
40
+ key: i.imageTitle,
41
+ isElement: !0,
42
+ component: a,
43
+ deserializeHtml: {
44
+ rules: [{ validClassName: i.imageTitle }]
45
+ }
46
+ })({
47
+ component: (e) => /* @__PURE__ */ r(a, { ...e, styles: t })
48
+ });
49
+ export {
50
+ h as ImageTitlePlugin
51
+ };
52
+ //# sourceMappingURL=imageTitlePlugin.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imageTitlePlugin.es.js","sources":["../../../../../src/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport type { CSSProperties } from 'react';\nimport {\n MarkupElement,\n Plugin,\n PluginProps,\n TextStyleRenderElementProps,\n alignmentClassnames,\n getColumnBreakClasses,\n merge,\n} from '@frontify/fondue';\nimport { BlockStyles, TextStyles } from '../styles';\n\nconst ID = 'textstyle-imageTitle-plugin';\n\nexport class ImageTitlePlugin extends Plugin {\n public styles: CSSProperties = {};\n constructor({ styles = BlockStyles.imageTitle, ...props }: PluginProps = {}) {\n super(TextStyles.imageTitle, {\n label: 'Image Title',\n markupElement: new ImageTitleMarkupElement(),\n ...props,\n });\n this.styles = styles;\n }\n\n plugins() {\n return [createImageTitlePlugin(this.styles)];\n }\n}\n\nclass ImageTitleMarkupElement extends MarkupElement {\n constructor(id = ID, node = ImageTitleMarkupElementNode) {\n super(id, node);\n }\n}\nconst ImageTitleMarkupElementNode = ({ element, attributes, children, styles }: TextStyleRenderElementProps) => {\n const align = element.align as string;\n return (\n <p\n {...attributes}\n className={merge([align && alignmentClassnames[align], getColumnBreakClasses(element)])}\n style={styles}\n >\n {children}\n </p>\n );\n};\n\nconst createImageTitlePlugin = (styles: CSSProperties) =>\n createPluginFactory({\n key: TextStyles.imageTitle,\n isElement: true,\n component: ImageTitleMarkupElementNode,\n deserializeHtml: {\n rules: [{ validClassName: TextStyles.imageTitle }],\n },\n })({\n component: (props: TextStyleRenderElementProps) => <ImageTitleMarkupElementNode {...props} styles={styles} />,\n });\n"],"names":["ID","ImageTitlePlugin","Plugin","styles","BlockStyles","props","TextStyles","ImageTitleMarkupElement","__publicField","createImageTitlePlugin","MarkupElement","id","node","ImageTitleMarkupElementNode","element","attributes","children","align","jsx","merge","alignmentClassnames","getColumnBreakClasses","createPluginFactory"],"mappings":";;;;;;;AAeA,MAAMA,IAAK;AAEJ,MAAMC,UAAyBC,EAAO;AAAA,EAEzC,YAAY,EAAE,QAAAC,IAASC,EAAY,YAAY,GAAGC,EAAuB,IAAA,IAAI;AACzE,UAAMC,EAAW,YAAY;AAAA,MACzB,OAAO;AAAA,MACP,eAAe,IAAIC,EAAwB;AAAA,MAC3C,GAAGF;AAAA,IAAA,CACN;AANE,IAAAG,EAAA,gBAAwB,CAAA;AAO3B,SAAK,SAASL;AAAA,EAClB;AAAA,EAEA,UAAU;AACN,WAAO,CAACM,EAAuB,KAAK,MAAM,CAAC;AAAA,EAC/C;AACJ;AAEA,MAAMF,UAAgCG,EAAc;AAAA,EAChD,YAAYC,IAAKX,GAAIY,IAAOC,GAA6B;AACrD,UAAMF,GAAIC,CAAI;AAAA,EAClB;AACJ;AACA,MAAMC,IAA8B,CAAC,EAAE,SAAAC,GAAS,YAAAC,GAAY,UAAAC,GAAU,QAAAb,QAA0C;AAC5G,QAAMc,IAAQH,EAAQ;AAElB,SAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGH;AAAA,MACJ,WAAWI,EAAM,CAACF,KAASG,EAAoBH,CAAK,GAAGI,EAAsBP,CAAO,CAAC,CAAC;AAAA,MACtF,OAAOX;AAAA,MAEN,UAAAa;AAAA,IAAA;AAAA,EAAA;AAGb,GAEMP,IAAyB,CAACN,MAC5BmB,EAAoB;AAAA,EAChB,KAAKhB,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAWO;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,gBAAgBP,EAAW,YAAY;AAAA,EACrD;AACJ,CAAC,EAAE;AAAA,EACC,WAAW,CAACD,wBAAwCQ,GAA6B,EAAA,GAAGR,GAAO,QAAAF,GAAgB;AAC/G,CAAC;"}
@@ -0,0 +1,46 @@
1
+ var c = Object.defineProperty;
2
+ var u = (t, e, r) => e in t ? c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var o = (t, e, r) => (u(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ import { jsx as p } from "react/jsx-runtime";
5
+ import { createPluginFactory as g, createParagraphPlugin as i } from "@udecode/plate";
6
+ import { Plugin as P, merge as y, alignmentClassnames as h, getColumnBreakClasses as k, MarkupElement as x } from "@frontify/fondue";
7
+ import { TextStyles as n, BlockStyles as E } from "../styles.es.js";
8
+ class N extends P {
9
+ constructor({ styles: r = E.p, ...a } = {}) {
10
+ super(n.p, {
11
+ markupElement: new d(),
12
+ label: "Body Text",
13
+ ...a
14
+ });
15
+ o(this, "styles", {});
16
+ this.styles = r;
17
+ }
18
+ plugins() {
19
+ return [f(this.styles)];
20
+ }
21
+ }
22
+ const S = "tw-m-0 tw-px-0 tw-py-0", s = ({ element: t, attributes: e, children: r, styles: a }) => {
23
+ const l = t.align, m = y([l && h[l], S, k(t)]);
24
+ return /* @__PURE__ */ p("p", { ...e, className: m, style: a, children: r });
25
+ };
26
+ class d extends x {
27
+ constructor(e = n.p, r = s) {
28
+ super(e, r);
29
+ }
30
+ }
31
+ const f = (t) => g({
32
+ ...i(),
33
+ key: n.p,
34
+ isElement: !0,
35
+ component: s
36
+ })({
37
+ component: (e) => /* @__PURE__ */ p(s, { ...e, styles: t })
38
+ });
39
+ export {
40
+ S as PARAGRAPH_CLASSES,
41
+ d as ParagraphMarkupElement,
42
+ s as ParagraphMarkupElementNode,
43
+ N as ParagraphPlugin,
44
+ f as createParagraphPlugin
45
+ };
46
+ //# sourceMappingURL=paragraphPlugin.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraphPlugin.es.js","sources":["../../../../../src/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createParagraphPlugin as createPlateParagraphPlugin, createPluginFactory } from '@udecode/plate';\nimport type { CSSProperties } from 'react';\nimport {\n MarkupElement,\n Plugin,\n PluginProps,\n TextStyleRenderElementProps,\n alignmentClassnames,\n getColumnBreakClasses,\n merge,\n} from '@frontify/fondue';\nimport { BlockStyles, TextStyles } from '../styles';\n\nexport class ParagraphPlugin extends Plugin {\n public styles: CSSProperties = {};\n constructor({ styles = BlockStyles.p, ...props }: PluginProps = {}) {\n super(TextStyles.p, {\n markupElement: new ParagraphMarkupElement(),\n label: 'Body Text',\n ...props,\n });\n this.styles = styles;\n }\n\n plugins() {\n return [createParagraphPlugin(this.styles)];\n }\n}\n\nexport const PARAGRAPH_CLASSES = 'tw-m-0 tw-px-0 tw-py-0';\n\nexport const ParagraphMarkupElementNode = ({ element, attributes, children, styles }: TextStyleRenderElementProps) => {\n const align = element.align as string;\n const className = merge([align && alignmentClassnames[align], PARAGRAPH_CLASSES, getColumnBreakClasses(element)]);\n return (\n <p {...attributes} className={className} style={styles}>\n {children}\n </p>\n );\n};\n\nexport class ParagraphMarkupElement extends MarkupElement {\n constructor(id = TextStyles.p, node = ParagraphMarkupElementNode) {\n super(id, node);\n }\n}\n\nexport const createParagraphPlugin = (styles: CSSProperties) =>\n createPluginFactory({\n ...createPlateParagraphPlugin(),\n key: TextStyles.p,\n isElement: true,\n component: ParagraphMarkupElementNode,\n })({\n component: (props: TextStyleRenderElementProps) => <ParagraphMarkupElementNode {...props} styles={styles} />,\n });\n"],"names":["ParagraphPlugin","Plugin","styles","BlockStyles","props","TextStyles","ParagraphMarkupElement","__publicField","createParagraphPlugin","PARAGRAPH_CLASSES","ParagraphMarkupElementNode","element","attributes","children","align","className","merge","alignmentClassnames","getColumnBreakClasses","MarkupElement","id","node","createPluginFactory","createPlateParagraphPlugin"],"mappings":";;;;;;;AAeO,MAAMA,UAAwBC,EAAO;AAAA,EAExC,YAAY,EAAE,QAAAC,IAASC,EAAY,GAAG,GAAGC,EAAuB,IAAA,IAAI;AAChE,UAAMC,EAAW,GAAG;AAAA,MAChB,eAAe,IAAIC,EAAuB;AAAA,MAC1C,OAAO;AAAA,MACP,GAAGF;AAAA,IAAA,CACN;AANE,IAAAG,EAAA,gBAAwB,CAAA;AAO3B,SAAK,SAASL;AAAA,EAClB;AAAA,EAEA,UAAU;AACN,WAAO,CAACM,EAAsB,KAAK,MAAM,CAAC;AAAA,EAC9C;AACJ;AAEO,MAAMC,IAAoB,0BAEpBC,IAA6B,CAAC,EAAE,SAAAC,GAAS,YAAAC,GAAY,UAAAC,GAAU,QAAAX,QAA0C;AAClH,QAAMY,IAAQH,EAAQ,OAChBI,IAAYC,EAAM,CAACF,KAASG,EAAoBH,CAAK,GAAGL,GAAmBS,EAAsBP,CAAO,CAAC,CAAC;AAChH,2BACK,KAAG,EAAA,GAAGC,GAAY,WAAAG,GAAsB,OAAOb,GAC3C,UAAAW,EACL,CAAA;AAER;AAEO,MAAMP,UAA+Ba,EAAc;AAAA,EACtD,YAAYC,IAAKf,EAAW,GAAGgB,IAAOX,GAA4B;AAC9D,UAAMU,GAAIC,CAAI;AAAA,EAClB;AACJ;AAEa,MAAAb,IAAwB,CAACN,MAClCoB,EAAoB;AAAA,EAChB,GAAGC,EAA2B;AAAA,EAC9B,KAAKlB,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAWK;AACf,CAAC,EAAE;AAAA,EACC,WAAW,CAACN,wBAAwCM,GAA4B,EAAA,GAAGN,GAAO,QAAAF,GAAgB;AAC9G,CAAC;"}
@@ -0,0 +1,54 @@
1
+ var m = Object.defineProperty;
2
+ var c = (t, e, o) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
+ var r = (t, e, o) => (c(t, typeof e != "symbol" ? e + "" : e, o), o);
4
+ import { jsx as u } from "react/jsx-runtime";
5
+ import { createPluginFactory as i } from "@udecode/plate";
6
+ import { Plugin as p, MarkupElement as g, merge as k, alignmentClassnames as y, getColumnBreakClasses as d } from "@frontify/fondue";
7
+ import { TextStyles as a, BlockStyles as q } from "../styles.es.js";
8
+ const x = "textstyle-quote-plugin";
9
+ class B extends p {
10
+ constructor({ styles: o = q.quote, ...s } = {}) {
11
+ super(a.quote, {
12
+ label: "Quote",
13
+ markupElement: new E(),
14
+ ...s
15
+ });
16
+ r(this, "styles", {});
17
+ this.styles = o;
18
+ }
19
+ plugins() {
20
+ return [Q(this.styles)];
21
+ }
22
+ }
23
+ class E extends g {
24
+ constructor(e = x, o = l) {
25
+ super(e, o);
26
+ }
27
+ }
28
+ const l = ({ element: t, attributes: e, children: o, styles: s }) => {
29
+ const n = t.align;
30
+ return /* @__PURE__ */ u(
31
+ "blockquote",
32
+ {
33
+ ...e,
34
+ className: k([n && y[n], d(t)]),
35
+ style: s,
36
+ children: o
37
+ }
38
+ );
39
+ }, Q = (t) => i({
40
+ key: a.quote,
41
+ isElement: !0,
42
+ component: l,
43
+ deserializeHtml: {
44
+ rules: [{ validNodeName: ["blockquote", "BLOCKQUOTE"] }]
45
+ }
46
+ })({
47
+ component: (e) => /* @__PURE__ */ u(l, { ...e, styles: t })
48
+ });
49
+ export {
50
+ l as QuoteMarkupElementNode,
51
+ B as QuotePlugin,
52
+ Q as createQuotePlugin
53
+ };
54
+ //# sourceMappingURL=quotePlugin.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotePlugin.es.js","sources":["../../../../../src/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport type { CSSProperties } from 'react';\nimport {\n MarkupElement,\n Plugin,\n PluginProps,\n TextStyleRenderElementProps,\n alignmentClassnames,\n getColumnBreakClasses,\n merge,\n} from '@frontify/fondue';\nimport { BlockStyles, TextStyles } from '../styles';\n\nconst ID = 'textstyle-quote-plugin';\n\nexport class QuotePlugin extends Plugin {\n public styles: CSSProperties = {};\n constructor({ styles = BlockStyles.quote, ...props }: PluginProps = {}) {\n super(TextStyles.quote, {\n label: 'Quote',\n markupElement: new QuoteMarkupElement(),\n ...props,\n });\n this.styles = styles;\n }\n\n plugins() {\n return [createQuotePlugin(this.styles)];\n }\n}\n\nclass QuoteMarkupElement extends MarkupElement {\n constructor(id = ID, node = QuoteMarkupElementNode) {\n super(id, node);\n }\n}\n\nexport const QuoteMarkupElementNode = ({ element, attributes, children, styles }: TextStyleRenderElementProps) => {\n const align = element.align as string;\n return (\n <blockquote\n {...attributes}\n className={merge([align && alignmentClassnames[align], getColumnBreakClasses(element)])}\n style={styles}\n >\n {children}\n </blockquote>\n );\n};\n\nexport const createQuotePlugin = (styles: CSSProperties) =>\n createPluginFactory({\n key: TextStyles.quote,\n isElement: true,\n component: QuoteMarkupElementNode,\n deserializeHtml: {\n rules: [{ validNodeName: ['blockquote', 'BLOCKQUOTE'] }],\n },\n })({\n component: (props: TextStyleRenderElementProps) => <QuoteMarkupElementNode {...props} styles={styles} />,\n });\n"],"names":["ID","QuotePlugin","Plugin","styles","BlockStyles","props","TextStyles","QuoteMarkupElement","__publicField","createQuotePlugin","MarkupElement","id","node","QuoteMarkupElementNode","element","attributes","children","align","jsx","merge","alignmentClassnames","getColumnBreakClasses","createPluginFactory"],"mappings":";;;;;;;AAeA,MAAMA,IAAK;AAEJ,MAAMC,UAAoBC,EAAO;AAAA,EAEpC,YAAY,EAAE,QAAAC,IAASC,EAAY,OAAO,GAAGC,EAAuB,IAAA,IAAI;AACpE,UAAMC,EAAW,OAAO;AAAA,MACpB,OAAO;AAAA,MACP,eAAe,IAAIC,EAAmB;AAAA,MACtC,GAAGF;AAAA,IAAA,CACN;AANE,IAAAG,EAAA,gBAAwB,CAAA;AAO3B,SAAK,SAASL;AAAA,EAClB;AAAA,EAEA,UAAU;AACN,WAAO,CAACM,EAAkB,KAAK,MAAM,CAAC;AAAA,EAC1C;AACJ;AAEA,MAAMF,UAA2BG,EAAc;AAAA,EAC3C,YAAYC,IAAKX,GAAIY,IAAOC,GAAwB;AAChD,UAAMF,GAAIC,CAAI;AAAA,EAClB;AACJ;AAEO,MAAMC,IAAyB,CAAC,EAAE,SAAAC,GAAS,YAAAC,GAAY,UAAAC,GAAU,QAAAb,QAA0C;AAC9G,QAAMc,IAAQH,EAAQ;AAElB,SAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGH;AAAA,MACJ,WAAWI,EAAM,CAACF,KAASG,EAAoBH,CAAK,GAAGI,EAAsBP,CAAO,CAAC,CAAC;AAAA,MACtF,OAAOX;AAAA,MAEN,UAAAa;AAAA,IAAA;AAAA,EAAA;AAGb,GAEaP,IAAoB,CAACN,MAC9BmB,EAAoB;AAAA,EAChB,KAAKhB,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAWO;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,eAAe,CAAC,cAAc,YAAY,GAAG;AAAA,EAC3D;AACJ,CAAC,EAAE;AAAA,EACC,WAAW,CAACR,wBAAwCQ,GAAwB,EAAA,GAAGR,GAAO,QAAAF,GAAgB;AAC1G,CAAC;"}
@@ -0,0 +1,167 @@
1
+ import { LINK_PLUGIN as e } from "./LinkPlugin/id.es.js";
2
+ import { BlockButtonStyles as i } from "./ButtonPlugin/utils/styles.es.js";
3
+ var n = /* @__PURE__ */ ((t) => (t.heading1 = "heading1", t.heading2 = "heading2", t.heading3 = "heading3", t.heading4 = "heading4", t.custom1 = "custom1", t.custom2 = "custom2", t.custom3 = "custom3", t.quote = "quote", t.imageCaption = "imageCaption", t.imageTitle = "imageTitle", t.p = "p", t))(n || {});
4
+ const s = {
5
+ heading1: {
6
+ fontSize: "var(--f-theme-settings-heading1-font-size)",
7
+ lineHeight: "var(--f-theme-settings-heading1-line-height)",
8
+ marginTop: "var(--f-theme-settings-heading1-margin-top)",
9
+ marginBottom: "var(--f-theme-settings-heading1-margin-bottom)",
10
+ textDecoration: "var(--f-theme-settings-heading1-text-decoration)",
11
+ fontStyle: "var(--f-theme-settings-heading1-font-style)",
12
+ textTransform: "var(--f-theme-settings-heading1-text-transform)",
13
+ letterSpacing: "var(--f-theme-settings-heading1-letter-spacing)",
14
+ fontWeight: "var(--f-theme-settings-heading1-font-weight)",
15
+ fontFamily: "var(--f-theme-settings-heading1-font-family)",
16
+ color: "var(--f-theme-settings-heading1-color)"
17
+ },
18
+ heading2: {
19
+ fontSize: "var(--f-theme-settings-heading2-font-size)",
20
+ lineHeight: "var(--f-theme-settings-heading2-line-height)",
21
+ marginTop: "var(--f-theme-settings-heading2-margin-top)",
22
+ marginBottom: "var(--f-theme-settings-heading2-margin-bottom)",
23
+ textDecoration: "var(--f-theme-settings-heading2-text-decoration)",
24
+ fontStyle: "var(--f-theme-settings-heading2-font-style)",
25
+ textTransform: "var(--f-theme-settings-heading2-text-transform)",
26
+ letterSpacing: "var(--f-theme-settings-heading2-letter-spacing)",
27
+ fontWeight: "var(--f-theme-settings-heading2-font-weight)",
28
+ fontFamily: "var(--f-theme-settings-heading2-font-family)",
29
+ color: "var(--f-theme-settings-heading2-color)"
30
+ },
31
+ heading3: {
32
+ fontSize: "var(--f-theme-settings-heading3-font-size)",
33
+ lineHeight: "var(--f-theme-settings-heading3-line-height)",
34
+ marginTop: "var(--f-theme-settings-heading3-margin-top)",
35
+ marginBottom: "var(--f-theme-settings-heading3-margin-bottom)",
36
+ textDecoration: "var(--f-theme-settings-heading3-text-decoration)",
37
+ fontStyle: "var(--f-theme-settings-heading3-font-style)",
38
+ textTransform: "var(--f-theme-settings-heading3-text-transform)",
39
+ letterSpacing: "var(--f-theme-settings-heading3-letter-spacing)",
40
+ fontWeight: "var(--f-theme-settings-heading3-font-weight)",
41
+ fontFamily: "var(--f-theme-settings-heading3-font-family)",
42
+ color: "var(--f-theme-settings-heading3-color)"
43
+ },
44
+ heading4: {
45
+ fontSize: "var(--f-theme-settings-heading4-font-size)",
46
+ lineHeight: "var(--f-theme-settings-heading4-line-height)",
47
+ marginTop: "var(--f-theme-settings-heading4-margin-top)",
48
+ marginBottom: "var(--f-theme-settings-heading4-margin-bottom)",
49
+ textDecoration: "var(--f-theme-settings-heading4-text-decoration)",
50
+ fontStyle: "var(--f-theme-settings-heading4-font-style)",
51
+ textTransform: "var(--f-theme-settings-heading4-text-transform)",
52
+ letterSpacing: "var(--f-theme-settings-heading4-letter-spacing)",
53
+ fontWeight: "var(--f-theme-settings-heading4-font-weight)",
54
+ fontFamily: "var(--f-theme-settings-heading4-font-family)",
55
+ color: "var(--f-theme-settings-heading4-color)"
56
+ },
57
+ custom1: {
58
+ fontSize: "var(--f-theme-settings-custom1-font-size)",
59
+ lineHeight: "var(--f-theme-settings-custom1-line-height)",
60
+ marginTop: "var(--f-theme-settings-custom1-margin-top)",
61
+ marginBottom: "var(--f-theme-settings-custom1-margin-bottom)",
62
+ textDecoration: "var(--f-theme-settings-custom1-text-decoration)",
63
+ fontStyle: "var(--f-theme-settings-custom1-font-style)",
64
+ textTransform: "var(--f-theme-settings-custom1-text-transform)",
65
+ letterSpacing: "var(--f-theme-settings-custom1-letter-spacing)",
66
+ fontWeight: "var(--f-theme-settings-custom1-font-weight)",
67
+ fontFamily: "var(--f-theme-settings-custom1-font-family)",
68
+ color: "var(--f-theme-settings-custom1-color)"
69
+ },
70
+ custom2: {
71
+ fontSize: "var(--f-theme-settings-custom2-font-size)",
72
+ lineHeight: "var(--f-theme-settings-custom2-line-height)",
73
+ marginTop: "var(--f-theme-settings-custom2-margin-top)",
74
+ marginBottom: "var(--f-theme-settings-custom2-margin-bottom)",
75
+ textDecoration: "var(--f-theme-settings-custom2-text-decoration)",
76
+ fontStyle: "var(--f-theme-settings-custom2-font-style)",
77
+ textTransform: "var(--f-theme-settings-custom2-text-transform)",
78
+ letterSpacing: "var(--f-theme-settings-custom2-letter-spacing)",
79
+ fontWeight: "var(--f-theme-settings-custom2-font-weight)",
80
+ fontFamily: "var(--f-theme-settings-custom2-font-family)",
81
+ color: "var(--f-theme-settings-custom2-color)"
82
+ },
83
+ custom3: {
84
+ fontSize: "var(--f-theme-settings-custom3-font-size)",
85
+ lineHeight: "var(--f-theme-settings-custom3-line-height)",
86
+ marginTop: "var(--f-theme-settings-custom3-margin-top)",
87
+ marginBottom: "var(--f-theme-settings-custom3-margin-bottom)",
88
+ textDecoration: "var(--f-theme-settings-custom3-text-decoration)",
89
+ fontStyle: "var(--f-theme-settings-custom3-font-style)",
90
+ textTransform: "var(--f-theme-settings-custom3-text-transform)",
91
+ letterSpacing: "var(--f-theme-settings-custom3-letter-spacing)",
92
+ fontWeight: "var(--f-theme-settings-custom3-font-weight)",
93
+ fontFamily: "var(--f-theme-settings-custom3-font-family)",
94
+ color: "var(--f-theme-settings-custom3-color)"
95
+ },
96
+ p: {
97
+ fontSize: "var(--f-theme-settings-body-font-size)",
98
+ lineHeight: "var(--f-theme-settings-body-line-height)",
99
+ marginTop: "var(--f-theme-settings-body-margin-top)",
100
+ marginBottom: "var(--f-theme-settings-body-margin-bottom)",
101
+ textDecoration: "var(--f-theme-settings-body-text-decoration)",
102
+ fontStyle: "var(--f-theme-settings-body-font-style)",
103
+ textTransform: "var(--f-theme-settings-body-text-transform)",
104
+ letterSpacing: "var(--f-theme-settings-body-letter-spacing)",
105
+ fontWeight: "var(--f-theme-settings-body-font-weight)",
106
+ fontFamily: "var(--f-theme-settings-body-font-family)",
107
+ color: "var(--f-theme-settings-body-color)"
108
+ },
109
+ quote: {
110
+ fontSize: "var(--f-theme-settings-quote-font-size)",
111
+ lineHeight: "var(--f-theme-settings-quote-line-height)",
112
+ marginTop: "var(--f-theme-settings-quote-margin-top)",
113
+ marginBottom: "var(--f-theme-settings-quote-margin-bottom)",
114
+ textDecoration: "var(--f-theme-settings-quote-text-decoration)",
115
+ fontStyle: "var(--f-theme-settings-quote-font-style)",
116
+ textTransform: "var(--f-theme-settings-quote-text-transform)",
117
+ letterSpacing: "var(--f-theme-settings-quote-letter-spacing)",
118
+ fontWeight: "var(--f-theme-settings-quote-font-weight)",
119
+ fontFamily: "var(--f-theme-settings-quote-font-family)",
120
+ color: "var(--f-theme-settings-quote-color)"
121
+ },
122
+ imageCaption: {
123
+ fontSize: "var(--f-theme-settings-image-caption-font-size)",
124
+ lineHeight: "var(--f-theme-settings-image-caption-line-height)",
125
+ marginTop: "var(--f-theme-settings-image-caption-margin-top)",
126
+ marginBottom: "var(--f-theme-settings-image-caption-margin-bottom)",
127
+ textDecoration: "var(--f-theme-settings-image-caption-text-decoration)",
128
+ fontStyle: "var(--f-theme-settings-image-caption-font-style)",
129
+ textTransform: "var(--f-theme-settings-image-caption-text-transform)",
130
+ letterSpacing: "var(--f-theme-settings-image-caption-letter-spacing)",
131
+ fontWeight: "var(--f-theme-settings-image-caption-font-weight)",
132
+ fontFamily: "var(--f-theme-settings-image-caption-font-family)",
133
+ color: "var(--f-theme-settings-image-caption-color)"
134
+ },
135
+ imageTitle: {
136
+ fontSize: "var(--f-theme-settings-image-title-font-size)",
137
+ lineHeight: "var(--f-theme-settings-image-title-line-height)",
138
+ marginTop: "var(--f-theme-settings-image-title-margin-top)",
139
+ marginBottom: "var(--f-theme-settings-image-title-margin-bottom)",
140
+ textDecoration: "var(--f-theme-settings-image-title-text-decoration)",
141
+ fontStyle: "var(--f-theme-settings-image-title-font-style)",
142
+ textTransform: "var(--f-theme-settings-image-title-text-transform)",
143
+ letterSpacing: "var(--f-theme-settings-image-title-letter-spacing)",
144
+ fontWeight: "var(--f-theme-settings-image-title-font-weight)",
145
+ fontFamily: "var(--f-theme-settings-image-title-font-family)",
146
+ color: "var(--f-theme-settings-image-title-color)"
147
+ },
148
+ [e]: {
149
+ fontSize: "var(--f-theme-settings-link-font-size)",
150
+ lineHeight: "var(--f-theme-settings-link-line-height)",
151
+ marginTop: "var(--f-theme-settings-link-margin-top)",
152
+ marginBottom: "var(--f-theme-settings-link-margin-bottom)",
153
+ textDecoration: "var(--f-theme-settings-link-text-decoration)",
154
+ fontStyle: "var(--f-theme-settings-link-font-style)",
155
+ textTransform: "var(--f-theme-settings-link-text-transform)",
156
+ letterSpacing: "var(--f-theme-settings-link-letter-spacing)",
157
+ fontWeight: "var(--f-theme-settings-link-font-weight)",
158
+ fontFamily: "var(--f-theme-settings-link-font-family)",
159
+ color: "var(--f-theme-settings-link-color)"
160
+ },
161
+ ...i
162
+ };
163
+ export {
164
+ s as BlockStyles,
165
+ n as TextStyles
166
+ };
167
+ //# sourceMappingURL=styles.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.es.js","sources":["../../../../src/components/RichTextEditor/plugins/styles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport type { CSSProperties } from 'react';\nimport { LINK_PLUGIN } from './LinkPlugin/id';\nimport { BlockButtonStyles } from './ButtonPlugin';\n\nexport enum TextStyles {\n heading1 = 'heading1',\n heading2 = 'heading2',\n heading3 = 'heading3',\n heading4 = 'heading4',\n custom1 = 'custom1',\n custom2 = 'custom2',\n custom3 = 'custom3',\n quote = 'quote',\n imageCaption = 'imageCaption',\n imageTitle = 'imageTitle',\n p = 'p',\n}\nexport const BlockStyles: Record<string, CSSProperties & { hover?: CSSProperties }> = {\n [TextStyles.heading1]: {\n fontSize: 'var(--f-theme-settings-heading1-font-size)',\n lineHeight: 'var(--f-theme-settings-heading1-line-height)',\n marginTop: 'var(--f-theme-settings-heading1-margin-top)',\n marginBottom: 'var(--f-theme-settings-heading1-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-heading1-text-decoration)',\n fontStyle: 'var(--f-theme-settings-heading1-font-style)',\n textTransform: 'var(--f-theme-settings-heading1-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-heading1-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-heading1-font-weight)',\n fontFamily: 'var(--f-theme-settings-heading1-font-family)',\n color: 'var(--f-theme-settings-heading1-color)',\n },\n [TextStyles.heading2]: {\n fontSize: 'var(--f-theme-settings-heading2-font-size)',\n lineHeight: 'var(--f-theme-settings-heading2-line-height)',\n marginTop: 'var(--f-theme-settings-heading2-margin-top)',\n marginBottom: 'var(--f-theme-settings-heading2-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-heading2-text-decoration)',\n fontStyle: 'var(--f-theme-settings-heading2-font-style)',\n textTransform: 'var(--f-theme-settings-heading2-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-heading2-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-heading2-font-weight)',\n fontFamily: 'var(--f-theme-settings-heading2-font-family)',\n color: 'var(--f-theme-settings-heading2-color)',\n },\n [TextStyles.heading3]: {\n fontSize: 'var(--f-theme-settings-heading3-font-size)',\n lineHeight: 'var(--f-theme-settings-heading3-line-height)',\n marginTop: 'var(--f-theme-settings-heading3-margin-top)',\n marginBottom: 'var(--f-theme-settings-heading3-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-heading3-text-decoration)',\n fontStyle: 'var(--f-theme-settings-heading3-font-style)',\n textTransform: 'var(--f-theme-settings-heading3-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-heading3-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-heading3-font-weight)',\n fontFamily: 'var(--f-theme-settings-heading3-font-family)',\n color: 'var(--f-theme-settings-heading3-color)',\n },\n [TextStyles.heading4]: {\n fontSize: 'var(--f-theme-settings-heading4-font-size)',\n lineHeight: 'var(--f-theme-settings-heading4-line-height)',\n marginTop: 'var(--f-theme-settings-heading4-margin-top)',\n marginBottom: 'var(--f-theme-settings-heading4-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-heading4-text-decoration)',\n fontStyle: 'var(--f-theme-settings-heading4-font-style)',\n textTransform: 'var(--f-theme-settings-heading4-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-heading4-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-heading4-font-weight)',\n fontFamily: 'var(--f-theme-settings-heading4-font-family)',\n color: 'var(--f-theme-settings-heading4-color)',\n },\n [TextStyles.custom1]: {\n fontSize: 'var(--f-theme-settings-custom1-font-size)',\n lineHeight: 'var(--f-theme-settings-custom1-line-height)',\n marginTop: 'var(--f-theme-settings-custom1-margin-top)',\n marginBottom: 'var(--f-theme-settings-custom1-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-custom1-text-decoration)',\n fontStyle: 'var(--f-theme-settings-custom1-font-style)',\n textTransform: 'var(--f-theme-settings-custom1-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-custom1-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-custom1-font-weight)',\n fontFamily: 'var(--f-theme-settings-custom1-font-family)',\n color: 'var(--f-theme-settings-custom1-color)',\n },\n [TextStyles.custom2]: {\n fontSize: 'var(--f-theme-settings-custom2-font-size)',\n lineHeight: 'var(--f-theme-settings-custom2-line-height)',\n marginTop: 'var(--f-theme-settings-custom2-margin-top)',\n marginBottom: 'var(--f-theme-settings-custom2-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-custom2-text-decoration)',\n fontStyle: 'var(--f-theme-settings-custom2-font-style)',\n textTransform: 'var(--f-theme-settings-custom2-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-custom2-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-custom2-font-weight)',\n fontFamily: 'var(--f-theme-settings-custom2-font-family)',\n color: 'var(--f-theme-settings-custom2-color)',\n },\n [TextStyles.custom3]: {\n fontSize: 'var(--f-theme-settings-custom3-font-size)',\n lineHeight: 'var(--f-theme-settings-custom3-line-height)',\n marginTop: 'var(--f-theme-settings-custom3-margin-top)',\n marginBottom: 'var(--f-theme-settings-custom3-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-custom3-text-decoration)',\n fontStyle: 'var(--f-theme-settings-custom3-font-style)',\n textTransform: 'var(--f-theme-settings-custom3-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-custom3-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-custom3-font-weight)',\n fontFamily: 'var(--f-theme-settings-custom3-font-family)',\n color: 'var(--f-theme-settings-custom3-color)',\n },\n [TextStyles.p]: {\n fontSize: 'var(--f-theme-settings-body-font-size)',\n lineHeight: 'var(--f-theme-settings-body-line-height)',\n marginTop: 'var(--f-theme-settings-body-margin-top)',\n marginBottom: 'var(--f-theme-settings-body-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-body-text-decoration)',\n fontStyle: 'var(--f-theme-settings-body-font-style)',\n textTransform: 'var(--f-theme-settings-body-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-body-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-body-font-weight)',\n fontFamily: 'var(--f-theme-settings-body-font-family)',\n color: 'var(--f-theme-settings-body-color)',\n },\n [TextStyles.quote]: {\n fontSize: 'var(--f-theme-settings-quote-font-size)',\n lineHeight: 'var(--f-theme-settings-quote-line-height)',\n marginTop: 'var(--f-theme-settings-quote-margin-top)',\n marginBottom: 'var(--f-theme-settings-quote-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-quote-text-decoration)',\n fontStyle: 'var(--f-theme-settings-quote-font-style)',\n textTransform: 'var(--f-theme-settings-quote-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-quote-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-quote-font-weight)',\n fontFamily: 'var(--f-theme-settings-quote-font-family)',\n color: 'var(--f-theme-settings-quote-color)',\n },\n [TextStyles.imageCaption]: {\n fontSize: 'var(--f-theme-settings-image-caption-font-size)',\n lineHeight: 'var(--f-theme-settings-image-caption-line-height)',\n marginTop: 'var(--f-theme-settings-image-caption-margin-top)',\n marginBottom: 'var(--f-theme-settings-image-caption-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-image-caption-text-decoration)',\n fontStyle: 'var(--f-theme-settings-image-caption-font-style)',\n textTransform: 'var(--f-theme-settings-image-caption-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-image-caption-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-image-caption-font-weight)',\n fontFamily: 'var(--f-theme-settings-image-caption-font-family)',\n color: 'var(--f-theme-settings-image-caption-color)',\n },\n [TextStyles.imageTitle]: {\n fontSize: 'var(--f-theme-settings-image-title-font-size)',\n lineHeight: 'var(--f-theme-settings-image-title-line-height)',\n marginTop: 'var(--f-theme-settings-image-title-margin-top)',\n marginBottom: 'var(--f-theme-settings-image-title-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-image-title-text-decoration)',\n fontStyle: 'var(--f-theme-settings-image-title-font-style)',\n textTransform: 'var(--f-theme-settings-image-title-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-image-title-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-image-title-font-weight)',\n fontFamily: 'var(--f-theme-settings-image-title-font-family)',\n color: 'var(--f-theme-settings-image-title-color)',\n },\n [LINK_PLUGIN]: {\n fontSize: 'var(--f-theme-settings-link-font-size)',\n lineHeight: 'var(--f-theme-settings-link-line-height)',\n marginTop: 'var(--f-theme-settings-link-margin-top)',\n marginBottom: 'var(--f-theme-settings-link-margin-bottom)',\n textDecoration: 'var(--f-theme-settings-link-text-decoration)',\n fontStyle: 'var(--f-theme-settings-link-font-style)',\n textTransform: 'var(--f-theme-settings-link-text-transform)' as CSSProperties['textTransform'],\n letterSpacing: 'var(--f-theme-settings-link-letter-spacing)',\n fontWeight: 'var(--f-theme-settings-link-font-weight)',\n fontFamily: 'var(--f-theme-settings-link-font-family)',\n color: 'var(--f-theme-settings-link-color)',\n },\n ...BlockButtonStyles,\n};\n"],"names":["TextStyles","BlockStyles","LINK_PLUGIN","BlockButtonStyles"],"mappings":";;AAMY,IAAAA,sBAAAA,OACRA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,UAAU,WACVA,EAAA,QAAQ,SACRA,EAAA,eAAe,gBACfA,EAAA,aAAa,cACbA,EAAA,IAAI,KAXIA,IAAAA,KAAA,CAAA,CAAA;AAaL,MAAMC,IAAyE;AAAA,EACjF,UAAsB;AAAA,IACnB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,UAAsB;AAAA,IACnB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,UAAsB;AAAA,IACnB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,UAAsB;AAAA,IACnB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,SAAqB;AAAA,IAClB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,SAAqB;AAAA,IAClB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,SAAqB;AAAA,IAClB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,GAAe;AAAA,IACZ,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,OAAmB;AAAA,IAChB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,cAA0B;AAAA,IACvB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACC,YAAwB;AAAA,IACrB,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACA,CAACC,CAAW,GAAG;AAAA,IACX,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,cAAc;AAAA,IACd,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,EACX;AAAA,EACA,GAAGC;AACP;"}
@@ -0,0 +1,14 @@
1
+ import { relativeUrlRegex as e } from "../components/Link/utils/relativeUrlRegex.es.js";
2
+ const n = (t) => {
3
+ if (e.test(t))
4
+ return t;
5
+ try {
6
+ return new URL(t), t;
7
+ } catch {
8
+ return `https://${t}`;
9
+ }
10
+ };
11
+ export {
12
+ n as addHttps
13
+ };
14
+ //# sourceMappingURL=addHttps.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addHttps.es.js","sources":["../../src/helpers/addHttps.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { relativeUrlRegex } from '../components/Link/utils';\n\nexport const addHttps = (url: string) => {\n if (relativeUrlRegex.test(url)) {\n return url;\n }\n try {\n new URL(url);\n return url;\n } catch {\n return `https://${url}`;\n }\n};\n"],"names":["addHttps","url","relativeUrlRegex"],"mappings":";AAIa,MAAAA,IAAW,CAACC,MAAgB;AACjC,MAAAC,EAAiB,KAAKD,CAAG;AAClB,WAAAA;AAEP,MAAA;AACA,eAAI,IAAIA,CAAG,GACJA;AAAA,EAAA,QACH;AACJ,WAAO,WAAWA,CAAG;AAAA,EACzB;AACJ;"}
@@ -0,0 +1,6 @@
1
+ import { hasRichTextValue as c } from "./hasRichTextValue.es.js";
2
+ const n = (r = "p", o = "", i) => c(o) ? o : JSON.stringify([{ type: r, children: [{ text: o, textStyle: r }], align: i }]);
3
+ export {
4
+ n as convertToRteValue
5
+ };
6
+ //# sourceMappingURL=convertToRichTextValue.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertToRichTextValue.es.js","sources":["../../src/helpers/convertToRichTextValue.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { hasRichTextValue } from './hasRichTextValue';\n\nexport const convertToRteValue = (textStyle = 'p', text = '', align?: 'center' | 'right' | 'left' | 'justify') =>\n hasRichTextValue(text) ? text : JSON.stringify([{ type: textStyle, children: [{ text, textStyle }], align }]);\n"],"names":["convertToRteValue","textStyle","text","align","hasRichTextValue"],"mappings":";AAIa,MAAAA,IAAoB,CAACC,IAAY,KAAKC,IAAO,IAAIC,MAC1DC,EAAiBF,CAAI,IAAIA,IAAO,KAAK,UAAU,CAAC,EAAE,MAAMD,GAAW,UAAU,CAAC,EAAE,MAAAC,GAAM,WAAAD,EAAA,CAAW,GAAG,OAAAE,GAAO,CAAC;"}
@@ -0,0 +1,32 @@
1
+ import { KeyboardCode as h } from "@dnd-kit/core";
2
+ const w = [h.Down, h.Right, h.Up, h.Left], m = (x, y) => (t, { currentCoordinates: f, context: { activeNode: s } }) => {
3
+ if (t.preventDefault(), w.includes(t.code)) {
4
+ const g = (s == null ? void 0 : s.offsetWidth) ?? 0, p = (s == null ? void 0 : s.offsetHeight) ?? 0;
5
+ switch (t.code) {
6
+ case h.Right:
7
+ return {
8
+ ...f,
9
+ x: f.x + g + x
10
+ };
11
+ case h.Left:
12
+ return {
13
+ ...f,
14
+ x: f.x - g - x
15
+ };
16
+ case h.Down:
17
+ return {
18
+ ...f,
19
+ y: f.y + p + y
20
+ };
21
+ case h.Up:
22
+ return {
23
+ ...f,
24
+ y: f.y - p - y
25
+ };
26
+ }
27
+ }
28
+ };
29
+ export {
30
+ m as customCoordinatesGetterFactory
31
+ };
32
+ //# sourceMappingURL=customCoordinatesGetterFactory.es.js.map