@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/src/vite/config.ts
CHANGED
|
@@ -163,10 +163,10 @@ export async function getViteConfig(
|
|
|
163
163
|
configEnv.command === "build"
|
|
164
164
|
? configEnv.isSsrBuild
|
|
165
165
|
? [
|
|
166
|
-
"@
|
|
166
|
+
"@mehdad67/apitogo/app/entry.server.tsx",
|
|
167
167
|
config.__meta.configPath,
|
|
168
168
|
]
|
|
169
|
-
: "@
|
|
169
|
+
: "@mehdad67/apitogo/app/entry.client.tsx"
|
|
170
170
|
: undefined,
|
|
171
171
|
external: [joinUrl(config.basePath, "/pagefind/pagefind.js")],
|
|
172
172
|
},
|
|
@@ -190,10 +190,10 @@ export async function getViteConfig(
|
|
|
190
190
|
target: "es2022",
|
|
191
191
|
},
|
|
192
192
|
entries: [path.posix.join(getZudokuRootDir(), "src/{app,lib}/**")],
|
|
193
|
-
exclude: ["@
|
|
193
|
+
exclude: ["@mehdad67/apitogo"],
|
|
194
194
|
include: [
|
|
195
195
|
"react-dom/client",
|
|
196
|
-
"@
|
|
196
|
+
"@mehdad67/apitogo/icons",
|
|
197
197
|
...(process.env.SENTRY_DSN ? ["@sentry/react"] : []),
|
|
198
198
|
],
|
|
199
199
|
},
|
|
@@ -34,7 +34,7 @@ const viteApiKeysPlugin = (): Plugin => {
|
|
|
34
34
|
`import config from "virtual:zudoku-config";`,
|
|
35
35
|
config.__meta.mode === "internal"
|
|
36
36
|
? `import { apiKeyPlugin } from "${config.__meta.moduleDir}/src/lib/plugins/api-keys/index.tsx";`
|
|
37
|
-
: `import { apiKeyPlugin } from "@
|
|
37
|
+
: `import { apiKeyPlugin } from "@mehdad67/apitogo/plugins/api-keys";`,
|
|
38
38
|
`export const configuredApiKeysPlugin = apiKeyPlugin({
|
|
39
39
|
...config.apiKeys,
|
|
40
40
|
path: "${apiKeysPath}",
|
package/src/vite/plugin-api.ts
CHANGED
|
@@ -140,7 +140,7 @@ const viteApiPlugin = async (): Promise<Plugin> => {
|
|
|
140
140
|
|
|
141
141
|
if (config.apis) {
|
|
142
142
|
code.push(
|
|
143
|
-
'import { openApiPlugin } from "@
|
|
143
|
+
'import { openApiPlugin } from "@mehdad67/apitogo/plugins/openapi";',
|
|
144
144
|
);
|
|
145
145
|
code.push(
|
|
146
146
|
`const apis = Array.isArray(config.apis) ? config.apis : [config.apis]`,
|
|
@@ -246,7 +246,7 @@ const viteApiPlugin = async (): Promise<Plugin> => {
|
|
|
246
246
|
|
|
247
247
|
if (config.catalogs) {
|
|
248
248
|
code.push(
|
|
249
|
-
'import { apiCatalogPlugin } from "@
|
|
249
|
+
'import { apiCatalogPlugin } from "@mehdad67/apitogo/plugins/api-catalog";',
|
|
250
250
|
);
|
|
251
251
|
|
|
252
252
|
const catalogs = ensureArray(config.catalogs);
|
package/src/vite/plugin-auth.ts
CHANGED
|
@@ -31,7 +31,7 @@ const viteAuthPlugin = (): Plugin => {
|
|
|
31
31
|
};`,
|
|
32
32
|
config.__meta.mode === "internal"
|
|
33
33
|
? `import authProvider from "${config.__meta.moduleDir}/src/lib/authentication/providers/${config.authentication.type}.tsx";`
|
|
34
|
-
: `import authProvider from "@
|
|
34
|
+
: `import authProvider from "@mehdad67/apitogo/auth/${config.authentication.type}";`,
|
|
35
35
|
`export const configuredAuthProvider = authProvider(config);`,
|
|
36
36
|
].join("\n");
|
|
37
37
|
}
|
|
@@ -9,21 +9,21 @@ const viteAliasPlugin = (): Plugin => {
|
|
|
9
9
|
const config = getCurrentConfig();
|
|
10
10
|
|
|
11
11
|
const replacements = [
|
|
12
|
-
["@
|
|
12
|
+
["@mehdad67/apitogo/components", "src/lib/components/index.ts"],
|
|
13
13
|
[
|
|
14
|
-
"@
|
|
14
|
+
"@mehdad67/apitogo/plugins/openapi",
|
|
15
15
|
"src/lib/plugins/openapi/index.tsx",
|
|
16
16
|
],
|
|
17
17
|
[
|
|
18
|
-
"@
|
|
18
|
+
"@mehdad67/apitogo/plugins/api-catalog",
|
|
19
19
|
"src/lib/plugins/api-catalog/index.tsx",
|
|
20
20
|
],
|
|
21
21
|
[
|
|
22
|
-
"@
|
|
22
|
+
"@mehdad67/apitogo/plugins/search-inkeep",
|
|
23
23
|
"src/lib/plugins/search-inkeep/index.tsx",
|
|
24
24
|
],
|
|
25
25
|
[
|
|
26
|
-
"@
|
|
26
|
+
"@mehdad67/apitogo/plugins/search-pagefind",
|
|
27
27
|
"src/lib/plugins/search-pagefind/index.tsx",
|
|
28
28
|
],
|
|
29
29
|
[/^@lukoweb\/apitogo\/ui\/(.*)\.js/, "src/lib/ui/$1.tsx"],
|
|
@@ -27,7 +27,7 @@ const viteConfigPlugin = (): Plugin => {
|
|
|
27
27
|
|
|
28
28
|
return `
|
|
29
29
|
import rawConfig from "${normalizePath(configPath)}";
|
|
30
|
-
import { runPluginTransformConfig } from "@
|
|
30
|
+
import { runPluginTransformConfig } from "@mehdad67/apitogo/plugins";
|
|
31
31
|
|
|
32
32
|
const config = await runPluginTransformConfig(rawConfig);
|
|
33
33
|
export default config;
|
|
@@ -23,7 +23,7 @@ const viteCustomPagesPlugin = (): Plugin => {
|
|
|
23
23
|
`import config from "virtual:zudoku-config";`,
|
|
24
24
|
config.__meta.mode === "internal"
|
|
25
25
|
? `import { customPagesPlugin } from "${config.__meta.moduleDir}/src/lib/plugins/custom-pages/index.tsx";`
|
|
26
|
-
: `import { customPagesPlugin } from "@
|
|
26
|
+
: `import { customPagesPlugin } from "@mehdad67/apitogo/plugins/custom-pages";`,
|
|
27
27
|
`export const configuredCustomPagesPlugin = customPagesPlugin(config.navigation);`,
|
|
28
28
|
];
|
|
29
29
|
|
package/src/vite/plugin-docs.ts
CHANGED
|
@@ -149,7 +149,7 @@ const viteDocsPlugin = (): Plugin => {
|
|
|
149
149
|
// files here as Typescript from the appDir
|
|
150
150
|
config.__meta.mode === "internal"
|
|
151
151
|
? `import { markdownPlugin } from "${config.__meta.moduleDir}/src/lib/plugins/markdown/index.tsx";`
|
|
152
|
-
: `import { markdownPlugin } from "@
|
|
152
|
+
: `import { markdownPlugin } from "@mehdad67/apitogo/plugins/markdown";`,
|
|
153
153
|
];
|
|
154
154
|
|
|
155
155
|
const docsConfig = DocsConfigSchema.parse(config.docs ?? {});
|
package/src/vite/plugin-mdx.ts
CHANGED
|
@@ -136,7 +136,7 @@ const viteMdxPlugin = async (): Promise<Plugin> => {
|
|
|
136
136
|
providerImportSource:
|
|
137
137
|
config.__meta.mode === "internal" || config.__meta.mode === "standalone"
|
|
138
138
|
? "@mdx-js/react"
|
|
139
|
-
: "@
|
|
139
|
+
: "@mehdad67/apitogo/components",
|
|
140
140
|
mdxExtensions: [".mdx"],
|
|
141
141
|
format: "detect",
|
|
142
142
|
remarkPlugins,
|
|
@@ -7,12 +7,12 @@ import { writePluginDebugCode } from "./debug.js";
|
|
|
7
7
|
const getLandingModuleImport = (moduleDir: string, mode: string) =>
|
|
8
8
|
mode === "internal"
|
|
9
9
|
? normalizePath(path.join(moduleDir, "../module-landing/src/index.tsx"))
|
|
10
|
-
: "@
|
|
10
|
+
: "@mehdad67/apitogo-module-landing";
|
|
11
11
|
|
|
12
12
|
const getUserPanelModuleImport = (moduleDir: string, mode: string) =>
|
|
13
13
|
mode === "internal"
|
|
14
14
|
? normalizePath(path.join(moduleDir, "../module-user-panel/src/index.tsx"))
|
|
15
|
-
: "@
|
|
15
|
+
: "@mehdad67/apitogo-module-user-panel";
|
|
16
16
|
|
|
17
17
|
const resolveProjectPageImport = (rootDir: string, pagePath: string) =>
|
|
18
18
|
normalizePath(path.resolve(rootDir, pagePath));
|
|
@@ -92,7 +92,7 @@ export const viteNavigationPlugin = (): Plugin => {
|
|
|
92
92
|
|
|
93
93
|
const importStatement =
|
|
94
94
|
collectedIcons.size > 0
|
|
95
|
-
? `import { ${[...collectedIcons].join(", ")} } from "@
|
|
95
|
+
? `import { ${[...collectedIcons].join(", ")} } from "@mehdad67/apitogo/icons";\n`
|
|
96
96
|
: "";
|
|
97
97
|
|
|
98
98
|
return [
|
|
@@ -38,7 +38,7 @@ export const viteSearchPlugin = (): Plugin => {
|
|
|
38
38
|
if (config.search.type === "inkeep") {
|
|
39
39
|
code.push(
|
|
40
40
|
`import config from 'virtual:zudoku-config';`,
|
|
41
|
-
`import { inkeepSearchPlugin } from "@
|
|
41
|
+
`import { inkeepSearchPlugin } from "@mehdad67/apitogo/plugins/search-inkeep";`,
|
|
42
42
|
`export const configuredSearchPlugin = inkeepSearchPlugin(config.search);`,
|
|
43
43
|
);
|
|
44
44
|
|
|
@@ -48,7 +48,7 @@ export const viteSearchPlugin = (): Plugin => {
|
|
|
48
48
|
if (config.search.type === "pagefind") {
|
|
49
49
|
code.push(
|
|
50
50
|
`import config from 'virtual:zudoku-config';`,
|
|
51
|
-
`import { pagefindSearchPlugin } from "@
|
|
51
|
+
`import { pagefindSearchPlugin } from "@mehdad67/apitogo/plugins/search-pagefind";`,
|
|
52
52
|
`export const configuredSearchPlugin = pagefindSearchPlugin(config.search);`,
|
|
53
53
|
);
|
|
54
54
|
|
package/src/vite/plugin.ts
CHANGED
|
@@ -37,7 +37,7 @@ export default function vitePlugin(): PluginOption {
|
|
|
37
37
|
viteSearchPlugin(),
|
|
38
38
|
viteAliasPlugin(),
|
|
39
39
|
viteMarkdownExportPlugin(),
|
|
40
|
-
vitePluginSsrCss({ entries: ["@
|
|
40
|
+
vitePluginSsrCss({ entries: ["@mehdad67/apitogo/app/entry.server.tsx"] }),
|
|
41
41
|
viteThemePlugin(),
|
|
42
42
|
tailwindcss(),
|
|
43
43
|
];
|