@frontify/guideline-blocks-settings 0.28.1 → 0.28.3

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 (248) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/components/Attachments/AttachmentItem.es.js +78 -78
  3. package/dist/components/Attachments/AttachmentItem.es.js.map +1 -1
  4. package/dist/components/Attachments/Attachments.es.js +86 -86
  5. package/dist/components/Attachments/Attachments.es.js.map +1 -1
  6. package/dist/components/BlockInjectButton/BlockInjectButton.es.js +68 -68
  7. package/dist/components/BlockInjectButton/BlockInjectButton.es.js.map +1 -1
  8. package/dist/components/BlockItemWrapper/BlockItemWrapper.es.js +34 -34
  9. package/dist/components/BlockItemWrapper/BlockItemWrapper.es.js.map +1 -1
  10. package/dist/components/BlockItemWrapper/Toolbar.es.js +33 -33
  11. package/dist/components/BlockItemWrapper/Toolbar.es.js.map +1 -1
  12. package/dist/components/DownloadButton/DownloadButton.es.js +12 -12
  13. package/dist/components/DownloadButton/DownloadButton.es.js.map +1 -1
  14. package/dist/components/RichTextEditor/RichTextEditor.es.js +22 -22
  15. package/dist/components/RichTextEditor/RichTextEditor.es.js.map +1 -1
  16. package/dist/components/RichTextEditor/SerializedText.es.js +8 -8
  17. package/dist/components/RichTextEditor/SerializedText.es.js.map +1 -1
  18. package/dist/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js.map +1 -1
  19. package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js +13 -13
  20. package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js.map +1 -1
  21. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.es.js +8 -8
  22. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.es.js.map +1 -1
  23. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.es.js +6 -6
  24. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.es.js.map +1 -1
  25. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.es.js +10 -10
  26. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.es.js.map +1 -1
  27. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js +13 -13
  28. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js.map +1 -1
  29. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonEditButton.es.js +10 -10
  30. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonEditButton.es.js.map +1 -1
  31. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonUrlInput.es.js +13 -13
  32. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonUrlInput.es.js.map +1 -1
  33. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js +19 -19
  34. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js.map +1 -1
  35. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js +30 -30
  36. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js.map +1 -1
  37. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/UnlinkButton.es.js +7 -7
  38. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/UnlinkButton.es.js.map +1 -1
  39. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js +30 -30
  40. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js.map +1 -1
  41. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.es.js.map +1 -1
  42. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.es.js.map +1 -1
  43. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js +8 -8
  44. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js.map +1 -1
  45. package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js.map +1 -1
  46. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js.map +1 -1
  47. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js.map +1 -1
  48. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js.map +1 -1
  49. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js.map +1 -1
  50. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js.map +1 -1
  51. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js.map +1 -1
  52. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js.map +1 -1
  53. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js.map +1 -1
  54. package/dist/components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js.map +1 -1
  55. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js +11 -11
  56. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js.map +1 -1
  57. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js +15 -15
  58. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js.map +1 -1
  59. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/useFloatingLinkEdit.es.js +30 -30
  60. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/useFloatingLinkEdit.es.js.map +1 -1
  61. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js +3 -3
  62. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js.map +1 -1
  63. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js +40 -40
  64. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js.map +1 -1
  65. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useFloatingLinkInsert.es.js +7 -7
  66. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useFloatingLinkInsert.es.js.map +1 -1
  67. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js +29 -29
  68. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js.map +1 -1
  69. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js +10 -10
  70. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js.map +1 -1
  71. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js +4 -4
  72. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js.map +1 -1
  73. package/dist/components/RichTextEditor/plugins/LinkPlugin/index.es.js.map +1 -1
  74. package/dist/components/RichTextEditor/plugins/LinkPlugin/utils/url.es.js.map +1 -1
  75. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js +14 -14
  76. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js.map +1 -1
  77. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js +14 -14
  78. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js.map +1 -1
  79. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js +14 -14
  80. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js.map +1 -1
  81. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js +20 -20
  82. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js.map +1 -1
  83. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js +17 -17
  84. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js.map +1 -1
  85. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js +17 -17
  86. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js.map +1 -1
  87. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js +17 -17
  88. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js.map +1 -1
  89. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js +18 -18
  90. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js.map +1 -1
  91. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js +16 -16
  92. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js.map +1 -1
  93. package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js +19 -19
  94. package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js.map +1 -1
  95. package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js +15 -15
  96. package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js.map +1 -1
  97. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/DocumentLink.es.js +34 -34
  98. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/DocumentLink.es.js.map +1 -1
  99. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/DocumentLinks.es.js +28 -28
  100. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/DocumentLinks.es.js.map +1 -1
  101. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/LinkSelector.es.js +36 -36
  102. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/LinkSelector.es.js.map +1 -1
  103. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/PageLink.es.js +30 -30
  104. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/PageLink.es.js.map +1 -1
  105. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/PageLinks.es.js +17 -17
  106. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/PageLinks.es.js.map +1 -1
  107. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/SectionLink.es.js +14 -14
  108. package/dist/components/RichTextEditor/plugins/shared/LinkSelector/SectionLink.es.js.map +1 -1
  109. package/dist/components/RichTextEditor/plugins/styles.es.js.map +1 -1
  110. package/dist/components/RichTextEditor/serializer/nodes/button.es.js.map +1 -1
  111. package/dist/components/RichTextEditor/serializer/nodes/checkItemNode.es.js.map +1 -1
  112. package/dist/components/RichTextEditor/serializer/nodes/default.es.js +1 -1
  113. package/dist/components/RichTextEditor/serializer/nodes/default.es.js.map +1 -1
  114. package/dist/components/RichTextEditor/serializer/nodes/link.es.js +5 -5
  115. package/dist/components/RichTextEditor/serializer/nodes/link.es.js.map +1 -1
  116. package/dist/components/RichTextEditor/serializer/nodes/mentionHtmlNode.es.js +1 -1
  117. package/dist/components/RichTextEditor/serializer/serializeNodesToHtmlRecursive.es.js.map +1 -1
  118. package/dist/components/RichTextEditor/serializer/serializeToHtml.es.js.map +1 -1
  119. package/dist/components/RichTextEditor/serializer/utlis/reactCssPropsToCss.es.js.map +1 -1
  120. package/dist/components/RichTextEditor/serializer/utlis/serializeLeafToHtml.es.js.map +1 -1
  121. package/dist/helpers/addHttps.es.js.map +1 -1
  122. package/dist/helpers/customCoordinatesGetterFactory.es.js.map +1 -1
  123. package/dist/helpers/hasRichTextValue.es.js.map +1 -1
  124. package/dist/hooks/useAttachments.es.js.map +1 -1
  125. package/dist/hooks/useDndSensors.es.js.map +1 -1
  126. package/dist/index.cjs.js +13 -246
  127. package/dist/index.cjs.js.map +1 -1
  128. package/dist/index.d.ts +12 -10
  129. package/dist/index.es.js +1 -1
  130. package/dist/index.es.js.map +1 -1
  131. package/dist/index.umd.js +13 -246
  132. package/dist/index.umd.js.map +1 -1
  133. package/dist/settings/background.es.js.map +1 -1
  134. package/dist/settings/border.es.js +1 -1
  135. package/dist/settings/border.es.js.map +1 -1
  136. package/dist/settings/borderRadius.es.js +1 -1
  137. package/dist/settings/borderRadius.es.js.map +1 -1
  138. package/dist/settings/borderRadiusExtended.es.js +1 -1
  139. package/dist/settings/borderRadiusExtended.es.js.map +1 -1
  140. package/dist/settings/gutter.es.js +1 -1
  141. package/dist/settings/margin.es.js +1 -1
  142. package/dist/settings/margin.es.js.map +1 -1
  143. package/dist/settings/marginExtended.es.js +1 -1
  144. package/dist/settings/marginExtended.es.js.map +1 -1
  145. package/dist/settings/padding.es.js +1 -1
  146. package/dist/settings/padding.es.js.map +1 -1
  147. package/dist/settings/paddingExtended.es.js +1 -1
  148. package/dist/settings/paddingExtended.es.js.map +1 -1
  149. package/dist/settings/securityGlobalControl.es.js +1 -1
  150. package/dist/styles.css +1 -0
  151. package/dist/styles.css.es.js +5 -0
  152. package/dist/styles.css.es.js.map +1 -0
  153. package/dist/utilities/moveItemInArray.es.js.map +1 -1
  154. package/dist/utilities/react/getBackgroundColorStyles.es.js.map +1 -1
  155. package/dist/utilities/react/getBorderStyles.es.js.map +1 -1
  156. package/dist/utilities/react/getRadiusStyles.es.js.map +1 -1
  157. package/package.json +26 -24
  158. package/src/components/Attachments/AttachmentItem.tsx +2 -2
  159. package/src/components/Attachments/Attachments.spec.ct.tsx +4 -4
  160. package/src/components/Attachments/Attachments.tsx +2 -2
  161. package/src/components/BlockInjectButton/BlockInjectButton.spec.ct.tsx +2 -2
  162. package/src/components/BlockItemWrapper/BlockItemWrapper.spec.ct.tsx +8 -8
  163. package/src/components/BlockItemWrapper/Toolbar.tsx +1 -1
  164. package/src/components/RichTextEditor/RichTextEditor.spec.ct.tsx +8 -8
  165. package/src/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.tsx +2 -2
  166. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.tsx +1 -1
  167. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonUrlInput.tsx +1 -1
  168. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.ts +1 -1
  169. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.ts +1 -1
  170. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.ts +1 -1
  171. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.ts +1 -1
  172. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.ts +1 -1
  173. package/src/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.ts +3 -1
  174. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.ts +2 -2
  175. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.ts +1 -1
  176. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.ts +5 -5
  177. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.ts +2 -2
  178. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.ts +1 -1
  179. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.ts +1 -1
  180. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.ts +1 -1
  181. package/src/components/RichTextEditor/plugins/ButtonPlugin/withButton.ts +1 -1
  182. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/useFloatingLinkEdit.ts +1 -1
  183. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.tsx +2 -2
  184. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useFloatingLinkInsert.ts +1 -1
  185. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.ts +1 -1
  186. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkButton.tsx +1 -1
  187. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.tsx +1 -1
  188. package/src/components/RichTextEditor/plugins/LinkPlugin/index.ts +2 -1
  189. package/src/components/RichTextEditor/plugins/LinkPlugin/utils/relativeUrlRegex.spec.ts +24 -27
  190. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.tsx +1 -1
  191. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.tsx +1 -1
  192. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.tsx +1 -1
  193. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.tsx +1 -1
  194. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.tsx +1 -1
  195. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.tsx +1 -1
  196. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.tsx +1 -1
  197. package/src/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.tsx +1 -1
  198. package/src/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.tsx +1 -1
  199. package/src/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.tsx +1 -1
  200. package/src/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.tsx +1 -1
  201. package/src/components/RichTextEditor/plugins/styles.ts +1 -1
  202. package/src/components/RichTextEditor/serializer/nodes/button.ts +2 -1
  203. package/src/components/RichTextEditor/serializer/nodes/checkItemNode.ts +3 -2
  204. package/src/components/RichTextEditor/serializer/nodes/default.ts +5 -4
  205. package/src/components/RichTextEditor/serializer/nodes/link.ts +4 -3
  206. package/src/components/RichTextEditor/serializer/serializeNodesToHtmlRecursive.ts +5 -5
  207. package/src/components/RichTextEditor/serializer/serializeToHtml.ts +2 -2
  208. package/src/components/RichTextEditor/serializer/utlis/reactCssPropsToCss.ts +1 -1
  209. package/src/hooks/useAttachments.ts +1 -1
  210. package/src/hooks/useDndSensors.ts +1 -1
  211. package/src/index.ts +3 -3
  212. package/src/settings/background.spec.ts +1 -1
  213. package/src/settings/border.spec.ts +1 -1
  214. package/src/settings/borderRadiusExtended.spec.ts +4 -4
  215. package/src/settings/marginExtended.spec.ts +4 -4
  216. package/src/settings/paddingExtended.spec.ts +4 -4
  217. package/src/styles.css +3 -0
  218. package/src/utilities/react/getBackgroundColorStyles.ts +2 -3
  219. package/src/utilities/react/getBorderStyles.ts +3 -4
  220. package/src/utilities/react/getRadiusStyles.ts +1 -1
  221. package/vite.config.ts +25 -3
  222. package/dist/_virtual/_commonjsHelpers.es.js +0 -7
  223. package/dist/_virtual/_commonjsHelpers.es.js.map +0 -1
  224. package/dist/_virtual/index.es.js +0 -5
  225. package/dist/_virtual/index.es.js.map +0 -1
  226. package/dist/_virtual/index.es2.js +0 -5
  227. package/dist/_virtual/index.es2.js.map +0 -1
  228. package/dist/_virtual/index.es3.js +0 -5
  229. package/dist/_virtual/index.es3.js.map +0 -1
  230. package/dist/_virtual/jsx-runtime.es.js +0 -5
  231. package/dist/_virtual/jsx-runtime.es.js.map +0 -1
  232. package/dist/_virtual/react-dom.development.es.js +0 -5
  233. package/dist/_virtual/react-dom.development.es.js.map +0 -1
  234. package/dist/_virtual/react-dom.production.min.es.js +0 -5
  235. package/dist/_virtual/react-dom.production.min.es.js.map +0 -1
  236. package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
  237. package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
  238. package/dist/_virtual/react-jsx-runtime.production.min.es.js +0 -5
  239. package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +0 -1
  240. package/dist/_virtual/react.development.es.js +0 -5
  241. package/dist/_virtual/react.development.es.js.map +0 -1
  242. package/dist/_virtual/react.production.min.es.js +0 -5
  243. package/dist/_virtual/react.production.min.es.js.map +0 -1
  244. package/dist/_virtual/scheduler.development.es.js +0 -5
  245. package/dist/_virtual/scheduler.development.es.js.map +0 -1
  246. package/dist/_virtual/scheduler.production.min.es.js +0 -5
  247. package/dist/_virtual/scheduler.production.min.es.js.map +0 -1
  248. package/dist/style.css +0 -1
