@ws-ui/store 0.2.25 → 0.2.27

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.
@@ -179,6 +179,7 @@ export declare const copyToClipBoard: import("@reduxjs/toolkit").ActionCreatorWi
179
179
  }, string>, editWebformState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
180
180
  path: string;
181
181
  state: WebformState;
182
+ oldLabel?: string | undefined;
182
183
  }, string>, updateStateConditionDs: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
183
184
  path: string;
184
185
  old_reference: string;
@@ -24,6 +24,7 @@ export type TActionRemoveWebformState = PayloadAction<{
24
24
  export type TActionEditWebformState = PayloadAction<{
25
25
  path: string;
26
26
  state: WebformState;
27
+ oldLabel?: string;
27
28
  }>;
28
29
  export type TActionUpdateStateConditionDs = PayloadAction<{
29
30
  path: string;
@@ -4,7 +4,7 @@ export declare const ROOT_WEBFORM_STATE: {
4
4
  label: string;
5
5
  id: string;
6
6
  };
7
- export declare const noBaseState: (state: WebformState[]) => boolean;
7
+ export declare const isBaseState: (state: WebformState) => boolean;
8
8
  /**
9
9
  * Returns the list of declared states in the current tab.
10
10
  * @param tabPath the current tab path.
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ITab } from '@ws-ui/shared';
1
+ import { ITab, WebformStateCondition } from '@ws-ui/shared';
2
2
  import { AppState } from './modules';
3
3
  import { IRootState } from './modules/root/types';
4
4
  import { ModelNode, ServerModel } from './modules/model/types';
@@ -14,5 +14,6 @@ export declare function getCachedState(): TCachedState;
14
14
  export declare function getModalTitle(tab: ITab): string;
15
15
  export declare const deserializeModel: (data: ServerModel | undefined) => ModelNode[];
16
16
  export declare function isJSON(extension?: string): boolean;
17
+ export declare const refactorConditions: (condition: WebformStateCondition, stateLabel: string | undefined, newValue?: string) => WebformStateCondition;
17
18
  export declare function refactorWebform(content: ITab['content'], id: string): any;
18
19
  export declare const selectorEqualityFn: (left: unknown, right: unknown) => boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-ui/store",
3
3
  "private": false,
4
- "version": "0.2.25",
4
+ "version": "0.2.27",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",
@@ -28,7 +28,7 @@
28
28
  "react-redux": "^7.2.6"
29
29
  },
30
30
  "peerDependencies": {
31
- "@ws-ui/icons": "^0.0.27",
31
+ "@ws-ui/icons": "^0.0.28",
32
32
  "@ws-ui/shared": "^0.2.21",
33
33
  "lodash": "^4.17.21",
34
34
  "minimatch": "^5.1.0",