@wise/dynamic-flow-client-internal 3.8.0-beta-ba9b66e → 3.8.0-experimental-da4e1e5

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.
@@ -10,14 +10,14 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { DynamicFlowRevamp as DynamicFlowCore, DynamicFlow as DynamicFlowLegacy, } from '@wise/dynamic-flow-client';
14
- export function DynamicFlow(props) {
13
+ import { DynamicFlowRevamp as DynamicFlowCoreRevamp, DynamicFlow as DynamicFlowCoreLegacy, } from '@wise/dynamic-flow-client';
14
+ export function DynamicFlowLegacy(props) {
15
15
  var _a = props.customFetch, customFetch = _a === void 0 ? globalThis.fetch : _a;
16
16
  var coreProps = __assign(__assign({}, props), { httpClient: customFetch });
17
- return _jsx(DynamicFlowLegacy, __assign({}, coreProps));
17
+ return _jsx(DynamicFlowCoreLegacy, __assign({}, coreProps));
18
18
  }
19
19
  export function DynamicFlowRevamp(props) {
20
20
  var _a = props.customFetch, customFetch = _a === void 0 ? globalThis.fetch : _a;
21
21
  var coreProps = __assign(__assign({}, props), { httpClient: customFetch });
22
- return _jsx(DynamicFlowCore, __assign({}, coreProps));
22
+ return _jsx(DynamicFlowCoreRevamp, __assign({}, coreProps));
23
23
  }
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { makeHttpClient } from '@wise/dynamic-flow-client';
2
2
  export { translations, JsonSchemaForm, isValidSchema } from '@wise/dynamic-flow-client';
3
- export { DynamicFlow, DynamicFlow as DynamicFlowLegacy, DynamicFlowRevamp, } from './dynamicFlow/DynamicFlow';
3
+ export { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, } from './dynamicFlow/DynamicFlow';
4
4
  export var makeCustomFetch = makeHttpClient;
package/build/main.js CHANGED
@@ -37,8 +37,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
37
37
  // src/index.ts
38
38
  var src_exports = {};
39
39
  __export(src_exports, {
40
- DynamicFlow: () => DynamicFlow,
41
- DynamicFlowLegacy: () => DynamicFlow,
40
+ DynamicFlow: () => DynamicFlowLegacy,
41
+ DynamicFlowLegacy: () => DynamicFlowLegacy,
42
42
  DynamicFlowRevamp: () => DynamicFlowRevamp,
43
43
  JsonSchemaForm: () => import_dynamic_flow_client3.JsonSchemaForm,
44
44
  isValidSchema: () => import_dynamic_flow_client3.isValidSchema,
@@ -52,7 +52,7 @@ var import_dynamic_flow_client3 = require("@wise/dynamic-flow-client");
52
52
  // src/dynamicFlow/DynamicFlow.tsx
53
53
  var import_dynamic_flow_client = require("@wise/dynamic-flow-client");
54
54
  var import_jsx_runtime = require("react/jsx-runtime");
55
- function DynamicFlow(props) {
55
+ function DynamicFlowLegacy(props) {
56
56
  const { customFetch = globalThis.fetch } = props;
57
57
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
58
58
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlow, __spreadValues({}, coreProps));
package/build/main.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var c=Object.defineProperty,P=Object.defineProperties,W=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var F=(i,t,o)=>t in i?c(i,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[t]=o,n=(i,t)=>{for(var o in t||(t={}))w.call(t,o)&&F(i,o,t[o]);if(r)for(var o of r(t))v.call(t,o)&&F(i,o,t[o]);return i},p=(i,t)=>P(i,f(t));var R=(i,t)=>{for(var o in t)c(i,o,{get:t[o],enumerable:!0})},g=(i,t,o,y)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of C(t))!w.call(i,a)&&a!==o&&c(i,a,{get:()=>t[a],enumerable:!(y=W(t,a))||y.enumerable});return i};var u=i=>g(c({},"__esModule",{value:!0}),i);var x={};R(x,{DynamicFlow:()=>l,DynamicFlowLegacy:()=>l,DynamicFlowRevamp:()=>D,JsonSchemaForm:()=>e.JsonSchemaForm,isValidSchema:()=>e.isValidSchema,makeCustomFetch:()=>I,translations:()=>e.translations});module.exports=u(x);var h=require("@wise/dynamic-flow-client"),e=require("@wise/dynamic-flow-client");var m=require("@wise/dynamic-flow-client");var s=require("react/jsx-runtime");function l(i){let{customFetch:t=globalThis.fetch}=i,o=p(n({},i),{httpClient:t});return(0,s.jsx)(m.DynamicFlow,n({},o))}function D(i){let{customFetch:t=globalThis.fetch}=i,o=p(n({},i),{httpClient:t});return(0,s.jsx)(m.DynamicFlowRevamp,n({},o))}var I=h.makeHttpClient;
1
+ "use strict";var n=Object.defineProperty,P=Object.defineProperties,C=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,R=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(s)for(var i of s(o))R.call(o,i)&&F(t,i,o[i]);return t},p=(t,o)=>P(t,f(o));var g=(t,o)=>{for(var i in o)n(t,i,{get:o[i],enumerable:!0})},L=(t,o,i,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of v(o))!w.call(t,e)&&e!==i&&n(t,e,{get:()=>o[e],enumerable:!(r=C(o,e))||r.enumerable});return t};var u=t=>L(n({},"__esModule",{value:!0}),t);var W={};g(W,{DynamicFlow:()=>l,DynamicFlowLegacy:()=>l,DynamicFlowRevamp:()=>D,JsonSchemaForm:()=>a.JsonSchemaForm,isValidSchema:()=>a.isValidSchema,makeCustomFetch:()=>I,translations:()=>a.translations});module.exports=u(W);var h=require("@wise/dynamic-flow-client"),a=require("@wise/dynamic-flow-client");var m=require("@wise/dynamic-flow-client");var y=require("react/jsx-runtime");function l(t){let{customFetch:o=globalThis.fetch}=t,i=p(c({},t),{httpClient:o});return(0,y.jsx)(m.DynamicFlow,c({},i))}function D(t){let{customFetch:o=globalThis.fetch}=t,i=p(c({},t),{httpClient:o});return(0,y.jsx)(m.DynamicFlowRevamp,c({},i))}var I=h.makeHttpClient;
package/build/main.mjs CHANGED
@@ -24,26 +24,26 @@ import { translations, JsonSchemaForm, isValidSchema } from "@wise/dynamic-flow-
24
24
 
25
25
  // src/dynamicFlow/DynamicFlow.tsx
26
26
  import {
27
- DynamicFlowRevamp as DynamicFlowCore,
28
- DynamicFlow as DynamicFlowLegacy
27
+ DynamicFlowRevamp as DynamicFlowCoreRevamp,
28
+ DynamicFlow as DynamicFlowCoreLegacy
29
29
  } from "@wise/dynamic-flow-client";
30
30
  import { jsx } from "react/jsx-runtime";
31
- function DynamicFlow(props) {
31
+ function DynamicFlowLegacy(props) {
32
32
  const { customFetch = globalThis.fetch } = props;
33
33
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
34
- return /* @__PURE__ */ jsx(DynamicFlowLegacy, __spreadValues({}, coreProps));
34
+ return /* @__PURE__ */ jsx(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
35
35
  }
36
36
  function DynamicFlowRevamp(props) {
37
37
  const { customFetch = globalThis.fetch } = props;
38
38
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
39
- return /* @__PURE__ */ jsx(DynamicFlowCore, __spreadValues({}, coreProps));
39
+ return /* @__PURE__ */ jsx(DynamicFlowCoreRevamp, __spreadValues({}, coreProps));
40
40
  }
41
41
 
42
42
  // src/index.ts
43
43
  var makeCustomFetch = makeHttpClient;
44
44
  export {
45
- DynamicFlow,
46
- DynamicFlow as DynamicFlowLegacy,
45
+ DynamicFlowLegacy as DynamicFlow,
46
+ DynamicFlowLegacy,
47
47
  DynamicFlowRevamp,
48
48
  JsonSchemaForm,
49
49
  isValidSchema,
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { type DynamicFlowProps as DynamicFlowLegacyProps, type DynamicFlowRevampPropsWithInitialAction, type DynamicFlowRevampPropsWithInitialStep } from '@wise/dynamic-flow-client';
2
+ import { type DynamicFlowProps as DynamicFlowCoreLegacyProps, type DynamicFlowRevampProps as DynamicFlowCoreRevampProps, type DynamicFlowRevampPropsWithInitialAction, type DynamicFlowRevampPropsWithInitialStep } from '@wise/dynamic-flow-client';
3
3
  import type { DynamicFlowPropsWithInitialAction, DynamicFlowPropsWithInitialStep } from '@wise/dynamic-flow-client/build/types/legacy/dynamic-flow-types';
4
- export type WiseDynamicFlowProps = (Omit<DynamicFlowPropsWithInitialAction, 'httpClient'> | Omit<DynamicFlowPropsWithInitialStep, 'httpClient'>) & {
5
- customFetch?: DynamicFlowLegacyProps['httpClient'];
4
+ export type DynamicFlowLegacyProps = (Omit<DynamicFlowPropsWithInitialAction, 'httpClient'> | Omit<DynamicFlowPropsWithInitialStep, 'httpClient'>) & {
5
+ customFetch?: DynamicFlowCoreLegacyProps['httpClient'];
6
6
  };
7
- export type WiseRevampDynamicFlowProps = (Omit<DynamicFlowRevampPropsWithInitialAction, 'httpClient'> | Omit<DynamicFlowRevampPropsWithInitialStep, 'httpClient'>) & {
8
- customFetch?: DynamicFlowLegacyProps['httpClient'];
7
+ export type DynamicFlowRevampProps = (Omit<DynamicFlowRevampPropsWithInitialAction, 'httpClient'> | Omit<DynamicFlowRevampPropsWithInitialStep, 'httpClient'>) & {
8
+ customFetch?: DynamicFlowCoreRevampProps['httpClient'];
9
9
  };
10
- export declare function DynamicFlow(props: WiseDynamicFlowProps): JSX.Element;
11
- export declare function DynamicFlowRevamp(props: WiseRevampDynamicFlowProps): JSX.Element;
10
+ export declare function DynamicFlowLegacy(props: DynamicFlowLegacyProps): JSX.Element;
11
+ export declare function DynamicFlowRevamp(props: DynamicFlowRevampProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export type { DynamicFlowProps, Step, InitialAction } from '@wise/dynamic-flow-client';
2
2
  export { translations, JsonSchemaForm, isValidSchema } from '@wise/dynamic-flow-client';
3
- export type { WiseDynamicFlowProps, WiseDynamicFlowProps as WiseLegacyDynamicFlowProps, WiseRevampDynamicFlowProps, } from './dynamicFlow/DynamicFlow';
4
- export { DynamicFlow, DynamicFlow as DynamicFlowLegacy, DynamicFlowRevamp, } from './dynamicFlow/DynamicFlow';
3
+ export type { DynamicFlowLegacyProps as WiseDynamicFlowProps, DynamicFlowLegacyProps, DynamicFlowRevampProps, } from './dynamicFlow/DynamicFlow';
4
+ export { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, } from './dynamicFlow/DynamicFlow';
5
5
  export declare const makeCustomFetch: (baseUrl: string, additionalHeaders?: HeadersInit | undefined) => typeof fetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client-internal",
3
- "version": "3.8.0-beta-ba9b66e",
3
+ "version": "3.8.0-experimental-da4e1e5",
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.8.0-beta-ba9b66e"
83
+ "@wise/dynamic-flow-client": "3.8.0-experimental-da4e1e5"
84
84
  },
85
85
  "scripts": {
86
86
  "dev": "storybook dev -p 3005",