@wise/dynamic-flow-client 5.29.0 → 5.30.0-experimental-7a76ef5

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.
Files changed (28) hide show
  1. package/build/main.css +97 -0
  2. package/build/main.js +539 -326
  3. package/build/main.mjs +539 -326
  4. package/build/tsconfig.types.tsbuildinfo +1 -1
  5. package/build/types/controller/getRequestAbortController.d.ts +4 -3
  6. package/build/types/controller/getRequestAbortController.d.ts.map +1 -1
  7. package/build/types/domain/components/collectionComponent/CollectionComponent.d.ts +6 -7
  8. package/build/types/domain/components/collectionComponent/CollectionComponent.d.ts.map +1 -1
  9. package/build/types/domain/components/collectionComponent/CollectionController.d.ts +18 -0
  10. package/build/types/domain/components/collectionComponent/CollectionController.d.ts.map +1 -0
  11. package/build/types/domain/components/collectionComponent/CollectionStack.d.ts +12 -0
  12. package/build/types/domain/components/collectionComponent/CollectionStack.d.ts.map +1 -0
  13. package/build/types/domain/components/collectionComponent/CollectionState.d.ts +20 -0
  14. package/build/types/domain/components/collectionComponent/CollectionState.d.ts.map +1 -0
  15. package/build/types/domain/components/collectionComponent/applyCollectionResponse.d.ts +7 -0
  16. package/build/types/domain/components/collectionComponent/applyCollectionResponse.d.ts.map +1 -0
  17. package/build/types/domain/components/collectionComponent/mergeSections.d.ts +3 -0
  18. package/build/types/domain/components/collectionComponent/mergeSections.d.ts.map +1 -0
  19. package/build/types/domain/components/collectionComponent/toggleFilterOption.d.ts +3 -0
  20. package/build/types/domain/components/collectionComponent/toggleFilterOption.d.ts.map +1 -0
  21. package/build/types/domain/components/collectionComponent/types.d.ts +42 -18
  22. package/build/types/domain/components/collectionComponent/types.d.ts.map +1 -1
  23. package/build/types/domain/features/collection/getPerformCollectionQuery.d.ts +2 -2
  24. package/build/types/domain/features/collection/getPerformCollectionQuery.d.ts.map +1 -1
  25. package/build/types/domain/mappers/layout/collectionLayoutToComponent.d.ts +3 -3
  26. package/build/types/domain/mappers/layout/collectionLayoutToComponent.d.ts.map +1 -1
  27. package/build/types/renderers/mappers/collectionComponentToProps.d.ts.map +1 -1
  28. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
