@commercelayer/app-elements 3.5.5 → 4.0.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/dist/main.d.ts CHANGED
@@ -19,7 +19,8 @@ export { CoreSdkProvider, useCoreApi, useCoreSdkProvider } from './providers/Cor
19
19
  export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp';
20
20
  export { ErrorBoundary } from './providers/ErrorBoundary';
21
21
  export { GTMProvider, useTagManager } from './providers/GTMProvider';
22
- export { MetaTags, TokenProvider, encodeExtras, useTokenProvider, type TokenProviderAllowedApp, type TokenProviderExtras, type TokenProviderPermissionItem, type TokenProviderRoleActions, type TokenProviderRolePermissions, type TokenProviderTokenApplicationKind } from './providers/TokenProvider';
22
+ export { i18nLocales, I18NProvider, t, Trans, useTranslation, type I18NLocale } from './providers/I18NProvider';
23
+ export { encodeExtras, MetaTags, TokenProvider, useTokenProvider, type TokenProviderAllowedApp, type TokenProviderExtras, type TokenProviderPermissionItem, type TokenProviderRoleActions, type TokenProviderRolePermissions, type TokenProviderTokenApplicationKind } from './providers/TokenProvider';
23
24
  export { A, type AProps } from './ui/atoms/A';
24
25
  export { Alert, type AlertProps } from './ui/atoms/Alert';
25
26
  export { Avatar, type AvatarProps } from './ui/atoms/Avatar';
@@ -68,7 +69,7 @@ export { PageError, type PageErrorProps } from './ui/composite/PageError';
68
69
  export { PageLayout, type PageLayoutProps } from './ui/composite/PageLayout';
69
70
  export { PageSkeleton } from './ui/composite/PageSkeleton';
70
71
  export { Report, type ReportProps } from './ui/composite/Report';
71
- export { GenericPageNotFound, Routes, createRoute, createTypedRoute, type GetParams, type PageProps, type Route } from './ui/composite/Routes';
72
+ export { createRoute, createTypedRoute, GenericPageNotFound, LoadingPage, Routes, type GetParams, type PageProps, type Route } from './ui/composite/Routes';
72
73
  export { SearchBar, type SearchBarProps } from './ui/composite/SearchBar';
73
74
  export { TableData, type TableDataProps } from './ui/composite/TableData';
74
75
  export { Timeline, type TimelineEvent, type TimelineProps } from './ui/composite/Timeline';
@@ -78,7 +79,7 @@ export { HookedForm } from './ui/forms/Form';
78
79
  export { HookedInput, Input, type HookedInputProps, type InputProps } from './ui/forms/Input';
79
80
  export { HookedInputCheckbox, InputCheckbox, type HookedInputCheckboxProps, type InputCheckboxProps } from './ui/forms/InputCheckbox';
80
81
  export { HookedInputCheckboxGroup, InputCheckboxGroup, type HookedInputCheckboxGroupProps, type InputCheckboxGroupProps } from './ui/forms/InputCheckboxGroup';
81
- export { HookedInputCurrency, InputCurrency, formatCentsToCurrency, type HookedInputCurrencyProps, type InputCurrencyProps } from './ui/forms/InputCurrency';
82
+ export { formatCentsToCurrency, HookedInputCurrency, InputCurrency, type HookedInputCurrencyProps, type InputCurrencyProps } from './ui/forms/InputCurrency';
82
83
  export { InputCurrencyRange, type InputCurrencyRangeProps } from './ui/forms/InputCurrencyRange';
83
84
  export { HookedInputDate, InputDate, type HookedInputDateProps, type InputDateProps } from './ui/forms/InputDate';
84
85
  export { HookedInputDateRange, InputDateRange, type HookedInputDateRangeProps, type InputDateRangeProps } from './ui/forms/InputDateRange';
@@ -87,7 +88,7 @@ export { InputFile, type InputFileProps } from './ui/forms/InputFile';
87
88
  export { InputJson, type InputJsonProps } from './ui/forms/InputJson';
88
89
  export { HookedInputRadioGroup, InputRadioGroup, type HookedInputRadioGroupProps, type InputRadioGroupProps } from './ui/forms/InputRadioGroup';
89
90
  export { HookedInputResourceGroup, InputResourceGroup, useInputResourceGroupOverlay, type HookedInputResourceGroupProps, type InputResourceGroupProps } from './ui/forms/InputResourceGroup';
