@cntrl-site/sdk 1.28.0-0 → 1.28.0-2

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
@@ -6,11 +6,13 @@ export { Rect } from './Rect/Rect';
6
6
  export { SectionHeightMode } from './types/article/Section';
7
7
  export { TextAlign, TextDecoration, TextTransform, VerticalAlign } from './types/article/RichText';
8
8
  export { ArticleItemType } from './types/article/ArticleItemType';
9
+ export { StructuredBlockType } from './types/article/StructuredBlockType';
9
10
  export { AreaAnchor, AnchorSide, DimensionMode, PositionType, DimensionsType } from './types/article/ItemArea';
10
11
  export { KeyframeType } from './types/keyframe/Keyframe';
11
12
  export type { Article } from './types/article/Article';
12
13
  export type { Section, SectionHeight } from './types/article/Section';
13
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, StructuredBlockAny } from './types/article/StructuredBlock';
14
16
  export type { RichTextBlock, RichTextEntity, RichTextStyle } from './types/article/RichText';
15
17
  export type { ItemArea } from './types/article/ItemArea';
16
18
  export type { ItemState, ItemStateParams, StateParams, ItemStatesMap } from './types/article/ItemState';
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KeyframeType = exports.DimensionsType = exports.PositionType = exports.DimensionMode = exports.AnchorSide = exports.AreaAnchor = exports.ArticleItemType = exports.VerticalAlign = exports.TextTransform = exports.TextDecoration = exports.TextAlign = exports.SectionHeightMode = exports.Rect = exports.ScrollPlaybackVideoManager = exports.measureFont = exports.getLayoutMediaQuery = exports.getLayoutStyles = exports.FontFaceGenerator = exports.CntrlClient = void 0;
3
+ exports.KeyframeType = exports.DimensionsType = exports.PositionType = exports.DimensionMode = exports.AnchorSide = exports.AreaAnchor = exports.StructuredBlockType = exports.ArticleItemType = exports.VerticalAlign = exports.TextTransform = exports.TextDecoration = exports.TextAlign = exports.SectionHeightMode = exports.Rect = exports.ScrollPlaybackVideoManager = exports.measureFont = exports.getLayoutMediaQuery = exports.getLayoutStyles = exports.FontFaceGenerator = exports.CntrlClient = void 0;
4
4
  // logic
5
5
  var Client_1 = require("./Client/Client");
6
6
  Object.defineProperty(exports, "CntrlClient", { enumerable: true, get: function () { return Client_1.Client; } });
@@ -24,6 +24,8 @@ Object.defineProperty(exports, "TextTransform", { enumerable: true, get: functio
24
24
  Object.defineProperty(exports, "VerticalAlign", { enumerable: true, get: function () { return RichText_1.VerticalAlign; } });
25
25
  var ArticleItemType_1 = require("./types/article/ArticleItemType");
26
26
  Object.defineProperty(exports, "ArticleItemType", { enumerable: true, get: function () { return ArticleItemType_1.ArticleItemType; } });
27
+ var StructuredBlockType_1 = require("./types/article/StructuredBlockType");
28
+ Object.defineProperty(exports, "StructuredBlockType", { enumerable: true, get: function () { return StructuredBlockType_1.StructuredBlockType; } });
27
29
  var ItemArea_1 = require("./types/article/ItemArea");
28
30
  Object.defineProperty(exports, "AreaAnchor", { enumerable: true, get: function () { return ItemArea_1.AreaAnchor; } });
29
31
  Object.defineProperty(exports, "AnchorSide", { enumerable: true, get: function () { return ItemArea_1.AnchorSide; } });
@@ -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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk",
3
- "version": "1.28.0-0",
3
+ "version": "1.28.0-2",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",