@shopify/ui-extensions 2025.10.0-rc.7 → 2025.10.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +139 -0
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Option.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +133 -0
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +219 -160
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.customers.segmentation-templates.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +121 -11
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +121 -11
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +66 -0
- package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +61 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +61 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/components/AdminAction.d.ts +1 -1
- package/src/surfaces/admin/components/AdminBlock.d.ts +1 -1
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +1 -1
- package/src/surfaces/admin/components/Avatar.d.ts +139 -0
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Banner.d.ts +1 -1
- package/src/surfaces/admin/components/Box.d.ts +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/Checkbox.d.ts +1 -1
- package/src/surfaces/admin/components/Choice.d.ts +1 -1
- package/src/surfaces/admin/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +1 -1
- package/src/surfaces/admin/components/GridItem.d.ts +1 -1
- package/src/surfaces/admin/components/Heading.d.ts +1 -1
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +1 -1
- package/src/surfaces/admin/components/Link.d.ts +1 -1
- package/src/surfaces/admin/components/ListItem.d.ts +1 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/src/surfaces/admin/components/NumberField.d.ts +1 -1
- package/src/surfaces/admin/components/Option.d.ts +1 -1
- package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/src/surfaces/admin/components/Page.d.ts +1 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +1 -1
- package/src/surfaces/admin/components/Select.d.ts +1 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +1 -1
- package/src/surfaces/admin/components/StandardComponents.ts +2 -0
- package/src/surfaces/admin/components/Switch.d.ts +1 -1
- package/src/surfaces/admin/components/Table.d.ts +1 -1
- package/src/surfaces/admin/components/TableBody.d.ts +1 -1
- package/src/surfaces/admin/components/TableCell.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/src/surfaces/admin/components/TableRow.d.ts +1 -1
- package/src/surfaces/admin/components/Text.d.ts +1 -1
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +133 -0
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/src/surfaces/admin/components/shared.d.ts +219 -160
- package/src/surfaces/admin/components.d.ts +975 -413
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-js.example.ts +9 -0
- package/src/surfaces/customer-account/components/Avatar/examples/basic-Avatar-preact.example.tsx +9 -0
- package/src/surfaces/customer-account/components/Avatar.d.ts +66 -0
- package/src/surfaces/customer-account/components/StandardComponents.ts +1 -0
- package/src/surfaces/customer-account/components.d.ts +67 -0
package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts
CHANGED
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.order.action.render'];
|
|
1476
1537
|
export type Api = Target['api'];
|
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.order.page.render'];
|
|
1476
1537
|
export type Api = Target['api'];
|
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.page.render'];
|
|
1476
1537
|
export type Api = Target['api'];
|
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.profile.addresses.render-after'];
|
|
1476
1537
|
export type Api = Target['api'];
|
package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts
CHANGED
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.profile.block.render'];
|
|
1476
1537
|
export type Api = Target['api'];
|
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.profile.company-details.render-after'];
|
|
1476
1537
|
export type Api = Target['api'];
|
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.profile.company-location-addresses.render-after'];
|
|
1476
1537
|
export type Api = Target['api'];
|
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.profile.company-location-payment.render-after'];
|
|
1476
1537
|
export type Api = Target['api'];
|
|
@@ -49,6 +49,66 @@ export interface CustomerAccountActionProps {
|
|
|
49
49
|
heading: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
declare module 'preact' {
|
|
53
|
+
namespace createElement.JSX {
|
|
54
|
+
interface IntrinsicElements {
|
|
55
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
['s-avatar']: AvatarElement;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AvatarProps extends GlobalProps {
|
|
70
|
+
/**
|
|
71
|
+
* Initials to display in the avatar.
|
|
72
|
+
*/
|
|
73
|
+
initials?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The URL or path to the image.
|
|
76
|
+
*
|
|
77
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
78
|
+
*/
|
|
79
|
+
src?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Size of the avatar.
|
|
82
|
+
*
|
|
83
|
+
* @default 'base'
|
|
84
|
+
*/
|
|
85
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
86
|
+
/**
|
|
87
|
+
* An alternative text description that describe the image for the reader
|
|
88
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
89
|
+
*/
|
|
90
|
+
alt?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Invoked when load of provided image completes successfully.
|
|
93
|
+
*
|
|
94
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
95
|
+
*/
|
|
96
|
+
onLoad?(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Invoked on load error of provided image.
|
|
99
|
+
*
|
|
100
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
101
|
+
*/
|
|
102
|
+
onError?(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface GlobalProps {
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for the element.
|
|
108
|
+
*/
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
52
112
|
declare module 'preact' {
|
|
53
113
|
namespace createElement.JSX {
|
|
54
114
|
interface IntrinsicElements {
|
|
@@ -1471,6 +1531,7 @@ import { CallbackEvent } from "../../../../../src/surfaces/checkout/components/B
|
|
|
1471
1531
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
1472
1532
|
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, CheckboxProps$1, ClipboardItemProps$1, DropZoneProps$1, EmailFieldProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MapMarkerProps$1, MapProps$1, MaybeAllValuesShorthandProperty, ModalProps$1, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, PhoneFieldProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
1473
1533
|
import { ReducedIconTypes } from "../../../../../src/surfaces/checkout/components/Icon";
|
|
1534
|
+
import { Size } from "../../../../../src/surfaces/customer-account/components/shared";
|
|
1474
1535
|
import type { ExtensionTargets } from '../extension-targets';
|
|
1475
1536
|
type Target = ExtensionTargets['customer-account.profile.company-location-staff.render-after'];
|
|
1476
1537
|
export type Api = Target['api'];
|