@ws-ui/store 0.1.18 → 0.1.20
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 +33 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4793 -4717
- package/dist/index.es.js.map +1 -1
- package/dist/modules/root/reducer.d.ts +5 -1
- package/dist/modules/root/thunks.d.ts +7 -0
- package/dist/selectors/settings.d.ts +44 -6
- package/dist/selectors/tabs.d.ts +124 -0
- package/package.json +2 -2
|
@@ -49,6 +49,10 @@ export declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/
|
|
|
49
49
|
styles: IWebFormStyleClass[];
|
|
50
50
|
}>): void;
|
|
51
51
|
changeTabEditor(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<ITab>): import("immer/dist/internal.js").WritableDraft<IRootState>;
|
|
52
|
+
setHistoryContent(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
53
|
+
unlockHistory(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<string>): void;
|
|
54
|
+
undo(state: import("immer/dist/internal.js").WritableDraft<IRootState>): void;
|
|
55
|
+
redo(state: import("immer/dist/internal.js").WritableDraft<IRootState>): void;
|
|
52
56
|
}, "root">;
|
|
53
57
|
export declare const setTabs: import("@reduxjs/toolkit").ActionCreatorWithPayload<ITab<any, Partial<{
|
|
54
58
|
initialLineInfo: {
|
|
@@ -162,5 +166,5 @@ export declare const setTabs: import("@reduxjs/toolkit").ActionCreatorWithPayloa
|
|
|
162
166
|
}, string>, removeWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
163
167
|
path: string;
|
|
164
168
|
id: string;
|
|
165
|
-
}, string>;
|
|
169
|
+
}, string>, setHistoryContent: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, unlockHistory: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, undo: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, redo: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
166
170
|
export default stateSlice;
|
|
@@ -73,6 +73,13 @@ export declare const saveTab: import("@reduxjs/toolkit").AsyncThunk<SaveTabRetur
|
|
|
73
73
|
}, {
|
|
74
74
|
state: AppState;
|
|
75
75
|
}>;
|
|
76
|
+
export declare const setTabContent: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
77
|
+
path: string;
|
|
78
|
+
content: any;
|
|
79
|
+
contentPath?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
state: AppState;
|
|
82
|
+
}>;
|
|
76
83
|
export declare const tryInjectMethod: import("@reduxjs/toolkit").AsyncThunk<ITab<any, Partial<{
|
|
77
84
|
initialLineInfo: {
|
|
78
85
|
line: number;
|
|
@@ -43,7 +43,7 @@ export declare const selectSessionSettings: ((state: import("redux").EmptyObject
|
|
|
43
43
|
}> & {
|
|
44
44
|
clearCache: () => void;
|
|
45
45
|
};
|
|
46
|
-
export declare const selectPartialSessionSettings: (...keys:
|
|
46
|
+
export declare const selectPartialSessionSettings: <T extends string[]>(...keys: T) => ((state: import("redux").EmptyObject & {
|
|
47
47
|
root: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>;
|
|
48
48
|
explorer: import("immer/dist/internal.js").WritableDraft<import("../modules").ITreeItem>[];
|
|
49
49
|
debugger: import("../modules").IDebuggerState;
|
|
@@ -78,13 +78,51 @@ export declare const selectPartialSessionSettings: (...keys: string[]) => ((stat
|
|
|
78
78
|
modals: import("../modules").IModalsState;
|
|
79
79
|
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
80
80
|
model: import("../modules").IModelState;
|
|
81
|
-
}) => {
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
}) & import("reselect").OutputSelectorFields<(args_0: {
|
|
81
|
+
}) => { [K in T[number]]: unknown; }) & import("reselect").OutputSelectorFields<(args_0: {
|
|
84
82
|
[key: string]: any;
|
|
85
|
-
}) => {
|
|
83
|
+
}) => { [K in T[number]]: unknown; }, {
|
|
84
|
+
clearCache: () => void;
|
|
85
|
+
}> & {
|
|
86
|
+
clearCache: () => void;
|
|
87
|
+
};
|
|
88
|
+
export declare const selectSessionSetting: <T = string>(key: string) => ((state: import("redux").EmptyObject & {
|
|
89
|
+
root: import("immer/dist/internal.js").WritableDraft<import("../modules").IRootState>;
|
|
90
|
+
explorer: import("immer/dist/internal.js").WritableDraft<import("../modules").ITreeItem>[];
|
|
91
|
+
debugger: import("../modules").IDebuggerState;
|
|
92
|
+
settings: import("../modules").ISettingsState;
|
|
93
|
+
catalog: {
|
|
94
|
+
state: "loading";
|
|
95
|
+
} | {
|
|
96
|
+
state: "loaded";
|
|
97
|
+
model: datasources.IEnhancedCatalog;
|
|
98
|
+
} | {
|
|
99
|
+
state: "error";
|
|
100
|
+
error: string;
|
|
101
|
+
};
|
|
102
|
+
roles: {
|
|
103
|
+
flags: {
|
|
104
|
+
touched?: boolean | undefined;
|
|
105
|
+
removed?: boolean | undefined;
|
|
106
|
+
pinned?: boolean | undefined;
|
|
107
|
+
loading?: boolean | undefined;
|
|
108
|
+
old?: boolean | undefined;
|
|
109
|
+
enabled?: boolean | undefined;
|
|
110
|
+
confirmed?: boolean | undefined;
|
|
111
|
+
};
|
|
112
|
+
date?: string | undefined;
|
|
113
|
+
privileges: import("../modules").TById;
|
|
114
|
+
roles: import("../modules").TRolesDict;
|
|
115
|
+
forceLogin?: boolean | undefined;
|
|
116
|
+
selectedTab: "roles" | "privileges";
|
|
117
|
+
};
|
|
118
|
+
sharedDatasources: import("../modules").ISharedDatasourcesState;
|
|
119
|
+
webforms: import("../modules").IWebformEditorState;
|
|
120
|
+
modals: import("../modules").IModalsState;
|
|
121
|
+
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("../modules").ISharedCSSState>;
|
|
122
|
+
model: import("../modules").IModelState;
|
|
123
|
+
}) => T) & import("reselect").OutputSelectorFields<(args_0: {
|
|
86
124
|
[key: string]: any;
|
|
87
|
-
}, {
|
|
125
|
+
}) => T, {
|
|
88
126
|
clearCache: () => void;
|
|
89
127
|
}> & {
|
|
90
128
|
clearCache: () => void;
|
package/dist/selectors/tabs.d.ts
CHANGED
|
@@ -70,3 +70,127 @@ export declare const selectFlagsByPath: (path: string) => ((state: import("redux
|
|
|
70
70
|
}> & {
|
|
71
71
|
clearCache: () => void;
|
|
72
72
|
};
|
|
73
|
+
export declare const selectHistoryByPath: (path: string) => ((state: import("redux").EmptyObject & {
|
|
74
|
+
root: import("immer/dist/internal.js").WritableDraft<import("..").IRootState>;
|
|
75
|
+
explorer: import("immer/dist/internal.js").WritableDraft<import("..").ITreeItem>[];
|
|
76
|
+
debugger: import("..").IDebuggerState;
|
|
77
|
+
settings: import("..").ISettingsState;
|
|
78
|
+
catalog: {
|
|
79
|
+
state: "loading";
|
|
80
|
+
} | {
|
|
81
|
+
state: "loaded";
|
|
82
|
+
model: datasources.IEnhancedCatalog;
|
|
83
|
+
} | {
|
|
84
|
+
state: "error";
|
|
85
|
+
error: string;
|
|
86
|
+
};
|
|
87
|
+
roles: {
|
|
88
|
+
flags: {
|
|
89
|
+
touched?: boolean | undefined;
|
|
90
|
+
removed?: boolean | undefined;
|
|
91
|
+
pinned?: boolean | undefined;
|
|
92
|
+
loading?: boolean | undefined;
|
|
93
|
+
old?: boolean | undefined;
|
|
94
|
+
enabled?: boolean | undefined;
|
|
95
|
+
confirmed?: boolean | undefined;
|
|
96
|
+
};
|
|
97
|
+
date?: string | undefined;
|
|
98
|
+
privileges: import("..").TById;
|
|
99
|
+
roles: import("..").TRolesDict;
|
|
100
|
+
forceLogin?: boolean | undefined;
|
|
101
|
+
selectedTab: "roles" | "privileges";
|
|
102
|
+
};
|
|
103
|
+
sharedDatasources: import("..").ISharedDatasourcesState;
|
|
104
|
+
webforms: import("..").IWebformEditorState;
|
|
105
|
+
modals: import("..").IModalsState;
|
|
106
|
+
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("..").ISharedCSSState>;
|
|
107
|
+
model: import("..").IModelState;
|
|
108
|
+
}) => import("immer/dist/internal.js").WritableDraft<{
|
|
109
|
+
stack: any[];
|
|
110
|
+
active: number;
|
|
111
|
+
locked: boolean;
|
|
112
|
+
}> | undefined) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("@ws-ui/shared").ITab<any, Partial<{
|
|
113
|
+
initialLineInfo: {
|
|
114
|
+
line: number;
|
|
115
|
+
offset?: number | undefined;
|
|
116
|
+
lastModification: number;
|
|
117
|
+
};
|
|
118
|
+
initialSelectionInfo: {
|
|
119
|
+
selection: import("@ws-ui/shared").ITextEditorSelection;
|
|
120
|
+
lastModification: number;
|
|
121
|
+
};
|
|
122
|
+
diffContent: string;
|
|
123
|
+
attributes: import("@ws-ui/shared").IMethodAttributes;
|
|
124
|
+
source: import("@ws-ui/shared").ISource;
|
|
125
|
+
editor: import("@ws-ui/shared").IEditor;
|
|
126
|
+
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
127
|
+
}>>> | undefined) => import("immer/dist/internal.js").WritableDraft<{
|
|
128
|
+
stack: any[];
|
|
129
|
+
active: number;
|
|
130
|
+
locked: boolean;
|
|
131
|
+
}> | undefined, {
|
|
132
|
+
clearCache: () => void;
|
|
133
|
+
}> & {
|
|
134
|
+
clearCache: () => void;
|
|
135
|
+
};
|
|
136
|
+
export declare const selectActiveTabHistoryActions: ((state: import("redux").EmptyObject & {
|
|
137
|
+
root: import("immer/dist/internal.js").WritableDraft<import("..").IRootState>;
|
|
138
|
+
explorer: import("immer/dist/internal.js").WritableDraft<import("..").ITreeItem>[];
|
|
139
|
+
debugger: import("..").IDebuggerState;
|
|
140
|
+
settings: import("..").ISettingsState;
|
|
141
|
+
catalog: {
|
|
142
|
+
state: "loading";
|
|
143
|
+
} | {
|
|
144
|
+
state: "loaded";
|
|
145
|
+
model: datasources.IEnhancedCatalog;
|
|
146
|
+
} | {
|
|
147
|
+
state: "error";
|
|
148
|
+
error: string;
|
|
149
|
+
};
|
|
150
|
+
roles: {
|
|
151
|
+
flags: {
|
|
152
|
+
touched?: boolean | undefined;
|
|
153
|
+
removed?: boolean | undefined;
|
|
154
|
+
pinned?: boolean | undefined;
|
|
155
|
+
loading?: boolean | undefined;
|
|
156
|
+
old?: boolean | undefined;
|
|
157
|
+
enabled?: boolean | undefined;
|
|
158
|
+
confirmed?: boolean | undefined;
|
|
159
|
+
};
|
|
160
|
+
date?: string | undefined;
|
|
161
|
+
privileges: import("..").TById;
|
|
162
|
+
roles: import("..").TRolesDict;
|
|
163
|
+
forceLogin?: boolean | undefined;
|
|
164
|
+
selectedTab: "roles" | "privileges";
|
|
165
|
+
};
|
|
166
|
+
sharedDatasources: import("..").ISharedDatasourcesState;
|
|
167
|
+
webforms: import("..").IWebformEditorState;
|
|
168
|
+
modals: import("..").IModalsState;
|
|
169
|
+
sharedCSS: import("immer/dist/internal.js").WritableDraft<import("..").ISharedCSSState>;
|
|
170
|
+
model: import("..").IModelState;
|
|
171
|
+
}) => {
|
|
172
|
+
canUndo: boolean;
|
|
173
|
+
canRedo: boolean;
|
|
174
|
+
}) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("@ws-ui/shared").ITab<any, Partial<{
|
|
175
|
+
initialLineInfo: {
|
|
176
|
+
line: number;
|
|
177
|
+
offset?: number | undefined;
|
|
178
|
+
lastModification: number;
|
|
179
|
+
};
|
|
180
|
+
initialSelectionInfo: {
|
|
181
|
+
selection: import("@ws-ui/shared").ITextEditorSelection;
|
|
182
|
+
lastModification: number;
|
|
183
|
+
};
|
|
184
|
+
diffContent: string;
|
|
185
|
+
attributes: import("@ws-ui/shared").IMethodAttributes;
|
|
186
|
+
source: import("@ws-ui/shared").ISource;
|
|
187
|
+
editor: import("@ws-ui/shared").IEditor;
|
|
188
|
+
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
189
|
+
}>>> | undefined) => {
|
|
190
|
+
canUndo: boolean;
|
|
191
|
+
canRedo: boolean;
|
|
192
|
+
}, {
|
|
193
|
+
clearCache: () => void;
|
|
194
|
+
}> & {
|
|
195
|
+
clearCache: () => void;
|
|
196
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@ws-ui/icons": "^0.0.12",
|
|
31
|
-
"@ws-ui/shared": "^0.1.
|
|
31
|
+
"@ws-ui/shared": "^0.1.18",
|
|
32
32
|
"lodash": "^4.17.21",
|
|
33
33
|
"minimatch": "^5.1.0",
|
|
34
34
|
"react": "^17.0.2",
|