@ws-ui/store 0.2.33 → 0.2.37
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/index.cjs.js +105 -77
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4610 -4551
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/thunks.d.ts +4 -0
- package/dist/modules/model/thunks.d.ts +2 -0
- package/dist/modules/roles/types.d.ts +1 -2
- package/dist/modules/root/reducer.d.ts +5 -1
- package/dist/modules/root/thunks.d.ts +3 -0
- package/dist/modules/root/types.d.ts +1 -1
- package/dist/modules/tabs/selectors.d.ts +1 -0
- package/dist/selectors/explorer.d.ts +22 -0
- package/dist/selectors/states.d.ts +3 -0
- package/dist/selectors/styles.d.ts +1 -0
- package/dist/selectors/tabs.d.ts +3 -0
- package/dist/utils.d.ts +2 -2
- package/package.json +8 -3
|
@@ -89,6 +89,7 @@ export declare const tryEditMethod: import("@reduxjs/toolkit").AsyncThunk<ITab<a
|
|
|
89
89
|
source: import("@ws-ui/shared").ISource;
|
|
90
90
|
editor: import("@ws-ui/shared").IEditor;
|
|
91
91
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
92
|
+
kind: string;
|
|
92
93
|
}>>, {
|
|
93
94
|
method: catalog.IMethod;
|
|
94
95
|
}, {
|
|
@@ -180,6 +181,7 @@ export declare const openFile: import("@reduxjs/toolkit").AsyncThunk<ITab<any, P
|
|
|
180
181
|
source: import("@ws-ui/shared").ISource;
|
|
181
182
|
editor: import("@ws-ui/shared").IEditor;
|
|
182
183
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
184
|
+
kind: string;
|
|
183
185
|
}>> | null, IOpenFilePayload, {
|
|
184
186
|
state: AppState;
|
|
185
187
|
}>;
|
|
@@ -198,6 +200,7 @@ export declare const openFileAtLine: import("@reduxjs/toolkit").AsyncThunk<ITab<
|
|
|
198
200
|
source: import("@ws-ui/shared").ISource;
|
|
199
201
|
editor: import("@ws-ui/shared").IEditor;
|
|
200
202
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
203
|
+
kind: string;
|
|
201
204
|
}>>, {
|
|
202
205
|
file: IFileInfo;
|
|
203
206
|
line: number;
|
|
@@ -233,6 +236,7 @@ export declare const openFileAtSelection: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
233
236
|
source: import("@ws-ui/shared").ISource;
|
|
234
237
|
editor: import("@ws-ui/shared").IEditor;
|
|
235
238
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
239
|
+
kind: string;
|
|
236
240
|
}>>, IOpenFileAtSelectionPayload, {
|
|
237
241
|
state: AppState;
|
|
238
242
|
}>;
|
|
@@ -30,6 +30,7 @@ export declare const saveModel: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
30
30
|
source: import("@ws-ui/shared").ISource;
|
|
31
31
|
editor: import("@ws-ui/shared").IEditor;
|
|
32
32
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
33
|
+
kind: string;
|
|
33
34
|
}>>, AppThunkOpts<string>>;
|
|
34
35
|
export declare const openModel: import("@reduxjs/toolkit").AsyncThunk<void | ITab<any, Partial<{
|
|
35
36
|
initialLineInfo: {
|
|
@@ -46,6 +47,7 @@ export declare const openModel: import("@reduxjs/toolkit").AsyncThunk<void | ITa
|
|
|
46
47
|
source: import("@ws-ui/shared").ISource;
|
|
47
48
|
editor: import("@ws-ui/shared").IEditor;
|
|
48
49
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
50
|
+
kind: string;
|
|
49
51
|
}>>, {}, AppThunkOpts<string>>;
|
|
50
52
|
export declare const tryRenameDataclass: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
51
53
|
dataclassId: string;
|
|
@@ -11,7 +11,7 @@ export type TRawData = Partial<{
|
|
|
11
11
|
forceLogin: boolean;
|
|
12
12
|
}>;
|
|
13
13
|
export type TPermissionOption = Pick<IPermission, 'applyTo' | 'type'>;
|
|
14
|
-
export type TAction = 'read' | 'create' | 'update' | 'drop' | '
|
|
14
|
+
export type TAction = 'read' | 'create' | 'update' | 'drop' | 'execute' | 'promote';
|
|
15
15
|
export type IRolesState = ISanitized & {
|
|
16
16
|
flags: ITabFlags;
|
|
17
17
|
date?: string;
|
|
@@ -47,7 +47,6 @@ export interface IPermission {
|
|
|
47
47
|
create?: string | string[];
|
|
48
48
|
update?: string | string[];
|
|
49
49
|
drop?: string | string[];
|
|
50
|
-
describe?: string | string[];
|
|
51
50
|
execute?: string | string[];
|
|
52
51
|
promote?: string | string[];
|
|
53
52
|
}
|
|
@@ -82,6 +82,7 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
82
82
|
source: import("@ws-ui/shared").ISource;
|
|
83
83
|
editor: import("@ws-ui/shared").IEditor;
|
|
84
84
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
85
|
+
kind: string;
|
|
85
86
|
}>>[], string>, closeTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>, setContent: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
86
87
|
path: string;
|
|
87
88
|
content: any;
|
|
@@ -128,6 +129,7 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
128
129
|
source: import("@ws-ui/shared").ISource;
|
|
129
130
|
editor: import("@ws-ui/shared").IEditor;
|
|
130
131
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
132
|
+
kind: string;
|
|
131
133
|
}>> & {
|
|
132
134
|
isNew?: boolean | undefined;
|
|
133
135
|
}, string>, openTabUnselected: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITab<any, Partial<{
|
|
@@ -145,6 +147,7 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
145
147
|
source: import("@ws-ui/shared").ISource;
|
|
146
148
|
editor: import("@ws-ui/shared").IEditor;
|
|
147
149
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
150
|
+
kind: string;
|
|
148
151
|
}>>, string>, addWebFormStyles: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
149
152
|
path: string;
|
|
150
153
|
styles: IWebFormStyleClass[];
|
|
@@ -163,6 +166,7 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
163
166
|
source: import("@ws-ui/shared").ISource;
|
|
164
167
|
editor: import("@ws-ui/shared").IEditor;
|
|
165
168
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
169
|
+
kind: string;
|
|
166
170
|
}>>, string>, openSettingsTab: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
167
171
|
currentState: WebformState;
|
|
168
172
|
path: string;
|
|
@@ -186,7 +190,7 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
186
190
|
new_reference: string;
|
|
187
191
|
}, string>, removeWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
188
192
|
path: string;
|
|
189
|
-
|
|
193
|
+
state: WebformState;
|
|
190
194
|
}, string>, resetComponentState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
191
195
|
path: string;
|
|
192
196
|
id: string;
|
|
@@ -62,6 +62,7 @@ export declare const reloadTab: import("@reduxjs/toolkit").AsyncThunk<void | INo
|
|
|
62
62
|
source: import("@ws-ui/shared").ISource;
|
|
63
63
|
editor: import("@ws-ui/shared").IEditor;
|
|
64
64
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
65
|
+
kind: string;
|
|
65
66
|
}>>, {
|
|
66
67
|
state: AppState;
|
|
67
68
|
}>;
|
|
@@ -101,6 +102,7 @@ export declare const tryInjectMethod: import("@reduxjs/toolkit").AsyncThunk<ITab
|
|
|
101
102
|
source: import("@ws-ui/shared").ISource;
|
|
102
103
|
editor: import("@ws-ui/shared").IEditor;
|
|
103
104
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
105
|
+
kind: string;
|
|
104
106
|
}>> | null, {
|
|
105
107
|
name: string;
|
|
106
108
|
type?: ClassFileTypes | undefined;
|
|
@@ -124,6 +126,7 @@ export declare const openRoles: import("@reduxjs/toolkit").AsyncThunk<void | ITa
|
|
|
124
126
|
source: import("@ws-ui/shared").ISource;
|
|
125
127
|
editor: import("@ws-ui/shared").IEditor;
|
|
126
128
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
129
|
+
kind: string;
|
|
127
130
|
}>>, {}, {
|
|
128
131
|
state: AppState;
|
|
129
132
|
rejectValue: string;
|
|
@@ -55,6 +55,7 @@ export declare const selectPanelByPath: (path: string) => ((state: import("redux
|
|
|
55
55
|
source: import("@ws-ui/shared").ISource;
|
|
56
56
|
editor: import("@ws-ui/shared").IEditor;
|
|
57
57
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
58
|
+
kind: string;
|
|
58
59
|
}>>>[]) => import("immer/dist/internal.js").WritableDraft<{
|
|
59
60
|
isOpen: boolean;
|
|
60
61
|
type: string;
|
|
@@ -92,6 +92,7 @@ export declare const selectTabs: ((state: import("redux").EmptyObject & {
|
|
|
92
92
|
source: import("@ws-ui/shared").ISource;
|
|
93
93
|
editor: import("@ws-ui/shared").IEditor;
|
|
94
94
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
95
|
+
kind: string;
|
|
95
96
|
}>>>[]) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>) => import("immer/dist/internal.js").WritableDraft<ITab<any, Partial<{
|
|
96
97
|
initialLineInfo: {
|
|
97
98
|
line: number;
|
|
@@ -107,6 +108,7 @@ export declare const selectTabs: ((state: import("redux").EmptyObject & {
|
|
|
107
108
|
source: import("@ws-ui/shared").ISource;
|
|
108
109
|
editor: import("@ws-ui/shared").IEditor;
|
|
109
110
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
111
|
+
kind: string;
|
|
110
112
|
}>>>[], {
|
|
111
113
|
clearCache: () => void;
|
|
112
114
|
}> & {
|
|
@@ -204,6 +206,7 @@ export declare const selectRecentFiles: ((state: import("redux").EmptyObject & {
|
|
|
204
206
|
source: import("@ws-ui/shared").ISource;
|
|
205
207
|
editor: import("@ws-ui/shared").IEditor;
|
|
206
208
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
209
|
+
kind: string;
|
|
207
210
|
}>>>[]) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>) => import("immer/dist/internal.js").WritableDraft<ITab<any, Partial<{
|
|
208
211
|
initialLineInfo: {
|
|
209
212
|
line: number;
|
|
@@ -219,6 +222,7 @@ export declare const selectRecentFiles: ((state: import("redux").EmptyObject & {
|
|
|
219
222
|
source: import("@ws-ui/shared").ISource;
|
|
220
223
|
editor: import("@ws-ui/shared").IEditor;
|
|
221
224
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
225
|
+
kind: string;
|
|
222
226
|
}>>>[], {
|
|
223
227
|
clearCache: () => void;
|
|
224
228
|
}> & {
|
|
@@ -275,6 +279,7 @@ export declare const selectCurrentTab: ((state: import("redux").EmptyObject & {
|
|
|
275
279
|
source: import("@ws-ui/shared").ISource;
|
|
276
280
|
editor: import("@ws-ui/shared").IEditor;
|
|
277
281
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
282
|
+
kind: string;
|
|
278
283
|
}>>> | undefined) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>) => import("immer/dist/internal.js").WritableDraft<ITab<any, Partial<{
|
|
279
284
|
initialLineInfo: {
|
|
280
285
|
line: number;
|
|
@@ -290,6 +295,7 @@ export declare const selectCurrentTab: ((state: import("redux").EmptyObject & {
|
|
|
290
295
|
source: import("@ws-ui/shared").ISource;
|
|
291
296
|
editor: import("@ws-ui/shared").IEditor;
|
|
292
297
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
298
|
+
kind: string;
|
|
293
299
|
}>>> | undefined, {
|
|
294
300
|
clearCache: () => void;
|
|
295
301
|
}> & {
|
|
@@ -346,6 +352,7 @@ export declare const selectTabMaxWeight: ((state: import("redux").EmptyObject &
|
|
|
346
352
|
source: import("@ws-ui/shared").ISource;
|
|
347
353
|
editor: import("@ws-ui/shared").IEditor;
|
|
348
354
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
355
|
+
kind: string;
|
|
349
356
|
}>> | null) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>) => ITab<any, Partial<{
|
|
350
357
|
initialLineInfo: {
|
|
351
358
|
line: number;
|
|
@@ -361,6 +368,7 @@ export declare const selectTabMaxWeight: ((state: import("redux").EmptyObject &
|
|
|
361
368
|
source: import("@ws-ui/shared").ISource;
|
|
362
369
|
editor: import("@ws-ui/shared").IEditor;
|
|
363
370
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
371
|
+
kind: string;
|
|
364
372
|
}>> | null, {
|
|
365
373
|
clearCache: () => void;
|
|
366
374
|
}> & {
|
|
@@ -417,6 +425,7 @@ export declare const selectPreviewedWebformsPaths: ((state: import("redux").Empt
|
|
|
417
425
|
source: import("@ws-ui/shared").ISource;
|
|
418
426
|
editor: import("@ws-ui/shared").IEditor;
|
|
419
427
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
428
|
+
kind: string;
|
|
420
429
|
}>>>[]) => string[], {
|
|
421
430
|
clearCache: () => void;
|
|
422
431
|
}> & {
|
|
@@ -473,6 +482,7 @@ export declare const selectHasTabs: ((state: import("redux").EmptyObject & {
|
|
|
473
482
|
source: import("@ws-ui/shared").ISource;
|
|
474
483
|
editor: import("@ws-ui/shared").IEditor;
|
|
475
484
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
485
|
+
kind: string;
|
|
476
486
|
}>>>[]) => boolean, {
|
|
477
487
|
clearCache: () => void;
|
|
478
488
|
}> & {
|
|
@@ -529,6 +539,7 @@ export declare const selectTabByPath: (tabPath: string) => ((state: import("redu
|
|
|
529
539
|
source: import("@ws-ui/shared").ISource;
|
|
530
540
|
editor: import("@ws-ui/shared").IEditor;
|
|
531
541
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
542
|
+
kind: string;
|
|
532
543
|
}>>> | undefined) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>) => import("immer/dist/internal.js").WritableDraft<ITab<any, Partial<{
|
|
533
544
|
initialLineInfo: {
|
|
534
545
|
line: number;
|
|
@@ -544,6 +555,7 @@ export declare const selectTabByPath: (tabPath: string) => ((state: import("redu
|
|
|
544
555
|
source: import("@ws-ui/shared").ISource;
|
|
545
556
|
editor: import("@ws-ui/shared").IEditor;
|
|
546
557
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
558
|
+
kind: string;
|
|
547
559
|
}>>> | undefined, {
|
|
548
560
|
clearCache: () => void;
|
|
549
561
|
}> & {
|
|
@@ -600,6 +612,7 @@ export declare const selectContentByPath: (tabPath: string, contentPath?: string
|
|
|
600
612
|
source: import("@ws-ui/shared").ISource;
|
|
601
613
|
editor: import("@ws-ui/shared").IEditor;
|
|
602
614
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
615
|
+
kind: string;
|
|
603
616
|
}>>> | undefined) => any, {
|
|
604
617
|
clearCache: () => void;
|
|
605
618
|
}> & {
|
|
@@ -656,6 +669,7 @@ export declare const selectTabExtraByPath: (tabPath: string) => ((state: import(
|
|
|
656
669
|
source: import("@ws-ui/shared").ISource;
|
|
657
670
|
editor: import("@ws-ui/shared").IEditor;
|
|
658
671
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
672
|
+
kind: string;
|
|
659
673
|
}>> | undefined) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<ITab<any, Partial<{
|
|
660
674
|
initialLineInfo: {
|
|
661
675
|
line: number;
|
|
@@ -671,6 +685,7 @@ export declare const selectTabExtraByPath: (tabPath: string) => ((state: import(
|
|
|
671
685
|
source: import("@ws-ui/shared").ISource;
|
|
672
686
|
editor: import("@ws-ui/shared").IEditor;
|
|
673
687
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
688
|
+
kind: string;
|
|
674
689
|
}>>> | undefined) => import("immer/dist/internal.js").WritableDraft<Partial<{
|
|
675
690
|
initialLineInfo: {
|
|
676
691
|
line: number;
|
|
@@ -686,6 +701,7 @@ export declare const selectTabExtraByPath: (tabPath: string) => ((state: import(
|
|
|
686
701
|
source: import("@ws-ui/shared").ISource;
|
|
687
702
|
editor: import("@ws-ui/shared").IEditor;
|
|
688
703
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
704
|
+
kind: string;
|
|
689
705
|
}>> | undefined, {
|
|
690
706
|
clearCache: () => void;
|
|
691
707
|
}> & {
|
|
@@ -783,6 +799,7 @@ export declare const selectTouchedTabs: ((state: import("redux").EmptyObject & {
|
|
|
783
799
|
source: import("@ws-ui/shared").ISource;
|
|
784
800
|
editor: import("@ws-ui/shared").IEditor;
|
|
785
801
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
802
|
+
kind: string;
|
|
786
803
|
}>>>[]) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<ITab<any, Partial<{
|
|
787
804
|
initialLineInfo: {
|
|
788
805
|
line: number;
|
|
@@ -798,6 +815,7 @@ export declare const selectTouchedTabs: ((state: import("redux").EmptyObject & {
|
|
|
798
815
|
source: import("@ws-ui/shared").ISource;
|
|
799
816
|
editor: import("@ws-ui/shared").IEditor;
|
|
800
817
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
818
|
+
kind: string;
|
|
801
819
|
}>>>[]) => import("immer/dist/internal.js").WritableDraft<ITab<any, Partial<{
|
|
802
820
|
initialLineInfo: {
|
|
803
821
|
line: number;
|
|
@@ -813,6 +831,7 @@ export declare const selectTouchedTabs: ((state: import("redux").EmptyObject & {
|
|
|
813
831
|
source: import("@ws-ui/shared").ISource;
|
|
814
832
|
editor: import("@ws-ui/shared").IEditor;
|
|
815
833
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
834
|
+
kind: string;
|
|
816
835
|
}>>>[], {
|
|
817
836
|
clearCache: () => void;
|
|
818
837
|
}> & {
|
|
@@ -869,6 +888,7 @@ export declare const selectTouchedTabsLength: ((state: import("redux").EmptyObje
|
|
|
869
888
|
source: import("@ws-ui/shared").ISource;
|
|
870
889
|
editor: import("@ws-ui/shared").IEditor;
|
|
871
890
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
891
|
+
kind: string;
|
|
872
892
|
}>>>[]) => number, {
|
|
873
893
|
clearCache: () => void;
|
|
874
894
|
}> & {
|
|
@@ -925,6 +945,7 @@ export declare const selectDebuggers: ((state: import("redux").EmptyObject & {
|
|
|
925
945
|
source: import("@ws-ui/shared").ISource;
|
|
926
946
|
editor: import("@ws-ui/shared").IEditor;
|
|
927
947
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
948
|
+
kind: string;
|
|
928
949
|
}>>[]) & import("reselect").OutputSelectorFields<(args_0: import("../modules").IDebuggerSession[]) => ITab<any, Partial<{
|
|
929
950
|
initialLineInfo: {
|
|
930
951
|
line: number;
|
|
@@ -940,6 +961,7 @@ export declare const selectDebuggers: ((state: import("redux").EmptyObject & {
|
|
|
940
961
|
source: import("@ws-ui/shared").ISource;
|
|
941
962
|
editor: import("@ws-ui/shared").IEditor;
|
|
942
963
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
964
|
+
kind: string;
|
|
943
965
|
}>>[], {
|
|
944
966
|
clearCache: () => void;
|
|
945
967
|
}> & {
|
|
@@ -62,6 +62,7 @@ export declare const selectWebformStatesByPath: (tabPath: string, exclude?: stri
|
|
|
62
62
|
source: import("@ws-ui/shared").ISource;
|
|
63
63
|
editor: import("@ws-ui/shared").IEditor;
|
|
64
64
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
65
|
+
kind: string;
|
|
65
66
|
}>>> | undefined) => WebformState[], {
|
|
66
67
|
clearCache: () => void;
|
|
67
68
|
}> & {
|
|
@@ -170,6 +171,7 @@ export declare const selectDefaultWebformStatesByPath: (tabPath: string) => ((st
|
|
|
170
171
|
source: import("@ws-ui/shared").ISource;
|
|
171
172
|
editor: import("@ws-ui/shared").IEditor;
|
|
172
173
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
174
|
+
kind: string;
|
|
173
175
|
}>>> | undefined) => string[], {
|
|
174
176
|
clearCache: () => void;
|
|
175
177
|
}> & {
|
|
@@ -226,6 +228,7 @@ export declare const selectCurrentWebformStateByPath: (tabPath: string) => ((sta
|
|
|
226
228
|
source: import("@ws-ui/shared").ISource;
|
|
227
229
|
editor: import("@ws-ui/shared").IEditor;
|
|
228
230
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
231
|
+
kind: string;
|
|
229
232
|
}>>> | undefined) => WebformState, {
|
|
230
233
|
clearCache: () => void;
|
|
231
234
|
}> & {
|
|
@@ -53,6 +53,7 @@ export declare const selectWebformStylesByPath: (path: string) => ((state: impor
|
|
|
53
53
|
source: import("@ws-ui/shared").ISource;
|
|
54
54
|
editor: import("@ws-ui/shared").IEditor;
|
|
55
55
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
56
|
+
kind: string;
|
|
56
57
|
}>>> | undefined) => IWebFormStyleClass[], {
|
|
57
58
|
clearCache: () => void;
|
|
58
59
|
}> & {
|
package/dist/selectors/tabs.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export declare const selectFlagsByPath: (path: string) => ((state: import("redux
|
|
|
58
58
|
source: import("@ws-ui/shared").ISource;
|
|
59
59
|
editor: import("@ws-ui/shared").IEditor;
|
|
60
60
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
61
|
+
kind: string;
|
|
61
62
|
}>>> | undefined) => import("immer/dist/internal.js").WritableDraft<Partial<{
|
|
62
63
|
touched: boolean;
|
|
63
64
|
removed: boolean;
|
|
@@ -126,6 +127,7 @@ export declare const selectHistoryByPath: (path: string) => ((state: import("red
|
|
|
126
127
|
source: import("@ws-ui/shared").ISource;
|
|
127
128
|
editor: import("@ws-ui/shared").IEditor;
|
|
128
129
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
130
|
+
kind: string;
|
|
129
131
|
}>>> | undefined) => import("immer/dist/internal.js").WritableDraft<{
|
|
130
132
|
stack: any[];
|
|
131
133
|
active: number;
|
|
@@ -189,6 +191,7 @@ export declare const selectActiveTabHistoryActions: ((state: import("redux").Emp
|
|
|
189
191
|
source: import("@ws-ui/shared").ISource;
|
|
190
192
|
editor: import("@ws-ui/shared").IEditor;
|
|
191
193
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
194
|
+
kind: string;
|
|
192
195
|
}>>> | undefined) => {
|
|
193
196
|
canUndo: boolean;
|
|
194
197
|
canRedo: boolean;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITab, WebformStateCondition } from '@ws-ui/shared';
|
|
1
|
+
import { ITab, WebformState, WebformStateCondition } from '@ws-ui/shared';
|
|
2
2
|
import { AppState } from './modules';
|
|
3
3
|
import { IRootState } from './modules/root/types';
|
|
4
4
|
import { ModelNode, ServerModel } from './modules/model/types';
|
|
@@ -15,5 +15,5 @@ export declare function getModalTitle(tab: ITab): string;
|
|
|
15
15
|
export declare const deserializeModel: (data: ServerModel | undefined) => ModelNode[];
|
|
16
16
|
export declare function isJSON(extension?: string): boolean;
|
|
17
17
|
export declare const refactorConditions: (condition: WebformStateCondition, stateLabel: string | undefined, newValue?: string) => WebformStateCondition;
|
|
18
|
-
export declare function refactorWebform(content: ITab['content'],
|
|
18
|
+
export declare function refactorWebform(content: ITab['content'], state: WebformState): any;
|
|
19
19
|
export declare const selectorEqualityFn: (left: unknown, right: unknown) => boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.37",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"format": "prettier --write src",
|
|
17
17
|
"postbuild": "yalc push --changed",
|
|
18
18
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
19
|
-
"preview": "vite preview"
|
|
19
|
+
"preview": "vite preview",
|
|
20
|
+
"test": "jest"
|
|
20
21
|
},
|
|
21
22
|
"overrides": {
|
|
22
23
|
"@ws-ui/shared": {
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
31
32
|
"@ws-ui/icons": "^0.0.29",
|
|
32
|
-
"@ws-ui/shared": "^0.2.
|
|
33
|
+
"@ws-ui/shared": "^0.2.30",
|
|
33
34
|
"lodash": "^4.17.21",
|
|
34
35
|
"minimatch": "^5.1.0",
|
|
35
36
|
"react": "^17.0.2",
|
|
@@ -41,6 +42,8 @@
|
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@esbuild/darwin-arm64": "^0.21.4",
|
|
43
44
|
"@jest/globals": "^29.7.0",
|
|
45
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
46
|
+
"@testing-library/react": "^12.1.5",
|
|
44
47
|
"@types/jest": "^29.5.5",
|
|
45
48
|
"@types/lodash": "^4.14.199",
|
|
46
49
|
"@types/minimatch": "^3.0.5",
|
|
@@ -54,7 +57,9 @@
|
|
|
54
57
|
"eslint": "^8.45.0",
|
|
55
58
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
56
59
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
60
|
+
"jest": "^29.7.0",
|
|
57
61
|
"prettier": "3.0.3",
|
|
62
|
+
"ts-jest": "^29.1.2",
|
|
58
63
|
"typescript": "^5.0.2",
|
|
59
64
|
"vite": "^4.4.5",
|
|
60
65
|
"vite-plugin-dts": "^3.5.4",
|