@shotstack/schemas 1.9.4 → 1.9.6

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.
@@ -1999,6 +1999,13 @@
1999
1999
  "default": "none",
2000
2000
  "example": "uppercase"
2001
2001
  },
2002
+ "size": {
2003
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
2004
+ "type": "number",
2005
+ "minimum": 1,
2006
+ "maximum": 500,
2007
+ "example": 120
2008
+ },
2002
2009
  "textDecoration": {
2003
2010
  "description": "Text decoration to apply.",
2004
2011
  "type": "string",
@@ -2075,8 +2082,7 @@
2075
2082
  "description": "The active word color using hexadecimal color notation.",
2076
2083
  "type": "string",
2077
2084
  "pattern": "^#[A-Fa-f0-9]{6}$",
2078
- "default": "#ffff00",
2079
- "example": "#ffff00"
2085
+ "example": "#C96741"
2080
2086
  },
2081
2087
  "background": {
2082
2088
  "description": "The background color behind the active word using hexadecimal color notation.",
@@ -2092,6 +2098,13 @@
2092
2098
  "default": 1,
2093
2099
  "example": 1
2094
2100
  },
2101
+ "size": {
2102
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
2103
+ "type": "number",
2104
+ "minimum": 1,
2105
+ "maximum": 500,
2106
+ "example": 120
2107
+ },
2095
2108
  "textDecoration": {
2096
2109
  "description": "Text decoration to apply to the active word.",
2097
2110
  "type": "string",
@@ -1630,6 +1630,18 @@
1630
1630
  }
1631
1631
  ]
1632
1632
  },
1633
+ "size": {
1634
+ "anyOf": [
1635
+ {
1636
+ "type": "number",
1637
+ "minimum": 1,
1638
+ "maximum": 500
1639
+ },
1640
+ {
1641
+ "type": "null"
1642
+ }
1643
+ ]
1644
+ },
1633
1645
  "textDecoration": {
1634
1646
  "anyOf": [
1635
1647
  {
@@ -1661,6 +1673,7 @@
1661
1673
  "letterSpacing",
1662
1674
  "lineHeight",
1663
1675
  "textTransform",
1676
+ "size",
1664
1677
  "textDecoration",
1665
1678
  "gradient"
1666
1679
  ]
@@ -1843,10 +1856,7 @@
1843
1856
  "color": {
1844
1857
  "anyOf": [
1845
1858
  {
1846
- "type": "string",
1847
- "enum": [
1848
- "#ffff00"
1849
- ]
1859
+ "type": "string"
1850
1860
  },
1851
1861
  {
1852
1862
  "type": "null"
@@ -1875,6 +1885,18 @@
1875
1885
  }
1876
1886
  ]
1877
1887
  },
1888
+ "size": {
1889
+ "anyOf": [
1890
+ {
1891
+ "type": "number",
1892
+ "minimum": 1,
1893
+ "maximum": 500
1894
+ },
1895
+ {
1896
+ "type": "null"
1897
+ }
1898
+ ]
1899
+ },
1878
1900
  "textDecoration": {
1879
1901
  "anyOf": [
1880
1902
  {
@@ -1896,6 +1918,7 @@
1896
1918
  "color",
1897
1919
  "background",
1898
1920
  "opacity",
1921
+ "size",
1899
1922
  "textDecoration"
1900
1923
  ]
1901
1924
  },
@@ -1862,6 +1862,18 @@
1862
1862
  }
1863
1863
  ]
1864
1864
  },
