@plitzi/sdk-elements 0.38.4 → 0.38.6

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +358 -0
  2. package/dist/Element/helpers/elementChildren.d.ts +29 -0
  3. package/dist/Element/helpers/elementChildren.mjs +16 -0
  4. package/dist/Element/hooks/useElementVisible.d.ts +11 -0
  5. package/dist/Element/hooks/useElementVisible.mjs +25 -0
  6. package/dist/Element/hooks/useRscData.d.ts +4 -0
  7. package/dist/Element/hooks/useRscData.mjs +23 -19
  8. package/dist/dataSource/GlobalSources.mjs +68 -57
  9. package/dist/elements/basic/Button/declaration.d.ts +1 -1
  10. package/dist/elements/basic/Button/declaration.mjs +1 -1
  11. package/dist/elements/basic/Button/index.d.ts +1 -1
  12. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +1 -1
  13. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -1
  14. package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
  15. package/dist/elements/basic/Dropdown/index.d.ts +1 -1
  16. package/dist/elements/basic/Markdown/Markdown.d.ts +3 -3
  17. package/dist/elements/basic/Markdown/Markdown.mjs +10 -6
  18. package/dist/elements/basic/Markdown/declaration.d.ts +1 -1
  19. package/dist/elements/basic/Markdown/index.d.ts +1 -1
  20. package/dist/elements/basic/RichText/declaration.d.ts +1 -1
  21. package/dist/elements/basic/RichText/declaration.mjs +1 -1
  22. package/dist/elements/basic/RichText/index.d.ts +1 -1
  23. package/dist/elements/basic/Text/Text.d.ts +6 -1
  24. package/dist/elements/basic/Text/Text.mjs +6 -5
  25. package/dist/elements/basic/Text/declaration.d.ts +1 -0
  26. package/dist/elements/basic/Text/index.d.ts +1 -0
  27. package/dist/elements/declarations/index.d.ts +49 -9
  28. package/dist/elements/form/Form/declaration.d.ts +1 -0
  29. package/dist/elements/form/Form/declaration.mjs +2 -1
  30. package/dist/elements/form/FormControl/declaration.d.ts +1 -0
  31. package/dist/elements/form/FormControl/declaration.mjs +3 -2
  32. package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +37 -29
  33. package/dist/elements/internal/LayoutContainer/mask.d.ts +11 -0
  34. package/dist/elements/internal/LayoutContainer/mask.mjs +14 -0
  35. package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +9 -1
  36. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +132 -107
  37. package/dist/elements/provider/ApiContainer/declaration.d.ts +38 -10
  38. package/dist/elements/provider/ApiContainer/declaration.mjs +7 -0
  39. package/dist/elements/provider/ApiContainer/hooks/useApi.d.ts +2 -0
  40. package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +1 -0
  41. package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.d.ts +20 -0
  42. package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.mjs +16 -0
  43. package/dist/elements/provider/ApiContainer/index.d.ts +37 -1
  44. package/dist/elements/structure/Container/Container.d.ts +6 -1
  45. package/dist/elements/structure/Container/Container.mjs +6 -5
  46. package/dist/elements/structure/Container/declaration.d.ts +2 -1
  47. package/dist/elements/structure/Container/declaration.mjs +1 -1
  48. package/dist/elements/structure/Container/index.d.ts +2 -1
  49. package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -1
  50. package/dist/elements/structure/DialogContainer/declaration.mjs +1 -1
  51. package/dist/elements/structure/DialogContainer/index.d.ts +1 -1
  52. package/dist/elements/structure/List/ListItem/declaration.d.ts +1 -1
  53. package/dist/elements/structure/List/ListItem/declaration.mjs +1 -1
  54. package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
  55. package/dist/elements/structure/List/index.d.ts +1 -1
  56. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +1 -1
  57. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
  58. package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +1 -1
  59. package/dist/elements/structure/TabContainer/index.d.ts +1 -1
  60. package/dist/index.d.ts +47 -9
  61. package/package.json +21 -9
@@ -1,64 +1,68 @@
1
1
  import { use as e, useCallback as t, useEffect as n, useMemo as r, useRef as i } from "react";
