@plitzi/sdk-elements 0.38.16 → 0.38.17

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 (256) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/Component/ComponentProvider.mjs +3 -3
  3. package/dist/Element/ElementContext.mjs +1 -1
  4. package/dist/Element/ElementParentContext.mjs +1 -1
  5. package/dist/Element/JsxManager.mjs +2 -2
  6. package/dist/Element/LayoutBody.mjs +1 -1
  7. package/dist/Element/PluginManager.mjs +2 -2
  8. package/dist/Element/PluginRemote.mjs +4 -4
  9. package/dist/Element/ReplicaProvider.mjs +1 -1
  10. package/dist/Element/RootElement.mjs +4 -4
  11. package/dist/Element/helpers/declaredAttributes.mjs +1 -1
  12. package/dist/Element/helpers/getInteractions.mjs +4 -5
  13. package/dist/Element/hocs/withElement.mjs +2 -2
  14. package/dist/Element/hooks/useEditableContent.mjs +2 -2
  15. package/dist/Element/hooks/useElementDataSource.mjs +1 -1
  16. package/dist/Element/hooks/useElementInternal.mjs +2 -2
  17. package/dist/Element/hooks/useElementVisible.mjs +1 -1
  18. package/dist/Element/hooks/useInternalClassName.mjs +1 -1
  19. package/dist/Element/hooks/useInternalItems.mjs +2 -2
  20. package/dist/Element/hooks/useIntervalTriggers.mjs +1 -1
  21. package/dist/Element/hooks/useKeyTriggers.mjs +1 -1
  22. package/dist/Element/hooks/useLayoutChain.d.ts +1 -1
  23. package/dist/Element/hooks/useLayoutChain.mjs +4 -4
  24. package/dist/Element/hooks/usePluginTrigger.mjs +2 -2
  25. package/dist/Element/hooks/useRootElementInteractions.mjs +26 -27
  26. package/dist/Element/hooks/useRscData.d.ts +1 -1
  27. package/dist/Element/hooks/useRscData.mjs +1 -2
  28. package/dist/Element/hooks/useScrollInteractions.mjs +20 -21
  29. package/dist/builder/index.d.ts +5 -0
  30. package/dist/builder/index.mjs +1 -0
  31. package/dist/canvas/useAnimationFrame.mjs +1 -1
  32. package/dist/components/ElementAdvancedEditor.mjs +30 -30
  33. package/dist/components/IconField/index.mjs +1 -2
  34. package/dist/components/IconPicker/index.mjs +1 -2
  35. package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.mjs +13 -13
  36. package/dist/dataSource/GlobalSources.mjs +44 -45
  37. package/dist/dataSource/getSourcesByElementId.mjs +1 -1
  38. package/dist/dataSource/index.d.ts +3 -0
  39. package/dist/dataSource/index.mjs +6 -3
  40. package/dist/dataSource/pathFields.mjs +1 -1
  41. package/dist/dataSource/sourceStore.mjs +1 -1
  42. package/dist/dataSource/useRegisterSource.d.ts +9 -0
  43. package/dist/dataSource/useRegisterSource.mjs +40 -0
  44. package/dist/dataSource/useResolvedVariables.d.ts +12 -0
  45. package/dist/dataSource/useResolvedVariables.mjs +27 -0
  46. package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -1
  47. package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +1 -1
  48. package/dist/elements/advanced/BlockHtml/declaration.d.ts +2 -2
  49. package/dist/elements/advanced/BlockHtml/declaration.mjs +1 -1
  50. package/dist/elements/advanced/BlockHtml/index.d.ts +3 -3
  51. package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -1
  52. package/dist/elements/advanced/BlockJsx/Settings.mjs +25 -29
  53. package/dist/elements/advanced/BlockJsx/declaration.d.ts +2 -2
  54. package/dist/elements/advanced/BlockJsx/declaration.mjs +1 -1
  55. package/dist/elements/advanced/BlockJsx/index.d.ts +3 -3
  56. package/dist/elements/advanced/Custom/Custom.d.ts +1 -1
  57. package/dist/elements/advanced/Custom/Custom.mjs +2 -2
  58. package/dist/elements/advanced/Custom/Settings.mjs +3 -6
  59. package/dist/elements/advanced/Custom/declaration.d.ts +2 -2
  60. package/dist/elements/advanced/Custom/declaration.mjs +1 -1
  61. package/dist/elements/advanced/Custom/index.d.ts +3 -3
  62. package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -1
  63. package/dist/elements/advanced/NodeHtml/declaration.d.ts +2 -2
  64. package/dist/elements/advanced/NodeHtml/declaration.mjs +1 -1
  65. package/dist/elements/advanced/NodeHtml/index.d.ts +3 -3
  66. package/dist/elements/advanced/PlitziSdk/declaration.d.ts +1 -1
  67. package/dist/elements/advanced/PlitziSdk/declaration.mjs +1 -1
  68. package/dist/elements/advanced/Reference/Reference.d.ts +1 -1
  69. package/dist/elements/advanced/Reference/Reference.mjs +3 -3
  70. package/dist/elements/advanced/Reference/declaration.d.ts +2 -2
  71. package/dist/elements/advanced/Reference/declaration.mjs +1 -1
  72. package/dist/elements/advanced/Reference/index.d.ts +3 -3
  73. package/dist/elements/basic/Button/Button.d.ts +1 -1
  74. package/dist/elements/basic/Button/Button.mjs +1 -1
  75. package/dist/elements/basic/Button/declaration.d.ts +3 -3
  76. package/dist/elements/basic/Button/declaration.mjs +1 -1
  77. package/dist/elements/basic/Button/index.d.ts +4 -4
  78. package/dist/elements/basic/Dropdown/Dropdown.d.ts +1 -1
  79. package/dist/elements/basic/Dropdown/Dropdown.mjs +12 -12
  80. package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -1
  81. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +2 -2
  82. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -1
  83. package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +3 -3
  84. package/dist/elements/basic/Dropdown/declaration.d.ts +2 -2
  85. package/dist/elements/basic/Dropdown/declaration.mjs +1 -1
  86. package/dist/elements/basic/Dropdown/index.d.ts +5 -5
  87. package/dist/elements/basic/Dropdown/useDropdown.mjs +1 -5
  88. package/dist/elements/basic/Dropdown/useDropdownTrigger.mjs +1 -7
  89. package/dist/elements/basic/Heading/Heading.d.ts +1 -1
  90. package/dist/elements/basic/Heading/declaration.d.ts +2 -2
  91. package/dist/elements/basic/Heading/declaration.mjs +1 -1
  92. package/dist/elements/basic/Heading/index.d.ts +3 -3
  93. package/dist/elements/basic/Link/Link.d.ts +1 -1
  94. package/dist/elements/basic/Link/Link.mjs +2 -2
  95. package/dist/elements/basic/Link/Settings.mjs +2 -2
  96. package/dist/elements/basic/Link/declaration.d.ts +3 -3
  97. package/dist/elements/basic/Link/declaration.mjs +1 -1
  98. package/dist/elements/basic/Link/index.d.ts +4 -4
  99. package/dist/elements/basic/Markdown/Markdown.d.ts +1 -1
  100. package/dist/elements/basic/Markdown/Markdown.mjs +8 -8
  101. package/dist/elements/basic/Markdown/declaration.d.ts +2 -2
  102. package/dist/elements/basic/Markdown/declaration.mjs +1 -1
  103. package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.mjs +1 -1
  104. package/dist/elements/basic/Markdown/index.d.ts +3 -3
  105. package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -1
  106. package/dist/elements/basic/Paragraph/declaration.d.ts +2 -2
  107. package/dist/elements/basic/Paragraph/declaration.mjs +1 -1
  108. package/dist/elements/basic/Paragraph/index.d.ts +3 -3
  109. package/dist/elements/basic/RichText/RichText.d.ts +1 -1
  110. package/dist/elements/basic/RichText/RichText.mjs +14 -14
  111. package/dist/elements/basic/RichText/declaration.d.ts +2 -2
  112. package/dist/elements/basic/RichText/declaration.mjs +1 -1
  113. package/dist/elements/basic/RichText/index.d.ts +3 -3
  114. package/dist/elements/basic/Text/Text.d.ts +1 -1
  115. package/dist/elements/basic/Text/declaration.d.ts +2 -2
  116. package/dist/elements/basic/Text/declaration.mjs +1 -1
  117. package/dist/elements/basic/Text/index.d.ts +3 -3
  118. package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +1 -1
  119. package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +3 -3
  120. package/dist/elements/basic/ThemeToggle/declaration.d.ts +2 -2
  121. package/dist/elements/basic/ThemeToggle/declaration.mjs +1 -1
  122. package/dist/elements/basic/ThemeToggle/index.d.ts +3 -3
  123. package/dist/elements/declarations/index.d.ts +66 -52
  124. package/dist/elements/declarations/index.mjs +45 -42
  125. package/dist/elements/form/Form/Form.d.ts +1 -1
  126. package/dist/elements/form/Form/Form.mjs +37 -37
  127. package/dist/elements/form/Form/declaration.d.ts +2 -2
  128. package/dist/elements/form/Form/declaration.mjs +1 -1
  129. package/dist/elements/form/Form/index.d.ts +1 -1
  130. package/dist/elements/form/FormControl/FormControl.d.ts +1 -1
  131. package/dist/elements/form/FormControl/FormControl.mjs +2 -2
  132. package/dist/elements/form/FormControl/Settings.mjs +1 -5
  133. package/dist/elements/form/FormControl/declaration.d.ts +2 -2
  134. package/dist/elements/form/FormControl/declaration.mjs +1 -1
  135. package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +12 -16
  136. package/dist/elements/form/FormControl/index.d.ts +1 -1
  137. package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -1
  138. package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +1 -1
  139. package/dist/elements/internal/LayoutContainer/declaration.d.ts +2 -2
  140. package/dist/elements/internal/LayoutContainer/declaration.mjs +1 -1
  141. package/dist/elements/internal/LayoutContainer/index.d.ts +3 -3
  142. package/dist/elements/internal/LayoutPicker/LayoutPicker.mjs +7 -7
  143. package/dist/elements/internal/Loading/Loading.d.ts +1 -1
  144. package/dist/elements/internal/Loading/declaration.d.ts +2 -2
  145. package/dist/elements/internal/Loading/declaration.mjs +1 -1
  146. package/dist/elements/internal/Loading/index.d.ts +3 -3
  147. package/dist/elements/internal/NotFound/NotFound.d.ts +1 -1
  148. package/dist/elements/internal/NotFound/NotFound.mjs +1 -1
  149. package/dist/elements/internal/NotFound/declaration.d.ts +2 -2
  150. package/dist/elements/internal/NotFound/declaration.mjs +1 -1
  151. package/dist/elements/internal/NotFound/index.d.ts +3 -3
  152. package/dist/elements/internal/Page/Page.d.ts +1 -1
  153. package/dist/elements/internal/Page/Page.mjs +2 -2
  154. package/dist/elements/internal/Page/PageHead.mjs +7 -7
  155. package/dist/elements/internal/Page/Settings.mjs +1 -1
  156. package/dist/elements/internal/Page/declaration.d.ts +2 -2
  157. package/dist/elements/internal/Page/declaration.mjs +1 -1
  158. package/dist/elements/internal/Page/index.d.ts +3 -3
  159. package/dist/elements/media/Embed/Embed.d.ts +1 -1
  160. package/dist/elements/media/Embed/Embed.mjs +1 -1
  161. package/dist/elements/media/Embed/declaration.d.ts +2 -2
  162. package/dist/elements/media/Embed/declaration.mjs +1 -1
  163. package/dist/elements/media/Embed/index.d.ts +3 -3
  164. package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -1
  165. package/dist/elements/media/FontAwesome/declaration.d.ts +2 -2
  166. package/dist/elements/media/FontAwesome/declaration.mjs +1 -1
  167. package/dist/elements/media/FontAwesome/index.d.ts +3 -3
  168. package/dist/elements/media/Image/Image.d.ts +1 -1
  169. package/dist/elements/media/Image/Image.mjs +12 -12
  170. package/dist/elements/media/Image/declaration.d.ts +2 -2
  171. package/dist/elements/media/Image/declaration.mjs +1 -1
  172. package/dist/elements/media/Image/index.d.ts +3 -3
  173. package/dist/elements/media/Svg/Svg.d.ts +1 -1
  174. package/dist/elements/media/Svg/Svg.mjs +11 -11
  175. package/dist/elements/media/Svg/declaration.d.ts +2 -2
  176. package/dist/elements/media/Svg/declaration.mjs +1 -1
  177. package/dist/elements/media/Svg/index.d.ts +3 -3
  178. package/dist/elements/media/Video/Video.d.ts +1 -1
  179. package/dist/elements/media/Video/Video.mjs +1 -1
  180. package/dist/elements/media/Video/declaration.d.ts +2 -2
  181. package/dist/elements/media/Video/declaration.mjs +1 -1
  182. package/dist/elements/media/Video/index.d.ts +3 -3
  183. package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -1
  184. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +40 -48
  185. package/dist/elements/provider/ApiContainer/Settings.mjs +6 -10
  186. package/dist/elements/provider/ApiContainer/declaration.d.ts +2 -2
  187. package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
  188. package/dist/elements/provider/ApiContainer/helpers/serverMock.mjs +1 -1
  189. package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +5 -5
  190. package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.mjs +3 -12
  191. package/dist/elements/provider/ApiContainer/index.d.ts +3 -3
  192. package/dist/elements/provider/Channel/Channel.d.ts +1 -1
  193. package/dist/elements/provider/Channel/Channel.mjs +24 -24
  194. package/dist/elements/provider/Channel/declaration.d.ts +2 -2
  195. package/dist/elements/provider/Channel/declaration.mjs +1 -1
  196. package/dist/elements/provider/Channel/index.d.ts +3 -3
  197. package/dist/elements/settings.mjs +84 -85
  198. package/dist/elements/structure/Carousel/Carousel.d.ts +1 -1
  199. package/dist/elements/structure/Carousel/Carousel.mjs +27 -39
  200. package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -1
  201. package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/index.mjs +1 -2
  202. package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/index.mjs +1 -2
  203. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/index.mjs +1 -2
  204. package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +2 -2
  205. package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +1 -1
  206. package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +3 -3
  207. package/dist/elements/structure/Carousel/declaration.d.ts +2 -2
  208. package/dist/elements/structure/Carousel/declaration.mjs +1 -1
  209. package/dist/elements/structure/Carousel/index.d.ts +5 -5
  210. package/dist/elements/structure/Container/Container.d.ts +1 -1
  211. package/dist/elements/structure/Container/declaration.d.ts +2 -2
  212. package/dist/elements/structure/Container/declaration.mjs +1 -1
  213. package/dist/elements/structure/Container/index.d.ts +3 -3
  214. package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -1
  215. package/dist/elements/structure/DialogContainer/declaration.d.ts +2 -2
  216. package/dist/elements/structure/DialogContainer/declaration.mjs +1 -1
  217. package/dist/elements/structure/DialogContainer/index.d.ts +3 -3
  218. package/dist/elements/structure/List/List.d.ts +1 -1
  219. package/dist/elements/structure/List/ListItem/ListItem.d.ts +1 -1
  220. package/dist/elements/structure/List/ListItem/declaration.d.ts +2 -2
  221. package/dist/elements/structure/List/ListItem/declaration.mjs +1 -1
  222. package/dist/elements/structure/List/ListItem/index.d.ts +3 -3
  223. package/dist/elements/structure/List/declaration.d.ts +2 -2
  224. package/dist/elements/structure/List/declaration.mjs +1 -1
  225. package/dist/elements/structure/List/index.d.ts +5 -5
  226. package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +23 -23
  227. package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -1
  228. package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -2
  229. package/dist/elements/structure/ModalContainer/declaration.mjs +1 -1
  230. package/dist/elements/structure/ModalContainer/index.d.ts +3 -3
  231. package/dist/elements/structure/Overlay/metadataOf.mjs +1 -1
  232. package/dist/elements/structure/Overlay/useOverlay.mjs +19 -19
  233. package/dist/elements/structure/Pagination/Pagination.d.ts +1 -1
  234. package/dist/elements/structure/Pagination/Pagination.mjs +3 -3
  235. package/dist/elements/structure/Pagination/declaration.d.ts +2 -2
  236. package/dist/elements/structure/Pagination/declaration.mjs +1 -1
  237. package/dist/elements/structure/Pagination/index.d.ts +3 -3
  238. package/dist/elements/structure/TabContainer/TabContainer.d.ts +1 -1
  239. package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +1 -1
  240. package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +2 -2
  241. package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +1 -1
  242. package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +3 -3
  243. package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -1
  244. package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +2 -2
  245. package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +1 -1
  246. package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +3 -3
  247. package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -1
  248. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +2 -2
  249. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
  250. package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +3 -3
  251. package/dist/elements/structure/TabContainer/declaration.d.ts +2 -2
  252. package/dist/elements/structure/TabContainer/declaration.mjs +1 -1
  253. package/dist/elements/structure/TabContainer/index.d.ts +11 -11
  254. package/dist/index.d.ts +133 -121
  255. package/dist/index.mjs +85 -76
  256. package/package.json +18 -1408
