@shotstack/schemas 1.9.4 → 1.9.5

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",
@@ -2092,6 +2099,13 @@
2092
2099
  "default": 1,
2093
2100
  "example": 1
2094
2101
  },
2102
+ "size": {
2103
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
2104
+ "type": "number",
2105
+ "minimum": 1,
2106
+ "maximum": 500,
2107
+ "example": 120
2108
+ },
2095
2109
  "textDecoration": {
2096
2110
  "description": "Text decoration to apply to the active word.",
2097
2111
  "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
  ]
@@ -1875,6 +1888,18 @@
1875
1888
  }
1876
1889
  ]
1877
1890
  },
1891
+ "size": {
1892
+ "anyOf": [
1893
+ {
1894
+ "type": "number",
1895
+ "minimum": 1,
1896
+ "maximum": 500
1897
+ },
1898
+ {
1899
+ "type": "null"
1900
+ }
1901
+ ]
1902
+ },
1878
1903
  "textDecoration": {
1879
1904
  "anyOf": [
1880
1905
  {
@@ -1896,6 +1921,7 @@
1896
1921
  "color",
1897
1922
  "background",
1898
1923
  "opacity",
1924
+ "size",
1899
1925
  "textDecoration"
1900
1926
  ]
1901
1927
  },
@@ -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
  ]
@@ -2107,6 +2120,18 @@
2107
2120
  }
2108
2121
  ]
2109
2122
  },
2123
+ "size": {
2124
+ "anyOf": [
2125
+ {
2126
+ "type": "number",
2127
+ "minimum": 1,
2128
+ "maximum": 500
2129
+ },
2130
+ {
2131
+ "type": "null"
2132
+ }
2133
+ ]
2134
+ },
2110
2135
  "textDecoration": {
2111
2136
  "anyOf": [
2112
2137
  {
@@ -2128,6 +2153,7 @@
2128
2153
  "color",
2129
2154
  "background",
2130
2155
  "opacity",
2156
+ "size",
2131
2157
  "textDecoration"
2132
2158
  ]
2133
2159
  },
@@ -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
  ]
@@ -2291,6 +2304,18 @@
2291
2304
  }
2292
2305
  ]
2293
2306
  },
2307
+ "size": {
2308
+ "anyOf": [
2309
+ {
2310
+ "type": "number",
2311
+ "minimum": 1,
2312
+ "maximum": 500
2313
+ },
2314
+ {
2315
+ "type": "null"
2316
+ }
2317
+ ]
2318
+ },
2294
2319
  "textDecoration": {
2295
2320
  "anyOf": [
2296
2321
  {
@@ -2312,6 +2337,7 @@
2312
2337
  "color",
2313
2338
  "background",
2314
2339
  "opacity",
2340
+ "size",
2315
2341
  "textDecoration"
2316
2342
  ]
2317
2343
  },
@@ -43,6 +43,19 @@
43
43
  }
44
44
  ]
45
45
  },
46
+ "size": {
47
+ "anyOf": [
48
+ {
49
+ "type": "number",
50
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
51
+ "minimum": 1,
52
+ "maximum": 500
53
+ },
54
+ {
55
+ "type": "null"
56
+ }
57
+ ]
58
+ },
46
59
  "textDecoration": {
47
60
  "anyOf": [
48
61
  {
@@ -65,6 +78,7 @@
65
78
  "color",
66
79
  "background",
67
80
  "opacity",
81
+ "size",
68
82
  "textDecoration"
69
83
  ]
70
84
  }
@@ -114,6 +114,19 @@
114
114
  }
115
115
  ]
116
116
  },
117
+ "size": {
118
+ "anyOf": [
119
+ {
120
+ "type": "number",
121
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
122
+ "minimum": 1,
123
+ "maximum": 500
124
+ },
125
+ {
126
+ "type": "null"
127
+ }
128
+ ]
129
+ },
117
130
  "textDecoration": {
118
131
  "anyOf": [
119
132
  {
@@ -136,6 +149,7 @@
136
149
  "color",
137
150
  "background",
138
151
  "opacity",
152
+ "size",
139
153
  "textDecoration"
140
154
  ]
141
155
  },
@@ -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
  ]
