@shotstack/schemas 1.9.1 → 1.9.3

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.
@@ -87,6 +87,65 @@
87
87
  "type": "null"
88
88
  }
89
89
  ]
90
+ }
91
+ },
92
+ "additionalProperties": false,
93
+ "required": [
94
+ "family",
95
+ "size",
96
+ "weight",
97
+ "color",
98
+ "opacity",
99
+ "background"
100
+ ]
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ },
107
+ "style": {
108
+ "anyOf": [
109
+ {
110
+ "type": "object",
111
+ "properties": {
112
+ "letterSpacing": {
113
+ "anyOf": [
114
+ {
115
+ "type": "number"
116
+ },
117
+ {
118
+ "type": "null"
119
+ }
120
+ ]
121
+ },
122
+ "lineHeight": {
123
+ "anyOf": [
124
+ {
125
+ "type": "number",
126
+ "minimum": 0,
127
+ "maximum": 10
128
+ },
129
+ {
130
+ "type": "null"
131
+ }
132
+ ]
133
+ },
134
+ "textTransform": {
135
+ "anyOf": [
136
+ {
137
+ "type": "string",
138
+ "enum": [
139
+ "none",
140
+ "uppercase",
141
+ "lowercase",
142
+ "capitalize"
143
+ ]
144
+ },
145
+ {
146
+ "type": "null"
147
+ }
148
+ ]
90
149
  },
91
150
  "textDecoration": {
92
151
  "anyOf": [
@@ -102,17 +161,25 @@
102
161
  "type": "null"
103
162
  }
104
163
  ]
164
+ },
165
+ "gradient": {
166
+ "anyOf": [
167
+ {
168
+ "$ref": "#/$defs/RichTextGradient"
169
+ },
170
+ {
171
+ "type": "null"
172
+ }
173
+ ]
105
174
  }
106
175
  },
107
176
  "additionalProperties": false,
108
177
  "required": [
109
- "family",
110
- "size",
111
- "weight",
112
- "color",
113
- "opacity",
114
- "background",
115
- "textDecoration"
178
+ "letterSpacing",
179
+ "lineHeight",
180
+ "textTransform",
181
+ "textDecoration",
182
+ "gradient"
116
183
  ]
117
184
  },
118
185
  {
@@ -120,16 +187,6 @@
120
187
  }
121
188
  ]
122
189
  },
