@wise/dynamic-flow-client-internal 3.13.0-experimental-kyc-camera-be63581 → 3.13.1-experimental-renderers-7a8a51a
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/dynamicFlow/DynamicFlow.js +2 -2
- package/build/index.js +0 -1
- package/build/main.js +2 -4
- package/build/main.min.js +1 -1
- package/build/main.mjs +2 -4
- package/build/stories/visual-tests/generated.story.js +6 -0
- package/build/types/index.d.ts +1 -2
- package/build/types/stories/visual-tests/generated.story.d.ts +1 -0
- package/package.json +4 -3
|
@@ -61,13 +61,13 @@ import { DynamicFlow as DynamicFlowCoreLegacy, DynamicFlowRevamp as DynamicFlowC
|
|
|
61
61
|
export function DynamicFlowLegacy(props) {
|
|
62
62
|
var _a = props.customFetch, customFetch = _a === void 0 ? globalThis.fetch : _a;
|
|
63
63
|
var coreProps = __assign(__assign({}, props), { httpClient: customFetch });
|
|
64
|
-
return
|
|
64
|
+
return _jsx(DynamicFlowCoreLegacy, __assign({}, coreProps));
|
|
65
65
|
}
|
|
66
66
|
export function DynamicFlowRevamp(props) {
|
|
67
67
|
var _a = props.customFetch, customFetch = _a === void 0 ? globalThis.fetch : _a;
|
|
68
68
|
var httpClient = useWiseHttpClient(customFetch);
|
|
69
69
|
var coreProps = __assign(__assign({}, props), { httpClient: httpClient });
|
|
70
|
-
return
|
|
70
|
+
return _jsx(DynamicFlowCoreRevamp, __assign({}, coreProps));
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* DynamicFragment is like DynamicFlowRevamp, but it also accepts a ForwardedRef.
|
package/build/index.js
CHANGED
|
@@ -2,4 +2,3 @@ import { makeHttpClient } from '@wise/dynamic-flow-client';
|
|
|
2
2
|
export { translations, JsonSchemaForm, isValidSchema } from '@wise/dynamic-flow-client';
|
|
3
3
|
export { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, DynamicFragment, } from './dynamicFlow/DynamicFlow';
|
|
4
4
|
export var makeCustomFetch = makeHttpClient;
|
|
5
|
-
export { KYCCameraStepRenderer } from '@wise/dynamic-flow-client';
|
package/build/main.js
CHANGED
|
@@ -42,7 +42,6 @@ __export(src_exports, {
|
|
|
42
42
|
DynamicFlowRevamp: () => DynamicFlowRevamp,
|
|
43
43
|
DynamicFragment: () => DynamicFragment,
|
|
44
44
|
JsonSchemaForm: () => import_dynamic_flow_client3.JsonSchemaForm,
|
|
45
|
-
KYCCameraStepRenderer: () => import_dynamic_flow_client4.KYCCameraStepRenderer,
|
|
46
45
|
isValidSchema: () => import_dynamic_flow_client3.isValidSchema,
|
|
47
46
|
makeCustomFetch: () => makeCustomFetch,
|
|
48
47
|
translations: () => import_dynamic_flow_client3.translations
|
|
@@ -59,13 +58,13 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
59
58
|
function DynamicFlowLegacy(props) {
|
|
60
59
|
const { customFetch = globalThis.fetch } = props;
|
|
61
60
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlow, __spreadValues({}, coreProps));
|
|
63
62
|
}
|
|
64
63
|
function DynamicFlowRevamp(props) {
|
|
65
64
|
const { customFetch = globalThis.fetch } = props;
|
|
66
65
|
const httpClient = useWiseHttpClient(customFetch);
|
|
67
66
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient });
|
|
68
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlowRevamp, __spreadValues({}, coreProps));
|
|
69
68
|
}
|
|
70
69
|
var DynamicFragment = (0, import_react.forwardRef)(function DynamicFragment2(props, ref) {
|
|
71
70
|
const { customFetch = globalThis.fetch } = props;
|
|
@@ -86,5 +85,4 @@ var useWiseHttpClient = (httpClient) => {
|
|
|
86
85
|
};
|
|
87
86
|
|
|
88
87
|
// src/index.ts
|
|
89
|
-
var import_dynamic_flow_client4 = require("@wise/dynamic-flow-client");
|
|
90
88
|
var makeCustomFetch = import_dynamic_flow_client2.makeHttpClient;
|
package/build/main.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var s=Object.defineProperty,f=Object.defineProperties,C=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var P=(r,e,o)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,a=(r,e)=>{for(var o in e||(e={}))F.call(e,o)&&P(r,o,e[o]);if(d)for(var o of d(e))S.call(e,o)&&P(r,o,e[o]);return r},i=(r,e)=>f(r,I(e));var L=(r,e)=>{for(var o in e)s(r,o,{get:e[o],enumerable:!0})},x=(r,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of v(e))!F.call(r,t)&&t!==o&&s(r,t,{get:()=>e[t],enumerable:!(n=C(e,t))||n.enumerable});return r};var W=r=>x(s({},"__esModule",{value:!0}),r);var A={};L(A,{DynamicFlow:()=>y,DynamicFlowLegacy:()=>y,DynamicFlowRevamp:()=>w,DynamicFragment:()=>D,JsonSchemaForm:()=>c.JsonSchemaForm,isValidSchema:()=>c.isValidSchema,makeCustomFetch:()=>b,translations:()=>c.translations});module.exports=W(A);var u=require("@wise/dynamic-flow-client"),c=require("@wise/dynamic-flow-client");var m=require("react"),R=require("react-intl"),p=require("@wise/dynamic-flow-client");var l=require("react/jsx-runtime");function y(r){let{customFetch:e=globalThis.fetch}=r,o=i(a({},r),{httpClient:e});return(0,l.jsx)(p.DynamicFlow,a({},o))}function w(r){let{customFetch:e=globalThis.fetch}=r,o=h(e),n=i(a({},r),{httpClient:o});return(0,l.jsx)(p.DynamicFlowRevamp,a({},n))}var D=(0,m.forwardRef)(function(e,o){let{customFetch:n=globalThis.fetch}=e,t=h(n),g=i(a({},e),{httpClient:t});return(0,l.jsx)(p.DynamicFragmentWise,i(a({},g),{ref:o}))}),h=r=>{let{locale:e}=(0,R.useIntl)();return(0,m.useCallback)(async(o,n={})=>{let t=new Headers(n.headers);return t.set("accept-language",e),r(o,i(a({},n),{credentials:"include",headers:t}))},[r,e])};var b=u.makeHttpClient;
|
package/build/main.mjs
CHANGED
|
@@ -34,13 +34,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
34
34
|
function DynamicFlowLegacy(props) {
|
|
35
35
|
const { customFetch = globalThis.fetch } = props;
|
|
36
36
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
37
|
-
return /* @__PURE__ */ jsx(
|
|
37
|
+
return /* @__PURE__ */ jsx(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
|
|
38
38
|
}
|
|
39
39
|
function DynamicFlowRevamp(props) {
|
|
40
40
|
const { customFetch = globalThis.fetch } = props;
|
|
41
41
|
const httpClient = useWiseHttpClient(customFetch);
|
|
42
42
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient });
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
43
|
+
return /* @__PURE__ */ jsx(DynamicFlowCoreRevamp, __spreadValues({}, coreProps));
|
|
44
44
|
}
|
|
45
45
|
var DynamicFragment = forwardRef(function DynamicFragment2(props, ref) {
|
|
46
46
|
const { customFetch = globalThis.fetch } = props;
|
|
@@ -61,7 +61,6 @@ var useWiseHttpClient = (httpClient) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/index.ts
|
|
64
|
-
import { KYCCameraStepRenderer } from "@wise/dynamic-flow-client";
|
|
65
64
|
var makeCustomFetch = makeHttpClient;
|
|
66
65
|
export {
|
|
67
66
|
DynamicFlowLegacy as DynamicFlow,
|
|
@@ -69,7 +68,6 @@ export {
|
|
|
69
68
|
DynamicFlowRevamp,
|
|
70
69
|
DynamicFragment,
|
|
71
70
|
JsonSchemaForm,
|
|
72
|
-
KYCCameraStepRenderer,
|
|
73
71
|
isValidSchema,
|
|
74
72
|
makeCustomFetch,
|
|
75
73
|
translations
|
|
@@ -22,6 +22,12 @@ export var align = {
|
|
|
22
22
|
return _jsx(DynamicFlowSideBySide, { initialStep: JSON.parse(generated.align) }, "align");
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
+
export var arraytuple = {
|
|
26
|
+
name: 'Array Tuple',
|
|
27
|
+
render: function () {
|
|
28
|
+
return _jsx(DynamicFlowSideBySide, { initialStep: JSON.parse(generated.arraytuple) }, "arraytuple");
|
|
29
|
+
}
|
|
30
|
+
};
|
|
25
31
|
export var box = {
|
|
26
32
|
name: 'Box',
|
|
27
33
|
render: function () {
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export type { DynamicFlowProps, DynamicFragmentController, Step, InitialAction,
|
|
1
|
+
export type { DynamicFlowProps, DynamicFragmentController, Step, InitialAction, Renderer, Renderers, AlertRendererProps, BooleanInputRendererProps, BoxRendererProps, ButtonRendererProps, ColumnsRendererProps, DateInputRendererProps, DecisionRendererProps, DividerRendererProps, FormRendererProps, FormSectionRendererProps, HeadingRendererProps, HiddenRendererProps, ImageRendererProps, InstructionsRendererProps, IntegerInputRendererProps, LoadingIndicatorRendererProps, MarkdownRendererProps, ModalRendererProps, MultiSelectInputRendererProps, MultiUploadInputRendererProps, NumberInputRendererProps, ParagraphRendererProps, RepeatableRendererProps, ReviewRendererProps, SearchRendererProps, SelectInputRendererProps, StatusListRendererProps, StepRendererProps, TextInputRendererProps, UploadInputRendererProps, } from '@wise/dynamic-flow-client';
|
|
2
2
|
export { translations, JsonSchemaForm, isValidSchema } from '@wise/dynamic-flow-client';
|
|
3
3
|
export type { DynamicFlowLegacyProps as WiseDynamicFlowProps, DynamicFlowLegacyProps, DynamicFlowRevampProps, } from './dynamicFlow/DynamicFlow';
|
|
4
4
|
export { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, DynamicFragment, } from './dynamicFlow/DynamicFlow';
|
|
5
5
|
export declare const makeCustomFetch: (baseUrl: string, additionalHeaders?: HeadersInit | undefined) => typeof fetch;
|
|
6
|
-
export { KYCCameraStepRenderer } from '@wise/dynamic-flow-client';
|
|
@@ -5,6 +5,7 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof DynamicFlowSideBySide>;
|
|
6
6
|
export declare const alert: Story;
|
|
7
7
|
export declare const align: Story;
|
|
8
|
+
export declare const arraytuple: Story;
|
|
8
9
|
export declare const box: Story;
|
|
9
10
|
export declare const button: Story;
|
|
10
11
|
export declare const checkbox: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.1-experimental-renderers-7a8a51a",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
"typescript": "5.4.5",
|
|
75
75
|
"webpack": "5.92.0",
|
|
76
76
|
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
77
|
-
"@wise/dynamic-flow-
|
|
77
|
+
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
78
|
+
"@wise/dynamic-flow-types": "2.15.4"
|
|
78
79
|
},
|
|
79
80
|
"peerDependencies": {
|
|
80
81
|
"react": "^18",
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
"react-intl": "^6"
|
|
83
84
|
},
|
|
84
85
|
"dependencies": {
|
|
85
|
-
"@wise/dynamic-flow-client": "3.13.
|
|
86
|
+
"@wise/dynamic-flow-client": "3.13.1-experimental-renderers-7a8a51a"
|
|
86
87
|
},
|
|
87
88
|
"scripts": {
|
|
88
89
|
"dev": "pnpm build:visual-tests && storybook dev -p 3005",
|