@@ -16,7 +16,7 @@ describe('Block Item Wrapper', () => {
16
16
  mount(
17
17
  <BlockItemWrapper toolbarFlyoutItems={[]} toolbarItems={[]}>
18
18
  <div data-test-id="block-item-wrapper-child" className="tw-w-8 tw-h-8 tw-bg-red-50" />
19
- </BlockItemWrapper>
19
+ </BlockItemWrapper>,
20
20
  );
21
21
  cy.get(BlockItemWrapperSelector).should('exist');
22
22
  cy.get(ChildSelector).should('exist');
@@ -26,7 +26,7 @@ describe('Block Item Wrapper', () => {
26
26
  mount(
27
27
  <BlockItemWrapper toolbarFlyoutItems={[]} toolbarItems={[]}>
28
28
  <div data-test-id="block-item-wrapper-child" className="tw-w-8 tw-h-8 tw-bg-red-50" />
29
- </BlockItemWrapper>
29
+ </BlockItemWrapper>,
30
30
  );
31
31
  cy.get(BlockItemWrapperSelector).should('have.class', 'hover:tw-outline');
32
32
  });
@@ -35,7 +35,7 @@ describe('Block Item Wrapper', () => {
35
35
  mount(
36
36
  <BlockItemWrapper toolbarFlyoutItems={[]} toolbarItems={[]} shouldHideWrapper>
37
37
  <div data-test-id="block-item-wrapper-child" className="tw-w-8 tw-h-8 tw-bg-red-50" />
38
- </BlockItemWrapper>
38
+ </BlockItemWrapper>,
39
39
  );
40
40
  cy.get(BlockItemWrapperSelector).should('not.exist');
41
41
  });
@@ -50,7 +50,7 @@ describe('Block Item Wrapper', () => {
50
50
  ]}
51
51
  >
52
52
  <div data-test-id="block-item-wrapper-child" className="tw-w-8 tw-h-8 tw-bg-red-50" />
53
- </BlockItemWrapper>
53
+ </BlockItemWrapper>,
54
54
  );
55
55
  cy.get(ToolbarButtonSelector).should('have.length', 2);
56
56
  });
