@nxtedition/types 23.0.62 → 23.0.63
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 +12 -0
- package/dist/common/subtitle-style.d.ts +1 -0
- package/dist/nxtpression.d.ts +45 -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 +1061 -613
- package/dist/records/validate/assert.js +1061 -613
- package/dist/records/validate/is.js +72 -63
- package/dist/records/validate/schemas.d.ts +9 -6
- package/dist/records/validate/schemas.js +844 -859
- package/dist/records/validate/stringify.js +156 -114
- package/dist/records/validate/validate-equals.js +1473 -743
- package/dist/records/validate/validate.js +963 -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;
|
|
@@ -326,6 +331,10 @@ export interface Settings {
|
|
|
326
331
|
};
|
|
327
332
|
suppressDeleteAlert?: boolean;
|
|
328
333
|
clone?: {
|
|
334
|
+
create?: {
|
|
335
|
+
titlePrefix?: string;
|
|
336
|
+
titleSuffix?: string;
|
|
337
|
+
};
|
|
329
338
|
duplicate?: {
|
|
330
339
|
titlePrefix?: string;
|
|
331
340
|
titleSuffix?: string;
|
|
@@ -345,6 +354,9 @@ export interface Settings {
|
|
|
345
354
|
bookmarks?: {
|
|
346
355
|
refreshInterval?: number;
|
|
347
356
|
};
|
|
357
|
+
shotbox?: {
|
|
358
|
+
layout?: string;
|
|
359
|
+
};
|
|
348
360
|
}
|
|
349
361
|
export type SettingsPaths = Paths<Settings>;
|
|
350
362
|
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;
|
|
@@ -3285,6 +3304,10 @@ declare interface Settings {
|
|
|
3285
3304
|
};
|
|
3286
3305
|
suppressDeleteAlert?: boolean;
|
|
3287
3306
|
clone?: {
|
|
3307
|
+
create?: {
|
|
3308
|
+
titlePrefix?: string;
|
|
3309
|
+
titleSuffix?: string;
|
|
3310
|
+
};
|
|
3288
3311
|
duplicate?: {
|
|
3289
3312
|
titlePrefix?: string;
|
|
3290
3313
|
titleSuffix?: string;
|
|
@@ -3304,6 +3327,9 @@ declare interface Settings {
|
|
|
3304
3327
|
bookmarks?: {
|
|
3305
3328
|
refreshInterval?: number;
|
|
3306
3329
|
};
|
|
3330
|
+
shotbox?: {
|
|
3331
|
+
layout?: string;
|
|
3332
|
+
};
|
|
3307
3333
|
}
|
|
3308
3334
|
|
|
3309
3335
|
declare interface SettingsDomainRecords {
|
|
@@ -3351,6 +3377,7 @@ declare type ShotboxGroup = ShotboxEventGroup | ShotboxStreamGroup;
|
|
|
3351
3377
|
declare interface ShotboxPage {
|
|
3352
3378
|
stickyTopRow?: boolean;
|
|
3353
3379
|
inferGroups?: boolean;
|
|
3380
|
+
excludeFromInferredGroups?: string[];
|
|
3354
3381
|
layout?: Array<ShotboxGroup[] | ShotboxGroup>;
|
|
3355
3382
|
}
|
|
3356
3383
|
|
|
@@ -3666,6 +3693,21 @@ declare interface SubtitleProfile {
|
|
|
3666
3693
|
* Will pick styling from the corresponding `${style}:subtitle-style` asset.
|
|
3667
3694
|
*/
|
|
3668
3695
|
style?: string;
|
|
3696
|
+
ccconverter?: {
|
|
3697
|
+
/**
|
|
3698
|
+
* This is an ID, which will be used to find a matching `${preset}:ccconverter-preset` record,
|
|
3699
|
+
* with settings to pass to ccconverter. If not set, `lang` will be used as a preset ID.
|
|
3700
|
+
*/
|
|
3701
|
+
preset?: string;
|
|
3702
|
+
};
|
|
3703
|
+
/**
|
|
3704
|
+
* Options to pass to encodeASS when generating subtitles for burn-in.
|
|
3705
|
+
*/
|
|
3706
|
+
ass?: {
|
|
3707
|
+
futureWordWrapping?: boolean;
|
|
3708
|
+
scaledBorderAndShadow?: boolean;
|
|
3709
|
+
enableUnsafeLineSpacingHack?: boolean;
|
|
3710
|
+
};
|
|
3669
3711
|
}
|
|
3670
3712
|
|
|
3671
3713
|
declare interface SubtitleStyle {
|
|
@@ -3683,6 +3725,7 @@ declare interface SubtitleStyle {
|
|
|
3683
3725
|
scaleX?: string;
|
|
3684
3726
|
scaleY?: string;
|
|
3685
3727
|
spacing?: string;
|
|
3728
|
+
lineSpacing?: string;
|
|
3686
3729
|
angle?: string;
|
|
3687
3730
|
borderStyle?: string;
|
|
3688
3731
|
outline?: string;
|
|
@@ -3818,12 +3861,7 @@ declare interface TestOperation {
|
|
|
3818
3861
|
value: any;
|
|
3819
3862
|
}
|
|
3820
3863
|
|
|
3821
|
-
declare
|
|
3822
|
-
type: "text" | "link" | "autolink";
|
|
3823
|
-
text: string;
|
|
3824
|
-
style?: string;
|
|
3825
|
-
format?: number;
|
|
3826
|
-
}
|
|
3864
|
+
declare type TextNodeContent = FormattedTextNodeContent | LinkNodeContent;
|
|
3827
3865
|
|
|
3828
3866
|
declare interface TranscribeForEachWordReplacer {
|
|
3829
3867
|
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;
|