@commercelayer/app-elements 1.23.3 → 1.24.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
@@ -16,10 +16,10 @@ export { useIsChanged } from './hooks/useIsChanged';
16
16
  export { useOnBlurFromContainer } from './hooks/useOnBlurFromContainer';
17
17
  export { useOverlay } from './hooks/useOverlay';
18
18
  export { CoreSdkProvider, useCoreApi, useCoreSdkProvider } from './providers/CoreSdkProvider';
19
+ export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp';
19
20
  export { ErrorBoundary } from './providers/ErrorBoundary';
20
21
  export { GTMProvider, useTagManager } from './providers/GTMProvider';
21
22
  export { MetaTags, TokenProvider, useTokenProvider, type TokenProviderAllowedApp, type TokenProviderPermissionItem, type TokenProviderRoleActions, type TokenProviderRolePermissions, type TokenProviderTokenApplicationKind } from './providers/TokenProvider';
22
- export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp';
23
23
  export { A, type AProps } from './ui/atoms/A';
24
24
  export { Alert, type AlertProps } from './ui/atoms/Alert';
25
25
  export { Avatar, type AvatarProps } from './ui/atoms/Avatar';
@@ -65,7 +65,7 @@ export { ListDetailsItem, type ListDetailsItemProps } from './ui/composite/ListD
65
65
  export { ListItem, type ListItemProps } from './ui/composite/ListItem';
66
66
  export { PageError, type PageErrorProps } from './ui/composite/PageError';
67
67
  export { PageLayout, type PageLayoutProps } from './ui/composite/PageLayout';
68
- export { PageSkeleton, type PageSkeletonProps } from './ui/composite/PageSkeleton';
68
+ export { PageSkeleton } from './ui/composite/PageSkeleton';
69
69
  export { Report, type ReportProps } from './ui/composite/Report';
70
70
  export { SearchBar, type SearchBarProps } from './ui/composite/SearchBar';
71
71
  export { TableData, type TableDataProps } from './ui/composite/TableData';
