@nxtedition/types 23.0.62 → 23.1.0
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/dist/common/render-profile.d.ts +15 -0
- package/dist/common/settings.d.ts +26 -0
- package/dist/common/subtitle-style.d.ts +1 -0
- package/dist/nxtpression.d.ts +59 -7
- package/dist/records/domains/event.d.ts +2 -0
- package/dist/records/domains/script.d.ts +8 -3
- package/dist/records/domains/shotbox.d.ts +1 -0
- package/dist/records/validate/assert-guard.js +1131 -613
- package/dist/records/validate/assert.js +1131 -613
- package/dist/records/validate/is.js +72 -63
- package/dist/records/validate/schemas.d.ts +9 -6
- package/dist/records/validate/schemas.js +886 -859
- package/dist/records/validate/stringify.js +156 -114
- package/dist/records/validate/validate-equals.js +1603 -748
- package/dist/records/validate/validate.js +1019 -601
- package/package.json +4 -4
|
@@ -26,4 +26,19 @@ export interface SubtitleProfile {
|
|
|
26
26
|
* Will pick styling from the corresponding `${style}:subtitle-style` asset.
|
|
27
27
|
*/
|
|
28
28
|
style?: string;
|
|
29
|
+
ccconverter?: {
|
|
30
|
+
/**
|
|
31
|
+
* This is an ID, which will be used to find a matching `${preset}:ccconverter-preset` record,
|
|
32
|
+
* with settings to pass to ccconverter. If not set, `lang` will be used as a preset ID.
|
|
33
|
+
*/
|
|
34
|
+
preset?: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Options to pass to encodeASS when generating subtitles for burn-in.
|
|
38
|
+
*/
|
|
39
|
+
ass?: {
|
|
40
|
+
futureWordWrapping?: boolean;
|
|
41
|
+
scaledBorderAndShadow?: boolean;
|
|
42
|
+
enableUnsafeLineSpacingHack?: boolean;
|
|
43
|
+
};
|
|
29
44
|
}
|
|
@@ -95,6 +95,10 @@ export interface Settings {
|
|
|
95
95
|
children?: boolean;
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
+
colorHistory?: Array<{
|
|
99
|
+
color: string | null;
|
|
100
|
+
backgroundColor: string | null;
|
|
101
|
+
}>;
|
|
98
102
|
};
|
|
99
103
|
events?: {
|
|
100
104
|
graphicBaseTemplate?: string;
|
|
@@ -185,6 +189,7 @@ export interface Settings {
|
|
|
185
189
|
color?: string | null;
|
|
186
190
|
}>;
|
|
187
191
|
overridableProperties?: Array<keyof SubtitleStyle | null>;
|
|
192
|
+
previewResolutionScale?: number;
|
|
188
193
|
};
|
|
189
194
|
subtitleTemplateId?: string;
|
|
190
195
|
initialVolume?: string;
|
|
@@ -218,6 +223,19 @@ export interface Settings {
|
|
|
218
223
|
app?: string;
|
|
219
224
|
args?: string[];
|
|
220
225
|
} | string;
|
|
226
|
+
recorder?: {
|
|
227
|
+
microphone?: {
|
|
228
|
+
deviceId?: string;
|
|
229
|
+
inputGainDb?: number;
|
|
230
|
+
monitorInput?: boolean;
|
|
231
|
+
};
|
|
232
|
+
webcam?: {
|
|
233
|
+
deviceId?: string;
|
|
234
|
+
frameRate?: number;
|
|
235
|
+
aspectRatio?: number;
|
|
236
|
+
};
|
|
237
|
+
countdown?: number;
|
|
238
|
+
};
|
|
221
239
|
};
|
|
222
240
|
edit?: {
|
|
223
241
|
thumbnailView?: "filmStrip" | "thumbnail" | "none";
|
|
@@ -233,6 +251,7 @@ export interface Settings {
|
|
|
233
251
|
voiceOver?: {
|
|
234
252
|
inputDevice?: string;
|
|
235
253
|
inputGainDb?: number;
|
|
254
|
+
monitorInput?: boolean;
|
|
236
255
|
backgroundReductionDb?: number;
|
|
237
256
|
recordMode?: "instant" | "punchAndRoll";
|
|
238
257
|
preRollDuration?: number;
|
|
@@ -326,6 +345,10 @@ export interface Settings {
|
|
|
326
345
|
};
|
|
327
346
|
suppressDeleteAlert?: boolean;
|
|
328
347
|
clone?: {
|
|
348
|
+
create?: {
|
|
349
|
+
titlePrefix?: string;
|
|
350
|
+
titleSuffix?: string;
|
|
351
|
+
};
|
|
329
352
|
duplicate?: {
|
|
330
353
|
titlePrefix?: string;
|
|
331
354
|
titleSuffix?: string;
|
|
@@ -345,6 +368,9 @@ export interface Settings {
|
|
|
345
368
|
bookmarks?: {
|
|
346
369
|
refreshInterval?: number;
|
|
347
370
|
};
|
|
371
|
+
shotbox?: {
|
|
372
|
+
layout?: string;
|
|
373
|
+
};
|
|
348
374
|
}
|
|
349
375
|
export type SettingsPaths = Paths<Settings>;
|
|
350
376
|
interface ModuleTabs {
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -757,7 +757,7 @@ declare interface EventNodeContent {
|
|
|
757
757
|
type: "event";
|
|
758
758
|
id: string;
|
|
759
759
|
mixin: string;
|
|
760
|
-
children
|
|
760
|
+
children?: EventNodeContent[];
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
declare interface EventOverlayRecord {
|
|
@@ -770,6 +770,8 @@ declare type EventProps = {
|
|
|
770
770
|
source?: string;
|
|
771
771
|
cueCard?: boolean | string;
|
|
772
772
|
startTime?: number;
|
|
773
|
+
shotboxGroup?: string | string[];
|
|
774
|
+
shotboxVisible?: boolean;
|
|
773
775
|
};
|
|
774
776
|
|
|
775
777
|
declare type EventPropsRecord = EventProps & Record<Exclude<string, keyof EventProps>, JsonValue>;
|
|
@@ -1112,6 +1114,13 @@ declare interface FontFace_2 {
|
|
|
1112
1114
|
ranges: Range_2[];
|
|
1113
1115
|
}
|
|
1114
1116
|
|
|
1117
|
+
declare interface FormattedTextNodeContent {
|
|
1118
|
+
type: "text";
|
|
1119
|
+
text: string;
|
|
1120
|
+
style?: string;
|
|
1121
|
+
format?: number;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1115
1124
|
declare interface GeneralAssetRecord {
|
|
1116
1125
|
title?: string;
|
|
1117
1126
|
tags?: string;
|
|
@@ -1522,6 +1531,11 @@ declare interface KeymapSetting {
|
|
|
1522
1531
|
|
|
1523
1532
|
declare type LayoutWidget = WidgetType | WidgetItem;
|
|
1524
1533
|
|
|
1534
|
+
declare interface LinkNodeContent {
|
|
1535
|
+
type: "link" | "autolink";
|
|
1536
|
+
children: FormattedTextNodeContent[];
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1525
1539
|
declare interface ListItemNodeContent {
|
|
1526
1540
|
type: "listitem";
|
|
1527
1541
|
value: number;
|
|
@@ -3054,6 +3068,10 @@ declare interface Settings {
|
|
|
3054
3068
|
children?: boolean;
|
|
3055
3069
|
};
|
|
3056
3070
|
};
|
|
3071
|
+
colorHistory?: Array<{
|
|
3072
|
+
color: string | null;
|
|
3073
|
+
backgroundColor: string | null;
|
|
3074
|
+
}>;
|
|
3057
3075
|
};
|
|
3058
3076
|
events?: {
|
|
3059
3077
|
graphicBaseTemplate?: string;
|
|
@@ -3144,6 +3162,7 @@ declare interface Settings {
|
|
|
3144
3162
|
color?: string | null;
|
|
3145
3163
|
}>;
|
|
3146
3164
|
overridableProperties?: Array<keyof SubtitleStyle | null>;
|
|
3165
|
+
previewResolutionScale?: number;
|
|
3147
3166
|
};
|
|
3148
3167
|
subtitleTemplateId?: string;
|
|
3149
3168
|
initialVolume?: string;
|
|
@@ -3177,6 +3196,19 @@ declare interface Settings {
|
|
|
3177
3196
|
app?: string;
|
|
3178
3197
|
args?: string[];
|
|
3179
3198
|
} | string;
|
|
3199
|
+
recorder?: {
|
|
3200
|
+
microphone?: {
|
|
3201
|
+
deviceId?: string;
|
|
3202
|
+
inputGainDb?: number;
|
|
3203
|
+
monitorInput?: boolean;
|
|
3204
|
+
};
|
|
3205
|
+
webcam?: {
|
|
3206
|
+
deviceId?: string;
|
|
3207
|
+
frameRate?: number;
|
|
3208
|
+
aspectRatio?: number;
|
|
3209
|
+
};
|
|
3210
|
+
countdown?: number;
|
|
3211
|
+
};
|
|
3180
3212
|
};
|
|
3181
3213
|
edit?: {
|
|
3182
3214
|
thumbnailView?: "filmStrip" | "thumbnail" | "none";
|
|
@@ -3192,6 +3224,7 @@ declare interface Settings {
|
|
|
3192
3224
|
voiceOver?: {
|
|
3193
3225
|
inputDevice?: string;
|
|
3194
3226
|
inputGainDb?: number;
|
|
3227
|
+
monitorInput?: boolean;
|
|
3195
3228
|
backgroundReductionDb?: number;
|
|
3196
3229
|
recordMode?: "instant" | "punchAndRoll";
|
|
3197
3230
|
preRollDuration?: number;
|
|
@@ -3285,6 +3318,10 @@ declare interface Settings {
|
|
|
3285
3318
|
};
|
|
3286
3319
|
suppressDeleteAlert?: boolean;
|
|
3287
3320
|
clone?: {
|
|
3321
|
+
create?: {
|
|
3322
|
+
titlePrefix?: string;
|
|
3323
|
+
titleSuffix?: string;
|
|
3324
|
+
};
|
|
3288
3325
|
duplicate?: {
|
|
3289
3326
|
titlePrefix?: string;
|
|
3290
3327
|
titleSuffix?: string;
|
|
@@ -3304,6 +3341,9 @@ declare interface Settings {
|
|
|
3304
3341
|
bookmarks?: {
|
|
3305
3342
|
refreshInterval?: number;
|
|
3306
3343
|
};
|
|
3344
|
+
shotbox?: {
|
|
3345
|
+
layout?: string;
|
|
3346
|
+
};
|
|
3307
3347
|
}
|
|
3308
3348
|
|
|
3309
3349
|
declare interface SettingsDomainRecords {
|
|
@@ -3351,6 +3391,7 @@ declare type ShotboxGroup = ShotboxEventGroup | ShotboxStreamGroup;
|
|
|
3351
3391
|
declare interface ShotboxPage {
|
|
3352
3392
|
stickyTopRow?: boolean;
|
|
3353
3393
|
inferGroups?: boolean;
|
|
3394
|
+
excludeFromInferredGroups?: string[];
|
|
3354
3395
|
layout?: Array<ShotboxGroup[] | ShotboxGroup>;
|
|
3355
3396
|
}
|
|
3356
3397
|
|
|
@@ -3666,6 +3707,21 @@ declare interface SubtitleProfile {
|
|
|
3666
3707
|
* Will pick styling from the corresponding `${style}:subtitle-style` asset.
|
|
3667
3708
|
*/
|
|
3668
3709
|
style?: string;
|
|
3710
|
+
ccconverter?: {
|
|
3711
|
+
/**
|
|
3712
|
+
* This is an ID, which will be used to find a matching `${preset}:ccconverter-preset` record,
|
|
3713
|
+
* with settings to pass to ccconverter. If not set, `lang` will be used as a preset ID.
|
|
3714
|
+
*/
|
|
3715
|
+
preset?: string;
|
|
3716
|
+
};
|
|
3717
|
+
/**
|
|
3718
|
+
* Options to pass to encodeASS when generating subtitles for burn-in.
|
|
3719
|
+
*/
|
|
3720
|
+
ass?: {
|
|
3721
|
+
futureWordWrapping?: boolean;
|
|
3722
|
+
scaledBorderAndShadow?: boolean;
|
|
3723
|
+
enableUnsafeLineSpacingHack?: boolean;
|
|
3724
|
+
};
|
|
3669
3725
|
}
|
|
3670
3726
|
|
|
3671
3727
|
declare interface SubtitleStyle {
|
|
@@ -3683,6 +3739,7 @@ declare interface SubtitleStyle {
|
|
|
3683
3739
|
scaleX?: string;
|
|
3684
3740
|
scaleY?: string;
|
|
3685
3741
|
spacing?: string;
|
|
3742
|
+
lineSpacing?: string;
|
|
3686
3743
|
angle?: string;
|
|
3687
3744
|
borderStyle?: string;
|
|
3688
3745
|
outline?: string;
|
|
@@ -3818,12 +3875,7 @@ declare interface TestOperation {
|
|
|
3818
3875
|
value: any;
|
|
3819
3876
|
}
|
|
3820
3877
|
|
|
3821
|
-
declare
|
|
3822
|
-
type: "text" | "link" | "autolink";
|
|
3823
|
-
text: string;
|
|
3824
|
-
style?: string;
|
|
3825
|
-
format?: number;
|
|
3826
|
-
}
|
|
3878
|
+
declare type TextNodeContent = FormattedTextNodeContent | LinkNodeContent;
|
|
3827
3879
|
|
|
3828
3880
|
declare interface TranscribeForEachWordReplacer {
|
|
3829
3881
|
type: "items";
|
|
@@ -40,6 +40,8 @@ type EventProps = {
|
|
|
40
40
|
source?: string;
|
|
41
41
|
cueCard?: boolean | string;
|
|
42
42
|
startTime?: number;
|
|
43
|
+
shotboxGroup?: string | string[];
|
|
44
|
+
shotboxVisible?: boolean;
|
|
43
45
|
};
|
|
44
46
|
export type EventPropsRecord = EventProps & Record<Exclude<string, keyof EventProps>, JsonValue>;
|
|
45
47
|
export interface EventOverlayRecord {
|
|
@@ -48,14 +48,19 @@ export interface EventNodeContent {
|
|
|
48
48
|
type: "event";
|
|
49
49
|
id: string;
|
|
50
50
|
mixin: string;
|
|
51
|
-
children
|
|
51
|
+
children?: EventNodeContent[];
|
|
52
52
|
}
|
|
53
|
-
export interface
|
|
54
|
-
type: "text"
|
|
53
|
+
export interface FormattedTextNodeContent {
|
|
54
|
+
type: "text";
|
|
55
55
|
text: string;
|
|
56
56
|
style?: string;
|
|
57
57
|
format?: number;
|
|
58
58
|
}
|
|
59
|
+
export interface LinkNodeContent {
|
|
60
|
+
type: "link" | "autolink";
|
|
61
|
+
children: FormattedTextNodeContent[];
|
|
62
|
+
}
|
|
63
|
+
export type TextNodeContent = FormattedTextNodeContent | LinkNodeContent;
|
|
59
64
|
export interface ElementNodeContent {
|
|
60
65
|
type: SerializedLexicalNode["type"];
|
|
61
66
|
children: TextNodeContent[];
|
|
@@ -7,6 +7,7 @@ export interface ShotboxDomainRecord {
|
|
|
7
7
|
export interface ShotboxPage {
|
|
8
8
|
stickyTopRow?: boolean;
|
|
9
9
|
inferGroups?: boolean;
|
|
10
|
+
excludeFromInferredGroups?: string[];
|
|
10
11
|
layout?: Array<ShotboxGroup[] | ShotboxGroup>;
|
|
11
12
|
}
|
|
12
13
|
export type ShotboxGroup = ShotboxEventGroup | ShotboxStreamGroup;
|