@ws-ui/store 0.2.21 → 0.2.22
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 +37 -37
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3669 -3662
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/utils.d.ts +1 -0
- package/dist/modules/root/reducer.d.ts +8 -1
- package/dist/modules/root/thunks.d.ts +7 -1
- package/dist/selectors/states.d.ts +56 -0
- package/package.json +2 -2
|
@@ -16,4 +16,5 @@ type TGetContentReturnValue = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const getContent: () => TGetContentReturnValue;
|
|
18
18
|
export declare const createClassesFolderContent: (state: AppState, children: INodeInfo[], expandDataclass?: string) => Promise<ITreeItem[]>;
|
|
19
|
+
export declare const getFileNameWithoutExtension: (fileName: string) => string;
|
|
19
20
|
export {};
|
|
@@ -3,6 +3,10 @@ import { IWebFormStyleClass } from '@ws-ui/shared';
|
|
|
3
3
|
import { ITab, ITabExtra, ITabFlags, WebformState } from '@ws-ui/shared';
|
|
4
4
|
import { IRootState, TActionAddDataSource, TActionAddDefaultWebformState, TActionAddWebformState, TActionEditWebformState, TActionRemoveDataSource, TActionRemoveDefaultWebformState, TActionRemoveWebformState, TActionSetDataSources, TActionSetDefaultWebformStates, TResetComponentState } from './types';
|
|
5
5
|
export declare const stateSlice: import("@reduxjs/toolkit").Slice<import("immer/dist/internal.js").WritableDraft<IRootState>, {
|
|
6
|
+
setWebformState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<{
|
|
7
|
+
currentState: WebformState;
|
|
8
|
+
path: string;
|
|
9
|
+
}>): void;
|
|
6
10
|
copyToClipBoard(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<IRootState['clipboard']>): void;
|
|
7
11
|
setPanelState(state: import("immer/dist/internal.js").WritableDraft<IRootState>, action: PayloadAction<Partial<ITab['view']['panel']> & {
|
|
8
12
|
path: string;
|
|
@@ -158,7 +162,10 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
158
162
|
source: import("@ws-ui/shared").ISource;
|
|
159
163
|
editor: import("@ws-ui/shared").IEditor;
|
|
160
164
|
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
161
|
-
}>>, string>, openSettingsTab: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>,
|
|
165
|
+
}>>, string>, openSettingsTab: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
166
|
+
currentState: WebformState;
|
|
167
|
+
path: string;
|
|
168
|
+
}, string>, setPanelState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<{
|
|
162
169
|
isOpen: boolean;
|
|
163
170
|
type: string;
|
|
164
171
|
current: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@ws-ui/shared/dist/declarations/datasources/datasource" />
|
|
2
|
-
import { IFileInfoResponse, IMultilineMessage, INodeInfo, ITab } from '@ws-ui/shared';
|
|
2
|
+
import { IFileInfoResponse, IMultilineMessage, INodeInfo, ITab, WebformState } from '@ws-ui/shared';
|
|
3
3
|
import { AppState } from '..';
|
|
4
4
|
import { ClassFileTypes, TActionRenameDataSource } from './types';
|
|
5
5
|
export declare const fetchFiles: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -80,6 +80,12 @@ export declare const setTabContent: import("@reduxjs/toolkit").AsyncThunk<void,
|
|
|
80
80
|
}, {
|
|
81
81
|
state: AppState;
|
|
82
82
|
}>;
|
|
83
|
+
export declare const setCurrentWebformState: import("@reduxjs/toolkit").AsyncThunk<void, {
|
|
84
|
+
currentState: WebformState;
|
|
85
|
+
path: string;
|
|
86
|
+
}, {
|
|
87
|
+
state: AppState;
|
|
88
|
+
}>;
|
|
83
89
|
export declare const tryInjectMethod: import("@reduxjs/toolkit").AsyncThunk<ITab<any, Partial<{
|
|
84
90
|
initialLineInfo: {
|
|
85
91
|
line: number;
|
|
@@ -175,6 +175,62 @@ export declare const selectDefaultWebformStatesByPath: (tabPath: string) => ((st
|
|
|
175
175
|
}> & {
|
|
176
176
|
clearCache: () => void;
|
|
177
177
|
};
|
|
178
|
+
export declare const selectCurrentWebformStateByPath: (tabPath: string) => ((state: import("redux").EmptyObject & {
|
|
179
|
+
root: import("immer/dist/internal.js").WritableDraft<import('../modules').IRootState>;
|
|
180
|
+
explorer: import("immer/dist/internal.js").WritableDraft<import('../modules').ITreeItem>[];
|
|
181
|
+
debugger: import('../modules').IDebuggerState;
|
|
182
|
+
settings: import('../modules').ISettingsState;
|
|
183
|
+
catalog: {
|
|
184
|
+
state: "loading";
|
|
185
|
+
} | {
|
|
186
|
+
state: "loaded";
|
|
187
|
+
model: datasources.IEnhancedCatalog;
|
|
188
|
+
} | {
|
|
189
|
+
state: "error";
|
|
190
|
+
error: string;
|
|
191
|
+
};
|
|
192
|
+
roles: {
|
|
193
|
+
flags: {
|
|
194
|
+
touched?: boolean | undefined;
|
|
195
|
+
removed?: boolean | undefined;
|
|
196
|
+
pinned?: boolean | undefined;
|
|
197
|
+
loading?: boolean | undefined;
|
|
198
|
+
old?: boolean | undefined;
|
|
199
|
+
enabled?: boolean | undefined;
|
|
200
|
+
confirmed?: boolean | undefined;
|
|
201
|
+
};
|
|
202
|
+
date?: string | undefined;
|
|
203
|
+
privileges: import('../modules').TById;
|
|
204
|
+
roles: import('../modules').TRolesDict;
|
|
205
|
+
forceLogin?: boolean | undefined;
|
|
206
|
+
selectedTab: "roles" | "privileges";
|
|
207
|
+
};
|
|
208
|
+
sharedDatasources: import('../modules').ISharedDatasourcesState;
|
|
209
|
+
savedConditions: import("immer/dist/internal.js").WritableDraft<import('../modules').ISavedConditionsState>;
|
|
210
|
+
webforms: import('../modules').IWebformEditorState;
|
|
211
|
+
modals: import('../modules').IModalsState;
|
|
212
|
+
sharedCSS: import("immer/dist/internal.js").WritableDraft<import('../modules').ISharedCSSState>;
|
|
213
|
+
model: import('../modules').IModelState;
|
|
214
|
+
}) => WebformState) & import("reselect").OutputSelectorFields<(args_0: import("immer/dist/internal.js").WritableDraft<import("@ws-ui/shared").ITab<any, Partial<{
|
|
215
|
+
initialLineInfo: {
|
|
216
|
+
line: number;
|
|
217
|
+
offset?: number | undefined;
|
|
218
|
+
lastModification: number;
|
|
219
|
+
};
|
|
220
|
+
initialSelectionInfo: {
|
|
221
|
+
selection: import("@ws-ui/shared").ITextEditorSelection;
|
|
222
|
+
lastModification: number;
|
|
223
|
+
};
|
|
224
|
+
diffContent: string;
|
|
225
|
+
attributes: import("@ws-ui/shared").IMethodAttributes;
|
|
226
|
+
source: import("@ws-ui/shared").ISource;
|
|
227
|
+
editor: import("@ws-ui/shared").IEditor;
|
|
228
|
+
ext: import("@ws-ui/shared").DebuggerFileExtension;
|
|
229
|
+
}>>> | undefined) => WebformState, {
|
|
230
|
+
clearCache: () => void;
|
|
231
|
+
}> & {
|
|
232
|
+
clearCache: () => void;
|
|
233
|
+
};
|
|
178
234
|
/**
|
|
179
235
|
* Returns the shared states conditions.
|
|
180
236
|
*/
|
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.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@ws-ui/icons": "^0.0.27",
|
|
32
|
-
"@ws-ui/shared": "^0.2.
|
|
32
|
+
"@ws-ui/shared": "^0.2.20",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"minimatch": "^5.1.0",
|
|
35
35
|
"react": "^17.0.2",
|