@plitzi/sdk-elements 0.36.0 → 0.36.2
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/CHANGELOG.md +28 -0
- package/dist/Element/ElementParentContext.d.ts +13 -0
- package/dist/Element/ElementParentContext.mjs +6 -0
- package/dist/Element/LayoutBody.d.ts +21 -0
- package/dist/Element/LayoutBody.mjs +24 -0
- package/dist/Element/hocs/withElement.mjs +104 -87
- package/dist/Element/hooks/useElementInternal.mjs +24 -24
- package/dist/Element/hooks/useInternalItems.mjs +42 -39
- package/dist/Element/hooks/useLayoutChain.d.ts +10 -0
- package/dist/Element/hooks/useLayoutChain.mjs +20 -0
- package/dist/Element/hooks/useRootElementInteractions.mjs +45 -44
- package/dist/dataSource/GlobalSources.mjs +60 -59
- package/dist/dataSource/pathFields.d.ts +7 -0
- package/dist/dataSource/pathFields.mjs +8 -0
- package/dist/elements/advanced/Reference/Reference.mjs +93 -89
- package/dist/elements/advanced/Reference/declaration.d.ts +1 -1
- package/dist/elements/advanced/Reference/index.d.ts +1 -1
- package/dist/elements/declarations/index.d.ts +3 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +6 -0
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +31 -23
- package/dist/elements/internal/LayoutContainer/Settings.d.ts +4 -1
- package/dist/elements/internal/LayoutContainer/Settings.mjs +78 -64
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +2 -0
- package/dist/elements/internal/LayoutContainer/index.d.ts +2 -0
- package/dist/elements/internal/LayoutPicker/LayoutPicker.d.ts +10 -0
- package/dist/elements/internal/LayoutPicker/LayoutPicker.mjs +35 -0
- package/dist/elements/internal/LayoutPicker/index.d.ts +3 -0
- package/dist/elements/internal/LayoutPicker/index.mjs +5 -0
- package/dist/elements/internal/Page/Page.mjs +49 -48
- package/dist/elements/internal/Page/Settings.mjs +101 -119
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +58 -66
- package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
- package/dist/elements/provider/ApiContainer/hooks/useApi.d.ts +8 -0
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +52 -48
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +17 -25
- package/dist/elements/structure/ModalContainer/ModalContainer.mjs +15 -23
- package/dist/index.d.ts +3 -1
- package/package.json +38 -10
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useCallback as e, useId as t, useMemo as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { hasValidToken as r } from "@plitzi/sdk-shared/helpers/twigWrapper";
|
|
3
|
+
import { emptyObject as i } from "@plitzi/sdk-shared/helpers/utils";
|
|
4
|
+
import { authFailureFromResponse as a, reportAuthFailure as o } from "@plitzi/sdk-shared/auth";
|
|
5
|
+
import { requestKey as s, useQuery as c } from "@plitzi/sdk-shared/queries";
|
|
5
6
|
//#region src/elements/provider/ApiContainer/hooks/useApi.ts
|
|
6
|
-
var
|
|
7
|
+
var l = 30, u = 300, d = (e) => !!e && e !== "{}" && e !== i, f = (e) => {
|
|
7
8
|
if (typeof e != "string") return {
|
|
8
9
|
status: 200,
|
|
9
10
|
data: e
|
|
@@ -19,22 +20,23 @@ var c = 30, l = 300, u = (e) => !!e && e !== "{}" && e !== r, d = (e) => {
|
|
|
19
20
|
data: e.message
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
+
}, p = async (e, t, n, r, i) => {
|
|
23
24
|
if (!e) return {
|
|
24
25
|
status: 400,
|
|
25
26
|
data: "URL is required"
|
|
26
27
|
};
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
let
|
|
28
|
+
let s = new Headers(r);
|
|
29
|
+
s.has("Content-Type") || s.set("Content-Type", "application/json");
|
|
30
|
+
let c = {
|
|
30
31
|
method: t,
|
|
31
32
|
credentials: n,
|
|
32
|
-
headers:
|
|
33
|
+
headers: s,
|
|
34
|
+
signal: i
|
|
33
35
|
};
|
|
34
|
-
t !== "get" && (
|
|
36
|
+
t !== "get" && (c.body = "{}");
|
|
35
37
|
try {
|
|
36
|
-
let t = await fetch(e,
|
|
37
|
-
return r &&
|
|
38
|
+
let t = await fetch(e, c), n = await t.json(), r = a(t.status, n);
|
|
39
|
+
return r && o({
|
|
38
40
|
reason: r,
|
|
39
41
|
url: e
|
|
40
42
|
}), {
|
|
@@ -42,57 +44,59 @@ var c = 30, l = 300, u = (e) => !!e && e !== "{}" && e !== r, d = (e) => {
|
|
|
42
44
|
data: n
|
|
43
45
|
};
|
|
44
46
|
} catch (e) {
|
|
47
|
+
if (i.aborted) throw e;
|
|
45
48
|
return console.error(e.message), {
|
|
46
49
|
status: 500,
|
|
47
50
|
data: e.message
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
|
-
},
|
|
53
|
+
}, m = (e) => e.status < 400, h = (e, t) => {
|
|
51
54
|
let n = typeof e == "number" ? e : Number(e);
|
|
52
55
|
return (Number.isFinite(n) && n >= 0 ? n : t) * 1e3;
|
|
53
|
-
},
|
|
54
|
-
let
|
|
55
|
-
if (
|
|
56
|
-
let e =
|
|
57
|
-
method:
|
|
58
|
-
url:
|
|
59
|
-
credentials:
|
|
60
|
-
headers:
|
|
56
|
+
}, g = ({ url: a = "", method: o = "get", mock: l, customHeaders: u = i, enabled: g = !0, credentials: _ = "same-origin", cache: v = !1, staleTime: y = 30, gcTime: b = 300, tags: x }) => {
|
|
57
|
+
let S = d(l), C = t(), w = !S && (!a || r(a)), T = n(() => {
|
|
58
|
+
if (S || w) return;
|
|
59
|
+
let e = s({
|
|
60
|
+
method: o,
|
|
61
|
+
url: a,
|
|
62
|
+
credentials: _,
|
|
63
|
+
headers: u
|
|
61
64
|
});
|
|
62
|
-
return
|
|
65
|
+
return v ? e : `${e}#${C}`;
|
|
63
66
|
}, [
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
S,
|
|
68
|
+
w,
|
|
66
69
|
a,
|
|
67
|
-
|
|
68
|
-
l,
|
|
70
|
+
o,
|
|
69
71
|
_,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
u,
|
|
73
|
+
v,
|
|
74
|
+
C
|
|
75
|
+
]), E = e((e) => p(a, o, _, u, e), [
|
|
73
76
|
a,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
o,
|
|
78
|
+
_,
|
|
79
|
+
u
|
|
80
|
+
]), D = c({
|
|
81
|
+
key: T,
|
|
78
82
|
meta: {
|
|
79
|
-
url:
|
|
80
|
-
tags:
|
|
83
|
+
url: a,
|
|
84
|
+
tags: x
|
|
81
85
|
},
|
|
82
|
-
fetcher:
|
|
83
|
-
enabled:
|
|
84
|
-
staleTime:
|
|
85
|
-
gcTime:
|
|
86
|
-
isCacheable:
|
|
87
|
-
}),
|
|
86
|
+
fetcher: E,
|
|
87
|
+
enabled: g,
|
|
88
|
+
staleTime: v ? h(y, 30) : 0,
|
|
89
|
+
gcTime: v ? h(b, 300) : 0,
|
|
90
|
+
isCacheable: m
|
|
91
|
+
}), O = n(() => S ? f(l) : void 0, [S, l]), k = g && O ? O : D.data, A = !O && D.isFetching;
|
|
88
92
|
return {
|
|
89
|
-
isLoading:
|
|
90
|
-
isFetching:
|
|
91
|
-
data:
|
|
92
|
-
refetch:
|
|
93
|
-
isSuccess: !
|
|
94
|
-
isError: !
|
|
93
|
+
isLoading: A && k === void 0,
|
|
94
|
+
isFetching: A,
|
|
95
|
+
data: k,
|
|
96
|
+
refetch: D.refetch,
|
|
97
|
+
isSuccess: !w && !A && !!k && k.status < 400,
|
|
98
|
+
isError: !w && !A && !!k && k.status >= 400
|
|
95
99
|
};
|
|
96
100
|
};
|
|
97
101
|
//#endregion
|
|
98
|
-
export {
|
|
102
|
+
export { u as DEFAULT_GC_TIME, l as DEFAULT_STALE_TIME, g as default };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import e from "../../../Element/hocs/withElement.mjs";
|
|
2
2
|
import t from "../../../Element/hooks/useElement.mjs";
|
|
3
3
|
import { RootElement as n } from "../../../Element/RootElement.mjs";
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import l from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
4
|
+
import r from "../../../dataSource/pathFields.mjs";
|
|
5
|
+
import i from "./declaration.mjs";
|
|
6
|
+
import { use as a, useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
7
|
+
import u from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
8
|
+
import { StoreProvider as d } from "@plitzi/nexus/react";
|
|
9
|
+
import { emptyObject as f } from "@plitzi/sdk-shared/helpers/utils";
|
|
9
10
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
11
|
import h from "clsx";
|
|
11
12
|
import g from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
|
|
12
13
|
import _ from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
|
|
13
14
|
//#region src/elements/structure/DialogContainer/DialogContainer.tsx
|
|
14
15
|
var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Header", acceptButtonLabel: x = "Accept", acceptButtonLabelLoading: S = "Loading...", rejectButtonLabel: C = "Cancel", autoHideAfterClick: w = !0 }) => {
|
|
15
|
-
let { id: T, setElementState: E, definition: { styleSelectors: D, label: O = "Dialog" }, elementState: k } = t(), A = g(
|
|
16
|
+
let { id: T, setElementState: E, definition: { styleSelectors: D, label: O = "Dialog" }, elementState: k } = t(), A = g(i.sourceType, T), { contexts: { InteractionsContext: j } } = u(), { interactionsManager: M } = a(j), [N, P] = l({}), [F, I] = l(!1), L = o((e) => {
|
|
16
17
|
let { metadata: t } = e;
|
|
17
18
|
if (t && typeof t == "object") P(t);
|
|
18
19
|
else if (typeof t == "string") try {
|
|
@@ -25,7 +26,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
25
26
|
...e,
|
|
26
27
|
visibility: !0
|
|
27
28
|
}));
|
|
28
|
-
}, [E, P]), R =
|
|
29
|
+
}, [E, P]), R = o(() => {
|
|
29
30
|
M.interactionTrigger(T, "onDialogClose", { metadata: N }), P({}), E((e) => ({
|
|
30
31
|
...e,
|
|
31
32
|
visibility: !1
|
|
@@ -36,7 +37,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
36
37
|
P,
|
|
37
38
|
N,
|
|
38
39
|
T
|
|
39
|
-
]), z =
|
|
40
|
+
]), z = o(() => {
|
|
40
41
|
w && (M.interactionTrigger(T, "onDialogClose", { metadata: N }), P({}), E((e) => ({
|
|
41
42
|
...e,
|
|
42
43
|
visibility: !1
|
|
@@ -48,7 +49,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
48
49
|
P,
|
|
49
50
|
N,
|
|
50
51
|
T
|
|
51
|
-
]), B =
|
|
52
|
+
]), B = o(async () => {
|
|
52
53
|
I(!0), await M.interactionTrigger(T, "onDialogAccept", { metadata: N }), I(!1), E((e) => ({
|
|
53
54
|
...e,
|
|
54
55
|
visibility: !1
|
|
@@ -58,7 +59,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
58
59
|
T,
|
|
59
60
|
N,
|
|
60
61
|
E
|
|
61
|
-
]), V =
|
|
62
|
+
]), V = o(async () => {
|
|
62
63
|
I(!0), await M.interactionTrigger(T, "onDialogReject", { metadata: N }), I(!1), E((e) => ({
|
|
63
64
|
...e,
|
|
64
65
|
visibility: !1
|
|
@@ -68,7 +69,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
68
69
|
T,
|
|
69
70
|
N,
|
|
70
71
|
E
|
|
71
|
-
]), H =
|
|
72
|
+
]), H = c(() => ({
|
|
72
73
|
onDialogAccept: {
|
|
73
74
|
action: "onDialogAccept",
|
|
74
75
|
title: "On Dialog Accept",
|
|
@@ -109,7 +110,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
109
110
|
} },
|
|
110
111
|
preview: { metadata: "" }
|
|
111
112
|
}
|
|
112
|
-
}), []), U =
|
|
113
|
+
}), []), U = c(() => ({
|
|
113
114
|
openDialog: {
|
|
114
115
|
action: "openDialog",
|
|
115
116
|
title: `Open ${O}`,
|
|
@@ -134,7 +135,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
134
135
|
L,
|
|
135
136
|
O
|
|
136
137
|
]);
|
|
137
|
-
|
|
138
|
+
s(() => {
|
|
138
139
|
k.visibility !== !1 && M.interactionTrigger(T, "onDialogOpen", { metadata: N });
|
|
139
140
|
}, [
|
|
140
141
|
T,
|
|
@@ -142,23 +143,14 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
142
143
|
N,
|
|
143
144
|
k.visibility
|
|
144
145
|
]);
|
|
145
|
-
let W =
|
|
146
|
-
let n = t.split(".");
|
|
147
|
-
return n.length > 1 ? [...e, {
|
|
148
|
-
path: t,
|
|
149
|
-
name: n.slice(n.length - 2).join(" ")
|
|
150
|
-
}] : [...e, {
|
|
151
|
-
path: t,
|
|
152
|
-
name: n[n.length - 1]
|
|
153
|
-
}];
|
|
154
|
-
}, []) : [], [N]);
|
|
146
|
+
let W = o(() => r(N), [N]);
|
|
155
147
|
_({
|
|
156
148
|
id: T,
|
|
157
149
|
source: A,
|
|
158
150
|
name: O || `Dialog - ${T}`,
|
|
159
151
|
fields: W
|
|
160
152
|
});
|
|
161
|
-
let G =
|
|
153
|
+
let G = c(() => A ? { runtime: { sources: { [A]: N } } } : f, [A, N]);
|
|
162
154
|
return /* @__PURE__ */ m(n, {
|
|
163
155
|
ref: e,
|
|
164
156
|
className: h("plitzi-component__dialog-container", v),
|
|
@@ -183,7 +175,7 @@ var v = ({ ref: e, className: v = "", children: y, headerLabel: b = "Dialog Head
|
|
|
183
175
|
}),
|
|
184
176
|
/* @__PURE__ */ p("div", {
|
|
185
177
|
className: h("dialog-container__body", D.body),
|
|
186
|
-
children: /* @__PURE__ */ p(
|
|
178
|
+
children: /* @__PURE__ */ p(d, {
|
|
187
179
|
inherit: "live",
|
|
188
180
|
name: `Dialog:${T}`,
|
|
189
181
|
value: G,
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import e from "../../../Element/hocs/withElement.mjs";
|
|
2
2
|
import t from "../../../Element/hooks/useElement.mjs";
|
|
3
3
|
import { RootElement as n } from "../../../Element/RootElement.mjs";
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import l from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
4
|
+
import r from "../../../dataSource/pathFields.mjs";
|
|
5
|
+
import i from "./declaration.mjs";
|
|
6
|
+
import { use as a, useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
7
|
+
import u from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
8
|
+
import { StoreProvider as d } from "@plitzi/nexus/react";
|
|
9
|
+
import { emptyObject as f } from "@plitzi/sdk-shared/helpers/utils";
|
|
9
10
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
11
|
import h from "clsx";
|
|
11
12
|
import g from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
|
|
12
13
|
import _ from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
|
|
13
14
|
//#region src/elements/structure/ModalContainer/ModalContainer.tsx
|
|
14
15
|
var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", autoHideAfterClick: x = !0 }) => {
|
|
15
|
-
let { id: S, definition: { styleSelectors: C, label: w = "Modal" }, elementState: T, setElementState: E } = t(), D = g(
|
|
16
|
+
let { id: S, definition: { styleSelectors: C, label: w = "Modal" }, elementState: T, setElementState: E } = t(), D = g(i.sourceType, S), { contexts: { InteractionsContext: O } } = u(), { interactionsManager: k } = a(O), [A, j] = l({}), M = o((e) => {
|
|
16
17
|
let { metadata: t } = e;
|
|
17
18
|
if (t && typeof t == "object") j(t);
|
|
18
19
|
else if (typeof t == "string") try {
|
|
@@ -25,7 +26,7 @@ var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", au
|
|
|
25
26
|
...e,
|
|
26
27
|
visibility: !0
|
|
27
28
|
}));
|
|
28
|
-
}, [E, j]), N =
|
|
29
|
+
}, [E, j]), N = o(() => {
|
|
29
30
|
k.interactionTrigger(S, "onModalClose", { metadata: A }), j({}), E((e) => ({
|
|
30
31
|
...e,
|
|
31
32
|
visibility: !1
|
|
@@ -36,7 +37,7 @@ var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", au
|
|
|
36
37
|
j,
|
|
37
38
|
A,
|
|
38
39
|
S
|
|
39
|
-
]), P =
|
|
40
|
+
]), P = o(() => {
|
|
40
41
|
x && (k.interactionTrigger(S, "onModalClose", { metadata: A }), j({}), E((e) => ({
|
|
41
42
|
...e,
|
|
42
43
|
visibility: !1
|
|
@@ -48,7 +49,7 @@ var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", au
|
|
|
48
49
|
j,
|
|
49
50
|
A,
|
|
50
51
|
S
|
|
51
|
-
]), F =
|
|
52
|
+
]), F = c(() => ({
|
|
52
53
|
onModalOpen: {
|
|
53
54
|
action: "onModalOpen",
|
|
54
55
|
title: "On Modal Open",
|
|
@@ -66,7 +67,7 @@ var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", au
|
|
|
66
67
|
preview: {},
|
|
67
68
|
params: {}
|
|
68
69
|
}
|
|
69
|
-
}), []), I =
|
|
70
|
+
}), []), I = c(() => ({
|
|
70
71
|
openModal: {
|
|
71
72
|
action: "openModal",
|
|
72
73
|
title: `Open ${w}`,
|
|
@@ -91,7 +92,7 @@ var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", au
|
|
|
91
92
|
M,
|
|
92
93
|
w
|
|
93
94
|
]);
|
|
94
|
-
|
|
95
|
+
s(() => {
|
|
95
96
|
T.visibility !== !1 && k.interactionTrigger(S, "onModalOpen", { metadata: A });
|
|
96
97
|
}, [
|
|
97
98
|
S,
|
|
@@ -99,23 +100,14 @@ var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", au
|
|
|
99
100
|
A,
|
|
100
101
|
T.visibility
|
|
101
102
|
]);
|
|
102
|
-
let L =
|
|
103
|
-
let n = t.split(".");
|
|
104
|
-
return n.length > 1 ? [...e, {
|
|
105
|
-
path: t,
|
|
106
|
-
name: n.slice(n.length - 2).join(" ")
|
|
107
|
-
}] : [...e, {
|
|
108
|
-
path: t,
|
|
109
|
-
name: n[n.length - 1]
|
|
110
|
-
}];
|
|
111
|
-
}, []), [A]);
|
|
103
|
+
let L = o(() => r(A), [A]);
|
|
112
104
|
_({
|
|
113
105
|
id: S,
|
|
114
106
|
source: D,
|
|
115
107
|
name: w || `Modal - ${S}`,
|
|
116
108
|
fields: L
|
|
117
109
|
});
|
|
118
|
-
let R =
|
|
110
|
+
let R = c(() => D ? { runtime: { sources: { [D]: A } } } : f, [D, A]);
|
|
119
111
|
return /* @__PURE__ */ m(n, {
|
|
120
112
|
ref: e,
|
|
121
113
|
className: h("plitzi-component__modal-container", v),
|
|
@@ -138,7 +130,7 @@ var v = ({ ref: e, className: v = "", children: y, title: b = "Modal Header", au
|
|
|
138
130
|
})]
|
|
139
131
|
}), /* @__PURE__ */ p("div", {
|
|
140
132
|
className: h("modal-container__body", C.bodyContainer),
|
|
141
|
-
children: /* @__PURE__ */ p(
|
|
133
|
+
children: /* @__PURE__ */ p(d, {
|
|
142
134
|
inherit: "live",
|
|
143
135
|
name: `Modal:${S}`,
|
|
144
136
|
value: R,
|
package/dist/index.d.ts
CHANGED
|
@@ -370,8 +370,8 @@ export declare const defaultElements: {
|
|
|
370
370
|
readonly settings: {};
|
|
371
371
|
};
|
|
372
372
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
373
|
-
referenceId: string;
|
|
374
373
|
referenceType: import('@plitzi/sdk-shared').ElementLayoutType;
|
|
374
|
+
referenceId: string;
|
|
375
375
|
referenceContainer: string;
|
|
376
376
|
}>>;
|
|
377
377
|
blockHtml: {
|
|
@@ -1011,7 +1011,9 @@ export declare const defaultElements: {
|
|
|
1011
1011
|
readonly settings: {};
|
|
1012
1012
|
};
|
|
1013
1013
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
1014
|
+
layout?: string | undefined;
|
|
1014
1015
|
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | undefined;
|
|
1016
|
+
layoutContainer?: string | undefined;
|
|
1015
1017
|
}>>;
|
|
1016
1018
|
dialogContainer: {
|
|
1017
1019
|
(props: import('./Element/hocs/withElement').WithElementProps<import('./elements/structure/DialogContainer/DialogContainer').DialogContainerProps>): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-elements",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.2",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -30,10 +30,18 @@
|
|
|
30
30
|
"types": "./dist/Element/ElementContext.d.ts",
|
|
31
31
|
"import": "./dist/Element/ElementContext.mjs"
|
|
32
32
|
},
|
|
33
|
+
"./Element/ElementParentContext": {
|
|
34
|
+
"types": "./dist/Element/ElementParentContext.d.ts",
|
|
35
|
+
"import": "./dist/Element/ElementParentContext.mjs"
|
|
36
|
+
},
|
|
33
37
|
"./Element/JsxManager": {
|
|
34
38
|
"types": "./dist/Element/JsxManager.d.ts",
|
|
35
39
|
"import": "./dist/Element/JsxManager.mjs"
|
|
36
40
|
},
|
|
41
|
+
"./Element/LayoutBody": {
|
|
42
|
+
"types": "./dist/Element/LayoutBody.d.ts",
|
|
43
|
+
"import": "./dist/Element/LayoutBody.mjs"
|
|
44
|
+
},
|
|
37
45
|
"./Element/PluginManager": {
|
|
38
46
|
"types": "./dist/Element/PluginManager.d.ts",
|
|
39
47
|
"import": "./dist/Element/PluginManager.mjs"
|
|
@@ -126,6 +134,10 @@
|
|
|
126
134
|
"types": "./dist/Element/hooks/useInternalItems.d.ts",
|
|
127
135
|
"import": "./dist/Element/hooks/useInternalItems.mjs"
|
|
128
136
|
},
|
|
137
|
+
"./Element/hooks/useLayoutChain": {
|
|
138
|
+
"types": "./dist/Element/hooks/useLayoutChain.d.ts",
|
|
139
|
+
"import": "./dist/Element/hooks/useLayoutChain.mjs"
|
|
140
|
+
},
|
|
129
141
|
"./Element/hooks/useRootElementInteractions": {
|
|
130
142
|
"types": "./dist/Element/hooks/useRootElementInteractions.d.ts",
|
|
131
143
|
"import": "./dist/Element/hooks/useRootElementInteractions.mjs"
|
|
@@ -154,6 +166,10 @@
|
|
|
154
166
|
"types": "./dist/dataSource/index.d.ts",
|
|
155
167
|
"import": "./dist/dataSource/index.mjs"
|
|
156
168
|
},
|
|
169
|
+
"./dataSource/pathFields": {
|
|
170
|
+
"types": "./dist/dataSource/pathFields.d.ts",
|
|
171
|
+
"import": "./dist/dataSource/pathFields.mjs"
|
|
172
|
+
},
|
|
157
173
|
"./elements": {
|
|
158
174
|
"types": "./dist/elements/index.d.ts",
|
|
159
175
|
"import": "./dist/elements/index.mjs"
|
|
@@ -574,6 +590,18 @@
|
|
|
574
590
|
"types": "./dist/elements/internal/LayoutContainer/index.d.ts",
|
|
575
591
|
"import": "./dist/elements/internal/LayoutContainer/index.mjs"
|
|
576
592
|
},
|
|
593
|
+
"./elements/internal/LayoutPicker": {
|
|
594
|
+
"types": "./dist/elements/internal/LayoutPicker/index.d.ts",
|
|
595
|
+
"import": "./dist/elements/internal/LayoutPicker/index.mjs"
|
|
596
|
+
},
|
|
597
|
+
"./elements/internal/LayoutPicker/LayoutPicker": {
|
|
598
|
+
"types": "./dist/elements/internal/LayoutPicker/LayoutPicker.d.ts",
|
|
599
|
+
"import": "./dist/elements/internal/LayoutPicker/LayoutPicker.mjs"
|
|
600
|
+
},
|
|
601
|
+
"./elements/internal/LayoutPicker/index": {
|
|
602
|
+
"types": "./dist/elements/internal/LayoutPicker/index.d.ts",
|
|
603
|
+
"import": "./dist/elements/internal/LayoutPicker/index.mjs"
|
|
604
|
+
},
|
|
577
605
|
"./elements/internal/Loading": {
|
|
578
606
|
"types": "./dist/elements/internal/Loading/index.d.ts",
|
|
579
607
|
"import": "./dist/elements/internal/Loading/index.mjs"
|
|
@@ -984,15 +1012,15 @@
|
|
|
984
1012
|
"type": "module",
|
|
985
1013
|
"sideEffects": false,
|
|
986
1014
|
"dependencies": {
|
|
987
|
-
"@plitzi/nexus": "^1.2.
|
|
1015
|
+
"@plitzi/nexus": "^1.2.2",
|
|
988
1016
|
"@plitzi/plitzi-ui": "^1.6.21",
|
|
989
|
-
"@plitzi/sdk-auth": "0.36.
|
|
990
|
-
"@plitzi/sdk-dev-tools": "0.36.
|
|
991
|
-
"@plitzi/sdk-event-bridge": "0.36.
|
|
992
|
-
"@plitzi/sdk-interactions": "0.36.
|
|
993
|
-
"@plitzi/sdk-navigation": "0.36.
|
|
994
|
-
"@plitzi/sdk-schema": "0.36.
|
|
995
|
-
"@plitzi/sdk-shared": "0.36.
|
|
1017
|
+
"@plitzi/sdk-auth": "0.36.2",
|
|
1018
|
+
"@plitzi/sdk-dev-tools": "0.36.2",
|
|
1019
|
+
"@plitzi/sdk-event-bridge": "0.36.2",
|
|
1020
|
+
"@plitzi/sdk-interactions": "0.36.2",
|
|
1021
|
+
"@plitzi/sdk-navigation": "0.36.2",
|
|
1022
|
+
"@plitzi/sdk-schema": "0.36.2",
|
|
1023
|
+
"@plitzi/sdk-shared": "0.36.2",
|
|
996
1024
|
"clsx": "^2.1.1",
|
|
997
1025
|
"immer": "^11.1.18"
|
|
998
1026
|
},
|
|
@@ -1005,6 +1033,6 @@
|
|
|
1005
1033
|
"react": "^19.3.0",
|
|
1006
1034
|
"typescript": "^6.0.3",
|
|
1007
1035
|
"vite": "^8.3.0",
|
|
1008
|
-
"vitest": "^5.0.
|
|
1036
|
+
"vitest": "^5.0.1"
|
|
1009
1037
|
}
|
|
1010
1038
|
}
|