@@ -94,7 +94,7 @@ export { HookedInputToggleButton, InputToggleButton, type HookedInputToggleButto
94
94
  export { Label, type LabelProps } from './ui/forms/Label';
95
95
  export { Legend, type LegendProps } from './ui/forms/Legend';
96
96
  export { HookedValidationApiError, HookedValidationError, setApiFormErrors, useValidationFeedback } from './ui/forms/ReactHookForm';
97
- export { ResourceAddress, type ResourceAddressProps } from './ui/resources/ResourceAddress';
97
+ export { ResourceAddress, ResourceAddressFormFields, resourceAddressFormFieldsSchema, useResourceAddressOverlay, type ResourceAddressFormFieldsProps, type ResourceAddressProps } from './ui/resources/ResourceAddress';
98
98
  export { ResourceLineItems, type ResourceLineItemsProps } from './ui/resources/ResourceLineItems';
99
99
  export { ResourceList, type ResourceListProps } from './ui/resources/ResourceList';
100
100
  export { ResourceListItem, type ResourceListItemProps } from './ui/resources/ResourceListItem';
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { a5 as s, aK as t, a6 as o, a7 as r, a8 as n, a9 as u, aa as i, ab as l, ac as p, ad as b, aL as c, ae as d, af as g, W as S, aM as m, aN as I, aO as k, aP as T, ag as D, _ as R, $ as y, ah as h, ai as C, aQ as H, b1 as P, b2 as A, b4 as f, b6 as F, b8 as v, bc as B, be as L, bj as N, bm as O, bo as G, bv as w, bx as E, bz as V, bB as x, bD as M, bH as W, bI as J, aj as U, ak as Y, b3 as q, b5 as z, b7 as K, b9 as Q, bb as Z, bd as _, bf as $, bg as j, bh as X, bi as aa, bk as ea, bl as sa, bn as ta, bp as oa, bw as ra, by as na, bA as ua, bC as ia, bE as la, bF as pa, bG as ba, aR as ca, aS as da, aT as ga, aU as Sa, a1 as ma, aV as Ia, al as ka, aW as Ta, aX as Da, am as Ra, an as ya, ao as ha, ap as Ca, aY as Ha, bL as Pa, bM as Aa, bN as fa, bO as Fa, bP as va, bQ as Ba, bR as La, bS as Na, aq as Oa, aZ as Ga, ar as wa, as as Ea, at as Va, au as xa, aw as Ma, ax as Wa, ay as Ja, az as Ua, aA as Ya, aF as qa, aB as za, a_ as Ka, aG as Qa, aH as Za, aC as _a, aI as $a, aD as ja, a$ as Xa, a2 as ae, b0 as ee, aJ as se, aE as te, B as oe, a4 as re, E as ne, F as ue, k as ie, A as le, bq as pe, ba as be, l as ce, m as de, q as ge, C as Se, D as me, G as Ie, bU as ke, bV as Te, br as De, s as Re, t as ye, u as he, v as Ce, bW as He, bX as Pe, bY as Ae, bZ as fe, b_ as Fe, H as ve, J as Be, b$ as Le, c0 as Ne, c1 as Oe, c2 as Ge, K as we, L as Ee, c3 as Ve, c4 as xe, c5 as Me, O as We, P as Je, e as Ue, M as Ye, N as qe, h as ze, bs as Ke, bt as Qe, bu as Ze, n as _e, r as $e, x as je, bJ as Xe, y as as, z as es, Q as ss, Y as ts, Z as os, R as rs, S as ns, T as us, U as is, V as ls, bT as ps, a0 as bs, a3 as cs, bK as ds, av as gs } from "./main-B_1fTaUS.js";
2
+ import { aD as s, bg as t, aE as o, aF as r, aG as n, aH as u, aI as c, aJ as i, aK as l, aL as p, bh as d, aM as b, aN as g, at as m, bi as S, bj as I, bk as k, bl as T, aO as D, ax as R, ay as y, aP as h, aQ as A, bm as C, bz as F, bA as H, bC as P, bE as f, bG as v, bK as B, bM as L, bR as O, bU as N, bW as w, c1 as G, c3 as E, c5 as V, c7 as x, c9 as M, cd as W, ce as U, aR as J, aS as Y, bB as j, bD as q, bF as z, bH as Z, bJ as _, bL as $, bN as K, bO as Q, bP as X, bQ as aa, bS as ea, bT as sa, bV as ta, bX as oa, c2 as ra, c4 as na, c6 as ua, c8 as ca, ca as ia, cb as la, cc as pa, bn as da, bo as ba, bp as ga, bq as ma, aA as Sa, br as Ia, aT as ka, bs as Ta, bt as Da, aU as Ra, aV as ya, aW as ha, aX as Aa, bu as Ca, ch as Fa, ci as Ha, cl as Pa, cm as fa, cn as va, co as Ba, cp as La, cq as Oa, cr as Na, aY as wa, bv as Ga, aZ as Ea, a_ as Va, a$ as xa, b0 as Ma, b2 as Wa, b3 as Ua, b4 as Ja, b5 as Ya, b6 as ja, bb as qa, b7 as za, bw as Za, bc as _a, bd as $a, b8 as Ka, be as Qa, b9 as Xa, bx as ae, aB as ee, by as se, bf as te, ba as oe, a9 as re, aw as ne, ac as ue, ad as ce, Z as ie, a8 as le, bY as pe, bI as de, _ as be, $ as ge, a0 as me, aa as Se, ab as Ie, ae as ke, ct as Te, cu as De, bZ as Re, a1 as ye, a2 as he, a3 as Ae, a4 as Ce, cv as Fe, cw as He, cx as Pe, cy as fe, cz as ve, af as Be, ag as Le, cA as Oe, cB as Ne, cC as we, cD as Ge, ah as Ee, ai as Ve, cE as xe, cF as Me, cG as We, al as Ue, am as Je, U as Ye, aj as je, ak as qe, W as ze, b_ as Ze, b$ as _e, c0 as $e, V as Ke, Y as Qe, a5 as Xe, cj as as, cf as es, a6 as ss, a7 as ts, an as os, au as rs, av as ns, ao as us, ap as cs, aq as is, ar as ls, as as ps, ck as ds, cs as bs, az as gs, aC as ms, cg as Ss, b1 as Is } from "./main-BPlS7o1x.js";
3
3
  export {
4
4
  s as A,
5
5
  t as ActionButtons,
@@ -7,15 +7,15 @@ export {
7
7
  r as Avatar,
8
8
  n as AvatarLetter,
9
9
  u as Badge,
10
- i as Button,
11
- l as ButtonFilter,
12
- p as ButtonImageSelect,
13
- b as Card,
14
- c as CardDialog,
15
- d as Container,
10
+ c as Button,
11
+ i as ButtonFilter,
12
+ l as ButtonImageSelect,
13
+ p as Card,
14
+ d as CardDialog,
15
+ b as Container,
16
16
  g as CopyToClipboard,
17
- S as CoreSdkProvider,
18
- m as Dropdown,
17
+ m as CoreSdkProvider,
18
+ S as Dropdown,
19
19
  I as DropdownDivider,
20
20
  k as DropdownItem,
21
21
  T as DropdownSearch,
@@ -23,35 +23,35 @@ export {
23
23
  R as ErrorBoundary,
24
24
  y as GTMProvider,
25
25
  h as Grid,
26
- C as Hint,
27
- H as HomePageLayout,
28
- P as HookedForm,
29
- A as HookedInput,
30
- f as HookedInputCheckbox,
31
- F as HookedInputCheckboxGroup,
26
+ A as Hint,
27
+ C as HomePageLayout,
28
+ F as HookedForm,
29
+ H as HookedInput,
30
+ P as HookedInputCheckbox,
31
+ f as HookedInputCheckboxGroup,
32
32
  v as HookedInputCurrency,
33
33
  B as HookedInputDate,
34
34
  L as HookedInputDateRange,
35
- N as HookedInputRadioGroup,
36
- O as HookedInputResourceGroup,
37
- G as HookedInputSelect,
38
- w as HookedInputSimpleSelect,
35
+ O as HookedInputRadioGroup,
36
+ N as HookedInputResourceGroup,
37
+ w as HookedInputSelect,
38
+ G as HookedInputSimpleSelect,
39
39
  E as HookedInputSpinner,
40
40
  V as HookedInputSwitch,
41
41
  x as HookedInputTextArea,
42
42
  M as HookedInputToggleButton,
43
43
  W as HookedValidationApiError,
44
- J as HookedValidationError,
45
- U as Hr,
44
+ U as HookedValidationError,
45
+ J as Hr,
46
46
  Y as Icon,
47
- q as Input,
48
- z as InputCheckbox,
49
- K as InputCheckboxGroup,
50
- Q as InputCurrency,
51
- Z as InputCurrencyRange,
52
- _ as InputDate,
53
- $ as InputDateRange,
54
- j as InputFeedback,
47
+ j as Input,
48
+ q as InputCheckbox,
49
+ z as InputCheckboxGroup,
50
+ Z as InputCurrency,
51
+ _ as InputCurrencyRange,
52
+ $ as InputDate,
53
+ K as InputDateRange,
54
+ Q as InputFeedback,
55
55
  X as InputFile,
56
56
  aa as InputJson,
57
57
  ea as InputRadioGroup,
@@ -61,15 +61,15 @@ export {
61
61
  ra as InputSimpleSelect,
62
62
  na as InputSpinner,
63
63
  ua as InputSwitch,
64
- ia as InputTextArea,
65
- la as InputToggleButton,
66
- pa as Label,
67
- ba as Legend,
68
- ca as List,
69
- da as ListDetails,
64
+ ca as InputTextArea,
65
+ ia as InputToggleButton,
66
+ la as Label,
67
+ pa as Legend,
68
+ da as List,
69
+ ba as ListDetails,
70
70
  ga as ListDetailsItem,
71
- Sa as ListItem,
72
- ma as MetaTags,
71
+ ma as ListItem,
72
+ Sa as MetaTags,
73
73
  Ia as PageError,
74
74
  ka as PageHeading,
75
75
  Ta as PageLayout,
@@ -77,103 +77,106 @@ export {
77
77
  Ra as Pagination,
78
78
  ya as Progress,
79
79
  ha as RadialProgress,
80
- Ca as RemoveButton,
81
- Ha as Report,
82
- Pa as ResourceAddress,
83
- Aa as ResourceLineItems,
80
+ Aa as RemoveButton,
81
+ Ca as Report,
82
+ Fa as ResourceAddress,
83
+ Ha as ResourceAddressFormFields,
84
+ Pa as ResourceLineItems,
84
85
  fa as ResourceList,
85
- Fa as ResourceListItem,
86
- va as ResourceMetadata,
87
- Ba as ResourceOrderTimeline,
88
- La as ResourceShipmentParcels,
86
+ va as ResourceListItem,
87
+ Ba as ResourceMetadata,
88
+ La as ResourceOrderTimeline,
89
+ Oa as ResourceShipmentParcels,
89
90
  Na as ResourceTags,
90
- Oa as ScrollToTop,
91
+ wa as ScrollToTop,
91
92
  Ga as SearchBar,
92
- wa as Section,
93
- Ea as Skeleton,
94
- Va as SkeletonItem,
95
- xa as SkeletonTemplate,
96
- Ma as Spacer,
97
- Wa as Stack,
93
+ Ea as Section,
94
+ Va as Skeleton,
95
+ xa as SkeletonItem,
96
+ Ma as SkeletonTemplate,
97
+ Wa as Spacer,
98
+ Ua as Stack,
98
99
  Ja as StatusDot,
99
- Ua as StatusIcon,
100
- Ya as Steps,
100
+ Ya as StatusIcon,
101
+ ja as Steps,
101
102
  qa as Tab,
102
103
  za as Table,
103
- Ka as TableData,
104
- Qa as Tabs,
105
- Za as Tag,
106
- _a as Td,
107
- $a as Text,
108
- ja as Th,
109
- Xa as Timeline,
110
- ae as TokenProvider,
111
- ee as Toolbar,
112
- se as Tooltip,
113
- te as Tr,
114
- oe as computeFullname,
115
- re as createApp,
116
- ne as createRoute,
117
- ue as createTypedRoute,
104
+ Za as TableData,
105
+ _a as Tabs,
106
+ $a as Tag,
107
+ Ka as Td,
108
+ Qa as Text,
109
+ Xa as Th,
110
+ ae as Timeline,
111
+ ee as TokenProvider,
112
+ se as Toolbar,
113
+ te as Tooltip,
114
+ oe as Tr,
115
+ re as computeFullname,
116
+ ne as createApp,
117
+ ue as createRoute,
118
+ ce as createTypedRoute,
118
119
  ie as currencies,
119
120
  le as downloadJsonAsFile,
120
121
  pe as flatSelectValues,
121
- be as formatCentsToCurrency,
122
- ce as formatDate,
123
- de as formatDateRange,
124
- ge as formatDateWithPredicate,
122
+ de as formatCentsToCurrency,
123
+ be as formatDate,
124
+ ge as formatDateRange,
125
+ me as formatDateWithPredicate,
125
126
  Se as formatDisplayName,
126
- me as formatResourceName,
127
- Ie as getAvatarSrcFromRate,
128
- ke as getCustomerDisplayStatus,
129
- Te as getCustomerStatusName,
130
- De as getDefaultValueFromFlatten,
131
- Re as getEventDateInfo,
132
- ye as getIsoDateAtDayEdge,
133
- he as getIsoDateAtDaysBefore,
127
+ Ie as formatResourceName,
128
+ ke as getAvatarSrcFromRate,
129
+ Te as getCustomerDisplayStatus,
130
+ De as getCustomerStatusName,
131
+ Re as getDefaultValueFromFlatten,
132
+ ye as getEventDateInfo,
133
+ he as getIsoDateAtDayEdge,
134
+ Ae as getIsoDateAtDaysBefore,
134
135
  Ce as getLastYearIsoRange,
135
- He as getOrderDisplayStatus,
136
- Pe as getOrderFulfillmentStatusName,
137
- Ae as getOrderPaymentStatusName,
136
+ Fe as getOrderDisplayStatus,
137
+ He as getOrderFulfillmentStatusName,
138
+ Pe as getOrderPaymentStatusName,
138
139
  fe as getOrderStatusName,
139
- Fe as getOrderTransactionName,
140
- ve as getParcelTrackingDetail,
141
- Be as getParcelTrackingDetails,
142
- Le as getPromotionDisplayStatus,
140
+ ve as getOrderTransactionName,
141
+ Be as getParcelTrackingDetail,
142
+ Le as getParcelTrackingDetails,
143
+ Oe as getPromotionDisplayStatus,
143
144
  Ne as getReturnDisplayStatus,
144
- Oe as getReturnStatusName,
145
+ we as getReturnStatusName,
145
146
  Ge as getShipmentDisplayStatus,
146
- we as getShipmentRate,
147
- Ee as getShipmentRates,
148
- Ve as getShipmentStatusName,
149
- xe as getStockTransferDisplayStatus,
150
- Me as getStockTransferStatusName,
151
- We as getUnitOfWeightName,
147
+ Ee as getShipmentRate,
148
+ Ve as getShipmentRates,
149
+ xe as getShipmentStatusName,
150
+ Me as getStockTransferDisplayStatus,
151
+ We as getStockTransferStatusName,
152
+ Ue as getUnitOfWeightName,
152
153
  Je as getUnitsOfWeightForSelect,
153
- Ue as goBack,
154
- Ye as hasBeenPurchased,
154
+ Ye as goBack,
155
+ je as hasBeenPurchased,
155
156
  qe as hasSingleTracking,
156
157
  ze as isAttachmentValidNote,
157
- Ke as isGroupedSelectValues,
158
- Qe as isMultiValueSelected,
159
- Ze as isSingleValueSelected,
160
- _e as navigateTo,
161
- $e as referenceOrigins,
162
- je as removeMillisecondsFromIsoDate,
163
- Xe as setApiFormErrors,
164
- as as sortAndGroupByDate,
165
- es as timeSeparator,
166
- ss as useClickAway,
167
- ts as useCoreApi,
168
- os as useCoreSdkProvider,
169
- rs as useDelayShow,
170
- ns as useEditMetadataOverlay,
171
- us as useIsChanged,
172
- is as useOnBlurFromContainer,
173
- ls as useOverlay,
174
- ps as useResourceFilters,
175
- bs as useTagManager,
176
- cs as useTokenProvider,
177
- ds as useValidationFeedback,
178
- gs as withSkeletonTemplate
158
+ Ze as isGroupedSelectValues,
159
+ _e as isMultiValueSelected,
160
+ $e as isSingleValueSelected,
161
+ Ke as navigateTo,
162
+ Qe as referenceOrigins,
163
+ Xe as removeMillisecondsFromIsoDate,
164
+ as as resourceAddressFormFieldsSchema,
165
+ es as setApiFormErrors,
166
+ ss as sortAndGroupByDate,
167
+ ts as timeSeparator,
168
+ os as useClickAway,
169
+ rs as useCoreApi,
170
+ ns as useCoreSdkProvider,
171
+ us as useDelayShow,
172
+ cs as useEditMetadataOverlay,
173
+ is as useIsChanged,
174
+ ls as useOnBlurFromContainer,
175
+ ps as useOverlay,
176
+ ds as useResourceAddressOverlay,
177
+ bs as useResourceFilters,
178
+ gs as useTagManager,
179
+ ms as useTokenProvider,
180
+ Ss as useValidationFeedback,
181
+ Is as withSkeletonTemplate
179
182
  };
@@ -1 +1 @@
1
- export declare const server: import('msw/lib/node').SetupServerApi;
1
+ export declare const server: import('msw/node').SetupServerApi;
@@ -54,6 +54,7 @@ export interface TokenProviderProps {
54
54
  }) => void;
55
55
  /**
56
56
  * The UI element to be used as loader (e.g. skeleton or spinner icon).
57
+ * This element is ignored when app is running within the dashboard, since it will use the standard PageSkeleton ad not-overridable ui loader.
57
58
  */
58
59
  loadingElement?: ReactNode;
59
60
  /**