1865
+ "size": {
1866
+ "anyOf": [
1867
+ {
1868
+ "type": "number",
1869
+ "minimum": 1,
1870
+ "maximum": 500
1871
+ },
1872
+ {
1873
+ "type": "null"
1874
+ }
1875
+ ]
1876
+ },
1865
1877
  "textDecoration": {
1866
1878
  "anyOf": [
1867
1879
  {
@@ -1893,6 +1905,7 @@
1893
1905
  "letterSpacing",
1894
1906
  "lineHeight",
1895
1907
  "textTransform",
1908
+ "size",
1896
1909
  "textDecoration",
1897
1910
  "gradient"
1898
1911
  ]
@@ -2075,10 +2088,7 @@
2075
2088
  "color": {
2076
2089
  "anyOf": [
2077
2090
  {
2078
- "type": "string",
2079
- "enum": [
2080
- "#ffff00"
2081
- ]
2091
+ "type": "string"
2082
2092
  },
2083
2093
  {
2084
2094
  "type": "null"
@@ -2107,6 +2117,18 @@
2107
2117
  }
2108
2118
  ]
2109
2119
  },
2120
+ "size": {
2121
+ "anyOf": [
2122
+ {
2123
+ "type": "number",
2124
+ "minimum": 1,
2125
+ "maximum": 500
2126
+ },
2127
+ {
2128
+ "type": "null"
2129
+ }
2130
+ ]
2131
+ },
2110
2132
  "textDecoration": {
2111
2133
  "anyOf": [
2112
2134
  {
@@ -2128,6 +2150,7 @@
2128
2150
  "color",
2129
2151
  "background",
2130
2152
  "opacity",
2153
+ "size",
2131
2154
  "textDecoration"
2132
2155
  ]
2133
2156
  },
@@ -2046,6 +2046,18 @@
2046
2046
  }
2047
2047
  ]
2048
2048
  },
2049
+ "size": {
2050
+ "anyOf": [
2051
+ {
2052
+ "type": "number",
2053
+ "minimum": 1,
2054
+ "maximum": 500
2055
+ },
2056
+ {
2057
+ "type": "null"
2058
+ }
2059
+ ]
2060
+ },
2049
2061
  "textDecoration": {
2050
2062
  "anyOf": [
2051
2063
  {
@@ -2077,6 +2089,7 @@
2077
2089
  "letterSpacing",
2078
2090
  "lineHeight",
2079
2091
  "textTransform",
2092
+ "size",
2080
2093
  "textDecoration",
2081
2094
  "gradient"
2082
2095
  ]
@@ -2259,10 +2272,7 @@
2259
2272
  "color": {
2260
2273
  "anyOf": [
2261
2274
  {
2262
- "type": "string",
2263
- "enum": [
2264
- "#ffff00"
2265
- ]
2275
+ "type": "string"
2266
2276
  },
2267
2277
  {
2268
2278
  "type": "null"
@@ -2291,6 +2301,18 @@
2291
2301
  }
2292
2302
  ]
2293
2303
  },
2304
+ "size": {
2305
+ "anyOf": [
2306
+ {
2307
+ "type": "number",
2308
+ "minimum": 1,
2309
+ "maximum": 500
2310
+ },
2311
+ {
2312
+ "type": "null"
2313
+ }
2314
+ ]
2315
+ },
2294
2316
  "textDecoration": {
2295
2317
  "anyOf": [
2296
2318
  {
@@ -2312,6 +2334,7 @@
2312
2334
  "color",
2313
2335
  "background",
2314
2336
  "opacity",
2337
+ "size",
2315
2338
  "textDecoration"
2316
2339
  ]
2317
2340
  },
@@ -9,10 +9,7 @@
9
9
  "anyOf": [
10
10
  {
11
11
  "type": "string",
12
- "description": "The active word color using hexadecimal color notation.",
13
- "enum": [
14
- "#ffff00"
15
- ]
12
+ "description": "The active word color using hexadecimal color notation."
16
13
  },
17
14
  {
18
15
  "type": "null"
@@ -43,6 +40,19 @@
43
40
  }
44
41
  ]
45
42
  },
43
+ "size": {
44
+ "anyOf": [
45
+ {
46
+ "type": "number",
47
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
48
+ "minimum": 1,
49
+ "maximum": 500
50
+ },
51
+ {
52
+ "type": "null"
53
+ }
54
+ ]
55
+ },
46
56
  "textDecoration": {
47
57
  "anyOf": [
48
58
  {
@@ -65,6 +75,7 @@
65
75
  "color",
66
76
  "background",
67
77
  "opacity",
78
+ "size",
68
79
  "textDecoration"
69
80
  ]
70
81
  }
@@ -80,10 +80,7 @@
80
80
  "anyOf": [
81
81
  {
82
82
  "type": "string",
83
- "description": "The active word color using hexadecimal color notation.",
84
- "enum": [
85
- "#ffff00"
86
- ]
83
+ "description": "The active word color using hexadecimal color notation."
87
84
  },
88
85
  {
89
86
  "type": "null"
@@ -114,6 +111,19 @@
114
111
  }
115
112
  ]
116
113
  },
114
+ "size": {
115
+ "anyOf": [
116
+ {
117
+ "type": "number",
118
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
119
+ "minimum": 1,
120
+ "maximum": 500
121
+ },
122
+ {
123
+ "type": "null"
124
+ }
125
+ ]
126
+ },
117
127
  "textDecoration": {
118
128
  "anyOf": [
119
129
  {
@@ -136,6 +146,7 @@
136
146
  "color",
137
147
  "background",
138
148
  "opacity",
149
+ "size",
139
150
  "textDecoration"
140
151
  ]
141
152
  },
@@ -147,6 +147,18 @@
147
147
  }
148
148
  ]
149
149
  },
