@nxtedition/types 23.0.58 → 23.0.60
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/settings.d.ts +16 -1
- package/dist/nxtpression.d.ts +25 -2
- package/dist/records/domains/script.d.ts +4 -0
- package/dist/records/domains/search.d.ts +1 -0
- package/dist/records/utils.d.ts +4 -1
- package/dist/records/utils.tds.js +11 -8
- package/dist/records/validate/assert-guard.js +474 -344
- package/dist/records/validate/assert.js +474 -344
- package/dist/records/validate/is.js +26 -26
- package/dist/records/validate/schemas.js +104 -2
- package/dist/records/validate/stringify.js +45 -45
- package/dist/records/validate/validate-equals.js +607 -411
- package/dist/records/validate/validate.js +444 -340
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export interface Settings {
|
|
|
10
10
|
overrideUserLogin?: boolean;
|
|
11
11
|
};
|
|
12
12
|
module?: {
|
|
13
|
+
editor?: string;
|
|
13
14
|
tabs?: ModuleTabs;
|
|
14
15
|
};
|
|
15
16
|
upload?: {
|
|
@@ -39,6 +40,7 @@ export interface Settings {
|
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
42
|
toolbarTags?: {
|
|
43
|
+
include?: string[];
|
|
42
44
|
exclude?: string[];
|
|
43
45
|
};
|
|
44
46
|
/**
|
|
@@ -74,6 +76,10 @@ export interface Settings {
|
|
|
74
76
|
dashboard?: {
|
|
75
77
|
maxMru?: number;
|
|
76
78
|
maxTabs?: number;
|
|
79
|
+
layout?: {
|
|
80
|
+
bookmarks?: number;
|
|
81
|
+
browser?: number;
|
|
82
|
+
};
|
|
77
83
|
};
|
|
78
84
|
script?: {
|
|
79
85
|
createMenu?: {
|
|
@@ -104,6 +110,7 @@ export interface Settings {
|
|
|
104
110
|
gallery?: {
|
|
105
111
|
dimOnBlur?: boolean;
|
|
106
112
|
float?: "rundown" | "gallery" | "disabled";
|
|
113
|
+
countFloatedDuration?: boolean;
|
|
107
114
|
};
|
|
108
115
|
history?: boolean;
|
|
109
116
|
keymap?: {
|
|
@@ -308,6 +315,12 @@ export interface Settings {
|
|
|
308
315
|
};
|
|
309
316
|
};
|
|
310
317
|
suppressDeleteAlert?: boolean;
|
|
318
|
+
clone?: {
|
|
319
|
+
duplicate?: {
|
|
320
|
+
titlePrefix?: string;
|
|
321
|
+
titleSuffix?: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
311
324
|
utilsAssetEditorPanel?: {
|
|
312
325
|
stateFilter?: number[];
|
|
313
326
|
textFilter?: string;
|
|
@@ -323,7 +336,9 @@ interface ModuleTabs {
|
|
|
323
336
|
settingsPanelStore?: SettingsPanelStoreTab;
|
|
324
337
|
}
|
|
325
338
|
interface ModuleTabsSettingsValue {
|
|
326
|
-
activeTab?: string;
|
|
339
|
+
activeTab?: string | null;
|
|
340
|
+
priority?: number;
|
|
341
|
+
height?: number | null;
|
|
327
342
|
}
|
|
328
343
|
interface SettingsPanelStoreTab extends ModuleTabsSettingsValue {
|
|
329
344
|
activeSectionIndex?: number;
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -1027,7 +1027,10 @@ declare interface GeneralTitleRecord {
|
|
|
1027
1027
|
|
|
1028
1028
|
declare type Get<Data, Path extends string> = Path extends keyof Data ? Data[Path] : unknown;
|
|
1029
1029
|
|
|
1030
|
-
declare type GettablePossibleEmpty<Data> = keyof Data extends never ? EmptyObject :
|
|
1030
|
+
declare type GettablePossibleEmpty<Data> = keyof Data extends never ? EmptyObject : // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1031
|
+
Partial<Data> & {
|
|
1032
|
+
[key: string]: any;
|
|
1033
|
+
} extends Data ? Data : SingleKeyObject<Data> extends never ? Data | EmptyObject : {
|
|
1031
1034
|
[K in keyof Data]+?: Data[K];
|
|
1032
1035
|
};
|
|
1033
1036
|
|
|
@@ -1536,7 +1539,9 @@ declare interface ModuleTabs {
|
|
|
1536
1539
|
}
|
|
1537
1540
|
|
|
1538
1541
|
declare interface ModuleTabsSettingsValue {
|
|
1539
|
-
activeTab?: string;
|
|
1542
|
+
activeTab?: string | null;
|
|
1543
|
+
priority?: number;
|
|
1544
|
+
height?: number | null;
|
|
1540
1545
|
}
|
|
1541
1546
|
|
|
1542
1547
|
declare interface MonitorDomainRecords {
|
|
@@ -2546,6 +2551,10 @@ declare interface ScriptEditorStateRevisionRecord {
|
|
|
2546
2551
|
|
|
2547
2552
|
declare interface ScriptRecord {
|
|
2548
2553
|
value: YjsSnapshot;
|
|
2554
|
+
refs?: {
|
|
2555
|
+
mixin: string;
|
|
2556
|
+
asset?: string;
|
|
2557
|
+
}[];
|
|
2549
2558
|
}
|
|
2550
2559
|
|
|
2551
2560
|
declare interface ScriptRevision {
|
|
@@ -2616,6 +2625,7 @@ declare interface SearchRecord {
|
|
|
2616
2625
|
};
|
|
2617
2626
|
refreshInterval?: number;
|
|
2618
2627
|
color?: string;
|
|
2628
|
+
icon?: string;
|
|
2619
2629
|
}
|
|
2620
2630
|
|
|
2621
2631
|
declare interface SearchRecordProvided {
|
|
@@ -2724,6 +2734,7 @@ declare interface Settings {
|
|
|
2724
2734
|
overrideUserLogin?: boolean;
|
|
2725
2735
|
};
|
|
2726
2736
|
module?: {
|
|
2737
|
+
editor?: string;
|
|
2727
2738
|
tabs?: ModuleTabs;
|
|
2728
2739
|
};
|
|
2729
2740
|
upload?: {
|
|
@@ -2753,6 +2764,7 @@ declare interface Settings {
|
|
|
2753
2764
|
};
|
|
2754
2765
|
};
|
|
2755
2766
|
toolbarTags?: {
|
|
2767
|
+
include?: string[];
|
|
2756
2768
|
exclude?: string[];
|
|
2757
2769
|
};
|
|
2758
2770
|
/**
|
|
@@ -2788,6 +2800,10 @@ declare interface Settings {
|
|
|
2788
2800
|
dashboard?: {
|
|
2789
2801
|
maxMru?: number;
|
|
2790
2802
|
maxTabs?: number;
|
|
2803
|
+
layout?: {
|
|
2804
|
+
bookmarks?: number;
|
|
2805
|
+
browser?: number;
|
|
2806
|
+
};
|
|
2791
2807
|
};
|
|
2792
2808
|
script?: {
|
|
2793
2809
|
createMenu?: {
|
|
@@ -2818,6 +2834,7 @@ declare interface Settings {
|
|
|
2818
2834
|
gallery?: {
|
|
2819
2835
|
dimOnBlur?: boolean;
|
|
2820
2836
|
float?: "rundown" | "gallery" | "disabled";
|
|
2837
|
+
countFloatedDuration?: boolean;
|
|
2821
2838
|
};
|
|
2822
2839
|
history?: boolean;
|
|
2823
2840
|
keymap?: {
|
|
@@ -3022,6 +3039,12 @@ declare interface Settings {
|
|
|
3022
3039
|
};
|
|
3023
3040
|
};
|
|
3024
3041
|
suppressDeleteAlert?: boolean;
|
|
3042
|
+
clone?: {
|
|
3043
|
+
duplicate?: {
|
|
3044
|
+
titlePrefix?: string;
|
|
3045
|
+
titleSuffix?: string;
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
3025
3048
|
utilsAssetEditorPanel?: {
|
|
3026
3049
|
stateFilter?: number[];
|
|
3027
3050
|
textFilter?: string;
|
package/dist/records/utils.d.ts
CHANGED
|
@@ -25,7 +25,10 @@ declare const providedRecordSymbol: unique symbol;
|
|
|
25
25
|
export type ProvidedRecord<T> = T & {
|
|
26
26
|
[providedRecordSymbol]: never;
|
|
27
27
|
};
|
|
28
|
-
export type GettablePossibleEmpty<Data> = keyof Data extends never ? EmptyObject :
|
|
28
|
+
export type GettablePossibleEmpty<Data> = keyof Data extends never ? EmptyObject : // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
|
+
Partial<Data> & {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
} extends Data ? Data : SingleKeyObject<Data> extends never ? Data | EmptyObject : {
|
|
29
32
|
[K in keyof Data]+?: Data[K];
|
|
30
33
|
};
|
|
31
34
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { expectType } from 'tsd';
|
|
2
|
-
const getType = (
|
|
3
|
-
|
|
4
|
-
expectType(
|
|
5
|
-
expectType(
|
|
6
|
-
expectType(
|
|
7
|
-
expectType(
|
|
8
|
-
expectType(
|
|
9
|
-
expectType(
|
|
2
|
+
const getType = () => null;
|
|
3
|
+
const getRecordType = (_) => getType();
|
|
4
|
+
expectType(getRecordType("asset.tags"));
|
|
5
|
+
expectType(getRecordType(":user"));
|
|
6
|
+
expectType(getRecordType("id:user.receivedNotifications?"));
|
|
7
|
+
expectType(getRecordType("id:user.receivedNotifications?limit=2"));
|
|
8
|
+
expectType(getRecordType("{}:search?"));
|
|
9
|
+
expectType(getRecordType("id:general.title"));
|
|
10
|
+
expectType(getRecordType("id:file.replicate"));
|
|
11
|
+
expectType(getRecordType("id:general.status"));
|
|
12
|
+
expectType(getType());
|