@frontify/guideline-blocks-settings 3.0.2 → 4.0.0-alpha.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.
- package/dist/_virtual/_rolldown/runtime.es.js +17 -0
- package/dist/components/Attachments/AttachmentItem.es.js +116 -168
- package/dist/components/Attachments/AttachmentItem.es.js.map +1 -1
- package/dist/components/Attachments/Attachments.es.js +145 -137
- package/dist/components/Attachments/Attachments.es.js.map +1 -1
- package/dist/components/Attachments/AttachmentsButtonTrigger.es.js +25 -28
- package/dist/components/Attachments/AttachmentsButtonTrigger.es.js.map +1 -1
- package/dist/components/BlockInjectButton/BlockInjectButton.es.js +114 -126
- package/dist/components/BlockInjectButton/BlockInjectButton.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/BlockItemWrapper.es.js +53 -74
- package/dist/components/BlockItemWrapper/BlockItemWrapper.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.es.js +26 -31
- package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.es.js +22 -25
- package/dist/components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButtonTrigger.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/BaseToolbarButton.es.js +17 -28
- package/dist/components/BlockItemWrapper/Toolbar/BaseToolbarButton.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.es.js +25 -35
- package/dist/components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.es.js +41 -34
- package/dist/components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.es.js +41 -36
- package/dist/components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/Toolbar.es.js +24 -33
- package/dist/components/BlockItemWrapper/Toolbar/Toolbar.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.es.js +20 -11
- package/dist/components/BlockItemWrapper/Toolbar/ToolbarButton/ToolbarButton.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/ToolbarButtonTooltip.es.js +18 -10
- package/dist/components/BlockItemWrapper/Toolbar/ToolbarButtonTooltip.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/ToolbarSegment.es.js +10 -12
- package/dist/components/BlockItemWrapper/Toolbar/ToolbarSegment.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/context/DragPreviewContext.es.js +13 -13
- package/dist/components/BlockItemWrapper/Toolbar/context/DragPreviewContext.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.es.js +21 -19
- package/dist/components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/helpers.es.js +18 -25
- package/dist/components/BlockItemWrapper/Toolbar/helpers.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.es.js +18 -17
- package/dist/components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.es.js.map +1 -1
- package/dist/components/BlockItemWrapper/constants.es.js +6 -6
- package/dist/components/BlockItemWrapper/constants.es.js.map +1 -1
- package/dist/components/Link/LinkInput.es.js +70 -63
- package/dist/components/Link/LinkInput.es.js.map +1 -1
- package/dist/components/Link/utils/getUrl.es.js +10 -12
- package/dist/components/Link/utils/getUrl.es.js.map +1 -1
- package/dist/components/Link/utils/relativeUrlRegex.es.js +6 -5
- package/dist/components/Link/utils/relativeUrlRegex.es.js.map +1 -1
- package/dist/components/Link/utils/url.es.js +21 -17
- package/dist/components/Link/utils/url.es.js.map +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.es.js +61 -68
- package/dist/components/RichTextEditor/RichTextEditor.es.js.map +1 -1
- package/dist/components/RichTextEditor/SerializedText.es.js +25 -22
- package/dist/components/RichTextEditor/SerializedText.es.js.map +1 -1
- package/dist/components/RichTextEditor/constants.es.js +6 -5
- package/dist/components/RichTextEditor/constants.es.js.map +1 -1
- package/dist/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js +30 -37
- package/dist/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js +31 -39
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/index.es.js +12 -11
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.es.js +19 -23
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.es.js +24 -26
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/ButtonToolbarButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.es.js +46 -53
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/CustomFloatingButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js +52 -54
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js +68 -68
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js +91 -103
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/useInsertModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.es.js +26 -32
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/floatingButtonStore.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js +47 -53
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEdit.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.es.js +12 -18
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEnter.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.es.js +21 -25
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonEscape.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js +29 -37
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useFloatingButtonInsert.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.es.js +13 -17
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/useVirtualFloatingButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js +56 -62
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js +9 -12
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js +23 -24
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js +28 -33
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js +61 -80
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js +23 -23
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js +18 -18
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js +13 -12
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.es.js +9 -8
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getButtonStyle.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js +11 -10
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js +85 -84
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js +13 -16
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js +13 -16
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js +10 -13
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js +45 -51
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ColumnBreakPlugin/ColumnBreakPlugin.es.js +20 -22
- package/dist/components/RichTextEditor/plugins/ColumnBreakPlugin/ColumnBreakPlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ColumnBreakPlugin/helpers.es.js +12 -12
- package/dist/components/RichTextEditor/plugins/ColumnBreakPlugin/helpers.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js +48 -57
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/CustomFloatingLink.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js +46 -48
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js +12 -8
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertLinkModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js +62 -71
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/InsertModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js +76 -77
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/InsertLinkModal/useInsertModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js +17 -21
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js +17 -10
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/LinkMarkupElementNode.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.es.js +11 -10
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkMarkupElement/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkToolbarButton.es.js +22 -26
- package/dist/components/RichTextEditor/plugins/LinkPlugin/LinkToolbarButton.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/id.es.js +6 -5
- package/dist/components/RichTextEditor/plugins/LinkPlugin/id.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/index.es.js +39 -40
- package/dist/components/RichTextEditor/plugins/LinkPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/utils/getUrl.es.js +10 -10
- package/dist/components/RichTextEditor/plugins/LinkPlugin/utils/getUrl.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/OrderedListPlugin/index.es.js +26 -26
- package/dist/components/RichTextEditor/plugins/OrderedListPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js +40 -46
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js +40 -46
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js +40 -46
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js +41 -47
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js +41 -47
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js +41 -47
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js +41 -47
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/helpers.es.js +44 -38
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/helpers.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js +41 -47
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js +40 -46
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js +45 -41
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js +40 -48
- package/dist/components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/UnorderedListPlugin/index.es.js +29 -29
- package/dist/components/RichTextEditor/plugins/UnorderedListPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/styles.es.js +167 -166
- package/dist/components/RichTextEditor/plugins/styles.es.js.map +1 -1
- package/dist/helpers/addHttps.es.js +12 -12
- package/dist/helpers/addHttps.es.js.map +1 -1
- package/dist/helpers/convertToRichTextValue.es.js +14 -6
- package/dist/helpers/convertToRichTextValue.es.js.map +1 -1
- package/dist/helpers/hasRichTextValue.es.js +13 -14
- package/dist/helpers/hasRichTextValue.es.js.map +1 -1
- package/dist/helpers/isDownloadable.es.js +6 -5
- package/dist/helpers/isDownloadable.es.js.map +1 -1
- package/dist/hooks/useAttachments.es.js +65 -73
- package/dist/hooks/useAttachments.es.js.map +1 -1
- package/dist/hooks/useIsInViewport.es.js +20 -21
- package/dist/hooks/useIsInViewport.es.js.map +1 -1
- package/dist/index.cjs.js +2 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +16 -34
- package/dist/index.es.js +219 -213
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/settings/background.es.js +20 -21
- package/dist/settings/background.es.js.map +1 -1
- package/dist/settings/border.es.js +62 -64
- package/dist/settings/border.es.js.map +1 -1
- package/dist/settings/borderRadius.es.js +49 -52
- package/dist/settings/borderRadius.es.js.map +1 -1
- package/dist/settings/borderRadiusExtended.es.js +58 -60
- package/dist/settings/borderRadiusExtended.es.js.map +1 -1
- package/dist/settings/defaultValues.es.js +16 -19
- package/dist/settings/defaultValues.es.js.map +1 -1
- package/dist/settings/gutter.es.js +48 -52
- package/dist/settings/gutter.es.js.map +1 -1
- package/dist/settings/margin.es.js +49 -52
- package/dist/settings/margin.es.js.map +1 -1
- package/dist/settings/marginExtended.es.js +62 -64
- package/dist/settings/marginExtended.es.js.map +1 -1
- package/dist/settings/padding.es.js +49 -52
- package/dist/settings/padding.es.js.map +1 -1
- package/dist/settings/paddingExtended.es.js +62 -64
- package/dist/settings/paddingExtended.es.js.map +1 -1
- package/dist/settings/securityDownloadable.es.js +16 -16
- package/dist/settings/securityDownloadable.es.js.map +1 -1
- package/dist/settings/securityGlobalControl.es.js +26 -32
- package/dist/settings/securityGlobalControl.es.js.map +1 -1
- package/dist/settings/types.es.js +41 -47
- package/dist/settings/types.es.js.map +1 -1
- package/dist/styles.css +2 -1
- package/dist/utilities/color/getReadableColor.es.js +15 -13
- package/dist/utilities/color/getReadableColor.es.js.map +1 -1
- package/dist/utilities/color/isDark.es.js +14 -9
- package/dist/utilities/color/isDark.es.js.map +1 -1
- package/dist/utilities/color/setAlpha.es.js +7 -6
- package/dist/utilities/color/setAlpha.es.js.map +1 -1
- package/dist/utilities/color/toColorObject.es.js +14 -8
- package/dist/utilities/color/toColorObject.es.js.map +1 -1
- package/dist/utilities/color/toHex8String.es.js +7 -6
- package/dist/utilities/color/toHex8String.es.js.map +1 -1
- package/dist/utilities/color/toHexString.es.js +7 -6
- package/dist/utilities/color/toHexString.es.js.map +1 -1
- package/dist/utilities/color/toRgbaString.es.js +7 -6
- package/dist/utilities/color/toRgbaString.es.js.map +1 -1
- package/dist/utilities/color/toShortRgba.es.js +18 -11
- package/dist/utilities/color/toShortRgba.es.js.map +1 -1
- package/dist/utilities/react/getBackgroundColorStyles.es.js +7 -8
- package/dist/utilities/react/getBackgroundColorStyles.es.js.map +1 -1
- package/dist/utilities/react/getBorderStyles.es.js +12 -11
- package/dist/utilities/react/getBorderStyles.es.js.map +1 -1
- package/dist/utilities/react/getRadiusStyles.es.js +7 -8
- package/dist/utilities/react/getRadiusStyles.es.js.map +1 -1
- package/dist/utilities/react/joinClassNames.es.js +6 -5
- package/dist/utilities/react/joinClassNames.es.js.map +1 -1
- package/package.json +7 -9
- package/dist/components/Link/LinkSelector/DocumentLink.es.js +0 -64
- package/dist/components/Link/LinkSelector/DocumentLink.es.js.map +0 -1
- package/dist/components/Link/LinkSelector/DocumentLinks.es.js +0 -65
- package/dist/components/Link/LinkSelector/DocumentLinks.es.js.map +0 -1
- package/dist/components/Link/LinkSelector/LinkSelector.es.js +0 -72
- package/dist/components/Link/LinkSelector/LinkSelector.es.js.map +0 -1
- package/dist/components/Link/LinkSelector/LoadingIndicator.es.js +0 -7
- package/dist/components/Link/LinkSelector/LoadingIndicator.es.js.map +0 -1
- package/dist/components/Link/LinkSelector/PageLink.es.js +0 -69
- package/dist/components/Link/LinkSelector/PageLink.es.js.map +0 -1
- package/dist/components/Link/LinkSelector/PageLinks.es.js +0 -38
- package/dist/components/Link/LinkSelector/PageLinks.es.js.map +0 -1
- package/dist/components/Link/LinkSelector/SectionLink.es.js +0 -26
- package/dist/components/Link/LinkSelector/SectionLink.es.js.map +0 -1
- package/dist/components/Link/helpers/filterDocumentSectionsWithUnreadableTitles.es.js +0 -5
- package/dist/components/Link/helpers/filterDocumentSectionsWithUnreadableTitles.es.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppBridgeBlock } from '@frontify/app-bridge';
|
|
2
|
+
import { AriaAttributes } from 'react';
|
|
2
3
|
import { Asset } from '@frontify/app-bridge';
|
|
3
4
|
import { AssetInputBlock as AssetInputBlock_2 } from '@frontify/sidebar-settings';
|
|
4
5
|
import { BaseBlock as BaseBlock_2 } from '@frontify/sidebar-settings';
|
|
@@ -11,9 +12,6 @@ import { Color } from '@frontify/sidebar-settings';
|
|
|
11
12
|
import { ColorInputBlock as ColorInputBlock_2 } from '@frontify/sidebar-settings';
|
|
12
13
|
import { CSSProperties } from 'react';
|
|
13
14
|
import { Dispatch } from 'react';
|
|
14
|
-
import { Document as Document_2 } from '@frontify/app-bridge';
|
|
15
|
-
import { DocumentPage } from '@frontify/app-bridge';
|
|
16
|
-
import { DocumentSection } from '@frontify/app-bridge';
|
|
17
15
|
import { DropdownBlock as DropdownBlock_2 } from '@frontify/sidebar-settings';
|
|
18
16
|
import { DynamicSettingBlock as DynamicSettingBlock_2 } from '@frontify/sidebar-settings';
|
|
19
17
|
import { DynamicSupportedBlock as DynamicSupportedBlock_2 } from '@frontify/sidebar-settings';
|
|
@@ -118,7 +116,7 @@ declare type AttachmentsToolbarButtonProps = {
|
|
|
118
116
|
export declare type AttachmentsTriggerProps = {
|
|
119
117
|
children: ReactNode;
|
|
120
118
|
isFlyoutOpen: boolean;
|
|
121
|
-
}
|
|
119
|
+
} & Pick<AriaAttributes, 'aria-label'>;
|
|
122
120
|
|
|
123
121
|
declare type BackgroundSettingsType = {
|
|
124
122
|
id?: string;
|
|
@@ -420,10 +418,6 @@ export declare const defineBlock: (config: BlockConfigExport) => BlockConfigExpo
|
|
|
420
418
|
*/
|
|
421
419
|
export declare const defineSettings: <T extends BlockSettingsStructureExport | (() => Promise<BlockSettingsStructureExport>) | (() => BlockSettingsStructureExport)>(settingsStructure: T) => T;
|
|
422
420
|
|
|
423
|
-
export declare type DocumentSectionWithTitle = Omit<DocumentSection, 'title'> & {
|
|
424
|
-
title: string;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
421
|
export declare const DragHandleToolbarButton: ({ tooltip, icon, setActivatorNodeRef, draggableProps, }: DragHandleToolbarButtonProps) => JSX_2.Element;
|
|
428
422
|
|
|
429
423
|
export declare type DragHandleToolbarButtonProps = {
|
|
@@ -630,11 +624,6 @@ export declare class ImageTitlePlugin extends Plugin_2 {
|
|
|
630
624
|
plugins(): PlatePlugin[];
|
|
631
625
|
}
|
|
632
626
|
|
|
633
|
-
export declare type InitiallyExpandedItems = {
|
|
634
|
-
documentId?: number;
|
|
635
|
-
pageId?: number;
|
|
636
|
-
};
|
|
637
|
-
|
|
638
627
|
export declare type InputBlock = InputBlock_2<AppBridgeBlock>;
|
|
639
628
|
|
|
640
629
|
export declare const insertButton: <V extends Value>(editor: PlateEditor<V>, createButtonNodeOptions: CreateButtonNodeOptions, options?: InsertNodesOptions<V>) => void;
|
|
@@ -691,17 +680,6 @@ export declare type LinkPluginProps = PluginProps & {
|
|
|
691
680
|
appBridge: AppBridgeBlock;
|
|
692
681
|
};
|
|
693
682
|
|
|
694
|
-
export declare const LinkSelector: ({ url, onUrlChange, buttonSize, getAllDocuments, getDocumentPagesByDocumentId, getDocumentSectionsByDocumentPageId, }: LinkSelectorProps) => ReactElement;
|
|
695
|
-
|
|
696
|
-
declare type LinkSelectorProps = {
|
|
697
|
-
url: string;
|
|
698
|
-
onUrlChange?: (value: string) => void;
|
|
699
|
-
buttonSize?: 'small' | 'medium' | 'large';
|
|
700
|
-
getAllDocuments: () => Promise<Document_2[]>;
|
|
701
|
-
getDocumentSectionsByDocumentPageId: (documentPageId: number) => Promise<DocumentSection[]>;
|
|
702
|
-
getDocumentPagesByDocumentId: (documentId: number) => Promise<DocumentPage[]>;
|
|
703
|
-
};
|
|
704
|
-
|
|
705
683
|
export declare enum Margin {
|
|
706
684
|
None = "None",
|
|
707
685
|
Small = "Small",
|
|
@@ -855,10 +833,6 @@ export declare type RichTextButtonStyle = 'primary' | 'secondary' | 'tertiary';
|
|
|
855
833
|
export declare const RichTextEditor: (props: RichTextEditorProps) => JSX_2.Element;
|
|
856
834
|
|
|
857
835
|
declare type RichTextEditorProps = {
|
|
858
|
-
/**
|
|
859
|
-
* @deprecated not needed anymore, handled automatically
|
|
860
|
-
*/
|
|
861
|
-
id?: string;
|
|
862
836
|
isEditing: boolean;
|
|
863
837
|
value?: string;
|
|
864
838
|
placeholder?: string;
|
|
@@ -1099,23 +1073,27 @@ export declare const useAttachments: (appBridge: AppBridgeBlock, attachmentKey:
|
|
|
1099
1073
|
onAttachmentReplace: (attachmentToReplace: Asset, newAsset: Asset) => Promise<void>;
|
|
1100
1074
|
onAttachmentsSorted: (assets: Asset[]) => Promise<void>;
|
|
1101
1075
|
attachments: Asset[];
|
|
1102
|
-
appBridge: AppBridgeBlock<BlockState, BlockContext, {
|
|
1076
|
+
appBridge: AppBridgeBlock< BlockState, BlockContext, {
|
|
1103
1077
|
assetsChosen: {
|
|
1104
1078
|
assets: Asset[];
|
|
1105
1079
|
};
|
|
1106
1080
|
templateChosen: {
|
|
1107
1081
|
template: TemplateLegacy;
|
|
1108
1082
|
};
|
|
1083
|
+
linkChosen: {
|
|
1084
|
+
url: string;
|
|
1085
|
+
};
|
|
1109
1086
|
"State.settings": [Record<string, unknown>, Record<string, unknown>];
|
|
1110
1087
|
"State.assets": [Record<string, unknown>, Record<string, unknown>];
|
|
1111
1088
|
"State.templates": [Record<string, unknown>, Record<string, unknown>];
|
|
1112
|
-
"State.*": [BlockState, BlockState];
|
|
1089
|
+
"State.*": [ BlockState, BlockState];
|
|
1113
1090
|
"Context.portalId": [number, number];
|
|
1114
1091
|
"Context.blockId": [number, number];
|
|
1115
1092
|
"Context.sectionId"?: [number | undefined, number | undefined] | undefined;
|
|
1116
1093
|
"Context.isAuthenticated": [boolean, boolean];
|
|
1117
1094
|
"Context.isNewlyInserted": [boolean, boolean];
|
|
1118
|
-
"Context
|
|
1095
|
+
"Context.assets"?: [Record<string, Asset[]> | undefined, Record<string, Asset[]> | undefined] | undefined;
|
|
1096
|
+
"Context.*": [ BlockContext, BlockContext];
|
|
1119
1097
|
}>;
|
|
1120
1098
|
};
|
|
1121
1099
|
|
|
@@ -1125,23 +1103,27 @@ export declare const useAttachmentsContext: () => {
|
|
|
1125
1103
|
onAttachmentReplace: (attachmentToReplace: Asset, newAsset: Asset) => Promise<void>;
|
|
1126
1104
|
onAttachmentsSorted: (assets: Asset[]) => Promise<void>;
|
|
1127
1105
|
attachments: Asset[];
|
|
1128
|
-
appBridge: AppBridgeBlock<BlockState, BlockContext, {
|
|
1106
|
+
appBridge: AppBridgeBlock< BlockState, BlockContext, {
|
|
1129
1107
|
assetsChosen: {
|
|
1130
1108
|
assets: Asset[];
|
|
1131
1109
|
};
|
|
1132
1110
|
templateChosen: {
|
|
1133
1111
|
template: TemplateLegacy;
|
|
1134
1112
|
};
|
|
1113
|
+
linkChosen: {
|
|
1114
|
+
url: string;
|
|
1115
|
+
};
|
|
1135
1116
|
"State.settings": [Record<string, unknown>, Record<string, unknown>];
|
|
1136
1117
|
"State.assets": [Record<string, unknown>, Record<string, unknown>];
|
|
1137
1118
|
"State.templates": [Record<string, unknown>, Record<string, unknown>];
|
|
1138
|
-
"State.*": [BlockState, BlockState];
|
|
1119
|
+
"State.*": [ BlockState, BlockState];
|
|
1139
1120
|
"Context.portalId": [number, number];
|
|
1140
1121
|
"Context.blockId": [number, number];
|
|
1141
1122
|
"Context.sectionId"?: [number | undefined, number | undefined] | undefined;
|
|
1142
1123
|
"Context.isAuthenticated": [boolean, boolean];
|
|
1143
1124
|
"Context.isNewlyInserted": [boolean, boolean];
|
|
1144
|
-
"Context
|
|
1125
|
+
"Context.assets"?: [Record<string, Asset[]> | undefined, Record<string, Asset[]> | undefined] | undefined;
|
|
1126
|
+
"Context.*": [ BlockContext, BlockContext];
|
|
1145
1127
|
}>;
|
|
1146
1128
|
};
|
|
1147
1129
|
|
package/dist/index.es.js
CHANGED
|
@@ -1,214 +1,220 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { UnorderedListPlugin as ar } from "./components/RichTextEditor/plugins/UnorderedListPlugin/index.es.js";
|
|
39
|
-
import { addHttps as gr } from "./helpers/addHttps.es.js";
|
|
40
|
-
import { convertToRteValue as lr } from "./helpers/convertToRichTextValue.es.js";
|
|
41
|
-
import { createButtonNode as ur } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js";
|
|
42
|
-
import { getBackgroundColorStyles as sr } from "./utilities/react/getBackgroundColorStyles.es.js";
|
|
43
|
-
import { getBackgroundSettings as Pr } from "./settings/background.es.js";
|
|
44
|
-
import { getBorderRadiusSettings as Tr, getBorderRadiusSlider as Br } from "./settings/borderRadius.es.js";
|
|
45
|
-
import { getBorderSettings as yr } from "./settings/border.es.js";
|
|
46
|
-
import { getBorderStyles as Ar } from "./utilities/react/getBorderStyles.es.js";
|
|
47
|
-
import { getDefaultPluginsWithLinkChooser as hr } from "./components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js";
|
|
48
|
-
import { getExtendedBorderRadiusSettings as kr } from "./settings/borderRadiusExtended.es.js";
|
|
49
|
-
import { getGutterSettings as Cr } from "./settings/gutter.es.js";
|
|
50
|
-
import { getLegacyUrl as _r, getLinkFromEditor as Fr, getUrl as br, getUrlFromLinkOrLegacyLink as Dr } from "./components/Link/utils/getUrl.es.js";
|
|
51
|
-
import { getMarginExtendedSettings as Nr } from "./settings/marginExtended.es.js";
|
|
52
|
-
import { getMarginSettings as Gr, getMarginSlider as Hr } from "./settings/margin.es.js";
|
|
53
|
-
import { getPaddingExtendedSettings as wr } from "./settings/paddingExtended.es.js";
|
|
54
|
-
import { getPaddingSettings as Wr, getPaddingSlider as jr } from "./settings/padding.es.js";
|
|
55
|
-
import { getRadiusStyles as Kr } from "./utilities/react/getRadiusStyles.es.js";
|
|
56
|
-
import { getReadableColor as Yr } from "./utilities/color/getReadableColor.es.js";
|
|
57
|
-
import { getSecurityDownloadableSetting as zr, getSecurityGlobalControlId as Jr } from "./settings/securityDownloadable.es.js";
|
|
58
|
-
import { getSecurityGlobalControlSetting as $r } from "./settings/securityGlobalControl.es.js";
|
|
59
|
-
import { getUrlFromEditor as re } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js";
|
|
60
|
-
import { hasRichTextValue as oe } from "./helpers/hasRichTextValue.es.js";
|
|
61
|
-
import { insertButton as ie } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js";
|
|
62
|
-
import { isDark as pe } from "./utilities/color/isDark.es.js";
|
|
63
|
-
import { isDownloadable as me } from "./helpers/isDownloadable.es.js";
|
|
64
|
-
import { isValidUrl as xe, isValidUrlOrEmpty as ue } from "./components/Link/utils/url.es.js";
|
|
65
|
-
import { joinClassNames as se } from "./utilities/react/joinClassNames.es.js";
|
|
66
|
-
import { relativeUrlRegex as Pe } from "./components/Link/utils/relativeUrlRegex.es.js";
|
|
67
|
-
import { setAlpha as Te } from "./utilities/color/setAlpha.es.js";
|
|
1
|
+
import { __exportAll as e, __reExport as ee } from "./_virtual/_rolldown/runtime.es.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { joinClassNames as te } from "./utilities/react/joinClassNames.es.js";
|
|
4
|
+
import { BlockInjectButton as t } from "./components/BlockInjectButton/BlockInjectButton.es.js";
|
|
5
|
+
import { toShortRgba as n } from "./utilities/color/toShortRgba.es.js";
|
|
6
|
+
import { isDark as r } from "./utilities/color/isDark.es.js";
|
|
7
|
+
import { toHex8String as i } from "./utilities/color/toHex8String.es.js";
|
|
8
|
+
import { toHexString as a } from "./utilities/color/toHexString.es.js";
|
|
9
|
+
import { toRgbaString as o } from "./utilities/color/toRgbaString.es.js";
|
|
10
|
+
import { setAlpha as s } from "./utilities/color/setAlpha.es.js";
|
|
11
|
+
import { toColorObject as c } from "./utilities/color/toColorObject.es.js";
|
|
12
|
+
import { getReadableColor as l } from "./utilities/color/getReadableColor.es.js";
|
|
13
|
+
import { getBackgroundColorStyles as u } from "./utilities/react/getBackgroundColorStyles.es.js";
|
|
14
|
+
import { BorderStyle as d, GutterSpacing as f, Margin as p, Padding as m, Radius as h, Security as g, borderStyleMap as _, gutterSpacingStyleMap as v, marginStyleMap as y, paddingStyleMap as b, radiusStyleMap as x } from "./settings/types.es.js";
|
|
15
|
+
import { getBorderStyles as S } from "./utilities/react/getBorderStyles.es.js";
|
|
16
|
+
import { getRadiusStyles as C } from "./utilities/react/getRadiusStyles.es.js";
|
|
17
|
+
import { DragPreviewContextProvider as w, useDragPreviewContext as T } from "./components/BlockItemWrapper/Toolbar/context/DragPreviewContext.es.js";
|
|
18
|
+
import { MultiFlyoutContextProvider as E, useMultiFlyoutContext as D } from "./components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.es.js";
|
|
19
|
+
import { useMultiFlyoutState as O } from "./components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.es.js";
|
|
20
|
+
import { AttachmentOperationsProvider as k, AttachmentsProvider as A, useAttachmentOperations as j, useAttachments as M, useAttachmentsContext as N, withAttachmentsProvider as P } from "./hooks/useAttachments.es.js";
|
|
21
|
+
import { Attachments as F } from "./components/Attachments/Attachments.es.js";
|
|
22
|
+
import { AttachmentsToolbarButton as I, DEFAULT_ATTACHMENTS_BUTTON_ID as L } from "./components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.es.js";
|
|
23
|
+
import { DEFAULT_DRAGGING_TOOLTIP as R, DEFAULT_DRAG_TOOLTIP as z } from "./components/BlockItemWrapper/constants.es.js";
|
|
24
|
+
import { DragHandleToolbarButton as B } from "./components/BlockItemWrapper/Toolbar/DragHandleToolbarButton/DragHandleToolbarButton.es.js";
|
|
25
|
+
import { FlyoutToolbarButton as V } from "./components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.es.js";
|
|
26
|
+
import { DEFAULT_MENU_BUTTON_ID as H, MenuToolbarButton as U } from "./components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.es.js";
|
|
27
|
+
import { Toolbar as W } from "./components/BlockItemWrapper/Toolbar/Toolbar.es.js";
|
|
28
|
+
import { BlockItemWrapper as G } from "./components/BlockItemWrapper/BlockItemWrapper.es.js";
|
|
29
|
+
import { hasRichTextValue as K } from "./helpers/hasRichTextValue.es.js";
|
|
30
|
+
import { convertToRteValue as q } from "./helpers/convertToRichTextValue.es.js";
|
|
31
|
+
import { isDownloadable as J } from "./helpers/isDownloadable.es.js";
|
|
32
|
+
import { getLegacyUrl as Y, getLinkFromEditor as X, getUrl as Z, getUrlFromLinkOrLegacyLink as Q } from "./components/Link/utils/getUrl.es.js";
|
|
33
|
+
import { relativeUrlRegex as ne } from "./components/Link/utils/relativeUrlRegex.es.js";
|
|
34
|
+
import { addHttps as re } from "./helpers/addHttps.es.js";
|
|
35
|
+
import { isValidUrl as ie, isValidUrlOrEmpty as ae } from "./components/Link/utils/url.es.js";
|
|
36
|
+
import { withButton as oe } from "./components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js";
|
|
37
|
+
import { insertButton as se } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js";
|
|
68
38
|
import { submitFloatingButton as ce } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js";
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
39
|
+
import { unwrapButton as le } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js";
|
|
40
|
+
import { upsertButton as ue } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js";
|
|
41
|
+
import { upsertButtonText as de } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js";
|
|
42
|
+
import { wrapButton as fe } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js";
|
|
43
|
+
import { getUrlFromEditor as pe } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js";
|
|
44
|
+
import { createButtonNode as me } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js";
|
|
45
|
+
import { triggerFloatingButton as he } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js";
|
|
46
|
+
import { triggerFloatingButtonEdit as ge } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js";
|
|
47
|
+
import { triggerFloatingButtonInsert as _e } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js";
|
|
48
|
+
import { BlockButtonStyles as ve } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js";
|
|
49
|
+
import { BlockStyles as $, TextStyles as ye } from "./components/RichTextEditor/plugins/styles.es.js";
|
|
50
|
+
import { LinkInput as be } from "./components/Link/LinkInput.es.js";
|
|
51
|
+
import { BUTTON_PLUGIN as xe, ButtonPlugin as Se, ELEMENT_BUTTON as Ce, createButtonPlugin as we } from "./components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js";
|
|
52
|
+
import { RichTextEditor as Te } from "./components/RichTextEditor/RichTextEditor.es.js";
|
|
53
|
+
import { LinkPlugin as Ee, createLinkPlugin as De } from "./components/RichTextEditor/plugins/LinkPlugin/index.es.js";
|
|
54
|
+
import { BreakAfterPlugin as Oe, GAP_DEFAULT as ke, KEY_ELEMENT_BREAK_AFTER_COLUMN as Ae } from "./components/RichTextEditor/plugins/ColumnBreakPlugin/ColumnBreakPlugin.es.js";
|
|
55
|
+
import { Custom1Plugin as je } from "./components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js";
|
|
56
|
+
import { Custom2Plugin as Me } from "./components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js";
|
|
57
|
+
import { Custom3Plugin as Ne } from "./components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js";
|
|
58
|
+
import { Heading1Plugin as Pe } from "./components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js";
|
|
59
|
+
import { Heading2Plugin as Fe } from "./components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js";
|
|
60
|
+
import { Heading3Plugin as Ie } from "./components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js";
|
|
61
|
+
import { Heading4Plugin as Le } from "./components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js";
|
|
62
|
+
import { ImageCaptionPlugin as Re } from "./components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js";
|
|
63
|
+
import { ImageTitlePlugin as ze } from "./components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js";
|
|
64
|
+
import { PARAGRAPH_CLASSES as Be, ParagraphMarkupElement as Ve, ParagraphMarkupElementNode as He, ParagraphPlugin as Ue, createParagraphPlugin as We } from "./components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js";
|
|
65
|
+
import { QuoteMarkupElementNode as Ge, QuotePlugin as Ke, createQuotePlugin as qe } from "./components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js";
|
|
66
|
+
import { AllTextStylePlugins as Je, AllTextStyles as Ye, TextStylePluginsWithoutImage as Xe, TextStylesWithoutImage as Ze } from "./components/RichTextEditor/plugins/TextStylePlugins/helpers.es.js";
|
|
67
|
+
import { UnorderedListPlugin as Qe } from "./components/RichTextEditor/plugins/UnorderedListPlugin/index.es.js";
|
|
68
|
+
import { OrderedListPlugin as $e } from "./components/RichTextEditor/plugins/OrderedListPlugin/index.es.js";
|
|
69
|
+
import { getDefaultPluginsWithLinkChooser as et } from "./components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js";
|
|
70
|
+
import { THEME_PREFIX as tt } from "./components/RichTextEditor/constants.es.js";
|
|
71
|
+
import { getBackgroundSettings as nt } from "./settings/background.es.js";
|
|
72
|
+
import { getBorderSettings as rt } from "./settings/border.es.js";
|
|
73
|
+
import { getBorderRadiusSettings as it, getBorderRadiusSlider as at } from "./settings/borderRadius.es.js";
|
|
74
|
+
import { getExtendedBorderRadiusSettings as ot } from "./settings/borderRadiusExtended.es.js";
|
|
75
|
+
import { getGutterSettings as st } from "./settings/gutter.es.js";
|
|
76
|
+
import { getMarginSettings as ct, getMarginSlider as lt } from "./settings/margin.es.js";
|
|
77
|
+
import { getMarginExtendedSettings as ut } from "./settings/marginExtended.es.js";
|
|
78
|
+
import { getPaddingSettings as dt, getPaddingSlider as ft } from "./settings/padding.es.js";
|
|
79
|
+
import { getPaddingExtendedSettings as pt } from "./settings/paddingExtended.es.js";
|
|
80
|
+
import { getSecurityDownloadableSetting as mt, getSecurityGlobalControlId as ht } from "./settings/securityDownloadable.es.js";
|
|
81
|
+
import { getSecurityGlobalControlSetting as gt } from "./settings/securityGlobalControl.es.js";
|
|
82
|
+
export * from "@frontify/sidebar-settings";
|
|
83
|
+
//#region src/index.ts
|
|
84
|
+
var _t = /* @__PURE__ */ e({
|
|
85
|
+
AllTextStylePlugins: () => Je,
|
|
86
|
+
AllTextStyles: () => Ye,
|
|
87
|
+
AttachmentOperationsProvider: () => k,
|
|
88
|
+
Attachments: () => F,
|
|
89
|
+
AttachmentsProvider: () => A,
|
|
90
|
+
AttachmentsToolbarButton: () => I,
|
|
91
|
+
BUTTON_PLUGIN: () => xe,
|
|
92
|
+
BlockButtonStyles: () => ve,
|
|
93
|
+
BlockInjectButton: () => t,
|
|
94
|
+
BlockItemWrapper: () => G,
|
|
95
|
+
BlockStyles: () => $,
|
|
96
|
+
BorderStyle: () => d,
|
|
97
|
+
BreakAfterPlugin: () => Oe,
|
|
98
|
+
ButtonPlugin: () => Se,
|
|
99
|
+
Custom1Plugin: () => je,
|
|
100
|
+
Custom2Plugin: () => Me,
|
|
101
|
+
Custom3Plugin: () => Ne,
|
|
102
|
+
DEFAULT_ATTACHMENTS_BUTTON_ID: () => L,
|
|
103
|
+
DEFAULT_DRAGGING_TOOLTIP: () => R,
|
|
104
|
+
DEFAULT_DRAG_TOOLTIP: () => z,
|
|
105
|
+
DEFAULT_MENU_BUTTON_ID: () => H,
|
|
106
|
+
DragHandleToolbarButton: () => B,
|
|
107
|
+
DragPreviewContextProvider: () => w,
|
|
108
|
+
ELEMENT_BUTTON: () => Ce,
|
|
109
|
+
FlyoutToolbarButton: () => V,
|
|
110
|
+
GAP_DEFAULT: () => ke,
|
|
111
|
+
GutterSpacing: () => f,
|
|
112
|
+
Heading1Plugin: () => Pe,
|
|
113
|
+
Heading2Plugin: () => Fe,
|
|
114
|
+
Heading3Plugin: () => Ie,
|
|
115
|
+
Heading4Plugin: () => Le,
|
|
116
|
+
ImageCaptionPlugin: () => Re,
|
|
117
|
+
ImageTitlePlugin: () => ze,
|
|
118
|
+
KEY_ELEMENT_BREAK_AFTER_COLUMN: () => Ae,
|
|
119
|
+
LinkInput: () => be,
|
|
120
|
+
LinkPlugin: () => Ee,
|
|
121
|
+
Margin: () => p,
|
|
122
|
+
MenuToolbarButton: () => U,
|
|
123
|
+
MultiFlyoutContextProvider: () => E,
|
|
124
|
+
OrderedListPlugin: () => $e,
|
|
125
|
+
PARAGRAPH_CLASSES: () => Be,
|
|
126
|
+
Padding: () => m,
|
|
127
|
+
ParagraphMarkupElement: () => Ve,
|
|
128
|
+
ParagraphMarkupElementNode: () => He,
|
|
129
|
+
ParagraphPlugin: () => Ue,
|
|
130
|
+
QuoteMarkupElementNode: () => Ge,
|
|
131
|
+
QuotePlugin: () => Ke,
|
|
132
|
+
Radius: () => h,
|
|
133
|
+
RichTextEditor: () => Te,
|
|
134
|
+
Sections: () => yt,
|
|
135
|
+
Security: () => g,
|
|
136
|
+
THEME_PREFIX: () => tt,
|
|
137
|
+
TextStylePluginsWithoutImage: () => Xe,
|
|
138
|
+
TextStyles: () => ye,
|
|
139
|
+
TextStylesWithoutImage: () => Ze,
|
|
140
|
+
Toolbar: () => W,
|
|
141
|
+
UnorderedListPlugin: () => Qe,
|
|
142
|
+
addHttps: () => re,
|
|
143
|
+
borderStyleMap: () => _,
|
|
144
|
+
convertToRteValue: () => q,
|
|
145
|
+
createButtonNode: () => me,
|
|
146
|
+
createButtonPlugin: () => we,
|
|
147
|
+
createLinkPlugin: () => De,
|
|
148
|
+
createParagraphPlugin: () => We,
|
|
149
|
+
createQuotePlugin: () => qe,
|
|
150
|
+
defineBlock: () => bt,
|
|
151
|
+
defineSettings: () => xt,
|
|
152
|
+
getBackgroundColorStyles: () => u,
|
|
153
|
+
getBackgroundSettings: () => nt,
|
|
154
|
+
getBorderRadiusSettings: () => it,
|
|
155
|
+
getBorderRadiusSlider: () => at,
|
|
156
|
+
getBorderSettings: () => rt,
|
|
157
|
+
getBorderStyles: () => S,
|
|
158
|
+
getDefaultPluginsWithLinkChooser: () => et,
|
|
159
|
+
getExtendedBorderRadiusSettings: () => ot,
|
|
160
|
+
getGutterSettings: () => st,
|
|
161
|
+
getLegacyUrl: () => Y,
|
|
162
|
+
getLinkFromEditor: () => X,
|
|
163
|
+
getMarginExtendedSettings: () => ut,
|
|
164
|
+
getMarginSettings: () => ct,
|
|
165
|
+
getMarginSlider: () => lt,
|
|
166
|
+
getPaddingExtendedSettings: () => pt,
|
|
167
|
+
getPaddingSettings: () => dt,
|
|
168
|
+
getPaddingSlider: () => ft,
|
|
169
|
+
getRadiusStyles: () => C,
|
|
170
|
+
getReadableColor: () => l,
|
|
171
|
+
getSecurityDownloadableSetting: () => mt,
|
|
172
|
+
getSecurityGlobalControlId: () => ht,
|
|
173
|
+
getSecurityGlobalControlSetting: () => gt,
|
|
174
|
+
getUrl: () => Z,
|
|
175
|
+
getUrlFromEditor: () => pe,
|
|
176
|
+
getUrlFromLinkOrLegacyLink: () => Q,
|
|
177
|
+
gutterSpacingStyleMap: () => v,
|
|
178
|
+
hasRichTextValue: () => K,
|
|
179
|
+
insertButton: () => se,
|
|
180
|
+
isDark: () => r,
|
|
181
|
+
isDownloadable: () => J,
|
|
182
|
+
isValidUrl: () => ie,
|
|
183
|
+
isValidUrlOrEmpty: () => ae,
|
|
184
|
+
joinClassNames: () => te,
|
|
185
|
+
marginStyleMap: () => y,
|
|
186
|
+
paddingStyleMap: () => b,
|
|
187
|
+
radiusStyleMap: () => x,
|
|
188
|
+
relativeUrlRegex: () => ne,
|
|
189
|
+
setAlpha: () => s,
|
|
190
|
+
submitFloatingButton: () => ce,
|
|
191
|
+
toColorObject: () => c,
|
|
192
|
+
toHex8String: () => i,
|
|
193
|
+
toHexString: () => a,
|
|
194
|
+
toRgbaString: () => o,
|
|
195
|
+
toShortRgba: () => n,
|
|
196
|
+
triggerFloatingButton: () => he,
|
|
197
|
+
triggerFloatingButtonEdit: () => ge,
|
|
198
|
+
triggerFloatingButtonInsert: () => _e,
|
|
199
|
+
unwrapButton: () => le,
|
|
200
|
+
upsertButton: () => ue,
|
|
201
|
+
upsertButtonText: () => de,
|
|
202
|
+
useAttachmentOperations: () => j,
|
|
203
|
+
useAttachments: () => M,
|
|
204
|
+
useAttachmentsContext: () => N,
|
|
205
|
+
useDragPreviewContext: () => T,
|
|
206
|
+
useMultiFlyoutContext: () => D,
|
|
207
|
+
useMultiFlyoutState: () => O,
|
|
208
|
+
withAttachmentsProvider: () => P,
|
|
209
|
+
withButton: () => oe,
|
|
210
|
+
wrapButton: () => fe
|
|
211
|
+
});
|
|
212
|
+
import * as vt from "@frontify/sidebar-settings";
|
|
213
|
+
ee(_t, vt);
|
|
214
|
+
var yt = /* @__PURE__ */ function(e) {
|
|
215
|
+
return e.Main = "main", e.Basics = "basics", e.Layout = "layout", e.Style = "style", e.Security = "security", e.Targets = "targets", e;
|
|
216
|
+
}({}), bt = (e) => e, xt = (e) => e;
|
|
217
|
+
//#endregion
|
|
218
|
+
export { Je as AllTextStylePlugins, Ye as AllTextStyles, k as AttachmentOperationsProvider, F as Attachments, A as AttachmentsProvider, I as AttachmentsToolbarButton, xe as BUTTON_PLUGIN, ve as BlockButtonStyles, t as BlockInjectButton, G as BlockItemWrapper, $ as BlockStyles, d as BorderStyle, Oe as BreakAfterPlugin, Se as ButtonPlugin, je as Custom1Plugin, Me as Custom2Plugin, Ne as Custom3Plugin, L as DEFAULT_ATTACHMENTS_BUTTON_ID, R as DEFAULT_DRAGGING_TOOLTIP, z as DEFAULT_DRAG_TOOLTIP, H as DEFAULT_MENU_BUTTON_ID, B as DragHandleToolbarButton, w as DragPreviewContextProvider, Ce as ELEMENT_BUTTON, V as FlyoutToolbarButton, ke as GAP_DEFAULT, f as GutterSpacing, Pe as Heading1Plugin, Fe as Heading2Plugin, Ie as Heading3Plugin, Le as Heading4Plugin, Re as ImageCaptionPlugin, ze as ImageTitlePlugin, Ae as KEY_ELEMENT_BREAK_AFTER_COLUMN, be as LinkInput, Ee as LinkPlugin, p as Margin, U as MenuToolbarButton, E as MultiFlyoutContextProvider, $e as OrderedListPlugin, Be as PARAGRAPH_CLASSES, m as Padding, Ve as ParagraphMarkupElement, He as ParagraphMarkupElementNode, Ue as ParagraphPlugin, Ge as QuoteMarkupElementNode, Ke as QuotePlugin, h as Radius, Te as RichTextEditor, yt as Sections, g as Security, tt as THEME_PREFIX, Xe as TextStylePluginsWithoutImage, ye as TextStyles, Ze as TextStylesWithoutImage, W as Toolbar, Qe as UnorderedListPlugin, re as addHttps, _ as borderStyleMap, q as convertToRteValue, me as createButtonNode, we as createButtonPlugin, De as createLinkPlugin, We as createParagraphPlugin, qe as createQuotePlugin, bt as defineBlock, xt as defineSettings, u as getBackgroundColorStyles, nt as getBackgroundSettings, it as getBorderRadiusSettings, at as getBorderRadiusSlider, rt as getBorderSettings, S as getBorderStyles, et as getDefaultPluginsWithLinkChooser, ot as getExtendedBorderRadiusSettings, st as getGutterSettings, Y as getLegacyUrl, X as getLinkFromEditor, ut as getMarginExtendedSettings, ct as getMarginSettings, lt as getMarginSlider, pt as getPaddingExtendedSettings, dt as getPaddingSettings, ft as getPaddingSlider, C as getRadiusStyles, l as getReadableColor, mt as getSecurityDownloadableSetting, ht as getSecurityGlobalControlId, gt as getSecurityGlobalControlSetting, Z as getUrl, pe as getUrlFromEditor, Q as getUrlFromLinkOrLegacyLink, v as gutterSpacingStyleMap, K as hasRichTextValue, se as insertButton, r as isDark, J as isDownloadable, ie as isValidUrl, ae as isValidUrlOrEmpty, te as joinClassNames, y as marginStyleMap, b as paddingStyleMap, x as radiusStyleMap, ne as relativeUrlRegex, s as setAlpha, _t as src_exports, ce as submitFloatingButton, c as toColorObject, i as toHex8String, a as toHexString, o as toRgbaString, n as toShortRgba, he as triggerFloatingButton, ge as triggerFloatingButtonEdit, _e as triggerFloatingButtonInsert, le as unwrapButton, ue as upsertButton, de as upsertButtonText, j as useAttachmentOperations, M as useAttachments, N as useAttachmentsContext, T as useDragPreviewContext, D as useMultiFlyoutContext, O as useMultiFlyoutState, P as withAttachmentsProvider, oe as withButton, fe as wrapButton };
|
|
219
|
+
|
|
220
|
+
//# sourceMappingURL=index.es.js.map
|