@cntrl-site/sdk 1.28.0-3 → 1.28.0-4
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/lib/index.d.ts +2 -1
- package/lib/schemas/article/Article.schema.d.ts +12 -12
- package/lib/schemas/article/ElementLayoutParams.schema.d.ts +1219 -0
- package/lib/schemas/article/ElementLayoutParams.schema.js +91 -0
- package/lib/schemas/article/Interaction.schema.d.ts +8 -8
- package/lib/schemas/article/Item.schema.d.ts +0 -75
- package/lib/schemas/article/Item.schema.js +12 -91
- package/lib/schemas/article/ItemArea.schema.d.ts +2 -2
- package/lib/schemas/article/ItemBase.schema.d.ts +4 -4
- package/lib/schemas/article/RichTextItem.schema.d.ts +4 -4
- package/lib/schemas/article/StructuredBlock.schema.js +5 -4
- package/lib/schemas/keyframe/Keyframes.schema.d.ts +8 -8
- package/lib/types/article/Item.d.ts +3 -211
- package/lib/types/article/ItemState.d.ts +1 -1
- package/lib/types/article/Params.type.d.ts +211 -0
- package/lib/types/article/Params.type.js +2 -0
- package/lib/types/article/StructuredBlock.d.ts +1 -1
- package/lib/types/keyframe/Keyframe.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export { AreaAnchor, AnchorSide, DimensionMode, PositionType, DimensionsType } f
|
|
|
11
11
|
export { KeyframeType } from './types/keyframe/Keyframe';
|
|
12
12
|
export type { Article } from './types/article/Article';
|
|
13
13
|
export type { Section, SectionHeight } from './types/article/Section';
|
|
14
|
-
export type { Item, ImageItem, ItemAny, CustomItem, ItemCommonParamsMap, ItemLayoutParamsMap, RectangleItem,
|
|
14
|
+
export type { Item, ImageItem, ItemAny, CustomItem, ItemCommonParamsMap, ItemLayoutParamsMap, RectangleItem, VideoItem, RichTextItem, VimeoEmbedItem, YoutubeEmbedItem, GroupItem, CodeEmbedItem, CompoundItem, ComponentItem } from './types/article/Item';
|
|
15
|
+
export type { Link, StickyParams, FillLayer, ScrollPlaybackFrameData } from './types/article/Params.type';
|
|
15
16
|
export type { StructuredBlock, ComponentStructuredBlock, RichTextStructuredBlock, ImageStructuredBlock, VimeoEmbedStructuredBlock, YoutubeEmbedStructuredBlock, StructuredBlockAny } from './types/article/StructuredBlock';
|
|
16
17
|
export type { RichTextBlock, RichTextEntity, RichTextStyle } from './types/article/RichText';
|
|
17
18
|
export type { ItemArea } from './types/article/ItemArea';
|
|
@@ -55,8 +55,8 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
55
55
|
to: string;
|
|
56
56
|
itemId: string;
|
|
57
57
|
isReverse: boolean;
|
|
58
|
-
itemPosition: "
|
|
59
|
-
screenPosition: "
|
|
58
|
+
itemPosition: "top" | "bottom" | "center";
|
|
59
|
+
screenPosition: "top" | "bottom" | "center";
|
|
60
60
|
offset: number;
|
|
61
61
|
}, {
|
|
62
62
|
type: "item-scroll-position";
|
|
@@ -64,8 +64,8 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
64
64
|
to: string;
|
|
65
65
|
itemId: string;
|
|
66
66
|
isReverse: boolean;
|
|
67
|
-
itemPosition: "
|
|
68
|
-
screenPosition: "
|
|
67
|
+
itemPosition: "top" | "bottom" | "center";
|
|
68
|
+
screenPosition: "top" | "bottom" | "center";
|
|
69
69
|
offset: number;
|
|
70
70
|
}>]>, "many">;
|
|
71
71
|
states: z.ZodArray<z.ZodObject<{
|
|
@@ -114,8 +114,8 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
114
114
|
to: string;
|
|
115
115
|
itemId: string;
|
|
116
116
|
isReverse: boolean;
|
|
117
|
-
itemPosition: "
|
|
118
|
-
screenPosition: "
|
|
117
|
+
itemPosition: "top" | "bottom" | "center";
|
|
118
|
+
screenPosition: "top" | "bottom" | "center";
|
|
119
119
|
offset: number;
|
|
120
120
|
})[];
|
|
121
121
|
states: {
|
|
@@ -146,8 +146,8 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
146
146
|
to: string;
|
|
147
147
|
itemId: string;
|
|
148
148
|
isReverse: boolean;
|
|
149
|
-
itemPosition: "
|
|
150
|
-
screenPosition: "
|
|
149
|
+
itemPosition: "top" | "bottom" | "center";
|
|
150
|
+
screenPosition: "top" | "bottom" | "center";
|
|
151
151
|
offset: number;
|
|
152
152
|
})[];
|
|
153
153
|
states: {
|
|
@@ -182,8 +182,8 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
182
182
|
to: string;
|
|
183
183
|
itemId: string;
|
|
184
184
|
isReverse: boolean;
|
|
185
|
-
itemPosition: "
|
|
186
|
-
screenPosition: "
|
|
185
|
+
itemPosition: "top" | "bottom" | "center";
|
|
186
|
+
screenPosition: "top" | "bottom" | "center";
|
|
187
187
|
offset: number;
|
|
188
188
|
})[];
|
|
189
189
|
states: {
|
|
@@ -218,8 +218,8 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
218
218
|
to: string;
|
|
219
219
|
itemId: string;
|
|
220
220
|
isReverse: boolean;
|
|
221
|
-
itemPosition: "
|
|
222
|
-
screenPosition: "
|
|
221
|
+
itemPosition: "top" | "bottom" | "center";
|
|
222
|
+
screenPosition: "top" | "bottom" | "center";
|
|
223
223
|
offset: number;
|
|
224
224
|
})[];
|
|
225
225
|
states: {
|