@airalogy/aimd-renderer 2.4.1 → 2.5.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.
Files changed (41) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -1
  3. package/README.zh-CN.md +5 -1
  4. package/dist/__tests__/renderer.test.d.ts +2 -0
  5. package/dist/__tests__/renderer.test.d.ts.map +1 -0
  6. package/dist/common/annotateStepReferences.d.ts +10 -0
  7. package/dist/common/annotateStepReferences.d.ts.map +1 -0
  8. package/dist/common/assignerHighlighting.d.ts +14 -0
  9. package/dist/common/assignerHighlighting.d.ts.map +1 -0
  10. package/dist/common/assignerVisibility.d.ts +33 -0
  11. package/dist/common/assignerVisibility.d.ts.map +1 -0
  12. package/dist/common/eventKeys.d.ts +20 -0
  13. package/dist/common/eventKeys.d.ts.map +1 -0
  14. package/dist/common/figureNumbering.d.ts +30 -0
  15. package/dist/common/figureNumbering.d.ts.map +1 -0
  16. package/dist/common/processor.d.ts +96 -0
  17. package/dist/common/processor.d.ts.map +1 -0
  18. package/dist/common/quiz-preview.d.ts +11 -0
  19. package/dist/common/quiz-preview.d.ts.map +1 -0
  20. package/dist/common/unified-token-renderer.d.ts +124 -0
  21. package/dist/common/unified-token-renderer.d.ts.map +1 -0
  22. package/dist/html/index.d.ts +9 -0
  23. package/dist/html/index.d.ts.map +1 -0
  24. package/dist/html.js +1 -1
  25. package/dist/index.d.ts +23 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +43 -43
  28. package/dist/locales.d.ts +52 -0
  29. package/dist/locales.d.ts.map +1 -0
  30. package/dist/{processor-Cv8E7QsA.js → processor-B2mByErv.js} +1699 -1527
  31. package/dist/vue/index.d.ts +10 -0
  32. package/dist/vue/index.d.ts.map +1 -0
  33. package/dist/vue/vue-renderer.d.ts +138 -0
  34. package/dist/vue/vue-renderer.d.ts.map +1 -0
  35. package/dist/vue.js +1 -1
  36. package/package.json +13 -13
  37. package/src/__tests__/renderer.test.ts +29 -1
  38. package/src/common/processor.ts +4 -2
  39. package/src/common/unified-token-renderer.ts +2 -2
  40. package/src/locales.ts +5 -0
  41. package/src/vue/vue-renderer.ts +2 -2
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # @airalogy/aimd-renderer
2
2
 