@@ -8,7 +8,7 @@ export type CarouselTrackProps = {
8
8
  /** Where a carousel's slides are, inside it beside its controls: one at a time, a row, or a marquee. */
9
9
  declare const CarouselTrack: ({ ref, className, children }: CarouselTrackProps) => import('react').JSX.Element;
10
10
  declare const _default: {
11
- (props: import('../../../../Element/hocs/withElement').WithElementProps<CarouselTrackProps>): import('react').JSX.Element;
11
+ (props: import('../../../..').WithElementProps<CarouselTrackProps>): import('react').JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  export default _default;
@@ -1,2 +1 @@
1
- import e from "./CarouselSlide.mjs";
2
- export { e as default };
1
+ export { default } from "./CarouselSlide.mjs";
@@ -1,2 +1 @@
1
- import e from "./MarqueeTrack.mjs";
2
- export { e as default };
1
+ export { default } from "./MarqueeTrack.mjs";
@@ -1,2 +1 @@
1
- import e from "./ScrollTrack.mjs";
2
- export { e as default };
1
+ export { default } from "./ScrollTrack.mjs";
@@ -1,8 +1,8 @@
1
1
  import { CarouselTrackProps } from './CarouselTrack';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type CarouselTrackAttributes = AuthorableAttributes<CarouselTrackProps>;
5
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
5
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "carouselTrack";
7
7
  readonly ancestorType: "carousel";
8
8
  readonly content: {
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
1
+ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/Carousel/CarouselTrack/declaration.ts
3
3
  var t = e()({
4
4
  type: "carouselTrack",
@@ -1,5 +1,5 @@
1
1
  declare const CarouselTrack: {
2
- (props: import('../../../../Element/hocs/withElement').WithElementProps<import('./CarouselTrack').CarouselTrackProps>): import('react').JSX.Element;
2
+ (props: import('../../../..').WithElementProps<import('./CarouselTrack').CarouselTrackProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "carouselTrack";
@@ -30,6 +30,6 @@ declare const CarouselTrack: {
30
30
  };
31
31
  };
32
32
  } & {
33
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
34
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
33
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
34
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
35
35
  export default CarouselTrack;
@@ -1,8 +1,8 @@
1
1
  import { CarouselProps } from './Carousel';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type CarouselAttributes = AuthorableAttributes<CarouselProps>;
5
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
5
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "carousel";
7
7
  readonly sourceType: "carousel";
8
8
  readonly triggers: {
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
1
+ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/Carousel/declaration.ts
3
3
  var t = e()({
4
4
  type: "carousel",
@@ -1,10 +1,10 @@
1
1
  declare const Carousel: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Carousel').CarouselProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Carousel').CarouselProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  plugins: {
6
6
  carouselTrack: {
7
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./CarouselTrack/CarouselTrack').CarouselTrackProps>): import('react').JSX.Element;
7
+ (props: import('../../..').WithElementProps<import('./CarouselTrack/CarouselTrack').CarouselTrackProps>): import('react').JSX.Element;
8
8
  displayName: string;
9
9
  } & {
10
10
  readonly type: "carouselTrack";
@@ -35,8 +35,8 @@ declare const Carousel: {
35
35
  };
36
36
  };
37
37
  } & {
38
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
39
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
38
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
39
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
40
40
  };
41
41
  type: "carousel";
42
42
  sourceType: "carousel";
@@ -125,7 +125,7 @@ declare const Carousel: {
125
125
  };
126
126
  };
127
127
  };
128
- } & import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
128
+ } & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
129
129
  initialItems: readonly ["carouselTrack"];
130
130
  __attributes: Partial<{
131
131
  mode?: import('./CarouselContext').CarouselMode | undefined;
@@ -32,7 +32,7 @@ export type ContainerProps = {
32
32
  };
33
33
  declare const Container: ({ ref, className, subType, label, decorative, live, title, children }: ContainerProps) => import('react').JSX.Element;
34
34
  declare const _default: {
35
- (props: import('../../../Element/hocs/withElement').WithElementProps<ContainerProps>): import('react').JSX.Element;
35
+ (props: import('../../..').WithElementProps<ContainerProps>): import('react').JSX.Element;
36
36
  displayName: string;
37
37
  };
38
38
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ContainerProps } from './Container';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type ContainerAttributes = AuthorableAttributes<ContainerProps>;
5
5
  /**
@@ -8,7 +8,7 @@ export type ContainerAttributes = AuthorableAttributes<ContainerProps>;
8
8
  * hold (a heading, a list item) or refuse one outright, so a label on them would be read by nobody.
9
9
  */
10
10
  export declare const NAMEABLE_CONTAINER_TAGS: readonly NonNullable<ContainerProps['subType']>[];
11
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
11
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
12
12
  readonly type: "container";
13
13
  readonly attributeValues: {
14
14
  readonly subType: readonly string[];
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring/declare";
1
+ import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/Container/declaration.ts
3
3
  var n = [
4
4
  "div",
@@ -1,5 +1,5 @@
1
1
  declare const Container: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Container').ContainerProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Container').ContainerProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "container";
@@ -30,8 +30,8 @@ declare const Container: {
30
30
  };
31
31
  };
32
32
  } & {
33
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
34
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
33
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
34
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
35
35
  label?: string | undefined;
36
36
  title?: string | undefined;
37
37
  subType?: "div" | "header" | "footer" | "nav" | "main" | "section" | "article" | "aside" | "address" | "figure" | "dl" | "dt" | "dd" | "li" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
@@ -11,7 +11,7 @@ export type DialogContainerProps = {
11
11
  };
12
12
  declare const DialogContainer: ({ ref, className, children, headerLabel, acceptButtonLabel, acceptButtonLabelLoading, rejectButtonLabel, autoHideAfterClick }: DialogContainerProps) => import('react').JSX.Element;
13
13
  declare const _default: {
14
- (props: import('../../../Element/hocs/withElement').WithElementProps<DialogContainerProps>): import('react').JSX.Element;
14
+ (props: import('../../..').WithElementProps<DialogContainerProps>): import('react').JSX.Element;
15
15
  displayName: string;
16
16
  };
17
17
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { DialogContainerProps } from './DialogContainer';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type DialogContainerAttributes = AuthorableAttributes<DialogContainerProps>;
5
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
5
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "dialogContainer";
7
7
  readonly sourceType: "dialogContainer";
8
8
  readonly triggers: {
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
1
+ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/DialogContainer/declaration.ts
3
3
  var t = { default: {
4
4
  height: "28px",
@@ -1,5 +1,5 @@
1
1
  declare const DialogContainer: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./DialogContainer').DialogContainerProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./DialogContainer').DialogContainerProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "dialogContainer";
@@ -262,8 +262,8 @@ declare const DialogContainer: {
262
262
  };
263
263
  readonly initialItems: readonly ["container"];
264
264
  } & {
265
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
266
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
265
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
266
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
267
267
  autoHideAfterClick?: boolean | undefined;
268
268
  headerLabel?: string | undefined;
269
269
  acceptButtonLabel?: string | undefined;
@@ -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('../../../Element/hocs/withElement').WithElementProps<ListProps<unknown>>): import('react').JSX.Element;
19
+ (props: import('../../..').WithElementProps<ListProps<unknown>>): import('react').JSX.Element;
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('../../../../Element/hocs/withElement').WithElementProps<ListItemProps>): import('react').JSX.Element;
9
+ (props: import('../../../..').WithElementProps<ListItemProps>): import('react').JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { ListItemProps } from './ListItem';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type ListItemAttributes = AuthorableAttributes<ListItemProps>;
5
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
5
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "listItem";
7
7
  readonly content: {
8
8
  readonly attributes: {};
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
1
+ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/List/ListItem/declaration.ts
3
3
  var t = e()({
4
4
  type: "listItem",
@@ -1,5 +1,5 @@
1
1
  declare const ListItem: {
2
- (props: import('../../../../Element/hocs/withElement').WithElementProps<import('./ListItem').ListItemProps>): import('react').JSX.Element;
2
+ (props: import('../../../..').WithElementProps<import('./ListItem').ListItemProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "listItem";
@@ -26,6 +26,6 @@ declare const ListItem: {
26
26
  };
27
27
  };
28
28
  } & {
29
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
30
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
29
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
30
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
31
31
  export default ListItem;
@@ -1,8 +1,8 @@
1
1
  import { ListProps } from './List';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type ListAttributes = AuthorableAttributes<ListProps>;
5
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
5
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "list";
7
7
  readonly attributeValues: {
8
8
  readonly subType: readonly string[];
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring/declare";
1
+ import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/List/declaration.ts
3
3
  var n = e()({
4
4
  type: "list",
@@ -1,10 +1,10 @@
1
1
  declare const List: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./List').ListProps<unknown>>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./List').ListProps<unknown>>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  plugins: {
6
6
  listItem: {
7
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./ListItem/ListItem').ListItemProps>): import('react').JSX.Element;
7
+ (props: import('../../..').WithElementProps<import('./ListItem/ListItem').ListItemProps>): import('react').JSX.Element;
8
8
  displayName: string;
9
9
  } & {
10
10
  readonly type: "listItem";
@@ -31,8 +31,8 @@ declare const List: {
31
31
  };
32
32
  };
33
33
  } & {
34
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
35
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
34
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
35
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
36
36
  };
37
37
  type: "list";
38
38
  attributeValues: {
@@ -94,7 +94,7 @@ declare const List: {
94
94
  };
95
95
  };
96
96
  };
97
- } & import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
97
+ } & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
98
98
  initialItems: readonly ["listItem", "listItem", "listItem"];
99
99
  __attributes: Partial<{
100
100
  source?: "none" | "controlled" | undefined;
@@ -1,55 +1,55 @@
1
1
  import e from "../../declaration.mjs";
2
2
  import t from "../../../../../Element/hooks/useElement.mjs";
3
3
  import { RootElement as n } from "../../../../../Element/RootElement.mjs";
4
- import r from "../../../../../dataSource/sourceStore.mjs";
5
- import { rowKeys as i } from "./rowKeys.mjs";
6
- import a from "./ListControlledItem.mjs";
7
- import { useCallback as o, useMemo as s } from "react";
8
- import c from "@plitzi/sdk-shared/hooks/usePlitzi";
9
- import { get as l } from "@plitzi/plitzi-ui/helpers";
10
- import { StoreProvider as u } from "@plitzi/nexus/react";
11
- import { getPathsFromObject as d } from "@plitzi/sdk-shared/helpers/utils";
12
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
13
- import m from "clsx";
14
- import h from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
15
- import g from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
4
+ import r from "../../../../../dataSource/useRegisterSource.mjs";
5
+ import i from "../../../../../dataSource/sourceStore.mjs";
6
+ import { rowKeys as a } from "./rowKeys.mjs";
7
+ import o from "./ListControlledItem.mjs";
8
+ import { useCallback as s, useMemo as c } from "react";
9
+ import { usePlitzi as l } from "@plitzi/sdk-shared/hooks";
10
+ import { getPathsFromObject as u } from "@plitzi/sdk-shared/helpers";
11
+ import { get as d } from "@plitzi/plitzi-ui/helpers";
12
+ import { StoreProvider as f } from "@plitzi/nexus/react";
13
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
14
+ import h from "clsx";
15
+ import { getSourceName as g } from "@plitzi/sdk-shared/dataSource/helpers";
16
16
  //#region src/elements/structure/List/modes/ListControlled/ListControlled.tsx
17
17
  var _ = ({ ref: _, className: v = "", subType: y = "ul", children: b, items: x = [], itemKey: S, label: C = "" }) => {
18
- let { id: w, definition: { label: T } } = t(), E = h(e.sourceType, w), { settings: { previewMode: D } } = c(), O = s(() => Array.isArray(x) ? x : [], [x]), k = s(() => i(O, S), [O, S]), A = o(() => d({
19
- item: l(O, "0", {}),
18
+ let { id: w, definition: { label: T } } = t(), E = g(e.sourceType, w), { settings: { previewMode: D } } = l(), O = c(() => Array.isArray(x) ? x : [], [x]), k = c(() => a(O, S), [O, S]), A = s(() => u({
19
+ item: d(O, "0", {}),
20
20
  index: 0
21
21
  }).reduce((e, t) => [...e, {
22
22
  path: t,
23
23
  name: t
24
- }], []), [O]), j = s(() => r(E, { items: O }), [E, O]);
25
- return g({
24
+ }], []), [O]), j = c(() => i(E, { items: O }), [E, O]);
25
+ return r({
26
26
  id: w,
27
27
  source: E,
28
28
  name: T || `List - ${w}`,
29
29
  fields: A
30
- }), /* @__PURE__ */ p(n, {
30
+ }), /* @__PURE__ */ m(n, {
31
31
  ref: _,
32
32
  tag: y,
33
33
  "aria-label": C || void 0,
34
- className: m("plitzi-component__controlled-list", v, { "controlled-list--build-mode": !D }),
35
- children: [/* @__PURE__ */ f(u, {
34
+ className: h("plitzi-component__controlled-list", v, { "controlled-list--build-mode": !D }),
35
+ children: [/* @__PURE__ */ p(f, {
36
36
  inherit: "live",
37
37
  name: `List:${w}`,
38
38
  value: j,
39
- children: O.map((e, t) => !b || Array.isArray(b) && b.length === 0 ? /* @__PURE__ */ f("div", {
39
+ children: O.map((e, t) => !b || Array.isArray(b) && b.length === 0 ? /* @__PURE__ */ p("div", {
40
40
  className: "plitzi-component__controlled-list-item controlled-list--empty",
41
- children: /* @__PURE__ */ f("div", {
41
+ children: /* @__PURE__ */ p("div", {
42
42
  className: "controlled-list-item__counter",
43
43
  children: `List Item - ${t + 1}`
44
44
  })
45
- }, t) : /* @__PURE__ */ f(a, {
45
+ }, t) : /* @__PURE__ */ p(o, {
46
46
  index: t,
47
47
  isTemplate: t !== 0 && !D,
48
48
  record: e,
49
49
  source: E,
50
50
  children: b
51
51
  }, k[t]))
52
- }), !D && O.length === 0 && /* @__PURE__ */ f("div", {
52
+ }), !D && O.length === 0 && /* @__PURE__ */ p("div", {
53
53
  className: "controlled-list controlled-list--empty",
54
54
  children: "This list does not contain any items"
55
55
  })]
@@ -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('../../../Element/hocs/withElement').WithElementProps<ModalContainerProps>): import('react').JSX.Element;
11
+ (props: import('../../..').WithElementProps<ModalContainerProps>): import('react').JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { ModalContainerProps } from './ModalContainer';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type ModalContainerAttributes = AuthorableAttributes<ModalContainerProps>;
5
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
5
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "modalContainer";
7
7
  readonly sourceType: "modalContainer";
8
8
  readonly triggers: {
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
1
+ 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",
@@ -1,5 +1,5 @@
1
1
  declare const ModalContainer: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./ModalContainer').ModalContainerProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./ModalContainer').ModalContainerProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "modalContainer";
@@ -181,8 +181,8 @@ declare const ModalContainer: {
181
181
  };
182
182
  readonly initialItems: readonly ["container"];
183
183
  } & {
184
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
185
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
184
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
185
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
186
186
  title?: string | undefined;
187
187
  autoHideAfterClick?: boolean | undefined;
188
188
  }>>;
@@ -1,4 +1,4 @@
1
- import { isRecord as e } from "@plitzi/sdk-shared/helpers/isRecord";
1
+ import { isRecord as e } from "@plitzi/sdk-shared/helpers";
2
2
  //#region src/elements/structure/Overlay/metadataOf.ts
3
3
  var t = (t) => {
4
4
  if (e(t)) return t;
@@ -1,37 +1,37 @@
1
1
  import e from "../../../Element/hooks/useElement.mjs";
2
- import t from "../../../dataSource/pathFields.mjs";
3
- import n from "../../../dataSource/sourceStore.mjs";
4
- import { metadataOf as r } from "./metadataOf.mjs";
5
- import { use as i, useCallback as a, useEffect as o, useMemo as s, useState as c } from "react";
6
- import l from "@plitzi/sdk-shared/hooks/usePlitzi";
7
- import u from "@plitzi/sdk-interactions/InteractionsContext";
8
- import d from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
9
- import f from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
2
+ import t from "../../../dataSource/useRegisterSource.mjs";
3
+ import n from "../../../dataSource/pathFields.mjs";
4
+ import r from "../../../dataSource/sourceStore.mjs";
5
+ import { metadataOf as i } from "./metadataOf.mjs";
6
+ import { use as a, useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
7
+ import { usePlitzi as u } from "@plitzi/sdk-shared/hooks";
8
+ import { InteractionsContext as d } from "@plitzi/sdk-interactions";
9
+ import { getSourceName as f } from "@plitzi/sdk-shared/dataSource/helpers";
10
10
  //#region src/elements/structure/Overlay/useOverlay.ts
11
11
  var p = ({ name: p, sourceType: m, callbacks: h, events: g, autoHideAfterClick: _ }) => {
12
- let { id: v, rootId: y, visible: b, definition: { styleSelectors: x, label: S = p }, elementState: C, setElementState: w } = e(), T = d(m, v), { settings: { previewMode: E } } = l(), { interactionsManager: D } = i(u), [O, k] = c({}), A = a((e) => D.interactionTrigger(v, e, { metadata: O }), [
12
+ let { id: v, rootId: y, visible: b, definition: { styleSelectors: x, label: S = p }, elementState: C, setElementState: w } = e(), T = f(m, v), { settings: { previewMode: E } } = u(), { interactionsManager: D } = a(d), [O, k] = l({}), A = o((e) => D.interactionTrigger(v, e, { metadata: O }), [
13
13
  v,
14
14
  D,
15
15
  O
16
- ]), j = a(() => {
16
+ ]), j = o(() => {
17
17
  k({}), w((e) => ({
18
18
  ...e,
19
19
  visibility: !1
20
20
  }));
21
- }, [w]), M = a((e) => {
22
- k(r(e.metadata)), w((e) => ({
21
+ }, [w]), M = o((e) => {
22
+ k(i(e.metadata)), w((e) => ({
23
23
  ...e,
24
24
  visibility: !0
25
25
  }));
26
- }, [w]), N = a(() => {
26
+ }, [w]), N = o(() => {
27
27
  A(g.close), j();
28
28
  }, [
29
29
  g.close,
30
30
  j,
31
31
  A
32
- ]), P = a(() => {
32
+ ]), P = o(() => {
33
33
  _ && N();
34
- }, [_, N]), F = s(() => ({
34
+ }, [_, N]), F = c(() => ({
35
35
  [h.open.action]: {
36
36
  ...h.open,
37
37
  title: `Open ${S}`,
@@ -49,7 +49,7 @@ var p = ({ name: p, sourceType: m, callbacks: h, events: g, autoHideAfterClick:
49
49
  S,
50
50
  M
51
51
  ]);
52
- o(() => {
52
+ s(() => {
53
53
  C.visibility !== !1 && D.interactionTrigger(v, g.open, { metadata: O });
54
54
  }, [
55
55
  v,
@@ -58,14 +58,14 @@ var p = ({ name: p, sourceType: m, callbacks: h, events: g, autoHideAfterClick:
58
58
  C.visibility,
59
59
  g.open
60
60
  ]);
61
- let I = a(() => t(O), [O]);
62
- f({
61
+ let I = o(() => n(O), [O]);
62
+ t({
63
63
  id: v,
64
64
  source: T,
65
65
  name: S || `${p} - ${v}`,
66
66
  fields: I
67
67
  });
68
- let L = s(() => n(T, O), [T, O]);
68
+ let L = c(() => r(T, O), [T, O]);
69
69
  return {
70
70
  id: v,
71
71
  titleId: `${y}_${v}_title`,
@@ -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('../../../Element/hocs/withElement').WithElementProps<PaginationProps>): import('react').JSX.Element;
42
+ (props: import('../../..').WithElementProps<PaginationProps>): import('react').JSX.Element;
43
43
  displayName: string;
44
44
  };
45
45
  export default _default;
@@ -4,12 +4,12 @@ import n from "../../../Element/hooks/useElement.mjs";
4
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
- import c from "@plitzi/sdk-shared/hooks/usePlitzi";
7
+ import { usePlitzi as c } from "@plitzi/sdk-shared/hooks";
8
8
  import { useSdkStore as l } from "@plitzi/sdk-shared/store";
9
- import { emptyObject as u } from "@plitzi/sdk-shared/helpers/utils";
9
+ import { emptyObject as u } from "@plitzi/sdk-shared/helpers";
10
10
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
11
11
  import m from "clsx";
12
- import h from "@plitzi/sdk-interactions/InteractionsContext";
12
+ import { InteractionsContext as h } from "@plitzi/sdk-interactions";
13
13
  //#region src/elements/structure/Pagination/Pagination.tsx
14
14
  var g = (e, t) => {
15
15
  if (typeof window > "u") return "";
@@ -1,8 +1,8 @@
1
1
  import { PaginationProps } from './Pagination';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /** What this element can be authored with — its component's own props, minus what the runtime supplies. */
4
4
  export type PaginationAttributes = AuthorableAttributes<PaginationProps>;
5
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
5
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
6
6
  readonly type: "pagination";
7
7
  readonly attributeValues: {
8
8
  readonly mode: readonly string[];
@@ -1,4 +1,4 @@
1
- import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring/declare";
1
+ import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
2
2
  //#region src/elements/structure/Pagination/declaration.ts
3
3
  var n = e()({
4
4
  type: "pagination",
@@ -1,5 +1,5 @@
1
1
  declare const Pagination: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Pagination').PaginationProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Pagination').PaginationProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "pagination";
@@ -59,8 +59,8 @@ declare const Pagination: {
59
59
  };
60
60
  };
61
61
  } & {
62
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
63
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
62
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
63
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
64
64
  mode?: "pages" | "loadMore" | undefined;
65
65
  label?: string | undefined;
66
66
  target?: "url" | "interaction" | undefined;