Skip to content

Commit

Permalink
Improve intros in unauthenticated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Feb 6, 2024
1 parent f0acc9b commit e83d924
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 28 deletions.
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 @@
---
---
32 changes: 12 additions & 20 deletions packages/shopify-app-remix/docs/generated/generated_docs_data.json
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 on requests that didn't come from Shopify, which enables apps to integrate with 3rd party services.\n\nBecause the request isn't sent by Shopify, this package isn't able to authenticate the request.\nIn that case, it is up to the app to obtain the shop domain from the 3rd party service in a secure way.\n\n> Caution:\n> This function doesn't perform **any** validation and shouldn't rely on raw user input.",
"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 on requests that didn't come from Shopify, which enables apps to integrate with 3rd party services.\n\nBecause the request isn't sent by Shopify, this package isn't able to authenticate the request.\nIn that case, it is up to the app to obtain the shop domain from the 3rd party service in a secure way.\n\n> Caution:\n> This function doesn't perform **any** validation and shouldn't rely on raw user input.",
"category": "Unauthenticated",
"type": "object",
"isVisualComponent": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ 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.",
"Allows interacting with the Admin API on requests that didn't come from Shopify, which enables apps to integrate with 3rd party services." +
"\n\nBecause the request isn't sent by Shopify, this package isn't able to authenticate the request." +
'\nIn that case, it is up to the app to obtain the shop domain from the 3rd party service in a secure way.' +
'\n\n> Caution:' +
"\n> This function doesn't perform **any** validation and shouldn't rely on raw user input.",
category: 'Unauthenticated',
type: 'object',
isVisualComponent: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ 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.",
"Allows interacting with the Storefront API on requests that didn't come from Shopify, which enables apps to integrate with 3rd party services." +
"\n\nBecause the request isn't sent by Shopify, this package isn't able to authenticate the request." +
'\nIn that case, it is up to the app to obtain the shop domain from the 3rd party service in a secure way.' +
'\n\n> Caution:' +
"\n> This function doesn't perform **any** validation and shouldn't rely on raw user input.",
category: 'Unauthenticated',
type: 'object',
isVisualComponent: false,
Expand Down

0 comments on commit e83d924

Please sign in to comment.