@shotstack/schemas 1.9.0 → 1.9.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/dist/api.bundled.json +26 -25
- package/dist/json-schema/asset.json +13 -30
- package/dist/json-schema/clip.json +13 -30
- package/dist/json-schema/edit.json +13 -30
- package/dist/json-schema/rich-caption-active.json +14 -2
- package/dist/json-schema/rich-caption-asset.json +13 -30
- package/dist/json-schema/rich-caption-word-animation.json +0 -14
- package/dist/json-schema/schemas.json +15 -34
- package/dist/json-schema/timeline.json +13 -30
- package/dist/json-schema/track.json +13 -30
- package/dist/schema.d.ts +6 -19
- package/dist/zod/zod.gen.cjs +9 -15
- package/dist/zod/zod.gen.d.ts +316 -453
- package/dist/zod/zod.gen.js +9 -15
- package/dist/zod/zod.gen.ts +9 -9
- package/package.json +1 -1
|
@@ -1817,21 +1817,6 @@
|
|
|
1817
1817
|
"type": "null"
|
|
1818
1818
|
}
|
|
1819
1819
|
]
|
|
1820
|
-
},
|
|
1821
|
-
"textDecoration": {
|
|
1822
|
-
"anyOf": [
|
|
1823
|
-
{
|
|
1824
|
-
"type": "string",
|
|
1825
|
-
"enum": [
|
|
1826
|
-
"none",
|
|
1827
|
-
"underline",
|
|
1828
|
-
"line-through"
|
|
1829
|
-
]
|
|
1830
|
-
},
|
|
1831
|
-
{
|
|
1832
|
-
"type": "null"
|
|
1833
|
-
}
|
|
1834
|
-
]
|
|
1835
1820
|
}
|
|
1836
1821
|
},
|
|
1837
1822
|
"additionalProperties": false,
|
|
@@ -1841,8 +1826,7 @@
|
|
|
1841
1826
|
"weight",
|
|
1842
1827
|
"color",
|
|
1843
1828
|
"opacity",
|
|
1844
|
-
"background"
|
|
1845
|
-
"textDecoration"
|
|
1829
|
+
"background"
|
|
1846
1830
|
]
|
|
1847
1831
|
},
|
|
1848
1832
|
{
|
|
@@ -1979,6 +1963,12 @@
|
|
|
1979
1963
|
{
|
|
1980
1964
|
"$ref": "#/$defs/RichTextStroke"
|
|
1981
1965
|
},
|
|
1966
|
+
{
|
|
1967
|
+
"type": "string",
|
|
1968
|
+
"enum": [
|
|
1969
|
+
"none"
|
|
1970
|
+
]
|
|
1971
|
+
},
|
|
1982
1972
|
{
|
|
1983
1973
|
"type": "null"
|
|
1984
1974
|
}
|
|
@@ -1989,6 +1979,12 @@
|
|
|
1989
1979
|
{
|
|
1990
1980
|
"$ref": "#/$defs/RichTextShadow"
|
|
1991
1981
|
},
|
|
1982
|
+
{
|
|
1983
|
+
"type": "string",
|
|
1984
|
+
"enum": [
|
|
1985
|
+
"none"
|
|
1986
|
+
]
|
|
1987
|
+
},
|
|
1992
1988
|
{
|
|
1993
1989
|
"type": "null"
|
|
1994
1990
|
}
|
|
@@ -2093,18 +2089,6 @@
|
|
|
2093
2089
|
"none"
|
|
2094
2090
|
]
|
|
2095
2091
|
},
|
|
2096
|
-
"speed": {
|
|
2097
|
-
"anyOf": [
|
|
2098
|
-
{
|
|
2099
|
-
"type": "number",
|
|
2100
|
-
"minimum": 0.5,
|
|
2101
|
-
"maximum": 2
|
|
2102
|
-
},
|
|
2103
|
-
{
|
|
2104
|
-
"type": "null"
|
|
2105
|
-
}
|
|
2106
|
-
]
|
|
2107
|
-
},
|
|
2108
2092
|
"direction": {
|
|
2109
2093
|
"anyOf": [
|
|
2110
2094
|
{
|
|
@@ -2125,7 +2109,6 @@
|
|
|
2125
2109
|
"additionalProperties": false,
|
|
2126
2110
|
"required": [
|
|
2127
2111
|
"style",
|
|
2128
|
-
"speed",
|
|
2129
2112
|
"direction"
|
|
2130
2113
|
]
|
|
2131
2114
|
},
|
package/dist/schema.d.ts
CHANGED
|
@@ -1030,13 +1030,6 @@ export interface components {
|
|
|
1030
1030
|
* @example #000000
|
|
1031
1031
|
*/
|
|
1032
1032
|
background?: string;
|
|
1033
|
-
/**
|
|
1034
|
-
* @description Text decoration to apply to all words.
|
|
1035
|
-
* @default none
|
|
1036
|
-
* @example underline
|
|
1037
|
-
* @enum {string}
|
|
1038
|
-
*/
|
|
1039
|
-
textDecoration?: "none" | "underline" | "line-through";
|
|
1040
1033
|
};
|
|
1041
1034
|
/** @description Text style properties including spacing, line height, and transformations. */
|
|
1042
1035
|
style?: components["schemas"]["RichTextStyle"];
|
|
@@ -1088,10 +1081,10 @@ export interface components {
|
|
|
1088
1081
|
RichCaptionActive: {
|
|
1089
1082
|
/** @description Font properties for the active word. */
|
|
1090
1083
|
font?: components["schemas"]["RichCaptionActiveFont"];
|
|
1091
|
-
/** @description Stroke properties for the active word. */
|
|
1092
|
-
stroke?: components["schemas"]["RichTextStroke"];
|
|
1093
|
-
/** @description Shadow properties for the active word.
|
|
1094
|
-
shadow?: components["schemas"]["RichTextShadow"];
|
|
1084
|
+
/** @description Stroke properties for the active word. Set to "none" to explicitly remove the base stroke on the active word. */
|
|
1085
|
+
stroke?: components["schemas"]["RichTextStroke"] | "none";
|
|
1086
|
+
/** @description Shadow properties for the active word. Set to "none" to explicitly remove the base shadow on the active word. */
|
|
1087
|
+
shadow?: components["schemas"]["RichTextShadow"] | "none";
|
|
1095
1088
|
/**
|
|
1096
1089
|
* @description Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.
|
|
1097
1090
|
* @default 1
|
|
@@ -1112,17 +1105,11 @@ export interface components {
|
|
|
1112
1105
|
* <li>`typewriter` - Words appear one by one and stay visible</li>
|
|
1113
1106
|
* <li>`none` - No animation, all words visible immediately</li>
|
|
1114
1107
|
* </ul>
|
|
1115
|
-
* @default
|
|
1116
|
-
* @example
|
|
1108
|
+
* @default highlight
|
|
1109
|
+
* @example highlight
|
|
1117
1110
|
* @enum {string}
|
|
1118
1111
|
*/
|
|
1119
1112
|
style: "karaoke" | "highlight" | "pop" | "fade" | "slide" | "bounce" | "typewriter" | "none";
|
|
1120
|
-
/**
|
|
1121
|
-
* @description Animation speed multiplier. 1.0 is normal speed, 0.5 is half speed, 2.0 is double speed.
|
|
1122
|
-
* @default 1
|
|
1123
|
-
* @example 1
|
|
1124
|
-
*/
|
|
1125
|
-
speed?: number;
|
|
1126
1113
|
/**
|
|
1127
1114
|
* @description Direction for directional animations (slide). Only applicable when style is `slide`.
|
|
1128
1115
|
* @default up
|
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -1408,12 +1408,7 @@ exports.richcaptionpropertiesRichCaptionFontSchema = zod_1.z.object({
|
|
|
1408
1408
|
return v;
|
|
1409
1409
|
return Number(v);
|
|
1410
1410
|
} return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1411
|
-
background: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1412
|
-
textDecoration: zod_1.z.optional(zod_1.z.enum([
|
|
1413
|
-
'none',
|
|
1414
|
-
'underline',
|
|
1415
|
-
'line-through'
|
|
1416
|
-
]))
|
|
1411
|
+
background: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1417
1412
|
}).strict();
|
|
1418
1413
|
/**
|
|
1419
1414
|
* Word-level animation properties for caption effects.
|
|
@@ -1429,13 +1424,6 @@ exports.richcaptionpropertiesRichCaptionWordAnimationSchema = zod_1.z.object({
|
|
|
1429
1424
|
'typewriter',
|
|
1430
1425
|
'none'
|
|
1431
1426
|
]),
|
|
1432
|
-
speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1433
|
-
return undefined; if (Array.isArray(v))
|
|
1434
|
-
return v; if (typeof v === 'string') {
|
|
1435
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1436
|
-
return v;
|
|
1437
|
-
return Number(v);
|
|
1438
|
-
} return v; }), zod_1.z.number().gte(0.5).lte(2)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1439
1427
|
direction: zod_1.z.optional(zod_1.z.enum([
|
|
1440
1428
|
'left',
|
|
1441
1429
|
'right',
|
|
@@ -1654,8 +1642,14 @@ exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
|
|
|
1654
1642
|
*/
|
|
1655
1643
|
exports.richcaptionpropertiesRichCaptionActiveSchema = zod_1.z.object({
|
|
1656
1644
|
font: zod_1.z.optional(exports.richcaptionpropertiesRichCaptionActiveFontSchema),
|
|
1657
|
-
stroke: zod_1.z.optional(
|
|
1658
|
-
|
|
1645
|
+
stroke: zod_1.z.optional(zod_1.z.union([
|
|
1646
|
+
exports.richtextpropertiesRichTextStrokeSchema,
|
|
1647
|
+
zod_1.z.enum(['none'])
|
|
1648
|
+
])),
|
|
1649
|
+
shadow: zod_1.z.optional(zod_1.z.union([
|
|
1650
|
+
exports.richtextpropertiesRichTextShadowSchema,
|
|
1651
|
+
zod_1.z.enum(['none'])
|
|
1652
|
+
])),
|
|
1659
1653
|
scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1660
1654
|
return undefined; if (Array.isArray(v))
|
|
1661
1655
|
return v; if (typeof v === 'string') {
|