@commercelayer/app-elements 4.2.1 → 4.3.0

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
@@ -58,6 +58,7 @@ export { Tag, type TagProps } from './ui/atoms/Tag';
58
58
  export { Text, type TextProps } from './ui/atoms/Text';
59
59
  export { Tooltip, type TooltipProps, type TooltipRefProps } from './ui/atoms/Tooltip';
60
60
  export { ActionButtons, type ActionButtonsProps } from './ui/composite/ActionButtons';
61
+ export { Address, type AddressProps } from './ui/composite/Address';
61
62
  export { CardDialog, type CardDialogProps } from './ui/composite/CardDialog';
62
63
  export { Dropdown, DropdownDivider, DropdownItem, DropdownSearch, type DropdownDividerProps, type DropdownItemProps, type DropdownProps, type DropdownSearchProps } from './ui/composite/Dropdown';
63
64
  export { HomePageLayout, type HomePageLayoutProps } from './ui/composite/HomePageLayout';
package/dist/main.js CHANGED
@@ -1,202 +1,203 @@
1
1
  "use client";
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-Bztm6h_T.js";
2
+ import { ad as s, aT as t, aU as o, ae as r, af as n, ag as u, ah as c, ai as i, aj as d, ak as l, al as p, aV as b, am as g, bg as m, an as S, ao as I, _ as k, aW as T, aX as D, aY as R, aZ as y, ap as h, a2 as C, a3 as P, b9 as A, aq as H, ar as F, a_ as v, bh as f, bi as B, bj as L, bl as O, bn as E, bq as N, bt as G, bv as M, bA as w, bC as x, bH as V, bM as W, bO as J, bQ as U, bS as q, bU as Y, bY as j, bZ as z, b_ as K, as as Q, a6 as X, at as Z, bk as _, bm as $, bo as aa, br as ea, bs as sa, bu as ta, bw as oa, bx as ra, by as na, bz as ua, bB as ca, bD as ia, bI as da, bN as la, bP as pa, bR as ba, bT as ga, bV as ma, bW as Sa, bX as Ia, a$ as ka, b0 as Ta, b1 as Da, b2 as Ra, ba as ya, ab as ha, b3 as Ca, au as Pa, b4 as Aa, b5 as Ha, av as Fa, aw as va, ax as fa, ay as Ba, b6 as La, c2 as Oa, c3 as Ea, c5 as Na, c6 as Ga, c7 as Ma, c8 as wa, c9 as xa, cb as Va, cc as Wa, cd as Ja, bb as Ua, az as qa, bc as Ya, aA as ja, aB as za, aC as Ka, aD as Qa, aF as Xa, aG as Za, aH as _a, aI as $a, aJ as ae, aO as ee, aK as se, bd as te, aP as oe, aQ as re, aL as ne, aR as ue, aM as ce, be as ie, ac as de, bf as le, aS as pe, aN as be, a8 as ge, D as me, a1 as Se, b7 as Ie, b8 as ke, l as Te, m as De, C as Re, aa as ye, bF as he, bp as Ce, p as Pe, q as Ae, s as He, E as Fe, F as ve, H as fe, cg as Be, ch as Le, bG as Oe, t as Ee, v as Ne, x as Ge, ci as Me, cj as we, ck as xe, cl as Ve, cm as We, J as Je, K as Ue, ca as qe, cn as Ye, c1 as je, G as ze, co as Ke, cp as Qe, cq as Xe, L as Ze, M as _e, cr as $e, cs as as, ct as es, P as ss, Q as ts, h as os, N as rs, O as ns, a5 as us, k as cs, bJ as is, bK as ds, bL as ls, y as ps, n as bs, r as gs, z as ms, b$ as Ss, A as Is, a7 as ks, B as Ts, S as Ds, T as Rs, $ as ys, a0 as hs, U as Cs, V as Ps, W as As, bE as Hs, X as Fs, Y as vs, Z as fs, c4 as Bs, ce as Ls, cf as Os, a4 as Es, u as Ns, a9 as Gs, c0 as Ms, aE as ws } from "./main-BIAgds5W.js";
3
3
  export {
4
4
  s as A,
5
5
  t as ActionButtons,
6
- o as Alert,
7
- r as Avatar,
8
- n as AvatarLetter,
9
- u as Badge,
6
+ o as Address,
7
+ r as Alert,
8
+ n as Avatar,
9
+ u as AvatarLetter,
10
+ c as Badge,
10
11
  i as Button,
11
- c as ButtonFilter,
12
- d as ButtonImageSelect,
13
- l as Card,
14
- p as CardDialog,
15
- b as CodeBlock,
16
- g as CodeEditor,
17
- m as Container,
18
- S as CopyToClipboard,
19
- I as CoreSdkProvider,
20
- k as Dropdown,
21
- T as DropdownDivider,
22
- D as DropdownItem,
23
- R as DropdownSearch,
24
- y as EmptyState,
25
- h as ErrorBoundary,
26
- C as GTMProvider,
27
- P as GenericPageNotFound,
28
- A as Grid,
29
- H as Hint,
30
- F as HomePageLayout,
31
- v as HookedCodeEditor,
32
- f as HookedForm,
33
- B as HookedInput,
34
- L as HookedInputCheckbox,
35
- O as HookedInputCheckboxGroup,
36
- E as HookedInputCurrency,
37
- N as HookedInputDate,
38
- G as HookedInputDateRange,
39
- M as HookedInputRadioGroup,
40
- w as HookedInputResourceGroup,
41
- x as HookedInputSelect,
42
- V as HookedInputSimpleSelect,
43
- W as HookedInputSpinner,
44
- J as HookedInputSwitch,
45
- U as HookedInputTextArea,
46
- q as HookedInputToggleButton,
47
- Y as HookedMarketWithCurrencySelector,
48
- j as HookedValidationApiError,
49
- z as HookedValidationError,
50
- K as Hr,
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,
12
+ d as ButtonFilter,
13
+ l as ButtonImageSelect,
14
+ p as Card,
15
+ b as CardDialog,
16
+ g as CodeBlock,
17
+ m as CodeEditor,
18
+ S as Container,
19
+ I as CopyToClipboard,
20
+ k as CoreSdkProvider,
21
+ T as Dropdown,
22
+ D as DropdownDivider,
23
+ R as DropdownItem,
24
+ y as DropdownSearch,
25
+ h as EmptyState,
26
+ C as ErrorBoundary,
27
+ P as GTMProvider,
28
+ A as GenericPageNotFound,
29
+ H as Grid,
30
+ F as Hint,
31
+ v as HomePageLayout,
32
+ f as HookedCodeEditor,
33
+ B as HookedForm,
34
+ L as HookedInput,
35
+ O as HookedInputCheckbox,
36
+ E as HookedInputCheckboxGroup,
37
+ N as HookedInputCurrency,
38
+ G as HookedInputDate,
39
+ M as HookedInputDateRange,
40
+ w as HookedInputRadioGroup,
41
+ x as HookedInputResourceGroup,
42
+ V as HookedInputSelect,
43
+ W as HookedInputSimpleSelect,
44
+ J as HookedInputSpinner,
45
+ U as HookedInputSwitch,
46
+ q as HookedInputTextArea,
47
+ Y as HookedInputToggleButton,
48
+ j as HookedMarketWithCurrencySelector,
49
+ z as HookedValidationApiError,
50
+ K as HookedValidationError,
51
+ Q as Hr,
52
+ X as I18NProvider,
53
+ Z as Icon,
54
+ _ as Input,
55
+ $ as InputCheckbox,
56
+ aa as InputCheckboxGroup,
57
+ ea as InputCurrency,
58
+ sa as InputCurrencyRange,
59
+ ta as InputDate,
60
+ oa as InputDateRange,
61
+ ra as InputFeedback,
62
+ na as InputFile,
63
+ ua as InputJson,
64
+ ca as InputRadioGroup,
64
65
  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,
74
- ka as ListDetails,
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,
66
+ da as InputSelect,
67
+ la as InputSimpleSelect,
68
+ pa as InputSpinner,
69
+ ba as InputSwitch,
70
+ ga as InputTextArea,
71
+ ma as InputToggleButton,
72
+ Sa as Label,
73
+ Ia as Legend,
74
+ ka as List,
75
+ Ta as ListDetails,
76
+ Da as ListDetailsItem,
77
+ Ra as ListItem,
78
+ ya as LoadingPage,
79
+ ha as MetaTags,
80
+ Ca as PageError,
81
+ Pa as PageHeading,
82
+ Aa as PageLayout,
83
+ Ha as PageSkeleton,
84
+ Fa as Pagination,
85
+ va as Progress,
86
+ fa as RadialProgress,
87
+ Ba as RemoveButton,
88
+ La as Report,
89
+ Oa as ResourceAddress,
90
+ Ea as ResourceAddressFormFields,
91
+ Na as ResourceDetails,
92
+ Ga as ResourceLineItems,
93
+ Ma as ResourceListItem,
94
+ wa as ResourceMetadata,
95
+ xa as ResourceOrderTimeline,
96
+ Va as ResourcePaymentMethod,
97
+ Wa as ResourceShipmentParcels,
98
+ Ja as ResourceTags,
99
+ Ua as Routes,
100
+ qa as ScrollToTop,
101
+ Ya as SearchBar,
102
+ ja as Section,
103
+ za as Skeleton,
104
+ Ka as SkeletonItem,
105
+ Qa as SkeletonTemplate,
106
+ Xa as Spacer,
107
+ Za as Stack,
108
+ _a as StatusDot,
109
+ $a as StatusIcon,
110
+ ae as Steps,
111
+ ee as Tab,
112
+ se as Table,
113
+ te as TableData,
114
+ oe as Tabs,
115
+ re as Tag,
116
+ ne as Td,
117
+ ue as Text,
118
+ ce as Th,
118
119
  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,
120
+ de as TokenProvider,
121
+ le as Toolbar,
122
+ pe as Tooltip,
123
+ be as Tr,
124
+ ge as Trans,
125
+ me as computeFullname,
126
+ Se as createApp,
127
+ Ie as createRoute,
128
+ ke as createTypedRoute,
129
+ Te as currencies,
130
+ De as currencyInputSelectOptions,
131
+ Re as downloadJsonAsFile,
132
+ ye as encodeExtras,
133
+ he as flatSelectValues,
134
+ Ce as formatCentsToCurrency,
135
+ Pe as formatDate,
136
+ Ae as formatDateRange,
137
+ He as formatDateWithPredicate,
138
+ Fe as formatDisplayName,
139
+ ve as formatResourceName,
140
+ fe as getAvatarSrcFromRate,
141
+ Be as getCustomerDisplayStatus,
142
+ Le as getCustomerStatusName,
143
+ Oe as getDefaultValueFromFlatten,
144
+ Ee as getEventDateInfo,
145
+ Ne as getIsoDateAtDayEdge,
146
+ Ge as getIsoDateAtDaysBefore,
147
+ Me as getOrderDisplayStatus,
148
+ we as getOrderFulfillmentStatusName,
149
+ xe as getOrderPaymentStatusName,
150
+ Ve as getOrderStatusName,
151
+ We as getOrderTransactionName,
152
+ Je as getParcelTrackingDetail,
153
+ Ue as getParcelTrackingDetails,
154
+ qe as getPaymentMethodLogoSrc,
155
+ Ye as getPromotionDisplayStatus,
156
+ je as getResourceAddressFormFieldsSchema,
157
+ ze as getResourceEndpoint,
158
+ Ke as getReturnDisplayStatus,
159
+ Qe as getReturnStatusName,
160
+ Xe as getShipmentDisplayStatus,
161
+ Ze as getShipmentRate,
162
+ _e as getShipmentRates,
163
+ $e as getShipmentStatusName,
164
+ as as getStockTransferDisplayStatus,
165
+ es as getStockTransferStatusName,
166
+ ss as getUnitOfWeightName,
167
+ ts as getUnitsOfWeightForSelect,
168
+ os as goBack,
169
+ rs as hasBeenPurchased,
170
+ ns as hasSingleTracking,
171
+ us as i18nLocales,
172
+ cs as isAttachmentValidNote,
172
173
  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
174
+ ds as isMultiValueSelected,
175
+ ls as isSingleValueSelected,
176
+ ps as makeDateYearsRange,
177
+ bs as navigateTo,
178
+ gs as referenceOrigins,
179
+ ms as removeMillisecondsFromIsoDate,
180
+ Ss as setApiFormErrors,
181
+ Is as sortAndGroupByDate,
182
+ ks as t,
183
+ Ts as timeSeparator,
184
+ Ds as useAppLinking,
185
+ Rs as useClickAway,
186
+ ys as useCoreApi,
187
+ hs as useCoreSdkProvider,
188
+ Cs as useDelayShow,
189
+ Ps as useEditMetadataOverlay,
190
+ As as useEditTagsOverlay,
191
+ Hs as useInputResourceGroupOverlay,
192
+ Fs as useIsChanged,
193
+ vs as useOnBlurFromContainer,
194
+ fs as useOverlay,
195
+ Bs as useResourceAddressOverlay,
196
+ Ls as useResourceFilters,
197
+ Os as useResourceList,
198
+ Es as useTagManager,
199
+ Ns as useTokenProvider,
200
+ Gs as useTranslation,
201
+ Ms as useValidationFeedback,
202
+ ws as withSkeletonTemplate
202
203
  };
