@wise/dynamic-flow-client 1.12.1 → 2.1.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/build/i18n/de.json +4 -0
- package/build/i18n/en.json +4 -0
- package/build/i18n/es.json +4 -0
- package/build/i18n/fr.json +4 -0
- package/build/i18n/hu.json +4 -0
- package/build/i18n/id.json +4 -0
- package/build/i18n/it.json +4 -0
- package/build/i18n/ja.json +4 -0
- package/build/i18n/pl.json +4 -0
- package/build/i18n/pt.json +4 -0
- package/build/i18n/ro.json +4 -0
- package/build/i18n/ru.json +4 -0
- package/build/i18n/th.json +4 -0
- package/build/i18n/tr.json +4 -0
- package/build/i18n/zh.json +4 -0
- package/build/i18n/zh_CN.json +4 -0
- package/build/main.js +976 -537
- package/build/main.min.js +1 -1
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +6 -6
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.d.ts +12 -0
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.d.ts +8 -0
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.messages.d.ts +23 -0
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchemaStep.d.ts +14 -0
- package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +3 -0
- package/build/types/layout/utils/index.d.ts +2 -2
- package/package.json +2 -2
- /package/build/types/common/validators/models/{models.utils.d.ts → model-utils.d.ts} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ArrayModel, ArraySchema as ArraySchemaType } from '@wise/dynamic-flow-types';
|
|
2
2
|
import { GenericSchemaProps } from '../../genericSchema/GenericSchema';
|
|
3
|
+
type ArrayListSchemaProps = GenericSchemaProps & {
|
|
4
|
+
schema: ArraySchemaType;
|
|
5
|
+
errors?: string | null;
|
|
6
|
+
model: ArrayModel | null;
|
|
7
|
+
};
|
|
3
8
|
declare const ArrayListSchema: {
|
|
4
|
-
(props:
|
|
9
|
+
(props: ArrayListSchemaProps): JSX.Element;
|
|
5
10
|
defaultProps: {
|
|
6
11
|
errors: null;
|
|
7
12
|
required: boolean;
|
|
8
13
|
};
|
|
9
14
|
};
|
|
10
|
-
type Props = GenericSchemaProps & {
|
|
11
|
-
schema: ArraySchemaType;
|
|
12
|
-
errors?: string | null;
|
|
13
|
-
model: ArrayModel | null;
|
|
14
|
-
};
|
|
15
15
|
export default ArrayListSchema;
|
package/build/types/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/ItemSummary.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icon, Image, Model } from '@wise/dynamic-flow-types';
|
|
2
|
+
export type ItemSummary = {
|
|
3
|
+
value: Model | null;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
icon?: Icon;
|
|
7
|
+
image?: Image;
|
|
8
|
+
};
|
|
9
|
+
export declare const ItemSummaryOption: ({ item, onClick, }: {
|
|
10
|
+
item: ItemSummary;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ArrayModel, ListArraySchema } from '@wise/dynamic-flow-types';
|
|
2
|
+
import { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
|
|
3
|
+
type RepeatableSchemaProps = Omit<GenericSchemaProps, 'model' | 'onPersistAsync'> & {
|
|
4
|
+
schema: ListArraySchema;
|
|
5
|
+
model: ArrayModel | null;
|
|
6
|
+
};
|
|
7
|
+
declare const RepeatableSchema: ({ schema, model, errors, submitted, onChange, }: RepeatableSchemaProps) => JSX.Element;
|
|
8
|
+
export default RepeatableSchema;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
addItemTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
addItem: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
editItem: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
removeItem: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormErrors, ListArraySchema, Model } from '@wise/dynamic-flow-types';
|
|
2
|
+
import { OnModelChange } from '../../../../dynamicFlow/DynamicFlowTypes';
|
|
3
|
+
export type RepeatableActionType = 'add' | 'edit' | 'remove';
|
|
4
|
+
type RepeatableSchemaStepProps = {
|
|
5
|
+
type: 'add' | 'edit';
|
|
6
|
+
schema: ListArraySchema;
|
|
7
|
+
model?: Model;
|
|
8
|
+
errors?: FormErrors;
|
|
9
|
+
submitted: boolean;
|
|
10
|
+
onModelChange: OnModelChange;
|
|
11
|
+
onAction: (actionType: RepeatableActionType) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const RepeatableSchemaStep: ({ type, schema, model, errors, submitted, onModelChange, onAction, }: RepeatableSchemaStepProps) => JSX.Element;
|
|
14
|
+
export default RepeatableSchemaStep;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Align, Size } from '@wise/dynamic-flow-types';
|
|
2
2
|
export { getNavigationOptionMedia } from './getNavigationOptionMedia';
|
|
3
|
-
declare const
|
|
3
|
+
declare const getMargin: (size: Size | undefined) => "" | "m-t-0" | "m-t-1" | "m-t-2" | "m-t-3" | "m-t-5";
|
|
4
4
|
declare const getTextAlignmentAndMargin: (component: {
|
|
5
5
|
align?: Align;
|
|
6
6
|
margin?: Size;
|
|
7
7
|
}) => string;
|
|
8
|
-
export {
|
|
8
|
+
export { getMargin, getTextAlignmentAndMargin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"classnames": "2.3.2",
|
|
93
93
|
"react-webcam": "^7.0.1",
|
|
94
94
|
"screenfull": "^5.0.2",
|
|
95
|
-
"@wise/dynamic-flow-types": "
|
|
95
|
+
"@wise/dynamic-flow-types": "2.0.0"
|
|
96
96
|
},
|
|
97
97
|
"prettier": "@transferwise/eslint-config/.prettierrc.js",
|
|
98
98
|
"scripts": {
|
|
File without changes
|