@wise/dynamic-flow-client-internal 3.9.0-experimental-bd037e3 → 3.9.0-experimental-90bdf26

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/README.md CHANGED
@@ -238,32 +238,28 @@ type LoaderConfig = {
238
238
  | `initial` | boolean | Whether or not to display the Loader component while loading the initial step. | true |
239
239
  | `submission` | boolean | Whether or not to display the Loader component during form submissions. | false |
240
240
 
241
- ## Using Dynamic Flow with a ref
241
+ ## DynamicFragment
242
242
 
243
- **Note:** this only works with `DynamicFlowRevamp`.
244
-
245
- If you need to extract the submittable data outside of a submission, you can do so by providing us with a ref. This will give you access to two methods: `getValue` and `validate`. For example:
243
+ If you need to get the submittable data outside of a submission, you can use the `DynamicFragment` component. This will give you access to two methods: `getValue` and `validate` via a [ref](https://react.dev/reference/react/useRef). For example:
246
244
 
247
245
  ```tsx
248
- import type { DynamicFlowController } from '@wise/dynamic-flow-client-internal';
249
- import { DynamicFlowRevamp } from '@wise/dynamic-flow-client-internal';
246
+ import type { DynamicFragmentController } from '@wise/dynamic-flow-client-internal';
247
+ import { DynamicFragment } from '@wise/dynamic-flow-client-internal';
250
248
  import { useRef } from 'react';
251
249
 
252
250
  function DynamicFlowWithRef() {
253
- const ref = useRef<DynamicFlowController | null>(null);
251
+ const ref = useRef<DynamicFragmentController>(null);
254
252
 
255
253
  return (
256
254
  <>
257
- <DynamicFlowRevamp
255
+ <DynamicFragment
258
256
  ref={ref}
259
257
  flowId={"id"}
260
258
  customFetch={fetch}
261
259
  initialStep={selectedStep}
262
- onEvent={(eventName, props) => {
263
- // Note - this event will only be fired if you provide a ref
264
- if (eventName === 'Dynamic Flow - Value Changed') {
265
- // Value has changed.
266
- }
260
+ onValueChange={async () => {
261
+ const value = (await ref.current?.getValue()) ?? null);
262
+ console.log('Value changed to', JSON.stringify(value));
267
263
  }}
268
264
  onCompletion={(error) => console.error(error)}
269
265
  onCompletion={() => console.log('Completed')}
@@ -10,15 +10,25 @@ 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 DynamicFlowCoreRevamp, DynamicFlow as DynamicFlowCoreLegacy, } from '@wise/dynamic-flow-client';
13
+ import { DynamicFlowRevamp as DynamicFlowCoreRevamp, DynamicFlow as DynamicFlowCoreLegacy, DynamicFragmentWise, } from '@wise/dynamic-flow-client';
14
14
  import { forwardRef } from 'react';
15
15
  export function DynamicFlowLegacy(props) {
16
16
  var _a = props.customFetch, customFetch = _a === void 0 ? globalThis.fetch : _a;
17
17
  var coreProps = __assign(__assign({}, props), { httpClient: customFetch });
18
18
  return _jsx(DynamicFlowCoreLegacy, __assign({}, coreProps));
19
19
  }
20
- export var DynamicFlowRevamp = forwardRef(function DynamicFlowRevamp(props, ref) {
20
+ export function DynamicFlowRevamp(props) {
21
21
  var _a = props.customFetch, customFetch = _a === void 0 ? globalThis.fetch : _a;
22
22
  var coreProps = __assign(__assign({}, props), { httpClient: customFetch });
23
- return _jsx(DynamicFlowCoreRevamp, __assign({ ref: ref }, coreProps));
23
+ return _jsx(DynamicFlowCoreRevamp, __assign({}, coreProps));
24
+ }
25
+ /**
26
+ * DynamicFragment is like DynamicFlowRevamp, but it also accepts a ForwardedRef.
27
+ * This ref conforms to the DynamicFragmentController type, containing two functions: `getValue` and `validate`.
28
+ * @experimental This component may be changed in the future without notice.
29
+ */
30
+ export var DynamicFragment = forwardRef(function DynamicFragment(props, ref) {
31
+ var _a = props.customFetch, customFetch = _a === void 0 ? globalThis.fetch : _a;
32
+ var coreProps = __assign(__assign({}, props), { httpClient: customFetch });
33
+ return _jsx(DynamicFragmentWise, __assign({}, coreProps, { ref: ref }));
24
34
  });
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 { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, } from './dynamicFlow/DynamicFlow';
3
+ export { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, DynamicFragment, } from './dynamicFlow/DynamicFlow';
4
4
  export var makeCustomFetch = makeHttpClient;
package/build/main.js CHANGED
@@ -40,6 +40,7 @@ __export(src_exports, {
40
40
  DynamicFlow: () => DynamicFlowLegacy,
41
41
  DynamicFlowLegacy: () => DynamicFlowLegacy,
42
42
  DynamicFlowRevamp: () => DynamicFlowRevamp,
43
+ DynamicFragment: () => DynamicFragment,
43
44
  JsonSchemaForm: () => import_dynamic_flow_client3.JsonSchemaForm,
44
45
  isValidSchema: () => import_dynamic_flow_client3.isValidSchema,
45
46
  makeCustomFetch: () => makeCustomFetch,
@@ -58,10 +59,15 @@ function DynamicFlowLegacy(props) {
58
59
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
59
60
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlow, __spreadValues({}, coreProps));
60
61
  }
61
- var DynamicFlowRevamp = (0, import_react.forwardRef)(function DynamicFlowRevamp2(props, ref) {
62
+ function DynamicFlowRevamp(props) {
62
63
  const { customFetch = globalThis.fetch } = props;
63
64
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
64
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlowRevamp, __spreadValues({ ref }, coreProps));
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFlowRevamp, __spreadValues({}, coreProps));
66
+ }
67
+ var DynamicFragment = (0, import_react.forwardRef)(function DynamicFragment2(props, ref) {
68
+ const { customFetch = globalThis.fetch } = props;
69
+ const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dynamic_flow_client.DynamicFragmentWise, __spreadProps(__spreadValues({}, coreProps), { ref }));
65
71
  });
66
72
 
67
73
  // src/index.ts
package/build/main.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty,f=Object.defineProperties,C=Object.getOwnPropertyDescriptor,R=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;var F=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var w=(t,o,i)=>o in t?m(t,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[o]=i,n=(t,o)=>{for(var i in o||(o={}))F.call(o,i)&&w(t,i,o[i]);if(s)for(var i of s(o))g.call(o,i)&&w(t,i,o[i]);return t},p=(t,o)=>f(t,R(o));var d=(t,o)=>{for(var i in o)m(t,i,{get:o[i],enumerable:!0})},L=(t,o,i,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of v(o))!F.call(t,e)&&e!==i&&m(t,e,{get:()=>o[e],enumerable:!(c=C(o,e))||c.enumerable});return t};var u=t=>L(m({},"__esModule",{value:!0}),t);var I={};d(I,{DynamicFlow:()=>r,DynamicFlowLegacy:()=>r,DynamicFlowRevamp:()=>h,JsonSchemaForm:()=>a.JsonSchemaForm,isValidSchema:()=>a.isValidSchema,makeCustomFetch:()=>x,translations:()=>a.translations});module.exports=u(I);var P=require("@wise/dynamic-flow-client"),a=require("@wise/dynamic-flow-client");var l=require("@wise/dynamic-flow-client"),D=require("react");var y=require("react/jsx-runtime");function r(t){let{customFetch:o=globalThis.fetch}=t,i=p(n({},t),{httpClient:o});return(0,y.jsx)(l.DynamicFlow,n({},i))}var h=(0,D.forwardRef)(function(o,i){let{customFetch:c=globalThis.fetch}=o,e=p(n({},o),{httpClient:c});return(0,y.jsx)(l.DynamicFlowRevamp,n({ref:i},e))});var x=P.makeHttpClient;
1
+ "use strict";var p=Object.defineProperty,g=Object.defineProperties,C=Object.getOwnPropertyDescriptor,R=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var F=(t,o,e)=>o in t?p(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,a=(t,o)=>{for(var e in o||(o={}))w.call(o,e)&&F(t,e,o[e]);if(s)for(var e of s(o))u.call(o,e)&&F(t,e,o[e]);return t},c=(t,o)=>g(t,R(o));var d=(t,o)=>{for(var e in o)p(t,e,{get:o[e],enumerable:!0})},L=(t,o,e,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of v(o))!w.call(t,i)&&i!==e&&p(t,i,{get:()=>o[i],enumerable:!(r=C(o,i))||r.enumerable});return t};var W=t=>L(p({},"__esModule",{value:!0}),t);var I={};d(I,{DynamicFlow:()=>y,DynamicFlowLegacy:()=>y,DynamicFlowRevamp:()=>h,DynamicFragment:()=>P,JsonSchemaForm:()=>m.JsonSchemaForm,isValidSchema:()=>m.isValidSchema,makeCustomFetch:()=>x,translations:()=>m.translations});module.exports=W(I);var f=require("@wise/dynamic-flow-client"),m=require("@wise/dynamic-flow-client");var n=require("@wise/dynamic-flow-client"),D=require("react");var l=require("react/jsx-runtime");function y(t){let{customFetch:o=globalThis.fetch}=t,e=c(a({},t),{httpClient:o});return(0,l.jsx)(n.DynamicFlow,a({},e))}function h(t){let{customFetch:o=globalThis.fetch}=t,e=c(a({},t),{httpClient:o});return(0,l.jsx)(n.DynamicFlowRevamp,a({},e))}var P=(0,D.forwardRef)(function(o,e){let{customFetch:r=globalThis.fetch}=o,i=c(a({},o),{httpClient:r});return(0,l.jsx)(n.DynamicFragmentWise,c(a({},i),{ref:e}))});var x=f.makeHttpClient;
package/build/main.mjs CHANGED
@@ -25,7 +25,8 @@ import { translations, JsonSchemaForm, isValidSchema } from "@wise/dynamic-flow-
25
25
  // src/dynamicFlow/DynamicFlow.tsx
26
26
  import {
27
27
  DynamicFlowRevamp as DynamicFlowCoreRevamp,
28
- DynamicFlow as DynamicFlowCoreLegacy
28
+ DynamicFlow as DynamicFlowCoreLegacy,
29
+ DynamicFragmentWise
29
30
  } from "@wise/dynamic-flow-client";
30
31
  import { forwardRef } from "react";
31
32
  import { jsx } from "react/jsx-runtime";
@@ -34,10 +35,15 @@ function DynamicFlowLegacy(props) {
34
35
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
35
36
  return /* @__PURE__ */ jsx(DynamicFlowCoreLegacy, __spreadValues({}, coreProps));
36
37
  }
37
- var DynamicFlowRevamp = forwardRef(function DynamicFlowRevamp2(props, ref) {
38
+ function DynamicFlowRevamp(props) {
38
39
  const { customFetch = globalThis.fetch } = props;
39
40
  const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
40
- return /* @__PURE__ */ jsx(DynamicFlowCoreRevamp, __spreadValues({ ref }, coreProps));
41
+ return /* @__PURE__ */ jsx(DynamicFlowCoreRevamp, __spreadValues({}, coreProps));
42
+ }
43
+ var DynamicFragment = forwardRef(function DynamicFragment2(props, ref) {
44
+ const { customFetch = globalThis.fetch } = props;
45
+ const coreProps = __spreadProps(__spreadValues({}, props), { httpClient: customFetch });
46
+ return /* @__PURE__ */ jsx(DynamicFragmentWise, __spreadProps(__spreadValues({}, coreProps), { ref }));
41
47
  });
42
48
 
43
49
  // src/index.ts
@@ -46,6 +52,7 @@ export {
46
52
  DynamicFlowLegacy as DynamicFlow,
47
53
  DynamicFlowLegacy,
48
54
  DynamicFlowRevamp,
55
+ DynamicFragment,
49
56
  JsonSchemaForm,
50
57
  isValidSchema,
51
58
  makeCustomFetch,
@@ -45,56 +45,86 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
45
45
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
46
  }
47
47
  };
48
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
48
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
49
+ /* eslint-disable no-nested-ternary */
49
50
  import { action } from '@storybook/addon-actions';
50
- import { layouts, features, examples, schemas } from '@wise/dynamic-flow-fixtures';
51
- import { fixtureHttpClient } from './utils/fixtureHttpClient';
52
- import { useRef } from 'react';
53
51
  import { Button } from '@transferwise/components';
54
- import { DynamicFlowRevamp } from '../dynamicFlow/DynamicFlow';
55
- var fixtures = __assign(__assign(__assign(__assign({}, examples), schemas), layouts), features);
56
- function DynamicFlowWithRef(_a) {
52
+ import { useRef, useState } from 'react';
53
+ import { DynamicFragment } from '..';
54
+ import { fixtureHttpClient } from './utils/fixtureHttpClient';
55
+ var step = {
56
+ id: 'dynamic-fragment-story',
57
+ title: 'Dynamic Fragment',
58
+ schemas: [
59
+ {
60
+ $id: '#form',
61
+ type: 'object',
62
+ displayOrder: ['name', 'city'],
63
+ required: ['name'],
64
+ properties: {
65
+ name: { type: 'string', title: 'Name', minLength: 2 },
66
+ city: {
67
+ title: 'City',
68
+ oneOf: [
69
+ { title: 'London', const: 'London', icon: { name: 'flag-gb' } },
70
+ { title: 'Paris', const: 'Paris', icon: { name: 'flag-fr' } },
71
+ { title: 'New York', const: 'New York', icon: { name: 'flag-us' } },
72
+ ],
73
+ },
74
+ },
75
+ },
76
+ ],
77
+ layout: [
78
+ {
79
+ type: 'form',
80
+ schemaId: '#form',
81
+ },
82
+ ],
83
+ };
84
+ function DynamicFragmentStory() {
57
85
  var _this = this;
58
- var _b = _a.initialStepName, initialStepName = _b === void 0 ? '' : _b;
59
- var selectedStep = (fixtures[initialStepName] || {});
60
86
  var ref = useRef(null);
61
87
  var props = {
62
88
  flowId: 'storybook',
89
+ analyticsId: 'storybook',
63
90
  customFetch: fixtureHttpClient,
64
91
  onCompletion: action('onCompletion'),
92
+ onValueChange: action('onValueChange'),
65
93
  onError: action('onError'),
66
94
  onEvent: action('onEvent'),
67
95
  onLog: action('onLog'),
68
96
  };
69
- return (_jsxs(_Fragment, { children: [_jsx(DynamicFlowRevamp, __assign({ ref: ref, initialStep: selectedStep }, props)), _jsx(Button, { onClick: function () { return __awaiter(_this, void 0, void 0, function () {
70
- var _a;
71
- var _b, _c, _d;
72
- return __generator(this, function (_e) {
73
- switch (_e.label) {
74
- case 0:
75
- _a = action('getValue');
76
- return [4 /*yield*/, ((_b = ref.current) === null || _b === void 0 ? void 0 : _b.getValue())];
97
+ var _a = useState(''), currentValue = _a[0], setCurrentValue = _a[1];
98
+ var _b = useState(null), isValid = _b[0], setValid = _b[1];
99
+ var backgroundColor = isValid === null ? '#eeeeee' : isValid ? '#eeffee' : '#ffeeee';
100
+ var validityText = isValid === null ? '' : isValid ? '✅ valid\n\n' : '❌ invalid\n\n';
101
+ return (_jsxs(_Fragment, { children: [_jsx(DynamicFragment, __assign({ ref: ref }, props, { initialStep: step, onValueChange: function () { return __awaiter(_this, void 0, void 0, function () {
102
+ var newValue;
103
+ var _a, _b;
104
+ return __generator(this, function (_c) {
105
+ switch (_c.label) {
106
+ case 0: return [4 /*yield*/, ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.getValue())];
77
107
  case 1:
78
- _a.apply(void 0, [(_c = (_e.sent())) !== null && _c !== void 0 ? _c : null]);
79
- action('validate')((_d = ref.current) === null || _d === void 0 ? void 0 : _d.validate());
108
+ newValue = (_b = (_c.sent())) !== null && _b !== void 0 ? _b : null;
109
+ setCurrentValue(JSON.stringify(newValue, null, 2));
80
110
  return [2 /*return*/];
81
111
  }
82
112
  });
83
- }); }, children: "Log value" })] }));
113
+ }); } }), JSON.stringify(step)), _jsx(Button, { onClick: function () { return __awaiter(_this, void 0, void 0, function () {
114
+ var ok;
115
+ var _a, _b;
116
+ return __generator(this, function (_c) {
117
+ ok = (_b = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.validate()) !== null && _b !== void 0 ? _b : false;
118
+ setValid(ok);
119
+ return [2 /*return*/];
120
+ });
121
+ }); }, children: "validate()" }), _jsx("hr", {}), _jsxs("pre", { style: { backgroundColor: backgroundColor }, children: [validityText, currentValue] })] }));
84
122
  }
85
123
  var meta = {
86
- title: 'Dynamic Flow With Ref',
87
- component: DynamicFlowWithRef,
124
+ title: 'Dynamic Fragment',
125
+ component: DynamicFragmentStory,
88
126
  };
89
127
  export var AllFixtures = {
90
- argTypes: {
91
- initialStepName: {
92
- label: 'Initial Step',
93
- control: 'select',
94
- options: Object.keys(fixtures),
95
- },
96
- },
97
- args: { initialStepName: Object.keys(fixtures)[1] },
98
128
  parameters: {
99
129
  chromatic: { disableSnapshot: true },
100
130
  },
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type DynamicFlowProps as DynamicFlowCoreLegacyProps, type DynamicFlowRevampProps as DynamicFlowCoreRevampProps, type DynamicFlowRevampPropsWithInitialAction, type DynamicFlowRevampPropsWithInitialStep, type DynamicFlowController } from '@wise/dynamic-flow-client';
2
+ import { type DynamicFlowProps as DynamicFlowCoreLegacyProps, type DynamicFlowRevampProps as DynamicFlowCoreRevampProps, type DynamicFlowRevampPropsWithInitialAction, type DynamicFlowRevampPropsWithInitialStep, type DynamicFragmentController } from '@wise/dynamic-flow-client';
3
3
  import type { DynamicFlowPropsWithInitialAction, DynamicFlowPropsWithInitialStep } from '@wise/dynamic-flow-client/build/types/legacy/dynamic-flow-types';
4
4
  export type DynamicFlowLegacyProps = (Omit<DynamicFlowPropsWithInitialAction, 'httpClient'> | Omit<DynamicFlowPropsWithInitialStep, 'httpClient'>) & {
5
5
  customFetch?: DynamicFlowCoreLegacyProps['httpClient'];
@@ -8,4 +8,12 @@ export type DynamicFlowRevampProps = (Omit<DynamicFlowRevampPropsWithInitialActi
8
8
  customFetch?: DynamicFlowCoreRevampProps['httpClient'];
9
9
  };
10
10
  export declare function DynamicFlowLegacy(props: DynamicFlowLegacyProps): JSX.Element;
11
- export declare const DynamicFlowRevamp: import("react").ForwardRefExoticComponent<DynamicFlowRevampProps & import("react").RefAttributes<DynamicFlowController>>;
11
+ export declare function DynamicFlowRevamp(props: DynamicFlowRevampProps): JSX.Element;
12
+ /**
13
+ * DynamicFragment is like DynamicFlowRevamp, but it also accepts a ForwardedRef.
14
+ * This ref conforms to the DynamicFragmentController type, containing two functions: `getValue` and `validate`.
15
+ * @experimental This component may be changed in the future without notice.
16
+ */
17
+ export declare const DynamicFragment: import("react").ForwardRefExoticComponent<(DynamicFlowRevampProps & {
18
+ onValueChange?: (() => void) | undefined;
19
+ }) & import("react").RefAttributes<DynamicFragmentController>>;
@@ -1,7 +1,5 @@
1
- import { type DynamicFlowController } from '@wise/dynamic-flow-client';
2
- export type { DynamicFlowProps, Step, InitialAction } from '@wise/dynamic-flow-client';
1
+ export type { DynamicFlowProps, Step, InitialAction, DynamicFragmentController, } from '@wise/dynamic-flow-client';
3
2
  export { translations, JsonSchemaForm, isValidSchema } from '@wise/dynamic-flow-client';
4
3
  export type { DynamicFlowLegacyProps as WiseDynamicFlowProps, DynamicFlowLegacyProps, DynamicFlowRevampProps, } from './dynamicFlow/DynamicFlow';
5
- export { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, } from './dynamicFlow/DynamicFlow';
4
+ export { DynamicFlowLegacy as DynamicFlow, DynamicFlowLegacy, DynamicFlowRevamp, DynamicFragment, } from './dynamicFlow/DynamicFlow';
6
5
  export declare const makeCustomFetch: (baseUrl: string, additionalHeaders?: HeadersInit | undefined) => typeof fetch;
7
- export type { DynamicFlowController };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ declare function DynamicFragmentStory(): JSX.Element;
4
+ declare const meta: Meta<typeof DynamicFragmentStory>;
5
+ export declare const AllFixtures: StoryObj<typeof DynamicFragmentStory>;
6
+ export default meta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client-internal",
3
- "version": "3.9.0-experimental-bd037e3",
3
+ "version": "3.9.0-experimental-90bdf26",
4
4
  "description": "Dynamic Flow web client for Wise",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -81,7 +81,7 @@
81
81
  "react-intl": "^6"
82
82
  },
83
83
  "dependencies": {
84
- "@wise/dynamic-flow-client": "3.9.0-experimental-bd037e3"
84
+ "@wise/dynamic-flow-client": "3.9.0-experimental-90bdf26"
85
85
  },
86
86
  "scripts": {
87
87
  "dev": "storybook dev -p 3005",
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- declare function DynamicFlowWithRef({ initialStepName }: {
4
- initialStepName?: string | undefined;
5
- }): JSX.Element;
6
- declare const meta: Meta<typeof DynamicFlowWithRef>;
7
- export declare const AllFixtures: StoryObj<typeof DynamicFlowWithRef>;
8
- export default meta;