@frontify/guideline-blocks-settings 0.33.4 → 0.34.0

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 (498) 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 +86 -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 +41 -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 +24 -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 +26 -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 +28 -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 +48 -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/InsertButtonModal/InsertButtonModal.es.js +69 -0
  88. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js.map +1 -0
  89. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js +104 -0
  90. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js.map +1 -0
  91. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.es.js +32 -0
  92. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.es.js.map +1 -0
  93. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js +57 -0
  94. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js.map +1 -0
  95. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.es.js +19 -0
  96. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.es.js.map +1 -0
  97. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.es.js +26 -0
  98. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.es.js.map +1 -0
  99. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js +41 -0
  100. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js.map +1 -0
  101. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.es.js +18 -0
  102. package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.es.js.map +1 -0
  103. package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js +67 -0
  104. package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js.map +1 -0
  105. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js +13 -0
  106. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js.map +1 -0
  107. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js +25 -0
  108. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js.map +1 -0
  109. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js +35 -0
  110. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js.map +1 -0
  111. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js +86 -0
  112. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js.map +1 -0
  113. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js +24 -0
  114. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js.map +1 -0
  115. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js +19 -0
  116. package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js.map +1 -0
  117. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js +13 -0
  118. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js.map +1 -0
  119. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.es.js +11 -0
  120. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.es.js.map +1 -0
  121. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js +10 -0
  122. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js.map +1 -0
  123. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js +81 -0
  124. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js.map +1 -0
  125. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js +18 -0
  126. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js.map +1 -0
  127. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js +17 -0
  128. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js.map +1 -0
  129. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js +14 -0
  130. package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js.map +1 -0
  131. package/dist/components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js +52 -0
  132. package/dist/components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js.map +1 -0
  133. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js +32 -0
  134. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js.map +1 -0
  135. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js +35 -0
  136. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js.map +1 -0
  137. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js +8 -0
  138. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js.map +1 -0
  139. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js +66 -0
  140. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js.map +1 -0
  141. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js +79 -0
  142. package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js.map +1 -0
  143. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js +22 -0
  144. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js.map +1 -0
  145. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js +12 -0
  146. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js.map +1 -0
  147. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.es.js +11 -0
  148. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.es.js.map +1 -0
  149. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkToolbarButton.es.js +25 -0
  150. package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkToolbarButton.es.js.map +1 -0
  151. package/dist/components/RichTextEditor/plugins/LinkPlugin/id.es.js +5 -0
  152. package/dist/components/RichTextEditor/plugins/LinkPlugin/id.es.js.map +1 -0
  153. package/dist/components/RichTextEditor/plugins/LinkPlugin/index.es.js +45 -0
  154. package/dist/components/RichTextEditor/plugins/LinkPlugin/index.es.js.map +1 -0
  155. package/dist/components/RichTextEditor/plugins/LinkPlugin/utils/getUrl.es.js +13 -0
  156. package/dist/components/RichTextEditor/plugins/LinkPlugin/utils/getUrl.es.js.map +1 -0
  157. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js +50 -0
  158. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js.map +1 -0
  159. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js +50 -0
  160. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js.map +1 -0
  161. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js +50 -0
  162. package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js.map +1 -0
  163. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js +51 -0
  164. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js.map +1 -0
  165. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js +51 -0
  166. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js.map +1 -0
  167. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js +51 -0
  168. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js.map +1 -0
  169. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js +51 -0
  170. package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js.map +1 -0
  171. package/dist/components/RichTextEditor/plugins/TextStylePlugins/helpers.es.js +40 -0
  172. package/dist/components/RichTextEditor/plugins/TextStylePlugins/helpers.es.js.map +1 -0
  173. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js +51 -0
  174. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js.map +1 -0
  175. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js +51 -0
  176. package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js.map +1 -0
  177. package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js +45 -0
  178. package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js.map +1 -0
  179. package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js +53 -0
  180. package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js.map +1 -0
  181. package/dist/components/RichTextEditor/plugins/styles.es.js +167 -0
  182. package/dist/components/RichTextEditor/plugins/styles.es.js.map +1 -0
  183. package/dist/helpers/addHttps.es.js +14 -0
  184. package/dist/helpers/addHttps.es.js.map +1 -0
  185. package/dist/helpers/convertToRichTextValue.es.js +6 -0
  186. package/dist/helpers/convertToRichTextValue.es.js.map +1 -0
  187. package/dist/helpers/customCoordinatesGetterFactory.es.js +32 -0
  188. package/dist/helpers/customCoordinatesGetterFactory.es.js.map +1 -0
  189. package/dist/helpers/hasRichTextValue.es.js +15 -0
  190. package/dist/helpers/hasRichTextValue.es.js.map +1 -0
  191. package/dist/helpers/isDownloadable.es.js +6 -0
  192. package/dist/helpers/isDownloadable.es.js.map +1 -0
  193. package/dist/helpers/mapColorPalettes.es.js +28 -0
  194. package/dist/helpers/mapColorPalettes.es.js.map +1 -0
  195. package/dist/hooks/useAttachments.es.js +53 -0
  196. package/dist/hooks/useAttachments.es.js.map +1 -0
  197. package/dist/hooks/useDndSensors.es.js +20 -0
  198. package/dist/hooks/useDndSensors.es.js.map +1 -0
  199. package/dist/index.cjs.js +4 -0
  200. package/dist/index.cjs.js.map +1 -0
  201. package/dist/index.d.ts +1190 -0
  202. package/dist/index.es.js +217 -0
  203. package/dist/index.es.js.map +1 -0
  204. package/dist/index.umd.js +4 -0
  205. package/dist/index.umd.js.map +1 -0
  206. package/dist/settings/background.es.js +22 -0
  207. package/dist/settings/background.es.js.map +1 -0
  208. package/dist/settings/border.es.js +61 -0
  209. package/dist/settings/border.es.js.map +1 -0
  210. package/dist/settings/borderRadius.es.js +56 -0
  211. package/dist/settings/borderRadius.es.js.map +1 -0
  212. package/dist/settings/borderRadiusExtended.es.js +64 -0
  213. package/dist/settings/borderRadiusExtended.es.js.map +1 -0
  214. package/dist/settings/defaultValues.es.js +19 -0
  215. package/dist/settings/defaultValues.es.js.map +1 -0
  216. package/dist/settings/gutter.es.js +56 -0
  217. package/dist/settings/gutter.es.js.map +1 -0
  218. package/dist/settings/margin.es.js +53 -0
  219. package/dist/settings/margin.es.js.map +1 -0
  220. package/dist/settings/marginExtended.es.js +65 -0
  221. package/dist/settings/marginExtended.es.js.map +1 -0
  222. package/dist/settings/padding.es.js +53 -0
  223. package/dist/settings/padding.es.js.map +1 -0
  224. package/dist/settings/paddingExtended.es.js +65 -0
  225. package/dist/settings/paddingExtended.es.js.map +1 -0
  226. package/dist/settings/securityDownloadable.es.js +19 -0
  227. package/dist/settings/securityDownloadable.es.js.map +1 -0
  228. package/dist/settings/securityGlobalControl.es.js +33 -0
  229. package/dist/settings/securityGlobalControl.es.js.map +1 -0
  230. package/dist/settings/types.es.js +48 -0
  231. package/dist/settings/types.es.js.map +1 -0
  232. package/dist/styles.css +1 -0
  233. package/dist/styles.css.es.js +2 -0
  234. package/dist/styles.css.es.js.map +1 -0
  235. package/dist/utilities/color/getReadableColor.es.js +14 -0
  236. package/dist/utilities/color/getReadableColor.es.js.map +1 -0
  237. package/dist/utilities/color/isDark.es.js +10 -0
  238. package/dist/utilities/color/isDark.es.js.map +1 -0
  239. package/dist/utilities/color/setAlpha.es.js +6 -0
  240. package/dist/utilities/color/setAlpha.es.js.map +1 -0
  241. package/dist/utilities/color/toColorObject.es.js +9 -0
  242. package/dist/utilities/color/toColorObject.es.js.map +1 -0
  243. package/dist/utilities/color/toHex8String.es.js +7 -0
  244. package/dist/utilities/color/toHex8String.es.js.map +1 -0
  245. package/dist/utilities/color/toHexString.es.js +7 -0
  246. package/dist/utilities/color/toHexString.es.js.map +1 -0
  247. package/dist/utilities/color/toRgbaString.es.js +7 -0
  248. package/dist/utilities/color/toRgbaString.es.js.map +1 -0
  249. package/dist/utilities/color/toShortRgba.es.js +11 -0
  250. package/dist/utilities/color/toShortRgba.es.js.map +1 -0
  251. package/dist/utilities/moveItemInArray.es.js +12 -0
  252. package/dist/utilities/moveItemInArray.es.js.map +1 -0
  253. package/dist/utilities/react/getBackgroundColorStyles.es.js +8 -0
  254. package/dist/utilities/react/getBackgroundColorStyles.es.js.map +1 -0
  255. package/dist/utilities/react/getBorderStyles.es.js +12 -0
  256. package/dist/utilities/react/getBorderStyles.es.js.map +1 -0
  257. package/dist/utilities/react/getRadiusStyles.es.js +8 -0
  258. package/dist/utilities/react/getRadiusStyles.es.js.map +1 -0
  259. package/dist/utilities/react/joinClassNames.es.js +5 -0
  260. package/dist/utilities/react/joinClassNames.es.js.map +1 -0
  261. package/package.json +9 -6
  262. package/.eslintrc.cjs +0 -27
  263. package/.prettierrc +0 -7
  264. package/CHANGELOG.md +0 -787
  265. package/postcss.config.cjs +0 -8
  266. package/setupTests.ts +0 -23
  267. package/src/components/Attachments/AttachmentItem.tsx +0 -247
  268. package/src/components/Attachments/Attachments.spec.ct.tsx +0 -165
  269. package/src/components/Attachments/Attachments.tsx +0 -241
  270. package/src/components/Attachments/AttachmentsButtonTrigger.tsx +0 -30
  271. package/src/components/Attachments/index.ts +0 -4
  272. package/src/components/Attachments/types.ts +0 -40
  273. package/src/components/BlockInjectButton/BlockInjectButton.spec.ct.tsx +0 -48
  274. package/src/components/BlockInjectButton/BlockInjectButton.tsx +0 -212
  275. package/src/components/BlockInjectButton/index.ts +0 -4
  276. package/src/components/BlockInjectButton/types.ts +0 -18
  277. package/src/components/BlockItemWrapper/BlockItemWrapper.spec.ct.tsx +0 -145
  278. package/src/components/BlockItemWrapper/BlockItemWrapper.tsx +0 -76
  279. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.spec.tsx +0 -96
  280. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.tsx +0 -42
  281. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.spec.tsx +0 -44
  282. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.tsx +0 -24
  283. package/src/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/index.ts +0 -3
  284. package/src/components/BlockItemWrapper/Toolbar/BaseToolbarButton.spec.tsx +0 -40
  285. package/src/components/BlockItemWrapper/Toolbar/BaseToolbarButton.tsx +0 -37
  286. package/src/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.spec.tsx +0 -89
  287. package/src/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.tsx +0 -40
  288. package/src/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/index.ts +0 -3
  289. package/src/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.spec.tsx +0 -140
  290. package/src/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.tsx +0 -61
  291. package/src/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/index.ts +0 -3
  292. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.spec.tsx +0 -77
  293. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.tsx +0 -30
  294. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/ToolbarFlyoutMenu.spec.tsx +0 -63
  295. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/ToolbarFlyoutMenu.tsx +0 -40
  296. package/src/components/BlockItemWrapper/Toolbar/MenuToolbarButton/index.ts +0 -4
  297. package/src/components/BlockItemWrapper/Toolbar/Toolbar.spec.tsx +0 -259
  298. package/src/components/BlockItemWrapper/Toolbar/Toolbar.tsx +0 -36
  299. package/src/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.spec.tsx +0 -70
  300. package/src/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.tsx +0 -19
  301. package/src/components/BlockItemWrapper/Toolbar/ToolbarButton/index.ts +0 -3
  302. package/src/components/BlockItemWrapper/Toolbar/ToolbarButtonTooltip.tsx +0 -25
  303. package/src/components/BlockItemWrapper/Toolbar/ToolbarSegment.tsx +0 -9
  304. package/src/components/BlockItemWrapper/Toolbar/context/DragPreviewContext.tsx +0 -15
  305. package/src/components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.tsx +0 -25
  306. package/src/components/BlockItemWrapper/Toolbar/context/index.ts +0 -4
  307. package/src/components/BlockItemWrapper/Toolbar/helpers.ts +0 -33
  308. package/src/components/BlockItemWrapper/Toolbar/hooks/index.ts +0 -3
  309. package/src/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.spec.tsx +0 -59
  310. package/src/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.ts +0 -24
  311. package/src/components/BlockItemWrapper/Toolbar/index.ts +0 -10
  312. package/src/components/BlockItemWrapper/Toolbar/types.ts +0 -18
  313. package/src/components/BlockItemWrapper/constants.ts +0 -4
  314. package/src/components/BlockItemWrapper/index.ts +0 -6
  315. package/src/components/BlockItemWrapper/types.ts +0 -24
  316. package/src/components/DownloadButton/DownloadButton.spec.ct.tsx +0 -20
  317. package/src/components/DownloadButton/DownloadButton.tsx +0 -36
  318. package/src/components/DownloadButton/index.ts +0 -3
  319. package/src/components/DownloadButton/types.ts +0 -5
  320. package/src/components/Link/LinkInput.spec.ct.tsx +0 -142
  321. package/src/components/Link/LinkInput.tsx +0 -86
  322. package/src/components/Link/LinkSelector/DocumentLink.tsx +0 -81
  323. package/src/components/Link/LinkSelector/DocumentLinks.tsx +0 -102
  324. package/src/components/Link/LinkSelector/LinkSelector.spec.ct.tsx +0 -196
  325. package/src/components/Link/LinkSelector/LinkSelector.tsx +0 -96
  326. package/src/components/Link/LinkSelector/LoadingIndicator.tsx +0 -11
  327. package/src/components/Link/LinkSelector/PageLink.tsx +0 -96
  328. package/src/components/Link/LinkSelector/PageLinks.tsx +0 -71
  329. package/src/components/Link/LinkSelector/SectionLink.tsx +0 -36
  330. package/src/components/Link/LinkSelector/index.ts +0 -3
  331. package/src/components/Link/index.ts +0 -6
  332. package/src/components/Link/types.ts +0 -6
  333. package/src/components/Link/utils/getUrl.ts +0 -30
  334. package/src/components/Link/utils/index.ts +0 -5
  335. package/src/components/Link/utils/relativeUrlRegex.spec.ts +0 -32
  336. package/src/components/Link/utils/relativeUrlRegex.ts +0 -3
  337. package/src/components/Link/utils/url.spec.ts +0 -75
  338. package/src/components/Link/utils/url.ts +0 -21
  339. package/src/components/RichTextEditor/RichTextEditor.spec.ct.tsx +0 -231
  340. package/src/components/RichTextEditor/RichTextEditor.tsx +0 -62
  341. package/src/components/RichTextEditor/SerializedText.tsx +0 -29
  342. package/src/components/RichTextEditor/constants.ts +0 -3
  343. package/src/components/RichTextEditor/index.ts +0 -6
  344. package/src/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.tsx +0 -55
  345. package/src/components/RichTextEditor/pluginPresets/index.ts +0 -3
  346. package/src/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.tsx +0 -74
  347. package/src/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/index.ts +0 -11
  348. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.tsx +0 -20
  349. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.tsx +0 -56
  350. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.tsx +0 -19
  351. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.tsx +0 -42
  352. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButton.tsx +0 -37
  353. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonEditButton.tsx +0 -22
  354. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/FloatingButtonUrlInput.tsx +0 -30
  355. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.tsx +0 -81
  356. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/types.ts +0 -13
  357. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.ts +0 -143
  358. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/UnlinkButton.tsx +0 -31
  359. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.ts +0 -46
  360. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/index.ts +0 -12
  361. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.ts +0 -113
  362. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.ts +0 -21
  363. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.ts +0 -30
  364. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.ts +0 -71
  365. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.ts +0 -22
  366. package/src/components/RichTextEditor/plugins/ButtonPlugin/components/index.ts +0 -3
  367. package/src/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.ts +0 -118
  368. package/src/components/RichTextEditor/plugins/ButtonPlugin/index.ts +0 -7
  369. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/index.ts +0 -8
  370. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.ts +0 -17
  371. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.ts +0 -40
  372. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.ts +0 -68
  373. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.ts +0 -198
  374. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.ts +0 -40
  375. package/src/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.ts +0 -30
  376. package/src/components/RichTextEditor/plugins/ButtonPlugin/types.ts +0 -13
  377. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.ts +0 -28
  378. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.ts +0 -14
  379. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.ts +0 -18
  380. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/index.ts +0 -8
  381. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.ts +0 -83
  382. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.ts +0 -23
  383. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.ts +0 -30
  384. package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.ts +0 -45
  385. package/src/components/RichTextEditor/plugins/ButtonPlugin/withButton.ts +0 -106
  386. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.tsx +0 -26
  387. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.tsx +0 -43
  388. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/index.ts +0 -4
  389. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/useFloatingLinkEdit.ts +0 -113
  390. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/FloatingLink.tsx +0 -45
  391. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.tsx +0 -5
  392. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.tsx +0 -88
  393. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/index.ts +0 -4
  394. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/types.ts +0 -11
  395. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useFloatingLinkInsert.ts +0 -73
  396. package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.ts +0 -136
  397. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkButton.tsx +0 -38
  398. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.tsx +0 -36
  399. package/src/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.ts +0 -11
  400. package/src/components/RichTextEditor/plugins/LinkPlugin/id.ts +0 -3
  401. package/src/components/RichTextEditor/plugins/LinkPlugin/index.ts +0 -49
  402. package/src/components/RichTextEditor/plugins/LinkPlugin/types.ts +0 -12
  403. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.tsx +0 -62
  404. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.tsx +0 -62
  405. package/src/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.tsx +0 -63
  406. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.tsx +0 -62
  407. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.tsx +0 -62
  408. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.tsx +0 -62
  409. package/src/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.tsx +0 -63
  410. package/src/components/RichTextEditor/plugins/TextStylePlugins/helpers.tsx +0 -44
  411. package/src/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.tsx +0 -62
  412. package/src/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.tsx +0 -62
  413. package/src/components/RichTextEditor/plugins/TextStylePlugins/index.ts +0 -15
  414. package/src/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.tsx +0 -58
  415. package/src/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.tsx +0 -63
  416. package/src/components/RichTextEditor/plugins/index.ts +0 -6
  417. package/src/components/RichTextEditor/plugins/styles.ts +0 -178
  418. package/src/components/RichTextEditor/types.ts +0 -23
  419. package/src/components/index.ts +0 -8
  420. package/src/helpers/addHttps.spec.ts +0 -42
  421. package/src/helpers/addHttps.ts +0 -15
  422. package/src/helpers/convertToRichTextValue.spec.ts +0 -32
  423. package/src/helpers/convertToRichTextValue.ts +0 -6
  424. package/src/helpers/customCoordinatesGetterFactory.spec.ts +0 -69
  425. package/src/helpers/customCoordinatesGetterFactory.ts +0 -39
  426. package/src/helpers/hasRichTextValue.spec.ts +0 -63
  427. package/src/helpers/hasRichTextValue.ts +0 -29
  428. package/src/helpers/index.ts +0 -8
  429. package/src/helpers/isDownloadable.spec.ts +0 -47
  430. package/src/helpers/isDownloadable.ts +0 -7
  431. package/src/helpers/mapColorPalettes.spec.ts +0 -47
  432. package/src/helpers/mapColorPalettes.ts +0 -65
  433. package/src/hooks/index.ts +0 -4
  434. package/src/hooks/useAttachments.spec.tsx +0 -127
  435. package/src/hooks/useAttachments.tsx +0 -90
  436. package/src/hooks/useDndSensors.spec.ts +0 -40
  437. package/src/hooks/useDndSensors.ts +0 -23
  438. package/src/index.ts +0 -138
  439. package/src/settings/background.spec.ts +0 -173
  440. package/src/settings/background.ts +0 -52
  441. package/src/settings/border.spec.ts +0 -76
  442. package/src/settings/border.ts +0 -90
  443. package/src/settings/borderRadius.spec.ts +0 -30
  444. package/src/settings/borderRadius.ts +0 -73
  445. package/src/settings/borderRadiusExtended.spec.ts +0 -52
  446. package/src/settings/borderRadiusExtended.ts +0 -84
  447. package/src/settings/defaultValues.ts +0 -21
  448. package/src/settings/gutter.spec.ts +0 -60
  449. package/src/settings/gutter.ts +0 -75
  450. package/src/settings/index.ts +0 -14
  451. package/src/settings/margin.spec.ts +0 -42
  452. package/src/settings/margin.ts +0 -72
  453. package/src/settings/marginExtended.spec.ts +0 -45
  454. package/src/settings/marginExtended.ts +0 -91
  455. package/src/settings/padding.spec.ts +0 -42
  456. package/src/settings/padding.ts +0 -73
  457. package/src/settings/paddingExtended.spec.ts +0 -45
  458. package/src/settings/paddingExtended.ts +0 -91
  459. package/src/settings/security.spec.ts +0 -87
  460. package/src/settings/security.ts +0 -61
  461. package/src/settings/securityDownloadable.spec.ts +0 -46
  462. package/src/settings/securityDownloadable.ts +0 -33
  463. package/src/settings/securityGlobalControl.ts +0 -42
  464. package/src/settings/types.ts +0 -128
  465. package/src/styles.css +0 -3
  466. package/src/utilities/color/getReadableColor.spec.ts +0 -32
  467. package/src/utilities/color/getReadableColor.ts +0 -34
  468. package/src/utilities/color/index.ts +0 -10
  469. package/src/utilities/color/isDark.spec.ts +0 -33
  470. package/src/utilities/color/isDark.ts +0 -29
  471. package/src/utilities/color/setAlpha.spec.ts +0 -28
  472. package/src/utilities/color/setAlpha.ts +0 -14
  473. package/src/utilities/color/toColorObject.spec.ts +0 -19
  474. package/src/utilities/color/toColorObject.ts +0 -16
  475. package/src/utilities/color/toHex8String.spec.ts +0 -17
  476. package/src/utilities/color/toHex8String.ts +0 -14
  477. package/src/utilities/color/toHexString.spec.ts +0 -17
  478. package/src/utilities/color/toHexString.ts +0 -10
  479. package/src/utilities/color/toRgbaString.spec.ts +0 -12
  480. package/src/utilities/color/toRgbaString.ts +0 -14
  481. package/src/utilities/color/toShortRgba.spec.ts +0 -16
  482. package/src/utilities/color/toShortRgba.ts +0 -35
  483. package/src/utilities/index.ts +0 -5
  484. package/src/utilities/moveItemInArray.spec.ts +0 -17
  485. package/src/utilities/moveItemInArray.ts +0 -21
  486. package/src/utilities/react/getBackgroundColorStyles.spec.ts +0 -18
  487. package/src/utilities/react/getBackgroundColorStyles.ts +0 -10
  488. package/src/utilities/react/getBorderStyles.spec.ts +0 -39
  489. package/src/utilities/react/getBorderStyles.ts +0 -20
  490. package/src/utilities/react/getRadiusStyles.spec.ts +0 -25
  491. package/src/utilities/react/getRadiusStyles.ts +0 -8
  492. package/src/utilities/react/index.ts +0 -6
  493. package/src/utilities/react/joinClassNames.spec.ts +0 -18
  494. package/src/utilities/react/joinClassNames.ts +0 -10
  495. package/tailwind.config.ts +0 -27
  496. package/tsconfig.json +0 -24
  497. package/tsconfig.node.json +0 -12
  498. package/vite.config.ts +0 -71
