@wise/dynamic-flow-client 5.29.0-experimental-f7c2300 → 5.29.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.
- package/build/main.css +0 -24
- package/build/main.js +167 -299
- package/build/main.mjs +167 -299
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/domain/components/collectionComponent/CollectionComponent.d.ts +5 -5
- package/build/types/domain/components/collectionComponent/CollectionComponent.d.ts.map +1 -1
- package/build/types/domain/components/collectionComponent/types.d.ts +14 -42
- package/build/types/domain/components/collectionComponent/types.d.ts.map +1 -1
- package/build/types/domain/features/collection/getPerformCollectionQuery.d.ts +2 -2
- package/build/types/domain/features/collection/getPerformCollectionQuery.d.ts.map +1 -1
- package/build/types/domain/mappers/layout/collectionLayoutToComponent.d.ts +3 -3
- package/build/types/domain/mappers/layout/collectionLayoutToComponent.d.ts.map +1 -1
- package/build/types/renderers/mappers/collectionComponentToProps.d.ts.map +1 -1
- package/package.json +3 -3
- package/build/types/domain/components/collectionComponent/CollectionState.d.ts +0 -19
- package/build/types/domain/components/collectionComponent/CollectionState.d.ts.map +0 -1
- package/build/types/domain/components/collectionComponent/mergeSections.d.ts +0 -3
- package/build/types/domain/components/collectionComponent/mergeSections.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CollectionComponent,
|
|
1
|
+
import { CollectionComponent, CollectionSearch } from './types';
|
|
2
2
|
import { PerformCollectionQuery } from '../../features/collection/getPerformCollectionQuery';
|
|
3
3
|
import { OnComponentUpdate } from '../../types';
|
|
4
|
-
import { AnalyticsEventDispatcher } from '../../features/events';
|
|
5
|
-
export type
|
|
6
|
-
export declare const createCollectionComponent: (props: Pick<CollectionComponent, 'uid' | 'analyticsId' | 'control' | 'margin' | 'tags'> & {
|
|
7
|
-
|
|
4
|
+
import { AnalyticsEventDispatcher, EventName } from '../../features/events';
|
|
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
8
|
}, onComponentUpdate: OnComponentUpdate, queryFunction: PerformCollectionQuery, trackEvent: AnalyticsEventDispatcher) => CollectionComponent;
|
|
9
9
|
//# sourceMappingURL=CollectionComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/CollectionComponent.ts"],"names":[],"mappings":"
|
|
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,61 +1,39 @@
|
|
|
1
|
-
import { AdditionalInfo, BaseLayoutComponent, CallToAction, DomainComponent, InlineAlert,
|
|
1
|
+
import { AdditionalInfo, BaseLayoutComponent, CallToAction, DomainComponent, InlineAlert, Media, SupportingValues } from '../../types';
|
|
2
2
|
export type CollectionStatus = {
|
|
3
3
|
type: 'idle';
|
|
4
4
|
loadMore?: () => void;
|
|
5
5
|
} | {
|
|
6
6
|
type: 'loading';
|
|
7
|
-
reason: 'search' | '
|
|
7
|
+
reason: 'search' | 'pagination';
|
|
8
8
|
} | {
|
|
9
9
|
type: 'error';
|
|
10
|
-
reason: '
|
|
10
|
+
reason: 'pagination' | 'search';
|
|
11
11
|
retry: () => void;
|
|
12
12
|
};
|
|
13
13
|
export type CollectionComponent = BaseLayoutComponent & {
|
|
14
14
|
type: 'collection';
|
|
15
15
|
kind: 'layout';
|
|
16
|
-
|
|
17
|
-
* A stack of states, where the last one is active. Forking pushes a copy of the active state,
|
|
18
|
-
* which can then be searched or filtered independently, and popping discards it.
|
|
19
|
-
*/
|
|
20
|
-
stack: CollectionStack;
|
|
21
|
-
fork: () => void;
|
|
22
|
-
pop: () => void;
|
|
23
|
-
getChildren: () => DomainComponent[];
|
|
24
|
-
};
|
|
25
|
-
export type CollectionStack = [CollectionState, ...CollectionState[]];
|
|
26
|
-
export type CollectionState = Omit<CollectionResponse, 'search'> & {
|
|
27
|
-
id: string;
|
|
16
|
+
state: CollectionState;
|
|
28
17
|
status: CollectionStatus;
|
|
29
|
-
search?: CollectionSearch;
|
|
30
|
-
/** Creates a copy of this state with the given id, which makes its own requests. */
|
|
31
|
-
fork: (id: string) => CollectionState;
|
|
32
|
-
/** Cancels any pending or in-flight request for this state. */
|
|
33
|
-
cancel: () => void;
|
|
34
|
-
/** Returns the layout components in this state, including its initial search sections. */
|
|
35
18
|
getChildren: () => DomainComponent[];
|
|
36
19
|
};
|
|
37
|
-
export type
|
|
20
|
+
export type CollectionState = {
|
|
38
21
|
sections: CollectionSection[];
|
|
22
|
+
search?: CollectionSearch;
|
|
39
23
|
nextCursor?: string;
|
|
40
|
-
analytics: Record<string, string>;
|
|
41
|
-
search?: CollectionSearchConfig;
|
|
42
24
|
filters?: CollectionFilter[];
|
|
43
25
|
beforeSections?: DomainComponent[];
|
|
44
26
|
afterSections?: DomainComponent[];
|
|
27
|
+
analytics: Record<string, string>;
|
|
45
28
|
};
|
|
46
|
-
export type
|
|
47
|
-
|
|
48
|
-
type: 'items';
|
|
49
|
-
items: CollectionItem[];
|
|
50
|
-
};
|
|
51
|
-
export type CollectionLayoutSection = BaseCollectionSection & {
|
|
52
|
-
type: 'layout';
|
|
53
|
-
components: LayoutComponent[];
|
|
29
|
+
export type CollectionResponse = Omit<CollectionState, 'filters'> & {
|
|
30
|
+
filters?: CollectionFilter[];
|
|
54
31
|
};
|
|
55
|
-
type
|
|
32
|
+
export type CollectionSection = {
|
|
56
33
|
id: string;
|
|
57
34
|
title?: string;
|
|
58
35
|
callToAction?: CallToAction;
|
|
36
|
+
items: CollectionItem[];
|
|
59
37
|
inlineAlert?: InlineAlert;
|
|
60
38
|
help?: string;
|
|
61
39
|
};
|
|
@@ -74,17 +52,12 @@ export type CollectionItem = {
|
|
|
74
52
|
analyticsId?: string;
|
|
75
53
|
tags?: string[];
|
|
76
54
|
};
|
|
77
|
-
export type
|
|
55
|
+
export type CollectionSearch = {
|
|
78
56
|
param: string;
|
|
79
|
-
title?: string;
|
|
80
|
-
hint?: string;
|
|
81
|
-
hints?: string[];
|
|
82
|
-
help?: string;
|
|
83
|
-
initialSections?: CollectionSection[];
|
|
84
|
-
};
|
|
85
|
-
export type CollectionSearch = CollectionSearchConfig & {
|
|
86
57
|
query: string;
|
|
87
58
|
onChange: (query: string) => void;
|
|
59
|
+
title?: string;
|
|
60
|
+
hint?: string;
|
|
88
61
|
};
|
|
89
62
|
export type CollectionFilter = {
|
|
90
63
|
type: 'select';
|
|
@@ -99,5 +72,4 @@ export type CollectionFilterOption = {
|
|
|
99
72
|
onSelect: () => void;
|
|
100
73
|
selected: boolean;
|
|
101
74
|
};
|
|
102
|
-
export {};
|
|
103
75
|
//# 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,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -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 } from '../../components/collectionComponent/types';
|
|
3
|
+
import { CollectionFilter, CollectionResponse, CollectionState } 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']) =>
|
|
12
|
+
export declare const getPerformCollectionQuery: (httpClient: HttpClient, baseRequest: Request, mapState: (state: CollectionLayout['initialState']) => CollectionState) => 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,
|
|
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,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
|
|
5
|
-
export declare const collectionLayoutToComponent: (uid: string, { analyticsId, control, initialState, margin, search, tags, baseRequest }: CollectionLayout, mapperProps: MapperProps
|
|
6
|
-
export declare const mapCollectionSpecToDomainState: (specState: CollectionLayout['initialState'], mapperProps: MapperProps, mapLayout: (layout: Layout) => LayoutComponent) => CollectionResponse;
|
|
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;
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectionComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/collectionComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
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"}
|
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.29.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"@wise/components-theming": "^1.10.3",
|
|
55
55
|
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
56
56
|
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
57
|
+
"@wise/dynamic-flow-storybook": "0.0.0",
|
|
57
58
|
"esbuild": "^0.28.1",
|
|
58
59
|
"eslint-plugin-storybook": "^10.6.0",
|
|
59
60
|
"framer-motion": "^12.43.0",
|
|
60
61
|
"jsdom-testing-mocks": "^1.16.0",
|
|
61
|
-
"motion": "^12.42.2",
|
|
62
62
|
"npm-run-all2": "^9.0.3",
|
|
63
63
|
"postcss": "^8.5.28",
|
|
64
64
|
"postcss-cli": "^11.0.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"react-intl": "^6 || ^7"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@wise/dynamic-flow-types": "4.
|
|
89
|
+
"@wise/dynamic-flow-types": "4.26.0"
|
|
90
90
|
},
|
|
91
91
|
"wise": {
|
|
92
92
|
"platform": "wise-library",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CollectionResponse, CollectionState } from './types';
|
|
2
|
-
import { PerformCollectionQuery } from '../../features/collection/getPerformCollectionQuery';
|
|
3
|
-
import { OnComponentUpdate } from '../../types';
|
|
4
|
-
import { AnalyticsEventDispatcher, EventName } from '../../features/events';
|
|
5
|
-
export type CollectionEvent = EventName & `Collection ${string}`;
|
|
6
|
-
export type CollectionStateProps = {
|
|
7
|
-
id: string;
|
|
8
|
-
initialState: CollectionResponse;
|
|
9
|
-
searchQuery: string;
|
|
10
|
-
onComponentUpdate: OnComponentUpdate;
|
|
11
|
-
queryFunction: PerformCollectionQuery;
|
|
12
|
-
trackEvent: AnalyticsEventDispatcher;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Creates a collection state. Each state owns its query, filters and results, and makes its own
|
|
16
|
-
* requests, so a response is always applied to the state that made the request.
|
|
17
|
-
*/
|
|
18
|
-
export declare const createCollectionState: ({ id, initialState, searchQuery, onComponentUpdate, queryFunction, trackEvent, }: CollectionStateProps) => CollectionState;
|
|
19
|
-
//# sourceMappingURL=CollectionState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionState.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/collectionComponent/CollectionState.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,kBAAkB,EAIlB,eAAe,EAEhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAmB,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAM5E,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,MAAM,EAAE,CAAC;AAIjE,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,kBAAkB,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,aAAa,EAAE,sBAAsB,CAAC;IACtC,UAAU,EAAE,wBAAwB,CAAC;CACtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qFAO/B,oBAAoB,KAAG,eAiKzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|