@plitzi/sdk-elements 0.37.8 → 0.37.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/CHANGELOG.md +835 -0
  2. package/dist/Element/ElementContext.mjs +2 -3
  3. package/dist/Element/ElementParentContext.mjs +2 -3
  4. package/dist/Element/ElementWords.d.ts +16 -0
  5. package/dist/Element/ElementWords.mjs +19 -0
  6. package/dist/Element/LayoutBody.d.ts +12 -9
  7. package/dist/Element/LayoutBody.mjs +13 -14
  8. package/dist/Element/RootElement.mjs +15 -12
  9. package/dist/Element/helpers/elementConstants.mjs +27 -0
  10. package/dist/Element/helpers/renderStaticTag.d.ts +3 -1
  11. package/dist/Element/helpers/renderStaticTag.mjs +6 -5
  12. package/dist/Element/hooks/useElementDataSource.mjs +20 -19
  13. package/dist/Element/hooks/useElementInternal.mjs +21 -20
  14. package/dist/Element/hooks/useInternalClassName.mjs +1 -1
  15. package/dist/Element/hooks/useInternalItems.mjs +33 -31
  16. package/dist/Element/hooks/useIntervalTriggers.d.ts +17 -0
  17. package/dist/Element/hooks/useIntervalTriggers.mjs +37 -0
  18. package/dist/Element/hooks/useRootElementInteractions.d.ts +6 -2
  19. package/dist/Element/hooks/useRootElementInteractions.mjs +84 -63
  20. package/dist/Element/hooks/useScrollInteractions.d.ts +20 -0
  21. package/dist/Element/hooks/useScrollInteractions.mjs +58 -0
  22. package/dist/components/IconField/IconField.d.ts +8 -0
  23. package/dist/components/IconField/IconField.mjs +41 -0
  24. package/dist/components/IconField/index.d.ts +2 -0
  25. package/dist/components/IconField/index.mjs +2 -0
  26. package/dist/components/IconPicker/IconPicker.d.ts +11 -0
  27. package/dist/components/IconPicker/IconPicker.mjs +82 -0
  28. package/dist/components/IconPicker/index.d.ts +2 -0
  29. package/dist/components/IconPicker/index.mjs +2 -0
  30. package/dist/dataSource/GlobalSources.mjs +102 -83
  31. package/dist/dataSource/useFlag.d.ts +9 -0
  32. package/dist/dataSource/useFlag.mjs +8 -0
  33. package/dist/elements/advanced/BlockHtml/declaration.d.ts +1 -1
  34. package/dist/elements/advanced/BlockHtml/declaration.mjs +1 -1
  35. package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
  36. package/dist/elements/advanced/BlockJsx/Settings.mjs +2 -1
  37. package/dist/elements/advanced/BlockJsx/declaration.d.ts +1 -1
  38. package/dist/elements/advanced/BlockJsx/declaration.mjs +1 -1
  39. package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
  40. package/dist/elements/advanced/Custom/declaration.d.ts +1 -1
  41. package/dist/elements/advanced/Custom/declaration.mjs +1 -1
  42. package/dist/elements/advanced/Custom/index.d.ts +1 -1
  43. package/dist/elements/advanced/NodeHtml/declaration.d.ts +3 -3
  44. package/dist/elements/advanced/NodeHtml/declaration.mjs +1 -1
  45. package/dist/elements/advanced/NodeHtml/index.d.ts +3 -3
  46. package/dist/elements/advanced/Reference/PropField.d.ts +13 -0
  47. package/dist/elements/advanced/Reference/PropField.mjs +65 -0
  48. package/dist/elements/advanced/Reference/Reference.d.ts +5 -6
  49. package/dist/elements/advanced/Reference/Reference.mjs +128 -138
  50. package/dist/elements/advanced/Reference/Settings.d.ts +5 -4
  51. package/dist/elements/advanced/Reference/Settings.mjs +48 -87
  52. package/dist/elements/advanced/Reference/declaration.d.ts +3 -5
  53. package/dist/elements/advanced/Reference/declaration.mjs +3 -4
  54. package/dist/elements/advanced/Reference/index.d.ts +3 -5
  55. package/dist/elements/basic/Button/Button.d.ts +9 -1
  56. package/dist/elements/basic/Button/Button.mjs +31 -19
  57. package/dist/elements/basic/Button/Settings.d.ts +3 -1
  58. package/dist/elements/basic/Button/Settings.mjs +39 -33
  59. package/dist/elements/basic/Button/declaration.d.ts +7 -1
  60. package/dist/elements/basic/Button/declaration.mjs +10 -4
  61. package/dist/elements/basic/Button/index.d.ts +7 -1
  62. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +1 -1
  63. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -1
  64. package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
  65. package/dist/elements/basic/Dropdown/declaration.d.ts +1 -1
  66. package/dist/elements/basic/Dropdown/declaration.mjs +1 -1
  67. package/dist/elements/basic/Dropdown/index.d.ts +2 -2
  68. package/dist/elements/basic/Heading/declaration.d.ts +1 -1
  69. package/dist/elements/basic/Heading/declaration.mjs +1 -1
  70. package/dist/elements/basic/Heading/index.d.ts +1 -1
  71. package/dist/elements/basic/Link/Link.d.ts +20 -1
  72. package/dist/elements/basic/Link/Link.mjs +67 -47
  73. package/dist/elements/basic/Link/Settings.d.ts +6 -1
  74. package/dist/elements/basic/Link/Settings.mjs +91 -58
  75. package/dist/elements/basic/Link/declaration.d.ts +14 -1
  76. package/dist/elements/basic/Link/declaration.mjs +15 -5
  77. package/dist/elements/basic/Link/index.d.ts +14 -1
  78. package/dist/elements/basic/Link/isCurrentPage.d.ts +5 -0
  79. package/dist/elements/basic/Link/isCurrentPage.mjs +12 -0
  80. package/dist/elements/basic/Markdown/declaration.d.ts +1 -1
  81. package/dist/elements/basic/Markdown/declaration.mjs +1 -1
  82. package/dist/elements/basic/Markdown/index.d.ts +1 -1
  83. package/dist/elements/basic/Paragraph/declaration.d.ts +1 -1
  84. package/dist/elements/basic/Paragraph/declaration.mjs +1 -1
  85. package/dist/elements/basic/Paragraph/index.d.ts +1 -1
  86. package/dist/elements/basic/RichText/declaration.d.ts +1 -1
  87. package/dist/elements/basic/RichText/declaration.mjs +1 -1
  88. package/dist/elements/basic/RichText/index.d.ts +1 -1
  89. package/dist/elements/basic/Text/declaration.d.ts +1 -1
  90. package/dist/elements/basic/Text/declaration.mjs +1 -1
  91. package/dist/elements/basic/Text/index.d.ts +1 -1
  92. package/dist/elements/basic/ThemeToggle/declaration.d.ts +1 -1
  93. package/dist/elements/basic/ThemeToggle/declaration.mjs +1 -1
  94. package/dist/elements/basic/ThemeToggle/index.d.ts +1 -1
  95. package/dist/elements/declarations/index.d.ts +364 -44
  96. package/dist/elements/declarations/index.mjs +40 -32
  97. package/dist/elements/form/Form/declaration.d.ts +1 -1
  98. package/dist/elements/form/Form/declaration.mjs +1 -1
  99. package/dist/elements/form/Form/index.d.ts +1 -1
  100. package/dist/elements/form/FormControl/FormControl.mjs +1 -1
  101. package/dist/elements/form/FormControl/declaration.d.ts +1 -1
  102. package/dist/elements/form/FormControl/declaration.mjs +1 -1
  103. package/dist/elements/form/FormControl/index.d.ts +1 -1
  104. package/dist/elements/index.d.ts +7 -1
  105. package/dist/elements/index.mjs +30 -24
  106. package/dist/elements/internal/LayoutContainer/declaration.d.ts +1 -1
  107. package/dist/elements/internal/LayoutContainer/declaration.mjs +1 -1
  108. package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
  109. package/dist/elements/internal/Loading/declaration.d.ts +1 -1
  110. package/dist/elements/internal/Loading/declaration.mjs +1 -1
  111. package/dist/elements/internal/Loading/index.d.ts +1 -1
  112. package/dist/elements/internal/NotFound/declaration.d.ts +1 -1
  113. package/dist/elements/internal/NotFound/declaration.mjs +1 -1
  114. package/dist/elements/internal/NotFound/index.d.ts +1 -1
  115. package/dist/elements/internal/Page/Page.mjs +29 -29
  116. package/dist/elements/internal/Page/declaration.d.ts +1 -1
  117. package/dist/elements/internal/Page/declaration.mjs +1 -1
  118. package/dist/elements/internal/Page/index.d.ts +1 -1
  119. package/dist/elements/media/Embed/Embed.d.ts +22 -0
  120. package/dist/elements/media/Embed/Embed.mjs +29 -0
  121. package/dist/elements/media/Embed/Settings.d.ts +10 -0
  122. package/dist/elements/media/Embed/Settings.mjs +51 -0
  123. package/dist/elements/media/Embed/declaration.d.ts +70 -0
  124. package/dist/elements/media/Embed/declaration.mjs +54 -0
  125. package/dist/elements/media/Embed/embeddableSrc.d.ts +5 -0
  126. package/dist/elements/media/Embed/embeddableSrc.mjs +4 -0
  127. package/dist/elements/media/Embed/index.d.ts +69 -0
  128. package/dist/elements/media/Embed/index.mjs +6 -0
  129. package/dist/elements/media/FontAwesome/Settings.mjs +32 -100
  130. package/dist/elements/media/FontAwesome/declaration.d.ts +1 -1
  131. package/dist/elements/media/FontAwesome/declaration.mjs +1 -1
  132. package/dist/elements/media/FontAwesome/index.d.ts +1 -1
  133. package/dist/elements/media/Image/Image.d.ts +11 -1
  134. package/dist/elements/media/Image/Image.mjs +33 -23
  135. package/dist/elements/media/Image/Settings.d.ts +4 -1
  136. package/dist/elements/media/Image/Settings.mjs +32 -9
  137. package/dist/elements/media/Image/declaration.d.ts +4 -1
  138. package/dist/elements/media/Image/declaration.mjs +1 -1
  139. package/dist/elements/media/Image/index.d.ts +4 -1
  140. package/dist/elements/media/Svg/Settings.d.ts +7 -0
  141. package/dist/elements/media/Svg/Settings.mjs +24 -0
  142. package/dist/elements/media/Svg/Svg.d.ts +16 -0
  143. package/dist/elements/media/Svg/Svg.mjs +31 -0
  144. package/dist/elements/media/Svg/declaration.d.ts +61 -0
  145. package/dist/elements/media/Svg/declaration.mjs +49 -0
  146. package/dist/elements/media/Svg/index.d.ts +60 -0
  147. package/dist/elements/media/Svg/index.mjs +6 -0
  148. package/dist/elements/media/Svg/sanitizeSvg.d.ts +13 -0
  149. package/dist/elements/media/Svg/sanitizeSvg.mjs +5 -0
  150. package/dist/elements/media/Video/declaration.d.ts +1 -1
  151. package/dist/elements/media/Video/declaration.mjs +1 -1
  152. package/dist/elements/media/Video/index.d.ts +1 -1
  153. package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +6 -1
  154. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +118 -112
  155. package/dist/elements/provider/ApiContainer/Settings.d.ts +2 -1
  156. package/dist/elements/provider/ApiContainer/Settings.mjs +45 -37
  157. package/dist/elements/provider/ApiContainer/declaration.d.ts +1 -1
  158. package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
  159. package/dist/elements/provider/ApiContainer/helpers/loadingSlot.d.ts +6 -0
  160. package/dist/elements/provider/ApiContainer/helpers/loadingSlot.mjs +8 -0
  161. package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +12 -12
  162. package/dist/elements/provider/ApiContainer/index.d.ts +1 -1
  163. package/dist/elements/provider/Channel/declaration.d.ts +1 -1
  164. package/dist/elements/provider/Channel/declaration.mjs +1 -1
  165. package/dist/elements/provider/Channel/index.d.ts +1 -1
  166. package/dist/elements/settings.mjs +40 -32
  167. package/dist/elements/structure/Carousel/Carousel.d.ts +32 -0
  168. package/dist/elements/structure/Carousel/Carousel.mjs +183 -0
  169. package/dist/elements/structure/Carousel/CarouselContext.d.ts +29 -0
  170. package/dist/elements/structure/Carousel/CarouselContext.mjs +6 -0
  171. package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +15 -0
  172. package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.mjs +51 -0
  173. package/dist/elements/structure/Carousel/CarouselTrack/Settings.d.ts +2 -0
  174. package/dist/elements/structure/Carousel/CarouselTrack/Settings.mjs +8 -0
  175. package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/CarouselSlide.d.ts +15 -0
  176. package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/CarouselSlide.mjs +28 -0
  177. package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/index.d.ts +2 -0
  178. package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/index.mjs +2 -0
  179. package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/MarqueeTrack.d.ts +18 -0
  180. package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/MarqueeTrack.mjs +41 -0
  181. package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/index.d.ts +2 -0
  182. package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/index.mjs +2 -0
  183. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.d.ts +12 -0
  184. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.mjs +27 -0
  185. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/index.d.ts +2 -0
  186. package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/index.mjs +2 -0
  187. package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +53 -0
  188. package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +44 -0
  189. package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +52 -0
  190. package/dist/elements/structure/Carousel/CarouselTrack/index.mjs +6 -0
  191. package/dist/elements/structure/Carousel/Settings.d.ts +14 -0
  192. package/dist/elements/structure/Carousel/Settings.mjs +97 -0
  193. package/dist/elements/structure/Carousel/carouselIndex.d.ts +13 -0
  194. package/dist/elements/structure/Carousel/carouselIndex.mjs +16 -0
  195. package/dist/elements/structure/Carousel/declaration.d.ts +131 -0
  196. package/dist/elements/structure/Carousel/declaration.mjs +106 -0
  197. package/dist/elements/structure/Carousel/index.d.ts +184 -0
  198. package/dist/elements/structure/Carousel/index.mjs +10 -0
  199. package/dist/elements/structure/Carousel/useAutoplay.d.ts +18 -0
  200. package/dist/elements/structure/Carousel/useAutoplay.mjs +34 -0
  201. package/dist/elements/structure/Container/Container.d.ts +1 -1
  202. package/dist/elements/structure/Container/Settings.d.ts +1 -1
  203. package/dist/elements/structure/Container/Settings.mjs +4 -0
  204. package/dist/elements/structure/Container/declaration.d.ts +2 -2
  205. package/dist/elements/structure/Container/declaration.mjs +3 -2
  206. package/dist/elements/structure/Container/index.d.ts +2 -2
  207. package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -1
  208. package/dist/elements/structure/DialogContainer/declaration.mjs +1 -1
  209. package/dist/elements/structure/DialogContainer/index.d.ts +1 -1
  210. package/dist/elements/structure/List/List.d.ts +6 -1
  211. package/dist/elements/structure/List/List.mjs +2 -1
  212. package/dist/elements/structure/List/ListItem/declaration.d.ts +1 -1
  213. package/dist/elements/structure/List/ListItem/declaration.mjs +1 -1
  214. package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
  215. package/dist/elements/structure/List/Settings.d.ts +2 -1
  216. package/dist/elements/structure/List/Settings.mjs +41 -29
  217. package/dist/elements/structure/List/declaration.d.ts +2 -1
  218. package/dist/elements/structure/List/declaration.mjs +1 -1
  219. package/dist/elements/structure/List/index.d.ts +3 -2
  220. package/dist/elements/structure/List/modes/ListControlled/ListControlled.d.ts +2 -1
  221. package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +36 -35
  222. package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +1 -1
  223. package/dist/elements/structure/List/modes/ListControlled/rowKeys.d.ts +10 -0
  224. package/dist/elements/structure/List/modes/ListControlled/rowKeys.mjs +11 -0
  225. package/dist/elements/structure/ModalContainer/declaration.d.ts +1 -1
  226. package/dist/elements/structure/ModalContainer/declaration.mjs +1 -1
  227. package/dist/elements/structure/ModalContainer/index.d.ts +1 -1
  228. package/dist/elements/structure/ModalContainer/metadataFromText.d.ts +6 -0
  229. package/dist/elements/structure/ModalContainer/metadataFromText.mjs +2 -1
  230. package/dist/elements/structure/Pagination/declaration.d.ts +1 -1
  231. package/dist/elements/structure/Pagination/declaration.mjs +1 -1
  232. package/dist/elements/structure/Pagination/index.d.ts +1 -1
  233. package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +1 -1
  234. package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +1 -1
  235. package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -1
  236. package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +1 -1
  237. package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +1 -1
  238. package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -1
  239. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +1 -1
  240. package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
  241. package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +1 -1
  242. package/dist/elements/structure/TabContainer/declaration.d.ts +1 -1
  243. package/dist/elements/structure/TabContainer/declaration.mjs +1 -1
  244. package/dist/elements/structure/TabContainer/index.d.ts +4 -4
  245. package/dist/index.d.ts +375 -43
  246. package/dist/index.mjs +34 -27
  247. package/package.json +202 -10