@@ -0,0 +1,53 @@
1
+ import { Address as AddressType } from '@commercelayer/sdk';
2
+ export interface AddressProps {
3
+ /**
4
+ * The address to be visualized
5
+ */
6
+ address?: Pick<AddressType, 'first_name' | 'last_name' | 'company' | 'line_1' | 'line_2' | 'city' | 'state_code' | 'zip_code' | 'country_code' | 'billing_info' | 'phone' | 'notes'> | null;
7
+ /**
8
+ * Optional address title (if added it will be shown in bold on top of address infos)
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Optional setting to define if given `Address` `billing_info` data is visible.
13
+ * @default false
14
+ */
15
+ showBillingInfo?: boolean;
16
+ /**
17
+ * Optional setting to define if given `Address` `billing_info` data is visible.
18
+ * @default true
19
+ */
20
+ showNotes?: boolean;
21
+ /**
22
+ * When set, the component will render an edit button on the right side of the address.
23
+ * The implemented method get triggered every time the edit button is clicked.
24
+ */
25
+ onEdit?: () => void;
26
+ }
27
+ /**
28
+ * Renders an all-in-one visualization to deal with a given address
29
+ */
30
+ export declare const Address: import('../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
31
+ address?: (Pick<AddressType, "first_name" | "last_name" | "company" | "line_1" | "line_2" | "city" | "state_code" | "zip_code" | "country_code" | "billing_info" | "phone" | "notes"> | null) | undefined;
32
+ title?: string
33
+ /**
34
+ * Optional setting to define if given `Address` `billing_info` data is visible.
35
+ * @default false
36
+ */
37
+ | undefined;
38
+ showBillingInfo?: boolean
39
+ /**
40
+ * Optional setting to define if given `Address` `billing_info` data is visible.
41
+ * @default true
42
+ */
43
+ | undefined;
44
+ showNotes?: boolean
45
+ /**
46
+ * When set, the component will render an edit button on the right side of the address.
47
+ * The implemented method get triggered every time the edit button is clicked.
48
+ */
49
+ | undefined;
50
+ onEdit?: (() => void) | undefined;
51
+ delayMs?: number | undefined;
52
+ isLoading?: boolean | undefined;
53
+ }>;
@@ -1,80 +1,51 @@
1
- import { Address } from '@commercelayer/sdk';
2
- export interface ResourceAddressProps {
1
+ import { AddressProps } from '../../composite/Address';
2
+ import { Address as AddressType } from '@commercelayer/sdk';
3
+ export type ResourceAddressProps = Pick<AddressProps, 'showBillingInfo' | 'showNotes' | 'title'> & {
3
4
  /**
4
5
  * Resource of type `Address`
5
6
  */
6
- address?: Address | null;
7
- /**
8
- * Optional address title (if added it will be shown in bold on top of address infos)
9
- */
10
- title?: string;
7
+ address?: AddressType | null;
11
8
  /**
12
9
  * Optional setting to define if given address is editable (if set the Edit button and Overlay will be enabled).
13
10
  * Given the setting the component will also verify user abilities to ensure if he is enabled to update the
14
11
  * requested resource before to render editable related functionalities.
15
12
  */
16
13
  editable?: boolean;
17
- /**
18
- * Optional setting to define if given `Address` `billing_info` data is visible.
19
- * @default false
20
- */
21
- showBillingInfo?: boolean;
22
14
  /**
23
15
  * Optional setting to define if given `Address` `billing_info` data is required.
24
16
  * @default false
25
17
  */
26
18
  requiresBillingInfo?: boolean;
27
- /**
28
- * Optional setting to define if given `Address` `billing_info` data is visible.
29
- * @default true
30
- */
31
- showNotes?: boolean;
32
19
  /**
33
20
  * Get triggered as soon as the new address is created.
34
21
  */
35
- onCreate?: (createdAddress: Address) => void;
22
+ onCreate?: (createdAddress: AddressType) => void;
36
23
  /**
37
24
  * Get triggered every time the address is updated.
38
25
  */
39
- onUpdate?: (updatedAddress: Address) => void;
40
- }
26
+ onUpdate?: (updatedAddress: AddressType) => void;
27
+ };
41
28
  /**
42
29
  * Renders an all-in-one visualization and editing solution to deal with a given resource of type `Address`
43
30
  */