150
+ "size": {
151
+ "anyOf": [
152
+ {
153
+ "type": "number",
154
+ "minimum": 1,
155
+ "maximum": 500
156
+ },
157
+ {
158
+ "type": "null"
159
+ }
160
+ ]
161
+ },
150
162
  "textDecoration": {
151
163
  "anyOf": [
152
164
  {
@@ -178,6 +190,7 @@
178
190
  "letterSpacing",
179
191
  "lineHeight",
180
192
  "textTransform",
193
+ "size",
181
194
  "textDecoration",
182
195
  "gradient"
183
196
  ]
@@ -1091,10 +1104,7 @@
1091
1104
  "color": {
1092
1105
  "anyOf": [
1093
1106
  {
1094
- "type": "string",
1095
- "enum": [
1096
- "#ffff00"
1097
- ]
1107
+ "type": "string"
1098
1108
  },
1099
1109
  {
1100
1110
  "type": "null"
@@ -1123,6 +1133,18 @@
1123
1133
  }
1124
1134
  ]
1125
1135
  },
1136
+ "size": {
1137
+ "anyOf": [
1138
+ {
1139
+ "type": "number",
1140
+ "minimum": 1,
1141
+ "maximum": 500
1142
+ },
1143
+ {
1144
+ "type": "null"
1145
+ }
1146
+ ]
1147
+ },
1126
1148
  "textDecoration": {
1127
1149
  "anyOf": [
1128
1150
  {
@@ -1144,6 +1166,7 @@
1144
1166
  "color",
1145
1167
  "background",
1146
1168
  "opacity",
1169
+ "size",
1147
1170
  "textDecoration"
1148
1171
  ]
1149
1172
  },
@@ -2172,6 +2172,19 @@
2172
2172
  }
2173
2173
  ]
2174
2174
  },
