Skip to content

Commit b7a710b

Browse files
committed
Platform APIs: improve descriptions and JSDoc for 2025-10
Made-with: Cursor
1 parent 4526c8a commit b7a710b

17 files changed

Lines changed: 1534 additions & 1489 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

packages/ui-extensions/docs/surfaces/customer-account/generated/customer_account_ui_extensions/2025-10/generated_docs_data.json

Lines changed: 1355 additions & 1355 deletions
Large diffs are not rendered by default.

packages/ui-extensions/docs/surfaces/customer-account/generated/customer_account_ui_extensions/2025-10/generated_static_pages.json

Lines changed: 27 additions & 27 deletions
Large diffs are not rendered by default.

packages/ui-extensions/docs/surfaces/customer-account/reference/apis/analytics.doc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import {CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION} from '../helper.docs';
44

55
const data: ReferenceEntityTemplateSchema = {
66
name: 'Analytics API',
7-
description: 'The API for interacting with web pixels.',
7+
description: 'The Analytics API lets you track custom events and send visitor information to [Web Pixels](/docs/apps/marketing). Use this API to emit analytics events from your extension, such as tracking product views, button clicks, or conversion funnels.',
88
isVisualComponent: false,
99
category: 'Target APIs',
1010
subCategory: 'Platform APIs',
1111
type: 'API',
1212
definitions: [
1313
{
1414
title: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.title,
15-
description: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.description,
15+
description:
16+
'The `AnalyticsApi` object provides methods for tracking events and visitor data. Access the following properties on the `AnalyticsApi` object to emit custom analytics events and submit visitor information to Web Pixels.',
1617
type: 'Docs_Standard_AnalyticsApi',
1718
},
1819
],

packages/ui-extensions/docs/surfaces/customer-account/reference/apis/extension.doc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import {CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION} from '../helper.docs';
44

55
const data: ReferenceEntityTemplateSchema = {
66
name: 'Extension API',
7-
description: 'The API for interacting with the metadata of an extension.',
7+
description: 'The Extension API lets you access metadata about your extension at runtime, including its [target](/docs/api/customer-account-ui-extensions/{API_VERSION}/extension-targets-overview), version, and editor context. Use this API to conditionally render content based on where the extension is running or to retrieve configuration details.',
88
isVisualComponent: false,
99
category: 'Target APIs',
1010
subCategory: 'Platform APIs',
1111
type: 'API',
1212
definitions: [
1313
{
1414
title: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.title,
15-
description: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.description,
15+
description:
16+
'The `ExtensionApi` object provides metadata about the running extension. Access the following properties on the `ExtensionApi` object to read the extension target, editor context, and capabilities.',
1617
type: 'Docs_Standard_ExtensionApi',
1718
},
1819
],

packages/ui-extensions/docs/surfaces/customer-account/reference/apis/localization.doc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import {CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION} from '../helper.docs';
44

55
const data: ReferenceEntityTemplateSchema = {
66
name: 'Localization API',
7-
description: 'The API for localizing your extension.',
7+
description: 'The Localization API lets you adapt your extension to the language, country, and locale of the buyer. Use this API to [translate strings](/docs/apps/build/customer-accounts/localization/localize), format currencies and dates, and display region-specific content.',
88
isVisualComponent: false,
99
category: 'Target APIs',
1010
subCategory: 'Platform APIs',
1111
type: 'API',
1212
definitions: [
1313
{
1414
title: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.title,
15-
description: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.description,
15+
description:
16+
"The `LocalizationApi` object provides the buyer's language, country, and locale context. Access the following properties on the `LocalizationApi` object to translate content, format values, and adapt your extension to the buyer's region.",
1617
type: 'Docs_Standard_LocalizationApi',
1718
},
1819
],

packages/ui-extensions/docs/surfaces/customer-account/reference/apis/navigation.doc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';
33
const data: ReferenceEntityTemplateSchema = {
44
name: 'Navigation API',
55
overviewPreviewDescription:
6-
'The API provided to extensions to navigate to extensions or host page.',
7-
description: `The API provided to extensions to navigate to extensions or host page.`,
6+
'The Navigation API lets you navigate between pages in customer accounts, including other extensions and host pages.',
7+
description: `The Navigation API lets you navigate between pages in customer accounts, including other extensions and host pages. Use this API to link to order details, profile pages, or [custom full-page extensions](/docs/api/customer-account-ui-extensions/{API_VERSION}#custom-protocols). Full-page extensions also get access to the current navigation entry and history state.`,
88
isVisualComponent: false,
99
category: 'Target APIs',
1010
subCategory: 'Platform APIs',
@@ -13,7 +13,7 @@ const data: ReferenceEntityTemplateSchema = {
1313
{
1414
title: 'Navigation',
1515
description:
16-
'Navigation API for all extensions. [Refer to supported protocols](/docs/api/customer-account-ui-extensions/unstable#custom-protocols)',
16+
'The `Navigation` object provides methods for navigating between pages in customer accounts. Access the following properties on the `Navigation` object to link to order details, profile pages, or other extensions using [supported protocols](/docs/api/customer-account-ui-extensions/{API_VERSION}#custom-protocols).',
1717
type: 'Navigation',
1818
},
1919
],

packages/ui-extensions/docs/surfaces/customer-account/reference/apis/query.doc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import {CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION} from '../helper.docs';
44

55
const data: ReferenceEntityTemplateSchema = {
66
name: 'Storefront API',
7-
description: 'Querying the Storefront API.',
7+
description: 'The Storefront API lets you query the [Storefront GraphQL API](/docs/api/storefront) directly from your extension. Use this API to fetch product data, collection details, or other storefront information without routing requests through your app backend. Requires the [`api_access` capability](/docs/api/customer-account-ui-extensions/configuration#api-access).',
88
isVisualComponent: false,
99
category: 'Target APIs',
1010
subCategory: 'Platform APIs',
1111
type: 'API',
1212
definitions: [
1313
{
1414
title: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.title,
15-
description: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.description,
15+
description:
16+
'The `QueryApi` object provides a pre-authenticated function for querying the Storefront GraphQL API. Access the following properties on the `QueryApi` object to fetch product data, collections, and other storefront information directly from your extension.',
1617
type: 'Docs_Standard_QueryApi',
1718
},
1819
],

packages/ui-extensions/docs/surfaces/customer-account/reference/apis/session-token.doc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import {CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION} from '../helper.docs';
44

55
const data: ReferenceEntityTemplateSchema = {
66
name: 'Session Token API',
7-
description: 'The API for interacting with session tokens.',
7+
description: 'The Session Token API lets you authenticate requests between your extension and your app backend. Use session tokens to verify the identity of the customer and the shop context when making server-side API calls. The token includes claims such as the customer ID, shop domain, and expiration time.',
88
isVisualComponent: false,
99
category: 'Target APIs',
1010
subCategory: 'Platform APIs',
1111
type: 'API',
1212
definitions: [
1313
{
1414
title: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.title,
15-
description: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.description,
15+
description:
16+
'The `SessionTokenApi` object provides methods for retrieving signed JWTs. Access the following properties on the `SessionTokenApi` object to authenticate requests to your app backend with customer and shop context.',
1617
type: 'Docs_Standard_SessionTokenApi',
1718
},
1819
],

packages/ui-extensions/docs/surfaces/customer-account/reference/apis/settings.doc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ import {CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION} from '../helper.docs';
44

55
const data: ReferenceEntityTemplateSchema = {
66
name: 'Settings API',
7-
description: 'The API for interacting with merchant settings.',
7+
description: 'The Settings API lets you read merchant-defined configuration values for your extension. Use this API to build customizable extensions where merchants can control behavior, labels, or feature toggles through the [extension editor](/docs/api/customer-account-ui-extensions/configuration#settings-definition). Settings update in real time as merchants edit them.',
88
isVisualComponent: false,
99
category: 'Target APIs',
1010
subCategory: 'Platform APIs',
1111
type: 'API',
1212
definitions: [
1313
{
1414
title: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.title,
15-
description: CUSTOMER_ACCOUNT_STANDARD_API_DEFINITION.description,
15+
description:
16+
'The `SettingsApi` object provides merchant-defined configuration values. Access the following properties on the `SettingsApi` object to read settings that merchants configure in the extension editor, such as text labels, feature toggles, and display options.',
1617
type: 'Docs_Standard_SettingsApi',
1718
},
1819
],

0 commit comments

Comments
 (0)