typerighter 0.4.3 → 0.30.3

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.
Files changed (118) hide show
  1. package/dist/app-gH0dpuch.js +2382 -0
  2. package/dist/brand-CG1fQshq.js +5 -0
  3. package/dist/cli-BFgBPypP.js +440 -0
  4. package/dist/cli.js +1 -1
  5. package/dist/client/app/index.d.ts +43 -4
  6. package/dist/client/app/index.d.ts.map +1 -1
  7. package/dist/client/app/router.d.ts +6 -2
  8. package/dist/client/app/router.d.ts.map +1 -1
  9. package/dist/client/theme-default.js +2314 -593
  10. package/dist/client.js +1 -1
  11. package/dist/fonts.css +2 -0
  12. package/dist/index.js +3 -4
  13. package/dist/init-EKDV1L4U.js +821 -0
  14. package/dist/math.css +1 -0
  15. package/dist/node/build/index.d.ts.map +1 -1
  16. package/dist/node/build/prerender.d.ts +2 -0
  17. package/dist/node/build/prerender.d.ts.map +1 -1
  18. package/dist/node/cli/index.d.ts.map +1 -1
  19. package/dist/node/cli/init.d.ts +7 -1
  20. package/dist/node/cli/init.d.ts.map +1 -1
  21. package/dist/node/context.d.ts.map +1 -1
  22. package/dist/node/lib/html-template.d.ts +22 -0
  23. package/dist/node/lib/html-template.d.ts.map +1 -0
  24. package/dist/node/lib/image-dimensions.d.ts +6 -0
  25. package/dist/node/lib/image-dimensions.d.ts.map +1 -0
  26. package/dist/node/lib/index.d.ts +0 -1
  27. package/dist/node/lib/index.d.ts.map +1 -1
  28. package/dist/node/lib/progress.d.ts +2 -0
  29. package/dist/node/lib/progress.d.ts.map +1 -1
  30. package/dist/node/lib/render/highlight/index.d.ts.map +1 -0
  31. package/dist/node/lib/render/highlight/language.d.ts.map +1 -0
  32. package/dist/node/lib/render/postprocess.d.ts +2 -0
  33. package/dist/node/lib/render/postprocess.d.ts.map +1 -0
  34. package/dist/node/lib/render/vue.d.ts +1 -0
  35. package/dist/node/lib/render/vue.d.ts.map +1 -1
  36. package/dist/node/{plugin/vite/search.d.ts → lib/search-indexer/index.d.ts} +2 -3
  37. package/dist/node/lib/search-indexer/index.d.ts.map +1 -0
  38. package/dist/node/lib/search-indexer/scan.d.ts +4 -0
  39. package/dist/node/lib/search-indexer/scan.d.ts.map +1 -0
  40. package/dist/node/lib/typedown-context.d.ts +6 -10
  41. package/dist/node/lib/typedown-context.d.ts.map +1 -1
  42. package/dist/node/plugin/vite/constants.d.ts +6 -0
  43. package/dist/node/plugin/vite/constants.d.ts.map +1 -1
  44. package/dist/node/plugin/vite/index.d.ts +7 -13
  45. package/dist/node/plugin/vite/index.d.ts.map +1 -1
  46. package/dist/node/plugin/vite/middleware/index.d.ts +3 -0
  47. package/dist/node/plugin/vite/middleware/index.d.ts.map +1 -0
  48. package/dist/node/plugin/vite/middleware/vault-assets.d.ts +5 -0
  49. package/dist/node/plugin/vite/middleware/vault-assets.d.ts.map +1 -0
  50. package/dist/node/plugin/vite/middleware/virtual-html.d.ts +6 -0
  51. package/dist/node/plugin/vite/middleware/virtual-html.d.ts.map +1 -0
  52. package/dist/node/plugin/vite/virtual/app.d.ts +23 -0
  53. package/dist/node/plugin/vite/virtual/app.d.ts.map +1 -0
  54. package/dist/node/plugin/vite/virtual/pages.d.ts +12 -0
  55. package/dist/node/plugin/vite/virtual/pages.d.ts.map +1 -0
  56. package/dist/node/plugin/vite/virtual/search-index.d.ts +11 -0
  57. package/dist/node/plugin/vite/virtual/search-index.d.ts.map +1 -0
  58. package/dist/node/plugin/vite/virtual/site-data.d.ts +13 -0
  59. package/dist/node/plugin/vite/virtual/site-data.d.ts.map +1 -0
  60. package/dist/node/plugin/vite/virtual/utils.d.ts +8 -0
  61. package/dist/node/plugin/vite/virtual/utils.d.ts.map +1 -0
  62. package/dist/shared/constants.d.ts.map +1 -1
  63. package/dist/shared/types/content.d.ts +42 -11
  64. package/dist/shared/types/content.d.ts.map +1 -1
  65. package/dist/shared/types/index.d.ts +0 -1
  66. package/dist/shared/types/index.d.ts.map +1 -1
  67. package/dist/shared/types/ssg.d.ts +15 -3
  68. package/dist/shared/types/ssg.d.ts.map +1 -1
  69. package/dist/shared/utils/content.d.ts +5 -3
  70. package/dist/shared/utils/content.d.ts.map +1 -1
  71. package/dist/shared/utils/field.d.ts +2 -0
  72. package/dist/shared/utils/field.d.ts.map +1 -0
  73. package/dist/shared/utils/html.d.ts +1 -0
  74. package/dist/shared/utils/html.d.ts.map +1 -1
  75. package/dist/shared/utils/index.d.ts +1 -0
  76. package/dist/shared/utils/index.d.ts.map +1 -1
  77. package/dist/shared/utils/path.d.ts +1 -0
  78. package/dist/shared/utils/path.d.ts.map +1 -1
  79. package/dist/shared/utils/url.d.ts +9 -1
  80. package/dist/shared/utils/url.d.ts.map +1 -1
  81. package/dist/shared-BuA2cqMO.js +401 -0
  82. package/dist/shared.js +2 -0
  83. package/dist/temml-DZbhOfRE.js +8146 -0
  84. package/dist/typerighter.css +1 -1
  85. package/dist/vite-CYozrIIG.js +1468 -0
  86. package/dist/vite.js +2 -2
  87. package/package.json +26 -40
  88. package/dist/app-Bw90hv7G.js +0 -266
  89. package/dist/brand-CmL-6h9U.js +0 -203
  90. package/dist/cli-BbvLsY1i.js +0 -640
  91. package/dist/constants-7heqadyd.js +0 -32183
  92. package/dist/init-DCkztTxJ.js +0 -2356
  93. package/dist/node/lib/markdown/index.d.ts +0 -5
  94. package/dist/node/lib/markdown/index.d.ts.map +0 -1
  95. package/dist/node/lib/markdown/plugins/callout-container.d.ts +0 -4
  96. package/dist/node/lib/markdown/plugins/callout-container.d.ts.map +0 -1
  97. package/dist/node/lib/markdown/plugins/custom-container.d.ts +0 -3
  98. package/dist/node/lib/markdown/plugins/custom-container.d.ts.map +0 -1
  99. package/dist/node/lib/markdown/plugins/highlight/index.d.ts.map +0 -1
  100. package/dist/node/lib/markdown/plugins/highlight/language.d.ts.map +0 -1
  101. package/dist/node/lib/markdown/plugins/image.d.ts +0 -3
  102. package/dist/node/lib/markdown/plugins/image.d.ts.map +0 -1
  103. package/dist/node/lib/markdown/plugins/line-number.d.ts +0 -3
  104. package/dist/node/lib/markdown/plugins/line-number.d.ts.map +0 -1
  105. package/dist/node/lib/markdown/plugins/link.d.ts +0 -3
  106. package/dist/node/lib/markdown/plugins/link.d.ts.map +0 -1
  107. package/dist/node/lib/markdown/plugins/pre-wrapper.d.ts +0 -6
  108. package/dist/node/lib/markdown/plugins/pre-wrapper.d.ts.map +0 -1
  109. package/dist/node/lib/markdown/plugins/restore-entities.d.ts +0 -3
  110. package/dist/node/lib/markdown/plugins/restore-entities.d.ts.map +0 -1
  111. package/dist/node/lib/markdown/plugins/table.d.ts +0 -3
  112. package/dist/node/lib/markdown/plugins/table.d.ts.map +0 -1
  113. package/dist/node/plugin/vite/search.d.ts.map +0 -1
  114. package/dist/shared/types/markdown.d.ts +0 -62
  115. package/dist/shared/types/markdown.d.ts.map +0 -1
  116. package/dist/vite-B-ktlRz9.js +0 -309
  117. /package/dist/node/lib/{markdown/plugins → render}/highlight/index.d.ts +0 -0
  118. /package/dist/node/lib/{markdown/plugins → render}/highlight/language.d.ts +0 -0