@@ -19,59 +19,67 @@ import _ from "../internal/LayoutContainer/declaration.mjs";
19
19
  import v from "../internal/Loading/declaration.mjs";
20
20
  import y from "../internal/NotFound/declaration.mjs";
21
21
  import b from "../internal/Page/declaration.mjs";
22
- import x from "../media/FontAwesome/declaration.mjs";
23
- import S from "../media/Image/declaration.mjs";
24
- import C from "../media/Video/declaration.mjs";
25
- import w from "../provider/ApiContainer/declaration.mjs";
26
- import T from "../provider/Channel/declaration.mjs";
27
- import E from "../structure/Container/declaration.mjs";
28
- import D from "../structure/DialogContainer/declaration.mjs";
29
- import O from "../structure/List/declaration.mjs";
30
- import k from "../structure/List/ListItem/declaration.mjs";
31
- import A from "../structure/ModalContainer/declaration.mjs";
32
- import j from "../structure/Pagination/declaration.mjs";
33
- import M from "../structure/TabContainer/declaration.mjs";
34
- import N from "../structure/TabContainer/TabContainerBody/declaration.mjs";
35
- import P from "../structure/TabContainer/TabContainerHeader/declaration.mjs";
36
- import F from "../structure/TabContainer/TabContainerItem/declaration.mjs";
22
+ import x from "../media/Embed/declaration.mjs";
23
+ import S from "../media/FontAwesome/declaration.mjs";
24
+ import C from "../media/Image/declaration.mjs";
25
+ import w from "../media/Svg/declaration.mjs";
26
+ import T from "../media/Video/declaration.mjs";
27
+ import E from "../provider/ApiContainer/declaration.mjs";
28
+ import D from "../provider/Channel/declaration.mjs";
29
+ import O from "../structure/Carousel/declaration.mjs";
30
+ import k from "../structure/Carousel/CarouselTrack/declaration.mjs";
31
+ import A from "../structure/Container/declaration.mjs";
32
+ import j from "../structure/DialogContainer/declaration.mjs";
33
+ import M from "../structure/List/declaration.mjs";
34
+ import N from "../structure/List/ListItem/declaration.mjs";
35
+ import P from "../structure/ModalContainer/declaration.mjs";
36
+ import F from "../structure/Pagination/declaration.mjs";
37
+ import I from "../structure/TabContainer/declaration.mjs";
38
+ import L from "../structure/TabContainer/TabContainerBody/declaration.mjs";
39
+ import R from "../structure/TabContainer/TabContainerHeader/declaration.mjs";
40
+ import z from "../structure/TabContainer/TabContainerItem/declaration.mjs";
37
41
  //#region src/elements/declarations/index.ts
