@makeswift/runtime 0.0.0-e7e30fa → 0.0.0-f94dde1
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/box-model.js +1 -0
- package/builder.js +1 -0
- package/components.js +1 -0
- package/dist/actions.cjs.js +101 -17
- package/dist/actions.cjs.js.map +1 -1
- package/dist/actions.es.js +90 -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 +27 -157
- package/dist/box-models.cjs.js.map +1 -1
- package/dist/box-models.es.js +30 -160
- 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 +55 -6900
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +26 -6866
- package/dist/components.es.js.map +1 -1
- package/dist/constants.cjs.js +146 -0
- package/dist/constants.cjs.js.map +1 -0
- package/dist/constants.es.js +145 -0
- package/dist/constants.es.js.map +1 -0
- package/dist/control-serialization.cjs.js +91 -0
- package/dist/control-serialization.cjs.js.map +1 -0
- package/dist/control-serialization.es.js +87 -0
- package/dist/control-serialization.es.js.map +1 -0
- package/dist/descriptors.cjs.js +215 -0
- package/dist/descriptors.cjs.js.map +1 -0
- package/dist/descriptors.es.js +183 -0
- package/dist/descriptors.es.js.map +1 -0
- package/dist/instances.cjs.js +89 -0
- package/dist/instances.cjs.js.map +1 -0
- package/dist/instances.es.js +87 -0
- package/dist/instances.es.js.map +1 -0
- package/dist/main.cjs.js +5 -2
- package/dist/main.cjs.js.map +1 -1
- package/dist/main.es.js +1 -1
- package/dist/next.cjs.js +169 -0
- package/dist/next.cjs.js.map +1 -0
- package/dist/next.es.js +159 -0
- package/dist/next.es.js.map +1 -0
- package/dist/prop-controllers.cjs.js +5 -175
- package/dist/prop-controllers.cjs.js.map +1 -1
- package/dist/prop-controllers.es.js +2 -173
- package/dist/prop-controllers.es.js.map +1 -1
- package/dist/react-builder-preview.cjs.js +274 -4118
- package/dist/react-builder-preview.cjs.js.map +1 -1
- package/dist/react-builder-preview.es.js +273 -4121
- package/dist/react-builder-preview.es.js.map +1 -1
- package/dist/react.cjs.js +26 -2
- package/dist/react.cjs.js.map +1 -1
- package/dist/react.cjs2.js +5848 -624
- 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 +5795 -625
- 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 +61 -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 +6 -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 +30 -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/{Box → builtin/Box}/Box.d.ts +10 -4
- package/dist/types/components/builtin/Box/Box.d.ts.map +1 -0
- package/dist/types/components/{Box → builtin/Box}/animations.d.ts +2 -2
- package/dist/types/components/builtin/Box/animations.d.ts.map +1 -0
- package/dist/types/components/{Box → builtin/Box}/components/Placeholder/index.d.ts +0 -0
- package/dist/types/components/builtin/Box/components/Placeholder/index.d.ts.map +1 -0
- package/dist/types/components/{Box → builtin/Box}/index.d.ts +1 -1
- package/dist/types/components/builtin/Box/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Button/Button.d.ts +118 -0
- package/dist/types/components/builtin/Button/Button.d.ts.map +1 -0
- package/dist/types/components/builtin/Button/index.d.ts +2 -0
- package/dist/types/components/builtin/Button/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Carousel/Carousel.d.ts +28 -0
- package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -0
- package/dist/types/components/builtin/Carousel/index.d.ts +2 -0
- package/dist/types/components/builtin/Carousel/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Countdown/Countdown.d.ts +27 -0
- package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -0
- package/dist/types/components/builtin/Countdown/index.d.ts +2 -0
- package/dist/types/components/builtin/Countdown/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Divider/Divider.d.ts +17 -0
- package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -0
- package/dist/types/components/builtin/Divider/index.d.ts +2 -0
- package/dist/types/components/builtin/Divider/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Embed/Embed.d.ts +14 -0
- package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -0
- package/dist/types/components/builtin/Embed/index.d.ts +2 -0
- package/dist/types/components/builtin/Embed/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Image/Image.d.ts +29 -0
- package/dist/types/components/builtin/Image/Image.d.ts.map +1 -0
- package/dist/types/components/builtin/Image/index.d.ts +2 -0
- package/dist/types/components/builtin/Image/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/Navigation.d.ts +26 -0
- package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts +100 -0
- package/dist/types/components/builtin/Navigation/components/DropDownButton/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts +8 -0
- package/dist/types/components/builtin/Navigation/components/LinksPlaceholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts +101 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/components/MobileDropDownButton/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +13 -0
- package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Navigation/index.d.ts +2 -0
- package/dist/types/components/builtin/Navigation/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Root/Root.d.ts +14 -0
- package/dist/types/components/builtin/Root/Root.d.ts.map +1 -0
- package/dist/types/components/{Root → builtin/Root}/components/Placeholder/index.d.ts +0 -0
- package/dist/types/components/builtin/Root/components/Placeholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/Root/index.d.ts +2 -0
- package/dist/types/components/builtin/Root/index.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +21 -0
- package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts +8 -0
- package/dist/types/components/builtin/SocialLinks/components/SocialLinksPlaceholder/index.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/index.d.ts +2 -0
- package/dist/types/components/builtin/SocialLinks/index.d.ts.map +1 -0
- package/dist/types/components/builtin/SocialLinks/options.d.ts +113 -0
- package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -0
- 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 +15 -0
- package/dist/types/components/builtin/index.d.ts.map +1 -0
- package/dist/types/components/hooks/index.d.ts +6 -0
- package/dist/types/components/hooks/index.d.ts.map +1 -1
- package/dist/types/components/hooks/useBackgrounds.d.ts +59 -0
- package/dist/types/components/hooks/useBackgrounds.d.ts.map +1 -0
- package/dist/types/components/hooks/useBorder.d.ts +19 -0
- package/dist/types/components/hooks/useBorder.d.ts.map +1 -0
- package/dist/types/components/hooks/useBoxShadow.d.ts +19 -0
- package/dist/types/components/hooks/useBoxShadow.d.ts.map +1 -0
- package/dist/types/components/hooks/useColor.d.ts +7 -0
- package/dist/types/components/hooks/useColor.d.ts.map +1 -0
- package/dist/types/components/hooks/useFile.d.ts +13 -0
- package/dist/types/components/hooks/useFile.d.ts.map +1 -0
- package/dist/types/components/hooks/usePage.d.ts +7 -0
- package/dist/types/components/hooks/usePage.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 +2 -3
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts +11 -0
- package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts +8 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts +11 -0
- package/dist/types/components/shared/BackgroundsContainer/components/Parallax/index.d.ts.map +1 -0
- package/dist/types/components/shared/BackgroundsContainer/index.d.ts +11 -0
- package/dist/types/components/shared/BackgroundsContainer/index.d.ts.map +1 -0
- package/dist/types/components/shared/GutterContainer/index.d.ts +8 -0
- package/dist/types/components/shared/GutterContainer/index.d.ts.map +1 -0
- package/dist/types/components/shared/Link/index.d.ts +9 -0
- package/dist/types/components/shared/Link/index.d.ts.map +1 -0
- package/dist/types/components/utils/colorToString.d.ts +3 -0
- package/dist/types/components/utils/colorToString.d.ts.map +1 -0
- package/dist/types/components/utils/cssMediaRules.d.ts +23 -1
- package/dist/types/components/utils/cssMediaRules.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/isNonNullable.d.ts +2 -0
- package/dist/types/components/utils/isNonNullable.d.ts.map +1 -0
- package/dist/types/components/utils/placeholders.d.ts +10 -0
- package/dist/types/components/utils/placeholders.d.ts.map +1 -0
- package/dist/types/components/utils/queries.d.ts +7 -0
- package/dist/types/components/utils/queries.d.ts.map +1 -0
- package/dist/types/components/utils/types.d.ts +11 -0
- package/dist/types/components/utils/types.d.ts.map +1 -0
- 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 +40 -3
- 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 +69 -0
- package/dist/types/prop-controllers/instances.d.ts.map +1 -0
- package/dist/types/prop-controllers/introspection.d.ts +5 -0
- package/dist/types/prop-controllers/introspection.d.ts.map +1 -0
- package/dist/types/react.d.ts +1 -1
- package/dist/types/react.d.ts.map +1 -1
- package/dist/types/runtimes/react.d.ts +15 -7
- package/dist/types/runtimes/react.d.ts.map +1 -1
- package/dist/types/state/actions.d.ts +126 -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 +16 -0
- package/dist/types/state/modules/prop-controller-handles.d.ts.map +1 -0
- package/dist/types/state/modules/prop-controllers.d.ts +1 -0
- package/dist/types/state/modules/prop-controllers.d.ts.map +1 -1
- package/dist/types/state/react-builder-preview.d.ts +16 -11
- package/dist/types/state/react-builder-preview.d.ts.map +1 -1
- package/dist/types/state/react-page.d.ts +5 -0
- package/dist/types/state/react-page.d.ts.map +1 -1
- package/dist/types/utils/clamp.d.ts +3 -0
- package/dist/types/utils/clamp.d.ts.map +1 -0
- 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/deepEqual.d.ts.map +1 -1
- 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/shallowEqual.d.ts.map +1 -1
- 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 +71 -15
- package/prop-controllers.js +1 -0
- package/react.js +1 -0
- package/dist/types/components/Box/Box.d.ts.map +0 -1
- package/dist/types/components/Box/animations.d.ts.map +0 -1
- package/dist/types/components/Box/components/Placeholder/index.d.ts.map +0 -1
- package/dist/types/components/Box/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.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 @@
|
|
|
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;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAa1C,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,YAAY,cA0B9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ColorValue as Color } from '../utils/types';
|
|
2
|
+
import { ResponsiveValue } from '../../prop-controllers';
|
|
3
|
+
import { BackgroundsValue as ResponsiveBackgroundsValue } from '../../prop-controllers/descriptors';
|
|
4
|
+
declare type BackgroundColorData = Color;
|
|
5
|
+
declare type BackgroundGradientStopData = {
|
|
6
|
+
id: string;
|
|
7
|
+
location: number;
|
|
8
|
+
color: Color | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
declare type BackgroundGradientData = {
|
|
11
|
+
angle: number;
|
|
12
|
+
isRadial: boolean;
|
|
13
|
+
stops: Array<BackgroundGradientStopData>;
|
|
14
|
+
};
|
|
15
|
+
declare type BackgroundImageData = {
|
|
16
|
+
publicUrl?: string;
|
|
17
|
+
dimensions: {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
} | null;
|
|
21
|
+
position: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
size: 'cover' | 'contain' | 'auto';
|
|
26
|
+
repeat: 'no-repeat' | 'repeat-x' | 'repeat-y' | 'repeat';
|
|
27
|
+
opacity?: number;
|
|
28
|
+
parallax?: number;
|
|
29
|
+
};
|
|
30
|
+
declare type BackgroundVideoData = {
|
|
31
|
+
url: string;
|
|
32
|
+
maskColor: Color | null | undefined;
|
|
33
|
+
aspectRatio: 'wide' | 'standard';
|
|
34
|
+
opacity: number;
|
|
35
|
+
zoom: number;
|
|
36
|
+
parallax: number;
|
|
37
|
+
};
|
|
38
|
+
declare type BackgroundData = {
|
|
39
|
+
id: string;
|
|
40
|
+
type: 'color';
|
|
41
|
+
payload: BackgroundColorData | null | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
id: string;
|
|
44
|
+
type: 'image';
|
|
45
|
+
payload: BackgroundImageData | null | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
id: string;
|
|
48
|
+
type: 'gradient';
|
|
49
|
+
payload: BackgroundGradientData | null | undefined;
|
|
50
|
+
} | {
|
|
51
|
+
id: string;
|
|
52
|
+
type: 'video';
|
|
53
|
+
payload: BackgroundVideoData | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
declare type BackgroundsData = Array<BackgroundData>;
|
|
56
|
+
export declare type BackgroundsPropControllerData = ResponsiveValue<BackgroundsData>;
|
|
57
|
+
export declare function useBackgrounds(value: ResponsiveBackgroundsValue | null | undefined): BackgroundsPropControllerData | null | undefined;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=useBackgrounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBackgrounds.d.ts","sourceRoot":"","sources":["../../../../src/components/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AQ,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BorderStyleProperty } from 'csstype';
|
|
2
|
+
import type { ColorValue as Color } from '../utils/types';
|
|
3
|
+
import { ResponsiveValue } from '../../prop-controllers';
|
|
4
|
+
import { BorderValue as ResponsiveBorderValue } from '../../prop-controllers/descriptors';
|
|
5
|
+
export declare type BorderSide = {
|
|
6
|
+
width: number | null | undefined;
|
|
7
|
+
style: BorderStyleProperty;
|
|
8
|
+
color: Color | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
declare type BorderData = {
|
|
11
|
+
borderTop: BorderSide | null | undefined;
|
|
12
|
+
borderRight: BorderSide | null | undefined;
|
|
13
|
+
borderBottom: BorderSide | null | undefined;
|
|
14
|
+
borderLeft: BorderSide | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
export declare type BorderPropControllerData = ResponsiveValue<BorderData>;
|
|
17
|
+
export declare function useBorder(value: ResponsiveBorderValue | null | undefined): BorderPropControllerData | null | undefined;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=useBorder.d.ts.map
|
|
@@ -0,0 +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;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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColorValue as Color } from '../utils/types';
|
|
2
|
+
import type { ResponsiveValue } from '../../prop-controllers';
|
|
3
|
+
import type { ShadowsValue as ResponsiveShadowsValue } from '../../prop-controllers/descriptors';
|
|
4
|
+
declare type ShadowData = {
|
|
5
|
+
id: string;
|
|
6
|
+
payload: {
|
|
7
|
+
inset: boolean;
|
|
8
|
+
offsetX: number;
|
|
9
|
+
offsetY: number;
|
|
10
|
+
blurRadius: number;
|
|
11
|
+
spreadRadius: number;
|
|
12
|
+
color: Color | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare type BoxShadowData = Array<ShadowData>;
|
|
16
|
+
export declare type BoxShadowPropControllerData = ResponsiveValue<BoxShadowData>;
|
|
17
|
+
export declare function useBoxShadow(value: ResponsiveShadowsValue | null | undefined): BoxShadowPropControllerData | null | undefined;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=useBoxShadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ResponsiveValue } from '../../prop-controllers';
|
|
2
|
+
import type { ColorValue as Color } from '../utils/types';
|
|
3
|
+
export declare function useColor(color: ResponsiveValue<{
|
|
4
|
+
swatchId: string;
|
|
5
|
+
alpha: number;
|
|
6
|
+
}> | null | undefined): ResponsiveValue<Color> | null | undefined;
|
|
7
|
+
//# sourceMappingURL=useColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare type File = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
publicUrl: string;
|
|
5
|
+
extension: string;
|
|
6
|
+
dimensions: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
} | null;
|
|
10
|
+
};
|
|
11
|
+
export declare function useFile(fileId: string | null | undefined): File | null | undefined;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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,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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,uBAAuB,CAAA"}
|
package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Props = {
|
|
3
|
+
url?: string;
|
|
4
|
+
aspectRatio?: number;
|
|
5
|
+
zoom?: number;
|
|
6
|
+
opacity?: number;
|
|
7
|
+
maskColor?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function BackgroundVideo({ url, aspectRatio, zoom, maskColor, opacity, }: Props): JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/components/shared/BackgroundsContainer/components/BackgroundVideo/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/shared/BackgroundsContainer/components/BackgroundVideo/index.tsx"],"names":[],"mappings":";AAgCA,aAAK,KAAK,GAAG;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,GAAQ,EACR,WAAoB,EACpB,IAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA8DrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BackgroundsPropControllerData } from '../../../../hooks';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
backgrounds: BackgroundsPropControllerData | null | undefined;
|
|
5
|
+
};
|
|
6
|
+
export default function Backgrounds({ backgrounds }: Props): JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/shared/BackgroundsContainer/components/Backgrounds/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AA0DjE,aAAK,KAAK,GAAG;IAAE,WAAW,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,CAAA;AAE9E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,WAAW,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAmHvE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
strength: number | null | undefined;
|
|
4
|
+
children: (getParallaxProps: <P extends {
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}>(props: P) => P) => ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export default function Parallax({ strength, children, ...rest }: Props): JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/shared/BackgroundsContainer/components/Parallax/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkD,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAoBhG,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,QAAQ,EAAE,CACR,gBAAgB,EAAE,CAAC,CAAC,SAAS;QAAE,KAAK,CAAC,EAAE,aAAa,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAC3F,SAAS,CAAA;CACf,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA4FpF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement, ElementType, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { BackgroundsValue as BackgroundsPropControllerValue } from '../../../prop-controllers/descriptors';
|
|
3
|
+
declare const OuterContainer: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDivElement, import("framer-motion").HTMLMotionProps<"div">>, any, {}, never>;
|
|
4
|
+
declare type BaseProps = {
|
|
5
|
+
backgrounds: BackgroundsPropControllerValue | null | undefined;
|
|
6
|
+
children: ReactElement<ElementType>;
|
|
7
|
+
};
|
|
8
|
+
declare type Props = BaseProps & Omit<ComponentPropsWithoutRef<typeof OuterContainer>, keyof BaseProps>;
|
|
9
|
+
declare const _default: import("react").ForwardRefExoticComponent<Pick<Props, string | number | symbol> & import("react").RefAttributes<HTMLDivElement | null>>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/BackgroundsContainer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EAGX,wBAAwB,EAGzB,MAAM,OAAO,CAAA;AAKd,OAAO,EAAE,gBAAgB,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AAI1G,QAAA,MAAM,cAAc,0KAanB,CAAA;AAED,aAAK,SAAS,GAAG;IACf,WAAW,EAAE,8BAA8B,GAAG,IAAI,GAAG,SAAS,CAAA;IAC9D,QAAQ,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;CACpC,CAAA;AAED,aAAK,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,EAAE,MAAM,SAAS,CAAC,CAAA;;AAE/F,wBAcE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ResponsiveValue, Length } from '../../../prop-controllers/descriptors';
|
|
2
|
+
declare const GutterContainer: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
gutter?: ResponsiveValue<Length> | undefined;
|
|
4
|
+
first: boolean;
|
|
5
|
+
last: boolean;
|
|
6
|
+
}, never>;
|
|
7
|
+
export default GutterContainer;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/GutterContainer/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAA;AAG/E,QAAA,MAAM,eAAe;;WAEZ,OAAO;UACR,OAAO;SAUd,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { LinkValue as LinkPropControllerValue } from '../../../prop-controllers/descriptors';
|
|
3
|
+
declare type BaseProps = {
|
|
4
|
+
link?: LinkPropControllerValue;
|
|
5
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement>) => unknown;
|
|
6
|
+
};
|
|
7
|
+
export declare const Link: import("react").ForwardRefExoticComponent<BaseProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>>, keyof BaseProps> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,UAAU,EAAE,MAAM,OAAO,CAAA;AAIxE,OAAO,EAAE,SAAS,IAAI,uBAAuB,EAAE,MAAM,uCAAuC,CAAA;AAI5F,aAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,uBAAuB,CAAA;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,OAAO,CAAA;CAC5D,CAAA;AAID,eAAO,MAAM,IAAI,6TAkGf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorToString.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/colorToString.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAElD,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAInD"}
|
|
@@ -2,7 +2,8 @@ import { css, CSSObject } from 'styled-components';
|
|
|
2
2
|
import { WidthProperty, MarginTopProperty, MarginRightProperty, MarginBottomProperty, MarginLeftProperty, PaddingTopProperty, PaddingRightProperty, PaddingBottomProperty, PaddingLeftProperty, BorderTopLeftRadiusProperty, BorderTopRightRadiusProperty, BorderBottomLeftRadiusProperty, BorderBottomRightRadiusProperty } from 'csstype';
|
|
3
3
|
import { ResponsiveValue, ResponsiveValueType as ExtractResponsiveValue, Length as LengthValue } from '../../prop-controllers';
|
|
4
4
|
import { FallbackStrategy } from './devices';
|
|
5
|
-
import { BorderRadiusValue, MarginValue, PaddingValue, WidthValue } from '../../prop-controllers/descriptors';
|
|
5
|
+
import { BorderRadiusValue, MarginValue, PaddingValue, TextStyleValue, WidthValue } from '../../prop-controllers/descriptors';
|
|
6
|
+
import { BorderSide, BorderPropControllerData, BoxShadowData, BoxShadowPropControllerData } from '../hooks';
|
|
6
7
|
declare type CSSRules = ReturnType<typeof css>;
|
|
7
8
|
export declare function cssMediaRules<V, A extends ReadonlyArray<ResponsiveValue<V> | null | undefined>, P>(responsiveValues: A | ((props: P) => A), join: (values: {
|
|
8
9
|
[K in keyof A]: ExtractResponsiveValue<A[K]> | undefined;
|
|
@@ -26,6 +27,14 @@ export declare function cssPadding(defaultValue?: {
|
|
|
26
27
|
}): (props: {
|
|
27
28
|
padding?: PaddingValue;
|
|
28
29
|
}) => CSSRules;
|
|
30
|
+
export declare function cssBorder(defaultValue?: {
|
|
31
|
+
borderTop?: BorderSide;
|
|
32
|
+
borderRight?: BorderSide;
|
|
33
|
+
borderBottom?: BorderSide;
|
|
34
|
+
borderLeft?: BorderSide;
|
|
35
|
+
}): (props: {
|
|
36
|
+
border?: BorderPropControllerData | null | undefined;
|
|
37
|
+
}) => CSSRules;
|
|
29
38
|
export declare function cssBorderRadius(defaultValue?: {
|
|
30
39
|
borderTopLeftRadius?: LengthValue | BorderTopLeftRadiusProperty<string | number>;
|
|
31
40
|
borderTopRightRadius?: LengthValue | BorderTopRightRadiusProperty<string | number>;
|
|
@@ -34,6 +43,9 @@ export declare function cssBorderRadius(defaultValue?: {
|
|
|
34
43
|
}): (props: {
|
|
35
44
|
borderRadius?: BorderRadiusValue;
|
|
36
45
|
}) => CSSRules;
|
|
46
|
+
export declare function cssBoxShadow(defaultValue?: BoxShadowData): (props: {
|
|
47
|
+
boxShadow?: BoxShadowPropControllerData | null | undefined;
|
|
48
|
+
}) => CSSRules;
|
|
37
49
|
export declare function cssGridItem(): (props: {
|
|
38
50
|
grid: ResponsiveValue<{
|
|
39
51
|
spans: Array<Array<number>>;
|
|
@@ -43,5 +55,15 @@ export declare function cssGridItem(): (props: {
|
|
|
43
55
|
columnGap?: ResponsiveValue<LengthValue>;
|
|
44
56
|
rowGap?: ResponsiveValue<LengthValue>;
|
|
45
57
|
}) => CSSRules;
|
|
58
|
+
export declare function cssTextStyle(defaultValue?: {
|
|
59
|
+
fontFamily?: string | null | undefined;
|
|
60
|
+
letterSpacing: number | null | undefined;
|
|
61
|
+
fontSize: LengthValue | null | undefined;
|
|
62
|
+
fontWeight: number | null | undefined;
|
|
63
|
+
textTransform: Array<'uppercase'>;
|
|
64
|
+
fontStyle: Array<'italic'>;
|
|
65
|
+
}): (arg0: {
|
|
66
|
+
textStyle?: TextStyleValue | null | undefined;
|
|
67
|
+
}) => CSSRules;
|
|
46
68
|
export {};
|
|
47
69
|
//# sourceMappingURL=cssMediaRules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cssMediaRules.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/cssMediaRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EACL,aAAa,EAEb,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAElB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EAEnB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,eAAe,EACf,mBAAmB,IAAI,sBAAsB,EAC7C,MAAM,IAAI,WAAW,EACtB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,gBAAgB,EAIjB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,EACX,MAAM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,MAAM,CAAC,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;IACxC,MAAM,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;CACtC,KAAK,QAAQ,CA0Cb;AAED,wBAAgB,YAAY,CAC1B,YAAY,GAAE;IACZ,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACtC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACxC,QAAQ,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAA;IACxC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACrC,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;IACjC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;CAQ3B,GACA,CAAC,IAAI,EAAE;IAAE,SAAS,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAA;CAAE,KAAK,QAAQ,CA8CvE"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNonNullable.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/isNonNullable.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,IAAI,WAAW,CAAC,CAAC,CAAC,CAElE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/placeholders.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;CAKxB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/utils/types.ts"],"names":[],"mappings":"AAAA,aAAK,WAAW,GAAG;IACjB,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,6 +1,7 @@
|
|
|
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, } 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
|
+
export type { Element } from './state/react-page';
|
|
6
7
|
//# 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,GAClB,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"}
|
|
@@ -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,EAAkD,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,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;
|
|
@@ -87,6 +88,7 @@ export declare const Types: {
|
|
|
87
88
|
readonly Image: "Image";
|
|
88
89
|
readonly Images: "Images";
|
|
89
90
|
readonly Link: "Link";
|
|
91
|
+
readonly List: "List";
|
|
90
92
|
readonly Margin: "Margin";
|
|
91
93
|
readonly NavigationLinks: "NavigationLinks";
|
|
92
94
|
readonly Number: "Number";
|
|
@@ -99,6 +101,7 @@ export declare const Types: {
|
|
|
99
101
|
readonly ResponsiveSelect: "ResponsiveSelect";
|
|
100
102
|
readonly RichText: "RichText";
|
|
101
103
|
readonly Shadows: "Shadows";
|
|
104
|
+
readonly Shape: "Shape";
|
|
102
105
|
readonly SocialLinks: "SocialLinks";
|
|
103
106
|
readonly Table: "Table";
|
|
104
107
|
readonly TableFormFields: "TableFormFields";
|
|
@@ -319,6 +322,23 @@ declare type LinkDescriptor<_T = LinkValue> = {
|
|
|
319
322
|
options: LinkOptions;
|
|
320
323
|
};
|
|
321
324
|
export declare function Link(options?: LinkOptions): LinkDescriptor;
|
|
325
|
+
declare type ListValueItem<T extends Data> = {
|
|
326
|
+
id: string;
|
|
327
|
+
value?: T;
|
|
328
|
+
};
|
|
329
|
+
export declare type ListValue<T extends Data = Data> = ListValueItem<T>[];
|
|
330
|
+
export declare type ListOptions<T extends Data> = {
|
|
331
|
+
type: PanelDescriptor<T>;
|
|
332
|
+
label?: string;
|
|
333
|
+
getItemLabel?: ((value: T | undefined) => string) | ((value: T | undefined) => Promise<string>);
|
|
334
|
+
preset?: ListValue<T>;
|
|
335
|
+
defaultValue?: ListValue<T>;
|
|
336
|
+
};
|
|
337
|
+
export declare type ListDescriptor<T extends ListValue = ListValue> = {
|
|
338
|
+
type: typeof Types.List;
|
|
339
|
+
options: ListOptions<T extends ListValue<infer U> ? U : never>;
|
|
340
|
+
};
|
|
341
|
+
export declare function List<T extends Data>(options: ListOptions<T>): ListDescriptor<ListValue<T>>;
|
|
322
342
|
declare type MarginSide = {
|
|
323
343
|
value: number;
|
|
324
344
|
unit: 'px';
|
|
@@ -509,7 +529,7 @@ export declare type RichTextValue = IndexSignatureHack<Slate.ValueJSON>;
|
|
|
509
529
|
declare type RichTextOptions = Options<{
|
|
510
530
|
preset?: RichTextValue;
|
|
511
531
|
}>;
|
|
512
|
-
declare type RichTextDescriptor<_T extends Data = RichTextValue> = {
|
|
532
|
+
export declare type RichTextDescriptor<_T extends Data = RichTextValue> = {
|
|
513
533
|
type: typeof Types.RichText;
|
|
514
534
|
options: RichTextOptions;
|
|
515
535
|
};
|
|
@@ -533,6 +553,20 @@ declare type ShadowsDescriptor<_T = ShadowsValue> = {
|
|
|
533
553
|
options: ShadowsOptions;
|
|
534
554
|
};
|
|
535
555
|
export declare function Shadows(options?: ShadowsOptions): ShadowsDescriptor;
|
|
556
|
+
export declare type ShapeValue<T extends Data = Data> = Record<string, T>;
|
|
557
|
+
declare type ShapeOptions<T extends Record<string, Descriptor>> = {
|
|
558
|
+
type: T;
|
|
559
|
+
preset?: {
|
|
560
|
+
[K in keyof T]?: DescriptorValueType<T[K]>;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
declare type ShapeDescriptor<_T extends Record<string, Data>, U extends Record<string, Descriptor>> = {
|
|
564
|
+
type: typeof Types.Shape;
|
|
565
|
+
options: ShapeOptions<U>;
|
|
566
|
+
};
|
|
567
|
+
export declare function Shape<T extends Record<string, Descriptor>>(options: ShapeOptions<T>): ShapeDescriptor<{
|
|
568
|
+
[K in keyof T]?: DescriptorValueType<T[K]>;
|
|
569
|
+
}, T>;
|
|
536
570
|
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';
|
|
537
571
|
declare type SocialLink = {
|
|
538
572
|
type: SocialLinkType;
|
|
@@ -650,7 +684,10 @@ declare type WidthDescriptor<_T = WidthValue> = {
|
|
|
650
684
|
options: WidthOptions;
|
|
651
685
|
};
|
|
652
686
|
export declare function Width(options?: WidthOptions): WidthDescriptor;
|
|
653
|
-
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> | 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> | SocialLinksDescriptor<T> | TableDescriptor<T> | TableFormFieldsDescriptor<T> | TextAreaDescriptor<T> | TextInputDescriptor<T> | TextStyleDescriptor<T> | VideoDescriptor<T> | WidthDescriptor<T>;
|
|
687
|
+
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>;
|
|
688
|
+
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;
|
|
689
|
+
export declare type PanelDescriptor<T extends Data = Data> = Extract<Descriptor<T>, {
|
|
690
|
+
type: PanelDescriptorType;
|
|
691
|
+
}>;
|
|
654
692
|
export declare type DescriptorValueType<T extends Descriptor> = T extends Descriptor<infer U> ? U : never;
|
|
655
|
-
export {};
|
|
656
693
|
//# sourceMappingURL=descriptors.d.ts.map
|