@wise/dynamic-flow-client 3.1.0 → 3.1.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.
@@ -1,7 +1,7 @@
1
- import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent, ValidationState } from '../types';
2
1
  import type { PerformPersistAsync } from '../features/persistAsync/getPerformPersistAsync';
3
2
  import type { PerformRefresh } from '../features/refresh/getPerformRefresh';
4
3
  import type { PerformValidationAsync } from '../features/validationAsync/getPerformValidationAsync';
4
+ import type { InputComponent, PersistedState, RepeatableSummary, UpdateComponent, ValidationState } from '../types';
5
5
  export type BooleanInputComponent = InputComponent<boolean> & {
6
6
  type: 'boolean';
7
7
  persistedState: PersistedState;
@@ -1,2 +1,2 @@
1
- import type { LocalValue } from '../../types';
2
- export declare const isPartialLocalValueMatch: (partialValue: LocalValue, value: LocalValue) => boolean;
1
+ import type { DomainComponent, LocalValue } from '../../types';
2
+ export declare const isPartialLocalValueMatch: (partialValue: LocalValue, component: DomainComponent) => boolean;
@@ -1,3 +1,3 @@
1
1
  import type { ButtonLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { MapperProps } from '../schema/types';
3
- export declare const buttonLayoutToComponent: (uid: string, { action, context, control, disabled, margin, pinOrder, size, title }: ButtonLayout, { onAction }: MapperProps) => import("../../components/ButtonComponent").ButtonComponent;
3
+ export declare const buttonLayoutToComponent: (uid: string, { action, context, control, disabled, margin, pinOrder, size, title }: ButtonLayout, { onAction, step }: MapperProps) => import("../../components/ButtonComponent").ButtonComponent;
@@ -1,4 +1,4 @@
1
1
  import type { FormLayout } from '@wise/dynamic-flow-types/build/next';
2
2
  import type { DomainComponent } from '../../types';
3
3
  import type { MapperProps } from '../schema/types';
4
- export declare const formLayoutToComponent: (uid: string, { schemaId, control, margin }: FormLayout, mapperProps: MapperProps) => DomainComponent;
4
+ export declare const formLayoutToComponent: (uid: string, { schemaId, schema: schemaRef, control, margin }: FormLayout, mapperProps: MapperProps) => DomainComponent;
@@ -62,6 +62,7 @@ export type InputComponent<V extends LocalValue> = ComponentWithTitle & {
62
62
  autoComplete: string;
63
63
  disabled: boolean;
64
64
  errors: string[];
65
+ isPersisted?: boolean;
65
66
  placeholder?: string;
66
67
  required: boolean;
67
68
  value: V;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -91,7 +91,7 @@
91
91
  "classnames": "2.5.1",
92
92
  "react-webcam": "^7.2.0",
93
93
  "screenfull": "^5.2.0",
94
- "@wise/dynamic-flow-types": "2.7.0"
94
+ "@wise/dynamic-flow-types": "2.8.0"
95
95
  },
96
96
  "scripts": {
97
97
  "dev": "storybook dev -p 3003",