3
- Rendering engine for AIMD: HTML output, Vue output, and field extraction.
3
+ [![npm version](https://img.shields.io/npm/v/%40airalogy%2Faimd-renderer?logo=npm&color=cb3837)](https://www.npmjs.com/package/@airalogy/aimd-renderer)
4
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/airalogy/aimd/blob/main/LICENSE)
5
+
6
+ Rendering engine for AIMD (Airalogy Markdown): HTML output, Vue output, and field extraction.
4
7
 
5
8
  Assigner blocks are hidden from normal rendered output by default. You can opt into collapsed or expanded assigner display when building authoring/debug views, while extracted field metadata remains available through `parseAndExtract`.
9
+ `parseAndExtract` returns the canonical core field structure, including simple `var` metadata in `fields.var_definitions`.
6
10
 
7
11
  > Protocol-level AIMD syntax, assigner semantics, and validation rules are normative in Airalogy docs. `@airalogy/aimd-*` docs describe how the frontend parser, renderer, and recorder implement those rules.
8
12
 
package/README.zh-CN.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # @airalogy/aimd-renderer
2
2
 
3
- AIMD 渲染引擎:支持 HTML 渲染、Vue 渲染与字段提取。
3
+ [![npm version](https://img.shields.io/npm/v/%40airalogy%2Faimd-renderer?logo=npm&color=cb3837)](https://www.npmjs.com/package/@airalogy/aimd-renderer)
4
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/airalogy/aimd/blob/main/LICENSE)
5
+
6
+ AIMD(Airalogy Markdown)渲染引擎:支持 HTML 渲染、Vue 渲染与字段提取。
4
7
 
5
8
  默认情况下,assigner 代码块不会出现在普通渲染输出中。只有在作者视图或调试视图中显式开启时,才会以折叠或展开形式显示;`parseAndExtract` 仍会保留相关字段元数据。
9
+ `parseAndExtract` 返回 core 的规范字段结构,其中也包括 `fields.var_definitions` 里的普通 `var` 元数据。
6
10
 
7
11
  > 协议级 AIMD 语法、assigner 语义与校验规则以 Airalogy 文档为准;`@airalogy/aimd-*` 文档只描述前端 parser、renderer、recorder 如何实现这些规范。
8
12
 
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=renderer.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/renderer.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { Root as HastRoot } from "hast";
2
+ import type { ExtractedAimdFields } from "@airalogy/aimd-core/types";
3
+ import type { AimdRendererOptions } from "./processor";
4
+ /**
5
+ * Walk a HAST tree and inject the resolved step-sequence numbers into every
6
+ * `ref_step` element so the rendered output shows e.g. "Step 2.1" instead of
7
+ * the raw id.
8
+ */
9
+ export declare function annotateStepReferenceSequence(tree: HastRoot, fields: ExtractedAimdFields, options: AimdRendererOptions): void;
10
+ //# sourceMappingURL=annotateStepReferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotateStepReferences.d.ts","sourceRoot":"","sources":["../../src/common/annotateStepReferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAA;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAuBtD;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,mBAAmB,EAC3B,OAAO,EAAE,mBAAmB,GAC3B,IAAI,CA0EN"}
@@ -0,0 +1,14 @@
1
+ import type { Element, Root as HastRoot } from "hast";
2
+ import type { AimdRendererOptions } from "./processor";
3
+ export declare function getClassNames(value: unknown): string[];
4
+ export declare function hasClassName(node: Element, className: string): boolean;
5
+ export declare function getCodeLanguage(node: Element): string | null;
6
+ export declare function collectTextContent(node: Element): string;
7
+ export declare function visitHastElements(node: HastRoot | Element, visitor: (element: Element) => void): void;
8
+ export declare function findDescendantElement(node: Element, predicate: (element: Element) => boolean): Element | null;
9
+ /**
10
+ * Walk a HAST tree and apply Shiki syntax highlighting to every visible
11
+ * assigner code block (`<code>` inside `.aimd-assigner-preview`).
12
+ */
13
+ export declare function highlightVisibleAssigners(tree: HastRoot, options: AimdRendererOptions): Promise<void>;
14
+ //# sourceMappingURL=assignerHighlighting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignerHighlighting.d.ts","sourceRoot":"","sources":["../../src/common/assignerHighlighting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAoB,MAAM,MAAM,CAAA;AAEvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAUtD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAQtD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAEtE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAG5D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAUxD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAWrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,GAAG,IAAI,CAc7G;AAwCD;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4C3G"}
@@ -0,0 +1,33 @@
1
+ import type { Plugin } from "unified";
2
+ import type { AimdRendererOptions } from "./processor";
3
+ import type { AimdAssignerVisibility } from "./processor";
4
+ /**
5
+ * Internal markdown AST node shape used during remark processing.
6
+ */
7
+ export interface MarkdownNode {
8
+ type: string;
9
+ children?: MarkdownNode[];
10
+ lang?: string | null;
11
+ meta?: string | null;
12
+ value?: string;
13
+ }
14
+ export type MarkdownParent = MarkdownNode & {
15
+ children: MarkdownNode[];
16
+ };
17
+ export declare function resolveAssignerVisibility(visibility: AimdRendererOptions["assignerVisibility"]): AimdAssignerVisibility;
18
+ export declare function isAssignerCodeNode(node: MarkdownNode): boolean;
19
+ export declare function getAssignerRuntime(meta: string | null | undefined): "client" | "server";
20
+ export declare function getRenderedAssignerLanguage(runtime: "client" | "server"): "javascript" | "python";
21
+ export declare function escapeHtml(value: string): string;
22
+ export declare function buildInlineStyle(declarations: Record<string, string>): string;
23
+ export declare function visitMarkdownParents(node: MarkdownNode, visitor: (parent: MarkdownParent) => void): void;
24
+ /**
25
+ * Remark plugin that inserts visible assigner preview nodes (collapsed or
26
+ * expanded) next to each assigner code block in the markdown AST.
27
+ */
28
+ export declare const remarkInsertVisibleAssigners: Plugin<[AimdRendererOptions?], MarkdownNode>;
29
+ /**
30
+ * Remark plugin that strips all assigner code blocks from the markdown AST.
31
+ */
32
+ export declare const remarkStripAssignerCodeBlocks: Plugin<[], MarkdownNode>;
33
+ //# sourceMappingURL=assignerVisibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignerVisibility.d.ts","sourceRoot":"","sources":["../../src/common/assignerVisibility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,O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MAAM,CAAC,EAAE,EAAE,YAAY,CAMlE,CAAA"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Event bus keys for AIMD system
3
+ */
4
+ import type { InjectionKey } from "vue";
5
+ export declare const fieldEventKey: InjectionKey<{
6
+ name: "field-event";
7
+ }>;
8
+ export declare const protocolKey: InjectionKey<{
9
+ name: "protocol-key";
10
+ }>;
11
+ export declare const draftEventKey: InjectionKey<{
12
+ name: "draft-event";
13
+ }>;
14
+ export declare const reportEventKey: InjectionKey<{
15
+ name: "report-event";
16
+ }>;
17
+ export declare const bubbleMenuEventKey: InjectionKey<{
18
+ name: "bubble-menu-event";
19
+ }>;
20
+ //# sourceMappingURL=eventKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventKeys.d.ts","sourceRoot":"","sources":["../../src/common/eventKeys.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAoC,CAAA;AACpG,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAiC,CAAA;AAChG,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAA6B,CAAA;AAC7F,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAqC,CAAA;AACvG,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAA0C,CAAA"}
@@ -0,0 +1,30 @@
1
+ import type { Element, Text as HastText, Root as HastRoot } from "hast";
2
+ import type { ExtractedAimdFields } from "@airalogy/aimd-core/types";
3
+ /**
4
+ * Build a map from figure id to its sequence number based on the
5
+ * extracted fields. The sequence is assigned in document order (1-based).
6
+ */
7
+ export declare function buildFigureSequenceMap(fields: ExtractedAimdFields): Map<string, number>;
8
+ /**
9
+ * Build the HAST children array for a figure AIMD node.
10
+ *
11
+ * Returns `[imgElement]` or `[imgElement, figcaptionElement]` depending on
12
+ * whether a title or legend is present.
13
+ */
14
+ export declare function buildFigureChildren(figNode: {
15
+ id: string;
16
+ src?: string;
17
+ title?: string;
18
+ legend?: string;
19
+ sequence?: number | string;
20
+ }): (Element | HastText)[];
21
+ /**
22
+ * Walk the HAST tree and stamp each `[data-aimd-type="fig"]` element with
23
+ * its 1-based sequence number as `data-aimd-fig-sequence`.
24
+ *
25
+ * This is a post-processing pass that runs after the initial HAST is built
26
+ * so that figure numbers are consistent with document order regardless of
27
+ * any reordering caused by rehype plugins.
28
+ */
29
+ export declare function assignFigureSequenceNumbers(tree: HastRoot, fields: ExtractedAimdFields): void;
30
+ //# sourceMappingURL=figureNumbering.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figureNumbering.d.ts","sourceRoot":"","sources":["../../src/common/figureNumbering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,MAAM,CAAA;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAMpE;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,mBAAmB,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAWvF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3B,GAAG,CAAC,OAAO,GAAG,QAAQ,CAAC,EAAE,CAkDzB;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,mBAAmB,GAC1B,IAAI,CA0BN"}
@@ -0,0 +1,96 @@
1
+ import type { Element, Properties, Root as HastRoot } from "hast";
2
+ import type { VNode } from "vue";
3
+ import type { AimdFieldType, AimdNode, ProcessorOptions, RenderContext } from "@airalogy/aimd-core/types";
4
+ import type { ExtractedAimdFields } from "@airalogy/aimd-core/types";
5
+ import type { AimdRendererI18nOptions } from "../locales";
6
+ import type { VueRendererOptions } from "../vue/vue-renderer";
7
+ /**
8
+ * Render result
9
+ */
10
+ export interface RenderResult {
11
+ nodes: VNode[];
12
+ fields: ExtractedAimdFields;
13
+ }
14
+ export type AimdAssignerVisibility = "hidden" | "collapsed" | "expanded";
15
+ export interface AimdHtmlRendererContext extends RenderContext {
16
+ locale: NonNullable<AimdRendererI18nOptions["locale"]> | string;
17
+ messages: ReturnType<typeof createAimdRendererMessages>;
18
+ }
19
+ export type AimdHtmlNodeRenderer = (node: AimdNode, defaultElement: Element, context: AimdHtmlRendererContext) => Element | null | undefined;
20
+ export interface AimdRendererOptions extends ProcessorOptions, AimdRendererI18nOptions {
21
+ assignerVisibility?: AimdAssignerVisibility;
22
+ aimdElementRenderers?: Partial<Record<AimdFieldType, AimdHtmlNodeRenderer>>;
23
+ groupStepBodies?: boolean;
24
+ groupCheckBodies?: boolean;
25
+ blockVarTypes?: string[];
26
+ }
27
+ export interface CustomElementAimdRendererOptions {
28
+ container?: boolean;
29
+ stripDefaultChildren?: boolean;
30
+ }
31
+ export declare function createCustomElementAimdRenderer(tagName: string, mapProperties?: (node: AimdNode, context: AimdHtmlRendererContext, defaultElement: Element) => Properties, options?: CustomElementAimdRendererOptions): AimdHtmlNodeRenderer;
32
+ import { createAimdRendererMessages } from "../locales";
33
+ /**
34
+ * Create HTML output processor
35
+ */
36
+ export declare function createHtmlProcessor(options?: AimdRendererOptions): import("unified").Processor<import("mdast").Root, import("mdast").Root, HastRoot, undefined, undefined>;
37
+ /**
38
+ * Render Markdown/AIMD to HTML string
39
+ */
40
+ export declare function renderToHtml(content: string, options?: AimdRendererOptions): Promise<{
41
+ html: string;
42
+ fields: ExtractedAimdFields;
43
+ }>;
44
+ /**
45
+ * Render Markdown/AIMD to Vue VNodes
46
+ */
47
+ export declare function renderToVue(content: string, options?: AimdRendererOptions & VueRendererOptions): Promise<RenderResult>;
48
+ /**
49
+ * Parse Markdown/AIMD and extract field information (no rendering)
50
+ */
51
+ export declare function parseAndExtract(content: string): ExtractedAimdFields;
52
+ /**
53
+ * Synchronous render to HTML (for simple scenarios)
54
+ */
55
+ export declare function renderToHtmlSync(content: string, options?: AimdRendererOptions): {
56
+ html: string;
57
+ fields: ExtractedAimdFields;
58
+ };
59
+ /**
60
+ * Create reusable renderer instance
61
+ */
62
+ export declare function createRenderer(options?: AimdRendererOptions): {
63
+ /**
64
+ * Render to HTML
65
+ */
66
+ toHtml(content: string): Promise<{
67
+ html: string;
68
+ fields: ExtractedAimdFields;
69
+ }>;
70
+ /**
71
+ * Render to Vue VNodes
72
+ */
73
+ toVue(content: string, renderOptions?: VueRendererOptions): Promise<RenderResult>;
74
+ /**
75
+ * Extract fields only
76
+ */
77
+ extractFields(content: string): ExtractedAimdFields;
78
+ };
79
+ export declare const defaultRenderer: {
80
+ /**
81
+ * Render to HTML
82
+ */
83
+ toHtml(content: string): Promise<{
84
+ html: string;
85
+ fields: ExtractedAimdFields;
86
+ }>;
87
+ /**
88
+ * Render to Vue VNodes
89
+ */
90
+ toVue(content: string, renderOptions?: VueRendererOptions): Promise<RenderResult>;
91
+ /**
92
+ * Extract fields only
93
+ */
94
+ extractFields(content: string): ExtractedAimdFields;
95
+ };
96
+ //# sourceMappingURL=processor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../src/common/processor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAA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AY,CAAC;IAIxB;;OAEG;2BACoB,MAAM,GAAG,mBAAmB;EAItD;AAGD,eAAO,MAAM,eAAe;IA3BxB;;OAEG;oBACmB,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,mBAAmB,CAAA;KAAE,CAAC;IAIrF;;OAEG;mBAEQ,MAAM,kBACC,kBAAkB,GACjC,OAAO,CAAC,YAAY,CAAC;IAIxB;;OAEG;2BACoB,MAAM,GAAG,mBAAmB;CAOR,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { QuizPreviewOptions } from "@airalogy/aimd-core/types";
2
+ export interface ResolvedQuizPreviewOptions {
3
+ showAnswers: boolean;
4
+ showRubric: boolean;
5
+ }
6
+ /**
7
+ * Resolve quiz preview visibility options from mode and user overrides.
8
+ * Default behavior: reveal answers/rubric in "report" mode, hide otherwise.
9
+ */
10
+ export declare function resolveQuizPreviewOptions(mode: string, quizPreview?: QuizPreviewOptions): ResolvedQuizPreviewOptions;
11
+ //# sourceMappingURL=quiz-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quiz-preview.d.ts","sourceRoot":"","sources":["../../src/common/quiz-preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,kBAAkB,GAC/B,0BAA0B,CAO5B"}
@@ -0,0 +1,124 @@
1
+ /**
2
+ * Unified-based token renderer
3
+ * Provides compatibility layer for migrating from markdown-it tokenRenderer
4
+ */
5
+ import type { Component } from "vue";
6
+ import type { QuizPreviewOptions } from "@airalogy/aimd-core/types";
7
+ import type { ExtractedAimdFields } from "@airalogy/aimd-core/types";
8
+ import type { AimdRendererI18nOptions } from "../locales";
9
+ import type { ShikiHighlighter, VueRendererOptions } from "../vue/vue-renderer";
10
+ import type { AimdRendererOptions, RenderResult } from "./processor";
11
+ /**
12
+ * Token props interface (compatible with IAIMDItemProps)
13
+ */
14
+ export interface TokenProps {
15
+ scope: string;
16
+ prop: string;
17
+ type?: string;
18
+ value?: unknown;
19
+ label?: string;
20
+ disabled?: boolean;
21
+ title?: string;
22
+ required?: boolean;
23
+ [key: string]: unknown;
24
+ }
25
+ /**
26
+ * Token-like object for getTokenProps compatibility
27
+ */
28
+ export interface TokenLike {
29
+ meta?: {
30
+ node?: {
31
+ id: string;
32
+ scope: string;
33
+ type?: string;
34
+ };
35
+ };
36
+ }
37
+ /**
38
+ * Asset response interface
39
+ */
40
+ export interface AssetResponse {
41
+ url: string;
42
+ [key: string]: unknown;
43
+ }
44
+ /**
45
+ * Render mode type
46
+ */
47
+ export type RenderMode = "preview" | "edit" | "timeline" | "report";
48
+ /**
49
+ * Unified token renderer options
50
+ * Compatible with TokenRendererBaseOptions from markdown-it version
51
+ */
52
+ export interface UnifiedTokenRendererOptions {
53
+ /**
54
+ * Get props for a field from external data source
55
+ */
56
+ getTokenProps?: (token: TokenLike) => Promise<TokenProps | null>;
57
+ /**
58
+ * Get static research assets (images, files)
59
+ */
60
+ getStaticResearchAssets?: (id: string) => Promise<AssetResponse | null>;
61
+ /**
62
+ * Render mode
63
+ */
64
+ mode: RenderMode | (() => RenderMode);
65
+ /**
66
+ * Shiki highlighter for code blocks
67
+ */
68
+ highlighter?: ShikiHighlighter | null | (() => ShikiHighlighter | null);
69
+ /**
70
+ * Custom Vue components
71
+ */
72
+ components?: {
73
+ AIMDItem?: Component;
74
+ AIMDTag?: Component;
75
+ AIMDStepRef?: Component;
76
+ StepRenderer?: Component;
77
+ CheckRenderer?: Component;
78
+ PreviewRenderer?: Component;
79
+ AssetRenderer?: Component;
80
+ EmbeddedRenderer?: Component;
81
+ MermaidBlock?: Component;
82
+ };
83
+ /**
84
+ * Quiz preview visibility policy
85
+ */
86
+ quizPreview?: QuizPreviewOptions;
87
+ /**
88
+ * Built-in renderer locale
89
+ */
90
+ locale?: AimdRendererI18nOptions["locale"];
91
+ /**
92
+ * Optional overrides for built-in renderer copy
93
+ */
94
+ messages?: AimdRendererI18nOptions["messages"];
95
+ /**
96
+ * Assigner block visibility policy in rendered output.
97
+ */
98
+ assignerVisibility?: AimdRendererOptions["assignerVisibility"];
99
+ }
100
+ /**
101
+ * Unified token renderer context
102
+ * Compatible interface for migration from markdown-it
103
+ */
104
+ export interface UnifiedRendererContext {
105
+ /**
106
+ * Render markdown/AIMD content to Vue VNodes
107
+ */
108
+ render: (content: string) => Promise<RenderResult>;
109
+ /**
110
+ * Extract fields from content
111
+ */
112
+ extractFields: (content: string) => ExtractedAimdFields;
113
+ /**
114
+ * Vue renderer options (for use with renderToVue)
115
+ */
116
+ vueOptions: VueRendererOptions;
117
+ }
118
+ /**
119
+ * Create unified-based token renderer
120
+ * Provides API compatible with createDefaultTokenRenderer from markdown-it version
121
+ */
122
+ export declare function createUnifiedTokenRenderer(options: UnifiedTokenRendererOptions): UnifiedRendererContext;
123
+ export type { ExtractedAimdFields, RenderResult, VueRendererOptions };
124
+ //# sourceMappingURL=unified-token-renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unified-token-renderer.d.ts","sourceRoot":"","sources":["../../src/common/unified-token-renderer.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,KAAK,EAAE,SAAS,EAAS,MAAM,KAAK,CAAA;AAQ3C,OAAO,KAAK,EAAY,kBAAkB,EAAiB,MAAM,2BAA2B,CAAA;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,uBAAuB,EAAwB,MAAM,YAAY,CAAA;AAC/E,OAAO,KAAK,EAA0C,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACvH,OAAO,K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MAAM,gBAAgB,GAAG,IAAI,CAAC,CAAA;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,SAAS,CAAA;QACpB,OAAO,CAAC,EAAE,SAAS,CAAA;QACnB,WAAW,CAAC,EAAE,SAAS,CAAA;QACvB,YAAY,CAAC,EAAE,SAAS,CAAA;QACxB,aAAa,CAAC,EAAE,SAAS,CAAA;QACzB,eAAe,CAAC,EAAE,SAAS,CAAA;QAC3B,aAAa,CAAC,EAAE,SAAS,CAAA;QACzB,gBAAgB,CAAC,EAAE,SAAS,CAAA;QAC5B,YAAY,CAAC,EAAE,SAAS,CAAA;KACzB,CAAA;IACD;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAA;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAA;IAC9C;;OAEG;IACH,kBAAkB,CAAC,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;CAC/D;AA8mBD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAA;IAClD;;OAEG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,mBAAmB,CAAA;IACvD;;OAEG;IACH,UAAU,EAAE,kBAAkB,CAAA;CAC/B;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,2BAA2B,GAAG,sBAAsB,CAyCvG;AAGD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * HTML rendering exports
3
+ */
4
+ export { createCustomElementAimdRenderer, createHtmlProcessor, renderToHtml, renderToHtmlSync, parseAndExtract, } from '../common/processor';
5
+ export { createAimdRendererMessages, DEFAULT_AIMD_RENDERER_LOCALE, resolveAimdRendererLocale, } from '../locales';
6
+ export type { ProcessorOptions } from '@airalogy/aimd-core/types';
7
+ export type { AimdAssignerVisibility, AimdHtmlNodeRenderer, AimdHtmlRendererContext, CustomElementAimdRendererOptions, AimdRendererOptions, RenderResult, } from '../common/processor';
8
+ export type { AimdRendererI18nOptions, AimdRendererLocale, AimdRendererMessages, AimdRendererMessagesInput, } from '../locales';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/html/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,+BAA+B,EAC/B,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAChB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,YAAY,EACV,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,mBAAmB,EACnB,YAAY,GACb,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,YAAY,CAAA"}
package/dist/html.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as a, c as s, a as t, b as d, p as m, r as o, d as c, e as n } from "./processor-Cv8E7QsA.js";
1
+ import { D as a, c as s, a as t, b as d, p as m, r as o, d as c, e as n } from "./processor-B2mByErv.js";
2
2
  export {
3
3
  a as DEFAULT_AIMD_RENDERER_LOCALE,
4
4
  s as createAimdRendererMessages,