90
- export { HookedInputSelect, InputSelect, flatSelectValues, getDefaultValueFromFlatten, isGroupedSelectValues, isMultiValueSelected, isSingleValueSelected, type HookedInputSelectProps, type InputSelectProps, type InputSelectValue } from './ui/forms/InputSelect';
91
+ export { flatSelectValues, getDefaultValueFromFlatten, HookedInputSelect, InputSelect, isGroupedSelectValues, isMultiValueSelected, isSingleValueSelected, type HookedInputSelectProps, type InputSelectProps, type InputSelectValue } from './ui/forms/InputSelect';
91
92
  export { HookedInputSimpleSelect, InputSimpleSelect, type HookedInputSimpleSelectProps, type InputSimpleSelectProps } from './ui/forms/InputSimpleSelect';
92
93
  export { HookedInputSpinner, InputSpinner, type HookedInputSpinnerProps, type InputSpinnerProps } from './ui/forms/InputSpinner';
93
94
  export { HookedInputSwitch, InputSwitch, type HookedInputSwitchProps, type InputSwitchProps } from './ui/forms/InputSwitch';
@@ -97,13 +98,13 @@ export { Label, type LabelProps } from './ui/forms/Label';
97
98
  export { Legend, type LegendProps } from './ui/forms/Legend';
98
99
  export { HookedMarketWithCurrencySelector, type HookedMarketWithCurrencySelectorProps } from './ui/forms/MarketWithCurrencySelector';
99
100
  export { HookedValidationApiError, HookedValidationError, setApiFormErrors, useValidationFeedback } from './ui/forms/ReactHookForm';
100
- export { ResourceAddress, ResourceAddressFormFields, getResourceAddressFormFieldsSchema, useResourceAddressOverlay, type ResourceAddressFormFieldsProps, type ResourceAddressProps } from './ui/resources/ResourceAddress';
101
+ export { getResourceAddressFormFieldsSchema, ResourceAddress, ResourceAddressFormFields, useResourceAddressOverlay, type ResourceAddressFormFieldsProps, type ResourceAddressProps } from './ui/resources/ResourceAddress';
101
102
  export { ResourceDetails, type ResourceDetailsProps } from './ui/resources/ResourceDetails';
102
103
  export { ResourceLineItems, type ResourceLineItemsProps } from './ui/resources/ResourceLineItems';
103
104
  export { ResourceListItem, type ResourceListItemProps } from './ui/resources/ResourceListItem';
104
105
  export { ResourceMetadata, type ResourceMetadataProps } from './ui/resources/ResourceMetadata';
105
106
  export { ResourceOrderTimeline, type ResourceOrderTimelineProps } from './ui/resources/ResourceOrderTimeline';
106
- export { ResourcePaymentMethod, getPaymentMethodLogoSrc, type ResourcePaymentMethodProps } from './ui/resources/ResourcePaymentMethod';
107
+ export { getPaymentMethodLogoSrc, ResourcePaymentMethod, type ResourcePaymentMethodProps } from './ui/resources/ResourcePaymentMethod';
107
108
  export { ResourceShipmentParcels, type ResourceShipmentParcelsProps } from './ui/resources/ResourceShipmentParcels';
108
109
  export { ResourceTags, type ResourceTagsProps } from './ui/resources/ResourceTags';
