@plitzi/sdk-elements 0.38.3 → 0.38.5
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 +539 -0
- package/dist/Element/helpers/elementChildren.d.ts +29 -0
- package/dist/Element/helpers/elementChildren.mjs +16 -0
- package/dist/Element/hooks/useElementVisible.d.ts +11 -0
- package/dist/Element/hooks/useElementVisible.mjs +25 -0
- package/dist/Element/hooks/useRscData.d.ts +4 -0
- package/dist/Element/hooks/useRscData.mjs +23 -19
- package/dist/dataSource/GlobalSources.mjs +68 -57
- package/dist/elements/basic/Button/Button.d.ts +6 -1
- package/dist/elements/basic/Button/Button.mjs +9 -8
- package/dist/elements/basic/Button/declaration.d.ts +2 -1
- package/dist/elements/basic/Button/declaration.mjs +1 -1
- package/dist/elements/basic/Button/index.d.ts +2 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
- package/dist/elements/basic/Dropdown/index.d.ts +1 -1
- package/dist/elements/basic/Markdown/Markdown.d.ts +3 -3
- package/dist/elements/basic/Markdown/Markdown.mjs +10 -6
- package/dist/elements/basic/Markdown/declaration.d.ts +1 -1
- package/dist/elements/basic/Markdown/index.d.ts +1 -1
- package/dist/elements/basic/RichText/declaration.d.ts +1 -1
- package/dist/elements/basic/RichText/declaration.mjs +1 -1
- package/dist/elements/basic/RichText/index.d.ts +1 -1
- package/dist/elements/basic/Text/Text.d.ts +6 -1
- package/dist/elements/basic/Text/Text.mjs +6 -5
- package/dist/elements/basic/Text/declaration.d.ts +1 -0
- package/dist/elements/basic/Text/index.d.ts +1 -0
- package/dist/elements/declarations/index.d.ts +55 -11
- package/dist/elements/form/Form/declaration.d.ts +1 -0
- package/dist/elements/form/Form/declaration.mjs +2 -1
- package/dist/elements/form/FormControl/FormControl.d.ts +5 -1
- package/dist/elements/form/FormControl/FormControl.mjs +3 -0
- package/dist/elements/form/FormControl/Settings.d.ts +1 -1
- package/dist/elements/form/FormControl/Settings.mjs +16 -1
- package/dist/elements/form/FormControl/declaration.d.ts +1 -0
- package/dist/elements/form/FormControl/declaration.mjs +6 -2
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +37 -29
- package/dist/elements/internal/LayoutContainer/mask.d.ts +11 -0
- package/dist/elements/internal/LayoutContainer/mask.mjs +14 -0
- package/dist/elements/media/Image/Image.d.ts +7 -1
- package/dist/elements/media/Image/Image.mjs +10 -10
- package/dist/elements/media/Image/declaration.d.ts +2 -1
- package/dist/elements/media/Image/declaration.mjs +1 -1
- package/dist/elements/media/Image/index.d.ts +2 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +9 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +172 -155
- package/dist/elements/provider/ApiContainer/declaration.d.ts +38 -10
- package/dist/elements/provider/ApiContainer/declaration.mjs +7 -0
- package/dist/elements/provider/ApiContainer/helpers/serverMock.d.ts +10 -0
- package/dist/elements/provider/ApiContainer/helpers/serverMock.mjs +17 -0
- package/dist/elements/provider/ApiContainer/hooks/useApi.d.ts +2 -0
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +1 -0
- package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.d.ts +20 -0
- package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.mjs +16 -0
- package/dist/elements/provider/ApiContainer/index.d.ts +37 -1
- package/dist/elements/structure/Container/Container.d.ts +13 -2
- package/dist/elements/structure/Container/Container.mjs +8 -6
- package/dist/elements/structure/Container/declaration.d.ts +5 -2
- package/dist/elements/structure/Container/declaration.mjs +32 -24
- package/dist/elements/structure/Container/index.d.ts +5 -2
- package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/declaration.mjs +1 -1
- package/dist/elements/structure/DialogContainer/index.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/declaration.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/declaration.mjs +1 -1
- package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
- package/dist/elements/structure/List/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/index.d.ts +1 -1
- package/dist/index.d.ts +53 -11
- package/package.json +25 -9
|
@@ -4,18 +4,20 @@ import { NAMEABLE_CONTAINER_TAGS as n } from "./declaration.mjs";
|
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import i from "clsx";
|
|
6
6
|
//#region src/elements/structure/Container/Container.tsx
|
|
7
|
-
var a = ({ ref: e, className: a = "", subType: o = "div", label: s = "", decorative: c = !1,
|
|
8
|
-
let
|
|
7
|
+
var a = ({ ref: e, className: a = "", subType: o = "div", label: s = "", decorative: c = !1, live: l = "", title: u = "", children: d }) => {
|
|
8
|
+
let f = !c && s && n.includes(o) ? {
|
|
9
9
|
"aria-label": s,
|
|
10
10
|
...o === "div" ? { role: "group" } : {}
|
|
11
|
-
} : {},
|
|
11
|
+
} : {}, p = c ? { "aria-hidden": !0 } : {}, m = l ? { "aria-live": l } : {};
|
|
12
12
|
return /* @__PURE__ */ r(t, {
|
|
13
13
|
ref: e,
|
|
14
14
|
tag: o,
|
|
15
15
|
className: i(`plitzi-component__container plitzi-component__container-${o}`, a),
|
|
16
|
-
|
|
17
|
-
...
|
|
18
|
-
|
|
16
|
+
title: u || void 0,
|
|
17
|
+
...f,
|
|
18
|
+
...p,
|
|
19
|
+
...m,
|
|
20
|
+
children: d
|
|
19
21
|
});
|
|
20
22
|
}, o = e(a);
|
|
21
23
|
//#endregion
|
|
@@ -12,6 +12,7 @@ declare const declaration: {
|
|
|
12
12
|
readonly type: "container";
|
|
13
13
|
readonly attributeValues: {
|
|
14
14
|
readonly subType: readonly string[];
|
|
15
|
+
readonly live: readonly string[];
|
|
15
16
|
};
|
|
16
17
|
readonly content: {
|
|
17
18
|
readonly attributes: {
|
|
@@ -46,7 +47,7 @@ declare const declaration: {
|
|
|
46
47
|
readonly license: "MIT";
|
|
47
48
|
readonly website: "https://plitzi.com";
|
|
48
49
|
readonly backgroundColor: "#4422ee";
|
|
49
|
-
readonly icon: "fa-
|
|
50
|
+
readonly icon: "fa-solid fa-crop-simple";
|
|
50
51
|
};
|
|
51
52
|
readonly defaultStyle: {
|
|
52
53
|
readonly name: "Container";
|
|
@@ -62,7 +63,9 @@ declare const declaration: {
|
|
|
62
63
|
};
|
|
63
64
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
64
65
|
label?: string | undefined;
|
|
65
|
-
|
|
66
|
+
title?: string | undefined;
|
|
67
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
68
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
66
69
|
decorative?: boolean | undefined;
|
|
67
70
|
}>>;
|
|
68
71
|
export default declaration;
|
|
@@ -12,29 +12,37 @@ var n = [
|
|
|
12
12
|
"figure"
|
|
13
13
|
], r = e()({
|
|
14
14
|
type: "container",
|
|
15
|
-
attributeValues: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
15
|
+
attributeValues: {
|
|
16
|
+
subType: t()([
|
|
17
|
+
"div",
|
|
18
|
+
"header",
|
|
19
|
+
"footer",
|
|
20
|
+
"nav",
|
|
21
|
+
"main",
|
|
22
|
+
"section",
|
|
23
|
+
"article",
|
|
24
|
+
"aside",
|
|
25
|
+
"address",
|
|
26
|
+
"figure",
|
|
27
|
+
"dl",
|
|
28
|
+
"dt",
|
|
29
|
+
"dd",
|
|
30
|
+
"li",
|
|
31
|
+
"h1",
|
|
32
|
+
"h2",
|
|
33
|
+
"h3",
|
|
34
|
+
"h4",
|
|
35
|
+
"h5",
|
|
36
|
+
"h6",
|
|
37
|
+
"p",
|
|
38
|
+
"span"
|
|
39
|
+
]),
|
|
40
|
+
live: t()([
|
|
41
|
+
"",
|
|
42
|
+
"polite",
|
|
43
|
+
"assertive"
|
|
44
|
+
])
|
|
45
|
+
},
|
|
38
46
|
content: {
|
|
39
47
|
attributes: { subType: "div" },
|
|
40
48
|
definition: {
|
|
@@ -62,7 +70,7 @@ var n = [
|
|
|
62
70
|
license: "MIT",
|
|
63
71
|
website: "https://plitzi.com",
|
|
64
72
|
backgroundColor: "#4422ee",
|
|
65
|
-
icon: "fa-
|
|
73
|
+
icon: "fa-solid fa-crop-simple"
|
|
66
74
|
},
|
|
67
75
|
defaultStyle: {
|
|
68
76
|
name: "Container",
|
|
@@ -5,6 +5,7 @@ declare const Container: {
|
|
|
5
5
|
readonly type: "container";
|
|
6
6
|
readonly attributeValues: {
|
|
7
7
|
readonly subType: readonly string[];
|
|
8
|
+
readonly live: readonly string[];
|
|
8
9
|
};
|
|
9
10
|
readonly content: {
|
|
10
11
|
readonly attributes: {
|
|
@@ -39,7 +40,7 @@ declare const Container: {
|
|
|
39
40
|
readonly license: "MIT";
|
|
40
41
|
readonly website: "https://plitzi.com";
|
|
41
42
|
readonly backgroundColor: "#4422ee";
|
|
42
|
-
readonly icon: "fa-
|
|
43
|
+
readonly icon: "fa-solid fa-crop-simple";
|
|
43
44
|
};
|
|
44
45
|
readonly defaultStyle: {
|
|
45
46
|
readonly name: "Container";
|
|
@@ -55,7 +56,9 @@ declare const Container: {
|
|
|
55
56
|
};
|
|
56
57
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
57
58
|
label?: string | undefined;
|
|
58
|
-
|
|
59
|
+
title?: string | undefined;
|
|
60
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
61
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
59
62
|
decorative?: boolean | undefined;
|
|
60
63
|
}>>;
|
|
61
64
|
export default Container;
|
|
@@ -132,7 +132,7 @@ declare const declaration: {
|
|
|
132
132
|
readonly license: "MIT";
|
|
133
133
|
readonly website: "https://plitzi.com";
|
|
134
134
|
readonly backgroundColor: "#4422ee";
|
|
135
|
-
readonly icon: "fa-regular fa-
|
|
135
|
+
readonly icon: "fa-regular fa-message";
|
|
136
136
|
};
|
|
137
137
|
readonly defaultStyle: {
|
|
138
138
|
readonly name: "Dialog Container";
|
|
@@ -131,7 +131,7 @@ declare const DialogContainer: {
|
|
|
131
131
|
readonly license: "MIT";
|
|
132
132
|
readonly website: "https://plitzi.com";
|
|
133
133
|
readonly backgroundColor: "#4422ee";
|
|
134
|
-
readonly icon: "fa-regular fa-
|
|
134
|
+
readonly icon: "fa-regular fa-message";
|
|
135
135
|
};
|
|
136
136
|
readonly defaultStyle: {
|
|
137
137
|
readonly name: "Dialog Container";
|
|
@@ -35,7 +35,7 @@ declare const declaration: {
|
|
|
35
35
|
readonly license: "MIT";
|
|
36
36
|
readonly website: "https://plitzi.com";
|
|
37
37
|
readonly backgroundColor: "#4422ee";
|
|
38
|
-
readonly icon: "fa-solid fa-
|
|
38
|
+
readonly icon: "fa-solid fa-grip-lines";
|
|
39
39
|
};
|
|
40
40
|
readonly defaultStyle: {
|
|
41
41
|
readonly name: "List Item";
|
|
@@ -34,7 +34,7 @@ declare const ListItem: {
|
|
|
34
34
|
readonly license: "MIT";
|
|
35
35
|
readonly website: "https://plitzi.com";
|
|
36
36
|
readonly backgroundColor: "#4422ee";
|
|
37
|
-
readonly icon: "fa-solid fa-
|
|
37
|
+
readonly icon: "fa-solid fa-grip-lines";
|
|
38
38
|
};
|
|
39
39
|
readonly defaultStyle: {
|
|
40
40
|
readonly name: "List Item";
|
|
@@ -39,7 +39,7 @@ declare const List: {
|
|
|
39
39
|
readonly license: "MIT";
|
|
40
40
|
readonly website: "https://plitzi.com";
|
|
41
41
|
readonly backgroundColor: "#4422ee";
|
|
42
|
-
readonly icon: "fa-solid fa-
|
|
42
|
+
readonly icon: "fa-solid fa-grip-lines";
|
|
43
43
|
};
|
|
44
44
|
readonly defaultStyle: {
|
|
45
45
|
readonly name: "List Item";
|
|
@@ -35,7 +35,7 @@ declare const declaration: {
|
|
|
35
35
|
readonly license: "MIT";
|
|
36
36
|
readonly website: "https://plitzi.com";
|
|
37
37
|
readonly backgroundColor: "#4422ee";
|
|
38
|
-
readonly icon: "fa-
|
|
38
|
+
readonly icon: "fa-regular fa-folder";
|
|
39
39
|
};
|
|
40
40
|
readonly defaultStyle: {
|
|
41
41
|
readonly name: "Tab Container Item";
|
|
@@ -34,7 +34,7 @@ declare const TabContainerItem: {
|
|
|
34
34
|
readonly license: "MIT";
|
|
35
35
|
readonly website: "https://plitzi.com";
|
|
36
36
|
readonly backgroundColor: "#4422ee";
|
|
37
|
-
readonly icon: "fa-
|
|
37
|
+
readonly icon: "fa-regular fa-folder";
|
|
38
38
|
};
|
|
39
39
|
readonly defaultStyle: {
|
|
40
40
|
readonly name: "Tab Container Item";
|
|
@@ -145,7 +145,7 @@ declare const TabContainer: {
|
|
|
145
145
|
readonly license: "MIT";
|
|
146
146
|
readonly website: "https://plitzi.com";
|
|
147
147
|
readonly backgroundColor: "#4422ee";
|
|
148
|
-
readonly icon: "fa-
|
|
148
|
+
readonly icon: "fa-regular fa-folder";
|
|
149
149
|
};
|
|
150
150
|
readonly defaultStyle: {
|
|
151
151
|
readonly name: "Tab Container Item";
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const defaultElements: {
|
|
|
45
45
|
readonly license: "MIT";
|
|
46
46
|
readonly website: "https://plitzi.com";
|
|
47
47
|
readonly backgroundColor: "#4422ee";
|
|
48
|
-
readonly icon: "";
|
|
48
|
+
readonly icon: "fa-regular fa-window-restore";
|
|
49
49
|
};
|
|
50
50
|
readonly defaultStyle: {
|
|
51
51
|
readonly name: "Dropdown Popup";
|
|
@@ -919,6 +919,7 @@ export declare const defaultElements: {
|
|
|
919
919
|
readonly type: "container";
|
|
920
920
|
readonly attributeValues: {
|
|
921
921
|
readonly subType: readonly string[];
|
|
922
|
+
readonly live: readonly string[];
|
|
922
923
|
};
|
|
923
924
|
readonly content: {
|
|
924
925
|
readonly attributes: {
|
|
@@ -953,7 +954,7 @@ export declare const defaultElements: {
|
|
|
953
954
|
readonly license: "MIT";
|
|
954
955
|
readonly website: "https://plitzi.com";
|
|
955
956
|
readonly backgroundColor: "#4422ee";
|
|
956
|
-
readonly icon: "fa-
|
|
957
|
+
readonly icon: "fa-solid fa-crop-simple";
|
|
957
958
|
};
|
|
958
959
|
readonly defaultStyle: {
|
|
959
960
|
readonly name: "Container";
|
|
@@ -969,7 +970,9 @@ export declare const defaultElements: {
|
|
|
969
970
|
};
|
|
970
971
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
971
972
|
label?: string | undefined;
|
|
972
|
-
|
|
973
|
+
title?: string | undefined;
|
|
974
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
975
|
+
live?: "polite" | "assertive" | "" | undefined;
|
|
973
976
|
decorative?: boolean | undefined;
|
|
974
977
|
}>>;
|
|
975
978
|
layoutContainer: {
|
|
@@ -1165,7 +1168,7 @@ export declare const defaultElements: {
|
|
|
1165
1168
|
readonly license: "MIT";
|
|
1166
1169
|
readonly website: "https://plitzi.com";
|
|
1167
1170
|
readonly backgroundColor: "#4422ee";
|
|
1168
|
-
readonly icon: "fa-regular fa-
|
|
1171
|
+
readonly icon: "fa-regular fa-message";
|
|
1169
1172
|
};
|
|
1170
1173
|
readonly defaultStyle: {
|
|
1171
1174
|
readonly name: "Dialog Container";
|
|
@@ -1603,7 +1606,7 @@ export declare const defaultElements: {
|
|
|
1603
1606
|
readonly license: "MIT";
|
|
1604
1607
|
readonly website: "https://plitzi.com";
|
|
1605
1608
|
readonly backgroundColor: "#4422ee";
|
|
1606
|
-
readonly icon: "fa-
|
|
1609
|
+
readonly icon: "fa-regular fa-folder";
|
|
1607
1610
|
};
|
|
1608
1611
|
readonly defaultStyle: {
|
|
1609
1612
|
readonly name: "Tab Container Item";
|
|
@@ -2012,7 +2015,7 @@ export declare const defaultElements: {
|
|
|
2012
2015
|
};
|
|
2013
2016
|
readonly content: {
|
|
2014
2017
|
readonly attributes: {
|
|
2015
|
-
readonly src: "
|
|
2018
|
+
readonly src: "";
|
|
2016
2019
|
readonly alt: "";
|
|
2017
2020
|
readonly decorative: false;
|
|
2018
2021
|
readonly fetchPriority: "auto";
|
|
@@ -2064,6 +2067,7 @@ export declare const defaultElements: {
|
|
|
2064
2067
|
readonly settings: {};
|
|
2065
2068
|
};
|
|
2066
2069
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
2070
|
+
resize?: boolean | undefined;
|
|
2067
2071
|
height?: number | undefined;
|
|
2068
2072
|
width?: number | undefined;
|
|
2069
2073
|
fetchPriority?: "high" | "low" | "auto" | undefined;
|
|
@@ -2375,7 +2379,7 @@ export declare const defaultElements: {
|
|
|
2375
2379
|
readonly license: "MIT";
|
|
2376
2380
|
readonly website: "https://plitzi.com";
|
|
2377
2381
|
readonly backgroundColor: "#4422ee";
|
|
2378
|
-
readonly icon: "fa-solid fa-
|
|
2382
|
+
readonly icon: "fa-solid fa-hand-pointer";
|
|
2379
2383
|
};
|
|
2380
2384
|
readonly defaultStyle: {
|
|
2381
2385
|
readonly name: "Button";
|
|
@@ -2458,6 +2462,7 @@ export declare const defaultElements: {
|
|
|
2458
2462
|
title?: string | undefined;
|
|
2459
2463
|
content?: string | undefined;
|
|
2460
2464
|
disabled?: boolean | undefined;
|
|
2465
|
+
controls?: string | undefined;
|
|
2461
2466
|
icon?: string | undefined;
|
|
2462
2467
|
subType?: "button" | "submit" | "reset" | undefined;
|
|
2463
2468
|
iconPlacement?: import('./Element/ElementWords').IconPlacement | undefined;
|
|
@@ -2576,6 +2581,7 @@ export declare const defaultElements: {
|
|
|
2576
2581
|
readonly settings: {};
|
|
2577
2582
|
};
|
|
2578
2583
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
2584
|
+
title?: string | undefined;
|
|
2579
2585
|
content?: string | number | undefined;
|
|
2580
2586
|
}>>;
|
|
2581
2587
|
themeToggle: {
|
|
@@ -2702,7 +2708,7 @@ export declare const defaultElements: {
|
|
|
2702
2708
|
readonly license: "MIT";
|
|
2703
2709
|
readonly website: "https://plitzi.com";
|
|
2704
2710
|
readonly backgroundColor: "#4422ee";
|
|
2705
|
-
readonly icon: "fa-solid fa-
|
|
2711
|
+
readonly icon: "fa-solid fa-grip-lines";
|
|
2706
2712
|
};
|
|
2707
2713
|
readonly defaultStyle: {
|
|
2708
2714
|
readonly name: "List Item";
|
|
@@ -2942,7 +2948,7 @@ export declare const defaultElements: {
|
|
|
2942
2948
|
readonly settings: {};
|
|
2943
2949
|
};
|
|
2944
2950
|
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
2945
|
-
content
|
|
2951
|
+
content?: string | undefined;
|
|
2946
2952
|
}>>;
|
|
2947
2953
|
richText: {
|
|
2948
2954
|
(props: import('./Element/hocs/withElement').WithElementProps<import('./elements/basic/RichText/RichText').RichTextProps>): import('react').JSX.Element;
|
|
@@ -2987,7 +2993,7 @@ export declare const defaultElements: {
|
|
|
2987
2993
|
readonly license: "MIT";
|
|
2988
2994
|
readonly website: "https://plitzi.com";
|
|
2989
2995
|
readonly backgroundColor: "#4422ee";
|
|
2990
|
-
readonly icon: "fa-solid fa-
|
|
2996
|
+
readonly icon: "fa-solid fa-file-lines";
|
|
2991
2997
|
};
|
|
2992
2998
|
readonly defaultStyle: {
|
|
2993
2999
|
readonly name: "Rich Text";
|
|
@@ -3791,6 +3797,13 @@ export declare const defaultElements: {
|
|
|
3791
3797
|
};
|
|
3792
3798
|
};
|
|
3793
3799
|
};
|
|
3800
|
+
readonly cancelQuery: {
|
|
3801
|
+
readonly action: "cancelQuery";
|
|
3802
|
+
readonly title: "Cancel Query";
|
|
3803
|
+
readonly type: "callback";
|
|
3804
|
+
readonly preview: {};
|
|
3805
|
+
readonly params: {};
|
|
3806
|
+
};
|
|
3794
3807
|
readonly loadMore: {
|
|
3795
3808
|
readonly action: "loadMore";
|
|
3796
3809
|
readonly title: "Load More";
|
|
@@ -3895,7 +3908,36 @@ export declare const defaultElements: {
|
|
|
3895
3908
|
};
|
|
3896
3909
|
readonly settings: {};
|
|
3897
3910
|
};
|
|
3898
|
-
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<
|
|
3911
|
+
} & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
|
|
3912
|
+
when?: import('@plitzi/sdk-shared').RuleGroup | undefined;
|
|
3913
|
+
action?: string | undefined;
|
|
3914
|
+
cache?: boolean | undefined;
|
|
3915
|
+
endpoint?: string | undefined;
|
|
3916
|
+
input?: (Record<string, unknown> | string) | undefined;
|
|
3917
|
+
method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
|
|
3918
|
+
resource?: string | undefined;
|
|
3919
|
+
headers?: Record<string, string> | undefined;
|
|
3920
|
+
subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
|
|
3921
|
+
query?: string | undefined;
|
|
3922
|
+
accessToken?: string | undefined;
|
|
3923
|
+
mockData?: (Record<string, unknown> | string) | undefined;
|
|
3924
|
+
credentials?: RequestCredentials | undefined;
|
|
3925
|
+
connector?: string | undefined;
|
|
3926
|
+
limit?: string | undefined;
|
|
3927
|
+
singleRecord?: boolean | undefined;
|
|
3928
|
+
filters?: {
|
|
3929
|
+
field: string;
|
|
3930
|
+
operator: string;
|
|
3931
|
+
value: string;
|
|
3932
|
+
}[] | undefined;
|
|
3933
|
+
pagination?: import('./elements/provider/ApiContainer/hooks/useProviderPagination').ProviderPagination | undefined;
|
|
3934
|
+
pageParam?: string | undefined;
|
|
3935
|
+
renderWhileLoading?: boolean | undefined;
|
|
3936
|
+
loadingSlot?: string | undefined;
|
|
3937
|
+
staleTime?: number | string | undefined;
|
|
3938
|
+
gcTime?: number | string | undefined;
|
|
3939
|
+
refreshSeconds?: number | string | undefined;
|
|
3940
|
+
}>>;
|
|
3899
3941
|
channel: {
|
|
3900
3942
|
(props: import('./Element/hocs/withElement').WithElementProps<import('./elements/provider/Channel/Channel').ChannelProps>): import('react').JSX.Element;
|
|
3901
3943
|
displayName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-elements",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.5",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
"types": "./dist/Element/ServerStaticShell.d.ts",
|
|
67
67
|
"import": "./dist/Element/ServerStaticShell.mjs"
|
|
68
68
|
},
|
|
69
|
+
"./Element/helpers/elementChildren": {
|
|
70
|
+
"types": "./dist/Element/helpers/elementChildren.d.ts",
|
|
71
|
+
"import": "./dist/Element/helpers/elementChildren.mjs"
|
|
72
|
+
},
|
|
69
73
|
"./Element/helpers/elementConstants": {
|
|
70
74
|
"types": "./dist/Element/helpers/elementConstants.d.ts",
|
|
71
75
|
"import": "./dist/Element/helpers/elementConstants.mjs"
|
|
@@ -130,6 +134,10 @@
|
|
|
130
134
|
"types": "./dist/Element/hooks/useElementState.d.ts",
|
|
131
135
|
"import": "./dist/Element/hooks/useElementState.mjs"
|
|
132
136
|
},
|
|
137
|
+
"./Element/hooks/useElementVisible": {
|
|
138
|
+
"types": "./dist/Element/hooks/useElementVisible.d.ts",
|
|
139
|
+
"import": "./dist/Element/hooks/useElementVisible.mjs"
|
|
140
|
+
},
|
|
133
141
|
"./Element/hooks/useInternalClassName": {
|
|
134
142
|
"types": "./dist/Element/hooks/useInternalClassName.d.ts",
|
|
135
143
|
"import": "./dist/Element/hooks/useInternalClassName.mjs"
|
|
@@ -898,6 +906,10 @@
|
|
|
898
906
|
"types": "./dist/elements/provider/ApiContainer/helpers/queryInput.d.ts",
|
|
899
907
|
"import": "./dist/elements/provider/ApiContainer/helpers/queryInput.mjs"
|
|
900
908
|
},
|
|
909
|
+
"./elements/provider/ApiContainer/helpers/serverMock": {
|
|
910
|
+
"types": "./dist/elements/provider/ApiContainer/helpers/serverMock.d.ts",
|
|
911
|
+
"import": "./dist/elements/provider/ApiContainer/helpers/serverMock.mjs"
|
|
912
|
+
},
|
|
901
913
|
"./elements/provider/ApiContainer/hooks/useApi": {
|
|
902
914
|
"types": "./dist/elements/provider/ApiContainer/hooks/useApi.d.ts",
|
|
903
915
|
"import": "./dist/elements/provider/ApiContainer/hooks/useApi.mjs"
|
|
@@ -906,6 +918,10 @@
|
|
|
906
918
|
"types": "./dist/elements/provider/ApiContainer/hooks/useAutoRefresh.d.ts",
|
|
907
919
|
"import": "./dist/elements/provider/ApiContainer/hooks/useAutoRefresh.mjs"
|
|
908
920
|
},
|
|
921
|
+
"./elements/provider/ApiContainer/hooks/useInputRefresh": {
|
|
922
|
+
"types": "./dist/elements/provider/ApiContainer/hooks/useInputRefresh.d.ts",
|
|
923
|
+
"import": "./dist/elements/provider/ApiContainer/hooks/useInputRefresh.mjs"
|
|
924
|
+
},
|
|
909
925
|
"./elements/provider/ApiContainer/hooks/useProviderPagination": {
|
|
910
926
|
"types": "./dist/elements/provider/ApiContainer/hooks/useProviderPagination.d.ts",
|
|
911
927
|
"import": "./dist/elements/provider/ApiContainer/hooks/useProviderPagination.mjs"
|
|
@@ -1292,15 +1308,15 @@
|
|
|
1292
1308
|
"type": "module",
|
|
1293
1309
|
"sideEffects": false,
|
|
1294
1310
|
"dependencies": {
|
|
1311
|
+
"@dr.pogodin/react-helmet": "^3.3.2",
|
|
1295
1312
|
"@plitzi/nexus": "^1.4.0",
|
|
1296
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
1297
|
-
"@plitzi/sdk-auth": "0.38.
|
|
1298
|
-
"@plitzi/sdk-
|
|
1299
|
-
"@plitzi/sdk-
|
|
1300
|
-
"@plitzi/sdk-
|
|
1301
|
-
"@plitzi/sdk-
|
|
1302
|
-
"@plitzi/sdk-
|
|
1303
|
-
"@plitzi/sdk-shared": "0.38.3",
|
|
1313
|
+
"@plitzi/plitzi-ui": "^1.6.31",
|
|
1314
|
+
"@plitzi/sdk-auth": "0.38.5",
|
|
1315
|
+
"@plitzi/sdk-event-bridge": "0.38.5",
|
|
1316
|
+
"@plitzi/sdk-interactions": "0.38.5",
|
|
1317
|
+
"@plitzi/sdk-navigation": "0.38.5",
|
|
1318
|
+
"@plitzi/sdk-schema": "0.38.5",
|
|
1319
|
+
"@plitzi/sdk-shared": "0.38.5",
|
|
1304
1320
|
"clsx": "^2.1.1",
|
|
1305
1321
|
"immer": "^11.1.21"
|
|
1306
1322
|
},
|