typerighter 0.0.0 → 0.1.0

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.

Files changed (112) hide show
  1. package/LICENSE +674 -0
  2. package/dist/app-bn8sNpDS.js +180 -0
  3. package/dist/brand-DSd9HWVy.js +19 -0
  4. package/dist/chunk-DfAF0w94-EwUSVR-h.js +13 -0
  5. package/dist/client/app/components/Content.d.ts +4 -0
  6. package/dist/client/app/components/Content.d.ts.map +1 -0
  7. package/dist/client/app/composables/useTdContent.d.ts +4 -0
  8. package/dist/client/app/composables/useTdContent.d.ts.map +1 -0
  9. package/dist/client/app/composables/useTheme.d.ts +9 -0
  10. package/dist/client/app/composables/useTheme.d.ts.map +1 -0
  11. package/dist/client/app/index.d.ts +22 -0
  12. package/dist/client/app/index.d.ts.map +1 -1
  13. package/dist/client/app/router.d.ts +24 -0
  14. package/dist/client/app/router.d.ts.map +1 -0
  15. package/dist/client/index.d.ts +1 -0
  16. package/dist/client/index.d.ts.map +1 -1
  17. package/dist/client/theme-default.js +339 -0
  18. package/dist/client.js +2 -0
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +185 -4
  22. package/dist/lib-CBtriEt5-Ch50D04V.js +3309 -0
  23. package/dist/liteDOM-Cp0aN3bP-YwW1TGWI.js +741 -0
  24. package/dist/logger-DZLd8EDg.js +78 -0
  25. package/dist/node/build/codegen.d.ts +13 -0
  26. package/dist/node/build/codegen.d.ts.map +1 -0
  27. package/dist/node/build/html.d.ts +20 -0
  28. package/dist/node/build/html.d.ts.map +1 -0
  29. package/dist/node/build/index.d.ts +17 -0
  30. package/dist/node/build/index.d.ts.map +1 -0
  31. package/dist/node/build/render.d.ts +14 -0
  32. package/dist/node/build/render.d.ts.map +1 -0
  33. package/dist/node/cli/index.d.ts +2 -0
  34. package/dist/node/cli/index.d.ts.map +1 -0
  35. package/dist/node/cli/server.d.ts +5 -0
  36. package/dist/node/cli/server.d.ts.map +1 -0
  37. package/dist/node/index.d.ts +3 -1
  38. package/dist/node/index.d.ts.map +1 -1
  39. package/dist/node/lib/index.d.ts +4 -0
  40. package/dist/node/lib/index.d.ts.map +1 -0
  41. package/dist/node/lib/logger.d.ts +6 -0
  42. package/dist/node/lib/logger.d.ts.map +1 -0
  43. package/dist/node/lib/markdown/index.d.ts +5 -0
  44. package/dist/node/lib/markdown/index.d.ts.map +1 -0
  45. package/dist/node/lib/markdown/plugins/container.d.ts +3 -0
  46. package/dist/node/lib/markdown/plugins/container.d.ts.map +1 -0
  47. package/dist/node/lib/markdown/plugins/highlight.d.ts +2 -0
  48. package/dist/node/lib/markdown/plugins/highlight.d.ts.map +1 -0
  49. package/dist/node/lib/markdown/plugins/image.d.ts +3 -0
  50. package/dist/node/lib/markdown/plugins/image.d.ts.map +1 -0
  51. package/dist/node/lib/markdown/plugins/line-number.d.ts +3 -0
  52. package/dist/node/lib/markdown/plugins/line-number.d.ts.map +1 -0
  53. package/dist/node/lib/markdown/plugins/link.d.ts +3 -0
  54. package/dist/node/lib/markdown/plugins/link.d.ts.map +1 -0
  55. package/dist/node/lib/markdown/plugins/pre-wrapper.d.ts +6 -0
  56. package/dist/node/lib/markdown/plugins/pre-wrapper.d.ts.map +1 -0
  57. package/dist/node/lib/markdown/plugins/restore-entities.d.ts +3 -0
  58. package/dist/node/lib/markdown/plugins/restore-entities.d.ts.map +1 -0
  59. package/dist/node/lib/markdown/plugins/table.d.ts +3 -0
  60. package/dist/node/lib/markdown/plugins/table.d.ts.map +1 -0
  61. package/dist/node/lib/render/index.d.ts +2 -0
  62. package/dist/node/lib/render/index.d.ts.map +1 -0
  63. package/dist/node/lib/render/vue.d.ts +11 -0
  64. package/dist/node/lib/render/vue.d.ts.map +1 -0
  65. package/dist/node/lib/typedown-context.d.ts +29 -0
  66. package/dist/node/lib/typedown-context.d.ts.map +1 -0
  67. package/dist/node/plugin/codegen.d.ts +16 -0
  68. package/dist/node/plugin/codegen.d.ts.map +1 -0
  69. package/dist/node/plugin/codegen.test.d.ts +2 -0
  70. package/dist/node/plugin/codegen.test.d.ts.map +1 -0
  71. package/dist/node/plugin/constants.d.ts +4 -0
  72. package/dist/node/plugin/constants.d.ts.map +1 -0
  73. package/dist/node/plugin/index.d.ts +2 -0
  74. package/dist/node/plugin/index.d.ts.map +1 -0
  75. package/dist/node/plugin/vite.d.ts +3 -0
  76. package/dist/node/plugin/vite.d.ts.map +1 -0
  77. package/dist/shared/brand.d.ts +7 -0
  78. package/dist/shared/brand.d.ts.map +1 -0
  79. package/dist/shared/index.d.ts +3 -0
  80. package/dist/shared/index.d.ts.map +1 -1
  81. package/dist/shared/regexes.d.ts +2 -0
  82. package/dist/shared/regexes.d.ts.map +1 -0
  83. package/dist/shared/types/content.d.ts +10 -0
  84. package/dist/shared/types/content.d.ts.map +1 -0
  85. package/dist/shared/types/index.d.ts +4 -0
  86. package/dist/shared/types/index.d.ts.map +1 -0
  87. package/dist/shared/types/markdown.d.ts +62 -0
  88. package/dist/shared/types/markdown.d.ts.map +1 -0
  89. package/dist/shared/types/ssg.d.ts +23 -0
  90. package/dist/shared/types/ssg.d.ts.map +1 -0
  91. package/dist/shared/utils/content.d.ts +6 -0
  92. package/dist/shared/utils/content.d.ts.map +1 -0
  93. package/dist/shared/utils/environment.d.ts +2 -0
  94. package/dist/shared/utils/environment.d.ts.map +1 -0
  95. package/dist/shared/utils/highlight.d.ts +3 -0
  96. package/dist/shared/utils/highlight.d.ts.map +1 -0
  97. package/dist/shared/utils/index.d.ts +5 -0
  98. package/dist/shared/utils/index.d.ts.map +1 -0
  99. package/dist/shared/utils/url.d.ts +3 -0
  100. package/dist/shared/utils/url.d.ts.map +1 -0
  101. package/dist/shared-DzTfF-_d.js +14 -0
  102. package/dist/tex-svg-full-BI3fonbT-CfoPQ3xc.js +60224 -0
  103. package/dist/typedown-context-CWA07Yb7.js +9436 -0
  104. package/dist/typedown-context-D78bYNhH.js +2 -0
  105. package/dist/typerighter.css +2 -0
  106. package/dist/vite.js +174 -0
  107. package/dist/wgxpath.install-node-Csk64Aj9-C0enUGLs.js +1094 -0
  108. package/dist/xypic-DrMJn58R-B4fw2rYo.js +14846 -0
  109. package/package.json +49 -16
  110. package/dist/client/theme-default/index.d.ts +0 -1
  111. package/dist/client/theme-default/index.d.ts.map +0 -1
  112. package/dist/index.cjs +0 -1
