@plitzi/sdk-elements 0.32.1 → 0.32.2
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 +15 -0
- package/dist/Component/ComponentHelper.d.ts +2 -2
- package/dist/Component/ComponentHelper.mjs +3 -12
- package/dist/Component/ComponentProvider.d.ts +1 -1
- package/dist/Element/ElementContext.d.ts +19 -0
- package/dist/Element/ElementContext.mjs +6 -0
- package/dist/Element/JsxManager.d.ts +1 -1
- package/dist/Element/JsxManager.mjs +23 -29
- package/dist/Element/PluginManager.d.ts +1 -1
- package/dist/Element/PluginRemote.d.ts +1 -1
- package/dist/Element/ReplicaProvider.d.ts +1 -1
- package/dist/Element/RootElement.d.ts +3 -2
- package/dist/Element/RootElement.mjs +53 -111
- package/dist/Element/element.bench.d.ts +1 -0
- package/dist/Element/helpers/elementUtils.mjs +1 -1
- package/dist/Element/helpers/omitKeys.d.ts +1 -0
- package/dist/Element/helpers/omitKeys.mjs +8 -0
- package/dist/Element/helpers/pluginSelector.d.ts +9 -1
- package/dist/Element/helpers/pluginSelector.mjs +1 -1
- package/dist/Element/helpers/renderStaticTag.d.ts +17 -0
- package/dist/Element/helpers/renderStaticTag.mjs +13 -0
- package/dist/Element/hocs/withElement.d.ts +1 -1
- package/dist/Element/hocs/withElement.mjs +96 -71
- package/dist/Element/hooks/useElement.d.ts +3 -0
- package/dist/Element/hooks/useElement.mjs +10 -0
- package/dist/Element/hooks/useElementDataSource.mjs +4 -4
- package/dist/Element/hooks/useElementInteractions.mjs +21 -29
- package/dist/Element/hooks/useElementInternal.d.ts +16 -4
- package/dist/Element/hooks/useElementInternal.mjs +53 -52
- package/dist/Element/hooks/useElementState.d.ts +2 -2
- package/dist/Element/hooks/useElementState.mjs +26 -19
- package/dist/Element/hooks/useInternalItems.mjs +27 -25
- package/dist/Element/hooks/useRootElementInteractions.d.ts +21 -0
- package/dist/Element/hooks/useRootElementInteractions.mjs +69 -0
- package/dist/Element/hooks/useRscData.d.ts +8 -0
- package/dist/Element/hooks/useRscData.mjs +16 -0
- package/dist/components/ElementAdvancedEditor.d.ts +1 -1
- package/dist/dataSource/GlobalSources.mjs +77 -81
- package/dist/dataSource/index.d.ts +0 -2
- package/dist/dataSource/index.mjs +3 -5
- package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +2 -2
- package/dist/elements/advanced/BlockHtml/BlockHtml.mjs +5 -4
- package/dist/elements/advanced/BlockHtml/Settings.d.ts +1 -1
- package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +2 -2
- package/dist/elements/advanced/BlockJsx/BlockJsx.mjs +20 -19
- package/dist/elements/advanced/BlockJsx/Settings.d.ts +1 -1
- package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
- package/dist/elements/advanced/Custom/Custom.d.ts +2 -2
- package/dist/elements/advanced/Custom/Custom.mjs +26 -25
- package/dist/elements/advanced/Custom/Settings.d.ts +1 -1
- package/dist/elements/advanced/Custom/index.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/NodeHtml.d.ts +2 -2
- package/dist/elements/advanced/NodeHtml/NodeHtml.mjs +5 -4
- package/dist/elements/advanced/NodeHtml/Settings.d.ts +1 -1
- package/dist/elements/advanced/NodeHtml/index.d.ts +1 -1
- package/dist/elements/advanced/PlitziSdk/Settings.d.ts +1 -1
- package/dist/elements/advanced/Reference/Reference.d.ts +2 -2
- package/dist/elements/advanced/Reference/Reference.mjs +69 -68
- package/dist/elements/advanced/Reference/Settings.d.ts +1 -1
- package/dist/elements/advanced/Reference/Settings.mjs +32 -32
- package/dist/elements/advanced/Reference/index.d.ts +1 -1
- package/dist/elements/basic/Button/Button.d.ts +2 -2
- package/dist/elements/basic/Button/Button.mjs +15 -14
- package/dist/elements/basic/Button/Settings.d.ts +1 -1
- package/dist/elements/basic/Button/index.d.ts +1 -1
- package/dist/elements/basic/Dropdown/Dropdown.d.ts +2 -2
- package/dist/elements/basic/Dropdown/Dropdown.mjs +24 -23
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +2 -2
- package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.mjs +5 -4
- package/dist/elements/basic/Dropdown/DropdownPopup/Settings.d.ts +1 -1
- package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +1 -1
- package/dist/elements/basic/Dropdown/Settings.d.ts +1 -1
- package/dist/elements/basic/Dropdown/index.d.ts +2 -2
- package/dist/elements/basic/Dropdown/useDropdown.mjs +5 -1
- package/dist/elements/basic/Heading/Heading.d.ts +2 -2
- package/dist/elements/basic/Heading/Heading.mjs +16 -15
- package/dist/elements/basic/Heading/Settings.d.ts +1 -1
- package/dist/elements/basic/Heading/index.d.ts +1 -1
- package/dist/elements/basic/Link/Link.d.ts +2 -2
- package/dist/elements/basic/Link/Link.mjs +28 -27
- package/dist/elements/basic/Link/Settings.d.ts +1 -1
- package/dist/elements/basic/Link/Settings.mjs +22 -22
- package/dist/elements/basic/Link/index.d.ts +1 -1
- package/dist/elements/basic/Markdown/Markdown.d.ts +2 -2
- package/dist/elements/basic/Markdown/Markdown.mjs +5 -4
- package/dist/elements/basic/Markdown/Settings.d.ts +1 -1
- package/dist/elements/basic/Markdown/index.d.ts +1 -1
- package/dist/elements/basic/Paragraph/Paragraph.d.ts +2 -2
- package/dist/elements/basic/Paragraph/Paragraph.mjs +16 -15
- package/dist/elements/basic/Paragraph/Settings.d.ts +1 -1
- package/dist/elements/basic/Paragraph/index.d.ts +1 -1
- package/dist/elements/basic/Text/Settings.d.ts +1 -1
- package/dist/elements/basic/Text/Text.d.ts +2 -2
- package/dist/elements/basic/Text/Text.mjs +16 -15
- package/dist/elements/basic/Text/index.d.ts +1 -1
- package/dist/elements/form/Form/Form.d.ts +2 -4
- package/dist/elements/form/Form/Form.mjs +54 -58
- package/dist/elements/form/Form/Settings.d.ts +1 -1
- package/dist/elements/form/Form/index.d.ts +2 -2
- package/dist/elements/form/FormControl/FormControl.d.ts +2 -2
- package/dist/elements/form/FormControl/FormControl.mjs +39 -38
- package/dist/elements/form/FormControl/Settings.d.ts +1 -1
- package/dist/elements/form/FormControl/components/Label.d.ts +1 -1
- package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +1 -1
- package/dist/elements/form/FormControl/hocs/withFieldValue.mjs +1 -1
- package/dist/elements/form/FormControl/index.d.ts +2 -2
- package/dist/elements/form/FormControl/inputs/Checkbox.d.ts +1 -1
- package/dist/elements/form/FormControl/inputs/Hidden.d.ts +1 -1
- package/dist/elements/form/FormControl/inputs/Input.d.ts +1 -1
- package/dist/elements/form/FormControl/inputs/Select.d.ts +1 -1
- package/dist/elements/form/FormControl/inputs/Textarea.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +2 -2
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +27 -26
- package/dist/elements/internal/LayoutContainer/Settings.d.ts +1 -1
- package/dist/elements/internal/LayoutContainer/Settings.mjs +7 -7
- package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
- package/dist/elements/internal/Loading/Loading.d.ts +2 -2
- package/dist/elements/internal/Loading/Loading.mjs +14 -13
- package/dist/elements/internal/Loading/index.d.ts +1 -1
- package/dist/elements/internal/NotFound/NotFound.d.ts +2 -2
- package/dist/elements/internal/NotFound/NotFound.mjs +16 -15
- package/dist/elements/internal/NotFound/index.d.ts +1 -1
- package/dist/elements/internal/Page/Page.d.ts +2 -2
- package/dist/elements/internal/Page/Page.mjs +20 -19
- package/dist/elements/internal/Page/Settings.d.ts +1 -1
- package/dist/elements/internal/Page/Settings.mjs +34 -34
- package/dist/elements/internal/Page/index.d.ts +1 -1
- package/dist/elements/media/FontAwesome/FontAwesome.d.ts +2 -2
- package/dist/elements/media/FontAwesome/FontAwesome.mjs +5 -4
- package/dist/elements/media/FontAwesome/Settings.d.ts +1 -1
- package/dist/elements/media/FontAwesome/Settings.mjs +3 -1
- package/dist/elements/media/FontAwesome/index.d.ts +1 -1
- package/dist/elements/media/Image/Image.d.ts +2 -2
- package/dist/elements/media/Image/Image.mjs +4 -4
- package/dist/elements/media/Image/Settings.d.ts +1 -1
- package/dist/elements/media/Image/index.d.ts +1 -1
- package/dist/elements/media/Video/Settings.d.ts +1 -1
- package/dist/elements/media/Video/Video.d.ts +2 -2
- package/dist/elements/media/Video/Video.mjs +5 -4
- package/dist/elements/media/Video/index.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +2 -2
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +33 -32
- package/dist/elements/provider/ApiContainer/Settings.d.ts +1 -1
- package/dist/elements/provider/ApiContainer/Settings.mjs +19 -19
- package/dist/elements/provider/ApiContainer/index.d.ts +1 -1
- package/dist/elements/provider/CollectionContainer/CollectionContainer.d.ts +2 -2
- package/dist/elements/provider/CollectionContainer/CollectionContainer.mjs +23 -22
- package/dist/elements/provider/CollectionContainer/Settings.d.ts +1 -1
- package/dist/elements/provider/CollectionContainer/hooks/useCollectionContext.mjs +38 -38
- package/dist/elements/provider/CollectionContainer/index.d.ts +1 -1
- package/dist/elements/structure/Container/Container.d.ts +2 -2
- package/dist/elements/structure/Container/Container.mjs +5 -4
- package/dist/elements/structure/Container/Settings.d.ts +1 -1
- package/dist/elements/structure/Container/index.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +2 -2
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +49 -46
- package/dist/elements/structure/DialogContainer/Settings.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/index.d.ts +1 -1
- package/dist/elements/structure/List/List.d.ts +2 -2
- package/dist/elements/structure/List/List.mjs +4 -3
- package/dist/elements/structure/List/ListItem/ListItem.d.ts +2 -2
- package/dist/elements/structure/List/ListItem/ListItem.mjs +5 -4
- package/dist/elements/structure/List/ListItem/Settings.d.ts +1 -1
- package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
- package/dist/elements/structure/List/Settings.d.ts +1 -1
- package/dist/elements/structure/List/index.d.ts +2 -2
- package/dist/elements/structure/List/modes/ListBasic.d.ts +1 -1
- package/dist/elements/structure/List/modes/ListBasic.mjs +1 -1
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.d.ts +1 -1
- package/dist/elements/structure/List/modes/ListControlled/ListControlled.mjs +25 -25
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.d.ts +1 -1
- package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.mjs +24 -23
- package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +2 -2
- package/dist/elements/structure/ModalContainer/ModalContainer.mjs +40 -37
- package/dist/elements/structure/ModalContainer/Settings.d.ts +1 -1
- package/dist/elements/structure/ModalContainer/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/Settings.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainer.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainer.mjs +5 -4
- package/dist/elements/structure/TabContainer/TabContainerBody/Settings.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.mjs +5 -4
- package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/Settings.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.mjs +5 -4
- package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/Settings.d.ts +1 -1
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +2 -2
- package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.mjs +5 -4
- package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +1 -1
- package/dist/elements/structure/TabContainer/index.d.ts +4 -4
- package/dist/index.d.ts +37 -36
- package/dist/index.mjs +62 -61
- package/dist/testUtils/elementTestUtils.d.ts +4 -0
- package/package.json +37 -53
- package/dist/dataSource/getBindingsDetails.d.ts +0 -10
- package/dist/dataSource/getBindingsDetails.mjs +0 -49
- package/dist/dataSource/utility/arrayMap.d.ts +0 -6
- package/dist/dataSource/utility/arrayMap.mjs +0 -28
- package/dist/dataSource/utility/capitalize.d.ts +0 -3
- package/dist/dataSource/utility/capitalize.mjs +0 -11
- package/dist/dataSource/utility/dateConverter.d.ts +0 -3
- package/dist/dataSource/utility/dateConverter.mjs +0 -60
- package/dist/dataSource/utility/index.d.ts +0 -7
- package/dist/dataSource/utility/index.mjs +0 -22
- package/dist/dataSource/utility/staticValue.d.ts +0 -3
- package/dist/dataSource/utility/staticValue.mjs +0 -47
- package/dist/dataSource/utility/stringToArray.d.ts +0 -3
- package/dist/dataSource/utility/stringToArray.mjs +0 -20
- package/dist/dataSource/utility/styleSelector.d.ts +0 -3
- package/dist/dataSource/utility/styleSelector.mjs +0 -42
- package/dist/dataSource/utility/twigTemplate.d.ts +0 -3
- package/dist/dataSource/utility/twigTemplate.mjs +0 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const DropdownPopup: {
|
|
2
|
-
(props: import('../../../../Element/hocs/withElement').WithElementProps<import('./DropdownPopup').DropdownPopupProps>): import("react
|
|
2
|
+
(props: import('../../../../Element/hocs/withElement').WithElementProps<import('./DropdownPopup').DropdownPopupProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
type: string;
|
|
@@ -9,5 +9,5 @@ type SettingsProps = {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onUpdate?: (key: string, value: string | boolean | number) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const Settings: ({ popupPlacement, openPopup, backgroundDisabled, closeOnClickBackground, closeOnClickPopup, containerTopOffset, containerLeftOffset, disabled, onUpdate }: SettingsProps) => import("react
|
|
12
|
+
declare const Settings: ({ popupPlacement, openPopup, backgroundDisabled, closeOnClickBackground, closeOnClickPopup, containerTopOffset, containerLeftOffset, disabled, onUpdate }: SettingsProps) => import("react").JSX.Element;
|
|
13
13
|
export default Settings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Dropdown: {
|
|
2
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Dropdown').DropdownProps>): import("react
|
|
2
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Dropdown').DropdownProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
type: string;
|
|
@@ -75,7 +75,7 @@ declare const Dropdown: {
|
|
|
75
75
|
initialItems: string[];
|
|
76
76
|
plugins: {
|
|
77
77
|
dropdownPopup: {
|
|
78
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./DropdownPopup/DropdownPopup').DropdownPopupProps>): import("react
|
|
78
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./DropdownPopup/DropdownPopup').DropdownPopupProps>): import("react").JSX.Element;
|
|
79
79
|
displayName: string;
|
|
80
80
|
} & {
|
|
81
81
|
type: string;
|
|
@@ -93,7 +93,11 @@ var a = ({ ref: a, popupRef: o, open: s, placement: c = "bottom", disabled: l =
|
|
|
93
93
|
x,
|
|
94
94
|
S,
|
|
95
95
|
v,
|
|
96
|
-
n(() =>
|
|
96
|
+
n(() => {
|
|
97
|
+
if (!g || !a?.current || !o?.current) return;
|
|
98
|
+
let e = o.current.getBoundingClientRect();
|
|
99
|
+
return w(e);
|
|
100
|
+
}, [
|
|
97
101
|
g,
|
|
98
102
|
a,
|
|
99
103
|
o,
|
|
@@ -5,9 +5,9 @@ export type HeadingProps = {
|
|
|
5
5
|
content?: string;
|
|
6
6
|
subType?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
7
7
|
};
|
|
8
|
-
declare const Heading: ({ ref, className, content, subType }: HeadingProps) => import("react
|
|
8
|
+
declare const Heading: ({ ref, className, content, subType }: HeadingProps) => import("react").JSX.Element;
|
|
9
9
|
declare const _default: {
|
|
10
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<HeadingProps>): import("react
|
|
10
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<HeadingProps>): import("react").JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import e from "../../../Element/
|
|
2
|
-
import t from "../../../Element/
|
|
3
|
-
import
|
|
4
|
-
import a from "
|
|
5
|
-
import
|
|
6
|
-
import c from "
|
|
7
|
-
import l from "
|
|
1
|
+
import e from "../../../Element/hooks/useElement.mjs";
|
|
2
|
+
import { RootElement as t } from "../../../Element/RootElement.mjs";
|
|
3
|
+
import n from "../../../Element/hocs/withElement.mjs";
|
|
4
|
+
import { use as r, useCallback as i, useMemo as a } from "react";
|
|
5
|
+
import o from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import l from "clsx";
|
|
8
8
|
import u from "@plitzi/plitzi-ui/ContentEditable";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
//#region src/elements/basic/Heading/Heading.tsx
|
|
10
|
+
var d = ({ ref: n, className: d = "", content: f = "Heading", subType: p = "h1" }) => {
|
|
11
|
+
let { id: m } = e(), { settings: { previewMode: h }, contexts: { BuilderContext: g } } = o(), _ = g ? r(g) : void 0, v = a(() => typeof f != "string" && typeof f != "number" ? JSON.stringify(f) : !f && f !== "" && !h ? "Heading" : f, [f, h]), y = i((e) => !h && _?.updateElement(m, "content", e), [_?.updateElement, m]);
|
|
12
|
+
return /* @__PURE__ */ c(t, {
|
|
13
|
+
ref: n,
|
|
13
14
|
tag: h ? p : "div",
|
|
14
|
-
className:
|
|
15
|
-
children: [h && v, !h && /* @__PURE__ */
|
|
15
|
+
className: l("plitzi-component__heading", { [`plitzi-component__heading-${p}`]: p }, d),
|
|
16
|
+
children: [h && v, !h && /* @__PURE__ */ s(u, {
|
|
16
17
|
value: v,
|
|
17
18
|
onChange: y,
|
|
18
19
|
openMode: "doubleClick"
|
|
19
20
|
})]
|
|
20
21
|
});
|
|
21
|
-
});
|
|
22
|
+
}, f = n(d);
|
|
22
23
|
//#endregion
|
|
23
|
-
export { d as default };
|
|
24
|
+
export { d as Heading, f as default };
|
|
@@ -3,5 +3,5 @@ type SettingsProps = {
|
|
|
3
3
|
content?: string;
|
|
4
4
|
onUpdate?: (key: string, value: string | boolean | number) => void;
|
|
5
5
|
};
|
|
6
|
-
declare const Settings: ({ subType, content, onUpdate }: SettingsProps) => import("react
|
|
6
|
+
declare const Settings: ({ subType, content, onUpdate }: SettingsProps) => import("react").JSX.Element;
|
|
7
7
|
export default Settings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Heading: {
|
|
2
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Heading').HeadingProps>): import("react
|
|
2
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Heading').HeadingProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
type: string;
|
|
@@ -7,9 +7,9 @@ export type LinkProps = {
|
|
|
7
7
|
target?: 'self' | 'blank' | 'parent' | 'top';
|
|
8
8
|
mode?: 'page' | 'internal' | 'external';
|
|
9
9
|
};
|
|
10
|
-
declare const Link: ({ ref, children, className, href, target, mode }: LinkProps) => import("react
|
|
10
|
+
declare const Link: ({ ref, children, className, href, target, mode }: LinkProps) => import("react").JSX.Element;
|
|
11
11
|
declare const _default: {
|
|
12
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<LinkProps>): import("react
|
|
12
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<LinkProps>): import("react").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import e from "../../../Element/
|
|
2
|
-
import t from "../../../Element/
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import c from "
|
|
9
|
-
import l from "
|
|
1
|
+
import e from "../../../Element/hooks/useElement.mjs";
|
|
2
|
+
import { RootElement as t } from "../../../Element/RootElement.mjs";
|
|
3
|
+
import n from "../../../Element/hocs/withElement.mjs";
|
|
4
|
+
import { use as r, useMemo as i } from "react";
|
|
5
|
+
import a from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
6
|
+
import { useCommonStore as o } from "@plitzi/sdk-shared/store";
|
|
7
|
+
import { processTwig as s } from "@plitzi/sdk-shared/helpers/twigWrapper";
|
|
8
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
9
|
+
import l from "clsx";
|
|
10
10
|
import { getPageFullPath as u } from "@plitzi/sdk-navigation/NavigationHelper";
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
//#region src/elements/basic/Link/Link.tsx
|
|
12
|
+
var d = ({ ref: n, children: d, className: f = "", href: p = "#", target: m = "self", mode: h = "page" }) => {
|
|
13
|
+
let { style: g } = e(), { settings: { previewMode: _ }, contexts: { NavigationContext: v } } = a(), { navigate: y, routeParams: b, queryParams: x } = r(v), [[S, C]] = o(["pageDefinitions", "schema.pageFolders"]), w = i(() => {
|
|
13
14
|
if (h === "external") return p;
|
|
14
15
|
let e = `/${p}`.replaceAll(/[/]+/gim, "/");
|
|
15
16
|
if (h === "internal") {
|
|
16
17
|
try {
|
|
17
|
-
let t =
|
|
18
|
+
let t = s(e, {
|
|
18
19
|
...x,
|
|
19
20
|
...b
|
|
20
21
|
}, !0);
|
|
@@ -22,44 +23,44 @@ var d = t(({ ref: t, children: d, className: f = "", href: p = "#", target: m =
|
|
|
22
23
|
} catch {}
|
|
23
24
|
return e;
|
|
24
25
|
}
|
|
25
|
-
return u(
|
|
26
|
+
return u(S, C, p, !0);
|
|
26
27
|
}, [
|
|
27
28
|
h,
|
|
28
29
|
p,
|
|
30
|
+
S,
|
|
29
31
|
C,
|
|
30
|
-
w,
|
|
31
32
|
x,
|
|
32
33
|
b
|
|
33
|
-
]),
|
|
34
|
-
_ && (e.stopPropagation(), (h === "page" || h === "internal") && (e.preventDefault(), y(
|
|
34
|
+
]), T = (e) => {
|
|
35
|
+
_ && (e.stopPropagation(), (h === "page" || h === "internal") && (e.preventDefault(), y(w)));
|
|
35
36
|
};
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ c(t, {
|
|
37
38
|
tag: "a",
|
|
38
|
-
...
|
|
39
|
+
...i(() => {
|
|
39
40
|
let e = {
|
|
40
|
-
ref:
|
|
41
|
+
ref: n,
|
|
41
42
|
style: g,
|
|
42
43
|
target: `_${m}`,
|
|
43
|
-
className:
|
|
44
|
+
className: l("plitzi-component__link", f)
|
|
44
45
|
};
|
|
45
46
|
return _ ? {
|
|
46
47
|
...e,
|
|
47
|
-
href:
|
|
48
|
+
href: w
|
|
48
49
|
} : {
|
|
49
50
|
...e,
|
|
50
|
-
"href-disabled":
|
|
51
|
+
"href-disabled": w
|
|
51
52
|
};
|
|
52
53
|
}, [
|
|
53
|
-
|
|
54
|
+
n,
|
|
54
55
|
g,
|
|
55
56
|
m,
|
|
56
57
|
f,
|
|
57
58
|
_,
|
|
58
|
-
|
|
59
|
+
w
|
|
59
60
|
]),
|
|
60
|
-
onClick:
|
|
61
|
+
onClick: T,
|
|
61
62
|
children: d
|
|
62
63
|
});
|
|
63
|
-
});
|
|
64
|
+
}, f = n(d);
|
|
64
65
|
//#endregion
|
|
65
|
-
export { d as default };
|
|
66
|
+
export { d as Link, f as default };
|
|
@@ -4,5 +4,5 @@ type SettingsProps = {
|
|
|
4
4
|
target?: 'blank' | 'self' | 'parent' | 'top';
|
|
5
5
|
onUpdate?: (key: string, value: string | boolean | number) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const Settings: ({ mode, href, target, onUpdate }: SettingsProps) => import("react
|
|
7
|
+
declare const Settings: ({ mode, href, target, onUpdate }: SettingsProps) => import("react").JSX.Element;
|
|
8
8
|
export default Settings;
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { use as e, useCallback as t, useEffect as n, useMemo as r } from "react";
|
|
2
2
|
import i from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useCommonStore as a } from "@plitzi/sdk-shared/store";
|
|
4
|
+
import { get as o, pick as s } from "@plitzi/plitzi-ui/helpers";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
import { getPageFullPath as u } from "@plitzi/sdk-navigation/NavigationHelper";
|
|
7
7
|
import d from "@plitzi/plitzi-ui/Input";
|
|
8
8
|
import f from "@plitzi/plitzi-ui/Select";
|
|
9
9
|
//#region src/elements/basic/Link/Settings.tsx
|
|
10
10
|
var p = ({ mode: p = "page", href: m = "#", target: h = "self", onUpdate: g }) => {
|
|
11
|
-
let { contexts: { NetworkContext: _ } } = i(),
|
|
11
|
+
let { contexts: { NetworkContext: _ } } = i(), [[v, y, b]] = a([
|
|
12
12
|
"schema.flat",
|
|
13
13
|
"schema.pages",
|
|
14
14
|
"schema.pageFolders"
|
|
15
|
-
]), { server:
|
|
16
|
-
let e =
|
|
15
|
+
]), { server: x } = e(_), S = r(() => o(x, "domain", "https://subdomain.plitzi.app"), [x]), C = r(() => {
|
|
16
|
+
let e = s(v, y);
|
|
17
17
|
return Object.keys(e).reduce((t, n) => {
|
|
18
|
-
let r = e[n], i =
|
|
18
|
+
let r = e[n], i = o(r, "attributes.name", n), a = o(r, "attributes.default", !1);
|
|
19
19
|
return [...t, {
|
|
20
20
|
key: n,
|
|
21
21
|
label: i,
|
|
22
|
-
defaultPage:
|
|
22
|
+
defaultPage: a
|
|
23
23
|
}];
|
|
24
24
|
}, []);
|
|
25
|
-
}, [
|
|
25
|
+
}, [v, y]), w = t((e) => (t) => g?.(e, t), [g]), T = t((e) => g?.("href", e), [g]), E = t((e) => {
|
|
26
26
|
if (g?.("mode", e), e !== "page") {
|
|
27
27
|
g?.("href", "#");
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
let t =
|
|
30
|
+
let t = C.find((e) => e.defaultPage);
|
|
31
31
|
t && g?.("href", t.key);
|
|
32
|
-
}, [g,
|
|
32
|
+
}, [g, C]);
|
|
33
33
|
n(() => {
|
|
34
34
|
if (p === "page" && m === "#") {
|
|
35
|
-
let e =
|
|
35
|
+
let e = C.find((e) => e.defaultPage);
|
|
36
36
|
e && g?.("href", e.key);
|
|
37
37
|
}
|
|
38
38
|
}, [
|
|
39
39
|
p,
|
|
40
40
|
m,
|
|
41
|
-
|
|
41
|
+
C,
|
|
42
42
|
g
|
|
43
43
|
]);
|
|
44
|
-
let
|
|
44
|
+
let D = r(() => p === "page" ? `${S}${u(v, b, m, !0)}` : m.replaceAll(/[/]+/gim, "/"), [
|
|
45
45
|
p,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
v,
|
|
47
|
+
b,
|
|
48
48
|
m,
|
|
49
|
-
|
|
49
|
+
S
|
|
50
50
|
]);
|
|
51
51
|
return /* @__PURE__ */ l("div", {
|
|
52
52
|
className: "flex h-full flex-col gap-4 py-2",
|
|
@@ -54,7 +54,7 @@ var p = ({ mode: p = "page", href: m = "#", target: h = "self", onUpdate: g }) =
|
|
|
54
54
|
/* @__PURE__ */ l(f, {
|
|
55
55
|
value: h,
|
|
56
56
|
label: "Target",
|
|
57
|
-
onChange:
|
|
57
|
+
onChange: w("target"),
|
|
58
58
|
size: "sm",
|
|
59
59
|
children: [
|
|
60
60
|
/* @__PURE__ */ c("option", {
|
|
@@ -78,7 +78,7 @@ var p = ({ mode: p = "page", href: m = "#", target: h = "self", onUpdate: g }) =
|
|
|
78
78
|
/* @__PURE__ */ l(f, {
|
|
79
79
|
value: p,
|
|
80
80
|
label: "Mode",
|
|
81
|
-
onChange:
|
|
81
|
+
onChange: E,
|
|
82
82
|
size: "sm",
|
|
83
83
|
children: [
|
|
84
84
|
/* @__PURE__ */ c("option", {
|
|
@@ -98,7 +98,7 @@ var p = ({ mode: p = "page", href: m = "#", target: h = "self", onUpdate: g }) =
|
|
|
98
98
|
p !== "page" && /* @__PURE__ */ c(d, {
|
|
99
99
|
value: m,
|
|
100
100
|
label: "Url",
|
|
101
|
-
onChange:
|
|
101
|
+
onChange: T,
|
|
102
102
|
size: "sm"
|
|
103
103
|
}),
|
|
104
104
|
p === "page" && /* @__PURE__ */ l("div", {
|
|
@@ -106,20 +106,20 @@ var p = ({ mode: p = "page", href: m = "#", target: h = "self", onUpdate: g }) =
|
|
|
106
106
|
children: [/* @__PURE__ */ l(f, {
|
|
107
107
|
value: m,
|
|
108
108
|
label: "Url",
|
|
109
|
-
onChange:
|
|
109
|
+
onChange: T,
|
|
110
110
|
className: { inputContainer: "rounded-t" },
|
|
111
111
|
size: "sm",
|
|
112
112
|
children: [/* @__PURE__ */ c("option", {
|
|
113
113
|
value: "",
|
|
114
114
|
disabled: !0,
|
|
115
115
|
children: "Select a page"
|
|
116
|
-
}),
|
|
116
|
+
}), C.map((e) => /* @__PURE__ */ c("option", {
|
|
117
117
|
value: e.key,
|
|
118
118
|
children: e.label
|
|
119
119
|
}, e.key))]
|
|
120
120
|
}), /* @__PURE__ */ c("div", {
|
|
121
121
|
className: "truncate rounded-b border-r border-b border-l border-gray-200 p-1 text-xs",
|
|
122
|
-
children:
|
|
122
|
+
children: D
|
|
123
123
|
})]
|
|
124
124
|
})
|
|
125
125
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Link: {
|
|
2
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Link').LinkProps>): import("react
|
|
2
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Link').LinkProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
type: string;
|
|
@@ -4,9 +4,9 @@ export type MarkdownProps = {
|
|
|
4
4
|
className: string;
|
|
5
5
|
content: string;
|
|
6
6
|
};
|
|
7
|
-
declare const Markdown: ({ ref, content, className }: MarkdownProps) => import("react
|
|
7
|
+
declare const Markdown: ({ ref, content, className }: MarkdownProps) => import("react").JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<MarkdownProps>): import("react
|
|
9
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<MarkdownProps>): import("react").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import e from "../../../Element/RootElement.mjs";
|
|
1
|
+
import { RootElement as e } from "../../../Element/RootElement.mjs";
|
|
2
2
|
import t from "../../../Element/hocs/withElement.mjs";
|
|
3
3
|
import n from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import i from "clsx";
|
|
6
6
|
import a from "@plitzi/plitzi-ui/Markdown";
|
|
7
|
-
|
|
7
|
+
//#region src/elements/basic/Markdown/Markdown.tsx
|
|
8
|
+
var o = ({ ref: t, content: o = "Markdown", className: s = "" }) => {
|
|
8
9
|
let { settings: { previewMode: c } } = n();
|
|
9
10
|
return /* @__PURE__ */ r(e, {
|
|
10
11
|
ref: t,
|
|
11
12
|
className: i("plitzi-component__markdown", { "plitzi-component__markdown--edit-mode": !c }, s),
|
|
12
13
|
children: /* @__PURE__ */ r(a, { children: o })
|
|
13
14
|
});
|
|
14
|
-
});
|
|
15
|
+
}, s = t(o);
|
|
15
16
|
//#endregion
|
|
16
|
-
export { o as default };
|
|
17
|
+
export { o as Markdown, s as default };
|
|
@@ -2,5 +2,5 @@ type SettingsProps = {
|
|
|
2
2
|
content?: string;
|
|
3
3
|
onUpdate?: (key: string, value: string | boolean | number) => void;
|
|
4
4
|
};
|
|
5
|
-
declare const Settings: ({ content, onUpdate }: SettingsProps) => import("react
|
|
5
|
+
declare const Settings: ({ content, onUpdate }: SettingsProps) => import("react").JSX.Element;
|
|
6
6
|
export default Settings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Markdown: {
|
|
2
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Markdown').MarkdownProps>): import("react
|
|
2
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Markdown').MarkdownProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
type: string;
|
|
@@ -4,9 +4,9 @@ export type ParagraphProps = {
|
|
|
4
4
|
content?: string | number;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const Paragraph: ({ ref, content, className }: ParagraphProps) => import("react
|
|
7
|
+
declare const Paragraph: ({ ref, content, className }: ParagraphProps) => import("react").JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<ParagraphProps>): import("react
|
|
9
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<ParagraphProps>): import("react").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import e from "../../../Element/
|
|
2
|
-
import t from "../../../Element/
|
|
3
|
-
import
|
|
4
|
-
import a from "
|
|
5
|
-
import
|
|
6
|
-
import c from "
|
|
7
|
-
import l from "
|
|
1
|
+
import e from "../../../Element/hooks/useElement.mjs";
|
|
2
|
+
import { RootElement as t } from "../../../Element/RootElement.mjs";
|
|
3
|
+
import n from "../../../Element/hocs/withElement.mjs";
|
|
4
|
+
import { use as r, useCallback as i, useMemo as a } from "react";
|
|
5
|
+
import o from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import l from "clsx";
|
|
8
8
|
import u from "@plitzi/plitzi-ui/ContentEditable";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
//#region src/elements/basic/Paragraph/Paragraph.tsx
|
|
10
|
+
var d = ({ ref: n, content: d = "Paragraph", className: f = "" }) => {
|
|
11
|
+
let { id: p } = e(), { settings: { previewMode: m }, contexts: { BuilderContext: h } } = o(), g = h ? r(h) : void 0, _ = a(() => typeof d != "string" && typeof d != "number" ? JSON.stringify(d) : !d && d !== "" && !m ? "Paragraph" : typeof d == "number" ? `${d}` : d, [d, m]), v = i((e) => g?.updateElement(p, "content", e), [g, p]);
|
|
12
|
+
return /* @__PURE__ */ c(t, {
|
|
13
|
+
ref: n,
|
|
13
14
|
tag: m ? "p" : "div",
|
|
14
|
-
className:
|
|
15
|
-
children: [m && _, !m && /* @__PURE__ */
|
|
15
|
+
className: l("plitzi-component__paragraph", f),
|
|
16
|
+
children: [m && _, !m && /* @__PURE__ */ s(u, {
|
|
16
17
|
className: "",
|
|
17
18
|
value: _,
|
|
18
19
|
onChange: v,
|
|
19
20
|
openMode: "doubleClick"
|
|
20
21
|
})]
|
|
21
22
|
});
|
|
22
|
-
});
|
|
23
|
+
}, f = n(d);
|
|
23
24
|
//#endregion
|
|
24
|
-
export { d as default };
|
|
25
|
+
export { d as Paragraph, f as default };
|
|
@@ -2,5 +2,5 @@ type SettingsProps = {
|
|
|
2
2
|
content?: string;
|
|
3
3
|
onUpdate?: (key: string, value: string | boolean | number) => void;
|
|
4
4
|
};
|
|
5
|
-
declare const Settings: ({ content, onUpdate }: SettingsProps) => import("react
|
|
5
|
+
declare const Settings: ({ content, onUpdate }: SettingsProps) => import("react").JSX.Element;
|
|
6
6
|
export default Settings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Paragraph: {
|
|
2
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Paragraph').ParagraphProps>): import("react
|
|
2
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Paragraph').ParagraphProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
type: string;
|
|
@@ -2,5 +2,5 @@ type SettingsProps = {
|
|
|
2
2
|
content?: string;
|
|
3
3
|
onUpdate?: (key: string, value: string | boolean | number) => void;
|
|
4
4
|
};
|
|
5
|
-
declare const Settings: ({ content, onUpdate }: SettingsProps) => import("react
|
|
5
|
+
declare const Settings: ({ content, onUpdate }: SettingsProps) => import("react").JSX.Element;
|
|
6
6
|
export default Settings;
|
|
@@ -4,9 +4,9 @@ export type TextProps = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
content?: string | number;
|
|
6
6
|
};
|
|
7
|
-
declare const Text: ({ ref, content, className }: TextProps) => import("react
|
|
7
|
+
declare const Text: ({ ref, content, className }: TextProps) => import("react").JSX.Element;
|
|
8
8
|
declare const _default: {
|
|
9
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<TextProps>): import("react
|
|
9
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<TextProps>): import("react").JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import e from "../../../Element/
|
|
2
|
-
import t from "../../../Element/
|
|
3
|
-
import
|
|
4
|
-
import a from "
|
|
5
|
-
import
|
|
6
|
-
import c from "
|
|
7
|
-
import l from "
|
|
1
|
+
import e from "../../../Element/hooks/useElement.mjs";
|
|
2
|
+
import { RootElement as t } from "../../../Element/RootElement.mjs";
|
|
3
|
+
import n from "../../../Element/hocs/withElement.mjs";
|
|
4
|
+
import { use as r, useCallback as i, useMemo as a } from "react";
|
|
5
|
+
import o from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import l from "clsx";
|
|
8
8
|
import u from "@plitzi/plitzi-ui/ContentEditable";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
//#region src/elements/basic/Text/Text.tsx
|
|
10
|
+
var d = ({ ref: n, content: d = "Text", className: f = "" }) => {
|
|
11
|
+
let { id: p } = e(), { settings: { previewMode: m }, contexts: { BuilderContext: h } } = o(), g = h ? r(h) : void 0, _ = a(() => typeof d != "string" && typeof d != "number" ? JSON.stringify(d) : !d && d !== "" && !m ? "Text" : typeof d == "number" ? `${d}` : d, [d, m]), v = i((e) => g?.updateElement(p, "content", e), [g, p]);
|
|
12
|
+
return /* @__PURE__ */ c(t, {
|
|
13
|
+
ref: n,
|
|
14
|
+
className: l("plitzi-component__text", f),
|
|
15
|
+
children: [m && _, !m && /* @__PURE__ */ s(u, {
|
|
15
16
|
className: "focus-visible:outline-hidden",
|
|
16
17
|
value: _,
|
|
17
18
|
onChange: v,
|
|
18
19
|
openMode: "doubleClick"
|
|
19
20
|
})]
|
|
20
21
|
});
|
|
21
|
-
});
|
|
22
|
+
}, f = n(d);
|
|
22
23
|
//#endregion
|
|
23
|
-
export { d as default };
|
|
24
|
+
export { d as Text, f as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Text: {
|
|
2
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Text').TextProps>): import("react
|
|
2
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<import('./Text').TextProps>): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
4
|
} & {
|
|
5
5
|
type: string;
|
|
@@ -16,18 +16,16 @@ export type Field = {
|
|
|
16
16
|
};
|
|
17
17
|
export type FieldValue = string | boolean | number;
|
|
18
18
|
export type FormContextValue = {
|
|
19
|
-
fields: Record<string, SourceField>;
|
|
20
19
|
errors: Record<string, string>;
|
|
21
20
|
values: Record<string, unknown>;
|
|
22
21
|
registerField: (field: SourceField) => void;
|
|
23
22
|
unregisterField: (name: string) => void;
|
|
24
|
-
getField: (name: string) => SourceField | Record<string, SourceField>;
|
|
25
23
|
setFieldValue: (name: string, value: FieldValue | null) => void;
|
|
26
24
|
setFieldError: (name: string, error: string) => void;
|
|
27
25
|
};
|
|
28
|
-
declare const Form: ({ ref, className, children, method, actionUrl, managedByInteractions, errors, values }: FormProps) => import("react
|
|
26
|
+
declare const Form: ({ ref, className, children, method, actionUrl, managedByInteractions, errors, values }: FormProps) => import("react").JSX.Element;
|
|
29
27
|
declare const _default: {
|
|
30
|
-
(props: import('../../../Element/hocs/withElement').WithElementProps<FormProps>): import("react
|
|
28
|
+
(props: import('../../../Element/hocs/withElement').WithElementProps<FormProps>): import("react").JSX.Element;
|
|
31
29
|
displayName: string;
|
|
32
30
|
};
|
|
33
31
|
export default _default;
|