@wise/dynamic-flow-client 5.8.0 → 5.8.1

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 CHANGED
@@ -2102,10 +2102,10 @@ var createSearchComponent = (searchProps, performSearch, onBehavior, onComponent
2102
2102
  signal,
2103
2103
  query,
2104
2104
  config: searchConfig
2105
- }).then((results) => {
2105
+ }).then((state) => {
2106
2106
  if (!signal.aborted) {
2107
2107
  update(component2, (draft) => {
2108
- draft.results = results;
2108
+ draft.state = state;
2109
2109
  draft.isLoading = false;
2110
2110
  draft.error = void 0;
2111
2111
  });
@@ -2129,11 +2129,11 @@ var createSearchComponent = (searchProps, performSearch, onBehavior, onComponent
2129
2129
  emptyMessage,
2130
2130
  hint,
2131
2131
  margin,
2132
+ state: null,
2132
2133
  tags,
2133
2134
  title,
2134
2135
  isLoading: false,
2135
2136
  query: "",
2136
- results: [],
2137
2137
  _update(updateFn) {
2138
2138
  update(this, updateFn);
2139
2139
  },
@@ -2164,9 +2164,9 @@ var createSearchComponent = (searchProps, performSearch, onBehavior, onComponent
2164
2164
  };
2165
2165
 
2166
2166
  // src/domain/features/search/getPerformSearchFunction.ts
2167
- var getPerformSearchFunction = (httpClient, defaultConfig) => {
2167
+ var getPerformSearchFunction = (httpClient, mapLayoutToDomainComponent, defaultConfig) => {
2168
2168
  let latestSuccessfulRequestHash = hashRequest("", defaultConfig);
2169
- let latestSuccessfulResults = [];
2169
+ let latestSuccessfulResults = null;
2170
2170
  return async ({ config = defaultConfig, query, signal }) => {
2171
2171
  const requestHash = hashRequest(query, config);
2172
2172
  if (requestHash !== latestSuccessfulRequestHash) {
@@ -2184,6 +2184,14 @@ var getPerformSearchFunction = (httpClient, defaultConfig) => {
2184
2184
  }));
2185
2185
  const results = await parseResponse(response);
2186
2186
  latestSuccessfulRequestHash = requestHash;
2187
+ if (results.type === "layout") {
2188
+ const mappedLayoutResult = {
2189
+ type: "layout",
2190
+ content: results.content.map(mapLayoutToDomainComponent)
2191
+ };
2192
+ latestSuccessfulResults = mappedLayoutResult;
2193
+ return mappedLayoutResult;
2194
+ }
2187
2195
  latestSuccessfulResults = results;
2188
2196
  return results;
2189
2197
  }
@@ -2194,10 +2202,15 @@ var parseResponse = async (response) => {
2194
2202
  if (response.ok) {
2195
2203
  const body = await response.json().catch(() => null);
2196
2204
  if (isValidResponseBody(body)) {
2197
- if (body.results.length === 0) {
2198
- return [];
2205
+ if (body.type === "layout") {
2206
+ return body;
2207
+ }
2208
+ if (body.results) {
2209
+ return {
2210
+ type: "results",
2211
+ results: body.results
2212
+ };
2199
2213
  }
2200
- return body.results;
2201
2214
  }
2202
2215
  }
2203
2216
  throw Error("error response");
@@ -2208,15 +2221,30 @@ var addQueryParameter = (url, key, value) => {
2208
2221
  urlQueryParams.set(key, value);
2209
2222
  return `${urlBase}?${urlQueryParams.toString()}`;
2210
2223
  };
2211
- var isValidResponseBody = (body) => isObject(body) && "results" in body && isArray(body.results) && body.results.every(
2212
- (result) => isObject(result) && "title" in result && "type" in result && "value" in result
2213
- );
2224
+ var isValidResponseBody = (body) => {
2225
+ if (!isObject(body)) {
2226
+ return false;
2227
+ }
2228
+ if ("results" in body) {
2229
+ return isArray(body.results) && body.results.every(
2230
+ (result) => isObject(result) && "title" in result && "type" in result && "value" in result
2231
+ );
2232
+ }
2233
+ if ("type" in body && body.type === "layout" && "content" in body) {
2234
+ return isArray(body.content);
2235
+ }
2236
+ return false;
2237
+ };
2214
2238
  var hashRequest = (query, config) => JSON.stringify({ query, config });
2215
2239
 
2216
2240
  // src/domain/mappers/layout/searchLayoutToComponent.ts
2217
2241
  var searchLayoutToComponent = (uid, { analyticsId, control, emptyMessage, hint, method, param, title, url, margin, tags }, mapperProps) => {
2218
2242
  const { httpClient, onBehavior, onComponentUpdate } = mapperProps;
2219
- const search = getPerformSearchFunction(httpClient, { method, param, url });
2243
+ const search = getPerformSearchFunction(
2244
+ httpClient,
2245
+ (layout) => mapLayoutToComponent(`${uid}-search-response`, layout, mapperProps, []),
2246
+ { method, param, url }
2247
+ );
2220
2248
  return createSearchComponent(
2221
2249
  {
2222
2250
  uid,
@@ -7916,19 +7944,7 @@ var rootComponentToProps = (rootComponent, rendererMapperProps) => {
7916
7944
 
7917
7945
  // src/renderers/mappers/searchComponentToProps.ts
7918
7946
  var searchComponentToProps = (component, rendererMapperProps) => {
7919
- const {
7920
- uid,
7921
- control,
7922
- emptyMessage,
7923
- error,
7924
- hint,
7925
- isLoading,
7926
- margin,
7927
- query,
7928
- results,
7929
- title,
7930
- tags
7931
- } = component;
7947
+ const { uid, control, emptyMessage, error, hint, isLoading, margin, query, title, tags } = component;
7932
7948
  const onChange = component.onChange.bind(component);
7933
7949
  const onSelect = component.onSelect.bind(component);
7934
7950
  const state = getSearchState({
@@ -7936,7 +7952,8 @@ var searchComponentToProps = (component, rendererMapperProps) => {
7936
7952
  error,
7937
7953
  isLoading,
7938
7954
  query,
7939
- results,
7955
+ state: component.state,
7956
+ rendererMapperProps,
7940
7957
  onChange,
7941
7958
  onSelect
7942
7959
  });
@@ -7960,7 +7977,8 @@ var getSearchState = ({
7960
7977
  error,
7961
7978
  isLoading,
7962
7979
  query,
7963
- results,
7980
+ state,
7981
+ rendererMapperProps,
7964
7982
  onChange,
7965
7983
  onSelect
7966
7984
  }) => {
@@ -7970,10 +7988,24 @@ var getSearchState = ({
7970
7988
  if (error) {
7971
7989
  return { type: "error", onRetry: () => onChange(query) };
7972
7990
  }
7973
- if (results.length === 0) {
7991
+ if (!state) {
7992
+ return { type: "noResults", message: emptyMessage };
7993
+ }
7994
+ if (state.type === "layout") {
7995
+ const { content } = state;
7996
+ const layoutProps = content.map(
7997
+ (component) => componentToRendererProps(component, rendererMapperProps)
7998
+ );
7999
+ return {
8000
+ type: "layout",
8001
+ layout: layoutProps.map((props) => rendererMapperProps.render(props)),
8002
+ layoutProps
8003
+ };
8004
+ }
8005
+ if (state.results.length === 0) {
7974
8006
  return { type: "noResults", message: emptyMessage };
7975
8007
  }
7976
- const rendererResults = results.map((result) => {
8008
+ const rendererResults = state.results.map((result) => {
7977
8009
  var _a;
7978
8010
  return __spreadProps(__spreadValues({}, result), {
7979
8011
  id: result.type === "action" ? (_a = result.value.id) != null ? _a : result.value.$id : void 0,
package/build/main.mjs CHANGED
@@ -2072,10 +2072,10 @@ var createSearchComponent = (searchProps, performSearch, onBehavior, onComponent
2072
2072
  signal,
2073
2073
  query,
2074
2074
  config: searchConfig
2075
- }).then((results) => {
2075
+ }).then((state) => {
2076
2076
  if (!signal.aborted) {
2077
2077
  update(component2, (draft) => {
2078
- draft.results = results;
2078
+ draft.state = state;
2079
2079
  draft.isLoading = false;
2080
2080
  draft.error = void 0;
2081
2081
  });
@@ -2099,11 +2099,11 @@ var createSearchComponent = (searchProps, performSearch, onBehavior, onComponent
2099
2099
  emptyMessage,
2100
2100
  hint,
2101
2101
  margin,
2102
+ state: null,
2102
2103
  tags,
2103
2104
  title,
2104
2105
  isLoading: false,
2105
2106
  query: "",
2106
- results: [],
2107
2107
  _update(updateFn) {
2108
2108
  update(this, updateFn);
2109
2109
  },
@@ -2134,9 +2134,9 @@ var createSearchComponent = (searchProps, performSearch, onBehavior, onComponent
2134
2134
  };
2135
2135
 
2136
2136
  // src/domain/features/search/getPerformSearchFunction.ts
2137
- var getPerformSearchFunction = (httpClient, defaultConfig) => {
2137
+ var getPerformSearchFunction = (httpClient, mapLayoutToDomainComponent, defaultConfig) => {
2138
2138
  let latestSuccessfulRequestHash = hashRequest("", defaultConfig);
2139
- let latestSuccessfulResults = [];
2139
+ let latestSuccessfulResults = null;
2140
2140
  return async ({ config = defaultConfig, query, signal }) => {
2141
2141
  const requestHash = hashRequest(query, config);
2142
2142
  if (requestHash !== latestSuccessfulRequestHash) {
@@ -2154,6 +2154,14 @@ var getPerformSearchFunction = (httpClient, defaultConfig) => {
2154
2154
  }));
2155
2155
  const results = await parseResponse(response);
2156
2156
  latestSuccessfulRequestHash = requestHash;
2157
+ if (results.type === "layout") {
2158
+ const mappedLayoutResult = {
2159
+ type: "layout",
2160
+ content: results.content.map(mapLayoutToDomainComponent)
2161
+ };
2162
+ latestSuccessfulResults = mappedLayoutResult;
2163
+ return mappedLayoutResult;
2164
+ }
2157
2165
  latestSuccessfulResults = results;
2158
2166
  return results;
2159
2167
  }
@@ -2164,10 +2172,15 @@ var parseResponse = async (response) => {
2164
2172
  if (response.ok) {
2165
2173
  const body = await response.json().catch(() => null);
2166
2174
  if (isValidResponseBody(body)) {
2167
- if (body.results.length === 0) {
2168
- return [];
2175
+ if (body.type === "layout") {
2176
+ return body;
2177
+ }
2178
+ if (body.results) {
2179
+ return {
2180
+ type: "results",
2181
+ results: body.results
2182
+ };
2169
2183
  }
2170
- return body.results;
2171
2184
  }
2172
2185
  }
2173
2186
  throw Error("error response");
@@ -2178,15 +2191,30 @@ var addQueryParameter = (url, key, value) => {
2178
2191
  urlQueryParams.set(key, value);
2179
2192
  return `${urlBase}?${urlQueryParams.toString()}`;
2180
2193
  };
2181
- var isValidResponseBody = (body) => isObject(body) && "results" in body && isArray(body.results) && body.results.every(
2182
- (result) => isObject(result) && "title" in result && "type" in result && "value" in result
2183
- );
2194
+ var isValidResponseBody = (body) => {
2195
+ if (!isObject(body)) {
2196
+ return false;
2197
+ }
2198
+ if ("results" in body) {
2199
+ return isArray(body.results) && body.results.every(
2200
+ (result) => isObject(result) && "title" in result && "type" in result && "value" in result
2201
+ );
2202
+ }
2203
+ if ("type" in body && body.type === "layout" && "content" in body) {
2204
+ return isArray(body.content);
2205
+ }
2206
+ return false;
2207
+ };
2184
2208
  var hashRequest = (query, config) => JSON.stringify({ query, config });
2185
2209
 
2186
2210
  // src/domain/mappers/layout/searchLayoutToComponent.ts
2187
2211
  var searchLayoutToComponent = (uid, { analyticsId, control, emptyMessage, hint, method, param, title, url, margin, tags }, mapperProps) => {
2188
2212
  const { httpClient, onBehavior, onComponentUpdate } = mapperProps;
2189
- const search = getPerformSearchFunction(httpClient, { method, param, url });
2213
+ const search = getPerformSearchFunction(
2214
+ httpClient,
2215
+ (layout) => mapLayoutToComponent(`${uid}-search-response`, layout, mapperProps, []),
2216
+ { method, param, url }
2217
+ );
2190
2218
  return createSearchComponent(
2191
2219
  {
2192
2220
  uid,
@@ -7886,19 +7914,7 @@ var rootComponentToProps = (rootComponent, rendererMapperProps) => {
7886
7914
 
7887
7915
  // src/renderers/mappers/searchComponentToProps.ts
7888
7916
  var searchComponentToProps = (component, rendererMapperProps) => {
7889
- const {
7890
- uid,
7891
- control,
7892
- emptyMessage,
7893
- error,
7894
- hint,
7895
- isLoading,
7896
- margin,
7897
- query,
7898
- results,
7899
- title,
7900
- tags
7901
- } = component;
7917
+ const { uid, control, emptyMessage, error, hint, isLoading, margin, query, title, tags } = component;
7902
7918
  const onChange = component.onChange.bind(component);
7903
7919
  const onSelect = component.onSelect.bind(component);
7904
7920
  const state = getSearchState({
@@ -7906,7 +7922,8 @@ var searchComponentToProps = (component, rendererMapperProps) => {
7906
7922
  error,
7907
7923
  isLoading,
7908
7924
  query,
7909
- results,
7925
+ state: component.state,
7926
+ rendererMapperProps,
7910
7927
  onChange,
7911
7928
  onSelect
7912
7929
  });
@@ -7930,7 +7947,8 @@ var getSearchState = ({
7930
7947
  error,
7931
7948
  isLoading,
7932
7949
  query,
7933
- results,
7950
+ state,
7951
+ rendererMapperProps,
7934
7952
  onChange,
7935
7953
  onSelect
7936
7954
  }) => {
@@ -7940,10 +7958,24 @@ var getSearchState = ({
7940
7958
  if (error) {
7941
7959
  return { type: "error", onRetry: () => onChange(query) };
7942
7960
  }
7943
- if (results.length === 0) {
7961
+ if (!state) {
7962
+ return { type: "noResults", message: emptyMessage };
7963
+ }
7964
+ if (state.type === "layout") {
7965
+ const { content } = state;
7966
+ const layoutProps = content.map(
7967
+ (component) => componentToRendererProps(component, rendererMapperProps)
7968
+ );
7969
+ return {
7970
+ type: "layout",
7971
+ layout: layoutProps.map((props) => rendererMapperProps.render(props)),
7972
+ layoutProps
7973
+ };
7974
+ }
7975
+ if (state.results.length === 0) {
7944
7976
  return { type: "noResults", message: emptyMessage };
7945
7977
  }
7946
- const rendererResults = results.map((result) => {
7978
+ const rendererResults = state.results.map((result) => {
7947
7979
  var _a;
7948
7980
  return __spreadProps(__spreadValues({}, result), {
7949
7981
  id: result.type === "action" ? (_a = result.value.id) != null ? _a : result.value.$id : void 0,
@@ -1,5 +1,5 @@
1
1
  import type { SearchResult } from '@wise/dynamic-flow-types/spec';
2
- import type { BaseLayoutComponent, OnBehavior, OnComponentUpdate } from '../../types';
2
+ import type { BaseLayoutComponent, LayoutComponent, OnBehavior, OnComponentUpdate } from '../../types';
3
3
  export type SearchConfig = {
4
4
  method: string;
5
5
  param: string;
@@ -10,7 +10,14 @@ export type SearchProps = {
10
10
  query: string;
11
11
  signal: AbortSignal;
12
12
  };
13
- export type PerformSearch = (props: SearchProps) => Promise<SearchResult[]>;
13
+ export type SearchResponse = {
14
+ type: 'layout';
15
+ content: LayoutComponent[];
16
+ } | {
17
+ type: 'results';
18
+ results: SearchResult[];
19
+ };
20
+ export type PerformSearch = (props: SearchProps) => Promise<SearchResponse | null>;
14
21
  export type SearchComponent = BaseLayoutComponent & {
15
22
  type: 'search';
16
23
  kind: 'layout';
@@ -19,7 +26,7 @@ export type SearchComponent = BaseLayoutComponent & {
19
26
  isLoading: boolean;
20
27
  query: string;
21
28
  title: string;
22
- results: SearchResult[];
29
+ state: SearchResponse | null;
23
30
  error?: string;
24
31
  onChange: (query: string) => void;
25
32
  onSelect: (result: SearchResult) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/searchComponent/SearchComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKtF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;AAE5E,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;CAC1C,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAChC,aAAa,IAAI,CACf,eAAe,EACf,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAC1F,EACD,eAAe,aAAa,EAC5B,YAAY,UAAU,EACtB,mBAAmB,iBAAiB,KACnC,eA+EF,CAAC"}
1
+ {"version":3,"file":"SearchComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/searchComponent/SearchComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAKrB,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC;AAEN,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG;IAClD,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;CAC1C,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAChC,aAAa,IAAI,CACf,eAAe,EACf,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAC1F,EACD,eAAe,aAAa,EAC5B,YAAY,UAAU,EACtB,mBAAmB,iBAAiB,KACnC,eA+EF,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import type { SearchConfig, PerformSearch } from '../../components/searchComponent/SearchComponent';
2
2
  import type { HttpClient } from '../../../types';
3
- export declare const getPerformSearchFunction: (httpClient: HttpClient, defaultConfig: SearchConfig) => PerformSearch;
3
+ import type { Layout } from '@wise/dynamic-flow-types/spec';
4
+ import { LayoutComponent } from '../../types';
5
+ export declare const getPerformSearchFunction: (httpClient: HttpClient, mapLayoutToDomainComponent: (layout: Layout) => LayoutComponent, defaultConfig: SearchConfig) => PerformSearch;
4
6
  //# sourceMappingURL=getPerformSearchFunction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPerformSearchFunction.d.ts","sourceRoot":"","sources":["../../../../../src/domain/features/search/getPerformSearchFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AAEpG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,eAAO,MAAM,wBAAwB,GACnC,YAAY,UAAU,EACtB,eAAe,YAAY,KAC1B,aA+BF,CAAC"}
1
+ {"version":3,"file":"getPerformSearchFunction.d.ts","sourceRoot":"","sources":["../../../../../src/domain/features/search/getPerformSearchFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EAEd,MAAM,kDAAkD,CAAC;AAE1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAwC,MAAM,+BAA+B,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,wBAAwB,GACnC,YAAY,UAAU,EACtB,4BAA4B,CAAC,MAAM,EAAE,MAAM,KAAK,eAAe,EAC/D,eAAe,YAAY,KAC1B,aAyCF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"searchLayoutToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/layout/searchLayoutToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,eAAO,MAAM,uBAAuB,GAClC,KAAK,MAAM,EACX,uFAAuF,YAAY,EACnG,aAAa,WAAW,+EAoBzB,CAAC"}
1
+ {"version":3,"file":"searchLayoutToComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/mappers/layout/searchLayoutToComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,eAAO,MAAM,uBAAuB,GAClC,KAAK,MAAM,EACX,uFAAuF,YAAY,EACnG,aAAa,WAAW,+EAwBzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"searchComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/searchComponentToProps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAC;AAC/F,OAAO,KAAK,EAAE,mBAAmB,EAAe,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,eAAO,MAAM,sBAAsB,GACjC,WAAW,eAAe,EAC1B,qBAAqB,mBAAmB,KACvC,mBA0CF,CAAC"}
1
+ {"version":3,"file":"searchComponentToProps.d.ts","sourceRoot":"","sources":["../../../../src/renderers/mappers/searchComponentToProps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAe,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAA4B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAI3F,eAAO,MAAM,sBAAsB,GACjC,WAAW,eAAe,EAC1B,qBAAqB,mBAAmB,KACvC,mBAgCF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "5.8.0",
3
+ "version": "5.8.1",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",
@@ -72,8 +72,8 @@
72
72
  "typescript": "5.9.3",
73
73
  "vitest": "4.0.18",
74
74
  "vitest-fetch-mock": "0.4.5",
75
- "@wise/dynamic-flow-fixtures": "0.0.1",
76
- "@wise/dynamic-flow-renderers": "0.0.0"
75
+ "@wise/dynamic-flow-renderers": "0.0.0",
76
+ "@wise/dynamic-flow-fixtures": "0.0.1"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@transferwise/components": "^46.104.0",
@@ -86,7 +86,7 @@
86
86
  "react-intl": "^6 || ^7"
87
87
  },
88
88
  "dependencies": {
89
- "@wise/dynamic-flow-types": "4.8.0"
89
+ "@wise/dynamic-flow-types": "4.8.1"
90
90
  },
91
91
  "scripts": {
92
92
  "dev": "EXCLUDE_VISUAL_TESTS=true pnpm storybook dev -p 3003",