2175
+ "size": {
2176
+ "anyOf": [
2177
+ {
2178
+ "type": "number",
2179
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
2180
+ "minimum": 1,
2181
+ "maximum": 500
2182
+ },
2183
+ {
2184
+ "type": "null"
2185
+ }
2186
+ ]
2187
+ },
2175
2188
  "textDecoration": {
2176
2189
  "anyOf": [
2177
2190
  {
@@ -2205,6 +2218,7 @@
2205
2218
  "letterSpacing",
2206
2219
  "lineHeight",
2207
2220
  "textTransform",
2221
+ "size",
2208
2222
  "textDecoration",
2209
2223
  "gradient"
2210
2224
  ]
@@ -2403,10 +2417,7 @@
2403
2417
  "anyOf": [
2404
2418
  {
2405
2419
  "type": "string",
2406
- "description": "The active word color using hexadecimal color notation.",
2407
- "enum": [
2408
- "#ffff00"
2409
- ]
2420
+ "description": "The active word color using hexadecimal color notation."
2410
2421
  },
2411
2422
  {
2412
2423
  "type": "null"
@@ -2437,6 +2448,19 @@
2437
2448
  }
2438
2449
  ]
2439
2450
  },
2451
+ "size": {
2452
+ "anyOf": [
2453
+ {
2454
+ "type": "number",
2455
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
2456
+ "minimum": 1,
2457
+ "maximum": 500
2458
+ },
2459
+ {
2460
+ "type": "null"
2461
+ }
2462
+ ]
2463
+ },
2440
2464
  "textDecoration": {
2441
2465
  "anyOf": [
2442
2466
  {
@@ -2459,6 +2483,7 @@
2459
2483
  "color",
2460
2484
  "background",
2461
2485
  "opacity",
2486
+ "size",
2462
2487
  "textDecoration"
2463
2488
  ]
2464
2489
  },
@@ -1990,6 +1990,18 @@
1990
1990
  }
1991
1991
  ]
1992
1992
  },
1993
+ "size": {
1994
+ "anyOf": [
1995
+ {
1996
+ "type": "number",
1997
+ "minimum": 1,
1998
+ "maximum": 500
1999
+ },
2000
+ {
2001
+ "type": "null"
2002
+ }
2003
+ ]
2004
+ },
1993
2005
  "textDecoration": {
1994
2006
  "anyOf": [
1995
2007
  {
@@ -2021,6 +2033,7 @@
2021
2033
  "letterSpacing",
2022
2034
  "lineHeight",
2023
2035
  "textTransform",
2036
+ "size",
2024
2037
  "textDecoration",
2025
2038
  "gradient"
2026
2039
  ]
@@ -2203,10 +2216,7 @@
2203
2216
  "color": {
2204
2217
  "anyOf": [
2205
2218
  {
2206
- "type": "string",
2207
- "enum": [
2208
- "#ffff00"
2209
- ]
2219
+ "type": "string"
2210
2220
  },
2211
2221
  {
2212
2222
  "type": "null"
@@ -2235,6 +2245,18 @@
2235
2245
  }
2236
2246
  ]
2237
2247
  },
2248
+ "size": {
2249
+ "anyOf": [
2250
+ {
2251
+ "type": "number",
2252
+ "minimum": 1,
2253
+ "maximum": 500
2254
+ },
2255
+ {
2256
+ "type": "null"
2257
+ }
2258
+ ]
2259
+ },
2238
2260
  "textDecoration": {
2239
2261
  "anyOf": [
2240
2262
  {
@@ -2256,6 +2278,7 @@
2256
2278
  "color",
2257
2279
  "background",
2258
2280
  "opacity",
2281
+ "size",
2259
2282
  "textDecoration"
2260
2283
  ]
2261
2284
  },
@@ -1877,6 +1877,18 @@
1877
1877
  }
1878
1878
  ]
1879
1879
  },
