@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/{CodeEditorComponent-NikfTdOf.js → CodeEditorComponent-CkAwWElf.js} +1 -1
- package/dist/{InputDateComponent-DvW00SBU.js → InputDateComponent-WTGxBrbi.js} +1 -1
- package/dist/en--hqV_y40.js +633 -0
- package/dist/helpers/date.d.ts +13 -4
- package/dist/helpers/tracking.d.ts +12 -12
- package/dist/it-CcVOP-FB.js +633 -0
- package/dist/locales/en.d.ts +626 -0
- package/dist/locales/it.d.ts +3 -0
- package/dist/{main-DhEziGo0.js → main-CeZ9IAeS.js} +21625 -19117
- package/dist/main.d.ts +7 -6
- package/dist/main.js +162 -156
- package/dist/providers/I18NProvider.d.ts +23 -0
- package/dist/providers/TokenProvider/types.d.ts +1 -0
- package/dist/ui/atoms/Card.d.ts +4 -4
- package/dist/ui/composite/Dropdown/DropdownItem.d.ts +4 -4
- package/dist/ui/composite/Routes/Routes.d.ts +3 -0
- package/dist/ui/composite/Routes/index.d.ts +1 -1
- package/dist/ui/resources/ResourceAddress/ResourceAddressFormFields.d.ts +8 -8
- package/dist/ui/resources/ResourceListItem/types.d.ts +2 -0
- package/dist/ui/resources/useResourceFilters/timeUtils.d.ts +2 -1
- package/package.json +4 -1
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 {
|
|
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 {
|
|
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,
|
|
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 {
|
|
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,
|
|
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 {
|
|
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 {
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
|
52
|
-
X as
|
|
53
|
-
Z as
|
|
54
|
-
_ as
|
|
55
|
-
$ as
|
|
56
|
-
aa as
|
|
57
|
-
ea as
|
|
58
|
-
sa as
|
|
59
|
-
ta as
|
|
60
|
-
oa as
|
|
61
|
-
ra as
|
|
62
|
-
na as
|
|
63
|
-
ua as
|
|
64
|
-
ia as
|
|
65
|
-
ca as
|
|
66
|
-
da as
|
|
67
|
-
la as
|
|
68
|
-
pa as
|
|
69
|
-
ba as
|
|
70
|
-
ga as
|
|
71
|
-
ma as
|
|
72
|
-
Sa as
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Aa as
|
|
82
|
-
Ha as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Oa as
|
|
89
|
-
Ea as
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Ya as
|
|
101
|
-
ja as
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
ke as
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
Ae as
|
|
136
|
-
He as
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
Oe as
|
|
143
|
-
Ee as
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Ye as
|
|
155
|
-
je as
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
ks as
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
As as
|
|
190
|
-
Hs as
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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>;
|
package/dist/ui/atoms/Card.d.ts
CHANGED
|
@@ -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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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;
|