@@ -0,0 +1,1190 @@
1
+ /// <reference types="react" />
2
+
3
+ import { AppBridgeBlock } from '@frontify/app-bridge';
4
+ import type { AppBridgeTheme } from '@frontify/app-bridge';
5
+ import { Asset } from '@frontify/app-bridge';
6
+ import type { AssetInputBlock as AssetInputBlock_2 } from '@frontify/sidebar-settings';
7
+ import type { BaseBlock as BaseBlock_2 } from '@frontify/sidebar-settings';
8
+ import { BlockContext } from '@frontify/app-bridge';
9
+ import { BlockState } from '@frontify/app-bridge';
10
+ import type { Bundle as Bundle_2 } from '@frontify/sidebar-settings';
11
+ import { ButtonSize } from '@frontify/fondue';
12
+ import { CheckboxState } from '@frontify/fondue';
13
+ import type { ChecklistBlock as ChecklistBlock_2 } from '@frontify/sidebar-settings';
14
+ import type { ChoicesType as ChoicesType_2 } from '@frontify/sidebar-settings';
15
+ import { Color } from '@frontify/fondue';
16
+ import { Color as Color_2 } from '@frontify/sidebar-settings';
17
+ import type { ColorInputBlock as ColorInputBlock_2 } from '@frontify/sidebar-settings';
18
+ import { ColorPalette } from '@frontify/app-bridge';
19
+ import { CSSProperties } from 'react';
20
+ import { Dispatch } from 'react';
21
+ import type { Document as Document_2 } from '@frontify/app-bridge';
22
+ import type { DocumentPage } from '@frontify/app-bridge';
23
+ import type { DocumentSection } from '@frontify/app-bridge';
24
+ import type { DropdownBlock as DropdownBlock_2 } from '@frontify/sidebar-settings';
25
+ import type { DynamicSettingBlock as DynamicSettingBlock_2 } from '@frontify/sidebar-settings';
26
+ import type { DynamicSupportedBlock as DynamicSupportedBlock_2 } from '@frontify/sidebar-settings';
27
+ import type { FC } from 'react';
28
+ import type { FileType } from '@frontify/app-bridge';
29
+ import type { FontInputBlock as FontInputBlock_2 } from '@frontify/sidebar-settings';
30
+ import { HTMLAttributes } from 'react';
31
+ import type { InputBlock as InputBlock_2 } from '@frontify/sidebar-settings';
32
+ import { InsertNodesOptions } from '@frontify/fondue';
33
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
34
+ import { KeyboardCoordinateGetter } from '@dnd-kit/core';
35
+ import type { LegacyAssetInputBlock as LegacyAssetInputBlock_2 } from '@frontify/sidebar-settings';
36
+ import type { LinkBlock as LinkBlock_2 } from '@frontify/sidebar-settings';
37
+ import type { LinkChooserBlock as LinkChooserBlock_2 } from '@frontify/sidebar-settings';
38
+ import { MarkupElement } from '@frontify/fondue';
39
+ import { MenuItemStyle } from '@frontify/fondue';
40
+ import type { MultiInputBlock as MultiInputBlock_2 } from '@frontify/sidebar-settings';
41
+ import { MutableRefObject } from 'react';
42
+ import type { NotificationBlock as NotificationBlock_2 } from '@frontify/sidebar-settings';
43
+ import { Palette } from '@frontify/fondue';
44
+ import { PlateEditor } from '@frontify/fondue';
45
+ import { PlatePlugin } from '@frontify/fondue';
46
+ import { Plugin as Plugin_2 } from '@frontify/fondue';
47
+ import { PluginComposer } from '@frontify/fondue';
48
+ import { PluginProps } from '@frontify/fondue';
49
+ import { RangeBeforeOptions } from '@frontify/fondue';
50
+ import { ReactElement } from 'react';
51
+ import { ReactNode } from 'react';
52
+ import type { SectionHeadingBlock as SectionHeadingBlock_2 } from '@frontify/sidebar-settings';
53
+ import type { SegmentedControlsBlock as SegmentedControlsBlock_2 } from '@frontify/sidebar-settings';
54
+ import { SensorDescriptor } from '@dnd-kit/core';
55
+ import { SensorOptions } from '@dnd-kit/core';
56
+ import { SetStateAction } from 'react';
57
+ import type { SettingBlock as SettingBlock_2 } from '@frontify/sidebar-settings';
58
+ import type { SimpleSettingBlock as SimpleSettingBlock_2 } from '@frontify/sidebar-settings';
59
+ import type { SwitchBlock as SwitchBlock_2 } from '@frontify/sidebar-settings';
60
+ import type { TemplateInputBlock as TemplateInputBlock_2 } from '@frontify/sidebar-settings';
61
+ import { TemplateLegacy } from '@frontify/app-bridge';
62
+ import type { TextareaBlock as TextareaBlock_2 } from '@frontify/sidebar-settings';
63
+ import { TextStyleRenderElementProps } from '@frontify/fondue';
64
+ import { TLinkElement } from '@frontify/fondue';
65
+ import { TText } from '@frontify/fondue';
66
+ import { UnwrapNodesOptions } from '@frontify/fondue';
67
+ import { Value } from '@frontify/fondue';
68
+ import type { ValueOrPromisedValue as ValueOrPromisedValue_2 } from '@frontify/sidebar-settings';
69
+ import { WithOverride } from '@frontify/fondue';
70
+ import { WrapNodesOptions } from '@frontify/fondue';
71
+
72
+ export declare const addHttps: (url: string) => string;
73
+
74
+ export declare const AllTextStylePlugins: (Custom1Plugin | Custom2Plugin | Custom3Plugin | Heading1Plugin | Heading2Plugin | Heading3Plugin | Heading4Plugin | ImageCaptionPlugin | ImageTitlePlugin | ParagraphPlugin | QuotePlugin)[];
75
+
76
+ export declare const AllTextStyles: TextStyles[];
77
+
78
+ export declare type AssetInputBlock = AssetInputBlock_2<AppBridgeBlock>;
79
+
80
+ export declare type AttachmentItemProps = SortableAttachmentItemProps & {
81
+ isDragging?: boolean;
82
+ transformStyle?: Record<string, unknown>;
83
+ draggableProps?: Record<string, unknown>;
84
+ isOverlay?: boolean;
85
+ };
86
+
87
+ export declare const Attachments: ({ items, onDelete, onReplaceWithBrowse, onReplaceWithUpload, onBrowse, onUpload, onSorted, appBridge, triggerComponent: TriggerComponent, isOpen, onOpenChange, }: AttachmentsProps) => JSX_2.Element | null;
88
+
89
+ export declare type AttachmentsProps = {
90
+ items?: Asset[];
91
+ appBridge: AppBridgeBlock;
92
+ onReplaceWithUpload: (attachmentToReplace: Asset, newAsset: Asset) => Promise<void>;
93
+ onReplaceWithBrowse: (attachmentToReplace: Asset, newAsset: Asset) => Promise<void>;
94
+ onDelete: (attachmentToDelete: Asset) => void;
95
+ onUpload: (uploadedAttachments: Asset[]) => Promise<void>;
96
+ onBrowse: (browserAttachments: Asset[]) => void;
97
+ onSorted: (sortedAttachments: Asset[]) => void;
98
+ triggerComponent?: (props: AttachmentsTriggerProps) => ReactElement;
99
+ } & ({
100
+ isOpen?: never;
101
+ onOpenChange?: never;
102
+ } | {
103
+ isOpen: boolean;
104
+ onOpenChange: (isOpen: boolean) => void;
105
+ });
106
+
107
+ export declare const AttachmentsProvider: ({ appBridge, children, assetId, }: {
108
+ appBridge: AppBridgeBlock;
109
+ children: ReactNode;
110
+ assetId: string;
111
+ }) => JSX_2.Element;
112
+
113
+ export declare const AttachmentsToolbarButton: ({ flyoutId, }: AttachmentsToolbarButtonProps) => JSX_2.Element;
114
+
115
+ declare type AttachmentsToolbarButtonProps = {
116
+ flyoutId?: string;
117
+ };
118
+
119
+ export declare type AttachmentsTriggerProps = {
120
+ children: ReactNode;
121
+ isFlyoutOpen: boolean;
122
+ triggerProps: HTMLAttributes<HTMLButtonElement>;
123
+ triggerRef: MutableRefObject<HTMLButtonElement>;
124
+ };
125
+
126
+ declare type BackgroundSettingsType = {
127
+ id?: string;
128
+ defaultValue?: boolean;
129
+ defaultColor?: Color;
130
+ preventDefaultColor?: boolean;
131
+ switchLabel?: string;
132
+ label?: string;
133
+ };
134
+
135
+ export declare type BaseBlock<T = undefined> = BaseBlock_2<AppBridgeBlock, T>;
136
+
137
+ export declare const BlockButtonStyles: Record<string, CSSProperties & {
138
+ hover?: CSSProperties;
139
+ }>;
140
+
141
+ export declare type BlockConfigExport = {
142
+ /**
143
+ * Block component to render.
144
+ * {@link https://developer.frontify.com/d/XFPCrGNrXQQM/content-blocks#/details-concepts-1/content-blocks}
145
+ */
146
+ block: FC<BlockProps>;
147
+ /**
148
+ * Contains the block settings and its structure.
149
+ * {@link https://developer.frontify.com/d/XFPCrGNrXQQM/content-blocks#/details-concepts-1/block-settings-1}
150
+ */
151
+ settings: ReturnType<typeof defineSettings>;
152
+ /**
153
+ * Block lifecycle hook ran before the block gets added in the Guideline.
154
+ * The hook support both synchronous or asynchronous execution.
155
+ * {@link https://developer.frontify.com/d/XFPCrGNrXQQM/content-blocks#/details-concepts-1/block-lifecycle/on-block-creation}
156
+ */
157
+ onBlockCreated?: (({ appBridge }: {
158
+ appBridge: AppBridgeBlock;
159
+ }) => void) | (({ appBridge }: {
160
+ appBridge: AppBridgeBlock;
161
+ }) => Promise<void>);
162
+ /**
163
+ * Block lifecycle hook ran before the block gets deleted from the Guideline.
164
+ * The hook support both synchronous or asynchronous execution.
165
+ * {@link https://developer.frontify.com/d/XFPCrGNrXQQM/content-blocks#/details-concepts-1/block-lifecycle/on-block-deletion}
166
+ */
167
+ onBlockDeleted?: (({ appBridge }: {
168
+ appBridge: AppBridgeBlock;
169
+ }) => void) | (({ appBridge }: {
170
+ appBridge: AppBridgeBlock;
171
+ }) => Promise<void>);
172
+ };
173
+
174
+ export declare const BlockInjectButton: ({ onDrop, label, icon, secondaryLabel, isLoading, fillParentContainer, onAssetChooseClick, onUploadClick, withMenu, onClick, validFileType, verticalLayout, }: BlockInjectButtonProps) => JSX_2.Element;
175
+
176
+ export declare type BlockInjectButtonProps = {
177
+ isLoading?: boolean;
178
+ label?: string;
179
+ validFileType?: keyof typeof FileType;
180
+ secondaryLabel?: string;
181
+ icon?: JSX.Element;
182
+ onDrop?: (files: FileList) => void;
183
+ fillParentContainer?: boolean;
184
+ onUploadClick?: () => void;
185
+ onAssetChooseClick?: () => void;
186
+ withMenu?: boolean;
187
+ onClick?: () => void;
188
+ verticalLayout?: boolean;
189
+ };
190
+
191
+ export declare const BlockItemWrapper: ({ children, toolbarItems, shouldHideWrapper, shouldHideComponent, isDragging, shouldFillContainer, outlineOffset, shouldBeShown, showAttachments, }: BlockItemWrapperProps) => ReactElement;
192
+
193
+ export declare type BlockItemWrapperProps = {
194
+ children: ReactNode;
195
+ shouldHideWrapper?: boolean;
196
+ shouldHideComponent?: boolean;
197
+ toolbarItems: (ToolbarItem | undefined)[];
198
+ isDragging?: boolean;
199
+ shouldFillContainer?: boolean;
200
+ outlineOffset?: number;
201
+ shouldBeShown?: boolean;
202
+ /**
203
+ * When set to true the BlockItemWrapper must be a child of a {@link AttachmentsProvider} component,
204
+ * or the block must be wrapped with a {@link withAttachmentsProvider} HOC.
205
+ * @default false
206
+ */
207
+ showAttachments?: boolean;
208
+ };
209
+
210
+ export declare type BlockProps = {
211
+ /**
212
+ * The Frontify App Bridge provides an interface to the Frontify app internals.
213
+ * {@link https://developer.frontify.com/d/XFPCrGNrXQQM/content-blocks#/details-concepts-1/content-blocks/introducing-the-app-bridge}
214
+ */
215
+ appBridge: AppBridgeBlock;
216
+ };
217
+
218
+ export declare type BlockSettingsStructureExport = {
219
+ [Sections.Main]?: SettingBlock[];
220
+ [Sections.Basics]?: SettingBlock[];
221
+ [Sections.Layout]?: SettingBlock[];
222
+ [Sections.Style]?: SettingBlock[];
223
+ [Sections.Security]?: SettingBlock[];
224
+ } & {
225
+ [customSectionName: string]: SettingBlock[];
226
+ };
227
+
228
+ export declare const BlockStyles: Record<string, CSSProperties & {
229
+ hover?: CSSProperties;
230
+ }>;
231
+
232
+ /**
233
+ * Returns border radius settings: border radius switch, radius slider, custom radius input
234
+ *
235
+ * @param options Options for the settings
236
+ * @param options.id Custom suffix for the setting ids
237
+ * @param options.dependentSettingId Id of setting which the border radius is dependent on
238
+ * @returns {SettingBlock} Returns border settings
239
+ */
240
+ declare type BorderRadiusSettingsType = {
241
+ id?: string;
242
+ dependentSettingId?: string;
243
+ radiusStyleMap?: Record<Radius, string>;
244
+ defaultRadius?: Radius;
245
+ };
246
+
247
+ /**
248
+ * Returns border radius settings: border radius switch, radius slider, custom radius inputs for every corner
249
+ *
250
+ * @param options Options for the settings
251
+ * @param options.id Custom suffix for the setting ids
252
+ * @param options.dependentSettingId Id of setting which the border radius is dependent on
253
+ * @returns {SettingBlock} Returns border settings
254
+ */
255
+ declare type BorderRadiusSettingsType_2 = {
256
+ id?: string;
257
+ dependentSettingId?: string;
258
+ defaultValue?: Radius;
259
+ };
260
+
261
+ export declare type BorderSettings = {
262
+ hasBorder: boolean;
263
+ borderStyle: BorderStyle;
264
+ borderWidth: string;
265
+ borderColor: Color_2;
266
+ };
267
+
268
+ /**
269
+ * Returns border settings: border switch, border style, border width, border color
270
+ *
271
+ * @param options Options for the settings
272
+ * @param options.id Custom suffix for the setting ids
273
+ * @param options.switchLabel Label for the border switch
274
+ * @param options.defaultValue Default value for the border switch
275
+ * @returns {SettingBlock} Returns border settings
276
+ */
277
+ declare type BorderSettingsType = {
278
+ id?: string;
279
+ defaultValue?: boolean;
280
+ defaultColor?: Color_2;
281
+ switchLabel?: string;
282
+ };
283
+
284
+ export declare enum BorderStyle {
285
+ Solid = "Solid",
286
+ Dashed = "Dashed",
287
+ Dotted = "Dotted"
288
+ }
289
+
290
+ export declare const borderStyleMap: Record<BorderStyle, string>;
291
+
292
+ export declare type Bundle = Bundle_2<AppBridgeBlock>;
293
+
294
+ export declare const BUTTON_PLUGIN = "button-plugin";
295
+
296
+ export declare interface ButtonPlugin {
297
+ forceSubmit?: boolean;
298
+ /**
299
+ * Allow custom config for rangeBeforeOptions.
300
+ * @example default
301
+ * {
302
+ * matchString: ' ',
303
+ * skipInvalid: true,
304
+ * afterMatch: true,
305
+ * }
306
+ */
307
+ rangeBeforeOptions?: RangeBeforeOptions;
308
+ /**
309
+ * Hotkeys to trigger floating button.
310
+ * @default 'command+k, ctrl+k'
311
+ */
312
+ triggerFloatingButtonHotkeys: string;
313
+ /**
314
+ * Callback to validate an url.
315
+ * @default isUrl
316
+ */
317
+ isUrl: (text: string) => boolean;
318
+ /**
319
+ * Callback to optionally get the href for a url
320
+ * @returns href: an optional link to be used that is different from the text content (example https://google.com for google.com)
321
+ */
322
+ getUrlHref?: (url: string) => string | undefined;
323
+ /**
324
+ * On keyboard shortcut or toolbar mousedown, get the link url by calling this promise. The
325
+ * default behavior is to use the browser's native `prompt`.
326
+ */
327
+ getLinkUrl?: (prevUrl: string | null) => Promise<string | null>;
328
+ }
329
+
330
+ export declare class ButtonPlugin extends Plugin_2 {
331
+ styles: CSSProperties;
332
+ private appBridge;
333
+ constructor({ styles, ...props }: ButtonPluginProps);
334
+ plugins(): PlatePlugin[];
335
+ }
336
+
337
+ export declare type ButtonPluginProps = Omit<PluginProps, 'styles'> & {
338
+ styles?: Record<string, CSSProperties & {
339
+ hover?: CSSProperties;
340
+ }>;
341
+ } & {
342
+ appBridge: AppBridgeBlock;
343
+ };
344
+
345
+ export declare type ButtonToolbarItem = {
346
+ type: 'button';
347
+ } & ToolbarButtonProps;
348
+
349
+ export declare type ChecklistBlock = ChecklistBlock_2<AppBridgeBlock>;
350
+
351
+ export declare type ChoicesType = ChoicesType_2<AppBridgeBlock>;
352
+
353
+ export declare type ColorInputBlock = ColorInputBlock_2<AppBridgeBlock>;
354
+
355
+ export declare const convertToRteValue: (textStyle?: string, text?: string, align?: 'center' | 'right' | 'left' | 'justify') => string;
356
+
357
+ export declare const createButtonNode: <V extends Value>(editor: PlateEditor<V>, { url, text, buttonStyle, target, children }: CreateButtonNodeOptions) => TButtonElement;
358
+
359
+ export declare interface CreateButtonNodeOptions {
360
+ url: string;
361
+ text?: string;
362
+ buttonStyle?: RichTextButtonStyle;
363
+ target?: string;
364
+ children?: TText[];
365
+ }
366
+
367
+ /**
368
+ * Enables support for hyperlinks.
369
+ */
370
+ export declare const createButtonPlugin: (appBridge: AppBridgeBlock) => PlatePlugin;
371
+
372
+ export declare const createLinkPlugin: (appBridge: AppBridgeBlock) => PlatePlugin;
373
+
374
+ export declare const createParagraphPlugin: (styles: CSSProperties) => PlatePlugin;
375
+
376
+ export declare const createQuotePlugin: (styles: CSSProperties) => PlatePlugin;
377
+
378
+ export declare class Custom1Plugin extends Plugin_2 {
379
+ styles: CSSProperties;
380
+ constructor({ styles, ...props }?: PluginProps);
381
+ plugins(): PlatePlugin[];
382
+ }
383
+
384
+ export declare class Custom2Plugin extends Plugin_2 {
385
+ styles: CSSProperties;
386
+ constructor({ styles, ...props }?: PluginProps);
387
+ plugins(): PlatePlugin[];
388
+ }
389
+
390
+ export declare class Custom3Plugin extends Plugin_2 {
391
+ styles: CSSProperties;
392
+ constructor({ styles, ...props }?: PluginProps);
393
+ plugins(): PlatePlugin[];
394
+ }
395
+
396
+ export declare const customCoordinatesGetterFactory: (columnGap: number, rowGap: number) => KeyboardCoordinateGetter;
397
+
398
+ export declare const DEFAULT_ATTACHMENTS_BUTTON_ID = "attachments";
399
+
400
+ export declare const DEFAULT_DRAG_TOOLTIP = "Drag or press \u21B5 to move";
401
+
402
+ export declare const DEFAULT_DRAGGING_TOOLTIP = "Move with \u2191\u2193\u2190\u2192 and confirm with \u21B5";
403
+
404
+ export declare const DEFAULT_MENU_BUTTON_ID = "menu";
405
+
406
+ /**
407
+ * Type helper to make it easier to export a theme, accepts a direct {@link BlockConfigExport} object.
408
+ */
409
+ export declare const defineBlock: (config: BlockConfigExport) => BlockConfigExport;
410
+
411
+ /**
412
+ * Type helper to make it easier to export block's settings structure, accepts a direct {@link BlockSettingsStructureExport} object
413
+ * or a function return a direct {@link BlockSettingsStructureExport} or a function returning a Promise of {@link BlockSettingsStructureExport}.
414
+ */
415
+ export declare const defineSettings: <T extends BlockSettingsStructureExport | (() => Promise<BlockSettingsStructureExport>) | (() => BlockSettingsStructureExport)>(settingsStructure: T) => T;
416
+
417
+ export declare const DownloadButton: ({ onDownload }: DownloadButtonProps) => JSX_2.Element;
418
+
419
+ declare type DownloadButtonProps = {
420
+ onDownload: () => void;
421
+ };
422
+
423
+ export declare const DragHandleToolbarButton: ({ tooltip, icon, setActivatorNodeRef, draggableProps, }: DragHandleToolbarButtonProps) => JSX_2.Element;
424
+
425
+ export declare type DragHandleToolbarButtonProps = {
426
+ icon?: ReactNode;
427
+ tooltip?: string;
428
+ draggableProps: Record<string, unknown>;
429
+ setActivatorNodeRef?: (node: HTMLElement | null) => void;
430
+ };
431
+
432
+ export declare type DragHandleToolbarItem = {
433
+ type: 'dragHandle';
434
+ } & DragHandleToolbarButtonProps;
435
+
436
+ export declare const DragPreviewContextProvider: ({ children, isDragPreview, }: {
437
+ children: ReactNode;
438
+ isDragPreview: boolean;
439
+ }) => JSX_2.Element;
440
+
441
+ export declare type DropdownBlock = DropdownBlock_2<AppBridgeBlock>;
442
+
443
+ export declare type DynamicSettingBlock<Block extends DynamicSupportedBlock = DynamicSupportedBlock> = DynamicSettingBlock_2<AppBridgeBlock, Block>;
444
+
445
+ export declare type DynamicSupportedBlock = DynamicSupportedBlock_2<AppBridgeBlock>;
446
+
447
+ export declare const ELEMENT_BUTTON = "button";
448
+
449
+ export declare const FlyoutToolbarButton: ({ content, icon, tooltip, flyoutId, flyoutFooter, flyoutHeader, }: FlyoutToolbarButtonProps) => JSX_2.Element;
450
+
451
+ export declare type FlyoutToolbarButtonProps = {
452
+ content: ReactNode;
453
+ icon: ReactNode;
454
+ tooltip: ReactNode;
455
+ flyoutId: string;
456
+ flyoutFooter?: ReactNode;
457
+ flyoutHeader?: ReactNode;
458
+ };
459
+
460
+ export declare type FlyoutToolbarItem = {
461
+ type: 'flyout';
462
+ } & FlyoutToolbarButtonProps;
463
+
464
+ export declare type FontInputBlock = FontInputBlock_2<AppBridgeBlock>;
465
+
466
+ export declare const getBackgroundColorStyles: (backgroundColor: Color) => CSSProperties;
467
+
468
+ /**
469
+ * Returns background settings: background switch, background color
470
+ *
471
+ * @param options Options for the settings
472
+ * @param options.id Custom suffix for the setting ids
473
+ * @param options.defaultValue Default value for the background switch
474
+ * @param options.defaultColor Default value for the background color
475
+ * @param options.preventDefaultColor Whether the background color should be empty by default
476
+ * @param options.label Label for the background input
477
+ * @param options.switchLabel Label for the background switch
478
+ * @returns {SettingBlock} Returns background settings
479
+ */
480
+ export declare const getBackgroundSettings: (options?: BackgroundSettingsType) => SettingBlock;
481
+
482
+ export declare const getBorderRadiusSettings: (options?: BorderRadiusSettingsType) => SettingBlock;
483
+
484
+ export declare const getBorderRadiusSlider: (id: string, defaultValue?: Radius) => SettingBlock;
485
+
486
+ export declare const getBorderSettings: (options?: BorderSettingsType) => SettingBlock;
487
+
488
+ export declare const getBorderStyles: (style?: BorderStyle, borderWidth?: string, color?: Color) => CSSProperties;
489
+
490
+ export declare const getDefaultPluginsWithLinkChooser: (appBridge: AppBridgeBlock) => PluginComposer;
491
+
492
+ export declare const getExtendedBorderRadiusSettings: (options?: BorderRadiusSettingsType_2) => SettingBlock;
493
+
494
+ export declare const getGutterSettings: (options?: GutterSettingsType) => SettingBlock;
495
+
496
+ export declare const getLegacyUrl: (editor: PlateEditor) => string;
497
+
498
+ export declare const getLinkFromEditor: (editor: PlateEditor) => string;
499
+
500
+ /**
501
+ * Returns margin settings: margin switch, margin slider, custom margin input for every direction
502
+ *
503
+ * @param options Options for the settings
504
+ * @param options.id Custom suffix for the setting ids
505
+ * @returns {SettingBlock} Returns margin settings
506
+ */
507
+ export declare const getMarginExtendedSettings: (options?: MarginSettingsType_2) => SettingBlock;
508
+
509
+ export declare const getMarginSettings: (options?: MarginSettingsType) => SettingBlock;
510
+
511
+ /**
512
+ * Returns margin settings: margin switch, margin slider, custom margin input
513
+ *
514
+ * @param {string} id Custom suffix for the setting ids
515
+ * @returns {SettingBlock} Returns margin settings
516
+ */
517
+ export declare const getMarginSlider: (id: string) => SettingBlock;
518
+
519
+ /**
520
+ * Returns padding settings: padding switch, padding slider, custom padding input for every direction
521
+ *
522
+ * @param options Options for the settings
523
+ * @param options.id Custom suffix for the setting ids
524
+ * @returns {SettingBlock} Returns padding settings
525
+ */
526
+ export declare const getPaddingExtendedSettings: (options?: PaddingSettingsType_2) => SettingBlock;
527
+
528
+ export declare const getPaddingSettings: (options?: PaddingSettingsType) => SettingBlock;
529
+
530
+ /**
531
+ * Returns padding settings: padding switch, padding slider, custom padding input
532
+ *
533
+ * @param options Options for the settings
534
+ * @param options.id Custom suffix for the setting ids
535
+ * @returns {SettingBlock} Returns padding settings
536
+ */
537
+ export declare const getPaddingSlider: (id: string) => SettingBlock;
538
+
539
+ export declare const getRadiusStyles: (radiusChoice: Radius, hasRadius?: boolean, radiusValue?: number) => CSSProperties;
540
+
541
+ export declare const getReadableColor: (textColor: unknown, backgroundColor: unknown) => string;
542
+
543
+ export declare const getSecurityDownloadableSetting: (options?: SecurityDownloadableSettingType) => SettingBlock;
544
+
545
+ export declare const getSecurityGlobalControlId: (id?: string) => string;
546
+
547
+ /**
548
+ * Returns segment controls for global security settings.
549
+ *
550
+ * @param {string} id custom id for the setting block
551
+ *
552
+ * @returns {SettingBlock} Returns
553
+ */
554
+ export declare const getSecurityGlobalControlSetting: (id?: string) => SettingBlock[];
555
+
556
+ export declare const getUrl: (editor: PlateEditor) => string;
557
+
558
+ export declare const getUrlFromEditor: (editor: PlateEditor) => string;
559
+
560
+ export declare const getUrlFromLinkOrLegacyLink: (link: TLinkElement_2) => string;
561
+
562
+ /**
563
+ * Returns gutter settings: gutter switch, gutter choices or gutter custom input
564
+ *
565
+ * @param options Options for the settings
566
+ * @param options.id Custom id for the gutters switch
567
+ * @param options.dependentSettingId Id of the dependent setting
568
+ * @param options.spacingChoiceId Id of the spacing choice
569
+ * @param options.defaultValueChoices Default value for the spacing choice
570
+ * @returns {SettingBlock} Returns the gutter settings
571
+ */
572
+ declare type GutterSettingsType = {
573
+ id?: string;
574
+ dependentSettingId?: string;
575
+ spacingChoiceId?: string;
576
+ spacingCustomId?: string;
577
+ defaultValueChoices?: GutterSpacing;
578
+ };
579
+
580
+ export declare enum GutterSpacing {
581
+ Auto = "Auto",
582
+ S = "S",
583
+ M = "M",
584
+ L = "L"
585
+ }
586
+
587
+ export declare const gutterSpacingStyleMap: Record<GutterSpacing, string>;
588
+
589
+ export declare const hasRichTextValue: (string?: string) => boolean;
590
+
591
+ export declare class Heading1Plugin extends Plugin_2 {
592
+ styles: CSSProperties;
593
+ constructor({ styles, ...props }?: PluginProps);
594
+ plugins(): PlatePlugin[];
595
+ }
596
+
597
+ export declare class Heading2Plugin extends Plugin_2 {
598
+ styles: CSSProperties;
599
+ constructor({ styles, ...props }?: PluginProps);
600
+ plugins(): PlatePlugin[];
601
+ }
602
+
603
+ export declare class Heading3Plugin extends Plugin_2 {
604
+ styles: CSSProperties;
605
+ constructor({ styles, ...props }?: PluginProps);
606
+ plugins(): PlatePlugin[];
607
+ }
608
+
609
+ export declare class Heading4Plugin extends Plugin_2 {
610
+ styles: CSSProperties;
611
+ constructor({ styles, ...props }?: PluginProps);
612
+ plugins(): PlatePlugin[];
613
+ }
614
+
615
+ export declare class ImageCaptionPlugin extends Plugin_2 {
616
+ styles: CSSProperties;
617
+ constructor({ styles, ...props }?: PluginProps);
618
+ plugins(): PlatePlugin[];
619
+ }
620
+
621
+ export declare class ImageTitlePlugin extends Plugin_2 {
622
+ styles: CSSProperties;
623
+ constructor({ styles, ...props }?: PluginProps);
624
+ plugins(): PlatePlugin[];
625
+ }
626
+
627
+ export declare type InitiallyExpandedItems = {
628
+ documentId?: number;
629
+ pageId?: number;
630
+ };
631
+
632
+ export declare type InputBlock = InputBlock_2<AppBridgeBlock>;
633
+
634
+ export declare const insertButton: <V extends Value>(editor: PlateEditor<V>, createButtonNodeOptions: CreateButtonNodeOptions, options?: InsertNodesOptions<V> | undefined) => void;
635
+
636
+ export declare const isDark: (color: unknown, threshold?: number) => boolean;
637
+
638
+ export declare const isDownloadable: (security: Security, downloadable: boolean, globalAssetDownloadEnabled: boolean) => boolean;
639
+
640
+ export declare const isValidUrl: (url: string) => boolean;
641
+
642
+ export declare const isValidUrlOrEmpty: (url: string) => boolean;
643
+
644
+ /**
645
+ * Cleans and joins an array of inputs with possible undefined or boolean values.
646
+ *
647
+ * @param {Array} classNames Array of class names
648
+ * @returns Clean string to be used for class name.
649
+ */
650
+ export declare const joinClassNames: (classNames: (string | undefined | boolean)[]) => string;
651
+
652
+ export declare type LegacyAssetInputBlock = LegacyAssetInputBlock_2<AppBridgeBlock>;
653
+
654
+ export declare type LinkBlock = LinkBlock_2<AppBridgeBlock>;
655
+
656
+ export declare type LinkChooserBlock = LinkChooserBlock_2<AppBridgeBlock>;
657
+
658
+ export declare const LinkInput: ({ onUrlChange, onToggleTab, isValidUrlOrEmpty, appBridge, clearable, placeholder, newTab, openInNewTab, url, required, info, label, buttonSize, hideInternalLinkButton, }: LinkInputProps) => JSX_2.Element;
659
+
660
+ declare type LinkInputProps = {
661
+ url?: string;
662
+ info?: string;
663
+ label?: string;
664
+ required?: boolean;
665
+ newTab?: CheckboxState;
666
+ openInNewTab?: boolean;
667
+ onUrlChange?: (value: string) => void;
668
+ onToggleTab?: (checked: boolean) => void;
669
+ isValidUrlOrEmpty?: (url: string) => boolean;
670
+ appBridge: AppBridgeBlock | AppBridgeTheme;
671
+ clearable?: boolean;
672
+ placeholder?: string;
673
+ buttonSize?: ButtonSize;
674
+ hideInternalLinkButton?: boolean;
675
+ };
676
+
677
+ export declare class LinkPlugin extends Plugin_2 {
678
+ styles: CSSProperties;
679
+ private appBridge;
680
+ constructor({ styles, ...props }: LinkPluginProps);
681
+ plugins(): PlatePlugin[];
682
+ }
683
+
684
+ export declare type LinkPluginProps = PluginProps & {
685
+ appBridge: AppBridgeBlock;
686
+ };
687
+
688
+ export declare const LinkSelector: ({ url, onUrlChange, buttonSize, getAllDocuments, getDocumentPagesByDocumentId, getDocumentSectionsByDocumentPageId, }: LinkSelectorProps) => ReactElement;
689
+
690
+ declare type LinkSelectorProps = {
691
+ url: string;
692
+ onUrlChange?: (value: string) => void;
693
+ buttonSize?: ButtonSize;
694
+ getAllDocuments: () => Promise<Document_2[]>;
695
+ getDocumentSectionsByDocumentPageId: (documentPageId: number) => Promise<DocumentSection[]>;
696
+ getDocumentPagesByDocumentId: (documentId: number) => Promise<DocumentPage[]>;
697
+ };
698
+
699
+ export declare const mapAppBridgeColorPalettesToFonduePalettes: (colorPalettes: ColorPalette[]) => Palette[];
700
+
701
+ export declare const mapAppBridgeColorPaletteToFonduePalette: (colorPalette: ColorPalette) => Palette;
702
+
703
+ export declare enum Margin {
704
+ None = "None",
705
+ Small = "Small",
706
+ Medium = "Medium",
707
+ Large = "Large"
708
+ }
709
+
710
+ export declare type MarginExtendedSettings = {
711
+ hasExtendedCustomMargin: boolean;
712
+ extendedMarginChoice: Margin;
713
+ extendedMarginTop: string;
714
+ extendedMarginRight: string;
715
+ extendedMarginBottom: string;
716
+ extendedMarginLeft: string;
717
+ };
718
+
719
+ export declare type MarginSettings = {
720
+ marginChoice: Margin;
721
+ hasCustomMarginValue: boolean;
722
+ marginValue: string;
723
+ };
724
+
725
+ declare type MarginSettingsType = {
726
+ id?: string;
727
+ marginStyleMap?: Record<Margin, string>;
728
+ };
729
+
730
+ declare type MarginSettingsType_2 = {
731
+ id?: string;
732
+ };
733
+
734
+ export declare const marginStyleMap: Record<Margin, string>;
735
+
736
+ export declare const MenuToolbarButton: ({ items, flyoutId, tooltip, }: MenuToolbarButtonProps) => JSX_2.Element;
737
+
738
+ export declare type MenuToolbarButtonProps = {
739
+ items: ToolbarFlyoutMenuItem[][];
740
+ flyoutId?: string;
741
+ tooltip?: string;
742
+ };
743
+
744
+ export declare type MenuToolbarItem = {
745
+ type: 'menu';
746
+ } & MenuToolbarButtonProps;
747
+
748
+ /**
749
+ * Moves an item from the 'from' position to the 'to' position and updates the array
750
+ *
751
+ * @param {Array} array Array of items
752
+ * @param {Number} from Initial index of the item
753
+ * @param {Number} to New index of the item
754
+ * @returns {Array} New array with the item moved to the new position
755
+ */
756
+ export declare const moveItemInArray: <T>(array: T[], from: number, to: number) => T[];
757
+
758
+ export declare const MultiFlyoutContextProvider: ({ children, openFlyoutIds, setOpenFlyoutIds, }: {
759
+ children: ReactNode;
760
+ } & MultiFlyoutContextType) => JSX_2.Element;
761
+
762
+ export declare type MultiFlyoutContextType = {
763
+ openFlyoutIds: string[];
764
+ setOpenFlyoutIds: Dispatch<SetStateAction<string[]>>;
765
+ };
766
+
767
+ export declare type MultiInputBlock = MultiInputBlock_2<AppBridgeBlock>;
768
+
769
+ export declare type NotificationBlock = NotificationBlock_2<AppBridgeBlock>;
770
+
771
+ export declare enum Padding {
772
+ None = "None",
773
+ Small = "Small",
774
+ Medium = "Medium",
775
+ Large = "Large"
776
+ }
777
+
778
+ export declare type PaddingExtendedSettings = {
779
+ hasExtendedCustomPadding: boolean;
780
+ extendedPaddingChoice: Padding;
781
+ extendedPaddingTop: string;
782
+ extendedPaddingRight: string;
783
+ extendedPaddingBottom: string;
784
+ extendedPaddingLeft: string;
785
+ };
786
+
787
+ export declare type PaddingSettings = {
788
+ paddingChoice: Padding;
789
+ hasCustomPaddingValue: boolean;
790
+ paddingValue: string;
791
+ };
792
+
793
+ declare type PaddingSettingsType = {
794
+ id?: string;
795
+ paddingStyleMap?: Record<Padding, string>;
796
+ };
797
+
798
+ declare type PaddingSettingsType_2 = {
799
+ id?: string;
800
+ };
801
+
802
+ export declare const paddingStyleMap: Record<Padding, string>;
803
+
804
+ export declare const PARAGRAPH_CLASSES = "tw-m-0 tw-px-0 tw-py-0";
805
+
806
+ export declare class ParagraphMarkupElement extends MarkupElement {
807
+ constructor(id?: TextStyles, node?: ({ element, attributes, children, styles }: TextStyleRenderElementProps) => JSX_2.Element);
808
+ }
809
+
810
+ export declare const ParagraphMarkupElementNode: ({ element, attributes, children, styles }: TextStyleRenderElementProps) => JSX_2.Element;
811
+
812
+ export declare class ParagraphPlugin extends Plugin_2 {
813
+ styles: {};
814
+ constructor({ styles, ...props }?: PluginProps);
815
+ plugins(): PlatePlugin[];
816
+ }
817
+
818
+ export declare const QuoteMarkupElementNode: ({ element, attributes, children, styles }: TextStyleRenderElementProps) => JSX_2.Element;
819
+
820
+ export declare class QuotePlugin extends Plugin_2 {
821
+ styles: CSSProperties;
822
+ constructor({ styles, ...props }?: PluginProps);
823
+ plugins(): PlatePlugin[];
824
+ }
825
+
826
+ export declare enum Radius {
827
+ None = "None",
828
+ Small = "Small",
829
+ Medium = "Medium",
830
+ Large = "Large"
831
+ }
832
+
833
+ export declare type RadiusExtendedSettings = {
834
+ hasExtendedCustomRadius: boolean;
835
+ extendedRadiusChoice: Radius;
836
+ extendedRadiusTopLeft: string;
837
+ extendedRadiusTopRight: string;
838
+ extendedRadiusBottomLeft: string;
839
+ extendedRadiusBottomRight: string;
840
+ };
841
+
842
+ export declare type RadiusSettings = {
843
+ hasRadius: boolean;
844
+ radiusValue: string;
845
+ radiusChoice: Radius;
846
+ };
847
+
848
+ export declare const radiusStyleMap: Record<Radius, string>;
849
+
850
+ export declare const relativeUrlRegex: RegExp;
851
+
852
+ export declare type RichTextButtonStyle = 'primary' | 'secondary' | 'tertiary';
853
+
854
+ export declare const RichTextEditor: ({ id, isEditing, value, columns, gap, placeholder, plugins, onTextChange, showSerializedText, }: RichTextEditorProps) => JSX_2.Element;
855
+
856
+ declare type RichTextEditorProps = {
857
+ id?: string;
858
+ isEditing: boolean;
859
+ value?: string;
860
+ placeholder?: string;
861
+ columns?: number;
862
+ gap?: string;
863
+ plugins?: PluginComposer;
864
+ showSerializedText?: boolean;
865
+ onTextChange?: (value: string) => void;
866
+ };
867
+
868
+ export declare type SectionHeadingBlock = SectionHeadingBlock_2<AppBridgeBlock>;
869
+
870
+ export declare enum Sections {
871
+ Main = "main",
872
+ Basics = "basics",
873
+ Layout = "layout",
874
+ Style = "style",
875
+ Security = "security",
876
+ Targets = "targets"
877
+ }
878
+
879
+ export declare enum Security {
880
+ Global = "Global",
881
+ Custom = "Custom"
882
+ }
883
+
884
+ /**
885
+ * Returns the downloadable security settings.
886
+ *
887
+ * @param {string} id custom id for the setting block
888
+ * @param {string} globalControlId custom id for the global control setting block
889
+ *
890
+ * @returns {SettingBlock} Returns downloadable security settings.
891
+ */
892
+ declare type SecurityDownloadableSettingType = {
893
+ id?: string;
894
+ globalControlId?: string;
895
+ };
896
+
897
+ export declare type SegmentedControlsBlock = SegmentedControlsBlock_2<AppBridgeBlock>;
898
+
899
+ /**
900
+ * Sets alpha value and returns rgba string.
901
+ *
902
+ * @param {string} color Rgb or hex string.
903
+ * @returns {String} To be used as css value.
904
+ */
905
+ export declare const setAlpha: (alpha: number, color?: string) => string;
906
+
907
+ export declare type SettingBlock = SettingBlock_2<AppBridgeBlock>;
908
+
909
+ declare type ShortNotationColor = {
910
+ r: number;
911
+ g: number;
912
+ b: number;
913
+ a?: number;
914
+ };
915
+
916
+ export declare type SimpleSettingBlock = SimpleSettingBlock_2<AppBridgeBlock>;
917
+
918
+ export declare type SortableAttachmentItemProps = {
919
+ item: Asset;
920
+ isEditing: boolean;
921
+ onDelete: () => void;
922
+ isLoading?: boolean;
923
+ onReplaceWithBrowse: () => void;
924
+ onReplaceWithUpload: (uploadedAsset: Asset) => void;
925
+ onDownload?: () => Promise<void>;
926
+ };
927
+
928
+ export declare const submitFloatingButton: <V extends Value>(editor: PlateEditor<V>) => true | undefined;
929
+
930
+ export declare type SwitchBlock = SwitchBlock_2<AppBridgeBlock>;
931
+
932
+ export declare type TButtonElement = TLinkElement & {
933
+ chosenLink?: {
934
+ searchResult?: {
935
+ link?: string;
936
+ };
937
+ };
938
+ };
939
+
940
+ export declare type TemplateInputBlock = TemplateInputBlock_2<AppBridgeBlock>;
941
+
942
+ export declare type TextareaBlock = TextareaBlock_2<AppBridgeBlock>;
943
+
944
+ export declare const TextStylePluginsWithoutImage: (Custom1Plugin | Custom2Plugin | Custom3Plugin | Heading1Plugin | Heading2Plugin | Heading3Plugin | Heading4Plugin | ParagraphPlugin | QuotePlugin)[];
945
+
946
+ export declare enum TextStyles {
947
+ heading1 = "heading1",
948
+ heading2 = "heading2",
949
+ heading3 = "heading3",
950
+ heading4 = "heading4",
951
+ custom1 = "custom1",
952
+ custom2 = "custom2",
953
+ custom3 = "custom3",
954
+ quote = "quote",
955
+ imageCaption = "imageCaption",
956
+ imageTitle = "imageTitle",
957
+ p = "p"
958
+ }
959
+
960
+ export declare const TextStylesWithoutImage: TextStyles[];
961
+
962
+ export declare const THEME_PREFIX = "--f-theme-settings-";
963
+
964
+ declare type TLinkElement_2 = TLinkElement & {
965
+ chosenLink?: {
966
+ searchResult?: {
967
+ link?: string;
968
+ };
969
+ openInNewTab?: boolean;
970
+ };
971
+ };
972
+
973
+ /**
974
+ * Maps color strings to color objects.
975
+ *
976
+ * @param {String} String representing color
977
+ * @returns {Color} Color object
978
+ */
979
+ export declare const toColorObject: (colorString: string) => Color;
980
+
981
+ /**
982
+ * Maps color object of rgba values to hex alpha string.
983
+ *
984
+ * @param {Object} Color object
985
+ * @returns {String} To be used as css value.
986
+ */
987
+ export declare const toHex8String: (color: Color) => string;
988
+
989
+ /**
990
+ * Maps color object of rgba values to hex alpha string.
991
+ */
992
+ export declare const toHexString: (color: Color) => string;
993
+
994
+ export declare const Toolbar: ({ items, attachments }: ToolbarProps) => JSX_2.Element;
995
+
996
+ declare type ToolbarButtonProps = {
997
+ icon: JSX_2.Element;
998
+ tooltip?: string;
999
+ onClick: () => void;
1000
+ };
1001
+
1002
+ export declare const ToolbarFlyoutMenu: ({ items, flyoutId }: ToolbarFlyoutMenuProps) => JSX_2.Element;
1003
+
1004
+ export declare type ToolbarFlyoutMenuItem = {
1005
+ title: string;
1006
+ onClick: () => void;
1007
+ icon: JSX_2.Element;
1008
+ style?: MenuItemStyle;
1009
+ };
1010
+
1011
+ export declare type ToolbarFlyoutMenuProps = {
1012
+ items: ToolbarFlyoutMenuItem[][];
1013
+ flyoutId: string;
1014
+ };
1015
+
1016
+ export declare type ToolbarItem = DragHandleToolbarItem | ButtonToolbarItem | FlyoutToolbarItem | MenuToolbarItem;
1017
+
1018
+ export declare type ToolbarProps = {
1019
+ items: ToolbarItem[];
1020
+ attachments: {
1021
+ isEnabled: boolean;
1022
+ };
1023
+ };
1024
+
1025
+ /**
1026
+ * Maps color object of rgba values to rgba string.
1027
+ *
1028
+ * @param {Object} Color object
1029
+ * @returns {String} To be used as css value.
1030
+ */
1031
+ export declare const toRgbaString: (color: Color) => string;
1032
+
1033
+ /**
1034
+ * Maps color object from long to short rgba notation.
1035
+ *
1036
+ * @param {Object} Color object
1037
+ * @returns {Object} ShortNotationColor object
1038
+ */
1039
+ export declare const toShortRgba: (color: unknown) => ShortNotationColor;
1040
+
1041
+ export declare const triggerFloatingButton: <V extends Value>(editor: PlateEditor<V>, { focused, }?: {
1042
+ focused?: boolean | undefined;
1043
+ }) => void;
1044
+
1045
+ export declare const triggerFloatingButtonEdit: <V extends Value>(editor: PlateEditor<V>) => void;
1046
+
1047
+ /**
1048
+ * Trigger floating button.
1049
+ *
1050
+ * Do not trigger when:
1051
+ * - selection is across blocks
1052
+ * - selection has more than one leaf node
1053
+ * - lowest selection is not text
1054
+ * - selection has a button node
1055
+ */
1056
+ export declare const triggerFloatingButtonInsert: <V extends Value>(editor: PlateEditor<V>, { focused, }?: {
1057
+ focused?: boolean | undefined;
1058
+ }) => void;
1059
+
1060
+ /**
1061
+ * Unwrap button node.
1062
+ */
1063
+ export declare const unwrapButton: <V extends Value>(editor: PlateEditor<V>, options?: UnwrapNodesOptions & {
1064
+ split?: boolean;
1065
+ }) => boolean;
1066
+
1067
+ /**
1068
+ * If selection in a button or is not url:
1069
+ * - insert text with url, exit
1070
+ * If selection is expanded or `update` in a button:
1071
+ * - remove button node, get button text
1072
+ * Then:
1073
+ * - insert button node
1074
+ */
1075
+ export declare const upsertButton: <V extends Value>(editor: PlateEditor<V>, { url, text, buttonStyle, target, insertTextInButton, insertNodesOptions, isUrl, }: UpsertButtonOptions<V>) => true | undefined;
1076
+
1077
+ export declare type UpsertButtonOptions<V extends Value = Value> = CreateButtonNodeOptions & {
1078
+ /**
1079
+ * If true, insert text when selection is in url.
1080
+ */
1081
+ insertTextInButton?: boolean;
1082
+ insertNodesOptions?: InsertNodesOptions<V>;
1083
+ unwrapNodesOptions?: UnwrapNodesOptions<V>;
1084
+ wrapNodesOptions?: WrapNodesOptions<V>;
1085
+ isUrl?: (url: string) => boolean;
1086
+ };
1087
+
1088
+ /**
1089
+ * If the text is different than the button above text, replace button children by a new text.
1090
+ * The new text has the same marks than the first text replaced.
1091
+ */
1092
+ export declare const upsertButtonText: <V extends Value>(editor: PlateEditor<V>, { text }: UpsertButtonOptions<V>) => void;
1093
+
1094
+ export declare const useAttachments: (appBridge: AppBridgeBlock, attachmentKey: string) => {
1095
+ onAttachmentsAdd: (newAssets: Asset[]) => Promise<void>;
1096
+ onAttachmentDelete: (assetToDelete: Asset) => Promise<void>;
1097
+ onAttachmentReplace: (attachmentToReplace: Asset, newAsset: Asset) => Promise<void>;
1098
+ onAttachmentsSorted: (assets: Asset[]) => Promise<void>;
1099
+ attachments: Asset[];
1100
+ appBridge: AppBridgeBlock<BlockState, BlockContext, {
1101
+ assetsChosen: {
1102
+ assets: Asset[];
1103
+ };
1104
+ templateChosen: {
1105
+ template: TemplateLegacy;
1106
+ };
1107
+ "State.settings": [Record<string, unknown>, Record<string, unknown>];
1108
+ "State.assets": [Record<string, unknown>, Record<string, unknown>];
1109
+ "State.templates": [Record<string, unknown>, Record<string, unknown>];
1110
+ "State.*": [BlockState, BlockState];
1111
+ "Context.portalId": [number, number];
1112
+ "Context.blockId": [number, number];
1113
+ "Context.sectionId"?: [number | undefined, number | undefined] | undefined;
1114
+ "Context.*": [BlockContext, BlockContext];
1115
+ }>;
1116
+ };
1117
+
1118
+ export declare const useAttachmentsContext: () => {
1119
+ onAttachmentsAdd: (newAssets: Asset[]) => Promise<void>;
1120
+ onAttachmentDelete: (assetToDelete: Asset) => Promise<void>;
1121
+ onAttachmentReplace: (attachmentToReplace: Asset, newAsset: Asset) => Promise<void>;
1122
+ onAttachmentsSorted: (assets: Asset[]) => Promise<void>;
1123
+ attachments: Asset[];
1124
+ appBridge: AppBridgeBlock<BlockState, BlockContext, {
1125
+ assetsChosen: {
1126
+ assets: Asset[];
1127
+ };
1128
+ templateChosen: {
1129
+ template: TemplateLegacy;
1130
+ };
1131
+ "State.settings": [Record<string, unknown>, Record<string, unknown>];
1132
+ "State.assets": [Record<string, unknown>, Record<string, unknown>];
1133
+ "State.templates": [Record<string, unknown>, Record<string, unknown>];
1134
+ "State.*": [BlockState, BlockState];
1135
+ "Context.portalId": [number, number];
1136
+ "Context.blockId": [number, number];
1137
+ "Context.sectionId"?: [number | undefined, number | undefined] | undefined;
1138
+ "Context.*": [BlockContext, BlockContext];
1139
+ }>;
1140
+ };
1141
+
1142
+ export declare const useDndSensors: (columnGap?: number, rowGap?: number) => SensorDescriptor<SensorOptions>[];
1143
+
1144
+ export declare const useDragPreviewContext: () => boolean;
1145
+
1146
+ export declare const useMultiFlyoutContext: () => MultiFlyoutContextType;
1147
+
1148
+ export declare const useMultiFlyoutState: (flyoutId: string) => {
1149
+ isOpen: boolean;
1150
+ onOpenChange: (isFlyoutOpen: boolean) => void;
1151
+ };
1152
+
1153
+ export declare type ValueOrPromisedValue<T> = ValueOrPromisedValue_2<AppBridgeBlock, T>;
1154
+
1155
+ /**
1156
+ * Block-level HOC for cases when there is only one attachment asset field related to the block.
1157
+ * Recommended for most cases.
1158
+ * If finer control is required over attachments, use {@link AttachmentsProvider} component.
1159
+ */
1160
+ export declare const withAttachmentsProvider: <T extends BlockProps>(Component: (props: T) => ReactNode, assetId: string) => {
1161
+ (props: T): JSX_2.Element;
1162
+ displayName: string;
1163
+ };
1164
+
1165
+ /**
1166
+ * Insert space after a url to wrap a button.
1167
+ * Lookup from the block start to the cursor to check if there is an url.
1168
+ * If not found, lookup before the cursor for a space character to check the url.
1169
+ *
1170
+ * On insert data:
1171
+ * Paste a string inside a button element will edit its children text but not its url.
1172
+ *
1173
+ */
1174
+ export declare const withButton: WithOverride;
1175
+
1176
+ /**
1177
+ * Wrap a button node with split.
1178
+ */
1179
+ export declare const wrapButton: <V extends Value>(editor: PlateEditor<V>, { url, buttonStyle, target, ...options }: WrapButtonOptions<V>) => void;
1180
+
1181
+ export declare interface WrapButtonOptions<V extends Value = Value> extends WrapNodesOptions<V> {
1182
+ url: string;
1183
+ buttonStyle?: RichTextButtonStyle;
1184
+ target?: string;
1185
+ }
1186
+
1187
+
1188
+ export * from "@frontify/sidebar-settings";
1189
+
1190
+ export { }