@typerighter/rpc-client 0.22.2 → 0.23.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@typerighter/rpc-client",
4
- "version": "0.22.2",
4
+ "version": "0.23.0",
5
5
  "description": "WASM RPC client for Typedown.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -51,6 +51,15 @@ export interface TdFileMetadata {
51
51
  ctime: number;
52
52
  }
53
53
 
54
+ /**
55
+ * Heading extracted from page content
56
+ */
57
+ export interface TdHeading {
58
+ level: number;
59
+ title: string;
60
+ slug: string;
61
+ }
62
+
54
63
  /**
55
64
  * Lightweight sidebar item (no header/content/excerpt)
56
65
  */
@@ -101,6 +110,15 @@ export interface TdContentSummary {
101
110
  metadata: TdFileMetadata;
102
111
  }
103
112
 
113
+ /**
114
+ * Navigation link from typedown.yaml
115
+ */
116
+ export interface TdNavItem {
117
+ title: string;
118
+ link: string;
119
+ icon?: string;
120
+ }
121
+
104
122
  /**
105
123
  * Page icon
106
124
  */
@@ -176,11 +194,20 @@ export interface TdSiteConfig {
176
194
  * Repository URL from typedown.yaml
177
195
  */
178
196
  repo: string | undefined;
197
+ /**
198
+ * Site author from typedown.yaml
199
+ */
200
+ author: string | undefined;
201
+ /**
202
+ * License name from typedown.yaml
203
+ */
204
+ license: string | undefined;
179
205
  publicDir: string;
206
+ nav: TdNavItem[];
180
207
  }
181
208
 
182
209
  /**
183
- * Structured build result: Header (frontmatter) and content (commonmark body)
210
+ * Structured build result: header (frontmatter), HTML content, and extracted headings
184
211
  */
185
212
  export interface TdBuiltResource {
186
213
  schema?: string;
@@ -197,7 +224,18 @@ export interface TdBuiltResource {
197
224
  */
198
225
  icon?: TdIcon;
199
226
  header: Record<string, any>;
227
+ /**
228
+ * HTML body with placeholders for code/math post-processing
229
+ */
200
230
  content: string;
231
+ /**
232
+ * Headings extracted during HTML emission
233
+ */
234
+ headings: TdHeading[];
235
+ /**
236
+ * Page title extracted from the first h1
237
+ */
238
+ title?: string;
201
239
  /**
202
240
  * File metadata
203
241
  */
@@ -309,7 +309,7 @@ export function __wbg_new_typed_1824d93f294193e5(arg0, arg1) {
309
309
  const a = state0.a;
310
310
  state0.a = 0;
311
311
  try {
312
- return wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined_______true_(a, state0.b, arg0, arg1);
312
+ return wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined_______true_(a, state0.b, arg0, arg1);
313
313
  } finally {
314
314
  state0.a = a;
315
315
  }
@@ -425,33 +425,33 @@ export function __wbg_wasClean_3c7aa2335da09e74(arg0) {
425
425
  return ret;
426
426
  }
427
427
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
428
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 276, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
429
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___wasm_bindgen_bf4b4b12d3f72955___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_bf4b4b12d3f72955___JsError___true_);
428
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 280, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
429
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___wasm_bindgen_9ab2c84703f90674___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9ab2c84703f90674___JsError___true_);
430
430
  return ret;
431
431
  }
432
432
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
433
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 175, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
434
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true_);
433
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 179, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
434
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true_);
435
435
  return ret;
436
436
  }
437
437
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
438
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 175, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
439
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__2);
438
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 179, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
439
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__2);
440
440
  return ret;
441
441
  }
442
442
  export function __wbindgen_cast_0000000000000004(arg0, arg1) {
443
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 175, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
444
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__3);
443
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 179, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
444
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__3);
445
445
  return ret;
446
446
  }
447
447
  export function __wbindgen_cast_0000000000000005(arg0, arg1) {
448
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 179, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
449
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true_);
448
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 183, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
449
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true_);
450
450
  return ret;
451
451
  }
452
452
  export function __wbindgen_cast_0000000000000006(arg0, arg1) {
453
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 255, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
454
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true__1_);
453
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 259, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
454
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true__1_);
455
455
  return ret;
456
456
  }
