@cntrl-site/components 0.0.1 → 0.0.3

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.
Files changed (156) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +2 -2
  3. package/dist/{sdk/Components → Components}/ControlSlider/ControlSlider.d.ts +1 -1
  4. package/dist/{sdk/Components → Components}/ControlSlider/ControlSliderComponent.d.ts +9 -12
  5. package/dist/{sdk/Components → Components}/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +9 -0
  6. package/dist/{sdk/Components → Components}/ImageRevealSlider/ImageRevealSlider.d.ts +1 -1
  7. package/dist/Components/components.d.ts +2 -0
  8. package/dist/components.css +1 -1
  9. package/dist/index.d.ts +2 -33
  10. package/dist/index.js +81 -6401
  11. package/dist/index.mjs +73 -6376
  12. package/package.json +68 -92
  13. package/dist/cli.d.ts +0 -10
  14. package/dist/sdk/Client/Client.d.ts +0 -32
  15. package/dist/sdk/Client/Client.test.d.ts +0 -1
  16. package/dist/sdk/Client/__mock__/articleMock.d.ts +0 -2
  17. package/dist/sdk/Client/__mock__/keyframesMock.d.ts +0 -2
  18. package/dist/sdk/Client/__mock__/projectMock.d.ts +0 -2
  19. package/dist/sdk/Components/components.d.ts +0 -2
  20. package/dist/sdk/FontFaceGenerator/FontFaceGenerator.d.ts +0 -6
  21. package/dist/sdk/FontFaceGenerator/FontFaceGenerator.test.d.ts +0 -1
  22. package/dist/sdk/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +0 -31
  23. package/dist/sdk/VideoDecoder/VideoDecoder.d.ts +0 -12
  24. package/dist/sdk/schemas/article/Article.schema.d.ts +0 -328
  25. package/dist/sdk/schemas/article/FillLayer.schema.d.ts +0 -186
  26. package/dist/sdk/schemas/article/Interaction.schema.d.ts +0 -103
  27. package/dist/sdk/schemas/article/Item.schema.d.ts +0 -40
  28. package/dist/sdk/schemas/article/ItemArea.schema.d.ts +0 -36
  29. package/dist/sdk/schemas/article/ItemBase.schema.d.ts +0 -137
  30. package/dist/sdk/schemas/article/ItemState.schema.d.ts +0 -15723
  31. package/dist/sdk/schemas/article/RichTextItem.schema.d.ts +0 -1372
  32. package/dist/sdk/schemas/article/Section.schema.d.ts +0 -176
  33. package/dist/sdk/schemas/keyframe/Keyframes.schema.d.ts +0 -2000
  34. package/dist/sdk/schemas/project/Layout.schema.d.ts +0 -17
  35. package/dist/sdk/schemas/project/Project.schema.d.ts +0 -253
  36. package/dist/sdk/schemas/shared/FillLayer.schema.d.ts +0 -186
  37. package/dist/sdk/types/article/Article.d.ts +0 -7
  38. package/dist/sdk/types/article/ArticleItemType.d.ts +0 -13
  39. package/dist/sdk/types/article/CompoundSettings.d.ts +0 -6
  40. package/dist/sdk/types/article/FX.d.ts +0 -23
  41. package/dist/sdk/types/article/Interaction.d.ts +0 -28
  42. package/dist/sdk/types/article/Item.d.ts +0 -250
  43. package/dist/sdk/types/article/ItemArea.d.ts +0 -36
  44. package/dist/sdk/types/article/ItemState.d.ts +0 -78
  45. package/dist/sdk/types/article/RichText.d.ts +0 -40
  46. package/dist/sdk/types/article/Section.d.ts +0 -37
  47. package/dist/sdk/types/keyframe/Keyframe.d.ts +0 -86
  48. package/dist/sdk/types/project/Fonts.d.ts +0 -22
  49. package/dist/sdk/types/project/Layout.d.ts +0 -6
  50. package/dist/sdk/types/project/Meta.d.ts +0 -9
  51. package/dist/sdk/types/project/Page.d.ts +0 -11
  52. package/dist/sdk/types/project/Project.d.ts +0 -17
  53. package/dist/sdk-nextjs/common/useCurrentLayout.d.ts +0 -6
  54. package/dist/sdk-nextjs/common/useExemplary.d.ts +0 -1
  55. package/dist/sdk-nextjs/common/useItemFXData.d.ts +0 -8
  56. package/dist/sdk-nextjs/common/useKeyframeValue.d.ts +0 -8
  57. package/dist/sdk-nextjs/common/useRegisterResize.d.ts +0 -1
  58. package/dist/sdk-nextjs/components/Article.d.ts +0 -9
  59. package/dist/sdk-nextjs/components/ArticleWrapper.d.ts +0 -2
  60. package/dist/sdk-nextjs/components/Head.d.ts +0 -9
  61. package/dist/sdk-nextjs/components/LayoutStyle.d.ts +0 -9
  62. package/dist/sdk-nextjs/components/Page.d.ts +0 -15
  63. package/dist/sdk-nextjs/components/ScrollPlaybackVideo.d.ts +0 -14
  64. package/dist/sdk-nextjs/components/Section/Section.d.ts +0 -11
  65. package/dist/sdk-nextjs/components/Section/SectionImage.d.ts +0 -14
  66. package/dist/sdk-nextjs/components/Section/SectionVideo.d.ts +0 -17
  67. package/dist/sdk-nextjs/components/Section/useSectionColor.d.ts +0 -4
  68. package/dist/sdk-nextjs/components/Section/useSectionHeightMap.d.ts +0 -3
  69. package/dist/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.d.ts +0 -5
  70. package/dist/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +0 -7
  71. package/dist/sdk-nextjs/components/items/ComponentItem/ComponentItem.d.ts +0 -4
  72. package/dist/sdk-nextjs/components/items/ComponentItem/useComponentItem.d.ts +0 -5
  73. package/dist/sdk-nextjs/components/items/CompoundItem/CompoundChild.d.ts +0 -9
  74. package/dist/sdk-nextjs/components/items/CompoundItem/CompoundItem.d.ts +0 -4
  75. package/dist/sdk-nextjs/components/items/CompoundItem/useCompoundItem.d.ts +0 -4
  76. package/dist/sdk-nextjs/components/items/CustomItem/CustomItem.d.ts +0 -4
  77. package/dist/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.d.ts +0 -4
  78. package/dist/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.d.ts +0 -4
  79. package/dist/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.d.ts +0 -6
  80. package/dist/sdk-nextjs/components/items/FileItem/ImageItem.d.ts +0 -4
  81. package/dist/sdk-nextjs/components/items/FileItem/VideoItem.d.ts +0 -4
  82. package/dist/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +0 -8
  83. package/dist/sdk-nextjs/components/items/GroupItem/GroupItem.d.ts +0 -4
  84. package/dist/sdk-nextjs/components/items/GroupItem/useGroupItem.d.ts +0 -5
  85. package/dist/sdk-nextjs/components/items/Item.d.ts +0 -20
  86. package/dist/sdk-nextjs/components/items/LinkWrapper.d.ts +0 -8
  87. package/dist/sdk-nextjs/components/items/RectangleItem/RectangleItem.d.ts +0 -4
  88. package/dist/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +0 -9
  89. package/dist/sdk-nextjs/components/items/RichTextItem/RichTextItem.d.ts +0 -4
  90. package/dist/sdk-nextjs/components/items/RichTextItem/useRichTextItem.d.ts +0 -3
  91. package/dist/sdk-nextjs/components/items/RichTextWrapper.d.ts +0 -7
  92. package/dist/sdk-nextjs/components/items/itemsMap.d.ts +0 -4
  93. package/dist/sdk-nextjs/components/items/useDraggable.d.ts +0 -17
  94. package/dist/sdk-nextjs/components/items/useItemAngle.d.ts +0 -2
  95. package/dist/sdk-nextjs/components/items/useItemArea.d.ts +0 -12
  96. package/dist/sdk-nextjs/components/items/useItemPointerEvents.d.ts +0 -4
  97. package/dist/sdk-nextjs/components/items/useItemScale.d.ts +0 -2
  98. package/dist/sdk-nextjs/components/items/useItemTriggers.d.ts +0 -6
  99. package/dist/sdk-nextjs/components/items/useRichTextItemValues.d.ts +0 -9
  100. package/dist/sdk-nextjs/components/items/useSizing.d.ts +0 -8
  101. package/dist/sdk-nextjs/components/items/useStickyItemTop.d.ts +0 -2
  102. package/dist/sdk-nextjs/components/useLayoutContext.d.ts +0 -1
  103. package/dist/sdk-nextjs/interactions/CSSPropertyNameMap.d.ts +0 -4
  104. package/dist/sdk-nextjs/interactions/InteractionsRegistry.d.ts +0 -39
  105. package/dist/sdk-nextjs/interactions/ItemInteractionCtrl.d.ts +0 -21
  106. package/dist/sdk-nextjs/interactions/getTransition.d.ts +0 -9
  107. package/dist/sdk-nextjs/interactions/types.d.ts +0 -34
  108. package/dist/sdk-nextjs/interactions/useItemInteractionCtrl.d.ts +0 -2
  109. package/dist/sdk-nextjs/provider/ArticleRectContext.d.ts +0 -2
  110. package/dist/sdk-nextjs/provider/CntrlContext.d.ts +0 -2
  111. package/dist/sdk-nextjs/provider/CntrlProvider.d.ts +0 -2
  112. package/dist/sdk-nextjs/provider/CntrlSdkContext.d.ts +0 -31
  113. package/dist/sdk-nextjs/provider/CustomItemRegistry.d.ts +0 -6
  114. package/dist/sdk-nextjs/provider/CustomItemTypes.d.ts +0 -2
  115. package/dist/sdk-nextjs/provider/CustomSectionRegistry.d.ts +0 -15
  116. package/dist/sdk-nextjs/provider/InteractionsContext.d.ts +0 -10
  117. package/dist/sdk-nextjs/provider/Keyframes.d.ts +0 -6
  118. package/dist/sdk-nextjs/provider/KeyframesContext.d.ts +0 -2
  119. package/dist/sdk-nextjs/provider/LayoutContext.d.ts +0 -1
  120. package/dist/sdk-nextjs/provider/WebGLContextManagerContext.d.ts +0 -2
  121. package/dist/sdk-nextjs/provider/defaultContext.d.ts +0 -2
  122. package/dist/sdk-nextjs/provider/useCntrlContext.d.ts +0 -2
  123. package/dist/sdk-nextjs/utils/Animator/Animator.d.ts +0 -43
  124. package/dist/sdk-nextjs/utils/ArticleRectManager/ArticleRectObserver.d.ts +0 -25
  125. package/dist/sdk-nextjs/utils/ArticleRectManager/useArticleRectObserver.d.ts +0 -2
  126. package/dist/sdk-nextjs/utils/ArticleRectManager/useSectionRegistry.d.ts +0 -1
  127. package/dist/sdk-nextjs/utils/EventEmitter.d.ts +0 -11
  128. package/dist/sdk-nextjs/utils/RichTextConverter/RichTextConverter.d.ts +0 -11
  129. package/dist/sdk-nextjs/utils/ScaleAnchorMap.d.ts +0 -11
  130. package/dist/sdk-nextjs/utils/StickyManager/StickyManager.d.ts +0 -10
  131. package/dist/sdk-nextjs/utils/Youtube/YouTubeIframeApiLoader.d.ts +0 -10
  132. package/dist/sdk-nextjs/utils/Youtube/YoutubeIframeApi.d.ts +0 -89
  133. package/dist/sdk-nextjs/utils/Youtube/useYouTubeIframeApi.d.ts +0 -2
  134. package/dist/sdk-nextjs/utils/areFillsVisible/areFillsVisible.d.ts +0 -23
  135. package/dist/sdk-nextjs/utils/areFillsVisible/areFillsVisible.test.d.ts +0 -1
  136. package/dist/sdk-nextjs/utils/binSearchInsertAt.d.ts +0 -5
  137. package/dist/sdk-nextjs/utils/castObject.d.ts +0 -5
  138. package/dist/sdk-nextjs/utils/checkOverflowClipSupport.d.ts +0 -1
  139. package/dist/sdk-nextjs/utils/effects/useImageFx.d.ts +0 -7
  140. package/dist/sdk-nextjs/utils/effects/useVideoFx.d.ts +0 -7
  141. package/dist/sdk-nextjs/utils/getAnchoredItemTop.d.ts +0 -2
  142. package/dist/sdk-nextjs/utils/getCompoundBoundaryStyles.d.ts +0 -12
  143. package/dist/sdk-nextjs/utils/getFill.d.ts +0 -2
  144. package/dist/sdk-nextjs/utils/getFontFamilyValue.d.ts +0 -1
  145. package/dist/sdk-nextjs/utils/getInvertedRanges.d.ts +0 -10
  146. package/dist/sdk-nextjs/utils/getItemTopStyle.d.ts +0 -2
  147. package/dist/sdk-nextjs/utils/getStyleFromItemStateAndParams.d.ts +0 -1
  148. package/dist/sdk-nextjs/utils/getValidYoutubeUrl.d.ts +0 -1
  149. package/dist/sdk-nextjs/utils/isItemType.d.ts +0 -3
  150. package/dist/sdk-nextjs/utils/rangeMap.d.ts +0 -1
  151. package/dist/sdk-nextjs/utils/useElementRect.d.ts +0 -1
  152. package/dist/utils.d.ts +0 -3
  153. /package/dist/{sdk/Components → Components}/helpers/RichTextRenderer/RichTextRenderer.d.ts +0 -0
  154. /package/dist/{sdk/Components → Components}/helpers/SvgImage/SvgImage.d.ts +0 -0
  155. /package/dist/{sdk/Components → Components}/utils/scalingValue.d.ts +0 -0
  156. /package/dist/{sdk/types/component → types}/Component.d.ts +0 -0
