@shotstack/schemas 1.9.2 → 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.
@@ -1972,7 +1972,51 @@
1972
1972
  },
1973
1973
  "style": {
1974
1974
  "description": "Text style properties including spacing, line height, and transformations.",
1975
- "$ref": "#/components/schemas/RichTextStyle"
1975
+ "properties": {
1976
+ "letterSpacing": {
1977
+ "description": "Additional spacing between letters in pixels. Can be negative for tighter spacing.",
1978
+ "type": "number",
1979
+ "default": 0,
1980
+ "example": 2
1981
+ },
1982
+ "lineHeight": {
1983
+ "description": "The line height as a multiplier of the font size. Must be between 0 and 10.",
1984
+ "type": "number",
1985
+ "minimum": 0,
1986
+ "maximum": 10,
1987
+ "default": 1.2,
1988
+ "example": 1.5
1989
+ },
1990
+ "textTransform": {
1991
+ "description": "Text transformation to apply.",
1992
+ "type": "string",
1993
+ "enum": [
1994
+ "none",
1995
+ "uppercase",
1996
+ "lowercase",
1997
+ "capitalize"
1998
+ ],
1999
+ "default": "none",
2000
+ "example": "uppercase"
2001
+ },
2002
+ "textDecoration": {
2003
+ "description": "Text decoration to apply.",
2004
+ "type": "string",
2005
+ "enum": [
2006
+ "none",
2007
+ "underline",
2008
+ "line-through"
2009
+ ],
2010
+ "default": "none",
2011
+ "example": "underline"
2012
+ },
2013
+ "gradient": {
2014
+ "description": "Gradient fill for text instead of solid color.",
2015
+ "$ref": "#/components/schemas/RichTextGradient"
2016
+ }
2017
+ },
2018
+ "additionalProperties": false,
2019
+ "type": "object"
1976
2020
  },