123
- "style": {
124
- "anyOf": [
125
- {
126
- "$ref": "#/$defs/RichTextStyle"
127
- },
128
- {
129
- "type": "null"
130
- }
131
- ]
132
- },
133
190
  "stroke": {
134
191
  "anyOf": [
135
192
  {
@@ -231,94 +288,6 @@
231
288
  "wordAnimation"
232
289
  ],
233
290
  "$defs": {
234
- "RichTextStyle": {
235
- "properties": {
236
- "letterSpacing": {
237
- "anyOf": [
238
- {
239
- "type": "number"
240
- },
241
- {
242
- "type": "null"
243
- }
244
- ]
245
- },
246
- "wordSpacing": {
247
- "anyOf": [
248
- {
249
- "type": "number",
250
- "minimum": 0
251
- },
252
- {
253
- "type": "null"
254
- }
255
- ]
256
- },
257
- "lineHeight": {
258
- "anyOf": [
259
- {
260
- "type": "number",
261
- "minimum": 0,
262
- "maximum": 10
263
- },
264
- {
265
- "type": "null"
266
- }
267
- ]
268
- },
269
- "textTransform": {
270
- "anyOf": [
271
- {
272
- "type": "string",
273
- "enum": [
274
- "none",
275
- "uppercase",
276
- "lowercase",
277
- "capitalize"
278
- ]
279
- },
280
- {
281
- "type": "null"
282
- }
283
- ]
284
- },
285
- "textDecoration": {
286
- "anyOf": [
287
- {
288
- "type": "string",
289
- "enum": [
290
- "none",
291
- "underline",
292
- "line-through"
293
- ]
294
- },
295
- {
296
- "type": "null"
297
- }
298
- ]
299
- },
300
- "gradient": {
301
- "anyOf": [
302
- {
303
- "$ref": "#/$defs/RichTextGradient"
304
- },
305
- {
306
- "type": "null"
307
- }
308
- ]
309
- }
310
- },
311
- "additionalProperties": false,
312
- "type": "object",
313
- "required": [
314
- "letterSpacing",
315
- "wordSpacing",
316
- "lineHeight",
317
- "textTransform",
318
- "textDecoration",
319
- "gradient"
320
- ]
321
- },
322
291
  "RichTextGradient": {
323
292
  "properties": {
324
293
  "type": {
@@ -857,6 +826,94 @@
857
826
  "stroke"
858
827
  ]
859
828
  },
829
+ "RichTextStyle": {
830
+ "properties": {
831
+ "letterSpacing": {
832
+ "anyOf": [
833
+ {
834
+ "type": "number"
835
+ },
836
+ {
837
+ "type": "null"
838
+ }
839
+ ]
840
+ },
841
+ "wordSpacing": {
842
+ "anyOf": [
843
+ {
844
+ "type": "number",
845
+ "minimum": 0
846
+ },
847
+ {
848
+ "type": "null"
849
+ }
850
+ ]
851
+ },
852
+ "lineHeight": {
853
+ "anyOf": [
854
+ {
855
+ "type": "number",
856
+ "minimum": 0,
857
+ "maximum": 10
858
+ },
859
+ {
860
+ "type": "null"
861
+ }
862
+ ]
863
+ },
864
+ "textTransform": {
865
+ "anyOf": [
866
+ {
867
+ "type": "string",
868
+ "enum": [
869
+ "none",
870
+ "uppercase",
871
+ "lowercase",
872
+ "capitalize"
873
+ ]
874
+ },
875
+ {
876
+ "type": "null"
877
+ }
878
+ ]
879
+ },
880
+ "textDecoration": {
881
+ "anyOf": [
882
+ {
883
+ "type": "string",
884
+ "enum": [
885
+ "none",
886
+ "underline",
887
+ "line-through"
888
+ ]
889
+ },
890
+ {
891
+ "type": "null"
892
+ }
893
+ ]
894
+ },
895
+ "gradient": {
896
+ "anyOf": [
897
+ {
898
+ "$ref": "#/$defs/RichTextGradient"
899
+ },
900
+ {
901
+ "type": "null"
902
+ }
903
+ ]
904
+ }
905
+ },
906
+ "additionalProperties": false,
907
+ "type": "object",
908
+ "required": [
909
+ "letterSpacing",
910
+ "wordSpacing",
911
+ "lineHeight",
912
+ "textTransform",
913
+ "textDecoration",
914
+ "gradient"
915
+ ]
916
+ },
860
917
  "RichTextAlignment": {
861
918
  "properties": {
862
919
  "horizontal": {
@@ -2108,22 +2108,6 @@
2108
2108
  "type": "null"
2109
2109
  }
2110
2110
  ]
2111
- },
2112
- "textDecoration": {
2113
- "anyOf": [
2114
- {
2115
- "type": "string",
2116
- "description": "Text decoration to apply to all words.",
2117
- "enum": [
2118
- "none",
2119
- "underline",
2120
- "line-through"
2121
- ]
2122
- },
2123
- {
2124
- "type": "null"
2125
- }
2126
- ]
2127
2111
  }
2128
2112
  },
2129
2113
  "additionalProperties": false,
@@ -2133,8 +2117,7 @@
2133
2117
  "weight",
2134
2118
  "color",
2135
2119
  "opacity",
2136
- "background",
2137
- "textDecoration"
2120
+ "background"
2138
2121
  ]
2139
2122
  },
2140
2123
  {
@@ -2145,8 +2128,86 @@
2145
2128
  "style": {
2146
2129
  "anyOf": [
2147
2130
  {
2131
+ "type": "object",
2148
2132
  "description": "Text style properties including spacing, line height, and transformations.",
2149
- "$ref": "#/$defs/RichTextStyle"
2133
+ "properties": {
2134
+ "letterSpacing": {
2135
+ "anyOf": [
2136
+ {
2137
+ "type": "number",
2138
+ "description": "Additional spacing between letters in pixels. Can be negative for tighter spacing."
2139
+ },
2140
+ {
2141
+ "type": "null"
2142
+ }
2143
+ ]
2144
+ },
2145
+ "lineHeight": {
2146
+ "anyOf": [
2147
+ {
2148
+ "type": "number",
2149
+ "description": "The line height as a multiplier of the font size. Must be between 0 and 10.",
2150
+ "minimum": 0,
2151
+ "maximum": 10
2152
+ },
2153
+ {
2154
+ "type": "null"
2155
+ }
2156
+ ]
2157
+ },
2158
+ "textTransform": {
2159
+ "anyOf": [
2160
+ {
2161
+ "type": "string",
2162
+ "description": "Text transformation to apply.",
2163
+ "enum": [
2164
+ "none",
2165
+ "uppercase",
2166
+ "lowercase",
2167
+ "capitalize"
2168
+ ]
2169
+ },
2170
+ {
2171
+ "type": "null"
2172
+ }
2173
+ ]
2174
+ },
2175
+ "textDecoration": {
2176
+ "anyOf": [
2177
+ {
2178
+ "type": "string",
2179
+ "description": "Text decoration to apply.",
2180
+ "enum": [
2181
+ "none",
2182
+ "underline",
2183
+ "line-through"
2184
+ ]
2185
+ },
2186
+ {
2187
+ "type": "null"
2188
+ }
2189
+ ]
2190
+ },
2191
+ "gradient": {
2192
+ "anyOf": [
2193
+ {
2194
+ "description": "Gradient fill for text instead of solid color.",
2195
+ "$ref": "#/$defs/RichTextGradient"
2196
+ },
2197
+ {
2198
+ "type": "null"
2199
+ }
2200
+ ]
2201
+ }
2202
+ },
2203
+ "additionalProperties": false,
2204
+ "required": [
2205
+ "letterSpacing",
2206
+ "lineHeight",
2207
+ "textTransform",
2208
+ "textDecoration",
2209
+ "gradient"
2210
+ ]
2150
2211
  },
2151
2212
  {
2152
2213
  "type": "null"
@@ -1930,6 +1930,65 @@
1930
1930
  "type": "null"
1931
1931
  }
1932
1932
  ]
1933
+ }
1934
+ },
1935
+ "additionalProperties": false,
1936
+ "required": [
1937
+ "family",
1938
+ "size",
1939
+ "weight",
1940
+ "color",
1941
+ "opacity",
1942
+ "background"
1943
+ ]
1944
+ },
1945
+ {
1946
+ "type": "null"
1947
+ }
1948
+ ]
1949
+ },
1950
+ "style": {
1951
+ "anyOf": [
1952
+ {
1953
+ "type": "object",
1954
+ "properties": {
1955
+ "letterSpacing": {
1956
+ "anyOf": [
1957
+ {
1958
+ "type": "number"
1959
+ },
1960
+ {
1961
+ "type": "null"
1962
+ }
1963
+ ]
1964
+ },
1965
+ "lineHeight": {
1966
+ "anyOf": [
1967
+ {
1968
+ "type": "number",
1969
+ "minimum": 0,
1970
+ "maximum": 10
1971
+ },
1972
+ {
1973
+ "type": "null"
1974
+ }
1975
+ ]
1976
+ },
1977
+ "textTransform": {
1978
+ "anyOf": [
1979
+ {
1980
+ "type": "string",
1981
+ "enum": [
1982
+ "none",
1983
+ "uppercase",
1984
+ "lowercase",
1985
+ "capitalize"
1986
+ ]
1987
+ },
1988
+ {
1989
+ "type": "null"
1990
+ }
1991
+ ]
1933
1992
  },
1934
1993
  "textDecoration": {
1935
1994
  "anyOf": [
@@ -1945,17 +2004,25 @@
1945
2004
  "type": "null"
1946
2005
  }
1947
2006
  ]
2007
+ },
2008
+ "gradient": {
2009
+ "anyOf": [
2010
+ {
2011
+ "$ref": "#/$defs/RichTextGradient"
2012
+ },
2013
+ {
2014
+ "type": "null"
2015
+ }
2016
+ ]
1948
2017
  }
1949
2018
  },
1950
2019
  "additionalProperties": false,
1951
2020
  "required": [
1952
- "family",
1953
- "size",
1954
- "weight",
1955
- "color",
1956
- "opacity",
1957
- "background",
1958
- "textDecoration"
2021
+ "letterSpacing",
2022
+ "lineHeight",
2023
+ "textTransform",
2024
+ "textDecoration",
2025
+ "gradient"
1959
2026
  ]
1960
2027
  },
1961
2028
  {
@@ -1963,16 +2030,6 @@
1963
2030
  }
1964
2031
  ]
