@ws-ui/store 1.7.7 → 1.8.0
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 +25 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3976 -3953
- package/dist/index.es.js.map +1 -1
- package/dist/modules/explorer/thunks.d.ts +11 -1
- package/dist/modules/explorer/types.d.ts +5 -1
- package/dist/modules/root/reducer.d.ts +2 -0
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { FileFolderType, IFileInfo, ISaveFileResponse, ISetFileContentResponse,
|
|
|
2
2
|
import { ClassFileTypes } from '../root/types';
|
|
3
3
|
import { AppState } from '..';
|
|
4
4
|
import { ISettingsState } from '../settings';
|
|
5
|
-
import { IOpenFilePayload, ITreeItem } from './types';
|
|
5
|
+
import { IOpenFilePayload, ISwitchEditorPayload, ITreeItem } from './types';
|
|
6
6
|
interface ICreateNewFilePayload {
|
|
7
7
|
fileName: string;
|
|
8
8
|
type: FileFolderType;
|
|
@@ -260,6 +260,16 @@ export declare const openFileFromLocation: import('@reduxjs/toolkit').AsyncThunk
|
|
|
260
260
|
fulfilledMeta?: unknown;
|
|
261
261
|
rejectedMeta?: unknown;
|
|
262
262
|
}>;
|
|
263
|
+
export declare const switchEditor: import('@reduxjs/toolkit').AsyncThunk<void, ISwitchEditorPayload, {
|
|
264
|
+
state: AppState;
|
|
265
|
+
dispatch?: import('redux').Dispatch | undefined;
|
|
266
|
+
extra?: unknown;
|
|
267
|
+
rejectValue?: unknown;
|
|
268
|
+
serializedErrorType?: unknown;
|
|
269
|
+
pendingMeta?: unknown;
|
|
270
|
+
fulfilledMeta?: unknown;
|
|
271
|
+
rejectedMeta?: unknown;
|
|
272
|
+
}>;
|
|
263
273
|
export declare const openFile: import('@reduxjs/toolkit').AsyncThunk<ITab<any, Partial<{
|
|
264
274
|
initialLineInfo: {
|
|
265
275
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileFolderType, IEditor, IFileInfo, ITabFlags } from '@ws-ui/shared';
|
|
1
|
+
import { FileFolderType, IEditor, IFileInfo, ITabFlags, ITab } from '@ws-ui/shared';
|
|
2
2
|
export interface ITreeItem {
|
|
3
3
|
id?: string;
|
|
4
4
|
name: string;
|
|
@@ -63,6 +63,10 @@ export interface IOpenFilePayload {
|
|
|
63
63
|
[key: string]: string;
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
+
export interface ISwitchEditorPayload {
|
|
67
|
+
tab: ITab;
|
|
68
|
+
editor: IEditor;
|
|
69
|
+
}
|
|
66
70
|
export declare const editors: IEditors[];
|
|
67
71
|
export declare const extensions: {
|
|
68
72
|
pattern: string;
|
|
@@ -39,6 +39,7 @@ export declare const stateSlice: import('@reduxjs/toolkit').Slice<IRootState, {
|
|
|
39
39
|
path: string;
|
|
40
40
|
content: any;
|
|
41
41
|
contentPath?: string;
|
|
42
|
+
date?: string;
|
|
42
43
|
}>): void;
|
|
43
44
|
setTabFlags(state: import('immer/dist/internal').WritableDraft<IRootState>, action: PayloadAction<{
|
|
44
45
|
path: string;
|
|
@@ -86,6 +87,7 @@ export declare const copyToClipBoard: import('@reduxjs/toolkit').ActionCreatorWi
|
|
|
86
87
|
path: string;
|
|
87
88
|
content: any;
|
|
88
89
|
contentPath?: string;
|
|
90
|
+
date?: string;
|
|
89
91
|
}, "root/setContent">, setTabFlags: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
90
92
|
path: string;
|
|
91
93
|
flags: ITabFlags;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@reduxjs/toolkit": "^1.7.1",
|
|
24
|
-
"@ws-ui/icons": "1.
|
|
25
|
-
"@ws-ui/shared": "1.
|
|
24
|
+
"@ws-ui/icons": "1.8.0",
|
|
25
|
+
"@ws-ui/shared": "1.8.0",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"minimatch": "^10.0.1",
|
|
28
28
|
"react": "^17.0.2",
|