@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.
@@ -1965,9 +1965,42 @@
1965
1965
  "type": "string",
1966
1966
  "pattern": "^#[A-Fa-f0-9]{6}$",
1967
1967
  "example": "#000000"
1968
+ }
1969
+ },
1970
+ "additionalProperties": false,
1971
+ "type": "object"
1972
+ },
1973
+ "style": {
1974
+ "description": "Text style properties including spacing, line height, and transformations.",
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"
1968
2001
  },
1969
2002
  "textDecoration": {
1970
- "description": "Text decoration to apply to all words.",
2003
+ "description": "Text decoration to apply.",
1971
2004
  "type": "string",
1972
2005
  "enum": [
1973
2006
  "none",
@@ -1976,15 +2009,15 @@
1976
2009
  ],
1977
2010
  "default": "none",
1978
2011
  "example": "underline"
2012
+ },
2013
+ "gradient": {
2014
+ "description": "Gradient fill for text instead of solid color.",
2015
+ "$ref": "#/components/schemas/RichTextGradient"
1979
2016
  }
1980
2017
  },
1981
2018
  "additionalProperties": false,
1982
2019
  "type": "object"
1983
2020
  },
1984
- "style": {
1985
- "description": "Text style properties including spacing, line height, and transformations.",
1986
- "$ref": "#/components/schemas/RichTextStyle"
1987
- },
1988
2021
  "stroke": {
1989
2022
  "description": "Text stroke (outline) properties for inactive words.",
1990
2023
  "$ref": "#/components/schemas/RichTextStroke"
@@ -2137,8 +2170,8 @@
2137
2170
  "typewriter",
2138
2171
  "none"
2139
2172
  ],
2140
- "default": "karaoke",
2141
- "example": "karaoke"
2173
+ "default": "highlight",
2174
+ "example": "highlight"
2142
2175
  },
2143
2176
  "direction": {
2144
2177
  "description": "Direction for directional animations (slide). Only applicable when style is `slide`.",
@@ -1570,6 +1570,65 @@
1570
1570
  "type": "null"
1571
1571
  }
1572
1572
  ]
1573
+ }
1574
+ },
1575
+ "additionalProperties": false,
1576
+ "required": [
1577
+ "family",
1578
+ "size",
1579
+ "weight",
1580
+ "color",
1581
+ "opacity",
1582
+ "background"
1583
+ ]
1584
+ },
1585
+ {
1586
+ "type": "null"
1587
+ }
1588
+ ]
1589
+ },
1590
+ "style": {
1591
+ "anyOf": [
1592
+ {
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
+ ]
1573
1632
  },
1574
1633
  "textDecoration": {
1575
1634
  "anyOf": [
@@ -1585,17 +1644,25 @@
1585
1644
  "type": "null"
1586
1645
  }
1587
1646
  ]
1647
+ },
1648
+ "gradient": {
1649
+ "anyOf": [
1650
+ {
1651
+ "$ref": "#/$defs/RichTextGradient"
1652
+ },
1653
+ {
1654
+ "type": "null"
1655
+ }
1656
+ ]
1588
1657
  }
1589
1658
  },
1590
1659
  "additionalProperties": false,
1591
1660
  "required": [
1592
- "family",
1593
- "size",
1594
- "weight",
1595
- "color",
1596
- "opacity",
1597
- "background",
1598
- "textDecoration"
1661
+ "letterSpacing",
1662
+ "lineHeight",
1663
+ "textTransform",
1664
+ "textDecoration",
1665
+ "gradient"
1599
1666
  ]
1600
1667
  },
1601
1668
  {
@@ -1603,16 +1670,6 @@
1603
1670
  }
1604
1671
  ]
1605
1672
  },
