@lukoweb/apitogo 0.1.79 → 0.1.81
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 +16 -21
- package/docs/components.mdx +60 -0
- package/docs/guides/custom-pages.md +1 -1
- package/package.json +1 -1
- package/src/app/main.tsx +1 -1
- package/src/config/resolve-modules.ts +4 -4
package/dist/cli/cli.js
CHANGED
|
@@ -1339,7 +1339,7 @@ var init_resolve_modules = __esm({
|
|
|
1339
1339
|
return { ...defaults, ...override };
|
|
1340
1340
|
};
|
|
1341
1341
|
buildDefaultLandingContent = (config2) => {
|
|
1342
|
-
const siteTitle = config2.metadata?.applicationName ?? config2.site?.title ?? "
|
|
1342
|
+
const siteTitle = config2.metadata?.applicationName ?? config2.site?.title ?? "API ToGo";
|
|
1343
1343
|
return {
|
|
1344
1344
|
...DEFAULT_LANDING_CONTENT,
|
|
1345
1345
|
hero: {
|
|
@@ -1370,7 +1370,7 @@ var init_resolve_modules = __esm({
|
|
|
1370
1370
|
};
|
|
1371
1371
|
};
|
|
1372
1372
|
resolveLandingContent = (config2, content, options) => {
|
|
1373
|
-
const siteTitle = config2.metadata?.applicationName ?? config2.site?.title ?? "
|
|
1373
|
+
const siteTitle = config2.metadata?.applicationName ?? config2.site?.title ?? "API ToGo";
|
|
1374
1374
|
if (options?.useDefaults === true) {
|
|
1375
1375
|
const defaults = buildDefaultLandingContent(config2);
|
|
1376
1376
|
const footer2 = mergeLandingSection(defaults.footer, content?.footer);
|
|
@@ -1390,7 +1390,7 @@ var init_resolve_modules = __esm({
|
|
|
1390
1390
|
features: content?.features ?? defaults.features,
|
|
1391
1391
|
primaryAction: content?.primaryAction ?? defaults.primaryAction,
|
|
1392
1392
|
secondaryAction: content?.secondaryAction ?? defaults.secondaryAction,
|
|
1393
|
-
// A configured footer replaces the "Built with
|
|
1393
|
+
// A configured footer replaces the "Built with API ToGo" powered-by line.
|
|
1394
1394
|
showPoweredBy: content?.showPoweredBy ?? (footer2 ? false : defaults.showPoweredBy),
|
|
1395
1395
|
trust: mergeLandingSection(defaults.trust, content?.trust),
|
|
1396
1396
|
apiShowcase: mergeLandingSection(
|
|
@@ -1418,7 +1418,7 @@ var init_resolve_modules = __esm({
|
|
|
1418
1418
|
features: content.features,
|
|
1419
1419
|
primaryAction: content.primaryAction,
|
|
1420
1420
|
secondaryAction: content.secondaryAction,
|
|
1421
|
-
// A configured footer replaces the "Built with
|
|
1421
|
+
// A configured footer replaces the "Built with API ToGo" powered-by line.
|
|
1422
1422
|
showPoweredBy: content.showPoweredBy ?? !footer,
|
|
1423
1423
|
trust: content.trust ? mergeLandingSection(void 0, content.trust) : void 0,
|
|
1424
1424
|
apiShowcase: content.apiShowcase ? mergeLandingSection(void 0, content.apiShowcase) : void 0,
|
|
@@ -5439,7 +5439,7 @@ async function apply(argv) {
|
|
|
5439
5439
|
|
|
5440
5440
|
// src/cli/cmds/apply.ts
|
|
5441
5441
|
var apply_default = {
|
|
5442
|
-
desc: "Apply apitogo.config.json to the
|
|
5442
|
+
desc: "Apply apitogo.config.json to the API ToGo platform (apihub, portal backend, portal frontend)",
|
|
5443
5443
|
command: "apply",
|
|
5444
5444
|
builder: (yargs2) => yargs2.option("dir", {
|
|
5445
5445
|
type: "string",
|
|
@@ -5633,7 +5633,7 @@ import {
|
|
|
5633
5633
|
// package.json
|
|
5634
5634
|
var package_default = {
|
|
5635
5635
|
name: "@lukoweb/apitogo",
|
|
5636
|
-
version: "0.1.
|
|
5636
|
+
version: "0.1.81",
|
|
5637
5637
|
type: "module",
|
|
5638
5638
|
sideEffects: [
|
|
5639
5639
|
"**/*.css",
|
|
@@ -10453,7 +10453,7 @@ async function build(argv) {
|
|
|
10453
10453
|
const packageJson2 = getZudokuPackageJson();
|
|
10454
10454
|
const jsonOnly = argv.jsonOnly === true || process.env.APITOGO_JSON_ONLY === "1";
|
|
10455
10455
|
if (!jsonOnly) {
|
|
10456
|
-
printDiagnosticsToConsole(`Starting
|
|
10456
|
+
printDiagnosticsToConsole(`Starting API ToGo build v${packageJson2.version}`);
|
|
10457
10457
|
printDiagnosticsToConsole("");
|
|
10458
10458
|
printDiagnosticsToConsole("");
|
|
10459
10459
|
}
|
|
@@ -10574,7 +10574,7 @@ function createDefaultApitogoJsonConfig(options) {
|
|
|
10574
10574
|
title: options.title,
|
|
10575
10575
|
logo: {
|
|
10576
10576
|
src: { light: "/logo-light.png", dark: "/logo-dark.png" },
|
|
10577
|
-
alt: "
|
|
10577
|
+
alt: "API ToGo",
|
|
10578
10578
|
width: "130px"
|
|
10579
10579
|
}
|
|
10580
10580
|
},
|
|
@@ -10962,7 +10962,7 @@ function printPageAddedHint(relativePath, routePath) {
|
|
|
10962
10962
|
printDiagnosticsToConsole(`Page created: ${relativePath} (route ${routePath})`);
|
|
10963
10963
|
printDiagnosticsToConsole("Edit that file to change the content.");
|
|
10964
10964
|
printDiagnosticsToConsole(
|
|
10965
|
-
`Predefined components: ${DOCS}/docs/
|
|
10965
|
+
`Predefined components: ${DOCS}/docs/components`
|
|
10966
10966
|
);
|
|
10967
10967
|
}
|
|
10968
10968
|
function printPlanAddedHint(displayName) {
|
|
@@ -10976,16 +10976,13 @@ function printPlanAddedHint(displayName) {
|
|
|
10976
10976
|
}
|
|
10977
10977
|
function printPaidPlanPlatformWarning() {
|
|
10978
10978
|
printDiagnosticsToConsole(
|
|
10979
|
-
"Paid API plans require Starter or Professional platform hosting. Free cannot publish paid gateway plans
|
|
10979
|
+
"Paid API plans require Starter or Professional platform hosting. Free cannot publish paid gateway plans."
|
|
10980
10980
|
);
|
|
10981
10981
|
}
|
|
10982
10982
|
function printInteractiveWrapUp(hasPaidPlans) {
|
|
10983
10983
|
printDiagnosticsToConsole("");
|
|
10984
10984
|
printDiagnosticsToConsole("Configuration saved. Next steps:");
|
|
10985
10985
|
printDiagnosticsToConsole("- Preview locally: npm run dev");
|
|
10986
|
-
printDiagnosticsToConsole(
|
|
10987
|
-
"- Auth API URL is written automatically when you run apitogo apply"
|
|
10988
|
-
);
|
|
10989
10986
|
if (hasPaidPlans) {
|
|
10990
10987
|
printPaidPlanPlatformWarning();
|
|
10991
10988
|
} else {
|
|
@@ -10996,14 +10993,12 @@ function printInteractiveWrapUp(hasPaidPlans) {
|
|
|
10996
10993
|
printDiagnosticsToConsole("");
|
|
10997
10994
|
printDiagnosticsToConsole("Configure more:");
|
|
10998
10995
|
printDiagnosticsToConsole(`- Overview: ${DOCS}/docs/configuration/overview`);
|
|
10999
|
-
printDiagnosticsToConsole(`- Manifest: ${DOCS}/docs/configuration/manifest`);
|
|
11000
10996
|
printDiagnosticsToConsole(`- Gateway plans: ${DOCS}/docs/configuration/plans`);
|
|
11001
10997
|
printDiagnosticsToConsole(`- Custom pages: ${DOCS}/docs/guides/custom-pages`);
|
|
11002
10998
|
printDiagnosticsToConsole(`- API reference: ${DOCS}/docs/configuration/api-reference`);
|
|
11003
10999
|
printDiagnosticsToConsole(`- Theme: ${DOCS}/docs/customization/colors-theme`);
|
|
11004
11000
|
printDiagnosticsToConsole(`- Fonts: ${DOCS}/docs/customization/fonts`);
|
|
11005
11001
|
printDiagnosticsToConsole(`- CLI shape: ${DOCS}/docs/cli/shape`);
|
|
11006
|
-
printDiagnosticsToConsole(`- apitogo config: ${DOCS}/docs/configuration/make-config`);
|
|
11007
11002
|
}
|
|
11008
11003
|
|
|
11009
11004
|
// src/cli/make-config/interactive.ts
|
|
@@ -11160,7 +11155,7 @@ export default function ${componentName}() {
|
|
|
11160
11155
|
Edit this page in <code>pages/${slug}.tsx</code>.
|
|
11161
11156
|
</p>
|
|
11162
11157
|
<Callout type="info" title="Components">
|
|
11163
|
-
|
|
11158
|
+
API ToGo ships predefined UI components for docs pages. See{" "}
|
|
11164
11159
|
<a
|
|
11165
11160
|
href="https://docs.apitogo.com/docs/guides/custom-pages"
|
|
11166
11161
|
className="text-primary underline"
|
|
@@ -11942,7 +11937,7 @@ async function dev(argv) {
|
|
|
11942
11937
|
printDiagnosticsToConsole("Ctrl+C to exit");
|
|
11943
11938
|
printDiagnosticsToConsole("");
|
|
11944
11939
|
printDiagnosticsToConsole(
|
|
11945
|
-
`\u{1F680} Running
|
|
11940
|
+
`\u{1F680} Running API ToGo v${packageJson2.version}: ${url}`
|
|
11946
11941
|
);
|
|
11947
11942
|
printDiagnosticsToConsole("");
|
|
11948
11943
|
let hasExited = false;
|
|
@@ -12042,7 +12037,7 @@ async function init2(argv) {
|
|
|
12042
12037
|
|
|
12043
12038
|
// src/cli/cmds/init.ts
|
|
12044
12039
|
var init_default = {
|
|
12045
|
-
desc: "Scaffold a local
|
|
12040
|
+
desc: "Scaffold a local API ToGo developer portal (no platform calls)",
|
|
12046
12041
|
command: "init [dir]",
|
|
12047
12042
|
builder: (yargs2) => yargs2.positional("dir", {
|
|
12048
12043
|
type: "string",
|
|
@@ -12176,7 +12171,7 @@ async function status(argv) {
|
|
|
12176
12171
|
|
|
12177
12172
|
// src/cli/cmds/status.ts
|
|
12178
12173
|
var status_default = {
|
|
12179
|
-
desc: "Show account, project, and live readiness for the linked
|
|
12174
|
+
desc: "Show account, project, and live readiness for the linked API ToGo project",
|
|
12180
12175
|
command: "status",
|
|
12181
12176
|
builder: (yargs2) => yargs2.option("dir", {
|
|
12182
12177
|
type: "string",
|
|
@@ -12226,7 +12221,7 @@ async function teardown(argv) {
|
|
|
12226
12221
|
|
|
12227
12222
|
// src/cli/cmds/teardown.ts
|
|
12228
12223
|
var teardown_default = {
|
|
12229
|
-
desc: "Delete the linked
|
|
12224
|
+
desc: "Delete the linked API ToGo project",
|
|
12230
12225
|
command: "teardown",
|
|
12231
12226
|
builder: (yargs2) => yargs2.option("dir", {
|
|
12232
12227
|
type: "string",
|
|
@@ -12482,7 +12477,7 @@ var warnPackageVersionMismatch = () => {
|
|
|
12482
12477
|
const pkgManager = getPkgManager();
|
|
12483
12478
|
const message = `${colors11.yellow("React version mismatch detected!")}
|
|
12484
12479
|
|
|
12485
|
-
|
|
12480
|
+
API ToGo requires specific versions of React
|
|
12486
12481
|
and React DOM to function correctly.
|
|
12487
12482
|
|
|
12488
12483
|
Installed: ${colors11.bold(`react@${installed.react}, react-dom@${installed["react-dom"]}`)}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Components
|
|
3
|
+
sidebar_icon: component
|
|
4
|
+
description: Reference of all APIToGo UI and documentation components.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Use these components in MDX pages and custom React pages. Import from `@lukoweb/apitogo/ui/*` or
|
|
8
|
+
`@lukoweb/apitogo/components` unless noted.
|
|
9
|
+
|
|
10
|
+
## General
|
|
11
|
+
|
|
12
|
+
| Component | Import | Description |
|
|
13
|
+
| --------- | ------ | ----------- |
|
|
14
|
+
| [Alert](/docs/components/alert) | `@lukoweb/apitogo/ui/Alert` | Important messages with severity levels |
|
|
15
|
+
| [Callout](/docs/components/callout) | `@lukoweb/apitogo/ui/Callout` | Highlight notes, tips, and warnings |
|
|
16
|
+
| [Badge](/docs/components/badge) | `@lukoweb/apitogo/ui/Badge` | Status labels and tags |
|
|
17
|
+
| [Card](/docs/components/card) | `@lukoweb/apitogo/ui/Card` | Grouped content with header, body, and footer |
|
|
18
|
+
| [Dialog](/docs/components/dialog) | `@lukoweb/apitogo/ui/Dialog` | Modal dialogs that require attention |
|
|
19
|
+
| [Icons](/docs/components/icons) | `@lukoweb/apitogo/icons` | Lucide icons re-exported for MDX and React |
|
|
20
|
+
| [Markdown](/docs/components/markdown) | `@lukoweb/apitogo/components` | Render markdown with syntax highlighting |
|
|
21
|
+
| [Tooltip](/docs/components/tooltip) | `@lukoweb/apitogo/ui/Tooltip` | Hover or focus hints |
|
|
22
|
+
| [Typography](/docs/components/typography) | `@lukoweb/apitogo/components` | Prose styling for headings, lists, and body text |
|
|
23
|
+
|
|
24
|
+
## Documentation
|
|
25
|
+
|
|
26
|
+
| Component | Import | Description |
|
|
27
|
+
| --------- | ------ | ----------- |
|
|
28
|
+
| [CodeTabs](/docs/components/code-tabs) | MDX built-in | Tabbed code examples (languages or package managers) |
|
|
29
|
+
| [Mermaid](/docs/components/mermaid) | `@lukoweb/apitogo/mermaid` | Client-rendered Mermaid diagrams |
|
|
30
|
+
| [API Playground](/docs/components/playground) | MDX built-in | Try API requests from the docs |
|
|
31
|
+
| [Secret](/docs/components/secret) | `@lukoweb/apitogo/ui/Secret` | Mask and reveal API keys |
|
|
32
|
+
| [Stepper](/docs/components/stepper) | MDX built-in | Numbered multi-step guides |
|
|
33
|
+
| [Syntax Highlight](/docs/components/syntax-highlight) | `@lukoweb/apitogo/ui/SyntaxHighlight` | Highlighted code with line numbers and copy |
|
|
34
|
+
|
|
35
|
+
## Form
|
|
36
|
+
|
|
37
|
+
| Component | Import | Description |
|
|
38
|
+
| --------- | ------ | ----------- |
|
|
39
|
+
| [Button](/docs/components/button) | `@lukoweb/apitogo/ui/Button` | Actions with variants and sizes |
|
|
40
|
+
| [Checkbox](/docs/components/checkbox) | `@lukoweb/apitogo/ui/Checkbox` | Boolean checkbox input |
|
|
41
|
+
| [Input](/docs/components/input) | `@lukoweb/apitogo/ui/Input` | Single-line text input |
|
|
42
|
+
| [Label](/docs/components/label) | `@lukoweb/apitogo/ui/Label` | Accessible form labels |
|
|
43
|
+
| [Select](/docs/components/select) | `@lukoweb/apitogo/ui/Select` | Choose from a list of options |
|
|
44
|
+
| [Slider](/docs/components/slider) | `@lukoweb/apitogo/ui/Slider` | Numeric range input |
|
|
45
|
+
| [Switch](/docs/components/switch) | `@lukoweb/apitogo/ui/Switch` | Boolean toggle |
|
|
46
|
+
| [Textarea](/docs/components/textarea) | `@lukoweb/apitogo/ui/Textarea` | Multiline text input |
|
|
47
|
+
|
|
48
|
+
## Utility
|
|
49
|
+
|
|
50
|
+
| Component | Import | Description |
|
|
51
|
+
| --------- | ------ | ----------- |
|
|
52
|
+
| [ClientOnly](/docs/components/client-only) | `@lukoweb/apitogo/components` | Render children only on the client |
|
|
53
|
+
| [Head](/docs/components/head) | `@lukoweb/apitogo/components` | Set title, meta, and link tags |
|
|
54
|
+
| [Link](/docs/components/link) | `@lukoweb/apitogo/components` | Client-side and external navigation |
|
|
55
|
+
| [Slot](/docs/components/slot) | `@lukoweb/apitogo/components` | Inject content into layout slots |
|
|
56
|
+
|
|
57
|
+
## shadcn/ui
|
|
58
|
+
|
|
59
|
+
Additional primitives are available from `@lukoweb/apitogo/ui/*`. See
|
|
60
|
+
[shadcn/ui](/docs/components/shadcn) for the full list.
|
|
@@ -17,7 +17,7 @@ Start by creating the page you want to add.
|
|
|
17
17
|
`page` in the wizard loop, then edit the generated `.tsx` file.
|
|
18
18
|
|
|
19
19
|
Predefined UI components (Callout, Card, Button, Heading, and more) are documented under
|
|
20
|
-
[/docs/components
|
|
20
|
+
[/docs/components](/docs/components).
|
|
21
21
|
|
|
22
22
|
## Setup a custom page
|
|
23
23
|
|
package/package.json
CHANGED
package/src/app/main.tsx
CHANGED
|
@@ -51,7 +51,7 @@ export const convertApitogoConfigToOptions = (
|
|
|
51
51
|
config: ApitogoConfig,
|
|
52
52
|
): ZudokuContextOptions => {
|
|
53
53
|
const siteTitle =
|
|
54
|
-
config.metadata?.applicationName ?? config.site?.title ?? "
|
|
54
|
+
config.metadata?.applicationName ?? config.site?.title ?? "API ToGo";
|
|
55
55
|
|
|
56
56
|
return {
|
|
57
57
|
basePath: config.basePath,
|
|
@@ -52,7 +52,7 @@ const buildDefaultLandingContent = (
|
|
|
52
52
|
config: ZudokuConfig,
|
|
53
53
|
): ResolvedLandingContent => {
|
|
54
54
|
const siteTitle =
|
|
55
|
-
config.metadata?.applicationName ?? config.site?.title ?? "
|
|
55
|
+
config.metadata?.applicationName ?? config.site?.title ?? "API ToGo";
|
|
56
56
|
|
|
57
57
|
return {
|
|
58
58
|
...DEFAULT_LANDING_CONTENT,
|
|
@@ -92,7 +92,7 @@ export const resolveLandingContent = (
|
|
|
92
92
|
options?: { useDefaults?: boolean },
|
|
93
93
|
): ResolvedLandingContent => {
|
|
94
94
|
const siteTitle =
|
|
95
|
-
config.metadata?.applicationName ?? config.site?.title ?? "
|
|
95
|
+
config.metadata?.applicationName ?? config.site?.title ?? "API ToGo";
|
|
96
96
|
|
|
97
97
|
if (options?.useDefaults === true) {
|
|
98
98
|
const defaults = buildDefaultLandingContent(config);
|
|
@@ -119,7 +119,7 @@ export const resolveLandingContent = (
|
|
|
119
119
|
features: content?.features ?? defaults.features,
|
|
120
120
|
primaryAction: content?.primaryAction ?? defaults.primaryAction,
|
|
121
121
|
secondaryAction: content?.secondaryAction ?? defaults.secondaryAction,
|
|
122
|
-
// A configured footer replaces the "Built with
|
|
122
|
+
// A configured footer replaces the "Built with API ToGo" powered-by line.
|
|
123
123
|
showPoweredBy:
|
|
124
124
|
content?.showPoweredBy ?? (footer ? false : defaults.showPoweredBy),
|
|
125
125
|
trust: mergeLandingSection(defaults.trust, content?.trust),
|
|
@@ -156,7 +156,7 @@ export const resolveLandingContent = (
|
|
|
156
156
|
features: content.features,
|
|
157
157
|
primaryAction: content.primaryAction,
|
|
158
158
|
secondaryAction: content.secondaryAction,
|
|
159
|
-
// A configured footer replaces the "Built with
|
|
159
|
+
// A configured footer replaces the "Built with API ToGo" powered-by line.
|
|
160
160
|
showPoweredBy: content.showPoweredBy ?? !footer,
|
|
161
161
|
trust: content.trust
|
|
162
162
|
? mergeLandingSection(undefined, content.trust)
|