@janbox/storefront-builder 2.0.18 → 2.0.20
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/composer/dataset.d.ts +6 -4
- package/dist/constants/index.d.ts +3 -1
- package/dist/editor/components/index.d.ts +0 -1
- package/dist/editor/controls/index.d.ts +37 -0
- package/dist/editor/hooks/index.d.ts +1 -0
- package/dist/editor/hooks/use-editor.d.ts +11 -1
- package/dist/editor/hooks/use-inline-editable.d.ts +1 -0
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/lib/index.d.ts +4 -3
- package/dist/editor/lib/node-renderer/index.d.ts +0 -2
- package/dist/editor/lib/node-renderer/node-renderer.d.ts +1 -1
- package/dist/editor/toolbars/index.d.ts +5 -37
- package/dist/editor/toolbars/inline-utils.d.ts +20 -0
- package/dist/editor/toolbars/insert-inline-toolbar.d.ts +1 -0
- package/dist/editor/toolbars/insert-link-toolbar.d.ts +1 -0
- package/dist/editor/toolbars/node-delete-toolbar.d.ts +1 -0
- package/dist/editor/toolbars/node-drag-toolbar.d.ts +1 -0
- package/dist/editor/toolbars/node-name-toolbar.d.ts +1 -0
- package/dist/editor.js +1250 -10293
- package/dist/hooks/use-paragraph-editable.d.ts +10 -0
- package/dist/index-CX1ysbQd.js +59 -0
- package/dist/index-CYvdAWY4.js +4 -0
- package/dist/index.js +100 -92
- package/dist/lib/fragment/fragment.node/fragment.node.d.ts +2 -0
- package/dist/lib/fragment/fragment.node/index.d.ts +2 -0
- package/dist/lib/fragment/fragment.node/types.d.ts +3 -0
- package/dist/lib/fragment/index.d.ts +1 -0
- package/dist/lib/heading/heading/heading.d.ts +1 -1
- package/dist/lib/heading/heading/helpers.d.ts +2 -0
- package/dist/lib/heading/heading.node/heading.node.d.ts +1 -1
- package/dist/lib/heading/heading.toolbar/heading.toolbar.d.ts +1 -0
- package/dist/lib/heading/heading.toolbar/index.d.ts +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/inline/index.d.ts +2 -0
- package/dist/lib/inline/inline.inspector/index.d.ts +1 -0
- package/dist/lib/inline/inline.inspector/inline.inspector.d.ts +1 -0
- package/dist/lib/inline/inline.node/helpers.d.ts +3 -0
- package/dist/lib/inline/inline.node/index.d.ts +2 -0
- package/dist/lib/inline/inline.node/inline.node.d.ts +2 -0
- package/dist/lib/inline/inline.node/types.d.ts +11 -0
- package/dist/lib/link/link.node/link.node.d.ts +1 -1
- package/dist/lib/link/link.toolbar/index.d.ts +1 -0
- package/dist/lib/link/link.toolbar/link.toolbar.d.ts +1 -0
- package/dist/lib/paragraph/paragraph/helpers.d.ts +2 -0
- package/dist/lib/paragraph/paragraph/index.d.ts +2 -0
- package/dist/lib/paragraph/paragraph/paragraph.d.ts +2 -0
- package/dist/lib/paragraph/paragraph/types.d.ts +2 -0
- package/dist/lib/paragraph/paragraph.node/paragraph.node.d.ts +1 -1
- package/dist/lib/paragraph/paragraph.toolbar/index.d.ts +1 -0
- package/dist/lib/paragraph/paragraph.toolbar/paragraph.toolbar.d.ts +1 -0
- package/dist/templates.js +90 -195
- package/dist/toaster-BoEJoz-T.js +23865 -0
- package/dist/types/index.d.ts +1 -3
- package/package.json +1 -5
- package/dist/countdown-timer.node-B1zlySOV.js +0 -8373
- package/dist/editor/components/text-inline-editor.d.ts +0 -10
- package/dist/editor/lib/node-renderer/node-actions.d.ts +0 -1
- package/dist/index-Cl02EX34.js +0 -187
- package/dist/index-D6iOLmDe.js +0 -4
- package/dist/lib/heading/heading.renderer/heading.renderer.d.ts +0 -2
- package/dist/lib/heading/heading.renderer/index.d.ts +0 -1
- package/dist/lib/paragraph/paragraph.renderer/index.d.ts +0 -1
- package/dist/lib/paragraph/paragraph.renderer/paragraph.renderer.d.ts +0 -2
- package/dist/minus-BrRnjbhB.js +0 -4
- package/dist/tooltip-CLs3ofGk.js +0 -75
- /package/dist/editor/{toolbars → controls}/aspect-ratio/aspect-ratio.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/aspect-ratio/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/background/background-toolbar.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/background/bg-color-tab.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/background/bg-image-tab.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/background/dataset.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/background/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/background/types.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/border/border.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/border/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/border/types.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/border-radius/border-radius.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/border-radius/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/child-nodes/child-node.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/child-nodes/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/color/color.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/color/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/color-variant/color-variant.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/color-variant/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/column-gap/column-gap.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/column-gap/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/css-font-weight/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/css-width/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/display/display.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/display/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/flex/flex.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/flex/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/flex-align-items/flex-align-items.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/flex-align-items/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/flex-wrap/flex-wrap.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/flex-wrap/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/font-size/font-size.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/font-size/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/grid-align-items/grid-align-items.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/grid-align-items/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/height/height.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/height/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/html-anchor-target/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/justify-content/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/justify-content/justify-content.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/justify-items/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/justify-items/justify-items.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/line-height/dataset.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/line-height/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/line-height/line-height.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/margin/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/margin/margin.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/min-width/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/min-width/min-width.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/number-field/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/number-field/number-field.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/number-field-mix-options/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/number-field-mix-options/number-field-mix-options.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/object-fit/dataset.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/object-fit/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/object-fit/object-fit.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/order/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/order/order.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/padding/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/padding/padding.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/row-gap/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/row-gap/row-gap.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/svg-source/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/svg-source/svg-source.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/svg-source/uploaded-source.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/tag-name/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/tag-name/tag-name.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-align/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-style/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-style/text-style.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-style-group/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-style-group/text-style-group.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-transform/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-transform/text-transform.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-variant/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/text-variant/text-variant.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/visibility/index.d.ts +0 -0
- /package/dist/editor/{toolbars → controls}/visibility/visibility.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type UseParagraphEditableOptions = {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
nodeId: string;
|
|
4
|
+
childNodeIds: string[];
|
|
5
|
+
frameDocument?: Document | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const useParagraphEditable: ({ enabled, nodeId, childNodeIds, frameDocument }: UseParagraphEditableOptions) => {
|
|
8
|
+
domRef: import('react').RefObject<HTMLElement | null>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as m, useEffect as f } from "react";
|
|
3
|
+
import { u as c, C as v, D as p, a as N, d as h, N as E, g as b, r as D, b as y, B as l } from "./toaster-BoEJoz-T.js";
|
|
4
|
+
import { isNil as u, isString as d } from "lodash-es";
|
|
5
|
+
import "flat";
|
|
6
|
+
const k = ({ children: t, data: e }) => {
|
|
7
|
+
const { resolver: r } = c((o) => ({
|
|
8
|
+
resolver: o.options.resolver
|
|
9
|
+
})), s = m(() => {
|
|
10
|
+
if (u(e)) return e;
|
|
11
|
+
const o = d(e) ? JSON.parse(e) : e;
|
|
12
|
+
return Object.entries(o).forEach(([, n]) => {
|
|
13
|
+
const a = d(n.type) ? n.type : n.type.resolvedName;
|
|
14
|
+
r[a] || (console.error(`Unknown node: ${a}`), n.type = {
|
|
15
|
+
resolvedName: v.Unknown
|
|
16
|
+
});
|
|
17
|
+
}), o;
|
|
18
|
+
}, [e, r]);
|
|
19
|
+
return /* @__PURE__ */ i(p, { data: s, children: t });
|
|
20
|
+
}, x = ({ resolver: t, children: e, ...r }) => /* @__PURE__ */ i(
|
|
21
|
+
N,
|
|
22
|
+
{
|
|
23
|
+
enabled: !1,
|
|
24
|
+
onRender: C,
|
|
25
|
+
handlers: (s) => new g({
|
|
26
|
+
store: s,
|
|
27
|
+
removeHoverOnMouseleave: !0,
|
|
28
|
+
isMultiSelectEnabled: () => !1
|
|
29
|
+
}),
|
|
30
|
+
resolver: { ...h, ...t },
|
|
31
|
+
...r,
|
|
32
|
+
children: e
|
|
33
|
+
}
|
|
34
|
+
), C = ({ render: t }) => {
|
|
35
|
+
const { id: e } = E(), { query: r } = c();
|
|
36
|
+
return f(() => {
|
|
37
|
+
const s = r.node(e).get(), o = b(s);
|
|
38
|
+
if (u(o))
|
|
39
|
+
throw new Error(
|
|
40
|
+
`The node with id "${s.data.displayName}" does not have a resolved ID. Please check your node configuration.`
|
|
41
|
+
);
|
|
42
|
+
}, [e, r]), t;
|
|
43
|
+
};
|
|
44
|
+
class g extends D {
|
|
45
|
+
handlers() {
|
|
46
|
+
const e = super.handlers();
|
|
47
|
+
return {
|
|
48
|
+
...e,
|
|
49
|
+
select(r, s) {
|
|
50
|
+
return (r.getAttribute(y.DATA_NODE_SELECTABLE) ?? l.True) === l.True ? e.select(r, s) : () => {
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
k as C,
|
|
58
|
+
x as a
|
|
59
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,96 +1,104 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { C as pe, a as ue, N as ie, b as Pe, c as me, d as le, e as ce, f as ge, g as be, h as Ce, i as xe, j as fe, k as Te, l as Ie, m as Le, n as Se, o as Ae, p as ve, q as we, r as Re, s as he, t as ke } from "./index-Cl02EX34.js";
|
|
4
|
-
import { getTextProps as s, getTabPanelProps as a, getListItemProps as r } from "@janbox/storefront-ui";
|
|
5
|
-
import { useNode as Be } from "@craftjs/core";
|
|
1
|
+
import { N as n, c as t } from "./toaster-BoEJoz-T.js";
|
|
2
|
+
import { A as C, e as L, f as T, h as x, i as S, j as A, k as E, l as w, m as R, n as h, F, o as k, p as q, G as B, H as G, q as H, I as M, s as U, t as y, v as V, L as j, w as D, M as z, x as J, y as K, P as O, R as Q, S as X, z as Y, T as Z, E as _, J as $, K as W, O as ee, U as oe, Q as se, V as ae, X as re, Y as de, Z as te, _ as ne, $ as Ne, g as ue, a0 as ie, a1 as pe, a2 as me, a3 as Pe, a4 as ce, a5 as le, a6 as ge, a7 as be, a8 as fe, a9 as ve, u as Ie, aa as Ce, ab as Le, ac as Te, ad as xe, ae as Se, af as Ae, ag as Ee, ah as we, ai as Re, aj as he, ak as Fe, al as ke, am as qe, an as Be, ao as Ge, ap as He, aq as Me } from "./toaster-BoEJoz-T.js";
|
|
6
3
|
import "lodash-es";
|
|
7
|
-
import "react";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
import { useRef as N, useEffect as u } from "react";
|
|
5
|
+
import { getTabPanelProps as i, getListItemProps as p } from "@janbox/storefront-ui";
|
|
6
|
+
import { C as ye, a as Ve } from "./index-CX1ysbQd.js";
|
|
7
|
+
const g = ({ enabled: a, onChange: r }) => {
|
|
8
|
+
const { dom: e } = n((s) => ({ dom: s.dom })), o = N(void 0);
|
|
9
|
+
u(() => {
|
|
10
|
+
if (!a || !e) return;
|
|
11
|
+
const s = () => {
|
|
12
|
+
o.current = e.innerHTML;
|
|
13
|
+
}, d = () => {
|
|
14
|
+
o.current !== void 0 && (r(o.current), o.current = void 0);
|
|
15
|
+
};
|
|
16
|
+
return e.addEventListener("input", s), e.addEventListener("blur", d), () => {
|
|
17
|
+
e.removeEventListener("input", s), e.removeEventListener("blur", d);
|
|
18
|
+
};
|
|
19
|
+
}, [a, e, r]);
|
|
20
|
+
}, b = () => t({
|
|
21
|
+
transform: i
|
|
22
|
+
}), f = () => t({
|
|
23
|
+
transform: p
|
|
19
24
|
});
|
|
20
25
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
ge as
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
26
|
+
C as AccordionContentNode,
|
|
27
|
+
L as AccordionGroupNode,
|
|
28
|
+
T as AccordionNode,
|
|
29
|
+
x as AccordionSummaryNode,
|
|
30
|
+
S as BoxNode,
|
|
31
|
+
A as ButtonNode,
|
|
32
|
+
ye as Canvas,
|
|
33
|
+
E as CanvasPlaceholder,
|
|
34
|
+
w as CellNode,
|
|
35
|
+
Ve as Composer,
|
|
36
|
+
R as ContainerNode,
|
|
37
|
+
h as CountdownTimerNode,
|
|
38
|
+
F as FlexItemNode,
|
|
39
|
+
k as FlexboxNode,
|
|
40
|
+
q as FragmentNode,
|
|
41
|
+
B as GridNode,
|
|
42
|
+
G as Heading,
|
|
43
|
+
H as HeadingNode,
|
|
44
|
+
M as IconNode,
|
|
45
|
+
U as ImageNode,
|
|
46
|
+
y as InlineInspector,
|
|
47
|
+
V as InlineNode,
|
|
48
|
+
j as LinkNode,
|
|
49
|
+
D as ListItemNode,
|
|
50
|
+
z as MarqueeItemNode,
|
|
51
|
+
J as MarqueeNode,
|
|
52
|
+
K as NodeElement,
|
|
53
|
+
O as ParagraphNode,
|
|
54
|
+
Q as RootNode,
|
|
55
|
+
X as SwiperNode,
|
|
56
|
+
Y as SwiperSlideNode,
|
|
57
|
+
Z as TabContentNode,
|
|
58
|
+
_ as TabListNode,
|
|
59
|
+
$ as TabNode,
|
|
60
|
+
W as TabPanelNode,
|
|
61
|
+
ee as TabsNode,
|
|
62
|
+
oe as UnknownNode,
|
|
63
|
+
se as UnorderedListNode,
|
|
64
|
+
ae as VideoNode,
|
|
65
|
+
re as defineNode,
|
|
66
|
+
de as getNodeCustom,
|
|
67
|
+
te as getNodeDisplayName,
|
|
68
|
+
ne as getNodeInfo,
|
|
69
|
+
Ne as getNodeRelated,
|
|
70
|
+
ue as getNodeResolved,
|
|
71
|
+
ie as isNodeSelectable,
|
|
72
|
+
pe as parseNumber,
|
|
73
|
+
me as parseSvgString,
|
|
74
|
+
Pe as registerNodeRelated,
|
|
75
|
+
ce as toResponsiveCss,
|
|
76
|
+
le as useAccordionGroupNodeProps,
|
|
77
|
+
ge as useAccordionNodeProps,
|
|
78
|
+
be as useBoxNodeProps,
|
|
79
|
+
fe as useButtonNodeProps,
|
|
80
|
+
ve as useCellNodeProps,
|
|
81
|
+
Ie as useComposer,
|
|
82
|
+
Ce as useContainerNodeProps,
|
|
83
|
+
Le as useCountdownTimerNodeProps,
|
|
84
|
+
Te as useFlexItemNodeProps,
|
|
85
|
+
xe as useFlexboxNodeProps,
|
|
86
|
+
Se as useGridNodeProps,
|
|
87
|
+
Ae as useHeadingNodeProps,
|
|
88
|
+
Ee as useIconNodeProps,
|
|
89
|
+
we as useImageNodeProps,
|
|
90
|
+
Re as useLinkNodeProps,
|
|
91
|
+
f as useListItemNodeProps,
|
|
92
|
+
he as useMarqueeNodeProps,
|
|
93
|
+
n as useNode,
|
|
94
|
+
g as useNodeContentEditable,
|
|
95
|
+
Fe as useNodeDataAttributes,
|
|
96
|
+
t as useNodeProps,
|
|
97
|
+
ke as useParagraphNodeProps,
|
|
98
|
+
qe as useSwiperNodeProps,
|
|
99
|
+
Be as useTabNodeProps,
|
|
100
|
+
b as useTabPanelNodeProps,
|
|
101
|
+
Ge as useTabsNodeProps,
|
|
102
|
+
He as useUnorderedListNodeProps,
|
|
103
|
+
Me as useVideoNodeProps
|
|
96
104
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './fragment.node';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HeadingProps } from './types';
|
|
2
|
-
export declare const Heading: ({ ...
|
|
2
|
+
export declare const Heading: ({ children, ref, ..._props }: HeadingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HeadingNodeProps } from './types';
|
|
2
|
-
export declare const HeadingNode: (props: HeadingNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const HeadingNode: ({ children, ...props }: HeadingNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HeadingToolbar: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HeadingToolbar } from './heading.toolbar';
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InlineInspector } from './inline.inspector';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InlineInspector: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLElementType, HTMLAttributes } from 'react';
|
|
2
|
+
import { StyledCSS } from '@janbox/storefront-ui/types';
|
|
3
|
+
export type InlineNodeProps = {
|
|
4
|
+
as?: HTMLElementType;
|
|
5
|
+
contentVariable?: {
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
sx?: StyledCSS;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
} & Pick<HTMLAttributes<HTMLElement>, 'contentEditable' | 'suppressContentEditableWarning'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { LinkNodeProps } from './types';
|
|
2
|
-
export declare const LinkNode: (props: LinkNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const LinkNode: ({ children, ...props }: LinkNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LinkToolbar } from './link.toolbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LinkToolbar: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ParagraphNodeProps } from './types';
|
|
2
|
-
export declare const ParagraphNode: (props: ParagraphNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ParagraphNode: ({ children, ...props }: ParagraphNodeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ParagraphToolbar } from './paragraph.toolbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ParagraphToolbar: () => import("@emotion/react/jsx-runtime").JSX.Element;
|