From 0d23d3f3ce335574f6cf9a4d02a67276ac71eaa0 Mon Sep 17 00:00:00 2001 From: Paulo Margarido <64600052+paulomarg@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:04:50 -0400 Subject: [PATCH 1/3] Further improvements to docs --- .changeset/small-masks-try.md | 2 + .../docs/generated/generated_docs_data.json | 7178 +++++------------ .../generated/generated_static_pages.json | 23 +- .../docs/staticPages/admin.doc.ts | 6 +- .../docs/staticPages/index.doc.ts | 30 +- .../components/AppProvider/AppProvider.doc.ts | 8 +- .../components/AppProvider/AppProvider.tsx | 6 +- .../admin/authenticate.admin.api.doc.ts | 2 +- .../admin/authenticate.admin.billing.doc.ts | 4 +- .../admin/authenticate.admin.doc.ts | 25 +- .../authenticate/admin/billing/types.ts | 12 +- .../src/server/authenticate/admin/types.ts | 42 +- .../authenticate.public.app-proxy.doc.ts | 8 +- .../authenticate/public/appProxy/types.ts | 10 +- .../authenticate.public.checkout.doc.ts | 7 +- .../authenticate/public/checkout/types.ts | 24 +- .../webhooks/authenticate.webhooks.doc.ts | 7 +- .../src/server/authenticate/webhooks/types.ts | 15 +- .../src/server/config-types.ts | 25 +- .../src/server/shopify-app.doc.ts | 23 +- .../shopify-app-remix/src/server/types.ts | 82 +- .../src/server/unauthenticated/admin/types.ts | 7 +- .../admin/unauthenticated.admin.doc.ts | 8 +- 23 files changed, 2189 insertions(+), 5365 deletions(-) create mode 100644 .changeset/small-masks-try.md diff --git a/.changeset/small-masks-try.md b/.changeset/small-masks-try.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/small-masks-try.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/shopify-app-remix/docs/generated/generated_docs_data.json b/packages/shopify-app-remix/docs/generated/generated_docs_data.json index 81aa4d212d..840bedd556 100644 --- a/packages/shopify-app-remix/docs/generated/generated_docs_data.json +++ b/packages/shopify-app-remix/docs/generated/generated_docs_data.json @@ -1,56 +1,16 @@ [ { "name": "AppProvider", - "description": "Sets up the Polaris `AppProvider` and injects the App Bridge script.\n\nThis component extends the [`AppProvider`](https://polaris.shopify.com/components/utilities/app-provider) componentfrom Polaris, and accepts all of its props except for `linkComponent`, which is overridden to use the Remix `Link`component.\n\n\n\n\n\n\n\n\n\n", + "description": "Sets up the Polaris `AppProvider` and injects the App Bridge script.\n\nThis component extends the [`AppProvider`](https://polaris.shopify.com/components/utilities/app-provider) component from Polaris, and accepts all of its props except for `linkComponent`, which is overridden to use the Remix `Link` component.\n\n\n\n\n\n\n\n\n\n", "category": "Entrypoints", "type": "component", "isVisualComponent": false, "definitions": [ { - "title": "props", - "description": "React component that sets up App Bridge and Polaris.", - "type": "AppProviderGeneratedType", + "title": "AppProviderProps", + "description": "Props for the `AppProvider` component.", + "type": "AppProviderProps", "typeDefinitions": { - "AppProviderGeneratedType": { - "filePath": "/react/components/AppProvider/AppProvider.tsx", - "name": "AppProviderGeneratedType", - "description": "Sets up the Polaris `AppProvider` and injects the App Bridge script.\n\nThis component extends the [`AppProvider`](https://polaris.shopify.com/components/utilities/app-provider) componentfrom Polaris, and accepts all of its props except for `linkComponent`, which is overridden to use the Remix `Link`component.\n\n\n\n\n\n\n\n\n\n", - "params": [ - { - "name": "props", - "description": "", - "value": "AppProviderProps", - "filePath": "/react/components/AppProvider/AppProvider.tsx" - } - ], - "returns": { - "filePath": "/react/components/AppProvider/AppProvider.tsx", - "description": "", - "name": "", - "value": "" - }, - "value": "export function AppProvider(props: AppProviderProps) {\n const {\n children,\n apiKey,\n i18n,\n isEmbeddedApp = true,\n __APP_BRIDGE_URL = APP_BRIDGE_URL,\n ...polarisProps\n } = props;\n\n return (\n <>\n {isEmbeddedApp &&