@wise/dynamic-flow-client-internal 3.12.0-experimental-kyc-camera-59faf76 → 3.12.0-experimental-kyc-camera-ebd94d5

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(DynamicFlowCoreLegacy, __assign({}, coreProps));
64
+ return (_jsx("div", { id: "df-legacy", children: _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(DynamicFlowCoreRevamp, __assign({}, coreProps));
70
+ return (_jsx("div", { id: "df-revamp", children: _jsx(DynamicFlowCoreRevamp, __assign({}, coreProps)) }));
71
71
  }
72
72
  /**
73
73
  * DynamicFragment is like DynamicFlowRevamp, but it also accepts a ForwardedRef.
package/build/main.js CHANGED
@@ -58,13 +58,13 @@ var import_jsx_runtime = require("react/jsx-runtime");
58
58
  function DynamicFlowLegacy(props) {
59
59
  const { customFetch = globalThis.fetch } = props;
60
60
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
61
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlow, __spreadValues({}, coreProps));
61
+ 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)) });
62
62
  }
63
63
  function DynamicFlowRevamp(props) {
64
64
  const { customFetch = globalThis.fetch } = props;
65
65
  const httpClient = useWiseHttpClient(customFetch);
66
66
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient });
67
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlowRevamp, __spreadValues({}, coreProps));
67
+ 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)) });
68
68
  }
69
69
  var DynamicFragment = (0, import_react.forwardRef)(function DynamicFragment2(props, ref) {
70
70
  const { customFetch = globalThis.fetch } = props;
package/build/main.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var l=Object.defineProperty,R=Object.defineProperties,d=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,W=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,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))W.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,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of I(o))!D.call(t,a)&&a!==e&&l(t,a,{get:()=>o[a],enumerable:!(i=d(o,a))||i.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(n({},t),{httpClient:o});return(0,s.jsx)(m.DynamicFlow,n({},e))}function f(t){let{customFetch:o=globalThis.fetch}=t,e=g(o),i=c(n({},t),{httpClient:e});return(0,s.jsx)(m.DynamicFlowRevamp,n({},i))}var P=(0,p.forwardRef)(function(o,e){let{customFetch:i=globalThis.fetch}=o,a=g(i),u=c(n({},o),{httpClient:a});return(0,s.jsx)(m.DynamicFragmentWise,c(n({},u),{ref:e}))}),g=t=>{let{locale:o}=(0,h.useIntl)();return(0,p.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 S=C.makeHttpClient;
1
+ "use strict";var p=Object.defineProperty,C=Object.defineProperties,u=Object.getOwnPropertyDescriptor,R=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,W=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))W.call(o,e)&&w(t,e,o[e]);return t},c=(t,o)=>C(t,R(o));var L=(t,o)=>{for(var e in o)p(t,e,{get:o[e],enumerable:!0})},x=(t,o,e,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of I(o))!D.call(t,a)&&a!==e&&p(t,a,{get:()=>o[a],enumerable:!(i=u(o,a))||i.enumerable});return t};var b=t=>x(p({},"__esModule",{value:!0}),t);var A={};L(A,{DynamicFlow:()=>s,DynamicFlowLegacy:()=>s,DynamicFlowRevamp:()=>f,DynamicFragment:()=>g,JsonSchemaForm:()=>l.JsonSchemaForm,isValidSchema:()=>l.isValidSchema,makeCustomFetch:()=>S,translations:()=>l.translations});module.exports=b(A);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 S=d.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(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
37
+ return /* @__PURE__ */ jsx("div", { id: "df-legacy", children: /* @__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(DynamicFlowCoreRevamp, __spreadValues({}, coreProps));
43
+ return /* @__PURE__ */ jsx("div", { id: "df-revamp", children: /* @__PURE__ */ jsx(DynamicFlowCoreRevamp, __spreadValues({}, coreProps)) });
44
44
  }
45
45
  var DynamicFragment = forwardRef(function DynamicFragment2(props, ref) {
46
46
  const { customFetch = globalThis.fetch } = props;
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-59faf76",
3
+ "version": "3.12.0-experimental-kyc-camera-ebd94d5",
4
4
  "description": "Dynamic Flow web client for Wise",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -79,7 +79,7 @@
79
79
  "react-intl": "^6"
80
80
  },
81
81
  "dependencies": {
82
- "@wise/dynamic-flow-client": "3.12.0-experimental-kyc-camera-59faf76"
82
+ "@wise/dynamic-flow-client": "3.12.0-experimental-kyc-camera-ebd94d5"
83
83
  },
84
84
  "scripts": {
85
85
  "dev": "storybook dev -p 3005",