@shopify/ui-extensions 2025.10.0-rc.3 → 2025.10.0-rc.4
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/checkout/shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Actions::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CartLines::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Contact::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::CustomerInformation::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::DeliveryAddress::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Dynamic::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::GiftCard::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::HostedFields::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PaymentMethod::RenderRequiredAction.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupLocations::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::PickupPoints::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::Reductions::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethodDetails::RenderExpanded.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ShippingMethods::RenderBefore.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLineDetails::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CartLines::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::CustomerInformation::RenderAfter.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/Checkout::ThankYou::Dynamic::Render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +103 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +103 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/checkout/shared.ts +3 -0
|
@@ -8,7 +8,7 @@ export type AnyComponent = 'Abbreviation' | 'Banner' | 'Box' | 'Button'
|
|
|
8
8
|
* Once Chat is supported, you can remove this note.
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
|
-
| 'Chat' | 'ClipboardItem' | 'DropZone' | 'Form' | 'Heading' | 'Icon' | 'Image' | 'Link' | 'ListItem' | 'OrderedList' | 'Paragraph' | 'PaymentIcon' | 'Progress' | 'Spinner' | 'Stack' | 'Text' | 'Time' | 'UnorderedList';
|
|
11
|
+
| 'Chat' | 'ClipboardItem' | 'DropZone' | 'Form' | 'Heading' | 'Icon' | 'Image' | 'Link' | 'ListItem' | 'OrderedList' | 'Paragraph' | 'PaymentIcon' | 'Progress' | 'QRCode' | 'Section' | 'Spinner' | 'Stack' | 'Text' | 'TextField' | 'Time' | 'UnorderedList';
|
|
12
12
|
export type AllowedComponents<Allowed extends AnyComponent> = Allowed;
|
|
13
13
|
export type AnyComponentExcept<Except extends AnyComponent> = Exclude<AnyComponent, Except>;
|
|
14
14
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/shared.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,cAAc,GACd,QAAQ,GACR,KAAK,GACL,QAAQ;AACV;;;;GAIG;GACD,MAAM,GACN,eAAe,GACf,UAAU,GACV,MAAM,GACN,SAAS,GACT,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,aAAa,GACb,WAAW,GACX,aAAa,GACb,UAAU,GACV,SAAS,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,eAAe,CAAC;AAEpB,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,YAAY,IAAI,OAAO,CAAC;AACtE,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,YAAY,IAAI,OAAO,CACnE,YAAY,EACZ,MAAM,CACP,CAAC"}
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/shared.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,cAAc,GACd,QAAQ,GACR,KAAK,GACL,QAAQ;AACV;;;;GAIG;GACD,MAAM,GACN,eAAe,GACf,UAAU,GACV,MAAM,GACN,SAAS,GACT,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,aAAa,GACb,WAAW,GACX,aAAa,GACb,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,GACN,WAAW,GACX,MAAM,GACN,eAAe,CAAC;AAEpB,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,YAAY,IAAI,OAAO,CAAC;AACtE,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,YAAY,IAAI,OAAO,CACnE,YAAY,EACZ,MAAM,CACP,CAAC"}
|
|
@@ -48,6 +48,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
48
48
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
declare module 'preact' {
|
|
52
|
+
interface BaseProps {
|
|
53
|
+
slot?: Lowercase<string>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
namespace createElement.JSX {
|
|
57
|
+
interface IntrinsicElements {
|
|
58
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
's-text-field': TextFieldElement;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare module 'preact' {
|
|
70
|
+
interface BaseProps {
|
|
71
|
+
slot?: Lowercase<string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
namespace createElement.JSX {
|
|
75
|
+
interface IntrinsicElements {
|
|
76
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
's-icon': TextFieldIconElement;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
88
|
+
onblur: TextFieldProps['onBlur'];
|
|
89
|
+
onchange: TextFieldProps['onChange'];
|
|
90
|
+
onfocus: TextFieldProps['onFocus'];
|
|
91
|
+
oninput: TextFieldProps['onInput'];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
95
|
+
icon?: TextFieldIconProps['type'];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
102
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
103
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
104
|
+
type?: '' | Extract<IconProps$1['type'], 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
|
|
105
|
+
}
|
|
106
|
+
|
|
51
107
|
declare module 'preact' {
|
|
52
108
|
interface BaseProps {
|
|
53
109
|
children?: preact.ComponentChildren;
|
|
@@ -130,6 +186,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
130
186
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
131
187
|
}
|
|
132
188
|
|
|
189
|
+
declare module 'preact' {
|
|
190
|
+
interface BaseProps {
|
|
191
|
+
children?: preact.ComponentChildren;
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
namespace createElement.JSX {
|
|
196
|
+
interface IntrinsicElements {
|
|
197
|
+
's-section': SectionProps & BaseProps;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare global {
|
|
203
|
+
interface HTMLElementTagNameMap {
|
|
204
|
+
's-section': SectionElement;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare module 'preact' {
|
|
215
|
+
namespace createElement.JSX {
|
|
216
|
+
interface IntrinsicElements {
|
|
217
|
+
's-qr-code': QRCodeProps;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare global {
|
|
223
|
+
interface HTMLElementTagNameMap {
|
|
224
|
+
's-qr-code': QRCodelement;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
229
|
+
onerror: QRCodeProps['onError'];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
233
|
+
}
|
|
234
|
+
|
|
133
235
|
declare module 'preact' {
|
|
134
236
|
namespace createElement.JSX {
|
|
135
237
|
interface IntrinsicElements {
|
|
@@ -543,7 +645,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
543
645
|
}
|
|
544
646
|
|
|
545
647
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
546
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
648
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
547
649
|
import type { ExtensionTargets } from '../extension-targets';
|
|
548
650
|
type Target = ExtensionTargets['Checkout::Actions::RenderBefore'];
|
|
549
651
|
export type Api = Target['api'];
|
|
@@ -48,6 +48,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
48
48
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
declare module 'preact' {
|
|
52
|
+
interface BaseProps {
|
|
53
|
+
slot?: Lowercase<string>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
namespace createElement.JSX {
|
|
57
|
+
interface IntrinsicElements {
|
|
58
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
's-text-field': TextFieldElement;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare module 'preact' {
|
|
70
|
+
interface BaseProps {
|
|
71
|
+
slot?: Lowercase<string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
namespace createElement.JSX {
|
|
75
|
+
interface IntrinsicElements {
|
|
76
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
's-icon': TextFieldIconElement;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
88
|
+
onblur: TextFieldProps['onBlur'];
|
|
89
|
+
onchange: TextFieldProps['onChange'];
|
|
90
|
+
onfocus: TextFieldProps['onFocus'];
|
|
91
|
+
oninput: TextFieldProps['onInput'];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
95
|
+
icon?: TextFieldIconProps['type'];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
102
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
103
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
104
|
+
type?: '' | Extract<IconProps$1['type'], 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
|
|
105
|
+
}
|
|
106
|
+
|
|
51
107
|
declare module 'preact' {
|
|
52
108
|
interface BaseProps {
|
|
53
109
|
children?: preact.ComponentChildren;
|
|
@@ -130,6 +186,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
130
186
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
131
187
|
}
|
|
132
188
|
|
|
189
|
+
declare module 'preact' {
|
|
190
|
+
interface BaseProps {
|
|
191
|
+
children?: preact.ComponentChildren;
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
namespace createElement.JSX {
|
|
196
|
+
interface IntrinsicElements {
|
|
197
|
+
's-section': SectionProps & BaseProps;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare global {
|
|
203
|
+
interface HTMLElementTagNameMap {
|
|
204
|
+
's-section': SectionElement;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare module 'preact' {
|
|
215
|
+
namespace createElement.JSX {
|
|
216
|
+
interface IntrinsicElements {
|
|
217
|
+
's-qr-code': QRCodeProps;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare global {
|
|
223
|
+
interface HTMLElementTagNameMap {
|
|
224
|
+
's-qr-code': QRCodelement;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
229
|
+
onerror: QRCodeProps['onError'];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
233
|
+
}
|
|
234
|
+
|
|
133
235
|
declare module 'preact' {
|
|
134
236
|
namespace createElement.JSX {
|
|
135
237
|
interface IntrinsicElements {
|
|
@@ -543,7 +645,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
543
645
|
}
|
|
544
646
|
|
|
545
647
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
546
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
648
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
547
649
|
import type { ExtensionTargets } from '../extension-targets';
|
|
548
650
|
type Target = ExtensionTargets['Checkout::CartLineDetails::RenderAfter'];
|
|
549
651
|
export type Api = Target['api'];
|
package/build/ts/surfaces/checkout/targets/Checkout::CartLineDetails::RenderLineComponents.d.ts
CHANGED
|
@@ -48,6 +48,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
48
48
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
declare module 'preact' {
|
|
52
|
+
interface BaseProps {
|
|
53
|
+
slot?: Lowercase<string>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
namespace createElement.JSX {
|
|
57
|
+
interface IntrinsicElements {
|
|
58
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
's-text-field': TextFieldElement;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare module 'preact' {
|
|
70
|
+
interface BaseProps {
|
|
71
|
+
slot?: Lowercase<string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
namespace createElement.JSX {
|
|
75
|
+
interface IntrinsicElements {
|
|
76
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
's-icon': TextFieldIconElement;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
88
|
+
onblur: TextFieldProps['onBlur'];
|
|
89
|
+
onchange: TextFieldProps['onChange'];
|
|
90
|
+
onfocus: TextFieldProps['onFocus'];
|
|
91
|
+
oninput: TextFieldProps['onInput'];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
95
|
+
icon?: TextFieldIconProps['type'];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
102
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
103
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
104
|
+
type?: '' | Extract<IconProps$1['type'], 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
|
|
105
|
+
}
|
|
106
|
+
|
|
51
107
|
declare module 'preact' {
|
|
52
108
|
interface BaseProps {
|
|
53
109
|
children?: preact.ComponentChildren;
|
|
@@ -130,6 +186,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
130
186
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
131
187
|
}
|
|
132
188
|
|
|
189
|
+
declare module 'preact' {
|
|
190
|
+
interface BaseProps {
|
|
191
|
+
children?: preact.ComponentChildren;
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
namespace createElement.JSX {
|
|
196
|
+
interface IntrinsicElements {
|
|
197
|
+
's-section': SectionProps & BaseProps;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare global {
|
|
203
|
+
interface HTMLElementTagNameMap {
|
|
204
|
+
's-section': SectionElement;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare module 'preact' {
|
|
215
|
+
namespace createElement.JSX {
|
|
216
|
+
interface IntrinsicElements {
|
|
217
|
+
's-qr-code': QRCodeProps;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare global {
|
|
223
|
+
interface HTMLElementTagNameMap {
|
|
224
|
+
's-qr-code': QRCodelement;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
229
|
+
onerror: QRCodeProps['onError'];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
233
|
+
}
|
|
234
|
+
|
|
133
235
|
declare module 'preact' {
|
|
134
236
|
namespace createElement.JSX {
|
|
135
237
|
interface IntrinsicElements {
|
|
@@ -543,7 +645,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
543
645
|
}
|
|
544
646
|
|
|
545
647
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
546
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
648
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
547
649
|
import type { ExtensionTargets } from '../extension-targets';
|
|
548
650
|
type Target = ExtensionTargets['Checkout::CartLineDetails::RenderLineComponents'];
|
|
549
651
|
export type Api = Target['api'];
|
|
@@ -48,6 +48,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
48
48
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
declare module 'preact' {
|
|
52
|
+
interface BaseProps {
|
|
53
|
+
slot?: Lowercase<string>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
namespace createElement.JSX {
|
|
57
|
+
interface IntrinsicElements {
|
|
58
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
's-text-field': TextFieldElement;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare module 'preact' {
|
|
70
|
+
interface BaseProps {
|
|
71
|
+
slot?: Lowercase<string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
namespace createElement.JSX {
|
|
75
|
+
interface IntrinsicElements {
|
|
76
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
's-icon': TextFieldIconElement;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
88
|
+
onblur: TextFieldProps['onBlur'];
|
|
89
|
+
onchange: TextFieldProps['onChange'];
|
|
90
|
+
onfocus: TextFieldProps['onFocus'];
|
|
91
|
+
oninput: TextFieldProps['onInput'];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
95
|
+
icon?: TextFieldIconProps['type'];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
102
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
103
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
104
|
+
type?: '' | Extract<IconProps$1['type'], 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
|
|
105
|
+
}
|
|
106
|
+
|
|
51
107
|
declare module 'preact' {
|
|
52
108
|
interface BaseProps {
|
|
53
109
|
children?: preact.ComponentChildren;
|
|
@@ -130,6 +186,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
130
186
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
131
187
|
}
|
|
132
188
|
|
|
189
|
+
declare module 'preact' {
|
|
190
|
+
interface BaseProps {
|
|
191
|
+
children?: preact.ComponentChildren;
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
namespace createElement.JSX {
|
|
196
|
+
interface IntrinsicElements {
|
|
197
|
+
's-section': SectionProps & BaseProps;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare global {
|
|
203
|
+
interface HTMLElementTagNameMap {
|
|
204
|
+
's-section': SectionElement;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare module 'preact' {
|
|
215
|
+
namespace createElement.JSX {
|
|
216
|
+
interface IntrinsicElements {
|
|
217
|
+
's-qr-code': QRCodeProps;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare global {
|
|
223
|
+
interface HTMLElementTagNameMap {
|
|
224
|
+
's-qr-code': QRCodelement;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
229
|
+
onerror: QRCodeProps['onError'];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
233
|
+
}
|
|
234
|
+
|
|
133
235
|
declare module 'preact' {
|
|
134
236
|
namespace createElement.JSX {
|
|
135
237
|
interface IntrinsicElements {
|
|
@@ -543,7 +645,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
543
645
|
}
|
|
544
646
|
|
|
545
647
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
546
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
648
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
547
649
|
import type { ExtensionTargets } from '../extension-targets';
|
|
548
650
|
type Target = ExtensionTargets['Checkout::CartLines::RenderAfter'];
|
|
549
651
|
export type Api = Target['api'];
|
|
@@ -48,6 +48,62 @@ export interface TimeElement extends TimeProps, Omit<HTMLElement, 'id'> {
|
|
|
48
48
|
export interface TimeProps extends Pick<TimeProps$1, 'dateTime'> {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
declare module 'preact' {
|
|
52
|
+
interface BaseProps {
|
|
53
|
+
slot?: Lowercase<string>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
namespace createElement.JSX {
|
|
57
|
+
interface IntrinsicElements {
|
|
58
|
+
's-text-field': TextFieldProps & BaseProps;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare global {
|
|
64
|
+
interface HTMLElementTagNameMap {
|
|
65
|
+
's-text-field': TextFieldElement;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare module 'preact' {
|
|
70
|
+
interface BaseProps {
|
|
71
|
+
slot?: Lowercase<string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
namespace createElement.JSX {
|
|
75
|
+
interface IntrinsicElements {
|
|
76
|
+
's-icon': TextFieldIconProps & BaseProps;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
's-icon': TextFieldIconElement;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface TextFieldElement extends Omit<TextFieldProps, 'onBlur' | 'onChange' | 'onFocus' | 'onInput'>, Omit<HTMLElement, 'id' | 'onblur' | 'onchange' | 'onfocus' | 'oninput' | 'prefix'> {
|
|
88
|
+
onblur: TextFieldProps['onBlur'];
|
|
89
|
+
onchange: TextFieldProps['onChange'];
|
|
90
|
+
onfocus: TextFieldProps['onFocus'];
|
|
91
|
+
oninput: TextFieldProps['onInput'];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface TextFieldProps extends Pick<TextFieldProps$1, 'accessory' | 'autocomplete' | 'defaultValue' | 'details' | 'disabled' | 'error' | 'id' | 'icon' | 'label' | 'labelAccessibilityVisibility' | 'maxLength' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'prefix' | 'readOnly' | 'required' | 'suffix' | 'value'> {
|
|
95
|
+
icon?: TextFieldIconProps['type'];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface TextFieldIconElement extends TextFieldIconProps, Omit<HTMLElement, 'id'> {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface TextFieldIconProps extends Pick<IconProps$1, 'id' | 'size' | 'tone' | 'type'> {
|
|
102
|
+
tone?: Extract<IconProps$1['tone'], 'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'custom'>;
|
|
103
|
+
size?: Extract<IconProps$1['size'], 'small-200' | 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
104
|
+
type?: '' | Extract<IconProps$1['type'], 'alert-circle' | 'alert-triangle-filled' | 'alert-triangle' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up-right' | 'arrow-up' | 'bag' | 'bullet' | 'calendar' | 'camera' | 'caret-down' | 'cart' | 'cash-dollar' | 'categories' | 'check-circle' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle' | 'clipboard' | 'clock' | 'credit-card' | 'delete' | 'delivered' | 'delivery' | 'disabled' | 'discount' | 'edit' | 'email' | 'empty' | 'external' | 'filter' | 'geolocation' | 'gift-card' | 'globe' | 'grid' | 'image' | 'info-filled' | 'info' | 'list-bulleted' | 'location' | 'lock' | 'map' | 'menu-horizontal' | 'menu-vertical' | 'menu' | 'minus' | 'mobile' | 'note' | 'order' | 'organization' | 'plus' | 'profile' | 'question-circle-filled' | 'question-circle' | 'reorder' | 'reset' | 'return' | 'savings' | 'search' | 'settings' | 'star-filled' | 'star-half' | 'star' | 'store' | 'truck' | 'upload' | 'x-circle-filled' | 'x-circle' | 'x'>;
|
|
105
|
+
}
|
|
106
|
+
|
|
51
107
|
declare module 'preact' {
|
|
52
108
|
interface BaseProps {
|
|
53
109
|
children?: preact.ComponentChildren;
|
|
@@ -130,6 +186,52 @@ export interface SpinnerProps extends SpinnerProps$1 {
|
|
|
130
186
|
size?: Extract<SpinnerProps$1['size'], 'small-100' | 'small' | 'base' | 'large' | 'large-100'>;
|
|
131
187
|
}
|
|
132
188
|
|
|
189
|
+
declare module 'preact' {
|
|
190
|
+
interface BaseProps {
|
|
191
|
+
children?: preact.ComponentChildren;
|
|
192
|
+
slot?: Lowercase<string>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
namespace createElement.JSX {
|
|
196
|
+
interface IntrinsicElements {
|
|
197
|
+
's-section': SectionProps & BaseProps;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare global {
|
|
203
|
+
interface HTMLElementTagNameMap {
|
|
204
|
+
's-section': SectionElement;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface SectionElement extends SectionProps, Omit<HTMLElement, 'id'> {
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface SectionProps extends Pick<SectionProps$1, 'accessibilityLabel' | 'heading' | 'id'> {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare module 'preact' {
|
|
215
|
+
namespace createElement.JSX {
|
|
216
|
+
interface IntrinsicElements {
|
|
217
|
+
's-qr-code': QRCodeProps;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
declare global {
|
|
223
|
+
interface HTMLElementTagNameMap {
|
|
224
|
+
's-qr-code': QRCodelement;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface QRCodelement extends Omit<QRCodeProps, 'onError'>, Omit<HTMLElement, 'id' | 'onerror'> {
|
|
229
|
+
onerror: QRCodeProps['onError'];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export interface QRCodeProps extends QRCodeProps$1 {
|
|
233
|
+
}
|
|
234
|
+
|
|
133
235
|
declare module 'preact' {
|
|
134
236
|
namespace createElement.JSX {
|
|
135
237
|
interface IntrinsicElements {
|
|
@@ -543,7 +645,7 @@ export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title'> {
|
|
|
543
645
|
}
|
|
544
646
|
|
|
545
647
|
import { ReducedBorderSizeKeyword } from "../../../../../src/surfaces/checkout/components/Box";
|
|
546
|
-
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, SpinnerProps$1, StackProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
648
|
+
import { AbbreviationProps$1, BannerProps$1, BorderShorthand, BoxProps$1, ButtonProps$1, ClipboardItemProps$1, DropZoneProps$1, FormProps$1, HeadingProps$1, IconProps$1, ImageProps$1, LinkProps$1, ListItemProps$1, MaybeAllValuesShorthandProperty, OrderedListProps$1, ParagraphProps$1, PaymentIconProps$1, ProgressProps$1, QRCodeProps$1, SectionProps$1, SpinnerProps$1, StackProps$1, TextFieldProps$1, TextProps$1, TimeProps$1, UnorderedListProps$1 } from "../../../../../src/surfaces/checkout/components/components-shared";
|
|
547
649
|
import type { ExtensionTargets } from '../extension-targets';
|
|
548
650
|
type Target = ExtensionTargets['Checkout::Contact::RenderAfter'];
|
|
549
651
|
export type Api = Target['api'];
|