Skip to content

Commit bcdf4db

Browse files
authored
Merge pull request #4306 from Shopify/remove-ca-intro-sentences-2025-10
Remove Props/Events/Slots intro sentences from shared .d.ts files (2025-10)
2 parents cebd2d1 + e26d4b2 commit bcdf4db

62 files changed

Lines changed: 158 additions & 633 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/ui-extensions/src/surfaces/checkout/components/Abbreviation.d.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {AbbreviationProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -28,10 +25,7 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
2825
}
2926

3027
declare const tagName = "s-abbreviation";
31-
/**
32-
* Configure the following properties on the abbreviation component.
33-
* @publicDocs
34-
*/
28+
/** @publicDocs */
3529
export interface AbbreviationProps extends Pick<AbbreviationProps$1, 'title' | 'id'> {
3630
}
3731
/** @publicDocs */

packages/ui-extensions/src/surfaces/checkout/components/Announcement.d.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {AnnouncementProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -65,9 +62,7 @@ declare const tagName = "s-announcement";
6562
/** @publicDocs */
6663
export interface AnnouncementEvents extends Pick<AnnouncementProps$1, 'onAfterToggle' | 'onDismiss' | 'onToggle'> {
6764
}
68-
/**
69-
* @publicDocs
70-
*/
65+
/** @publicDocs */
7166
export interface AnnouncementElementEvents {
7267
/**
7368
* A callback that fires when the element state changes, after any toggle animations have finished.
@@ -112,9 +107,7 @@ export interface AnnouncementMethods {
112107
*/
113108
dismiss: () => void;
114109
}
115-
/**
116-
* @publicDocs
117-
*/
110+
/** @publicDocs */
118111
export interface AnnouncementElementMethods {
119112
/**
120113
* Programmatically dismisses the announcement. This triggers the `dismiss` event callback.

packages/ui-extensions/src/surfaces/checkout/components/Badge.d.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {BadgeProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -37,9 +34,7 @@ declare const CHECKOUT_AVAILABLE_ICONS: readonly ["alert-circle", "alert-triangl
3734
export type ReducedIconTypes = (typeof CHECKOUT_AVAILABLE_ICONS)[number];
3835

3936
declare const tagName = "s-badge";
40-
/**
41-
* @publicDocs
42-
*/
37+
/** @publicDocs */
4338
export interface BadgeProps extends Pick<BadgeProps$1, 'color' | 'icon' | 'iconPosition' | 'id' | 'size' | 'tone'> {
4439
/**
4540
* The size of the badge.

packages/ui-extensions/src/surfaces/checkout/components/Banner.d.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {BannerProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -42,9 +39,7 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
4239
}) | null;
4340

4441
declare const tagName = "s-banner";
45-
/**
46-
* @publicDocs
47-
*/
42+
/** @publicDocs */
4843
export interface BannerElementProps extends Pick<BannerProps$1, 'collapsible' | 'dismissible' | 'heading' | 'hidden' | 'id' | 'tone'> {
4944
/**
5045
* Whether the banner content can be collapsed and expanded by the user. A collapsible banner conceals child elements initially, allowing the user to expand the banner to reveal them.
@@ -98,9 +93,7 @@ export interface BannerElementProps extends Pick<BannerProps$1, 'collapsible' |
9893
/** @publicDocs */
9994
export interface BannerEvents extends Pick<BannerProps$1, 'onAfterHide' | 'onDismiss'> {
10095
}
101-
/**
102-
* @publicDocs
103-
*/
96+
/** @publicDocs */
10497
export interface BannerElementEvents {
10598
/**
10699
* A callback that fires when the banner has fully hidden, including after any hide animations have completed.

packages/ui-extensions/src/surfaces/checkout/components/Box.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ export type ReducedColorKeyword = Extract<ColorKeyword, 'base'>;
3333
* @publicDocs
3434
*/
3535
export type BorderShorthand = ReducedBorderSizeKeyword | `${ReducedBorderSizeKeyword} ${ReducedColorKeyword}` | `${ReducedBorderSizeKeyword} ${ReducedColorKeyword} ${BorderStyleKeyword}`;
36-
/**
37-
* Used when an element does not have children.
38-
* @publicDocs
39-
*/
36+
/** @publicDocs */
4037
export interface BaseElementProps<TClass = HTMLElement> {
4138
key?: preact.Key;
4239
ref?: preact.Ref<TClass>;

packages/ui-extensions/src/surfaces/checkout/components/Button.d.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {ButtonProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -42,12 +39,7 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
4239
}) | null;
4340

4441
declare const tagName = "s-button";
45-
/**
46-
* The button component triggers actions or events, such as submitting forms, opening dialogs, or navigating to other pages. Use buttons to let users perform specific tasks or initiate interactions throughout the interface.
47-
*
48-
* Buttons support various visual styles, tones, and interaction patterns to communicate intent and hierarchy. They can also function as links, guiding users to internal or external destinations. For navigation-focused interactions within text, use [link](/docs/api/{API_NAME}/{API_VERSION}/polaris-web-components/actions/link). For grouping multiple related buttons, use [button group](/docs/api/{API_NAME}/{API_VERSION}/polaris-web-components/actions/button-group).
49-
* @publicDocs
50-
*/
42+
/** @publicDocs */
5143
export interface ButtonElementProps extends Pick<ButtonProps$1, 'accessibilityLabel' | 'command' | 'commandFor' | 'disabled' | 'href' | 'id' | 'inlineSize' | 'interestFor' | 'loading' | 'target' | 'tone' | 'type' | 'variant'> {
5244
target?: Extract<ButtonProps$1['target'], 'auto' | '_blank'>;
5345
tone?: Extract<ButtonProps$1['tone'], 'auto' | 'neutral' | 'critical'>;
@@ -57,10 +49,7 @@ export interface ButtonElementProps extends Pick<ButtonProps$1, 'accessibilityLa
5749
/** @publicDocs */
5850
export interface ButtonEvents extends Pick<ButtonProps$1, 'onClick'> {
5951
}
60-
/**
61-
* The button component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
62-
* @publicDocs
63-
*/
52+
/** @publicDocs */
6453
export interface ButtonElementEvents {
6554
/**
6655
* A callback fired when the button is clicked. This will be called before the action indicated by `type`.

packages/ui-extensions/src/surfaces/checkout/components/Checkbox.d.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {CheckboxProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -35,20 +32,14 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
3532
}) | null;
3633

3734
declare const tagName = "s-checkbox";
38-
/**
39-
* Configure the following properties on the checkbox component.
40-
* @publicDocs
41-
*/
35+
/** @publicDocs */
4236
export interface CheckboxElementProps extends Pick<CheckboxProps$1, 'accessibilityLabel' | 'checked' | 'command' | 'commandFor' | 'defaultChecked' | 'disabled' | 'error' | 'id' | 'label' | 'name' | 'required' | 'value'> {
4337
command?: Extract<CheckboxProps$1['command'], '--auto' | '--show' | '--hide' | '--toggle'>;
4438
}
4539
/** @publicDocs */
4640
export interface CheckboxEvents extends Pick<CheckboxProps$1, 'onChange'> {
4741
}
48-
/**
49-
* The checkbox component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
50-
* @publicDocs
51-
*/
42+
/** @publicDocs */
5243
export interface CheckboxElementEvents {
5344
/**
5445
* A callback fired when the checkbox value changes.

packages/ui-extensions/src/surfaces/checkout/components/Chip.d.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {ChipProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -28,16 +25,10 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
2825
}
2926

3027
declare const tagName = "s-chip";
31-
/**
32-
* Configure the following properties on the chip component.
33-
* @publicDocs
34-
*/
28+
/** @publicDocs */
3529
export interface ChipElementProps extends Pick<ChipProps$1, 'accessibilityLabel' | 'id'> {
3630
}
37-
/**
38-
* The chip component supports slots for additional content placement within the component. Learn more about [using slots](/docs/api/polaris/using-polaris-web-components#slots).
39-
* @publicDocs
40-
*/
31+
/** @publicDocs */
4132
export interface ChipElementSlots {
4233
/**
4334
* The graphic to display inside of the chip.
@@ -46,12 +37,7 @@ export interface ChipElementSlots {
4637
*/
4738
graphic?: HTMLElement;
4839
}
49-
/**
50-
* The chip component displays static labels, categories, or attributes that help classify and organize content. Use chip to show product tags, categories, or metadata near the items they describe, helping users identify items with similar properties.
51-
*
52-
* Chips support multiple visual variants for different levels of emphasis and can include icons to provide additional visual context. For system-generated status indicators, use [badge](/docs/api/{API_NAME}/{API_VERSION}/polaris-web-components/feedback-and-status-indicators/badge). For interactive or removable chips, use [clickable chip](/docs/api/{API_NAME}/{API_VERSION}/polaris-web-components/actions/clickable-chip).
53-
* @publicDocs
54-
*/
40+
/** @publicDocs */
5541
export interface ChipProps extends ChipElementProps {
5642
}
5743
/** @publicDocs */

packages/ui-extensions/src/surfaces/checkout/components/Choice.d.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {ChoiceProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -28,16 +25,10 @@ export interface BaseElementPropsWithChildren<TClass = HTMLElement> extends Base
2825
}
2926

3027
declare const tagName = "s-choice";
31-
/**
32-
* Configure the following properties on the choice component.
33-
* @publicDocs
34-
*/
28+
/** @publicDocs */
3529
export interface ChoiceProps extends Pick<ChoiceProps$1, 'accessibilityLabel' | 'defaultSelected' | 'disabled' | 'id' | 'selected' | 'error' | 'value'> {
3630
}
37-
/**
38-
* The choice component supports slots for additional content placement within the component. Learn more about [using slots](/docs/api/polaris/using-polaris-web-components#slots).
39-
* @publicDocs
40-
*/
31+
/** @publicDocs */
4132
export interface ChoiceElementSlots {
4233
/**
4334
* Additional text to provide context or guidance for the input.

packages/ui-extensions/src/surfaces/checkout/components/ChoiceList.d.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
/// <reference lib="DOM" />
1111
import type {ChoiceListProps$1} from './components-shared.d.ts';
1212

13-
/**
14-
* Used when an element does not have children.
15-
* @publicDocs
16-
*/
13+
/** @publicDocs */
1714
export interface BaseElementProps<TClass = HTMLElement> {
1815
key?: preact.Key;
1916
ref?: preact.Ref<TClass>;
@@ -42,19 +39,13 @@ export type CallbackEventListener<TTagName extends keyof HTMLElementTagNameMap,
4239
}) | null;
4340

4441
declare const tagName = "s-choice-list";
45-
/**
46-
* Configure the following properties on the choice list component.
47-
* @publicDocs
48-
*/
42+
/** @publicDocs */
4943
export interface ChoiceListElementProps extends Pick<ChoiceListProps$1, 'disabled' | 'error' | 'id' | 'label' | 'labelAccessibilityVisibility' | 'multiple' | 'name' | 'values' | 'variant'> {
5044
}
5145
/** @publicDocs */
5246
export interface ChoiceListEvents extends Pick<ChoiceListProps$1, 'onChange'> {
5347
}
54-
/**
55-
* The choice list component provides event callbacks for handling user interactions. Learn more about [handling events](/docs/api/polaris/using-polaris-web-components#handling-events).
56-
* @publicDocs
57-
*/
48+
/** @publicDocs */
5849
export interface ChoiceListElementEvents {
5950
/**
6051
* A callback fired when the choice list selection changes.

0 commit comments

Comments
 (0)