@shotstack/schemas 1.7.0 → 1.7.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.
@@ -0,0 +1,275 @@
1
+ {
2
+ "name": "CaptionDetails",
3
+ "strict": true,
4
+ "schema": {
5
+ "type": "object",
6
+ "properties": {
7
+ "assets": {
8
+ "type": "array",
9
+ "items": {
10
+ "$ref": "#/$defs/CaptionAsset"
11
+ }
12
+ }
13
+ },
14
+ "additionalProperties": false,
15
+ "required": [
16
+ "assets"
17
+ ],
18
+ "$defs": {
19
+ "CaptionAsset": {
20
+ "type": "object",
21
+ "properties": {
22
+ "type": {
23
+ "enum": [
24
+ "caption"
25
+ ],
26
+ "type": "string"
27
+ },
28
+ "src": {
29
+ "type": "string"
30
+ },
31
+ "font": {
32
+ "anyOf": [
33
+ {
34
+ "$ref": "#/$defs/CaptionFont"
35
+ },
36
+ {
37
+ "type": "null"
38
+ }
39
+ ]
40
+ },
41
+ "background": {
42
+ "anyOf": [
43
+ {
44
+ "$ref": "#/$defs/CaptionBackground"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ },
51
+ "margin": {
52
+ "anyOf": [
53
+ {
54
+ "$ref": "#/$defs/CaptionMargin"
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ]
60
+ },
61
+ "trim": {
62
+ "anyOf": [
63
+ {
64
+ "type": "number"
65
+ },
66
+ {
67
+ "type": "null"
68
+ }
69
+ ]
70
+ },
71
+ "speed": {
72
+ "anyOf": [
73
+ {
74
+ "type": "number",
75
+ "minimum": 0,
76
+ "maximum": 10
77
+ },
78
+ {
79
+ "type": "null"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "type",
87
+ "src",
88
+ "font",
89
+ "background",
90
+ "margin",
91
+ "trim",
92
+ "speed"
93
+ ]
94
+ },
95
+ "CaptionFont": {
96
+ "properties": {
97
+ "family": {
98
+ "anyOf": [
99
+ {
100
+ "type": "string"
101
+ },
102
+ {
103
+ "type": "null"
104
+ }
105
+ ]
106
+ },
107
+ "color": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string"
111
+ },
112
+ {
113
+ "type": "null"
114
+ }
115
+ ]
116
+ },
117
+ "opacity": {
118
+ "anyOf": [
119
+ {
120
+ "type": "number"
121
+ },
122
+ {
123
+ "type": "null"
124
+ }
125
+ ]
126
+ },
127
+ "size": {
128
+ "anyOf": [
129
+ {
130
+ "type": "integer"
131
+ },
132
+ {
133
+ "type": "null"
134
+ }
135
+ ]
136
+ },
137
+ "lineHeight": {
138
+ "anyOf": [
139
+ {
140
+ "type": "number"
141
+ },
142
+ {
143
+ "type": "null"
144
+ }
145
+ ]
146
+ },
147
+ "stroke": {
148
+ "anyOf": [
149
+ {
150
+ "type": "string"
151
+ },
152
+ {
153
+ "type": "null"
154
+ }
155
+ ]
156
+ },
157
+ "strokeWidth": {
158
+ "anyOf": [
159
+ {
160
+ "type": "number"
161
+ },
162
+ {
163
+ "type": "null"
164
+ }
165
+ ]
166
+ }
167
+ },
168
+ "additionalProperties": false,
169
+ "type": "object",
170
+ "required": [
171
+ "family",
172
+ "color",
173
+ "opacity",
174
+ "size",
175
+ "lineHeight",
176
+ "stroke",
177
+ "strokeWidth"
178
+ ]
179
+ },
180
+ "CaptionBackground": {
181
+ "properties": {
182
+ "color": {
183
+ "anyOf": [
184
+ {
185
+ "type": "string"
186
+ },
187
+ {
188
+ "type": "null"
189
+ }
190
+ ]
191
+ },
192
+ "opacity": {
193
+ "anyOf": [
194
+ {
195
+ "type": "number"
196
+ },
197
+ {
198
+ "type": "null"
199
+ }
200
+ ]
201
+ },
202
+ "padding": {
203
+ "anyOf": [
204
+ {
205
+ "type": "integer"
206
+ },
207
+ {
208
+ "type": "null"
209
+ }
210
+ ]
211
+ },
212
+ "borderRadius": {
213
+ "anyOf": [
214
+ {
215
+ "type": "integer"
216
+ },
217
+ {
218
+ "type": "null"
219
+ }
220
+ ]
221
+ }
222
+ },
223
+ "additionalProperties": false,
224
+ "type": "object",
225
+ "required": [
226
+ "color",
227
+ "opacity",
228
+ "padding",
229
+ "borderRadius"
230
+ ]
231
+ },
232
+ "CaptionMargin": {
233
+ "properties": {
234
+ "top": {
235
+ "anyOf": [
236
+ {
237
+ "type": "number"
238
+ },
239
+ {
240
+ "type": "null"
241
+ }
242
+ ]
243
+ },
244
+ "left": {
245
+ "anyOf": [
246
+ {
247
+ "type": "number"
248
+ },
249
+ {
250
+ "type": "null"
251
+ }
252
+ ]
253
+ },
254
+ "right": {
255
+ "anyOf": [
256
+ {
257
+ "type": "number"
258
+ },
259
+ {
260
+ "type": "null"
261
+ }
262
+ ]
263
+ }
264
+ },
265
+ "additionalProperties": false,
266
+ "type": "object",
267
+ "required": [
268
+ "top",
269
+ "left",
270
+ "right"
271
+ ]
272
+ }
273
+ }
274
+ }
275
+ }
@@ -445,7 +445,37 @@
445
445
  "easing": {
446
446
  "anyOf": [
447
447
  {
448
- "type": "string"
448
+ "type": "string",
449
+ "enum": [
450
+ "ease",
451
+ "easeIn",
452
+ "easeOut",
453
+ "easeInOut",
454
+ "easeInQuad",
455
+ "easeInCubic",
456
+ "easeInQuart",
457
+ "easeInQuint",
458
+ "easeInSine",
459
+ "easeInExpo",
460
+ "easeInCirc",
461
+ "easeInBack",
462
+ "easeOutQuad",
463
+ "easeOutCubic",
464
+ "easeOutQuart",
465
+ "easeOutQuint",
466
+ "easeOutSine",
467
+ "easeOutExpo",
468
+ "easeOutCirc",
469
+ "easeOutBack",
470
+ "easeInOutQuad",
471
+ "easeInOutCubic",
472
+ "easeInOutQuart",
473
+ "easeInOutQuint",
474
+ "easeInOutSine",
475
+ "easeInOutExpo",
476
+ "easeInOutCirc",
477
+ "easeInOutBack"
478
+ ]
449
479
  },
450
480
  {
451
481
  "type": "null"
@@ -3401,7 +3431,31 @@
3401
3431
  "in": {
3402
3432
  "anyOf": [
3403
3433
  {
3404
- "type": "string"
3434
+ "type": "string",
3435
+ "enum": [
3436
+ "none",
3437
+ "fade",
3438
+ "reveal",
3439
+ "wipeLeft",
3440
+ "wipeRight",
3441
+ "slideLeft",
3442
+ "slideRight",
3443
+ "slideUp",
3444
+ "slideDown",
3445
+ "carouselLeft",
3446
+ "carouselRight",
3447
+ "carouselUp",
3448
+ "carouselDown",
3449
+ "shuffleTopRight",
3450
+ "shuffleRightTop",
3451
+ "shuffleRightBottom",
3452
+ "shuffleBottomRight",
3453
+ "shuffleBottomLeft",
3454
+ "shuffleLeftBottom",
3455
+ "shuffleLeftTop",
3456
+ "shuffleTopLeft",
3457
+ "zoom"
3458
+ ]
3405
3459
  },
3406
3460
  {
3407
3461
  "type": "null"
@@ -3411,7 +3465,31 @@
3411
3465
  "out": {
3412
3466
  "anyOf": [
3413
3467
  {
3414
- "type": "string"
3468
+ "type": "string",
3469
+ "enum": [
3470
+ "none",
3471
+ "fade",
3472
+ "reveal",
3473
+ "wipeLeft",
3474
+ "wipeRight",
3475
+ "slideLeft",
3476
+ "slideRight",
3477
+ "slideUp",
3478
+ "slideDown",
3479
+ "carouselLeft",
3480
+ "carouselRight",
3481
+ "carouselUp",
3482
+ "carouselDown",
3483
+ "shuffleTopRight",
3484
+ "shuffleRightTop",
3485
+ "shuffleRightBottom",
3486
+ "shuffleBottomRight",
3487
+ "shuffleBottomLeft",
3488
+ "shuffleLeftBottom",
3489
+ "shuffleLeftTop",
3490
+ "shuffleTopLeft",
3491
+ "zoom"
3492
+ ]
3415
3493
  },
3416
3494
  {
3417
3495
  "type": "null"
@@ -629,7 +629,37 @@
629
629
  "easing": {
630
630
  "anyOf": [
631
631
  {
632
- "type": "string"
632
+ "type": "string",
633
+ "enum": [
634
+ "ease",
635
+ "easeIn",
636
+ "easeOut",
637
+ "easeInOut",
638
+ "easeInQuad",
639
+ "easeInCubic",
640
+ "easeInQuart",
641
+ "easeInQuint",
642
+ "easeInSine",
643
+ "easeInExpo",
644
+ "easeInCirc",
645
+ "easeInBack",
646
+ "easeOutQuad",
647
+ "easeOutCubic",
648
+ "easeOutQuart",
649
+ "easeOutQuint",
650
+ "easeOutSine",
651
+ "easeOutExpo",
652
+ "easeOutCirc",
653
+ "easeOutBack",
654
+ "easeInOutQuad",
655
+ "easeInOutCubic",
656
+ "easeInOutQuart",
657
+ "easeInOutQuint",
658
+ "easeInOutSine",
659
+ "easeInOutExpo",
660
+ "easeInOutCirc",
661
+ "easeInOutBack"
662
+ ]
633
663
  },
634
664
  {
635
665
  "type": "null"
@@ -3585,7 +3615,31 @@
3585
3615
  "in": {
3586
3616
  "anyOf": [
3587
3617
  {
3588
- "type": "string"
3618
+ "type": "string",
3619
+ "enum": [
3620
+ "none",
3621
+ "fade",
3622
+ "reveal",
3623
+ "wipeLeft",
3624
+ "wipeRight",
3625
+ "slideLeft",
3626
+ "slideRight",
3627
+ "slideUp",
3628
+ "slideDown",
3629
+ "carouselLeft",
3630
+ "carouselRight",
3631
+ "carouselUp",
3632
+ "carouselDown",
3633
+ "shuffleTopRight",
3634
+ "shuffleRightTop",
3635
+ "shuffleRightBottom",
3636
+ "shuffleBottomRight",
3637
+ "shuffleBottomLeft",
3638
+ "shuffleLeftBottom",
3639
+ "shuffleLeftTop",
3640
+ "shuffleTopLeft",
3641
+ "zoom"
3642
+ ]
3589
3643
  },
3590
3644
  {
3591
3645
  "type": "null"
@@ -3595,7 +3649,31 @@
3595
3649
  "out": {
3596
3650
  "anyOf": [
3597
3651
  {
3598
- "type": "string"
3652
+ "type": "string",
3653
+ "enum": [
3654
+ "none",
3655
+ "fade",
3656
+ "reveal",
3657
+ "wipeLeft",
3658
+ "wipeRight",
3659
+ "slideLeft",
3660
+ "slideRight",
3661
+ "slideUp",
3662
+ "slideDown",
3663
+ "carouselLeft",
3664
+ "carouselRight",
3665
+ "carouselUp",
3666
+ "carouselDown",
3667
+ "shuffleTopRight",
3668
+ "shuffleRightTop",
3669
+ "shuffleRightBottom",
3670
+ "shuffleBottomRight",
3671
+ "shuffleBottomLeft",
3672
+ "shuffleLeftBottom",
3673
+ "shuffleLeftTop",
3674
+ "shuffleTopLeft",
3675
+ "zoom"
3676
+ ]
3599
3677
  },
3600
3678
  {
3601
3679
  "type": "null"
@@ -1 +1,6 @@
1
1
  module.exports.edit = require('./edit.json');
2
+ module.exports.template = require('./template.json');
3
+ module.exports.blueprint = require('./blueprint.json');
4
+ module.exports.richTextContent = require('./rich-text-content.json');
5
+ module.exports.richTextEffects = require('./rich-text-effects.json');
6
+ module.exports.captionDetailer = require('./caption-detailer.json');
@@ -4,3 +4,8 @@ export interface JsonSchema {
4
4
  schema: Record<string, unknown>;
5
5
  }
6
6
  export declare const edit: JsonSchema;
7
+ export declare const template: JsonSchema;
8
+ export declare const blueprint: JsonSchema;
9
+ export declare const richTextContent: JsonSchema;
10
+ export declare const richTextEffects: JsonSchema;
11
+ export declare const captionDetailer: JsonSchema;
@@ -1,3 +1,8 @@
1
1
  import { createRequire } from 'module';
2
2
  const require = createRequire(import.meta.url);
3
3
  export const edit = require('./edit.json');
4
+ export const template = require('./template.json');
5
+ export const blueprint = require('./blueprint.json');
6
+ export const richTextContent = require('./rich-text-content.json');
7
+ export const richTextEffects = require('./rich-text-effects.json');
8
+ export const captionDetailer = require('./caption-detailer.json');
@@ -121,7 +121,37 @@
121
121
  "anyOf": [
122
122
  {
123
123
  "type": "string",
124
- "description": "The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`."
124
+ "description": "The easing function to use for the animation. Easing controls the rate of change of the animated value, allowing for more natural motion by speeding up or slowing down the animation at different points. Only applicable if interpolation is set to `bezier`.",
125
+ "enum": [
126
+ "ease",
127
+ "easeIn",
128
+ "easeOut",
129
+ "easeInOut",
130
+ "easeInQuad",
131
+ "easeInCubic",
132
+ "easeInQuart",
133
+ "easeInQuint",
134
+ "easeInSine",
135
+ "easeInExpo",
136
+ "easeInCirc",
137
+ "easeInBack",
138
+ "easeOutQuad",
139
+ "easeOutCubic",
140
+ "easeOutQuart",
141
+ "easeOutQuint",
142
+ "easeOutSine",
143
+ "easeOutExpo",
144
+ "easeOutCirc",
145
+ "easeOutBack",
146
+ "easeInOutQuad",
147
+ "easeInOutCubic",
148
+ "easeInOutQuart",
149
+ "easeInOutQuint",
150
+ "easeInOutSine",
151
+ "easeInOutExpo",
152
+ "easeInOutCirc",
153
+ "easeInOutBack"
154
+ ]
125
155
  },
126
156
  {
127
157
  "type": "null"