@shotstack/schemas 1.8.7 → 1.9.1
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.
- package/README.md +89 -89
- package/dist/api.bundled.json +48 -10
- package/dist/json-schema/asset.json +57 -15
- package/dist/json-schema/clip.json +57 -15
- package/dist/json-schema/edit.json +57 -15
- package/dist/json-schema/rich-caption-active-font.json +18 -1
- package/dist/json-schema/rich-caption-active.json +118 -2
- package/dist/json-schema/rich-caption-asset.json +57 -15
- package/dist/json-schema/rich-caption-word-animation.json +0 -14
- package/dist/json-schema/schemas.json +61 -17
- package/dist/json-schema/timeline.json +57 -15
- package/dist/json-schema/track.json +57 -15
- package/dist/schema.d.ts +18 -8
- package/dist/zod/zod.gen.cjs +1098 -933
- package/dist/zod/zod.gen.d.ts +1436 -515
- package/dist/zod/zod.gen.js +1099 -934
- package/dist/zod/zod.gen.ts +1606 -1667
- package/package.json +95 -79
package/README.md
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
# @shotstack/schemas
|
|
2
|
-
|
|
3
|
-
Centralized OpenAPI schemas and TypeScript types for the Shotstack API
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @shotstack/schemas zod
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
### TypeScript Types
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { components } from '@shotstack/schemas';
|
|
17
|
-
|
|
18
|
-
type Edit = components['schemas']['Edit'];
|
|
19
|
-
type Timeline = components['schemas']['Timeline'];
|
|
20
|
-
type Clip = components['schemas']['Clip'];
|
|
21
|
-
type Output = components['schemas']['Output'];
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
### Zod Schemas
|
|
25
|
-
|
|
26
|
-
```typescript
|
|
27
|
-
import { z } from 'zod';
|
|
28
|
-
import { richTextAssetSchema, editSchema, timelineSchema } from '@shotstack/schemas/zod';
|
|
29
|
-
|
|
30
|
-
const result = richTextAssetSchema.safeParse(inputData);
|
|
31
|
-
if (result.success) {
|
|
32
|
-
console.log(result.data);
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Extending Schemas
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
import { z } from 'zod';
|
|
40
|
-
import { richTextAssetSchema } from '@shotstack/schemas/zod';
|
|
41
|
-
|
|
42
|
-
const ExtendedAsset = richTextAssetSchema.extend({
|
|
43
|
-
customFonts: z.array(z.object({
|
|
44
|
-
src: z.string().url(),
|
|
45
|
-
family: z.string(),
|
|
46
|
-
})).optional(),
|
|
47
|
-
border: z.object({
|
|
48
|
-
width: z.number().min(0),
|
|
49
|
-
color: z.string(),
|
|
50
|
-
}).optional(),
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
type ExtendedAssetType = z.infer<typeof ExtendedAsset>;
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Custom Validation
|
|
57
|
-
|
|
58
|
-
```typescript
|
|
59
|
-
import { richTextAnimationSchema } from '@shotstack/schemas/zod';
|
|
60
|
-
|
|
61
|
-
const AnimationWithDirection = richTextAnimationSchema.refine(
|
|
62
|
-
(data) => {
|
|
63
|
-
if (data.preset === 'slideIn' && !data.direction) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
return true;
|
|
67
|
-
},
|
|
68
|
-
{ message: 'direction is required for slideIn preset' }
|
|
69
|
-
);
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Available Schemas
|
|
73
|
-
|
|
74
|
-
- Edit, Timeline, Track, Clip, Output
|
|
75
|
-
- Assets: VideoAsset, ImageAsset, AudioAsset, HtmlAsset, TextAsset, TitleAsset, LumaAsset, CaptionAsset, ShapeAsset, RichTextAsset
|
|
76
|
-
- Destinations: ShotstackDestination, S3Destination, MuxDestination, VimeoDestination, GoogleDriveDestination, GoogleCloudStorageDestination
|
|
77
|
-
- Transforms, Transitions, Fonts, MergeFields, and more
|
|
78
|
-
|
|
79
|
-
## Development
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
pnpm install
|
|
83
|
-
pnpm run build
|
|
84
|
-
pnpm run test
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## License
|
|
88
|
-
|
|
89
|
-
MIT
|
|
1
|
+
# @shotstack/schemas
|
|
2
|
+
|
|
3
|
+
Centralized OpenAPI schemas and TypeScript types for the Shotstack API
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @shotstack/schemas zod
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### TypeScript Types
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { components } from '@shotstack/schemas';
|
|
17
|
+
|
|
18
|
+
type Edit = components['schemas']['Edit'];
|
|
19
|
+
type Timeline = components['schemas']['Timeline'];
|
|
20
|
+
type Clip = components['schemas']['Clip'];
|
|
21
|
+
type Output = components['schemas']['Output'];
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Zod Schemas
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { z } from 'zod';
|
|
28
|
+
import { richTextAssetSchema, editSchema, timelineSchema } from '@shotstack/schemas/zod';
|
|
29
|
+
|
|
30
|
+
const result = richTextAssetSchema.safeParse(inputData);
|
|
31
|
+
if (result.success) {
|
|
32
|
+
console.log(result.data);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Extending Schemas
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { z } from 'zod';
|
|
40
|
+
import { richTextAssetSchema } from '@shotstack/schemas/zod';
|
|
41
|
+
|
|
42
|
+
const ExtendedAsset = richTextAssetSchema.extend({
|
|
43
|
+
customFonts: z.array(z.object({
|
|
44
|
+
src: z.string().url(),
|
|
45
|
+
family: z.string(),
|
|
46
|
+
})).optional(),
|
|
47
|
+
border: z.object({
|
|
48
|
+
width: z.number().min(0),
|
|
49
|
+
color: z.string(),
|
|
50
|
+
}).optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
type ExtendedAssetType = z.infer<typeof ExtendedAsset>;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Custom Validation
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { richTextAnimationSchema } from '@shotstack/schemas/zod';
|
|
60
|
+
|
|
61
|
+
const AnimationWithDirection = richTextAnimationSchema.refine(
|
|
62
|
+
(data) => {
|
|
63
|
+
if (data.preset === 'slideIn' && !data.direction) {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
return true;
|
|
67
|
+
},
|
|
68
|
+
{ message: 'direction is required for slideIn preset' }
|
|
69
|
+
);
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Available Schemas
|
|
73
|
+
|
|
74
|
+
- Edit, Timeline, Track, Clip, Output
|
|
75
|
+
- Assets: VideoAsset, ImageAsset, AudioAsset, HtmlAsset, TextAsset, TitleAsset, LumaAsset, CaptionAsset, ShapeAsset, RichTextAsset
|
|
76
|
+
- Destinations: ShotstackDestination, S3Destination, MuxDestination, VimeoDestination, GoogleDriveDestination, GoogleCloudStorageDestination
|
|
77
|
+
- Transforms, Transitions, Fonts, MergeFields, and more
|
|
78
|
+
|
|
79
|
+
## Development
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pnpm install
|
|
83
|
+
pnpm run build
|
|
84
|
+
pnpm run test
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
MIT
|
package/dist/api.bundled.json
CHANGED
|
@@ -1965,6 +1965,17 @@
|
|
|
1965
1965
|
"type": "string",
|
|
1966
1966
|
"pattern": "^#[A-Fa-f0-9]{6}$",
|
|
1967
1967
|
"example": "#000000"
|
|
1968
|
+
},
|
|
1969
|
+
"textDecoration": {
|
|
1970
|
+
"description": "Text decoration to apply to all words.",
|
|
1971
|
+
"type": "string",
|
|
1972
|
+
"enum": [
|
|
1973
|
+
"none",
|
|
1974
|
+
"underline",
|
|
1975
|
+
"line-through"
|
|
1976
|
+
],
|
|
1977
|
+
"default": "none",
|
|
1978
|
+
"example": "underline"
|
|
1968
1979
|
}
|
|
1969
1980
|
},
|
|
1970
1981
|
"additionalProperties": false,
|
|
@@ -2047,6 +2058,17 @@
|
|
|
2047
2058
|
"maximum": 1,
|
|
2048
2059
|
"default": 1,
|
|
2049
2060
|
"example": 1
|
|
2061
|
+
},
|
|
2062
|
+
"textDecoration": {
|
|
2063
|
+
"description": "Text decoration to apply to the active word.",
|
|
2064
|
+
"type": "string",
|
|
2065
|
+
"enum": [
|
|
2066
|
+
"none",
|
|
2067
|
+
"underline",
|
|
2068
|
+
"line-through"
|
|
2069
|
+
],
|
|
2070
|
+
"default": "none",
|
|
2071
|
+
"example": "underline"
|
|
2050
2072
|
}
|
|
2051
2073
|
},
|
|
2052
2074
|
"additionalProperties": false
|
|
@@ -2060,8 +2082,32 @@
|
|
|
2060
2082
|
"$ref": "#/components/schemas/RichCaptionActiveFont"
|
|
2061
2083
|
},
|
|
2062
2084
|
"stroke": {
|
|
2063
|
-
"description": "Stroke properties for the active word.",
|
|
2064
|
-
"
|
|
2085
|
+
"description": "Stroke properties for the active word. Set to \"none\" to explicitly remove the base stroke on the active word.",
|
|
2086
|
+
"oneOf": [
|
|
2087
|
+
{
|
|
2088
|
+
"$ref": "#/components/schemas/RichTextStroke"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"type": "string",
|
|
2092
|
+
"enum": [
|
|
2093
|
+
"none"
|
|
2094
|
+
]
|
|
2095
|
+
}
|
|
2096
|
+
]
|
|
2097
|
+
},
|
|
2098
|
+
"shadow": {
|
|
2099
|
+
"description": "Shadow properties for the active word. Set to \"none\" to explicitly remove the base shadow on the active word.",
|
|
2100
|
+
"oneOf": [
|
|
2101
|
+
{
|
|
2102
|
+
"$ref": "#/components/schemas/RichTextShadow"
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"type": "string",
|
|
2106
|
+
"enum": [
|
|
2107
|
+
"none"
|
|
2108
|
+
]
|
|
2109
|
+
}
|
|
2110
|
+
]
|
|
2065
2111
|
},
|
|
2066
2112
|
"scale": {
|
|
2067
2113
|
"description": "Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.",
|
|
@@ -2094,14 +2140,6 @@
|
|
|
2094
2140
|
"default": "karaoke",
|
|
2095
2141
|
"example": "karaoke"
|
|
2096
2142
|
},
|
|
2097
|
-
"speed": {
|
|
2098
|
-
"description": "Animation speed multiplier. 1.0 is normal speed, 0.5 is half speed, 2.0 is double speed.",
|
|
2099
|
-
"type": "number",
|
|
2100
|
-
"minimum": 0.5,
|
|
2101
|
-
"maximum": 2,
|
|
2102
|
-
"default": 1,
|
|
2103
|
-
"example": 1
|
|
2104
|
-
},
|
|
2105
2143
|
"direction": {
|
|
2106
2144
|
"description": "Direction for directional animations (slide). Only applicable when style is `slide`.",
|
|
2107
2145
|
"type": "string",
|
|
@@ -1570,6 +1570,21 @@
|
|
|
1570
1570
|
"type": "null"
|
|
1571
1571
|
}
|
|
1572
1572
|
]
|
|
1573
|
+
},
|
|
1574
|
+
"textDecoration": {
|
|
1575
|
+
"anyOf": [
|
|
1576
|
+
{
|
|
1577
|
+
"type": "string",
|
|
1578
|
+
"enum": [
|
|
1579
|
+
"none",
|
|
1580
|
+
"underline",
|
|
1581
|
+
"line-through"
|
|
1582
|
+
]
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
"type": "null"
|
|
1586
|
+
}
|
|
1587
|
+
]
|
|
1573
1588
|
}
|
|
1574
1589
|
},
|
|
1575
1590
|
"additionalProperties": false,
|
|
@@ -1579,7 +1594,8 @@
|
|
|
1579
1594
|
"weight",
|
|
1580
1595
|
"color",
|
|
1581
1596
|
"opacity",
|
|
1582
|
-
"background"
|
|
1597
|
+
"background",
|
|
1598
|
+
"textDecoration"
|
|
1583
1599
|
]
|
|
1584
1600
|
},
|
|
1585
1601
|
{
|
|
@@ -1716,6 +1732,28 @@
|
|
|
1716
1732
|
{
|
|
1717
1733
|
"$ref": "#/$defs/RichTextStroke"
|
|
1718
1734
|
},
|
|
1735
|
+
{
|
|
1736
|
+
"type": "string",
|
|
1737
|
+
"enum": [
|
|
1738
|
+
"none"
|
|
1739
|
+
]
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"type": "null"
|
|
1743
|
+
}
|
|
1744
|
+
]
|
|
1745
|
+
},
|
|
1746
|
+
"shadow": {
|
|
1747
|
+
"anyOf": [
|
|
1748
|
+
{
|
|
1749
|
+
"$ref": "#/$defs/RichTextShadow"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"type": "string",
|
|
1753
|
+
"enum": [
|
|
1754
|
+
"none"
|
|
1755
|
+
]
|
|
1756
|
+
},
|
|
1719
1757
|
{
|
|
1720
1758
|
"type": "null"
|
|
1721
1759
|
}
|
|
@@ -1738,6 +1776,7 @@
|
|
|
1738
1776
|
"required": [
|
|
1739
1777
|
"font",
|
|
1740
1778
|
"stroke",
|
|
1779
|
+
"shadow",
|
|
1741
1780
|
"scale"
|
|
1742
1781
|
]
|
|
1743
1782
|
},
|
|
@@ -1778,13 +1817,29 @@
|
|
|
1778
1817
|
"type": "null"
|
|
1779
1818
|
}
|
|
1780
1819
|
]
|
|
1820
|
+
},
|
|
1821
|
+
"textDecoration": {
|
|
1822
|
+
"anyOf": [
|
|
1823
|
+
{
|
|
1824
|
+
"type": "string",
|
|
1825
|
+
"enum": [
|
|
1826
|
+
"none",
|
|
1827
|
+
"underline",
|
|
1828
|
+
"line-through"
|
|
1829
|
+
]
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
"type": "null"
|
|
1833
|
+
}
|
|
1834
|
+
]
|
|
1781
1835
|
}
|
|
1782
1836
|
},
|
|
1783
1837
|
"additionalProperties": false,
|
|
1784
1838
|
"required": [
|
|
1785
1839
|
"color",
|
|
1786
1840
|
"background",
|
|
1787
|
-
"opacity"
|
|
1841
|
+
"opacity",
|
|
1842
|
+
"textDecoration"
|
|
1788
1843
|
]
|
|
1789
1844
|
},
|
|
1790
1845
|
"RichCaptionWordAnimation": {
|
|
@@ -1803,18 +1858,6 @@
|
|
|
1803
1858
|
"none"
|
|
1804
1859
|
]
|
|
1805
1860
|
},
|
|
1806
|
-
"speed": {
|
|
1807
|
-
"anyOf": [
|
|
1808
|
-
{
|
|
1809
|
-
"type": "number",
|
|
1810
|
-
"minimum": 0.5,
|
|
1811
|
-
"maximum": 2
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
"type": "null"
|
|
1815
|
-
}
|
|
1816
|
-
]
|
|
1817
|
-
},
|
|
1818
1861
|
"direction": {
|
|
1819
1862
|
"anyOf": [
|
|
1820
1863
|
{
|
|
@@ -1835,7 +1878,6 @@
|
|
|
1835
1878
|
"additionalProperties": false,
|
|
1836
1879
|
"required": [
|
|
1837
1880
|
"style",
|
|
1838
|
-
"speed",
|
|
1839
1881
|
"direction"
|
|
1840
1882
|
]
|
|
1841
1883
|
},
|
|
@@ -1802,6 +1802,21 @@
|
|
|
1802
1802
|
"type": "null"
|
|
1803
1803
|
}
|
|
1804
1804
|
]
|
|
1805
|
+
},
|
|
1806
|
+
"textDecoration": {
|
|
1807
|
+
"anyOf": [
|
|
1808
|
+
{
|
|
1809
|
+
"type": "string",
|
|
1810
|
+
"enum": [
|
|
1811
|
+
"none",
|
|
1812
|
+
"underline",
|
|
1813
|
+
"line-through"
|
|
1814
|
+
]
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"type": "null"
|
|
1818
|
+
}
|
|
1819
|
+
]
|
|
1805
1820
|
}
|
|
1806
1821
|
},
|
|
1807
1822
|
"additionalProperties": false,
|
|
@@ -1811,7 +1826,8 @@
|
|
|
1811
1826
|
"weight",
|
|
1812
1827
|
"color",
|
|
1813
1828
|
"opacity",
|
|
1814
|
-
"background"
|
|
1829
|
+
"background",
|
|
1830
|
+
"textDecoration"
|
|
1815
1831
|
]
|
|
1816
1832
|
},
|
|
1817
1833
|
{
|
|
@@ -1948,6 +1964,28 @@
|
|
|
1948
1964
|
{
|
|
1949
1965
|
"$ref": "#/$defs/RichTextStroke"
|
|
1950
1966
|
},
|
|
1967
|
+
{
|
|
1968
|
+
"type": "string",
|
|
1969
|
+
"enum": [
|
|
1970
|
+
"none"
|
|
1971
|
+
]
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
"type": "null"
|
|
1975
|
+
}
|
|
1976
|
+
]
|
|
1977
|
+
},
|
|
1978
|
+
"shadow": {
|
|
1979
|
+
"anyOf": [
|
|
1980
|
+
{
|
|
1981
|
+
"$ref": "#/$defs/RichTextShadow"
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"enum": [
|
|
1986
|
+
"none"
|
|
1987
|
+
]
|
|
1988
|
+
},
|
|
1951
1989
|
{
|
|
1952
1990
|
"type": "null"
|
|
1953
1991
|
}
|
|
@@ -1970,6 +2008,7 @@
|
|
|
1970
2008
|
"required": [
|
|
1971
2009
|
"font",
|
|
1972
2010
|
"stroke",
|
|
2011
|
+
"shadow",
|
|
1973
2012
|
"scale"
|
|
1974
2013
|
]
|
|
1975
2014
|
},
|
|
@@ -2010,13 +2049,29 @@
|
|
|
2010
2049
|
"type": "null"
|
|
2011
2050
|
}
|
|
2012
2051
|
]
|
|
2052
|
+
},
|
|
2053
|
+
"textDecoration": {
|
|
2054
|
+
"anyOf": [
|
|
2055
|
+
{
|
|
2056
|
+
"type": "string",
|
|
2057
|
+
"enum": [
|
|
2058
|
+
"none",
|
|
2059
|
+
"underline",
|
|
2060
|
+
"line-through"
|
|
2061
|
+
]
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"type": "null"
|
|
2065
|
+
}
|
|
2066
|
+
]
|
|
2013
2067
|
}
|
|
2014
2068
|
},
|
|
2015
2069
|
"additionalProperties": false,
|
|
2016
2070
|
"required": [
|
|
2017
2071
|
"color",
|
|
2018
2072
|
"background",
|
|
2019
|
-
"opacity"
|
|
2073
|
+
"opacity",
|
|
2074
|
+
"textDecoration"
|
|
2020
2075
|
]
|
|
2021
2076
|
},
|
|
2022
2077
|
"RichCaptionWordAnimation": {
|
|
@@ -2035,18 +2090,6 @@
|
|
|
2035
2090
|
"none"
|
|
2036
2091
|
]
|
|
2037
2092
|
},
|
|
2038
|
-
"speed": {
|
|
2039
|
-
"anyOf": [
|
|
2040
|
-
{
|
|
2041
|
-
"type": "number",
|
|
2042
|
-
"minimum": 0.5,
|
|
2043
|
-
"maximum": 2
|
|
2044
|
-
},
|
|
2045
|
-
{
|
|
2046
|
-
"type": "null"
|
|
2047
|
-
}
|
|
2048
|
-
]
|
|
2049
|
-
},
|
|
2050
2093
|
"direction": {
|
|
2051
2094
|
"anyOf": [
|
|
2052
2095
|
{
|
|
@@ -2067,7 +2110,6 @@
|
|
|
2067
2110
|
"additionalProperties": false,
|
|
2068
2111
|
"required": [
|
|
2069
2112
|
"style",
|
|
2070
|
-
"speed",
|
|
2071
2113
|
"direction"
|
|
2072
2114
|
]
|
|
2073
2115
|
},
|
|
@@ -1986,6 +1986,21 @@
|
|
|
1986
1986
|
"type": "null"
|
|
1987
1987
|
}
|
|
1988
1988
|
]
|
|
1989
|
+
},
|
|
1990
|
+
"textDecoration": {
|
|
1991
|
+
"anyOf": [
|
|
1992
|
+
{
|
|
1993
|
+
"type": "string",
|
|
1994
|
+
"enum": [
|
|
1995
|
+
"none",
|
|
1996
|
+
"underline",
|
|
1997
|
+
"line-through"
|
|
1998
|
+
]
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"type": "null"
|
|
2002
|
+
}
|
|
2003
|
+
]
|
|
1989
2004
|
}
|
|
1990
2005
|
},
|
|
1991
2006
|
"additionalProperties": false,
|
|
@@ -1995,7 +2010,8 @@
|
|
|
1995
2010
|
"weight",
|
|
1996
2011
|
"color",
|
|
1997
2012
|
"opacity",
|
|
1998
|
-
"background"
|
|
2013
|
+
"background",
|
|
2014
|
+
"textDecoration"
|
|
1999
2015
|
]
|
|
2000
2016
|
},
|
|
2001
2017
|
{
|
|
@@ -2132,6 +2148,28 @@
|
|
|
2132
2148
|
{
|
|
2133
2149
|
"$ref": "#/$defs/RichTextStroke"
|
|
2134
2150
|
},
|
|
2151
|
+
{
|
|
2152
|
+
"type": "string",
|
|
2153
|
+
"enum": [
|
|
2154
|
+
"none"
|
|
2155
|
+
]
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
"type": "null"
|
|
2159
|
+
}
|
|
2160
|
+
]
|
|
2161
|
+
},
|
|
2162
|
+
"shadow": {
|
|
2163
|
+
"anyOf": [
|
|
2164
|
+
{
|
|
2165
|
+
"$ref": "#/$defs/RichTextShadow"
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"type": "string",
|
|
2169
|
+
"enum": [
|
|
2170
|
+
"none"
|
|
2171
|
+
]
|
|
2172
|
+
},
|
|
2135
2173
|
{
|
|
2136
2174
|
"type": "null"
|
|
2137
2175
|
}
|
|
@@ -2154,6 +2192,7 @@
|
|
|
2154
2192
|
"required": [
|
|
2155
2193
|
"font",
|
|
2156
2194
|
"stroke",
|
|
2195
|
+
"shadow",
|
|
2157
2196
|
"scale"
|
|
2158
2197
|
]
|
|
2159
2198
|
},
|
|
@@ -2194,13 +2233,29 @@
|
|
|
2194
2233
|
"type": "null"
|
|
2195
2234
|
}
|
|
2196
2235
|
]
|
|
2236
|
+
},
|
|
2237
|
+
"textDecoration": {
|
|
2238
|
+
"anyOf": [
|
|
2239
|
+
{
|
|
2240
|
+
"type": "string",
|
|
2241
|
+
"enum": [
|
|
2242
|
+
"none",
|
|
2243
|
+
"underline",
|
|
2244
|
+
"line-through"
|
|
2245
|
+
]
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
"type": "null"
|
|
2249
|
+
}
|
|
2250
|
+
]
|
|
2197
2251
|
}
|
|
2198
2252
|
},
|
|
2199
2253
|
"additionalProperties": false,
|
|
2200
2254
|
"required": [
|
|
2201
2255
|
"color",
|
|
2202
2256
|
"background",
|
|
2203
|
-
"opacity"
|
|
2257
|
+
"opacity",
|
|
2258
|
+
"textDecoration"
|
|
2204
2259
|
]
|
|
2205
2260
|
},
|
|
2206
2261
|
"RichCaptionWordAnimation": {
|
|
@@ -2219,18 +2274,6 @@
|
|
|
2219
2274
|
"none"
|
|
2220
2275
|
]
|
|
2221
2276
|
},
|
|
2222
|
-
"speed": {
|
|
2223
|
-
"anyOf": [
|
|
2224
|
-
{
|
|
2225
|
-
"type": "number",
|
|
2226
|
-
"minimum": 0.5,
|
|
2227
|
-
"maximum": 2
|
|
2228
|
-
},
|
|
2229
|
-
{
|
|
2230
|
-
"type": "null"
|
|
2231
|
-
}
|
|
2232
|
-
]
|
|
2233
|
-
},
|
|
2234
2277
|
"direction": {
|
|
2235
2278
|
"anyOf": [
|
|
2236
2279
|
{
|
|
@@ -2251,7 +2294,6 @@
|
|
|
2251
2294
|
"additionalProperties": false,
|
|
2252
2295
|
"required": [
|
|
2253
2296
|
"style",
|
|
2254
|
-
"speed",
|
|
2255
2297
|
"direction"
|
|
2256
2298
|
]
|
|
2257
2299
|
},
|
|
@@ -42,13 +42,30 @@
|
|
|
42
42
|
"type": "null"
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
|
+
},
|
|
46
|
+
"textDecoration": {
|
|
47
|
+
"anyOf": [
|
|
48
|
+
{
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Text decoration to apply to the active word.",
|
|
51
|
+
"enum": [
|
|
52
|
+
"none",
|
|
53
|
+
"underline",
|
|
54
|
+
"line-through"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "null"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
45
61
|
}
|
|
46
62
|
},
|
|
47
63
|
"additionalProperties": false,
|
|
48
64
|
"required": [
|
|
49
65
|
"color",
|
|
50
66
|
"background",
|
|
51
|
-
"opacity"
|
|
67
|
+
"opacity",
|
|
68
|
+
"textDecoration"
|
|
52
69
|
]
|
|
53
70
|
}
|
|
54
71
|
}
|