@moondraft/import 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +34 -0
- package/README.md +36 -2
- package/SOURCE.md +169 -0
- package/dist/adapter/convert.d.ts +122 -0
- package/dist/adapter/convert.js +2302 -0
- package/dist/adapter/figma.d.ts +9 -0
- package/dist/adapter/figma.js +30 -0
- package/dist/adapter/file-components.d.ts +14 -0
- package/dist/adapter/file-components.js +262 -0
- package/dist/adapter/file-resources.d.ts +29 -0
- package/dist/adapter/file-resources.js +562 -0
- package/dist/adapter/index.d.ts +6 -0
- package/dist/adapter/index.js +9 -0
- package/dist/adapter/link.d.ts +45 -0
- package/dist/adapter/link.js +688 -0
- package/dist/adapter/payload.d.ts +31 -0
- package/dist/adapter/payload.js +78 -0
- package/dist/adapter/shapes.d.ts +31 -0
- package/dist/adapter/shapes.js +75 -0
- package/dist/adapter/variables.d.ts +44 -0
- package/dist/adapter/variables.js +103 -0
- package/dist/figma-file.d.ts +38 -0
- package/dist/figma-file.js +97 -0
- package/dist/figma-worker.d.ts +11 -0
- package/dist/figma-worker.js +12 -0
- package/dist/figma.d.ts +26 -0
- package/dist/figma.js +96 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +49 -0
- package/dist/report.d.ts +15 -0
- package/dist/report.js +69 -0
- package/dist/svg.d.ts +33 -0
- package/dist/svg.js +44 -0
- package/dist/syntax.d.ts +8 -0
- package/dist/syntax.js +19 -0
- package/dist/taco/figma-import/clipboard.d.ts +25 -0
- package/dist/taco/figma-import/clipboard.js +87 -0
- package/dist/taco/figma-import/clipboardSize.d.ts +31 -0
- package/dist/taco/figma-import/clipboardSize.js +107 -0
- package/dist/taco/figma-import/container/compression.d.ts +9 -0
- package/dist/taco/figma-import/container/compression.js +174 -0
- package/dist/taco/figma-import/container/error.d.ts +15 -0
- package/dist/taco/figma-import/container/error.js +19 -0
- package/dist/taco/figma-import/container/kiwiContainer.d.ts +38 -0
- package/dist/taco/figma-import/container/kiwiContainer.js +61 -0
- package/dist/taco/figma-import/container/limits.d.ts +22 -0
- package/dist/taco/figma-import/container/limits.js +22 -0
- package/dist/taco/figma-import/container/zip.d.ts +14 -0
- package/dist/taco/figma-import/container/zip.js +154 -0
- package/dist/taco/figma-import/figFile.d.ts +34 -0
- package/dist/taco/figma-import/figFile.js +91 -0
- package/dist/taco/figma-import/figFileDocument.d.ts +25 -0
- package/dist/taco/figma-import/figFileDocument.js +100 -0
- package/dist/taco/figma-import/import/blobs.d.ts +10 -0
- package/dist/taco/figma-import/import/blobs.js +23 -0
- package/dist/taco/figma-import/import/carry.d.ts +11 -0
- package/dist/taco/figma-import/import/carry.js +33 -0
- package/dist/taco/figma-import/import/componentProps.d.ts +84 -0
- package/dist/taco/figma-import/import/componentProps.js +313 -0
- package/dist/taco/figma-import/import/componentSets.d.ts +83 -0
- package/dist/taco/figma-import/import/componentSets.js +647 -0
- package/dist/taco/figma-import/import/converters/effects.d.ts +31 -0
- package/dist/taco/figma-import/import/converters/effects.js +127 -0
- package/dist/taco/figma-import/import/converters/ellipse.d.ts +7 -0
- package/dist/taco/figma-import/import/converters/ellipse.js +54 -0
- package/dist/taco/figma-import/import/converters/frame.d.ts +21 -0
- package/dist/taco/figma-import/import/converters/frame.js +55 -0
- package/dist/taco/figma-import/import/converters/gradient.d.ts +72 -0
- package/dist/taco/figma-import/import/converters/gradient.js +106 -0
- package/dist/taco/figma-import/import/converters/group.d.ts +21 -0
- package/dist/taco/figma-import/import/converters/group.js +39 -0
- package/dist/taco/figma-import/import/converters/image.d.ts +13 -0
- package/dist/taco/figma-import/import/converters/image.js +83 -0
- package/dist/taco/figma-import/import/converters/layout.d.ts +34 -0
- package/dist/taco/figma-import/import/converters/layout.js +168 -0
- package/dist/taco/figma-import/import/converters/line.d.ts +11 -0
- package/dist/taco/figma-import/import/converters/line.js +40 -0
- package/dist/taco/figma-import/import/converters/rectangle.d.ts +3 -0
- package/dist/taco/figma-import/import/converters/rectangle.js +11 -0
- package/dist/taco/figma-import/import/converters/section.d.ts +9 -0
- package/dist/taco/figma-import/import/converters/section.js +35 -0
- package/dist/taco/figma-import/import/converters/shared.d.ts +68 -0
- package/dist/taco/figma-import/import/converters/shared.js +362 -0
- package/dist/taco/figma-import/import/converters/text.d.ts +41 -0
- package/dist/taco/figma-import/import/converters/text.js +576 -0
- package/dist/taco/figma-import/import/converters/vector.d.ts +84 -0
- package/dist/taco/figma-import/import/converters/vector.js +468 -0
- package/dist/taco/figma-import/import/converters/vectorNetwork.d.ts +98 -0
- package/dist/taco/figma-import/import/converters/vectorNetwork.js +385 -0
- package/dist/taco/figma-import/import/fields.d.ts +15 -0
- package/dist/taco/figma-import/import/fields.js +29 -0
- package/dist/taco/figma-import/import/instances.d.ts +163 -0
- package/dist/taco/figma-import/import/instances.js +1323 -0
- package/dist/taco/figma-import/import/nestingCycles.d.ts +86 -0
- package/dist/taco/figma-import/import/nestingCycles.js +488 -0
- package/dist/taco/figma-import/import/slots.d.ts +56 -0
- package/dist/taco/figma-import/import/slots.js +96 -0
- package/dist/taco/figma-import/import/styles.d.ts +46 -0
- package/dist/taco/figma-import/import/styles.js +42 -0
- package/dist/taco/figma-import/import/tree.d.ts +66 -0
- package/dist/taco/figma-import/import/tree.js +194 -0
- package/dist/taco/figma-import/import/types.d.ts +232 -0
- package/dist/taco/figma-import/import/types.js +33 -0
- package/dist/taco/figma-import/import/variables.d.ts +136 -0
- package/dist/taco/figma-import/import/variables.js +762 -0
- package/dist/taco/figma-import/import/variantTrees.d.ts +20 -0
- package/dist/taco/figma-import/import/variantTrees.js +480 -0
- package/dist/taco/figma-import/import/walk.d.ts +159 -0
- package/dist/taco/figma-import/import/walk.js +1297 -0
- package/dist/taco/figma-import/index.d.ts +22 -0
- package/dist/taco/figma-import/index.js +13 -0
- package/dist/taco/figma-import/kiwi/byteReader.d.ts +37 -0
- package/dist/taco/figma-import/kiwi/byteReader.js +151 -0
- package/dist/taco/figma-import/kiwi/error.d.ts +14 -0
- package/dist/taco/figma-import/kiwi/error.js +29 -0
- package/dist/taco/figma-import/kiwi/limits.d.ts +18 -0
- package/dist/taco/figma-import/kiwi/limits.js +18 -0
- package/dist/taco/figma-import/kiwi/message.d.ts +10 -0
- package/dist/taco/figma-import/kiwi/message.js +145 -0
- package/dist/taco/figma-import/kiwi/schema.d.ts +42 -0
- package/dist/taco/figma-import/kiwi/schema.js +206 -0
- package/dist/taco/figma-import/kiwi/types.d.ts +46 -0
- package/dist/taco/figma-import/kiwi/types.js +18 -0
- package/dist/taco/model/agent-hidden-fields.d.ts +20 -0
- package/dist/taco/model/agent-hidden-fields.js +29 -0
- package/dist/taco/model/asset-users.d.ts +23 -0
- package/dist/taco/model/asset-users.js +128 -0
- package/dist/taco/model/auto-layout-lines.d.ts +32 -0
- package/dist/taco/model/auto-layout-lines.js +70 -0
- package/dist/taco/model/codec.d.ts +444 -0
- package/dist/taco/model/codec.js +5635 -0
- package/dist/taco/model/color.d.ts +11 -0
- package/dist/taco/model/color.js +61 -0
- package/dist/taco/model/comment-operations.d.ts +102 -0
- package/dist/taco/model/comment-operations.js +227 -0
- package/dist/taco/model/component-evaluation.d.ts +94 -0
- package/dist/taco/model/component-evaluation.js +548 -0
- package/dist/taco/model/component-expressions.d.ts +242 -0
- package/dist/taco/model/component-expressions.js +1082 -0
- package/dist/taco/model/component-properties.d.ts +111 -0
- package/dist/taco/model/component-properties.js +339 -0
- package/dist/taco/model/component-samples.d.ts +83 -0
- package/dist/taco/model/component-samples.js +290 -0
- package/dist/taco/model/component-validity.d.ts +85 -0
- package/dist/taco/model/component-validity.js +397 -0
- package/dist/taco/model/components.d.ts +155 -0
- package/dist/taco/model/components.js +505 -0
- package/dist/taco/model/connector-ends.d.ts +20 -0
- package/dist/taco/model/connector-ends.js +188 -0
- package/dist/taco/model/connector-geometry.d.ts +74 -0
- package/dist/taco/model/connector-geometry.js +293 -0
- package/dist/taco/model/corner-radii.d.ts +26 -0
- package/dist/taco/model/corner-radii.js +47 -0
- package/dist/taco/model/derivations.d.ts +81 -0
- package/dist/taco/model/derivations.js +151 -0
- package/dist/taco/model/export-settings.d.ts +53 -0
- package/dist/taco/model/export-settings.js +156 -0
- package/dist/taco/model/expressions/ast.d.ts +153 -0
- package/dist/taco/model/expressions/ast.js +6 -0
- package/dist/taco/model/expressions/cache.d.ts +23 -0
- package/dist/taco/model/expressions/cache.js +43 -0
- package/dist/taco/model/expressions/check.d.ts +72 -0
- package/dist/taco/model/expressions/check.js +517 -0
- package/dist/taco/model/expressions/completion.d.ts +61 -0
- package/dist/taco/model/expressions/completion.js +421 -0
- package/dist/taco/model/expressions/evaluate.d.ts +32 -0
- package/dist/taco/model/expressions/evaluate.js +519 -0
- package/dist/taco/model/expressions/forms.d.ts +84 -0
- package/dist/taco/model/expressions/forms.js +200 -0
- package/dist/taco/model/expressions/index.d.ts +14 -0
- package/dist/taco/model/expressions/index.js +17 -0
- package/dist/taco/model/expressions/lexer.d.ts +42 -0
- package/dist/taco/model/expressions/lexer.js +213 -0
- package/dist/taco/model/expressions/library.d.ts +33 -0
- package/dist/taco/model/expressions/library.js +117 -0
- package/dist/taco/model/expressions/names.d.ts +43 -0
- package/dist/taco/model/expressions/names.js +99 -0
- package/dist/taco/model/expressions/parser.d.ts +15 -0
- package/dist/taco/model/expressions/parser.js +438 -0
- package/dist/taco/model/expressions/rename.d.ts +34 -0
- package/dist/taco/model/expressions/rename.js +46 -0
- package/dist/taco/model/expressions/source.d.ts +15 -0
- package/dist/taco/model/expressions/source.js +161 -0
- package/dist/taco/model/expressions/types.d.ts +119 -0
- package/dist/taco/model/expressions/types.js +102 -0
- package/dist/taco/model/expressions/values.d.ts +97 -0
- package/dist/taco/model/expressions/values.js +160 -0
- package/dist/taco/model/geometry-limits.d.ts +16 -0
- package/dist/taco/model/geometry-limits.js +67 -0
- package/dist/taco/model/geometry.d.ts +47 -0
- package/dist/taco/model/geometry.js +193 -0
- package/dist/taco/model/group-bounds.d.ts +38 -0
- package/dist/taco/model/group-bounds.js +144 -0
- package/dist/taco/model/id-table.d.ts +37 -0
- package/dist/taco/model/id-table.js +80 -0
- package/dist/taco/model/index.d.ts +25 -0
- package/dist/taco/model/index.js +27 -0
- package/dist/taco/model/instance-resolver.d.ts +372 -0
- package/dist/taco/model/instance-resolver.js +1748 -0
- package/dist/taco/model/layer-syntax.d.ts +340 -0
- package/dist/taco/model/layer-syntax.js +3506 -0
- package/dist/taco/model/layout/constraints.d.ts +84 -0
- package/dist/taco/model/layout/constraints.js +445 -0
- package/dist/taco/model/layout/frame-layout.d.ts +46 -0
- package/dist/taco/model/layout/frame-layout.js +618 -0
- package/dist/taco/model/layout/node-sizing.d.ts +163 -0
- package/dist/taco/model/layout/node-sizing.js +486 -0
- package/dist/taco/model/legacy-connector-caps.d.ts +15 -0
- package/dist/taco/model/legacy-connector-caps.js +70 -0
- package/dist/taco/model/linear-call.d.ts +48 -0
- package/dist/taco/model/linear-call.js +58 -0
- package/dist/taco/model/new-nodes.d.ts +145 -0
- package/dist/taco/model/new-nodes.js +277 -0
- package/dist/taco/model/node-builder.d.ts +449 -0
- package/dist/taco/model/node-builder.js +2294 -0
- package/dist/taco/model/node-table-watch.d.ts +36 -0
- package/dist/taco/model/node-table-watch.js +63 -0
- package/dist/taco/model/node-transform.d.ts +39 -0
- package/dist/taco/model/node-transform.js +79 -0
- package/dist/taco/model/node-users-index.d.ts +10 -0
- package/dist/taco/model/node-users-index.js +82 -0
- package/dist/taco/model/operation-references.d.ts +80 -0
- package/dist/taco/model/operation-references.js +399 -0
- package/dist/taco/model/operations.d.ts +610 -0
- package/dist/taco/model/operations.js +2882 -0
- package/dist/taco/model/overlay-table.d.ts +71 -0
- package/dist/taco/model/overlay-table.js +171 -0
- package/dist/taco/model/override-remap.d.ts +69 -0
- package/dist/taco/model/override-remap.js +230 -0
- package/dist/taco/model/parent-table.d.ts +53 -0
- package/dist/taco/model/parent-table.js +193 -0
- package/dist/taco/model/problem-collector.d.ts +27 -0
- package/dist/taco/model/problem-collector.js +101 -0
- package/dist/taco/model/sha256.d.ts +10 -0
- package/dist/taco/model/sha256.js +74 -0
- package/dist/taco/model/shape-geometry.d.ts +96 -0
- package/dist/taco/model/shape-geometry.js +368 -0
- package/dist/taco/model/shared-node-table.d.ts +97 -0
- package/dist/taco/model/shared-node-table.js +546 -0
- package/dist/taco/model/slots.d.ts +113 -0
- package/dist/taco/model/slots.js +281 -0
- package/dist/taco/model/stroke-settings.d.ts +37 -0
- package/dist/taco/model/stroke-settings.js +90 -0
- package/dist/taco/model/svg-path-import.d.ts +89 -0
- package/dist/taco/model/svg-path-import.js +219 -0
- package/dist/taco/model/text-measurement.d.ts +142 -0
- package/dist/taco/model/text-measurement.js +846 -0
- package/dist/taco/model/text-reads.d.ts +66 -0
- package/dist/taco/model/text-reads.js +128 -0
- package/dist/taco/model/text-sizer.d.ts +358 -0
- package/dist/taco/model/text-sizer.js +996 -0
- package/dist/taco/model/theme-users.d.ts +59 -0
- package/dist/taco/model/theme-users.js +312 -0
- package/dist/taco/model/thumbnail.d.ts +15 -0
- package/dist/taco/model/thumbnail.js +34 -0
- package/dist/taco/model/types.d.ts +2347 -0
- package/dist/taco/model/types.js +366 -0
- package/dist/taco/model/unknown-property.d.ts +5 -0
- package/dist/taco/model/unknown-property.js +7 -0
- package/dist/taco/model/validated-documents.d.ts +22 -0
- package/dist/taco/model/validated-documents.js +22 -0
- package/dist/taco/model/variable-modes.d.ts +61 -0
- package/dist/taco/model/variable-modes.js +438 -0
- package/dist/taco/model/variable-references.d.ts +54 -0
- package/dist/taco/model/variable-references.js +183 -0
- package/dist/taco/model/variables.d.ts +24 -0
- package/dist/taco/model/variables.js +151 -0
- package/dist/taco/model/vector-network.d.ts +34 -0
- package/dist/taco/model/vector-network.js +411 -0
- package/dist/taco/svg-import/import-svg.d.ts +36 -0
- package/dist/taco/svg-import/import-svg.js +729 -0
- package/dist/taco/svg-import/index.d.ts +3 -0
- package/dist/taco/svg-import/index.js +3 -0
- package/dist/taco/svg-import/limits/limits.d.ts +79 -0
- package/dist/taco/svg-import/limits/limits.js +160 -0
- package/dist/taco/svg-import/paint/gradients.d.ts +64 -0
- package/dist/taco/svg-import/paint/gradients.js +429 -0
- package/dist/taco/svg-import/paint/paint.d.ts +32 -0
- package/dist/taco/svg-import/paint/paint.js +162 -0
- package/dist/taco/svg-import/paths/paths.d.ts +58 -0
- package/dist/taco/svg-import/paths/paths.js +205 -0
- package/dist/taco/svg-import/public-types.d.ts +279 -0
- package/dist/taco/svg-import/public-types.js +56 -0
- package/dist/taco/svg-import/report/report.d.ts +44 -0
- package/dist/taco/svg-import/report/report.js +79 -0
- package/dist/taco/svg-import/reuse/reuse.d.ts +99 -0
- package/dist/taco/svg-import/reuse/reuse.js +840 -0
- package/dist/taco/svg-import/shapes/shapes.d.ts +35 -0
- package/dist/taco/svg-import/shapes/shapes.js +386 -0
- package/dist/taco/svg-import/structure/effects.d.ts +26 -0
- package/dist/taco/svg-import/structure/effects.js +618 -0
- package/dist/taco/svg-import/structure/image.d.ts +24 -0
- package/dist/taco/svg-import/structure/image.js +495 -0
- package/dist/taco/svg-import/structure/walk.d.ts +85 -0
- package/dist/taco/svg-import/structure/walk.js +544 -0
- package/dist/taco/svg-import/style/color.d.ts +40 -0
- package/dist/taco/svg-import/style/color.js +275 -0
- package/dist/taco/svg-import/style/computed.d.ts +214 -0
- package/dist/taco/svg-import/style/computed.js +1534 -0
- package/dist/taco/svg-import/style/css.d.ts +127 -0
- package/dist/taco/svg-import/style/css.js +541 -0
- package/dist/taco/svg-import/style/media.d.ts +25 -0
- package/dist/taco/svg-import/style/media.js +307 -0
- package/dist/taco/svg-import/style/properties.d.ts +43 -0
- package/dist/taco/svg-import/style/properties.js +135 -0
- package/dist/taco/svg-import/style/selector-reach.d.ts +30 -0
- package/dist/taco/svg-import/style/selector-reach.js +169 -0
- package/dist/taco/svg-import/style/selector-validity.d.ts +14 -0
- package/dist/taco/svg-import/style/selector-validity.js +307 -0
- package/dist/taco/svg-import/text/text.d.ts +29 -0
- package/dist/taco/svg-import/text/text.js +545 -0
- package/dist/taco/svg-import/transform/matrix.d.ts +111 -0
- package/dist/taco/svg-import/transform/matrix.js +229 -0
- package/dist/taco/svg-import/tree/element-data.d.ts +52 -0
- package/dist/taco/svg-import/tree/element-data.js +155 -0
- package/dist/taco/svg-import/tree/elements.d.ts +36 -0
- package/dist/taco/svg-import/tree/elements.js +121 -0
- package/dist/taco/svg-import/units/length.d.ts +43 -0
- package/dist/taco/svg-import/units/length.js +125 -0
- package/dist/taco/svg-import/units/viewbox.d.ts +35 -0
- package/dist/taco/svg-import/units/viewbox.js +77 -0
- package/package.json +54 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
- Import SVG files and markup, and Figma clipboard content, as editable layers.
|
|
6
|
+
- Import saved Figma design files with public pages, components, variant sets, component properties, variables, modes, shared styles and images.
|
|
7
|
+
- Report conversion losses and requested font faces. Saved Figma design files support progress and cancellation.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@moondraft/editor licence
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Luyu Cheng. All rights reserved.
|
|
4
|
+
|
|
5
|
+
1. Grant. Subject to the terms below, you are granted a non-exclusive,
|
|
6
|
+
non-transferable, revocable licence to install the unmodified package from
|
|
7
|
+
the npm registry and to use it as a dependency of your own applications.
|
|
8
|
+
|
|
9
|
+
2. Restrictions. You may not:
|
|
10
|
+
(a) redistribute the package, or any of its files, on their own (shipping
|
|
11
|
+
them inside the build of your own application is permitted);
|
|
12
|
+
(b) modify, decompile, disassemble or reverse engineer the WebAssembly
|
|
13
|
+
module (scene_renderer.wasm) or its loader, except that bundlers,
|
|
14
|
+
minifiers and other build tools may copy, rename and transform the
|
|
15
|
+
package's files as part of building your own application;
|
|
16
|
+
(c) extract the package or any part of it to build a competing editor or
|
|
17
|
+
renderer;
|
|
18
|
+
(d) sublicense the package or any rights in it.
|
|
19
|
+
|
|
20
|
+
3. No warranty. THE PACKAGE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
21
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
22
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
23
|
+
|
|
24
|
+
4. Limitation of liability. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDER BE
|
|
25
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
26
|
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
27
|
+
PACKAGE OR THE USE OR OTHER DEALINGS IN THE PACKAGE.
|
|
28
|
+
|
|
29
|
+
5. Termination. This licence ends automatically if you breach any of its
|
|
30
|
+
terms. On termination you must stop using the package and delete all
|
|
31
|
+
copies of it.
|
|
32
|
+
|
|
33
|
+
6. Other licences. For any use not covered here, open an issue or contact the
|
|
34
|
+
author.
|
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @moondraft/import
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Editable SVG and Figma import for Moondraft. This package uses the public API of `@moondraft/editor` 0.3.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install @moondraft/editor@0.3 @moondraft/import@0.1
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Register the importers when you create your browser editor. Use your canvas container and your app's font provider. Pass a `.fig` file from a picker to append its pages.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { createEditor } from '@moondraft/editor'
|
|
13
|
+
import { figmaImporter, svgImporter } from '@moondraft/import'
|
|
14
|
+
|
|
15
|
+
const editor = createEditor({ container, fonts, importers: [svgImporter(), figmaImporter()] })
|
|
16
|
+
await editor.ready
|
|
17
|
+
|
|
18
|
+
const result = await editor.import(file, { as: 'pages' })
|
|
19
|
+
console.log(result?.report)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
SVG markup, SVG files and Figma clipboard HTML produce layer payloads. A saved Figma design file produces a document with its public pages, shared components and image assets. Use `editor.import(file, { as: 'document' })` to open it directly.
|
|
23
|
+
|
|
24
|
+
To convert a saved Figma design in Node, save this as `convert.mjs` and run `node convert.mjs` beside `design.fig`.
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
import { readFile, writeFile } from 'node:fs/promises'
|
|
28
|
+
import { openFigmaFile } from '@moondraft/import'
|
|
29
|
+
|
|
30
|
+
const { document, report } = await openFigmaFile(await readFile('design.fig'))
|
|
31
|
+
await writeFile('design.json', JSON.stringify(document))
|
|
32
|
+
console.log(report)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
In Node, `runImport` from `@moondraft/editor/core` can also select a registered importer. Supply `svgImporter({ parseSvg })` with an XML parser that returns the SVG root element. Host importers can use `payloadFromSyntax(text)` to create paste payloads from the agent build tool's layer syntax.
|
|
36
|
+
|
|
37
|
+
See [CHANGELOG.md](CHANGELOG.md) for releases, [SOURCE.md](SOURCE.md) for reader provenance and [LICENSE](LICENSE) for licensing.
|
package/SOURCE.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Where this package's code comes from
|
|
2
|
+
|
|
3
|
+
`src/taco/` and `test/taco/` are copies of the user's own taco importers. They are not edited here except for the
|
|
4
|
+
mechanical rewrites and the local patches listed below. Fix things in taco and sync, or add a patch and log it here.
|
|
5
|
+
|
|
6
|
+
## Source
|
|
7
|
+
|
|
8
|
+
- Repository: taco-slides (`/Volumes/Blobs/Foreman/taco-slides/main`), `packages/svg-import`, `packages/figma-import`
|
|
9
|
+
and `packages/model`. Their `package.json` `repository` fields point to `github.com/chengluyu/design-core`.
|
|
10
|
+
- Package version: **0.25.1** (all three). Model schema version 0.44.0.
|
|
11
|
+
- Source commit: **b67cd597088c2ebc67f9a1abfcb659e023203b75** (`main`), synced 2026-11-18.
|
|
12
|
+
- The source has no LICENSE file. It is the user's own code, copied with their consent (see `docs/import-plan.md`,
|
|
13
|
+
"Licensing and provenance"). The copied readers are distributed under the license in `LICENSE` with the owner’s consent.
|
|
14
|
+
|
|
15
|
+
## What is copied
|
|
16
|
+
|
|
17
|
+
| From (under `packages/`) | To (under `packages/import/`) |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| `svg-import/src` | `src/taco/svg-import` |
|
|
20
|
+
| `figma-import/src` | `src/taco/figma-import` |
|
|
21
|
+
| `svg-import/test` (with `samples/`) | `test/taco/svg-import` |
|
|
22
|
+
| `figma-import/test` | `test/taco/figma-import` |
|
|
23
|
+
| `model/src`: only the files reachable from what the importers and their tests use | `src/taco/model` |
|
|
24
|
+
| `model/THIRD_PARTY_NOTICES.md` | `src/taco/model/THIRD_PARTY_NOTICES.md` |
|
|
25
|
+
|
|
26
|
+
At this commit the model part is 71 of the model's 109 source files (40,583 lines). It includes every file reached by
|
|
27
|
+
any import, type-only ones too, because `tsc` needs them. The model's own `index.ts` and tests are not copied.
|
|
28
|
+
|
|
29
|
+
Not copied: `dist/`, `api-report.txt`, the READMEs, figma-import's `tools/` (browser measurement scripts) and the
|
|
30
|
+
taco `tsconfig.json` files.
|
|
31
|
+
|
|
32
|
+
## Sync
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
node packages/import/scripts/sync-taco.mjs [taco-packages-dir]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The script deletes `src/taco` and `test/taco`, copies the files again, makes the rewrites below and then applies
|
|
39
|
+
`patches/*.patch` in order with `git apply`. On an unchanged source the tree comes out the same as before. If a patch
|
|
40
|
+
no longer applies, the sync stops there: update the patch and this log.
|
|
41
|
+
|
|
42
|
+
### Mechanical rewrites (made by the script, not patches)
|
|
43
|
+
|
|
44
|
+
1. Relative specifiers `"./x.js"` and `"../x.js"` become `.ts`. Node runs the sources directly, and `tsc`
|
|
45
|
+
(`rewriteRelativeImportExtensions`) writes `.js` back.
|
|
46
|
+
2. `"@taco-design/model"` becomes a relative path to `src/taco/model/index.ts`. That file is generated: it
|
|
47
|
+
re-exports the 156 model symbols that the importers and their tests name, from the model files that define them.
|
|
48
|
+
Only named imports and re-exports are supported, and the script stops on anything else.
|
|
49
|
+
3. In the tests, `"../src/..."` points at `src/taco/<importer>/...`.
|
|
50
|
+
4. In svg-import's tests, sample paths written for `dist/test/*.js` (`fileURLToPath(import.meta.url)), "..", "..",
|
|
51
|
+
"test", "samples"`) point at the `samples/` folder copied next to the tests.
|
|
52
|
+
|
|
53
|
+
## Local patches
|
|
54
|
+
|
|
55
|
+
### `patches/0001-parameter-properties-as-fields.patch`
|
|
56
|
+
|
|
57
|
+
This repo compiles with `erasableSyntaxOnly`, and Node's type stripping refuses TypeScript parameter properties
|
|
58
|
+
(`ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX`, TS1294). Each one is rewritten by hand as a declared field and an assignment in
|
|
59
|
+
the constructor. The behaviour is the same: the same fields, assigned before the rest of the constructor body (in
|
|
60
|
+
`extends Error` classes, just after `super`). Optional parameters become fields typed `T | undefined` that are
|
|
61
|
+
always assigned, as a parameter property would be. The 36 parameters, in 19 classes:
|
|
62
|
+
|
|
63
|
+
| File | Class | Fields |
|
|
64
|
+
| --- | --- | --- |
|
|
65
|
+
| `src/taco/figma-import/container/compression.ts` | `OutputCollector` | `format`, `offset`, `maxBytes` |
|
|
66
|
+
| `src/taco/figma-import/import/converters/vector.ts` | `GeometryRefused` | `problem` |
|
|
67
|
+
| `src/taco/figma-import/import/converters/vectorNetwork.ts` | `NetworkRefused` | `problem` |
|
|
68
|
+
| `src/taco/model/codec.ts` | `ModelError` | `code`, `path` |
|
|
69
|
+
| `src/taco/model/component-expressions.ts` | `NodeEdits` | `document` |
|
|
70
|
+
| `src/taco/model/component-validity.ts` | `CombinationSearch` | `component` |
|
|
71
|
+
| `src/taco/model/expressions/check.ts` | `Checker` | `environment` |
|
|
72
|
+
| `src/taco/model/expressions/evaluate.ts` | `Evaluator` | `environment` |
|
|
73
|
+
| `src/taco/model/expressions/parser.ts` | `Parser` | `tokens` |
|
|
74
|
+
| `src/taco/model/layer-syntax.ts` | `LayerSyntaxError` | `missingLayerId` |
|
|
75
|
+
| `src/taco/model/new-nodes.ts` | `InstanceBuildError` | `kind`, `componentId`, `propertyId` |
|
|
76
|
+
| `src/taco/model/node-builder.ts` | `NodeBuildError` | `kind`, `line`, `column`, `call`, `accepted` |
|
|
77
|
+
| `src/taco/model/node-builder.ts` | `ShortArgumentError`, `ComponentCallError` | `argument`; `at` |
|
|
78
|
+
| `src/taco/model/operations.ts` | `BatchParents` | `nodes`, `readBase` |
|
|
79
|
+
| `src/taco/model/operations.ts` | `PageNotRemovableError` | `pages` |
|
|
80
|
+
| `src/taco/model/parent-table.ts` | `DerivedParents` | `base`, `differences`, `depth` |
|
|
81
|
+
| `test/taco/svg-import/xml.ts` | `XmlElementNode` | `qname`, `localName`, `namespaceURI`, `nsScope`, `attributes`, `startPos` |
|
|
82
|
+
| `test/taco/svg-import/xml.ts` | `Scanner` | `source` |
|
|
83
|
+
|
|
84
|
+
The plan counted 37 sites over the whole model: 32 in the model and 5 in figma-import. 24 of the model's are in the
|
|
85
|
+
copied files, so 29 in the sources. The test helper `xml.ts` adds 7 that the plan's count missed: they only fail
|
|
86
|
+
when Node strips the tests, which taco compiles instead.
|
|
87
|
+
|
|
88
|
+
### `patches/0002-figma-carries.patch`
|
|
89
|
+
|
|
90
|
+
What Figma has, Moondraft draws and taco's model has no field for. figma-import now carries it in the layer's
|
|
91
|
+
`metadata.figma` (any JSON, which the model keeps), and the adapter (`src/adapter/convert.ts`) reads it. The new file
|
|
92
|
+
`src/taco/figma-import/import/carry.ts` holds the helpers and describes each key. Taco's own output is unchanged
|
|
93
|
+
apart from this metadata.
|
|
94
|
+
|
|
95
|
+
| What | Where | Carried as | Report change |
|
|
96
|
+
| --- | --- | --- | --- |
|
|
97
|
+
| A drop shadow with `showShadowBehindNode` | `converters/effects.ts` marks the shadow; `walk.ts` writes the marks after each converter | `shadowBehind: [index in style.shadows]` (the adapter knocks out the other drop shadows, as Figma does) | "Figma hides the shadow behind the node's see-through fill; Taco shows it" is gone: Moondraft hides it |
|
|
98
|
+
| An image fill with `imageScaleMode` TILE | `converters/image.ts` marks the paint; `converters/shared.ts` moves the mark to the placed copy | `tiles: [[index in style.fills, scale]]` (the paint stays cover) | "tiling at scale N has no Taco equivalent" is gone |
|
|
99
|
+
| An outline mask (`maskType` OUTLINE or `maskIsOutline`) | `converters/shared.ts` (`layerBase`) | `maskType: "vector"` | "the outline mask is imported as an alpha mask" is gone; a luminance mask is still reported |
|
|
100
|
+
| STAR and REGULAR_POLYGON | `walk.ts` converter table; `convertStarOrPolygon` in `converters/vector.ts` converts it as a VECTOR (its `fillGeometry` or `vectorData`) | `shape: { type: "star", count, ratio, width, height }` or `{ type: "polygon", count, width, height }` (`ratio` is `starInnerScale`, default 0.382; the box is the node's `size`) | They were left out ("not imported yet") |
|
|
101
|
+
|
|
102
|
+
`hasOpaqueFill` in `effects.ts` is removed with the report that used it. In `variantTrees.ts`, `metadata` does not
|
|
103
|
+
split a layer when variants are merged into one component (the merged layer keeps the first variant's): on the
|
|
104
|
+
HeroUI kit file, differing carries split 4 layers before this.
|
|
105
|
+
|
|
106
|
+
Changed expectations in the copied tests, each marked "Moondraft patch 0002":
|
|
107
|
+
|
|
108
|
+
- `convert-effects.test.ts`: a drop shadow behind no fill or a see-through fill reports nothing; a new test checks
|
|
109
|
+
`shadowBehind`.
|
|
110
|
+
- `convert-image-fill.test.ts`: the TILE row reports nothing; a new test checks `tiles`.
|
|
111
|
+
- `convert-group.test.ts`: the two outline mask rows report nothing and check `maskType`.
|
|
112
|
+
- `convert-vector.test.ts`: new tests for STAR and REGULAR_POLYGON.
|
|
113
|
+
- `variant-trees.test.ts`: a new test for metadata in a variant merge.
|
|
114
|
+
- `convert-auto-layout.test.ts`, `convert-frame-rect.test.ts`, `convert-group.test.ts`, `tree.test.ts`: the node type
|
|
115
|
+
with no converter is now STICKY (a FigJam type) instead of STAR.
|
|
116
|
+
|
|
117
|
+
### `patches/0003-importer-placements.patch`
|
|
118
|
+
|
|
119
|
+
The sync script applies these five local changes after the earlier patches.
|
|
120
|
+
|
|
121
|
+
| File | Reason |
|
|
122
|
+
| --- | --- |
|
|
123
|
+
| `src/taco/figma-import/import/types.ts` | Expose the reader's root selection mode and component placements to the adapter. |
|
|
124
|
+
| `src/taco/figma-import/import/walk.ts` | Return that mode and associate on-page component placements with their definitions. |
|
|
125
|
+
| `src/taco/svg-import/shapes/shapes.ts` | Export the rectangular frame placement helper for nested viewports. |
|
|
126
|
+
| `src/taco/svg-import/structure/walk.ts` | Build nested SVGs as clipping viewports and carry the remaining skew or reflection to the adapter for child geometry. |
|
|
127
|
+
| `test/taco/svg-import/rules-report.test.ts` | Remove the expectation that nested SVG is unsupported. |
|
|
128
|
+
|
|
129
|
+
### `patches/0004-affine-svg-raster-images.patch`
|
|
130
|
+
|
|
131
|
+
The SVG reader uses an image-filled rectangular path when an invertible transform skews a raster image or
|
|
132
|
+
would change its aspect-ratio fit. The path and its paint share the image's original rectangle and transform.
|
|
133
|
+
|
|
134
|
+
### `patches/0005-linear-gradient-endpoints.patch`
|
|
135
|
+
|
|
136
|
+
The SVG and Figma linear-gradient converters retain the original stops and unit-box endpoints for on-canvas editing. Under a shear, the axis follows the transformed gradient normal in local pixels. Layer gradients require both endpoints. For flat SVG geometry the importer preserves the gradient slope and offset along the surviving axis. A flat shape perpendicular to the gradient takes the colour sampled at its position. Layer syntax resolves an authored CSS angle when the owning layer supplies its paint box. The gradient expectations in the copied tests use the endpoint representation.
|
|
137
|
+
|
|
138
|
+
### `patches/0005-portable-font-style.patch`
|
|
139
|
+
|
|
140
|
+
Carry the original Figma face style name through the intermediate text style and its codec into editor text palettes.
|
|
141
|
+
|
|
142
|
+
### `patches/0006-native-figma-file.patch`
|
|
143
|
+
|
|
144
|
+
The saved-file adapter reads each original variant tree, property declaration, variable alias and style definition before conversion to literals. The reader carries the source paint and effect indexes, font-size bindings and authored override paths needed to associate those definitions with their native layer fields. The reader checks reachable variable values for copied paint alpha and valid text metrics. An explicit instance paint also replaces its inherited style reference. Unpublished resources reuse the model’s synchronous SHA-256 implementation, extended to accept file bytes. Clipboard imports continue to use the literal reader.
|
|
145
|
+
|
|
146
|
+
## Code and data from elsewhere
|
|
147
|
+
|
|
148
|
+
- **VS Code themes (MIT).** taco's model adapts the Code - OSS `2026-dark` / `2026-light` colour themes in `code.ts`.
|
|
149
|
+
`code.ts` is not in the copied part of the model at this commit, but its notice is copied anyway
|
|
150
|
+
(`src/taco/model/THIRD_PARTY_NOTICES.md`), so that a later sync which reaches it is already covered.
|
|
151
|
+
- **Kiwi reader (MIT).** `src/taco/figma-import/kiwi/byteReader.ts` mirrors the `ByteBuffer` in evanw/kiwi's
|
|
152
|
+
`js/bb.ts` (https://github.com/evanw/kiwi, MIT, Evan Wallace), as its header says. The investigation found no
|
|
153
|
+
copied code, only the same structure. It is attributed here.
|
|
154
|
+
- **grida.** Comments in figma-import cite grida's `grida-canvas-io-figma` by file and line, as references for how it
|
|
155
|
+
reads Kiwi. No grida code is copied. Check grida's licence before copying any.
|
|
156
|
+
- **Test fixtures** (`test/taco/svg-import/samples/`):
|
|
157
|
+
- `golden/material-home.svg`: the Material Icons "home" icon, Google, **Apache-2.0**;
|
|
158
|
+
- `golden/lucide-arrow-right.svg`: the Lucide "arrow-right" icon, **ISC** (Lucide Contributors);
|
|
159
|
+
- `golden/inkscape-drawing.svg`, `golden/figma-illustration.svg`, the numbered samples and
|
|
160
|
+
`dark-mode-styles.svg`: the author's own;
|
|
161
|
+
- figma-import's fixtures are synthetic Kiwi messages built in code (`figmaMessages.ts`, `kiwiEncoder.ts`).
|
|
162
|
+
Real Figma clipboard captures and the HeroUI kit stay outside the repo.
|
|
163
|
+
|
|
164
|
+
## Running
|
|
165
|
+
|
|
166
|
+
- `tsc -b packages/import` type-checks the copied sources (also part of `npm run typecheck`). The tests are not
|
|
167
|
+
type-checked: they need Node's types, which this repo does not install.
|
|
168
|
+
- `npm run test:import` runs the copied tests (svg-import 1,418 and figma-import 755, about 25 s). It is not part of
|
|
169
|
+
`npm test`.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { DocumentJSON, TextStyle } from '@moondraft/editor/schema';
|
|
2
|
+
import { type LinkCounts } from './link.ts';
|
|
3
|
+
/** A taco document as JSON (schemaVersion 0.44.0): pages, nodes, components, theme and assets, read loosely. */
|
|
4
|
+
export interface TacoDocument {
|
|
5
|
+
/** Page IDs in display order. */
|
|
6
|
+
pageOrder: string[];
|
|
7
|
+
/** Page metadata by page ID. */
|
|
8
|
+
pages: Record<string, {
|
|
9
|
+
/** Display name of the page. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** ID of the node containing this page's layers. */
|
|
12
|
+
rootId: string;
|
|
13
|
+
}>;
|
|
14
|
+
/** Source layer records by ID. */
|
|
15
|
+
nodes: Record<string, any>;
|
|
16
|
+
/** Source component definitions by ID. */
|
|
17
|
+
components: Record<string, any>;
|
|
18
|
+
/** Placement layer IDs by component ID. */
|
|
19
|
+
componentPlacements?: Readonly<Record<string, string>>;
|
|
20
|
+
/** Source image assets by ID. */
|
|
21
|
+
assets?: Record<string, any>;
|
|
22
|
+
/** Theme metadata used to resolve variables and modes. */
|
|
23
|
+
theme?: any;
|
|
24
|
+
/** Additional source document fields. */
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
/** Settings for converting Taco records to Moondraft records. */
|
|
28
|
+
export interface ConvertOptions {
|
|
29
|
+
/** Link expanded instances to their mains (link.ts). Default true. */
|
|
30
|
+
link?: boolean;
|
|
31
|
+
/** Without linking: keep the markers link.ts reads (instanceOf, mainOf, setOf, variant), for a later link pass
|
|
32
|
+
* (tools/host_doc/regenerate.mjs supplements and settles such a page first). Default false. */
|
|
33
|
+
markers?: boolean;
|
|
34
|
+
/** The HeroUI kit's export fixes: tall Input instances top-aligned, and buttons squared in an attached group (see
|
|
35
|
+
* topAlignTallInput and squareJoined). The kit's Figma export drops the overrides these restore. Default false. */
|
|
36
|
+
kitFixes?: boolean;
|
|
37
|
+
/** The document's `source` header (the source file's name). */
|
|
38
|
+
source?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Resolves the URL for an imported image. Defaults to `assets/<id>.<ext>`.
|
|
41
|
+
* @param id - Imported asset ID.
|
|
42
|
+
* @param asset - Image type, size and base64 data.
|
|
43
|
+
* @returns Image URL to store in the document.
|
|
44
|
+
*/
|
|
45
|
+
assetSrc?: (id: string, asset: {
|
|
46
|
+
mimeType: string;
|
|
47
|
+
width?: number;
|
|
48
|
+
height?: number;
|
|
49
|
+
source: {
|
|
50
|
+
data: string;
|
|
51
|
+
};
|
|
52
|
+
}) => string;
|
|
53
|
+
}
|
|
54
|
+
/** An image asset the document uses: its `src` in the document, and its bytes (base64) and type. */
|
|
55
|
+
export interface AssetFile {
|
|
56
|
+
/** Asset ID referenced by the converted layers. */
|
|
57
|
+
id: string;
|
|
58
|
+
/** Image URL written to the document. */
|
|
59
|
+
src: string;
|
|
60
|
+
/** MIME type of the image bytes. */
|
|
61
|
+
mimeType: string;
|
|
62
|
+
/** Image bytes encoded as base64. */
|
|
63
|
+
data: string;
|
|
64
|
+
}
|
|
65
|
+
/** Conversion diagnostics and image files used by the result. */
|
|
66
|
+
export interface ConvertReport {
|
|
67
|
+
/** What was dropped or not evaluated, by kind. */
|
|
68
|
+
dropped: Map<string, number>;
|
|
69
|
+
/** Why the expressions and conditions counted in dropped (`expression not applied: <field>`, `override condition
|
|
70
|
+
* not evaluated`) were not applied: taco's message or the converter's reason, by message. */
|
|
71
|
+
expressionErrors: Map<string, number>;
|
|
72
|
+
/** What was converted with a rule worth counting, by kind. */
|
|
73
|
+
notes: Map<string, number>;
|
|
74
|
+
/** Notes that describe a change from the source, by kind. */
|
|
75
|
+
approximations: Map<string, number>;
|
|
76
|
+
/** Text runs by font weight. */
|
|
77
|
+
weights: Map<number, number>;
|
|
78
|
+
/** The deepest instance nesting met. */
|
|
79
|
+
depth: number;
|
|
80
|
+
/** Link counts (null when not linked). */
|
|
81
|
+
links: LinkCounts | null;
|
|
82
|
+
/** Affected layer IDs indexed by report kind and description. */
|
|
83
|
+
layerIds: Map<string, string[]>;
|
|
84
|
+
/** The image assets the document uses. */
|
|
85
|
+
assets: AssetFile[];
|
|
86
|
+
}
|
|
87
|
+
/** Converts a reader colour to the RGBA precision used by imported paints.
|
|
88
|
+
* @param hex - Source hex colour or expression colour.
|
|
89
|
+
* @returns Normalized channels, or null for a non-colour value.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
export declare function rgba(hex: any): [number, number, number, number] | null;
|
|
93
|
+
/** Converts reader typography to a native palette entry.
|
|
94
|
+
* @param s - Resolved source run style.
|
|
95
|
+
* @returns Native face, metrics, decoration and colour.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
export declare function runStyle(s: any): TextStyle;
|
|
99
|
+
/**
|
|
100
|
+
* Converts one page of a Taco document to Moondraft records.
|
|
101
|
+
* @param doc - Source document.
|
|
102
|
+
* @param pageRef - Page name or zero-based index.
|
|
103
|
+
* @param options - Conversion settings.
|
|
104
|
+
* @returns Converted document and report.
|
|
105
|
+
*/
|
|
106
|
+
export declare function toDocument(doc: TacoDocument, pageRef: string | number, options?: ConvertOptions): {
|
|
107
|
+
/** Moondraft document containing the converted page. */
|
|
108
|
+
doc: DocumentJSON;
|
|
109
|
+
/** Conversion diagnostics and the page's image assets. */
|
|
110
|
+
report: ConvertReport;
|
|
111
|
+
};
|
|
112
|
+
/** Converts all file pages and keeps the appearance of each linked occurrence.
|
|
113
|
+
* @param doc - Source document.
|
|
114
|
+
* @param options - Asset and conversion settings.
|
|
115
|
+
* @returns Linked document, conversion report and the pre-link instance literals.
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
export declare function allPages(doc: TacoDocument, options: ConvertOptions): {
|
|
119
|
+
expanded: Map<string, any>;
|
|
120
|
+
doc: DocumentJSON;
|
|
121
|
+
report: ConvertReport;
|
|
122
|
+
};
|