@makeswift/runtime 0.0.0-48e8094 → 0.0.0-5a1b550
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/api.js +1 -0
- package/builder.js +1 -0
- package/dist/actions.cjs.js +116 -17
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +102 -16
- package/dist/actions.es.js.map +1 -1
- package/dist/api.cjs.js +5 -0
- package/dist/api.cjs.js.map +1 -0
- package/dist/api.es.js +2 -0
- package/dist/api.es.js.map +1 -0
- package/dist/box-model.cjs.js +2 -2
- package/dist/box-model.es.js +1 -0
- package/dist/box-model.es.js.map +1 -1
- package/dist/box-models.cjs.js +28 -156
- package/dist/box-models.cjs.js.map +1 -1
- package/dist/box-models.es.js +31 -159
- package/dist/box-models.es.js.map +1 -1
- package/dist/builder.cjs.js +9 -0
- package/dist/builder.cjs.js.map +1 -0
- package/dist/builder.es.js +3 -0
- package/dist/builder.es.js.map +1 -0
- package/dist/components.cjs.js +57 -19955
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +27 -19911
- package/dist/components.es.js.map +1 -1
- package/dist/constants.cjs.js +241 -0
- package/dist/constants.cjs.js.map +1 -0
- package/dist/constants.es.js +240 -0
- package/dist/constants.es.js.map +1 -0
- package/dist/control-serialization.cjs.js +147 -0
- package/dist/control-serialization.cjs.js.map +1 -0
- package/dist/control-serialization.es.js +143 -0
- package/dist/control-serialization.es.js.map +1 -0
- package/dist/descriptors.cjs.js +39 -3
- package/dist/descriptors.cjs.js.map +1 -1
- package/dist/descriptors.es.js +8 -4
- package/dist/descriptors.es.js.map +1 -1
- package/dist/instances.cjs.js +106 -0
- package/dist/instances.cjs.js.map +1 -0
- package/dist/instances.es.js +103 -0
- package/dist/instances.es.js.map +1 -0
- package/dist/main.cjs.js +13 -2
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +5 -1
- package/dist/main.es.js.map +1 -1
- package/dist/next.cjs.js +171 -0
- package/dist/next.cjs.js.map +1 -0
- package/dist/next.es.js +161 -0
- package/dist/next.es.js.map +1 -0
- package/dist/prop-controllers.cjs.js +4 -2
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +1 -0
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +271 -4131
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +262 -4126
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react-page.cjs.js +262 -0
- package/dist/react-page.cjs.js.map +1 -0
- package/dist/react-page.es.js +241 -0
- package/dist/react-page.es.js.map +1 -0
- package/dist/react.cjs.js +28 -3
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.cjs2.js +7556 -649
- package/dist/react.cjs2.js.map +1 -1
- package/dist/react.es.js +25 -1
- package/dist/react.es.js.map +1 -1
- package/dist/react.es2.js +7486 -627
- package/dist/react.es2.js.map +1 -1
- package/dist/types/api/constants.d.ts +4 -0
- package/dist/types/api/constants.d.ts.map +1 -0
- package/dist/types/api/generated/graphql.d.ts +120 -0
- package/dist/types/api/generated/graphql.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +3 -0
- package/dist/types/api/index.d.ts.map +1 -0
- package/dist/types/api/react.d.ts +8 -0
- package/dist/types/api/react.d.ts.map +1 -0
- package/dist/types/api/types.d.ts +4 -0
- package/dist/types/api/types.d.ts.map +1 -0
- package/dist/types/builder/index.d.ts +2 -0
- package/dist/types/builder/index.d.ts.map +1 -0
- package/dist/types/builder/serialization/control-serialization.d.ts +78 -0
- package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -0
- package/dist/types/builder/serialization/function-serialization.d.ts +11 -0
- package/dist/types/builder/serialization/function-serialization.d.ts.map +1 -0
- package/dist/types/builder/serialization/index.d.ts +3 -0
- package/dist/types/builder/serialization/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Box/Box.d.ts +5 -2
- package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
- package/dist/types/components/builtin/Box/index.d.ts +1 -1
- package/dist/types/components/builtin/Box/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Button/Button.d.ts +5 -2
- package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
- package/dist/types/components/builtin/Button/index.d.ts +1 -1
- package/dist/types/components/builtin/Button/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Carousel/Carousel.d.ts +5 -2
- package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/components/builtin/Carousel/index.d.ts +1 -1
- package/dist/types/components/builtin/Carousel/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Countdown/Countdown.d.ts +5 -2
- package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
- package/dist/types/components/builtin/Countdown/index.d.ts +1 -1
- package/dist/types/components/builtin/Countdown/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Divider/Divider.d.ts +5 -2
- package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
- package/dist/types/components/builtin/Divider/index.d.ts +1 -1
- package/dist/types/components/builtin/Divider/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Embed/Embed.d.ts +5 -2
- package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
- package/dist/types/components/builtin/Embed/index.d.ts +1 -1
- package/dist/types/components/builtin/Embed/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Form/Form.d.ts +41 -0
- package/dist/types/components/builtin/Form/Form.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +15 -0
- package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +15 -0
- package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +14 -0
- package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts +16 -0
- package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +10 -0
- package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts +23 -0
- package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts +3 -0
- package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +17 -0
- package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts +23 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts +19 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts +24 -0
- package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts +13 -0
- package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/index.d.ts +19 -0
- package/dist/types/components/builtin/Form/components/Field/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +11 -0
- package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts.map +1 -0
- package/dist/types/components/{Embed/Embed.d.ts → builtin/Form/components/Placeholder/index.d.ts} +2 -4
- package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/components/Spinner/index.d.ts +3 -0
- package/dist/types/components/builtin/Form/components/Spinner/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/context/FormContext.d.ts +32 -0
- package/dist/types/components/builtin/Form/context/FormContext.d.ts.map +1 -0
- package/dist/types/components/builtin/Form/index.d.ts +2 -0
- package/dist/types/components/builtin/Form/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Image/Image.d.ts +5 -2
- package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
- package/dist/types/components/builtin/Image/index.d.ts +1 -1
- package/dist/types/components/builtin/Image/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/Navigation.d.ts +5 -2
- package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
- package/dist/types/components/builtin/Navigation/index.d.ts +1 -1
- package/dist/types/components/builtin/Navigation/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Root/Root.d.ts +5 -2
- package/dist/types/components/builtin/Root/Root.d.ts.map +1 -1
- package/dist/types/components/builtin/Root/index.d.ts +1 -1
- package/dist/types/components/builtin/Root/index.d.ts.map +1 -1
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +5 -2
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
- package/dist/types/components/builtin/SocialLinks/index.d.ts +1 -1
- package/dist/types/components/builtin/SocialLinks/index.d.ts.map +1 -1
- package/dist/types/components/builtin/Text/Text.d.ts +19 -0
- package/dist/types/components/builtin/Text/Text.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts +24 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts +25 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts +13 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts +5 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Inlines.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts +3 -0
- package/dist/types/components/builtin/Text/components/RichTextEditor/plugins/Link.d.ts.map +1 -0
- package/dist/types/components/builtin/Text/index.d.ts +2 -0
- package/dist/types/components/builtin/Text/index.d.ts.map +1 -0
- package/dist/types/components/builtin/index.d.ts +4 -0
- package/dist/types/components/builtin/index.d.ts.map +1 -1
- package/dist/types/components/hooks/index.d.ts +1 -0
- package/dist/types/components/hooks/index.d.ts.map +1 -1
- package/dist/types/components/hooks/useBackgrounds.d.ts.map +1 -1
- package/dist/types/components/hooks/useBorder.d.ts.map +1 -1
- package/dist/types/components/hooks/useBoxShadow.d.ts.map +1 -1
- package/dist/types/components/hooks/useColor.d.ts.map +1 -1
- package/dist/types/components/hooks/useFile.d.ts.map +1 -1
- package/dist/types/components/hooks/usePage.d.ts.map +1 -1
- package/dist/types/components/hooks/useTable.d.ts +66 -0
- package/dist/types/components/hooks/useTable.d.ts.map +1 -0
- package/dist/types/components/hooks/useTableFormFieldRefs.d.ts +8 -0
- package/dist/types/components/hooks/useTableFormFieldRefs.d.ts.map +1 -0
- package/dist/types/components/hooks/useTypography.d.ts +24 -0
- package/dist/types/components/hooks/useTypography.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/utils/devices.d.ts +1 -0
- package/dist/types/components/utils/devices.d.ts.map +1 -1
- package/dist/types/components/utils/queries.d.ts +7 -4
- package/dist/types/components/utils/queries.d.ts.map +1 -1
- package/dist/types/components/utils/types.d.ts +1 -2
- package/dist/types/components/utils/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/next.d.ts +21 -0
- package/dist/types/next.d.ts.map +1 -0
- package/dist/types/prop-controllers/descriptors.d.ts +32 -13
- package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
- package/dist/types/prop-controllers/index.d.ts +3 -1
- package/dist/types/prop-controllers/index.d.ts.map +1 -1
- package/dist/types/prop-controllers/instances.d.ts +95 -4
- package/dist/types/prop-controllers/instances.d.ts.map +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/react.d.ts.map +1 -1
- package/dist/types/runtimes/react.d.ts +25 -12
- package/dist/types/runtimes/react.d.ts.map +1 -1
- package/dist/types/state/actions.d.ts +153 -13
- package/dist/types/state/actions.d.ts.map +1 -1
- package/dist/types/state/modules/box-models.d.ts +5 -5
- package/dist/types/state/modules/box-models.d.ts.map +1 -1
- package/dist/types/state/modules/prop-controller-handles.d.ts +4 -8
- package/dist/types/state/modules/prop-controller-handles.d.ts.map +1 -1
- package/dist/types/state/modules/read-only-documents.d.ts +8 -4
- package/dist/types/state/modules/read-only-documents.d.ts.map +1 -1
- package/dist/types/state/modules/read-write-documents.d.ts +1 -1
- package/dist/types/state/modules/read-write-documents.d.ts.map +1 -1
- package/dist/types/state/react-builder-preview.d.ts +5 -1
- package/dist/types/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/state/react-page.d.ts +4 -3
- package/dist/types/state/react-page.d.ts.map +1 -1
- package/dist/types/utils/coalesce.d.ts +3 -0
- package/dist/types/utils/coalesce.d.ts.map +1 -0
- package/dist/types/utils/constants.d.ts +6 -0
- package/dist/types/utils/constants.d.ts.map +1 -0
- package/dist/types/utils/intersection.d.ts +4 -0
- package/dist/types/utils/intersection.d.ts.map +1 -0
- package/dist/types/utils/keys.d.ts +5 -0
- package/dist/types/utils/keys.d.ts.map +1 -0
- package/dist/types/utils/shallowMerge.d.ts +2 -0
- package/dist/types/utils/shallowMerge.d.ts.map +1 -0
- package/next.js +1 -0
- package/package.json +57 -25
- package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts +0 -11
- package/dist/types/components/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +0 -1
- package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts +0 -8
- package/dist/types/components/BackgroundsContainer/components/Backgrounds/index.d.ts.map +0 -1
- package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts +0 -11
- package/dist/types/components/BackgroundsContainer/components/Parallax/index.d.ts.map +0 -1
- package/dist/types/components/BackgroundsContainer/index.d.ts +0 -11
- package/dist/types/components/BackgroundsContainer/index.d.ts.map +0 -1
- package/dist/types/components/Box/Box.d.ts +0 -30
- package/dist/types/components/Box/Box.d.ts.map +0 -1
- package/dist/types/components/Box/animations.d.ts +0 -69
- package/dist/types/components/Box/animations.d.ts.map +0 -1
- package/dist/types/components/Box/components/Placeholder/index.d.ts +0 -7
- package/dist/types/components/Box/components/Placeholder/index.d.ts.map +0 -1
- package/dist/types/components/Box/index.d.ts +0 -3
- package/dist/types/components/Box/index.d.ts.map +0 -1
- package/dist/types/components/Carousel/Carousel.d.ts +0 -25
- package/dist/types/components/Carousel/Carousel.d.ts.map +0 -1
- package/dist/types/components/Carousel/index.d.ts +0 -2
- package/dist/types/components/Carousel/index.d.ts.map +0 -1
- package/dist/types/components/Countdown/Countdown.d.ts +0 -24
- package/dist/types/components/Countdown/Countdown.d.ts.map +0 -1
- package/dist/types/components/Countdown/index.d.ts +0 -2
- package/dist/types/components/Countdown/index.d.ts.map +0 -1
- package/dist/types/components/Divider/Divider.d.ts +0 -14
- package/dist/types/components/Divider/Divider.d.ts.map +0 -1
- package/dist/types/components/Divider/index.d.ts +0 -2
- package/dist/types/components/Divider/index.d.ts.map +0 -1
- package/dist/types/components/Embed/Embed.d.ts.map +0 -1
- package/dist/types/components/Embed/index.d.ts +0 -2
- package/dist/types/components/Embed/index.d.ts.map +0 -1
- package/dist/types/components/Image/Image.d.ts +0 -26
- package/dist/types/components/Image/Image.d.ts.map +0 -1
- package/dist/types/components/Image/index.d.ts +0 -2
- package/dist/types/components/Image/index.d.ts.map +0 -1
- package/dist/types/components/Link/index.d.ts +0 -9
- package/dist/types/components/Link/index.d.ts.map +0 -1
- package/dist/types/components/RichText/index.d.ts +0 -5
- package/dist/types/components/RichText/index.d.ts.map +0 -1
- package/dist/types/components/Root/Root.d.ts +0 -11
- package/dist/types/components/Root/Root.d.ts.map +0 -1
- package/dist/types/components/Root/components/Placeholder/index.d.ts +0 -5
- package/dist/types/components/Root/components/Placeholder/index.d.ts.map +0 -1
- package/dist/types/components/Root/index.d.ts +0 -2
- package/dist/types/components/Root/index.d.ts.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ElementIDValue, MarginValue, RichTextDescriptor, RichTextValue, WidthValue } from '../../../prop-controllers/descriptors';
|
|
3
|
+
import { BoxModelHandle } from '../../../box-model';
|
|
4
|
+
import { PropControllersHandle } from '../../../state/modules/prop-controller-handles';
|
|
5
|
+
import { ReactRuntime } from '../../../react';
|
|
6
|
+
import { Props } from '../../../prop-controllers';
|
|
7
|
+
declare type Props = {
|
|
8
|
+
id?: ElementIDValue;
|
|
9
|
+
text?: RichTextValue;
|
|
10
|
+
width?: WidthValue;
|
|
11
|
+
margin?: MarginValue;
|
|
12
|
+
};
|
|
13
|
+
declare type Descriptors = {
|
|
14
|
+
text?: RichTextDescriptor;
|
|
15
|
+
};
|
|
16
|
+
declare const Text: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<BoxModelHandle & PropControllersHandle<Descriptors>>>;
|
|
17
|
+
export default Text;
|
|
18
|
+
export declare function registerComponent(runtime: ReactRuntime): () => void;
|
|
19
|
+
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Text/Text.tsx"],"names":[],"mappings":";AAkBA,OAAO,EACL,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,UAAU,EACX,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAA;AAEtF,OAAO,EAAE,YAAY,EAAkB,MAAM,gBAAgB,CAAA;AAE7D,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAEjD,aAAK,KAAK,GAAG;IACX,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,CAAA;AAiBD,aAAK,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,kBAAkB,CAAA;CAAE,CAAA;AAEhD,QAAA,MAAM,IAAI,uIA8HR,CAAA;AAEF,eAAe,IAAI,CAAA;AAEnB,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,cAqEtD"}
|
package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ForwardRefExoticComponent<(Pick<Pick<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
[x: number]: any;
|
|
5
|
+
[x: symbol]: any;
|
|
6
|
+
} & {
|
|
7
|
+
theme?: any;
|
|
8
|
+
} & {
|
|
9
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
10
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
11
|
+
}, string | number | symbol>, string | number | symbol> | Pick<Pick<{
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
[x: number]: any;
|
|
14
|
+
[x: symbol]: any;
|
|
15
|
+
} & {
|
|
16
|
+
theme?: any;
|
|
17
|
+
} & {
|
|
18
|
+
children?: import("react").ReactNode;
|
|
19
|
+
} & {
|
|
20
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
21
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
22
|
+
}, string | number | symbol>, string | number | symbol>) & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/components/builtin/Text/components/RichTextEditor/components/Block/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/builtin/Text/components/RichTextEditor/components/Block/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmCA,wBAKE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Length as LengthValue } from '../../../../../../../../prop-controllers';
|
|
2
|
+
import { ColorValue as Color } from '../../../../../../../utils/types';
|
|
3
|
+
import type { DeviceOverride } from '../../../../../../../../prop-controllers';
|
|
4
|
+
import { TypographyStyle } from '../../../../../../../hooks/useTypography';
|
|
5
|
+
export declare type TypographyMarkDataValue = {
|
|
6
|
+
fontWeight?: number;
|
|
7
|
+
fontSize?: LengthValue;
|
|
8
|
+
fontFamily?: string;
|
|
9
|
+
color?: Color;
|
|
10
|
+
textAlign?: string;
|
|
11
|
+
lineHeight?: number;
|
|
12
|
+
letterSpacing?: number;
|
|
13
|
+
uppercase?: boolean;
|
|
14
|
+
italic?: boolean;
|
|
15
|
+
underline?: boolean;
|
|
16
|
+
strikethrough?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare type TypographyMarkValue = {
|
|
19
|
+
id: string | null | undefined;
|
|
20
|
+
style: TypographyStyle;
|
|
21
|
+
};
|
|
22
|
+
export declare type TypographyMarkData = Array<DeviceOverride<TypographyMarkDataValue>>;
|
|
23
|
+
export declare const overrideTypographyStyle: <A>(source: DeviceOverride<A>[], override: DeviceOverride<A>[]) => DeviceOverride<A>[];
|
|
24
|
+
export default function useTypographyMark(value: TypographyMarkValue | null | undefined): TypographyMarkData | null | undefined;
|
|
25
|
+
//# sourceMappingURL=useTypographyMark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTypographyMark.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/components/builtin/Text/components/RichTextEditor/components/Mark/hooks/useTypographyMark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,0CAA0C,CAAA;AAChF,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,kCAAkC,CAAA;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAE9E,OAAO,EAAiB,eAAe,EAAE,MAAM,0CAA0C,CAAA;AAGzF,oBAAY,uBAAuB,GAAG;IACpC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,oBAAY,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAC7B,KAAK,EAAE,eAAe,CAAA;CACvB,CAAA;AAED,oBAAY,kBAAkB,GAAG,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC,CAAA;AAuB/E,eAAO,MAAM,uBAAuB,wFAanC,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,KAAK,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,GAC5C,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAuBvC"}
|
package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { TypographyMarkValue, TypographyMarkData, overrideTypographyStyle } from './hooks/useTypographyMark';
|
|
3
|
+
export type { TypographyMarkValue };
|
|
4
|
+
export { overrideTypographyStyle };
|
|
5
|
+
declare const Span: import("styled-components").StyledComponent<"span", any, {
|
|
6
|
+
typographyStyle: TypographyMarkData | null | undefined;
|
|
7
|
+
}, never>;
|
|
8
|
+
declare type BaseProps = {
|
|
9
|
+
value: TypographyMarkValue;
|
|
10
|
+
};
|
|
11
|
+
declare type Props = BaseProps & Omit<ComponentPropsWithoutRef<typeof Span>, keyof BaseProps>;
|
|
12
|
+
export default function Mark({ value, ...restOfProps }: Props): JSX.Element;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/components/builtin/Text/components/RichTextEditor/components/Mark/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/components/builtin/Text/components/RichTextEditor/components/Mark/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAGhD,OAA0B,EACxB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EAExB,MAAM,2BAA2B,CAAA;AAKlC,YAAY,EAAE,mBAAmB,EAAE,CAAA;AACnC,OAAO,EAAE,uBAAuB,EAAE,CAAA;AAElC,QAAA,MAAM,IAAI;qBAAkC,kBAAkB,GAAG,IAAI,GAAG,SAAS;SA+EhF,CAAA;AAED,aAAK,SAAS,GAAG;IAAE,KAAK,EAAE,mBAAmB,CAAA;CAAE,CAAA;AAE/C,aAAK,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC,CAAA;AAErF,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAI1E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Editor as SlateEditor } from 'slate-react';
|
|
3
|
+
export { overrideTypographyStyle } from './components/Mark';
|
|
4
|
+
export declare const RichTextEditor: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("slate-react").BasicEditorProps<SlateEditor> & import("slate-react").Plugin<SlateEditor> & import("react").RefAttributes<SlateEditor>>, any, {}, never>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/builtin/Text/components/RichTextEditor/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,aAAa,CAAA;AAWnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAI3D,eAAO,MAAM,cAAc,sPAyB1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceOverridesBlocks.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesBlocks.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAIpC,MAAM,CAAC,OAAO,UAAU,0BAA0B,IAAI,MAAM,CAoE3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceOverridesMarks.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/builtin/Text/components/RichTextEditor/plugins/DeviceOverridesMarks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAMzC,MAAM,CAAC,OAAO,UAAU,0BAA0B,IAAI,MAAM,CAU3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inlines.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/builtin/Text/components/RichTextEditor/plugins/Inlines.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,MAAM,CAwBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/builtin/Text/components/RichTextEditor/plugins/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AASpC,MAAM,CAAC,OAAO,UAAU,UAAU,IAAI,MAAM,CAsB3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/builtin/Text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -5,8 +5,12 @@ export { default as Carousel } from './Carousel';
|
|
|
5
5
|
export { default as Countdown } from './Countdown';
|
|
6
6
|
export { default as Divider } from './Divider';
|
|
7
7
|
export { default as Embed } from './Embed';
|
|
8
|
+
export { default as Form } from './Form';
|
|
8
9
|
export { default as Image } from './Image';
|
|
9
10
|
export { default as Navigation } from './Navigation';
|
|
10
11
|
export { default as Root } from './Root';
|
|
11
12
|
export { default as SocialLinks } from './SocialLinks';
|
|
13
|
+
export { default as Text } from './Text';
|
|
14
|
+
import { ReactRuntime } from '../../react';
|
|
15
|
+
export declare function registerBuiltinComponents(runtime: ReactRuntime): () => void;
|
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builtin/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/builtin/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,YAAY,cA4B9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBackgrounds.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBackgrounds.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBackgrounds.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBackgrounds.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,gBAAgB,IAAI,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAGnG,aAAK,mBAAmB,GAAG,KAAK,CAAA;AAEhC,aAAK,0BAA0B,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,aAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAA;CACzC,CAAA;AAED,aAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IACpD,QAAQ,EAAE;QACR,CAAC,EAAE,MAAM,CAAA;QACT,CAAC,EAAE,MAAM,CAAA;KACV,CAAA;IACD,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;IAClC,MAAM,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAA;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,aAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,aAAK,cAAc,GACf;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,GAC9E;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,GAC9E;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,sBAAsB,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,GACpF;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,CAAA;AAElF,aAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,CAAA;AAE5C,oBAAY,6BAA6B,GAAG,eAAe,CAAC,eAAe,CAAC,CAAA;AAE5E,wBAAgB,cAAc,CAC5B,KAAK,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,GACnD,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAkIlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBorder.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"useBorder.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAI7C,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAazF,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,mBAAmB,CAAA;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,aAAK,UAAU,GAAG;IAChB,SAAS,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;IACxC,WAAW,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;IAC1C,YAAY,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;IAC3C,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAA;CAC1C,CAAA;AAED,oBAAY,wBAAwB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAA;AAElE,wBAAgB,SAAS,CACvB,KAAK,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,GAC9C,wBAAwB,GAAG,IAAI,GAAG,SAAS,CAmC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBoxShadow.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBoxShadow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBoxShadow.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useBoxShadow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAGhG,aAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE;QACP,KAAK,EAAE,OAAO,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,CAAA;QACpB,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;KAChC,CAAA;CACF,CAAA;AAWD,oBAAY,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,CAAA;AAE7C,oBAAY,2BAA2B,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;AAExE,wBAAgB,YAAY,CAC1B,KAAK,EAAE,sBAAsB,GAAG,IAAI,GAAG,SAAS,GAC/C,2BAA2B,GAAG,IAAI,GAAG,SAAS,CAiDhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColor.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useColor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useColor.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAGzD,wBAAgB,QAAQ,CACtB,KAAK,EACD,eAAe,CAAC;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC,GACF,IAAI,GACJ,SAAS,GACZ,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,CAoB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFile.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFile.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useFile.ts"],"names":[],"mappings":"AAGA,aAAK,IAAI,GAAG;IACV,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACrD,CAAA;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CASlF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePage.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/usePage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePage.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/usePage.ts"],"names":[],"mappings":"AAGA,aAAK,IAAI,GAAG;IACV,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAWlF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare type SingleLineTextTableColumn = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
__typename: 'SingleLineTextTableColumn';
|
|
5
|
+
};
|
|
6
|
+
export declare type LongTextTableColumn = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
__typename: 'LongTextTableColumn';
|
|
10
|
+
};
|
|
11
|
+
export declare type CheckboxTableColumn = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
__typename: 'CheckboxTableColumn';
|
|
15
|
+
};
|
|
16
|
+
export declare type MultipleSelectTableColumnOption = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type MultipleSelectTableColumn = {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
options: Array<MultipleSelectTableColumnOption>;
|
|
24
|
+
__typename: 'MultipleSelectTableColumn';
|
|
25
|
+
};
|
|
26
|
+
export declare type SingleSelectTableColumnOption = {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
export declare type SingleSelectTableColumn = {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
options: Array<SingleSelectTableColumnOption>;
|
|
34
|
+
__typename: 'SingleSelectTableColumn';
|
|
35
|
+
};
|
|
36
|
+
export declare type PhoneNumberTableColumn = {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
__typename: 'PhoneNumberTableColumn';
|
|
40
|
+
};
|
|
41
|
+
export declare type EmailTableColumn = {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
__typename: 'EmailTableColumn';
|
|
45
|
+
};
|
|
46
|
+
export declare type URLTableColumn = {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
__typename: 'URLTableColumn';
|
|
50
|
+
};
|
|
51
|
+
export declare type NumberTableColumn = {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
__typename: 'NumberTableColumn';
|
|
55
|
+
};
|
|
56
|
+
export declare type TableColumn = SingleLineTextTableColumn | LongTextTableColumn | CheckboxTableColumn | MultipleSelectTableColumn | SingleSelectTableColumn | PhoneNumberTableColumn | EmailTableColumn | URLTableColumn | NumberTableColumn;
|
|
57
|
+
declare type Table = {
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
columns: Array<TableColumn>;
|
|
61
|
+
};
|
|
62
|
+
export declare function useTable(tableId: string | null | undefined): import("@apollo/client").QueryResult<{
|
|
63
|
+
table: Table | null;
|
|
64
|
+
}, import("@apollo/client").OperationVariables>;
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=useTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useTable.ts"],"names":[],"mappings":"AAGA,oBAAY,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,2BAA2B,CAAA;CACxC,CAAA;AAED,oBAAY,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,qBAAqB,CAAA;CAClC,CAAA;AAED,oBAAY,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,qBAAqB,CAAA;CAClC,CAAA;AAED,oBAAY,+BAA+B,GAAG;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,oBAAY,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,KAAK,CAAC,+BAA+B,CAAC,CAAA;IAC/C,UAAU,EAAE,2BAA2B,CAAA;CACxC,CAAA;AAED,oBAAY,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,oBAAY,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,KAAK,CAAC,6BAA6B,CAAC,CAAA;IAC7C,UAAU,EAAE,yBAAyB,CAAA;CACtC,CAAA;AAED,oBAAY,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,wBAAwB,CAAA;CACrC,CAAA;AAED,oBAAY,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,kBAAkB,CAAA;CAC/B,CAAA;AAED,oBAAY,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,gBAAgB,CAAA;CAC7B,CAAA;AAED,oBAAY,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,mBAAmB,CAAA;CAChC,CAAA;AAED,oBAAY,WAAW,GACnB,yBAAyB,GACzB,mBAAmB,GACnB,mBAAmB,GACnB,yBAAyB,GACzB,uBAAuB,GACvB,sBAAsB,GACtB,gBAAgB,GAChB,cAAc,GACd,iBAAiB,CAAA;AAErB,aAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;CAC5B,CAAA;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;WAChC,KAAK,GAAG,IAAI;gDAItC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TableFormFieldsPropController } from '../../prop-controllers/instances';
|
|
2
|
+
export declare function useTableFormFieldRefs(propController: TableFormFieldsPropController | null | undefined, { fieldsCount }: {
|
|
3
|
+
fieldsCount: number;
|
|
4
|
+
}): {
|
|
5
|
+
container: (arg0: HTMLElement | null | undefined) => void;
|
|
6
|
+
items: Array<(arg0: HTMLElement | null | undefined) => void>;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useTableFormFieldRefs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableFormFieldRefs.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useTableFormFieldRefs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAA;AAGhF,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,EAChE,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GACvC;IACD,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;IACzD,KAAK,EAAE,KAAK,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC,CAAA;CAC7D,CA2CA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ColorValue } from '../utils/types';
|
|
2
|
+
import type { Length as LengthValue } from '../../prop-controllers';
|
|
3
|
+
import { DeviceOverride } from '../../prop-controllers';
|
|
4
|
+
export declare type TypographyStyleValue = {
|
|
5
|
+
fontFamily?: string;
|
|
6
|
+
fontWeight?: number;
|
|
7
|
+
fontSize?: LengthValue;
|
|
8
|
+
color?: ColorValue;
|
|
9
|
+
textAlign?: string;
|
|
10
|
+
lineHeight?: number;
|
|
11
|
+
letterSpacing?: number;
|
|
12
|
+
uppercase?: boolean;
|
|
13
|
+
underline?: boolean;
|
|
14
|
+
strikethrough?: boolean;
|
|
15
|
+
italic?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare type TypographyStyle = Array<DeviceOverride<TypographyStyleValue>>;
|
|
18
|
+
export declare type Typography = {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
style: TypographyStyle;
|
|
22
|
+
};
|
|
23
|
+
export declare function useTypography(typographyId: string | null | undefined): Typography | null | undefined;
|
|
24
|
+
//# sourceMappingURL=useTypography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTypography.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/useTypography.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAIvD,oBAAY,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,WAAW,CAAA;IACtB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,oBAAY,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAA;AAEzE,oBAAY,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,eAAe,CAAA;CACvB,CAAA;AAED,wBAAgB,aAAa,CAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACtC,UAAU,GAAG,IAAI,GAAG,SAAS,CAS/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,uBAAuB,CAAA"}
|
|
@@ -7,6 +7,7 @@ export declare type Device = {
|
|
|
7
7
|
export declare const DEVICES: Array<Device>;
|
|
8
8
|
export declare const getDevice: (deviceId: DeviceID) => Device;
|
|
9
9
|
export declare type FallbackStrategy<V> = (arg0: DeviceOverride<V> | undefined, arg1: ResponsiveValue<V>) => DeviceOverride<V> | undefined;
|
|
10
|
+
export declare function shallowMergeFallbacks<V extends Record<string, unknown>>(value: DeviceOverride<V> | undefined, fallbacks: ResponsiveValue<V>): DeviceOverride<V> | undefined;
|
|
10
11
|
export declare function findDeviceOverride<S>(values: ResponsiveValue<S> | undefined, deviceId: string, strategy?: FallbackStrategy<S>): DeviceOverride<S> | undefined;
|
|
11
12
|
export declare type ExtractResponsiveValue<T> = T extends ResponsiveValue<infer V> ? V : never;
|
|
12
13
|
export declare function join<V, A extends ReadonlyArray<ResponsiveValue<V> | null | undefined>, R>(responsiveValues: A, joinFn: (values: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/devices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/devices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAGjG,oBAAY,MAAM,GAAG;IACnB,EAAE,EAAE,QAAQ,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,MAAM,CAIjC,CAAA;AAED,eAAO,MAAM,SAAS,aAAc,QAAQ,KAAG,MAM9C,CAAA;AAED,oBAAY,gBAAgB,CAAC,CAAC,IAAI,CAChC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EACnC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,KACrB,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;AASlC,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EACpC,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,GAC5B,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAO/B;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,gCAAyB,EAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,gBAAgB,CAAC,CAAC,CAAmB,GAC9C,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAQ/B;AAED,oBAAY,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AAEtF,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC,EACvF,gBAAgB,EAAE,CAAC,EACnB,MAAM,EAAE,CAAC,MAAM,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS;CAAE,KAAK,CAAC,EACnF,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC7B,eAAe,CAAC,CAAC,CAAC,CAiBpB;AAED,eAAO,MAAM,mBAAmB,WAAY,MAAM,KAAG,MAYpD,CAAA"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export declare const SWATCHES_BY_ID: DocumentNode;
|
|
2
|
-
export declare const FILE_BY_ID: DocumentNode;
|
|
3
|
-
export declare const FILES_BY_ID: DocumentNode;
|
|
4
|
-
export declare const PAGE_PATHNAMES_BY_ID: DocumentNode;
|
|
1
|
+
export declare const SWATCHES_BY_ID: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const FILE_BY_ID: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare const FILES_BY_ID: import("@apollo/client").DocumentNode;
|
|
4
|
+
export declare const PAGE_PATHNAMES_BY_ID: import("@apollo/client").DocumentNode;
|
|
5
|
+
export declare const TYPOGRAPHY_FRAGMENT: import("@apollo/client").DocumentNode;
|
|
6
|
+
export declare const TYPOGRAPHIES_BY_ID: import("@apollo/client").DocumentNode;
|
|
7
|
+
export declare const TABLE_BY_ID: import("@apollo/client").DocumentNode;
|
|
5
8
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/queries.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/queries.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,uCAS1B,CAAA;AAED,eAAO,MAAM,UAAU,uCAatB,CAAA;AAED,eAAO,MAAM,WAAW,uCAavB,CAAA;AAED,eAAO,MAAM,oBAAoB,uCAOhC,CAAA;AAED,eAAO,MAAM,mBAAmB,uCA2B/B,CAAA;AAED,eAAO,MAAM,kBAAkB,uCAQ9B,CAAA;AAED,eAAO,MAAM,WAAW,uCAuBvB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare type SwatchValue = {
|
|
1
|
+
export declare type SwatchValue = {
|
|
2
2
|
hue: number;
|
|
3
3
|
saturation: number;
|
|
4
4
|
lightness: number;
|
|
@@ -7,5 +7,4 @@ export declare type ColorValue = {
|
|
|
7
7
|
swatch?: SwatchValue;
|
|
8
8
|
alpha: number;
|
|
9
9
|
};
|
|
10
|
-
export {};
|
|
11
10
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,oBAAY,UAAU,GAAG;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type { Action } from './state/actions';
|
|
2
|
-
export { ActionTypes, changeDocument, changeDocumentElementScrollTop } from './state/actions';
|
|
2
|
+
export { ActionTypes, changeDocument, changeDocumentElementScrollTop, cleanUp, init, messageHostPropController, changeApiResource, evictApiResource, registerDocument, unregisterDocument, } from './state/actions';
|
|
3
3
|
export type { Operation } from './state/modules/read-write-documents';
|
|
4
4
|
export type { ComponentMeta } from './state/modules/components-meta';
|
|
5
5
|
export type { PropControllerDescriptor, PropControllerDescriptorValueType, } from './prop-controllers';
|
|
6
6
|
export type { Element } from './state/react-page';
|
|
7
|
+
export { createDocument } from './state/react-page';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EACL,WAAW,EACX,cAAc,EACd,8BAA8B,EAC9B,OAAO,EACP,IAAI,EACJ,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,YAAY,EACV,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GetServerSidePropsContext, GetServerSidePropsResult, GetStaticPathsResult, GetStaticPropsContext, GetStaticPropsResult } from 'next';
|
|
3
|
+
import NextDocument, { DocumentContext, DocumentInitialProps } from 'next/document';
|
|
4
|
+
import { ReactRuntime } from './runtimes/react';
|
|
5
|
+
import { Element } from './state/react-page';
|
|
6
|
+
export declare class Document extends NextDocument {
|
|
7
|
+
static getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps>;
|
|
8
|
+
}
|
|
9
|
+
export declare type PageProps = {
|
|
10
|
+
pageId: string;
|
|
11
|
+
rootElement: Element;
|
|
12
|
+
makeswiftApiEndpoint: string;
|
|
13
|
+
registerComponents?(runtime: ReactRuntime): () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function getServerSideProps({ query: { pageId }, }: GetServerSidePropsContext): Promise<GetServerSidePropsResult<PageProps>>;
|
|
16
|
+
export declare function getStaticProps({ params, }: GetStaticPropsContext<{
|
|
17
|
+
path: string[];
|
|
18
|
+
}>): Promise<GetStaticPropsResult<PageProps>>;
|
|
19
|
+
export declare function getStaticPaths(): Promise<GetStaticPathsResult>;
|
|
20
|
+
export declare function Page({ pageId, rootElement, makeswiftApiEndpoint, registerComponents }: PageProps): JSX.Element;
|
|
21
|
+
//# sourceMappingURL=next.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/next.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,MAAM,CAAA;AACb,OAAO,YAAY,EAAE,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAGnF,OAAO,EAAsC,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACnF,OAAO,EAAE,OAAO,EAA2B,MAAM,oBAAoB,CAAA;AAErE,qBAAa,QAAS,SAAQ,YAAY;WAC3B,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAyBlF;AAID,oBAAY,SAAS,GAAG;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,OAAO,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kBAAkB,CAAC,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,IAAI,CAAA;CACvD,CAAA;AAED,wBAAsB,kBAAkB,CAAC,EACvC,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAuB1E;AAED,wBAAsB,cAAc,CAAC,EACnC,MAAM,GACP,EAAE,qBAAqB,CAAC;IAAE,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC,CA2BtF;AAED,wBAAsB,cAAc,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAEpE;AAED,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,EAAE,SAAS,eAUhG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Slate from 'slate';
|
|
2
2
|
import type { Element, Data } from '../state/react-page';
|
|
3
|
+
export type { Data };
|
|
3
4
|
export declare type IndexSignatureHack<T> = T extends Record<string, any> ? {
|
|
4
5
|
[K in keyof T]: IndexSignatureHack<T[K]>;
|
|
5
6
|
} : T;
|
|
@@ -104,6 +105,7 @@ export declare const Types: {
|
|
|
104
105
|
readonly SocialLinks: "SocialLinks";
|
|
105
106
|
readonly Table: "Table";
|
|
106
107
|
readonly TableFormFields: "TableFormFields";
|
|
108
|
+
readonly Typeahead: "Typeahead";
|
|
107
109
|
readonly TextArea: "TextArea";
|
|
108
110
|
readonly TextInput: "TextInput";
|
|
109
111
|
readonly TextStyle: "TextStyle";
|
|
@@ -325,16 +327,17 @@ declare type ListValueItem<T extends Data> = {
|
|
|
325
327
|
id: string;
|
|
326
328
|
value?: T;
|
|
327
329
|
};
|
|
328
|
-
declare type ListValue<T extends Data = Data> = ListValueItem<T>[];
|
|
329
|
-
declare type ListOptions<T extends Data> =
|
|
330
|
+
export declare type ListValue<T extends Data = Data> = ListValueItem<T>[];
|
|
331
|
+
export declare type ListOptions<T extends Data> = {
|
|
330
332
|
type: PanelDescriptor<T>;
|
|
331
333
|
label?: string;
|
|
334
|
+
getItemLabel?: ((value: T | undefined) => string) | ((value: T | undefined) => Promise<string>);
|
|
332
335
|
preset?: ListValue<T>;
|
|
333
336
|
defaultValue?: ListValue<T>;
|
|
334
|
-
}
|
|
335
|
-
declare type ListDescriptor<T extends ListValue> = {
|
|
337
|
+
};
|
|
338
|
+
export declare type ListDescriptor<T extends ListValue = ListValue> = {
|
|
336
339
|
type: typeof Types.List;
|
|
337
|
-
options: ListOptions<T
|
|
340
|
+
options: ListOptions<T extends ListValue<infer U> ? U : never>;
|
|
338
341
|
};
|
|
339
342
|
export declare function List<T extends Data>(options: ListOptions<T>): ListDescriptor<ListValue<T>>;
|
|
340
343
|
declare type MarginSide = {
|
|
@@ -527,7 +530,7 @@ export declare type RichTextValue = IndexSignatureHack<Slate.ValueJSON>;
|
|
|
527
530
|
declare type RichTextOptions = Options<{
|
|
528
531
|
preset?: RichTextValue;
|
|
529
532
|
}>;
|
|
530
|
-
declare type RichTextDescriptor<_T extends Data = RichTextValue> = {
|
|
533
|
+
export declare type RichTextDescriptor<_T extends Data = RichTextValue> = {
|
|
531
534
|
type: typeof Types.RichText;
|
|
532
535
|
options: RichTextOptions;
|
|
533
536
|
};
|
|
@@ -552,17 +555,17 @@ declare type ShadowsDescriptor<_T = ShadowsValue> = {
|
|
|
552
555
|
};
|
|
553
556
|
export declare function Shadows(options?: ShadowsOptions): ShadowsDescriptor;
|
|
554
557
|
export declare type ShapeValue<T extends Data = Data> = Record<string, T>;
|
|
555
|
-
declare type ShapeOptions<T extends Record<string,
|
|
558
|
+
declare type ShapeOptions<T extends Record<string, PanelDescriptor>> = {
|
|
556
559
|
type: T;
|
|
557
560
|
preset?: {
|
|
558
561
|
[K in keyof T]?: DescriptorValueType<T[K]>;
|
|
559
562
|
};
|
|
560
563
|
};
|
|
561
|
-
declare type ShapeDescriptor<_T extends Record<string, Data>, U extends Record<string,
|
|
564
|
+
export declare type ShapeDescriptor<_T extends Record<string, Data>, U extends Record<string, PanelDescriptor>> = {
|
|
562
565
|
type: typeof Types.Shape;
|
|
563
566
|
options: ShapeOptions<U>;
|
|
564
567
|
};
|
|
565
|
-
export declare function Shape<T extends Record<string,
|
|
568
|
+
export declare function Shape<T extends Record<string, PanelDescriptor>>(options: ShapeOptions<T>): ShapeDescriptor<{
|
|
566
569
|
[K in keyof T]?: DescriptorValueType<T[K]>;
|
|
567
570
|
}, T>;
|
|
568
571
|
declare type SocialLinkType = 'angellist' | 'codepen' | 'dribbble' | 'facebook' | 'github' | 'instagram' | 'linkedin' | 'medium' | 'pinterest' | 'reddit' | 'rss' | 'snapchat' | 'soundcloud' | 'spotify' | 'telegram' | 'tumblr' | 'twitch' | 'twitter' | 'vimeo' | 'whatsapp' | 'yelp' | 'youtube';
|
|
@@ -618,11 +621,27 @@ export declare type TableFormFieldsValue = {
|
|
|
618
621
|
declare type TableFormFieldsOptions = Options<{
|
|
619
622
|
preset?: TableFormFieldsValue;
|
|
620
623
|
}>;
|
|
621
|
-
declare type TableFormFieldsDescriptor<_T = TableFormFieldsValue> = {
|
|
624
|
+
export declare type TableFormFieldsDescriptor<_T = TableFormFieldsValue> = {
|
|
622
625
|
type: typeof Types.TableFormFields;
|
|
623
626
|
options: TableFormFieldsOptions;
|
|
624
627
|
};
|
|
625
628
|
export declare function TableFormFields(options?: TableFormFieldsOptions): TableFormFieldsDescriptor;
|
|
629
|
+
export declare type TypeaheadValue<T extends Data = Data> = {
|
|
630
|
+
id: string;
|
|
631
|
+
label: string;
|
|
632
|
+
value: T;
|
|
633
|
+
};
|
|
634
|
+
export declare type TypeaheadOptions<T extends Data> = {
|
|
635
|
+
getItems: (query: string) => Promise<TypeaheadValue<T>[]>;
|
|
636
|
+
label?: string;
|
|
637
|
+
preset?: TypeaheadValue<T>;
|
|
638
|
+
defaultValue?: TypeaheadValue<T>;
|
|
639
|
+
};
|
|
640
|
+
export declare type TypeaheadDescriptor<T extends TypeaheadValue = TypeaheadValue> = {
|
|
641
|
+
type: typeof Types.Typeahead;
|
|
642
|
+
options: TypeaheadOptions<T extends TypeaheadValue<infer U> ? U : never>;
|
|
643
|
+
};
|
|
644
|
+
export declare function Typeahead<T extends Data>(options: TypeaheadOptions<T>): TypeaheadDescriptor<TypeaheadValue<T>>;
|
|
626
645
|
export declare type TextAreaValue = string;
|
|
627
646
|
declare type TextAreaOptions = Options<{
|
|
628
647
|
preset?: TextAreaValue;
|
|
@@ -682,11 +701,11 @@ declare type WidthDescriptor<_T = WidthValue> = {
|
|
|
682
701
|
options: WidthOptions;
|
|
683
702
|
};
|
|
684
703
|
export declare function Width(options?: WidthOptions): WidthDescriptor;
|
|
685
|
-
export declare type Descriptor<T extends Data = Data> = BackgroundsDescriptor<T> | BorderDescriptor<T> | BorderRadiusDescriptor<T> | CheckboxDescriptor<T> | DateDescriptor<T> | ElementIDDescriptor<T> | FontDescriptor<T> | GapXDescriptor<T> | GapYDescriptor<T> | GridDescriptor<T> | ImageDescriptor<T> | ImagesDescriptor<T> | LinkDescriptor<T> | ListDescriptor<T extends ListValue ? T : ListValue> | MarginDescriptor<T> | NavigationLinksDescriptor<T> | NumberDescriptor<T> | PaddingDescriptor<T> | ResponsiveColorDescriptor<T> | ResponsiveIconRadioGroupDescriptor<T extends ResponsiveIconRadioGroupValue<string> ? T : ResponsiveIconRadioGroupValue<string>> | ResponsiveLengthDescriptor<T> | ResponsiveNumberDescriptor<T> | ResponsiveOpacityDescriptor<T> | ResponsiveSelectDescriptor<T extends ResponsiveSelectValue<string> ? T : ResponsiveSelectValue<string>> | RichTextDescriptor<T> | ShadowsDescriptor<T> | ShapeDescriptor<T extends ShapeValue ? T : ShapeValue, any> | SocialLinksDescriptor<T> | TableDescriptor<T> | TableFormFieldsDescriptor<T> | TextAreaDescriptor<T> | TextInputDescriptor<T> | TextStyleDescriptor<T> | VideoDescriptor<T> | WidthDescriptor<T>;
|
|
686
|
-
declare type PanelDescriptorType = typeof Types.Backgrounds | typeof Types.ResponsiveIconRadioGroup | typeof Types.Margin | typeof Types.Padding | typeof Types.Border | typeof Types.Shadows | typeof Types.GapY | typeof Types.GapX | typeof Types.BorderRadius | typeof Types.Checkbox | typeof Types.TextInput | typeof Types.Link | typeof Types.List | typeof Types.Shape | typeof Types.ResponsiveSelect | typeof Types.ResponsiveColor | typeof Types.TextStyle | typeof Types.Images | typeof Types.ResponsiveNumber | typeof Types.Number | typeof Types.Date | typeof Types.Font | typeof Types.TextArea | typeof Types.Table | typeof Types.RichText | typeof Types.Image | typeof Types.ResponsiveOpacity | typeof Types.SocialLinks | typeof Types.Video | typeof Types.NavigationLinks;
|
|
704
|
+
export declare type Descriptor<T extends Data = Data> = BackgroundsDescriptor<T> | BorderDescriptor<T> | BorderRadiusDescriptor<T> | CheckboxDescriptor<T> | DateDescriptor<T> | ElementIDDescriptor<T> | FontDescriptor<T> | GapXDescriptor<T> | GapYDescriptor<T> | GridDescriptor<T> | ImageDescriptor<T> | ImagesDescriptor<T> | LinkDescriptor<T> | ListDescriptor<T extends ListValue ? T : ListValue> | MarginDescriptor<T> | NavigationLinksDescriptor<T> | NumberDescriptor<T> | PaddingDescriptor<T> | ResponsiveColorDescriptor<T> | ResponsiveIconRadioGroupDescriptor<T extends ResponsiveIconRadioGroupValue<string> ? T : ResponsiveIconRadioGroupValue<string>> | ResponsiveLengthDescriptor<T> | ResponsiveNumberDescriptor<T> | ResponsiveOpacityDescriptor<T> | ResponsiveSelectDescriptor<T extends ResponsiveSelectValue<string> ? T : ResponsiveSelectValue<string>> | RichTextDescriptor<T> | ShadowsDescriptor<T> | ShapeDescriptor<T extends ShapeValue ? T : ShapeValue, any> | SocialLinksDescriptor<T> | TableDescriptor<T> | TableFormFieldsDescriptor<T> | TypeaheadDescriptor<T extends TypeaheadValue ? T : TypeaheadValue> | TextAreaDescriptor<T> | TextInputDescriptor<T> | TextStyleDescriptor<T> | VideoDescriptor<T> | WidthDescriptor<T>;
|
|
705
|
+
export declare type PanelDescriptorType = typeof Types.Backgrounds | typeof Types.ResponsiveIconRadioGroup | typeof Types.Margin | typeof Types.Padding | typeof Types.Border | typeof Types.Shadows | typeof Types.GapY | typeof Types.GapX | typeof Types.BorderRadius | typeof Types.Checkbox | typeof Types.TextInput | typeof Types.Link | typeof Types.List | typeof Types.Shape | typeof Types.ResponsiveSelect | typeof Types.ResponsiveColor | typeof Types.TextStyle | typeof Types.Images | typeof Types.ResponsiveNumber | typeof Types.Number | typeof Types.Date | typeof Types.Font | typeof Types.TextArea | typeof Types.Table | typeof Types.Typeahead | typeof Types.RichText | typeof Types.Image | typeof Types.ResponsiveOpacity | typeof Types.SocialLinks | typeof Types.Video | typeof Types.NavigationLinks;
|
|
687
706
|
export declare type PanelDescriptor<T extends Data = Data> = Extract<Descriptor<T>, {
|
|
688
707
|
type: PanelDescriptorType;
|
|
689
708
|
}>;
|
|
690
709
|
export declare type DescriptorValueType<T extends Descriptor> = T extends Descriptor<infer U> ? U : never;
|
|
691
|
-
export
|
|
710
|
+
export declare type PanelDescriptorValueType<T extends PanelDescriptor> = T extends PanelDescriptor<infer U> ? U : never;
|
|
692
711
|
//# sourceMappingURL=descriptors.d.ts.map
|