@wise/dynamic-flow-client-internal 3.12.0-experimental-kyc-camera-7818850 → 3.12.0-experimental-rendererfor-4f35dc5

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.
@@ -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 (_jsx("div", { id: "df-legacy", children: _jsx(DynamicFlowCoreLegacy, __assign({}, coreProps)) }));
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 (_jsx("div", { id: "df-revamp", children: _jsx(DynamicFlowCoreRevamp, __assign({}, coreProps)) }));
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)("div", { id: "df-legacy", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlow, __spreadValues({}, coreProps)) });
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)("div", { id: "df-revamp", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlowRevamp, __spreadValues({}, coreProps)) });
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 p=Object.defineProperty,u=Object.defineProperties,R=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var w=(t,o,e)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,n=(t,o)=>{for(var e in o||(o={}))D.call(o,e)&&w(t,e,o[e]);if(F)for(var e of F(o))x.call(o,e)&&w(t,e,o[e]);return t},c=(t,o)=>u(t,I(o));var L=(t,o)=>{for(var e in o)p(t,e,{get:o[e],enumerable:!0})},S=(t,o,e,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of W(o))!D.call(t,a)&&a!==e&&p(t,a,{get:()=>o[a],enumerable:!(i=R(o,a))||i.enumerable});return t};var b=t=>S(p({},"__esModule",{value:!0}),t);var T={};L(T,{DynamicFlow:()=>s,DynamicFlowLegacy:()=>s,DynamicFlowRevamp:()=>f,DynamicFragment:()=>g,JsonSchemaForm:()=>l.JsonSchemaForm,KYCCameraStepRenderer:()=>C.KYCCameraStepRenderer,isValidSchema:()=>l.isValidSchema,makeCustomFetch:()=>A,translations:()=>l.translations});module.exports=b(T);var d=require("@wise/dynamic-flow-client"),l=require("@wise/dynamic-flow-client");var y=require("react"),h=require("react-intl"),r=require("@wise/dynamic-flow-client");var m=require("react/jsx-runtime");function s(t){let{customFetch:o=globalThis.fetch}=t,e=c(n({},t),{httpClient:o});return(0,m.jsx)("div",{id:"df-legacy",children:(0,m.jsx)(r.DynamicFlow,n({},e))})}function f(t){let{customFetch:o=globalThis.fetch}=t,e=P(o),i=c(n({},t),{httpClient:e});return(0,m.jsx)("div",{id:"df-revamp",children:(0,m.jsx)(r.DynamicFlowRevamp,n({},i))})}var g=(0,y.forwardRef)(function(o,e){let{customFetch:i=globalThis.fetch}=o,a=P(i),v=c(n({},o),{httpClient:a});return(0,m.jsx)(r.DynamicFragmentWise,c(n({},v),{ref:e}))}),P=t=>{let{locale:o}=(0,h.useIntl)();return(0,y.useCallback)(async(e,i={})=>{let a=new Headers(i.headers);return a.set("accept-language",o),t(e,c(n({},i),{credentials:"include",headers:a}))},[t,o])};var C=require("@wise/dynamic-flow-client"),A=d.makeHttpClient;
1
+ "use strict";var l=Object.defineProperty,R=Object.defineProperties,d=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var w=(t,o,e)=>o in t?l(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,i=(t,o)=>{for(var e in o||(o={}))D.call(o,e)&&w(t,e,o[e]);if(F)for(var e of F(o))I.call(o,e)&&w(t,e,o[e]);return t},c=(t,o)=>R(t,v(o));var L=(t,o)=>{for(var e in o)l(t,e,{get:o[e],enumerable:!0})},x=(t,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of W(o))!D.call(t,a)&&a!==e&&l(t,a,{get:()=>o[a],enumerable:!(n=d(o,a))||n.enumerable});return t};var b=t=>x(l({},"__esModule",{value:!0}),t);var A={};L(A,{DynamicFlow:()=>y,DynamicFlowLegacy:()=>y,DynamicFlowRevamp:()=>f,DynamicFragment:()=>P,JsonSchemaForm:()=>r.JsonSchemaForm,isValidSchema:()=>r.isValidSchema,makeCustomFetch:()=>S,translations:()=>r.translations});module.exports=b(A);var C=require("@wise/dynamic-flow-client"),r=require("@wise/dynamic-flow-client");var p=require("react"),h=require("react-intl"),m=require("@wise/dynamic-flow-client");var s=require("react/jsx-runtime");function y(t){let{customFetch:o=globalThis.fetch}=t,e=c(i({},t),{httpClient:o});return(0,s.jsx)(m.DynamicFlow,i({},e))}function f(t){let{customFetch:o=globalThis.fetch}=t,e=g(o),n=c(i({},t),{httpClient:e});return(0,s.jsx)(m.DynamicFlowRevamp,i({},n))}var P=(0,p.forwardRef)(function(o,e){let{customFetch:n=globalThis.fetch}=o,a=g(n),u=c(i({},o),{httpClient:a});return(0,s.jsx)(m.DynamicFragmentWise,c(i({},u),{ref:e}))}),g=t=>{let{locale:o}=(0,h.useIntl)();return(0,p.useCallback)(async(e,n={})=>{let a=new Headers(n.headers);return a.set("accept-language",o),t(e,c(i({},n),{credentials:"include",headers:a}))},[t,o])};var S=C.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("div", { id: "df-legacy", children: /* @__PURE__ */ jsx(DynamicFlowCoreLegacy, __spreadValues({}, coreProps)) });
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("div", { id: "df-revamp", children: /* @__PURE__ */ jsx(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
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
@@ -1,6 +1,5 @@
1
- export type { DynamicFlowProps, Step, InitialAction, InitialActionRevamp, DynamicFragmentController, } from '@wise/dynamic-flow-client';
1
+ export type { DynamicFlowProps, Step, InitialAction, DynamicFragmentController, Renderers, RendererFor, } 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client-internal",
3
- "version": "3.12.0-experimental-kyc-camera-7818850",
3
+ "version": "3.12.0-experimental-rendererfor-4f35dc5",
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,7 @@
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-types": "2.15.2"
77
+ "@wise/dynamic-flow-types": "2.15.3-experimental-rendererfor-4f35dc5"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "react": "^18",
@@ -82,7 +82,7 @@
82
82
  "react-intl": "^6"
83
83
  },
84
84
  "dependencies": {
85
- "@wise/dynamic-flow-client": "3.12.0-experimental-kyc-camera-7818850"
85
+ "@wise/dynamic-flow-client": "3.12.0-experimental-rendererfor-4f35dc5"
86
86
  },
87
87
  "scripts": {
88
88
  "dev": "pnpm build:visual-tests && storybook dev -p 3005",