@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
|
@@ -100,6 +100,58 @@ export interface UnorderedListProps extends UnorderedListProps$1 {
|
|
|
100
100
|
declare const UnorderedListtagName = 's-unordered-list';
|
|
101
101
|
declare const UnorderedListBaseClass: typeof globalThis.HTMLElement;
|
|
102
102
|
|
|
103
|
+
declare module 'preact' {
|
|
104
|
+
namespace createElement.JSX {
|
|
105
|
+
interface IntrinsicElements {
|
|
106
|
+
[ThumbnailtagName]: ThumbnailJSXProps & ThumbnailPreactBaseElementProps<Thumbnail>;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare global {
|
|
112
|
+
interface HTMLElementTagNameMap {
|
|
113
|
+
[ThumbnailtagName]: Thumbnail;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface ThumbnailJSXProps extends Partial<ThumbnailProps>, Pick<ThumbnailProps$1, 'id'> {
|
|
118
|
+
onLoad?: ((event: CallbackEvent<typeof ThumbnailtagName>) => void) | null;
|
|
119
|
+
onError?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface ThumbnailClickOptions {
|
|
123
|
+
/**
|
|
124
|
+
* The event you want to influence the synthetic click.
|
|
125
|
+
*/
|
|
126
|
+
sourceEvent?: ThumbnailActivationEventEsque;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface ThumbnailActivationEventEsque {
|
|
130
|
+
shiftKey: boolean;
|
|
131
|
+
metaKey: boolean;
|
|
132
|
+
ctrlKey: boolean;
|
|
133
|
+
button: number;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface ThumbnailPreactBaseElementProps<TClass extends HTMLElement> {
|
|
137
|
+
/** Assigns a unique key to this element. */
|
|
138
|
+
key?: preact.Key;
|
|
139
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
140
|
+
ref?: preact.Ref<TClass>;
|
|
141
|
+
/** Assigns this element to a parent's slot. */
|
|
142
|
+
slot?: Lowercase<string>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface ThumbnailProps extends Required<Pick<ThumbnailProps$1, 'src' | 'alt'>> {
|
|
146
|
+
size: Extract<
|
|
147
|
+
ThumbnailProps$1['size'],
|
|
148
|
+
'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'
|
|
149
|
+
>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare const ThumbnailtagName = 's-thumbnail';
|
|
153
|
+
declare const ThumbnailBaseClass: typeof globalThis.HTMLElement;
|
|
154
|
+
|
|
103
155
|
declare module 'preact' {
|
|
104
156
|
namespace createElement.JSX {
|
|
105
157
|
interface IntrinsicElements {
|
|
@@ -3328,25 +3380,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3328
3380
|
declare module 'preact' {
|
|
3329
3381
|
namespace createElement.JSX {
|
|
3330
3382
|
interface IntrinsicElements {
|
|
3331
|
-
[
|
|
3383
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3332
3384
|
}
|
|
3333
3385
|
}
|
|
3334
3386
|
}
|
|
3335
3387
|
|
|
3336
3388
|
declare global {
|
|
3337
3389
|
interface HTMLElementTagNameMap {
|
|
3338
|
-
[
|
|
3390
|
+
[BadgetagName]: Badge;
|
|
3339
3391
|
}
|
|
3340
3392
|
}
|
|
3341
3393
|
|
|
3342
3394
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3343
3395
|
}
|
|
3344
3396
|
|
|
3345
|
-
export interface
|
|
3397
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3346
3398
|
children?: preact.ComponentChildren;
|
|
3347
3399
|
}
|
|
3348
3400
|
|
|
3349
|
-
export interface
|
|
3401
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3350
3402
|
/** Assigns a unique key to this element. */
|
|
3351
3403
|
key?: preact.Key;
|
|
3352
3404
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3355,14 +3407,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3355
3407
|
slot?: Lowercase<string>;
|
|
3356
3408
|
}
|
|
3357
3409
|
|
|
3358
|
-
export interface
|
|
3410
|
+
export interface BadgeClickOptions {
|
|
3359
3411
|
/**
|
|
3360
3412
|
* The event you want to influence the synthetic click.
|
|
3361
3413
|
*/
|
|
3362
|
-
sourceEvent?:
|
|
3414
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3363
3415
|
}
|
|
3364
3416
|
|
|
3365
|
-
export interface
|
|
3417
|
+
export interface BadgeActivationEventEsque {
|
|
3366
3418
|
shiftKey: boolean;
|
|
3367
3419
|
metaKey: boolean;
|
|
3368
3420
|
ctrlKey: boolean;
|
|
@@ -3392,7 +3444,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3392
3444
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3393
3445
|
}
|
|
3394
3446
|
|
|
3395
|
-
declare const
|
|
3447
|
+
declare const BadgetagName = 's-badge';
|
|
3448
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3449
|
+
|
|
3450
|
+
declare module 'preact' {
|
|
3451
|
+
namespace createElement.JSX {
|
|
3452
|
+
interface IntrinsicElements {
|
|
3453
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
declare global {
|
|
3459
|
+
interface HTMLElementTagNameMap {
|
|
3460
|
+
[tagName]: Avatar;
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3465
|
+
onLoad?: () => void;
|
|
3466
|
+
onError?: () => void;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3470
|
+
children?: preact.ComponentChildren;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3474
|
+
/** Assigns a unique key to this element. */
|
|
3475
|
+
key?: preact.Key;
|
|
3476
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3477
|
+
ref?: preact.Ref<TClass>;
|
|
3478
|
+
/** Assigns this element to a parent's slot. */
|
|
3479
|
+
slot?: Lowercase<string>;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
export interface ClickOptions {
|
|
3483
|
+
/**
|
|
3484
|
+
* The event you want to influence the synthetic click.
|
|
3485
|
+
*/
|
|
3486
|
+
sourceEvent?: ActivationEventEsque;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
export interface ActivationEventEsque {
|
|
3490
|
+
shiftKey: boolean;
|
|
3491
|
+
metaKey: boolean;
|
|
3492
|
+
ctrlKey: boolean;
|
|
3493
|
+
button: number;
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3497
|
+
size: Extract<
|
|
3498
|
+
AvatarProps$1['size'],
|
|
3499
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3500
|
+
>;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
declare const tagName = 's-avatar';
|
|
3396
3504
|
/**
|
|
3397
3505
|
* Base class for creating custom elements with Preact.
|
|
3398
3506
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3400,8 +3508,9 @@ declare const tagName = 's-badge';
|
|
|
3400
3508
|
*/
|
|
3401
3509
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3402
3510
|
|
|
3403
|
-
import {
|
|
3404
|
-
import {
|
|
3511
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3512
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3513
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3405
3514
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3406
3515
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3407
3516
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3426,7 +3535,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3426
3535
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3427
3536
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3428
3537
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3429
|
-
import { BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3538
|
+
import { AvatarProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, ThumbnailProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3430
3539
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3431
3540
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3432
3541
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3437,6 +3546,7 @@ import { TableHeaderRow } from "../../../../../src/surfaces/admin/components/Tab
|
|
|
3437
3546
|
import { TableRow } from "../../../../../src/surfaces/admin/components/TableRow";
|
|
3438
3547
|
import { TextArea, TextAreaProps } from "../../../../../src/surfaces/admin/components/TextArea";
|
|
3439
3548
|
import { TextField, TextFieldProps } from "../../../../../src/surfaces/admin/components/TextField";
|
|
3549
|
+
import { Thumbnail } from "../../../../../src/surfaces/admin/components/Thumbnail";
|
|
3440
3550
|
import { UnorderedList } from "../../../../../src/surfaces/admin/components/UnorderedList";
|
|
3441
3551
|
import { URLField, URLFieldProps } from "../../../../../src/surfaces/admin/components/URLField";
|
|
3442
3552
|
import type { ExtensionTargets } from '../extension-targets';
|
|
@@ -100,6 +100,58 @@ export interface UnorderedListProps extends UnorderedListProps$1 {
|
|
|
100
100
|
declare const UnorderedListtagName = 's-unordered-list';
|
|
101
101
|
declare const UnorderedListBaseClass: typeof globalThis.HTMLElement;
|
|
102
102
|
|
|
103
|
+
declare module 'preact' {
|
|
104
|
+
namespace createElement.JSX {
|
|
105
|
+
interface IntrinsicElements {
|
|
106
|
+
[ThumbnailtagName]: ThumbnailJSXProps & ThumbnailPreactBaseElementProps<Thumbnail>;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare global {
|
|
112
|
+
interface HTMLElementTagNameMap {
|
|
113
|
+
[ThumbnailtagName]: Thumbnail;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface ThumbnailJSXProps extends Partial<ThumbnailProps>, Pick<ThumbnailProps$1, 'id'> {
|
|
118
|
+
onLoad?: ((event: CallbackEvent<typeof ThumbnailtagName>) => void) | null;
|
|
119
|
+
onError?: ((event: CallbackEvent<typeof tagName>) => void) | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface ThumbnailClickOptions {
|
|
123
|
+
/**
|
|
124
|
+
* The event you want to influence the synthetic click.
|
|
125
|
+
*/
|
|
126
|
+
sourceEvent?: ThumbnailActivationEventEsque;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface ThumbnailActivationEventEsque {
|
|
130
|
+
shiftKey: boolean;
|
|
131
|
+
metaKey: boolean;
|
|
132
|
+
ctrlKey: boolean;
|
|
133
|
+
button: number;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface ThumbnailPreactBaseElementProps<TClass extends HTMLElement> {
|
|
137
|
+
/** Assigns a unique key to this element. */
|
|
138
|
+
key?: preact.Key;
|
|
139
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
140
|
+
ref?: preact.Ref<TClass>;
|
|
141
|
+
/** Assigns this element to a parent's slot. */
|
|
142
|
+
slot?: Lowercase<string>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface ThumbnailProps extends Required<Pick<ThumbnailProps$1, 'src' | 'alt'>> {
|
|
146
|
+
size: Extract<
|
|
147
|
+
ThumbnailProps$1['size'],
|
|
148
|
+
'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'
|
|
149
|
+
>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare const ThumbnailtagName = 's-thumbnail';
|
|
153
|
+
declare const ThumbnailBaseClass: typeof globalThis.HTMLElement;
|
|
154
|
+
|
|
103
155
|
declare module 'preact' {
|
|
104
156
|
namespace createElement.JSX {
|
|
105
157
|
interface IntrinsicElements {
|
|
@@ -3328,25 +3380,25 @@ declare const BannerBaseClass: typeof globalThis.HTMLElement;
|
|
|
3328
3380
|
declare module 'preact' {
|
|
3329
3381
|
namespace createElement.JSX {
|
|
3330
3382
|
interface IntrinsicElements {
|
|
3331
|
-
[
|
|
3383
|
+
[BadgetagName]: BadgeJSXProps & BadgePreactBaseElementPropsWithChildren<Badge>;
|
|
3332
3384
|
}
|
|
3333
3385
|
}
|
|
3334
3386
|
}
|
|
3335
3387
|
|
|
3336
3388
|
declare global {
|
|
3337
3389
|
interface HTMLElementTagNameMap {
|
|
3338
|
-
[
|
|
3390
|
+
[BadgetagName]: Badge;
|
|
3339
3391
|
}
|
|
3340
3392
|
}
|
|
3341
3393
|
|
|
3342
3394
|
export interface BadgeJSXProps extends Partial<BadgeProps>, Pick<BadgeProps$1, 'id'> {
|
|
3343
3395
|
}
|
|
3344
3396
|
|
|
3345
|
-
export interface
|
|
3397
|
+
export interface BadgePreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends BadgePreactBaseElementProps<TClass> {
|
|
3346
3398
|
children?: preact.ComponentChildren;
|
|
3347
3399
|
}
|
|
3348
3400
|
|
|
3349
|
-
export interface
|
|
3401
|
+
export interface BadgePreactBaseElementProps<TClass extends HTMLElement> {
|
|
3350
3402
|
/** Assigns a unique key to this element. */
|
|
3351
3403
|
key?: preact.Key;
|
|
3352
3404
|
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
@@ -3355,14 +3407,14 @@ export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
|
3355
3407
|
slot?: Lowercase<string>;
|
|
3356
3408
|
}
|
|
3357
3409
|
|
|
3358
|
-
export interface
|
|
3410
|
+
export interface BadgeClickOptions {
|
|
3359
3411
|
/**
|
|
3360
3412
|
* The event you want to influence the synthetic click.
|
|
3361
3413
|
*/
|
|
3362
|
-
sourceEvent?:
|
|
3414
|
+
sourceEvent?: BadgeActivationEventEsque;
|
|
3363
3415
|
}
|
|
3364
3416
|
|
|
3365
|
-
export interface
|
|
3417
|
+
export interface BadgeActivationEventEsque {
|
|
3366
3418
|
shiftKey: boolean;
|
|
3367
3419
|
metaKey: boolean;
|
|
3368
3420
|
ctrlKey: boolean;
|
|
@@ -3392,7 +3444,63 @@ export interface IconProps extends Pick<IconProps$1, 'type' | 'tone' | 'color' |
|
|
|
3392
3444
|
size: Extract<IconProps$1['size'], 'small' | 'base'>;
|
|
3393
3445
|
}
|
|
3394
3446
|
|
|
3395
|
-
declare const
|
|
3447
|
+
declare const BadgetagName = 's-badge';
|
|
3448
|
+
declare const BadgeBaseClass: typeof globalThis.HTMLElement;
|
|
3449
|
+
|
|
3450
|
+
declare module 'preact' {
|
|
3451
|
+
namespace createElement.JSX {
|
|
3452
|
+
interface IntrinsicElements {
|
|
3453
|
+
[tagName]: AvatarJSXProps & PreactBaseElementPropsWithChildren<Avatar>;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
declare global {
|
|
3459
|
+
interface HTMLElementTagNameMap {
|
|
3460
|
+
[tagName]: Avatar;
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
export interface AvatarJSXProps extends Partial<AvatarProps>, Pick<AvatarProps$1, 'id'> {
|
|
3465
|
+
onLoad?: () => void;
|
|
3466
|
+
onError?: () => void;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
export interface PreactBaseElementPropsWithChildren<TClass extends HTMLElement> extends PreactBaseElementProps<TClass> {
|
|
3470
|
+
children?: preact.ComponentChildren;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
export interface PreactBaseElementProps<TClass extends HTMLElement> {
|
|
3474
|
+
/** Assigns a unique key to this element. */
|
|
3475
|
+
key?: preact.Key;
|
|
3476
|
+
/** Assigns a ref (generally from `useRef()`) to this element. */
|
|
3477
|
+
ref?: preact.Ref<TClass>;
|
|
3478
|
+
/** Assigns this element to a parent's slot. */
|
|
3479
|
+
slot?: Lowercase<string>;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
export interface ClickOptions {
|
|
3483
|
+
/**
|
|
3484
|
+
* The event you want to influence the synthetic click.
|
|
3485
|
+
*/
|
|
3486
|
+
sourceEvent?: ActivationEventEsque;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3489
|
+
export interface ActivationEventEsque {
|
|
3490
|
+
shiftKey: boolean;
|
|
3491
|
+
metaKey: boolean;
|
|
3492
|
+
ctrlKey: boolean;
|
|
3493
|
+
button: number;
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
export interface AvatarProps extends Required<Pick<AvatarProps$1, 'initials' | 'src' | 'alt'>> {
|
|
3497
|
+
size: Extract<
|
|
3498
|
+
AvatarProps$1['size'],
|
|
3499
|
+
'small-200' | 'small' | 'base' | 'large' | 'large-200'
|
|
3500
|
+
>;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
declare const tagName = 's-avatar';
|
|
3396
3504
|
/**
|
|
3397
3505
|
* Base class for creating custom elements with Preact.
|
|
3398
3506
|
* While this class could be used in both Node and the browser, the constructor will only be used in the browser.
|
|
@@ -3400,8 +3508,9 @@ declare const tagName = 's-badge';
|
|
|
3400
3508
|
*/
|
|
3401
3509
|
declare const BaseClass: typeof globalThis.HTMLElement;
|
|
3402
3510
|
|
|
3403
|
-
import {
|
|
3404
|
-
import {
|
|
3511
|
+
import { Avatar, CallbackEvent, RenderImpl } from "../../../../../src/surfaces/admin/components/Avatar";
|
|
3512
|
+
import { Badge } from "../../../../../src/surfaces/admin/components/Badge";
|
|
3513
|
+
import { Banner, RequiredBannerProps } from "../../../../../src/surfaces/admin/components/Banner";
|
|
3405
3514
|
import { Box, BoxBorderRadii, BoxBorderStyles, RequiredBoxProps, ResponsiveBoxProps } from "../../../../../src/surfaces/admin/components/Box";
|
|
3406
3515
|
import { Button, ButtonBaseProps } from "../../../../../src/surfaces/admin/components/Button";
|
|
3407
3516
|
import { Checkbox, PreactInputProps } from "../../../../../src/surfaces/admin/components/Checkbox";
|
|
@@ -3426,7 +3535,7 @@ import { PasswordField, PasswordFieldProps } from "../../../../../src/surfaces/a
|
|
|
3426
3535
|
import { QueryContainer } from "../../../../../src/surfaces/admin/components/QueryContainer";
|
|
3427
3536
|
import { RequiredSectionProps, Section } from "../../../../../src/surfaces/admin/components/Section";
|
|
3428
3537
|
import { Select } from "../../../../../src/surfaces/admin/components/Select";
|
|
3429
|
-
import { BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3538
|
+
import { AvatarProps$1, BadgeProps$1, BannerProps$1, BoxProps$1, ButtonProps$1, CheckboxProps$1, ChoiceListProps$1, ChoiceProps$1, ClickableProps$1, ComponentChild, DatePickerProps$1, DividerProps$1, EmailFieldProps$1, GridItemProps$1, GridProps$1, HeadingProps$1, IconProps$1, IconType, ImageProps$1, InteractionProps, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, MoneyFieldProps$1, NumberFieldProps$1, OptionGroupProps$1, OptionProps$1, OrderedListProps$1, ParagraphProps$1, PasswordFieldProps$1, QueryContainerProps$1, SectionProps$1, SelectProps$1, SpinnerProps$1, StackProps$1, TableBodyProps$1, TableCellProps$1, TableHeaderProps$1, TableHeaderRowProps$1, TableProps$1, TableRowProps$1, TextAreaProps$1, TextFieldProps$1, TextProps$1, ThumbnailProps$1, URLFieldProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/admin/components/shared";
|
|
3430
3539
|
import { Spinner } from "../../../../../src/surfaces/admin/components/Spinner";
|
|
3431
3540
|
import { AlignedStackProps, ResponsiveStackProps, Stack } from "../../../../../src/surfaces/admin/components/Stack";
|
|
3432
3541
|
import { Table } from "../../../../../src/surfaces/admin/components/Table";
|
|
@@ -3437,6 +3546,7 @@ import { TableHeaderRow } from "../../../../../src/surfaces/admin/components/Tab
|
|
|
3437
3546
|
import { TableRow } from "../../../../../src/surfaces/admin/components/TableRow";
|
|
3438
3547
|
import { TextArea, TextAreaProps } from "../../../../../src/surfaces/admin/components/TextArea";
|
|
3439
3548
|
import { TextField, TextFieldProps } from "../../../../../src/surfaces/admin/components/TextField";
|
|
3549
|
+
import { Thumbnail } from "../../../../../src/surfaces/admin/components/Thumbnail";
|
|
3440
3550
|
import { UnorderedList } from "../../../../../src/surfaces/admin/components/UnorderedList";
|
|
3441
3551
|
import { URLField, URLFieldProps } from "../../../../../src/surfaces/admin/components/URLField";
|
|
3442
3552
|
import type { ExtensionTargets } from '../extension-targets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/customer-account/components/Avatar/Avatar.doc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAE1E,QAAA,MAAM,IAAI,EAAE,6BAyDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {BaseElementPropsWithChildren, Size} from './shared';
|
|
2
|
+
|
|
3
|
+
interface GlobalProps {
|
|
4
|
+
/**
|
|
5
|
+
* A unique identifier for the element.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface AvatarProps extends GlobalProps {
|
|
11
|
+
/**
|
|
12
|
+
* Initials to display in the avatar.
|
|
13
|
+
*/
|
|
14
|
+
initials?: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The URL or path to the image.
|
|
18
|
+
*
|
|
19
|
+
* Initials will be rendered as a fallback if `src` is not provided, fails to load or does not load quickly.
|
|
20
|
+
*/
|
|
21
|
+
src?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Invoked when load of provided image completes successfully.
|
|
25
|
+
*
|
|
26
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload
|
|
27
|
+
*/
|
|
28
|
+
onLoad?(): void;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Invoked on load error of provided image.
|
|
32
|
+
*
|
|
33
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
|
|
34
|
+
*/
|
|
35
|
+
onError?(): void;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Size of the avatar.
|
|
39
|
+
*
|
|
40
|
+
* @default 'base'
|
|
41
|
+
*/
|
|
42
|
+
size?: Extract<Size, 'base' | 'large' | 'extraLarge' | 'fill'>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* An alternative text description that describe the image for the reader
|
|
46
|
+
* to understand what it is about or identify the user the avatar belongs to.
|
|
47
|
+
*/
|
|
48
|
+
alt?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface AvatarElement extends AvatarProps, Omit<HTMLElement, 'id'> {}
|
|
52
|
+
|
|
53
|
+
declare global {
|
|
54
|
+
interface HTMLElementTagNameMap {
|
|
55
|
+
['s-avatar']: AvatarElement;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare module 'preact' {
|
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
61
|
+
namespace createElement.JSX {
|
|
62
|
+
interface IntrinsicElements {
|
|
63
|
+
['s-avatar']: BaseElementPropsWithChildren<AvatarElement> & AvatarProps;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AnyComponent } from '../../checkout';
|
|
2
|
-
export type StandardComponents = AnyComponent | 'Page' | 'CustomerAccountAction' | 'ImageGroup';
|
|
2
|
+
export type StandardComponents = AnyComponent | 'Page' | 'Avatar' | 'CustomerAccountAction' | 'ImageGroup';
|
|
3
3
|
export default StandardComponents;
|
|
4
4
|
//# sourceMappingURL=StandardComponents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/components/StandardComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,MAAM,GACN,uBAAuB,GACvB,YAAY,CAAC;AAEjB,eAAe,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"StandardComponents.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/components/StandardComponents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,uBAAuB,GACvB,YAAY,CAAC;AAEjB,eAAe,kBAAkB,CAAC"}
|
package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.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.footer.render-after'];
|
|
1476
1537
|
export type Api = Target['api'];
|
package/build/ts/surfaces/customer-account/targets/customer-account.order-index.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.order-index.block.render'];
|
|
1476
1537
|
export type Api = Target['api'];
|