44
31
  export declare const ResourceAddress: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
45
- address?: (Address | null) | undefined;
46
- title?: string
47
- /**
48
- * Optional setting to define if given address is editable (if set the Edit button and Overlay will be enabled).
49
- * Given the setting the component will also verify user abilities to ensure if he is enabled to update the
50
- * requested resource before to render editable related functionalities.
51
- */
52
- | undefined;
32
+ title?: string | undefined;
33
+ showBillingInfo?: boolean | undefined;
34
+ showNotes?: boolean | undefined;
35
+ address?: (AddressType | null) | undefined;
53
36
  editable?: boolean
54
- /**
55
- * Optional setting to define if given `Address` `billing_info` data is visible.
56
- * @default false
57
- */
58
- | undefined;
59
- showBillingInfo?: boolean
60
37
  /**
61
38
  * Optional setting to define if given `Address` `billing_info` data is required.
62
39
  * @default false
63
40
  */
64
41
  | undefined;
65
42
  requiresBillingInfo?: boolean
66
- /**
67
- * Optional setting to define if given `Address` `billing_info` data is visible.
68
- * @default true
69
- */
70
- | undefined;
71
- showNotes?: boolean
72
43
  /**
73
44
  * Get triggered as soon as the new address is created.
74
45
  */
75
46
  | undefined;
76
- onCreate?: ((createdAddress: Address) => void) | undefined;
77
- onUpdate?: ((updatedAddress: Address) => void) | undefined;
47
+ onCreate?: ((createdAddress: AddressType) => void) | undefined;
48
+ onUpdate?: ((updatedAddress: AddressType) => void) | undefined;
78
49
  delayMs?: number | undefined;
79
50
  isLoading?: boolean | undefined;
80
51
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [