@wise/dynamic-flow-client 5.28.1 → 5.29.0-experimental-f7c2300
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 +24 -0
- package/build/main.js +299 -167
- package/build/main.mjs +299 -167
- 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/CollectionState.d.ts +19 -0
- package/build/types/domain/components/collectionComponent/CollectionState.d.ts.map +1 -0
- package/build/types/domain/components/collectionComponent/mergeSections.d.ts +3 -0
- package/build/types/domain/components/collectionComponent/mergeSections.d.ts.map +1 -0
- package/build/types/domain/components/collectionComponent/types.d.ts +42 -14
- 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 +6 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CollectionComponent,
|
|
1
|
+
import { CollectionComponent, CollectionResponse } from './types';
|
|
2
2
|
import { PerformCollectionQuery } from '../../features/collection/getPerformCollectionQuery';
|
|
3
3
|
import { OnComponentUpdate } from '../../types';
|
|
4
|
-
import { AnalyticsEventDispatcher
|
|
5
|
-
export type CollectionEvent
|
|
6
|
-
export declare const createCollectionComponent: (props: Pick<CollectionComponent, 'uid' | 'analyticsId' | 'control' | 'margin' | 'tags'
|
|
7
|
-
|
|
4
|
+
import { AnalyticsEventDispatcher } from '../../features/events';
|
|
5
|
+
export type { CollectionEvent } from './CollectionState';
|
|
6
|
+
export declare const createCollectionComponent: (props: Pick<CollectionComponent, 'uid' | 'analyticsId' | 'control' | 'margin' | 'tags'> & {
|
|
7
|
+
state: CollectionResponse;
|
|
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":"AACA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,eAAO,MAAM,yBAAyB,UAC7B,IAAI,CAAC,mBAAmB,EAAE,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACxF,KAAK,EAAE,kBAAkB,CAAC;CAC3B,qBACkB,iBAAiB,iBACrB,sBAAsB,cACzB,wBAAwB,KACnC,mBAsDF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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"}
|
|
@@ -1,39 +1,61 @@
|
|
|
1
|
-
import { AdditionalInfo, BaseLayoutComponent, CallToAction, DomainComponent, InlineAlert, Media, SupportingValues } from '../../types';
|
|
1
|
+
import { AdditionalInfo, BaseLayoutComponent, CallToAction, DomainComponent, InlineAlert, LayoutComponent, 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' | 'pagination';
|
|
7
|
+
reason: 'search' | 'filter' | 'pagination';
|
|
8
8
|
} | {
|
|
9
9
|
type: 'error';
|
|
10
|
-
reason: '
|
|
10
|
+
reason: 'search' | 'filter' | 'pagination';
|
|
11
11
|
retry: () => void;
|
|
12
12
|
};
|
|
13
13
|
export type CollectionComponent = BaseLayoutComponent & {
|
|
14
14
|
type: 'collection';
|
|
15
15
|
kind: 'layout';
|
|
16
|
-
|
|
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;
|
|
17
28
|
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. */
|
|
18
35
|
getChildren: () => DomainComponent[];
|
|
19
36
|
};
|
|
20
|
-
export type
|
|
37
|
+
export type CollectionResponse = {
|
|
21
38
|
sections: CollectionSection[];
|
|
22
|
-
search?: CollectionSearch;
|
|
23
39
|
nextCursor?: string;
|
|
40
|
+
analytics: Record<string, string>;
|
|
41
|
+
search?: CollectionSearchConfig;
|
|
24
42
|
filters?: CollectionFilter[];
|
|
25
43
|
beforeSections?: DomainComponent[];
|
|
26
44
|
afterSections?: DomainComponent[];
|
|
27
|
-
analytics: Record<string, string>;
|
|
28
45
|
};
|
|
29
|
-
export type
|
|
30
|
-
|
|
46
|
+
export type CollectionSection = CollectionItemsSection | CollectionLayoutSection;
|
|
47
|
+
export type CollectionItemsSection = BaseCollectionSection & {
|
|
48
|
+
type: 'items';
|
|
49
|
+
items: CollectionItem[];
|
|
31
50
|
};
|
|
32
|
-
export type
|
|
51
|
+
export type CollectionLayoutSection = BaseCollectionSection & {
|
|
52
|
+
type: 'layout';
|
|
53
|
+
components: LayoutComponent[];
|
|
54
|
+
};
|
|
55
|
+
type BaseCollectionSection = {
|
|
33
56
|
id: string;
|
|
34
57
|
title?: string;
|
|
35
58
|
callToAction?: CallToAction;
|
|
36
|
-
items: CollectionItem[];
|
|
37
59
|
inlineAlert?: InlineAlert;
|
|
38
60
|
help?: string;
|
|
39
61
|
};
|
|
@@ -52,12 +74,17 @@ export type CollectionItem = {
|
|
|
52
74
|
analyticsId?: string;
|
|
53
75
|
tags?: string[];
|
|
54
76
|
};
|
|
55
|
-
export type
|
|
77
|
+
export type CollectionSearchConfig = {
|
|
56
78
|
param: string;
|
|
57
|
-
query: string;
|
|
58
|
-
onChange: (query: string) => void;
|
|
59
79
|
title?: string;
|
|
60
80
|
hint?: string;
|
|
81
|
+
hints?: string[];
|
|
82
|
+
help?: string;
|
|
83
|
+
initialSections?: CollectionSection[];
|
|
84
|
+
};
|
|
85
|
+
export type CollectionSearch = CollectionSearchConfig & {
|
|
86
|
+
query: string;
|
|
87
|
+
onChange: (query: string) => void;
|
|
61
88
|
};
|
|
62
89
|
export type CollectionFilter = {
|
|
63
90
|
type: 'select';
|
|
@@ -72,4 +99,5 @@ export type CollectionFilterOption = {
|
|
|
72
99
|
onSelect: () => void;
|
|
73
100
|
selected: boolean;
|
|
74
101
|
};
|
|
102
|
+
export {};
|
|
75
103
|
//# 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,
|
|
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,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,GACvC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,Q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,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GAAG;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,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,6 +1,6 @@
|
|
|
1
1
|
import { CollectionLayout, Request } from '@wise/dynamic-flow-types/spec';
|
|
2
2
|
import { HttpClient } from '../../../types';
|
|
3
|
-
import { CollectionFilter, CollectionResponse
|
|
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']) =>
|
|
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,
|
|
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
|
|
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,
|
|
1
|
+
{"version":3,"file":"collectionLayoutToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/layout/collectionLayoutToComponent.ts"],"names":[],"mappings":"AAAA,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,6EAsCpC,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,
|
|
1
|
+
{"version":3,"file":"collectionComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/collectionComponentToProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EAGxB,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,uBASF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.29.0-experimental-f7c2300",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@testing-library/jest-dom": "^6.9.1",
|
|
42
42
|
"@testing-library/react": "^16.3.3",
|
|
43
43
|
"@testing-library/user-event": "^14.6.7",
|
|
44
|
-
"@transferwise/components": "^46.
|
|
44
|
+
"@transferwise/components": "^46.165.4",
|
|
45
45
|
"@transferwise/formatting": "^2.14.1",
|
|
46
|
-
"@transferwise/icons": "4.
|
|
46
|
+
"@transferwise/icons": "4.6.0",
|
|
47
47
|
"@transferwise/navigation-ui": "^4.50.1",
|
|
48
48
|
"@types/node": "^24.13.3",
|
|
49
49
|
"@types/react": "^19.2.18",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"eslint-plugin-storybook": "^10.6.0",
|
|
59
59
|
"framer-motion": "^12.43.0",
|
|
60
60
|
"jsdom-testing-mocks": "^1.16.0",
|
|
61
|
+
"motion": "^12.42.2",
|
|
61
62
|
"npm-run-all2": "^9.0.3",
|
|
62
63
|
"postcss": "^8.5.28",
|
|
63
64
|
"postcss-cli": "^11.0.1",
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"vitest": "^4.1.11"
|
|
77
78
|
},
|
|
78
79
|
"peerDependencies": {
|
|
79
|
-
"@transferwise/components": "^46.
|
|
80
|
+
"@transferwise/components": "^46.162.0",
|
|
80
81
|
"@transferwise/formatting": "^2",
|
|
81
82
|
"@transferwise/icons": "^3 || ^4",
|
|
82
83
|
"@wise/art": "^2.19.0",
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
"react-intl": "^6 || ^7"
|
|
86
87
|
},
|
|
87
88
|
"dependencies": {
|
|
88
|
-
"@wise/dynamic-flow-types": "4.
|
|
89
|
+
"@wise/dynamic-flow-types": "4.27.0-experimental-f7c2300"
|
|
89
90
|
},
|
|
90
91
|
"wise": {
|
|
91
92
|
"platform": "wise-library",
|