@plitzi/sdk-elements 0.38.24 → 0.39.1

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 (244) hide show
  1. package/CHANGELOG.md +170 -1
  2. package/dist/Element/RootElement.d.ts +1 -1
  3. package/dist/Element/RootElement.mjs +62 -61
  4. package/dist/Element/RowAnchor.d.ts +15 -0
  5. package/dist/Element/RowAnchor.mjs +8 -0
  6. package/dist/Element/helpers/elementConstants.mjs +12 -0
  7. package/dist/Element/hocs/withElement.d.ts +1 -1
  8. package/dist/Element/hocs/withElement.mjs +96 -88
  9. package/dist/Element/hooks/useEditableContent.d.ts +11 -0
  10. package/dist/Element/hooks/useEditableContent.mjs +11 -10
  11. package/dist/Element/hooks/useElement.mjs +1 -1
  12. package/dist/Element/hooks/useElementDataSource.mjs +11 -10
  13. package/dist/Element/hooks/useFocusInteractions.d.ts +12 -0
  14. package/dist/Element/hooks/useFocusInteractions.mjs +9 -0
  15. package/dist/Element/hooks/useInternalClassName.mjs +22 -21
  16. package/dist/Element/hooks/useRootElementInteractions.mjs +48 -42
  17. package/dist/Element/hooks/useScrollInteractions.d.ts +1 -1
  18. package/dist/Element/hooks/useScrollInteractions.mjs +61 -30
  19. package/dist/dataSource/PluginSource.d.ts +22 -0
  20. package/dist/dataSource/PluginSource.mjs +27 -0
  21. package/dist/dataSource/index.d.ts +2 -0
  22. package/dist/dataSource/index.mjs +5 -4
  23. package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -1
  24. package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
  25. package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -1
  26. package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
  27. package/dist/elements/advanced/Custom/Custom.d.ts +1 -1
  28. package/dist/elements/advanced/Custom/index.d.ts +1 -1
  29. package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -1
  30. package/dist/elements/advanced/NodeHtml/declaration.d.ts +3 -3
  31. package/dist/elements/advanced/NodeHtml/index.d.ts +4 -4
  32. package/dist/elements/advanced/Reference/Reference.d.ts +2 -2
  33. package/dist/elements/advanced/Reference/Reference.mjs +1 -1
  34. package/dist/elements/advanced/Reference/index.d.ts +1 -1
  35. package/dist/elements/basic/Button/Button.d.ts +7 -2
  36. package/dist/elements/basic/Button/Button.mjs +27 -25
  37. package/dist/elements/basic/Button/Settings.mjs +1 -1
  38. package/dist/elements/basic/Button/declaration.d.ts +8 -1
  39. package/dist/elements/basic/Button/declaration.mjs +3 -0
  40. package/dist/elements/basic/Button/index.d.ts +9 -2
  41. package/dist/elements/basic/Dropdown/Dropdown.d.ts +9 -2
  42. package/dist/elements/basic/Dropdown/Dropdown.mjs +93 -74
  43. package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -1
  44. package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
  45. package/dist/elements/basic/Dropdown/declaration.d.ts +31 -0
  46. package/dist/elements/basic/Dropdown/declaration.mjs +38 -6
  47. package/dist/elements/basic/Dropdown/index.d.ts +33 -2
  48. package/dist/elements/basic/Dropdown/useDropdown.d.ts +2 -0
  49. package/dist/elements/basic/Heading/Heading.d.ts +1 -1
  50. package/dist/elements/basic/Heading/Heading.mjs +3 -2
  51. package/dist/elements/basic/Heading/declaration.d.ts +2 -0
  52. package/dist/elements/basic/Heading/declaration.mjs +2 -0
  53. package/dist/elements/basic/Heading/index.d.ts +3 -1
  54. package/dist/elements/basic/Link/Link.d.ts +1 -1
  55. package/dist/elements/basic/Link/Link.mjs +46 -45
  56. package/dist/elements/basic/Link/declaration.d.ts +1 -0
  57. package/dist/elements/basic/Link/declaration.mjs +5 -0
  58. package/dist/elements/basic/Link/index.d.ts +2 -1
  59. package/dist/elements/basic/Markdown/Markdown.d.ts +1 -1
  60. package/dist/elements/basic/Markdown/declaration.d.ts +2 -0
  61. package/dist/elements/basic/Markdown/declaration.mjs +2 -0
  62. package/dist/elements/basic/Markdown/index.d.ts +3 -1
  63. package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -1
  64. package/dist/elements/basic/Paragraph/Paragraph.mjs +3 -2
  65. package/dist/elements/basic/Paragraph/Settings.mjs +1 -1
  66. package/dist/elements/basic/Paragraph/declaration.d.ts +2 -0
  67. package/dist/elements/basic/Paragraph/declaration.mjs +2 -0
  68. package/dist/elements/basic/Paragraph/index.d.ts +3 -1
  69. package/dist/elements/basic/RichText/RichText.d.ts +1 -1
  70. package/dist/elements/basic/RichText/declaration.d.ts +1 -0
  71. package/dist/elements/basic/RichText/declaration.mjs +1 -0
  72. package/dist/elements/basic/RichText/index.d.ts +2 -1
  73. package/dist/elements/basic/Text/Settings.mjs +1 -1
  74. package/dist/elements/basic/Text/Text.d.ts +1 -1
  75. package/dist/elements/basic/Text/Text.mjs +3 -2
  76. package/dist/elements/basic/Text/declaration.d.ts +2 -0
  77. package/dist/elements/basic/Text/declaration.mjs +2 -0
  78. package/dist/elements/basic/Text/index.d.ts +3 -1
  79. package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +2 -2
  80. package/dist/elements/basic/ThemeToggle/declaration.d.ts +1 -0
  81. package/dist/elements/basic/ThemeToggle/declaration.mjs +5 -0
  82. package/dist/elements/basic/ThemeToggle/index.d.ts +2 -1
  83. package/dist/elements/declarations/index.d.ts +399 -13
  84. package/dist/elements/declarations/index.mjs +48 -44
  85. package/dist/elements/form/Form/Form.d.ts +10 -3
  86. package/dist/elements/form/Form/Form.mjs +102 -79
  87. package/dist/elements/form/Form/declaration.d.ts +21 -3
  88. package/dist/elements/form/Form/declaration.mjs +28 -11
  89. package/dist/elements/form/Form/index.d.ts +17 -2
  90. package/dist/elements/form/FormControl/FormControl.d.ts +14 -10
  91. package/dist/elements/form/FormControl/FormControl.mjs +114 -104
  92. package/dist/elements/form/FormControl/Settings.d.ts +9 -2
  93. package/dist/elements/form/FormControl/Settings.mjs +132 -159
  94. package/dist/elements/form/FormControl/declaration.d.ts +52 -1
  95. package/dist/elements/form/FormControl/declaration.mjs +27 -20
  96. package/dist/elements/form/FormControl/helpers/useBlurValidation.d.ts +12 -0
  97. package/dist/elements/form/FormControl/helpers/useBlurValidation.mjs +20 -0
  98. package/dist/elements/form/FormControl/helpers/validateField.d.ts +8 -0
  99. package/dist/elements/form/FormControl/helpers/validateField.mjs +8 -2
  100. package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +6 -1
  101. package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +52 -41
  102. package/dist/elements/form/FormControl/index.d.ts +53 -2
  103. package/dist/elements/form/FormControl/inputs/Checkbox.mjs +2 -2
  104. package/dist/elements/form/FormControl/inputs/FileInput.d.ts +21 -0
  105. package/dist/elements/form/FormControl/inputs/FileInput.mjs +29 -0
  106. package/dist/elements/form/FormControl/inputs/Input.d.ts +5 -1
  107. package/dist/elements/form/FormControl/inputs/Input.mjs +42 -38
  108. package/dist/elements/form/FormControl/inputs/Select.d.ts +5 -1
  109. package/dist/elements/form/FormControl/inputs/Select.mjs +33 -28
  110. package/dist/elements/form/FormControl/inputs/Textarea.mjs +27 -26
  111. package/dist/elements/form/FormControl/inputs/useFocusWhenShown.d.ts +1 -1
  112. package/dist/elements/form/FormControl/subTypes.d.ts +17 -0
  113. package/dist/elements/form/FormControl/subTypes.mjs +58 -0
  114. package/dist/elements/index.d.ts +5 -1
  115. package/dist/elements/index.mjs +34 -30
  116. package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -1
  117. package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +30 -30
  118. package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
  119. package/dist/elements/internal/LayoutContainer/mask.d.ts +13 -0
  120. package/dist/elements/internal/LayoutContainer/mask.mjs +16 -1
  121. package/dist/elements/internal/Loading/Loading.d.ts +1 -1
  122. package/dist/elements/internal/Loading/index.d.ts +1 -1
  123. package/dist/elements/internal/NotFound/NotFound.d.ts +1 -1
  124. package/dist/elements/internal/NotFound/index.d.ts +1 -1
  125. package/dist/elements/internal/Page/Page.d.ts +17 -3
  126. package/dist/elements/internal/Page/Page.mjs +32 -25
  127. package/dist/elements/internal/Page/PageHead.d.ts +11 -4
  128. package/dist/elements/internal/Page/PageHead.mjs +41 -19
  129. package/dist/elements/internal/Page/PageWithheld.d.ts +3 -2
  130. package/dist/elements/internal/Page/PageWithheld.mjs +41 -18
  131. package/dist/elements/internal/Page/Settings.d.ts +5 -1
  132. package/dist/elements/internal/Page/Settings.mjs +160 -121
  133. package/dist/elements/internal/Page/SharePreview.d.ts +13 -0
  134. package/dist/elements/internal/Page/SharePreview.mjs +53 -0
  135. package/dist/elements/internal/Page/declaration.d.ts +9 -1
  136. package/dist/elements/internal/Page/declaration.mjs +11 -4
  137. package/dist/elements/internal/Page/index.d.ts +9 -2
  138. package/dist/elements/media/Chart/Chart.d.ts +33 -0
  139. package/dist/elements/media/Chart/Chart.mjs +195 -0
  140. package/dist/elements/media/Chart/Settings.d.ts +6 -0
  141. package/dist/elements/media/Chart/Settings.mjs +92 -0
  142. package/dist/elements/media/Chart/chartGeometry.d.ts +37 -0
  143. package/dist/elements/media/Chart/chartGeometry.mjs +47 -0
  144. package/dist/elements/media/Chart/declaration.d.ts +144 -0
  145. package/dist/elements/media/Chart/declaration.mjs +107 -0
  146. package/dist/elements/media/Chart/index.d.ts +145 -0
  147. package/dist/elements/media/Chart/index.mjs +6 -0
  148. package/dist/elements/media/Embed/Embed.d.ts +1 -1
  149. package/dist/elements/media/Embed/Embed.mjs +25 -21
  150. package/dist/elements/media/Embed/declaration.d.ts +1 -0
  151. package/dist/elements/media/Embed/declaration.mjs +1 -0
  152. package/dist/elements/media/Embed/index.d.ts +2 -1
  153. package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -1
  154. package/dist/elements/media/FontAwesome/index.d.ts +1 -1
  155. package/dist/elements/media/Image/Image.d.ts +1 -1
  156. package/dist/elements/media/Image/Image.mjs +35 -34
  157. package/dist/elements/media/Image/declaration.d.ts +2 -1
  158. package/dist/elements/media/Image/declaration.mjs +1 -0
  159. package/dist/elements/media/Image/index.d.ts +3 -2
  160. package/dist/elements/media/Svg/Svg.d.ts +1 -1
  161. package/dist/elements/media/Svg/declaration.d.ts +1 -0
  162. package/dist/elements/media/Svg/declaration.mjs +1 -0
  163. package/dist/elements/media/Svg/index.d.ts +2 -1
  164. package/dist/elements/media/Video/Video.d.ts +1 -1
  165. package/dist/elements/media/Video/declaration.d.ts +1 -0
  166. package/dist/elements/media/Video/declaration.mjs +1 -0
  167. package/dist/elements/media/Video/index.d.ts +2 -1
  168. package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -1
  169. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +215 -185
  170. package/dist/elements/provider/ApiContainer/declaration.d.ts +9 -0
  171. package/dist/elements/provider/ApiContainer/declaration.mjs +10 -1
  172. package/dist/elements/provider/ApiContainer/hooks/useInputRefresh.d.ts +4 -4
  173. package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.d.ts +2 -1
  174. package/dist/elements/provider/ApiContainer/index.d.ts +10 -1
  175. package/dist/elements/provider/Channel/Channel.d.ts +1 -1
  176. package/dist/elements/provider/Channel/declaration.d.ts +9 -0
  177. package/dist/elements/provider/Channel/declaration.mjs +11 -2
  178. package/dist/elements/provider/Channel/index.d.ts +10 -1
  179. package/dist/elements/settings.mjs +44 -40
  180. package/dist/elements/structure/Carousel/Carousel.d.ts +1 -1
  181. package/dist/elements/structure/Carousel/Carousel.mjs +147 -130
  182. package/dist/elements/structure/Carousel/CarouselContext.d.ts +3 -3
  183. package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -1
  184. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.d.ts +6 -2
  185. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.mjs +32 -20
  186. package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +1 -1
  187. package/dist/elements/structure/Carousel/carouselIndex.d.ts +17 -0
  188. package/dist/elements/structure/Carousel/carouselIndex.mjs +17 -5
  189. package/dist/elements/structure/Carousel/declaration.d.ts +49 -2
  190. package/dist/elements/structure/Carousel/declaration.mjs +26 -4
  191. package/dist/elements/structure/Carousel/index.d.ts +51 -4
  192. package/dist/elements/structure/Container/Container.d.ts +5 -3
  193. package/dist/elements/structure/Container/Container.mjs +6 -5
  194. package/dist/elements/structure/Container/Settings.d.ts +4 -2
  195. package/dist/elements/structure/Container/Settings.mjs +19 -5
  196. package/dist/elements/structure/Container/declaration.d.ts +3 -2
  197. package/dist/elements/structure/Container/declaration.mjs +3 -1
  198. package/dist/elements/structure/Container/index.d.ts +4 -3
  199. package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -1
  200. package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -0
  201. package/dist/elements/structure/DialogContainer/declaration.mjs +5 -0
  202. package/dist/elements/structure/DialogContainer/index.d.ts +2 -1
  203. package/dist/elements/structure/FocusGroup/FocusGroup.d.ts +24 -0
  204. package/dist/elements/structure/FocusGroup/FocusGroup.mjs +27 -0
  205. package/dist/elements/structure/FocusGroup/Settings.d.ts +8 -0
  206. package/dist/elements/structure/FocusGroup/Settings.mjs +39 -0
  207. package/dist/elements/structure/FocusGroup/arrowFocus.d.ts +12 -0
  208. package/dist/elements/structure/FocusGroup/arrowFocus.mjs +30 -0
  209. package/dist/elements/structure/FocusGroup/declaration.d.ts +36 -0
  210. package/dist/elements/structure/FocusGroup/declaration.mjs +28 -0
  211. package/dist/elements/structure/FocusGroup/index.d.ts +37 -0
  212. package/dist/elements/structure/FocusGroup/index.mjs +6 -0
  213. package/dist/elements/structure/List/List.d.ts +1 -1
  214. package/dist/elements/structure/List/ListItem/ListItem.d.ts +1 -1
  215. package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
  216. package/dist/elements/structure/List/declaration.d.ts +5 -0
  217. package/dist/elements/structure/List/declaration.mjs +5 -0
  218. package/dist/elements/structure/List/index.d.ts +7 -2
  219. package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +1 -0
  220. package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.d.ts +3 -1
  221. package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +33 -25
  222. package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -1
  223. package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -0
  224. package/dist/elements/structure/ModalContainer/declaration.mjs +2 -0
  225. package/dist/elements/structure/ModalContainer/index.d.ts +3 -1
  226. package/dist/elements/structure/Pagination/Pagination.d.ts +1 -1
  227. package/dist/elements/structure/Pagination/declaration.d.ts +1 -0
  228. package/dist/elements/structure/Pagination/declaration.mjs +5 -0
  229. package/dist/elements/structure/Pagination/index.d.ts +2 -1
  230. package/dist/elements/structure/TabContainer/TabContainer.d.ts +1 -1
  231. package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +1 -1
  232. package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -1
  233. package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -1
  234. package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -1
  235. package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -1
  236. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +6 -0
  237. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +6 -0
  238. package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +7 -1
  239. package/dist/elements/structure/TabContainer/index.d.ts +10 -4
  240. package/dist/index.d.ts +297 -52
  241. package/dist/index.mjs +41 -37
  242. package/package.json +8 -8
  243. package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.d.ts +0 -16
  244. package/dist/elements/provider/ApiContainer/helpers/isEmptyAnswer.mjs +0 -4
