@plitzi/sdk-elements 0.38.8 → 0.38.10

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 (65) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/dist/Component/ComponentHelper.mjs +22 -13
  3. package/dist/Element/hooks/useElementInternal.mjs +67 -59
  4. package/dist/elements/advanced/BlockHtml/index.mjs +3 -3
  5. package/dist/elements/advanced/BlockJsx/index.mjs +3 -3
  6. package/dist/elements/advanced/Custom/index.mjs +3 -3
  7. package/dist/elements/basic/Button/index.mjs +3 -3
  8. package/dist/elements/basic/Text/Settings.d.ts +2 -1
  9. package/dist/elements/basic/Text/Settings.mjs +16 -10
  10. package/dist/elements/basic/Text/Text.d.ts +3 -1
  11. package/dist/elements/basic/Text/Text.mjs +6 -5
  12. package/dist/elements/basic/Text/declaration.d.ts +1 -0
  13. package/dist/elements/basic/Text/index.d.ts +1 -0
  14. package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +13 -13
  15. package/dist/elements/declarations/index.d.ts +26 -17
  16. package/dist/elements/declarations/index.mjs +6 -6
  17. package/dist/elements/form/Form/Form.mjs +19 -19
  18. package/dist/elements/form/FormControl/FormControl.d.ts +1 -0
  19. package/dist/elements/form/FormControl/FormControl.mjs +10 -10
  20. package/dist/elements/form/FormControl/Settings.mjs +1 -1
  21. package/dist/elements/form/FormControl/declaration.d.ts +1 -1
  22. package/dist/elements/form/FormControl/declaration.mjs +3 -3
  23. package/dist/elements/form/FormControl/index.d.ts +1 -1
  24. package/dist/elements/internal/NotFound/index.mjs +3 -3
  25. package/dist/elements/internal/Page/Page.d.ts +5 -0
  26. package/dist/elements/internal/Page/Page.mjs +26 -25
  27. package/dist/elements/internal/Page/PageHead.d.ts +12 -0
  28. package/dist/elements/internal/Page/PageHead.mjs +29 -0
  29. package/dist/elements/internal/Page/declaration.d.ts +2 -0
  30. package/dist/elements/internal/Page/declaration.mjs +5 -0
  31. package/dist/elements/internal/Page/index.d.ts +2 -0
  32. package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +7 -0
  33. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +187 -187
  34. package/dist/elements/provider/ApiContainer/declaration.d.ts +11 -9
  35. package/dist/elements/provider/ApiContainer/declaration.mjs +2 -1
  36. package/dist/elements/provider/ApiContainer/index.d.ts +11 -9
  37. package/dist/elements/provider/Channel/Channel.mjs +15 -15
  38. package/dist/elements/provider/Channel/declaration.d.ts +1 -1
  39. package/dist/elements/provider/Channel/index.d.ts +1 -1
  40. package/dist/elements/structure/Carousel/Carousel.mjs +72 -72
  41. package/dist/elements/structure/Carousel/CarouselTrack/index.mjs +3 -3
  42. package/dist/elements/structure/Carousel/declaration.d.ts +1 -1
  43. package/dist/elements/structure/Carousel/index.d.ts +1 -1
  44. package/dist/elements/structure/Container/Container.mjs +8 -8
  45. package/dist/elements/structure/DialogContainer/DialogContainer.mjs +14 -14
  46. package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -2
  47. package/dist/elements/structure/DialogContainer/declaration.mjs +1 -2
  48. package/dist/elements/structure/DialogContainer/index.d.ts +1 -2
  49. package/dist/elements/structure/List/List.d.ts +3 -1
  50. package/dist/elements/structure/List/List.mjs +3 -1
  51. package/dist/elements/structure/List/Settings.d.ts +2 -1
  52. package/dist/elements/structure/List/Settings.mjs +12 -5
  53. package/dist/elements/structure/List/declaration.d.ts +1 -0
  54. package/dist/elements/structure/List/index.d.ts +1 -0
  55. package/dist/elements/structure/List/modes/ListBasic.d.ts +3 -1
  56. package/dist/elements/structure/List/modes/ListBasic.mjs +2 -1
  57. package/dist/elements/structure/List/modes/ListControlled/ListControlled.d.ts +3 -1
  58. package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +24 -23
  59. package/dist/elements/structure/ModalContainer/ModalContainer.mjs +16 -16
  60. package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -3
  61. package/dist/elements/structure/ModalContainer/declaration.mjs +2 -3
  62. package/dist/elements/structure/ModalContainer/index.d.ts +2 -3
  63. package/dist/elements/structure/Pagination/Pagination.mjs +10 -10
  64. package/dist/index.d.ts +21 -17
  65. package/package.json +11 -7
