@wise/dynamic-flow-client-internal 0.3.0-beta-be3d8f.7 → 0.3.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 +3 -3
- package/build/index.d.ts +4 -2
- package/build/index.js +37 -2
- package/package.json +20 -19
- package/build/dynamicFlow/DynamicFlow.d.ts +0 -3
- package/build/dynamicFlow/DynamicFlow.js +0 -16
package/README.md
CHANGED
|
@@ -23,15 +23,15 @@ pnpm install @wise/dynamic-flow-client-internal
|
|
|
23
23
|
|
|
24
24
|
```
|
|
25
25
|
# yarn
|
|
26
|
-
yarn add react react-dom react-intl
|
|
26
|
+
yarn add prop-types react react-dom react-intl
|
|
27
27
|
yarn add @transferwise/components @transferwise/formatting @transferwise/icons @transferwise/neptune-css
|
|
28
28
|
|
|
29
29
|
# npm
|
|
30
|
-
npm install react react-dom react-intl
|
|
30
|
+
npm install prop-types react react-dom react-intl
|
|
31
31
|
npm install @transferwise/components @transferwise/formatting @transferwise/icons @transferwise/neptune-css
|
|
32
32
|
|
|
33
33
|
# pnpm
|
|
34
|
-
pnpm install react react-dom react-intl
|
|
34
|
+
pnpm install prop-types react react-dom react-intl
|
|
35
35
|
pnpm install @transferwise/components @transferwise/formatting @transferwise/icons @transferwise/neptune-css
|
|
36
36
|
```
|
|
37
37
|
|
package/build/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DynamicFlowProps } from '@wise/dynamic-flow-client';
|
|
3
|
+
export declare const DynamicFlow: (props: DynamicFlowProps) => JSX.Element;
|
|
1
4
|
export type { DynamicFlowProps, Step } from '@wise/dynamic-flow-client';
|
|
2
|
-
export { translations, makeFetcher, JsonSchemaForm, isValidSchema, } from '@wise/dynamic-flow-client';
|
|
3
|
-
export { DynamicFlow } from './dynamicFlow/DynamicFlow';
|
|
5
|
+
export { fixtures, translations, makeFetcher, JsonSchemaForm, isValidSchema, } from '@wise/dynamic-flow-client';
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
exports.__esModule = true;
|
|
25
|
+
exports.isValidSchema = exports.JsonSchemaForm = exports.makeFetcher = exports.translations = exports.fixtures = exports.DynamicFlow = void 0;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var dynamic_flow_client_1 = require("@wise/dynamic-flow-client");
|
|
28
|
+
var DynamicFlow = function (props) {
|
|
29
|
+
return (0, jsx_runtime_1.jsx)(dynamic_flow_client_1.DynamicFlow, __assign({}, props));
|
|
30
|
+
};
|
|
31
|
+
exports.DynamicFlow = DynamicFlow;
|
|
32
|
+
var dynamic_flow_client_2 = require("@wise/dynamic-flow-client");
|
|
33
|
+
__createBinding(exports, dynamic_flow_client_2, "fixtures");
|
|
34
|
+
__createBinding(exports, dynamic_flow_client_2, "translations");
|
|
35
|
+
__createBinding(exports, dynamic_flow_client_2, "makeFetcher");
|
|
36
|
+
__createBinding(exports, dynamic_flow_client_2, "JsonSchemaForm");
|
|
37
|
+
__createBinding(exports, dynamic_flow_client_2, "isValidSchema");
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
7
7
|
"style": "./build/main.css",
|
|
8
|
+
"type": "commonjs",
|
|
8
9
|
"sideEffects": [
|
|
9
10
|
"*.css"
|
|
10
11
|
],
|
|
@@ -16,20 +17,6 @@
|
|
|
16
17
|
"fullname": "transferwise/dynamic-flow",
|
|
17
18
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
18
19
|
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"dev": "storybook dev -p 3005",
|
|
21
|
-
"build": "npm-run-all build:*",
|
|
22
|
-
"build:ts": "tsc --build ./tsconfig.build.json",
|
|
23
|
-
"build:css": "postcss src/main.css -o build/main.css",
|
|
24
|
-
"test": "pnpm test:once",
|
|
25
|
-
"test:once": "jest --config jest.config.js --env=jsdom",
|
|
26
|
-
"test:coverage": "jest --config jest.config.js --env=jsdom --coverage",
|
|
27
|
-
"test:watch": "pnpm test:once --watch",
|
|
28
|
-
"lint": "npm-run-all lint:ts lint:css",
|
|
29
|
-
"lint:ts": "eslint 'src/**/*.{js,jsx,ts,tsx}' --quiet",
|
|
30
|
-
"lint:css": "stylelint --allow-empty-input './src/**/*.css'",
|
|
31
|
-
"build-storybook": "storybook build -c .storybook"
|
|
32
|
-
},
|
|
33
20
|
"devDependencies": {
|
|
34
21
|
"@babel/core": "7.20.12",
|
|
35
22
|
"@babel/plugin-syntax-flow": "7.18.6",
|
|
@@ -51,7 +38,7 @@
|
|
|
51
38
|
"@testing-library/react": "14.0.0",
|
|
52
39
|
"@testing-library/react-hooks": "8.0.1",
|
|
53
40
|
"@testing-library/user-event": "13.2.1",
|
|
54
|
-
"@transferwise/components": "45.
|
|
41
|
+
"@transferwise/components": "45.4.0",
|
|
55
42
|
"@transferwise/eslint-config": "8.0.1",
|
|
56
43
|
"@transferwise/formatting": "^2.10.0",
|
|
57
44
|
"@transferwise/icons": "3.6.0",
|
|
@@ -93,7 +80,21 @@
|
|
|
93
80
|
"react-intl": "^6"
|
|
94
81
|
},
|
|
95
82
|
"dependencies": {
|
|
96
|
-
"@wise/dynamic-flow-client": "^0.
|
|
83
|
+
"@wise/dynamic-flow-client": "^0.4.0"
|
|
97
84
|
},
|
|
98
|
-
"prettier": "@transferwise/eslint-config/.prettierrc.js"
|
|
99
|
-
|
|
85
|
+
"prettier": "@transferwise/eslint-config/.prettierrc.js",
|
|
86
|
+
"scripts": {
|
|
87
|
+
"dev": "storybook dev -p 3005",
|
|
88
|
+
"build": "rm -rf build && npm-run-all build:*",
|
|
89
|
+
"build:ts": "tsc --build ./tsconfig.build.json",
|
|
90
|
+
"build:css": "postcss src/main.css -o build/main.css",
|
|
91
|
+
"test": "pnpm test:once",
|
|
92
|
+
"test:once": "jest --config jest.config.js --env=jsdom",
|
|
93
|
+
"test:coverage": "jest --config jest.config.js --env=jsdom --coverage",
|
|
94
|
+
"test:watch": "pnpm test:once --watch",
|
|
95
|
+
"lint": "npm-run-all lint:ts lint:css",
|
|
96
|
+
"lint:ts": "eslint 'src/**/*.{js,jsx,ts,tsx}' --quiet",
|
|
97
|
+
"lint:css": "stylelint --allow-empty-input './src/**/*.css'",
|
|
98
|
+
"build-storybook": "storybook build -c .storybook"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { DynamicFlow as DynamicFlowCore } from '@wise/dynamic-flow-client';
|
|
14
|
-
export var DynamicFlow = function (props) {
|
|
15
|
-
return _jsx(DynamicFlowCore, __assign({}, props));
|
|
16
|
-
};
|