@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
@@ -1,76 +1,72 @@
1
1
  import e from "../../../components/ElementAdvancedEditor.mjs";
2
2
  import { use as t, useCallback as n, useState as r } from "react";
3
- import { get as i } from "@plitzi/plitzi-ui/helpers";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
- import s from "@plitzi/sdk-shared/theme/useTheme";
6
- import c from "@plitzi/plitzi-ui/Button";
7
- import l from "@plitzi/plitzi-ui/CodeMirror";
8
- import u from "@plitzi/sdk-shared/hooks/useNetwork";
9
- import d from "@plitzi/sdk-shared/network/NetworkContext";
3
+ import { useNetwork as i } from "@plitzi/sdk-shared/hooks";
4
+ import { get as a } from "@plitzi/plitzi-ui/helpers";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ import { useTheme as c } from "@plitzi/sdk-shared/theme";
7
+ import l from "@plitzi/plitzi-ui/Button";
8
+ import u from "@plitzi/plitzi-ui/CodeMirror";
9
+ import { NetworkContext as d } from "@plitzi/sdk-shared/network";
10
10
  import f from "@plitzi/plitzi-ui/Alert";
11
11
  import p from "@plitzi/plitzi-ui/Heading";
12
12
  //#region src/elements/advanced/BlockJsx/Settings.tsx
