@clarify-labs/cli 0.11.21 → 0.11.24
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/output/cli.cjs +1 -1
- package/output/cli.js +1 -1
- package/output/{engine-Ccma7jrA.js → engine-B3XJxakI.js} +27 -15
- package/output/engine-B3XJxakI.js.map +1 -0
- package/output/{engine-B_mPOpWr.cjs → engine-CanMaJiv.cjs} +27 -15
- package/output/engine-CanMaJiv.cjs.map +1 -0
- package/output/index.cjs +1 -1
- package/output/index.js +1 -1
- package/output/parsers/routes/routes.d.ts +2 -1
- package/output/plugins/openapi/virtual-modules.d.ts +1 -0
- package/output/types.d.ts +4 -0
- package/package.json +3 -3
- package/output/engine-B_mPOpWr.cjs.map +0 -1
- package/output/engine-Ccma7jrA.js.map +0 -1
package/output/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_engine = require("./engine-
|
|
2
|
+
const require_engine = require("./engine-CanMaJiv.cjs");
|
|
3
3
|
exports.ClarifyEngine = require_engine.ClarifyEngine;
|
|
4
4
|
exports.createClarifyEngine = require_engine.createClarifyEngine;
|
|
5
5
|
exports.createViteAdapter = require_engine.createViteAdapter;
|
package/output/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as createViteAdapter, f as defineConfig, n as createClarifyEngine, t as ClarifyEngine } from "./engine-
|
|
1
|
+
import { d as createViteAdapter, f as defineConfig, n as createClarifyEngine, t as ClarifyEngine } from "./engine-B3XJxakI.js";
|
|
2
2
|
export { ClarifyEngine, createClarifyEngine, createViteAdapter, defineConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentRoute, ClarifyNavigationNode, ClarifyPagesConfig, ClarifyPagesGroup, ClarifyPagesItem, ClarifyRouteIntent, ClarifyTabsConfig, LocalizedNavigation, LocalizedTabbedNavigation, MarkdownContentRoute, ResolvedClarifyLocalesConfig, TabbedNavigation } from '../../types.js';
|
|
1
|
+
import { ContentRoute, ClarifyNavigationNode, ClarifyPagesConfig, ClarifyPagesGroup, ClarifyPagesItem, ClarifyRouteIntent, ClarifyLocalizedText, ClarifyTabsConfig, LocalizedNavigation, LocalizedTabbedNavigation, MarkdownContentRoute, ResolvedClarifyLocalesConfig, TabbedNavigation } from '../../types.js';
|
|
2
2
|
import { ContentProcessor } from '../content/content.js';
|
|
3
3
|
import { kebabToTitle } from './heading-metadata.js';
|
|
4
4
|
export type FindContentRoutesOptions = {
|
|
@@ -10,6 +10,7 @@ export declare function basePathFromRef(ref: string): string;
|
|
|
10
10
|
export declare function openAPIPagePathFromRef(ref: string, tagFilter?: string[], explicitPath?: string): string;
|
|
11
11
|
export declare function routePathFromRef(ref: string, explicitPath?: string): string;
|
|
12
12
|
export declare function localizedRoutePath(basePath: string, locale: string, _i18n: ResolvedClarifyLocalesConfig): string;
|
|
13
|
+
export declare function resolveLocalizedText(text: ClarifyLocalizedText | undefined, locale: string, fallbackLocale?: string): string | undefined;
|
|
13
14
|
export declare function findContentRoutes(dir: string, base?: string, options?: FindContentRoutesOptions): Promise<MarkdownContentRoute[]>;
|
|
14
15
|
export declare function withAlternates<T extends ContentRoute>(route: T, routes: ContentRoute[], locales: ResolvedClarifyLocalesConfig): T;
|
|
15
16
|
export declare function findLocalizedContentRoutes(contentRoot: string, locales?: ResolvedClarifyLocalesConfig, options?: FindContentRoutesOptions): Promise<MarkdownContentRoute[]>;
|
|
@@ -9,6 +9,7 @@ export declare function generateOpenAPISpecModule(spec: OpenAPISpec): string;
|
|
|
9
9
|
type OpenAPIPageModuleOptions = {
|
|
10
10
|
specModuleId: string;
|
|
11
11
|
operationOrder?: string[];
|
|
12
|
+
title?: string;
|
|
12
13
|
};
|
|
13
14
|
export declare function generateOpenAPIPageModule(opts: OpenAPIPageModuleOptions): string;
|
|
14
15
|
export {};
|
package/output/types.d.ts
CHANGED
|
@@ -297,6 +297,7 @@ export type ContentSection = {
|
|
|
297
297
|
title: string;
|
|
298
298
|
level: number;
|
|
299
299
|
badge?: string;
|
|
300
|
+
deprecated?: boolean;
|
|
300
301
|
tags?: string[];
|
|
301
302
|
};
|
|
302
303
|
export type ContentRouteMeta = {
|
|
@@ -328,6 +329,8 @@ export type OpenAPIContentRouteState = {
|
|
|
328
329
|
sourceSpecId?: string;
|
|
329
330
|
/** Spec virtual module id fragment used by this route after route-level filtering. */
|
|
330
331
|
routeSpecModuleId?: string;
|
|
332
|
+
/** Navigation title configured for this route, already resolved for the route locale. */
|
|
333
|
+
configuredTitle?: string;
|
|
331
334
|
};
|
|
332
335
|
export type ContentRouteArtifacts = {
|
|
333
336
|
/** Public URL for the machine-readable content artifact served or emitted for this route. */
|
|
@@ -404,6 +407,7 @@ export type NavigationSection = {
|
|
|
404
407
|
title: string;
|
|
405
408
|
level?: number;
|
|
406
409
|
badge?: string;
|
|
410
|
+
deprecated?: boolean;
|
|
407
411
|
tags?: string[];
|
|
408
412
|
};
|
|
409
413
|
export type ClarifyNavigationNode = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clarify-labs/cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.24",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@apidevtools/swagger-parser": "^12.1.0",
|
|
42
|
-
"@clarify-labs/renderer": "0.11.
|
|
43
|
-
"@clarify-labs/templates": "0.11.
|
|
42
|
+
"@clarify-labs/renderer": "0.11.24",
|
|
43
|
+
"@clarify-labs/templates": "0.11.24",
|
|
44
44
|
"@mdx-js/mdx": "^3.1.1",
|
|
45
45
|
"@mdx-js/rollup": "^3.1.1",
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.29.0",
|