@cntrl-site/sdk 1.7.0 → 1.7.1
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.
|
@@ -62,6 +62,10 @@ const VideoItemSchema = ItemBase_schema_1.ItemBaseSchema.extend({
|
|
|
62
62
|
}).nullable()),
|
|
63
63
|
layoutParams: zod_1.z.record(zod_1.z.object({
|
|
64
64
|
autoplay: zod_1.z.boolean(),
|
|
65
|
+
scrollPlayback: zod_1.z.object({
|
|
66
|
+
from: zod_1.z.number(),
|
|
67
|
+
to: zod_1.z.number()
|
|
68
|
+
}).nullable(),
|
|
65
69
|
opacity: zod_1.z.number().nonnegative(),
|
|
66
70
|
radius: zod_1.z.number(),
|
|
67
71
|
strokeWidth: zod_1.z.number(),
|
package/package.json
CHANGED
|
@@ -84,6 +84,10 @@ const VideoItemSchema = ItemBaseSchema.extend({
|
|
|
84
84
|
layoutParams: z.record(
|
|
85
85
|
z.object({
|
|
86
86
|
autoplay: z.boolean(),
|
|
87
|
+
scrollPlayback: z.object({
|
|
88
|
+
from: z.number(),
|
|
89
|
+
to: z.number()
|
|
90
|
+
}).nullable(),
|
|
87
91
|
opacity: z.number().nonnegative(),
|
|
88
92
|
radius: z.number(),
|
|
89
93
|
strokeWidth: z.number(),
|
|
@@ -113,6 +113,7 @@ interface ImageLayoutParams extends MediaLayoutParams {}
|
|
|
113
113
|
|
|
114
114
|
interface VideoLayoutParams extends MediaLayoutParams {
|
|
115
115
|
autoplay: boolean;
|
|
116
|
+
scrollPlayback: ScrollPlaybackParams | null;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
interface RichTextLayoutParams {
|
|
@@ -144,6 +145,11 @@ interface RectangleLayoutParams {
|
|
|
144
145
|
blurMode: 'default' | 'backdrop';
|
|
145
146
|
}
|
|
146
147
|
|
|
148
|
+
export interface ScrollPlaybackParams {
|
|
149
|
+
from: number;
|
|
150
|
+
to: number;
|
|
151
|
+
}
|
|
152
|
+
|
|
147
153
|
export interface StickyParams {
|
|
148
154
|
from: number;
|
|
149
155
|
to?: number;
|