1880
+ "size": {
1881
+ "anyOf": [
1882
+ {
1883
+ "type": "number",
1884
+ "minimum": 1,
1885
+ "maximum": 500
1886
+ },
1887
+ {
1888
+ "type": "null"
1889
+ }
1890
+ ]
1891
+ },
1880
1892
  "textDecoration": {
1881
1893
  "anyOf": [
1882
1894
  {
@@ -1908,6 +1920,7 @@
1908
1920
  "letterSpacing",
1909
1921
  "lineHeight",
1910
1922
  "textTransform",
1923
+ "size",
1911
1924
  "textDecoration",
1912
1925
  "gradient"
1913
1926
  ]
@@ -2090,10 +2103,7 @@
2090
2103
  "color": {
2091
2104
  "anyOf": [
2092
2105
  {
2093
- "type": "string",
2094
- "enum": [
2095
- "#ffff00"
2096
- ]
2106
+ "type": "string"
2097
2107
  },
2098
2108
  {
2099
2109
  "type": "null"
@@ -2122,6 +2132,18 @@
2122
2132
  }
2123
2133
  ]
2124
2134
  },
2135
+ "size": {
2136
+ "anyOf": [
2137
+ {
2138
+ "type": "number",
2139
+ "minimum": 1,
2140
+ "maximum": 500
2141
+ },
2142
+ {
2143
+ "type": "null"
2144
+ }
2145
+ ]
2146
+ },
2125
2147
  "textDecoration": {
2126
2148
  "anyOf": [
2127
2149
  {
@@ -2143,6 +2165,7 @@
2143
2165
  "color",
2144
2166
  "background",
2145
2167
  "opacity",
2168
+ "size",
2146
2169
  "textDecoration"
2147
2170
  ]
2148
2171
  },
package/dist/schema.d.ts CHANGED
@@ -1052,6 +1052,11 @@ export interface components {
1052
1052
  * @enum {string}
1053
1053
  */
1054
1054
  textTransform?: "none" | "uppercase" | "lowercase" | "capitalize";
1055
+ /**
1056
+ * @description The font size of the active word in pixels. Overrides the scale property when set.
1057
+ * @example 120
1058
+ */
1059
+ size?: number;
1055
1060
  /**
1056
1061
  * @description Text decoration to apply.
1057
1062
  * @default none
@@ -1083,8 +1088,7 @@ export interface components {
1083
1088
  RichCaptionActiveFont: {
1084
1089
  /**
1085
1090
  * @description The active word color using hexadecimal color notation.
1086
- * @default #ffff00
1087
- * @example #ffff00
1091
+ * @example #C96741
1088
1092
  */
1089
1093
  color?: string;
1090
1094
  /**
@@ -1098,6 +1102,11 @@ export interface components {
1098
1102
  * @example 1
1099
1103
  */
1100
1104
  opacity?: number;
1105
+ /**
1106
+ * @description The font size of the active word in pixels. Overrides the scale property when set.
1107
+ * @example 120
1108
+ */
1109
+ size?: number;
1101
1110
  /**
1102
1111
  * @description Text decoration to apply to the active word.
1103
1112
  * @default none
@@ -1371,7 +1371,7 @@ exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
1371
1371
  * Font properties for the active/highlighted word.
1372
1372
  */
1373
1373
  exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
1374
- color: 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*\}\}$/)])).default('#ffff00'),
1374
+ color: 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*\}\}$/)])),
1375
1375
  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*\}\}$/)])),
1376
1376
  opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1377
1377
  return undefined; if (Array.isArray(v))
@@ -1380,6 +1380,13 @@ exports.richcaptionpropertiesRichCaptionActiveFontSchema = zod_1.z.object({
1380
1380
  return v;
1381
1381
  return Number(v);
1382
1382
  } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1383
+ size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1384
+ return undefined; if (Array.isArray(v))
1385
+ return v; if (typeof v === 'string') {
1386
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1387
+ return v;
1388
+ return Number(v);
1389
+ } return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1383
1390
  textDecoration: zod_1.z.optional(zod_1.z.enum([
1384
1391
  'none',
1385
1392
  'underline',
@@ -1572,6 +1579,13 @@ exports.richcaptionpropertiesRichCaptionStyleSchema = zod_1.z.object({
1572
1579
  'lowercase',
1573
1580
  'capitalize'
1574
1581
  ])),
1582
+ size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1583
+ return undefined; if (Array.isArray(v))
1584
+ return v; if (typeof v === 'string') {
1585
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1586
+ return v;
1587
+ return Number(v);
1588
+ } return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1575
1589
  textDecoration: zod_1.z.optional(zod_1.z.enum([
1576
1590
  'none',
1577
1591
  'underline',