@plitzi/sdk-elements 0.38.16 → 0.38.18

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 +123 -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 +45 -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
@@ -1,5 +1,5 @@
1
1
  import { PageProps } from './Page';
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 PageAttributes = AuthorableAttributes<PageProps>;
5
5
  /**
@@ -9,7 +9,7 @@ export type PageAttributes = AuthorableAttributes<PageProps>;
9
9
  export declare const DOCUMENT_SCROLLS: readonly ["locked", "noBounce"];
10
10
  export type DocumentScroll = (typeof DOCUMENT_SCROLLS)[number];
11
11
  export declare const isDocumentScroll: (value: unknown) => value is DocumentScroll;
12
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
12
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
13
13
  readonly type: "page";
14
14
  readonly serverTemplates: readonly ["seoPageTitle", "seoPageDescription", "notFound"];
15
15
  readonly attributeValues: {
@@ -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/internal/Page/declaration.ts
3
3
  var t = ["locked", "noBounce"], n = (e) => t.some((t) => t === e), r = e()({
4
4
  type: "page",
@@ -1,5 +1,5 @@
1
1
  declare const Page: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Page').PageProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Page').PageProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "page";
@@ -66,8 +66,8 @@ declare const Page: {
66
66
  };
67
67
  };
68
68
  } & {
69
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
70
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
69
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
70
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
71
71
  layout?: string | undefined;
72
72
  notFound?: string | undefined;
73
73
  layoutContainer?: string | undefined;
@@ -15,7 +15,7 @@ export type EmbedProps = {
15
15
  };
16
16
  declare const Embed: ({ ref, src, title, loading, allow, sandbox, referrerPolicy, className }: EmbedProps) => import('react').JSX.Element;
17
17
  declare const _default: {
18
- (props: import('../../../Element/hocs/withElement').WithElementProps<EmbedProps>): import('react').JSX.Element;
18
+ (props: import('../../..').WithElementProps<EmbedProps>): import('react').JSX.Element;
19
19
  displayName: string;
20
20
  };
21
21
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import e from "../../../Element/hocs/withElement.mjs";
2
2
  import { RootElement as t } from "../../../Element/RootElement.mjs";
3
3
  import { embeddableSrc as n } from "./embeddableSrc.mjs";
4
- import r from "@plitzi/sdk-shared/hooks/usePlitzi";
4
+ import { usePlitzi as r } from "@plitzi/sdk-shared/hooks";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
6
  import o from "clsx";
7
7
  //#region src/elements/media/Embed/Embed.tsx
@@ -1,8 +1,8 @@
1
1
  import { EmbedProps } from './Embed';
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 EmbedAttributes = AuthorableAttributes<EmbedProps>;
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: "embed";
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/media/Embed/declaration.ts
3
3
  var t = e()({
4
4
  type: "embed",
@@ -1,5 +1,5 @@
1
1
  declare const Embed: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Embed').EmbedProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Embed').EmbedProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "embed";
@@ -34,8 +34,8 @@ declare const Embed: {
34
34
  };
35
35
  };
36
36
  } & {
37
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
38
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
37
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
38
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
39
39
  title?: string | undefined;
40
40
  referrerPolicy?: "no-referrer" | "origin" | "strict-origin-when-cross-origin" | "no-referrer-when-downgrade" | undefined;
41
41
  src?: string | undefined;
@@ -15,7 +15,7 @@ export type FontAwesomeProps = {
15
15
  };
16
16
  declare const FontAwesome: ({ ref, className, icon, size, iconAnimation, label }: FontAwesomeProps) => import('react').JSX.Element;
17
17
  declare const _default: {
18
- (props: import('../../../Element/hocs/withElement').WithElementProps<FontAwesomeProps>): import('react').JSX.Element;
18
+ (props: import('../../..').WithElementProps<FontAwesomeProps>): import('react').JSX.Element;
19
19
  displayName: string;
20
20
  };
21
21
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { FontAwesomeProps } from './FontAwesome';
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 FontAwesomeAttributes = AuthorableAttributes<FontAwesomeProps>;
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: "fontAwesome";
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/media/FontAwesome/declaration.ts
3
3
  var t = e()({
4
4
  type: "fontAwesome",
@@ -1,5 +1,5 @@
1
1
  declare const FontAwesome: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./FontAwesome').FontAwesomeProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./FontAwesome').FontAwesomeProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "fontAwesome";
@@ -29,8 +29,8 @@ declare const FontAwesome: {
29
29
  };
30
30
  };
31
31
  } & {
32
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
33
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
32
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
33
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
34
34
  size?: string | undefined;
35
35
  label?: string | undefined;
36
36
  icon?: string | undefined;
@@ -36,7 +36,7 @@ export type ImageProps = {
36
36
  };
37
37
  declare const Image: ({ ref, className, src: srcProp, alt: altProp, decorative, fetchPriority, loadMode, sizes, width, height, resize }: ImageProps) => import('react').JSX.Element;
38
38
  declare const _default: {
39
- (props: import('../../../Element/hocs/withElement').WithElementProps<ImageProps>): import('react').JSX.Element;
39
+ (props: import('../../..').WithElementProps<ImageProps>): import('react').JSX.Element;
40
40
  displayName: string;
41
41
  };
42
42
  export default _default;
@@ -2,26 +2,26 @@ import e from "../../../Element/hocs/withElement.mjs";
2
2
  import { RootElement as t } from "../../../Element/RootElement.mjs";
3
3
  import { getFallbackSVGBase64 as n } from "./ImageHelper.mjs";
4
4
  import { useCallback as r, useState as i } from "react";
5
- import a from "@plitzi/sdk-shared/hooks/usePlitzi";
5
+ import { usePlitzi as a } from "@plitzi/sdk-shared/hooks";
6
6
  import { useCommonStore as o } from "@plitzi/sdk-shared/store";
7
- import { jsx as s } from "react/jsx-runtime";
8
- import c from "clsx";
9
- import { imageSrcSet as l, imageUrl as u, isResizableImage as d } from "@plitzi/sdk-shared/helpers/images";
7
+ import { imageSrcSet as s, imageUrl as c, isResizableImage as l } from "@plitzi/sdk-shared/helpers";
8
+ import { jsx as u } from "react/jsx-runtime";
9
+ import d from "clsx";
10
10
  //#region src/elements/media/Image/Image.tsx
11
11
  var f = 1280, p = n(), m = ({ ref: e, className: n = "", src: m, alt: h = "", decorative: g = !1, fetchPriority: _ = "auto", loadMode: v, sizes: y = "100vw", width: b, height: x, resize: S = !0 }) => {
12
- let { settings: { previewMode: C } } = a(), w = m || p, T = g ? "" : h, [E, D] = i(void 0), O = E === w, k = r(() => D(w), [w]), A = O ? p : w, j = O ? { "data-plitzi-failed": w } : {}, M = v === "auto" ? void 0 : v, [N] = o("images.endpoint"), P = C && N && S && !O && d(w) ? {
13
- src: u(N, w, f),
14
- srcSet: l(N, w),
12
+ let { settings: { previewMode: C } } = a(), w = m || p, T = g ? "" : h, [E, D] = i(void 0), O = E === w, k = r(() => D(w), [w]), A = O ? p : w, j = O ? { "data-plitzi-failed": w } : {}, M = v === "auto" ? void 0 : v, [N] = o("images.endpoint"), P = C && N && S && !O && l(w) ? {
13
+ src: c(N, w, f),
14
+ srcSet: s(N, w),
15
15
  sizes: y
16
16
  } : { src: A }, F = {
17
17
  ...b ? { width: b } : {},
18
18
  ...x ? { height: x } : {}
19
19
  };
20
- return C ? /* @__PURE__ */ s(t, {
20
+ return C ? /* @__PURE__ */ u(t, {
21
21
  tag: "img",
22
22
  draggable: !1,
23
23
  ref: e,
24
- className: c("plitzi-component__image", n),
24
+ className: d("plitzi-component__image", n),
25
25
  ...P,
26
26
  ...F,
27
27
  alt: T,
@@ -29,10 +29,10 @@ var f = 1280, p = n(), m = ({ ref: e, className: n = "", src: m, alt: h = "", de
29
29
  fetchPriority: _,
30
30
  onError: O ? void 0 : k,
31
31
  ...j
32
- }) : /* @__PURE__ */ s(t, {
32
+ }) : /* @__PURE__ */ u(t, {
33
33
  ref: e,
34
- className: c("plitzi-component__image image--edit-mode", n),
35
- children: /* @__PURE__ */ s("img", {
34
+ className: d("plitzi-component__image image--edit-mode", n),
35
+ children: /* @__PURE__ */ u("img", {
36
36
  draggable: !1,
37
37
  src: A,
38
38
  alt: T,
@@ -1,8 +1,8 @@
1
1
  import { ImageProps } from './Image';
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 ImageAttributes = AuthorableAttributes<ImageProps>;
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: "image";
7
7
  readonly attributeValues: {
8
8
  readonly fetchPriority: 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/media/Image/declaration.ts
3
3
  var n = e()({
4
4
  type: "image",
@@ -1,5 +1,5 @@
1
1
  declare const Image: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Image').ImageProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Image').ImageProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "image";
@@ -37,8 +37,8 @@ declare const Image: {
37
37
  };
38
38
  };
39
39
  } & {
40
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
41
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
40
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
41
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
42
42
  resize?: boolean | undefined;
43
43
  height?: number | undefined;
44
44
  width?: number | undefined;
@@ -9,7 +9,7 @@ export type SvgProps = {
9
9
  };
10
10
  declare const Svg: ({ ref, content, label, className }: SvgProps) => import('react').JSX.Element;
11
11
  declare const _default: {
12
- (props: import('../../../Element/hocs/withElement').WithElementProps<SvgProps>): import('react').JSX.Element;
12
+ (props: import('../../..').WithElementProps<SvgProps>): import('react').JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  export default _default;
@@ -1,31 +1,31 @@
1
- import e from "../../../Element/hocs/withElement.mjs";
2
- import { RootElement as t } from "../../../Element/RootElement.mjs";
3
- import { fitSvg as n, isSvgMarkup as r, sanitizeSvg as i } from "./sanitizeSvg.mjs";
1
+ import { fitSvg as e, isSvgMarkup as t, sanitizeSvg as n } from "./sanitizeSvg.mjs";
2
+ import r from "../../../Element/hocs/withElement.mjs";
3
+ import { RootElement as i } from "../../../Element/RootElement.mjs";
4
4
  import { useMemo as a } from "react";
5
- import o from "@plitzi/sdk-shared/hooks/usePlitzi";
5
+ import { usePlitzi as o } from "@plitzi/sdk-shared/hooks";
6
6
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  import l from "clsx";
8
8
  //#region src/elements/media/Svg/Svg.tsx
9
- var u = ({ ref: e, content: u = "", label: d = "", className: f = "" }) => {
10
- let { settings: { previewMode: p } } = o(), m = a(() => r(u) ? n(i(u)) : "", [u]), h = d ? {
9
+ var u = ({ ref: r, content: u = "", label: d = "", className: f = "" }) => {
10
+ let { settings: { previewMode: p } } = o(), m = a(() => t(u) ? e(n(u)) : "", [u]), h = d ? {
11
11
  role: "img",
12
12
  "aria-label": d
13
13
  } : { "aria-hidden": !0 };
14
- return !m && !p ? /* @__PURE__ */ c(t, {
15
- ref: e,
14
+ return !m && !p ? /* @__PURE__ */ c(i, {
15
+ ref: r,
16
16
  className: l("plitzi-component__svg svg--empty", f),
17
17
  children: [
18
18
  "Paste one ",
19
19
  "<svg>…</svg>",
20
20
  " here"
21
21
  ]
22
- }) : /* @__PURE__ */ s(t, {
22
+ }) : /* @__PURE__ */ s(i, {
23
23
  tag: "span",
24
- ref: e,
24
+ ref: r,
25
25
  className: l("plitzi-component__svg", f),
26
26
  ...h,
27
27
  dangerouslySetInnerHTML: { __html: m }
28
28
  });
29
- }, d = e(u);
29
+ }, d = r(u);
30
30
  //#endregion
31
31
  export { u as Svg, d as default };
@@ -1,8 +1,8 @@
1
1
  import { SvgProps } from './Svg';
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 SvgAttributes = AuthorableAttributes<SvgProps>;
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: "svg";
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/media/Svg/declaration.ts
3
3
  var t = e()({
4
4
  type: "svg",
@@ -1,5 +1,5 @@
1
1
  declare const Svg: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Svg').SvgProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Svg').SvgProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "svg";
@@ -30,8 +30,8 @@ declare const Svg: {
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
  content?: string | undefined;
36
36
  label?: string | undefined;
37
37
  }>>;
@@ -10,7 +10,7 @@ export type VideoProps = {
10
10
  };
11
11
  declare const Video: ({ ref, src, autoPlay, playsInline, loop, muted, className }: VideoProps) => import('react').JSX.Element;
12
12
  declare const _default: {
13
- (props: import('../../../Element/hocs/withElement').WithElementProps<VideoProps>): import('react').JSX.Element;
13
+ (props: import('../../..').WithElementProps<VideoProps>): import('react').JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import e from "../../../Element/hocs/withElement.mjs";
2
2
  import { RootElement as t } from "../../../Element/RootElement.mjs";
3
- import n from "@plitzi/sdk-shared/hooks/usePlitzi";
3
+ import { usePlitzi as n } from "@plitzi/sdk-shared/hooks";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  import i from "clsx";
6
6
  //#region src/elements/media/Video/Video.tsx
@@ -1,8 +1,8 @@
1
1
  import { VideoProps } from './Video';
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 VideoAttributes = AuthorableAttributes<VideoProps>;
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: "video";
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/media/Video/declaration.ts
3
3
  var t = e()({
4
4
  type: "video",
@@ -1,5 +1,5 @@
1
1
  declare const Video: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Video').VideoProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Video').VideoProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "video";
@@ -32,8 +32,8 @@ declare const Video: {
32
32
  };
33
33
  };
34
34
  } & {
35
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
36
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
35
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
36
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
37
37
  src?: string | undefined;
38
38
  autoPlay?: boolean | undefined;
39
39
  loop?: boolean | undefined;
@@ -92,7 +92,7 @@ export type ApiContainerProps = {
92
92
  };
93
93
  declare const ApiContainer: ({ ref, className, children, query, method, accessToken, when, headers, mockData, subType, credentials, singleRecord, pagination, pageParam, renderWhileLoading, loadingSlot, cache, staleTime, gcTime, refreshSeconds, connector, action, input }: ApiContainerProps) => import('react').JSX.Element;
94
94
  declare const _default: {
95
- (props: import('../../../Element/hocs/withElement').WithElementProps<ApiContainerProps>): import('react').JSX.Element;
95
+ (props: import('../../..').WithElementProps<ApiContainerProps>): import('react').JSX.Element;
96
96
  displayName: string;
97
97
  };
98
98
  export default _default;
@@ -3,34 +3,34 @@ import t from "../../../Element/hocs/withElement.mjs";
3
3
  import ee from "../../../Element/hooks/useElement.mjs";
4
4
  import te from "../../../Element/hooks/useRscData.mjs";
5
5
  import { RootElement as ne } from "../../../Element/RootElement.mjs";
6
- import { isEmptyAnswer as re } from "./helpers/isEmptyAnswer.mjs";
7
- import { childrenWhile as ie } from "./helpers/loadingSlot.mjs";
8
- import ae from "./helpers/providerOutcome.mjs";
9
- import { queryInputOf as oe } from "./helpers/queryInput.mjs";
10
- import { serverMock as se } from "./helpers/serverMock.mjs";
11
- import ce from "./hooks/useApi.mjs";
12
- import le from "./hooks/useAutoRefresh.mjs";
13
- import ue from "./hooks/useInputRefresh.mjs";
14
- import de from "./hooks/useProviderPagination.mjs";
15
- import fe from "./hooks/useProviderWrite.mjs";
16
- import pe from "../../../dataSource/pathFields.mjs";
17
- import me from "../../../dataSource/sourceStore.mjs";
18
- import { use as he, useCallback as n, useEffect as ge, useMemo as r, useRef as i } from "react";
19
- import _e from "@plitzi/sdk-shared/hooks/usePlitzi";
20
- import { useCommonStore as ve, useSdkStore as ye } from "@plitzi/sdk-shared/store";
21
- import { StoreProvider as be } from "@plitzi/nexus/react";
22
- import { emptyObject as a } from "@plitzi/sdk-shared/helpers/utils";
6
+ import re from "../../../dataSource/useRegisterSource.mjs";
7
+ import { isEmptyAnswer as ie } from "./helpers/isEmptyAnswer.mjs";
8
+ import { childrenWhile as ae } from "./helpers/loadingSlot.mjs";
9
+ import oe from "./helpers/providerOutcome.mjs";
10
+ import { queryInputOf as se } from "./helpers/queryInput.mjs";
11
+ import { serverMock as ce } from "./helpers/serverMock.mjs";
12
+ import le from "./hooks/useApi.mjs";
13
+ import ue from "./hooks/useAutoRefresh.mjs";
14
+ import de from "./hooks/useInputRefresh.mjs";
15
+ import fe from "./hooks/useProviderPagination.mjs";
16
+ import pe from "./hooks/useProviderWrite.mjs";
17
+ import me from "../../../dataSource/pathFields.mjs";
18
+ import he from "../../../dataSource/sourceStore.mjs";
19
+ import { use as ge, useCallback as n, useEffect as _e, useMemo as r, useRef as i } from "react";
20
+ import { usePlitzi as ve } from "@plitzi/sdk-shared/hooks";
21
+ import { useCommonStore as ye, useSdkStore as be } from "@plitzi/sdk-shared/store";
22
+ import { emptyObject as a } from "@plitzi/sdk-shared/helpers";
23
+ import { StoreProvider as xe } from "@plitzi/nexus/react";
23
24
  import { jsx as o } from "react/jsx-runtime";
24
- import { currentRscLocation as xe } from "@plitzi/sdk-shared/server/rsc/refreshRsc";
25
25
  import Se from "clsx";
26
- import Ce from "@plitzi/sdk-interactions/InteractionsContext";
27
- import we from "@plitzi/sdk-shared/dataSource/helpers/getSourceName";
28
- import Te from "@plitzi/sdk-shared/dataSource/hooks/useRegisterSource";
26
+ import { currentRscLocation as Ce } from "@plitzi/sdk-shared/server";
27
+ import { InteractionsContext as we } from "@plitzi/sdk-interactions";
28
+ import { getSourceName as Te } from "@plitzi/sdk-shared/dataSource/helpers";
29
29
  import { QueryBuilderEvaluator as Ee } from "@plitzi/plitzi-ui/QueryBuilder";
30
30
  import { useServerQuery as De } from "@plitzi/sdk-shared/queries";
31
31
  //#region src/elements/provider/ApiContainer/ApiContainer.tsx
32
32
  var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "get", accessToken: d = "", when: f = a, headers: p = a, mockData: m = "{}", subType: Oe = "", credentials: ke = "same-origin", singleRecord: Ae = !1, pagination: je = "none", pageParam: Me = "page", renderWhileLoading: Ne = !1, loadingSlot: h = "", cache: Pe = !1, staleTime: Fe = 30, gcTime: Ie = 300, refreshSeconds: Le = 0, connector: Re = "", action: ze = "", input: Be }) => {
33
- let { id: g, visible: _, definition: { label: v = "Api Container", runtime: Ve, items: He } } = ee(), y = Ve === "server", { loaded: b, stale: x, location: S, elementData: C, refreshing: Ue, refresh: w, cancel: T } = te(), E = we(e.sourceType, g), { settings: { previewMode: D } } = _e(), { interactionsManager: O } = he(Ce), [[k, A, We]] = ye([
33
+ let { id: g, visible: _, definition: { label: v = "Api Container", runtime: Ve, items: He } } = ee(), y = Ve === "server", { loaded: b, stale: x, location: S, elementData: C, refreshing: Ue, refresh: w, cancel: T } = te(), E = Te(e.sourceType, g), { settings: { previewMode: D } } = ve(), { interactionsManager: O } = ge(we), [[k, A, We]] = be([
34
34
  "navigation.routeParams",
35
35
  "navigation.queryParams",
36
36
  "navigation.navigate"
@@ -49,7 +49,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
49
49
  k,
50
50
  A,
51
51
  m
52
- ]), Ke = r(() => [g], [g]), { isLoading: qe, isFetching: Je, data: M, refetch: N, cancel: P, isSuccess: Ye, isError: Xe } = ce({
52
+ ]), Ke = r(() => [g], [g]), { isLoading: qe, isFetching: Je, data: M, refetch: N, cancel: P, isSuccess: Ye, isError: Xe } = le({
53
53
  url: l,
54
54
  method: u,
55
55
  credentials: ke,
@@ -60,7 +60,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
60
60
  staleTime: Fe,
61
61
  gcTime: Ie,
62
62
  tags: Ke
63
- }), F = y && !!S && S !== xe(), I = y && b && !F && C === null, L = y && !Re && !ze, R = r(() => y ? C || (b ? a : se(m, L)) : M ?? a, [
63
+ }), F = y && !!S && S !== Ce(), I = y && b && !F && C === null, L = y && !Re && !ze, R = r(() => y ? C || (b ? a : ce(m, L)) : M ?? a, [
64
64
  y,
65
65
  M,
66
66
  C,
@@ -71,11 +71,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
71
71
  ...V.current,
72
72
  ...t
73
73
  }), [w]), H = n(async (e) => {
74
- if (!y) {
75
- N();
76
- return;
77
- }
78
- await w([g], V.current, { fresh: e });
74
+ y ? await w([g], V.current, { fresh: e }) : N();
79
75
  }, [
80
76
  y,
81
77
  N,
@@ -90,30 +86,26 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
90
86
  refresh: U
91
87
  });
92
88
  let W = n(async ({ input: e } = {}) => {
93
- let t = oe(e);
89
+ let t = se(e);
94
90
  t && (V.current = t), await U();
95
91
  }, [U]), G = n(() => {
96
- if (y) {
97
- T();
98
- return;
99
- }
100
- P();
92
+ y ? T() : P();
101
93
  }, [
102
94
  y,
103
95
  T,
104
96
  P
105
- ]), [$e] = ve(`schema.flat.${g}.attributes.input`, { mode: "mount" });
106
- ue({
97
+ ]), [$e] = ye(`schema.flat.${g}.attributes.input`, { mode: "mount" });
98
+ de({
107
99
  enabled: y && b,
108
100
  input: Be,
109
101
  savedInput: $e,
110
102
  performQuery: W
111
- }), le({
103
+ }), ue({
112
104
  seconds: Le,
113
105
  enabled: _ && (y ? b && !F : j),
114
106
  refresh: Qe
115
107
  });
116
- let K = R, et = r(() => Array.isArray(K.records) ? K.records : [], [K.records]), { records: q, isLoadingMore: J, goToPage: Y, loadMore: X } = de({
108
+ let K = R, et = r(() => Array.isArray(K.records) ? K.records : [], [K.records]), { records: q, isLoadingMore: J, goToPage: Y, loadMore: X } = fe({
117
109
  elementId: g,
118
110
  mode: je,
119
111
  pageParam: Me,
@@ -121,7 +113,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
121
113
  page: K.pageInfo?.page ?? 1,
122
114
  refresh: Ze,
123
115
  navigate: We
124
- }), Z = ae({
116
+ }), Z = oe({
125
117
  serverMode: y,
126
118
  isSuccess: Ye,
127
119
  isError: Xe,
@@ -129,7 +121,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
129
121
  rscPending: F,
130
122
  elementData: C
131
123
  }), Q = i(void 0);
132
- ge(() => {
124
+ _e(() => {
133
125
  !z && g && Z && (Q.current?.data !== R || Q.current.outcome !== Z) && (Q.current = {
134
126
  data: R,
135
127
  outcome: Z
@@ -151,7 +143,7 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
151
143
  ...R,
152
144
  ...Array.isArray(K.records) ? { records: q } : a,
153
145
  isLoading: z || J,
154
- isEmpty: re(K, q, Ae),
146
+ isEmpty: ie(K, q, Ae),
155
147
  hasError: I,
156
148
  errorMessage: I ? "The data provider could not be reached" : "",
157
149
  isStale: y && x
@@ -165,14 +157,14 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
165
157
  I,
166
158
  y,
167
159
  x
168
- ]), tt = n(() => pe($), [$]);
169
- Te({
160
+ ]), tt = n(() => me($), [$]);
161
+ re({
170
162
  id: g,
171
163
  source: E,
172
164
  name: v || `API - ${g}`,
173
165
  fields: tt
174
166
  });
175
- let { writeRecord: nt } = fe({
167
+ let { writeRecord: nt } = pe({
176
168
  elementId: g,
177
169
  enabled: y,
178
170
  onDone: U
@@ -212,19 +204,19 @@ var s = ({ ref: t, className: s = "", children: c, query: l = "", method: u = "g
212
204
  Y,
213
205
  y,
214
206
  nt
215
- ]), it = r(() => h && D ? ie(c, h, B) : c, [
207
+ ]), it = r(() => h && D ? ae(c, h, B) : c, [
216
208
  c,
217
209
  B,
218
210
  h,
219
211
  D
220
- ]), at = r(() => me(E, $), [$, E]);
212
+ ]), at = r(() => he(E, $), [$, E]);
221
213
  return /* @__PURE__ */ o(ne, {
222
214
  ref: t,
223
215
  tag: !D && !He?.length ? "div" : Oe,
224
216
  className: Se("plitzi-component__api-container", s),
225
217
  interactionTriggers: e.triggers,
226
218
  interactionCallbacks: rt,
227
- children: (!B || Ne || h) && /* @__PURE__ */ o(be, {
219
+ children: (!B || Ne || h) && /* @__PURE__ */ o(xe, {
228
220
  inherit: "live",
229
221
  name: `Api:${g}`,
230
222
  value: at,