diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 7f4a2b46f..b00c28ad4 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -10,7 +10,6 @@ on: paths: - 'website/**' - '.github/workflows/site.yml' - - 'jsdoc2md.json' - 'typedoc.json' - 'package.json' - 'packages/**' @@ -26,7 +25,6 @@ permissions: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: # The type of runner that the job will run on name: Build Docusaurus @@ -73,7 +71,42 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: ./website/build - + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Get yarn cache directory path (root) + id: yarn-cache-dir-path-root + run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT + - uses: actions/cache@v3 + with: + path: ${{ steps.yarn-cache-dir-path-root.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: yarn install (root) + run: yarn install --immutable + - name: Build all pkg + run: yarn release-build + - name: Build docs + run: yarn build:doc + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT + working-directory: ./website + - uses: actions/cache@v3 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-site-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn-site- + - run: yarn install --immutable + working-directory: ./website + - run: yarn typecheck + working-directory: ./website deploy: environment: name: github-pages diff --git a/.gitignore b/.gitignore index b4754b900..0e0a5b5ab 100644 --- a/.gitignore +++ b/.gitignore @@ -15,16 +15,6 @@ node_modules !.yarn/releases !.yarn/sdks !.yarn/versions -proxies/*/.yarn/* -!proxies/*/.yarn/patches -!proxies/*/.yarn/plugins -!proxies/*/.yarn/releases -!proxies/*/.yarn/sdks -!proxies/*/.yarn/versions -site/api_reference/generated/classes -site/api_reference/generated/enums -site/api_reference/generated/interfaces -site/api_reference/generated/modules website/api_reference/generated/classes/*.md website/api_reference/generated/enums/*.md website/api_reference/generated/interfaces/*.md diff --git a/jsdoc2md.json b/jsdoc2md.json deleted file mode 100644 index 5b74e8bcf..000000000 --- a/jsdoc2md.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "babel": { - "babelrc": false, - "extensions": ["ts", "tsx"], - "ignore": ["**/*.(test|spec).ts"], - "plugins": ["@babel/proposal-class-properties", "@babel/proposal-object-rest-spread"], - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "node": true - } - } - ], - "@babel/preset-typescript" - ] - }, - "plugins": ["plugins/markdown", "node_modules/jsdoc-babel"], - "source": { - "excludePattern": ".+\\.(test|spec).ts", - "includePattern": ".+\\.ts(doc|x)?$" - } -} diff --git a/package.json b/package.json index aae59383d..016b11371 100644 --- a/package.json +++ b/package.json @@ -44,12 +44,8 @@ }, "lint-staged": { "*.{js,jsx,ts,tsx,md,html,css}": "yarn run prettier --ignore-unknown --write", - "*.{js,ts,tsx}": [ - "yarn run eslint --fix --config ./packages/eslint-config-discordeno/index.js --resolve-plugins-relative-to ." - ] + "!(website)/**/*.{js,ts,tsx}": "yarn run eslint --fix --config ./packages/eslint-config-discordeno/index.js --resolve-plugins-relative-to .", + "website/**/*.{js,ts,tsx}": "yarn run eslint --fix --config ./website/.eslintrc.yml --resolve-plugins-relative-to ./website" }, - "packageManager": "yarn@4.0.2", - "dependencies": { - "typedoc-plugin-missing-exports": "^2.2.0" - } + "packageManager": "yarn@4.0.2" } diff --git a/packages/bot/src/optionalize.ts b/packages/bot/src/optionalize.ts index 2319d502f..a140b076e 100644 --- a/packages/bot/src/optionalize.ts +++ b/packages/bot/src/optionalize.ts @@ -1,4 +1,4 @@ -type OptionalizeAux = Id< +export type OptionalizeAux = Id< { [K in KeysWithUndefined]?: Optionalize } & { diff --git a/packages/bot/src/transformers/index.ts b/packages/bot/src/transformers/index.ts index deb0fc5b3..8151c2f89 100644 --- a/packages/bot/src/transformers/index.ts +++ b/packages/bot/src/transformers/index.ts @@ -12,6 +12,7 @@ export * from './channel.js' export * from './component.js' export * from './embed.js' export * from './emoji.js' +export * from './entitlement.js' export * from './gatewayBot.js' export * from './guild.js' export * from './integration.js' @@ -19,11 +20,14 @@ export * from './interaction.js' export * from './invite.js' export * from './member.js' export * from './message.js' +export * from './onboarding.js' export * from './presence.js' export * from './reverse/index.js' export * from './role.js' export * from './scheduledEvent.js' +export * from './sku.js' export * from './stageInstance.js' +export * from './stageInviteInstance.js' export * from './sticker.js' export * from './team.js' export * from './template.js' diff --git a/packages/rest/src/types.ts b/packages/rest/src/types.ts index cb4e51177..4a9e28aa3 100644 --- a/packages/rest/src/types.ts +++ b/packages/rest/src/types.ts @@ -52,6 +52,9 @@ import type { CamelizedDiscordVoiceRegion, CamelizedDiscordWebhook, CamelizedDiscordWelcomeScreen, + // Type is required for typedoc + // eslint-disable-next-line @typescript-eslint/no-unused-vars + ChannelTypes, CreateApplicationCommand, CreateAutoModerationRuleOptions, CreateChannelInvite, @@ -97,6 +100,9 @@ import type { GetScheduledEvents, GetUserGuilds, GetWebhookMessageOptions, + // Type is required for typedoc + // eslint-disable-next-line @typescript-eslint/no-unused-vars + GuildFeatures, InteractionCallbackData, InteractionResponse, ListArchivedThreads, @@ -110,6 +116,12 @@ import type { ModifyGuildTemplate, ModifyRolePositions, ModifyWebhook, + // Type is required for typedoc + // eslint-disable-next-line @typescript-eslint/no-unused-vars + ScheduledEventEntityType, + // Type is required for typedoc + // eslint-disable-next-line @typescript-eslint/no-unused-vars + ScheduledEventStatus, SearchMembers, StartThreadWithMessage, StartThreadWithoutMessage, @@ -390,7 +402,7 @@ export interface RestManager { * @param channelId - The ID of the forum channel to create the thread within. * @param options - The parameters for the creation of the thread. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of {@link CamelizedDiscordChannel} with a nested {@link Message} object. + * @returns An instance of {@link CamelizedDiscordChannel} with a nested {@link CamelizedDiscordChannel} object. * * @remarks * Requires the `CREATE_MESSAGES` permission. @@ -406,7 +418,7 @@ export interface RestManager { * * @param command - The command to create. * @param options - Additional options for the endpoint - * @returns An instance of the created {@link ApplicationCommand}. + * @returns An instance of the created {@link CamelizedDiscordApplicationCommand}. * * @remarks * ⚠️ Creating a command with the same name as an existing command for your application will overwrite the old command. @@ -442,7 +454,7 @@ export interface RestManager { * @param command - The command to create. * @param guildId - The ID of the guild to create the command for. * @param options - Additional options for the endpoint - * @returns An instance of the created {@link ApplicationCommand}. + * @returns An instance of the created {@link CamelizedDiscordApplicationCommand}. * * @remarks * ⚠️ Creating a command with the same name as an existing command for your application will overwrite the old command. @@ -463,7 +475,7 @@ export interface RestManager { * * @param templateCode - The code of the template. * @param options - The parameters for the creation of the guild. - * @returns An instance of the created {@link Guild}. + * @returns An instance of the created {@link CamelizedDiscordGuild}. * * @remarks * ⚠️ This route can only be used by bots in __fewer than 10 guilds__. @@ -494,7 +506,7 @@ export interface RestManager { * * @param guildId - The ID of the guild to create the template from. * @param options - The parameters for the creation of the template. - * @returns An instance of the created {@link Template}. + * @returns An instance of the created {@link CamelizedDiscordTemplate}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -545,12 +557,12 @@ export interface RestManager { * @param guildId - The ID of the guild to create the scheduled event in. * @param options - The parameters for the creation of the scheduled event. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of the created {@link ScheduledEvent}. + * @returns An instance of the created {@link CamelizedDiscordScheduledEvent}. * * @remarks * Requires the `MANAGE_EVENTS` permission. * - * A guild can only have a maximum of 100 events with a status of {@link ScheduledEventStatus.Active} or {@link ScheduledEventStatus.Scheduled} (inclusive). + * A guild can only have a maximum of 100 events with a status of {@link ScheduledEventStatus}.Active or {@link ScheduledEventStatus}.Scheduled (inclusive). * * Fires a _Guild Scheduled Event Create_ gateway event. * @@ -610,7 +622,7 @@ export interface RestManager { * * @param channelId - The ID of the channel to delete. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of the deleted {@link Channel}. + * @returns nothing * * @remarks * For community guilds, the _Rules_, _Guidelines_ and _Community Update_ channels cannot be deleted. @@ -970,7 +982,7 @@ export interface RestManager { * @param commandId - The ID of the command to edit the permissions of. * @param bearerToken - The bearer token to use to make the request. * @param options - The parameters for the edit of the command permissions. - * @returns An instance of the edited {@link ApplicationCommandPermission}. + * @returns An instance of the edited {@link CamelizedDiscordGuildApplicationCommandPermissions}. * * @remarks * The bearer token requires the `applications.commands.permissions.update` scope to be enabled, and to have access to the guild whose ID has been provided in the parameters. @@ -1019,7 +1031,7 @@ export interface RestManager { * @returns An instance of the edited {@link CamelizedDiscordChannel}. * * @remarks - * If editing a channel of type {@link ChannelTypes.GroupDm}: + * If editing a channel of type {@link ChannelTypes}.GroupDm: * - Fires a _Channel Update_ gateway event. * * If editing a thread channel: @@ -1035,7 +1047,7 @@ export interface RestManager { * * - Only permissions the bot user has in the guild or parent channel can be allowed/denied __unless__ the bot user has a `MANAGE_ROLES` permission override in the channel. * - * - If modifying a channel of type {@link ChannelTypes.GuildCategory}: + * - If modifying a channel of type {@link ChannelTypes}.GuildCategory: * - Fires a _Channel Update_ gateway event for each child channel impacted in this change. * - Otherwise: * - Fires a _Channel Update_ gateway event. @@ -1096,7 +1108,7 @@ export interface RestManager { * @param token - The interaction token to use, provided in the original interaction. * @param messageId - The ID of the message to edit. * @param options - The parameters for the edit of the message. - * @returns An instance of the edited {@link Message}. + * @returns An instance of the edited {@link CamelizedDiscordMessage}. * * @remarks * Unlike `editMessage()`, this endpoint allows the bot user to act without needing to see the channel the message is in. @@ -1113,7 +1125,7 @@ export interface RestManager { * * @param commandId - The ID of the command to edit. * @param options - The parameters for the edit of the command. - * @returns An instance of the edited {@link ApplicationCommand}. + * @returns An instance of the edited {@link CamelizedDiscordApplicationCommand}. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-global-application-command} */ @@ -1125,12 +1137,12 @@ export interface RestManager { * @param shardId - The ID of the shard the guild is in. * @param options - The parameters for the edit of the guild. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of the edited {@link Guild}. + * @returns An instance of the edited {@link CamelizedDiscordGuild}. * * @remarks * Requires the `MANAGE_GUILD` permission. * - * If attempting to add or remove the {@link GuildFeatures.Community} feature: + * If attempting to add or remove the {@link GuildFeatures}.Community feature: * - Requires the `ADMINISTRATOR` permission. * * Fires a _Guild Update_ gateway event. @@ -1144,7 +1156,7 @@ export interface RestManager { * @param guildId - The ID of the guild the command is registered in. * @param commandId - The ID of the command to edit. * @param options - The parameters for the edit of the command. - * @returns An instance of the edited {@link ApplicationCommand}. + * @returns An instance of the edited {@link CamelizedDiscordApplicationCommand}. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#edit-guild-application-command} */ @@ -1183,7 +1195,7 @@ export interface RestManager { * @param guildId - The ID of the guild to edit a template of. * @param templateCode - The code of the template to edit. * @param options - The parameters for the edit of the template. - * @returns An instance of the edited {@link Template}. + * @returns An instance of the edited {@link CamelizedDiscordTemplate}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -1199,7 +1211,7 @@ export interface RestManager { * @param channelId - The ID of the channel to edit the message in. * @param messageId - The IDs of the message to edit. * @param options - The parameters for the edit of the message. - * @returns An instance of the edited {@link Message}. + * @returns An instance of the edited {@link CamelizedDiscordMessage}. * * @remarks * If editing another user's message: @@ -1216,7 +1228,7 @@ export interface RestManager { * * @param token - The interaction token to use, provided in the original interaction. * @param options - The parameters for the edit of the response. - * @returns An instance of the edited {@link Message}. + * @returns An instance of the edited {@link CamelizedDiscordMessage}. * * @remarks * Unlike `editMessage()`, this endpoint allows the bot user to act without needing to see the channel the message is in. @@ -1303,14 +1315,14 @@ export interface RestManager { * @param guildId - The ID of the guild to edit the scheduled event in. * @param eventId - The ID of the scheduled event to edit. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of the edited {@link ScheduledEvent}. + * @returns An instance of the edited {@link CamelizedDiscordScheduledEvent}. * * @remarks * Requires the `MANAGE_EVENTS` permission. * * To start or end an event, modify the event's `status` property. * - * The `entity_metadata` property is discarded for events whose `entity_type` is not {@link ScheduledEventEntityType.External}. + * The `entity_metadata` property is discarded for events whose `entity_type` is not {@link ScheduledEventEntityType}.External. * * Fires a _Guild Scheduled Event Update_ gateway event. * @@ -1426,7 +1438,7 @@ export interface RestManager { * @param guildId - The ID of the guild to edit the welcome screen of. * @param options - The parameters for the edit of the welcome screen. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of the edited {@link WelcomeScreen}. + * @returns An instance of the edited {@link CamelizedDiscordWelcomeScreen}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -1445,7 +1457,7 @@ export interface RestManager { * * @param guildId - The ID of the guild to edit the settings of the widget of. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of the edited {@link GuildWidgetSettings}. + * @returns An instance of the edited {@link CamelizedDiscordGuildWidgetSettings}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -1544,7 +1556,7 @@ export interface RestManager { * @param guildId - The ID of the guild the command is registered in. * @param commandId - The ID of the command to get the permissions of. * @param options - The OAuth2 related optional parameters for the endpoint - * @returns An instance of {@link ApplicationCommandPermission}. + * @returns An instance of {@link CamelizedDiscordGuildApplicationCommandPermissions}. * * @remarks * Then specifying the options object the access token passed-in requires the OAuth2 scope `applications.commands.permissions.update` @@ -1561,7 +1573,7 @@ export interface RestManager { * * @param guildId - The ID of the guild to get the permissions objects of. * @param options - The OAuth2 related optional parameters for the endpoint - * @returns A collection of {@link ApplicationCommandPermission} objects assorted by command ID. + * @returns A collection of {@link CamelizedDiscordGuildApplicationCommandPermissions} objects assorted by command ID. * * @remarks * Then specifying the options object the access token passed-in requires the OAuth2 scope `applications.commands.permissions.update` @@ -1577,7 +1589,7 @@ export interface RestManager { * * @param guildId - The ID of the guild to get the audit log of. * @param options - The parameters for the fetching of the audit log. - * @returns An instance of {@link AuditLog}. + * @returns An instance of {@link CamelizedDiscordAuditLog}. * * @remarks * Requires the `VIEW_AUDIT_LOG` permission. @@ -1613,7 +1625,7 @@ export interface RestManager { /** * Gets the list of available voice regions. * - * @returns A collection of {@link VoiceRegions | VoiceRegion} objects assorted by voice region ID. + * @returns A collection of {@link CamelizedDiscordVoiceRegion} objects assorted by voice region ID. */ getAvailableVoiceRegions: () => Promise /** @@ -1651,7 +1663,7 @@ export interface RestManager { * @returns An instance of {@link CamelizedDiscordChannel}. * * @remarks - * If the channel is a thread, a {@link ThreadMember} object is included in the result. + * If the channel is a thread, a {@link CamelizedDiscordThreadMember} object is included in the result. * * @see {@link https://discord.com/developers/docs/resources/channel#get-channel} */ @@ -1750,7 +1762,7 @@ export interface RestManager { * * @param token - The interaction token to use, provided in the original interaction. * @param messageId - The ID of the message to get. - * @returns An instance of {@link Message}. + * @returns An instance of {@link CamelizedDiscordMessage}. * * @remarks * Unlike `getMessage()`, this endpoint allows the bot user to act without: @@ -1768,7 +1780,7 @@ export interface RestManager { * Gets a global application command by its ID. * * @param commandId - The ID of the command to get. - * @returns An instance of {@link ApplicationCommand}. + * @returns An instance of {@link CamelizedDiscordApplicationCommand}. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-command} */ @@ -1776,7 +1788,7 @@ export interface RestManager { /** * Gets the list of your bot's global application commands. * - * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. + * @returns A collection of {@link CamelizedDiscordApplicationCommand} objects assorted by command ID. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands} */ @@ -1786,7 +1798,7 @@ export interface RestManager { * * @param guildId - The ID of the guild to get. * @param options - The parameters for the fetching of the guild. - * @returns An instance of {@link Guild}. + * @returns An instance of {@link CamelizedDiscordGuild}. * * @see {@link https://discord.com/developers/docs/resources/guild#get-guild} */ @@ -1796,7 +1808,7 @@ export interface RestManager { * * @param bearerToken - The access token of the user, if unspecified the bot token is used instead * @param options - The parameters for the fetching of the guild. - * @returns An instance of {@link Guild}. + * @returns An instance of {@link CamelizedDiscordGuild}. * * @remarks * If used with an access token, the token needs to have the `guilds` scope @@ -1809,7 +1821,7 @@ export interface RestManager { * * @param guildId - The ID of the guild the command is registered in. * @param commandId - The ID of the command to get. - * @returns An instance of {@link ApplicationCommand}. + * @returns An instance of {@link CamelizedDiscordApplicationCommand}. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-guild-application-command} */ @@ -1818,7 +1830,7 @@ export interface RestManager { * Gets the list of application commands registered by your bot in a guild. * * @param guildId - The ID of the guild the commands are registered in. - * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. + * @returns A collection of {@link CamelizedDiscordApplicationCommand} objects assorted by command ID. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-commandss} */ @@ -1827,7 +1839,7 @@ export interface RestManager { * Gets the preview of a guild by a guild's ID. * * @param guildId - The ID of the guild to get the preview of. - * @returns An instance of {@link GuildPreview}. + * @returns An instance of {@link CamelizedDiscordGuildPreview}. * * @remarks * If the bot user is not in the guild, the guild must be discoverable. @@ -1862,7 +1874,7 @@ export interface RestManager { * Gets a template by its code. * * @param templateCode - The code of the template to get. - * @returns An instance of {@link Template}. + * @returns An instance of {@link CamelizedDiscordTemplate}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -1874,7 +1886,7 @@ export interface RestManager { * Gets the list of templates for a guild. * * @param guildId - The ID of the guild to get the list of templates for. - * @returns A collection of {@link Template} objects assorted by template code. + * @returns A collection of {@link CamelizedDiscordTemplate} objects assorted by template code. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -1898,7 +1910,7 @@ export interface RestManager { * Gets the list of integrations attached to a guild. * * @param guildId - The ID of the guild to get the list of integrations from. - * @returns A collection of {@link Integration} objects assorted by integration ID. + * @returns A collection of {@link CamelizedDiscordIntegration} objects assorted by integration ID. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -1920,7 +1932,7 @@ export interface RestManager { * Gets the list of invites for a guild. * * @param guildId - The ID of the guild to get the invites from. - * @returns A collection of {@link InviteMetadata | Invite} objects assorted by invite code. + * @returns A collection of {@link CamelizedDiscordInviteMetadata} objects assorted by invite code. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -1933,7 +1945,7 @@ export interface RestManager { * * @param channelId - The ID of the channel from which to get the message. * @param messageId - The ID of the message to get. - * @returns An instance of {@link Message}. + * @returns An instance of {@link CamelizedDiscordMessage}. * * @remarks * Requires that the bot user be able to see the contents of the channel in which the message was posted. @@ -1949,7 +1961,7 @@ export interface RestManager { * * @param channelId - The ID of the channel from which to get the messages. * @param options - The parameters for the fetching of the messages. - * @returns A collection of {@link Message} objects assorted by message ID. + * @returns A collection of {@link CamelizedDiscordMessage} objects assorted by message ID. * * @remarks * Requires that the bot user be able to see the contents of the channel in which the messages were posted. @@ -1963,7 +1975,7 @@ export interface RestManager { /** * Returns the list of sticker packs available. * - * @returns A collection of {@link StickerPack} objects assorted by sticker ID. + * @returns A collection of {@link CamelizedDiscordStickerPack} objects assorted by sticker ID. * * @see {@link https://discord.com/developers/docs/resources/sticker#list-sticker-packs} */ @@ -1972,7 +1984,7 @@ export interface RestManager { * Gets the initial message response to an interaction. * * @param token - The interaction token to use, provided in the original interaction. - * @returns An instance of {@link Message}. + * @returns An instance of {@link CamelizedDiscordMessage}. * * @remarks * Unlike `getMessage()`, this endpoint allows the bot user to act without: @@ -1988,7 +2000,7 @@ export interface RestManager { * Gets the pinned messages for a channel. * * @param channelId - The ID of the channel to get the pinned messages for. - * @returns A collection of {@link Message} objects assorted by message ID. + * @returns A collection of {@link CamelizedDiscordMessage} objects assorted by message ID. * * @remarks * Requires that the bot user be able to see the contents of the channel in which the messages were posted. @@ -2010,7 +2022,7 @@ export interface RestManager { * Requires the `READ_MESSAGE_HISTORY` permission. * Requires the `MANAGE_THREADS` permission. * - * Returns threads of type {@link ChannelTypes.GuildPrivateThread}. + * Returns threads of type {@link ChannelTypes}.GuildPrivateThread. * * Threads are ordered by the `archive_timestamp` property included in the metadata of the object in descending order. * @@ -2027,7 +2039,7 @@ export interface RestManager { * @remarks * Requires the `READ_MESSAGE_HISTORY` permission. * - * Returns threads of type {@link ChannelTypes.GuildPrivateThread}. + * Returns threads of type {@link ChannelTypes}.GuildPrivateThread. * * Threads are ordered by the `id` property in descending order. * @@ -2052,13 +2064,13 @@ export interface RestManager { * * @param channelId - The ID of the channel to get the archived threads for. * @param options - The parameters for the fetching of threads. - * @returns An instance of {@link ArchivedThreads}. + * @returns An instance of {@link CamelizedDiscordArchivedThreads}. * * @remarks * Requires the `READ_MESSAGE_HISTORY` permission. * - * If called on a channel of type {@link ChannelTypes.GuildText}, returns threads of type {@link ChannelTypes.GuildPublicThread}. - * If called on a channel of type {@link ChannelTypes.GuildNews}, returns threads of type {@link ChannelTypes.GuildNewsThread}. + * If called on a channel of type {@link ChannelTypes}.GuildText, returns threads of type {@link ChannelTypes}.GuildPublicThread. + * If called on a channel of type {@link ChannelTypes}.GuildNews, returns threads of type {@link ChannelTypes}.GuildNewsThread. * * Threads are ordered by the `archive_timestamp` property included in the metadata of the object in descending order. * @@ -2069,10 +2081,10 @@ export interface RestManager { * Gets the list of roles for a guild. * * @param guildId - The ID of the guild to get the list of roles for. - * @returns A collection of {@link DisorcRole} objects assorted by role ID. + * @returns A collection of {@link CamelizedDiscordRole} objects assorted by role ID. * * @remarks - * ⚠️ This endpoint should be used sparingly due to {@link User} objects already being included in guild payloads. + * ⚠️ This endpoint should be used sparingly due to {@link CamelizedDiscordRole} objects already being included in guild payloads. * * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-roles} */ @@ -2083,7 +2095,7 @@ export interface RestManager { * @param guildId - The ID of the guild to get the scheduled event from. * @param eventId - The ID of the scheduled event to get. * @param options - The parameters for the fetching of the scheduled event. - * @returns An instance of {@link ScheduledEvent}. + * @returns An instance of {@link CamelizedDiscordScheduledEvent}. * * @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event} */ @@ -2093,7 +2105,7 @@ export interface RestManager { * * @param guildId - The ID of the guild to get the scheduled events from. * @param options - The parameters for the fetching of the scheduled events. - * @returns A collection of {@link ScheduledEvent} objects assorted by event ID. + * @returns A collection of {@link CamelizedDiscordScheduledEvent} objects assorted by event ID. * * @see {@link https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild} */ @@ -2104,7 +2116,7 @@ export interface RestManager { * @param guildId - The ID of the guild to get the subscribers to the scheduled event from. * @param eventId - The ID of the scheduled event to get the subscribers of. * @param options - The parameters for the fetching of the subscribers. - * @returns A collection of {@link User} objects assorted by user ID. + * @returns A collection of {@link CamelizedDiscordUser} objects assorted by user ID. * * @remarks * Requires the `MANAGE_EVENTS` permission. @@ -2167,7 +2179,7 @@ export interface RestManager { * @param messageId - The ID of the message to get the users for. * @param reaction - The reaction for which to get the users. * @param options - The parameters for the fetching of the users. - * @returns A collection of {@link User} objects assorted by user ID. + * @returns A collection of {@link CamelizedDiscordUser} objects assorted by user ID. * * @see {@link https://discord.com/developers/docs/resources/channel#get-reactions} */ @@ -2218,7 +2230,7 @@ export interface RestManager { * Gets information about the vanity url of a guild. * * @param guildId - The ID of the guild to get the vanity url information for. - * @returns An instance of {@link VanityUrl}. + * @returns An instance of {@link CamelizedDiscordVanityUrl}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -2232,7 +2244,7 @@ export interface RestManager { * Gets the list of voice regions for a guild. * * @param guildId - The ID of the guild to get the voice regions for. - * @returns A collection of {@link VoiceRegions | VoiceRegion} objects assorted by voice region ID. + * @returns A collection of {@link CamelizedDiscordVoiceRegion} objects assorted by voice region ID. * * @see {@link https://discord.com/developers/docs/resources/guild#get-guild-voice-regions} */ @@ -2280,7 +2292,7 @@ export interface RestManager { * Gets the welcome screen for a guild. * * @param guildId - The ID of the guild to get the welcome screen for. - * @returns An instance of {@link WelcomeScreen}. + * @returns An instance of {@link CamelizedDiscordWelcomeScreen}. * * @remarks * If the welcome screen is not enabled: @@ -2293,7 +2305,7 @@ export interface RestManager { * Gets the guild widget by guild ID. * * @param guildId - The ID of the guild to get the widget of. - * @returns An instance of {@link GuildWidget}. + * @returns An instance of {@link CamelizedDiscordGuildWidget}. * * @remarks * Fires an `INVITE_CREATED` Gateway event when an invite channel is defined and a new `Invite` is generated. @@ -2305,7 +2317,7 @@ export interface RestManager { * Gets the settings of a guild's widget. * * @param guildId - The ID of the guild to get the widget of. - * @returns An instance of {@link GuildWidgetSettings}. + * @returns An instance of {@link CamelizedDiscordGuildWidgetSettings}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -2355,7 +2367,7 @@ export interface RestManager { * * @param channelId - The ID of the announcement channel. * @param messageId - The ID of the message to cross-post. - * @returns An instance of the cross-posted {@link Message}. + * @returns An instance of the cross-posted {@link CamelizedDiscordMessage}. * * @remarks * Requires the `SEND_MESSAGES` permission. @@ -2391,7 +2403,7 @@ export interface RestManager { * @param userId - The user ID of the thread member to remove. * * @remarks - * If the thread is of type {@link ChannelTypes.GuildPrivateThread}, requires to be the creator of the thread. + * If the thread is of type {@link ChannelTypes}.GuildPrivateThread, requires to be the creator of the thread. * Otherwise, requires the `MANAGE_THREADS` permission. * * Requires the thread not be archived. @@ -2442,7 +2454,7 @@ export interface RestManager { * * @param token - The interaction token to use, provided in the original interaction. * @param options - The parameters for the creation of the message. - * @returns An instance of the created {@link Message}. + * @returns An instance of the created {@link CamelizedDiscordMessage}. * * @remarks * ⚠️ Interaction tokens are only valid for _15 minutes_. @@ -2464,7 +2476,7 @@ export interface RestManager { * @param interactionId - The ID of the interaction to respond to. * @param token - The interaction token to use, provided in the original interaction. * @param options - The parameters for the creation of the message. - * @returns An instance of the created {@link Message}. + * @returns An instance of the created {@link CamelizedDiscordMessage}. * * @remarks * ⚠️ Interaction tokens are only valid for _15 minutes_. @@ -2487,12 +2499,12 @@ export interface RestManager { * @param messageId - The ID of the message to use as the thread's point of origin. * @param options - The parameters to use for the creation of the thread. * @param {string} [reason] - An optional reason for the action, to be included in the audit log. - * @returns An instance of the created {@link Channel | Thread}. + * @returns An instance of the created {@link CamelizedDiscordChannel}. * * @remarks - * If called on a channel of type {@link ChannelTypes.GuildText}, creates a {@link ChannelTypes.GuildPublicThread}. - * If called on a channel of type {@link ChannelTypes.GuildNews}, creates a {@link ChannelTypes.GuildNewsThread}. - * Does not work on channels of type {@link ChannelTypes.GuildForum}. + * If called on a channel of type {@link ChannelTypes}.GuildText, creates a {@link ChannelTypes}.GuildPublicThread. + * If called on a channel of type {@link ChannelTypes}.GuildNews, creates a {@link ChannelTypes}.GuildNewsThread. + * Does not work on channels of type {@link ChannelTypes}.GuildForum. * * The ID of the created thread will be the same as the ID of the source message. * @@ -2526,7 +2538,7 @@ export interface RestManager { * Synchronises a template with the current state of a guild. * * @param guildId - The ID of the guild to synchronise a template of. - * @returns An instance of the edited {@link Template}. + * @returns An instance of the edited {@link CamelizedDiscordTemplate}. * * @remarks * Requires the `MANAGE_GUILD` permission. @@ -2556,7 +2568,7 @@ export interface RestManager { * * @param commands - The list of commands to use to overwrite the previous list. * @param options - Additional options for the endpoint. - * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. + * @returns A collection of {@link CamelizedDiscordApplicationCommand} objects assorted by command ID. * * @remarks * ❗ Commands that are not present in the `commands` array will be __deleted__. @@ -2578,7 +2590,7 @@ export interface RestManager { * @param guildId - The ID of the guild whose list of commands to overwrite. * @param commands - The list of commands to use to overwrite the previous list. * @param options - Additional options for the endpoint. - * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. + * @returns A collection of {@link CamelizedDiscordApplicationCommand} objects assorted by command ID. * * @remarks * ❗ Commands that are not present in the `commands` array will be __deleted__. diff --git a/packages/utils/src/images.ts b/packages/utils/src/images.ts index a2d175278..3d05bd5a8 100644 --- a/packages/utils/src/images.ts +++ b/packages/utils/src/images.ts @@ -102,6 +102,7 @@ export function guildBannerUrl( * Builds a URL to the guild icon stored in the Discord CDN. * * @param guildId - The ID of the guild to get the link to the banner for. + * @param imageHash - The hash identifying the event cover image. * @param options - The parameters for the building of the URL. * @returns The link to the resource or `undefined` if no banner has been set. */ @@ -176,7 +177,6 @@ export function guildDiscoverySplashUrl( * Builds the URL to a guild scheduled event cover stored in the Discord CDN. * * @param eventId - The ID of the scheduled event to get the cover of. - * @param imageHash - The hash identifying the event cover image. * @param options - The parameters for the building of the URL. * @returns The link to the resource or `undefined`. */ diff --git a/scripts/finalizeTypedocs.js b/scripts/finalizeTypedocs.js index 9356a9cb5..3bc29600e 100644 --- a/scripts/finalizeTypedocs.js +++ b/scripts/finalizeTypedocs.js @@ -1,10 +1,11 @@ +/* eslint-disable @typescript-eslint/no-unsafe-argument */ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ + import fs from 'node:fs' import path from 'node:path' // these two paths may vary depending on where you place this script, and your project structure including where typedoc generates its output files. -const typedocOutPath = await import('../typedoc.json', { - assert: { type: 'json' }, -}).then((module) => module.default.out) +const typedocOutPath = await import('../typedoc.json', { assert: { type: 'json' } }).then((module) => module.default.out) async function* walk(dir) { for await (const d of await fs.promises.opendir(dir)) { @@ -18,13 +19,33 @@ for await (let filepath of walk(typedocOutPath)) { if (filepath.endsWith('.json')) continue let file = fs.readFileSync(filepath, 'utf-8') - if (filepath.endsWith('generated/README.md')) { + if (filepath.endsWith(`generated${path.sep}README.md`)) { file = [ 'discordeno-monorepo / [Modules](modules.md)', '', '# Discordeno', '', 'Thank you for using Discordeno. These docs are generated automatically. If you see any issues please contact us on [Discord](https://discord.gg/ddeno)', + '', + ].join('\n') + } + + if (filepath.endsWith(`generated${path.sep}modules.md`)) { + file = [ + '[discordeno-monorepo](README.md) / Modules', + '', + '# discordeno-monorepo', + '', + '## Table of contents', + '', + '### Modules', + '', + '- [@discordeno/bot](modules/Bot)', + '- [@discordeno/gateway](modules/Gateway)', + '- [@discordeno/rest](modules/Rest)', + '- [@discordeno/types](modules/Types)', + '- [@discordeno/utils](modules/Utils)', + '', ].join('\n') } @@ -53,10 +74,9 @@ for await (let filepath of walk(typedocOutPath)) { for (const form of cleanForms) { // Clean the file of the ugly forms - file = file.replace(new RegExp(form.ugly, 'gi'), form.clean || '') - const lastIndex = filepath.lastIndexOf('/') + file = file.replace(new RegExp(form.ugly, 'gi'), form.clean ?? '') // Clean the file name of the ugly forms - if (!filepath.endsWith(`${form.ugly}md`)) filepath = filepath.replace(new RegExp(form.ugly, 'gi'), form.clean || '') + if (!filepath.endsWith(`${form.ugly}md`)) filepath = filepath.replace(new RegExp(form.ugly, 'gi'), form.clean ?? '') } file = file.replace(/(?|,|=|\{|\})/gi, `\\$1`) @@ -68,13 +88,10 @@ for await (let filepath of walk(typedocOutPath)) { filepath = filepath.replace('/md', '/README.md') } - // if (filepath.includes('/generated/classes')) console.log('file in classes 2', filepath) if (filepath.includes('/generated/modules/discordeno_')) { const mod = filepath.substring(filepath.lastIndexOf('_') + 1) filepath = filepath.substring(0, filepath.lastIndexOf('/')) + `/${mod[0].toUpperCase()}${mod.substring(1)}` } - fs.writeFileSync(filepath, file, function (err, result) { - if (err) throw err - }) + fs.writeFileSync(filepath, file) } diff --git a/typedoc.json b/typedoc.json index e8c86087c..35c95f7ee 100644 --- a/typedoc.json +++ b/typedoc.json @@ -2,7 +2,6 @@ "$schema": "https://typedoc.org/schema.json", "entryPointStrategy": "packages", "entryPoints": ["packages/bot", "packages/gateway", "packages/rest", "packages/types", "packages/utils"], - "skipErrorChecking": true, "out": "./website/api_reference/generated/", "cleanOutputDir": false, "plugin": ["typedoc-plugin-markdown"], diff --git a/website/.eslintrc.yml b/website/.eslintrc.yml index d5a3b29ca..3939c3cf6 100644 --- a/website/.eslintrc.yml +++ b/website/.eslintrc.yml @@ -1,14 +1,29 @@ +root: true env: browser: true es2021: true extends: - - plugin:react/recommended - standard-with-typescript - - prettier + - plugin:react/recommended + - plugin:react/jsx-runtime + - plugin:prettier/recommended overrides: [] parserOptions: ecmaVersion: latest sourceType: module + project: ['./tsconfig.json'] +ignorePatterns: + - .docusaurus + - .yarn + - build + - node_modules + - api_reference +settings: + react: + version: 18.2.0 plugins: - react -rules: {} +rules: + '@typescript-eslint/prefer-nullish-coalescing': off + '@typescript-eslint/strict-boolean-expressions': off + '@typescript-eslint/explicit-function-return-type': off diff --git a/website/api_reference/generated/modules.md b/website/api_reference/generated/modules.md index 38ef2e06d..cfd9fb4e2 100644 --- a/website/api_reference/generated/modules.md +++ b/website/api_reference/generated/modules.md @@ -6,8 +6,8 @@ ### Modules -- [@discordeno/bot](modules/Bot.md) -- [@discordeno/gateway](modules/Gateway.md) -- [@discordeno/rest](modules/Rest.md) -- [@discordeno/types](modules/Types.md) -- [@discordeno/utils](modules/Utils.md) +- [@discordeno/bot](modules/Bot) +- [@discordeno/gateway](modules/Gateway) +- [@discordeno/rest](modules/Rest) +- [@discordeno/types](modules/Types) +- [@discordeno/utils](modules/Utils) diff --git a/website/babel.config.js b/website/babel.config.js deleted file mode 100644 index 7186e2119..000000000 --- a/website/babel.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - presets: [require.resolve('@docusaurus/core/lib/babel/preset')], - plugins: ['babel-plugin-styled-components'], -} diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js deleted file mode 100644 index 098dfb4f6..000000000 --- a/website/docusaurus.config.js +++ /dev/null @@ -1,277 +0,0 @@ -// @ts-check -// Note: type annotations allow type checking and IDEs autocompletion - -const { themes } = require('prism-react-renderer') - -/** @type {import('@docusaurus/types').Config} */ -const config = { - title: 'Discordeno', - tagline: 'Making Scalable Bots Easy!', - favicon: 'img/favicon.png', - - // Set the production url of your site here - url: 'https://discordeno.js.org/', - // Set the // pathname under which your site is served - // For GitHub pages deployment, it is often '//' - baseUrl: '/', - - // GitHub pages deployment config. - // If you aren't using GitHub pages, you don't need these. - organizationName: 'discordeno', // Usually your GitHub org/user name. - projectName: 'discordeno', // Usually your repo name. - deploymentBranch: 'gh-pages', - trailingSlash: false, - - webpack: { - jsLoader: isServer => ({ - loader: require.resolve('esbuild-loader'), - options: { - loader: 'tsx', - format: isServer ? 'cjs' : undefined, - target: isServer ? 'node12' : 'es2017', - }, - }), - }, - - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', - - // Even if you don't use internalization, you can use this field to set useful - // metadata like html lang. For example, if your site is Chinese, you may want - // to replace "en" with "zh-Hans". - i18n: { - defaultLocale: 'en', - locales: ['en'], - }, - - presets: [ - [ - 'classic', - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - docs: { - sidebarPath: require.resolve('./sidebars.js'), - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/discordeno/discordeno/tree/main/website/', - }, - blog: { - showReadingTime: true, - }, - theme: { - customCss: require.resolve('./src/styling/index.css'), - }, - }), - ], - ], - - themeConfig: - /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ - ({ - // Replace with your project's social card - image: 'img/links-embed-image.png', - navbar: { - title: 'Discordeno', - logo: { - alt: 'Discordeno Logo', - src: 'img/logo.svg', - }, - items: [ - { - type: 'doc', - docId: 'intro', - position: 'left', - label: 'Documentation', - }, - { - type: 'docSidebar', - sidebarId: 'old_docs', - position: 'left', - label: 'Old Docs', - docsPluginId: 'old_docs', - }, - { - type: 'docSidebar', - sidebarId: 'tutorial', - position: 'left', - label: 'Tutorial', - docsPluginId: 'tutorial', - }, - { - type: 'docSidebar', - sidebarId: 'api_reference', - position: 'left', - label: 'API Reference', - docsPluginId: 'api_reference', - }, - { to: '/blog', label: 'Blog', position: 'left' }, - { - href: 'https://discord.gg/ddeno', - label: 'Discord', - position: 'right', - }, - { - href: 'https://github.com/discordeno/discordeno', - label: 'GitHub', - position: 'right', - }, - ], - }, - footer: { - style: 'light', - links: [ - { - title: 'Docs', - items: [ - { - label: 'Documentation', - to: '/docs/intro', - }, - ], - }, - { - title: 'Old Docs', - items: [ - { - label: 'Introduction', - to: '/old_docs/intro', - }, - { - label: 'Getting Started', - to: '/old_docs/getting-started', - }, - { - label: 'FAQ', - to: '/old_docs/frequently-asked-questions', - }, - { - label: 'Benchmark', - to: '/old_docs/benchmark', - }, - ], - }, - { - title: 'Tutorial', - items: [ - { - label: 'Big Bot', - to: '/tutorial/big-bot-guide/step-by-step', - }, - { - label: 'Node.js', - to: '/tutorial/nodejs/getting-started', - }, - { - label: 'Amethyst', - to: '/tutorial/amethyst/intro', - }, - ], - }, - { - title: 'API Reference', - items: [ - { - label: 'Classes', - to: '/api_reference/category/classes-3', - }, - { - label: 'Enums', - to: '/api_reference/category/enums-3', - }, - { - label: 'Interfaces', - to: '/api_reference/category/interfaces-3', - }, - { - label: 'Modules', - to: '/api_reference/category/modules-3', - }, - ], - }, - { - title: 'Community', - items: [ - { - label: 'Discord', - href: 'https://discord.gg/ddeno', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Blog', - to: '/blog', - }, - { - label: 'GitHub', - href: 'https://github.com/discordeno/discordeno', - }, - ], - }, - ], - copyright: `Copyright © 2021-${new Date().getFullYear()}, Discordeno.`, - }, - prism: { - theme: themes.github, - darkTheme: themes.dracula, - }, - }), - - plugins: [ - [ - '@docusaurus/plugin-content-docs', - /** @type {import('@docusaurus/plugin-content-docs').Options} */ - { - id: 'old_docs', - path: 'old_docs', - routeBasePath: 'old_docs', - sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/discordeno/discordeno/tree/main/site/', - }, - ], - [ - '@docusaurus/plugin-content-docs', - /** @type {import('@docusaurus/plugin-content-docs').Options} */ - { - id: 'tutorial', - path: 'tutorial', - routeBasePath: 'tutorial', - sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/discordeno/discordeno/tree/main/site/', - }, - ], - [ - '@docusaurus/plugin-content-docs', - /** @type {import('@docusaurus/plugin-content-docs').Options} */ - { - id: 'api_reference', - path: 'api_reference', - routeBasePath: 'api_reference', - sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/discordeno/discordeno/tree/main/site/', - }, - ], - [ - require.resolve('@easyops-cn/docusaurus-search-local'), - { - indexDocs: true, - indexPages: true, - docsRouteBasePath: ['/docs', '/tutorial', 'api_reference'], - language: ['en'], - hashed: true, - docsDir: ['docs', 'tutorial', 'api_reference'], - blogDir: [], - removeDefaultStopWordFilter: true, - highlightSearchTermsOnTargetPage: true, - searchResultLimits: 8, - searchResultContextMaxLength: 50, - }, - ], - './webpack-docusaurus-plugin', - ], -} - -module.exports = config diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts new file mode 100644 index 000000000..45d2b6bc2 --- /dev/null +++ b/website/docusaurus.config.ts @@ -0,0 +1,276 @@ +// Note: type annotations allow type checking and IDEs autocompletion + +import type { Options as PluginContentDocs } from '@docusaurus/plugin-content-docs' +import type { + Options as PresetClassicOptions, + ThemeConfig, +} from '@docusaurus/preset-classic' +import type { Config } from '@docusaurus/types' +import { themes } from 'prism-react-renderer' + +const config: Config = { + title: 'Discordeno', + tagline: 'Making Scalable Bots Easy!', + favicon: 'img/favicon.png', + + // Set the production url of your site here + url: 'https://discordeno.js.org/', + // Set the // pathname under which your site is served + // For GitHub pages deployment, it is often '//' + baseUrl: '/', + + // GitHub pages deployment config. + // If you aren't using GitHub pages, you don't need these. + organizationName: 'discordeno', // Usually your GitHub org/user name. + projectName: 'discordeno', // Usually your repo name. + deploymentBranch: 'gh-pages', + trailingSlash: false, + + webpack: { + jsLoader: isServer => ({ + loader: require.resolve('esbuild-loader'), + options: { + loader: 'tsx', + jsx: 'automatic', + format: isServer ? 'cjs' : undefined, + target: isServer ? 'node12' : 'es2017', + }, + }), + }, + + onBrokenLinks: 'throw', + onBrokenMarkdownLinks: 'warn', + + // Even if you don't use internalization, you can use this field to set useful + // metadata like html lang. For example, if your site is Chinese, you may want + // to replace "en" with "zh-Hans". + i18n: { + defaultLocale: 'en', + locales: ['en'], + }, + + presets: [ + [ + 'classic', + { + docs: { + sidebarPath: require.resolve('./sidebars.ts'), + // Please change this to your repo. + // Remove this to remove the "edit this page" links. + editUrl: + 'https://github.com/discordeno/discordeno/tree/main/website/', + }, + blog: { + showReadingTime: true, + }, + theme: { + customCss: require.resolve('./src/styling/index.css'), + }, + } satisfies PresetClassicOptions, + ], + ], + + themeConfig: { + // Replace with your project's social card + image: 'img/links-embed-image.png', + navbar: { + title: 'Discordeno', + logo: { + alt: 'Discordeno Logo', + src: 'img/logo.svg', + }, + items: [ + { + type: 'doc', + docId: 'intro', + position: 'left', + label: 'Documentation', + }, + { + type: 'docSidebar', + sidebarId: 'old_docs', + position: 'left', + label: 'Old Docs', + docsPluginId: 'old_docs', + }, + { + type: 'docSidebar', + sidebarId: 'tutorial', + position: 'left', + label: 'Tutorial', + docsPluginId: 'tutorial', + }, + { + type: 'docSidebar', + sidebarId: 'api_reference', + position: 'left', + label: 'API Reference', + docsPluginId: 'api_reference', + }, + { to: '/blog', label: 'Blog', position: 'left' }, + { + href: 'https://discord.gg/ddeno', + label: 'Discord', + position: 'right', + }, + { + href: 'https://github.com/discordeno/discordeno', + label: 'GitHub', + position: 'right', + }, + ], + }, + footer: { + style: 'light', + links: [ + { + title: 'Docs', + items: [ + { + label: 'Documentation', + to: '/docs/intro', + }, + ], + }, + { + title: 'Old Docs', + items: [ + { + label: 'Introduction', + to: '/old_docs/intro', + }, + { + label: 'Getting Started', + to: '/old_docs/getting-started', + }, + { + label: 'FAQ', + to: '/old_docs/frequently-asked-questions', + }, + { + label: 'Benchmark', + to: '/old_docs/benchmark', + }, + ], + }, + { + title: 'Tutorial', + items: [ + { + label: 'Big Bot', + to: '/tutorial/big-bot-guide/step-by-step', + }, + { + label: 'Node.js', + to: '/tutorial/nodejs/getting-started', + }, + { + label: 'Amethyst', + to: '/tutorial/amethyst/intro', + }, + ], + }, + { + title: 'API Reference', + items: [ + { + label: 'Classes', + to: '/api_reference/category/classes-3', + }, + { + label: 'Enums', + to: '/api_reference/category/enums-3', + }, + { + label: 'Interfaces', + to: '/api_reference/category/interfaces-3', + }, + { + label: 'Modules', + to: '/api_reference/category/modules-3', + }, + ], + }, + { + title: 'Community', + items: [ + { + label: 'Discord', + href: 'https://discord.gg/ddeno', + }, + ], + }, + { + title: 'More', + items: [ + { + label: 'Blog', + to: '/blog', + }, + { + label: 'GitHub', + href: 'https://github.com/discordeno/discordeno', + }, + ], + }, + ], + copyright: `Copyright © 2021-${new Date().getFullYear()}, Discordeno.`, + }, + prism: { + theme: themes.github, + darkTheme: themes.dracula, + }, + } satisfies ThemeConfig, + + plugins: [ + [ + '@docusaurus/plugin-content-docs', + { + id: 'old_docs', + path: 'old_docs', + routeBasePath: 'old_docs', + sidebarPath: require.resolve('./sidebars.js'), + editUrl: 'https://github.com/discordeno/discordeno/tree/main/site/', + } satisfies PluginContentDocs, + ], + [ + '@docusaurus/plugin-content-docs', + { + id: 'tutorial', + path: 'tutorial', + routeBasePath: 'tutorial', + sidebarPath: require.resolve('./sidebars.js'), + editUrl: 'https://github.com/discordeno/discordeno/tree/main/site/', + } satisfies PluginContentDocs, + ], + [ + '@docusaurus/plugin-content-docs', + { + id: 'api_reference', + path: 'api_reference', + routeBasePath: 'api_reference', + sidebarPath: require.resolve('./sidebars.js'), + editUrl: 'https://github.com/discordeno/discordeno/tree/main/site/', + } satisfies PluginContentDocs, + ], + [ + require.resolve('@easyops-cn/docusaurus-search-local'), + { + indexDocs: true, + indexPages: true, + docsRouteBasePath: ['/docs', '/tutorial', 'api_reference'], + language: ['en'], + hashed: true, + docsDir: ['docs', 'tutorial', 'api_reference'], + blogDir: [], + removeDefaultStopWordFilter: true, + highlightSearchTermsOnTargetPage: true, + searchResultLimits: 8, + searchResultContextMaxLength: 50, + }, + ], + './webpack-docusaurus-plugin.ts', + ], +} + +export default config diff --git a/website/package.json b/website/package.json index 4597d7092..9e7a40e89 100644 --- a/website/package.json +++ b/website/package.json @@ -13,43 +13,45 @@ "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", "typecheck": "tsc", - "lint": "eslint src --ext ts,tsx", + "lint": "eslint . --ext js,ts,tsx", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"", "setup-dd": "" }, "dependencies": { - "@babel/plugin-syntax-flow": "^7.23.3", "@docusaurus/core": "3.0.1", "@docusaurus/preset-classic": "3.0.1", - "@easyops-cn/docusaurus-search-local": "^0.38.1", + "@docusaurus/theme-common": "3.0.1", + "@easyops-cn/docusaurus-search-local": "^0.40.1", "@mdx-js/react": "^3.0.0", - "babel-plugin-styled-components": "^2.1.4", "chart.js": "^4.4.1", - "clsx": "^2.0.0", - "prism-react-renderer": "^2.3.0", + "clsx": "^2.1.0", + "prism-react-renderer": "^2.3.1", "react": "^18.2.0", "react-chartjs-2": "^5.2.0", "react-dom": "^18.2.0", "reactflow": "^11.10.1", - "styled-components": "^6.1.1" + "styled-components": "^6.1.6" }, "devDependencies": { "@docusaurus/module-type-aliases": "3.0.1", - "@tsconfig/docusaurus": "^2.0.2", - "@typescript-eslint/eslint-plugin": "^6.13.2", - "@typescript-eslint/parser": "^6.13.2", - "esbuild": "^0.19.8", + "@docusaurus/tsconfig": "3.0.1", + "@docusaurus/types": "3.0.1", + "@types/react": "^18.2.47", + "@typescript-eslint/eslint-plugin": "^6.18.0", + "@typescript-eslint/parser": "^6.18.0", + "esbuild": "^0.19.11", "esbuild-loader": "^4.0.2", - "eslint": "^8.55.0", + "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", - "eslint-config-standard-with-typescript": "^40.0.0", - "eslint-plugin-import": "^2.29.0", - "eslint-plugin-n": "^16.3.1", + "eslint-config-standard-with-typescript": "^43.0.0", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-n": "^16.6.1", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-react": "^7.33.2", - "prettier": "^3.1.0", - "terser-webpack-plugin": "^5.3.9", - "typescript": "5.3.2" + "prettier": "^3.1.1", + "terser-webpack-plugin": "^5.3.10", + "typescript": "5.3.3", + "webpack": "^5.89.0" }, "browserslist": { "production": [ @@ -64,6 +66,6 @@ ] }, "engines": { - "node": ">=16.14" + "node": ">=18.0" } } diff --git a/website/sidebars.js b/website/sidebars.ts similarity index 86% rename from website/sidebars.js rename to website/sidebars.ts index 4b1beb6bf..8918ed7f9 100644 --- a/website/sidebars.js +++ b/website/sidebars.ts @@ -9,10 +9,9 @@ Create as many sidebars as you want. */ -// @ts-check +import { type SidebarsConfig } from '@docusaurus/plugin-content-docs' -/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ -const sidebars = { +const sidebars: SidebarsConfig = { // By default, Docusaurus generates a sidebar from the docs folder structure tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }], tutorial: [{ type: 'autogenerated', dirName: '.' }], @@ -32,4 +31,4 @@ const sidebars = { */ } -module.exports = sidebars +export default sidebars diff --git a/website/src/components/Benchmark.tsx b/website/src/components/Benchmark.tsx index 133a3dec5..0c8b3bff7 100644 --- a/website/src/components/Benchmark.tsx +++ b/website/src/components/Benchmark.tsx @@ -9,7 +9,7 @@ import { Title, Tooltip, } from 'chart.js' -import React, { useEffect, useState } from 'react' +import { useEffect, useState } from 'react' import { Chart } from 'react-chartjs-2' ChartJS.register( CategoryScale, @@ -19,7 +19,7 @@ ChartJS.register( LineElement, Title, Tooltip, - Legend + Legend, ) // eslint-disable-next-line @typescript-eslint/explicit-function-return-type @@ -142,17 +142,17 @@ export default function BenchmarkResultCharts(): JSX.Element { useEffect(() => { if (!data) { - ;(async () => { + void (async () => { setData( JSON.parse( ( await ( await fetch( - 'https://raw.githubusercontent.com/discordeno/discordeno/benchies/benchmarksResult/data.js' + 'https://raw.githubusercontent.com/discordeno/discordeno/benchies/benchmarksResult/data.js', ) ).text() - ).slice(24) - ) + ).slice(24), + ) as { entries: { Benchmark: [] } }, ) })() } @@ -181,7 +181,7 @@ export default function BenchmarkResultCharts(): JSX.Element { {data ? ( Array.from( collectBenchesPerTestCase(data.entries.Benchmark), - ([key, value]) => ({ benchName: key, benches: value }) + ([key, value]) => ({ benchName: key, benches: value }), ).map((bench, index) => ( window.removeEventListener('resize', handleResize) + return () => { + window.removeEventListener('resize', handleResize) + } }, []) - const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes) - const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges) + const [nodes] = useNodesState(initialNodes) + const [edges] = useEdgesState(initialEdges) return ( <> diff --git a/website/src/components/architecture/FlowChart.tsx b/website/src/components/architecture/FlowChart.tsx index 432b9522a..da504e99d 100644 --- a/website/src/components/architecture/FlowChart.tsx +++ b/website/src/components/architecture/FlowChart.tsx @@ -1,5 +1,4 @@ -import React from 'react' -import { Edge, Node } from 'reactflow' +import { type Edge, type Node } from 'reactflow' import 'reactflow/dist/style.css' import BaseFlowChart, { defaultNodeOptions, multiplier } from './BaseFlowChart' diff --git a/website/src/components/architecture/FlowChart2.tsx b/website/src/components/architecture/FlowChart2.tsx index 9fa433b3d..476c141a6 100644 --- a/website/src/components/architecture/FlowChart2.tsx +++ b/website/src/components/architecture/FlowChart2.tsx @@ -1,5 +1,4 @@ -import React from 'react' -import { Edge, Node, Position } from 'reactflow' +import { type Edge, type Node, Position } from 'reactflow' import 'reactflow/dist/style.css' import BaseFlowChart, { defaultGroupOptions, diff --git a/website/src/components/architecture/FlowChart3.tsx b/website/src/components/architecture/FlowChart3.tsx index 52bbd2a49..5c3c1ca65 100644 --- a/website/src/components/architecture/FlowChart3.tsx +++ b/website/src/components/architecture/FlowChart3.tsx @@ -1,14 +1,14 @@ -import React, { useEffect, useState } from 'react' +import type React from 'react' +import { useEffect, useState } from 'react' import ReactFlow, { Background, Controls, - Edge, Handle, - Node, - NodeMouseHandler, Position, useEdgesState, useNodesState, + type Edge, + type Node, } from 'reactflow' import 'reactflow/dist/style.css' import { @@ -18,12 +18,13 @@ import { widthMultiplier, } from './BaseFlowChart' -const handlers: { - [index: string]: { +const handlers: Record< + string, + { transformers: string[] event: string } -} = { +> = { handleChannelCreate: { transformers: ['transformers.channel'], event: 'events.channelCreate', @@ -350,6 +351,8 @@ const handlers: { export default function FlowChart({ handlerFilter = (handler: string) => true, +}: { + handlerFilter: (handler: string) => boolean }) { function getWindowDimensions() { const { innerWidth: width, innerHeight: height } = window @@ -369,7 +372,9 @@ export default function FlowChart({ } window.addEventListener('resize', handleResize) - return () => window.removeEventListener('resize', handleResize) + return () => { + window.removeEventListener('resize', handleResize) + } }, []) const transformers = [] @@ -467,7 +472,6 @@ export default function FlowChart({ }, ] - //@ts-ignore for (const [index, handler] of Object.keys(handlers) .filter(handlerFilter) .entries()) { @@ -528,7 +532,6 @@ export default function FlowChart({ } } - //@ts-ignore for (const [index, transformer] of transformers.entries()) { initialNodes.push({ id: transformer, @@ -544,7 +547,6 @@ export default function FlowChart({ }) } - //@ts-ignore for (const [index, event] of events.entries()) { initialNodes.push({ id: event, @@ -647,12 +649,16 @@ export default function FlowChart({ }, ) - const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes) - const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges) - const [handlerIndex, setHandlerIndex] = useState(0) + const [nodes] = useNodesState(initialNodes) + const [edges, setEdges] = useEdgesState(initialEdges) + const [, setHandlerIndex] = useState(0) const [userClick, setUserClick] = useState(false) - const nodeMouseHandler: NodeMouseHandler = (_, node, userTrigger = true) => { + const nodeMouseHandler = ( + _: React.MouseEvent, + node: Node, + userTrigger = true, + ) => { if (userTrigger) setUserClick(true) if (node.id.split('-')[0] === 'baseNode') { edges.forEach(e => { @@ -817,13 +823,19 @@ export default function FlowChart({ if (!userClick) { nodeMouseHandler( undefined, - { id: Object.keys(handlers).filter(handlerFilter)[randomIndex] }, + { + id: Object.keys(handlers).filter(handlerFilter)[randomIndex], + data: undefined, + position: undefined, + }, false, ) } setHandlerIndex(randomIndex) }, 1000) - return () => clearInterval(interval) + return () => { + clearInterval(interval) + } }, [userClick]) useEffect(() => { @@ -831,7 +843,9 @@ export default function FlowChart({ const timeout = setTimeout(() => { setUserClick(false) }, 10000) - return () => clearTimeout(timeout) + return () => { + clearTimeout(timeout) + } } }, [userClick]) @@ -863,9 +877,15 @@ export default function FlowChart({ onNodeDoubleClick={nodeMouseHandler} onNodeClick={nodeMouseHandler} onClick={e => { - //@ts-ignore - if (e.target.className === 'react-flow__pane') - nodeMouseHandler(e, { id: ' - ', data: { label: ' - ' } }) + const target = e.target as HTMLDivElement + + if (target.className === 'react-flow__pane') { + nodeMouseHandler(e, { + id: ' - ', + data: { label: ' - ' }, + position: undefined, + }) + } }} nodeTypes={{ baseLineNode: () => ( diff --git a/website/src/components/footer/index.tsx b/website/src/components/footer/index.tsx index 7930f56f9..36f1eb376 100644 --- a/website/src/components/footer/index.tsx +++ b/website/src/components/footer/index.tsx @@ -1,5 +1,3 @@ -import React from 'react' - export default function Footer() { return ( { - const [visible, setVisible] = React.useState(defaultExpanded ?? false) + const [visible, setVisible] = useState(defaultExpanded ?? false) const toggleVisibility = () => { setVisible(!visible) diff --git a/website/src/components/home/features/feature.tsx b/website/src/components/home/features/feature.tsx index 47a985e8c..f3dce6cf1 100644 --- a/website/src/components/home/features/feature.tsx +++ b/website/src/components/home/features/feature.tsx @@ -1,5 +1,4 @@ -import React from 'react' -import { FeatureList } from '@site/src/types' +import { type FeatureList } from '@site/src/types' import clsx from 'clsx' export default function Feature({ data }: FeatureList): JSX.Element { diff --git a/website/src/components/home/features/index.tsx b/website/src/components/home/features/index.tsx index cd824321d..220bcad14 100644 --- a/website/src/components/home/features/index.tsx +++ b/website/src/components/home/features/index.tsx @@ -1,6 +1,5 @@ -import React from 'react' import styles from '@site/src/styling/styles.module.css' -import { FeatureItem } from '@site/src/types' +import { type FeatureItem } from '@site/src/types' import Feature from './feature' const FeatureList: FeatureItem[] = [ diff --git a/website/src/components/home/reviews/index.tsx b/website/src/components/home/reviews/index.tsx index b1a1bd932..304b50022 100644 --- a/website/src/components/home/reviews/index.tsx +++ b/website/src/components/home/reviews/index.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { ReviewsBox, ReviewsElement, @@ -11,7 +10,7 @@ import { StarContainer, StarIcon, } from '@site/src/styling' -import { DiscordLibraries, IReview } from '@site/src/types' +import { DiscordLibraries, type IReview } from '@site/src/types' const reviewList: IReview[] = [ { @@ -199,7 +198,7 @@ export default function DiscordenoReviews() { {String(review.bot.guild_count).replace( /\B(?=(\d{3})+(?!\d))/g, - ',' + ',', )}{' '} guilds diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 31860e290..060acc7fb 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -1,18 +1,17 @@ -import React from 'react' -import useDocusaurusContext from '@docusaurus/useDocusaurusContext' import Layout from '@theme/Layout' -import DiscordenoHeader from '../components/header' -import { MainPage } from '../styling' -import DiscordenoFeatures from '../components/home/features' +import { useEffect, useState } from 'react' import Footer from '../components/footer' -import DiscordenoReviews from '../components/home/reviews' +import DiscordenoHeader from '../components/header' import DiscordenoFAQ from '../components/home/faq' +import DiscordenoFeatures from '../components/home/features' +import DiscordenoReviews from '../components/home/reviews' +import { MainPage } from '../styling' export default function Home(): JSX.Element { // Use loading to give time to JS to load - const [loading, setLoading] = React.useState(true) + const [loading, setLoading] = useState(true) - React.useEffect(() => { + useEffect(() => { setTimeout(() => { setLoading(false) diff --git a/website/src/styling/index.ts b/website/src/styling/index.ts index eeee8fe0b..ff055a6be 100644 --- a/website/src/styling/index.ts +++ b/website/src/styling/index.ts @@ -308,7 +308,7 @@ export const StarContainer = styled.div` align-items: center; ` -export const StarIcon = styled.svg` +export const StarIcon = styled.svg<{ active: boolean }>` width: 20px; height: 20px; fill: ${props => (props.active ? 'currentColor' : '#CBD5E0')}; @@ -429,7 +429,7 @@ export const FaqQuestion = styled.h3` } ` -export const FaqAnswer = styled.div` +export const FaqAnswer = styled.div<{ visible: boolean }>` padding: ${({ visible }) => (visible ? '10px' : '0px')}; background-color: var(--ifm-footer-background-color); color: #fff; diff --git a/website/src/types.ts b/website/src/types.ts index 32f0d6521..594e14b5c 100644 --- a/website/src/types.ts +++ b/website/src/types.ts @@ -1,11 +1,11 @@ -export type FeatureList = { +export interface FeatureList { data: { feature: FeatureItem featureList: FeatureItem[] } } -export type FeatureItem = { +export interface FeatureItem { title: string Svg: JSX.Element description: JSX.Element @@ -35,7 +35,7 @@ export enum DiscordLibraries { CUSTOM = 'Custom', // Custom library } -export type IReview = { +export interface IReview { review: string // the review bot: { username: string // Clyde diff --git a/website/tsconfig.json b/website/tsconfig.json index 6f4756980..9c8ecfc1c 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -1,7 +1,8 @@ { // This file is not used in compilation. It is here just for a nice editor experience. - "extends": "@tsconfig/docusaurus/tsconfig.json", + "extends": "@docusaurus/tsconfig", "compilerOptions": { - "baseUrl": "." + "baseUrl": ".", + "downlevelIteration": true } } diff --git a/website/webpack-docusaurus-plugin.js b/website/webpack-docusaurus-plugin.ts similarity index 73% rename from website/webpack-docusaurus-plugin.js rename to website/webpack-docusaurus-plugin.ts index 289485ff7..dcd878156 100644 --- a/website/webpack-docusaurus-plugin.js +++ b/website/webpack-docusaurus-plugin.ts @@ -3,16 +3,17 @@ * https://github.com/facebook/docusaurus/issues/4765#issuecomment-1679863984 */ -const TerserPlugin = require('terser-webpack-plugin') +import type { LoadContext, Plugin } from '@docusaurus/types' +import TerserPlugin, { esbuildMinify } from 'terser-webpack-plugin' -module.exports = function (context, options) { +export default function (context: LoadContext, options: unknown): Plugin { return { name: 'webpack-docusaurus-plugin', configureWebpack(config, isServer, utils) { const cacheOptions = { cache: process.env.CI !== 'true' } const minimizer = new TerserPlugin({ - minify: TerserPlugin.esbuildMinify, + minify: esbuildMinify, }) const minimizers = config.optimization.minimizer?.map(m => m instanceof TerserPlugin ? minimizer : m, diff --git a/website/yarn.lock b/website/yarn.lock index f2370e902..9dc9c4179 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -613,7 +613,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-imports@npm:^7.22.15, @babel/helper-module-imports@npm:^7.22.5": +"@babel/helper-module-imports@npm:^7.22.15": version: 7.22.15 resolution: "@babel/helper-module-imports@npm:7.22.15" dependencies: @@ -1267,17 +1267,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-flow@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/plugin-syntax-flow@npm:7.23.3" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.22.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: c6e6f355d6ace5f4a9e7bb19f1fed2398aeb9b62c4c671a189d81b124f9f5bb77c4225b6e85e19339268c60a021c1e49104e450375de5e6bb70612190d9678af - languageName: node - linkType: hard - "@babel/plugin-syntax-import-assertions@npm:^7.20.0": version: 7.20.0 resolution: "@babel/plugin-syntax-import-assertions@npm:7.20.0" @@ -1344,7 +1333,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.22.5, @babel/plugin-syntax-jsx@npm:^7.23.3": +"@babel/plugin-syntax-jsx@npm:^7.23.3": version: 7.23.3 resolution: "@babel/plugin-syntax-jsx@npm:7.23.3" dependencies: @@ -3489,6 +3478,13 @@ __metadata: languageName: node linkType: hard +"@docusaurus/tsconfig@npm:3.0.1": + version: 3.0.1 + resolution: "@docusaurus/tsconfig@npm:3.0.1" + checksum: a191e527740ea09cc4783ab45f106989f692d100e83768a4398fc08d3d41f0645afdce83aa89a1b251d5899544105af09e795af4d0db54247403a180f3c43098 + languageName: node + linkType: hard + "@docusaurus/types@npm:3.0.1": version: 3.0.1 resolution: "@docusaurus/types@npm:3.0.1" @@ -3575,9 +3571,9 @@ __metadata: languageName: node linkType: hard -"@easyops-cn/docusaurus-search-local@npm:^0.38.1": - version: 0.38.1 - resolution: "@easyops-cn/docusaurus-search-local@npm:0.38.1" +"@easyops-cn/docusaurus-search-local@npm:^0.40.1": + version: 0.40.1 + resolution: "@easyops-cn/docusaurus-search-local@npm:0.40.1" dependencies: "@docusaurus/plugin-content-docs": "npm:^2 || ^3" "@docusaurus/theme-translations": "npm:^2 || ^3" @@ -3599,11 +3595,11 @@ __metadata: "@docusaurus/theme-common": ^2 || ^3 react: ^16.14.0 || ^17 || ^18 react-dom: ^16.14.0 || 17 || ^18 - checksum: f60729c81e6f122f0790fb7cec4f72a181f851de205d95bcdeed760f50a4e3702b3441ad64abeb1d3c03eea107f074ebb368a82c9b18ae64d5bc59d55fab832c + checksum: 05a067de19ba0a03461d5ede09f1e05faf853f50d25d66938af508279b50879bf911d1c4c39f92738a8490a0afb93e039f8572e7328a25bdd3425e6886686682 languageName: node linkType: hard -"@emotion/is-prop-valid@npm:^1.2.1": +"@emotion/is-prop-valid@npm:1.2.1": version: 1.2.1 resolution: "@emotion/is-prop-valid@npm:1.2.1" dependencies: @@ -3619,10 +3615,24 @@ __metadata: languageName: node linkType: hard -"@emotion/unitless@npm:^0.8.0": - version: 0.8.1 - resolution: "@emotion/unitless@npm:0.8.1" - checksum: 918f73c46ac0b7161e3c341cc07d651ce87e31ab1695e74b12adb7da6bb98dfbff8c69cf68a4e40d9eb3d820ca055dc1267aeb3007927ce88f98b885bf729b63 +"@emotion/unitless@npm:0.8.0": + version: 0.8.0 + resolution: "@emotion/unitless@npm:0.8.0" + checksum: 176141117ed23c0eb6e53a054a69c63e17ae532ec4210907a20b2208f91771821835f1c63dd2ec63e30e22fcc984026d7f933773ee6526dd038e0850919fae7a + languageName: node + linkType: hard + +"@esbuild/aix-ppc64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/aix-ppc64@npm:0.19.11" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + +"@esbuild/android-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/android-arm64@npm:0.19.11" + conditions: os=android & cpu=arm64 languageName: node linkType: hard @@ -3633,6 +3643,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/android-arm@npm:0.19.11" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@esbuild/android-arm@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/android-arm@npm:0.19.8" @@ -3640,6 +3657,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/android-x64@npm:0.19.11" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + "@esbuild/android-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/android-x64@npm:0.19.8" @@ -3647,6 +3671,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/darwin-arm64@npm:0.19.11" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/darwin-arm64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/darwin-arm64@npm:0.19.8" @@ -3654,6 +3685,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/darwin-x64@npm:0.19.11" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@esbuild/darwin-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/darwin-x64@npm:0.19.8" @@ -3661,6 +3699,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/freebsd-arm64@npm:0.19.11" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/freebsd-arm64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/freebsd-arm64@npm:0.19.8" @@ -3668,6 +3713,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/freebsd-x64@npm:0.19.11" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/freebsd-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/freebsd-x64@npm:0.19.8" @@ -3675,6 +3727,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-arm64@npm:0.19.11" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/linux-arm64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-arm64@npm:0.19.8" @@ -3682,6 +3741,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-arm@npm:0.19.11" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@esbuild/linux-arm@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-arm@npm:0.19.8" @@ -3689,6 +3755,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ia32@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-ia32@npm:0.19.11" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/linux-ia32@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-ia32@npm:0.19.8" @@ -3696,6 +3769,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-loong64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-loong64@npm:0.19.11" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + "@esbuild/linux-loong64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-loong64@npm:0.19.8" @@ -3703,6 +3783,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-mips64el@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-mips64el@npm:0.19.11" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + "@esbuild/linux-mips64el@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-mips64el@npm:0.19.8" @@ -3710,6 +3797,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ppc64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-ppc64@npm:0.19.11" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/linux-ppc64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-ppc64@npm:0.19.8" @@ -3717,6 +3811,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-riscv64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-riscv64@npm:0.19.11" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + "@esbuild/linux-riscv64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-riscv64@npm:0.19.8" @@ -3724,6 +3825,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-s390x@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-s390x@npm:0.19.11" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + "@esbuild/linux-s390x@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-s390x@npm:0.19.8" @@ -3731,6 +3839,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/linux-x64@npm:0.19.11" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + "@esbuild/linux-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/linux-x64@npm:0.19.8" @@ -3738,6 +3853,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/netbsd-x64@npm:0.19.11" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/netbsd-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/netbsd-x64@npm:0.19.8" @@ -3745,6 +3867,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/openbsd-x64@npm:0.19.11" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/openbsd-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/openbsd-x64@npm:0.19.8" @@ -3752,6 +3881,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/sunos-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/sunos-x64@npm:0.19.11" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + "@esbuild/sunos-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/sunos-x64@npm:0.19.8" @@ -3759,6 +3895,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-arm64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/win32-arm64@npm:0.19.11" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/win32-arm64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/win32-arm64@npm:0.19.8" @@ -3766,6 +3909,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-ia32@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/win32-ia32@npm:0.19.11" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/win32-ia32@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/win32-ia32@npm:0.19.8" @@ -3773,6 +3923,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-x64@npm:0.19.11": + version: 0.19.11 + resolution: "@esbuild/win32-x64@npm:0.19.11" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@esbuild/win32-x64@npm:0.19.8": version: 0.19.8 resolution: "@esbuild/win32-x64@npm:0.19.8" @@ -3815,10 +3972,10 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:8.55.0": - version: 8.55.0 - resolution: "@eslint/js@npm:8.55.0" - checksum: 34b001a95b16501fd64f525b1de3ab0e4c252e5820b74069004934cb13977fc04ba4522a3e8f8074bd6af49da10d3444cd49fa711819f425ad73d6bf46eea82d +"@eslint/js@npm:8.56.0": + version: 8.56.0 + resolution: "@eslint/js@npm:8.56.0" + checksum: 97a4b5ccf7e24f4d205a1fb0f21cdcd610348ecf685f6798a48dd41ba443f2c1eedd3050ff5a0b8f30b8cf6501ab512aa9b76e531db15e59c9ebaa41f3162e37 languageName: node linkType: hard @@ -3911,6 +4068,13 @@ __metadata: languageName: node linkType: hard +"@jridgewell/resolve-uri@npm:^3.1.0": + version: 3.1.1 + resolution: "@jridgewell/resolve-uri@npm:3.1.1" + checksum: 64d59df8ae1a4e74315eb1b61e012f1c7bc8aac47a3a1e683f6fe7008eab07bc512a742b7aa7c0405685d1421206de58c9c2e6adbfe23832f8bd69408ffc183e + languageName: node + linkType: hard + "@jridgewell/set-array@npm:^1.0.1": version: 1.1.2 resolution: "@jridgewell/set-array@npm:1.1.2" @@ -3945,7 +4109,7 @@ __metadata: languageName: node linkType: hard -"@jridgewell/sourcemap-codec@npm:^1.4.10": +"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14": version: 1.4.15 resolution: "@jridgewell/sourcemap-codec@npm:1.4.15" checksum: 89960ac087781b961ad918978975bcdf2051cd1741880469783c42de64239703eab9db5230d776d8e6a09d73bb5e4cb964e07d93ee6e2e7aea5a7d726e865c09 @@ -3962,6 +4126,16 @@ __metadata: languageName: node linkType: hard +"@jridgewell/trace-mapping@npm:^0.3.20": + version: 0.3.20 + resolution: "@jridgewell/trace-mapping@npm:0.3.20" + dependencies: + "@jridgewell/resolve-uri": "npm:^3.1.0" + "@jridgewell/sourcemap-codec": "npm:^1.4.14" + checksum: 683117e4e6707ef50c725d6d0ec4234687ff751f36fa46c2b3068931eb6a86b49af374d3030200777666579a992b7470d1bd1c591e9bf64d764dda5295f33093 + languageName: node + linkType: hard + "@kurkle/color@npm:^0.3.0": version: 0.3.2 resolution: "@kurkle/color@npm:0.3.2" @@ -4580,13 +4754,6 @@ __metadata: languageName: node linkType: hard -"@tsconfig/docusaurus@npm:^2.0.2": - version: 2.0.2 - resolution: "@tsconfig/docusaurus@npm:2.0.2" - checksum: 129f2532172496c108f53a15082e410b418e664c1761902664558059541a6cf7faff2b3d2953e2d507a7e3688afacf2479e17adcb35b89cae04ddb0415d0397a - languageName: node - linkType: hard - "@types/acorn@npm:^4.0.0": version: 4.0.6 resolution: "@types/acorn@npm:4.0.6" @@ -5213,6 +5380,17 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:^18.2.47": + version: 18.2.47 + resolution: "@types/react@npm:18.2.47" + dependencies: + "@types/prop-types": "npm:*" + "@types/scheduler": "npm:*" + csstype: "npm:^3.0.2" + checksum: 0a98c2ef8303909f78c973ac9731cb671f3a0b96bc5213b538d1a50cbaae6e51b6befd64845a9cb95af8528767315d5bd99a85608eb716c020393c7d33a9b477 + languageName: node + linkType: hard + "@types/retry@npm:0.12.0": version: 0.12.0 resolution: "@types/retry@npm:0.12.0" @@ -5271,10 +5449,10 @@ __metadata: languageName: node linkType: hard -"@types/stylis@npm:^4.0.2": - version: 4.2.4 - resolution: "@types/stylis@npm:4.2.4" - checksum: 0734b4136192f97f4c8792ea41f1293091dfda53434ede08281fa42689d31f16cd1ad0e058de88c11980c18aae29e62a87027b235b98ab0cb237641b6ec44bcb +"@types/stylis@npm:4.2.0": + version: 4.2.0 + resolution: "@types/stylis@npm:4.2.0" + checksum: 02a47584acd2fcb664f7d8270a69686c83752bdfb855f804015d33116a2b09c0b2ac535213a4a7b6d3a78b2915b22b4024cce067ae979beee0e4f8f5fdbc26a9 languageName: node linkType: hard @@ -5317,15 +5495,15 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^6.13.2": - version: 6.13.2 - resolution: "@typescript-eslint/eslint-plugin@npm:6.13.2" +"@typescript-eslint/eslint-plugin@npm:^6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/eslint-plugin@npm:6.18.0" dependencies: "@eslint-community/regexpp": "npm:^4.5.1" - "@typescript-eslint/scope-manager": "npm:6.13.2" - "@typescript-eslint/type-utils": "npm:6.13.2" - "@typescript-eslint/utils": "npm:6.13.2" - "@typescript-eslint/visitor-keys": "npm:6.13.2" + "@typescript-eslint/scope-manager": "npm:6.18.0" + "@typescript-eslint/type-utils": "npm:6.18.0" + "@typescript-eslint/utils": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" debug: "npm:^4.3.4" graphemer: "npm:^1.4.0" ignore: "npm:^5.2.4" @@ -5338,11 +5516,29 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: e6665fc5de0ae2b7ada9150d3d119157521a04208b8da385a4c39538b9471871efe6eef272dbcee4c76f599e09453b6f7317f3b3b80d89291f6b2ace4125c51b + checksum: 7810a84f6d9cb735f6848aa4a7ef64c77740812afc0248fda63ec182910a1d045cd9a32d8e49b0e5323266db6da12a2fe50171147927b3186815a56f12c16ee7 languageName: node linkType: hard -"@typescript-eslint/parser@npm:^6.13.2, @typescript-eslint/parser@npm:^6.4.0": +"@typescript-eslint/parser@npm:^6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/parser@npm:6.18.0" + dependencies: + "@typescript-eslint/scope-manager": "npm:6.18.0" + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/typescript-estree": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" + debug: "npm:^4.3.4" + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 6798332819f839454a8405e31cfaa0fe908d5966be929bef55e78ac51a0ff3868feb42b38e7772cedf88277f6b2841b3d91f6c573eacb945e2741ecae94047c7 + languageName: node + linkType: hard + +"@typescript-eslint/parser@npm:^6.4.0": version: 6.13.2 resolution: "@typescript-eslint/parser@npm:6.13.2" dependencies: @@ -5370,12 +5566,22 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:6.13.2": - version: 6.13.2 - resolution: "@typescript-eslint/type-utils@npm:6.13.2" +"@typescript-eslint/scope-manager@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/scope-manager@npm:6.18.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:6.13.2" - "@typescript-eslint/utils": "npm:6.13.2" + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" + checksum: c2c465e6803f78d3300142167a8a79dd2613c64cf464a40a9cf6b13a2c10c3d82ca30bb9c2d26aba7f054b8740b38e1d25f377fcdf917aba489d5b5ea2550858 + languageName: node + linkType: hard + +"@typescript-eslint/type-utils@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/type-utils@npm:6.18.0" + dependencies: + "@typescript-eslint/typescript-estree": "npm:6.18.0" + "@typescript-eslint/utils": "npm:6.18.0" debug: "npm:^4.3.4" ts-api-utils: "npm:^1.0.1" peerDependencies: @@ -5383,7 +5589,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: c8de5ab94295980a378e4f22dd51dedb3838761969ad1a355386a801c9bc332837651747cdc2edf7f399c88d0bbd787d2233d09e14e4e2849fb01a57bd0cab00 + checksum: 9f4a392fe7b7f6b1fb02acbdaa331e764775f6404c29ca66774419e39552523d878227020526ca9c438d997555a99600f8d711496e9a435fb14a779e25ed094e languageName: node linkType: hard @@ -5394,6 +5600,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/types@npm:6.18.0" + checksum: fc507ca7a1bfec04467087165ff6722f7b9aa9a089ecf0c17656824a951b92ca014766e480122de850057c63a3066628985eb0681c5bbb80ab41d94e7bb52288 + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:6.13.2": version: 6.13.2 resolution: "@typescript-eslint/typescript-estree@npm:6.13.2" @@ -5412,20 +5625,39 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:6.13.2": - version: 6.13.2 - resolution: "@typescript-eslint/utils@npm:6.13.2" +"@typescript-eslint/typescript-estree@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/typescript-estree@npm:6.18.0" + dependencies: + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/visitor-keys": "npm:6.18.0" + debug: "npm:^4.3.4" + globby: "npm:^11.1.0" + is-glob: "npm:^4.0.3" + minimatch: "npm:9.0.3" + semver: "npm:^7.5.4" + ts-api-utils: "npm:^1.0.1" + peerDependenciesMeta: + typescript: + optional: true + checksum: b65392e944baba97ed98e99a1e7122b7b05fa0d9a082b48d0190b377ae9e2ae4ed72d505a2f0f05f2ca78908f0e4b0f1acd44d345c7f4f4415fcec6bb2c57791 + languageName: node + linkType: hard + +"@typescript-eslint/utils@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/utils@npm:6.18.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" "@types/json-schema": "npm:^7.0.12" "@types/semver": "npm:^7.5.0" - "@typescript-eslint/scope-manager": "npm:6.13.2" - "@typescript-eslint/types": "npm:6.13.2" - "@typescript-eslint/typescript-estree": "npm:6.13.2" + "@typescript-eslint/scope-manager": "npm:6.18.0" + "@typescript-eslint/types": "npm:6.18.0" + "@typescript-eslint/typescript-estree": "npm:6.18.0" semver: "npm:^7.5.4" peerDependencies: eslint: ^7.0.0 || ^8.0.0 - checksum: 934282b612e5f78423bc375122258c5aec65fcdf9c25fd0521e3984686d1e5b950500f093c5f1c21a267be164bc7025d8f629dcfaa60573ad98c6e3861092076 + checksum: f91798069e337ed42b7e415aabded833d540dab9adf66ae88183003428892584946f20a5496aae2dc65fc0f65b66496baed785a3470ee782b6e2dd25b9200c6c languageName: node linkType: hard @@ -5439,6 +5671,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:6.18.0": + version: 6.18.0 + resolution: "@typescript-eslint/visitor-keys@npm:6.18.0" + dependencies: + "@typescript-eslint/types": "npm:6.18.0" + eslint-visitor-keys: "npm:^3.4.1" + checksum: bf34a357549d515607c761f385b7c7c82aaa07795cada0be2e1e3860c5103fbf731408ac07eaeb0517b51426d77ef9b194dfb94f205c776107a46e0d0027b452 + languageName: node + linkType: hard + "@ungap/structured-clone@npm:^1.0.0, @ungap/structured-clone@npm:^1.2.0": version: 1.2.0 resolution: "@ungap/structured-clone@npm:1.2.0" @@ -6202,21 +6444,6 @@ __metadata: languageName: node linkType: hard -"babel-plugin-styled-components@npm:^2.1.4": - version: 2.1.4 - resolution: "babel-plugin-styled-components@npm:2.1.4" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.22.5" - "@babel/helper-module-imports": "npm:^7.22.5" - "@babel/plugin-syntax-jsx": "npm:^7.22.5" - lodash: "npm:^4.17.21" - picomatch: "npm:^2.3.1" - peerDependencies: - styled-components: ">= 2" - checksum: 34f10dd4d44cf1c8605097dd4796e2d1443266ebc686f10a9f56b5d1492b5c3de9c13d7e30b075756610adf592ed807cc8145189d00b4454f6af9879a19a5e0b - languageName: node - linkType: hard - "bail@npm:^2.0.0": version: 2.0.2 resolution: "bail@npm:2.0.2" @@ -6767,6 +6994,13 @@ __metadata: languageName: node linkType: hard +"clsx@npm:^2.1.0": + version: 2.1.0 + resolution: "clsx@npm:2.1.0" + checksum: 2e0ce7c3b6803d74fc8147c408f88e79245583202ac14abd9691e2aebb9f312de44270b79154320d10bb7804a9197869635d1291741084826cff20820f31542b + languageName: node + linkType: hard + "collapse-white-space@npm:^2.0.0": version: 2.1.0 resolution: "collapse-white-space@npm:2.1.0" @@ -7225,7 +7459,7 @@ __metadata: languageName: node linkType: hard -"css-to-react-native@npm:^3.2.0": +"css-to-react-native@npm:3.2.0": version: 3.2.0 resolution: "css-to-react-native@npm:3.2.0" dependencies: @@ -7348,7 +7582,7 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.0.2, csstype@npm:^3.1.2": +"csstype@npm:3.1.2, csstype@npm:^3.0.2": version: 3.1.2 resolution: "csstype@npm:3.1.2" checksum: 1f39c541e9acd9562996d88bc9fb62d1cb234786ef11ed275567d4b2bd82e1ceacde25debc8de3d3b4871ae02c2933fa02614004c97190711caebad6347debc2 @@ -8097,7 +8331,7 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.19.0, esbuild@npm:^0.19.8": +"esbuild@npm:^0.19.0": version: 0.19.8 resolution: "esbuild@npm:0.19.8" dependencies: @@ -8174,6 +8408,86 @@ __metadata: languageName: node linkType: hard +"esbuild@npm:^0.19.11": + version: 0.19.11 + resolution: "esbuild@npm:0.19.11" + dependencies: + "@esbuild/aix-ppc64": "npm:0.19.11" + "@esbuild/android-arm": "npm:0.19.11" + "@esbuild/android-arm64": "npm:0.19.11" + "@esbuild/android-x64": "npm:0.19.11" + "@esbuild/darwin-arm64": "npm:0.19.11" + "@esbuild/darwin-x64": "npm:0.19.11" + "@esbuild/freebsd-arm64": "npm:0.19.11" + "@esbuild/freebsd-x64": "npm:0.19.11" + "@esbuild/linux-arm": "npm:0.19.11" + "@esbuild/linux-arm64": "npm:0.19.11" + "@esbuild/linux-ia32": "npm:0.19.11" + "@esbuild/linux-loong64": "npm:0.19.11" + "@esbuild/linux-mips64el": "npm:0.19.11" + "@esbuild/linux-ppc64": "npm:0.19.11" + "@esbuild/linux-riscv64": "npm:0.19.11" + "@esbuild/linux-s390x": "npm:0.19.11" + "@esbuild/linux-x64": "npm:0.19.11" + "@esbuild/netbsd-x64": "npm:0.19.11" + "@esbuild/openbsd-x64": "npm:0.19.11" + "@esbuild/sunos-x64": "npm:0.19.11" + "@esbuild/win32-arm64": "npm:0.19.11" + "@esbuild/win32-ia32": "npm:0.19.11" + "@esbuild/win32-x64": "npm:0.19.11" + dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: a40b3858c29618c8c893389372f469245a6b2d1319782af75d33d8ba5dcadfe181fcc935f8e1a907be667946384950a4cf482ebe1e79c99c932d2b8eb35a09d0 + languageName: node + linkType: hard + "escalade@npm:^3.1.1": version: 3.1.1 resolution: "escalade@npm:3.1.1" @@ -8236,9 +8550,9 @@ __metadata: languageName: node linkType: hard -"eslint-config-standard-with-typescript@npm:^40.0.0": - version: 40.0.0 - resolution: "eslint-config-standard-with-typescript@npm:40.0.0" +"eslint-config-standard-with-typescript@npm:^43.0.0": + version: 43.0.0 + resolution: "eslint-config-standard-with-typescript@npm:43.0.0" dependencies: "@typescript-eslint/parser": "npm:^6.4.0" eslint-config-standard: "npm:17.1.0" @@ -8249,7 +8563,7 @@ __metadata: eslint-plugin-n: "^15.0.0 || ^16.0.0 " eslint-plugin-promise: ^6.0.0 typescript: "*" - checksum: 37eaca690bd6302757600f0ad63c5e0720dffd3651fbcfcc748424ecab85cb38480243c48337ce7e9455fb87275dedb3607a486b68ac92182fc748e55926ea02 + checksum: 5c6ac9a204e613678484849826c88dab2821699278632145e50323ff88a5ca6fce7d18daa0a4fdb4e15f44de054a0f306950933aebe6358b3fcbc862c2831d2e languageName: node linkType: hard @@ -8288,7 +8602,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-es-x@npm:^7.1.0": +"eslint-plugin-es-x@npm:^7.5.0": version: 7.5.0 resolution: "eslint-plugin-es-x@npm:7.5.0" dependencies: @@ -8301,9 +8615,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.29.0": - version: 2.29.0 - resolution: "eslint-plugin-import@npm:2.29.0" +"eslint-plugin-import@npm:^2.29.1": + version: 2.29.1 + resolution: "eslint-plugin-import@npm:2.29.1" dependencies: array-includes: "npm:^3.1.7" array.prototype.findlastindex: "npm:^1.2.3" @@ -8321,21 +8635,22 @@ __metadata: object.groupby: "npm:^1.0.1" object.values: "npm:^1.1.7" semver: "npm:^6.3.1" - tsconfig-paths: "npm:^3.14.2" + tsconfig-paths: "npm:^3.15.0" peerDependencies: eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - checksum: d6e8d016f38369892c85b866f762c03dee2b337d4f12031756e30d7490879261d1192a3c2f682fd7c4d2b923465f7a1e3d22cfdad5da1b1391c3bd39ea87af1a + checksum: 5865f05c38552145423c535326ec9a7113ab2305c7614c8b896ff905cfabc859c8805cac21e979c9f6f742afa333e6f62f812eabf891a7e8f5f0b853a32593c1 languageName: node linkType: hard -"eslint-plugin-n@npm:^16.3.1": - version: 16.3.1 - resolution: "eslint-plugin-n@npm:16.3.1" +"eslint-plugin-n@npm:^16.6.1": + version: 16.6.1 + resolution: "eslint-plugin-n@npm:16.6.1" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" builtins: "npm:^5.0.1" - eslint-plugin-es-x: "npm:^7.1.0" + eslint-plugin-es-x: "npm:^7.5.0" get-tsconfig: "npm:^4.7.0" + globals: "npm:^13.24.0" ignore: "npm:^5.2.4" is-builtin-module: "npm:^3.2.1" is-core-module: "npm:^2.12.1" @@ -8344,7 +8659,7 @@ __metadata: semver: "npm:^7.5.3" peerDependencies: eslint: ">=7.0.0" - checksum: 135d09f8314401e1fdf8f7443b2aad4f1f17be8d841606fffeb9286ea757f5347a98c1e4731895e32befd631e734103f826cf897a670eda451c93987b929994b + checksum: fc5a4e7063966dddf6f1200b80fe1eac45384183245cb591a2f21eaf48f32a3abecbf4b0c05288b7bb43404dce7637b3cbe82aeb00278a0bae3cae9694280cf1 languageName: node linkType: hard @@ -8417,14 +8732,14 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.55.0": - version: 8.55.0 - resolution: "eslint@npm:8.55.0" +"eslint@npm:^8.56.0": + version: 8.56.0 + resolution: "eslint@npm:8.56.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.2.0" "@eslint-community/regexpp": "npm:^4.6.1" "@eslint/eslintrc": "npm:^2.1.4" - "@eslint/js": "npm:8.55.0" + "@eslint/js": "npm:8.56.0" "@humanwhocodes/config-array": "npm:^0.11.13" "@humanwhocodes/module-importer": "npm:^1.0.1" "@nodelib/fs.walk": "npm:^1.2.8" @@ -8461,7 +8776,7 @@ __metadata: text-table: "npm:^0.2.0" bin: eslint: bin/eslint.js - checksum: afd016cfbe9e9d667b3f98c14c681a7e518808f6c30856e56cbb02248900eac5bf6dc5e577a7eaec259539486db48ef7d16ef58fb14b1585ba7c84b35490c53c + checksum: ef6193c6e4cef20774b985a5cc2fd4bf6d3c4decd423117cbc4a0196617861745db291217ad3c537bc3a160650cca965bc818f55e1f3e446af1fcb293f9940a5 languageName: node linkType: hard @@ -9295,6 +9610,15 @@ __metadata: languageName: node linkType: hard +"globals@npm:^13.24.0": + version: 13.24.0 + resolution: "globals@npm:13.24.0" + dependencies: + type-fest: "npm:^0.20.2" + checksum: 62c5b1997d06674fc7191d3e01e324d3eda4d65ac9cc4e78329fa3b5c4fd42a0e1c8722822497a6964eee075255ce21ccf1eec2d83f92ef3f06653af4d0ee28e + languageName: node + linkType: hard + "globalthis@npm:^1.0.3": version: 1.0.3 resolution: "globalthis@npm:1.0.3" @@ -11976,6 +12300,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:9.0.3": + version: 9.0.3 + resolution: "minimatch@npm:9.0.3" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: c81b47d28153e77521877649f4bab48348d10938df9e8147a58111fe00ef89559a2938de9f6632910c4f7bf7bb5cd81191a546167e58d357f0cfb1e18cecc1c5 + languageName: node + linkType: hard + "minimatch@npm:^5.0.1": version: 5.1.6 resolution: "minimatch@npm:5.1.6" @@ -13233,7 +13566,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.17, postcss@npm:^8.4.21": +"postcss@npm:8.4.31, postcss@npm:^8.4.17, postcss@npm:^8.4.21": version: 8.4.31 resolution: "postcss@npm:8.4.31" dependencies: @@ -13244,7 +13577,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.4.26, postcss@npm:^8.4.31": +"postcss@npm:^8.4.26": version: 8.4.32 resolution: "postcss@npm:8.4.32" dependencies: @@ -13262,12 +13595,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.1.0": - version: 3.1.0 - resolution: "prettier@npm:3.1.0" +"prettier@npm:^3.1.1": + version: 3.1.1 + resolution: "prettier@npm:3.1.1" bin: prettier: bin/prettier.cjs - checksum: e95e8f93c6b9aea2ac1e86bebe329bee90c8c50d9a23d1f593eba8d7f39b33b3641eb28785001505b6723c47895a5322ad12a2fb855b289cb7bae450ffc34425 + checksum: 26a249f321b97d26c04483f1bf2eeb22e082a76f4222a2c922bebdc60111691aad4ec3979610e83942e0b956058ec361d9e9c81c185172264eb6db9aa678082b languageName: node linkType: hard @@ -13300,6 +13633,18 @@ __metadata: languageName: node linkType: hard +"prism-react-renderer@npm:^2.3.1": + version: 2.3.1 + resolution: "prism-react-renderer@npm:2.3.1" + dependencies: + "@types/prismjs": "npm:^1.26.0" + clsx: "npm:^2.0.0" + peerDependencies: + react: ">=16.0.0" + checksum: 8ef6b3b667d8761f26cbe779709f5ac708023ef88f35a858cb7d331d1eb9480684759ac90c125f1a720d44da39b8d566532a76dcfc4ebc131349093f63eb1b80 + languageName: node + linkType: hard + "prismjs@npm:^1.29.0": version: 1.29.0 resolution: "prismjs@npm:1.29.0" @@ -14465,7 +14810,7 @@ __metadata: languageName: node linkType: hard -"shallowequal@npm:^1.1.0": +"shallowequal@npm:1.1.0, shallowequal@npm:^1.1.0": version: 1.1.0 resolution: "shallowequal@npm:1.1.0" checksum: f4c1de0837f106d2dbbfd5d0720a5d059d1c66b42b580965c8f06bb1db684be8783538b684092648c981294bf817869f743a066538771dbecb293df78f765e00 @@ -14964,23 +15309,23 @@ __metadata: languageName: node linkType: hard -"styled-components@npm:^6.1.1": - version: 6.1.1 - resolution: "styled-components@npm:6.1.1" +"styled-components@npm:^6.1.6": + version: 6.1.6 + resolution: "styled-components@npm:6.1.6" dependencies: - "@emotion/is-prop-valid": "npm:^1.2.1" - "@emotion/unitless": "npm:^0.8.0" - "@types/stylis": "npm:^4.0.2" - css-to-react-native: "npm:^3.2.0" - csstype: "npm:^3.1.2" - postcss: "npm:^8.4.31" - shallowequal: "npm:^1.1.0" - stylis: "npm:^4.3.0" - tslib: "npm:^2.5.0" + "@emotion/is-prop-valid": "npm:1.2.1" + "@emotion/unitless": "npm:0.8.0" + "@types/stylis": "npm:4.2.0" + css-to-react-native: "npm:3.2.0" + csstype: "npm:3.1.2" + postcss: "npm:8.4.31" + shallowequal: "npm:1.1.0" + stylis: "npm:4.3.1" + tslib: "npm:2.5.0" peerDependencies: react: ">= 16.8.0" react-dom: ">= 16.8.0" - checksum: 7e9538c7d22bd4911d515961167d62cd7b4c42e25eccb9413572ea1a1e9073c363a849807dee7cd4347ad37fafb59bb517fcc399f7f72b2fa6561c5cb6d573a0 + checksum: d83a34317972ebf538f149762996af3f1465a445debc32ed7d1c520792b01118398a13b4db11382a9facc248bf101c79bc1a902478d1e8e29c220ba1d1c63939 languageName: node linkType: hard @@ -14996,10 +15341,10 @@ __metadata: languageName: node linkType: hard -"stylis@npm:^4.3.0": - version: 4.3.0 - resolution: "stylis@npm:4.3.0" - checksum: 54eb1a13a9ec394a01a2e1a5ca8f856b96ecd8b85b8c04a24c0ff0aa8416798a6a1e9555f6a4345b6f088d03424f5a4376ea093d0ec73e419698415a3c8b59d0 +"stylis@npm:4.3.1": + version: 4.3.1 + resolution: "stylis@npm:4.3.1" + checksum: 20b04044397c5c69e4b9f00b037159ba82b602c61d45f26d8def08577fd6ddc4b2853d86818548c1b404d29194a99b6495cca1733880afc845533ced843cb266 languageName: node linkType: hard @@ -15089,6 +15434,28 @@ __metadata: languageName: node linkType: hard +"terser-webpack-plugin@npm:^5.3.10": + version: 5.3.10 + resolution: "terser-webpack-plugin@npm:5.3.10" + dependencies: + "@jridgewell/trace-mapping": "npm:^0.3.20" + jest-worker: "npm:^27.4.5" + schema-utils: "npm:^3.1.1" + serialize-javascript: "npm:^6.0.1" + terser: "npm:^5.26.0" + peerDependencies: + webpack: ^5.1.0 + peerDependenciesMeta: + "@swc/core": + optional: true + esbuild: + optional: true + uglify-js: + optional: true + checksum: fb1c2436ae1b4e983be043fa0a3d355c047b16b68f102437d08c736d7960c001e7420e2f722b9d99ce0dc70ca26a68cc63c0b82bc45f5b48671142b352a9d938 + languageName: node + linkType: hard + "terser-webpack-plugin@npm:^5.3.7, terser-webpack-plugin@npm:^5.3.9": version: 5.3.9 resolution: "terser-webpack-plugin@npm:5.3.9" @@ -15153,6 +15520,20 @@ __metadata: languageName: node linkType: hard +"terser@npm:^5.26.0": + version: 5.26.0 + resolution: "terser@npm:5.26.0" + dependencies: + "@jridgewell/source-map": "npm:^0.3.3" + acorn: "npm:^8.8.2" + commander: "npm:^2.20.0" + source-map-support: "npm:~0.5.20" + bin: + terser: bin/terser + checksum: 0282c5c065cbfa1e725d5609b99579252bc20b83cd1d75e8ab8b46d5da2c9d0fcfc453a12624f2d2d4c1240bfa0017a90fcf1e3b88258e5842fca1b0b82be8d8 + languageName: node + linkType: hard + "text-table@npm:^0.2.0": version: 0.2.0 resolution: "text-table@npm:0.2.0" @@ -15234,26 +15615,26 @@ __metadata: languageName: node linkType: hard -"tsconfig-paths@npm:^3.14.2": - version: 3.14.2 - resolution: "tsconfig-paths@npm:3.14.2" +"tsconfig-paths@npm:^3.15.0": + version: 3.15.0 + resolution: "tsconfig-paths@npm:3.15.0" dependencies: "@types/json5": "npm:^0.0.29" json5: "npm:^1.0.2" minimist: "npm:^1.2.6" strip-bom: "npm:^3.0.0" - checksum: 17f23e98612a60cf23b80dc1d3b7b840879e41fcf603868fc3618a30f061ac7b463ef98cad8c28b68733b9bfe0cc40ffa2bcf29e94cf0d26e4f6addf7ac8527d + checksum: 2041beaedc6c271fc3bedd12e0da0cc553e65d030d4ff26044b771fac5752d0460944c0b5e680f670c2868c95c664a256cec960ae528888db6ded83524e33a14 languageName: node linkType: hard -"tslib@npm:^2.0.3, tslib@npm:^2.4.0": +"tslib@npm:2.5.0, tslib@npm:^2.0.3, tslib@npm:^2.4.0": version: 2.5.0 resolution: "tslib@npm:2.5.0" checksum: ea556fbdf396fe15dbd45e242754e86e7c36e0dce8644404a7c8a81ae1e940744dc639569aeca1ae370a7f804d82872f3fd8564eb23be9adb7618201d0314dac languageName: node linkType: hard -"tslib@npm:^2.5.0, tslib@npm:^2.6.0": +"tslib@npm:^2.6.0": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: bd26c22d36736513980091a1e356378e8b662ded04204453d353a7f34a4c21ed0afc59b5f90719d4ba756e581a162ecbf93118dc9c6be5acf70aa309188166ca @@ -15356,23 +15737,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.3.2": - version: 5.3.2 - resolution: "typescript@npm:5.3.2" +"typescript@npm:5.3.3": + version: 5.3.3 + resolution: "typescript@npm:5.3.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 415e5fb6611f5713e460bad48039f00bcfdbde53a2f911727862d5aa9c5d5edd250059a419df382d8f031709e15a169c41eb62b6a401da5eec7ac0f4e359d6ac + checksum: 6e4e6a14a50c222b3d14d4ea2f729e79f972fa536ac1522b91202a9a65af3605c2928c4a790a4a50aa13694d461c479ba92cedaeb1e7b190aadaa4e4b96b8e18 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.3.2#optional!builtin": - version: 5.3.2 - resolution: "typescript@patch:typescript@npm%3A5.3.2#optional!builtin::version=5.3.2&hash=e012d7" +"typescript@patch:typescript@npm%3A5.3.3#optional!builtin": + version: 5.3.3 + resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin::version=5.3.3&hash=e012d7" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 1b45cdfb577a78ae7a9a9d0b77a7b772142cb98ba05e4e5aefba7044a028ded885bcecef63166407a5986645cea816fe4986894336aacd5e791796ea79a6a7ed + checksum: c93786fcc9a70718ba1e3819bab56064ead5817004d1b8186f8ca66165f3a2d0100fee91fa64c840dcd45f994ca5d615d8e1f566d39a7470fc1e014dbb4cf15d languageName: node linkType: hard @@ -15855,7 +16236,7 @@ __metadata: languageName: node linkType: hard -"webpack@npm:^5.88.1": +"webpack@npm:^5.88.1, webpack@npm:^5.89.0": version: 5.89.0 resolution: "webpack@npm:5.89.0" dependencies: @@ -15910,36 +16291,38 @@ __metadata: version: 0.0.0-use.local resolution: "website@workspace:." dependencies: - "@babel/plugin-syntax-flow": "npm:^7.23.3" "@docusaurus/core": "npm:3.0.1" "@docusaurus/module-type-aliases": "npm:3.0.1" "@docusaurus/preset-classic": "npm:3.0.1" - "@easyops-cn/docusaurus-search-local": "npm:^0.38.1" + "@docusaurus/theme-common": "npm:3.0.1" + "@docusaurus/tsconfig": "npm:3.0.1" + "@docusaurus/types": "npm:3.0.1" + "@easyops-cn/docusaurus-search-local": "npm:^0.40.1" "@mdx-js/react": "npm:^3.0.0" - "@tsconfig/docusaurus": "npm:^2.0.2" - "@typescript-eslint/eslint-plugin": "npm:^6.13.2" - "@typescript-eslint/parser": "npm:^6.13.2" - babel-plugin-styled-components: "npm:^2.1.4" + "@types/react": "npm:^18.2.47" + "@typescript-eslint/eslint-plugin": "npm:^6.18.0" + "@typescript-eslint/parser": "npm:^6.18.0" chart.js: "npm:^4.4.1" - clsx: "npm:^2.0.0" - esbuild: "npm:^0.19.8" + clsx: "npm:^2.1.0" + esbuild: "npm:^0.19.11" esbuild-loader: "npm:^4.0.2" - eslint: "npm:^8.55.0" + eslint: "npm:^8.56.0" eslint-config-prettier: "npm:^9.1.0" - eslint-config-standard-with-typescript: "npm:^40.0.0" - eslint-plugin-import: "npm:^2.29.0" - eslint-plugin-n: "npm:^16.3.1" + eslint-config-standard-with-typescript: "npm:^43.0.0" + eslint-plugin-import: "npm:^2.29.1" + eslint-plugin-n: "npm:^16.6.1" eslint-plugin-promise: "npm:^6.1.1" eslint-plugin-react: "npm:^7.33.2" - prettier: "npm:^3.1.0" - prism-react-renderer: "npm:^2.3.0" + prettier: "npm:^3.1.1" + prism-react-renderer: "npm:^2.3.1" react: "npm:^18.2.0" react-chartjs-2: "npm:^5.2.0" react-dom: "npm:^18.2.0" reactflow: "npm:^11.10.1" - styled-components: "npm:^6.1.1" - terser-webpack-plugin: "npm:^5.3.9" - typescript: "npm:5.3.2" + styled-components: "npm:^6.1.6" + terser-webpack-plugin: "npm:^5.3.10" + typescript: "npm:5.3.3" + webpack: "npm:^5.89.0" languageName: unknown linkType: soft diff --git a/yarn.lock b/yarn.lock index 39700f3cb..be0930961 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1984,7 +1984,6 @@ __metadata: turbo: "npm:^1.11.3" typedoc: "npm:0.25.7" typedoc-plugin-markdown: "npm:3.17.1" - typedoc-plugin-missing-exports: "npm:^2.2.0" typescript: "npm:5.3.3" languageName: unknown linkType: soft @@ -5872,15 +5871,6 @@ __metadata: languageName: node linkType: hard -"typedoc-plugin-missing-exports@npm:^2.2.0": - version: 2.2.0 - resolution: "typedoc-plugin-missing-exports@npm:2.2.0" - peerDependencies: - typedoc: 0.24.x || 0.25.x - checksum: db691b3494c8e112d7ea8621fcf79f1988ef8f0c9fc43eb5fc308fda0caa1b1e007c3d51db83236247cf9b52cdfec1186a7eb25ec3416fa03ef65f68b4e88e4e - languageName: node - linkType: hard - "typedoc@npm:0.25.7": version: 0.25.7 resolution: "typedoc@npm:0.25.7"