2
2
  import { useCommonStore as a, useCommonStoreSync as o, useRenderSettings as s } from "@plitzi/sdk-shared/store";
3
- import { get as ee } from "@plitzi/plitzi-ui/helpers";
4
- import { flagValues as c, undeclaredFlagOverrides as l } from "@plitzi/sdk-shared/flags";
5
- import { getPathsFromObeject as u } from "@plitzi/sdk-shared/helpers/utils";
6
- import { evaluateComputed as d, resolveVariables as te } from "@plitzi/sdk-shared/dataSource";
7
- import ne, { SPACE_THEME_AREA as f } from "@plitzi/sdk-shared/theme/useTheme";
8
- import p from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
9
- import m from "@plitzi/sdk-auth/AuthContext";
10
- import h from "@plitzi/sdk-shared/flags/useFlagResolution";
11
- import g from "@plitzi/sdk-shared/hooks/useStableValue";
3
+ import { get as c } from "@plitzi/plitzi-ui/helpers";
4
+ import { flagValues as l, undeclaredFlagOverrides as u } from "@plitzi/sdk-shared/flags";
5
+ import { getPathsFromObeject as d } from "@plitzi/sdk-shared/helpers/utils";
6
+ import { evaluateComputed as ee, resolveVariables as te } from "@plitzi/sdk-shared/dataSource";
7
+ import ne, { SPACE_THEME_AREA as re } from "@plitzi/sdk-shared/theme/useTheme";
8
+ import f from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
9
+ import p from "@plitzi/sdk-auth/AuthContext";
10
+ import m from "@plitzi/sdk-shared/flags/useFlagResolution";
11
+ import h from "@plitzi/sdk-shared/hooks/useStableValue";
12
12
  //#region src/dataSource/GlobalSources.tsx