@@ -85,7 +85,7 @@ describe('Block Item Wrapper', () => {
85
85
  ]}
86
86
  >
87
87
  <div data-test-id="block-item-wrapper-child" className="tw-mt-8 tw-w-8 tw-h-8 tw-bg-red-50" />
88
- </BlockItemWrapper>
88
+ </BlockItemWrapper>,
89
89
  );
90
90
  cy.get(ToolbarButtonSelector).eq(0).focus();
91
91
  cy.get(FlyoutSelector).should('exist');
@@ -103,7 +103,7 @@ describe('Block Item Wrapper', () => {
103
103
  ]}
104
104
  >
105
105
  <div data-test-id="block-item-wrapper-child" className="tw-w-8 tw-h-8 tw-bg-red-50" />
106
- </BlockItemWrapper>
106
+ </BlockItemWrapper>,
107
107
  );
108
108
  cy.get(ToolbarButtonSelector).eq(0).focus();
109
109
  cy.get(BlockItemWrapperSelector).should('have.css', 'outline-style', 'solid');
@@ -120,7 +120,7 @@ describe('Block Item Wrapper', () => {
120
120
  ]}
121
121
  >
122
122
  <div data-test-id="block-item-wrapper-child" className="tw-w-8 tw-h-8 tw-bg-red-50" />
