@frontify/guideline-blocks-settings 2.0.4 → 2.1.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/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js +15 -13
- package/dist/components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/OrderedListPlugin/index.es.js +27 -0
- package/dist/components/RichTextEditor/plugins/OrderedListPlugin/index.es.js.map +1 -0
- package/dist/components/RichTextEditor/plugins/UnorderedListPlugin/index.es.js +30 -0
- package/dist/components/RichTextEditor/plugins/UnorderedListPlugin/index.es.js.map +1 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.es.js +135 -131
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ import { MarkupElement } from '@frontify/fondue/rte';
|
|
|
33
33
|
import { MemoExoticComponent } from 'react';
|
|
34
34
|
import { MultiInputBlock as MultiInputBlock_2 } from '@frontify/sidebar-settings';
|
|
35
35
|
import { NotificationBlock as NotificationBlock_2 } from '@frontify/sidebar-settings';
|
|
36
|
+
import { OrderedListPlugin as OrderedListPlugin_2 } from '@frontify/fondue/rte';
|
|
37
|
+
import { OrderedListPluginProps } from '@frontify/fondue/rte';
|
|
36
38
|
import { Palette } from '@frontify/fondue';
|
|
37
39
|
import { PlateEditor } from '@frontify/fondue/rte';
|
|
38
40
|
import { PlatePlugin } from '@frontify/fondue/rte';
|
|
@@ -56,6 +58,8 @@ import { TextareaBlock as TextareaBlock_2 } from '@frontify/sidebar-settings';
|
|
|
56
58
|
import { TextStyleRenderElementProps } from '@frontify/fondue/rte';
|
|
57
59
|
import { TLinkElement } from '@frontify/fondue/rte';
|
|
58
60
|
import { TText } from '@frontify/fondue/rte';
|
|
61
|
+
import { UnorderedListPlugin as UnorderedListPlugin_2 } from '@frontify/fondue/rte';
|
|
62
|
+
import { UnorderedListPluginProps } from '@frontify/fondue/rte';
|
|
59
63
|
import { UnwrapNodesOptions } from '@frontify/fondue/rte';
|
|
60
64
|
import { useBlockAssets } from '@frontify/app-bridge';
|
|
61
65
|
import { Value } from '@frontify/fondue/rte';
|
|
@@ -790,6 +794,10 @@ export declare type MultiInputBlock = MultiInputBlock_2<AppBridgeBlock>;
|
|
|
790
794
|
|
|
791
795
|
export declare type NotificationBlock = NotificationBlock_2<AppBridgeBlock>;
|
|
792
796
|
|
|
797
|
+
export declare class OrderedListPlugin extends OrderedListPlugin_2 {
|
|
798
|
+
constructor(props?: OrderedListPluginProps);
|
|
799
|
+
}
|
|
800
|
+
|
|
793
801
|
export declare enum Padding {
|
|
794
802
|
None = "None",
|
|
795
803
|
Small = "Small",
|
|
@@ -1068,6 +1076,10 @@ export declare const triggerFloatingButtonInsert: <V extends Value>(editor: Plat
|
|
|
1068
1076
|
focused?: boolean;
|
|
1069
1077
|
}) => void;
|
|
1070
1078
|
|
|
1079
|
+
export declare class UnorderedListPlugin extends UnorderedListPlugin_2 {
|
|
1080
|
+
constructor(props?: UnorderedListPluginProps);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1071
1083
|
/**
|
|
1072
1084
|
* Unwrap button node.
|
|
1073
1085
|
*/
|
package/dist/index.es.js
CHANGED
|
@@ -4,8 +4,8 @@ import { AllTextStylePlugins as m, AllTextStyles as g, TextStylePluginsWithoutIm
|
|
|
4
4
|
import { AttachmentOperationsProvider as f, AttachmentsProvider as s, useAttachmentOperations as d, useAttachments as P, useAttachmentsContext as S, withAttachmentsProvider as B } from "./hooks/useAttachments.es.js";
|
|
5
5
|
import { Attachments as c } from "./components/Attachments/Attachments.es.js";
|
|
6
6
|
import { AttachmentsToolbarButton as A, DEFAULT_ATTACHMENTS_BUTTON_ID as E } from "./components/BlockItemWrapper/Toolbar/AttachmentsToolbarButton/AttachmentsToolbarButton.es.js";
|
|
7
|
-
import { BUTTON_PLUGIN as
|
|
8
|
-
import { BlockButtonStyles as
|
|
7
|
+
import { BUTTON_PLUGIN as h, ButtonPlugin as M, ELEMENT_BUTTON as C, createButtonPlugin as F } from "./components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js";
|
|
8
|
+
import { BlockButtonStyles as U } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js";
|
|
9
9
|
import { BlockInjectButton as _ } from "./components/BlockInjectButton/BlockInjectButton.es.js";
|
|
10
10
|
import { BlockItemWrapper as I } from "./components/BlockItemWrapper/BlockItemWrapper.es.js";
|
|
11
11
|
import { BlockStyles as N, TextStyles as O } from "./components/RichTextEditor/plugins/styles.es.js";
|
|
@@ -13,7 +13,7 @@ import { BorderStyle as v, GutterSpacing as H, Margin as w, Padding as V, Radius
|
|
|
13
13
|
import { BreakAfterPlugin as J, GAP_DEFAULT as Z, KEY_ELEMENT_BREAK_AFTER_COLUMN as $ } from "./components/RichTextEditor/plugins/ColumnBreakPlugin/ColumnBreakPlugin.es.js";
|
|
14
14
|
import { Custom1Plugin as rt } from "./components/RichTextEditor/plugins/TextStylePlugins/custom1Plugin.es.js";
|
|
15
15
|
import { Custom2Plugin as et } from "./components/RichTextEditor/plugins/TextStylePlugins/custom2Plugin.es.js";
|
|
16
|
-
import { Custom3Plugin as
|
|
16
|
+
import { Custom3Plugin as it } from "./components/RichTextEditor/plugins/TextStylePlugins/custom3Plugin.es.js";
|
|
17
17
|
import { DEFAULT_DRAGGING_TOOLTIP as pt, DEFAULT_DRAG_TOOLTIP as mt } from "./components/BlockItemWrapper/constants.es.js";
|
|
18
18
|
import { DEFAULT_MENU_BUTTON_ID as lt, MenuToolbarButton as xt } from "./components/BlockItemWrapper/Toolbar/MenuToolbarButton/MenuToolbarButton.es.js";
|
|
19
19
|
import { DownloadButton as ft } from "./components/DownloadButton/DownloadButton.es.js";
|
|
@@ -21,68 +21,70 @@ import { DragHandleToolbarButton as dt } from "./components/BlockItemWrapper/Too
|
|
|
21
21
|
import { DragPreviewContextProvider as St, useDragPreviewContext as Bt } from "./components/BlockItemWrapper/Toolbar/context/DragPreviewContext.es.js";
|
|
22
22
|
import { FlyoutToolbarButton as ct } from "./components/BlockItemWrapper/Toolbar/FlyoutToolbarButton/FlyoutToolbarButton.es.js";
|
|
23
23
|
import { Heading1Plugin as At } from "./components/RichTextEditor/plugins/TextStylePlugins/heading1Plugin.es.js";
|
|
24
|
-
import { Heading2Plugin as
|
|
24
|
+
import { Heading2Plugin as Lt } from "./components/RichTextEditor/plugins/TextStylePlugins/heading2Plugin.es.js";
|
|
25
25
|
import { Heading3Plugin as Mt } from "./components/RichTextEditor/plugins/TextStylePlugins/heading3Plugin.es.js";
|
|
26
26
|
import { Heading4Plugin as Ft } from "./components/RichTextEditor/plugins/TextStylePlugins/heading4Plugin.es.js";
|
|
27
|
-
import { ImageCaptionPlugin as
|
|
27
|
+
import { ImageCaptionPlugin as Ut } from "./components/RichTextEditor/plugins/TextStylePlugins/imageCaptionPlugin.es.js";
|
|
28
28
|
import { ImageTitlePlugin as _t } from "./components/RichTextEditor/plugins/TextStylePlugins/imageTitlePlugin.es.js";
|
|
29
29
|
import { LinkInput as It } from "./components/Link/LinkInput.es.js";
|
|
30
30
|
import { LinkPlugin as Nt, createLinkPlugin as Ot } from "./components/RichTextEditor/plugins/LinkPlugin/index.es.js";
|
|
31
31
|
import { LinkSelector as vt } from "./components/Link/LinkSelector/LinkSelector.es.js";
|
|
32
32
|
import { MultiFlyoutContextProvider as wt, useMultiFlyoutContext as Vt } from "./components/BlockItemWrapper/Toolbar/context/MultiFlyoutContext.es.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
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
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
33
|
+
import { OrderedListPlugin as jt } from "./components/RichTextEditor/plugins/OrderedListPlugin/index.es.js";
|
|
34
|
+
import { PARAGRAPH_CLASSES as Kt, ParagraphMarkupElement as Xt, ParagraphMarkupElementNode as Yt, ParagraphPlugin as qt, createParagraphPlugin as zt } from "./components/RichTextEditor/plugins/TextStylePlugins/paragraphPlugin.es.js";
|
|
35
|
+
import { QuoteMarkupElementNode as Zt, QuotePlugin as $t, createQuotePlugin as tr } from "./components/RichTextEditor/plugins/TextStylePlugins/quotePlugin.es.js";
|
|
36
|
+
import { RichTextEditor as or } from "./components/RichTextEditor/RichTextEditor.es.js";
|
|
37
|
+
import { THEME_PREFIX as nr } from "./components/RichTextEditor/constants.es.js";
|
|
38
|
+
import { Toolbar as ar } from "./components/BlockItemWrapper/Toolbar/Toolbar.es.js";
|
|
39
|
+
import { UnorderedListPlugin as mr } from "./components/RichTextEditor/plugins/UnorderedListPlugin/index.es.js";
|
|
40
|
+
import { addHttps as lr } from "./helpers/addHttps.es.js";
|
|
41
|
+
import { convertToRteValue as ur } from "./helpers/convertToRichTextValue.es.js";
|
|
42
|
+
import { createButtonNode as sr } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/createButtonNode.es.js";
|
|
43
|
+
import { customCoordinatesGetterFactory as Pr } from "./helpers/customCoordinatesGetterFactory.es.js";
|
|
44
|
+
import { getBackgroundColorStyles as Br } from "./utilities/react/getBackgroundColorStyles.es.js";
|
|
45
|
+
import { getBackgroundSettings as cr } from "./settings/background.es.js";
|
|
46
|
+
import { getBorderRadiusSettings as Ar, getBorderRadiusSlider as Er } from "./settings/borderRadius.es.js";
|
|
47
|
+
import { getBorderSettings as hr } from "./settings/border.es.js";
|
|
48
|
+
import { getBorderStyles as Cr } from "./utilities/react/getBorderStyles.es.js";
|
|
49
|
+
import { getDefaultPluginsWithLinkChooser as kr } from "./components/RichTextEditor/pluginPresets/defaultPluginsWithLinkChooser.es.js";
|
|
50
|
+
import { getExtendedBorderRadiusSettings as Rr } from "./settings/borderRadiusExtended.es.js";
|
|
51
|
+
import { getGutterSettings as Dr } from "./settings/gutter.es.js";
|
|
52
|
+
import { getLegacyUrl as br, getLinkFromEditor as Nr, getUrl as Or, getUrlFromLinkOrLegacyLink as Gr } from "./components/Link/utils/getUrl.es.js";
|
|
53
|
+
import { getMarginExtendedSettings as Hr } from "./settings/marginExtended.es.js";
|
|
54
|
+
import { getMarginSettings as Vr, getMarginSlider as Wr } from "./settings/margin.es.js";
|
|
55
|
+
import { getPaddingExtendedSettings as Qr } from "./settings/paddingExtended.es.js";
|
|
56
|
+
import { getPaddingSettings as Xr, getPaddingSlider as Yr } from "./settings/padding.es.js";
|
|
57
|
+
import { getRadiusStyles as zr } from "./utilities/react/getRadiusStyles.es.js";
|
|
58
|
+
import { getReadableColor as Zr } from "./utilities/color/getReadableColor.es.js";
|
|
59
|
+
import { getSecurityDownloadableSetting as to, getSecurityGlobalControlId as ro } from "./settings/securityDownloadable.es.js";
|
|
60
|
+
import { getSecurityGlobalControlSetting as eo } from "./settings/securityGlobalControl.es.js";
|
|
61
|
+
import { getUrlFromEditor as io } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/getUrl.es.js";
|
|
62
|
+
import { hasRichTextValue as po } from "./helpers/hasRichTextValue.es.js";
|
|
63
|
+
import { insertButton as go } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/insertButton.es.js";
|
|
64
|
+
import { isDark as xo } from "./utilities/color/isDark.es.js";
|
|
65
|
+
import { isDownloadable as fo } from "./helpers/isDownloadable.es.js";
|
|
66
|
+
import { isValidUrl as Po, isValidUrlOrEmpty as So } from "./components/Link/utils/url.es.js";
|
|
67
|
+
import { joinClassNames as To } from "./utilities/react/joinClassNames.es.js";
|
|
68
|
+
import { mapAppBridgeColorPaletteToFonduePalette as yo, mapAppBridgeColorPalettesToFonduePalettes as Ao } from "./helpers/mapColorPalettes.es.js";
|
|
69
|
+
import { moveItemInArray as Lo } from "./utilities/moveItemInArray.es.js";
|
|
70
|
+
import { relativeUrlRegex as Mo } from "./components/Link/utils/relativeUrlRegex.es.js";
|
|
71
|
+
import { setAlpha as Fo } from "./utilities/color/setAlpha.es.js";
|
|
72
|
+
import { submitFloatingButton as Uo } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/submitFloatingButton.es.js";
|
|
73
|
+
import { toColorObject as _o } from "./utilities/color/toColorObject.es.js";
|
|
74
|
+
import { toHex8String as Io } from "./utilities/color/toHex8String.es.js";
|
|
75
|
+
import { toHexString as No } from "./utilities/color/toHexString.es.js";
|
|
76
|
+
import { toRgbaString as Go } from "./utilities/color/toRgbaString.es.js";
|
|
77
|
+
import { toShortRgba as Ho } from "./utilities/color/toShortRgba.es.js";
|
|
78
|
+
import { triggerFloatingButton as Vo } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButton.es.js";
|
|
79
|
+
import { triggerFloatingButtonEdit as jo } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonEdit.es.js";
|
|
80
|
+
import { triggerFloatingButtonInsert as Ko } from "./components/RichTextEditor/plugins/ButtonPlugin/utils/triggerFloatingButtonInsert.es.js";
|
|
81
|
+
import { unwrapButton as Yo } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/unwrapButton.es.js";
|
|
82
|
+
import { upsertButton as zo } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButton.es.js";
|
|
83
|
+
import { upsertButtonText as Zo } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/upsertButtonText.es.js";
|
|
84
|
+
import { useDndSensors as te } from "./hooks/useDndSensors.es.js";
|
|
85
|
+
import { useMultiFlyoutState as oe } from "./components/BlockItemWrapper/Toolbar/hooks/useMultiFlyoutState.es.js";
|
|
86
|
+
import { withButton as ne } from "./components/RichTextEditor/plugins/ButtonPlugin/withButton.es.js";
|
|
87
|
+
import { wrapButton as ae } from "./components/RichTextEditor/plugins/ButtonPlugin/transforms/wrapButton.es.js";
|
|
86
88
|
var r = /* @__PURE__ */ ((t) => (t.Main = "main", t.Basics = "basics", t.Layout = "layout", t.Style = "style", t.Security = "security", t.Targets = "targets", t))(r || {});
|
|
87
89
|
const e = (t) => t, n = (t) => t;
|
|
88
90
|
export {
|
|
@@ -92,8 +94,8 @@ export {
|
|
|
92
94
|
c as Attachments,
|
|
93
95
|
s as AttachmentsProvider,
|
|
94
96
|
A as AttachmentsToolbarButton,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
h as BUTTON_PLUGIN,
|
|
98
|
+
U as BlockButtonStyles,
|
|
97
99
|
_ as BlockInjectButton,
|
|
98
100
|
I as BlockItemWrapper,
|
|
99
101
|
N as BlockStyles,
|
|
@@ -102,7 +104,7 @@ export {
|
|
|
102
104
|
M as ButtonPlugin,
|
|
103
105
|
rt as Custom1Plugin,
|
|
104
106
|
et as Custom2Plugin,
|
|
105
|
-
|
|
107
|
+
it as Custom3Plugin,
|
|
106
108
|
E as DEFAULT_ATTACHMENTS_BUTTON_ID,
|
|
107
109
|
pt as DEFAULT_DRAGGING_TOOLTIP,
|
|
108
110
|
mt as DEFAULT_DRAG_TOOLTIP,
|
|
@@ -115,10 +117,10 @@ export {
|
|
|
115
117
|
Z as GAP_DEFAULT,
|
|
116
118
|
H as GutterSpacing,
|
|
117
119
|
At as Heading1Plugin,
|
|
118
|
-
|
|
120
|
+
Lt as Heading2Plugin,
|
|
119
121
|
Mt as Heading3Plugin,
|
|
120
122
|
Ft as Heading4Plugin,
|
|
121
|
-
|
|
123
|
+
Ut as ImageCaptionPlugin,
|
|
122
124
|
_t as ImageTitlePlugin,
|
|
123
125
|
$ as KEY_ELEMENT_BREAK_AFTER_COLUMN,
|
|
124
126
|
It as LinkInput,
|
|
@@ -127,95 +129,97 @@ export {
|
|
|
127
129
|
w as Margin,
|
|
128
130
|
xt as MenuToolbarButton,
|
|
129
131
|
wt as MultiFlyoutContextProvider,
|
|
130
|
-
jt as
|
|
132
|
+
jt as OrderedListPlugin,
|
|
133
|
+
Kt as PARAGRAPH_CLASSES,
|
|
131
134
|
V as Padding,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
Xt as ParagraphMarkupElement,
|
|
136
|
+
Yt as ParagraphMarkupElementNode,
|
|
137
|
+
qt as ParagraphPlugin,
|
|
138
|
+
Zt as QuoteMarkupElementNode,
|
|
139
|
+
$t as QuotePlugin,
|
|
137
140
|
W as Radius,
|
|
138
|
-
|
|
141
|
+
or as RichTextEditor,
|
|
139
142
|
r as Sections,
|
|
140
143
|
j as Security,
|
|
141
|
-
|
|
144
|
+
nr as THEME_PREFIX,
|
|
142
145
|
l as TextStylePluginsWithoutImage,
|
|
143
146
|
O as TextStyles,
|
|
144
147
|
x as TextStylesWithoutImage,
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
ar as Toolbar,
|
|
149
|
+
mr as UnorderedListPlugin,
|
|
150
|
+
lr as addHttps,
|
|
147
151
|
Q as borderStyleMap,
|
|
148
|
-
|
|
149
|
-
|
|
152
|
+
ur as convertToRteValue,
|
|
153
|
+
sr as createButtonNode,
|
|
150
154
|
F as createButtonPlugin,
|
|
151
155
|
Ot as createLinkPlugin,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
zt as createParagraphPlugin,
|
|
157
|
+
tr as createQuotePlugin,
|
|
158
|
+
Pr as customCoordinatesGetterFactory,
|
|
155
159
|
e as defineBlock,
|
|
156
160
|
n as defineSettings,
|
|
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
|
-
|
|
161
|
+
Br as getBackgroundColorStyles,
|
|
162
|
+
cr as getBackgroundSettings,
|
|
163
|
+
Ar as getBorderRadiusSettings,
|
|
164
|
+
Er as getBorderRadiusSlider,
|
|
165
|
+
hr as getBorderSettings,
|
|
166
|
+
Cr as getBorderStyles,
|
|
167
|
+
kr as getDefaultPluginsWithLinkChooser,
|
|
168
|
+
Rr as getExtendedBorderRadiusSettings,
|
|
169
|
+
Dr as getGutterSettings,
|
|
170
|
+
br as getLegacyUrl,
|
|
171
|
+
Nr as getLinkFromEditor,
|
|
172
|
+
Hr as getMarginExtendedSettings,
|
|
173
|
+
Vr as getMarginSettings,
|
|
174
|
+
Wr as getMarginSlider,
|
|
175
|
+
Qr as getPaddingExtendedSettings,
|
|
176
|
+
Xr as getPaddingSettings,
|
|
177
|
+
Yr as getPaddingSlider,
|
|
178
|
+
zr as getRadiusStyles,
|
|
179
|
+
Zr as getReadableColor,
|
|
180
|
+
to as getSecurityDownloadableSetting,
|
|
181
|
+
ro as getSecurityGlobalControlId,
|
|
182
|
+
eo as getSecurityGlobalControlSetting,
|
|
183
|
+
Or as getUrl,
|
|
184
|
+
io as getUrlFromEditor,
|
|
185
|
+
Gr as getUrlFromLinkOrLegacyLink,
|
|
182
186
|
K as gutterSpacingStyleMap,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
187
|
+
po as hasRichTextValue,
|
|
188
|
+
go as insertButton,
|
|
189
|
+
xo as isDark,
|
|
190
|
+
fo as isDownloadable,
|
|
191
|
+
Po as isValidUrl,
|
|
192
|
+
So as isValidUrlOrEmpty,
|
|
193
|
+
To as joinClassNames,
|
|
194
|
+
yo as mapAppBridgeColorPaletteToFonduePalette,
|
|
195
|
+
Ao as mapAppBridgeColorPalettesToFonduePalettes,
|
|
192
196
|
X as marginStyleMap,
|
|
193
|
-
|
|
197
|
+
Lo as moveItemInArray,
|
|
194
198
|
Y as paddingStyleMap,
|
|
195
199
|
q as radiusStyleMap,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
200
|
+
Mo as relativeUrlRegex,
|
|
201
|
+
Fo as setAlpha,
|
|
202
|
+
Uo as submitFloatingButton,
|
|
203
|
+
_o as toColorObject,
|
|
204
|
+
Io as toHex8String,
|
|
205
|
+
No as toHexString,
|
|
206
|
+
Go as toRgbaString,
|
|
207
|
+
Ho as toShortRgba,
|
|
208
|
+
Vo as triggerFloatingButton,
|
|
209
|
+
jo as triggerFloatingButtonEdit,
|
|
210
|
+
Ko as triggerFloatingButtonInsert,
|
|
211
|
+
Yo as unwrapButton,
|
|
212
|
+
zo as upsertButton,
|
|
213
|
+
Zo as upsertButtonText,
|
|
210
214
|
d as useAttachmentOperations,
|
|
211
215
|
P as useAttachments,
|
|
212
216
|
S as useAttachmentsContext,
|
|
213
|
-
|
|
217
|
+
te as useDndSensors,
|
|
214
218
|
Bt as useDragPreviewContext,
|
|
215
219
|
Vt as useMultiFlyoutContext,
|
|
216
|
-
|
|
220
|
+
oe as useMultiFlyoutState,
|
|
217
221
|
B as withAttachmentsProvider,
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
ne as withButton,
|
|
223
|
+
ae as wrapButton
|
|
220
224
|
};
|
|
221
225
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../src/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport './styles.css';\n\nimport { type AppBridgeBlock } from '@frontify/app-bridge';\nimport {\n type AssetInputBlock as AssetInputBlockSidebarSettings,\n type BaseBlock as BaseBlockSidebarSettings,\n type Bundle as BundleSidebarSettings,\n type ChecklistBlock as ChecklistBlockSidebarSettings,\n type ChoicesType as ChoicesTypeSidebarSettings,\n type ColorInputBlock as ColorInputBlockSidebarSettings,\n type DropdownBlock as DropdownBlockSidebarSettings,\n type DynamicSettingBlock as DynamicSettingBlockSidebarSettings,\n type DynamicSupportedBlock as DynamicSupportedBlockSidebarSettings,\n type FontInputBlock as FontInputBlockSidebarSettings,\n type InputBlock as InputBlockSidebarSettings,\n type LegacyAssetInputBlock as LegacyAssetInputBlockSidebarSettings,\n type LinkBlock as LinkBlockSidebarSettings,\n type LinkChooserBlock as LinkChooserBlockSidebarSettings,\n type MultiInputBlock as MultiInputBlockSidebarSettings,\n type NotificationBlock as NotificationBlockSidebarSettings,\n type SectionHeadingBlock as SectionHeadingBlockSidebarSettings,\n type SegmentedControlsBlock as SegmentedControlsBlockSidebarSettings,\n type SettingBlock as SettingBlockSidebarSettings,\n type SimpleSettingBlock as SimpleSettingBlockSidebarSettings,\n type SwitchBlock as SwitchBlockSidebarSettings,\n type TemplateInputBlock as TemplateInputBlockSidebarSettings,\n type TextareaBlock as TextareaBlockSidebarSettings,\n type ValueOrPromisedValue as ValueOrPromisedValueSidebarSettings,\n} from '@frontify/sidebar-settings';\nimport { type FC } from 'react';\n\nexport * from '@frontify/sidebar-settings';\n\nexport type AssetInputBlock = AssetInputBlockSidebarSettings<AppBridgeBlock>;\nexport type BaseBlock<T = undefined> = BaseBlockSidebarSettings<AppBridgeBlock, T>;\nexport type Bundle = BundleSidebarSettings<AppBridgeBlock>;\nexport type ChecklistBlock = ChecklistBlockSidebarSettings<AppBridgeBlock>;\nexport type ChoicesType = ChoicesTypeSidebarSettings<AppBridgeBlock>;\nexport type ColorInputBlock = ColorInputBlockSidebarSettings<AppBridgeBlock>;\nexport type DropdownBlock = DropdownBlockSidebarSettings<AppBridgeBlock>;\nexport type DynamicSettingBlock<Block extends DynamicSupportedBlock = DynamicSupportedBlock> =\n DynamicSettingBlockSidebarSettings<AppBridgeBlock, Block>;\nexport type DynamicSupportedBlock = DynamicSupportedBlockSidebarSettings<AppBridgeBlock>;\nexport type FontInputBlock = FontInputBlockSidebarSettings<AppBridgeBlock>;\nexport type InputBlock = InputBlockSidebarSettings<AppBridgeBlock>;\nexport type LegacyAssetInputBlock = LegacyAssetInputBlockSidebarSettings<AppBridgeBlock>;\nexport type LinkBlock = LinkBlockSidebarSettings<AppBridgeBlock>;\nexport type LinkChooserBlock = LinkChooserBlockSidebarSettings<AppBridgeBlock>;\nexport type MultiInputBlock = MultiInputBlockSidebarSettings<AppBridgeBlock>;\nexport type NotificationBlock = NotificationBlockSidebarSettings<AppBridgeBlock>;\nexport type SectionHeadingBlock = SectionHeadingBlockSidebarSettings<AppBridgeBlock>;\nexport type SegmentedControlsBlock = SegmentedControlsBlockSidebarSettings<AppBridgeBlock>;\nexport type SettingBlock = SettingBlockSidebarSettings<AppBridgeBlock>;\nexport type SimpleSettingBlock = SimpleSettingBlockSidebarSettings<AppBridgeBlock>;\nexport type SwitchBlock = SwitchBlockSidebarSettings<AppBridgeBlock>;\nexport type TemplateInputBlock = TemplateInputBlockSidebarSettings<AppBridgeBlock>;\nexport type TextareaBlock = TextareaBlockSidebarSettings<AppBridgeBlock>;\nexport type ValueOrPromisedValue<T> = ValueOrPromisedValueSidebarSettings<AppBridgeBlock, T>;\n\nexport enum Sections {\n Main = 'main',\n Basics = 'basics',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettingsStructureExport = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Basics]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n} & { [customSectionName: string]: SettingBlock[] };\n\nexport type BlockProps = {\n /**\n * The Frontify App Bridge provides an interface to the Frontify app internals.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/content-blocks/introducing-the-app-bridge}\n */\n appBridge: AppBridgeBlock;\n};\n\nexport type BlockConfigExport = {\n /**\n * Block component to render.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/content-blocks}\n */\n block: FC<BlockProps>;\n /**\n * Contains the block settings and its structure.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/block-settings-1}\n */\n settings: ReturnType<typeof defineSettings>;\n /**\n * Block lifecycle hook ran before the block gets added in the Guideline.\n * The hook support both synchronous or asynchronous execution.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/block-lifecycle/on-block-creation}\n */\n onBlockCreated?:\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => void)\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => Promise<void>);\n /**\n * Block lifecycle hook ran before the block gets deleted from the Guideline.\n * The hook support both synchronous or asynchronous execution.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/block-lifecycle/on-block-deletion}\n */\n onBlockDeleted?:\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => void)\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => Promise<void>);\n};\n\n/**\n * Type helper to make it easier to export a theme, accepts a direct {@link BlockConfigExport} object.\n */\nexport const defineBlock = (config: BlockConfigExport): BlockConfigExport => config;\n\n/**\n * Type helper to make it easier to export block's settings structure, accepts a direct {@link BlockSettingsStructureExport} object\n * or a function return a direct {@link BlockSettingsStructureExport} or a function returning a Promise of {@link BlockSettingsStructureExport}.\n */\nexport const defineSettings = <\n T extends\n | BlockSettingsStructureExport\n | (() => Promise<BlockSettingsStructureExport>)\n | (() => BlockSettingsStructureExport),\n>(\n settingsStructure: T,\n): T => settingsStructure;\n\nexport * from './components';\nexport * from './helpers';\nexport * from './hooks';\nexport * from './settings';\nexport * from './utilities';\n"],"names":["Sections","defineBlock","config","defineSettings","settingsStructure"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport './styles.css';\n\nimport { type AppBridgeBlock } from '@frontify/app-bridge';\nimport {\n type AssetInputBlock as AssetInputBlockSidebarSettings,\n type BaseBlock as BaseBlockSidebarSettings,\n type Bundle as BundleSidebarSettings,\n type ChecklistBlock as ChecklistBlockSidebarSettings,\n type ChoicesType as ChoicesTypeSidebarSettings,\n type ColorInputBlock as ColorInputBlockSidebarSettings,\n type DropdownBlock as DropdownBlockSidebarSettings,\n type DynamicSettingBlock as DynamicSettingBlockSidebarSettings,\n type DynamicSupportedBlock as DynamicSupportedBlockSidebarSettings,\n type FontInputBlock as FontInputBlockSidebarSettings,\n type InputBlock as InputBlockSidebarSettings,\n type LegacyAssetInputBlock as LegacyAssetInputBlockSidebarSettings,\n type LinkBlock as LinkBlockSidebarSettings,\n type LinkChooserBlock as LinkChooserBlockSidebarSettings,\n type MultiInputBlock as MultiInputBlockSidebarSettings,\n type NotificationBlock as NotificationBlockSidebarSettings,\n type SectionHeadingBlock as SectionHeadingBlockSidebarSettings,\n type SegmentedControlsBlock as SegmentedControlsBlockSidebarSettings,\n type SettingBlock as SettingBlockSidebarSettings,\n type SimpleSettingBlock as SimpleSettingBlockSidebarSettings,\n type SwitchBlock as SwitchBlockSidebarSettings,\n type TemplateInputBlock as TemplateInputBlockSidebarSettings,\n type TextareaBlock as TextareaBlockSidebarSettings,\n type ValueOrPromisedValue as ValueOrPromisedValueSidebarSettings,\n} from '@frontify/sidebar-settings';\nimport { type FC } from 'react';\n\nexport * from '@frontify/sidebar-settings';\n\nexport type AssetInputBlock = AssetInputBlockSidebarSettings<AppBridgeBlock>;\nexport type BaseBlock<T = undefined> = BaseBlockSidebarSettings<AppBridgeBlock, T>;\nexport type Bundle = BundleSidebarSettings<AppBridgeBlock>;\nexport type ChecklistBlock = ChecklistBlockSidebarSettings<AppBridgeBlock>;\nexport type ChoicesType = ChoicesTypeSidebarSettings<AppBridgeBlock>;\nexport type ColorInputBlock = ColorInputBlockSidebarSettings<AppBridgeBlock>;\nexport type DropdownBlock = DropdownBlockSidebarSettings<AppBridgeBlock>;\nexport type DynamicSettingBlock<Block extends DynamicSupportedBlock = DynamicSupportedBlock> =\n DynamicSettingBlockSidebarSettings<AppBridgeBlock, Block>;\nexport type DynamicSupportedBlock = DynamicSupportedBlockSidebarSettings<AppBridgeBlock>;\nexport type FontInputBlock = FontInputBlockSidebarSettings<AppBridgeBlock>;\nexport type InputBlock = InputBlockSidebarSettings<AppBridgeBlock>;\nexport type LegacyAssetInputBlock = LegacyAssetInputBlockSidebarSettings<AppBridgeBlock>;\nexport type LinkBlock = LinkBlockSidebarSettings<AppBridgeBlock>;\nexport type LinkChooserBlock = LinkChooserBlockSidebarSettings<AppBridgeBlock>;\nexport type MultiInputBlock = MultiInputBlockSidebarSettings<AppBridgeBlock>;\nexport type NotificationBlock = NotificationBlockSidebarSettings<AppBridgeBlock>;\nexport type SectionHeadingBlock = SectionHeadingBlockSidebarSettings<AppBridgeBlock>;\nexport type SegmentedControlsBlock = SegmentedControlsBlockSidebarSettings<AppBridgeBlock>;\nexport type SettingBlock = SettingBlockSidebarSettings<AppBridgeBlock>;\nexport type SimpleSettingBlock = SimpleSettingBlockSidebarSettings<AppBridgeBlock>;\nexport type SwitchBlock = SwitchBlockSidebarSettings<AppBridgeBlock>;\nexport type TemplateInputBlock = TemplateInputBlockSidebarSettings<AppBridgeBlock>;\nexport type TextareaBlock = TextareaBlockSidebarSettings<AppBridgeBlock>;\nexport type ValueOrPromisedValue<T> = ValueOrPromisedValueSidebarSettings<AppBridgeBlock, T>;\n\nexport enum Sections {\n Main = 'main',\n Basics = 'basics',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettingsStructureExport = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Basics]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n} & { [customSectionName: string]: SettingBlock[] };\n\nexport type BlockProps = {\n /**\n * The Frontify App Bridge provides an interface to the Frontify app internals.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/content-blocks/introducing-the-app-bridge}\n */\n appBridge: AppBridgeBlock;\n};\n\nexport type BlockConfigExport = {\n /**\n * Block component to render.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/content-blocks}\n */\n block: FC<BlockProps>;\n /**\n * Contains the block settings and its structure.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/block-settings-1}\n */\n settings: ReturnType<typeof defineSettings>;\n /**\n * Block lifecycle hook ran before the block gets added in the Guideline.\n * The hook support both synchronous or asynchronous execution.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/block-lifecycle/on-block-creation}\n */\n onBlockCreated?:\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => void)\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => Promise<void>);\n /**\n * Block lifecycle hook ran before the block gets deleted from the Guideline.\n * The hook support both synchronous or asynchronous execution.\n * {@link https://developer.frontify.com/document/2569#/details-concepts-1/block-lifecycle/on-block-deletion}\n */\n onBlockDeleted?:\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => void)\n | (({ appBridge }: { appBridge: AppBridgeBlock }) => Promise<void>);\n};\n\n/**\n * Type helper to make it easier to export a theme, accepts a direct {@link BlockConfigExport} object.\n */\nexport const defineBlock = (config: BlockConfigExport): BlockConfigExport => config;\n\n/**\n * Type helper to make it easier to export block's settings structure, accepts a direct {@link BlockSettingsStructureExport} object\n * or a function return a direct {@link BlockSettingsStructureExport} or a function returning a Promise of {@link BlockSettingsStructureExport}.\n */\nexport const defineSettings = <\n T extends\n | BlockSettingsStructureExport\n | (() => Promise<BlockSettingsStructureExport>)\n | (() => BlockSettingsStructureExport),\n>(\n settingsStructure: T,\n): T => settingsStructure;\n\nexport * from './components';\nexport * from './helpers';\nexport * from './hooks';\nexport * from './settings';\nexport * from './utilities';\n"],"names":["Sections","defineBlock","config","defineSettings","settingsStructure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DO,IAAKA,sBAAAA,OACRA,EAAA,OAAO,QACPA,EAAA,SAAS,UACTA,EAAA,SAAS,UACTA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,UAAU,WANFA,IAAAA,KAAA,CAAA,CAAA;AAyDL,MAAMC,IAAc,CAACC,MAAiDA,GAMhEC,IAAiB,CAM1BC,MACIA;"}
|