package/package.json CHANGED
@@ -1,92 +1,68 @@
1
- {
2
- "name": "@cntrl-site/components",
3
- "version": "0.0.1",
4
- "description": "Custom components for control editor and public websites.",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "style": "dist/sdk.css",
9
- "sideEffects": [
10
- "**/*.css"
11
- ],
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.mjs",
16
- "require": "./dist/index.js"
17
- },
18
- "./style/sdk.css": {
19
- "default": "./dist/sdk.css"
20
- }
21
- },
22
- "scripts": {
23
- "test": "jest",
24
- "dev": "vite development",
25
- "prebuild": "rimraf ./dist",
26
- "build": "vite build",
27
- "prepublishOnly": "cross-env NODE_ENV=production npm run build"
28
- },
29
- "files": [
30
- "dist",
31
- "resources"
32
- ],
33
- "repository": {
34
- "type": "git",
35
- "url": "git+https://github.com/cntrl-site/components.git"
36
- },
37
- "author": "arsen@momdesign.nyc",
38
- "license": "MIT",
39
- "bugs": {
40
- "url": "https://github.com/cntrl-site/components/issues"
41
- },
42
- "homepage": "https://github.com/cntrl-site/components#readme",
43
- "directories": {
44
- "lib": "dist"
45
- },
46
- "dependencies": {
47
- "@antfu/eslint-config": "^3.16.0",
48
- "@cntrl-site/color": "^1.0.0",
49
- "@cntrl-site/effects": "^1.4.0",
50
- "@splidejs/react-splide": "^0.7.12",
51
- "@testing-library/jest-dom": "^6.4.8",
52
- "@testing-library/react": "^16.0.0",
53
- "@types/ejs": "^3.1.2",
54
- "@types/isomorphic-fetch": "^0.0.36",
55
- "@types/ua-parser-js": "^0.7.39",
56
- "@types/vimeo__player": "^2.18.3",
57
- "@vimeo/player": "^2.25.0",
58
- "classnames": "^2.5.1",
59
- "commander": "^10.0.1",
60
- "dotenv": "^16.1.3",
61
- "ejs": "^3.1.9",
62
- "html-react-parser": "^3.0.1",
63
- "isomorphic-fetch": "^3.0.0",
64
- "mp4box": "^0.5.2",
65
- "resize-observer-polyfill": "^1.5.1",
66
- "styled-jsx": "^5.0.2",
67
- "ts-node": "^10.9.1",
68
- "ua-parser-js": "^1.0.37",
69
- "url": "^0.11.0",
70
- "zod": "^3.22.4"
71
- },
72
- "devDependencies": {
73
- "@tsconfig/node16": "^1.0.3",
74
- "@tsconfig/recommended": "^1.0.1",
75
- "@types/jest": "^29.5.12",
76
- "@types/node": "^18.11.7",
77
- "@types/react": "^18.2.0",
78
- "@types/react-dom": "^18.2.0",
79
- "@vitejs/plugin-react": "^4.3.4",
80
- "cross-env": "^10.1.0",
81
- "jest": "^29.7.0",
82
- "jest-environment-jsdom": "^29.7.0",
83
- "react": "^18.2.0",
84
- "react-dom": "^18.2.0",
85
- "rimraf": "^6.0.1",
86
- "sass": "^1.86.3",
87
- "ts-jest": "^29.0.3",
88
- "typescript": "^5.2.2",
89
- "vite": "^6.2.5",
90
- "vite-plugin-dts": "^4.5.3"
91
- }
92
- }
1
+ {
2
+ "name": "@cntrl-site/components",
3
+ "version": "0.0.3",
4
+ "description": "Custom components for control editor and public websites.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "style": "dist/components.css",
9
+ "sideEffects": [
10
+ "**/*.css"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js"
17
+ },
18
+ "./style/components.css": {
19
+ "default": "./dist/components.css"
20
+ }
21
+ },
22
+ "scripts": {
23
+ "test": "jest",
24
+ "dev": "vite development",
25
+ "prebuild": "rimraf ./dist",
26
+ "build": "vite build",
27
+ "prepublishOnly": "cross-env NODE_ENV=production npm run build"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "resources"
32
+ ],
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/cntrl-site/components.git"
36
+ },
37
+ "author": "arsen@momdesign.nyc",
38
+ "license": "MIT",
39
+ "bugs": {
40
+ "url": "https://github.com/cntrl-site/components/issues"
41
+ },
42
+ "homepage": "https://github.com/cntrl-site/components#readme",
43
+ "directories": {
44
+ "lib": "dist"
45
+ },
46
+ "dependencies": {
47
+ "@antfu/eslint-config": "^3.16.0",
48
+ "@splidejs/react-splide": "^0.7.12",
49
+ "classnames": "^2.5.1",
50
+ "ts-node": "^10.9.1"
51
+ },
52
+ "devDependencies": {
53
+ "@tsconfig/node16": "^1.0.3",
54
+ "@tsconfig/recommended": "^1.0.1",
55
+ "@types/node": "^18.11.7",
56
+ "@types/react": "^18.2.0",
57
+ "@types/react-dom": "^18.2.0",
58
+ "@vitejs/plugin-react": "^4.3.4",
59
+ "cross-env": "^10.1.0",
60
+ "react": "^18.2.0",
61
+ "react-dom": "^18.2.0",
62
+ "rimraf": "^6.0.1",
63
+ "sass": "^1.86.3",
64
+ "typescript": "^5.2.2",
65
+ "vite": "^6.2.5",
66
+ "vite-plugin-dts": "^4.5.3"
67
+ }
68
+ }
package/dist/cli.d.ts DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- export interface LayoutRange {
3
- /** closed range [start, end] */
4
- start: number;
5
- end: number;
6
- exemplary: number;
7
- name: string;
8
- isFirst: boolean;
9
- isLast: boolean;
10
- }
@@ -1,32 +0,0 @@
1
- import { Meta } from '../types/project/Meta';
2
- import { Project } from '../types/project/Project';
3
- import { Layout } from '../types/project/Layout';
4
- import { Article } from '../types/article/Article';
5
- import { KeyframeAny } from '../types/keyframe/Keyframe';
6
- export declare class Client {
7
- private fetchImpl;
8
- private url;
9
- constructor(APIUrl: string, fetchImpl?: FetchImpl);
10
- private static getPageMeta;
11
- getPageData(pageSlug: string, buildMode?: 'default' | 'self-hosted'): Promise<CntrlPageData>;
12
- getProjectPagesPaths(): Promise<string[]>;
13
- getLayouts(): Promise<Layout[]>;
14
- private fetchProject;
15
- private fetchArticle;
16
- private findArticleIdByPageSlug;
17
- }
18
- interface FetchImplResponse {
19
- ok: boolean;
20
- json(): Promise<any>;
21
- statusText: string;
22
- }
23
- type FetchImpl = (url: string, init?: RequestInit) => Promise<FetchImplResponse>;
24
- interface ArticleData {
25
- article: Article;
26
- keyframes: KeyframeAny[];
27
- }
28
- interface CntrlPageData extends ArticleData {
29
- project: Project;
30
- meta: Meta;
31
- }
32
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { Article } from '../../types/article/Article';
2
- export declare const articleMock: Article;
@@ -1,2 +0,0 @@
1
- import { KeyframeAny } from '../../types/keyframe/Keyframe';
2
- export declare const keyframesMock: KeyframeAny[];
@@ -1,2 +0,0 @@
1
- import { Project } from '../../types/project/Project';
2
- export declare const projectMock: Project;
@@ -1,2 +0,0 @@
1
- import { Component } from '../types/component/Component';
2
- export declare const components: Component[];
@@ -1,6 +0,0 @@
1
- import { CustomFont } from '../types/project/Fonts';
2
- export declare class FontFaceGenerator {
3
- private fonts;
4
- constructor(fonts: CustomFont[]);
5
- generate(): string;
6
- }
@@ -1,31 +0,0 @@
1
- interface ScrollVideoOptions {
2
- src: string;
3
- videoContainer: HTMLElement | string;
4
- }
5
- export declare class ScrollPlaybackVideoManager {
6
- private container?;
7
- private video?;
8
- private isSafari?;
9
- private currentTime;
10
- private targetTime;
11
- private canvas;
12
- private context;
13
- private frames;
14
- private frameRate;
15
- private transitioning;
16
- private debug;
17
- private frameThreshold;
18
- private transitionSpeed;
19
- private useWebCodecs;
20
- private resizeObserver;
21
- constructor(options: ScrollVideoOptions);
22
- private setCoverStyle;
23
- private resize;
24
- private decodeVideo;
25
- private paintCanvasFrame;
26
- private transitionToTargetTime;
27
- private resetCanvasDimensions;
28
- setTargetTimePercent(setPercentage: number, jump?: boolean): void;
29
- destroy(): void;
30
- }
31
- export {};
@@ -1,12 +0,0 @@
1
- export declare class Writer {
2
- private data;
3
- private idx;
4
- private size;
5
- constructor(size: number);
6
- getData(): Uint8Array<ArrayBuffer>;
7
- writeUint8(value: number): void;
8
- writeUint16(value: number): void;
9
- writeUint8Array(value: Uint8Array): void;
10
- }
11
- declare const _default: (src: string, emitFrame: (bitmap: ImageBitmap) => void, debug: boolean) => Promise<void>;
12
- export default _default;
@@ -1,328 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const ArticleSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- sections: z.ZodArray<z.ZodObject<{
5
- id: z.ZodString;
6
- items: z.ZodArray<z.ZodType<import('../../..').ItemAny, z.ZodTypeDef, import('../../..').ItemAny>, "many">;
7
- name: z.ZodOptional<z.ZodString>;
8
- height: z.ZodRecord<z.ZodString, z.ZodObject<{
9
- mode: z.ZodNativeEnum<typeof import('../../..').SectionHeightMode>;
10
- units: z.ZodNumber;
11
- vhUnits: z.ZodOptional<z.ZodNumber>;
12
- }, "strip", z.ZodTypeAny, {
13
- mode: import('../../..').SectionHeightMode;
14
- units: number;
15
- vhUnits?: number | undefined;
16
- }, {
17
- mode: import('../../..').SectionHeightMode;
18
- units: number;
19
- vhUnits?: number | undefined;
20
- }>>;
21
- position: z.ZodRecord<z.ZodString, z.ZodNumber>;
22
- hidden: z.ZodRecord<z.ZodString, z.ZodBoolean>;
23
- color: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
24
- media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
25
- url: z.ZodString;
26
- size: z.ZodString;
27
- type: z.ZodLiteral<"video">;
28
- play: z.ZodEnum<["on-click", "auto"]>;
29
- coverUrl: z.ZodNullable<z.ZodString>;
30
- position: z.ZodString;
31
- offsetX: z.ZodNullable<z.ZodNumber>;
32
- }, "strip", z.ZodTypeAny, {
33
- url: string;
34
- coverUrl: string | null;
35
- play: "on-click" | "auto";
36
- position: string;
37
- type: "video";
38
- size: string;
39
- offsetX: number | null;
40
- }, {
41
- url: string;
42
- coverUrl: string | null;
43
- play: "on-click" | "auto";
44
- position: string;
45
- type: "video";
46
- size: string;
47
- offsetX: number | null;
48
- }>, z.ZodObject<{
49
- url: z.ZodString;
50
- type: z.ZodLiteral<"image">;
51
- size: z.ZodString;
52
- position: z.ZodString;
53
- offsetX: z.ZodNullable<z.ZodNumber>;
54
- }, "strip", z.ZodTypeAny, {
55
- url: string;
56
- position: string;
57
- type: "image";
58
- size: string;
59
- offsetX: number | null;
60
- }, {
61
- url: string;
62
- position: string;
63
- type: "image";
64
- size: string;
65
- offsetX: number | null;
66
- }>]>>>;
67
- }, "strip", z.ZodTypeAny, {
68
- color: Record<string, string | null>;
69
- hidden: Record<string, boolean>;
70
- position: Record<string, number>;
71
- id: string;
72
- height: Record<string, {
73
- mode: import('../../..').SectionHeightMode;
74
- units: number;
75
- vhUnits?: number | undefined;
76
- }>;
77
- items: import('../../..').ItemAny[];
78
- name?: string | undefined;
79
- media?: Record<string, {
80
- url: string;
81
- coverUrl: string | null;
82
- play: "on-click" | "auto";
83
- position: string;
84
- type: "video";
85
- size: string;
86
- offsetX: number | null;
87
- } | {
88
- url: string;
89
- position: string;
90
- type: "image";
91
- size: string;
92
- offsetX: number | null;
93
- }> | undefined;
94
- }, {
95
- color: Record<string, string | null>;
96
- hidden: Record<string, boolean>;
97
- position: Record<string, number>;
98
- id: string;
99
- height: Record<string, {
100
- mode: import('../../..').SectionHeightMode;
101
- units: number;
102
- vhUnits?: number | undefined;
103
- }>;
104
- items: import('../../..').ItemAny[];
105
- name?: string | undefined;
106
- media?: Record<string, {
107
- url: string;
108
- coverUrl: string | null;
109
- play: "on-click" | "auto";
110
- position: string;
111
- type: "video";
112
- size: string;
113
- offsetX: number | null;
114
- } | {
115
- url: string;
116
- position: string;
117
- type: "image";
118
- size: string;
119
- offsetX: number | null;
120
- }> | undefined;
121
- }>, "many">;
122
- interactions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
123
- id: z.ZodString;
124
- triggers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
125
- itemId: z.ZodString;
126
- type: z.ZodEnum<["hover-in", "hover-out", "click"]>;
127
- from: z.ZodString;
128
- to: z.ZodString;
129
- }, "strip", z.ZodTypeAny, {
130
- type: "hover-in" | "hover-out" | "click";
131
- from: string;
132
- to: string;
133
- itemId: string;
134
- }, {
135
- type: "hover-in" | "hover-out" | "click";
136
- from: string;
137
- to: string;
138
- itemId: string;
139
- }>, z.ZodObject<{
140
- position: z.ZodNumber;
141
- from: z.ZodString;
142
- to: z.ZodString;
143
- isReverse: z.ZodBoolean;
144
- }, "strip", z.ZodTypeAny, {
145
- position: number;
146
- from: string;
147
- to: string;
148
- isReverse: boolean;
149
- }, {
150
- position: number;
151
- from: string;
152
- to: string;
153
- isReverse: boolean;
154
- }>]>, "many">;
155
- states: z.ZodArray<z.ZodObject<{
156
- id: z.ZodString;
157
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
158
- type: z.ZodEnum<["play", "pause"]>;
159
- itemId: z.ZodString;
160
- }, "strip", z.ZodTypeAny, {
161
- type: "play" | "pause";
162
- itemId: string;
163
- }, {
164
- type: "play" | "pause";
165
- itemId: string;
166
- }>, "many">>;
167
- }, "strip", z.ZodTypeAny, {
168
- id: string;
169
- actions?: {
170
- type: "play" | "pause";
171
- itemId: string;
172
- }[] | undefined;
173
- }, {
174
- id: string;
175
- actions?: {
176
- type: "play" | "pause";
177
- itemId: string;
178
- }[] | undefined;
179
- }>, "many">;
180
- startStateId: z.ZodString;
181
- }, "strip", z.ZodTypeAny, {
182
- id: string;
183
- triggers: ({
184
- type: "hover-in" | "hover-out" | "click";
185
- from: string;
186
- to: string;
187
- itemId: string;
188
- } | {
189
- position: number;
190
- from: string;
191
- to: string;
192
- isReverse: boolean;
193
- })[];
194
- states: {
195
- id: string;
196
- actions?: {
197
- type: "play" | "pause";
198
- itemId: string;
199
- }[] | undefined;
200
- }[];
201
- startStateId: string;
202
- }, {
203
- id: string;
204
- triggers: ({
205
- type: "hover-in" | "hover-out" | "click";
206
- from: string;
207
- to: string;
208
- itemId: string;
209
- } | {
210
- position: number;
211
- from: string;
212
- to: string;
213
- isReverse: boolean;
214
- })[];
215
- states: {
216
- id: string;
217
- actions?: {
218
- type: "play" | "pause";
219
- itemId: string;
220
- }[] | undefined;
221
- }[];
222
- startStateId: string;
223
- }>, "many">>;
224
- }, "strip", z.ZodTypeAny, {
225
- id: string;
226
- sections: {
227
- color: Record<string, string | null>;
228
- hidden: Record<string, boolean>;
229
- position: Record<string, number>;
230
- id: string;
231
- height: Record<string, {
232
- mode: import('../../..').SectionHeightMode;
233
- units: number;
234
- vhUnits?: number | undefined;
235
- }>;
236
- items: import('../../..').ItemAny[];
237
- name?: string | undefined;
238
- media?: Record<string, {
239
- url: string;
240
- coverUrl: string | null;
241
- play: "on-click" | "auto";
242
- position: string;
243
- type: "video";
244
- size: string;
245
- offsetX: number | null;
246
- } | {
247
- url: string;
248
- position: string;
249
- type: "image";
250
- size: string;
251
- offsetX: number | null;
252
- }> | undefined;
253
- }[];
254
- interactions: Record<string, {
255
- id: string;
256
- triggers: ({
257
- type: "hover-in" | "hover-out" | "click";
258
- from: string;
259
- to: string;
260
- itemId: string;
261
- } | {
262
- position: number;
263
- from: string;
264
- to: string;
265
- isReverse: boolean;
266
- })[];
267
- states: {
268
- id: string;
269
- actions?: {
270
- type: "play" | "pause";
271
- itemId: string;
272
- }[] | undefined;
273
- }[];
274
- startStateId: string;
275
- }[]>;
276
- }, {
277
- id: string;
278
- sections: {
279
- color: Record<string, string | null>;
280
- hidden: Record<string, boolean>;
281
- position: Record<string, number>;
282
- id: string;
283
- height: Record<string, {
284
- mode: import('../../..').SectionHeightMode;
285
- units: number;
286
- vhUnits?: number | undefined;
287
- }>;
288
- items: import('../../..').ItemAny[];
289
- name?: string | undefined;
290
- media?: Record<string, {
291
- url: string;
292
- coverUrl: string | null;
293
- play: "on-click" | "auto";
294
- position: string;
295
- type: "video";
296
- size: string;
297
- offsetX: number | null;
298
- } | {
299
- url: string;
300
- position: string;
301
- type: "image";
302
- size: string;
303
- offsetX: number | null;
304
- }> | undefined;
305
- }[];
306
- interactions: Record<string, {
307
- id: string;
308
- triggers: ({
309
- type: "hover-in" | "hover-out" | "click";
310
- from: string;
311
- to: string;
312
- itemId: string;
313
- } | {
314
- position: number;
315
- from: string;
316
- to: string;
317
- isReverse: boolean;
318
- })[];
319
- states: {
320
- id: string;
321
- actions?: {
322
- type: "play" | "pause";
323
- itemId: string;
324
- }[] | undefined;
325
- }[];
326
- startStateId: string;
327
- }[]>;
328
- }>;