typerighter 0.4.4 → 0.5.1
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.
Potentially problematic release.
This version of typerighter might be problematic. Click here for more details.
- package/dist/{app-Bw90hv7G.js → app-DZLkaV9-.js} +1 -1
- package/dist/{brand-CmL-6h9U.js → brand-C6VJ3Tpf.js} +0 -4
- package/dist/{cli-Dz9GEomM.js → cli-CAvgSpyx.js} +142 -119
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +254 -267
- package/dist/client.js +1 -1
- package/dist/{constants-7heqadyd.js → constants-BVW9e5iH.js} +9 -3
- package/dist/index.js +2 -2
- package/dist/{init-z0GJPXx4.js → init-Dfj-Yf9i.js} +3 -3
- package/dist/node/cli/index.d.ts.map +1 -1
- package/dist/node/context.d.ts.map +1 -1
- package/dist/node/lib/typedown-context.d.ts +3 -1
- package/dist/node/lib/typedown-context.d.ts.map +1 -1
- package/dist/node/plugin/vite/index.d.ts.map +1 -1
- package/dist/shared/utils/url.d.ts.map +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-B-ktlRz9.js → vite-DPRlAukM.js} +60 -48
- package/dist/vite.js +1 -1
- package/package.json +3 -3
package/dist/client.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, o as i, t as a, u as o } from "./app-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, o as i, t as a, u as o } from "./app-DZLkaV9-.js";
|
|
2
2
|
export { t as Content, a as createTypedownApp, r as useRoute, o as useRouter, n as useSiteConfig, e as useSiteData, i as useTdContent };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { T as EXTERNAL_URL_RE, b as isUrlToPage, y as isUrlExternal } from "./brand-
|
|
1
|
+
import { T as EXTERNAL_URL_RE, b as isUrlToPage, y as isUrlExternal } from "./brand-C6VJ3Tpf.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import pc from "picocolors";
|
|
3
4
|
import { createLogger } from "vite";
|
|
4
5
|
import fs from "node:fs";
|
|
5
6
|
import { RpcServer } from "@typerighter/rpc-server";
|
|
6
7
|
import { RpcClient } from "@typerighter/rpc-client";
|
|
7
8
|
import MarkdownIt from "markdown-it";
|
|
8
9
|
import { createHighlighter, guessEmbeddedLanguages, isSpecialLang } from "shiki";
|
|
9
|
-
import pc from "picocolors";
|
|
10
10
|
import { URL as URL$1 } from "node:url";
|
|
11
11
|
//#region \0rolldown/runtime.js
|
|
12
12
|
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (A, j) => () => (j || (A((j = { exports: {} }).exports, j), A = null), j.exports), __copyProps = (A, j, M, N) => {
|
|
@@ -32099,6 +32099,12 @@ var TypedownContext = class {
|
|
|
32099
32099
|
async listSchemas() {
|
|
32100
32100
|
return this.cachedSchemas ||= await this.rpc.listSchemas(), this.cachedSchemas;
|
|
32101
32101
|
}
|
|
32102
|
+
async checkVault() {
|
|
32103
|
+
return this.rpc.checkVault();
|
|
32104
|
+
}
|
|
32105
|
+
async formatFile(A) {
|
|
32106
|
+
return this.rpc.formatFile(A);
|
|
32107
|
+
}
|
|
32102
32108
|
get md() {
|
|
32103
32109
|
return this._md;
|
|
32104
32110
|
}
|
|
@@ -32122,7 +32128,7 @@ function createAppContext(A) {
|
|
|
32122
32128
|
}
|
|
32123
32129
|
let N, P, F, I = !1;
|
|
32124
32130
|
function L() {
|
|
32125
|
-
B(), process.exit(0);
|
|
32131
|
+
j.log(""), B(), process.exit(0);
|
|
32126
32132
|
}
|
|
32127
32133
|
function R() {
|
|
32128
32134
|
B();
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./vite-
|
|
1
|
+
import { n as e, t } from "./vite-DPRlAukM.js";
|
|
2
2
|
import "./vite.js";
|
|
3
|
-
import { n, t as r } from "./cli-
|
|
3
|
+
import { n, t as r } from "./cli-CAvgSpyx.js";
|
|
4
4
|
export { n as buildSite, r as cli, t as generateClientAppEntry, e as typedown };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, c as t, i as n } from "./constants-
|
|
2
|
-
import { l as r, r as i } from "./brand-
|
|
1
|
+
import { a as e, c as t, i as n } from "./constants-BVW9e5iH.js";
|
|
2
|
+
import { l as r, r as i } from "./brand-C6VJ3Tpf.js";
|
|
3
3
|
import a from "node:path";
|
|
4
4
|
import "node:fs";
|
|
5
5
|
import o from "node:fs/promises";
|
|
@@ -2298,7 +2298,7 @@ function ei(e) {
|
|
|
2298
2298
|
build: "typerighter build",
|
|
2299
2299
|
preview: "typerighter preview"
|
|
2300
2300
|
},
|
|
2301
|
-
devDependencies: { typerighter: "^0.
|
|
2301
|
+
devDependencies: { typerighter: "^0.5.1" }
|
|
2302
2302
|
}, void 0, 2) + "\n";
|
|
2303
2303
|
}
|
|
2304
2304
|
function ti() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,SAsJlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/node/context.ts"],"names":[],"mappings":"AAEA,OAAO,EACS,KAAK,MAAM,EAC1B,MAAM,MAAM,CAAC;AAOd,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EACL,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,UAG7B,CAAC;AAEF,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,MAAM,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/node/context.ts"],"names":[],"mappings":"AAEA,OAAO,EACS,KAAK,MAAM,EAC1B,MAAM,MAAM,CAAC;AAOd,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EACL,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,UAG7B,CAAC;AAEF,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAoG1D;AAGD,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAaxD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RpcClient, TdBuiltResource, TdSiteConfig, TdSchemaInfo } from '@typerighter/rpc-client';
|
|
1
|
+
import type { RpcClient, TdBuiltResource, TdDiagnosticReport, TdFormatResult, TdSiteConfig, TdSchemaInfo } from '@typerighter/rpc-client';
|
|
2
2
|
import { type MarkdownRenderer } from './markdown';
|
|
3
3
|
import type { SchemaGroups } from '@/shared';
|
|
4
4
|
export declare class TypedownContext {
|
|
@@ -22,6 +22,8 @@ export declare class TypedownContext {
|
|
|
22
22
|
getAssetDir(filepath: string): Promise<string>;
|
|
23
23
|
getSchema(schema: string): Promise<TdSchemaInfo>;
|
|
24
24
|
listSchemas(): Promise<string[]>;
|
|
25
|
+
checkVault(): Promise<TdDiagnosticReport>;
|
|
26
|
+
formatFile(filepath: string): Promise<TdFormatResult>;
|
|
25
27
|
get md(): MarkdownRenderer;
|
|
26
28
|
}
|
|
27
29
|
//# sourceMappingURL=typedown-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedown-context.d.ts","sourceRoot":"","sources":["../../../src/node/lib/typedown-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EAAE,YAAY,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"typedown-context.d.ts","sourceRoot":"","sources":["../../../src/node/lib/typedown-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EAAE,kBAAkB,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAChF,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACmB,KAAK,gBAAgB,EAC9C,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,YAAY,EACb,MAAM,UAAU,CAAC;AAIlB,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,GAAG,CAAmB;gBAEjB,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,gBAAgB;IAMpD,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,0BAA0B,CAA2B;IAC7D,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,eAAe,CAAmC;IAC1D,OAAO,CAAC,aAAa,CAAsC;IAE3D,OAAO,CAAC,aAAa,CAAK;IAE1B,OAAO,CAAC,4BAA4B;IA8DpC,IAAI,GAAG,IAAK,SAAS,CAEpB;IAIK,OAAO,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIpD,QAAQ,CAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAatD,SAAS,IAAK,OAAO,CAAC,MAAM,EAAE,CAAC;IAQ/B,wBAAwB,IAAK,OAAO,CAAC,YAAY,CAAC;IAgBlD,SAAS,IAAK,OAAO,CAAC,YAAY,CAAC;IASnC,WAAW,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAM/C,SAAS,CAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAYjD,WAAW,IAAK,OAAO,CAAC,MAAM,EAAE,CAAC;IAQjC,UAAU,IAAK,OAAO,CAAC,kBAAkB,CAAC;IAI1C,UAAU,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAI5D,IAAI,EAAE,IAAK,gBAAgB,CAE1B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,MAAM,EACZ,MAAM,MAAM,CAAC;AAId,OAAO,EACiC,KAAK,UAAU,EACtD,MAAM,eAAe,CAAC;AAuBvB,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,qBAAqB;IACpC,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,kDAAkD;IAClD,WAAW,EAAE,WAAW,CAAC;IACzB,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAGD,MAAM,WAAW,qBAAqB;IAEpC,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB;AAED,wBAAgB,sBAAsB,CAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAgE9E;AAED,wBAAgB,QAAQ,CAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CAuQvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/url.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/url.ts"],"names":[],"mappings":"AAQA,wBAAgB,aAAa,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD;AAeD,wBAAgB,eAAe,CAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,wBAAgB,YAAY,CAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,eAAe,CAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAIzD;AAED,wBAAgB,eAAe,CAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5E;AAGD,wBAAgB,WAAW,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAItD"}
|