@wise/dynamic-flow-client-internal 3.3.1 → 3.3.2
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/main.js +4 -3
- package/build/main.min.js +1 -1
- package/build/main.mjs +4 -3
- package/package.json +2 -2
package/build/main.js
CHANGED
|
@@ -51,11 +51,12 @@ var import_dynamic_flow_client3 = require("@wise/dynamic-flow-client");
|
|
|
51
51
|
var import_dynamic_flow_client = require("@wise/dynamic-flow-client");
|
|
52
52
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
53
53
|
function DynamicFlow(props) {
|
|
54
|
+
var _a;
|
|
54
55
|
const { customFetch = globalThis.fetch, features } = props;
|
|
55
56
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
56
|
-
const revampEnabled = features == null ? void 0 : features.
|
|
57
|
-
(
|
|
58
|
-
);
|
|
57
|
+
const revampEnabled = (_a = features == null ? void 0 : features.some(
|
|
58
|
+
({ featureName, variant }) => featureName === "df-revamp" && variant && variant > 0
|
|
59
|
+
)) != null ? _a : false;
|
|
59
60
|
return revampEnabled ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlowRevamp, __spreadValues({}, coreProps)) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlow, __spreadValues({}, coreProps));
|
|
60
61
|
}
|
|
61
62
|
|
package/build/main.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var n=Object.defineProperty,d=Object.defineProperties,W=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var F=(t,o,i)=>o in t?n(t,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[o]=i,c=(t,o)=>{for(var i in o||(o={}))w.call(o,i)&&F(t,i,o[i]);if(y)for(var i of y(o))C.call(o,i)&&F(t,i,o[i]);return t},D=(t,o)=>d(t,u(o));var g=(t,o)=>{for(var i in o)n(t,i,{get:o[i],enumerable:!0})},v=(t,o,i,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of x(o))!w.call(t,e)&&e!==i&&n(t,e,{get:()=>o[e],enumerable:!(m=W(o,e))||m.enumerable});return t};var I=t=>v(n({},"__esModule",{value:!0}),t);var b={};g(b,{DynamicFlow:()=>h,JsonSchemaForm:()=>a.JsonSchemaForm,isValidSchema:()=>a.isValidSchema,makeCustomFetch:()=>S,translations:()=>a.translations});module.exports=I(b);var P=require("@wise/dynamic-flow-client"),a=require("@wise/dynamic-flow-client");var l=require("@wise/dynamic-flow-client");var p=require("react/jsx-runtime");function h(t){var r;let{customFetch:o=globalThis.fetch,features:i}=t,m=D(c({},t),{httpClient:o});return((r=i==null?void 0:i.some(({featureName:f,variant:s})=>f==="df-revamp"&&s&&s>0))!=null?r:!1)?(0,p.jsx)(l.DynamicFlowRevamp,c({},m)):(0,p.jsx)(l.DynamicFlow,c({},m))}var S=P.makeHttpClient;
|
package/build/main.mjs
CHANGED
|
@@ -29,11 +29,12 @@ import {
|
|
|
29
29
|
} from "@wise/dynamic-flow-client";
|
|
30
30
|
import { jsx } from "react/jsx-runtime";
|
|
31
31
|
function DynamicFlow(props) {
|
|
32
|
+
var _a;
|
|
32
33
|
const { customFetch = globalThis.fetch, features } = props;
|
|
33
34
|
const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
|
|
34
|
-
const revampEnabled = features == null ? void 0 : features.
|
|
35
|
-
(
|
|
36
|
-
);
|
|
35
|
+
const revampEnabled = (_a = features == null ? void 0 : features.some(
|
|
36
|
+
({ featureName, variant }) => featureName === "df-revamp" && variant && variant > 0
|
|
37
|
+
)) != null ? _a : false;
|
|
37
38
|
return revampEnabled ? /* @__PURE__ */ jsx(DynamicFlowRevamp, __spreadValues({}, coreProps)) : /* @__PURE__ */ jsx(DynamicFlowLegacy, __spreadValues({}, coreProps));
|
|
38
39
|
}
|
|
39
40
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-intl": "^6"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@wise/dynamic-flow-client": "3.3.
|
|
83
|
+
"@wise/dynamic-flow-client": "3.3.2"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"dev": "storybook dev -p 3005",
|