109
110
  export { useResourceFilters, type FiltersInstructions } from './ui/resources/useResourceFilters';
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a8 as s, aO as t, a9 as o, aa as r, ab as n, ac as u, ad as i, ae as c, af as d, ag as l, aP as p, ah as b, b9 as g, ai as m, aj as S, _ as k, aQ as I, aR as T, aS as D, aT as R, ak as y, a2 as h, a3 as C, b1 as A, al as H, am as P, aU as F, ba as v, bb as f, bc as B, be as O, bg as E, bi as L, bm as N, bo as G, bt as M, bv as w, by as x, bF as V, bH as W, bJ as J, bL as U, bN as Y, bR as j, bS as q, bT as z, an as K, ao as Q, bd as X, bf as Z, bh as _, bj as $, bl as aa, bn as ea, bp as sa, bq as ta, br as oa, bs as ra, bu as na, bw as ua, bz as ia, bG as ca, bI as da, bK as la, bM as pa, bO as ba, bP as ga, bQ as ma, aV as Sa, aW as ka, aX as Ia, aY as Ta, a5 as Da, aZ as Ra, ap as ya, a_ as ha, a$ as Ca, aq as Aa, ar as Ha, as as Pa, at as Fa, b0 as va, bW as fa, bX as Ba, b_ as Oa, b$ as Ea, c0 as La, c1 as Na, c2 as Ga, c3 as Ma, c5 as wa, c6 as xa, b2 as Va, au as Wa, b5 as Ja, av as Ua, aw as Ya, ax as ja, ay as qa, aA as za, aB as Ka, aC as Qa, aD as Xa, aE as Za, aJ as _a, aF as $a, b6 as ae, aK as ee, aL as se, aG as te, aM as oe, aH as re, b7 as ne, a6 as ue, b8 as ie, aN as ce, aI as de, D as le, a1 as pe, b3 as be, b4 as ge, l as me, m as Se, C as ke, a7 as Ie, bA as Te, bk as De, p as Re, q as ye, s as he, E as Ce, F as Ae, H as He, c9 as Pe, ca as Fe, bB as ve, t as fe, v as Be, x as Oe, cb as Ee, cc as Le, cd as Ne, ce as Ge, cf as Me, J as we, K as xe, c4 as Ve, cg as We, bY as Je, G as Ue, ch as Ye, ci as je, cj as qe, L as ze, M as Ke, ck as Qe, cl as Xe, cm as Ze, P as _e, Q as $e, h as as, N as es, O as ss, k as ts, bC as os, bD as rs, bE as ns, y as us, n as is, r as cs, z as ds, bU as ls, A as ps, B as bs, S as gs, T as ms, $ as Ss, a0 as ks, U as Is, V as Ts, W as Ds, bx as Rs, X as ys, Y as hs, Z as Cs, bZ as As, c7 as Hs, c8 as Ps, a4 as Fs, u as vs, bV as fs, az as Bs } from "./main-DhEziGo0.js";
2
+ import { ad as s, aT as t, ae as o, af as r, ag as n, ah as u, ai as i, aj as c, ak as d, al as l, aU as p, am as b, bf as g, an as m, ao as S, _ as I, aV as k, aW as T, aX as D, aY as R, ap as y, a2 as h, a3 as C, b8 as P, aq as A, ar as H, aZ as F, bg as v, bh as f, bi as B, bk as L, bm as O, bp as E, bs as N, bu as G, bz as M, bB as w, bG as x, bL as V, bN as W, bP as J, bR as U, bT as q, bX as Y, bY as j, bZ as z, as as K, a6 as Q, at as X, bj as Z, bl as _, bn as $, bq as aa, br as ea, bt as sa, bv as ta, bw as oa, bx as ra, by as na, bA as ua, bC as ia, bH as ca, bM as da, bO as la, bQ as pa, bS as ba, bU as ga, bV as ma, bW as Sa, a_ as Ia, a$ as ka, b0 as Ta, b1 as Da, b9 as Ra, ab as ya, b2 as ha, au as Ca, b3 as Pa, b4 as Aa, av as Ha, aw as Fa, ax as va, ay as fa, b5 as Ba, c1 as La, c2 as Oa, c4 as Ea, c5 as Na, c6 as Ga, c7 as Ma, c8 as wa, ca as xa, cb as Va, cc as Wa, ba as Ja, az as Ua, bb as qa, aA as Ya, aB as ja, aC as za, aD as Ka, aF as Qa, aG as Xa, aH as Za, aI as _a, aJ as $a, aO as ae, aK as ee, bc as se, aP as te, aQ as oe, aL as re, aR as ne, aM as ue, bd as ie, ac as ce, be as de, aS as le, aN as pe, a8 as be, D as ge, a1 as me, b6 as Se, b7 as Ie, l as ke, m as Te, C as De, aa as Re, bE as ye, bo as he, p as Ce, q as Pe, s as Ae, E as He, F as Fe, H as ve, cf as fe, cg as Be, bF as Le, t as Oe, v as Ee, x as Ne, ch as Ge, ci as Me, cj as we, ck as xe, cl as Ve, J as We, K as Je, c9 as Ue, cm as qe, c0 as Ye, G as je, cn as ze, co as Ke, cp as Qe, L as Xe, M as Ze, cq as _e, cr as $e, cs as as, P as es, Q as ss, h as ts, N as os, O as rs, a5 as ns, k as us, bI as is, bJ as cs, bK as ds, y as ls, n as ps, r as bs, z as gs, b_ as ms, A as Ss, a7 as Is, B as ks, S as Ts, T as Ds, $ as Rs, a0 as ys, U as hs, V as Cs, W as Ps, bD as As, X as Hs, Y as Fs, Z as vs, c3 as fs, cd as Bs, ce as Ls, a4 as Os, u as Es, a9 as Ns, b$ as Gs, aE as Ms } from "./main-CeZ9IAeS.js";
3
3
  export {
4
4
  s as A,
5
5
  t as ActionButtons,
@@ -16,24 +16,24 @@ export {
16
16
  g as CodeEditor,
17
17
  m as Container,
18
18
  S as CopyToClipboard,
19
- k as CoreSdkProvider,
20
- I as Dropdown,
19
+ I as CoreSdkProvider,
20
+ k as Dropdown,
21
21
  T as DropdownDivider,
22
22
  D as DropdownItem,
23
23
  R as DropdownSearch,
24
24
  y as EmptyState,
25
25
  h as ErrorBoundary,
26
26
  C as GTMProvider,
27
- A as GenericPageNotFound,
28
- H as Grid,
29
- P as Hint,
27
+ P as GenericPageNotFound,
28
+ A as Grid,
29
+ H as Hint,
30
30
  F as HomePageLayout,
31
31
  v as HookedCodeEditor,
32
32
  f as HookedForm,
33
33
  B as HookedInput,
34
- O as HookedInputCheckbox,
35
- E as HookedInputCheckboxGroup,
36
- L as HookedInputCurrency,
34
+ L as HookedInputCheckbox,
35
+ O as HookedInputCheckboxGroup,
36
+ E as HookedInputCurrency,
37
37
  N as HookedInputDate,
38
38
  G as HookedInputDateRange,
39
39
  M as HookedInputRadioGroup,
@@ -43,154 +43,160 @@ export {
43
43
  W as HookedInputSpinner,
44
44
  J as HookedInputSwitch,
45
45
  U as HookedInputTextArea,
46
- Y as HookedInputToggleButton,
47
- j as HookedMarketWithCurrencySelector,
48
- q as HookedValidationApiError,
46
+ q as HookedInputToggleButton,
47
+ Y as HookedMarketWithCurrencySelector,
48
+ j as HookedValidationApiError,
49
49
  z as HookedValidationError,
50
50
  K as Hr,
51
- Q as Icon,
52
- X as Input,
53
- Z as InputCheckbox,
54
- _ as InputCheckboxGroup,
55
- $ as InputCurrency,
56
- aa as InputCurrencyRange,
57
- ea as InputDate,
58
- sa as InputDateRange,
59
- ta as InputFeedback,
60
- oa as InputFile,
61
- ra as InputJson,
62
- na as InputRadioGroup,
63
- ua as InputResourceGroup,
64
- ia as InputSelect,
65
- ca as InputSimpleSelect,
66
- da as InputSpinner,
67
- la as InputSwitch,
68
- pa as InputTextArea,
69
- ba as InputToggleButton,
70
- ga as Label,
71
- ma as Legend,
72
- Sa as List,
51
+ Q as I18NProvider,
52
+ X as Icon,
53
+ Z as Input,
54
+ _ as InputCheckbox,
55
+ $ as InputCheckboxGroup,
56
+ aa as InputCurrency,
57
+ ea as InputCurrencyRange,
58
+ sa as InputDate,
59
+ ta as InputDateRange,
60
+ oa as InputFeedback,
61
+ ra as InputFile,
62
+ na as InputJson,
63
+ ua as InputRadioGroup,
64
+ ia as InputResourceGroup,
65
+ ca as InputSelect,
66
+ da as InputSimpleSelect,
67
+ la as InputSpinner,
68
+ pa as InputSwitch,
69
+ ba as InputTextArea,
70
+ ga as InputToggleButton,
71
+ ma as Label,
72
+ Sa as Legend,
73
+ Ia as List,
73
74
  ka as ListDetails,
74
- Ia as ListDetailsItem,
75
- Ta as ListItem,
76
- Da as MetaTags,
77
- Ra as PageError,
78
- ya as PageHeading,
79
- ha as PageLayout,
80
- Ca as PageSkeleton,
81
- Aa as Pagination,
82
- Ha as Progress,
83
- Pa as RadialProgress,
84
- Fa as RemoveButton,
85
- va as Report,
86
- fa as ResourceAddress,
87
- Ba as ResourceAddressFormFields,
88
- Oa as ResourceDetails,
89
- Ea as ResourceLineItems,
90
- La as ResourceListItem,
91
- Na as ResourceMetadata,
92
- Ga as ResourceOrderTimeline,
93
- Ma as ResourcePaymentMethod,
94
- wa as ResourceShipmentParcels,
95
- xa as ResourceTags,
96
- Va as Routes,
97
- Wa as ScrollToTop,
98
- Ja as SearchBar,
99
- Ua as Section,
100
- Ya as Skeleton,
101
- ja as SkeletonItem,
102
- qa as SkeletonTemplate,
103
- za as Spacer,
104
- Ka as Stack,
105
- Qa as StatusDot,
106
- Xa as StatusIcon,
107
- Za as Steps,
108
- _a as Tab,
109
- $a as Table,
110
- ae as TableData,
111
- ee as Tabs,
112
- se as Tag,
113
- te as Td,
114
- oe as Text,
115
- re as Th,
116
- ne as Timeline,
117
- ue as TokenProvider,
118
- ie as Toolbar,
119
- ce as Tooltip,
120
- de as Tr,
121
- le as computeFullname,
122
- pe as createApp,
123
- be as createRoute,
124
- ge as createTypedRoute,
125
- me as currencies,
126
- Se as currencyInputSelectOptions,
127
- ke as downloadJsonAsFile,
128
- Ie as encodeExtras,
129
- Te as flatSelectValues,
130
- De as formatCentsToCurrency,
131
- Re as formatDate,
132
- ye as formatDateRange,
133
- he as formatDateWithPredicate,
134
- Ce as formatDisplayName,
135
- Ae as formatResourceName,
136
- He as getAvatarSrcFromRate,
137
- Pe as getCustomerDisplayStatus,
138
- Fe as getCustomerStatusName,
139
- ve as getDefaultValueFromFlatten,
140
- fe as getEventDateInfo,
141
- Be as getIsoDateAtDayEdge,
142
- Oe as getIsoDateAtDaysBefore,
143
- Ee as getOrderDisplayStatus,
144
- Le as getOrderFulfillmentStatusName,
145
- Ne as getOrderPaymentStatusName,
146
- Ge as getOrderStatusName,
147
- Me as getOrderTransactionName,
148
- we as getParcelTrackingDetail,
149
- xe as getParcelTrackingDetails,
150
- Ve as getPaymentMethodLogoSrc,
151
- We as getPromotionDisplayStatus,
152
- Je as getResourceAddressFormFieldsSchema,
153
- Ue as getResourceEndpoint,
154
- Ye as getReturnDisplayStatus,
155
- je as getReturnStatusName,
156
- qe as getShipmentDisplayStatus,
157
- ze as getShipmentRate,
158
- Ke as getShipmentRates,
159
- Qe as getShipmentStatusName,
160
- Xe as getStockTransferDisplayStatus,
161
- Ze as getStockTransferStatusName,
162
- _e as getUnitOfWeightName,
163
- $e as getUnitsOfWeightForSelect,
164
- as as goBack,
165
- es as hasBeenPurchased,
166
- ss as hasSingleTracking,
167
- ts as isAttachmentValidNote,
168
- os as isGroupedSelectValues,
169
- rs as isMultiValueSelected,
170
- ns as isSingleValueSelected,
171
- us as makeDateYearsRange,
172
- is as navigateTo,
173
- cs as referenceOrigins,
174
- ds as removeMillisecondsFromIsoDate,
175
- ls as setApiFormErrors,
176
- ps as sortAndGroupByDate,
177
- bs as timeSeparator,
178
- gs as useAppLinking,
179
- ms as useClickAway,
180
- Ss as useCoreApi,
181
- ks as useCoreSdkProvider,
182
- Is as useDelayShow,
183
- Ts as useEditMetadataOverlay,
184
- Ds as useEditTagsOverlay,
185
- Rs as useInputResourceGroupOverlay,
186
- ys as useIsChanged,
187
- hs as useOnBlurFromContainer,
188
- Cs as useOverlay,
189
- As as useResourceAddressOverlay,
190
- Hs as useResourceFilters,
191
- Ps as useResourceList,
192
- Fs as useTagManager,
193
- vs as useTokenProvider,
194
- fs as useValidationFeedback,
195
- Bs as withSkeletonTemplate
75
+ Ta as ListDetailsItem,
76
+ Da as ListItem,
77
+ Ra as LoadingPage,
78
+ ya as MetaTags,
79
+ ha as PageError,
80
+ Ca as PageHeading,
81
+ Pa as PageLayout,
82
+ Aa as PageSkeleton,
83
+ Ha as Pagination,
84
+ Fa as Progress,
85
+ va as RadialProgress,
86
+ fa as RemoveButton,
87
+ Ba as Report,
88
+ La as ResourceAddress,
89
+ Oa as ResourceAddressFormFields,
90
+ Ea as ResourceDetails,
91
+ Na as ResourceLineItems,
92
+ Ga as ResourceListItem,
93
+ Ma as ResourceMetadata,
94
+ wa as ResourceOrderTimeline,
95
+ xa as ResourcePaymentMethod,
96
+ Va as ResourceShipmentParcels,
97
+ Wa as ResourceTags,
98
+ Ja as Routes,
99
+ Ua as ScrollToTop,
100
+ qa as SearchBar,
101
+ Ya as Section,
102
+ ja as Skeleton,
103
+ za as SkeletonItem,
104
+ Ka as SkeletonTemplate,
105
+ Qa as Spacer,
106
+ Xa as Stack,
107
+ Za as StatusDot,
108
+ _a as StatusIcon,
109
+ $a as Steps,
110
+ ae as Tab,
111
+ ee as Table,
112
+ se as TableData,
113
+ te as Tabs,
114
+ oe as Tag,
115
+ re as Td,
116
+ ne as Text,
117
+ ue as Th,
118
+ ie as Timeline,
119
+ ce as TokenProvider,
120
+ de as Toolbar,
121
+ le as Tooltip,
122
+ pe as Tr,
123
+ be as Trans,
124
+ ge as computeFullname,
125
+ me as createApp,
126
+ Se as createRoute,
127
+ Ie as createTypedRoute,
128
+ ke as currencies,
129
+ Te as currencyInputSelectOptions,
130
+ De as downloadJsonAsFile,
131
+ Re as encodeExtras,
132
+ ye as flatSelectValues,
133
+ he as formatCentsToCurrency,
134
+ Ce as formatDate,
135
+ Pe as formatDateRange,
136
+ Ae as formatDateWithPredicate,
137
+ He as formatDisplayName,
138
+ Fe as formatResourceName,
139
+ ve as getAvatarSrcFromRate,
140
+ fe as getCustomerDisplayStatus,
141
+ Be as getCustomerStatusName,
142
+ Le as getDefaultValueFromFlatten,
143
+ Oe as getEventDateInfo,
144
+ Ee as getIsoDateAtDayEdge,
145
+ Ne as getIsoDateAtDaysBefore,
146
+ Ge as getOrderDisplayStatus,
147
+ Me as getOrderFulfillmentStatusName,
148
+ we as getOrderPaymentStatusName,
149
+ xe as getOrderStatusName,
150
+ Ve as getOrderTransactionName,
151
+ We as getParcelTrackingDetail,
152
+ Je as getParcelTrackingDetails,
153
+ Ue as getPaymentMethodLogoSrc,
154
+ qe as getPromotionDisplayStatus,
155
+ Ye as getResourceAddressFormFieldsSchema,
156
+ je as getResourceEndpoint,
157
+ ze as getReturnDisplayStatus,
158
+ Ke as getReturnStatusName,
159
+ Qe as getShipmentDisplayStatus,
160
+ Xe as getShipmentRate,
161
+ Ze as getShipmentRates,
162
+ _e as getShipmentStatusName,
163
+ $e as getStockTransferDisplayStatus,
164
+ as as getStockTransferStatusName,
165
+ es as getUnitOfWeightName,
166
+ ss as getUnitsOfWeightForSelect,
167
+ ts as goBack,
168
+ os as hasBeenPurchased,
169
+ rs as hasSingleTracking,
170
+ ns as i18nLocales,
171
+ us as isAttachmentValidNote,
172
+ is as isGroupedSelectValues,
173
+ cs as isMultiValueSelected,
174
+ ds as isSingleValueSelected,
175
+ ls as makeDateYearsRange,
176
+ ps as navigateTo,
177
+ bs as referenceOrigins,
178
+ gs as removeMillisecondsFromIsoDate,
179
+ ms as setApiFormErrors,
180
+ Ss as sortAndGroupByDate,
181
+ Is as t,
182
+ ks as timeSeparator,
183
+ Ts as useAppLinking,
184
+ Ds as useClickAway,
185
+ Rs as useCoreApi,
186
+ ys as useCoreSdkProvider,
187
+ hs as useDelayShow,
188
+ Cs as useEditMetadataOverlay,
189
+ Ps as useEditTagsOverlay,
190
+ As as useInputResourceGroupOverlay,
191
+ Hs as useIsChanged,
192
+ Fs as useOnBlurFromContainer,
193
+ vs as useOverlay,
194
+ fs as useResourceAddressOverlay,
195
+ Bs as useResourceFilters,
196
+ Ls as useResourceList,
197
+ Os as useTagManager,
198
+ Es as useTokenProvider,
199
+ Ns as useTranslation,
200
+ Gs as useValidationFeedback,
201
+ Ms as withSkeletonTemplate
196
202
  };
@@ -0,0 +1,23 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { default as en } from '../locales/en';
3
+ export { t } from 'i18next';
4
+ export { Trans, useTranslation } from 'react-i18next';
5
+ export declare const i18nLocales: readonly ["en-US", "it-IT"];
6
+ export type I18NLocale = (typeof i18nLocales)[number];
7
+ declare module 'i18next' {
8
+ interface CustomTypeOptions {
9
+ defaultNS: 'translation';
10
+ resources: {
11
+ translation: typeof en;
12
+ };
13
+ }
14
+ }
15
+ interface I18NProviderProps {
16
+ /** Optional locale to use for i18n translations that will override the locale set in the user's token. */
17
+ enforcedLocaleCode?: I18NLocale;
18
+ /**
19
+ * The children to render.
20
+ */
21
+ children: ReactNode;
22
+ }
23
+ export declare const I18NProvider: React.FC<I18NProviderProps>;
@@ -125,6 +125,7 @@ export interface TokenProviderAuthUser {
125
125
  displayName: string;
126
126
  fullName: string;
127
127
  timezone: string;
128
+ locale: 'en-US' | 'it-IT';
128
129
  }
129
130
  export interface TokenProviderExtras {
130
131
  /** List of sales channel to be used inside the app. */
@@ -39,7 +39,7 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
39
39
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
40
40
  autoFocus?: boolean | undefined | undefined;
41
41
  className?: string | undefined | undefined;
42
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
42
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
43
43
  contextMenu?: string | undefined | undefined;
44
44
  dir?: string | undefined | undefined;
45
45
  draggable?: (boolean | "true" | "false") | undefined;
@@ -80,6 +80,7 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
80
80
  unselectable?: "on" | "off" | undefined | undefined;
81
81
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
82
82
  is?: string | undefined | undefined;
83
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
83
84
  'data-tooltip-id'?: string | undefined;
84
85
  'data-tooltip-place'?: import('react-tooltip').PlacesType | undefined;
85
86
  'data-tooltip-content'?: string | null | undefined;
@@ -147,7 +148,6 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
147
148
  "aria-valuemin"?: number | undefined | undefined;
148
149
  "aria-valuenow"?: number | undefined | undefined;
149
150
  "aria-valuetext"?: string | undefined | undefined;
150
- children?: import('react').ReactNode;
151
151
  dangerouslySetInnerHTML?: {
152
152
  __html: string | TrustedHTML;
153
153
  } | undefined | undefined;
@@ -332,7 +332,7 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
332
332
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
333
333
  autoFocus?: boolean | undefined | undefined;
334
334
  className?: string | undefined | undefined;
335
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
335
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
336
336
  contextMenu?: string | undefined | undefined;
337
337
  dir?: string | undefined | undefined;
338
338
  draggable?: (boolean | "true" | "false") | undefined;
@@ -373,6 +373,7 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
373
373
  unselectable?: "on" | "off" | undefined | undefined;
374
374
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
375
375
  is?: string | undefined | undefined;
376
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
376
377
  'data-tooltip-id'?: string | undefined;
377
378
  'data-tooltip-place'?: import('react-tooltip').PlacesType | undefined;
378
379
  'data-tooltip-content'?: string | null | undefined;
@@ -440,7 +441,6 @@ export declare const Card: import('./SkeletonTemplate').SkeletonTemplateComponen
440
441
  "aria-valuemin"?: number | undefined | undefined;
441
442
  "aria-valuenow"?: number | undefined | undefined;
442
443
  "aria-valuetext"?: string | undefined | undefined;
443
- children?: import('react').ReactNode;
444
444
  dangerouslySetInnerHTML?: {
445
445
  __html: string | TrustedHTML;
446
446
  } | undefined | undefined;
@@ -27,7 +27,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
27
27
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
28
28
  autoFocus?: boolean | undefined | undefined;
29
29
  className?: string | undefined | undefined;
30
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
30
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
31
31
  contextMenu?: string | undefined | undefined;
32
32
  dir?: string | undefined | undefined;
33
33
  draggable?: (boolean | "true" | "false") | undefined;
@@ -68,6 +68,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
68
68
  unselectable?: "on" | "off" | undefined | undefined;
69
69
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
70
70
  is?: string | undefined | undefined;
71
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
71
72
  'data-tooltip-id'?: string | undefined;
72
73
  'data-tooltip-place'?: import('react-tooltip').PlacesType | undefined;
73
74
  'data-tooltip-content'?: string | null | undefined;
@@ -135,7 +136,6 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
135
136
  "aria-valuemin"?: number | undefined | undefined;
136
137
  "aria-valuenow"?: number | undefined | undefined;
137
138
  "aria-valuetext"?: string | undefined | undefined;
138
- children?: import('react').ReactNode;
139
139
  dangerouslySetInnerHTML?: {
140
140
  __html: string | TrustedHTML;
141
141
  } | undefined | undefined;
@@ -315,7 +315,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
315
315
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
316
316
  autoFocus?: boolean | undefined | undefined;
317
317
  className?: string | undefined | undefined;
318
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
318
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
319
319
  contextMenu?: string | undefined | undefined;
320
320
  dir?: string | undefined | undefined;
321
321
  draggable?: (boolean | "true" | "false") | undefined;
@@ -356,6 +356,7 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
356
356
  unselectable?: "on" | "off" | undefined | undefined;
357
357
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
358
358
  is?: string | undefined | undefined;
359
+ children?: import('react').ReactNode | Iterable<import('react').ReactNode>;
359
360
  'data-tooltip-id'?: string | undefined;
360
361
  'data-tooltip-place'?: import('react-tooltip').PlacesType | undefined;
361
362
  'data-tooltip-content'?: string | null | undefined;
@@ -423,7 +424,6 @@ export declare const DropdownItem: import('../../atoms/SkeletonTemplate').Skelet
423
424
  "aria-valuemin"?: number | undefined | undefined;
424
425
  "aria-valuenow"?: number | undefined | undefined;
425
426
  "aria-valuetext"?: string | undefined | undefined;
426
- children?: import('react').ReactNode;
427
427
  dangerouslySetInnerHTML?: {
428
428
  __html: string | TrustedHTML;
429
429
  } | undefined | undefined;
@@ -46,6 +46,9 @@ export declare function Routes<T extends Record<string, {
46
46
  };
47
47
  };
48
48
  }): JSX.Element;