1965
2032
  },
1966
- "style": {
1967
- "anyOf": [
1968
- {
1969
- "$ref": "#/$defs/RichTextStyle"
1970
- },
1971
- {
1972
- "type": "null"
1973
- }
1974
- ]
1975
- },
1976
2033
  "stroke": {
1977
2034
  "anyOf": [
1978
2035
  {
@@ -1817,6 +1817,65 @@
1817
1817
  "type": "null"
1818
1818
  }
1819
1819
  ]
1820
+ }
1821
+ },
1822
+ "additionalProperties": false,
1823
+ "required": [
1824
+ "family",
1825
+ "size",
1826
+ "weight",
1827
+ "color",
1828
+ "opacity",
1829
+ "background"
1830
+ ]
1831
+ },
1832
+ {
1833
+ "type": "null"
1834
+ }
1835
+ ]
1836
+ },
1837
+ "style": {
1838
+ "anyOf": [
1839
+ {
1840
+ "type": "object",
1841
+ "properties": {
1842
+ "letterSpacing": {
1843
+ "anyOf": [
1844
+ {
1845
+ "type": "number"
1846
+ },
1847
+ {
1848
+ "type": "null"
1849
+ }
1850
+ ]
1851
+ },
1852
+ "lineHeight": {
1853
+ "anyOf": [
1854
+ {
1855
+ "type": "number",
1856
+ "minimum": 0,
1857
+ "maximum": 10
1858
+ },
1859
+ {
1860
+ "type": "null"
1861
+ }
1862
+ ]
1863
+ },
1864
+ "textTransform": {
1865
+ "anyOf": [
1866
+ {
1867
+ "type": "string",
1868
+ "enum": [
1869
+ "none",
1870
+ "uppercase",
1871
+ "lowercase",
1872
+ "capitalize"
1873
+ ]
1874
+ },
1875
+ {
1876
+ "type": "null"
1877
+ }
1878
+ ]
1820
1879
  },
1821
1880
  "textDecoration": {
1822
1881
  "anyOf": [
@@ -1832,17 +1891,25 @@
1832
1891
  "type": "null"
1833
1892
  }
1834
1893
  ]
1894
+ },
1895
+ "gradient": {
1896
+ "anyOf": [
1897
+ {
1898
+ "$ref": "#/$defs/RichTextGradient"
1899
+ },
1900
+ {
1901
+ "type": "null"
1902
+ }
1903
+ ]
1835
1904
  }
1836
1905
  },
1837
1906
  "additionalProperties": false,
1838
1907
  "required": [
1839
- "family",
1840
- "size",
1841
- "weight",
1842
- "color",
1843
- "opacity",
1844
- "background",
1845
- "textDecoration"
1908
+ "letterSpacing",
1909
+ "lineHeight",
1910
+ "textTransform",
1911
+ "textDecoration",
1912
+ "gradient"
1846
1913
  ]
1847
1914
  },
1848
1915
  {
@@ -1850,16 +1917,6 @@
1850
1917
  }
1851
1918
  ]
1852
1919
  },
1853
- "style": {
1854
- "anyOf": [
1855
- {
1856
- "$ref": "#/$defs/RichTextStyle"
1857
- },
1858
- {
1859
- "type": "null"
1860
- }
1861
- ]
1862
- },
1863
1920
  "stroke": {
1864
1921
  "anyOf": [
1865
1922
  {