@ws-ui/store 0.1.17 → 0.1.19

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.
@@ -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;
@@ -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.17",
4
+ "version": "0.1.19",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",
@@ -27,8 +27,8 @@
27
27
  "react-redux": "^7.2.6"
28
28
  },
29
29
  "peerDependencies": {
30
- "@ws-ui/icons": "^0.0.11",
31
- "@ws-ui/shared": "^0.1.15",
30
+ "@ws-ui/icons": "^0.0.12",
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",