- export declare const getRequestAbortController: () => {
2
- abortAndGetNewSignal(): AbortSignal;
3
- abort(): void;
1
+ export type RequestAbortController = {
2
+ abort: () => void;
3
+ refresh: () => AbortSignal;
4
4
  };
5
+ export declare const getRequestAbortController: () => RequestAbortController;
5
6
  //# sourceMappingURL=getRequestAbortController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRequestAbortController.d.ts","sourceRoot":"","sources":["../../../src/controller/getRequestAbortController.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;IAGlC,oBAAoB;IAKpB,KAAK;CAIR,CAAC"}
1
+ {"version":3,"file":"getRequestAbortController.d.ts","sourceRoot":"","sources":["../../../src/controller/getRequestAbortController.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,WAAW,CAAC;CAC5B,CAAC;AACF,eAAO,MAAM,yBAAyB,QAAO,sBAY5C,CAAC"}
@@ -1,9 +1,8 @@
1
- import { CollectionComponent, CollectionSearch } from './types';
2
- import { PerformCollectionQuery } from '../../features/collection/getPerformCollectionQuery';
3
- import { OnComponentUpdate } from '../../types';
4
- import { AnalyticsEventDispatcher, EventName } from '../../features/events';
1
+ import { CollectionComponent } from './types';
2
+ import { EventName } from '../../features/events';
3
+ import { CollectionController } from './CollectionController';
4
+ import { CollectionStackStore } from './CollectionStack';
5
5
  export type CollectionEvent = EventName & `Collection ${string}`;
6
- export declare const createCollectionComponent: (props: Pick<CollectionComponent, 'uid' | 'analyticsId' | 'control' | 'margin' | 'tags' | 'state'> & {
7
- search?: Omit<CollectionSearch, 'onChange' | 'query'>;
8
- }, onComponentUpdate: OnComponentUpdate, queryFunction: PerformCollectionQuery, trackEvent: AnalyticsEventDispatcher) => CollectionComponent;
6
+ /** Creates the component facade over collection state and behavior. */
7
+ export declare const createCollectionComponent: (props: Pick<CollectionComponent, 'uid' | 'analyticsId' | 'control' | 'margin' | 'tags'>, stack: CollectionStackStore, controller: CollectionController) => CollectionComponent;
9
8
  //# sourceMappingURL=CollectionComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/CollectionComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EAEnB,gBAAgB,EAGjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAK5E,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,MAAM,EAAE,CAAC;AAKjE,eAAO,MAAM,yBAAyB,UAC7B,IAAI,CACT,mBAAmB,EACnB,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAChE,GAAG;IACF,MAAM,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;CACvD,qBACkB,iBAAiB,iBACrB,sBAAsB,cACzB,wBAAwB,KACnC,mBA6KF,CAAC"}
1
+ {"version":3,"file":"CollectionComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/CollectionComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,MAAM,EAAE,CAAC;AAEjE,uEAAuE;AACvE,eAAO,MAAM,yBAAyB,UAC7B,IAAI,CAAC,mBAAmB,EAAE,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC,SAChF,oBAAoB,cACf,oBAAoB,KAC/B,mBA0BF,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { PerformCollectionQuery } from '../../features/collection/getPerformCollectionQuery';
2
+ import { AnalyticsEventDispatcher } from '../../features/events';
3
+ import { CollectionStackStore } from './CollectionStack';
4
+ export type CollectionController = {
5
+ search: (id: string, value: string) => void;
6
+ selectFilter: (id: string, filterIndex: number, optionIndex: number) => void;
7
+ loadMore: (id: string) => void;
8
+ retry: (id: string) => void;
9
+ fork: () => void;
10
+ pop: () => void;
11
+ };
12
+ /** Coordinates collection commands and owns request lifetimes independently of state. */
13
+ export declare const createCollectionController: ({ stack, collectionClient, trackEvent, }: {
14
+ stack: CollectionStackStore;
15
+ collectionClient: PerformCollectionQuery;
16
+ trackEvent: AnalyticsEventDispatcher;
17
+ }) => CollectionController;
18
+ //# sourceMappingURL=CollectionController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/CollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAIzD,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,GAAG,EAAE,MAAM,IAAI,CAAC;CACjB,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,0BAA0B,6CAIpC;IACD,KAAK,EAAE,oBAAoB,CAAC;IAC5B,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,UAAU,EAAE,wBAAwB,CAAC;CACtC,KAAG,oBAmHH,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { CollectionResponse, CollectionStack, CollectionState } from './types';
2
+ export type CollectionStackStore = {
3
+ getStates: () => CollectionStack;
4
+ getState: (id: string) => CollectionState | undefined;
5
+ getActiveState: () => CollectionState;
6
+ update: (id: string, transform: (state: CollectionState) => CollectionState) => void;
7
+ fork: () => void;
8
+ pop: () => CollectionState | undefined;
9
+ };
10
+ /** Owns collection snapshots and notifies the view after changes. */
11
+ export declare const createCollectionStack: (uid: string, initialState: CollectionResponse, onChange: () => void) => CollectionStackStore;
12
+ //# sourceMappingURL=CollectionStack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionStack.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/CollectionStack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/E,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,eAAe,CAAC;IACjC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,eAAe,GAAG,SAAS,CAAC;IACtD,cAAc,EAAE,MAAM,eAAe,CAAC;IACtC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,eAAe,KAAK,IAAI,CAAC;IACrF,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,GAAG,EAAE,MAAM,eAAe,GAAG,SAAS,CAAA;CACvC,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,QAC3B,MAAM,gBACG,kBAAkB,YACtB,MAAM,IAAI,KACnB,oBAsCF,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { CollectionQueryMode, CollectionResponse, CollectionState } from './types';
2
+ import { DomainComponent } from '../../types';
3
+ /**
4
+ * Creates a collection state from a collection response.
5
+ */
6
+ export declare const createCollectionState: (id: string, { search, ...response }: CollectionResponse, searchQuery: string) => CollectionState;
7
+ /**
8
+ * Creates a copy of a collection state with the given id, which can be searched or filtered
9
+ * without affecting the original but stateful layouts (inputs, search, etc.) are shallow-copied,
10
+ * meaning states in one state will still update that layout in another.
11
+ */
12
+ export declare const forkCollectionState: ({ id, status, ...state }: CollectionState, forkedId: string) => CollectionState;
13
+ /**
14
+ * Returns the layout components in a collection state, including its initial search sections.
15
+ */
16
+ export declare const getCollectionStateChildren: (state: CollectionState) => DomainComponent[];
17
+ export declare const setLoading: (state: CollectionState, reason: CollectionQueryMode) => CollectionState;
18
+ export declare const setError: (state: CollectionState, reason: CollectionQueryMode) => CollectionState;
19
+ export declare const setQuery: (state: CollectionState, value: string) => CollectionState;
20
+ //# sourceMappingURL=CollectionState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionState.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/CollectionState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAElB,eAAe,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAmB,MAAM,aAAa,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,qBAAqB,OAC5B,MAAM,2BACe,kBAAkB,eAC9B,MAAM,KAClB,eAKD,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,6BACJ,eAAe,YAC/B,MAAM,KACf,eAAoF,CAAC;AAExF;;GAEG;AACH,eAAO,MAAM,0BAA0B,UAAW,eAAe,KAAG,eAAe,EAMlF,CAAC;AAEF,eAAO,MAAM,UAAU,UACd,eAAe,UACd,mBAAmB,KAC1B,eAAsE,CAAC;AAE1E,eAAO,MAAM,QAAQ,UAAW,eAAe,UAAU,mBAAmB,KAAG,eAI7E,CAAC;AAEH,eAAO,MAAM,QAAQ,UAAW,eAAe,SAAS,MAAM,KAAG,eAMtD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CollectionState, CollectionResponse, CollectionQueryMode } from './types';
2
+ /**
3
+ * Returns a collection state with a collection response applied, appending to its sections for
4
+ * pagination.
5
+ */
6
+ export declare const applyCollectionResponse: (state: CollectionState, mode: CollectionQueryMode, incoming: CollectionResponse) => CollectionState;
7
+ //# sourceMappingURL=applyCollectionResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applyCollectionResponse.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/applyCollectionResponse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAC3B,eAAe,QAChB,mBAAmB,YACf,kBAAkB,KAC3B,eAcD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CollectionSection } from './types';
2
+ export declare const mergeSections: (existing: CollectionSection[], incoming: CollectionSection[]) => CollectionSection[];
3
+ //# sourceMappingURL=mergeSections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeSections.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/mergeSections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,aAAa,aACd,iBAAiB,EAAE,YACnB,iBAAiB,EAAE,KAC5B,iBAAiB,EAoCnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CollectionState } from './types';
2
+ export declare const toggleFilterOption: (state: CollectionState, filterIndex: number, optionIndex: number) => CollectionState;
3
+ //# sourceMappingURL=toggleFilterOption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleFilterOption.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/toggleFilterOption.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,kBAAkB,UACtB,eAAe,eACT,MAAM,eACN,MAAM,KAClB,eAkBF,CAAC"}
@@ -1,39 +1,59 @@
1
- import { AdditionalInfo, BaseLayoutComponent, CallToAction, DomainComponent, InlineAlert, Media, SupportingValues } from '../../types';
1
+ import { AdditionalInfo, BaseLayoutComponent, CallToAction, DomainComponent, InlineAlert, LayoutComponent, Media, SupportingValues } from '../../types';
2
+ export type CollectionQueryMode = 'search' | 'filter' | 'pagination';
2
3
  export type CollectionStatus = {
3
4
  type: 'idle';
4
- loadMore?: () => void;
5
5
  } | {
6
6
  type: 'loading';
7
- reason: 'search' | 'pagination';
7
+ reason: CollectionQueryMode;
8
8
  } | {
9
9
  type: 'error';
10
- reason: 'pagination' | 'search';
11
- retry: () => void;
10
+ reason: CollectionQueryMode;
12
11
  };
13
12
  export type CollectionComponent = BaseLayoutComponent & {
14
13
  type: 'collection';
15
14
  kind: 'layout';
16
- state: CollectionState;
17
- status: CollectionStatus;
15
+ /**
16
+ * A stack of states, where the last one is active. Forking pushes a copy of the active state,
17
+ * which can then be searched or filtered independently, and popping discards it.
18
+ */
19
+ readonly stack: CollectionStack;
20
+ getActiveState: () => CollectionState;
21
+ fork: () => void;
22
+ pop: () => void;
23
+ search: (state: CollectionState, query: string) => void;
24
+ selectFilter: (state: CollectionState, filterIndex: number, optionIndex: number) => void;
25
+ loadMore: (state: CollectionState) => void;
26
+ retry: (state: CollectionState) => void;
18
27
  getChildren: () => DomainComponent[];
19
28
  };
20
- export type CollectionState = {
21
- sections: CollectionSection[];
29
+ export type CollectionStack = [CollectionState, ...CollectionState[]];
30
+ export type CollectionState = Omit<CollectionResponse, 'search'> & {
31
+ id: string;
32
+ status: CollectionStatus;
22
33
  search?: CollectionSearch;
34
+ };
35
+ export type CollectionResponse = {
36
+ sections: CollectionSection[];
23
37
  nextCursor?: string;
38
+ analytics: Record<string, string>;
39
+ search?: CollectionSearchConfig;
24
40
  filters?: CollectionFilter[];
25
41
  beforeSections?: DomainComponent[];
26
42
  afterSections?: DomainComponent[];
27
- analytics: Record<string, string>;
28
43
  };
29
- export type CollectionResponse = Omit<CollectionState, 'filters'> & {
30
- filters?: CollectionFilter[];
44
+ export type CollectionSection = CollectionItemsSection | CollectionLayoutSection;
45
+ export type CollectionItemsSection = BaseCollectionSection & {
46
+ type: 'items';
47
+ items: CollectionItem[];
31
48
  };
32
- export type CollectionSection = {
49
+ export type CollectionLayoutSection = BaseCollectionSection & {
50
+ type: 'layout';
51
+ components: LayoutComponent[];
52
+ };
53
+ type BaseCollectionSection = {
33
54
  id: string;
34
55
  title?: string;
35
56
  callToAction?: CallToAction;
36
- items: CollectionItem[];
37
57
  inlineAlert?: InlineAlert;
38
58
  help?: string;
39
59
  };
@@ -52,12 +72,16 @@ export type CollectionItem = {
52
72
  analyticsId?: string;
53
73
  tags?: string[];
54
74
  };
55
- export type CollectionSearch = {
75
+ export type CollectionSearchConfig = {
56
76
  param: string;
57
- query: string;
58
- onChange: (query: string) => void;
59
77
  title?: string;
60
78
  hint?: string;
79
+ hints?: string[];
80
+ help?: string;
81
+ initialSections?: CollectionSection[];
82
+ };
83
+ export type CollectionSearch = CollectionSearchConfig & {
84
+ query: string;
61
85
  };
62
86
  export type CollectionFilter = {
63
87
  type: 'select';
@@ -69,7 +93,7 @@ export type CollectionFilterOption = {
69
93
  value: string;
70
94
  title: string;
71
95
  accessibilityDescription?: string;
72
- onSelect: () => void;
73
96
  selected: boolean;
74
97
  };
98
+ export {};
75
99
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,KAAK,EACL,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,QAAQ,GAAG,YAAY,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,YAAY,GAAG,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAE1E,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACtD,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,EAAE,MAAM,eAAe,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,G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AO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,eAAe,EACf,KAAK,EACL,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;AAErE,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG;IACtD,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,cAAc,EAAE,MAAM,eAAe,CAAC;IACtC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,YAAY,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,QAAQ,EAAE,CAAC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,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CollectionLayout, Request } from '@wise/dynamic-flow-types/spec';
2
2
  import { HttpClient } from '../../../types';
3
- import { CollectionFilter, CollectionResponse, CollectionState } from '../../components/collectionComponent/types';
3
+ import { CollectionFilter, CollectionResponse } from '../../components/collectionComponent/types';
4
4
  type PerformCollectionQueryParameters = {
5
5
  searchParam?: string;
6
6
  query?: string | null;
@@ -9,6 +9,6 @@ type PerformCollectionQueryParameters = {
9
9
  filters?: CollectionFilter[];
10
10
  };
11
11
  export type PerformCollectionQuery = (params: PerformCollectionQueryParameters) => Promise<CollectionResponse | null>;
12
- export declare const getPerformCollectionQuery: (httpClient: HttpClient, baseRequest: Request, mapState: (state: CollectionLayout['initialState']) => CollectionState) => PerformCollectionQuery;
12
+ export declare const getPerformCollectionQuery: (httpClient: HttpClient, baseRequest: Request, mapState: (state: CollectionLayout['initialState']) => CollectionResponse) => PerformCollectionQuery;
13
13
  export {};
14
14
  //# sourceMappingURL=getPerformCollectionQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPerformCollectionQuery.d.ts","sourceRoot":"","sources":["../../../../../src/domain/features/collection/getPerformCollectionQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,OAAO,EACR,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAChB,MAAM,4CAA4C,CAAC;AAGpD,KAAK,gCAAgC,GAAG;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CACnC,MAAM,EAAE,gCAAgC,KACrC,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;AAIxC,eAAO,MAAM,yBAAyB,eACxB,UAAU,eACT,OAAO,YACV,CAAC,KAAK,EAAE,gBAAgB,CAAC,cAAc,CAAC,KAAK,eAAe,KACrE,sBAkBF,CAAC"}
1
+ {"version":3,"file":"getPerformCollectionQuery.d.ts","sourceRoot":"","sources":["../../../../../src/domain/features/collection/getPerformCollectionQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,OAAO,EACR,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAGlG,KAAK,gCAAgC,GAAG;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,CACnC,MAAM,EAAE,gCAAgC,KACrC,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;AAIxC,eAAO,MAAM,yBAAyB,eACxB,UAAU,eACT,OAAO,YACV,CAAC,KAAK,EAAE,gBAAgB,CAAC,cAAc,CAAC,KAAK,kBAAkB,KACxE,sBAkBF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { CollectionLayout, Layout } from '@wise/dynamic-flow-types/spec';
2
2
  import { CollectionResponse } from '../../components/collectionComponent/types';
3
3
  import type { MapperProps } from '../schema/types';
4
- import { LayoutComponent } from '../../types';
5
- export declare const collectionLayoutToComponent: (uid: string, { analyticsId, control, initialState, margin, search, tags, baseRequest }: CollectionLayout, mapperProps: MapperProps) => import("../../components/collectionComponent/types").CollectionComponent;
6
- export declare const mapCollectionSpecToDomainState: (specState: CollectionLayout['initialState'], mapperProps: MapperProps, mapLayout: (layout: Layout, index: number) => LayoutComponent) => CollectionResponse;
4
+ import { LayoutComponent, SchemaComponent } from '../../types';
5
+ export declare const collectionLayoutToComponent: (uid: string, { analyticsId, control, initialState, margin, search, tags, baseRequest }: CollectionLayout, mapperProps: MapperProps, schemaComponents: SchemaComponent[]) => import("../../components/collectionComponent/types").CollectionComponent;
6
+ export declare const mapCollectionSpecToDomainState: (specState: CollectionLayout['initialState'], mapperProps: MapperProps, mapLayout: (layout: Layout) => LayoutComponent) => CollectionResponse;
7
7
  //# sourceMappingURL=collectionLayoutToComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collectionLayoutToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/layout/collectionLayoutToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,MAAM,EACP,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAGL,kBAAkB,EACnB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAOnD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,2BAA2B,QACjC,MAAM,6EACgE,gBAAgB,eAC9E,WAAW,6EA2BzB,CAAC;AAEF,eAAO,MAAM,8BAA8B,cAC9B,gBAAgB,CAAC,cAAc,CAAC,eAC9B,WAAW,aACb,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,KAC5D,kBA0CF,CAAC"}
1
+ {"version":3,"file":"collectionLayoutToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/layout/collectionLayoutToComponent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAKhB,MAAM,EACP,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAIL,kBAAkB,EAGnB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAOnD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D,eAAO,MAAM,2BAA2B,QACjC,MAAM,6EACgE,gBAAgB,eAC9E,WAAW,oBACN,eAAe,EAAE,6EA2CpC,CAAC;AAEF,eAAO,MAAM,8BAA8B,cAC9B,gBAAgB,CAAC,cAAc,CAAC,eAC9B,WAAW,aACb,CAAC,MAAM,EAAE,MAAM,KAAK,eAAe,KAC7C,kBAmBF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"collectionComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/collectionComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAC7F,OAAO,EAA4B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAI3F,eAAO,MAAM,0BAA0B,cAC1B,mBAAmB,uBACT,mBAAmB,KACvC,uBAkCF,CAAC"}
1
+ {"version":3,"file":"collectionComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/collectionComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,uBAAuB,EAIxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAA4B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAI3F,eAAO,MAAM,0BAA0B,cAC1B,mBAAmB,uBACT,mBAAmB,KACvC,uBAUF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "5.29.0",
3
+ "version": "5.30.0-experimental-7a76ef5",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -86,7 +86,7 @@
86
86
  "react-intl": "^6 || ^7"
87
87
  },
88
88
  "dependencies": {
89
- "@wise/dynamic-flow-types": "4.26.0"
89
+ "@wise/dynamic-flow-types": "4.27.0-experimental-7a76ef5"
90
90
  },
91
91
  "wise": {
92
92
  "platform": "wise-library",