@cntrl-site/sdk 1.7.1 → 1.8.0

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.
@@ -51,8 +51,7 @@ exports.RichTextItemSchema = ItemBase_schema_1.ItemBaseSchema.extend({
51
51
  typeFace: zod_1.z.string(),
52
52
  fontStyle: zod_1.z.string(),
53
53
  fontWeight: zod_1.z.number(),
54
- fontVariant: zod_1.z.string(),
55
- textDecoration: zod_1.z.nativeEnum(RichText_1.TextDecoration),
54
+ fontVariant: zod_1.z.string()
56
55
  })),
57
56
  state: zod_1.z.object({
58
57
  hover: zod_1.z.record(ItemState_schema_1.RichTextHoverStateParamsSchema)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -1,7 +1,6 @@
1
1
  import { z, ZodType } from 'zod';
2
2
  import {
3
3
  CustomItem,
4
- GroupItem,
5
4
  ImageItem,
6
5
  ItemAny,
7
6
  RectangleItem,
@@ -1,5 +1,5 @@
1
1
  import { z, ZodType } from 'zod';
2
- import { RichTextBlock, TextAlign, TextDecoration, TextTransform, VerticalAlign } from '../../types/article/RichText';
2
+ import { RichTextBlock, TextAlign, TextTransform, VerticalAlign } from '../../types/article/RichText';
3
3
  import { ItemBaseSchema } from './ItemBase.schema';
4
4
  import { ArticleItemType } from '../../types/article/ArticleItemType';
5
5
  import { RichTextHoverStateParamsSchema } from './ItemState.schema';
@@ -58,8 +58,7 @@ export const RichTextItemSchema = ItemBaseSchema.extend({
58
58
  typeFace: z.string(),
59
59
  fontStyle: z.string(),
60
60
  fontWeight: z.number(),
61
- fontVariant: z.string(),
62
- textDecoration: z.nativeEnum(TextDecoration),
61
+ fontVariant: z.string()
63
62
  })
64
63
  ),
65
64
  state: z.object({
@@ -1,4 +1,4 @@
1
- import { RichTextBlock, RichTextStyle, TextAlign, TextDecoration, TextTransform, VerticalAlign } from './RichText';
1
+ import { RichTextBlock, RichTextStyle, TextAlign, TextTransform, VerticalAlign } from './RichText';
2
2
  import { ArticleItemType } from './ArticleItemType';
3
3
  import { ItemArea } from './ItemArea';
4
4
  import { ItemState } from './ItemState';
@@ -131,7 +131,6 @@ interface RichTextLayoutParams {
131
131
  typeFace: string;
132
132
  fontStyle: string;
133
133
  fontWeight: number;
134
- textDecoration: TextDecoration;
135
134
  fontVariant: string;
136
135
  }
137
136