457
457
  export function __wbindgen_cast_0000000000000007(arg0) {
@@ -504,35 +504,35 @@ export function __wbindgen_init_externref_table() {
504
504
  table.set(offset + 2, true);
505
505
  table.set(offset + 3, false);
506
506
  }
507
- function wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true_(arg0, arg1) {
508
- wasm.wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true_(arg0, arg1);
507
+ function wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true_(arg0, arg1) {
508
+ wasm.wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true_(arg0, arg1);
509
509
  }
510
510
 
511
- function wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true__1_(arg0, arg1) {
512
- wasm.wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true__1_(arg0, arg1);
511
+ function wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true__1_(arg0, arg1) {
512
+ wasm.wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true__1_(arg0, arg1);
513
513
  }
514
514
 
515
- function wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
516
- wasm.wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
515
+ function wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
516
+ wasm.wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
517
517
  }
518
518
 
519
- function wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2) {
520
- wasm.wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2);
519
+ function wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2) {
520
+ wasm.wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2);
521
521
  }
522
522
 
523
- function wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2) {
524
- wasm.wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2);
523
+ function wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2) {
524
+ wasm.wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2);
525
525
  }
526
526
 
527
- function wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___wasm_bindgen_bf4b4b12d3f72955___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_bf4b4b12d3f72955___JsError___true_(arg0, arg1, arg2) {
528
- const ret = wasm.wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___wasm_bindgen_bf4b4b12d3f72955___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_bf4b4b12d3f72955___JsError___true_(arg0, arg1, arg2);
527
+ function wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___wasm_bindgen_9ab2c84703f90674___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9ab2c84703f90674___JsError___true_(arg0, arg1, arg2) {
528
+ const ret = wasm.wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___wasm_bindgen_9ab2c84703f90674___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9ab2c84703f90674___JsError___true_(arg0, arg1, arg2);
529
529
  if (ret[1]) {
530
530
  throw takeFromExternrefTable0(ret[0]);
531
531
  }
532
532
  }
533
533
 
534
- function wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
535
- wasm.wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
534
+ function wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
535
+ wasm.wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
536
536
  }
537
537
 
538
538
 
Binary file
@@ -23,13 +23,13 @@ export const rpcclient_onSchemaCreated: (a: number, b: any) => void;
23
23
  export const rpcclient_onSchemaDeleted: (a: number, b: any) => void;
24
24
  export const rpcclient_requestFile: (a: number, b: number, c: number) => any;
25
25
  export const rpcclient_requestFiles: (a: number, b: number, c: number) => any;
26
- export const wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___wasm_bindgen_bf4b4b12d3f72955___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_bf4b4b12d3f72955___JsError___true_: (a: number, b: number, c: any) => [number, number];
27
- export const wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined___js_sys_4a5cb52a9074dc72___Function_fn_wasm_bindgen_bf4b4b12d3f72955___JsValue_____wasm_bindgen_bf4b4b12d3f72955___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
28
- export const wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
29
- export const wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__2: (a: number, b: number, c: any) => void;
30
- export const wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke___web_sys_3cc68d34740d5c49___features__gen_CloseEvent__CloseEvent______true__3: (a: number, b: number, c: any) => void;
31
- export const wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true_: (a: number, b: number) => void;
32
- export const wasm_bindgen_bf4b4b12d3f72955___convert__closures_____invoke_______true__1_: (a: number, b: number) => void;
26
+ export const wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___wasm_bindgen_9ab2c84703f90674___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9ab2c84703f90674___JsError___true_: (a: number, b: number, c: any) => [number, number];
27
+ export const wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined___js_sys_89e9f3025dd27088___Function_fn_wasm_bindgen_9ab2c84703f90674___JsValue_____wasm_bindgen_9ab2c84703f90674___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
28
+ export const wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
29
+ export const wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__2: (a: number, b: number, c: any) => void;
30
+ export const wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke___web_sys_9a75f0f9dd1a47bf___features__gen_CloseEvent__CloseEvent______true__3: (a: number, b: number, c: any) => void;
31
+ export const wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true_: (a: number, b: number) => void;
32
+ export const wasm_bindgen_9ab2c84703f90674___convert__closures_____invoke_______true__1_: (a: number, b: number) => void;
33
33
  export const __wbindgen_malloc: (a: number, b: number) => number;
34
34
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
35
35
  export const __wbindgen_exn_store: (a: number) => void;