Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve intros in unauthenticated docs #631

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/sixty-pans-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
"name": "AppProviderProps",
"description": "",
"members": [
{
"filePath": "../../node_modules/@shopify/polaris/build/ts/src/components/AppProvider/AppProvider.d.ts",
"syntaxKind": "PropertySignature",
"name": "theme",
"value": "ThemeName",
"description": "",
"isOptional": true
},
{
"filePath": "../../node_modules/@shopify/polaris/build/ts/src/components/AppProvider/AppProvider.d.ts",
"syntaxKind": "PropertySignature",
Expand Down Expand Up @@ -48,7 +56,7 @@
"isOptional": true
}
],
"value": "export interface AppProviderProps {\n /** A locale object or array of locale objects that overrides default translations. If specifying an array then your primary language dictionary should come first, followed by your fallback language dictionaries */\n i18n: ConstructorParameters<typeof I18n>[0];\n /** A custom component to use for all links used by Polaris components */\n linkComponent?: LinkLikeComponent;\n /** For toggling features */\n features?: FeaturesConfig;\n /** Inner content of the application */\n children?: React.ReactNode;\n}"
"value": "export interface AppProviderProps {\n theme?: ThemeName;\n /** A locale object or array of locale objects that overrides default translations. If specifying an array then your primary language dictionary should come first, followed by your fallback language dictionaries */\n i18n: ConstructorParameters<typeof I18n>[0];\n /** A custom component to use for all links used by Polaris components */\n linkComponent?: LinkLikeComponent;\n /** For toggling features */\n features?: FeaturesConfig;\n /** Inner content of the application */\n children?: React.ReactNode;\n}"
},
"TranslationDictionary": {
"filePath": "../../node_modules/@shopify/polaris/build/ts/src/utilities/i18n/I18n.d.ts",
Expand Down Expand Up @@ -79,25 +87,9 @@
"filePath": "../../node_modules/@shopify/polaris/build/ts/src/utilities/features/types.d.ts",
"name": "[key: string]",
"value": "boolean | undefined"
},
{
"filePath": "../../node_modules/@shopify/polaris/build/ts/src/utilities/features/types.d.ts",
"syntaxKind": "PropertySignature",
"name": "polarisSummerEditions2023",
"value": "boolean",
"description": "",
"isOptional": true
},
{
"filePath": "../../node_modules/@shopify/polaris/build/ts/src/utilities/features/types.d.ts",
"syntaxKind": "PropertySignature",
"name": "polarisSummerEditions2023ShadowBevelOptOut",
"value": "boolean",
"description": "",
"isOptional": true
}
],
"value": "export interface FeaturesConfig {\n polarisSummerEditions2023?: boolean;\n polarisSummerEditions2023ShadowBevelOptOut?: boolean;\n [key: string]: boolean | undefined;\n}"
"value": "export interface FeaturesConfig {\n [key: string]: boolean | undefined;\n}"
}
}
}
Expand Down Expand Up @@ -14700,7 +14692,7 @@
},
{
"name": "Unauthenticated admin",
"description": "Allows interacting with the Admin API on requests that didn't come from Shopify.\n\n> Caution: This should only be used for Requests that do not originate from Shopify.\n> You must do your own authentication before using this method.\n>This function doesn't perform **any** validation and shouldn't rely on unvalidated user input.",
"description": "Allows interacting with the Admin API when working outside of Shopify requests.\nThis enables apps to integrate with 3rd party services and perform background tasks.\n\n> Caution:\n> This function doesn't perform **any** validation and shouldn't rely on raw user input.\n\nWhen using this function, consider the following:\n\n#### Background tasks\n\nApps should ensure that the shop domain is authenticated when enqueueing jobs.\n\n#### 3rd party service requests\n\nApps must obtain the shop domain from the 3rd party service in a secure way.",
"category": "Unauthenticated",
"type": "object",
"isVisualComponent": false,
Expand Down Expand Up @@ -15448,7 +15440,7 @@
},
{
"name": "Unauthenticated storefront",
"description": "Allows interacting with the Storefront API on requests that didn't come from Shopify.\n\n> Caution: This should only be used for Requests that do not originate from Shopify.\n> You must do your own authentication before using this method.\n>This function doesn't perform **any** validation and shouldn't rely on unvalidated user input.",
"description": "Allows interacting with the Storefront API when working outside of Shopify requests.\nThis enables apps to integrate with 3rd party services and perform background tasks.\n\n> Caution:\n> This function doesn't perform **any** validation and shouldn't rely on raw user input.\n\nWhen using this function, consider the following:\n\n#### Background tasks\n\nApps should ensure that the shop domain is authenticated when enqueueing jobs.\n\n#### 3rd party service requests\n\nApps must obtain the shop domain from the 3rd party service in a secure way.",
"category": "Unauthenticated",
"type": "object",
"isVisualComponent": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';

const data: ReferenceEntityTemplateSchema = {
name: 'Unauthenticated admin',
description:
"Allows interacting with the Admin API on requests that didn't come from Shopify." +
'\n\n> Caution: This should only be used for Requests that do not originate from Shopify.' +
'\n> You must do your own authentication before using this method.' +
"\n>This function doesn't perform **any** validation and shouldn't rely on unvalidated user input.",
description: `Allows interacting with the Admin API when working outside of Shopify requests.
This enables apps to integrate with 3rd party services and perform background tasks.

> Caution:
> This function doesn't perform **any** validation and shouldn't rely on raw user input.

When using this function, consider the following:

#### Background tasks

Apps should ensure that the shop domain is authenticated when enqueueing jobs.

#### 3rd party service requests

Apps must obtain the shop domain from the 3rd party service in a secure way.`,
category: 'Unauthenticated',
type: 'object',
isVisualComponent: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@ import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs';

const data: ReferenceEntityTemplateSchema = {
name: 'Unauthenticated storefront',
description:
"Allows interacting with the Storefront API on requests that didn't come from Shopify." +
'\n\n> Caution: This should only be used for Requests that do not originate from Shopify.' +
'\n> You must do your own authentication before using this method.' +
"\n>This function doesn't perform **any** validation and shouldn't rely on unvalidated user input.",
description: `Allows interacting with the Storefront API when working outside of Shopify requests.
This enables apps to integrate with 3rd party services and perform background tasks.

> Caution:
> This function doesn't perform **any** validation and shouldn't rely on raw user input.

When using this function, consider the following:

#### Background tasks

Apps should ensure that the shop domain is authenticated when enqueueing jobs.

#### 3rd party service requests

Apps must obtain the shop domain from the 3rd party service in a secure way.`,
category: 'Unauthenticated',
type: 'object',
isVisualComponent: false,
Expand Down
Loading