@@ -1,8 +1,8 @@
1
- import e from "../../../../../Element/hooks/useElement.mjs";
2
- import { RootElement as t } from "../../../../../Element/RootElement.mjs";
3
- import { rowKeys as n } from "./rowKeys.mjs";
4
- import r from "./ListControlledItem.mjs";
5
- import i from "../../declaration.mjs";
1
+ import e from "../../declaration.mjs";
2
+ import t from "../../../../../Element/hooks/useElement.mjs";
3
+ import { RootElement as n } from "../../../../../Element/RootElement.mjs";
4
+ import { rowKeys as r } from "./rowKeys.mjs";
5
+ import i from "./ListControlledItem.mjs";
6
6
  import { useCallback as a, useMemo as o } from "react";
7
7
  import s from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
8
8
  import { get as c } from "@plitzi/plitzi-ui/helpers";
@@ -13,41 +13,42 @@ import m from "clsx";
13
13
  import h from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
14
14
  import g from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
15
15
  //#region src/elements/structure/List/modes/ListControlled/ListControlled.tsx
16
- var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x = [], itemKey: S }) => {
17
- let { id: C, definition: { label: w } } = e(), T = h(i.sourceType, C), { settings: { previewMode: E } } = s(), D = o(() => Array.isArray(x) ? x : [], [x]), O = o(() => n(D, S), [D, S]), k = a(() => d({
18
- item: c(D, "0", {}),
16
+ var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x = [], itemKey: S, label: C = "" }) => {
17
+ let { id: w, definition: { label: T } } = t(), E = h(e.sourceType, w), { settings: { previewMode: D } } = s(), O = o(() => Array.isArray(x) ? x : [], [x]), k = o(() => r(O, S), [O, S]), A = a(() => d({
18
+ item: c(O, "0", {}),
19
19
  index: 0
20
20
  }).reduce((e, t) => [...e, {
21
21
  path: t,
22
22
  name: t
23
- }], []), [D]), A = o(() => T ? { runtime: { sources: { [T]: { items: D } } } } : u, [T, D]);
23
+ }], []), [O]), j = o(() => E ? { runtime: { sources: { [E]: { items: O } } } } : u, [E, O]);
24
24
  return g({
25
- id: C,
26
- source: T,
27
- name: w || `List - ${C}`,
28
- fields: k
29
- }), /* @__PURE__ */ p(t, {
25
+ id: w,
26
+ source: E,
27
+ name: T || `List - ${w}`,
28
+ fields: A
29
+ }), /* @__PURE__ */ p(n, {
30
30
  ref: _,
31
31
  tag: y,
32
- className: m("plitzi-component__controlled-list", v, { "controlled-list--build-mode": !E }),
32
+ "aria-label": C || void 0,
33
+ className: m("plitzi-component__controlled-list", v, { "controlled-list--build-mode": !D }),
33
34
  children: [/* @__PURE__ */ f(l, {
34
35
  inherit: "live",
35
- name: `List:${C}`,
36
- value: A,
37
- children: D.map((e, t) => !b || Array.isArray(b) && b.length === 0 ? /* @__PURE__ */ f("div", {
36
+ name: `List:${w}`,
37
+ value: j,
38
+ children: O.map((e, t) => !b || Array.isArray(b) && b.length === 0 ? /* @__PURE__ */ f("div", {
38
39
  className: "plitzi-component__controlled-list-item controlled-list--empty",
39
40
  children: /* @__PURE__ */ f("div", {
40
41
  className: "controlled-list-item__counter",
41
42
  children: `List Item - ${t + 1}`
42
43
  })
43
- }, t) : /* @__PURE__ */ f(r, {
44
+ }, t) : /* @__PURE__ */ f(i, {
44
45
  index: t,
45
- isTemplate: t !== 0 && !E,
46
+ isTemplate: t !== 0 && !D,
46
47
  record: e,
47
- source: T,
48
+ source: E,
48
49
  children: b
49
- }, O[t]))
50
- }), !E && D.length === 0 && /* @__PURE__ */ f("div", {
50
+ }, k[t]))
51
+ }), !D && O.length === 0 && /* @__PURE__ */ f("div", {
51
52
  className: "controlled-list controlled-list--empty",
52
53
  children: "This list does not contain any items"
53
54
  })]
@@ -1,9 +1,9 @@
1
- import e from "../../../Element/hocs/withElement.mjs";
2
- import t from "../../../Element/hooks/useElement.mjs";
3
- import { RootElement as n } from "../../../Element/RootElement.mjs";
4
- import r from "../../../dataSource/pathFields.mjs";
5
- import i from "./useModalDialog.mjs";
6
- import a from "./declaration.mjs";
1
+ import e from "./declaration.mjs";
2
+ import t from "../../../Element/hocs/withElement.mjs";
3
+ import n from "../../../Element/hooks/useElement.mjs";
4
+ import { RootElement as r } from "../../../Element/RootElement.mjs";
5
+ import i from "../../../dataSource/pathFields.mjs";
6
+ import a from "./useModalDialog.mjs";
7
7
  import { metadataFromText as o } from "./metadataFromText.mjs";
8
8
  import { use as s, useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
9
9
  import p from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
@@ -14,8 +14,8 @@ import v from "clsx";
14
14
  import y from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
15
15
  import b from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
16
16
  //#region src/elements/structure/ModalContainer/ModalContainer.tsx
17
- var x = ({ ref: e, className: x = "", children: S, title: C = "Modal Header", autoHideAfterClick: w = !0 }) => {
18
- let { id: T, rootId: E, visible: D, definition: { styleSelectors: O, label: k = "Modal" }, elementState: A, setElementState: j } = t(), M = y(a.sourceType, T), { settings: { previewMode: N }, contexts: { InteractionsContext: P } } = p(), { interactionsManager: F } = s(P), [I, L] = f({}), R = d(null), z = `${E}_${T}_title`, B = c((e) => {
17
+ var x = ({ ref: t, className: x = "", children: S, title: C = "Modal Header", autoHideAfterClick: w = !0 }) => {
18
+ let { id: T, rootId: E, visible: D, definition: { styleSelectors: O, label: k = "Modal" }, elementState: A, setElementState: j } = n(), M = y(e.sourceType, T), { settings: { previewMode: N }, contexts: { InteractionsContext: P } } = p(), { interactionsManager: F } = s(P), [I, L] = f({}), R = d(null), z = `${E}_${T}_title`, B = c((e) => {
19
19
  let { metadata: t } = e;
20
20
  L(t && typeof t == "object" ? t : typeof t == "string" ? o(t) : typeof t == "boolean" || typeof t == "number" ? { content: t } : {}), j((e) => ({
21
21
  ...e,
@@ -46,12 +46,12 @@ var x = ({ ref: e, className: x = "", children: S, title: C = "Modal Header", au
46
46
  T
47
47
  ]), U = u(() => ({
48
48
  openModal: {
49
- ...a.callbacks.openModal,
49
+ ...e.callbacks.openModal,
50
50
  title: `Open ${k}`,
51
51
  callback: B
52
52
  },
53
53
  closeModal: {
54
- ...a.callbacks.closeModal,
54
+ ...e.callbacks.closeModal,
55
55
  title: `Close ${k}`,
56
56
  callback: V
57
57
  }
@@ -60,7 +60,7 @@ var x = ({ ref: e, className: x = "", children: S, title: C = "Modal Header", au
60
60
  B,
61
61
  k
62
62
  ]);
63
- i({
63
+ a({
64
64
  panelRef: R,
65
65
  open: !!N && D,
66
66
  onClose: V
@@ -72,7 +72,7 @@ var x = ({ ref: e, className: x = "", children: S, title: C = "Modal Header", au
72
72
  I,
73
73
  A.visibility
74
74
  ]);
75
- let W = c(() => r(I), [I]);
75
+ let W = c(() => i(I), [I]);
76
76
  b({
77
77
  id: T,
78
78
  source: M,
@@ -80,10 +80,10 @@ var x = ({ ref: e, className: x = "", children: S, title: C = "Modal Header", au
80
80
  fields: W
81
81
  });
82
82
  let G = u(() => M ? { runtime: { sources: { [M]: I } } } : h, [M, I]);
83
- return /* @__PURE__ */ _(n, {
84
- ref: e,
83
+ return /* @__PURE__ */ _(r, {
84
+ ref: t,
85
85
  className: v("plitzi-component__modal-container", x),
86
- interactionTriggers: a.triggers,
86
+ interactionTriggers: e.triggers,
87
87
  interactionCallbacks: U,
88
88
  children: [/* @__PURE__ */ g("div", {
89
89
  className: v("modal-container__background", O.backgroundContainer),
@@ -124,6 +124,6 @@ var x = ({ ref: e, className: x = "", children: S, title: C = "Modal Header", au
124
124
  })]
125
125
  })]
126
126
  });
127
- }, S = e(x);
127
+ }, S = t(x);
128
128
  //#endregion
129
129
  export { x as ModalContainer, S as default };
@@ -59,7 +59,7 @@ declare const declaration: {
59
59
  readonly definition: {
60
60
  readonly label: "Modal Container";
61
61
  readonly type: "modalContainer";
62
- readonly description: "A modal overlay container opened and closed through interactions; use for dialogs over the page.";
62
+ readonly description: string;
63
63
  readonly items: readonly [];
64
64
  readonly bindings: {};
65
65
  /**
@@ -121,8 +121,7 @@ declare const declaration: {
121
121
  readonly top: "0";
122
122
  readonly position: "absolute";
123
123
  readonly 'z-index': "210";
124
- readonly 'background-color': "black";
125
- readonly opacity: "0.5";
124
+ readonly 'background-color': "rgb(0 0 0 / 50%)";
126
125
  };
127
126
  };
128
127
  readonly rootContainer: {
@@ -49,7 +49,7 @@ var t = e()({
49
49
  definition: {
50
50
  label: "Modal Container",
51
51
  type: "modalContainer",
52
- description: "A modal overlay container opened and closed through interactions; use for dialogs over the page.",
52
+ description: "A modal overlay container opened and closed through interactions; use for dialogs over the page. The element itself is fixed over the whole viewport, and holds two layers side by side — neither inside the other: `backgroundContainer`, the dim layer, `rgb(0 0 0 / 50%)` (its `background-color` is the whole dim), and `rootContainer`, the dialog, centred by `top: 50%`, `left: 50%` and `transform: translate3d(-50%, -50%, 0)` — to sit it near the top, set `top` and `transform: translateX(-50%)`; flex alignment on the dim layer moves nothing. Inside the dialog, top to bottom: `headerContainer` (with `headerTitle` and `headerCloseButton`) and `bodyContainer`.",
53
53
  items: [],
54
54
  bindings: {},
55
55
  loadStrategy: "lazy",
@@ -101,8 +101,7 @@ var t = e()({
101
101
  top: "0",
102
102
  position: "absolute",
103
103
  "z-index": "210",
104
- "background-color": "black",
105
- opacity: "0.5"
104
+ "background-color": "rgb(0 0 0 / 50%)"
106
105
  } },
107
106
  rootContainer: { default: {
108
107
  display: "flex",
@@ -58,7 +58,7 @@ declare const ModalContainer: {
58
58
  readonly definition: {
59
59
  readonly label: "Modal Container";
60
60
  readonly type: "modalContainer";
61
- readonly description: "A modal overlay container opened and closed through interactions; use for dialogs over the page.";
61
+ readonly description: string;
62
62
  readonly items: readonly [];
63
63
  readonly bindings: {};
64
64
  readonly loadStrategy: "lazy";
@@ -115,8 +115,7 @@ declare const ModalContainer: {
115
115
  readonly top: "0";
116
116
  readonly position: "absolute";
117
117
  readonly 'z-index': "210";
118
- readonly 'background-color': "black";
119
- readonly opacity: "0.5";
118
+ readonly 'background-color': "rgb(0 0 0 / 50%)";
120
119
  };
121
120
  };
122
121
  readonly rootContainer: {
@@ -1,7 +1,7 @@
1
- import e from "../../../Element/hocs/withElement.mjs";
2
- import t from "../../../Element/hooks/useElement.mjs";
3
- import { RootElement as n } from "../../../Element/RootElement.mjs";
4
- import r from "./declaration.mjs";
1
+ import e from "./declaration.mjs";
2
+ import t from "../../../Element/hocs/withElement.mjs";
3
+ import n from "../../../Element/hooks/useElement.mjs";
4
+ import { RootElement as r } from "../../../Element/RootElement.mjs";
5
5
  import i from "./buildPageWindow.mjs";
6
6
  import { use as a, useCallback as o, useMemo as s } from "react";
7
7
  import c from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
@@ -14,8 +14,8 @@ var h = (e, t) => {
14
14
  if (typeof window > "u") return "";
15
15
  let n = new URL(window.location.href);
16
16
  return t <= 1 ? n.searchParams.delete(e) : n.searchParams.set(e, String(t)), `${n.pathname}${n.search}`;
17
- }, g = ({ ref: e, className: g = "", children: _, pageInfo: v = u, mode: y = "pages", pageParam: b = "page", target: x = "url", windowSize: S = 5, previousLabel: C = "Previous", nextLabel: w = "Next", loadMoreLabel: T = "Load more", label: E = "Pagination" }) => {
18
- let { id: D, definition: { styleSelectors: O } } = t(), { settings: { previewMode: k }, contexts: { InteractionsContext: A } } = c(), { interactionsManager: j } = a(A), [M] = l("navigation.navigate"), N = v.page ?? 1, P = v.pageCount ?? 0, F = v.hasPrevPage ?? N > 1, I = v.hasNextPage ?? !1, L = s(() => i(N, P, S), [
17
+ }, g = ({ ref: t, className: g = "", children: _, pageInfo: v = u, mode: y = "pages", pageParam: b = "page", target: x = "url", windowSize: S = 5, previousLabel: C = "Previous", nextLabel: w = "Next", loadMoreLabel: T = "Load more", label: E = "Pagination" }) => {
18
+ let { id: D, definition: { styleSelectors: O } } = n(), { settings: { previewMode: k }, contexts: { InteractionsContext: A } } = c(), { interactionsManager: j } = a(A), [M] = l("navigation.navigate"), N = v.page ?? 1, P = v.pageCount ?? 0, F = v.hasPrevPage ?? N > 1, I = v.hasNextPage ?? !1, L = s(() => i(N, P, S), [
19
19
  N,
20
20
  P,
21
21
  S
@@ -31,12 +31,12 @@ var h = (e, t) => {
31
31
  ]), z = o((e) => (t) => {
32
32
  t.preventDefault(), R(e);
33
33
  }, [R]), B = P === 0 && !I && !F;
34
- return /* @__PURE__ */ p(n, {
35
- ref: e,
34
+ return /* @__PURE__ */ p(r, {
35
+ ref: t,
36
36
  tag: "nav",
37
37
  "aria-label": E || void 0,
38
38
  className: m("plitzi-component__pagination", g),
39
- interactionTriggers: r.triggers,
39
+ interactionTriggers: e.triggers,
40
40
  children: [
41
41
  y === "loadMore" && /* @__PURE__ */ f("button", {
42
42
  type: "button",
@@ -75,6 +75,6 @@ var h = (e, t) => {
75
75
  _
76
76
  ]
77
77
  });
78
- }, _ = e(g);
78
+ }, _ = t(g);
79
79
  //#endregion
80
80
  export { g as Pagination, _ as default };
package/dist/index.d.ts CHANGED
@@ -836,6 +836,7 @@ export declare const defaultElements: {
836
836
  displayName: string;
837
837
  } & {
838
838
  readonly type: "page";
839
+ readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "notFound"];
839
840
  readonly triggers: {
840
841
  readonly onPageLoad: {
841
842
  readonly action: "onPageLoad";
@@ -916,6 +917,7 @@ export declare const defaultElements: {
916
917
  };
917
918
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
918
919
  layout?: string | undefined;
920
+ notFound?: string | undefined;
919
921
  layoutContainer?: string | undefined;
920
922
  seoEnabled?: boolean | undefined;
921
923
  seoPageTitle?: string | undefined;
@@ -1201,8 +1203,7 @@ export declare const defaultElements: {
1201
1203
  readonly top: "0";
1202
1204
  readonly position: "absolute";
1203
1205
  readonly 'z-index': "210";
1204
- readonly 'background-color': "black";
1205
- readonly opacity: "0.5";
1206
+ readonly 'background-color': "rgb(0 0 0 / 50%)";
1206
1207
  };
1207
1208
  };
1208
1209
  readonly rootContainer: {
@@ -1398,7 +1399,7 @@ export declare const defaultElements: {
1398
1399
  readonly definition: {
1399
1400
  readonly label: "Modal Container";
1400
1401
  readonly type: "modalContainer";
1401
- readonly description: "A modal overlay container opened and closed through interactions; use for dialogs over the page.";
1402
+ readonly description: string;
1402
1403
  readonly items: readonly [];
1403
1404
  readonly bindings: {};
1404
1405
  readonly loadStrategy: "lazy";
@@ -1455,8 +1456,7 @@ export declare const defaultElements: {
1455
1456
  readonly top: "0";
1456
1457
  readonly position: "absolute";
1457
1458
  readonly 'z-index': "210";
1458
- readonly 'background-color': "black";
1459
- readonly opacity: "0.5";
1459
+ readonly 'background-color': "rgb(0 0 0 / 50%)";
1460
1460
  };
1461
1461
  };
1462
1462
  readonly rootContainer: {
@@ -1940,8 +1940,8 @@ export declare const defaultElements: {
1940
1940
  items?: unknown[] | undefined;
1941
1941
  speed?: number | undefined;
1942
1942
  loop?: boolean | undefined;
1943
- autoplay?: number | undefined;
1944
1943
  pauseOnHover?: boolean | undefined;
1944
+ autoplay?: number | undefined;
1945
1945
  transition?: import('./elements/structure/Carousel/CarouselContext').CarouselTransition | undefined;
1946
1946
  itemKey?: string | undefined;
1947
1947
  }>;
@@ -2690,6 +2690,7 @@ export declare const defaultElements: {
2690
2690
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
2691
2691
  title?: string | undefined;
2692
2692
  content?: string | number | undefined;
2693
+ decorative?: boolean | undefined;
2693
2694
  }>>;
2694
2695
  themeToggle: {
2695
2696
  (props: import('./Element/hocs/withElement').WithElementProps<import('./elements/basic/ThemeToggle/ThemeToggle').ThemeToggleProps>): import('react').JSX.Element;
@@ -2963,6 +2964,7 @@ export declare const defaultElements: {
2963
2964
  initialItems: readonly ["listItem", "listItem", "listItem"];
2964
2965
  __attributes: Partial<{
2965
2966
  source?: "none" | "controlled" | undefined;
2967
+ label?: string | undefined;
2966
2968
  items?: unknown[] | undefined;
2967
2969
  subType?: "ul" | "ol" | undefined;
2968
2970
  itemKey?: string | undefined;
@@ -3470,7 +3472,7 @@ export declare const defaultElements: {
3470
3472
  readonly autoFocus: false;
3471
3473
  readonly disabled: false;
3472
3474
  readonly options: readonly [];
3473
- readonly required: true;
3475
+ readonly required: false;
3474
3476
  readonly requiredMessage: "";
3475
3477
  readonly minLength: 0;
3476
3478
  readonly minLengthMessage: "";
@@ -4219,6 +4221,7 @@ export declare const defaultElements: {
4219
4221
  readonly pagination: readonly string[];
4220
4222
  };
4221
4223
  readonly sourceType: "apiContainer";
4224
+ readonly serverTemplates: readonly ["notFound"];
4222
4225
  readonly triggers: {
4223
4226
  readonly onApiError: {
4224
4227
  readonly action: "onApiError";
@@ -4380,26 +4383,27 @@ export declare const defaultElements: {
4380
4383
  method?: "get" | "post" | "put" | "delete" | "patch" | undefined;
4381
4384
  resource?: string | undefined;
4382
4385
  headers?: Record<string, string> | undefined;
4386
+ notFound?: string | undefined;
4383
4387
  subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "" | undefined;
4388
+ credentials?: RequestCredentials | undefined;
4389
+ staleTime?: number | string | undefined;
4390
+ gcTime?: number | string | undefined;
4391
+ pageParam?: string | undefined;
4384
4392
  query?: string | undefined;
4385
4393
  accessToken?: string | undefined;
4386
4394
  mockData?: (Record<string, unknown> | string) | undefined;
4387
- credentials?: RequestCredentials | undefined;
4395
+ singleRecord?: boolean | undefined;
4396
+ pagination?: import('./elements/provider/ApiContainer/hooks/useProviderPagination').ProviderPagination | undefined;
4397
+ renderWhileLoading?: boolean | undefined;
4398
+ loadingSlot?: string | undefined;
4399
+ refreshSeconds?: number | string | undefined;
4388
4400
  connector?: string | undefined;
4389
4401
  limit?: string | undefined;
4390
- singleRecord?: boolean | undefined;
4391
4402
  filters?: {
4392
4403
  field: string;
4393
4404
  operator: string;
4394
4405
  value: string;
4395
4406
  }[] | undefined;
4396
- pagination?: import('./elements/provider/ApiContainer/hooks/useProviderPagination').ProviderPagination | undefined;
4397
- pageParam?: string | undefined;
4398
- renderWhileLoading?: boolean | undefined;
4399
- loadingSlot?: string | undefined;
4400
- staleTime?: number | string | undefined;
4401
- gcTime?: number | string | undefined;
4402
- refreshSeconds?: number | string | undefined;
4403
4407
  }>>;
4404
4408
  channel: {
4405
4409
  (props: import('./Element/hocs/withElement').WithElementProps<import('./elements/provider/Channel/Channel').ChannelProps>): import('react').JSX.Element;
@@ -4532,9 +4536,9 @@ export declare const defaultElements: {
4532
4536
  };
4533
4537
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
4534
4538
  subType?: "" | "div" | "section" | "aside" | "main" | undefined;
4535
- topic?: string | undefined;
4536
4539
  grant?: string | undefined;
4537
4540
  presence?: unknown;
4541
+ topic?: string | undefined;
4538
4542
  keep?: number | string | undefined;
4539
4543
  }>>;
4540
4544
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-elements",
3
- "version": "0.38.8",
3
+ "version": "0.38.10",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -798,6 +798,10 @@
798
798
  "types": "./dist/elements/internal/Page/Page.d.ts",
799
799
  "import": "./dist/elements/internal/Page/Page.mjs"
800
800
  },
801
+ "./elements/internal/Page/PageHead": {
802
+ "types": "./dist/elements/internal/Page/PageHead.d.ts",
803
+ "import": "./dist/elements/internal/Page/PageHead.mjs"
804
+ },
801
805
  "./elements/internal/Page/Settings": {
802
806
  "types": "./dist/elements/internal/Page/Settings.d.ts",
803
807
  "import": "./dist/elements/internal/Page/Settings.mjs"
@@ -1371,12 +1375,12 @@
1371
1375
  "@dr.pogodin/react-helmet": "^3.3.2",
1372
1376
  "@plitzi/nexus": "^1.4.0",
1373
1377
  "@plitzi/plitzi-ui": "^1.6.32",
1374
- "@plitzi/sdk-auth": "0.38.8",
1375
- "@plitzi/sdk-event-bridge": "0.38.8",
1376
- "@plitzi/sdk-interactions": "0.38.8",
1377
- "@plitzi/sdk-navigation": "0.38.8",
1378
- "@plitzi/sdk-schema": "0.38.8",
1379
- "@plitzi/sdk-shared": "0.38.8",
1378
+ "@plitzi/sdk-auth": "0.38.10",
1379
+ "@plitzi/sdk-event-bridge": "0.38.10",
1380
+ "@plitzi/sdk-interactions": "0.38.10",
1381
+ "@plitzi/sdk-navigation": "0.38.10",
1382
+ "@plitzi/sdk-schema": "0.38.10",
1383
+ "@plitzi/sdk-shared": "0.38.10",
1380
1384
  "clsx": "^2.1.1",
1381
1385
  "immer": "^11.1.21",
1382
1386
  "react-markdown": "^10.1.0",