@@ -0,0 +1,78 @@
1
+ //#region \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
3
+ let r = {};
4
+ for (var i in e) t(r, i, {
5
+ get: e[i],
6
+ enumerable: !0
7
+ });
8
+ return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, c = (e, i, o, s) => {
10
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
+ get: ((e) => i[e]).bind(null, d),
12
+ enumerable: !(s = n(i, d)) || s.enumerable
13
+ });
14
+ return e;
15
+ }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
+ value: n,
17
+ enumerable: !0
18
+ }) : a, n)), u = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
19
+ var n = String, r = function() {
20
+ return {
21
+ isColorSupported: !1,
22
+ reset: n,
23
+ bold: n,
24
+ dim: n,
25
+ italic: n,
26
+ underline: n,
27
+ inverse: n,
28
+ hidden: n,
29
+ strikethrough: n,
30
+ black: n,
31
+ red: n,
32
+ green: n,
33
+ yellow: n,
34
+ blue: n,
35
+ magenta: n,
36
+ cyan: n,
37
+ white: n,
38
+ gray: n,
39
+ bgBlack: n,
40
+ bgRed: n,
41
+ bgGreen: n,
42
+ bgYellow: n,
43
+ bgBlue: n,
44
+ bgMagenta: n,
45
+ bgCyan: n,
46
+ bgWhite: n,
47
+ blackBright: n,
48
+ redBright: n,
49
+ greenBright: n,
50
+ yellowBright: n,
51
+ blueBright: n,
52
+ magentaBright: n,
53
+ cyanBright: n,
54
+ whiteBright: n,
55
+ bgBlackBright: n,
56
+ bgRedBright: n,
57
+ bgGreenBright: n,
58
+ bgYellowBright: n,
59
+ bgBlueBright: n,
60
+ bgMagentaBright: n,
61
+ bgCyanBright: n,
62
+ bgWhiteBright: n
63
+ };
64
+ };
65
+ t.exports = r(), t.exports.createColors = r;
66
+ })))(), 1), d = {
67
+ info(e) {
68
+ console.log(u.default.cyan(e));
69
+ },
70
+ warn(e) {
71
+ console.warn(u.default.yellow(e));
72
+ },
73
+ error(e) {
74
+ console.error(u.default.red(e));
75
+ }
76
+ };
77
+ //#endregion
78
+ export { l as i, o as n, s as r, d as t };
@@ -0,0 +1,13 @@
1
+ export interface CodegenOptions {
2
+ /** Content directory relative to the Vite root (for import.meta.glob) */
3
+ contentDir: string;
4
+ /** Import path for the theme's Layout component */
5
+ layoutImport: string;
6
+ /** Import path for the theme's NotFound component */
7
+ notFoundImport: string;
8
+ /** Package name for importing createTypedownApp */
9
+ typerighterPackage: string;
10
+ }
11
+ export declare function generateClientEntry(options: CodegenOptions): string;
12
+ export declare function generateSsrEntry(options: CodegenOptions): string;
13
+ //# sourceMappingURL=codegen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/node/build/codegen.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAGD,wBAAgB,mBAAmB,CAAE,OAAO,EAAE,cAAc,GAAG,MAAM,CAwBpE;AAGD,wBAAgB,gBAAgB,CAAE,OAAO,EAAE,cAAc,GAAG,MAAM,CA6BjE"}
@@ -0,0 +1,20 @@
1
+ export interface HtmlTemplateContext {
2
+ /** The server-rendered HTML content */
3
+ content: string;
4
+ /** Page title */
5
+ title: string;
6
+ /** Page description from frontmatter */
7
+ description: string;
8
+ /** Relative path to the client entry JS file */
9
+ clientEntry: string;
10
+ /** CSS file paths to preload */
11
+ cssFiles: string[];
12
+ /** JS file paths to preload (besides clientEntry) */
13
+ jsFiles: string[];
14
+ /** The base path (e.g. "/" or "/docs/") */
15
+ base: string;
16
+ /** HTML lang attribute (default: "en") */
17
+ lang?: string;
18
+ }
19
+ export declare function renderHtml(context: HtmlTemplateContext): string;
20
+ //# sourceMappingURL=html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/node/build/html.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,qDAAqD;IACrD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAGD,wBAAgB,UAAU,CAAE,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAwBhE"}
@@ -0,0 +1,17 @@
1
+ import { type InlineConfig } from 'vite';
2
+ export interface BuildOptions {
3
+ /** Root directory of the Vite project */
4
+ root: string;
5
+ /** Output directory for the final build (default: "dist") */
6
+ outDir?: string;
7
+ /** Base public path (default: "/") */
8
+ base?: string;
9
+ /** Import path for the theme's Layout component */
10
+ layoutImport: string;
11
+ /** Import path for the theme's NotFound component */
12
+ notFoundImport: string;
13
+ /** Additional Vite config overrides */
14
+ viteConfig?: InlineConfig;
15
+ }
16
+ export declare function buildSite(options: BuildOptions): Promise<void>;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACE,KAAK,YAAY,EACzB,MAAM,MAAM,CAAC;AAWd,MAAM,WAAW,YAAY;IAC3B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA4GrE"}
@@ -0,0 +1,14 @@
1
+ export interface RenderContext {
2
+ /** Absolute path to the SSR bundle entry */
3
+ ssrEntryPath: string;
4
+ /** Absolute path to the client output directory */
5
+ clientOutDir: string;
6
+ /** Absolute path to the final output directory */
7
+ outDir: string;
8
+ /** The base path (e.g. "/") */
9
+ base: string;
10
+ /** List of page paths to render (e.g. ["/", "/posts/hello"]) */
11
+ pagePaths: string[];
12
+ }
13
+ export declare function renderPages(context: RenderContext): Promise<void>;
14
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/node/build/render.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,YAAY,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAUD,wBAAsB,WAAW,CAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAuCxE"}
@@ -0,0 +1,2 @@
1
+ export * from './server';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ResolvedConfig, ServerOptions } from 'vite';
2
+ export type ViteServerConfig = ResolvedConfig;
3
+ export type ViteServerOptions = ServerOptions;
4
+ export declare function createViteServer(options: ViteServerOptions | undefined, config: ViteServerConfig): Promise<import("vite").ViteDevServer>;
5
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/node/cli/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,MAAM,CAAC;AAKd,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAC9C,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAK9C,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,iBAAiB,YAAK,EAC/B,MAAM,EAAE,gBAAgB,yCAWzB"}
@@ -1,2 +1,4 @@
1
- export { default } from './plugin';
1
+ export * from './plugin';
2
+ export * from './cli';
3
+ export * from './build';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './markdown';
2
+ export * from './typedown-context';
3
+ export * from './render';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const logger: {
2
+ info(message: string): void;
3
+ warn(message: string): void;
4
+ error(message: string): void;
5
+ };
6
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/node/lib/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;kBACF,MAAM,GAAG,IAAI;kBAIb,MAAM,GAAG,IAAI;mBAIZ,MAAM,GAAG,IAAI;CAG9B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MarkdownItAsync } from 'markdown-it-async';
2
+ import type { TdSiteConfig } from '@typerighter/rpc-client';
3
+ export type MarkdownRenderer = MarkdownItAsync;
4
+ export declare function createMarkdownRenderer(config: TdSiteConfig): Promise<MarkdownRenderer>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/lib/markdown/index.ts"],"names":[],"mappings":"AA6BA,OAAO,EACL,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,YAAY,EACb,MAAM,yBAAyB,CAAC;AA2BjC,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAE/C,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,gBAAgB,CAAC,CA4G3B"}
@@ -0,0 +1,3 @@
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ export declare function containerPlugin(md: MarkdownItAsync): void;
3
+ //# sourceMappingURL=container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/container.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAK3B,wBAAgB,eAAe,CAC7B,EAAE,EAAE,eAAe,GAClB,IAAI,CAQN"}
@@ -0,0 +1,2 @@
1
+ export declare function createHighlighter(): Promise<(string_: string, language: string, attrs: string) => Promise<string>>;
2
+ //# sourceMappingURL=highlight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/highlight.ts"],"names":[],"mappings":"AAqCA,wBAAsB,iBAAiB,IAAK,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAuIzH"}
@@ -0,0 +1,3 @@
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ export declare function imagePlugin(md: MarkdownItAsync): void;
3
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/image.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAS3B,wBAAgB,WAAW,CACzB,EAAE,EAAE,eAAe,GAClB,IAAI,CA0BN"}
@@ -0,0 +1,3 @@
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ export declare function lineNumberPlugin(md: MarkdownItAsync, enable?: boolean): void;
3
+ //# sourceMappingURL=line-number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-number.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/line-number.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,wBAAgB,gBAAgB,CAAE,EAAE,EAAE,eAAe,EAAE,MAAM,UAAQ,GAAG,IAAI,CAsD3E"}
@@ -0,0 +1,3 @@
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ export declare function linkPlugin(md: MarkdownItAsync, externalAttrs: Record<string, string>, base: string, slugify: (string_: string) => string): void;
3
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/link.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAa3B,wBAAgB,UAAU,CACxB,EAAE,EAAE,eAAe,EACnB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACrC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GACnC,IAAI,CA4JN"}
@@ -0,0 +1,6 @@
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ export interface PreWrapperOptions {
3
+ languageLabel?: Record<string, string>;
4
+ }
5
+ export declare function preWrapperPlugin(md: MarkdownItAsync, options?: PreWrapperOptions): void;
6
+ //# sourceMappingURL=pre-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pre-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/pre-wrapper.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAK3B,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED,wBAAgB,gBAAgB,CAAE,EAAE,EAAE,eAAe,EAAE,OAAO,GAAE,iBAAsB,GAAG,IAAI,CAkC5F"}
@@ -0,0 +1,3 @@
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ export declare function restoreEntities(md: MarkdownItAsync): void;
3
+ //# sourceMappingURL=restore-entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-entities.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/restore-entities.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAO3B,wBAAgB,eAAe,CAAE,EAAE,EAAE,eAAe,GAAG,IAAI,CAK1D"}
@@ -0,0 +1,3 @@
1
+ import type { MarkdownItAsync } from 'markdown-it-async';
2
+ export declare function tablePlugin(md: MarkdownItAsync): void;
3
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/markdown/plugins/table.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,wBAAgB,WAAW,CAAE,EAAE,EAAE,eAAe,GAAG,IAAI,CAiBtD"}
@@ -0,0 +1,2 @@
1
+ export * from './vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/lib/render/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { TdBuiltResource } from '@typerighter/rpc-client';
2
+ import type { MarkdownRenderer } from '../markdown';
3
+ import type { PageData } from '@/shared';
4
+ export interface VueRenderResult {
5
+ /** The rendered Vue SFC string */
6
+ vueSrc: string;
7
+ /** Page metadata */
8
+ pageData: PageData;
9
+ }
10
+ export declare function renderToVueSfc(md: MarkdownRenderer, resource: TdBuiltResource, filePath: string): Promise<VueRenderResult>;
11
+ //# sourceMappingURL=vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../../../../src/node/lib/render/vue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAEV,QAAQ,EACT,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAGD,wBAAsB,cAAc,CAClC,EAAE,EAAE,gBAAgB,EACpB,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,CAAC,CAkC1B"}
@@ -0,0 +1,29 @@
1
+ import { RpcClient } from '@typerighter/rpc-client';
2
+ import type { TdBuiltResource, TdSiteConfig, TdSchemaInfo } from '@typerighter/rpc-client';
3
+ import { type MarkdownRenderer } from './markdown';
4
+ import type { SidebarGroups } from '@/shared';
5
+ export declare class TypedownContext {
6
+ private client;
7
+ private _md;
8
+ constructor(client: RpcClient, md: MarkdownRenderer);
9
+ private cachedConfig;
10
+ private cachedFiles;
11
+ private cachedFilesGroupedBySchema;
12
+ private cachedSchemas;
13
+ private cachedSchemaMap;
14
+ private cachedFileMap;
15
+ private configVersion;
16
+ private registerNotificationHandlers;
17
+ get rpc(): RpcClient;
18
+ getFile(filePath: string): Promise<TdBuiltResource>;
19
+ getFiles(paths: string[]): Promise<TdBuiltResource[]>;
20
+ listFiles(): Promise<string[]>;
21
+ listFilesGroupedBySchema(): Promise<SidebarGroups>;
22
+ getConfig(): Promise<TdSiteConfig>;
23
+ getAssetDir(filePath: string): Promise<string>;
24
+ getSchema(schema: string): Promise<TdSchemaInfo>;
25
+ listSchemas(): Promise<string[]>;
26
+ get md(): MarkdownRenderer;
27
+ }
28
+ export declare const tdContext: TypedownContext;
29
+ //# sourceMappingURL=typedown-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typedown-context.d.ts","sourceRoot":"","sources":["../../../src/node/lib/typedown-context.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,SAAS,EACV,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,eAAe,EAAE,YAAY,EAAE,YAAY,EAC5C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACmB,KAAK,gBAAgB,EAC9C,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EACV,aAAa,EACd,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,CAA4B;IAC9D,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,aAAa,CAAC;IAgBnD,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;IAQvC,IAAI,EAAE,IAAK,gBAAgB,CAE1B;CACF;AAiDD,eAAO,MAAM,SAAS,iBAAoC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { SidebarGroups } from '@/shared';
2
+ export interface AppEntryOptions {
3
+ /** Content directory relative to project root */
4
+ contentDir: string;
5
+ /** Site title */
6
+ siteTitle: string;
7
+ /** Site description */
8
+ siteDescription: string;
9
+ /** Whether the vault has an index.td file */
10
+ hasIndex: boolean;
11
+ /** Content files grouped by schema for the sidebar */
12
+ sidebarGroups: SidebarGroups;
13
+ }
14
+ export declare function generateAppEntry(options: AppEntryOptions): string;
15
+ export declare function generateIndexSfc(groups: Record<string, unknown[]>): string;
16
+ //# sourceMappingURL=codegen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/node/plugin/codegen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,aAAa,EAAE,aAAa,CAAC;CAC9B;AAGD,wBAAgB,gBAAgB,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CAwClE;AAGD,wBAAgB,gBAAgB,CAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,CAe3E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=codegen.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.test.d.ts","sourceRoot":"","sources":["../../../src/node/plugin/codegen.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare const VIRTUAL_APP_ID = "@typedown/app";
2
+ export declare const RESOLVED_VIRTUAL_APP_ID: string;
3
+ export declare const VIRTUAL_INDEX_ID = "__typedown_index__.td";
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/node/plugin/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAC7D,eAAO,MAAM,gBAAgB,0BAA0B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './vite';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/plugin/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from 'vite';
2
+ export declare function typedown(): Plugin[];
3
+ //# sourceMappingURL=vite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../src/node/plugin/vite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACP,MAAM,MAAM,CAAC;AAkBd,wBAAgB,QAAQ,IAAK,MAAM,EAAE,CAqKpC"}
@@ -0,0 +1,7 @@
1
+ export declare const BRAND_BORDER = "m15 10c-2.7614 0-5 2.2386-5 5v98c0 2.761 2.2386 5 5 5h178c2.761 0 5-2.239 5-5v-98c0-2.7614-2.239-5-5-5zm-15 5c0-8.28427 6.71573-15 15-15h178c8.284 0 15 6.71573 15 15v98c0 8.284-6.716 15-15 15h-178c-8.28427 0-15-6.716-15-15z";
2
+ export declare const BRAND_LETTER = "M30 30h70v16h-27v52h-16v-52h-27z";
3
+ export declare const BRAND_ARROW = "m155 98-30-33h20v-35h20v35h20z";
4
+ export declare const BRAND_VIEWBOX = "0 0 208 128";
5
+ export declare const BRAND_COLOR = "#a0522d";
6
+ export declare const BRAND_FAVICON_URI: string;
7
+ //# sourceMappingURL=brand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/shared/brand.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY,oOAAoO,CAAC;AAC9P,eAAO,MAAM,YAAY,qCAAqC,CAAC;AAC/D,eAAO,MAAM,WAAW,mCAAmC,CAAC;AAC5D,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAC3C,eAAO,MAAM,WAAW,YAAY,CAAC;AASrC,eAAO,MAAM,iBAAiB,QAAkD,CAAC"}
@@ -1 +1,4 @@
1
+ export * from './regexes';
2
+ export * from './types';
3
+ export * from './utils';
1
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const EXTERNAL_URL_RE: RegExp;
2
+ //# sourceMappingURL=regexes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regexes.d.ts","sourceRoot":"","sources":["../../src/shared/regexes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAc,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface ContentSummary {
2
+ /** Path relative to content dir, with extension */
3
+ path: string;
4
+ /** Schema type name */
5
+ schema: string;
6
+ /** Frontmatter header */
7
+ header: Record<string, unknown>;
8
+ }
9
+ export type SidebarGroups = Record<string, ContentSummary[]>;
10
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/shared/types/content.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './content';
2
+ export * from './markdown';
3
+ export * from './ssg';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC"}
@@ -0,0 +1,62 @@
1
+ export interface MarkdownEnv {
2
+ /**
3
+ * The raw Markdown content without frontmatter
4
+ */
5
+ content?: string;
6
+ /**
7
+ * The excerpt that extracted by `@mdit-vue/plugin-frontmatter`
8
+ *
9
+ * - Would be the rendered HTML when `renderExcerpt` is enabled
10
+ * - Would be the raw Markdown when `renderExcerpt` is disabled
11
+ */
12
+ excerpt?: string;
13
+ /**
14
+ * The frontmatter that extracted by `@mdit-vue/plugin-frontmatter`
15
+ */
16
+ frontmatter?: Record<string, unknown>;
17
+ /**
18
+ * Populated by `@mdit-vue/plugin-headers`
19
+ */
20
+ headers?: MarkdownHeading[];
21
+ /**
22
+ * The title that extracted by `@mdit-vue/plugin-title`
23
+ */
24
+ title?: string;
25
+ path: string;
26
+ relativePath: string;
27
+ cleanUrls: boolean;
28
+ links?: string[];
29
+ linkLines?: number[];
30
+ includes?: string[];
31
+ realPath?: string;
32
+ localeIndex?: string;
33
+ }
34
+ export interface MarkdownHeading {
35
+ /**
36
+ * The level of the header
37
+ *
38
+ * `1` to `6` for `<h1>` to `<h6>`
39
+ */
40
+ level: number;
41
+ /**
42
+ * The title of the header
43
+ */
44
+ title: string;
45
+ /**
46
+ * The slug of the header
47
+ *
48
+ * Typically the `id` attr of the header anchor
49
+ */
50
+ slug: string;
51
+ /**
52
+ * Link of the header
53
+ *
54
+ * Typically using `#${slug}` as the anchor hash
55
+ */
56
+ link: string;
57
+ /**
58
+ * The children of the header
59
+ */
60
+ children: MarkdownHeading[];
61
+ }
62
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/shared/types/markdown.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B"}
@@ -0,0 +1,23 @@
1
+ import type { Component, Ref } from 'vue';
2
+ import type { MarkdownHeading } from './markdown';
3
+ export interface PageData {
4
+ schema: string;
5
+ frontmatter: Record<string, unknown>;
6
+ headings: MarkdownHeading[];
7
+ title: string;
8
+ }
9
+ export interface PageModule {
10
+ __pageData: PageData;
11
+ default: Component;
12
+ }
13
+ export interface TypedownData {
14
+ /** Page-level data from the .td file */
15
+ page: Ref<PageData>;
16
+ /** Frontmatter fields */
17
+ frontmatter: Ref<Record<string, unknown>>;
18
+ /** Page title */
19
+ title: Ref<string>;
20
+ /** Dark mode state */
21
+ isDark: Ref<boolean>;
22
+ }
23
+ //# sourceMappingURL=ssg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../../../src/shared/types/ssg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAAE,GAAG,EACf,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,QAAQ,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,wCAAwC;IACxC,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACpB,yBAAyB;IACzB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1C,iBAAiB;IACjB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,sBAAsB;IACtB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;CACtB"}
@@ -0,0 +1,6 @@
1
+ import type { ContentSummary } from '../types/content';
2
+ export declare function contentDisplayName(item: ContentSummary): string;
3
+ export declare function contentHref(item: ContentSummary): string;
4
+ export declare function getResourceTitle(header: Record<string, unknown>, path: string): string;
5
+ export declare function unslugify(slug: string): string;
6
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,cAAc,GAAG,MAAM,CAEhE;AAED,wBAAgB,WAAW,CAAE,IAAI,EAAE,cAAc,GAAG,MAAM,CAEzD;AAGD,wBAAgB,gBAAgB,CAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAQvF;AAID,wBAAgB,SAAS,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ/C"}
@@ -0,0 +1,2 @@
1
+ export declare const isInBrowser: boolean;
2
+ //# sourceMappingURL=environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/environment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,SAAgC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function isShell(language: string): boolean;
2
+ export declare function extractLanguage(info: string): string;
3
+ //# sourceMappingURL=highlight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/highlight.ts"],"names":[],"mappings":"AASA,wBAAgB,OAAO,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAElD;AAKD,wBAAgB,eAAe,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD"}
@@ -0,0 +1,5 @@
1
+ export * from './content';
2
+ export * from './environment';
3
+ export * from './highlight';
4
+ export * from './url';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC"}