49
+ export declare function LoadingPage({ overlay }: {
50
+ overlay?: boolean;
51
+ }): JSX.Element;
49
52
  /**
50
53
  * This component can be used as error component when the resource is not found by passing the resource type.
51
54
  * When empty it will render a generic page not found message.
@@ -1,2 +1,2 @@
1
- export { GenericPageNotFound, Routes, type PageProps } from './Routes';
1
+ export { GenericPageNotFound, LoadingPage, Routes, type PageProps } from './Routes';
2
2
  export { createRoute, createTypedRoute, type GetParams, type Route } from './utils';
@@ -15,11 +15,11 @@ export declare const getResourceAddressFormFieldsSchema: ({ requiresBillingInfo
15
15
  billing_info: z.ZodString | z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- city: string;
19
- country_code: string;
20
18
  business: boolean | null;
21
19
  line_1: string;
20
+ city: string;
22
21
  state_code: string;
22
+ country_code: string;
23
23
  phone: string;
24
24
  first_name?: string | null | undefined;
25
25
  last_name?: string | null | undefined;
@@ -29,10 +29,10 @@ export declare const getResourceAddressFormFieldsSchema: ({ requiresBillingInfo
29
29
  notes?: string | null | undefined;
30
30
  billing_info?: string | null | undefined;
31
31
  }, {
32
- city: string;
33
- country_code: string;
34
32
  line_1: string;
33
+ city: string;
35
34
  state_code: string;
35
+ country_code: string;
36
36
  phone: string;
37
37
  business?: boolean | null | undefined;
38
38
  first_name?: string | null | undefined;
@@ -43,11 +43,11 @@ export declare const getResourceAddressFormFieldsSchema: ({ requiresBillingInfo
43
43
  notes?: string | null | undefined;
44
44
  billing_info?: string | null | undefined;
45
45
  }>, {
46
- city: string;
47
- country_code: string;
48
46
  business: boolean | null;
49
47
  line_1: string;
48
+ city: string;
50
49
  state_code: string;
50
+ country_code: string;
51
51
  phone: string;
52
52
  first_name?: string | null | undefined;
53
53
  last_name?: string | null | undefined;
@@ -57,10 +57,10 @@ export declare const getResourceAddressFormFieldsSchema: ({ requiresBillingInfo
57
57
  notes?: string | null | undefined;
58
58
  billing_info?: string | null | undefined;
59
59
  }, {
60
- city: string;
61
- country_code: string;
62
60
  line_1: string;
61
+ city: string;
63
62
  state_code: string;
63
+ country_code: string;
64
64
  phone: string;
65
65
  business?: boolean | null | undefined;
66
66
  first_name?: string | null | undefined;
@@ -1,6 +1,7 @@
1
1
  import { TokenProviderAuthUser } from '../../../providers/TokenProvider/types';
2
2
  import { ListItemProps } from '../../composite/ListItem';
3
3
  import { BuyXPayYPromotion, Customer, ExternalPromotion, FixedAmountPromotion, FixedPricePromotion, FlexPromotion, FreeGiftPromotion, FreeShippingPromotion, Order, PercentageDiscountPromotion, Return, Shipment, SkuListItem, StockTransfer } from '@commercelayer/sdk';
4
+ import { t } from 'i18next';
4
5
  export type ResourceListItemType = Order | Return | Customer | StockTransfer | SkuListItem | Shipment | BuyXPayYPromotion | ExternalPromotion | FixedAmountPromotion | FixedPricePromotion | FreeGiftPromotion | FreeShippingPromotion | PercentageDiscountPromotion | FlexPromotion;
5
6
  export interface ResourceListItemComponentProps {
6
7
  name: React.ReactNode;
@@ -13,4 +14,5 @@ export interface ResourceListItemComponentProps {
13
14
  export type ResourceToProps<Resource> = (options: {
14
15
  resource: Resource;
15
16
  user: TokenProviderAuthUser | null;
17
+ t: typeof t;
16
18
  }) => ResourceListItemComponentProps;