@wise/dynamic-flow-client 5.18.0-exp-scroll-flag-849755e → 5.18.0

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.
@@ -1,13 +1,4 @@
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;
1
+ type FeatureName = 'pinnedButtons' | 'nativeBack' | 'strictButtonOperations' | 'continueAfterCompletion' | 'validateUnreferencedSchemas';
11
2
  export declare class FeatureFlags {
12
3
  #private;
13
4
  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,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"}
1
+ {"version":3,"file":"FeatureFlags.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/utils/FeatureFlags.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GACZ,eAAe,GACf,YAAY,GACZ,wBAAwB,GACxB,yBAAyB,GACzB,6BAA6B,CAAC;AAElC,qBAAa,YAAY;;gBAGX,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI7C,SAAS,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO;CAG7C"}
@@ -1,15 +1,13 @@
1
1
  import type { RendererProps, RenderFunction } from '@wise/dynamic-flow-types/renderers';
2
2
  import type { AnalyticsEventDispatcher } from '../../domain/features/events';
3
- import type { FeatureFlags } from '../../domain/mappers/utils/FeatureFlags';
4
3
  import type { DomainComponent, LoadingState } from '../../domain/types';
5
4
  import type { HttpClient } from '../../types';
6
5
  export type RendererMapperProps = {
7
6
  stepLoadingState: LoadingState;
8
- features: FeatureFlags;
7
+ features: Record<string, unknown>;
9
8
  render: RenderFunction;
10
9
  httpClient: HttpClient;
11
10
  trackEvent: AnalyticsEventDispatcher<string>;
12
- isFeatureEnabled: RendererProps['isFeatureEnabled'];
13
11
  };
14
12
  export declare const componentToRendererProps: (component: DomainComponent, mapperProps: RendererMapperProps) => RendererProps;
15
13
  //# 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;IAC7C,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,WAAW,eAAe,EAC1B,aAAa,mBAAmB,KAC/B,aAiCF,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;AAE7E,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,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,wBAAwB,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,WAAW,eAAe,EAC1B,aAAa,mBAAmB,KAC/B,aAiCF,CAAC"}
@@ -2,11 +2,10 @@ import { ConstComponent } from '../../domain/components/ConstComponent';
2
2
  import { RendererMapperProps } from './componentToRendererProps';
3
3
  export declare const constComponentToProps: (component: ConstComponent, rendererMapperProps: RendererMapperProps) => {
4
4
  stepLoadingState: import("../../domain/types").LoadingState;
5
- features: import("../../domain/mappers/utils/FeatureFlags").FeatureFlags;
5
+ features: Record<string, unknown>;
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"];
10
9
  type: "container";
11
10
  uid: string;
12
11
  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;;;;;;;;;;;CAYzC,CAAC"}
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,5 +1,5 @@
1
1
  import type { HiddenRendererProps } from '@wise/dynamic-flow-types/renderers';
2
- import { DomainComponent } from '../../domain/types';
3
- import { RendererMapperProps } from './componentToRendererProps';
2
+ import type { DomainComponent } from '../../domain/types';
3
+ import type { RendererMapperProps } from './componentToRendererProps';
4
4
  export declare const hiddenComponentToProps: ({ uid }: DomainComponent, rendererMapperProps: RendererMapperProps) => HiddenRendererProps;
5
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;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,eAAO,MAAM,sBAAsB,GACjC,SAAS,eAAe,EACxB,qBAAqB,mBAAmB,KACvC,mBAID,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,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,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;;;;;;;;EAuGzD"}
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;;;;;;;;EAsGzD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "5.18.0-exp-scroll-flag-849755e",
3
+ "version": "5.18.0",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -84,7 +84,7 @@
84
84
  "react-intl": "^6 || ^7"
85
85
  },
86
86
  "dependencies": {
87
- "@wise/dynamic-flow-types": "4.16.1"
87
+ "@wise/dynamic-flow-types": "4.17.0"
88
88
  },
89
89
  "scripts": {
90
90
  "dev": "EXCLUDE_VISUAL_TESTS=true pnpm storybook dev -p 3003",