@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.
- package/CHANGELOG.md +835 -0
- package/dist/Element/ElementContext.mjs +2 -3
- package/dist/Element/ElementParentContext.mjs +2 -3
- package/dist/Element/ElementWords.d.ts +16 -0
- package/dist/Element/ElementWords.mjs +19 -0
- package/dist/Element/LayoutBody.d.ts +12 -9
- package/dist/Element/LayoutBody.mjs +13 -14
- package/dist/Element/RootElement.mjs +15 -12
- package/dist/Element/helpers/elementConstants.mjs +27 -0
- package/dist/Element/helpers/renderStaticTag.d.ts +3 -1
- package/dist/Element/helpers/renderStaticTag.mjs +6 -5
- package/dist/Element/hooks/useElementDataSource.mjs +20 -19
- package/dist/Element/hooks/useElementInternal.mjs +21 -20
- package/dist/Element/hooks/useInternalClassName.mjs +1 -1
- package/dist/Element/hooks/useInternalItems.mjs +33 -31
- package/dist/Element/hooks/useIntervalTriggers.d.ts +17 -0
- package/dist/Element/hooks/useIntervalTriggers.mjs +37 -0
- package/dist/Element/hooks/useRootElementInteractions.d.ts +6 -2
- package/dist/Element/hooks/useRootElementInteractions.mjs +84 -63
- package/dist/Element/hooks/useScrollInteractions.d.ts +20 -0
- package/dist/Element/hooks/useScrollInteractions.mjs +58 -0
- package/dist/components/IconField/IconField.d.ts +8 -0
- package/dist/components/IconField/IconField.mjs +41 -0
- package/dist/components/IconField/index.d.ts +2 -0
- package/dist/components/IconField/index.mjs +2 -0
- package/dist/components/IconPicker/IconPicker.d.ts +11 -0
- package/dist/components/IconPicker/IconPicker.mjs +82 -0
- package/dist/components/IconPicker/index.d.ts +2 -0
- package/dist/components/IconPicker/index.mjs +2 -0
- package/dist/dataSource/GlobalSources.mjs +102 -83
- package/dist/dataSource/useFlag.d.ts +9 -0
- package/dist/dataSource/useFlag.mjs +8 -0
- package/dist/elements/advanced/BlockHtml/declaration.d.ts +1 -1
- package/dist/elements/advanced/BlockHtml/declaration.mjs +1 -1
- package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/Settings.mjs +2 -1
- package/dist/elements/advanced/BlockJsx/declaration.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/declaration.mjs +1 -1
- package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
- package/dist/elements/advanced/Custom/declaration.d.ts +1 -1
- package/dist/elements/advanced/Custom/declaration.mjs +1 -1
- package/dist/elements/advanced/Custom/index.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +3 -3
- package/dist/elements/advanced/NodeHtml/declaration.mjs +1 -1
- package/dist/elements/advanced/NodeHtml/index.d.ts +3 -3
- package/dist/elements/advanced/Reference/PropField.d.ts +13 -0
- package/dist/elements/advanced/Reference/PropField.mjs +65 -0
- package/dist/elements/advanced/Reference/Reference.d.ts +5 -6
- package/dist/elements/advanced/Reference/Reference.mjs +128 -138
- package/dist/elements/advanced/Reference/Settings.d.ts +5 -4
- package/dist/elements/advanced/Reference/Settings.mjs +48 -87
- package/dist/elements/advanced/Reference/declaration.d.ts +3 -5
- package/dist/elements/advanced/Reference/declaration.mjs +3 -4
- package/dist/elements/advanced/Reference/index.d.ts +3 -5
- package/dist/elements/basic/Button/Button.d.ts +9 -1
- package/dist/elements/basic/Button/Button.mjs +31 -19
- package/dist/elements/basic/Button/Settings.d.ts +3 -1
- package/dist/elements/basic/Button/Settings.mjs +39 -33
- package/dist/elements/basic/Button/declaration.d.ts +7 -1
- package/dist/elements/basic/Button/declaration.mjs +10 -4
- package/dist/elements/basic/Button/index.d.ts +7 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
- package/dist/elements/basic/Dropdown/declaration.d.ts +1 -1
- package/dist/elements/basic/Dropdown/declaration.mjs +1 -1
- package/dist/elements/basic/Dropdown/index.d.ts +2 -2
- package/dist/elements/basic/Heading/declaration.d.ts +1 -1
- package/dist/elements/basic/Heading/declaration.mjs +1 -1
- package/dist/elements/basic/Heading/index.d.ts +1 -1
- package/dist/elements/basic/Link/Link.d.ts +20 -1
- package/dist/elements/basic/Link/Link.mjs +67 -47
- package/dist/elements/basic/Link/Settings.d.ts +6 -1
- package/dist/elements/basic/Link/Settings.mjs +91 -58
- package/dist/elements/basic/Link/declaration.d.ts +14 -1
- package/dist/elements/basic/Link/declaration.mjs +15 -5
- package/dist/elements/basic/Link/index.d.ts +14 -1
- package/dist/elements/basic/Link/isCurrentPage.d.ts +5 -0
- package/dist/elements/basic/Link/isCurrentPage.mjs +12 -0
- package/dist/elements/basic/Markdown/declaration.d.ts +1 -1
- package/dist/elements/basic/Markdown/declaration.mjs +1 -1
- package/dist/elements/basic/Markdown/index.d.ts +1 -1
- package/dist/elements/basic/Paragraph/declaration.d.ts +1 -1
- package/dist/elements/basic/Paragraph/declaration.mjs +1 -1
- package/dist/elements/basic/Paragraph/index.d.ts +1 -1
- package/dist/elements/basic/RichText/declaration.d.ts +1 -1
- package/dist/elements/basic/RichText/declaration.mjs +1 -1
- package/dist/elements/basic/RichText/index.d.ts +1 -1
- package/dist/elements/basic/Text/declaration.d.ts +1 -1
- package/dist/elements/basic/Text/declaration.mjs +1 -1
- package/dist/elements/basic/Text/index.d.ts +1 -1
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +1 -1
- package/dist/elements/basic/ThemeToggle/declaration.mjs +1 -1
- package/dist/elements/basic/ThemeToggle/index.d.ts +1 -1
- package/dist/elements/declarations/index.d.ts +364 -44
- package/dist/elements/declarations/index.mjs +40 -32
- package/dist/elements/form/Form/declaration.d.ts +1 -1
- package/dist/elements/form/Form/declaration.mjs +1 -1
- package/dist/elements/form/Form/index.d.ts +1 -1
- package/dist/elements/form/FormControl/FormControl.mjs +1 -1
- package/dist/elements/form/FormControl/declaration.d.ts +1 -1
- package/dist/elements/form/FormControl/declaration.mjs +1 -1
- package/dist/elements/form/FormControl/index.d.ts +1 -1
- package/dist/elements/index.d.ts +7 -1
- package/dist/elements/index.mjs +30 -24
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/declaration.mjs +1 -1
- package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
- package/dist/elements/internal/Loading/declaration.d.ts +1 -1
- package/dist/elements/internal/Loading/declaration.mjs +1 -1
- package/dist/elements/internal/Loading/index.d.ts +1 -1
- package/dist/elements/internal/NotFound/declaration.d.ts +1 -1
- package/dist/elements/internal/NotFound/declaration.mjs +1 -1
- package/dist/elements/internal/NotFound/index.d.ts +1 -1
- package/dist/elements/internal/Page/Page.mjs +29 -29
- package/dist/elements/internal/Page/declaration.d.ts +1 -1
- package/dist/elements/internal/Page/declaration.mjs +1 -1
- package/dist/elements/internal/Page/index.d.ts +1 -1
- package/dist/elements/media/Embed/Embed.d.ts +22 -0
- package/dist/elements/media/Embed/Embed.mjs +29 -0
- package/dist/elements/media/Embed/Settings.d.ts +10 -0
- package/dist/elements/media/Embed/Settings.mjs +51 -0
- package/dist/elements/media/Embed/declaration.d.ts +70 -0
- package/dist/elements/media/Embed/declaration.mjs +54 -0
- package/dist/elements/media/Embed/embeddableSrc.d.ts +5 -0
- package/dist/elements/media/Embed/embeddableSrc.mjs +4 -0
- package/dist/elements/media/Embed/index.d.ts +69 -0
- package/dist/elements/media/Embed/index.mjs +6 -0
- package/dist/elements/media/FontAwesome/Settings.mjs +32 -100
- package/dist/elements/media/FontAwesome/declaration.d.ts +1 -1
- package/dist/elements/media/FontAwesome/declaration.mjs +1 -1
- package/dist/elements/media/FontAwesome/index.d.ts +1 -1
- package/dist/elements/media/Image/Image.d.ts +11 -1
- package/dist/elements/media/Image/Image.mjs +33 -23
- package/dist/elements/media/Image/Settings.d.ts +4 -1
- package/dist/elements/media/Image/Settings.mjs +32 -9
- package/dist/elements/media/Image/declaration.d.ts +4 -1
- package/dist/elements/media/Image/declaration.mjs +1 -1
- package/dist/elements/media/Image/index.d.ts +4 -1
- package/dist/elements/media/Svg/Settings.d.ts +7 -0
- package/dist/elements/media/Svg/Settings.mjs +24 -0
- package/dist/elements/media/Svg/Svg.d.ts +16 -0
- package/dist/elements/media/Svg/Svg.mjs +31 -0
- package/dist/elements/media/Svg/declaration.d.ts +61 -0
- package/dist/elements/media/Svg/declaration.mjs +49 -0
- package/dist/elements/media/Svg/index.d.ts +60 -0
- package/dist/elements/media/Svg/index.mjs +6 -0
- package/dist/elements/media/Svg/sanitizeSvg.d.ts +13 -0
- package/dist/elements/media/Svg/sanitizeSvg.mjs +5 -0
- package/dist/elements/media/Video/declaration.d.ts +1 -1
- package/dist/elements/media/Video/declaration.mjs +1 -1
- package/dist/elements/media/Video/index.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +6 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +118 -112
- package/dist/elements/provider/ApiContainer/Settings.d.ts +2 -1
- package/dist/elements/provider/ApiContainer/Settings.mjs +45 -37
- package/dist/elements/provider/ApiContainer/declaration.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
- package/dist/elements/provider/ApiContainer/helpers/loadingSlot.d.ts +6 -0
- package/dist/elements/provider/ApiContainer/helpers/loadingSlot.mjs +8 -0
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +12 -12
- package/dist/elements/provider/ApiContainer/index.d.ts +1 -1
- package/dist/elements/provider/Channel/declaration.d.ts +1 -1
- package/dist/elements/provider/Channel/declaration.mjs +1 -1
- package/dist/elements/provider/Channel/index.d.ts +1 -1
- package/dist/elements/settings.mjs +40 -32
- package/dist/elements/structure/Carousel/Carousel.d.ts +32 -0
- package/dist/elements/structure/Carousel/Carousel.mjs +183 -0
- package/dist/elements/structure/Carousel/CarouselContext.d.ts +29 -0
- package/dist/elements/structure/Carousel/CarouselContext.mjs +6 -0
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +15 -0
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.mjs +51 -0
- package/dist/elements/structure/Carousel/CarouselTrack/Settings.d.ts +2 -0
- package/dist/elements/structure/Carousel/CarouselTrack/Settings.mjs +8 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/CarouselSlide.d.ts +15 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/CarouselSlide.mjs +28 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/index.d.ts +2 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/index.mjs +2 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/MarqueeTrack.d.ts +18 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/MarqueeTrack.mjs +41 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/index.d.ts +2 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/index.mjs +2 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.d.ts +12 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/ScrollTrack.mjs +27 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/index.d.ts +2 -0
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/index.mjs +2 -0
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +53 -0
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +44 -0
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +52 -0
- package/dist/elements/structure/Carousel/CarouselTrack/index.mjs +6 -0
- package/dist/elements/structure/Carousel/Settings.d.ts +14 -0
- package/dist/elements/structure/Carousel/Settings.mjs +97 -0
- package/dist/elements/structure/Carousel/carouselIndex.d.ts +13 -0
- package/dist/elements/structure/Carousel/carouselIndex.mjs +16 -0
- package/dist/elements/structure/Carousel/declaration.d.ts +131 -0
- package/dist/elements/structure/Carousel/declaration.mjs +106 -0
- package/dist/elements/structure/Carousel/index.d.ts +184 -0
- package/dist/elements/structure/Carousel/index.mjs +10 -0
- package/dist/elements/structure/Carousel/useAutoplay.d.ts +18 -0
- package/dist/elements/structure/Carousel/useAutoplay.mjs +34 -0
- package/dist/elements/structure/Container/Container.d.ts +1 -1
- package/dist/elements/structure/Container/Settings.d.ts +1 -1
- package/dist/elements/structure/Container/Settings.mjs +4 -0
- package/dist/elements/structure/Container/declaration.d.ts +2 -2
- package/dist/elements/structure/Container/declaration.mjs +3 -2
- package/dist/elements/structure/Container/index.d.ts +2 -2
- package/dist/elements/structure/DialogContainer/declaration.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/declaration.mjs +1 -1
- package/dist/elements/structure/DialogContainer/index.d.ts +1 -1
- package/dist/elements/structure/List/List.d.ts +6 -1
- package/dist/elements/structure/List/List.mjs +2 -1
- package/dist/elements/structure/List/ListItem/declaration.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/declaration.mjs +1 -1
- package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
- package/dist/elements/structure/List/Settings.d.ts +2 -1
- package/dist/elements/structure/List/Settings.mjs +41 -29
- package/dist/elements/structure/List/declaration.d.ts +2 -1
- package/dist/elements/structure/List/declaration.mjs +1 -1
- package/dist/elements/structure/List/index.d.ts +3 -2
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.d.ts +2 -1
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +36 -35
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +1 -1
- package/dist/elements/structure/List/modes/ListControlled/rowKeys.d.ts +10 -0
- package/dist/elements/structure/List/modes/ListControlled/rowKeys.mjs +11 -0
- package/dist/elements/structure/ModalContainer/declaration.d.ts +1 -1
- package/dist/elements/structure/ModalContainer/declaration.mjs +1 -1
- package/dist/elements/structure/ModalContainer/index.d.ts +1 -1
- package/dist/elements/structure/ModalContainer/metadataFromText.d.ts +6 -0
- package/dist/elements/structure/ModalContainer/metadataFromText.mjs +2 -1
- package/dist/elements/structure/Pagination/declaration.d.ts +1 -1
- package/dist/elements/structure/Pagination/declaration.mjs +1 -1
- package/dist/elements/structure/Pagination/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/declaration.d.ts +1 -1
- package/dist/elements/structure/TabContainer/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/index.d.ts +4 -4
- package/dist/index.d.ts +375 -43
- package/dist/index.mjs +34 -27
- 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/
|
|
23
|
-
import S from "../media/
|
|
24
|
-
import C from "../media/
|
|
25
|
-
import w from "../
|
|
26
|
-
import T from "../
|
|
27
|
-
import E from "../
|
|
28
|
-
import D from "../
|
|
29
|
-
import O from "../structure/
|
|
30
|
-
import k from "../structure/
|
|
31
|
-
import A from "../structure/
|
|
32
|
-
import j from "../structure/
|
|
33
|
-
import M from "../structure/
|
|
34
|
-
import N from "../structure/
|
|
35
|
-
import P from "../structure/
|
|
36
|
-
import F from "../structure/
|
|
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
|
|
39
|
-
ApiContainer:
|
|
42
|
+
var B = {
|
|
43
|
+
ApiContainer: E,
|
|
40
44
|
BlockHtml: e,
|
|
41
45
|
BlockJsx: t,
|
|
42
46
|
Button: a,
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
Carousel: O,
|
|
48
|
+
CarouselTrack: k,
|
|
49
|
+
Channel: D,
|
|
50
|
+
Container: A,
|
|
45
51
|
Custom: n,
|
|
46
|
-
DialogContainer:
|
|
52
|
+
DialogContainer: j,
|
|
47
53
|
Dropdown: o,
|
|
48
54
|
DropdownPopup: s,
|
|
49
|
-
|
|
55
|
+
Embed: x,
|
|
56
|
+
FontAwesome: S,
|
|
50
57
|
Form: h,
|
|
51
58
|
FormControl: g,
|
|
52
59
|
Heading: c,
|
|
53
|
-
Image:
|
|
60
|
+
Image: C,
|
|
54
61
|
LayoutContainer: _,
|
|
55
62
|
Link: l,
|
|
56
|
-
List:
|
|
57
|
-
ListItem:
|
|
63
|
+
List: M,
|
|
64
|
+
ListItem: N,
|
|
58
65
|
Loading: v,
|
|
59
66
|
Markdown: u,
|
|
60
|
-
ModalContainer:
|
|
67
|
+
ModalContainer: P,
|
|
61
68
|
NodeHtml: r,
|
|
62
69
|
NotFound: y,
|
|
63
70
|
Page: b,
|
|
64
|
-
Pagination:
|
|
71
|
+
Pagination: F,
|
|
65
72
|
Paragraph: d,
|
|
66
73
|
Reference: i,
|
|
67
74
|
RichText: f,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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:
|
|
82
|
+
Video: T
|
|
75
83
|
};
|
|
76
84
|
//#endregion
|
|
77
|
-
export {
|
|
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
|
|
95
|
+
readonly canSnippet: true;
|
|
96
96
|
readonly itemsAllowed: readonly [];
|
|
97
97
|
readonly itemsNotAllowed: readonly [];
|
|
98
98
|
};
|
|
@@ -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
|
|
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
|
|
71
|
+
readonly canSnippet: false;
|
|
72
72
|
readonly itemsAllowed: readonly [];
|
|
73
73
|
readonly itemsNotAllowed: readonly [];
|
|
74
74
|
};
|
|
@@ -56,7 +56,7 @@ declare const FormControl: {
|
|
|
56
56
|
readonly canSelect: true;
|
|
57
57
|
readonly canDragDrop: true;
|
|
58
58
|
readonly canMove: true;
|
|
59
|
-
readonly
|
|
59
|
+
readonly canSnippet: false;
|
|
60
60
|
readonly itemsAllowed: readonly [];
|
|
61
61
|
readonly itemsNotAllowed: readonly [];
|
|
62
62
|
};
|
package/dist/elements/index.d.ts
CHANGED
|
@@ -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 };
|
package/dist/elements/index.mjs
CHANGED
|
@@ -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/
|
|
23
|
-
import S from "./media/
|
|
24
|
-
import C from "./media/
|
|
25
|
-
import w from "./
|
|
26
|
-
import T from "./
|
|
27
|
-
import E from "./
|
|
28
|
-
import D from "./
|
|
29
|
-
import O from "./structure/
|
|
30
|
-
import k from "./structure/
|
|
31
|
-
import A from "./structure/
|
|
32
|
-
import j from "./structure/
|
|
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
|
|
35
|
-
ApiContainer: () =>
|
|
37
|
+
var F = /* @__PURE__ */ e({
|
|
38
|
+
ApiContainer: () => E,
|
|
36
39
|
BlockHtml: () => t,
|
|
37
40
|
BlockJsx: () => n,
|
|
38
41
|
Button: () => o,
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
Carousel: () => O,
|
|
43
|
+
Channel: () => D,
|
|
44
|
+
Container: () => k,
|
|
41
45
|
Custom: () => r,
|
|
42
|
-
DialogContainer: () =>
|
|
46
|
+
DialogContainer: () => A,
|
|
43
47
|
Dropdown: () => s,
|
|
44
|
-
|
|
48
|
+
Embed: () => x,
|
|
49
|
+
FontAwesome: () => S,
|
|
45
50
|
Form: () => h,
|
|
46
51
|
FormControl: () => g,
|
|
47
52
|
Heading: () => c,
|
|
48
|
-
Image: () =>
|
|
53
|
+
Image: () => C,
|
|
49
54
|
LayoutContainer: () => _,
|
|
50
55
|
Link: () => l,
|
|
51
|
-
List: () =>
|
|
56
|
+
List: () => j,
|
|
52
57
|
Loading: () => v,
|
|
53
58
|
Markdown: () => u,
|
|
54
|
-
ModalContainer: () =>
|
|
59
|
+
ModalContainer: () => M,
|
|
55
60
|
NodeHtml: () => i,
|
|
56
61
|
NotFound: () => y,
|
|
57
62
|
Page: () => b,
|
|
58
|
-
Pagination: () =>
|
|
63
|
+
Pagination: () => N,
|
|
59
64
|
Paragraph: () => d,
|
|
60
65
|
Reference: () => a,
|
|
61
66
|
RichText: () => f,
|
|
62
|
-
|
|
67
|
+
Svg: () => w,
|
|
68
|
+
TabContainer: () => P,
|
|
63
69
|
Text: () => p,
|
|
64
70
|
ThemeToggle: () => m,
|
|
65
|
-
Video: () =>
|
|
71
|
+
Video: () => T
|
|
66
72
|
});
|
|
67
73
|
//#endregion
|
|
68
|
-
export {
|
|
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
|
|
32
|
+
readonly canSnippet: true;
|
|
33
33
|
readonly itemsAllowed: readonly [];
|
|
34
34
|
readonly itemsNotAllowed: readonly [];
|
|
35
35
|
};
|
|
@@ -28,7 +28,7 @@ declare const LayoutContainer: {
|
|
|
28
28
|
readonly canSelect: true;
|
|
29
29
|
readonly canDragDrop: false;
|
|
30
30
|
readonly canMove: true;
|
|
31
|
-
readonly
|
|
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
|
|
26
|
+
readonly canSnippet: true;
|
|
27
27
|
readonly itemsAllowed: readonly [];
|
|
28
28
|
readonly itemsNotAllowed: readonly [];
|
|
29
29
|
};
|
|
@@ -22,7 +22,7 @@ declare const Loading: {
|
|
|
22
22
|
readonly canSelect: true;
|
|
23
23
|
readonly canDragDrop: false;
|
|
24
24
|
readonly canMove: true;
|
|
25
|
-
readonly
|
|
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
|
|
26
|
+
readonly canSnippet: true;
|
|
27
27
|
readonly itemsAllowed: readonly [];
|
|
28
28
|
readonly itemsNotAllowed: readonly [];
|
|
29
29
|
};
|
|
@@ -22,7 +22,7 @@ declare const NotFound: {
|
|
|
22
22
|
readonly canSelect: true;
|
|
23
23
|
readonly canDragDrop: false;
|
|
24
24
|
readonly canMove: true;
|
|
25
|
-
readonly
|
|
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 {
|
|
11
|
-
import { jsx as
|
|
12
|
-
import
|
|
13
|
-
import { Helmet as
|
|
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
|
|
15
|
+
var _ = (e) => e.map((e) => ({
|
|
16
16
|
...e,
|
|
17
17
|
plitziElementLayout: {
|
|
18
|
-
|
|
18
|
+
slots: [e.slot],
|
|
19
19
|
rootId: e.slot,
|
|
20
20
|
type: "layout"
|
|
21
21
|
}
|
|
22
|
-
})),
|
|
23
|
-
|
|
24
|
-
children: /* @__PURE__ */
|
|
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),
|
|
30
|
-
let { id:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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 ||
|
|
39
|
-
pageId:
|
|
40
|
-
routeParams:
|
|
41
|
-
queryParams:
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
]), /* @__PURE__ */
|
|
47
|
+
w,
|
|
48
|
+
D,
|
|
49
|
+
A,
|
|
50
|
+
k
|
|
51
|
+
]), /* @__PURE__ */ m(r, {
|
|
52
52
|
ref: e,
|
|
53
|
-
className:
|
|
53
|
+
className: h("plitzi-component__page", b),
|
|
54
54
|
interactionTriggers: a.triggers,
|
|
55
|
-
children: [t &&
|
|
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:
|
|
58
|
-
})] }),
|
|
57
|
+
content: y
|
|
58
|
+
})] }), N]
|
|
59
59
|
});
|
|
60
|
-
},
|
|
60
|
+
}, b = t(y);
|
|
61
61
|
//#endregion
|
|
62
|
-
export {
|
|
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
|
|
50
|
+
readonly canSnippet: true;
|
|
51
51
|
readonly itemsAllowed: readonly [];
|
|
52
52
|
readonly itemsNotAllowed: readonly [];
|
|
53
53
|
};
|
|
@@ -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 };
|