1977
2021
  "stroke": {
1978
2022
  "description": "Text stroke (outline) properties for inactive words.",
@@ -1590,7 +1590,80 @@
1590
1590
  "style": {
1591
1591
  "anyOf": [
1592
1592
  {
1593
- "$ref": "#/$defs/RichTextStyle"
1593
+ "type": "object",
1594
+ "properties": {
1595
+ "letterSpacing": {
1596
+ "anyOf": [
1597
+ {
1598
+ "type": "number"
1599
+ },
1600
+ {
1601
+ "type": "null"
1602
+ }
1603
+ ]
1604
+ },
1605
+ "lineHeight": {
1606
+ "anyOf": [
1607
+ {
1608
+ "type": "number",
1609
+ "minimum": 0,
1610
+ "maximum": 10
1611
+ },
1612
+ {
1613
+ "type": "null"
1614
+ }
1615
+ ]
1616
+ },
1617
+ "textTransform": {
1618
+ "anyOf": [
1619
+ {
1620
+ "type": "string",
1621
+ "enum": [
1622
+ "none",
1623
+ "uppercase",
1624
+ "lowercase",
1625
+ "capitalize"
1626
+ ]
1627
+ },
1628
+ {
1629
+ "type": "null"
1630
+ }
1631
+ ]
1632
+ },
1633
+ "textDecoration": {
1634
+ "anyOf": [
1635
+ {
1636
+ "type": "string",
1637
+ "enum": [
1638
+ "none",
1639
+ "underline",
1640
+ "line-through"
1641
+ ]
1642
+ },
1643
+ {
1644
+ "type": "null"
1645
+ }
1646
+ ]
1647
+ },
1648
+ "gradient": {
1649
+ "anyOf": [
1650
+ {
1651
+ "$ref": "#/$defs/RichTextGradient"
1652
+ },
1653
+ {
1654
+ "type": "null"
1655
+ }
1656
+ ]
1657
+ }
1658
+ },
1659
+ "additionalProperties": false,
1660
+ "required": [
1661
+ "letterSpacing",
1662
+ "lineHeight",
1663
+ "textTransform",
1664
+ "textDecoration",
1665
+ "gradient"
1666
+ ]
1594
1667
  },
1595
1668
  {
1596
1669
  "type": "null"
@@ -1822,7 +1822,80 @@
1822
1822
  "style": {
1823
1823
  "anyOf": [
1824
1824
  {
1825
- "$ref": "#/$defs/RichTextStyle"
1825
+ "type": "object",
1826
+ "properties": {
1827
+ "letterSpacing": {
1828
+ "anyOf": [
1829
+ {
1830
+ "type": "number"
1831
+ },
1832
+ {
1833
+ "type": "null"
1834
+ }
1835
+ ]
1836
+ },
1837
+ "lineHeight": {
1838
+ "anyOf": [
1839
+ {
1840
+ "type": "number",
1841
+ "minimum": 0,
1842
+ "maximum": 10
1843
+ },
1844
+ {
1845
+ "type": "null"
1846
+ }
1847
+ ]
1848
+ },
1849
+ "textTransform": {
1850
+ "anyOf": [
1851
+ {
1852
+ "type": "string",
1853
+ "enum": [
1854
+ "none",
1855
+ "uppercase",
1856
+ "lowercase",
1857
+ "capitalize"
1858
+ ]
1859
+ },
1860
+ {
1861
+ "type": "null"
1862
+ }
1863
+ ]
1864
+ },
1865
+ "textDecoration": {
1866
+ "anyOf": [
1867
+ {
1868
+ "type": "string",
1869
+ "enum": [
1870
+ "none",
1871
+ "underline",
1872
+ "line-through"
1873
+ ]
1874
+ },
1875
+ {
1876
+ "type": "null"
1877
+ }
1878
+ ]
1879
+ },
1880
+ "gradient": {
1881
+ "anyOf": [
1882
+ {
1883
+ "$ref": "#/$defs/RichTextGradient"
1884
+ },
1885
+ {
1886
+ "type": "null"
1887
+ }
1888
+ ]
1889
+ }
1890
+ },
1891
+ "additionalProperties": false,
1892
+ "required": [
1893
+ "letterSpacing",
1894
+ "lineHeight",
1895
+ "textTransform",
1896
+ "textDecoration",
1897
+ "gradient"
1898
+ ]
1826
1899
  },
1827
1900
  {
1828
1901
  "type": "null"
@@ -2006,7 +2006,80 @@
2006
2006
  "style": {
2007
2007
  "anyOf": [
2008
2008
  {
2009
- "$ref": "#/$defs/RichTextStyle"
2009
+ "type": "object",
2010
+ "properties": {
2011
+ "letterSpacing": {
2012
+ "anyOf": [
2013
+ {
2014
+ "type": "number"
2015
+ },
2016
+ {
2017
+ "type": "null"
2018
+ }
2019
+ ]
2020
+ },
2021
+ "lineHeight": {
2022
+ "anyOf": [
2023
+ {
2024
+ "type": "number",
2025
+ "minimum": 0,
2026
+ "maximum": 10
2027
+ },
2028
+ {
2029
+ "type": "null"
2030
+ }
2031
+ ]
2032
+ },
2033
+ "textTransform": {
2034
+ "anyOf": [
2035
+ {
2036
+ "type": "string",
2037
+ "enum": [
2038
+ "none",
2039
+ "uppercase",
2040
+ "lowercase",
2041
+ "capitalize"
2042
+ ]
2043
+ },
2044
+ {
2045
+ "type": "null"
2046
+ }
2047
+ ]
2048
+ },
2049
+ "textDecoration": {
2050
+ "anyOf": [
2051
+ {
2052
+ "type": "string",
2053
+ "enum": [
2054
+ "none",
2055
+ "underline",
2056
+ "line-through"
2057
+ ]
2058
+ },
2059
+ {
2060
+ "type": "null"
2061
+ }
2062
+ ]
2063
+ },
2064
+ "gradient": {
2065
+ "anyOf": [
2066
+ {
2067
+ "$ref": "#/$defs/RichTextGradient"
2068
+ },
2069
+ {
2070
+ "type": "null"
2071
+ }
2072
+ ]
2073
+ }
2074
+ },
2075
+ "additionalProperties": false,
2076
+ "required": [
2077
+ "letterSpacing",
2078
+ "lineHeight",
2079
+ "textTransform",
2080
+ "textDecoration",
2081
+ "gradient"
2082
+ ]
2010
2083
  },
2011
2084
  {
2012
2085
  "type": "null"
@@ -107,7 +107,80 @@
107
107
  "style": {
108
108
  "anyOf": [
109
109
  {
110
- "$ref": "#/$defs/RichTextStyle"
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
+ ]
149
+ },
150
+ "textDecoration": {
151
+ "anyOf": [
152
+ {
153
+ "type": "string",
154
+ "enum": [
155
+ "none",
156
+ "underline",
157
+ "line-through"
158
+ ]
159
+ },
160
+ {
161
+ "type": "null"
162
+ }
163
+ ]
164
+ },
165
+ "gradient": {
166
+ "anyOf": [
167
+ {
168
+ "$ref": "#/$defs/RichTextGradient"
169
+ },
170
+ {
171
+ "type": "null"
172
+ }
173
+ ]
174
+ }
175
+ },
176
+ "additionalProperties": false,
177
+ "required": [
178
+ "letterSpacing",
179
+ "lineHeight",
180
+ "textTransform",
181
+ "textDecoration",
182
+ "gradient"
183
+ ]
111
184
  },
112
185
  {
113
186
  "type": "null"
@@ -215,94 +288,6 @@
215
288
  "wordAnimation"
216
289
  ],
217
290
  "$defs": {
218
- "RichTextStyle": {
219
- "properties": {
220
- "letterSpacing": {
221
- "anyOf": [
222
- {
223
- "type": "number"
224
- },
225
- {
226
- "type": "null"
227
- }
228
- ]
229
- },
230
- "wordSpacing": {
231
- "anyOf": [
232
- {
233
- "type": "number",
234
- "minimum": 0
235
- },
236
- {
237
- "type": "null"
238
- }
239
- ]
240
- },
241
- "lineHeight": {
242
- "anyOf": [
243
- {
244
- "type": "number",
245
- "minimum": 0,
246
- "maximum": 10
247
- },
248
- {
249
- "type": "null"
250
- }
251
- ]
252
- },
253
- "textTransform": {
254
- "anyOf": [
255
- {
256
- "type": "string",
257
- "enum": [
258
- "none",
259
- "uppercase",
260
- "lowercase",
261
- "capitalize"
262
- ]
263
- },
264
- {
265
- "type": "null"
266
- }
267
- ]
268
- },
269
- "textDecoration": {
270
- "anyOf": [
271
- {
272
- "type": "string",
273
- "enum": [
274
- "none",
275
- "underline",
276
- "line-through"
277
- ]
278
- },
279
- {
280
- "type": "null"
281
- }
282
- ]
283
- },
284
- "gradient": {
285
- "anyOf": [
286
- {
287
- "$ref": "#/$defs/RichTextGradient"
288
- },
289
- {
290
- "type": "null"
291
- }
292
- ]
293
- }
294
- },
295
- "additionalProperties": false,
296
- "type": "object",
297
- "required": [
298
- "letterSpacing",
299
- "wordSpacing",
300
- "lineHeight",
301
- "textTransform",
302
- "textDecoration",
303
- "gradient"
304
- ]
305
- },
306
291
  "RichTextGradient": {
307
292
  "properties": {
308
293
  "type": {
@@ -841,6 +826,94 @@
841
826
  "stroke"
842
827
  ]
843
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
+ },
844
917
  "RichTextAlignment": {
845
918
  "properties": {
846
919
  "horizontal": {
@@ -2128,8 +2128,86 @@
2128
2128
  "style": {
2129
2129
  "anyOf": [
2130
2130
  {
2131
+ "type": "object",
2131
2132
  "description": "Text style properties including spacing, line height, and transformations.",
2132
- "$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
+ ]
2133
2211
  },
2134
2212
  {
2135
2213
  "type": "null"