@cntrl-site/sdk 1.28.0-1 → 1.28.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.
package/lib/index.d.ts CHANGED
@@ -12,7 +12,7 @@ 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
14
  export type { Item, ImageItem, ItemAny, CustomItem, ItemCommonParamsMap, ItemLayoutParamsMap, RectangleItem, StickyParams, VideoItem, RichTextItem, Link, VimeoEmbedItem, YoutubeEmbedItem, GroupItem, CodeEmbedItem, CompoundItem, ComponentItem, FillLayer, ScrollPlaybackFrameData } from './types/article/Item';
15
- export type { StructuredBlock, ComponentStructuredBlock, RichTextStructuredBlock, ImageStructuredBlock, VimeoEmbedStructuredBlock, YoutubeEmbedStructuredBlock } from './types/article/StructuredBlock';
15
+ export type { StructuredBlock, ComponentStructuredBlock, RichTextStructuredBlock, ImageStructuredBlock, VimeoEmbedStructuredBlock, YoutubeEmbedStructuredBlock, StructuredBlockAny } from './types/article/StructuredBlock';
16
16
  export type { RichTextBlock, RichTextEntity, RichTextStyle } from './types/article/RichText';
17
17
  export type { ItemArea } from './types/article/ItemArea';
18
18
  export type { ItemState, ItemStateParams, StateParams, ItemStatesMap } from './types/article/ItemState';
@@ -94,6 +94,7 @@ export declare const YoutubeEmbedLayoutParamsSchema: z.ZodObject<{
94
94
  blendMode?: string | undefined;
95
95
  }>;
96
96
  export declare const ComponentItemLayoutParamsSchema: z.ZodObject<{
97
+ sizing: z.ZodOptional<z.ZodString>;
97
98
  opacity: z.ZodNumber;
98
99
  blur: z.ZodNumber;
99
100
  parameters: z.ZodOptional<z.ZodAny>;
@@ -101,11 +102,13 @@ export declare const ComponentItemLayoutParamsSchema: z.ZodObject<{
101
102
  }, "strip", z.ZodTypeAny, {
102
103
  opacity: number;
103
104
  blur: number;
105
+ sizing?: string | undefined;
104
106
  parameters?: any;
105
107
  blendMode?: string | undefined;
106
108
  }, {
107
109
  opacity: number;
108
110
  blur: number;
111
+ sizing?: string | undefined;
109
112
  parameters?: any;
110
113
  blendMode?: string | undefined;
111
114
  }>;
@@ -200,6 +200,7 @@ const CodeEmbedItemSchema = ItemBase_schema_1.ItemBaseSchema.extend({
200
200
  state: zod_1.z.record(ItemState_schema_1.CodeEmbedStateParamsSchema)
201
201
  });
202
202
  exports.ComponentItemLayoutParamsSchema = zod_1.z.object({
203
+ sizing: zod_1.z.string().optional(),
203
204
  opacity: zod_1.z.number().nonnegative(),
204
205
  blur: zod_1.z.number(),
205
206
  parameters: zod_1.z.any().optional(),
@@ -90,6 +90,7 @@ export declare const StructuredBlockImageCommonParamsSchema: z.ZodObject<{
90
90
  type: "vec2";
91
91
  shaderParam: string;
92
92
  }>]>, "many">;
93
+ FXTextures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
93
94
  }, "strip", z.ZodTypeAny, {
94
95
  url: string;
95
96
  hasGLEffect: boolean;
@@ -113,6 +114,7 @@ export declare const StructuredBlockImageCommonParamsSchema: z.ZodObject<{
113
114
  pointerEvents?: "never" | "when_visible" | "always" | undefined;
114
115
  isPlaceholder?: boolean | undefined;
115
116
  caption?: string | undefined;
117
+ FXTextures?: string[] | undefined;
116
118
  }, {
117
119
  url: string;
118
120
  hasGLEffect: boolean;
@@ -136,6 +138,7 @@ export declare const StructuredBlockImageCommonParamsSchema: z.ZodObject<{
136
138
  pointerEvents?: "never" | "when_visible" | "always" | undefined;
137
139
  isPlaceholder?: boolean | undefined;
138
140
  caption?: string | undefined;
141
+ FXTextures?: string[] | undefined;
139
142
  }>;
140
143
  export declare const StructuredBlockRichTextLayoutParamsSchema: z.ZodObject<{
141
144
  rangeStyles: z.ZodArray<z.ZodObject<{
@@ -28,7 +28,8 @@ const FXParamsSchema = zod_1.z.object({
28
28
  hasGLEffect: zod_1.z.boolean(),
29
29
  fragmentShader: zod_1.z.string().nullable(),
30
30
  shaderName: zod_1.z.string().nullable(),
31
- FXControls: zod_1.z.array(Item_schema_1.FXControlSchema)
31
+ FXControls: zod_1.z.array(Item_schema_1.FXControlSchema),
32
+ FXTextures: zod_1.z.array(zod_1.z.string()).optional()
32
33
  });
33
34
  exports.StructuredBlockImageCommonParamsSchema = zod_1.z.object({
34
35
  url: zod_1.z.string().min(1),
@@ -249,6 +249,7 @@ type LayoutIdentifier = string;
249
249
  export interface ComponentLayoutParams {
250
250
  parameters?: any;
251
251
  opacity: number;
252
+ sizing?: string;
252
253
  blur: number;
253
254
  }
254
255
  export type VideoItem = Item<ArticleItemType.Video>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk",
3
- "version": "1.28.0-1",
3
+ "version": "1.28.0-3",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",