@@ -0,0 +1,37 @@
1
+ declare const FocusGroup: {
2
+ (props: import('../../..').WithElementProps<import('./FocusGroup').FocusGroupProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
+ displayName: string;
4
+ } & {
5
+ readonly type: "focusGroup";
6
+ readonly attributeValues: {
7
+ readonly subType: readonly string[];
8
+ };
9
+ readonly content: {
10
+ readonly attributes: {
11
+ readonly subType: "div";
12
+ };
13
+ readonly definition: {
14
+ readonly label: "Focus Group";
15
+ readonly description: string;
16
+ readonly items: [];
17
+ };
18
+ readonly market: {
19
+ readonly category: "structure";
20
+ readonly icon: "fa-solid fa-arrows-up-down";
21
+ };
22
+ readonly defaultStyle: {
23
+ readonly style: {
24
+ readonly base: {
25
+ readonly default: {};
26
+ };
27
+ };
28
+ readonly subTypes: {};
29
+ };
30
+ };
31
+ } & {
32
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
33
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
34
+ label?: string | undefined;
35
+ subType?: "div" | "nav" | "section" | undefined;
36
+ }>>;
37
+ export default FocusGroup;
@@ -0,0 +1,6 @@
1
+ import e from "./declaration.mjs";
2
+ import t from "./FocusGroup.mjs";
3
+ //#region src/elements/structure/FocusGroup/index.ts
4
+ var n = Object.assign(t, e);
5
+ //#endregion
6
+ export { n as default };
@@ -16,7 +16,7 @@ export type ListProps<T = unknown> = {
16
16
  };
17
17
  declare const List: ({ ref, className, subType, children, items, source, itemKey, label }: ListProps) => import('react').JSX.Element;
18
18
  declare const _default: {
19
- (props: import('../../..').WithElementProps<ListProps<unknown>>): import('react').JSX.Element;
19
+ (props: import('../../..').WithElementProps<ListProps<unknown>>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
20
20
  displayName: string;
21
21
  };
22
22
  export default _default;
@@ -6,7 +6,7 @@ export type ListItemProps = {
6
6
  };
7
7
  declare const ListItem: ({ ref, className, children }: ListItemProps) => import('react').JSX.Element;
8
8
  declare const _default: {
9
- (props: import('../../../..').WithElementProps<ListItemProps>): import('react').JSX.Element;
9
+ (props: import('../../../..').WithElementProps<ListItemProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
10
10
  displayName: string;
11
11
  };
12
12
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const ListItem: {
2
- (props: import('../../../..').WithElementProps<import('./ListItem').ListItemProps>): import('react').JSX.Element;
2
+ (props: import('../../../..').WithElementProps<import('./ListItem').ListItemProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "listItem";
@@ -9,6 +9,11 @@ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElemen
9
9
  readonly source: readonly string[];
10
10
  };
11
11
  readonly sourceType: "list";
12
+ readonly publishes: {
13
+ readonly items: "Every row it draws, as its items give them";
14
+ readonly item: "Inside a row: that row's item";
15
+ readonly index: "Inside a row: its place, from 0";
16
+ };
12
17
  readonly content: {
13
18
  readonly attributes: {
14
19
  readonly items: readonly [];
@@ -7,6 +7,11 @@ var n = e()({
7
7
  source: t()(["none", "controlled"])
8
8
  },
9
9
  sourceType: "list",
10
+ publishes: {
11
+ items: "Every row it draws, as its items give them",
12
+ item: "Inside a row: that row's item",
13
+ index: "Inside a row: its place, from 0"
14
+ },
10
15
  content: {
11
16
  attributes: {
12
17
  items: [],
@@ -1,10 +1,10 @@
1
1
  declare const List: {
2
- (props: import('../../..').WithElementProps<import('./List').ListProps<unknown>>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./List').ListProps<unknown>>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  plugins: {
6
6
  listItem: {
7
- (props: import('../../..').WithElementProps<import('./ListItem/ListItem').ListItemProps>): import('react').JSX.Element;
7
+ (props: import('../../..').WithElementProps<import('./ListItem/ListItem').ListItemProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
8
8
  displayName: string;
9
9
  } & {
10
10
  readonly type: "listItem";
@@ -40,6 +40,11 @@ declare const List: {
40
40
  readonly source: readonly string[];
41
41
  };
42
42
  sourceType: "list";
43
+ publishes: {
44
+ readonly items: "Every row it draws, as its items give them";
45
+ readonly item: "Inside a row: that row's item";
46
+ readonly index: "Inside a row: its place, from 0";
47
+ };
43
48
  content: {
44
49
  readonly attributes: {
45
50
  readonly items: readonly [];
@@ -43,6 +43,7 @@ var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x =
43
43
  children: `List Item - ${t + 1}`
44
44
  })
45
45
  }, t) : /* @__PURE__ */ p(o, {
46
+ rowKey: k[t],
46
47
  index: t,
47
48
  isTemplate: t !== 0 && !D,
48
49
  record: e,
@@ -5,8 +5,10 @@ export type ListControlledItemProps<T = unknown> = {
5
5
  isTemplate: boolean;
6
6
  /** The row's own position, from zero — what `index` publishes, and what indexes back into the bound array. */
7
7
  index: number;
8
+ /** What tells this row from the others (`rowKeys`): the name its anchors are drawn with. */
9
+ rowKey?: string | number;
8
10
  record: T;
9
11
  source: string;
10
12
  };
11
- declare const ListControlledItem: ({ children, className, isTemplate, index, record, source }: ListControlledItemProps) => import('react').JSX.Element;
13
+ declare const ListControlledItem: ({ children, className, isTemplate, index, rowKey, record, source }: ListControlledItemProps) => import('react').JSX.Element;
12
14
  export default ListControlledItem;
@@ -1,32 +1,40 @@
1
- import e from "../../../../../Element/ReplicaProvider.mjs";
2
- import t from "../../../../../dataSource/sourceStore.mjs";
3
- import { useId as n, useMemo as r } from "react";
4
- import { StoreProvider as i } from "@plitzi/nexus/react";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import s from "clsx";
1
+ import { RowAnchorContext as e, rowAnchorName as t } from "../../../../../Element/RowAnchor.mjs";
2
+ import n from "../../../../../Element/ReplicaProvider.mjs";
3
+ import r from "../../../../../dataSource/sourceStore.mjs";
4
+ import { use as i, useId as a, useMemo as o } from "react";
5
+ import { StoreProvider as s } from "@plitzi/nexus/react";
6
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import u from "clsx";
7
8
  //#region src/elements/structure/List/modes/ListControlled/ListControlledItem.tsx
8
- var c = ({ children: c, className: l = "", isTemplate: u = !1, index: d = 0, record: f, source: p = "" }) => {
9
- let m = n(), h = r(() => t(p, {
10
- item: f,
11
- index: d
9
+ var d = ({ children: d, className: f = "", isTemplate: p = !1, index: m = 0, rowKey: h, record: g, source: _ = "" }) => {
10
+ let v = i(e), y = o(() => [...v, t(h ?? m)], [
11
+ v,
12
+ h,
13
+ m
14
+ ]), b = a(), x = o(() => r(_, {
15
+ item: g,
16
+ index: m
12
17
  }), [
13
- p,
14
- f,
15
- d
16
- ]), g = /* @__PURE__ */ a(e, { children: /* @__PURE__ */ a(i, {
18
+ _,
19
+ g,
20
+ m
21
+ ]), S = /* @__PURE__ */ c(n, { children: /* @__PURE__ */ c(s, {
17
22
  inherit: "live",
18
- name: `Row:${p}`,
19
- segment: m,
20
- value: h,
21
- children: c
23
+ name: `Row:${_}`,
24
+ segment: b,
25
+ value: x,
26
+ children: /* @__PURE__ */ c(e, {
27
+ value: y,
28
+ children: d
29
+ })
22
30
  }) });
23
- return u ? /* @__PURE__ */ o("div", {
24
- className: s("plitzi-component__controlled-list-item", l),
25
- children: [/* @__PURE__ */ a("div", {
31
+ return p ? /* @__PURE__ */ l("div", {
32
+ className: u("plitzi-component__controlled-list-item", f),
33
+ children: [/* @__PURE__ */ c("div", {
26
34
  className: "controlled-list-item__counter",
27
- children: `List Item - ${d + 1}`
28
- }), g]
29
- }) : g;
35
+ children: `List Item - ${m + 1}`
36
+ }), S]
37
+ }) : S;
30
38
  };
31
39
  //#endregion
32
- export { c as default };
40
+ export { d as default };
@@ -8,7 +8,7 @@ export type ModalContainerProps = {
8
8
  };
9
9
  declare const ModalContainer: ({ ref, className, children, title, autoHideAfterClick }: ModalContainerProps) => import('react').JSX.Element;
10
10
  declare const _default: {
11
- (props: import('../../..').WithElementProps<ModalContainerProps>): import('react').JSX.Element;
11
+ (props: import('../../..').WithElementProps<ModalContainerProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
12
12
  displayName: string;
13
13
  };
14
14
  export default _default;
@@ -4,6 +4,7 @@ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
4
4
  export type ModalContainerAttributes = AuthorableAttributes<ModalContainerProps>;
5
5
  declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "modalContainer";
7
+ readonly contentAttributes: readonly ["title"];
7
8
  readonly sourceType: "modalContainer";
8
9
  readonly triggers: {
9
10
  readonly onModalOpen: {
@@ -52,6 +53,7 @@ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElemen
52
53
  };
53
54
  };
54
55
  readonly content: {
56
+ readonly placeholders: readonly ["title"];
55
57
  readonly attributes: {
56
58
  readonly title: "Modal Header";
57
59
  readonly autoHideAfterClick: true;
@@ -2,6 +2,7 @@ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/ModalContainer/declaration.ts
3
3
  var t = e()({
4
4
  type: "modalContainer",
5
+ contentAttributes: ["title"],
5
6
  sourceType: "modalContainer",
6
7
  triggers: {
7
8
  onModalOpen: {
@@ -42,6 +43,7 @@ var t = e()({
42
43
  }
43
44
  },
44
45
  content: {
46
+ placeholders: ["title"],
45
47
  attributes: {
46
48
  title: "Modal Header",
47
49
  autoHideAfterClick: !0
@@ -1,8 +1,9 @@
1
1
  declare const ModalContainer: {
2
- (props: import('../../..').WithElementProps<import('./ModalContainer').ModalContainerProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./ModalContainer').ModalContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "modalContainer";
6
+ readonly contentAttributes: readonly ["title"];
6
7
  readonly sourceType: "modalContainer";
7
8
  readonly triggers: {
8
9
  readonly onModalOpen: {
@@ -51,6 +52,7 @@ declare const ModalContainer: {
51
52
  };
52
53
  };
53
54
  readonly content: {
55
+ readonly placeholders: readonly ["title"];
54
56
  readonly attributes: {
55
57
  readonly title: "Modal Header";
56
58
  readonly autoHideAfterClick: true;
@@ -39,7 +39,7 @@ export type PaginationProps = {
39
39
  */
40
40
  declare const Pagination: ({ ref, className, children, pageInfo, mode, pageParam, target, windowSize, previousLabel, nextLabel, loadMoreLabel, label }: PaginationProps) => import('react').JSX.Element;
41
41
  declare const _default: {
42
- (props: import('../../..').WithElementProps<PaginationProps>): import('react').JSX.Element;
42
+ (props: import('../../..').WithElementProps<PaginationProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
43
43
  displayName: string;
44
44
  };
45
45
  export default _default;
@@ -4,6 +4,7 @@ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
4
4
  export type PaginationAttributes = AuthorableAttributes<PaginationProps>;
5
5
  declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "pagination";
7
+ readonly contentAttributes: readonly ["previousLabel", "nextLabel", "loadMoreLabel"];
7
8
  readonly attributeValues: {
8
9
  readonly mode: readonly string[];
9
10
  readonly target: readonly string[];
@@ -2,6 +2,11 @@ import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/autho
2
2
  //#region src/elements/structure/Pagination/declaration.ts
3
3
  var n = e()({
4
4
  type: "pagination",
5
+ contentAttributes: [
6
+ "previousLabel",
7
+ "nextLabel",
8
+ "loadMoreLabel"
9
+ ],
5
10
  attributeValues: {
6
11
  mode: t()(["pages", "loadMore"]),
7
12
  target: t()(["url", "interaction"])
@@ -1,8 +1,9 @@
1
1
  declare const Pagination: {
2
- (props: import('../../..').WithElementProps<import('./Pagination').PaginationProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Pagination').PaginationProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "pagination";
6
+ readonly contentAttributes: readonly ["previousLabel", "nextLabel", "loadMoreLabel"];
6
7
  readonly attributeValues: {
7
8
  readonly mode: readonly string[];
8
9
  readonly target: readonly string[];
@@ -6,7 +6,7 @@ export type TabContainerProps = {
6
6
  };
7
7
  declare const TabContainer: ({ ref, className, children }: TabContainerProps) => import('react').JSX.Element;
8
8
  declare const _default: {
9
- (props: import('../../..').WithElementProps<TabContainerProps>): import('react').JSX.Element;
9
+ (props: import('../../..').WithElementProps<TabContainerProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
10
10
  displayName: string;
11
11
  };
12
12
  export default _default;
@@ -6,7 +6,7 @@ export type TabContainerBodyProps = {
6
6
  };
7
7
  declare const TabContainerBody: ({ ref, className, children }: TabContainerBodyProps) => import('react').JSX.Element;
8
8
  declare const _default: {
9
- (props: import('../../../..').WithElementProps<TabContainerBodyProps>): import('react').JSX.Element;
9
+ (props: import('../../../..').WithElementProps<TabContainerBodyProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
10
10
  displayName: string;
11
11
  };
12
12
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const TabContainerBody: {
2
- (props: import('../../../..').WithElementProps<import('./TabContainerBody').TabContainerBodyProps>): import('react').JSX.Element;
2
+ (props: import('../../../..').WithElementProps<import('./TabContainerBody').TabContainerBodyProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "tabContainerBody";
@@ -6,7 +6,7 @@ export type TabContainerHeaderProps = {
6
6
  };
7
7
  declare const TabContainerHeader: ({ ref, className, children }: TabContainerHeaderProps) => import('react').JSX.Element;
8
8
  declare const _default: {
9
- (props: import('../../../..').WithElementProps<TabContainerHeaderProps>): import('react').JSX.Element;
9
+ (props: import('../../../..').WithElementProps<TabContainerHeaderProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
10
10
  displayName: string;
11
11
  };
12
12
  export default _default;
@@ -1,5 +1,5 @@
1
1
  declare const TabContainerHeader: {
2
- (props: import('../../../..').WithElementProps<import('./TabContainerHeader').TabContainerHeaderProps>): import('react').JSX.Element;
2
+ (props: import('../../../..').WithElementProps<import('./TabContainerHeader').TabContainerHeaderProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "tabContainerHeader";
@@ -14,7 +14,7 @@ export type TabContainerItemProps = {
14
14
  };
15
15
  declare const TabContainerItem: ({ className, children, ref, baseId, tabSelected, tabIndex: position, tabCount, isHeader, onSelect }: TabContainerItemProps) => import('react').JSX.Element;
16
16
  declare const _default: {
17
- (props: import('../../../..').WithElementProps<TabContainerItemProps>): import('react').JSX.Element;
17
+ (props: import('../../../..').WithElementProps<TabContainerItemProps>): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
18
18
  displayName: string;
19
19
  };
20
20
  export default _default;
@@ -4,6 +4,12 @@ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
4
4
  export type TabContainerItemAttributes = AuthorableAttributes<TabContainerItemProps, 'baseId' | 'tabSelected' | 'tabIndex' | 'tabCount' | 'isHeader' | 'onSelect'>;
5
5
  declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "tabContainerItem";
7
+ readonly marks: {
8
+ readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
9
+ readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
10
+ readonly '.active': "on the open tab too, the class the component adds";
11
+ readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
12
+ };
7
13
  readonly content: {
8
14
  readonly attributes: {};
9
15
  readonly definition: {
@@ -2,6 +2,12 @@ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/TabContainer/TabContainerItem/declaration.ts
3
3
  var t = e()({
4
4
  type: "tabContainerItem",
5
+ marks: {
6
+ "role=\"tab\"": "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show",
7
+ "aria-selected": "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab",
8
+ ".active": "on the open tab too, the class the component adds",
9
+ tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them"
10
+ },
5
11
  content: {
6
12
  attributes: {},
7
13
  definition: {
@@ -1,8 +1,14 @@
1
1
  declare const TabContainerItem: {
2
- (props: import('../../../..').WithElementProps<import('./TabContainerItem').TabContainerItemProps>): import('react').JSX.Element;
2
+ (props: import('../../../..').WithElementProps<import('./TabContainerItem').TabContainerItemProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "tabContainerItem";
6
+ readonly marks: {
7
+ readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
8
+ readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
9
+ readonly '.active': "on the open tab too, the class the component adds";
10
+ readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
11
+ };
6
12
  readonly content: {
7
13
  readonly attributes: {};
8
14
  readonly definition: {
@@ -1,10 +1,10 @@
1
1
  declare const TabContainer: {
2
- (props: import('../../..').WithElementProps<import('./TabContainer').TabContainerProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./TabContainer').TabContainerProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
3
3
  displayName: string;
4
4
  } & {
5
5
  plugins: {
6
6
  tabContainerHeader: {
7
- (props: import('../../..').WithElementProps<import('./TabContainerHeader/TabContainerHeader').TabContainerHeaderProps>): import('react').JSX.Element;
7
+ (props: import('../../..').WithElementProps<import('./TabContainerHeader/TabContainerHeader').TabContainerHeaderProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
8
8
  displayName: string;
9
9
  } & {
10
10
  readonly type: "tabContainerHeader";
@@ -41,7 +41,7 @@ declare const TabContainer: {
41
41
  content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
42
42
  } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
43
43
  tabContainerBody: {
44
- (props: import('../../..').WithElementProps<import('./TabContainerBody/TabContainerBody').TabContainerBodyProps>): import('react').JSX.Element;
44
+ (props: import('../../..').WithElementProps<import('./TabContainerBody/TabContainerBody').TabContainerBodyProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
45
45
  displayName: string;
46
46
  } & {
47
47
  readonly type: "tabContainerBody";
@@ -78,10 +78,16 @@ declare const TabContainer: {
78
78
  content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
79
79
  } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
80
80
  tabContainerItem: {
81
- (props: import('../../..').WithElementProps<import('./TabContainerItem/TabContainerItem').TabContainerItemProps>): import('react').JSX.Element;
81
+ (props: import('../../..').WithElementProps<import('./TabContainerItem/TabContainerItem').TabContainerItemProps>): string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import('react').JSX.Element | null | undefined;
82
82
  displayName: string;
83
83
  } & {
84
84
  readonly type: "tabContainerItem";
85
+ readonly marks: {
86
+ readonly 'role="tab"': "in the header, with `aria-controls` its panel; in the body it is `role=\"tabpanel\"`, `hidden` while not on show";
87
+ readonly 'aria-selected': "on the open tab — what a class’s `current` state lights (`states: { current: { … } }`); `active` is the press, never the open tab";
88
+ readonly '.active': "on the open tab too, the class the component adds";
89
+ readonly tabindex: "roving: 0 on the open tab, -1 on the rest — the arrow keys move between them";
90
+ };
85
91
  readonly content: {
86
92
  readonly attributes: {};
87
93
  readonly definition: {