@@ -1123,6 +1136,18 @@
1123
1136
  }
1124
1137
  ]
1125
1138
  },
1139
+ "size": {
1140
+ "anyOf": [
1141
+ {
1142
+ "type": "number",
1143
+ "minimum": 1,
1144
+ "maximum": 500
1145
+ },
1146
+ {
1147
+ "type": "null"
1148
+ }
1149
+ ]
1150
+ },
1126
1151
  "textDecoration": {
1127
1152
  "anyOf": [
1128
1153
  {
@@ -1144,6 +1169,7 @@
1144
1169
  "color",
1145
1170
  "background",
1146
1171
  "opacity",
1172
+ "size",
1147
1173
  "textDecoration"
1148
1174
  ]
1149
1175
  },
@@ -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
  ]
@@ -2437,6 +2451,19 @@
2437
2451
  }
2438
2452
  ]
2439
2453
  },
2454
+ "size": {
2455
+ "anyOf": [
2456
+ {
2457
+ "type": "number",
2458
+ "description": "The font size of the active word in pixels. Overrides the scale property when set.",
2459
+ "minimum": 1,
2460
+ "maximum": 500
2461
+ },
2462
+ {
2463
+ "type": "null"
2464
+ }
2465
+ ]
2466
+ },
2440
2467
  "textDecoration": {
2441
2468
  "anyOf": [
2442
2469
  {
@@ -2459,6 +2486,7 @@
2459
2486
  "color",
2460
2487
  "background",
2461
2488
  "opacity",
2489
+ "size",
2462
2490
  "textDecoration"
2463
2491
  ]
2464
2492
  },
@@ -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
  ]
@@ -2235,6 +2248,18 @@
2235
2248
  }
2236
2249
  ]
2237
2250
  },
2251
+ "size": {
2252
+ "anyOf": [
2253
+ {
2254
+ "type": "number",
2255
+ "minimum": 1,
2256
+ "maximum": 500
2257
+ },
2258
+ {
2259
+ "type": "null"
2260
+ }
2261
+ ]
2262
+ },
2238
2263
  "textDecoration": {
2239
2264
  "anyOf": [
2240
2265
  {
@@ -2256,6 +2281,7 @@
2256
2281
  "color",
2257
2282
  "background",
2258
2283
  "opacity",
2284
+ "size",
2259
2285
  "textDecoration"
2260
2286
  ]
2261
2287
  },
@@ -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
  ]
@@ -2122,6 +2135,18 @@
2122
2135
  }
2123
2136
  ]
2124
2137
  },
2138
+ "size": {
2139
+ "anyOf": [
2140
+ {
2141
+ "type": "number",
2142
+ "minimum": 1,
2143
+ "maximum": 500
2144
+ },
2145
+ {
2146
+ "type": "null"
2147
+ }
2148
+ ]
2149
+ },
2125
2150
  "textDecoration": {
2126
2151
  "anyOf": [
2127
2152
  {
@@ -2143,6 +2168,7 @@
2143
2168
  "color",
2144
2169
  "background",
2145
2170
  "opacity",
2171
+ "size",
2146
2172
  "textDecoration"
2147
2173
  ]
2148
2174
  },
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
@@ -1098,6 +1103,11 @@ export interface components {
1098
1103
  * @example 1
1099
1104
  */
1100
1105
  opacity?: number;
1106
+ /**
1107
+ * @description The font size of the active word in pixels. Overrides the scale property when set.
1108
+ * @example 120
1109
+ */
1110
+ size?: number;
1101
1111
  /**
1102
1112
  * @description Text decoration to apply to the active word.
1103
1113
  * @default none
@@ -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',