@mehdad67/apitogo 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cli.js +36 -36
- package/dist/declarations/lib/ui/ActionButton.d.ts +1 -1
- package/dist/declarations/lib/ui/Command.d.ts +1 -1
- package/dist/declarations/lib/util/MdxComponents.d.ts +1 -1
- package/package.json +1 -1
- package/src/app/main.tsx +2 -2
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +2 -2
- package/src/lib/authentication/components/SignUp.tsx +2 -2
- package/src/lib/authentication/providers/clerk.tsx +1 -1
- package/src/lib/authentication/ui/AuthCard.tsx +1 -1
- package/src/lib/authentication/ui/EmailLinkCallbackUi.tsx +5 -5
- package/src/lib/authentication/ui/EmailLinkSentUi.tsx +3 -3
- package/src/lib/authentication/ui/EmailLinkSignInUi.tsx +4 -4
- package/src/lib/authentication/ui/EmailVerificationUi.tsx +4 -4
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +6 -6
- package/src/lib/components/AiAssistantMenuItems.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +2 -2
- package/src/lib/components/DeveloperHint.tsx +1 -1
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/LandingLayout.tsx +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/Main.tsx +1 -1
- package/src/lib/components/Mermaid.tsx +1 -1
- package/src/lib/components/MobileTopNavigation.tsx +3 -3
- package/src/lib/components/MultiSelect.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/components/context/ZudokuContext.ts +1 -1
- package/src/lib/components/navigation/NavigationCategory.tsx +1 -1
- package/src/lib/components/navigation/NavigationFilterInput.tsx +1 -1
- package/src/lib/components/navigation/NavigationItem.tsx +2 -2
- package/src/lib/core/RouteGuard.tsx +2 -2
- package/src/lib/errors/ErrorMessage.tsx +2 -2
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +4 -4
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +3 -3
- package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +5 -5
- package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +3 -3
- package/src/lib/plugins/markdown/MdxPage.tsx +3 -3
- package/src/lib/plugins/openapi/ApiHeader.tsx +1 -1
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -2
- package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +3 -3
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +2 -2
- package/src/lib/plugins/openapi/OperationListItem.tsx +2 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -2
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +4 -4
- package/src/lib/plugins/openapi/SchemaInfo.tsx +1 -1
- package/src/lib/plugins/openapi/SchemaList.tsx +2 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +4 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
- package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +3 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +4 -4
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +2 -2
- package/src/lib/plugins/openapi/playground/Headers.tsx +3 -3
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +5 -5
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +2 -2
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +4 -4
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -3
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +2 -2
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +4 -4
- package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +2 -2
- package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +5 -5
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +2 -2
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +1 -1
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +2 -2
- package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +2 -2
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +4 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +1 -1
- package/src/lib/ui/ActionButton.tsx +1 -1
- package/src/lib/ui/Command.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +2 -2
- package/src/vite/config.ts +4 -4
- package/src/vite/plugin-api-keys.ts +1 -1
- package/src/vite/plugin-api.ts +2 -2
- package/src/vite/plugin-auth.ts +1 -1
- package/src/vite/plugin-component.ts +5 -5
- package/src/vite/plugin-config.ts +1 -1
- package/src/vite/plugin-custom-pages.ts +1 -1
- package/src/vite/plugin-docs.ts +1 -1
- package/src/vite/plugin-mdx.ts +1 -1
- package/src/vite/plugin-modules.ts +2 -2
- package/src/vite/plugin-navigation.ts +1 -1
- package/src/vite/plugin-search.ts +2 -2
- package/src/vite/plugin.ts +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -20,8 +20,8 @@ var init_package_json = __esm({
|
|
|
20
20
|
path.posix.sep
|
|
21
21
|
);
|
|
22
22
|
getPackageJson = (pkgPath) => JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
23
|
-
getZudokuPackageJson = () => getPackageJson(getPackageJsonPath("@
|
|
24
|
-
getZudokuRootDir = () => path.dirname(getPackageJsonPath("@
|
|
23
|
+
getZudokuPackageJson = () => getPackageJson(getPackageJsonPath("@mehdad67/apitogo"));
|
|
24
|
+
getZudokuRootDir = () => path.dirname(getPackageJsonPath("@mehdad67/apitogo"));
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
|
|
@@ -4110,8 +4110,8 @@ import {
|
|
|
4110
4110
|
|
|
4111
4111
|
// package.json
|
|
4112
4112
|
var package_default = {
|
|
4113
|
-
name: "@
|
|
4114
|
-
version: "0.1.
|
|
4113
|
+
name: "@mehdad67/apitogo",
|
|
4114
|
+
version: "0.1.27",
|
|
4115
4115
|
type: "module",
|
|
4116
4116
|
sideEffects: [
|
|
4117
4117
|
"**/*.css",
|
|
@@ -4165,8 +4165,8 @@ var package_default = {
|
|
|
4165
4165
|
"./plugins/search-inkeep": "./src/lib/plugins/search-inkeep/index.tsx",
|
|
4166
4166
|
"./plugins/search-pagefind": "./src/lib/plugins/search-pagefind/index.tsx",
|
|
4167
4167
|
"./plugins/api-catalog": "./src/lib/plugins/api-catalog/index.tsx",
|
|
4168
|
-
"./modules/landing": "@
|
|
4169
|
-
"./modules/user-panel": "@
|
|
4168
|
+
"./modules/landing": "@mehdad67/apitogo-module-landing",
|
|
4169
|
+
"./modules/user-panel": "@mehdad67/apitogo-module-user-panel",
|
|
4170
4170
|
"./components": "./src/lib/components/index.ts",
|
|
4171
4171
|
"./mermaid": "./src/lib/components/Mermaid.tsx",
|
|
4172
4172
|
"./router": "./src/lib/core/router.ts",
|
|
@@ -4438,8 +4438,8 @@ var package_default = {
|
|
|
4438
4438
|
types: "./dist/declarations/lib/plugins/api-catalog/index.d.ts",
|
|
4439
4439
|
default: "./src/lib/plugins/api-catalog/index.tsx"
|
|
4440
4440
|
},
|
|
4441
|
-
"./modules/landing": "@
|
|
4442
|
-
"./modules/user-panel": "@
|
|
4441
|
+
"./modules/landing": "@mehdad67/apitogo-module-landing",
|
|
4442
|
+
"./modules/user-panel": "@mehdad67/apitogo-module-user-panel",
|
|
4443
4443
|
"./components": {
|
|
4444
4444
|
types: "./dist/declarations/lib/components/index.d.ts",
|
|
4445
4445
|
default: "./src/lib/components/index.ts"
|
|
@@ -4679,7 +4679,7 @@ var viteApiKeysPlugin = () => {
|
|
|
4679
4679
|
const deploymentName = ZuploEnv.buildConfig?.deploymentName || getZuploSystemConfigurations(process.env.ZUPLO_SYSTEM_CONFIGURATIONS)?.__ZUPLO_DEPLOYMENT_NAME;
|
|
4680
4680
|
const code = [
|
|
4681
4681
|
`import config from "virtual:zudoku-config";`,
|
|
4682
|
-
config2.__meta.mode === "internal" ? `import { apiKeyPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/api-keys/index.tsx";` : `import { apiKeyPlugin } from "@
|
|
4682
|
+
config2.__meta.mode === "internal" ? `import { apiKeyPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/api-keys/index.tsx";` : `import { apiKeyPlugin } from "@mehdad67/apitogo/plugins/api-keys";`,
|
|
4683
4683
|
`export const configuredApiKeysPlugin = apiKeyPlugin({
|
|
4684
4684
|
...config.apiKeys,
|
|
4685
4685
|
path: "${apiKeysPath}",
|
|
@@ -6389,7 +6389,7 @@ export const rules = ${rulesCode};`,
|
|
|
6389
6389
|
if (hasMissingIcon) {
|
|
6390
6390
|
collectedIcons.add("MissingIcon");
|
|
6391
6391
|
}
|
|
6392
|
-
const importStatement = collectedIcons.size > 0 ? `import { ${[...collectedIcons].join(", ")} } from "@
|
|
6392
|
+
const importStatement = collectedIcons.size > 0 ? `import { ${[...collectedIcons].join(", ")} } from "@mehdad67/apitogo/icons";
|
|
6393
6393
|
` : "";
|
|
6394
6394
|
return [
|
|
6395
6395
|
importStatement,
|
|
@@ -6515,7 +6515,7 @@ var viteApiPlugin = async () => {
|
|
|
6515
6515
|
];
|
|
6516
6516
|
if (config2.apis) {
|
|
6517
6517
|
code.push(
|
|
6518
|
-
'import { openApiPlugin } from "@
|
|
6518
|
+
'import { openApiPlugin } from "@mehdad67/apitogo/plugins/openapi";'
|
|
6519
6519
|
);
|
|
6520
6520
|
code.push(
|
|
6521
6521
|
`const apis = Array.isArray(config.apis) ? config.apis : [config.apis]`
|
|
@@ -6608,7 +6608,7 @@ var viteApiPlugin = async () => {
|
|
|
6608
6608
|
}
|
|
6609
6609
|
if (config2.catalogs) {
|
|
6610
6610
|
code.push(
|
|
6611
|
-
'import { apiCatalogPlugin } from "@
|
|
6611
|
+
'import { apiCatalogPlugin } from "@mehdad67/apitogo/plugins/api-catalog";'
|
|
6612
6612
|
);
|
|
6613
6613
|
const catalogs = ensureArray(config2.catalogs);
|
|
6614
6614
|
const categories = apis.flatMap((api) => api.categories ?? []).reduce((acc, catalog) => {
|
|
@@ -6694,7 +6694,7 @@ var viteAuthPlugin = () => {
|
|
|
6694
6694
|
...${JSON.stringify(config2.authentication, null, 2)},
|
|
6695
6695
|
basePath: ${config2.basePath ? JSON.stringify(config2.basePath) : "undefined"},
|
|
6696
6696
|
};`,
|
|
6697
|
-
config2.__meta.mode === "internal" ? `import authProvider from "${config2.__meta.moduleDir}/src/lib/authentication/providers/${config2.authentication.type}.tsx";` : `import authProvider from "@
|
|
6697
|
+
config2.__meta.mode === "internal" ? `import authProvider from "${config2.__meta.moduleDir}/src/lib/authentication/providers/${config2.authentication.type}.tsx";` : `import authProvider from "@mehdad67/apitogo/auth/${config2.authentication.type}";`,
|
|
6698
6698
|
`export const configuredAuthProvider = authProvider(config);`
|
|
6699
6699
|
].join("\n");
|
|
6700
6700
|
}
|
|
@@ -6712,21 +6712,21 @@ var viteAliasPlugin = () => {
|
|
|
6712
6712
|
config: () => {
|
|
6713
6713
|
const config2 = getCurrentConfig();
|
|
6714
6714
|
const replacements = [
|
|
6715
|
-
["@
|
|
6715
|
+
["@mehdad67/apitogo/components", "src/lib/components/index.ts"],
|
|
6716
6716
|
[
|
|
6717
|
-
"@
|
|
6717
|
+
"@mehdad67/apitogo/plugins/openapi",
|
|
6718
6718
|
"src/lib/plugins/openapi/index.tsx"
|
|
6719
6719
|
],
|
|
6720
6720
|
[
|
|
6721
|
-
"@
|
|
6721
|
+
"@mehdad67/apitogo/plugins/api-catalog",
|
|
6722
6722
|
"src/lib/plugins/api-catalog/index.tsx"
|
|
6723
6723
|
],
|
|
6724
6724
|
[
|
|
6725
|
-
"@
|
|
6725
|
+
"@mehdad67/apitogo/plugins/search-inkeep",
|
|
6726
6726
|
"src/lib/plugins/search-inkeep/index.tsx"
|
|
6727
6727
|
],
|
|
6728
6728
|
[
|
|
6729
|
-
"@
|
|
6729
|
+
"@mehdad67/apitogo/plugins/search-pagefind",
|
|
6730
6730
|
"src/lib/plugins/search-pagefind/index.tsx"
|
|
6731
6731
|
],
|
|
6732
6732
|
[/^@lukoweb\/apitogo\/ui\/(.*)\.js/, "src/lib/ui/$1.tsx"]
|
|
@@ -6765,7 +6765,7 @@ var viteConfigPlugin = () => {
|
|
|
6765
6765
|
}
|
|
6766
6766
|
return `
|
|
6767
6767
|
import rawConfig from "${normalizePath(configPath)}";
|
|
6768
|
-
import { runPluginTransformConfig } from "@
|
|
6768
|
+
import { runPluginTransformConfig } from "@mehdad67/apitogo/plugins";
|
|
6769
6769
|
|
|
6770
6770
|
const config = await runPluginTransformConfig(rawConfig);
|
|
6771
6771
|
export default config;
|
|
@@ -6821,7 +6821,7 @@ var viteCustomPagesPlugin = () => {
|
|
|
6821
6821
|
}
|
|
6822
6822
|
const code = [
|
|
6823
6823
|
`import config from "virtual:zudoku-config";`,
|
|
6824
|
-
config2.__meta.mode === "internal" ? `import { customPagesPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/custom-pages/index.tsx";` : `import { customPagesPlugin } from "@
|
|
6824
|
+
config2.__meta.mode === "internal" ? `import { customPagesPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/custom-pages/index.tsx";` : `import { customPagesPlugin } from "@mehdad67/apitogo/plugins/custom-pages";`,
|
|
6825
6825
|
`export const configuredCustomPagesPlugin = customPagesPlugin(config.navigation);`
|
|
6826
6826
|
];
|
|
6827
6827
|
return code.join("\n");
|
|
@@ -7007,7 +7007,7 @@ var viteDocsPlugin = () => {
|
|
|
7007
7007
|
const code = [
|
|
7008
7008
|
// IMPORTANT! This path here is important, we MUST resolve
|
|
7009
7009
|
// files here as Typescript from the appDir
|
|
7010
|
-
config2.__meta.mode === "internal" ? `import { markdownPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/markdown/index.tsx";` : `import { markdownPlugin } from "@
|
|
7010
|
+
config2.__meta.mode === "internal" ? `import { markdownPlugin } from "${config2.__meta.moduleDir}/src/lib/plugins/markdown/index.tsx";` : `import { markdownPlugin } from "@mehdad67/apitogo/plugins/markdown";`
|
|
7011
7011
|
];
|
|
7012
7012
|
const docsConfig = DocsConfigSchema.parse(config2.docs ?? {});
|
|
7013
7013
|
const globImportBasePath = process.env.NODE_ENV === "development" ? config2.basePath ?? "" : "";
|
|
@@ -7622,7 +7622,7 @@ var viteMdxPlugin = async () => {
|
|
|
7622
7622
|
return {
|
|
7623
7623
|
enforce: "pre",
|
|
7624
7624
|
...mdx({
|
|
7625
|
-
providerImportSource: config2.__meta.mode === "internal" || config2.__meta.mode === "standalone" ? "@mdx-js/react" : "@
|
|
7625
|
+
providerImportSource: config2.__meta.mode === "internal" || config2.__meta.mode === "standalone" ? "@mdx-js/react" : "@mehdad67/apitogo/components",
|
|
7626
7626
|
mdxExtensions: [".mdx"],
|
|
7627
7627
|
format: "detect",
|
|
7628
7628
|
remarkPlugins,
|
|
@@ -7637,8 +7637,8 @@ var plugin_mdx_default = viteMdxPlugin;
|
|
|
7637
7637
|
init_loader();
|
|
7638
7638
|
import path18 from "node:path";
|
|
7639
7639
|
import { normalizePath as normalizePath2 } from "vite";
|
|
7640
|
-
var getLandingModuleImport = (moduleDir, mode) => mode === "internal" ? normalizePath2(path18.join(moduleDir, "../module-landing/src/index.tsx")) : "@
|
|
7641
|
-
var getUserPanelModuleImport = (moduleDir, mode) => mode === "internal" ? normalizePath2(path18.join(moduleDir, "../module-user-panel/src/index.tsx")) : "@
|
|
7640
|
+
var getLandingModuleImport = (moduleDir, mode) => mode === "internal" ? normalizePath2(path18.join(moduleDir, "../module-landing/src/index.tsx")) : "@mehdad67/apitogo-module-landing";
|
|
7641
|
+
var getUserPanelModuleImport = (moduleDir, mode) => mode === "internal" ? normalizePath2(path18.join(moduleDir, "../module-user-panel/src/index.tsx")) : "@mehdad67/apitogo-module-user-panel";
|
|
7642
7642
|
var resolveProjectPageImport = (rootDir, pagePath) => normalizePath2(path18.resolve(rootDir, pagePath));
|
|
7643
7643
|
var viteModulesPlugin = () => {
|
|
7644
7644
|
const virtualModuleId4 = "virtual:zudoku-modules-plugin";
|
|
@@ -7783,7 +7783,7 @@ var viteSearchPlugin = () => {
|
|
|
7783
7783
|
if (config2.search.type === "inkeep") {
|
|
7784
7784
|
code.push(
|
|
7785
7785
|
`import config from 'virtual:zudoku-config';`,
|
|
7786
|
-
`import { inkeepSearchPlugin } from "@
|
|
7786
|
+
`import { inkeepSearchPlugin } from "@mehdad67/apitogo/plugins/search-inkeep";`,
|
|
7787
7787
|
`export const configuredSearchPlugin = inkeepSearchPlugin(config.search);`
|
|
7788
7788
|
);
|
|
7789
7789
|
return code.join("\n");
|
|
@@ -7791,7 +7791,7 @@ var viteSearchPlugin = () => {
|
|
|
7791
7791
|
if (config2.search.type === "pagefind") {
|
|
7792
7792
|
code.push(
|
|
7793
7793
|
`import config from 'virtual:zudoku-config';`,
|
|
7794
|
-
`import { pagefindSearchPlugin } from "@
|
|
7794
|
+
`import { pagefindSearchPlugin } from "@mehdad67/apitogo/plugins/search-pagefind";`,
|
|
7795
7795
|
`export const configuredSearchPlugin = pagefindSearchPlugin(config.search);`
|
|
7796
7796
|
);
|
|
7797
7797
|
return code.join("\n");
|
|
@@ -7901,7 +7901,7 @@ function vitePlugin() {
|
|
|
7901
7901
|
viteSearchPlugin(),
|
|
7902
7902
|
plugin_component_default(),
|
|
7903
7903
|
plugin_markdown_export_default(),
|
|
7904
|
-
vitePluginSsrCss({ entries: ["@
|
|
7904
|
+
vitePluginSsrCss({ entries: ["@mehdad67/apitogo/app/entry.server.tsx"] }),
|
|
7905
7905
|
viteThemePlugin(),
|
|
7906
7906
|
tailwindcss()
|
|
7907
7907
|
];
|
|
@@ -8012,9 +8012,9 @@ async function getViteConfig(dir, configEnv) {
|
|
|
8012
8012
|
emptyOutDir: true,
|
|
8013
8013
|
rollupOptions: {
|
|
8014
8014
|
input: configEnv.command === "build" ? configEnv.isSsrBuild ? [
|
|
8015
|
-
"@
|
|
8015
|
+
"@mehdad67/apitogo/app/entry.server.tsx",
|
|
8016
8016
|
config2.__meta.configPath
|
|
8017
|
-
] : "@
|
|
8017
|
+
] : "@mehdad67/apitogo/app/entry.client.tsx" : void 0,
|
|
8018
8018
|
external: [joinUrl(config2.basePath, "/pagefind/pagefind.js")]
|
|
8019
8019
|
},
|
|
8020
8020
|
chunkSizeWarningLimit: 1500
|
|
@@ -8035,10 +8035,10 @@ async function getViteConfig(dir, configEnv) {
|
|
|
8035
8035
|
target: "es2022"
|
|
8036
8036
|
},
|
|
8037
8037
|
entries: [path20.posix.join(getZudokuRootDir(), "src/{app,lib}/**")],
|
|
8038
|
-
exclude: ["@
|
|
8038
|
+
exclude: ["@mehdad67/apitogo"],
|
|
8039
8039
|
include: [
|
|
8040
8040
|
"react-dom/client",
|
|
8041
|
-
"@
|
|
8041
|
+
"@mehdad67/apitogo/icons",
|
|
8042
8042
|
...process.env.SENTRY_DSN ? ["@sentry/react"] : []
|
|
8043
8043
|
]
|
|
8044
8044
|
},
|
|
@@ -8947,7 +8947,7 @@ jobs:
|
|
|
8947
8947
|
run: npm ci
|
|
8948
8948
|
|
|
8949
8949
|
- name: Install APIToGo CLI
|
|
8950
|
-
run: npm install -g @
|
|
8950
|
+
run: npm install -g @mehdad67/apitogo@latest
|
|
8951
8951
|
|
|
8952
8952
|
- name: Check APIToGo version
|
|
8953
8953
|
run: apitogo --version
|
|
@@ -8979,7 +8979,7 @@ jobs:
|
|
|
8979
8979
|
|
|
8980
8980
|
steps:
|
|
8981
8981
|
- name: Install APIToGo CLI
|
|
8982
|
-
run: npm install -g @
|
|
8982
|
+
run: npm install -g @mehdad67/apitogo@latest
|
|
8983
8983
|
|
|
8984
8984
|
- name: Remove preview deployment
|
|
8985
8985
|
env:
|
|
@@ -9011,7 +9011,7 @@ jobs:
|
|
|
9011
9011
|
run: npm ci
|
|
9012
9012
|
|
|
9013
9013
|
- name: Install APIToGo CLI
|
|
9014
|
-
run: npm install -g @
|
|
9014
|
+
run: npm install -g @mehdad67/apitogo@latest
|
|
9015
9015
|
|
|
9016
9016
|
- name: Check APIToGo version
|
|
9017
9017
|
run: apitogo --version
|
|
@@ -9721,7 +9721,7 @@ async function ensurePackageJson(dir) {
|
|
|
9721
9721
|
const baseDeps = {
|
|
9722
9722
|
react: ">=19.0.0",
|
|
9723
9723
|
"react-dom": ">=19.0.0",
|
|
9724
|
-
"@
|
|
9724
|
+
"@mehdad67/apitogo": apitogoVer
|
|
9725
9725
|
};
|
|
9726
9726
|
const baseScripts = {
|
|
9727
9727
|
dev: "apitogo dev",
|
|
@@ -10092,7 +10092,7 @@ var buildNewConfigContents = (pagesDir, openApiSpecRelative) => {
|
|
|
10092
10092
|
input: "${openapiInputForConfig(openApiSpecRelative)}",
|
|
10093
10093
|
path: "api",
|
|
10094
10094
|
},`;
|
|
10095
|
-
return `import type { ApitogoConfig } from "@
|
|
10095
|
+
return `import type { ApitogoConfig } from "@mehdad67/apitogo";
|
|
10096
10096
|
|
|
10097
10097
|
const config: ApitogoConfig = {
|
|
10098
10098
|
docs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DialogContent } from "@
|
|
1
|
+
import { DialogContent } from "@mehdad67/apitogo/ui/Dialog.js";
|
|
2
2
|
import type { DialogProps } from "@radix-ui/react-dialog";
|
|
3
3
|
import { Command as CommandPrimitive } from "cmdk";
|
|
4
4
|
import type { ComponentPropsWithoutRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alert } from "@
|
|
1
|
+
import { Alert } from "@mehdad67/apitogo/ui/Alert.js";
|
|
2
2
|
import type { MDXComponents } from "mdx/types.js";
|
|
3
3
|
import { Badge } from "../ui/Badge.js";
|
|
4
4
|
export type MdxComponentsType = Readonly<MDXComponents> | null | undefined;
|
package/package.json
CHANGED
package/src/app/main.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Apitogo } from "@
|
|
2
|
-
import { Outlet } from "@
|
|
1
|
+
import { Apitogo } from "@mehdad67/apitogo/components";
|
|
2
|
+
import { Outlet } from "@mehdad67/apitogo/router";
|
|
3
3
|
import type { RouteObject } from "react-router";
|
|
4
4
|
import type { HighlighterCore } from "shiki";
|
|
5
5
|
import { configuredApiKeysPlugin } from "virtual:zudoku-api-keys-plugin";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Spinner } from "@
|
|
1
|
+
import { Spinner } from "@mehdad67/apitogo/components";
|
|
2
2
|
import {
|
|
3
3
|
Card,
|
|
4
4
|
CardContent,
|
|
5
5
|
CardDescription,
|
|
6
6
|
CardHeader,
|
|
7
7
|
CardTitle,
|
|
8
|
-
} from "@
|
|
8
|
+
} from "@mehdad67/apitogo/ui/Card.js";
|
|
9
9
|
import { useEffect } from "react";
|
|
10
10
|
import { useSearchParams } from "react-router";
|
|
11
11
|
import { useLatest } from "../../util/useLatest.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Button, Link } from "@
|
|
1
|
+
import { Button, Link } from "@mehdad67/apitogo/components";
|
|
2
2
|
import {
|
|
3
3
|
Card,
|
|
4
4
|
CardContent,
|
|
5
5
|
CardDescription,
|
|
6
6
|
CardHeader,
|
|
7
7
|
CardTitle,
|
|
8
|
-
} from "@
|
|
8
|
+
} from "@mehdad67/apitogo/ui/Card.js";
|
|
9
9
|
import { useEffect } from "react";
|
|
10
10
|
import { useSearchParams } from "react-router";
|
|
11
11
|
import { useLatest } from "../../util/useLatest.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Clerk } from "@clerk/clerk-js";
|
|
2
|
-
import type { ApitogoPlugin } from "@
|
|
2
|
+
import type { ApitogoPlugin } from "@mehdad67/apitogo/plugins";
|
|
3
3
|
import type { ClerkAuthenticationConfig } from "../../../config/config.js";
|
|
4
4
|
import type {
|
|
5
5
|
AuthActionContext,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Spinner } from "@
|
|
2
|
-
import { ActionButton } from "@
|
|
1
|
+
import { Spinner } from "@mehdad67/apitogo/components";
|
|
2
|
+
import { ActionButton } from "@mehdad67/apitogo/ui/ActionButton.js";
|
|
3
3
|
import {
|
|
4
4
|
Alert,
|
|
5
5
|
AlertDescription,
|
|
6
6
|
AlertTitle,
|
|
7
|
-
} from "@
|
|
7
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
8
8
|
import {
|
|
9
9
|
CardContent,
|
|
10
10
|
CardDescription,
|
|
11
11
|
CardHeader,
|
|
12
12
|
CardTitle,
|
|
13
|
-
} from "@
|
|
14
|
-
import { Input } from "@
|
|
13
|
+
} from "@mehdad67/apitogo/ui/Card.js";
|
|
14
|
+
import { Input } from "@mehdad67/apitogo/ui/Input.js";
|
|
15
15
|
import { useMutation } from "@tanstack/react-query";
|
|
16
16
|
import { useEffect, useRef, useState } from "react";
|
|
17
17
|
import { useNavigate, useSearchParams } from "react-router";
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
Alert,
|
|
3
3
|
AlertDescription,
|
|
4
4
|
AlertTitle,
|
|
5
|
-
} from "@
|
|
6
|
-
import { Button } from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
6
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
7
7
|
import {
|
|
8
8
|
CardContent,
|
|
9
9
|
CardDescription,
|
|
10
10
|
CardHeader,
|
|
11
11
|
CardTitle,
|
|
12
|
-
} from "@
|
|
12
|
+
} from "@mehdad67/apitogo/ui/Card.js";
|
|
13
13
|
import { useMutation } from "@tanstack/react-query";
|
|
14
14
|
import { Mail, RefreshCw } from "lucide-react";
|
|
15
15
|
import { useState } from "react";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ActionButton } from "@
|
|
1
|
+
import { ActionButton } from "@mehdad67/apitogo/ui/ActionButton.js";
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertDescription,
|
|
5
5
|
AlertTitle,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
7
7
|
import {
|
|
8
8
|
CardContent,
|
|
9
9
|
CardDescription,
|
|
10
10
|
CardHeader,
|
|
11
11
|
CardTitle,
|
|
12
|
-
} from "@
|
|
13
|
-
import { Input } from "@
|
|
12
|
+
} from "@mehdad67/apitogo/ui/Card.js";
|
|
13
|
+
import { Input } from "@mehdad67/apitogo/ui/Input.js";
|
|
14
14
|
import { useMutation } from "@tanstack/react-query";
|
|
15
15
|
import { useForm } from "react-hook-form";
|
|
16
16
|
import { Link, useNavigate, useSearchParams } from "react-router";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ActionButton } from "@
|
|
1
|
+
import { ActionButton } from "@mehdad67/apitogo/ui/ActionButton.js";
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertDescription,
|
|
5
5
|
AlertTitle,
|
|
6
|
-
} from "@
|
|
7
|
-
import { Button } from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
7
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
8
8
|
import {
|
|
9
9
|
Card,
|
|
10
10
|
CardContent,
|
|
11
11
|
CardDescription,
|
|
12
12
|
CardHeader,
|
|
13
13
|
CardTitle,
|
|
14
|
-
} from "@
|
|
14
|
+
} from "@mehdad67/apitogo/ui/Card.js";
|
|
15
15
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
16
16
|
import { CheckIcon, MailCheck, RefreshCw } from "lucide-react";
|
|
17
17
|
import { Navigate, useSearchParams } from "react-router";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ActionButton } from "@
|
|
1
|
+
import { ActionButton } from "@mehdad67/apitogo/ui/ActionButton.js";
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertDescription,
|
|
5
5
|
AlertTitle,
|
|
6
|
-
} from "@
|
|
7
|
-
import { Button, type ButtonProps } from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
7
|
+
import { Button, type ButtonProps } from "@mehdad67/apitogo/ui/Button.js";
|
|
8
8
|
import {
|
|
9
9
|
CardContent,
|
|
10
10
|
CardDescription,
|
|
11
11
|
CardHeader,
|
|
12
12
|
CardTitle,
|
|
13
|
-
} from "@
|
|
14
|
-
import { Input } from "@
|
|
15
|
-
import { Separator } from "@
|
|
13
|
+
} from "@mehdad67/apitogo/ui/Card.js";
|
|
14
|
+
import { Input } from "@mehdad67/apitogo/ui/Input.js";
|
|
15
|
+
import { Separator } from "@mehdad67/apitogo/ui/Separator.js";
|
|
16
16
|
import { useMutation } from "@tanstack/react-query";
|
|
17
17
|
import React from "react";
|
|
18
18
|
import { useForm } from "react-hook-form";
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
CommandInlineInput,
|
|
4
4
|
CommandItem,
|
|
5
5
|
CommandList,
|
|
6
|
-
} from "@
|
|
7
|
-
import { Popover, PopoverContent } from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Command.js";
|
|
7
|
+
import { Popover, PopoverContent } from "@mehdad67/apitogo/ui/Popover.js";
|
|
8
8
|
import { PopoverAnchor } from "@radix-ui/react-popover";
|
|
9
9
|
import { useCommandState } from "cmdk";
|
|
10
10
|
import { type KeyboardEvent, type Ref, useRef, useState } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { Skeleton } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
|
+
import { Skeleton } from "@mehdad67/apitogo/ui/Skeleton.js";
|
|
3
3
|
import { LogOutIcon } from "lucide-react";
|
|
4
4
|
import { lazy, memo, Suspense } from "react";
|
|
5
5
|
import { Link } from "react-router";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TooltipProvider } from "@
|
|
1
|
+
import { TooltipProvider } from "@mehdad67/apitogo/ui/Tooltip.js";
|
|
2
2
|
import { type ReactNode, Suspense, useEffect } from "react";
|
|
3
3
|
import { Outlet } from "react-router";
|
|
4
4
|
import { cn } from "../util/cn.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Drawer, DrawerTrigger } from "@
|
|
1
|
+
import { Drawer, DrawerTrigger } from "@mehdad67/apitogo/ui/Drawer.js";
|
|
2
2
|
import { PanelLeftIcon } from "lucide-react";
|
|
3
3
|
import { type PropsWithChildren, useState } from "react";
|
|
4
4
|
import { useNavigation } from "react-router";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Alert,
|
|
3
3
|
AlertDescription,
|
|
4
4
|
AlertTitle,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
6
6
|
import { useQuery } from "@tanstack/react-query";
|
|
7
7
|
import type { MermaidConfig } from "mermaid";
|
|
8
8
|
import type { ComponentProps } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { Separator } from "@
|
|
3
|
-
import { Skeleton } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
|
+
import { Separator } from "@mehdad67/apitogo/ui/Separator.js";
|
|
3
|
+
import { Skeleton } from "@mehdad67/apitogo/ui/Skeleton.js";
|
|
4
4
|
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
5
5
|
import { deepEqual } from "fast-equals";
|
|
6
6
|
import {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Popover,
|
|
3
3
|
PopoverContent,
|
|
4
4
|
PopoverTrigger,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Popover.js";
|
|
6
6
|
import { CheckIcon, ChevronDownIcon } from "lucide-react";
|
|
7
7
|
import { useState } from "react";
|
|
8
8
|
import { cn } from "../util/cn.js";
|
|
@@ -14,7 +14,7 @@ const useApitogoContext = () => {
|
|
|
14
14
|
|
|
15
15
|
if (!context) {
|
|
16
16
|
throw new Error(
|
|
17
|
-
"useApitogo must be used within an ApitogoProvider (from @
|
|
17
|
+
"useApitogo must be used within an ApitogoProvider (from @mehdad67/apitogo/components).",
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
InputGroupAddon,
|
|
4
4
|
InputGroupButton,
|
|
5
5
|
InputGroupInput,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/InputGroup.js";
|
|
7
7
|
import { SearchIcon, XIcon } from "lucide-react";
|
|
8
8
|
import { useNavigationFilter } from "./NavigationFilterContext.js";
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Separator } from "@
|
|
1
|
+
import { Separator } from "@mehdad67/apitogo/ui/Separator.js";
|
|
2
2
|
import {
|
|
3
3
|
Tooltip,
|
|
4
4
|
TooltipContent,
|
|
5
5
|
TooltipTrigger,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Tooltip.js";
|
|
7
7
|
import { ExternalLinkIcon } from "lucide-react";
|
|
8
8
|
import { Suspense, lazy, useEffect, useRef, useState } from "react";
|
|
9
9
|
import { NavLink, useLocation } from "react-router";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
Dialog,
|
|
4
4
|
DialogContent,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
DialogFooter,
|
|
7
7
|
DialogHeader,
|
|
8
8
|
DialogTitle,
|
|
9
|
-
} from "@
|
|
9
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
10
10
|
import { Helmet } from "@zudoku/react-helmet-async";
|
|
11
11
|
import { use, useCallback, useEffect, useMemo } from "react";
|
|
12
12
|
import {
|