@janbox/storefront-builder 2.0.17 → 2.0.19
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 +5 -3
- 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 +1252 -10300
- package/dist/hooks/use-paragraph-editable.d.ts +10 -0
- package/dist/index-CAk0Z6SL.js +60 -0
- package/dist/index-DxdUdXU0.js +4 -0
- package/dist/index.js +102 -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 +91 -194
- package/dist/toaster-j03A1kAt.js +17829 -0
- package/dist/types/index.d.ts +1 -3
- package/package.json +1 -4
- 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,60 @@
|
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as m, useEffect as f } from "react";
|
|
3
|
+
import { Frame as v, Editor as p, useNode as N, DefaultEventHandlers as E } from "@craftjs/core";
|
|
4
|
+
import { isNil as u, isString as l } from "lodash-es";
|
|
5
|
+
import { u as c, C as h, d as b, g as y, N as C, B as a } from "./toaster-j03A1kAt.js";
|
|
6
|
+
import "flat";
|
|
7
|
+
const k = ({ children: t, data: e }) => {
|
|
8
|
+
const { resolver: r } = c((s) => ({
|
|
9
|
+
resolver: s.options.resolver
|
|
10
|
+
})), o = m(() => {
|
|
11
|
+
if (u(e)) return e;
|
|
12
|
+
const s = l(e) ? JSON.parse(e) : e;
|
|
13
|
+
return Object.entries(s).forEach(([, n]) => {
|
|
14
|
+
const d = l(n.type) ? n.type : n.type.resolvedName;
|
|
15
|
+
r[d] || (console.error(`Unknown node: ${d}`), n.type = {
|
|
16
|
+
resolvedName: h.Unknown
|
|
17
|
+
});
|
|
18
|
+
}), s;
|
|
19
|
+
}, [e, r]);
|
|
20
|
+
return /* @__PURE__ */ i(v, { data: o, children: t });
|
|
21
|
+
}, x = ({ resolver: t, children: e, ...r }) => /* @__PURE__ */ i(
|
|
22
|
+
p,
|
|
23
|
+
{
|
|
24
|
+
enabled: !1,
|
|
25
|
+
onRender: D,
|
|
26
|
+
handlers: (o) => new g({
|
|
27
|
+
store: o,
|
|
28
|
+
removeHoverOnMouseleave: !0,
|
|
29
|
+
isMultiSelectEnabled: () => !1
|
|
30
|
+
}),
|
|
31
|
+
resolver: { ...b, ...t },
|
|
32
|
+
...r,
|
|
33
|
+
children: e
|
|
34
|
+
}
|
|
35
|
+
), D = ({ render: t }) => {
|
|
36
|
+
const { id: e } = N(), { query: r } = c();
|
|
37
|
+
return f(() => {
|
|
38
|
+
const o = r.node(e).get(), s = y(o);
|
|
39
|
+
if (u(s))
|
|
40
|
+
throw new Error(
|
|
41
|
+
`The node with id "${o.data.displayName}" does not have a resolved ID. Please check your node configuration.`
|
|
42
|
+
);
|
|
43
|
+
}, [e, r]), t;
|
|
44
|
+
};
|
|
45
|
+
class g extends E {
|
|
46
|
+
handlers() {
|
|
47
|
+
const e = super.handlers();
|
|
48
|
+
return {
|
|
49
|
+
...e,
|
|
50
|
+
select(r, o) {
|
|
51
|
+
return (r.getAttribute(C.DATA_NODE_SELECTABLE) ?? a.True) === a.True ? e.select(r, o) : () => {
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
k as C,
|
|
59
|
+
x as a
|
|
60
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,96 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useNode as Be } from "@craftjs/core";
|
|
1
|
+
import { a as t } from "./toaster-j03A1kAt.js";
|
|
2
|
+
import { A as L, b as x, c as T, e as S, f as A, h as E, i as w, j as R, k as h, l as F, F as k, m as B, n as G, G as H, H as M, o as q, I as U, p as y, q as D, r as V, L as j, s as z, M as J, t as K, v as O, P as Q, R as X, S as Y, w as Z, T as _, x as $, y as W, z as ee, D as oe, U as se, E as ae, V as re, J as de, K as te, O as ne, Q as Ne, X as ue, g as ie, Y as pe, Z as me, _ as Pe, $ as ce, a0 as le, a1 as ge, a2 as be, a3 as fe, a4 as ve, a5 as Ie, u as Ce, a6 as Le, a7 as xe, a8 as Te, a9 as Se, aa as Ae, ab as Ee, ac as we, ad as Re, ae as he, af as Fe, ag as ke, ah as Be, ai as Ge, aj as He, ak as Me, al as qe, am as Ue } from "./toaster-j03A1kAt.js";
|
|
3
|
+
import { useNode as n } from "@craftjs/core";
|
|
4
|
+
import { useNode as De } from "@craftjs/core";
|
|
6
5
|
import "lodash-es";
|
|
7
|
-
import "react";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
import { useRef as N, useEffect as u } from "react";
|
|
7
|
+
import { getTabPanelProps as i, getListItemProps as p } from "@janbox/storefront-ui";
|
|
8
|
+
import { C as je, a as ze } from "./index-CAk0Z6SL.js";
|
|
9
|
+
const b = ({ enabled: a, onChange: r }) => {
|
|
10
|
+
const { dom: e } = n((s) => ({ dom: s.dom })), o = N(void 0);
|
|
11
|
+
u(() => {
|
|
12
|
+
if (!a || !e) return;
|
|
13
|
+
const s = () => {
|
|
14
|
+
o.current = e.innerHTML;
|
|
15
|
+
}, d = () => {
|
|
16
|
+
o.current !== void 0 && (r(o.current), o.current = void 0);
|
|
17
|
+
};
|
|
18
|
+
return e.addEventListener("input", s), e.addEventListener("blur", d), () => {
|
|
19
|
+
e.removeEventListener("input", s), e.removeEventListener("blur", d);
|
|
20
|
+
};
|
|
21
|
+
}, [a, e, r]);
|
|
22
|
+
}, f = () => t({
|
|
23
|
+
transform: i
|
|
24
|
+
}), v = () => t({
|
|
25
|
+
transform: p
|
|
19
26
|
});
|
|
20
27
|
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
|
-
Pe as
|
|
69
|
-
|
|
70
|
-
le as
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
28
|
+
L as AccordionContentNode,
|
|
29
|
+
x as AccordionGroupNode,
|
|
30
|
+
T as AccordionNode,
|
|
31
|
+
S as AccordionSummaryNode,
|
|
32
|
+
A as BoxNode,
|
|
33
|
+
E as ButtonNode,
|
|
34
|
+
je as Canvas,
|
|
35
|
+
w as CanvasPlaceholder,
|
|
36
|
+
R as CellNode,
|
|
37
|
+
ze as Composer,
|
|
38
|
+
h as ContainerNode,
|
|
39
|
+
F as CountdownTimerNode,
|
|
40
|
+
k as FlexItemNode,
|
|
41
|
+
B as FlexboxNode,
|
|
42
|
+
G as FragmentNode,
|
|
43
|
+
H as GridNode,
|
|
44
|
+
M as Heading,
|
|
45
|
+
q as HeadingNode,
|
|
46
|
+
U as IconNode,
|
|
47
|
+
y as ImageNode,
|
|
48
|
+
D as InlineInspector,
|
|
49
|
+
V as InlineNode,
|
|
50
|
+
j as LinkNode,
|
|
51
|
+
z as ListItemNode,
|
|
52
|
+
J as MarqueeItemNode,
|
|
53
|
+
K as MarqueeNode,
|
|
54
|
+
O as NodeElement,
|
|
55
|
+
Q as ParagraphNode,
|
|
56
|
+
X as RootNode,
|
|
57
|
+
Y as SwiperNode,
|
|
58
|
+
Z as SwiperSlideNode,
|
|
59
|
+
_ as TabContentNode,
|
|
60
|
+
$ as TabListNode,
|
|
61
|
+
W as TabNode,
|
|
62
|
+
ee as TabPanelNode,
|
|
63
|
+
oe as TabsNode,
|
|
64
|
+
se as UnknownNode,
|
|
65
|
+
ae as UnorderedListNode,
|
|
66
|
+
re as VideoNode,
|
|
67
|
+
de as defineNode,
|
|
68
|
+
te as getNodeCustom,
|
|
69
|
+
ne as getNodeDisplayName,
|
|
70
|
+
Ne as getNodeInfo,
|
|
71
|
+
ue as getNodeRelated,
|
|
72
|
+
ie as getNodeResolved,
|
|
73
|
+
pe as isNodeSelectable,
|
|
74
|
+
me as parseNumber,
|
|
75
|
+
Pe as parseSvgString,
|
|
76
|
+
ce as registerNodeRelated,
|
|
77
|
+
le as toResponsiveCss,
|
|
78
|
+
ge as useAccordionGroupNodeProps,
|
|
79
|
+
be as useAccordionNodeProps,
|
|
80
|
+
fe as useBoxNodeProps,
|
|
81
|
+
ve as useButtonNodeProps,
|
|
82
|
+
Ie as useCellNodeProps,
|
|
83
|
+
Ce as useComposer,
|
|
84
|
+
Le as useContainerNodeProps,
|
|
85
|
+
xe as useCountdownTimerNodeProps,
|
|
86
|
+
Te as useFlexItemNodeProps,
|
|
87
|
+
Se as useFlexboxNodeProps,
|
|
88
|
+
Ae as useGridNodeProps,
|
|
89
|
+
Ee as useHeadingNodeProps,
|
|
90
|
+
we as useIconNodeProps,
|
|
91
|
+
Re as useImageNodeProps,
|
|
92
|
+
he as useLinkNodeProps,
|
|
93
|
+
v as useListItemNodeProps,
|
|
94
|
+
Fe as useMarqueeNodeProps,
|
|
95
|
+
De as useNode,
|
|
96
|
+
b as useNodeContentEditable,
|
|
97
|
+
ke as useNodeDataAttributes,
|
|
98
|
+
t as useNodeProps,
|
|
99
|
+
Be as useParagraphNodeProps,
|
|
100
|
+
Ge as useSwiperNodeProps,
|
|
101
|
+
He as useTabNodeProps,
|
|
102
|
+
f as useTabPanelNodeProps,
|
|
103
|
+
Me as useTabsNodeProps,
|
|
104
|
+
qe as useUnorderedListNodeProps,
|
|
105
|
+
Ue as useVideoNodeProps
|
|
96
106
|
};
|
|
@@ -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;
|