1606
- "style": {
1607
- "anyOf": [
1608
- {
1609
- "$ref": "#/$defs/RichTextStyle"
1610
- },
1611
- {
1612
- "type": "null"
1613
- }
1614
- ]
1615
- },
1616
1673
  "stroke": {
1617
1674
  "anyOf": [
1618
1675
  {
@@ -1802,6 +1802,65 @@
1802
1802
  "type": "null"
1803
1803
  }
1804
1804
  ]
1805
+ }
1806
+ },
1807
+ "additionalProperties": false,
1808
+ "required": [
1809
+ "family",
1810
+ "size",
1811
+ "weight",
1812
+ "color",
1813
+ "opacity",
1814
+ "background"
1815
+ ]
1816
+ },
1817
+ {
1818
+ "type": "null"
1819
+ }
1820
+ ]
1821
+ },
1822
+ "style": {
1823
+ "anyOf": [
1824
+ {
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
+ ]
1805
1864
  },
1806
1865
  "textDecoration": {
1807
1866
  "anyOf": [
@@ -1817,17 +1876,25 @@
1817
1876
  "type": "null"
1818
1877
  }
1819
1878
  ]
1879
+ },
1880
+ "gradient": {
1881
+ "anyOf": [
1882
+ {
1883
+ "$ref": "#/$defs/RichTextGradient"
1884
+ },
1885
+ {
1886
+ "type": "null"
1887
+ }
1888
+ ]
1820
1889
  }
1821
1890
  },
1822
1891
  "additionalProperties": false,
1823
1892
  "required": [
1824
- "family",
1825
- "size",
1826
- "weight",
1827
- "color",
1828
- "opacity",
1829
- "background",
1830
- "textDecoration"
1893
+ "letterSpacing",
1894
+ "lineHeight",
1895
+ "textTransform",
1896
+ "textDecoration",
1897
+ "gradient"
1831
1898
  ]
1832
1899
  },
1833
1900
  {
@@ -1835,16 +1902,6 @@
1835
1902
  }
1836
1903
  ]
1837
1904
  },
1838
- "style": {
1839
- "anyOf": [
1840
- {
1841
- "$ref": "#/$defs/RichTextStyle"
1842
- },
1843
- {
1844
- "type": "null"
1845
- }
1846
- ]
1847
- },
1848
1905
  "stroke": {
1849
1906
  "anyOf": [
1850
1907
  {
@@ -1986,6 +1986,65 @@
1986
1986
  "type": "null"
1987
1987
  }
1988
1988
  ]
1989
+ }
1990
+ },
1991
+ "additionalProperties": false,
1992
+ "required": [
1993
+ "family",
1994
+ "size",
1995
+ "weight",
1996
+ "color",
1997
+ "opacity",
1998
+ "background"
1999
+ ]
2000
+ },
2001
+ {
2002
+ "type": "null"
2003
+ }
2004
+ ]
2005
+ },
2006
+ "style": {
2007
+ "anyOf": [
2008
+ {
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
+ ]
1989
2048
  },
1990
2049
  "textDecoration": {
1991
2050
  "anyOf": [
@@ -2001,17 +2060,25 @@
2001
2060
  "type": "null"
2002
2061
  }
2003
2062
  ]
2063
+ },
2064
+ "gradient": {
2065
+ "anyOf": [
2066
+ {
2067
+ "$ref": "#/$defs/RichTextGradient"
2068
+ },
2069
+ {
2070
+ "type": "null"
2071
+ }
2072
+ ]
2004
2073
  }
2005
2074
  },
2006
2075
  "additionalProperties": false,
2007
2076
  "required": [
2008
- "family",
2009
- "size",
2010
- "weight",
2011
- "color",
2012
- "opacity",
2013
- "background",
2014
- "textDecoration"
2077
+ "letterSpacing",
2078
+ "lineHeight",
2079
+ "textTransform",
2080
+ "textDecoration",
2081
+ "gradient"
2015
2082
  ]
2016
2083
  },
2017
2084
  {
@@ -2019,16 +2086,6 @@
2019
2086
  }
2020
2087
  ]
2021
2088
  },
2022
- "style": {
2023
- "anyOf": [
2024
- {
2025
- "$ref": "#/$defs/RichTextStyle"
2026
- },
2027
- {
2028
- "type": "null"
2029
- }
2030
- ]
2031
- },
2032
2089
  "stroke": {
2033
2090
  "anyOf": [
2034
2091
  {