38
- var I = {
39
- ApiContainer: w,
42
+ var B = {
43
+ ApiContainer: E,
40
44
  BlockHtml: e,
41
45
  BlockJsx: t,
42
46
  Button: a,
43
- Channel: T,
44
- Container: E,
47
+ Carousel: O,
48
+ CarouselTrack: k,
49
+ Channel: D,
50
+ Container: A,
45
51
  Custom: n,
46
- DialogContainer: D,
52
+ DialogContainer: j,
47
53
  Dropdown: o,
48
54
  DropdownPopup: s,
49
- FontAwesome: x,
55
+ Embed: x,
56
+ FontAwesome: S,
50
57
  Form: h,
51
58
  FormControl: g,
52
59
  Heading: c,
53
- Image: S,
60
+ Image: C,
54
61
  LayoutContainer: _,
55
62
  Link: l,
56
- List: O,
57
- ListItem: k,
63
+ List: M,
64
+ ListItem: N,
58
65
  Loading: v,
59
66
  Markdown: u,
60
- ModalContainer: A,
67
+ ModalContainer: P,
61
68
  NodeHtml: r,
62
69
  NotFound: y,
63
70
  Page: b,
64
- Pagination: j,
71
+ Pagination: F,
65
72
  Paragraph: d,
66
73
  Reference: i,
67
74
  RichText: f,
68
- TabContainer: M,
69
- TabContainerBody: N,
70
- TabContainerHeader: P,
71
- TabContainerItem: F,
75
+ Svg: w,
76
+ TabContainer: I,
77
+ TabContainerBody: L,
78
+ TabContainerHeader: R,
79
+ TabContainerItem: z,
72
80
  Text: p,
73
81
  ThemeToggle: m,
74
- Video: C
82
+ Video: T
75
83
  };
76
84
  //#endregion
77
- export { w as ApiContainerDeclaration, e as BlockHtmlDeclaration, t as BlockJsxDeclaration, a as ButtonDeclaration, T as ChannelDeclaration, E as ContainerDeclaration, n as CustomDeclaration, D as DialogContainerDeclaration, o as DropdownDeclaration, s as DropdownPopupDeclaration, x as FontAwesomeDeclaration, g as FormControlDeclaration, h as FormDeclaration, c as HeadingDeclaration, S as ImageDeclaration, _ as LayoutContainerDeclaration, l as LinkDeclaration, O as ListDeclaration, k as ListItemDeclaration, v as LoadingDeclaration, u as MarkdownDeclaration, A as ModalContainerDeclaration, r as NodeHtmlDeclaration, y as NotFoundDeclaration, b as PageDeclaration, j as PaginationDeclaration, d as ParagraphDeclaration, i as ReferenceDeclaration, f as RichTextDeclaration, N as TabContainerBodyDeclaration, M as TabContainerDeclaration, P as TabContainerHeaderDeclaration, F as TabContainerItemDeclaration, p as TextDeclaration, m as ThemeToggleDeclaration, C as VideoDeclaration, I as elementDeclarations };
85
+ export { E as ApiContainerDeclaration, e as BlockHtmlDeclaration, t as BlockJsxDeclaration, a as ButtonDeclaration, O as CarouselDeclaration, k as CarouselTrackDeclaration, D as ChannelDeclaration, A as ContainerDeclaration, n as CustomDeclaration, j as DialogContainerDeclaration, o as DropdownDeclaration, s as DropdownPopupDeclaration, x as EmbedDeclaration, S as FontAwesomeDeclaration, g as FormControlDeclaration, h as FormDeclaration, c as HeadingDeclaration, C as ImageDeclaration, _ as LayoutContainerDeclaration, l as LinkDeclaration, M as ListDeclaration, N as ListItemDeclaration, v as LoadingDeclaration, u as MarkdownDeclaration, P as ModalContainerDeclaration, r as NodeHtmlDeclaration, y as NotFoundDeclaration, b as PageDeclaration, F as PaginationDeclaration, d as ParagraphDeclaration, i as ReferenceDeclaration, f as RichTextDeclaration, w as SvgDeclaration, L as TabContainerBodyDeclaration, I as TabContainerDeclaration, R as TabContainerHeaderDeclaration, z as TabContainerItemDeclaration, p as TextDeclaration, m as ThemeToggleDeclaration, T as VideoDeclaration, B as elementDeclarations };
@@ -92,7 +92,7 @@ declare const declaration: {
92
92
  readonly canSelect: true;
93
93
  readonly canDragDrop: true;
94
94
  readonly canMove: true;
95
- readonly canTemplate: true;
95
+ readonly canSnippet: true;
96
96
  readonly itemsAllowed: readonly [];
97
97
  readonly itemsNotAllowed: readonly [];
98
98
  };
@@ -82,7 +82,7 @@ var n = e()({
82
82
  canSelect: !0,
83
83
  canDragDrop: !0,
84
84
  canMove: !0,
85
- canTemplate: !0,
85
+ canSnippet: !0,
86
86
  itemsAllowed: [],
87
87
  itemsNotAllowed: []
88
88
  },
@@ -38,7 +38,7 @@ declare const Form: {
38
38
  readonly canSelect: true;
39
39
  readonly canDragDrop: true;
40
40
  readonly canMove: true;
41
- readonly canTemplate: true;
41
+ readonly canSnippet: true;
42
42
  readonly itemsAllowed: readonly [];
43
43
  readonly itemsNotAllowed: readonly [];
44
44
  };
@@ -19,7 +19,7 @@ import y from "clsx";
19
19
  var b = ({ ref: e, className: o = "", subType: b = "text", name: x = "", label: S = "Label", hideLabel: C = !1, placeholder: w = "", autoComplete: T = !0, autoFocus: E = !1, disabled: D = !1, options: O = [], required: k = !0, maxLength: A = 0, readOnly: j = !1, value: M = "", error: N = "", handleChange: P, handleValidate: F }) => {
20
20
  let { id: I, rootId: L, visible: R, definition: { styleSelectors: z } } = t(), { settings: { previewMode: B }, contexts: { InteractionsContext: V } } = h(), { interactionsManager: H } = f(V), { useStore: U } = g(), [W] = U("runtime.sources.form"), G = p((e) => {
21
21
  if (P?.(e), !B) return;
22
- let t = e.target, n = t.type === "checkbox" || b === "switch" ? t.checked : t.value;
22
+ let { target: t } = e, n = t instanceof HTMLInputElement && (t.type === "checkbox" || b === "switch") ? t.checked : t.value;
23
23
  H.interactionTrigger(I, "onChange", {
24
24
  value: n,
25
25
  name: x
@@ -68,7 +68,7 @@ declare const declaration: {
68
68
  readonly canSelect: true;
69
69
  readonly canDragDrop: true;
70
70
  readonly canMove: true;
71
- readonly canTemplate: false;
71
+ readonly canSnippet: false;
72
72
  readonly itemsAllowed: readonly [];
73
73
  readonly itemsNotAllowed: readonly [];
74
74
  };
@@ -113,7 +113,7 @@ var n = {
113
113
  canSelect: !0,
114
114
  canDragDrop: !0,
115
115
  canMove: !0,
116
- canTemplate: !1,
116
+ canSnippet: !1,
117
117
  itemsAllowed: [],
118
118
  itemsNotAllowed: []
119
119
  },
@@ -56,7 +56,7 @@ declare const FormControl: {
56
56
  readonly canSelect: true;
57
57
  readonly canDragDrop: true;
58
58
  readonly canMove: true;
59
- readonly canTemplate: false;
59
+ readonly canSnippet: false;
60
60
  readonly itemsAllowed: readonly [];
61
61
  readonly itemsNotAllowed: readonly [];
62
62
  };
@@ -18,11 +18,14 @@ import { default as LayoutContainer } from './internal/LayoutContainer';
18
18
  import { default as Loading } from './internal/Loading';
19
19
  import { default as NotFound } from './internal/NotFound';
20
20
  import { default as Page } from './internal/Page';
21
+ import { default as Embed } from './media/Embed';
21
22
  import { default as FontAwesome } from './media/FontAwesome';
22
23
  import { default as Image } from './media/Image';
24
+ import { default as Svg } from './media/Svg';
23
25
  import { default as Video } from './media/Video';
24
26
  import { default as ApiContainer } from './provider/ApiContainer';
25
27
  import { default as Channel } from './provider/Channel';
28
+ import { default as Carousel } from './structure/Carousel';
26
29
  import { default as Container } from './structure/Container';
27
30
  import { default as DialogContainer } from './structure/DialogContainer';
28
31
  import { default as List } from './structure/List';
@@ -49,7 +52,9 @@ export * from './internal/LayoutContainer';
49
52
  export * from './internal/Loading';
50
53
  export * from './internal/Page';
51
54
  export * from './media/FontAwesome';
55
+ export * from './media/Embed';
52
56
  export * from './media/Image';
57
+ export * from './media/Svg';
53
58
  export * from './media/Video';
54
59
  export * from './provider/ApiContainer';
55
60
  export * from './provider/Channel';
@@ -58,5 +63,6 @@ export * from './structure/DialogContainer';
58
63
  export * from './structure/List';
59
64
  export * from './structure/ModalContainer';
60
65
  export * from './structure/Pagination';
66
+ export * from './structure/Carousel';
61
67
  export * from './structure/TabContainer';
62
- export { NodeHtml, Dropdown, NotFound, Loading, Custom, Reference, BlockHtml, BlockJsx, Page, Container, LayoutContainer, DialogContainer, ModalContainer, TabContainer, Heading, Image, Video, FontAwesome, Button, Paragraph, RichText, Text, ThemeToggle, List, Link, Markdown, Pagination, Form, FormControl, ApiContainer, Channel };
68
+ export { NodeHtml, Dropdown, NotFound, Loading, Custom, Reference, BlockHtml, BlockJsx, Page, Container, LayoutContainer, DialogContainer, ModalContainer, TabContainer, Carousel, Heading, Image, Video, Embed, Svg, FontAwesome, Button, Paragraph, RichText, Text, ThemeToggle, List, Link, Markdown, Pagination, Form, FormControl, ApiContainer, Channel };
@@ -19,50 +19,56 @@ import _ from "./internal/LayoutContainer/index.mjs";
19
19
  import v from "./internal/Loading/index.mjs";
20
20
  import { NotFound as y } from "./internal/NotFound/index.mjs";
21
21
  import b from "./internal/Page/index.mjs";
22
- import x from "./media/FontAwesome/index.mjs";
23
- import S from "./media/Image/index.mjs";
24
- import C from "./media/Video/index.mjs";
25
- import w from "./provider/ApiContainer/index.mjs";
26
- import T from "./provider/Channel/index.mjs";
27
- import E from "./structure/Container/index.mjs";
28
- import D from "./structure/DialogContainer/index.mjs";
29
- import O from "./structure/List/index.mjs";
30
- import k from "./structure/ModalContainer/index.mjs";
31
- import A from "./structure/Pagination/index.mjs";
32
- import j from "./structure/TabContainer/index.mjs";
22
+ import x from "./media/Embed/index.mjs";
23
+ import S from "./media/FontAwesome/index.mjs";
24
+ import C from "./media/Image/index.mjs";
25
+ import w from "./media/Svg/index.mjs";
26
+ import T from "./media/Video/index.mjs";
27
+ import E from "./provider/ApiContainer/index.mjs";
28
+ import D from "./provider/Channel/index.mjs";
29
+ import O from "./structure/Carousel/index.mjs";
30
+ import k from "./structure/Container/index.mjs";
31
+ import A from "./structure/DialogContainer/index.mjs";
32
+ import j from "./structure/List/index.mjs";
33
+ import M from "./structure/ModalContainer/index.mjs";
34
+ import N from "./structure/Pagination/index.mjs";
35
+ import P from "./structure/TabContainer/index.mjs";
33
36
  //#region src/elements/index.ts
34
- var M = /* @__PURE__ */ e({
35
- ApiContainer: () => w,
37
+ var F = /* @__PURE__ */ e({
38
+ ApiContainer: () => E,
36
39
  BlockHtml: () => t,
37
40
  BlockJsx: () => n,
38
41
  Button: () => o,
39
- Channel: () => T,
40
- Container: () => E,
42
+ Carousel: () => O,
43
+ Channel: () => D,
44
+ Container: () => k,
41
45
  Custom: () => r,
42
- DialogContainer: () => D,
46
+ DialogContainer: () => A,
43
47
  Dropdown: () => s,
44
- FontAwesome: () => x,
48
+ Embed: () => x,
49
+ FontAwesome: () => S,
45
50
  Form: () => h,
46
51
  FormControl: () => g,
47
52
  Heading: () => c,
48
- Image: () => S,
53
+ Image: () => C,
49
54
  LayoutContainer: () => _,
50
55
  Link: () => l,
51
- List: () => O,
56
+ List: () => j,
52
57
  Loading: () => v,
53
58
  Markdown: () => u,
54
- ModalContainer: () => k,
59
+ ModalContainer: () => M,
55
60
  NodeHtml: () => i,
56
61
  NotFound: () => y,
57
62
  Page: () => b,
58
- Pagination: () => A,
63
+ Pagination: () => N,
59
64
  Paragraph: () => d,
60
65
  Reference: () => a,
61
66
  RichText: () => f,
62
- TabContainer: () => j,
67
+ Svg: () => w,
68
+ TabContainer: () => P,
63
69
  Text: () => p,
64
70
  ThemeToggle: () => m,
65
- Video: () => C
71
+ Video: () => T
66
72
  });
67
73
  //#endregion
68
- export { w as ApiContainer, t as BlockHtml, n as BlockJsx, o as Button, T as Channel, E as Container, r as Custom, D as DialogContainer, s as Dropdown, x as FontAwesome, h as Form, g as FormControl, c as Heading, S as Image, _ as LayoutContainer, l as Link, O as List, v as Loading, u as Markdown, k as ModalContainer, i as NodeHtml, y as NotFound, b as Page, A as Pagination, d as Paragraph, a as Reference, f as RichText, j as TabContainer, p as Text, m as ThemeToggle, C as Video, M as elements_exports };
74
+ export { E as ApiContainer, t as BlockHtml, n as BlockJsx, o as Button, O as Carousel, D as Channel, k as Container, r as Custom, A as DialogContainer, s as Dropdown, x as Embed, S as FontAwesome, h as Form, g as FormControl, c as Heading, C as Image, _ as LayoutContainer, l as Link, j as List, v as Loading, u as Markdown, M as ModalContainer, i as NodeHtml, y as NotFound, b as Page, N as Pagination, d as Paragraph, a as Reference, f as RichText, w as Svg, P as TabContainer, p as Text, m as ThemeToggle, T as Video, F as elements_exports };
@@ -29,7 +29,7 @@ declare const declaration: {
29
29
  readonly canSelect: true;
30
30
  readonly canDragDrop: false;
31
31
  readonly canMove: true;
32
- readonly canTemplate: true;
32
+ readonly canSnippet: true;
33
33
  readonly itemsAllowed: readonly [];
34
34
  readonly itemsNotAllowed: readonly [];
35
35
  };
@@ -30,7 +30,7 @@ var n = e()({
30
30
  canSelect: !0,
31
31
  canDragDrop: !1,
32
32
  canMove: !0,
33
- canTemplate: !0,
33
+ canSnippet: !0,
34
34
  itemsAllowed: [],
35
35
  itemsNotAllowed: []
36
36
  },
@@ -28,7 +28,7 @@ declare const LayoutContainer: {
28
28
  readonly canSelect: true;
29
29
  readonly canDragDrop: false;
30
30
  readonly canMove: true;
31
- readonly canTemplate: true;
31
+ readonly canSnippet: true;
32
32
  readonly itemsAllowed: readonly [];
33
33
  readonly itemsNotAllowed: readonly [];
34
34
  };
@@ -23,7 +23,7 @@ declare const declaration: {
23
23
  readonly canSelect: true;
24
24
  readonly canDragDrop: false;
25
25
  readonly canMove: true;
26
- readonly canTemplate: true;
26
+ readonly canSnippet: true;
27
27
  readonly itemsAllowed: readonly [];
28
28
  readonly itemsNotAllowed: readonly [];
29
29
  };
@@ -17,7 +17,7 @@ var t = e()({
17
17
  canSelect: !0,
18
18
  canDragDrop: !1,
19
19
  canMove: !0,
20
- canTemplate: !0,
20
+ canSnippet: !0,
21
21
  itemsAllowed: [],
22
22
  itemsNotAllowed: []
23
23
  },
@@ -22,7 +22,7 @@ declare const Loading: {
22
22
  readonly canSelect: true;
23
23
  readonly canDragDrop: false;
24
24
  readonly canMove: true;
25
- readonly canTemplate: true;
25
+ readonly canSnippet: true;
26
26
  readonly itemsAllowed: readonly [];
27
27
  readonly itemsNotAllowed: readonly [];
28
28
  };
@@ -23,7 +23,7 @@ declare const declaration: {
23
23
  readonly canSelect: true;
24
24
  readonly canDragDrop: false;
25
25
  readonly canMove: true;
26
- readonly canTemplate: true;
26
+ readonly canSnippet: true;
27
27
  readonly itemsAllowed: readonly [];
28
28
  readonly itemsNotAllowed: readonly [];
29
29
  };
@@ -17,7 +17,7 @@ var t = e()({
17
17
  canSelect: !0,
18
18
  canDragDrop: !1,
19
19
  canMove: !0,
20
- canTemplate: !0,
20
+ canSnippet: !0,
21
21
  itemsAllowed: [],
22
22
  itemsNotAllowed: []
23
23
  },
@@ -22,7 +22,7 @@ declare const NotFound: {
22
22
  readonly canSelect: true;
23
23
  readonly canDragDrop: false;
24
24
  readonly canMove: true;
25
- readonly canTemplate: true;
25
+ readonly canSnippet: true;
26
26
  readonly itemsAllowed: readonly [];
27
27
  readonly itemsNotAllowed: readonly [];
28
28
  };
@@ -7,56 +7,56 @@ import a from "./declaration.mjs";
7
7
  import o from "../../../Element/hooks/useLayoutChain.mjs";
8
8
  import { use as s, useEffect as c, useMemo as l } from "react";
9
9
  import u from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
10
- import { useSdkStore as d } from "@plitzi/sdk-shared/store";
11
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
12
- import m from "clsx";
13
- import { Helmet as h } from "@dr.pogodin/react-helmet";
10
+ import { useRenderSettings as d, useSdkStore as f } from "@plitzi/sdk-shared/store";
11
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
12
+ import h from "clsx";
13
+ import { Helmet as g } from "@dr.pogodin/react-helmet";
14
14
  //#region src/elements/internal/Page/Page.tsx
15
- var g = (e) => e.map((e) => ({
15
+ var _ = (e) => e.map((e) => ({
16
16
  ...e,
17
17
  plitziElementLayout: {
18
- containerId: e.slot,
18
+ slots: [e.slot],
19
19
  rootId: e.slot,
20
20
  type: "layout"
21
21
  }
22
- })), _ = (t, n, r) => t.reduce((t, { layout: r, slot: a, plitziElementLayout: o }) => /* @__PURE__ */ f(e, {
23
- body: t,
24
- children: /* @__PURE__ */ f(i, { internalProps: {
22
+ })), v = (t, n, r) => t.reduce((t, { layout: r, slot: a, plitziElementLayout: o }) => /* @__PURE__ */ p(e, {
23
+ bodies: { [a]: t },
24
+ children: /* @__PURE__ */ p(i, { internalProps: {
25
25
  id: r,
26
26
  rootId: n,
27
27
  plitziElementLayout: o
28
28
  } })
29
- }, a), r), v = ({ ref: e, seoEnabled: t = !1, seoPageTitle: i = "Title", seoPageDescription: v = "Description", className: y = "", layout: b = "", layoutContainer: x = "", children: S }) => {
30
- let { id: C } = n(), { settings: { previewMode: w }, contexts: { InteractionsContext: T } } = u(), { interactionsManager: E } = s(T), [[D, O]] = d(["navigation.routeParams", "navigation.queryParams"]), k = o(b, x), A = l(() => g(k), [k]), j = l(() => _(A, C, S), [
31
- A,
32
- C,
33
- S
29
+ }, a), r), y = ({ ref: e, seoEnabled: t = !1, seoPageTitle: i = "Title", seoPageDescription: y = "Description", className: b = "", layout: x = "", layoutContainer: S = "", children: C }) => {
30
+ let { id: w } = n(), { settings: { previewMode: T }, contexts: { InteractionsContext: E } } = u(), { interactionsManager: D } = s(E), { ownsHead: O } = d(), [[k, A]] = f(["navigation.routeParams", "navigation.queryParams"]), j = o(x, S), M = l(() => _(j), [j]), N = l(() => v(M, w, C), [
31
+ M,
32
+ w,
33
+ C
34
34
  ]);
35
35
  return c(() => {
36
36
  let e = !1;
37
37
  return queueMicrotask(() => {
38
- e || E.interactionTrigger(C, "onPageLoad", {
39
- pageId: C,
40
- routeParams: D,
41
- queryParams: O
38
+ e || D.interactionTrigger(w, "onPageLoad", {
39
+ pageId: w,
40
+ routeParams: k,
41
+ queryParams: A
42
42
  });
43
43
  }), () => {
44
44
  e = !0;
45
45
  };
46
46
  }, [
47
- C,
48
- E,
49
- O,
50
- D
51
- ]), /* @__PURE__ */ p(r, {
47
+ w,
48
+ D,
49
+ A,
50
+ k
51
+ ]), /* @__PURE__ */ m(r, {
52
52
  ref: e,
53
- className: m("plitzi-component__page", y),
53
+ className: h("plitzi-component__page", b),
54
54
  interactionTriggers: a.triggers,
55
- children: [t && w && /* @__PURE__ */ p(h, { children: [!!i && /* @__PURE__ */ f("title", { children: i }), !!v && /* @__PURE__ */ f("meta", {
55
+ children: [t && T && O && /* @__PURE__ */ m(g, { children: [!!i && /* @__PURE__ */ p("title", { children: i }), !!y && /* @__PURE__ */ p("meta", {
56
56
  name: "description",
57
- content: v
58
- })] }), j]
57
+ content: y
58
+ })] }), N]
59
59
  });
60
- }, y = t(v);
60
+ }, b = t(y);
61
61
  //#endregion
62
- export { v as Page, y as default };
62
+ export { y as Page, b as default };
@@ -47,7 +47,7 @@ declare const declaration: {
47
47
  readonly canSelect: true;
48
48
  readonly canDragDrop: false;
49
49
  readonly canMove: false;
50
- readonly canTemplate: true;
50
+ readonly canSnippet: true;
51
51
  readonly itemsAllowed: readonly [];
52
52
  readonly itemsNotAllowed: readonly [];
53
53
  };
@@ -39,7 +39,7 @@ var t = e()({
39
39
  canSelect: !0,
40
40
  canDragDrop: !1,
41
41
  canMove: !1,
42
- canTemplate: !0,
42
+ canSnippet: !0,
43
43
  itemsAllowed: [],
44
44
  itemsNotAllowed: []
45
45
  },
@@ -46,7 +46,7 @@ declare const Page: {
46
46
  readonly canSelect: true;
47
47
  readonly canDragDrop: false;
48
48
  readonly canMove: false;
49
- readonly canTemplate: true;
49
+ readonly canSnippet: true;
50
50
  readonly itemsAllowed: readonly [];
51
51
  readonly itemsNotAllowed: readonly [];
52
52
  };
@@ -0,0 +1,22 @@
1
+ import { RefObject } from 'react';
2
+ export type EmbedProps = {
3
+ ref?: RefObject<HTMLElement>;
4
+ /** The page shown: an `https:` address, or a path of this site. Anything else is not loaded. */
5
+ src?: string;
6
+ /** What the frame shows, in words — what a screen reader announces for it. */
7
+ title?: string;
8
+ loading?: 'lazy' | 'eager';
9
+ /** The features the page inside may use: `fullscreen; clipboard-write`. */
10
+ allow?: string;
11
+ /** Restrictions on the page inside — `allow-scripts allow-same-origin` — or nothing, for none. */
12
+ sandbox?: string;
13
+ referrerPolicy?: 'no-referrer' | 'origin' | 'strict-origin-when-cross-origin' | 'no-referrer-when-downgrade';
14
+ className?: string;
15
+ };
16
+ declare const Embed: ({ ref, src, title, loading, allow, sandbox, referrerPolicy, className }: EmbedProps) => import('react').JSX.Element;
17
+ declare const _default: {
18
+ (props: import('../../../Element/hocs/withElement').WithElementProps<EmbedProps>): import('react').JSX.Element;
19
+ displayName: string;
20
+ };
21
+ export default _default;
22
+ export { Embed };
@@ -0,0 +1,29 @@
1
+ import e from "../../../Element/hocs/withElement.mjs";
2
+ import { RootElement as t } from "../../../Element/RootElement.mjs";
3
+ import { embeddableSrc as n } from "./embeddableSrc.mjs";
4
+ import r from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import o from "clsx";
7
+ //#region src/elements/media/Embed/Embed.tsx
8
+ var s = ({ ref: e, src: s = "", title: c = "", loading: l = "lazy", allow: u = "", sandbox: d, referrerPolicy: f = "strict-origin-when-cross-origin", className: p = "" }) => {
9
+ let { settings: { previewMode: m } } = r(), h = n(s), g = {
10
+ src: h,
11
+ title: c,
12
+ loading: l,
13
+ referrerPolicy: f,
14
+ ...u ? { allow: u } : {},
15
+ ...d === void 0 ? {} : { sandbox: d }
16
+ };
17
+ return m ? /* @__PURE__ */ i(t, {
18
+ tag: "iframe",
19
+ ref: e,
20
+ className: o("plitzi-component__embed", p),
21
+ ...g
22
+ }) : /* @__PURE__ */ a(t, {
23
+ ref: e,
24
+ className: o("plitzi-component__embed embed--edit-mode", p),
25
+ children: [h && /* @__PURE__ */ i("iframe", { ...g }), /* @__PURE__ */ i("div", { className: "embed__cover" })]
26
+ });
27
+ }, c = e(s);
28
+ //#endregion
29
+ export { s as Embed, c as default };
@@ -0,0 +1,10 @@
1
+ type SettingsProps = {
2
+ src?: string;
3
+ title?: string;
4
+ loading?: 'lazy' | 'eager';
5
+ allow?: string;
6
+ sandbox?: string;
7
+ onUpdate?: (key: string, value: string | boolean | number) => void;
8
+ };
9
+ declare const Settings: ({ src, title, loading, allow, sandbox, onUpdate }: SettingsProps) => import('react').JSX.Element;
10
+ export default Settings;
@@ -0,0 +1,51 @@
1
+ import { useCallback as e } from "react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import r from "@plitzi/plitzi-ui/Input";
4
+ import i from "@plitzi/plitzi-ui/Select";
5
+ //#region src/elements/media/Embed/Settings.tsx
6
+ var a = ({ src: a = "", title: o = "", loading: s = "lazy", allow: c = "", sandbox: l = "", onUpdate: u }) => {
7
+ let d = e((e) => (t) => u?.(e, t), [u]);
8
+ return /* @__PURE__ */ n("div", {
9
+ className: "flex h-full flex-col gap-4 py-2",
10
+ children: [
11
+ /* @__PURE__ */ t(r, {
12
+ value: a,
13
+ label: "Url",
14
+ placeholder: "https://…",
15
+ onChange: d("src")
16
+ }),
17
+ /* @__PURE__ */ t(r, {
18
+ value: o,
19
+ label: "Title",
20
+ placeholder: "What the frame shows",
21
+ onChange: d("title")
22
+ }),
23
+ /* @__PURE__ */ n(i, {
24
+ label: "Loading",
25
+ value: s,
26
+ onChange: d("loading"),
27
+ children: [/* @__PURE__ */ t("option", {
28
+ value: "lazy",
29
+ children: "When it is about to be seen"
30
+ }), /* @__PURE__ */ t("option", {
31
+ value: "eager",
32
+ children: "With the page"
33
+ })]
34
+ }),
35
+ /* @__PURE__ */ t(r, {
36
+ value: c,
37
+ label: "Allow",
38
+ placeholder: "fullscreen; clipboard-write",
39
+ onChange: d("allow")
40
+ }),
41
+ /* @__PURE__ */ t(r, {
42
+ value: l,
43
+ label: "Sandbox",
44
+ placeholder: "allow-scripts allow-same-origin",
45
+ onChange: d("sandbox")
46
+ })
47
+ ]
48
+ });
49
+ };
50
+ //#endregion
51
+ export { a as default };