@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.
- package/CHANGELOG.md +49 -0
- package/dist/Component/ComponentProvider.mjs +3 -3
- package/dist/Element/ElementContext.mjs +1 -1
- package/dist/Element/ElementParentContext.mjs +1 -1
- package/dist/Element/JsxManager.mjs +2 -2
- package/dist/Element/LayoutBody.mjs +1 -1
- package/dist/Element/PluginManager.mjs +2 -2
- package/dist/Element/PluginRemote.mjs +4 -4
- package/dist/Element/ReplicaProvider.mjs +1 -1
- package/dist/Element/RootElement.mjs +4 -4
- package/dist/Element/helpers/declaredAttributes.mjs +1 -1
- package/dist/Element/helpers/getInteractions.mjs +4 -5
- package/dist/Element/hocs/withElement.mjs +2 -2
- package/dist/Element/hooks/useEditableContent.mjs +2 -2
- package/dist/Element/hooks/useElementDataSource.mjs +1 -1
- package/dist/Element/hooks/useElementInternal.mjs +2 -2
- package/dist/Element/hooks/useElementVisible.mjs +1 -1
- package/dist/Element/hooks/useInternalClassName.mjs +1 -1
- package/dist/Element/hooks/useInternalItems.mjs +2 -2
- package/dist/Element/hooks/useIntervalTriggers.mjs +1 -1
- package/dist/Element/hooks/useKeyTriggers.mjs +1 -1
- package/dist/Element/hooks/useLayoutChain.d.ts +1 -1
- package/dist/Element/hooks/useLayoutChain.mjs +4 -4
- package/dist/Element/hooks/usePluginTrigger.mjs +2 -2
- package/dist/Element/hooks/useRootElementInteractions.mjs +26 -27
- package/dist/Element/hooks/useRscData.d.ts +1 -1
- package/dist/Element/hooks/useRscData.mjs +1 -2
- package/dist/Element/hooks/useScrollInteractions.mjs +20 -21
- package/dist/builder/index.d.ts +5 -0
- package/dist/builder/index.mjs +1 -0
- package/dist/canvas/useAnimationFrame.mjs +1 -1
- package/dist/components/ElementAdvancedEditor.mjs +30 -30
- package/dist/components/IconField/index.mjs +1 -2
- package/dist/components/IconPicker/index.mjs +1 -2
- package/dist/components/MarkdownDocument/components/CodeBlock/CodeBlock.mjs +13 -13
- package/dist/dataSource/GlobalSources.mjs +44 -45
- package/dist/dataSource/getSourcesByElementId.mjs +1 -1
- package/dist/dataSource/index.d.ts +3 -0
- package/dist/dataSource/index.mjs +6 -3
- package/dist/dataSource/pathFields.mjs +1 -1
- package/dist/dataSource/sourceStore.mjs +1 -1
- package/dist/dataSource/useRegisterSource.d.ts +9 -0
- package/dist/dataSource/useRegisterSource.mjs +40 -0
- package/dist/dataSource/useResolvedVariables.d.ts +12 -0
- package/dist/dataSource/useResolvedVariables.mjs +27 -0
- package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +1 -1
- package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +1 -1
- package/dist/elements/advanced/BlockHtml/declaration.d.ts +2 -2
- package/dist/elements/advanced/BlockHtml/declaration.mjs +1 -1
- package/dist/elements/advanced/BlockHtml/index.d.ts +3 -3
- package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/Settings.mjs +25 -29
- package/dist/elements/advanced/BlockJsx/declaration.d.ts +2 -2
- package/dist/elements/advanced/BlockJsx/declaration.mjs +1 -1
- package/dist/elements/advanced/BlockJsx/index.d.ts +3 -3
- package/dist/elements/advanced/Custom/Custom.d.ts +1 -1
- package/dist/elements/advanced/Custom/Custom.mjs +2 -2
- package/dist/elements/advanced/Custom/Settings.mjs +3 -6
- package/dist/elements/advanced/Custom/declaration.d.ts +2 -2
- package/dist/elements/advanced/Custom/declaration.mjs +1 -1
- package/dist/elements/advanced/Custom/index.d.ts +3 -3
- package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/declaration.d.ts +2 -2
- package/dist/elements/advanced/NodeHtml/declaration.mjs +1 -1
- package/dist/elements/advanced/NodeHtml/index.d.ts +3 -3
- package/dist/elements/advanced/PlitziSdk/declaration.d.ts +1 -1
- package/dist/elements/advanced/PlitziSdk/declaration.mjs +1 -1
- package/dist/elements/advanced/Reference/Reference.d.ts +1 -1
- package/dist/elements/advanced/Reference/Reference.mjs +3 -3
- package/dist/elements/advanced/Reference/declaration.d.ts +2 -2
- package/dist/elements/advanced/Reference/declaration.mjs +1 -1
- package/dist/elements/advanced/Reference/index.d.ts +3 -3
- package/dist/elements/basic/Button/Button.d.ts +1 -1
- package/dist/elements/basic/Button/Button.mjs +1 -1
- package/dist/elements/basic/Button/declaration.d.ts +3 -3
- package/dist/elements/basic/Button/declaration.mjs +1 -1
- package/dist/elements/basic/Button/index.d.ts +4 -4
- package/dist/elements/basic/Dropdown/Dropdown.d.ts +1 -1
- package/dist/elements/basic/Dropdown/Dropdown.mjs +12 -12
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +2 -2
- package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +3 -3
- package/dist/elements/basic/Dropdown/declaration.d.ts +2 -2
- package/dist/elements/basic/Dropdown/declaration.mjs +1 -1
- package/dist/elements/basic/Dropdown/index.d.ts +5 -5
- package/dist/elements/basic/Dropdown/useDropdown.mjs +1 -5
- package/dist/elements/basic/Dropdown/useDropdownTrigger.mjs +1 -7
- package/dist/elements/basic/Heading/Heading.d.ts +1 -1
- package/dist/elements/basic/Heading/declaration.d.ts +2 -2
- package/dist/elements/basic/Heading/declaration.mjs +1 -1
- package/dist/elements/basic/Heading/index.d.ts +3 -3
- package/dist/elements/basic/Link/Link.d.ts +1 -1
- package/dist/elements/basic/Link/Link.mjs +2 -2
- package/dist/elements/basic/Link/Settings.mjs +2 -2
- package/dist/elements/basic/Link/declaration.d.ts +3 -3
- package/dist/elements/basic/Link/declaration.mjs +1 -1
- package/dist/elements/basic/Link/index.d.ts +4 -4
- package/dist/elements/basic/Markdown/Markdown.d.ts +1 -1
- package/dist/elements/basic/Markdown/Markdown.mjs +8 -8
- package/dist/elements/basic/Markdown/declaration.d.ts +2 -2
- package/dist/elements/basic/Markdown/declaration.mjs +1 -1
- package/dist/elements/basic/Markdown/hooks/useMarkdownClassNames.mjs +1 -1
- package/dist/elements/basic/Markdown/index.d.ts +3 -3
- package/dist/elements/basic/Paragraph/Paragraph.d.ts +1 -1
- package/dist/elements/basic/Paragraph/declaration.d.ts +2 -2
- package/dist/elements/basic/Paragraph/declaration.mjs +1 -1
- package/dist/elements/basic/Paragraph/index.d.ts +3 -3
- package/dist/elements/basic/RichText/RichText.d.ts +1 -1
- package/dist/elements/basic/RichText/RichText.mjs +14 -14
- package/dist/elements/basic/RichText/declaration.d.ts +2 -2
- package/dist/elements/basic/RichText/declaration.mjs +1 -1
- package/dist/elements/basic/RichText/index.d.ts +3 -3
- package/dist/elements/basic/Text/Text.d.ts +1 -1
- package/dist/elements/basic/Text/declaration.d.ts +2 -2
- package/dist/elements/basic/Text/declaration.mjs +1 -1
- package/dist/elements/basic/Text/index.d.ts +3 -3
- package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +1 -1
- package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +3 -3
- package/dist/elements/basic/ThemeToggle/declaration.d.ts +2 -2
- package/dist/elements/basic/ThemeToggle/declaration.mjs +1 -1
- package/dist/elements/basic/ThemeToggle/index.d.ts +3 -3
- package/dist/elements/declarations/index.d.ts +66 -52
- package/dist/elements/declarations/index.mjs +45 -42
- package/dist/elements/form/Form/Form.d.ts +1 -1
- package/dist/elements/form/Form/Form.mjs +37 -37
- package/dist/elements/form/Form/declaration.d.ts +2 -2
- 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.d.ts +1 -1
- package/dist/elements/form/FormControl/FormControl.mjs +2 -2
- package/dist/elements/form/FormControl/Settings.mjs +1 -5
- package/dist/elements/form/FormControl/declaration.d.ts +2 -2
- package/dist/elements/form/FormControl/declaration.mjs +1 -1
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +12 -16
- package/dist/elements/form/FormControl/index.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +1 -1
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +2 -2
- package/dist/elements/internal/LayoutContainer/declaration.mjs +1 -1
- package/dist/elements/internal/LayoutContainer/index.d.ts +3 -3
- package/dist/elements/internal/LayoutPicker/LayoutPicker.mjs +7 -7
- package/dist/elements/internal/Loading/Loading.d.ts +1 -1
- package/dist/elements/internal/Loading/declaration.d.ts +2 -2
- package/dist/elements/internal/Loading/declaration.mjs +1 -1
- package/dist/elements/internal/Loading/index.d.ts +3 -3
- package/dist/elements/internal/NotFound/NotFound.d.ts +1 -1
- package/dist/elements/internal/NotFound/NotFound.mjs +1 -1
- package/dist/elements/internal/NotFound/declaration.d.ts +2 -2
- package/dist/elements/internal/NotFound/declaration.mjs +1 -1
- package/dist/elements/internal/NotFound/index.d.ts +3 -3
- package/dist/elements/internal/Page/Page.d.ts +1 -1
- package/dist/elements/internal/Page/Page.mjs +2 -2
- package/dist/elements/internal/Page/PageHead.mjs +7 -7
- package/dist/elements/internal/Page/Settings.mjs +1 -1
- package/dist/elements/internal/Page/declaration.d.ts +2 -2
- package/dist/elements/internal/Page/declaration.mjs +1 -1
- package/dist/elements/internal/Page/index.d.ts +3 -3
- package/dist/elements/media/Embed/Embed.d.ts +1 -1
- package/dist/elements/media/Embed/Embed.mjs +1 -1
- package/dist/elements/media/Embed/declaration.d.ts +2 -2
- package/dist/elements/media/Embed/declaration.mjs +1 -1
- package/dist/elements/media/Embed/index.d.ts +3 -3
- package/dist/elements/media/FontAwesome/FontAwesome.d.ts +1 -1
- package/dist/elements/media/FontAwesome/declaration.d.ts +2 -2
- package/dist/elements/media/FontAwesome/declaration.mjs +1 -1
- package/dist/elements/media/FontAwesome/index.d.ts +3 -3
- package/dist/elements/media/Image/Image.d.ts +1 -1
- package/dist/elements/media/Image/Image.mjs +12 -12
- package/dist/elements/media/Image/declaration.d.ts +2 -2
- package/dist/elements/media/Image/declaration.mjs +1 -1
- package/dist/elements/media/Image/index.d.ts +3 -3
- package/dist/elements/media/Svg/Svg.d.ts +1 -1
- package/dist/elements/media/Svg/Svg.mjs +11 -11
- package/dist/elements/media/Svg/declaration.d.ts +2 -2
- package/dist/elements/media/Svg/declaration.mjs +1 -1
- package/dist/elements/media/Svg/index.d.ts +3 -3
- package/dist/elements/media/Video/Video.d.ts +1 -1
- package/dist/elements/media/Video/Video.mjs +1 -1
- package/dist/elements/media/Video/declaration.d.ts +2 -2
- package/dist/elements/media/Video/declaration.mjs +1 -1
- package/dist/elements/media/Video/index.d.ts +3 -3
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +40 -48
- package/dist/elements/provider/ApiContainer/Settings.mjs +6 -10
- package/dist/elements/provider/ApiContainer/declaration.d.ts +2 -2
- package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
- package/dist/elements/provider/ApiContainer/helpers/serverMock.mjs +1 -1
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +5 -5
- package/dist/elements/provider/ApiContainer/hooks/useProviderPagination.mjs +3 -12
- package/dist/elements/provider/ApiContainer/index.d.ts +3 -3
- package/dist/elements/provider/Channel/Channel.d.ts +1 -1
- package/dist/elements/provider/Channel/Channel.mjs +24 -24
- package/dist/elements/provider/Channel/declaration.d.ts +2 -2
- package/dist/elements/provider/Channel/declaration.mjs +1 -1
- package/dist/elements/provider/Channel/index.d.ts +3 -3
- package/dist/elements/settings.mjs +84 -85
- package/dist/elements/structure/Carousel/Carousel.d.ts +1 -1
- package/dist/elements/structure/Carousel/Carousel.mjs +27 -39
- package/dist/elements/structure/Carousel/CarouselTrack/CarouselTrack.d.ts +1 -1
- package/dist/elements/structure/Carousel/CarouselTrack/components/CarouselSlide/index.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/MarqueeTrack/index.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/components/ScrollTrack/index.mjs +1 -2
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.d.ts +2 -2
- package/dist/elements/structure/Carousel/CarouselTrack/declaration.mjs +1 -1
- package/dist/elements/structure/Carousel/CarouselTrack/index.d.ts +3 -3
- package/dist/elements/structure/Carousel/declaration.d.ts +2 -2
- package/dist/elements/structure/Carousel/declaration.mjs +1 -1
- package/dist/elements/structure/Carousel/index.d.ts +5 -5
- package/dist/elements/structure/Container/Container.d.ts +1 -1
- package/dist/elements/structure/Container/declaration.d.ts +2 -2
- package/dist/elements/structure/Container/declaration.mjs +1 -1
- package/dist/elements/structure/Container/index.d.ts +3 -3
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/declaration.d.ts +2 -2
- package/dist/elements/structure/DialogContainer/declaration.mjs +1 -1
- package/dist/elements/structure/DialogContainer/index.d.ts +3 -3
- package/dist/elements/structure/List/List.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/ListItem.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/declaration.d.ts +2 -2
- package/dist/elements/structure/List/ListItem/declaration.mjs +1 -1
- package/dist/elements/structure/List/ListItem/index.d.ts +3 -3
- package/dist/elements/structure/List/declaration.d.ts +2 -2
- package/dist/elements/structure/List/declaration.mjs +1 -1
- package/dist/elements/structure/List/index.d.ts +5 -5
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +23 -23
- package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +1 -1
- package/dist/elements/structure/ModalContainer/declaration.d.ts +2 -2
- package/dist/elements/structure/ModalContainer/declaration.mjs +1 -1
- package/dist/elements/structure/ModalContainer/index.d.ts +3 -3
- package/dist/elements/structure/Overlay/metadataOf.mjs +1 -1
- package/dist/elements/structure/Overlay/useOverlay.mjs +19 -19
- package/dist/elements/structure/Pagination/Pagination.d.ts +1 -1
- package/dist/elements/structure/Pagination/Pagination.mjs +3 -3
- package/dist/elements/structure/Pagination/declaration.d.ts +2 -2
- package/dist/elements/structure/Pagination/declaration.mjs +1 -1
- package/dist/elements/structure/Pagination/index.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainer.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +3 -3
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +3 -3
- package/dist/elements/structure/TabContainer/declaration.d.ts +2 -2
- package/dist/elements/structure/TabContainer/declaration.mjs +1 -1
- package/dist/elements/structure/TabContainer/index.d.ts +11 -11
- package/dist/index.d.ts +133 -121
- package/dist/index.mjs +85 -76
- package/package.json +18 -1408
|
@@ -3,11 +3,7 @@ import i from "@plitzi/plitzi-ui/hooks/useDidUpdateEffect";
|
|
|
3
3
|
//#region src/elements/basic/Dropdown/useDropdown.ts
|
|
4
4
|
var a = ({ ref: a, popupRef: o, open: s, placement: c = "bottom", disabled: l = !1, loading: u = !1, closeOnClickPopup: d = !0, closeOnClickOutside: f = !1, offsetX: p = 0, offsetY: m = 0, myWindow: h, onChange: g }) => {
|
|
5
5
|
let [_, v] = r(s ?? !1), [y, b] = r(() => a?.current?.getBoundingClientRect()), x = n(() => h || (typeof window < "u" ? window : null), [h]), S = e(() => {
|
|
6
|
-
|
|
7
|
-
g?.(!_, !1);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
g?.(!_, !0), v((e) => !e);
|
|
6
|
+
s === void 0 ? (g?.(!_, !0), v((e) => !e)) : g?.(!_, !1);
|
|
11
7
|
}, [
|
|
12
8
|
g,
|
|
13
9
|
_,
|
|
@@ -9,13 +9,7 @@ var r = "button, a[href], input, select, textarea, [role=\"button\"]", i = (e, t
|
|
|
9
9
|
e && (e.setAttribute("aria-haspopup", "true"), e.setAttribute("aria-expanded", String(s)));
|
|
10
10
|
}), t(() => {
|
|
11
11
|
let e = o.current, t = d.current && !s;
|
|
12
|
-
|
|
13
|
-
if (t && e.contains(e.ownerDocument.activeElement)) {
|
|
14
|
-
i(a?.current, e)?.focus({ preventScroll: !0 });
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
s && c && u.current && !e.contains(e.ownerDocument.activeElement) && (u.current = !1, e.querySelector(r)?.focus({ preventScroll: !0 }));
|
|
18
|
-
}
|
|
12
|
+
d.current = s, l && e && (t && e.contains(e.ownerDocument.activeElement) ? i(a?.current, e)?.focus({ preventScroll: !0 }) : s && c && u.current && !e.contains(e.ownerDocument.activeElement) && (u.current = !1, e.querySelector(r)?.focus({ preventScroll: !0 })));
|
|
19
13
|
}, [
|
|
20
14
|
l,
|
|
21
15
|
s,
|
|
@@ -7,7 +7,7 @@ export type HeadingProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const Heading: ({ ref, className, content, subType }: HeadingProps) => import('react').JSX.Element;
|
|
9
9
|
declare const _default: {
|
|
10
|
-
(props: import('
|
|
10
|
+
(props: import('../../..').WithElementProps<HeadingProps>): import('react').JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HeadingProps } from './Heading';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
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 HeadingAttributes = AuthorableAttributes<HeadingProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "heading";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly subType: readonly string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring
|
|
1
|
+
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
|
|
2
2
|
//#region src/elements/basic/Heading/declaration.ts
|
|
3
3
|
var n = e()({
|
|
4
4
|
type: "heading",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Heading: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Heading').HeadingProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "heading";
|
|
@@ -124,8 +124,8 @@ declare const Heading: {
|
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
} & {
|
|
127
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
128
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
127
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
128
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
129
129
|
content?: string | undefined;
|
|
130
130
|
subType?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
131
131
|
}>>;
|
|
@@ -41,7 +41,7 @@ export type LinkProps = {
|
|
|
41
41
|
};
|
|
42
42
|
declare const Link: ({ ref, children, className, href, target, mode, hash, label, content, contentPlacement, icon, iconPlacement, current }: LinkProps) => import('react').JSX.Element;
|
|
43
43
|
declare const _default: {
|
|
44
|
-
(props: import('
|
|
44
|
+
(props: import('../../..').WithElementProps<LinkProps>): import('react').JSX.Element;
|
|
45
45
|
displayName: string;
|
|
46
46
|
};
|
|
47
47
|
export default _default;
|
|
@@ -4,12 +4,12 @@ import { RootElement as n } from "../../../Element/RootElement.mjs";
|
|
|
4
4
|
import r from "../../../Element/ElementWords.mjs";
|
|
5
5
|
import { ariaCurrent as i } from "./ariaCurrent.mjs";
|
|
6
6
|
import { useMemo as a } from "react";
|
|
7
|
-
import o from "@plitzi/sdk-shared/hooks
|
|
7
|
+
import { usePlitzi as o } from "@plitzi/sdk-shared/hooks";
|
|
8
8
|
import { useSdkStore as s } from "@plitzi/sdk-shared/store";
|
|
9
9
|
import { processTwig as c } from "@plitzi/sdk-shared/helpers/twigWrapper";
|
|
10
10
|
import { jsx as l } from "react/jsx-runtime";
|
|
11
11
|
import u from "clsx";
|
|
12
|
-
import { getPageFullPath as d } from "@plitzi/sdk-navigation
|
|
12
|
+
import { getPageFullPath as d } from "@plitzi/sdk-navigation";
|
|
13
13
|
//#region src/elements/basic/Link/Link.tsx
|
|
14
14
|
var f = ({ ref: e, children: f, className: p = "", href: m = "#", target: h = "self", mode: g = "page", hash: _ = "", label: v = "", content: y = "", contentPlacement: b = "after", icon: x = "", iconPlacement: S = "before", current: C = "page" }) => {
|
|
15
15
|
let { style: w, definition: { styleSelectors: T } } = t(), { settings: { previewMode: E } } = o(), [[D, O, k, A, j, M]] = s([
|
|
@@ -4,8 +4,8 @@ import { use as n, useCallback as r, useEffect as i, useMemo as a } from "react"
|
|
|
4
4
|
import { useCommonStore as o } from "@plitzi/sdk-shared/store";
|
|
5
5
|
import { get as s, pick as c } from "@plitzi/plitzi-ui/helpers";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
-
import { getPageFullPath as d } from "@plitzi/sdk-navigation
|
|
8
|
-
import f from "@plitzi/sdk-shared/network
|
|
7
|
+
import { getPageFullPath as d } from "@plitzi/sdk-navigation";
|
|
8
|
+
import { NetworkContext as f } from "@plitzi/sdk-shared/network";
|
|
9
9
|
import p from "@plitzi/plitzi-ui/Input";
|
|
10
10
|
import m from "@plitzi/plitzi-ui/Select";
|
|
11
11
|
//#region src/elements/basic/Link/Settings.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LinkProps } from './Link';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
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 LinkAttributes = AuthorableAttributes<LinkProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "link";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly mode: readonly string[];
|
|
@@ -60,7 +60,7 @@ declare const declaration: import('@plitzi/sdk-shared/authoring/declare').Declar
|
|
|
60
60
|
target?: "self" | "blank" | "parent" | "top" | undefined;
|
|
61
61
|
icon?: string | undefined;
|
|
62
62
|
current?: "page" | "section" | undefined;
|
|
63
|
-
iconPlacement?: import('
|
|
63
|
+
iconPlacement?: import('../../declarations').IconPlacement | undefined;
|
|
64
64
|
contentPlacement?: "before" | "after" | undefined;
|
|
65
65
|
hash?: string | undefined;
|
|
66
66
|
}>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Link: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Link').LinkProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "link";
|
|
@@ -52,8 +52,8 @@ declare const Link: {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
} & {
|
|
55
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
56
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
55
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
56
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
57
57
|
content?: string | undefined;
|
|
58
58
|
mode?: "page" | "internal" | "external" | undefined;
|
|
59
59
|
href?: string | undefined;
|
|
@@ -61,7 +61,7 @@ declare const Link: {
|
|
|
61
61
|
target?: "self" | "blank" | "parent" | "top" | undefined;
|
|
62
62
|
icon?: string | undefined;
|
|
63
63
|
current?: "page" | "section" | undefined;
|
|
64
|
-
iconPlacement?: import('
|
|
64
|
+
iconPlacement?: import('../../declarations').IconPlacement | undefined;
|
|
65
65
|
contentPlacement?: "before" | "after" | undefined;
|
|
66
66
|
hash?: string | undefined;
|
|
67
67
|
}>>;
|
|
@@ -11,7 +11,7 @@ export type MarkdownProps = {
|
|
|
11
11
|
};
|
|
12
12
|
declare const Markdown: ({ ref, content, className, headingLinks }: MarkdownProps) => import('react').JSX.Element;
|
|
13
13
|
declare const _default: {
|
|
14
|
-
(props: import('
|
|
14
|
+
(props: import('../../..').WithElementProps<MarkdownProps>): import('react').JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
@@ -3,18 +3,18 @@ import t from "../../../Element/hooks/useElement.mjs";
|
|
|
3
3
|
import { RootElement as n } from "../../../Element/RootElement.mjs";
|
|
4
4
|
import r from "../../../components/MarkdownDocument/index.mjs";
|
|
5
5
|
import i from "./hooks/useMarkdownClassNames.mjs";
|
|
6
|
-
import a from "@plitzi/sdk-shared/hooks
|
|
7
|
-
import {
|
|
8
|
-
import s from "
|
|
9
|
-
import
|
|
6
|
+
import { usePlitzi as a } from "@plitzi/sdk-shared/hooks";
|
|
7
|
+
import { uniqueAnchor as o } from "@plitzi/sdk-shared/schema";
|
|
8
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
9
|
+
import c from "clsx";
|
|
10
10
|
//#region src/elements/basic/Markdown/Markdown.tsx
|
|
11
11
|
var l = ({ ref: e, content: l = "Markdown", className: u = "", headingLinks: d = !0 }) => {
|
|
12
12
|
let { settings: { previewMode: f } } = a(), { definition: { styleSelectors: p } } = t(), m = i(p);
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ s(n, {
|
|
14
14
|
ref: e,
|
|
15
|
-
className:
|
|
16
|
-
children: /* @__PURE__ */
|
|
17
|
-
headingAnchor:
|
|
15
|
+
className: c("plitzi-component__markdown", { "plitzi-component__markdown--edit-mode": !f }, u),
|
|
16
|
+
children: /* @__PURE__ */ s(r, {
|
|
17
|
+
headingAnchor: o,
|
|
18
18
|
headingLinks: d,
|
|
19
19
|
classNames: m,
|
|
20
20
|
children: l
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MarkdownProps } from './Markdown';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
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 MarkdownAttributes = AuthorableAttributes<MarkdownProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "markdown";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MARKDOWN_PARTS as e } from "../../../../components/MarkdownDocument/helpers/markdownParts.mjs";
|
|
2
|
-
import t from "@plitzi/sdk-shared/hooks
|
|
2
|
+
import { useStableValue as t } from "@plitzi/sdk-shared/hooks";
|
|
3
3
|
//#region src/elements/basic/Markdown/hooks/useMarkdownClassNames.ts
|
|
4
4
|
var n = (n) => {
|
|
5
5
|
let r = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Markdown: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Markdown').MarkdownProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "markdown";
|
|
@@ -55,8 +55,8 @@ declare const Markdown: {
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
} & {
|
|
58
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
59
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
58
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
59
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
60
60
|
content?: string | undefined;
|
|
61
61
|
headingLinks?: boolean | undefined;
|
|
62
62
|
}>>;
|
|
@@ -6,7 +6,7 @@ export type ParagraphProps = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const Paragraph: ({ ref, content, className }: ParagraphProps) => import('react').JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('
|
|
9
|
+
(props: import('../../..').WithElementProps<ParagraphProps>): import('react').JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ParagraphProps } from './Paragraph';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
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 ParagraphAttributes = AuthorableAttributes<ParagraphProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "paragraph";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Paragraph: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Paragraph').ParagraphProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "paragraph";
|
|
@@ -27,8 +27,8 @@ declare const Paragraph: {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} & {
|
|
30
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
31
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
30
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
31
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
32
32
|
content?: string | number | undefined;
|
|
33
33
|
}>>;
|
|
34
34
|
export default Paragraph;
|
|
@@ -13,7 +13,7 @@ export type RichTextProps = {
|
|
|
13
13
|
};
|
|
14
14
|
declare const RichText: ({ ref, className, content, format, mediaBaseUrl }: RichTextProps) => import('react').JSX.Element;
|
|
15
15
|
declare const _default: {
|
|
16
|
-
(props: import('
|
|
16
|
+
(props: import('../../..').WithElementProps<RichTextProps>): import('react').JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { classHtmlParts as e } from "./classHtmlParts.mjs";
|
|
2
|
+
import { rebaseHtmlMedia as t, sanitizeHtml as n } from "./sanitizeHtml.mjs";
|
|
3
|
+
import r from "../../../Element/hocs/withElement.mjs";
|
|
4
|
+
import i from "../../../Element/hooks/useElement.mjs";
|
|
5
|
+
import { RootElement as a } from "../../../Element/RootElement.mjs";
|
|
6
|
+
import o from "../../../components/MarkdownDocument/index.mjs";
|
|
7
|
+
import s from "../Markdown/hooks/useMarkdownClassNames.mjs";
|
|
8
8
|
import { useMemo as c } from "react";
|
|
9
|
-
import l from "@plitzi/sdk-shared/hooks
|
|
9
|
+
import { usePlitzi as l } from "@plitzi/sdk-shared/hooks";
|
|
10
10
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
11
|
import f from "clsx";
|
|
12
12
|
//#region src/elements/basic/RichText/RichText.tsx
|
|
13
|
-
var p = ({ ref:
|
|
14
|
-
let { settings: { previewMode: _ } } = l(), { definition: { styleSelectors: v } } =
|
|
13
|
+
var p = ({ ref: r, className: p = "", content: m = "", format: h = "html", mediaBaseUrl: g = "" }) => {
|
|
14
|
+
let { settings: { previewMode: _ } } = l(), { definition: { styleSelectors: v } } = i(), y = s(v), b = c(() => h === "html" ? e(t(n(m), g), y) : "", [
|
|
15
15
|
h,
|
|
16
16
|
m,
|
|
17
17
|
g,
|
|
18
18
|
y
|
|
19
19
|
]);
|
|
20
|
-
return /* @__PURE__ */ d(
|
|
21
|
-
ref:
|
|
20
|
+
return /* @__PURE__ */ d(a, {
|
|
21
|
+
ref: r,
|
|
22
22
|
className: f("plitzi-component__rich-text", { "plitzi-component__rich-text--edit-mode": !_ }, p),
|
|
23
23
|
children: [
|
|
24
24
|
h === "html" && /* @__PURE__ */ u("div", { dangerouslySetInnerHTML: { __html: b } }),
|
|
25
|
-
h === "markdown" && /* @__PURE__ */ u(
|
|
25
|
+
h === "markdown" && /* @__PURE__ */ u(o, {
|
|
26
26
|
classNames: y,
|
|
27
27
|
children: m
|
|
28
28
|
}),
|
|
@@ -32,6 +32,6 @@ var p = ({ ref: e, className: p = "", content: m = "", format: h = "html", media
|
|
|
32
32
|
})
|
|
33
33
|
]
|
|
34
34
|
});
|
|
35
|
-
}, m =
|
|
35
|
+
}, m = r(p);
|
|
36
36
|
//#endregion
|
|
37
37
|
export { p as RichText, m as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RichTextProps } from './RichText';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
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 RichTextAttributes = AuthorableAttributes<RichTextProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "richText";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly format: readonly string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring
|
|
1
|
+
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
|
|
2
2
|
//#region src/elements/basic/RichText/declaration.ts
|
|
3
3
|
var n = e()({
|
|
4
4
|
type: "richText",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const RichText: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./RichText').RichTextProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "richText";
|
|
@@ -60,8 +60,8 @@ declare const RichText: {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
} & {
|
|
63
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
64
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
63
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
64
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
65
65
|
content?: string | undefined;
|
|
66
66
|
format?: "html" | "markdown" | "text" | undefined;
|
|
67
67
|
mediaBaseUrl?: string | undefined;
|
|
@@ -13,7 +13,7 @@ export type TextProps = {
|
|
|
13
13
|
};
|
|
14
14
|
declare const Text: ({ ref, content, className, title, decorative }: TextProps) => import('react').JSX.Element;
|
|
15
15
|
declare const _default: {
|
|
16
|
-
(props: import('
|
|
16
|
+
(props: import('../../..').WithElementProps<TextProps>): import('react').JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TextProps } from './Text';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
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 TextAttributes = AuthorableAttributes<TextProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "text";
|
|
7
7
|
readonly content: {
|
|
8
8
|
readonly attributes: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Text: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./Text').TextProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "text";
|
|
@@ -26,8 +26,8 @@ declare const Text: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
} & {
|
|
29
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
30
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
29
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
30
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
31
31
|
content?: string | number | undefined;
|
|
32
32
|
title?: string | undefined;
|
|
33
33
|
decorative?: boolean | undefined;
|
|
@@ -24,7 +24,7 @@ export type ThemeToggleProps = {
|
|
|
24
24
|
*/
|
|
25
25
|
declare const ThemeToggle: ({ ref, className, subType, lightLabel, darkLabel, systemLabel, showSystem }: ThemeToggleProps) => import('react').JSX.Element;
|
|
26
26
|
declare const _default: {
|
|
27
|
-
(props: import('
|
|
27
|
+
(props: import('../../..').WithElementProps<ThemeToggleProps>): import('react').JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
export default _default;
|
|
@@ -3,11 +3,11 @@ import t from "../../../Element/hocs/withElement.mjs";
|
|
|
3
3
|
import n from "../../../Element/hooks/useElement.mjs";
|
|
4
4
|
import { RootElement as r } from "../../../Element/RootElement.mjs";
|
|
5
5
|
import { use as i, useCallback as a, useEffect as o, useMemo as s, useRef as c, useSyncExternalStore as l } from "react";
|
|
6
|
-
import u from "@plitzi/sdk-shared/hooks
|
|
6
|
+
import { usePlitzi as u } from "@plitzi/sdk-shared/hooks";
|
|
7
7
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
8
|
import p from "clsx";
|
|
9
|
-
import m from "@plitzi/sdk-interactions
|
|
10
|
-
import h from "@plitzi/sdk-shared/theme
|
|
9
|
+
import { InteractionsContext as m } from "@plitzi/sdk-interactions";
|
|
10
|
+
import { useTheme as h } from "@plitzi/sdk-shared/theme";
|
|
11
11
|
//#region src/elements/basic/ThemeToggle/ThemeToggle.tsx
|
|
12
12
|
var g = () => () => {}, _ = () => !0, v = () => !1, y = () => /* @__PURE__ */ f("svg", {
|
|
13
13
|
viewBox: "0 0 24 24",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ThemeToggleProps } from './ThemeToggle';
|
|
2
|
-
import { AuthorableAttributes } from '@plitzi/sdk-shared/authoring
|
|
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 ThemeToggleAttributes = AuthorableAttributes<ThemeToggleProps>;
|
|
5
|
-
declare const declaration: import('@plitzi/sdk-shared/authoring
|
|
5
|
+
declare const declaration: import('@plitzi/sdk-shared/authoring').DeclaredElement<{
|
|
6
6
|
readonly type: "themeToggle";
|
|
7
7
|
readonly attributeValues: {
|
|
8
8
|
readonly subType: readonly string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring
|
|
1
|
+
import { elementDeclaration as e, valuesOf as t } from "@plitzi/sdk-shared/authoring";
|
|
2
2
|
//#region src/elements/basic/ThemeToggle/declaration.ts
|
|
3
3
|
var n = {
|
|
4
4
|
"margin-top": "0px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const ThemeToggle: {
|
|
2
|
-
(props: import('
|
|
2
|
+
(props: import('../../..').WithElementProps<import('./ThemeToggle').ThemeToggleProps>): import('react').JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
readonly type: "themeToggle";
|
|
@@ -96,8 +96,8 @@ declare const ThemeToggle: {
|
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
} & {
|
|
99
|
-
content: import('@plitzi/sdk-shared/authoring
|
|
100
|
-
} & import('@plitzi/sdk-shared/authoring
|
|
99
|
+
content: import('@plitzi/sdk-shared/authoring').ElementContentDefaults;
|
|
100
|
+
} & import('@plitzi/sdk-shared/authoring').ElementAttributesBrand<Partial<{
|
|
101
101
|
subType?: "switch" | "segmented" | undefined;
|
|
102
102
|
lightLabel?: string | undefined;
|
|
103
103
|
darkLabel?: string | undefined;
|