package/dist/math.css ADDED
@@ -0,0 +1 @@
1
+ @import "temml/dist/Temml-Local.css";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACE,KAAK,YAAY,EACzB,MAAM,MAAM,CAAC;AAcd,OAAO,KAAK,EACV,UAAU,EACX,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAAE,GAAG,EAAE,UAAU,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA+J3F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACE,KAAK,YAAY,EACzB,MAAM,MAAM,CAAC;AAcd,OAAO,KAAK,EACV,UAAU,EACX,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAAE,GAAG,EAAE,UAAU,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4K3F"}
@@ -10,6 +10,8 @@ export interface PrerenderContext {
10
10
  base: string;
11
11
  /** List of page paths to render (e.g. ["/", "/posts/hello"]) */
12
12
  pagePaths: string[];
13
+ /** Site title for SEO title suffix */
14
+ siteTitle: string;
13
15
  /** Progress logger for reporting render progress */
14
16
  progress?: ProgressLogger;
15
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"prerender.d.ts","sourceRoot":"","sources":["../../../src/node/build/prerender.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,gBAAgB;IAC/B,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;IACpB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAID,wBAAsB,kBAAkB,CAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmClF"}
1
+ {"version":3,"file":"prerender.d.ts","sourceRoot":"","sources":["../../../src/node/build/prerender.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACf,MAAM,iBAAiB,CAAC;AAKzB,MAAM,WAAW,gBAAgB;IAC/B,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;IACpB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAID,wBAAsB,kBAAkB,CAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CA+ClF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAkBA,wBAAgB,GAAG,SA4FlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,SAwLlB"}
@@ -1,2 +1,8 @@
1
- export declare function initialize(root: string): Promise<void>;
1
+ export interface InitializeFlags {
2
+ name?: string;
3
+ title?: string;
4
+ description?: string;
5
+ yes?: boolean;
6
+ }
7
+ export declare function initialize(root: string, flags?: InitializeFlags): Promise<void>;
2
8
  //# sourceMappingURL=init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/node/cli/init.ts"],"names":[],"mappings":"AAsBA,wBAAsB,UAAU,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM7D"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/node/cli/init.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,wBAAsB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,eAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAW1F"}
@@ -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,CAmG1D;AAGD,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAaxD"}
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;AAChC,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,CAsG1D;AAGD,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAaxD"}
@@ -0,0 +1,22 @@
1
+ export interface HtmlTemplateOptions {
2
+ /** Raw page title */
3
+ title: string;
4
+ /** Raw page description */
5
+ description: string;
6
+ /** Site title, appended as suffix when different from page title */
7
+ siteTitle?: string;
8
+ /** Base path, e.g. "/" or "/docs/" */
9
+ base: string;
10
+ /** Module script src, e.g. "/@typedown/app" or "assets/app-abc.js" */
11
+ entryScript: string;
12
+ /** HTML language attribute */
13
+ lang?: string;
14
+ /** Canonical URL for SEO */
15
+ canonicalUrl?: string;
16
+ /** Extra tags injected into <head> (CSS links, module preloads) */
17
+ headExtra?: string;
18
+ /** SSR-rendered content inside div#app */
19
+ appContent?: string;
20
+ }
21
+ export declare function generateHtmlTemplate(options: HtmlTemplateOptions): string;
22
+ //# sourceMappingURL=html-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-template.d.ts","sourceRoot":"","sources":["../../../src/node/lib/html-template.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAE,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAqD1E"}
@@ -0,0 +1,6 @@
1
+ export interface ImageDimensions {
2
+ width: number;
3
+ height: number;
4
+ }
5
+ export declare function getImageDimensions(buffer: Buffer): ImageDimensions | undefined;
6
+ //# sourceMappingURL=image-dimensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-dimensions.d.ts","sourceRoot":"","sources":["../../../src/node/lib/image-dimensions.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GACb,eAAe,GAAG,SAAS,CAQ7B"}
@@ -1,4 +1,3 @@
1
- export * from './markdown';
2
1
  export * from './typedown-context';
3
2
  export * from './render';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC"}
@@ -3,8 +3,10 @@ export declare class ProgressLogger {
3
3
  private logger;
4
4
  private label;
5
5
  private start;
6
+ private spinnerInterval;
6
7
  constructor(logger: TdLogger, label: string);
7
8
  update(current: number, total: number): void;
8
9
  done(message: string): void;
10
+ private stopSpinner;
9
11
  }
10
12
  //# sourceMappingURL=progress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/node/lib/progress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACT,MAAM,UAAU,CAAC;AAElB,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAS;gBAET,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM;IAO5C,MAAM,CAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAQtC,IAAI,CAAE,OAAO,EAAE,MAAM;CAStB"}
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/node/lib/progress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACT,MAAM,UAAU,CAAC;AASlB,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,eAAe,CAA6C;gBAEvD,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM;IAkB5C,MAAM,CAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAStC,IAAI,CAAE,OAAO,EAAE,MAAM;IAYrB,OAAO,CAAC,WAAW;CAMpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/render/highlight/index.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 @@
1
+ {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../../../src/node/lib/render/highlight/language.ts"],"names":[],"mappings":"AASA,wBAAgB,eAAe,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE1D;AAKD,wBAAgB,eAAe,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD"}
@@ -0,0 +1,2 @@
1
+ export declare function postprocessHtml(html: string): Promise<string>;
2
+ //# sourceMappingURL=postprocess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postprocess.d.ts","sourceRoot":"","sources":["../../../../src/node/lib/render/postprocess.ts"],"names":[],"mappings":"AAaA,wBAAsB,eAAe,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKpE"}
@@ -7,5 +7,6 @@ export interface VueRenderResult {
7
7
  /** Page metadata */
8
8
  pageData: PageData;
9
9
  }
10
+ export declare function buildPageData(context: TypedownContext, resource: TdBuiltResource, filepath: string): Promise<PageData>;
10
11
  export declare function renderToVueSfc(context: TypedownContext, resource: TdBuiltResource, filepath: string): Promise<VueRenderResult>;
11
12
  //# sourceMappingURL=vue.d.ts.map
@@ -1 +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,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,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,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,CAAC,CAmC1B"}
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,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAI7B,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,aAAa,CACjC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,QAAQ,CAAC,CAenB;AAGD,wBAAsB,cAAc,CAClC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,CAAC,CAuB1B"}
@@ -1,15 +1,14 @@
1
1
  export interface PageIndexInput {
2
2
  id: string;
3
3
  title: string;
4
- html: string;
4
+ text: string;
5
5
  }
6
6
  export declare class SearchIndexer {
7
7
  private index;
8
- private pageDocIds;
9
8
  constructor();
10
9
  addAll(pages: PageIndexInput[]): void;
11
10
  addPage(page: PageIndexInput): void;
12
11
  discardPage(pageId: string): void;
13
12
  serialize(): string;
14
13
  }
15
- //# sourceMappingURL=search.d.ts.map
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/lib/search-indexer/index.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK,CAA+B;;IAS5C,MAAM,CAAE,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI;IAOtC,OAAO,CAAE,IAAI,EAAE,cAAc,GAAG,IAAI;IAKpC,WAAW,CAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIlC,SAAS,IAAK,MAAM;CAGrB"}
@@ -0,0 +1,4 @@
1
+ import type { SearchIndexer } from './index';
2
+ export declare function indexAllFiles(rootDirectory: string, indexer: SearchIndexer): void;
3
+ export declare function reindexFile(rootDirectory: string, filepath: string, indexer: SearchIndexer): void;
4
+ //# sourceMappingURL=scan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../../src/node/lib/search-indexer/scan.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,SAAS,CAAC;AAQjB,wBAAgB,aAAa,CAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,CAWlF;AAGD,wBAAgB,WAAW,CAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,CASlG"}
@@ -1,27 +1,23 @@
1
- import type { RpcClient, TdBuiltResource, TdSiteConfig, TdSchemaInfo } from '@typerighter/rpc-client';
2
- import { type MarkdownRenderer } from './markdown';
3
- import type { SchemaGroups } from '@/shared';
1
+ import { type RpcClient, type TdBuiltResource, type TdDiagnosticReport, type TdFormatResult, type TdSidebarItem, type TdSiteConfig, type TdSchemaInfo } from '@typerighter/rpc-client';
4
2
  export declare class TypedownContext {
5
3
  private client;
6
- private _md;
7
- constructor(client: RpcClient, md: MarkdownRenderer);
4
+ constructor(client: RpcClient);
8
5
  private cachedConfig;
9
6
  private cachedFiles;
10
- private cachedFilesGroupedBySchema;
11
7
  private cachedSchemas;
12
8
  private cachedSchemaMap;
13
9
  private cachedFileMap;
14
- private configVersion;
15
10
  private registerNotificationHandlers;
16
11
  get rpc(): RpcClient;
17
12
  getFile(filepath: string): Promise<TdBuiltResource>;
18
13
  getFiles(paths: string[]): Promise<TdBuiltResource[]>;
19
14
  listFiles(): Promise<string[]>;
20
- listFilesGroupedBySchema(): Promise<SchemaGroups>;
15
+ listSidebar(): Promise<TdSidebarItem[]>;
21
16
  getConfig(): Promise<TdSiteConfig>;
22
- getAssetDir(filepath: string): Promise<string>;
23
17
  getSchema(schema: string): Promise<TdSchemaInfo>;
24
18
  listSchemas(): Promise<string[]>;
25
- get md(): MarkdownRenderer;
19
+ checkVault(): Promise<TdDiagnosticReport>;
20
+ formatFile(filepath: string): Promise<TdFormatResult>;
26
21
  }
22
+ export declare function isRpcCancelled(error: unknown): boolean;
27
23
  //# 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,EAC5C,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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C;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;CAG7D;AAED,wBAAgB,cAAc,CAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAMvD"}
@@ -1,5 +1,11 @@
1
1
  export declare const VIRTUAL_APP_ID = "@typedown/app";
2
2
  export declare const RESOLVED_VIRTUAL_APP_ID: string;
3
+ export declare const PAGES_ID = "@typedown/pages";
4
+ export declare const RESOLVED_PAGES_ID: string;
5
+ export declare const PAGE_DATA_PREFIX: string;
6
+ export declare const RESOLVED_PAGE_DATA_PREFIX: string;
7
+ export declare const SITE_DATA_ID = "@typedown/site-data";
8
+ export declare const RESOLVED_SITE_DATA_ID: string;
3
9
  export declare const SEARCH_INDEX_ID = "@typedown/search-index";
4
10
  export declare const RESOLVED_SEARCH_INDEX_ID: string;
5
11
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAE7D,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAyB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,uBAAuB,QAAwB,CAAC;AAE7D,eAAO,MAAM,QAAQ,oBAAoB,CAAC;AAC1C,eAAO,MAAM,iBAAiB,QAAkB,CAAC;AACjD,eAAO,MAAM,gBAAgB,QAA0B,CAAC;AACxD,eAAO,MAAM,yBAAyB,QAA0B,CAAC;AAEjE,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAClD,eAAO,MAAM,qBAAqB,QAAsB,CAAC;AAEzD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAyB,CAAC"}
@@ -1,21 +1,15 @@
1
1
  import { type Plugin } from 'vite';
2
2
  import { type AppContext } from '../../context';
3
- import type { ContentTree } from '@/shared';
4
- export interface ClientAppEntryOptions {
5
- /** Content directory relative to project root */
6
- contentDir: string;
7
- /** Site title */
8
- siteTitle: string;
9
- /** Site description */
10
- siteDescription: string;
11
- /** Content files as a recursive directory tree */
12
- contentTree: ContentTree;
13
- /** Schema definitions keyed by schema name */
14
- schemas: Record<string, unknown>;
3
+ export { generate as generateClientAppEntry, type AppEntryOptions as ClientAppEntryOptions, } from './virtual/app';
4
+ export interface TypedownPluginCache {
5
+ devHtml: string | undefined;
6
+ basePath: string;
7
+ rootDirectory: string;
15
8
  }
16
9
  export interface TypedownPluginOptions {
17
10
  context?: AppContext;
11
+ /** Vault directory relative to the host project root */
12
+ root?: string;
18
13
  }
19
- export declare function generateClientAppEntry(options: ClientAppEntryOptions): string;
20
14
  export declare function typedown(options?: TypedownPluginOptions): Plugin[];
21
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/plugin/vite/index.ts"],"names":[],"mappings":"AAKA,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,CA8OvE"}
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;AAOd,OAAO,EACiC,KAAK,UAAU,EACtD,MAAM,eAAe,CAAC;AAiCvB,OAAO,EACL,QAAQ,IAAI,sBAAsB,EAClC,KAAK,eAAe,IAAI,qBAAqB,GAC9C,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IAEpC,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,QAAQ,CAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,EAAE,CAyUvE"}
@@ -0,0 +1,3 @@
1
+ export { vaultAssets, } from './vault-assets';
2
+ export { virtualHtml, } from './virtual-html';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,WAAW,GACZ,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IncomingMessage, ServerResponse } from 'node:http';
2
+ import type { ViteDevServer } from 'vite';
3
+ import type { TypedownPluginCache } from '..';
4
+ export declare function vaultAssets(server: ViteDevServer, cache: TypedownPluginCache): (request: IncomingMessage, response: ServerResponse, next: () => void) => void;
5
+ //# sourceMappingURL=vault-assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vault-assets.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/middleware/vault-assets.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,eAAe,EAAE,cAAc,EAChC,MAAM,WAAW,CAAC;AAInB,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,IAAI,CAAC;AAwBZ,wBAAgB,WAAW,CAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,mBAAmB,IAE1E,SAAS,eAAe,EACxB,UAAU,cAAc,EACxB,MAAM,MAAM,IAAI,UAwCnB"}
@@ -0,0 +1,6 @@
1
+ import type { IncomingMessage, ServerResponse } from 'node:http';
2
+ import type { ViteDevServer } from 'vite';
3
+ import type { TypedownPluginCache } from '..';
4
+ import type { TypedownContext } from '@/node/lib/typedown-context';
5
+ export declare function virtualHtml(server: ViteDevServer, tdContext: TypedownContext, cache: TypedownPluginCache): (request: IncomingMessage, response: ServerResponse, next: () => void) => void;
6
+ //# sourceMappingURL=virtual-html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual-html.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/middleware/virtual-html.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EAAE,cAAc,EAChC,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,IAAI,CAAC;AAOZ,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,wBAAgB,WAAW,CACzB,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,mBAAmB,IAGxB,SAAS,eAAe,EACxB,UAAU,cAAc,EACxB,MAAM,MAAM,IAAI,UA+BnB"}
@@ -0,0 +1,23 @@
1
+ import type { ViteDevServer } from 'vite';
2
+ import { type VirtualModule } from './utils';
3
+ import type { TypedownContext } from '@/node/lib/typedown-context';
4
+ export interface AppEntryOptions {
5
+ rootDir?: string;
6
+ basePath?: string;
7
+ siteTitle: string;
8
+ siteDescription: string;
9
+ repo?: string;
10
+ author?: string;
11
+ license?: string;
12
+ nav?: {
13
+ title: string;
14
+ link: string;
15
+ icon?: string;
16
+ }[];
17
+ }
18
+ export declare class VirtualApp implements VirtualModule {
19
+ load(context: TypedownContext): Promise<string>;
20
+ invalidate(server: ViteDevServer): void;
21
+ }
22
+ export declare function generate(options: AppEntryOptions): string;
23
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAOd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL;AAED,qBAAa,UAAW,YAAW,aAAa;IACxC,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAStD,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC;AAGD,wBAAgB,QAAQ,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,CA0E1D"}
@@ -0,0 +1,12 @@
1
+ import type { ViteDevServer } from 'vite';
2
+ import { type VirtualModule } from './utils';
3
+ import type { TypedownContext } from '@/node/lib/typedown-context';
4
+ export declare class VirtualPages implements VirtualModule {
5
+ load(context: TypedownContext): Promise<string>;
6
+ resolvePageData(id: string): string | undefined;
7
+ isPageDataModule(resolvedId: string): boolean;
8
+ loadPageData(resolvedId: string, context: TypedownContext): Promise<string>;
9
+ invalidatePageData(server: ViteDevServer, filepath: string): void;
10
+ invalidate(server: ViteDevServer): void;
11
+ }
12
+ //# sourceMappingURL=pages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AAKd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAKrC,qBAAa,YAAa,YAAW,aAAa;IAC1C,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAQtD,eAAe,CAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAMhD,gBAAgB,CAAE,UAAU,EAAE,MAAM,GAAG,OAAO;IAIxC,YAAY,CAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAQlF,kBAAkB,CAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIlE,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC"}
@@ -0,0 +1,11 @@
1
+ import type { ViteDevServer } from 'vite';
2
+ import { type VirtualModule } from './utils';
3
+ import type { TypedownContext } from '@/node/lib/typedown-context';
4
+ export declare class VirtualSearchIndex implements VirtualModule {
5
+ private indexer;
6
+ load(_context: TypedownContext): string;
7
+ index(rootDirectory: string): void;
8
+ reindex(rootDirectory: string, filepath: string): void;
9
+ invalidate(server: ViteDevServer): void;
10
+ }
11
+ //# sourceMappingURL=search-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-index.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/search-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAUrC,qBAAa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,OAAO,CAAuB;IAEtC,IAAI,CAAE,QAAQ,EAAE,eAAe,GAAG,MAAM;IAIxC,KAAK,CAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAInC,OAAO,CAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIvD,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC"}
@@ -0,0 +1,13 @@
1
+ import type { ViteDevServer } from 'vite';
2
+ import { type VirtualModule } from './utils';
3
+ import type { TypedownContext } from '@/node/lib/typedown-context';
4
+ export declare class VirtualSiteData implements VirtualModule {
5
+ private data;
6
+ scan(rootDirectory: string): void;
7
+ load(_context: TypedownContext): string;
8
+ clear(): void;
9
+ fetch(context: TypedownContext, server?: ViteDevServer): void;
10
+ fetchSync(context: TypedownContext): Promise<void>;
11
+ invalidate(server: ViteDevServer): void;
12
+ }
13
+ //# sourceMappingURL=site-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"site-data.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/site-data.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AA0BrC,qBAAa,eAAgB,YAAW,aAAa;IACnD,OAAO,CAAC,IAAI,CAAuB;IAGnC,IAAI,CAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAmBlC,IAAI,CAAE,QAAQ,EAAE,eAAe,GAAG,MAAM;IAWxC,KAAK,IAAK,IAAI;IAKd,KAAK,CAAE,OAAO,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI;IAYxD,SAAS,CAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzD,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI;CAGzC"}
@@ -0,0 +1,8 @@
1
+ import type { ViteDevServer } from 'vite';
2
+ import type { TypedownContext } from '@/node/lib/typedown-context';
3
+ export interface VirtualModule {
4
+ load(context: TypedownContext): string | Promise<string>;
5
+ invalidate(server: ViteDevServer): void;
6
+ }
7
+ export declare function invalidateVirtualModule(server: ViteDevServer, resolvedId: string): void;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/node/plugin/vite/virtual/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAE,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1D,UAAU,CAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CAC1C;AAGD,wBAAgB,uBAAuB,CAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAqBxF"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/shared/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAU,CAAC;AACtC,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAG/C,CAAC;AACF,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAG3C,eAAO,MAAM,aAAa,EAAE,MAAM,EAIjC,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAGvC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/shared/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAU,CAAC;AACtC,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAG/C,CAAC;AACF,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAG3C,eAAO,MAAM,aAAa,EAAE,MAAM,EAGjC,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAAc,CAAC"}
@@ -1,34 +1,66 @@
1
+ export interface ContentIcon {
2
+ /** Lucide icon name */
3
+ name: string;
4
+ }
1
5
  export interface ContentSummary {
2
6
  /** File path relative to content dir, with extension */
3
7
  filepath: string;
4
8
  /** Schema type name */
5
9
  schema?: string;
10
+ /** Human-readable schema label */
11
+ schemaLabel?: string;
12
+ /** Display label */
13
+ label?: string;
14
+ /** Page icon */
15
+ icon?: ContentIcon;
6
16
  /** Frontmatter header */
7
17
  header: Record<string, unknown>;
8
- /** File metadata */
9
- metadata: FileMetadata;
18
+ /** First paragraph of the body content */
19
+ excerpt?: string;
20
+ /** File metadata (absent during initial disk scan, populated after RPC) */
21
+ metadata?: FileMetadata;
10
22
  }
11
23
  export interface ContentTree {
12
- /** Files at the content root */
13
- rootItems: ContentSummary[];
14
- /** Top-level directory nodes */
15
- children: ContentTreeNode[];
24
+ /** Interleaved files and directories at the root, sorted by numeric prefix */
25
+ entries: ContentTreeEntry[];
16
26
  }
27
+ export type ContentTreeEntry = {
28
+ kind: 'file';
29
+ item: ContentSummary;
30
+ } | {
31
+ kind: 'dir';
32
+ node: ContentTreeNode;
33
+ };
17
34
  export interface ContentTreeNode {
18
35
  name: string;
19
- children: ContentTreeNode[];
20
- items: ContentSummary[];
36
+ /** Interleaved files and directories, sorted by numeric prefix */
37
+ entries: ContentTreeEntry[];
21
38
  }
22
39
  export interface DirectoryEntry {
23
40
  name: string;
24
41
  url: string;
42
+ /** First sentence of body or description field */
43
+ description?: string;
44
+ /** Tags from frontmatter */
45
+ tags?: string[];
46
+ /** Last modification time as seconds since UNIX epoch */
47
+ mtime?: number;
48
+ /** Schema type name */
49
+ schema?: string;
25
50
  }
26
51
  export interface DirectoryListing {
27
52
  title: string;
28
53
  url: string;
29
- subdirectories: SubdirectoryEntry[];
30
- items: DirectoryEntry[];
54
+ /** Interleaved subdirectories and items, sorted by numeric prefix */
55
+ entries: DirectoryListingEntry[];
31
56
  }
57
+ export type DirectoryListingEntry = {
58
+ kind: 'file';
59
+ item: DirectoryEntry;
60
+ } | {
61
+ kind: 'dir';
62
+ sub: SubdirectoryEntry;
63
+ };
32
64
  export interface FileMetadata {
33
65
  /** Last modification time as seconds since UNIX epoch */
34
66
  mtime: number;
@@ -51,7 +83,6 @@ export type PropertyWidget = 'text' | 'number' | 'checkbox' | 'date' | 'select'
51
83
  export interface SchemaDefinition {
52
84
  [property: string]: PropertyDescriptor;
53
85
  }
54
- export type SchemaGroups = Record<string, ContentSummary[]>;
55
86
  export interface SubdirectoryEntry {
56
87
  name: string;
57
88
  url: string;
@@ -1 +1 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,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,4 +1,3 @@
1
1
  export * from './content';
2
- export * from './markdown';
3
2
  export * from './ssg';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC"}
@@ -1,15 +1,27 @@
1
1
  import type { Component, Ref } from 'vue';
2
- import type { FileMetadata } from './content';
3
- import type { MarkdownHeading } from './markdown';
2
+ import type { ContentIcon, FileMetadata } from './content';
3
+ export interface MarkdownHeading {
4
+ /** 1 to 6 for h1 to h6 */
5
+ level: number;
6
+ title: string;
7
+ /** The id attr of the header anchor */
8
+ slug: string;
9
+ /** Anchor link, typically #slug */
10
+ link: string;
11
+ children: MarkdownHeading[];
12
+ }
4
13
  export interface PageData {
5
14
  schema?: string;
15
+ schemaLabel?: string;
16
+ label?: string;
17
+ icon?: ContentIcon;
6
18
  frontmatter: Record<string, unknown>;
7
19
  headings: MarkdownHeading[];
8
20
  title: string;
9
21
  metadata?: FileMetadata;
10
22
  }
11
23
  export interface PageModule {
12
- __pageData: PageData;
24
+ pageData: PageData;
13
25
  default: Component;
14
26
  }
15
27
  export interface TypedownData {
@@ -1 +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,YAAY,EACb,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;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"}
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,WAAW,EAAE,YAAY,EAC1B,MAAM,WAAW,CAAC;AAEnB,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,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"}
@@ -1,6 +1,8 @@
1
- import type { ContentSummary, ContentTree, ContentTreeNode, DirectoryListing } from '../types/content';
1
+ import type { ContentSummary, ContentTree, ContentTreeEntry, ContentTreeNode, DirectoryListing } from '../types/content';
2
2
  export declare function buildContentTree(items: ContentSummary[]): ContentTree;
3
- export declare function buildDirectoryListingMap(tree: ContentTreeNode[], rootTitle: string): Record<string, DirectoryListing>;
3
+ export declare function buildDirectoryListingMap(entries: ContentTreeEntry[], rootTitle: string): Record<string, DirectoryListing>;
4
+ export declare function getNodeIndexItem(node: ContentTreeNode): ContentSummary | undefined;
4
5
  export declare function getTdIndexTitle(filepath: string, siteTitle: string): string;
5
- export declare function getTdResourceTitle(header: Record<string, unknown>, filepath: string): string;
6
+ export declare function getTdResourceTitle(filepath: string, label?: string): string;
7
+ export declare function isIndexFile(filepath: string): boolean;
6
8
  //# sourceMappingURL=content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/content.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAC/D,MAAM,kBAAkB,CAAC;AAY1B,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,cAAc,EAAE,GAAG,WAAW,CAqCtE;AAGD,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,eAAe,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAiEtH;AAED,wBAAgB,eAAe,CAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI5E;AAGD,wBAAgB,kBAAkB,CAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAK7F"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/content.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAkB,gBAAgB,EACjG,MAAM,kBAAkB,CAAC;AAY1B,wBAAgB,gBAAgB,CAAE,KAAK,EAAE,cAAc,EAAE,GAAG,WAAW,CA8CtE;AAGD,wBAAgB,wBAAwB,CAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CA4E1H;AAED,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,eAAe,GAAG,cAAc,GAAG,SAAS,CAMnF;AAGD,wBAAgB,eAAe,CAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI5E;AAGD,wBAAgB,kBAAkB,CAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAa5E;AAED,wBAAgB,WAAW,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEtD"}
@@ -0,0 +1,2 @@
1
+ export declare function isBuiltinField(key: string): boolean;
2
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/field.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAEpD"}