123
- </BlockItemWrapper>
123
+ </BlockItemWrapper>,
124
124
  );
125
125
  cy.get(ToolbarButtonSelector).eq(0).focus();
126
126
  cy.get(ToolbarSelector).should('be.visible');
@@ -137,7 +137,7 @@ describe('Block Item Wrapper', () => {
137
137
  shouldBeShown
138
138
  >
139
139
  <div data-test-id="block-item-wrapper-child" className="tw-w-8 tw-h-8 tw-bg-red-50" />
140
- </BlockItemWrapper>
140
+ </BlockItemWrapper>,
141
141
  );
142
142
  cy.get(ChildSelector).should('exist');
143
143
  cy.get(BlockItemWrapperSelector).should('have.css', 'outline-style', 'solid');
@@ -72,7 +72,7 @@ export const Toolbar = ({
72
72
  </button>
73
73
  }
74
74
  />
75
- )
75
+ ),
76
76
  )}
77
77
  {flyoutItems.length > 0 && (
78
78
  <div className="tw-flex tw-flex-shrink-0 tw-flex-1 tw-h-6">
@@ -62,7 +62,7 @@ describe('RichTextEditor', () => {
62
62
  isEditing={true}
63
63
  plugins={new PluginComposer().setPlugin([new LinkPlugin({ appBridge })])}
64
64
  value={convertToRteValue('p', 'This is a link')}
65
- />
65
+ />,
66
66
  );
67
67
  cy.get(RichTextSelector).click();
68
68
  cy.get(RichTextSelector).type('{selectall}');
@@ -83,7 +83,7 @@ describe('RichTextEditor', () => {
83
83
  isEditing={true}
84
84
  plugins={new PluginComposer().setPlugin([new LinkPlugin({ appBridge })])}
85
85
  value={convertToRteValue('p', 'This is a link')}
86
- />
86
+ />,
87
87
  );
88
88
  cy.get(RichTextSelector).click();
89
89
  cy.get(RichTextSelector).type('{selectall}');
@@ -102,7 +102,7 @@ describe('RichTextEditor', () => {
102
102
  isEditing={true}
103
103
  plugins={new PluginComposer().setPlugin([new LinkPlugin({ appBridge })])}
104
104
  value={convertToRteValue('p', 'This is a link')}
105
- />
105
+ />,
106
106
  );
107
107
 
108
108
  cy.get(RichTextSelector).click();
@@ -122,7 +122,7 @@ describe('RichTextEditor', () => {
122
122
  isEditing={true}
123
123
  plugins={new PluginComposer().setPlugin([new LinkPlugin({ appBridge })])}
124
124
  value={convertToRteValue('p', 'This is a link')}
125
- />
125
+ />,
126
126
  );
127
127
  cy.get(RichTextSelector).click();
128
128
  cy.get(RichTextSelector).type('{selectall}');
@@ -140,7 +140,7 @@ describe('RichTextEditor', () => {
140
140
  <RichTextEditor
141
141
  isEditing={true}
142
142
  plugins={new PluginComposer().setPlugin([new LinkPlugin({ appBridge })])}
143
- />
143
+ />,
144
144
  );
145
145
  cy.get(RichTextSelector).click();
146
146
  cy.get(RichTextSelector).type('mailto:info@frontify.com {enter}');
@@ -155,7 +155,7 @@ describe('RichTextEditor', () => {
155
155
  <RichTextEditor
156
156
  isEditing={true}
157
157
  plugins={new PluginComposer().setPlugin([new LinkPlugin({ appBridge })])}
158
- />
158
+ />,
159
159
  );
160
160
  cy.get(RichTextSelector).click();
161
161
  cy.get(RichTextSelector).type('list:{enter}');
@@ -171,7 +171,7 @@ describe('RichTextEditor', () => {
171
171
  isEditing={true}
172
172
  plugins={new PluginComposer().setPlugin([new LinkPlugin({ appBridge })])}
173
173
  value={convertToRteValue('p', 'This is a link')}
174
- />
174
+ />,
175
175
  );
176
176
  cy.get(RichTextSelector).click();
177
177
  cy.get(RichTextSelector).type('{selectall}');
@@ -190,7 +190,7 @@ describe('RichTextEditor', () => {
190
190
  isEditing={true}
191
191
  plugins={new PluginComposer().setPlugin([new ButtonPlugin({ appBridge })])}
192
192
  value={convertToRteValue('p', 'This is a button')}
193
- />
193
+ />,
194
194
  );
195
195
  cy.get(RichTextSelector).click();
196
196
  cy.get(RichTextSelector).type('{selectall}');
@@ -27,7 +27,7 @@ export const getDefaultPluginsWithLinkChooser = (appBridge: AppBridgeBlock) => {
27
27
  new SoftBreakPlugin(),
28
28
  new TextStylePlugin({
29
29
  textStyles: TextStylePluginsWithoutImage,
30
- })
30
+ }),
31
31
  )
32
32
  .setPlugin(
33
33
  [
@@ -48,6 +48,6 @@ export const getDefaultPluginsWithLinkChooser = (appBridge: AppBridgeBlock) => {
48
48
  new CheckboxListPlugin(),
49
49
  new OrderedListPlugin(),
50
50
  new ResetFormattingPlugin(),
51
- ]
51
+ ],
52
52
  );
53
53
  };
@@ -32,7 +32,7 @@ export const ButtonToolbarButton = ({ type, ...props }: LinkToolbarButtonProps)
32
32
  tooltip={getTooltip(
33
33
  isEnabled
34
34
  ? `Button\n${getHotkeyByPlatform('Ctrl+Shift+K')}`
35
- : 'Buttons can only be set for a single text block.'
35
+ : 'Buttons can only be set for a single text block.',
36
36
  )}
37
37
  classNames={getButtonClassNames(isEnabled)}
38
38
  active={isLink}
@@ -25,6 +25,6 @@ export const useFloatingButtonUrlInput = (props: HTMLPropsAs<'input'>): HTMLProp
25
25
  onChange,
26
26
  defaultValue: floatingButtonSelectors.url(),
27
27
  },
28
- { ...props, ref: useComposedRef<HTMLInputElement>(props.ref, ref) }
28
+ { ...props, ref: useComposedRef<HTMLInputElement>(props.ref, ref) },
29
29
  );
30
30
  };
@@ -125,7 +125,7 @@ export const useInsertModal = () => {
125
125
  {
126
126
  enableOnFormTags: ['INPUT'],
127
127
  },
128
- []
128
+ [],
129
129
  );
130
130
 
131
131
  return {
@@ -95,7 +95,7 @@ export const useFloatingButtonEdit = ({ floatingOptions, ...props }: FloatingBut
95
95
  {
96
96
  enableOnContentEditable: true,
97
97
  },
98
- []
98
+ [],
99
99
  );
100
100
 
101
101
  useFloatingButtonEnter();
@@ -16,6 +16,6 @@ export const useFloatingButtonEnter = () => {
16
16
  {
17
17
  enableOnFormTags: ['INPUT'],
18
18
  },
19
- []
19
+ [],
20
20
  );
21
21
  };
@@ -25,6 +25,6 @@ export const useFloatingButtonEscape = () => {
25
25
  enableOnFormTags: ['INPUT'],
26
26
  enableOnContentEditable: true,
27
27
  },
28
- []
28
+ [],
29
29
  );
30
30
  };
@@ -40,7 +40,7 @@ export const useFloatingButtonInsert = ({ floatingOptions, ...props }: FloatingB
40
40
  {
41
41
  enableOnContentEditable: true,
42
42
  },
43
- [focused]
43
+ [focused],
44
44
  );
45
45
 
46
46
  const { update, style, floating } = useVirtualFloatingButton({
@@ -3,7 +3,7 @@
3
3
  import { AppBridgeBlock } from '@frontify/app-bridge';
4
4
  import { Plugin, PluginProps } from '@frontify/fondue';
5
5
  import { RangeBeforeOptions, createPluginFactory } from '@udecode/plate';
6
- import { CSSProperties } from 'react';
6
+ import type { CSSProperties } from 'react';
7
7
  import { isValidUrl } from '../LinkPlugin/utils/url';
8
8
  import { ButtonMarkupElement } from './ButtonMarkupElement';
9
9
  import { ButtonButton } from './components/ButtonButton';
@@ -14,6 +14,7 @@ import { withButton } from './withButton';
14
14
  export const ELEMENT_BUTTON = 'button';
15
15
  export const BUTTON_PLUGIN = 'button-plugin';
16
16
 
17
+ // eslint-disable-next-line
17
18
  export interface ButtonPlugin {
18
19
  forceSubmit?: boolean;
19
20
 
@@ -97,6 +98,7 @@ export type ButtonPluginProps = Omit<PluginProps, 'styles'> & {
97
98
  styles?: Record<string, CSSProperties & { hover?: CSSProperties }>;
98
99
  } & { appBridge: AppBridgeBlock };
99
100
 
101
+ // eslint-disable-next-line
100
102
  export class ButtonPlugin extends Plugin {
101
103
  public styles: CSSProperties = {};
102
104
  private appBridge: AppBridgeBlock;
@@ -7,11 +7,11 @@ import { CreateButtonNodeOptions, createButtonNode } from '../utils/index';
7
7
  export const insertButton = <V extends Value>(
8
8
  editor: PlateEditor<V>,
9
9
  createButtonNodeOptions: CreateButtonNodeOptions,
10
- options?: InsertNodesOptions<V>
10
+ options?: InsertNodesOptions<V>,
11
11
  ) => {
12
12
  insertNodes<TButtonElement | TText>(
13
13
  editor,
14
14
  [createButtonNode(editor, createButtonNodeOptions)],
15
- options as InsertNodesOptions
15
+ options as InsertNodesOptions,
16
16
  );
17
17
  };
@@ -20,7 +20,7 @@ export const unwrapButton = <V extends Value>(
20
20
  editor: PlateEditor<V>,
21
21
  options?: UnwrapNodesOptions & {
22
22
  split?: boolean;
23
- }
23
+ },
24
24
  ) => {
25
25
  return withoutNormalizing(editor, () => {
26
26
  if (options?.split) {
@@ -55,7 +55,7 @@ export const upsertButton = <V extends Value>(
55
55
  insertTextInButton,
56
56
  insertNodesOptions,
57
57
  isUrl = getPluginOptions<ButtonPlugin, V>(editor, ELEMENT_BUTTON).isUrl,
58
- }: UpsertButtonOptions<V>
58
+ }: UpsertButtonOptions<V>,
59
59
  ) => {
60
60
  const at = editor.selection;
61
61
  if (!at) {
@@ -136,7 +136,7 @@ export const upsertButton = <V extends Value>(
136
136
  },
137
137
  ],
138
138
  },
139
- insertNodesOptions
139
+ insertNodesOptions,
140
140
  );
141
141
  return true;
142
142
  };
@@ -151,7 +151,7 @@ function anchorAndFocusInButton<V extends Value>(
151
151
  url: string,
152
152
  buttonStyle?: RichTextButtonStyle,
153
153
  target?: string,
154
- text?: string
154
+ text?: string,
155
155
  ) {
156
156
  if (buttonAbove) {
157
157
  unwrapButton(editor, {
@@ -178,7 +178,7 @@ function editButtonUrlAndTarget<V extends Value>(
178
178
  buttonAbove: TNodeEntry<TButtonElement>,
179
179
  target?: string,
180
180
  buttonStyle?: string,
181
- text?: string
181
+ text?: string,
182
182
  ) {
183
183
  if (
184
184
  url !== buttonAbove[0]?.url ||
@@ -190,7 +190,7 @@ function editButtonUrlAndTarget<V extends Value>(
190
190
  { url, target, buttonStyle },
191
191
  {
192
192
  at: buttonAbove[1],
193
- }
193
+ },
194
194
  );
195
195
  }
196
196
 
@@ -14,7 +14,7 @@ export interface WrapButtonOptions<V extends Value = Value> extends WrapNodesOpt
14
14
  */
15
15
  export const wrapButton = <V extends Value>(
16
16
  editor: PlateEditor<V>,
17
- { url, buttonStyle, target, ...options }: WrapButtonOptions<V>
17
+ { url, buttonStyle, target, ...options }: WrapButtonOptions<V>,
18
18
  ) => {
19
19
  wrapNodes<TButtonElement, Value>(
20
20
  editor,
@@ -25,6 +25,6 @@ export const wrapButton = <V extends Value>(
25
25
  target,
26
26
  children: [],
27
27
  },
28
- { split: true, ...options } as WrapNodesOptions
28
+ { split: true, ...options } as WrapNodesOptions,
29
29
  );
30
30
  };
@@ -14,7 +14,7 @@ export interface CreateButtonNodeOptions {
14
14
 
15
15
  export const createButtonNode = <V extends Value>(
16
16
  editor: PlateEditor<V>,
17
- { url, text = '', buttonStyle = 'primary', target, children }: CreateButtonNodeOptions
17
+ { url, text = '', buttonStyle = 'primary', target, children }: CreateButtonNodeOptions,
18
18
  ): TButtonElement => {
19
19
  const type = getPluginType(editor, ELEMENT_BUTTON);
20
20
 
@@ -10,7 +10,7 @@ export const triggerFloatingButton = <V extends Value>(
10
10
  focused,
11
11
  }: {
12
12
  focused?: boolean;
13
- } = {}
13
+ } = {},
14
14
  ) => {
15
15
  if (floatingButtonSelectors.mode() === 'edit') {
16
16
  triggerFloatingButtonEdit(editor);
@@ -19,7 +19,7 @@ export const triggerFloatingButtonInsert = <V extends Value>(
19
19
  focused,
20
20
  }: {
21
21
  focused?: boolean;
22
- } = {}
22
+ } = {},
23
23
  ) => {
24
24
  if (floatingButtonSelectors.mode()) {
25
25
  return;
@@ -101,6 +101,6 @@ export const withButton: WithOverride = (editor, { type }) => {
101
101
  editor,
102
102
  mockPlugin<AnyObject, Value, PlateEditor<Value>>({
103
103
  options: { types: type },
104
- })
104
+ }),
105
105
  );
106
106
  };
@@ -95,7 +95,7 @@ export const useFloatingLinkEdit = ({ floatingOptions, ...props }: FloatingLinkP
95
95
  {
96
96
  enableOnContentEditable: true,
97
97
  },
98
- []
98
+ [],
99
99
  );
100
100
 
101
101
  useFloatingLinkEnter();
@@ -15,7 +15,7 @@ import { FC, ReactNode } from 'react';
15
15
  import { LinkSelector } from '../../../shared/LinkSelector';
16
16
  import { InsertModalStateProps } from './types';
17
17
 
18
- type Props = {
18
+ type InsertModalProps = {
19
19
  state: InsertModalStateProps;
20
20
  onTextChange: (value: string) => void;
21
21
  onUrlChange: (value: string) => void;
@@ -29,7 +29,7 @@ type Props = {
29
29
  appBridge: AppBridgeBlock;
30
30
  };
31
31
 
32
- export const InsertModal: FC<Props> = ({
32
+ export const InsertModal: FC<InsertModalProps> = ({
33
33
  state,
34
34
  onTextChange,
35
35
  onUrlChange,
@@ -38,7 +38,7 @@ export const useFloatingLinkInsert = ({ floatingOptions, ...props }: FloatingLin
38
38
  {
39
39
  enableOnContentEditable: true,
40
40
  },
41
- [focused]
41
+ [focused],
42
42
  );
43
43
 
44
44
  const { update, style, floating } = useVirtualFloatingLink({
@@ -119,7 +119,7 @@ export const useInsertModal = () => {
119
119
  {
120
120
  enableOnFormTags: ['INPUT'],
121
121
  },
122
- []
122
+ [],
123
123
  );
124
124
 
125
125
  return {
@@ -22,7 +22,7 @@ export const LinkButton = ({ id, editorId }: PluginButtonProps) => {
22
22
  tooltip={getTooltip(
23
23
  isEnabled
24
24
  ? `Link\n${getHotkeyByPlatform('Ctrl+K')}`
25
- : 'Links can only be set for a single text block.'
25
+ : 'Links can only be set for a single text block.',
26
26
  )}
27
27
  icon={
28
28
  <span className="tw-p-2 tw-h-8 tw-justify-center tw-items-center tw-flex">
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { HTMLPropsAs, LinkRootProps, useElementProps } from '@udecode/plate';
4
- import { MouseEvent } from 'react';
4
+ import type { MouseEvent } from 'react';
5
5
  import { TLinkElement } from '../types';
6
6
  import { BlockStyles } from '../../styles';
7
7
  import { LINK_PLUGIN } from '../id';
@@ -1,14 +1,15 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
+ import type { CSSProperties } from 'react';
3
4
  import { AppBridgeBlock } from '@frontify/app-bridge';
4
5
  import { Plugin, PluginProps } from '@frontify/fondue';
5
6
  import { createLinkPlugin as createPlateLinkPlugin, createPluginFactory } from '@udecode/plate';
7
+
6
8
  import { CustomFloatingLink } from './FloatingLink/CustomFloatingLink';
7
9
  import { LINK_PLUGIN } from './id';
8
10
  import { LinkButton } from './LinkButton';
9
11
  import { LinkMarkupElement } from './LinkMarkupElement';
10
12
  import { isValidUrl } from './utils/url';
11
- import { CSSProperties } from 'react';
12
13
  import { BlockStyles } from '../styles';
13
14
 
14
15
  export const createLinkPlugin = (appBridge: AppBridgeBlock) =>
@@ -4,32 +4,29 @@ import { describe, expect, it } from 'vitest';
4
4
  import { relativeUrlRegex } from './relativeUrlRegex';
5
5
 
6
6
  describe('Regex values', () => {
7
- it('should only match internal documents starting with /r/ or /document/', () => {
8
- const testData = [
9
- {
10
- input: '/document/123',
11
- shouldMatch: true,
12
- },
13
- {
14
- input: '/r/123',
15
- shouldMatch: true,
16
- },
17
- {
18
- input: '/wrong/123',
19
- shouldMatch: false,
20
- },
21
- {
22
- input: '/r/',
23
- shouldMatch: false,
24
- },
25
- {
26
- input: '/document/',
27
- shouldMatch: false,
28
- },
29
- ];
30
- for (const data of testData) {
31
- const isMatching = relativeUrlRegex.test(data.input);
32
- expect(isMatching).toBe(data.shouldMatch);
33
- }
7
+ it.each([
8
+ {
9
+ input: '/document/123',
10
+ shouldMatch: true,
11
+ },
12
+ {
13
+ input: '/r/123',
14
+ shouldMatch: true,
15
+ },
16
+ {
17
+ input: '/wrong/123',
18
+ shouldMatch: false,
19
+ },
20
+ {
21
+ input: '/r/',
22
+ shouldMatch: false,
23
+ },
24
+ {
25
+ input: '/document/',
26
+ shouldMatch: false,
27
+ },
28
+ ])('should only match internal documents starting with /r/ or /document/', ({ input, shouldMatch }) => {
29
+ const isMatching = relativeUrlRegex.test(input);
30
+ expect(isMatching).toBe(shouldMatch);
34
31
  });
35
32
  });
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { PlateRenderElementProps, createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { PlateRenderElementProps, createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createParagraphPlugin as createPlateParagraphPlugin, createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,
@@ -1,7 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { createPluginFactory } from '@udecode/plate';
4
- import { CSSProperties } from 'react';
4
+ import type { CSSProperties } from 'react';
5
5
  import {
6
6
  MarkupElement,
7
7
  Plugin,