@wise/dynamic-flow-client 0.1.4 → 0.2.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/README.md +2 -0
- package/build/flow/DynamicFlow.d.ts +0 -1
- package/build/flow/DynamicFlowStep.d.ts +0 -1
- package/build/flow/errorBoundary/ErrorBoundaryAlert.d.ts +0 -1
- package/build/flow/stories/EditableDynamicFlow.d.ts +0 -1
- package/build/jsonSchemaForm/JsonSchemaForm.d.ts +0 -1
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -1
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +0 -1
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +0 -1
- package/build/jsonSchemaForm/genericSchema/GenericSchema.d.ts +0 -1
- package/build/jsonSchemaForm/help/Help.d.ts +0 -1
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +0 -1
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.d.ts +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.d.ts +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.d.ts +0 -1
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +0 -1
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +0 -1
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.d.ts +0 -1
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -1
- package/build/layout/DynamicLayout.d.ts +0 -1
- package/build/layout/alert/index.d.ts +0 -1
- package/build/layout/box/index.d.ts +0 -1
- package/build/layout/button/index.d.ts +0 -1
- package/build/layout/columns/index.d.ts +0 -1
- package/build/layout/decision/index.d.ts +0 -1
- package/build/layout/divider/index.d.ts +0 -1
- package/build/layout/external/DynamicExternal.d.ts +0 -1
- package/build/layout/form/index.d.ts +0 -1
- package/build/layout/heading/index.d.ts +0 -1
- package/build/layout/icon/index.d.ts +0 -1
- package/build/layout/image/index.d.ts +0 -1
- package/build/layout/info/index.d.ts +0 -1
- package/build/layout/list/index.d.ts +0 -1
- package/build/layout/loading-indicator/index.d.ts +0 -1
- package/build/layout/paragraph/DynamicParagraph.d.ts +0 -1
- package/build/layout/review/index.d.ts +0 -1
- package/build/step/cameraStep/CameraStep.d.ts +0 -1
- package/build/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -1
- package/build/step/cameraStep/cameraCapture/components/index.d.ts +0 -1
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.d.ts +0 -1
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -1
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -1
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -1
- package/build/step/layoutStep/LayoutStep.d.ts +0 -1
- package/package.json +28 -25
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This is the Dynamic Flow web client. It provides a simple way to integrate a Dynamic Flow into your web app.
|
|
4
4
|
|
|
5
|
+
⚡ Access the latest deployed version of the [Dynamic Flow Playground](https://main--641de2ace0e1566a6a450fad.chromatic.com).
|
|
6
|
+
|
|
5
7
|
## Integration
|
|
6
8
|
|
|
7
9
|
1. Install `@wise/dynamic-flow-client`.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ArrayModel } from '../../../../dynamic-flow-types';
|
|
3
2
|
import { MultipleFileUploadSchema as MultipleFileUploadSchemaType } from '../../../../dynamic-flow-types/Schema';
|
|
4
3
|
import { GenericSchemaProps } from '../../../genericSchema/GenericSchema';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PersistAsync, Schema } from '../../../dynamic-flow-types';
|
|
3
2
|
import { GenericSchemaProps } from '../../genericSchema/GenericSchema';
|
|
4
3
|
export declare const getIdFromResponse: (idProperty: string, response: Record<string, unknown>) => string | number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Wise Dynamic Flow web client",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -18,9 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@babel/core": "7.20.12",
|
|
21
|
+
"@babel/plugin-syntax-flow": "7.18.6",
|
|
22
|
+
"@babel/plugin-transform-react-jsx": "7.21.0",
|
|
21
23
|
"@babel/preset-env": "7.20.2",
|
|
22
|
-
"@babel/preset-react": "
|
|
23
|
-
"@babel/preset-typescript": "
|
|
24
|
+
"@babel/preset-react": "7.18.6",
|
|
25
|
+
"@babel/preset-typescript": "7.21.0",
|
|
24
26
|
"@formatjs/cli": "^4.8.3",
|
|
25
27
|
"@storybook/addon-a11y": "6.5.16",
|
|
26
28
|
"@storybook/addon-actions": "6.5.16",
|
|
@@ -36,22 +38,22 @@
|
|
|
36
38
|
"@testing-library/react-hooks": "^8.0.1",
|
|
37
39
|
"@testing-library/react": "^12.0.0",
|
|
38
40
|
"@testing-library/user-event": "13.2.1",
|
|
39
|
-
"@transferwise/components": "
|
|
40
|
-
"@transferwise/eslint-config": "
|
|
41
|
+
"@transferwise/components": "43.13.49",
|
|
42
|
+
"@transferwise/eslint-config": "8.0.1",
|
|
41
43
|
"@transferwise/formatting": "^2.10.0",
|
|
42
|
-
"@transferwise/icons": "
|
|
43
|
-
"@transferwise/neptune-css": "
|
|
44
|
-
"@transferwise/neptune-tokens": "
|
|
44
|
+
"@transferwise/icons": "3.2.3",
|
|
45
|
+
"@transferwise/neptune-css": "14.3.45",
|
|
46
|
+
"@transferwise/neptune-tokens": "8.4.0",
|
|
45
47
|
"@types/enzyme": "^3.10.12",
|
|
46
48
|
"@types/jest": "29.4.0",
|
|
47
49
|
"@types/lodash.debounce": "^4.0.7",
|
|
48
50
|
"@types/lodash": "^4.14.167",
|
|
49
|
-
"@types/react-dom": "
|
|
50
|
-
"@types/react": "
|
|
51
|
+
"@types/react-dom": "18",
|
|
52
|
+
"@types/react": "18",
|
|
51
53
|
"@types/testing-library__jest-dom": "5.9.5",
|
|
52
54
|
"@wise/art": "2.0.1",
|
|
53
55
|
"@wise/components-theming": "^0.7.4",
|
|
54
|
-
"@
|
|
56
|
+
"@cfaester/enzyme-adapter-react-18": "0.7.0",
|
|
55
57
|
"babel-jest": "29.5.0",
|
|
56
58
|
"cpx": "1.5.0",
|
|
57
59
|
"currency-flags": "4.0.7",
|
|
@@ -65,27 +67,27 @@
|
|
|
65
67
|
"postcss-import": "^15.1.0",
|
|
66
68
|
"postcss": "^8.4.21",
|
|
67
69
|
"prettier": "2.8.4",
|
|
68
|
-
"react-dom": "
|
|
69
|
-
"react-intl": "
|
|
70
|
-
"react": "
|
|
70
|
+
"react-dom": "18.2.0",
|
|
71
|
+
"react-intl": "6.2.1",
|
|
72
|
+
"react": "18.2.0",
|
|
71
73
|
"require-from-string": "2.0.2",
|
|
72
|
-
"stylelint-config-standard": "
|
|
73
|
-
"stylelint-no-unsupported-browser-features": "
|
|
74
|
-
"stylelint-value-no-unknown-custom-properties": "
|
|
75
|
-
"stylelint": "
|
|
74
|
+
"stylelint-config-standard": "25.0.0",
|
|
75
|
+
"stylelint-no-unsupported-browser-features": "5.0.4",
|
|
76
|
+
"stylelint-value-no-unknown-custom-properties": "4.0.0",
|
|
77
|
+
"stylelint": "14.16.1",
|
|
76
78
|
"typescript": "4.9.5",
|
|
77
79
|
"webpack": "5.75.0"
|
|
78
80
|
},
|
|
79
81
|
"peerDependencies": {
|
|
80
82
|
"@transferwise/components": "^43",
|
|
81
|
-
"@transferwise/formatting": "^2
|
|
83
|
+
"@transferwise/formatting": "^2",
|
|
82
84
|
"@transferwise/icons": "^3",
|
|
83
85
|
"@transferwise/neptune-css": "^14",
|
|
84
86
|
"@transferwise/neptune-validation": "^3",
|
|
85
|
-
"prop-types": "^15
|
|
86
|
-
"react-dom": "
|
|
87
|
-
"react-intl": "^
|
|
88
|
-
"react": "
|
|
87
|
+
"prop-types": "^15",
|
|
88
|
+
"react-dom": "^18",
|
|
89
|
+
"react-intl": "^6",
|
|
90
|
+
"react": "^18"
|
|
89
91
|
},
|
|
90
92
|
"peerDependenciesMeta": {
|
|
91
93
|
"prop-types": {
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
}
|
|
94
96
|
},
|
|
95
97
|
"dependencies": {
|
|
96
|
-
"classnames": "
|
|
98
|
+
"classnames": "2.3.2",
|
|
97
99
|
"lodash.debounce": "^4.0.8",
|
|
98
100
|
"lodash.isequal": "^4.5.0",
|
|
99
101
|
"react-use": "^17.4.0",
|
|
@@ -114,6 +116,7 @@
|
|
|
114
116
|
"test:watch": "pnpm test:once --watch",
|
|
115
117
|
"lint": "npm-run-all lint:ts lint:css",
|
|
116
118
|
"lint:ts": "eslint 'src/**/*.{js,jsx,ts,tsx}' --quiet",
|
|
117
|
-
"lint:css": "stylelint --allow-empty-input './src/**/*.less'"
|
|
119
|
+
"lint:css": "stylelint --allow-empty-input './src/**/*.less'",
|
|
120
|
+
"build-storybook": "build-storybook -c .storybook"
|
|
118
121
|
}
|
|
119
122
|
}
|