@wise/dynamic-flow-client 5.17.2 → 5.18.0-exp-scroll-flag-849755e
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 +16 -6
- package/build/main.mjs +16 -6
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/domain/mappers/utils/FeatureFlags.d.ts +10 -1
- package/build/types/domain/mappers/utils/FeatureFlags.d.ts.map +1 -1
- package/build/types/renderers/mappers/componentToRendererProps.d.ts +1 -0
- package/build/types/renderers/mappers/componentToRendererProps.d.ts.map +1 -1
- package/build/types/renderers/mappers/constComponentToProps.d.ts +1 -0
- package/build/types/renderers/mappers/constComponentToProps.d.ts.map +1 -1
- package/build/types/renderers/mappers/hiddenComponentToProps.d.ts +2 -1
- package/build/types/renderers/mappers/hiddenComponentToProps.d.ts.map +1 -1
- package/build/types/useDynamicFlow.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
declare const defaultFeatures: {
|
|
2
|
+
readonly pinnedButtons: false;
|
|
3
|
+
readonly nativeBack: false;
|
|
4
|
+
readonly hideStepTitle: false;
|
|
5
|
+
readonly strictButtonOperations: false;
|
|
6
|
+
readonly continueAfterCompletion: false;
|
|
7
|
+
readonly validateUnreferencedSchemas: false;
|
|
8
|
+
readonly scrollToErrors: true;
|
|
9
|
+
};
|
|
10
|
+
type FeatureName = keyof typeof defaultFeatures;
|
|
2
11
|
export declare class FeatureFlags {
|
|
3
12
|
#private;
|
|
4
13
|
constructor(features: Record<string, unknown>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlags.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/utils/FeatureFlags.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"FeatureFlags.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/utils/FeatureFlags.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe;;;;;;;;CAQX,CAAC;AAEX,KAAK,WAAW,GAAG,MAAM,OAAO,eAAe,CAAC;AAEhD,qBAAa,YAAY;;gBAGX,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAO7C,SAAS,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO;CAG7C"}
|
|
@@ -9,6 +9,7 @@ export type RendererMapperProps = {
|
|
|
9
9
|
render: RenderFunction;
|
|
10
10
|
httpClient: HttpClient;
|
|
11
11
|
trackEvent: AnalyticsEventDispatcher<string>;
|
|
12
|
+
isFeatureEnabled: RendererProps['isFeatureEnabled'];
|
|
12
13
|
};
|
|
13
14
|
export declare const componentToRendererProps: (component: DomainComponent, mapperProps: RendererMapperProps) => RendererProps;
|
|
14
15
|
//# sourceMappingURL=componentToRendererProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentToRendererProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/componentToRendererProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EACb,cAAc,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA+C9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"componentToRendererProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/componentToRendererProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,aAAa,EACb,cAAc,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA+C9C,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC7C,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,WAAW,eAAe,EAC1B,aAAa,mBAAmB,KAC/B,aAiCF,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const constComponentToProps: (component: ConstComponent, renderer
|
|
|
6
6
|
render: import("@wise/dynamic-flow-types/renderers").RenderFunction;
|
|
7
7
|
httpClient: import("../../types").HttpClient;
|
|
8
8
|
trackEvent: import("../../domain/features/events").AnalyticsEventDispatcher<string>;
|
|
9
|
+
isFeatureEnabled: import("@wise/dynamic-flow-types/renderers").RendererProps["isFeatureEnabled"];
|
|
9
10
|
type: "container";
|
|
10
11
|
uid: string;
|
|
11
12
|
childrenProps: import("@wise/dynamic-flow-types/renderers").RendererProps[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/constComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAA4B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,eAAO,MAAM,qBAAqB,GAChC,WAAW,cAAc,EACzB,qBAAqB,mBAAmB
|
|
1
|
+
{"version":3,"file":"constComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/constComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAA4B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,eAAO,MAAM,qBAAqB,GAChC,WAAW,cAAc,EACzB,qBAAqB,mBAAmB;;;;;;;;;;;CAYzC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HiddenRendererProps } from '@wise/dynamic-flow-types/renderers';
|
|
2
2
|
import { DomainComponent } from '../../domain/types';
|
|
3
|
-
|
|
3
|
+
import { RendererMapperProps } from './componentToRendererProps';
|
|
4
|
+
export declare const hiddenComponentToProps: ({ uid }: DomainComponent, rendererMapperProps: RendererMapperProps) => HiddenRendererProps;
|
|
4
5
|
//# sourceMappingURL=hiddenComponentToProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hiddenComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/hiddenComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"hiddenComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/hiddenComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,eAAO,MAAM,sBAAsB,GACjC,SAAS,eAAe,EACxB,qBAAqB,mBAAmB,KACvC,mBAID,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDynamicFlow.d.ts","sourceRoot":"","sources":["../../src/useDynamicFlow.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,oBAAoB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDynamicFlow.d.ts","sourceRoot":"","sources":["../../src/useDynamicFlow.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,oBAAoB;;;;;;;;EAuGzD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.0-exp-scroll-flag-849755e",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@testing-library/jest-dom": "^6.9.1",
|
|
42
42
|
"@testing-library/react": "^16.3.2",
|
|
43
43
|
"@testing-library/user-event": "^14.6.1",
|
|
44
|
-
"@transferwise/components": "^46.
|
|
44
|
+
"@transferwise/components": "^46.150.0",
|
|
45
45
|
"@transferwise/formatting": "^2.14.1",
|
|
46
46
|
"@transferwise/icons": "4.4.4",
|
|
47
47
|
"@transferwise/navigation-ui": "^4.43.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@types/react-dom": "^19.2.3",
|
|
51
51
|
"@vitejs/plugin-react": "^5.2.0",
|
|
52
52
|
"@wise/art": "^2.31.1",
|
|
53
|
-
"@wise/components-theming": "^1.10.
|
|
53
|
+
"@wise/components-theming": "^1.10.3",
|
|
54
54
|
"esbuild": "^0.28.1",
|
|
55
55
|
"eslint-plugin-storybook": "^10.4.1",
|
|
56
56
|
"framer-motion": "^12.40.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"typescript": "^5.9.3",
|
|
72
72
|
"vite": "^8.0.16",
|
|
73
73
|
"vitest": "^4.1.7",
|
|
74
|
-
"@wise/dynamic-flow-
|
|
75
|
-
"@wise/dynamic-flow-
|
|
74
|
+
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
75
|
+
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@transferwise/components": "^46.104.0",
|