diff --git a/scripts/mintlify-post-processing/copy-to-local-docs.js b/scripts/mintlify-post-processing/copy-to-local-docs.js index a50ed8a..a525159 100644 --- a/scripts/mintlify-post-processing/copy-to-local-docs.js +++ b/scripts/mintlify-post-processing/copy-to-local-docs.js @@ -151,6 +151,7 @@ function updateDocsJson(repoDir, sdkFiles) { const sdkReferencePages = Array.from(groupMap.entries()).map( ([groupName, pages]) => ({ group: groupName, + expanded: true, pages: pages.sort(), // Sort pages alphabetically within each group }) ); diff --git a/scripts/mintlify-post-processing/file-processing/file-processing.js b/scripts/mintlify-post-processing/file-processing/file-processing.js index 4599f7f..158843f 100755 --- a/scripts/mintlify-post-processing/file-processing/file-processing.js +++ b/scripts/mintlify-post-processing/file-processing/file-processing.js @@ -361,6 +361,7 @@ function generateDocsJson(docsContent) { if (docsContent.functions.length > 0 && categoryMap.functions) { groups.push({ group: getGroupName("functions", categoryMap), + expanded: true, pages: docsContent.functions, }); } @@ -368,6 +369,7 @@ function generateDocsJson(docsContent) { if (docsContent.interfaces.length > 0 && categoryMap.interfaces) { groups.push({ group: getGroupName("interfaces", categoryMap), + expanded: true, pages: docsContent.interfaces, }); } @@ -375,6 +377,7 @@ function generateDocsJson(docsContent) { if (docsContent.classes.length > 0 && categoryMap.classes) { groups.push({ group: getGroupName("classes", categoryMap), + expanded: true, pages: docsContent.classes, }); } @@ -391,6 +394,7 @@ function generateDocsJson(docsContent) { } else { groups.push({ group: groupName, + expanded: true, pages: docsContent.typeAliases, }); } diff --git a/src/modules/auth.types.ts b/src/modules/auth.types.ts index 52dedec..3ced34a 100644 --- a/src/modules/auth.types.ts +++ b/src/modules/auth.types.ts @@ -193,22 +193,29 @@ export interface AuthModule { * Supported providers: * - `'google'` - {@link https://developers.google.com/identity/protocols/oauth2 | Google OAuth}. Enabled by default. * - `'microsoft'` - {@link https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow | Microsoft OAuth}. Enable Microsoft in your app's authentication settings before specifying this provider. - * - `'facebook'` - {@link https://developers.facebook.com/docs/facebook-login | Facebook Login}. Enable this in your app's authentication settings before using. + * - `'facebook'` - {@link https://developers.facebook.com/docs/facebook-login | Facebook Login}. Enable Facebook in your app's authentication settings before using. + * - `'apple'` - {@link https://developer.apple.com/sign-in-with-apple/ | Sign in with Apple}. Enable Apple in your app's authentication settings before using this provider. * - * @param provider - The authentication provider to use: `'google'`, `'microsoft'`, or `'facebook'`. + * @param provider - The authentication provider to use: `'google'`, `'microsoft'`, `'facebook'`, or `'apple'`. * @param fromUrl - URL to redirect to after successful authentication. Defaults to `'/'`. * * @example * ```typescript - * // Login with Google and return to current page + * // Google * base44.auth.loginWithProvider('google', window.location.pathname); * ``` * * @example * ```typescript - * // Login with Microsoft and redirect to dashboard + * // Microsoft * base44.auth.loginWithProvider('microsoft', '/dashboard'); * ``` + * + * @example + * ```typescript + * // Apple + * base44.auth.loginWithProvider('apple', '/dashboard'); + * ``` */ loginWithProvider(provider: string, fromUrl?: string): void;