13
13
  var m = ({ content: m = "", props: h = "{}", onUpdate: g }) => {
14
- let { resolvedTheme: _ } = s(), { server: v, webKey: y } = t(d), [b, x] = r(void 0), { networkQuery: S, networkLoading: C } = u({
14
+ let { resolvedTheme: _ } = c(), { server: v, webKey: y } = t(d), [b, x] = r(void 0), { networkQuery: S, networkLoading: C } = i({
15
15
  initLoading: !1,
16
16
  server: v,
17
17
  webKey: y
18
18
  }), w = n(async (e) => {
19
19
  let t = await S("/utils/transform-jsx", { data: e }, "post");
20
20
  if (!t) return;
21
- let n = i(t, "data");
22
- if (!n) {
23
- x(i(t, "error")), g?.("contentCache", "");
24
- return;
25
- }
26
- x(void 0), g?.("contentCache", btoa(n));
21
+ let n = a(t, "data");
22
+ n ? (x(void 0), g?.("contentCache", btoa(n))) : (x(a(t, "error")), g?.("contentCache", ""));
27
23
  }, [g, S]), T = n(() => void w(m), [w, m]), E = n((e) => g?.("content", e), [g]), D = n((e) => g?.("props", e), [g]);
28
- return /* @__PURE__ */ o("div", {
24
+ return /* @__PURE__ */ s("div", {
29
25
  className: "flex h-full flex-col",
30
- children: [/* @__PURE__ */ a(e, {
26
+ children: [/* @__PURE__ */ o(e, {
31
27
  className: "min-h-0 grow basis-0",
32
28
  value: m,
33
29
  mode: "js",
34
30
  onChange: E
35
- }), /* @__PURE__ */ o("div", {
31
+ }), /* @__PURE__ */ s("div", {
36
32
  className: "flex flex-col py-2",
37
33
  children: [
38
- b && /* @__PURE__ */ a(f, {
34
+ b && /* @__PURE__ */ o(f, {
39
35
  className: "mb-4",
40
36
  intent: "error",
41
37
  size: "sm",
42
- children: /* @__PURE__ */ o("div", {
38
+ children: /* @__PURE__ */ s("div", {
43
39
  className: "flex flex-col text-xs",
44
- children: [/* @__PURE__ */ a("div", {
40
+ children: [/* @__PURE__ */ o("div", {
45
41
  className: "whitespace-pre",
46
42
  children: b.message
47
- }), /* @__PURE__ */ o("div", {
43
+ }), /* @__PURE__ */ s("div", {
48
44
  className: "my-2",
49
- children: ["Reason: ", /* @__PURE__ */ a("div", {
45
+ children: ["Reason: ", /* @__PURE__ */ o("div", {
50
46
  className: "inline-block font-bold",
51
47
  children: b.reasonCode
52
48
  })]
53
49
  })]
54
50
  })
55
51
  }),
56
- /* @__PURE__ */ a("div", {
52
+ /* @__PURE__ */ o("div", {
57
53
  className: "flex items-center justify-end",
58
- children: /* @__PURE__ */ o(c, {
54
+ children: /* @__PURE__ */ s(l, {
59
55
  size: "sm",
60
56
  onClick: T,
61
57
  disabled: C,
62
- children: [!C && "Compile", C && /* @__PURE__ */ o("div", {
58
+ children: [!C && "Compile", C && /* @__PURE__ */ s("div", {
63
59
  className: "flex items-center justify-center",
64
- children: [/* @__PURE__ */ a("i", { className: "fas fa-sync fa-spin mr-1" }), "Compiling..."]
60
+ children: [/* @__PURE__ */ o("i", { className: "fas fa-sync fa-spin mr-1" }), "Compiling..."]
65
61
  })]
66
62
  })
67
63
  }),
68
- /* @__PURE__ */ o("div", {
64
+ /* @__PURE__ */ s("div", {
69
65
  className: "flex flex-col",
70
- children: [/* @__PURE__ */ a(p, {
66
+ children: [/* @__PURE__ */ o(p, {
71
67
  as: "h5",
72
68
  children: "Properties"
73
- }), /* @__PURE__ */ a(l, {
69
+ }), /* @__PURE__ */ o(u, {
74
70
  size: "sm",
75
71
  className: "min-h-40 p-0",
76
72
  value: h,
@@ -1,11 +1,11 @@
1
1
  import { BlockJsxProps } from './BlockJsx';
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 BlockJsxAttributes = AuthorableAttributes<BlockJsxProps> & {
5
5
  content?: string;
6
6
  allowEmptyRender?: boolean;
7
7
  };
8
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
8
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
9
9
  readonly type: "blockJsx";
10
10
  readonly content: {
11
11
  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/advanced/BlockJsx/declaration.ts
3
3
  var t = e()({
4
4
  type: "blockJsx",
@@ -1,5 +1,5 @@
1
1
  declare const BlockJsx: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./BlockJsx').BlockJsxProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./BlockJsx').BlockJsxProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "blockJsx";
@@ -27,6 +27,6 @@ declare const BlockJsx: {
27
27
  };
28
28
  };
29
29
  } & {
30
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
31
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<import('./declaration').BlockJsxAttributes>;
30
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
31
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<import('./declaration').BlockJsxAttributes>;
32
32
  export default BlockJsx;
@@ -10,7 +10,7 @@ export type CustomProps = {
10
10
  };
11
11
  declare const Custom: ({ ref, className, renderType, settings, isPlugin, assets, scriptUrl }: CustomProps) => import('react').JSX.Element;
12
12
  declare const _default: {
13
- (props: import('../../../Element/hocs/withElement').WithElementProps<CustomProps>): import('react').JSX.Element;
13
+ (props: import('../../..').WithElementProps<CustomProps>): import('react').JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  export default _default;
@@ -4,8 +4,8 @@ import n from "../../../Element/hocs/withElement.mjs";
4
4
  import r from "../../../Element/hooks/useElement.mjs";
5
5
  import { RootElement as i } from "../../../Element/RootElement.mjs";
6
6
  import { use as a, useEffect as o, useMemo as s } from "react";
7
- import c from "@plitzi/sdk-shared/elements/ComponentContext";
8
- import l from "@plitzi/sdk-shared/plugins/PluginsContext";
7
+ import { ComponentContext as c } from "@plitzi/sdk-shared/elements";
8
+ import { PluginsContext as l } from "@plitzi/sdk-shared/plugins";
9
9
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
10
10
  import f from "clsx";
11
11
  //#region src/elements/advanced/Custom/Custom.tsx
@@ -1,7 +1,7 @@
1
1
  import e from "../../useSettingsUpdate.mjs";
2
2
  import { useCallback as t, useEffect as n, useEffectEvent as r, useState as i } from "react";
3
3
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
4
- import c from "@plitzi/sdk-shared/theme/useTheme";
4
+ import { useTheme as c } from "@plitzi/sdk-shared/theme";
5
5
  import l from "@plitzi/plitzi-ui/CodeMirror";
6
6
  import u from "@plitzi/plitzi-ui/Alert";
7
7
  import d from "@plitzi/plitzi-ui/Checkbox";
@@ -17,11 +17,8 @@ var m = ({ renderType: m = "", settings: h = "{}", isPlugin: g = !1, assets: _ =
17
17
  S(!1);
18
18
  }
19
19
  }, [y]), T = t((e) => y?.("isPlugin", e.target.checked), [y]), E = r(() => {
20
- if (!y || !h) {
21
- y?.("settings", "{}"), S(!0);
22
- return;
23
- }
24
- try {
20
+ if (!y || !h) y?.("settings", "{}"), S(!0);
21
+ else try {
25
22
  let e = JSON.stringify(JSON.parse(h), null, 2);
26
23
  e !== h && y("settings", e), S(!0);
27
24
  } catch {
@@ -1,12 +1,12 @@
1
1
  import { CustomProps } from './Custom';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /**
4
4
  * What this element can be authored with — its component's own props, minus what the runtime supplies — and
5
5
  * anything else: the component its `renderType` names reads its own attributes off this element (a chart's
6
6
  * `series`, a map's `height`), so the element carries whatever that component declares.
7
7
  */
8
8
  export type CustomAttributes = AuthorableAttributes<CustomProps> & Record<string, unknown>;
9
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
9
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
10
10
  readonly type: "custom";
11
11
  readonly content: {
12
12
  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/advanced/Custom/declaration.ts
3
3
  var t = e()({
4
4
  type: "custom",
@@ -1,5 +1,5 @@
1
1
  declare const Custom: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Custom').CustomProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Custom').CustomProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "custom";
@@ -33,6 +33,6 @@ declare const Custom: {
33
33
  };
34
34
  };
35
35
  } & {
36
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
37
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<import('./declaration').CustomAttributes>;
36
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
37
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<import('./declaration').CustomAttributes>;
38
38
  export default Custom;
@@ -7,7 +7,7 @@ export type NodeHtmlProps<T extends keyof JSX.IntrinsicElements = 'span'> = {
7
7
  } & Omit<HTMLAttributes<T>, 'class'>;
8
8
  declare const NodeHtml: ({ ref, className, subType, children, ...otherProps }: NodeHtmlProps) => JSX.Element;
9
9
  declare const _default: {
10
- (props: import('../../../Element/hocs/withElement').WithElementProps<NodeHtmlProps<"span">>): JSX.Element;
10
+ (props: import('../../..').WithElementProps<NodeHtmlProps<"span">>): JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { NodeHtmlProps } from './NodeHtml';
2
- import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
2
+ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring';
3
3
  /**
4
4
  * What this element can be authored with — its component's own props, minus what the runtime supplies.
5
5
  *
@@ -9,7 +9,7 @@ import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring/declare';
9
9
  * settable through the element's `attributes` on a spec written out longhand.
10
10
  */
11
11
  export type NodeHtmlAttributes = AuthorableAttributes<NodeHtmlProps, 'id'>;
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: "nodeHtml";
14
14
  readonly content: {
15
15
  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/advanced/NodeHtml/declaration.ts
3
3
  var t = e()({
4
4
  type: "nodeHtml",
@@ -1,5 +1,5 @@
1
1
  declare const NodeHtml: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./NodeHtml').NodeHtmlProps<"span">>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./NodeHtml').NodeHtmlProps<"span">>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "nodeHtml";
@@ -38,8 +38,8 @@ declare const NodeHtml: {
38
38
  };
39
39
  };
40
40
  } & {
41
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
42
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
41
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
42
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
43
43
  content?: string | undefined | undefined;
44
44
  style?: import('react').CSSProperties | undefined;
45
45
  color?: string | undefined | undefined;
@@ -12,7 +12,7 @@ export type PlitziSdkAttributes = {
12
12
  */
13
13
  offlineData?: OfflineDataRaw;
14
14
  };
15
- declare const declaration: import('@plitzi/sdk-shared/authoring/declare').DeclaredElement<{
15
+ declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
16
16
  readonly type: "plitziSdk";
17
17
  readonly content: {
18
18
  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/advanced/PlitziSdk/declaration.ts
3
3
  var t = e()({
4
4
  type: "plitziSdk",
@@ -9,7 +9,7 @@ export type ReferenceProps = {
9
9
  };
10
10
  declare const Reference: ({ ref, className, referenceType, referenceId }: ReferenceProps) => import('react').JSX.Element;
11
11
  declare const _default: {
12
- (props: import('../../../Element/hocs/withElement').WithElementProps<ReferenceProps>): import('react').JSX.Element;
12
+ (props: import('../../..').WithElementProps<ReferenceProps>): import('react').JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  export default _default;
@@ -7,13 +7,13 @@ import { RootElement as a } from "../../../Element/RootElement.mjs";
7
7
  import o from "../../../Element/PluginManager.mjs";
8
8
  import s from "../../../Element/ReplicaProvider.mjs";
9
9
  import { useId as c, useMemo as l } from "react";
10
- import u from "@plitzi/sdk-shared/hooks/usePlitzi";
10
+ import { usePlitzi as u } from "@plitzi/sdk-shared/hooks";
11
11
  import { useCommonStore as d } from "@plitzi/sdk-shared/store";
12
- import { COMPONENT_PROPS_SOURCE as f } from "@plitzi/sdk-shared/schema/schemaConstants";
12
+ import { COMPONENT_PROPS_SOURCE as f } from "@plitzi/sdk-shared/schema";
13
13
  import { StoreProvider as p } from "@plitzi/nexus/react";
14
14
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
15
15
  import g from "clsx";
16
- import { HIDDEN_CLASS as _ } from "@plitzi/sdk-shared/style/styleStates";
16
+ import { HIDDEN_CLASS as _ } from "@plitzi/sdk-shared/style";
17
17
  //#region src/elements/advanced/Reference/Reference.tsx
18
18
  var v = (e, t) => Object.fromEntries(Object.entries(e.props ?? {}).map(([e, n]) => [e, t[e] ?? n.default ?? null])), y = (t, n) => g(t, { [_]: !e(n.visibility) }), b = ({ instance: e, instanceId: t, items: r, plitziElementLayout: i, previewMode: a }) => {
19
19
  let o = l(() => ({
@@ -1,8 +1,8 @@
1
1
  import { ReferenceProps } from './Reference';
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 ReferenceAttributes = AuthorableAttributes<ReferenceProps>;
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: "reference";
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/advanced/Reference/declaration.ts
3
3
  var t = e()({
4
4
  type: "reference",
@@ -1,5 +1,5 @@
1
1
  declare const Reference: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Reference').ReferenceProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Reference').ReferenceProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "reference";
@@ -27,8 +27,8 @@ declare const Reference: {
27
27
  };
28
28
  };
29
29
  } & {
30
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
31
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
30
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
31
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
32
32
  referenceId: string;
33
33
  referenceType: "element" | "component";
34
34
  }>>;
@@ -47,7 +47,7 @@ export type ButtonProps = {
47
47
  };
48
48
  declare const Button: ({ ref, className, children, contentPlacement, content, icon, iconPlacement, subType, disabled, ariaExpanded, ariaPressed, controls, title, label }: ButtonProps) => import('react').JSX.Element;
49
49
  declare const _default: {
50
- (props: import('../../../Element/hocs/withElement').WithElementProps<ButtonProps>): import('react').JSX.Element;
50
+ (props: import('../../..').WithElementProps<ButtonProps>): import('react').JSX.Element;
51
51
  displayName: string;
52
52
  };
53
53
  export default _default;
@@ -2,7 +2,7 @@ import e from "../../../Element/hocs/withElement.mjs";
2
2
  import t from "../../../Element/hooks/useElement.mjs";
3
3
  import { RootElement as n } from "../../../Element/RootElement.mjs";
4
4
  import r from "../../../Element/ElementWords.mjs";
5
- import i from "@plitzi/sdk-shared/hooks/usePlitzi";
5
+ import { usePlitzi as i } from "@plitzi/sdk-shared/hooks";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
7
  import o from "clsx";
8
8
  //#region src/elements/basic/Button/Button.tsx
@@ -1,8 +1,8 @@
1
1
  import { ButtonProps } from './Button';
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 ButtonAttributes = AuthorableAttributes<ButtonProps>;
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: "button";
7
7
  readonly attributeValues: {
8
8
  readonly subType: readonly string[];
@@ -123,7 +123,7 @@ declare const declaration: import('@plitzi/sdk-shared/authoring/declare').Declar
123
123
  controls?: string | undefined;
124
124
  icon?: string | undefined;
125
125
  subType?: "button" | "submit" | "reset" | undefined;
126
- iconPlacement?: import('../../../Element/ElementWords').IconPlacement | undefined;
126
+ iconPlacement?: import('../../declarations').IconPlacement | undefined;
127
127
  contentPlacement?: "before" | "after" | undefined;
128
128
  ariaExpanded?: boolean | undefined;
129
129
  ariaPressed?: boolean | undefined;
@@ -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/basic/Button/declaration.ts
3
3
  var n = {
4
4
  "padding-top": "6px",
@@ -1,5 +1,5 @@
1
1
  declare const Button: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Button').ButtonProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Button').ButtonProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "button";
@@ -115,8 +115,8 @@ declare const Button: {
115
115
  };
116
116
  };
117
117
  } & {
118
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
119
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<Partial<{
118
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
119
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
120
120
  content?: string | undefined;
121
121
  label?: string | undefined;
122
122
  title?: string | undefined;
@@ -124,7 +124,7 @@ declare const Button: {
124
124
  controls?: string | undefined;
125
125
  icon?: string | undefined;
126
126
  subType?: "button" | "submit" | "reset" | undefined;
127
- iconPlacement?: import('../../../Element/ElementWords').IconPlacement | undefined;
127
+ iconPlacement?: import('../../declarations').IconPlacement | undefined;
128
128
  contentPlacement?: "before" | "after" | undefined;
129
129
  ariaExpanded?: boolean | undefined;
130
130
  ariaPressed?: boolean | undefined;
@@ -14,7 +14,7 @@ export type DropdownProps = {
14
14
  };
15
15
  declare const Dropdown: ({ ref: refProp, children, className, popupPlacement, openPopup, backgroundDisabled, closeOnClickBackground, closeOnClickPopup, containerTopOffset, containerLeftOffset, disabled }: DropdownProps) => import('react').JSX.Element;
16
16
  declare const _default: {
17
- (props: import('../../../Element/hocs/withElement').WithElementProps<DropdownProps>): import('react').JSX.Element;
17
+ (props: import('../../..').WithElementProps<DropdownProps>): import('react').JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  export default _default;
@@ -5,11 +5,11 @@ import r from "./DropdownContext.mjs";
5
5
  import i from "./useDropdown.mjs";
6
6
  import a from "./useDropdownTrigger.mjs";
7
7
  import { useCallback as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
8
- import d from "@plitzi/sdk-shared/hooks/usePlitzi";
9
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
- import m from "clsx";
11
- import { createPortal as h } from "react-dom";
12
- import { spaceRootOf as g } from "@plitzi/sdk-shared/helpers/spaceRoot";
8
+ import { usePlitzi as d } from "@plitzi/sdk-shared/hooks";
9
+ import { spaceRootOf as f } from "@plitzi/sdk-shared/helpers";
10
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
11
+ import h from "clsx";
12
+ import { createPortal as g } from "react-dom";
13
13
  //#region src/elements/basic/Dropdown/Dropdown.tsx
14
14
  var _ = ({ ref: e, children: _, className: v = "", popupPlacement: y = "bottom", openPopup: b = !1, backgroundDisabled: x = !1, closeOnClickBackground: S = !0, closeOnClickPopup: C = !0, containerTopOffset: w = 5, containerLeftOffset: T = 5, disabled: E = !1 }) => {
15
15
  let { setElementState: D, definition: { styleSelectors: O } } = t(), { settings: { previewMode: k }, utils: { getWindow: A } } = d(), j = l(null), M = e ?? j, N = l(null), P = l(null), F = c(() => A(), [A]), I = o((e) => {
@@ -36,7 +36,7 @@ var _ = ({ ref: e, children: _, className: v = "", popupPlacement: y = "bottom",
36
36
  onChange: L
37
37
  }), [V, H] = u(null);
38
38
  s(() => {
39
- b && k && !V && H(g(M.current));
39
+ b && k && !V && H(f(M.current));
40
40
  }, [
41
41
  b,
42
42
  k,
@@ -62,19 +62,19 @@ var _ = ({ ref: e, children: _, className: v = "", popupPlacement: y = "bottom",
62
62
  b,
63
63
  B,
64
64
  U
65
- ]), q = b && x && k && /* @__PURE__ */ f("div", {
65
+ ]), q = b && x && k && /* @__PURE__ */ p("div", {
66
66
  ref: P,
67
- className: m("plitzi-component__dropdown__background-container", O.backgroundContainer),
67
+ className: h("plitzi-component__dropdown__background-container", O.backgroundContainer),
68
68
  onClick: I
69
69
  });
70
- return /* @__PURE__ */ p(n, {
70
+ return /* @__PURE__ */ m(n, {
71
71
  ref: M,
72
- className: m("plitzi-component__dropdown", v, { "container--empty--skip": !k && !_ }),
72
+ className: h("plitzi-component__dropdown", v, { "container--empty--skip": !k && !_ }),
73
73
  onClick: G,
74
- children: [/* @__PURE__ */ f(r, {
74
+ children: [/* @__PURE__ */ p(r, {
75
75
  value: K,
76
76
  children: _
77
- }), q && U ? h(q, U) : q]
77
+ }), q && U ? g(q, U) : q]
78
78
  });
79
79
  }, v = e(_);
80
80
  //#endregion
@@ -6,7 +6,7 @@ export type DropdownPopupProps = {
6
6
  };
7
7
  declare const DropdownPopup: ({ ref, className, children }: DropdownPopupProps) => import('react').JSX.Element;
8
8
  declare const _default: {
9
- (props: import('../../../../Element/hocs/withElement').WithElementProps<DropdownPopupProps>): import('react').JSX.Element;
9
+ (props: import('../../../..').WithElementProps<DropdownPopupProps>): import('react').JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { DropdownPopupProps } from './DropdownPopup';
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 DropdownPopupAttributes = AuthorableAttributes<DropdownPopupProps>;
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: "dropdownPopup";
7
7
  readonly ancestorType: "dropdown";
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/basic/Dropdown/DropdownPopup/declaration.ts
3
3
  var t = e()({
4
4
  type: "dropdownPopup",
@@ -1,5 +1,5 @@
1
1
  declare const DropdownPopup: {
2
- (props: import('../../../../Element/hocs/withElement').WithElementProps<import('./DropdownPopup').DropdownPopupProps>): import('react').JSX.Element;
2
+ (props: import('../../../..').WithElementProps<import('./DropdownPopup').DropdownPopupProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  readonly type: "dropdownPopup";
@@ -50,6 +50,6 @@ declare const DropdownPopup: {
50
50
  };
51
51
  readonly initialItems: readonly [];
52
52
  } & {
53
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
54
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
53
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
54
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
55
55
  export default DropdownPopup;
@@ -1,8 +1,8 @@
1
1
  import { DropdownProps } from './Dropdown';
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 DropdownAttributes = AuthorableAttributes<DropdownProps>;
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: "dropdown";
7
7
  readonly attributeValues: {
8
8
  readonly popupPlacement: 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/basic/Dropdown/declaration.ts
3
3
  var n = e()({
4
4
  type: "dropdown",
@@ -1,10 +1,10 @@
1
1
  declare const Dropdown: {
2
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./Dropdown').DropdownProps>): import('react').JSX.Element;
2
+ (props: import('../../..').WithElementProps<import('./Dropdown').DropdownProps>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  } & {
5
5
  plugins: {
6
6
  dropdownPopup: {
7
- (props: import('../../../Element/hocs/withElement').WithElementProps<import('./DropdownPopup/DropdownPopup').DropdownPopupProps>): import('react').JSX.Element;
7
+ (props: import('../../..').WithElementProps<import('./DropdownPopup/DropdownPopup').DropdownPopupProps>): import('react').JSX.Element;
8
8
  displayName: string;
9
9
  } & {
10
10
  readonly type: "dropdownPopup";
@@ -55,8 +55,8 @@ declare const Dropdown: {
55
55
  };
56
56
  readonly initialItems: readonly [];
57
57
  } & {
58
- content: import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
59
- } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
58
+ content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
59
+ } & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<unknown>;
60
60
  };
61
61
  type: "dropdown";
62
62
  attributeValues: {
@@ -106,7 +106,7 @@ declare const Dropdown: {
106
106
  };
107
107
  };
108
108
  };
109
- } & import('@plitzi/sdk-shared/authoring/declare').ElementContentDefaults;
109
+ } & import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
110
110
  initialItems: readonly ["dropdownPopup"];
111
111
  __attributes: Partial<{
112
112
  disabled?: boolean | undefined;