@ws-ui/store 1.6.10 → 1.7.1
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 +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +176 -152
- package/dist/index.es.js.map +1 -1
- package/dist/modules/root/reducer.d.ts +9 -2
- package/dist/modules/root/types.d.ts +7 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { IWebFormStyleClass, ITab, ITabExtra, ITabFlags, WebformState } from '@ws-ui/shared';
|
|
3
|
-
import { IRootState, TActionAddDataSource, TActionAddDefaultWebformState, TActionAddWebformState, TActionEditWebformState, TActionRemoveDataSource, TActionRemoveDefaultWebformState, TActionRemoveWebformState, TActionSetDataSources, TActionSetDefaultWebformStates, TActionUpdateStateConditionDs, TResetComponentState } from './types';
|
|
3
|
+
import { IRootState, TActionAddDataSource, TActionAddDefaultWebformState, TActionAddWebformState, TActionEditWebformState, TActionRemoveDataSource, TActionRemoveDefaultWebformState, TActionRemoveWebformState, TActionSetDataSources, TActionSetDefaultWebformStates, TActionUpdateStateConditionDs, TResetComponentState, TUnsetCustomComponentProp } from './types';
|
|
4
4
|
export declare const stateSlice: import('@reduxjs/toolkit').Slice<IRootState, {
|
|
5
5
|
setWebformState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: PayloadAction<{
|
|
6
6
|
currentState: WebformState;
|
|
@@ -16,6 +16,7 @@ export declare const stateSlice: import('@reduxjs/toolkit').Slice<IRootState, {
|
|
|
16
16
|
editWebformState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionEditWebformState): void;
|
|
17
17
|
updateStateConditionDs(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionUpdateStateConditionDs): void;
|
|
18
18
|
resetComponentState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TResetComponentState): void;
|
|
19
|
+
unsetCustomComponentProp(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TUnsetCustomComponentProp): void;
|
|
19
20
|
setDefaultWebformStates(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionSetDefaultWebformStates): void;
|
|
20
21
|
addDefaultWebformState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionAddDefaultWebformState): void;
|
|
21
22
|
removeDefaultWebformState(state: import('immer/dist/internal').WritableDraft<IRootState>, action: TActionRemoveDefaultWebformState): void;
|
|
@@ -187,7 +188,13 @@ export declare const copyToClipBoard: import('@reduxjs/toolkit').ActionCreatorWi
|
|
|
187
188
|
state?: WebformState;
|
|
188
189
|
lang?: string;
|
|
189
190
|
resetAll?: boolean;
|
|
190
|
-
}, "root/resetComponentState">,
|
|
191
|
+
}, "root/resetComponentState">, unsetCustomComponentProp: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
192
|
+
path: string;
|
|
193
|
+
id: string;
|
|
194
|
+
prop: string;
|
|
195
|
+
state?: WebformState;
|
|
196
|
+
lang?: string;
|
|
197
|
+
}, "root/unsetCustomComponentProp">, addDefaultWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
191
198
|
path: string;
|
|
192
199
|
state: WebformState;
|
|
193
200
|
}, "root/addDefaultWebformState">, removeDefaultWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
@@ -36,6 +36,13 @@ export type TResetComponentState = PayloadAction<{
|
|
|
36
36
|
lang?: string;
|
|
37
37
|
resetAll?: boolean;
|
|
38
38
|
}>;
|
|
39
|
+
export type TUnsetCustomComponentProp = PayloadAction<{
|
|
40
|
+
path: string;
|
|
41
|
+
id: string;
|
|
42
|
+
prop: string;
|
|
43
|
+
state?: WebformState;
|
|
44
|
+
lang?: string;
|
|
45
|
+
}>;
|
|
39
46
|
export type TActionSetDefaultWebformStates = PayloadAction<{
|
|
40
47
|
path: string;
|
|
41
48
|
states: WebformState[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ws-ui/store",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
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.7.1",
|
|
25
|
+
"@ws-ui/shared": "1.7.1",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
27
27
|
"minimatch": "^10.0.1",
|
|
28
28
|
"react": "^17.0.2",
|