13
- var _ = ({ children: _ }) => {
14
- let { environment: v } = s(), [[y, b, x, S, C, w, T]] = a([
13
+ var g = ({ children: g }) => {
14
+ let { environment: _ } = s(), [[v, y, b, x, S, C, w, T = ""]] = a([
15
15
  "schema.variables",
16
16
  "navigation.routeParams",
17
17
  "navigation.queryParams",
18
18
  "navigation.hostname",
19
19
  "navigation.origin",
20
20
  "navigation.href",
21
- "navigation.currentPageId"
22
- ]), E = g(r(() => te(y, {
23
- routeParams: b,
24
- queryParams: x,
25
- hostname: S,
26
- environment: v
21
+ "navigation.currentPageId",
22
+ "navigation.pendingLocation"
23
+ ]), E = h(r(() => te(v, {
24
+ routeParams: y,
25
+ queryParams: b,
26
+ hostname: x,
27
+ environment: _
27
28
  }), [
28
- v,
29
- S,
29
+ _,
30
30
  x,
31
31
  b,
32
- y
33
- ])), re = t(() => u(E).map((e) => ({
32
+ y,
33
+ v
34
+ ])), ie = t(() => d(E).map((e) => ({
34
35
  path: e,
35
36
  name: `variables.${e}`
36
37
  })), [E]);
37
- p({
38
+ f({
38
39
  id: "global",
39
40
  source: "variables",
40
41
  name: "Variables",
41
- fields: re
42
+ fields: ie
42
43
  }), o("runtime.sources.variables", E);
43
44
  let [D = {}] = a("pageDefinitions"), O = r(() => Object.values(D).map((e) => ({
44
45
  value: e.id,
45
- label: ee(e, "attributes.name", e.id)
46
+ label: c(e, "attributes.name", e.id)
46
47
  })), [D]), k = r(() => ({
47
- routeParams: b,
48
- queryParams: x,
49
- origin: C,
50
- href: w,
51
- currentPageId: T
48
+ routeParams: y,
49
+ queryParams: b,
50
+ origin: S,
51
+ href: C,
52
+ currentPageId: w,
53
+ pending: T !== "",
54
+ pendingLocation: T
52
55
  }), [
56
+ y,
53
57
  b,
54
- x,
58
+ S,
55
59
  C,
56
60
  w,
57
61
  T
58
62
  ]), A = t(() => {
59
- let e = u({
60
- routeParams: b,
61
- queryParams: x
63
+ let e = d({
64
+ routeParams: y,
65
+ queryParams: b
62
66
  }).map((e) => ({
63
67
  path: e,
64
68
  name: `navigation.${e}`
@@ -68,7 +72,13 @@ var _ = ({ children: _ }) => {
68
72
  }, n = {
69
73
  path: "href",
70
74
  name: "This page’s address"
71
- }, r = O.length > 0 ? {
75
+ }, r = [{
76
+ path: "pending",
77
+ name: "A navigation is on its way"
78
+ }, {
79
+ path: "pendingLocation",
80
+ name: "Where a navigation is going"
81
+ }], i = O.length > 0 ? {
72
82
  path: "currentPageId",
73
83
  name: "Current Page",
74
84
  inputType: "select",
@@ -81,20 +91,21 @@ var _ = ({ children: _ }) => {
81
91
  ...e,
82
92
  t,
83
93
  n,
84
- r
94
+ ...r,
95
+ i
85
96
  ];
86
97
  }, [
98
+ y,
87
99
  b,
88
- x,
89
100
  O
90
101
  ]);
91
- p({
102
+ f({
92
103
  id: "global",
93
104
  source: "navigation",
94
105
  name: "Navigation",
95
106
  fields: A
96
107
  }), o("runtime.sources.navigation", k);
97
- let j = e(m), { user: M, authenticated: N, state: P } = j, [F = "basic"] = a("schema.settings.userProvider"), I = r(() => F === "" ? {} : {
108
+ let j = e(p), { user: M, authenticated: N, state: P } = j, [F = "basic"] = a("schema.settings.userProvider"), I = r(() => F === "" ? {} : {
98
109
  isAuthenticated: N,
99
110
  ...P === void 0 ? {} : { status: P },
100
111
  accessToken: M?.accessToken ?? "",
@@ -111,65 +122,65 @@ var _ = ({ children: _ }) => {
111
122
  M,
112
123
  N,
113
124
  P
114
- ]), L = t(() => u(I).map((e) => ({
125
+ ]), L = t(() => d(I).map((e) => ({
115
126
  path: e,
116
127
  name: `user.${e}`
117
128
  })), [I]);
118
- p({
129
+ f({
119
130
  id: "global",
120
131
  source: "auth",
121
132
  name: "Auth State",
122
133
  fields: L
123
134
  }), o("runtime.sources.auth", I);
124
- let R = h(j), z = r(() => c(R), [R]), B = t(() => Object.keys(z).map((e) => ({
135
+ let R = m(j), z = r(() => l(R), [R]), B = t(() => Object.keys(z).map((e) => ({
125
136
  path: e,
126
137
  name: `flags.${e}`,
127
138
  inputType: "checkbox"
128
139
  })), [z]);
129
- p({
140
+ f({
130
141
  id: "global",
131
142
  source: "flags",
132
143
  name: "Feature Flags",
133
144
  fields: B
134
145
  }), o("runtime.sources.flags", z), o("flags.resolved", R);
135
- let [V, H] = a(["schema.flags", "flags.overrides"])[0], U = g(l(V, H ?? {}));
146
+ let [V, H] = a(["schema.flags", "flags.overrides"])[0], U = h(u(V, H ?? {}));
136
147
  n(() => {
137
148
  U.forEach(({ layer: e, name: t }) => console.warn(`[plitzi] The ${e} sets the feature flag "${t}", which this space does not declare: the override is ignored. Declare the flag in the space, or remove the override.`));
138
149
  }, [U]);
139
- let [W] = a("runtime.state"), G = t(() => u(W).map((e) => ({
150
+ let [W] = a("runtime.state"), G = t(() => d(W).map((e) => ({
140
151
  path: e,
141
152
  name: `state.${e}`
142
153
  })), [W]);
143
- p({
154
+ f({
144
155
  id: "global",
145
156
  source: "state",
146
157
  name: "State",
147
158
  fields: G
148
159
  }), o("runtime.sources.state", W);
149
- let [K] = a("runtime.host"), q = t(() => u(K).map((e) => ({
160
+ let [K] = a("runtime.host"), q = t(() => d(K).map((e) => ({
150
161
  path: e,
151
162
  name: `host.${e}`
152
163
  })), [K]);
153
- p({
164
+ f({
154
165
  id: "global",
155
166
  source: "host",
156
167
  name: "Host",
157
168
  fields: q
158
169
  }), o("runtime.sources.host", K);
159
- let { theme: J, resolvedTheme: Y } = ne(f), X = r(() => ({
170
+ let { theme: J, resolvedTheme: Y } = ne(re), X = r(() => ({
160
171
  mode: J,
161
172
  resolved: Y
162
- }), [J, Y]), ie = t(() => u(X).map((e) => ({
173
+ }), [J, Y]), ae = t(() => d(X).map((e) => ({
163
174
  path: e,
164
175
  name: `theme.${e}`
165
176
  })), [X]);
166
- p({
177
+ f({
167
178
  id: "global",
168
179
  source: "theme",
169
180
  name: "Theme",
170
- fields: ie
181
+ fields: ae
171
182
  }), o("runtime.sources.theme", X);
172
- let [Z] = a("schema.settings.computed"), Q = i(void 0), $ = r(() => d(Z ?? {}, {
183
+ let [Z] = a("schema.settings.computed"), Q = i(void 0), $ = r(() => ee(Z ?? {}, {
173
184
  variables: E,
174
185
  navigation: k,
175
186
  auth: I,
@@ -188,16 +199,16 @@ var _ = ({ children: _ }) => {
188
199
  z
189
200
  ]);
190
201
  Q.current = $;
191
- let ae = t(() => u($).map((e) => ({
202
+ let oe = t(() => d($).map((e) => ({
192
203
  path: e,
193
204
  name: `computed.${e}`
194
205
  })), [$]);
195
- return p({
206
+ return f({
196
207
  id: "global",
197
208
  source: "computed",
198
209
  name: "Computed",
199
- fields: ae
200
- }), o("runtime.sources.computed", $), _;
210
+ fields: oe
211
+ }), o("runtime.sources.computed", $), g;
201
212
  };
202
213
  //#endregion
203
- export { _ as default };
214
+ export { g as default };
@@ -48,7 +48,7 @@ declare const declaration: {
48
48
  readonly license: "MIT";
49
49
  readonly website: "https://plitzi.com";
50
50
  readonly backgroundColor: "#4422ee";
51
- readonly icon: "fa-solid fa-stop";
51
+ readonly icon: "fa-solid fa-hand-pointer";
52
52
  };
53
53
  readonly defaultStyle: {
54
54
  readonly name: "Button";
@@ -48,7 +48,7 @@ var n = e()({
48
48
  license: "MIT",
49
49
  website: "https://plitzi.com",
50
50
  backgroundColor: "#4422ee",
51
- icon: "fa-solid fa-stop"
51
+ icon: "fa-solid fa-hand-pointer"
52
52
  },
53
53
  defaultStyle: {
54
54
  name: "Button",
@@ -47,7 +47,7 @@ declare const Button: {
47
47
  readonly license: "MIT";
48
48
  readonly website: "https://plitzi.com";
49
49
  readonly backgroundColor: "#4422ee";
50
- readonly icon: "fa-solid fa-stop";
50
+ readonly icon: "fa-solid fa-hand-pointer";
51
51
  };
52
52
  readonly defaultStyle: {
53
53
  readonly name: "Button";
@@ -34,7 +34,7 @@ declare const declaration: {
34
34
  readonly license: "MIT";
35
35
  readonly website: "https://plitzi.com";
36
36
  readonly backgroundColor: "#4422ee";
37
- readonly icon: "";
37
+ readonly icon: "fa-regular fa-window-restore";
38
38
  };
39
39
  readonly defaultStyle: {
40
40
  readonly name: "Dropdown Popup";
@@ -30,7 +30,7 @@ var t = e()({
30
30
  license: "MIT",
31
31
  website: "https://plitzi.com",
32
32
  backgroundColor: "#4422ee",
33
- icon: ""
33
+ icon: "fa-regular fa-window-restore"
34
34
  },
35
35
  defaultStyle: {
36
36
  name: "Dropdown Popup",
@@ -33,7 +33,7 @@ declare const DropdownPopup: {
33
33
  readonly license: "MIT";
34
34
  readonly website: "https://plitzi.com";
35
35
  readonly backgroundColor: "#4422ee";
36
- readonly icon: "";
36
+ readonly icon: "fa-regular fa-window-restore";
37
37
  };
38
38
  readonly defaultStyle: {
39
39
  readonly name: "Dropdown Popup";
@@ -38,7 +38,7 @@ declare const Dropdown: {
38
38
  readonly license: "MIT";
39
39
  readonly website: "https://plitzi.com";
40
40
  readonly backgroundColor: "#4422ee";
41
- readonly icon: "";
41
+ readonly icon: "fa-regular fa-window-restore";
42
42
  };
43
43
  readonly defaultStyle: {
44
44
  readonly name: "Dropdown Popup";
@@ -1,8 +1,8 @@
1
1
  import { RefObject } from 'react';
2
2
  export type MarkdownProps = {
3
- ref: RefObject<HTMLElement>;
4
- className: string;
5
- content: string;
3
+ ref?: RefObject<HTMLElement>;
4
+ className?: string;
5
+ content?: string;
6
6
  };
7
7
  declare const Markdown: ({ ref, content, className }: MarkdownProps) => import('react').JSX.Element;
8
8
  declare const _default: {
@@ -4,14 +4,18 @@ import n from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  import i from "clsx";
6
6
  import a from "@plitzi/plitzi-ui/Markdown";
7
+ import { uniqueAnchor as o } from "@plitzi/sdk-shared/schema/anchor";
7
8
  //#region src/elements/basic/Markdown/Markdown.tsx
8
- var o = ({ ref: e, content: o = "Markdown", className: s = "" }) => {
9
- let { settings: { previewMode: c } } = n();
9
+ var s = ({ ref: e, content: s = "Markdown", className: c = "" }) => {
10
+ let { settings: { previewMode: l } } = n();
10
11
  return /* @__PURE__ */ r(t, {
11
12
  ref: e,
12
- className: i("plitzi-component__markdown", { "plitzi-component__markdown--edit-mode": !c }, s),
13
- children: /* @__PURE__ */ r(a, { children: o })
13
+ className: i("plitzi-component__markdown", { "plitzi-component__markdown--edit-mode": !l }, c),
14
+ children: /* @__PURE__ */ r(a, {
15
+ headingAnchor: o,
16
+ children: s
17
+ })
14
18
  });
15
- }, s = e(o);
19
+ }, c = e(s);
16
20
  //#endregion
17
- export { o as Markdown, s as default };
21
+ export { s as Markdown, c as default };
@@ -53,6 +53,6 @@ declare const declaration: {
53
53
  readonly settings: {};
54
54
  };
55
55
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
56
- content: string;
56
+ content?: string | undefined;
57
57
  }>>;
58
58
  export default declaration;
@@ -52,6 +52,6 @@ declare const Markdown: {
52
52
  readonly settings: {};
53
53
  };
54
54
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
55
- content: string;
55
+ content?: string | undefined;
56
56
  }>>;
57
57
  export default Markdown;
@@ -42,7 +42,7 @@ declare const declaration: {
42
42
  readonly license: "MIT";
43
43
  readonly website: "https://plitzi.com";
44
44
  readonly backgroundColor: "#4422ee";
45
- readonly icon: "fa-solid fa-align-left";
45
+ readonly icon: "fa-solid fa-file-lines";
46
46
  };
47
47
  readonly defaultStyle: {
48
48
  readonly name: "Rich Text";
@@ -38,7 +38,7 @@ var n = e()({
38
38
  license: "MIT",
39
39
  website: "https://plitzi.com",
40
40
  backgroundColor: "#4422ee",
41
- icon: "fa-solid fa-align-left"
41
+ icon: "fa-solid fa-file-lines"
42
42
  },
43
43
  defaultStyle: {
44
44
  name: "Rich Text",
@@ -41,7 +41,7 @@ declare const RichText: {
41
41
  readonly license: "MIT";
42
42
  readonly website: "https://plitzi.com";
43
43
  readonly backgroundColor: "#4422ee";
44
- readonly icon: "fa-solid fa-align-left";
44
+ readonly icon: "fa-solid fa-file-lines";
45
45
  };
46
46
  readonly defaultStyle: {
47
47
  readonly name: "Rich Text";
@@ -3,8 +3,13 @@ export type TextProps = {
3
3
  ref?: RefObject<HTMLElement>;
4
4
  className?: string;
5
5
  content?: string | number;
6
+ /**
7
+ * What a pointer resting on it shows — the whole of a text cut short, what an abbreviation stands for. A screen reader
8
+ * may not say it, so nothing only it says should matter.
9
+ */
10
+ title?: string;
6
11
  };
7
- declare const Text: ({ ref, content, className }: TextProps) => import('react').JSX.Element;
12
+ declare const Text: ({ ref, content, className, title }: TextProps) => import('react').JSX.Element;
8
13
  declare const _default: {
9
14
  (props: import('../../../Element/hocs/withElement').WithElementProps<TextProps>): import('react').JSX.Element;
10
15
  displayName: string;
@@ -7,15 +7,16 @@ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  import l from "clsx";
8
8
  import u from "@plitzi/plitzi-ui/ContentEditable";
9
9
  //#region src/elements/basic/Text/Text.tsx
10
- var d = ({ ref: e, content: d = "Text", className: f = "" }) => {
11
- let { id: p } = t(), { settings: { previewMode: m }, contexts: { BuilderContext: h } } = o(), g = h ? r(h) : void 0, _ = a(() => typeof d != "string" && typeof d != "number" ? JSON.stringify(d) : !d && d !== "" && !m ? "Text" : typeof d == "number" ? `${d}` : d, [d, m]), v = i((e) => g?.updateElement(p, "content", e), [g, p]);
10
+ var d = ({ ref: e, content: d = "Text", className: f = "", title: p = "" }) => {
11
+ let { id: m } = t(), { settings: { previewMode: h }, contexts: { BuilderContext: g } } = o(), _ = g ? r(g) : void 0, v = a(() => typeof d != "string" && typeof d != "number" ? JSON.stringify(d) : !d && d !== "" && !h ? "Text" : typeof d == "number" ? `${d}` : d, [d, h]), y = i((e) => _?.updateElement(m, "content", e), [_, m]);
12
12
  return /* @__PURE__ */ c(n, {
13
13
  ref: e,
14
14
  className: l("plitzi-component__text", f),
15
- children: [m && _, !m && /* @__PURE__ */ s(u, {
15
+ title: p || void 0,
16
+ children: [h && v, !h && /* @__PURE__ */ s(u, {
16
17
  className: "focus-visible:outline-hidden",
17
- value: _,
18
- onChange: v,
18
+ value: v,
19
+ onChange: y,
19
20
  openMode: "doubleClick"
20
21
  })]
21
22
  });
@@ -54,6 +54,7 @@ declare const declaration: {
54
54
  readonly settings: {};
55
55
  };
56
56
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
57
+ title?: string | undefined;
57
58
  content?: string | number | undefined;
58
59
  }>>;
59
60
  export default declaration;
@@ -53,6 +53,7 @@ declare const Text: {
53
53
  readonly settings: {};
54
54
  };
55
55
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
56
+ title?: string | undefined;
56
57
  content?: string | number | undefined;
57
58
  }>>;
58
59
  export default Text;
@@ -89,6 +89,13 @@ export declare const elementDeclarations: {
89
89
  };
90
90
  };
91
91
  };
92
+ readonly cancelQuery: {
93
+ readonly action: "cancelQuery";
94
+ readonly title: "Cancel Query";
95
+ readonly type: "callback";
96
+ readonly preview: {};
97
+ readonly params: {};
98
+ };
92
99
  readonly loadMore: {
93
100
  readonly action: "loadMore";
94
101
  readonly title: "Load More";
@@ -193,7 +200,36 @@ export declare const elementDeclarations: {
193
200
  };
194
201
  readonly settings: {};
195
202
  };
196
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<import('../provider/ApiContainer/declaration').ApiContainerAttributes>;
203
+ } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
204
+ when?: import('@plitzi/sdk-shared').RuleGroup | undefined;
205
+ action?: string | undefined;
206
+ cache?: boolean | undefined;
207
+ endpoint?: string | undefined;
208
+ input?: (Record<string, unknown> | string) | undefined;
209
+ method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
210
+ resource?: string | undefined;
211
+ headers?: Record<string, string> | undefined;
212
+ subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
213
+ query?: string | undefined;
214
+ accessToken?: string | undefined;
215
+ mockData?: (Record<string, unknown> | string) | undefined;
216
+ credentials?: RequestCredentials | undefined;
217
+ connector?: string | undefined;
218
+ limit?: string | undefined;
219
+ singleRecord?: boolean | undefined;
220
+ filters?: {
221
+ field: string;
222
+ operator: string;
223
+ value: string;
224
+ }[] | undefined;
225
+ pagination?: import('../provider/ApiContainer/hooks/useProviderPagination').ProviderPagination | undefined;
226
+ pageParam?: string | undefined;
227
+ renderWhileLoading?: boolean | undefined;
228
+ loadingSlot?: string | undefined;
229
+ staleTime?: number | string | undefined;
230
+ gcTime?: number | string | undefined;
231
+ refreshSeconds?: number | string | undefined;
232
+ }>>;
197
233
  readonly BlockHtml: {
198
234
  readonly type: "blockHtml";
199
235
  readonly content: {
@@ -341,7 +377,7 @@ export declare const elementDeclarations: {
341
377
  readonly license: "MIT";
342
378
  readonly website: "https://plitzi.com";
343
379
  readonly backgroundColor: "#4422ee";
344
- readonly icon: "fa-solid fa-stop";
380
+ readonly icon: "fa-solid fa-hand-pointer";
345
381
  };
346
382
  readonly defaultStyle: {
347
383
  readonly name: "Button";
@@ -778,7 +814,7 @@ export declare const elementDeclarations: {
778
814
  readonly license: "MIT";
779
815
  readonly website: "https://plitzi.com";
780
816
  readonly backgroundColor: "#4422ee";
781
- readonly icon: "fa-regular fa-square";
817
+ readonly icon: "fa-solid fa-crop-simple";
782
818
  };
783
819
  readonly defaultStyle: {
784
820
  readonly name: "Container";
@@ -794,6 +830,7 @@ export declare const elementDeclarations: {
794
830
  };
795
831
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
796
832
  label?: string | undefined;
833
+ title?: string | undefined;
797
834
  subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
798
835
  live?: "polite" | "assertive" | "" | undefined;
799
836
  decorative?: boolean | undefined;
@@ -980,7 +1017,7 @@ export declare const elementDeclarations: {
980
1017
  readonly license: "MIT";
981
1018
  readonly website: "https://plitzi.com";
982
1019
  readonly backgroundColor: "#4422ee";
983
- readonly icon: "fa-regular fa-clone";
1020
+ readonly icon: "fa-regular fa-message";
984
1021
  };
985
1022
  readonly defaultStyle: {
986
1023
  readonly name: "Dialog Container";
@@ -1197,7 +1234,7 @@ export declare const elementDeclarations: {
1197
1234
  readonly license: "MIT";
1198
1235
  readonly website: "https://plitzi.com";
1199
1236
  readonly backgroundColor: "#4422ee";
1200
- readonly icon: "";
1237
+ readonly icon: "fa-regular fa-window-restore";
1201
1238
  };
1202
1239
  readonly defaultStyle: {
1203
1240
  readonly name: "Dropdown Popup";
@@ -1452,6 +1489,7 @@ export declare const elementDeclarations: {
1452
1489
  readonly license: "MIT";
1453
1490
  readonly website: "https://plitzi.com";
1454
1491
  readonly backgroundColor: "#4422ee";
1492
+ readonly icon: "fa-solid fa-rectangle-list";
1455
1493
  };
1456
1494
  readonly defaultStyle: {
1457
1495
  readonly name: "Form";
@@ -1545,6 +1583,7 @@ export declare const elementDeclarations: {
1545
1583
  readonly license: "MIT";
1546
1584
  readonly website: "https://plitzi.com";
1547
1585
  readonly backgroundColor: "#4422ee";
1586
+ readonly icon: "fa-solid fa-i-cursor";
1548
1587
  };
1549
1588
  readonly defaultStyle: {
1550
1589
  readonly name: "Form Control";
@@ -2458,7 +2497,7 @@ export declare const elementDeclarations: {
2458
2497
  readonly license: "MIT";
2459
2498
  readonly website: "https://plitzi.com";
2460
2499
  readonly backgroundColor: "#4422ee";
2461
- readonly icon: "fa-solid fa-list";
2500
+ readonly icon: "fa-solid fa-grip-lines";
2462
2501
  };
2463
2502
  readonly defaultStyle: {
2464
2503
  readonly name: "List Item";
@@ -2569,7 +2608,7 @@ export declare const elementDeclarations: {
2569
2608
  readonly settings: {};
2570
2609
  };
2571
2610
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
2572
- content: string;
2611
+ content?: string | undefined;
2573
2612
  }>>;
2574
2613
  readonly ModalContainer: {
2575
2614
  readonly type: "modalContainer";
@@ -3466,7 +3505,7 @@ export declare const elementDeclarations: {
3466
3505
  readonly license: "MIT";
3467
3506
  readonly website: "https://plitzi.com";
3468
3507
  readonly backgroundColor: "#4422ee";
3469
- readonly icon: "fa-solid fa-align-left";
3508
+ readonly icon: "fa-solid fa-file-lines";
3470
3509
  };
3471
3510
  readonly defaultStyle: {
3472
3511
  readonly name: "Rich Text";
@@ -3723,7 +3762,7 @@ export declare const elementDeclarations: {
3723
3762
  readonly license: "MIT";
3724
3763
  readonly website: "https://plitzi.com";
3725
3764
  readonly backgroundColor: "#4422ee";
3726
- readonly icon: "fa-solid fa-table-columns";
3765
+ readonly icon: "fa-regular fa-folder";
3727
3766
  };
3728
3767
  readonly defaultStyle: {
3729
3768
  readonly name: "Tab Container Item";
@@ -3790,6 +3829,7 @@ export declare const elementDeclarations: {
3790
3829
  readonly settings: {};
3791
3830
  };
3792
3831
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
3832
+ title?: string | undefined;
3793
3833
  content?: string | number | undefined;
3794
3834
  }>>;
3795
3835
  readonly ThemeToggle: {
@@ -103,6 +103,7 @@ declare const declaration: {
103
103
  readonly license: "MIT";
104
104
  readonly website: "https://plitzi.com";
105
105
  readonly backgroundColor: "#4422ee";
106
+ readonly icon: "fa-solid fa-rectangle-list";
106
107
  };
107
108
  readonly defaultStyle: {
108
109
  readonly name: "Form";
@@ -92,7 +92,8 @@ var n = e()({
92
92
  verified: !0,
93
93
  license: "MIT",
94
94
  website: "https://plitzi.com",
95
- backgroundColor: "#4422ee"
95
+ backgroundColor: "#4422ee",
96
+ icon: "fa-solid fa-rectangle-list"
96
97
  },
97
98
  defaultStyle: {
98
99
  name: "Form",
@@ -79,6 +79,7 @@ declare const declaration: {
79
79
  readonly license: "MIT";
80
80
  readonly website: "https://plitzi.com";
81
81
  readonly backgroundColor: "#4422ee";
82
+ readonly icon: "fa-solid fa-i-cursor";
82
83
  };
83
84
  readonly defaultStyle: {
84
85
  readonly name: "Form Control";