allyhub 0.19.0 → 0.20.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/dist/commands/align.js +1 -1
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +1 -1
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +3 -0
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +9 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/combos.js +1 -1
- package/dist/commands/inspect/common.js +2 -2
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/migrate.js +3 -0
- package/dist/commands/skills.js +3 -3
- package/dist/commands/upgrade.js +5 -0
- package/dist/commands.json +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
- package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
- package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
- package/dist/node_modules/@allyhub/blocks/package.json +19 -0
- package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +5 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
- package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
- package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
- package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
- package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
- package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
- package/dist/node_modules/@allyhub/doc/package.json +5 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
- package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
- package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +12 -3
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
- package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
- package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
- package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
- package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +8 -2
- package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/html.js +10 -10
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
- package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +2 -25
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +3 -3
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -3
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +14 -14
- package/dist/self-upgrade.js +2 -0
- package/dist/text/batch-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/update-notice.js +3 -0
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-DYaMS_BB.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-g_Tjfl_y.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-CqdhofOL.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
- package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
- package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
- package/editor-web/assets/article-DHf6mOY_.js +7 -0
- package/editor-web/assets/article-Dns1-Xh-.js +3 -0
- package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
- package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-Bc-28Bci.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
- package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CTGJb8FB.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
- package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
- package/editor-web/assets/channel-CVWSV3su.js +1 -0
- package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
- package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-B2MPOVTU.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BUV1ZHP0.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BZlpspL5.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-CpKeisWE.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BJqwAPyo.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-D6oPWl_W.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-B5pk4MZF.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-DHbSPvxQ.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-CcL_GcRA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-YgiOL6XE.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-p14b4UYc.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-BWW0x-XH.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-oG3qd68C.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CpcheH0u.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-cWQvLl1w.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-7PG7YcdU.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
- package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
- package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
- package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
- package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-CtcknEQ_.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-Ca7VIsjN.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BzcSLtsr.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
- package/editor-web/assets/deck-DQpNIS2p.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-DpRmTGlG.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-BTrs_AX8.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-CkIVjPqH.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BlFMbAG1.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-D3f8VJ-D.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-Bbpngj6F.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
- package/editor-web/assets/dist--z0ZHp4T.js +16 -0
- package/editor-web/assets/dist-9kuRjUTN.js +41 -0
- package/editor-web/assets/dist-B3rd02Cg.js +6 -0
- package/editor-web/assets/dist-B5GOGGEe.js +1 -0
- package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
- package/editor-web/assets/dist-C4hHtrJr.js +1 -0
- package/editor-web/assets/dist-CCXJewsi.js +19 -0
- package/editor-web/assets/dist-CfK2BLl8.js +4 -0
- package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
- package/editor-web/assets/dist-Cspf85KV.js +6 -0
- package/editor-web/assets/dist-DA72-4WB.js +82 -0
- package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
- package/editor-web/assets/dist-DIJnhQFK.js +9 -0
- package/editor-web/assets/dist-DOrGo1GD.js +19 -0
- package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
- package/editor-web/assets/dist-DjiCHlSu.js +35 -0
- package/editor-web/assets/dist-Do4a40Wn.js +19 -0
- package/editor-web/assets/dist-FKEWS3Co.js +547 -0
- package/editor-web/assets/dist-QKd2i6kG.js +5 -0
- package/editor-web/assets/dist-SGnOfLhx.js +24 -0
- package/editor-web/assets/dist-VmVB7tl4.js +3 -0
- package/editor-web/assets/{docx-draw-CoK1oqQD.js → docx-draw-L54blreB.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BaKj-yL6.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-Cn2qv1_U.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-Bd7AEIDo.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
- package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-Sfp7_461.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
- package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CBqcGdHI.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-WTokXKTW.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BIWZHD9q.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
- package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
- package/editor-web/assets/hint-CbwoSBMw.js +1 -0
- package/editor-web/assets/index-CXisi0Cj.css +2 -0
- package/editor-web/assets/index-wMlfx8aT.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-COC6G-_J.js → info-OHQRW6UA-CdPrqere.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-DpaqdKBD.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
- package/editor-web/assets/iso-UwGLGD3F.js +1 -0
- package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-DeSVfmm7.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-Bfg0lj7B.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
- package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-CyhovuYE.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
- package/editor-web/assets/{mermaid.core-Dx1fBVUG.js → mermaid.core-BOln9YdH.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-QEU2HF_m.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
- package/editor-web/assets/minus-ngE8owxs.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-ReJTa_hw.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-Bo1jFrvb.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BrtYafNA.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-Cj0zQqs_.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
- package/editor-web/assets/progress-DZQTiRLv.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-D5npDAVn.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-C8RDrRqi.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-ebDrmYTK.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BxKuqg6V.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DOclnfpr.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-DN0A1fpq.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-B3PjoVWw.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
- package/editor-web/assets/react-Byupo4pA.js +1 -0
- package/editor-web/assets/replace-CLLMtF4e.js +1 -0
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-DLdzkQk5.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
- package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
- package/editor-web/assets/row-Bei9HNEe.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-Dip4Piv_.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
- package/editor-web/assets/schemas-C21MyseF.js +1 -0
- package/editor-web/assets/{iso-DoC-ZoBr.js → schemas-DlRAoVtq.js} +1 -1
- package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
- package/editor-web/assets/search-D75Bi2GU.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-QnPcoybL.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
- package/editor-web/assets/{session-DMlLCFWg.js → session-BhClkDyr.js} +1 -1
- package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
- package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
- package/editor-web/assets/sound-DkR3qxSt.js +1 -0
- package/editor-web/assets/split-DBAbwPZ5.js +3 -0
- package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-D103CiMX.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
- package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
- package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
- package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-y4gCqEoa.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
- package/editor-web/assets/switch-DrZxoPQS.js +1 -0
- package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
- package/editor-web/assets/table-BW43XXVd.js +1 -0
- package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
- package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
- package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BMp76v4V.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-Q_GYyk0b.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-B5lRWdQB.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
- package/editor-web/assets/type-CvZ0HZsV.js +41 -0
- package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX--QRllA-U.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CzkATPA3.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
- package/editor-web/assets/video-SJvDRCJK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-BXzwcdJa.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BQvC8Agx.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
- package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
- package/editor-web/assets/{words-CaUHhQHf.js → words-BUlNNuH2.js} +3 -3
- package/editor-web/assets/words-zMedmPWc.js +3 -0
- package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-aY-lsD5o.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
- package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
- package/editor-web/index.html +9 -8
- package/package.json +3 -3
- package/CHANGELOG.md +0 -251
- package/dist/commands/render.js +0 -3
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
- package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
- package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
- package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
- package/editor-web/assets/article-8evPh712.js +0 -3
- package/editor-web/assets/article-BhRtWYMd.js +0 -7
- package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
- package/editor-web/assets/calc-worker-oEIqrrTM.js +0 -45
- package/editor-web/assets/channel-wIj_OqDm.js +0 -1
- package/editor-web/assets/chart-amT4lgX3.js +0 -2
- package/editor-web/assets/chart-file-dGiRgFcH.js +0 -1
- package/editor-web/assets/code-CD-CbJG9.js +0 -1
- package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
- package/editor-web/assets/deck-C7fN0Qtn.js +0 -1
- package/editor-web/assets/dist-3iovns9K.js +0 -16
- package/editor-web/assets/dist-BkHnbOEj.js +0 -4
- package/editor-web/assets/dist-BvOrNcK-.js +0 -19
- package/editor-web/assets/dist-CEIszq39.js +0 -1
- package/editor-web/assets/dist-CU5RbLNH.js +0 -1
- package/editor-web/assets/dist-CWZj8IAm.js +0 -1
- package/editor-web/assets/dist-C_Mtrnif.js +0 -17
- package/editor-web/assets/dist-CdqpwdCV.js +0 -24
- package/editor-web/assets/dist-CjT76RAw.js +0 -43
- package/editor-web/assets/dist-CpzEn9T8.js +0 -6
- package/editor-web/assets/dist-CrFYWl5-.js +0 -3
- package/editor-web/assets/dist-D3C6FyrO.js +0 -82
- package/editor-web/assets/dist-D4eBFGVL.js +0 -1
- package/editor-web/assets/dist-DTcjb3cP.js +0 -18
- package/editor-web/assets/dist-D_WSM29I.js +0 -17
- package/editor-web/assets/dist-Dp_9ISjP.js +0 -531
- package/editor-web/assets/dist-J-tPYKGS.js +0 -5
- package/editor-web/assets/dist-YW8hS4IM.js +0 -9
- package/editor-web/assets/esm-Cjv8ogpP.js +0 -21
- package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +0 -1
- package/editor-web/assets/hint-rlht0uxG.js +0 -1
- package/editor-web/assets/index-BQWZnyAQ.js +0 -28
- package/editor-web/assets/index-Dvh1t1om.css +0 -2
- package/editor-web/assets/minus-CbPnUIOy.js +0 -1
- package/editor-web/assets/progress-CwKcXARv.js +0 -6
- package/editor-web/assets/props-form-BpSXbrSF.js +0 -1
- package/editor-web/assets/react-Edyoga_4.js +0 -1
- package/editor-web/assets/row-C_svyL8o.js +0 -1
- package/editor-web/assets/schemas-CQ_UU8-Z.js +0 -1
- package/editor-web/assets/search-Ba2BbT6T.js +0 -1
- package/editor-web/assets/slides-7xWhREpt.js +0 -1
- package/editor-web/assets/snapshots-BLX4NTQC.js +0 -1
- package/editor-web/assets/sound-bTlco_K3.js +0 -1
- package/editor-web/assets/split-tFGKk-x8.js +0 -3
- package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
- package/editor-web/assets/surface-DtCjIlrq.js +0 -1
- package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
- package/editor-web/assets/swatch-DhztHwPU.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +0 -8
- package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
- package/editor-web/assets/table-DRbddzx0.js +0 -1
- package/editor-web/assets/tabs-CuEawka3.js +0 -1
- package/editor-web/assets/tag-CIfWT8B_.js +0 -1
- package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
- package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
- package/editor-web/assets/video-D0uTbHWx.js +0 -1
- package/editor-web/assets/words-XlXG79Ur.js +0 -3
- package/editor-web/assets/workbook-CiCXkjmN.js +0 -45
- package/editor-web/assets/x-DlhyIKuu.js +0 -41
package/dist/help.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{join as E}from"node:path";import{z as w}from"zod";import{optionName as g,paramsOf as O,shapeOf as f}from"./args.js";import{GLOBAL as M,isGlobal as x,isHidden as D}from"./fields.js";import{WORKS as k,cloudNouns as
|
|
2
|
+
import{join as E}from"node:path";import{z as w}from"zod";import{optionName as g,paramsOf as O,shapeOf as f}from"./args.js";import{GLOBAL as M,isGlobal as x,isHidden as D}from"./fields.js";import{WORKS as k,cloudNouns as H,workTitle as S}from"./works.js";const b=e=>e.description??"";function y(e,p){const r=f(p);return r.kind==="boolean"&&!r.list?`--${g(e)}`:`--${g(e)} <${r.kind==="number"?"n":"value"}${r.list?",…":""}>`}function v(e){return e===void 0?["The SDK's docs: none here. This project declares the SDK and has not installed it: run npm install.",""]:[`The SDK's docs, for the version this project builds with (read the ones a piece needs before writing it; README.md lists them): ${e}`,""]}export function listHelp(e,p,r,l){const i=["allyhub: check, measure, look at and export a project's content.","",...v(l),"Works (allyhub help <work> lists a work's commands in the order it uses them):"],c=Math.max(...k.map(n=>n.name.length));for(const n of k)i.push(` ${n.name.padEnd(c)} ${S(n,r)}`);i.push("","Commands:");const d=[...e.map(n=>({noun:n.name.split(" ")[0]??"",name:n.name,summary:n.summary})),...p.flatMap(n=>n.entries.map(s=>({noun:"<made>",...s}))),...(r??[]).map(n=>({noun:"<nouns>",...n}))],m=Math.max(...d.map(n=>n.name.length));let a="";for(const n of d)a!==""&&n.noun!==a&&i.push(""),a=n.noun,i.push(` ${n.name.padEnd(m)} ${n.summary}`);i.push("","Global options (each command lists those it takes):");const o=Object.entries(M).map(([n,s])=>[y(n,s),s.description??""]);o.push(["--json","Print the result as JSON (any command)"]);const t=Math.max(...o.map(([n])=>n.length));for(const[n,s]of o)i.push(` ${n.padEnd(t)} ${s}`);return i.push("","Environment:"," ALLYHUB_GPU=0|1 Draw on the CPU (the same pixels on every computer) or the GPU; default the GPU on a Mac"," ALLYHUB_NO_INDEX=1 Do not make missing face tracks and person mattes first (once per file, in AllyHub's cloud, paid by the frame): those layers are drawn their fallback way","","allyhub help <command> says what one does and every option it takes."),i.join(`
|
|
3
3
|
`)}export function groupHelp(e,p){const r=Math.max(...p.map(l=>l.name.length));return[`allyhub ${e}:`,"",...p.map(l=>` ${l.name.padEnd(r)} ${l.summary}`),"","allyhub help <command> says what one does and every option it takes."].join(`
|
|
4
|
-
`)}export function workHelp(e,p,r=[],l,i,c=[]){const d=Math.max(...e.commands.map(
|
|
5
|
-
`)}export function commandHelp(e,p=[],r=[]){const l=e.input.shape,i=[...e.positional??[]],c=i.map(t=>{const n=f(l[t]??w.string()),
|
|
4
|
+
`)}export function workHelp(e,p,r=[],l,i,c=[]){const d=Math.max(...e.commands.map(a=>a.length)),m=[`${e.title}: the commands, in the order the work uses them.`,""];if(e.cloud!==void 0){const a=i===void 0?[]:H(e,i);if(i===void 0)m.push("The cloud catalog could not be read: its works are not listed.");else if(a.length===0)m.push("The cloud catalog has no tools for this work yet.");else{const o=Math.max(...a.map(t=>t.name.length));m.push("The cloud catalog's works for it (allyhub <work> lists one's tools):");for(const t of a)m.push(` ${t.name.padEnd(o)} ${t.summary}`)}m.push("")}e.docs!==void 0&&e.docs.length>0&&m.push(l===void 0?`How it is written: the SDK's ${e.docs.join(", ")} (no SDK docs for this project: it declares the SDK and has not installed it; run npm install).`:`How it is written: ${e.docs.map(a=>E(l,a)).join(", ")}`,"");for(const a of e.commands){const o=p.find(t=>t.name===a)??r.flatMap(t=>t.entries).find(t=>t.name===a)??c.find(t=>t.name===a);m.push(` ${a.padEnd(d)} ${o?.summary??""}`)}return m.push("","allyhub help <command> says what one does and every option it takes."),m.join(`
|
|
5
|
+
`)}export function commandHelp(e,p=[],r=[]){const l=e.input.shape,i=[...e.positional??[]],c=i.map(t=>{const n=f(l[t]??w.string()),s=l[t]?.safeParse(void 0).success??!1,h=`<${t}>${n.list?"…":""}`;return s?`[${h}]`:h}),d=O(l.params),m=Object.entries(l).filter(([t,n])=>!i.includes(t)&&!(d&&t==="params")&&!x(n)&&!D(n)),a=Object.entries(l).filter(([,t])=>x(t)).map(([t,n])=>y(t,n).split(" ")[0]??""),o=[`allyhub ${[e.name,...c,m.length>0?"[options]":""].filter(Boolean).join(" ")}`,"",e.summary];if(p.length>0&&o.push("",...p),i.length>0){o.push("","Arguments:");for(const t of i)o.push(` <${t}> ${b(l[t]??w.string())}`)}if(m.length>0){o.push("","Options:");const t=m.map(([s,h])=>{const u=f(h),$=y(s,h),j=u.fallback===void 0||u.fallback===!1?"":` (default ${JSON.stringify(u.fallback)})`;return[$,`${b(h)}${j}`]}),n=Math.max(...t.map(([s])=>s.length));for(const[s,h]of t)o.push(` ${s.padEnd(n)} ${h}`)}if(d){o.push("","Parameters (--param name=value):");const t=Object.entries(d).map(([s,h])=>{const u=f(h),$=u.fallback===void 0?"":` (default ${JSON.stringify(u.fallback)})`;return[g(s),`${b(h)}${$}`]}),n=Math.max(...t.map(([s])=>s.length));for(const[s,h]of t)o.push(` ${s.padEnd(n)} ${h}`)}if(a.length>0&&o.push("",`Global options: ${a.join(", ")} (allyhub help)`),e.examples&&e.examples.length>0){o.push("","Examples:");for(const t of e.examples)o.push(` ${t}`)}if(r.length>0){const t=Math.max(...r.map(n=>n.name.length));o.push("",`Commands under ${e.name}:`);for(const n of r)o.push(` ${n.name.padEnd(t)} ${n.summary}`)}return o.join(`
|
|
6
6
|
`)}
|
package/dist/main.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{mkdir as
|
|
3
|
-
`);return}const
|
|
4
|
-
`)),
|
|
5
|
-
`)}
|
|
6
|
-
`)},signal
|
|
7
|
-
`)}else
|
|
2
|
+
import{mkdir as F,writeFile as G}from"node:fs/promises";import{tmpdir as J}from"node:os";import{dirname as K,join as R}from"node:path";import"@allyhub/stage-runtime/use";import{CLI_PROGRAM as H,EXIT as l,PROBLEMS_FOUND as Y}from"@allyhub/protocol/cli";import{WORK_DIR as V}from"@allyhub/formats/layout";import{projectAt as X}from"./project.js";import{cutLong as q}from"./text/long-text.js";import{readArgs as z}from"./args.js";import{CLI_VERSION as b}from"./cli-version.js";import{CommandError as E}from"./command.js";import{COMMAND_SOURCES as A}from"./commands/index.js";import{commandEntries as Q,commandEntry as Z,entriesOf as tt,joinedCommands as nt}from"./commands/list.js";import{contributedSpecs as et}from"./commands/contributed.js";import{groupHelp as ot,listHelp as rt,workHelp as it}from"./help.js";import{sdkDocs as at}from"./sdk-docs.js";import{cliTelemetry as st}from"./telemetry.js";import{turnOf as ct}from"./turn.js";import{endUpdateCheck as dt}from"./update-notice.js";import{WORKS as mt,cloudNouns as ut,withJoined as U,workNamed as lt,workTitle as W}from"./works.js";const j={stdout:o=>process.stdout.write(o),stderr:o=>process.stderr.write(o),cwd:process.cwd(),env:process.env};export const FORMER_NAMES={render:"export"};export function namedNow(o){const i=o[0]==="help"?1:0,a=FORMER_NAMES[o[i]??""];return o.map((s,p)=>p===i&&a!==void 0?a:s)}export function findCommand(o,i){let a;for(const s of i){const p=s.name.split(" ");p.every((h,e)=>o[e]===h)&&p.length>(a?.length??0)&&(a={command:s,length:p.length})}return a?{command:a.command,rest:o.slice(a.length)}:{rest:[...o]}}export async function resolveCommand(o,i,a,s=A){const p=async e=>{const c=await e.resolve(o,i);return c&&{...c,command:Z(c.command,a)}},h=findCommand(o,a);if(h.command){const e=h.command.name;if(h.rest.length>0)for(const c of s.filter(y=>y.under===e)){const y=await p(c);if(y)return y}return h}for(const e of s){const c=await p(e);if(c)return c}return h}export async function main(o,i=j,a,s=A,p){const h=o.includes("--json"),e=namedNow(o.filter(t=>t!=="--json")),c=async(t,n,$)=>{if(h){i.stdout(`${JSON.stringify(t,null,2)}
|
|
3
|
+
`);return}const v=await X(i.cwd),m=R(v===void 0?R(J(),"allyhub"):R(v,V),"out",`${$.replaceAll(" ","-")}.txt`),w=q(n,m);w!==void 0&&(await F(K(m),{recursive:!0}),await G(m,`${n}
|
|
4
|
+
`)),i.stdout(`${w??n}
|
|
5
|
+
`)},y=new AbortController,g={cwd:i.cwd,env:{ALLYHUB_CLIENT:`${H}/${b}`,...i.env},progress:t=>{i.stderr(`${t}
|
|
6
|
+
`)},signal:y.signal};if(e[0]==="--version"||e[0]==="-v")return await c({version:b},b,"version"),l.ok;const N=a===void 0?await Q():tt(a),L=t=>N.filter(n=>t.length>0&&n.name.startsWith(`${t.join(" ")} `));if(e.length===0||e[0]==="help"||e[0]==="--help"||e[0]==="-h"){const t=e.slice(1).findIndex(r=>r.startsWith("-")),n=(t<0?e.slice(1):e.slice(1,t+1)).flatMap(r=>r.split(" ").filter(d=>d!=="")),$=await at(i.cwd).catch(()=>{}),v=async()=>{const r=await Promise.all(s.map(d=>d.nouns(g).then(P=>P.map(B=>({...B,work:d.works!==!1}))).catch(()=>{})));return r.some(d=>d===void 0)?void 0:r.flatMap(d=>d??[])},m=await et(g,await nt());if(n.length===0){const r=await v();return await c({version:b,docs:$?.dir,works:mt.map(d=>({...U(d,m),title:W(d,r)})),commands:N.map(d=>d.spec),made:[...s.flatMap(d=>d.entries),...r??[]]},rt(N,s,r,$?.dir),"help"),l.ok}const w=n.length===1?lt(n[0]??""):void 0,f=w&&U(w,m);if(f){const r=f.cloud===void 0?[]:await v();return await c({...f,title:W(f,r),...f.cloud===void 0?{}:{cloudWorks:r&&ut(f,r)},docsDir:$?.dir},it(f,N,s,$?.dir,r,m),`help ${n.join(" ")}`),l.ok}let S;try{S=await resolveCommand(n,g,N,s)}catch(r){return C(r)}const{command:u,rest:x}=S;if(u&&S.list===!0)return await T(u,x);const k=L(n);return!u&&k.length>0?(await c({commands:k.map(r=>r.spec)},ot(n.join(" "),k),`help ${n.join(" ")}`),l.ok):!u||x.length>0?C(new E("unknown-command",`allyhub has no command "${n.join(" ")}".`,{exit:l.usage,hint:"allyhub help lists them and the works."})):(await c(u.described,u.help,`help ${u.name}`),l.ok)}let M;try{M=await resolveCommand(e,g,N,s)}catch(t){return C(t)}const{command:O,rest:I}=M;if(!O){const t=L(e.slice(0,1));return C(new E("unknown-command",`allyhub has no command "${e.join(" ")}".`,{exit:l.usage,hint:t.length>0?`${e[0]??""} has these: ${t.map(n=>n.name).join(", ")}.`:"allyhub help lists them."}))}if(I.includes("--help")||I.includes("-h"))return await c(O.described,O.help,`${O.name} help`),l.ok;return await T(O,I);async function T(t,n){const $=()=>{y.abort(new E("interrupted","Stopped.",{exit:l.interrupted}))};process.once("SIGINT",$);const v=Date.now();let m=l.failed,w;const f=await ct(g.env,g.cwd),S=f===void 0?g:{...g,env:{...g.env,TRACEPARENT:f}};try{const u=await t.command(),x=z(u.spec,n),k=await u.run(x,S);await c(k.value,k.text,u.spec.name),m=k.exit??l.ok,m!==l.ok&&(w=k.code??Y)}catch(u){const x=_(u);m=x.exit,w=x.code,D(x)}finally{process.off("SIGINT",$)}return await p?.({command:t.name,ms:Date.now()-v,exit:m,...w===void 0?{}:{code:w},...f===void 0?{}:{traceparent:f}}),m}function C(t){const n=_(t);return D(n),n.exit}function _(t){return t instanceof E?t:y.signal.aborted?new E("interrupted","Stopped.",{exit:l.interrupted}):new E("failed",t instanceof Error?t.message:String(t))}function D(t){if(h){const n={error:{code:t.code,message:t.message,...t.hint?{hint:t.hint}:{}}};i.stdout(`${JSON.stringify(n,null,2)}
|
|
7
|
+
`)}else i.stderr(`${t.message}${t.hint?`
|
|
8
8
|
${t.hint}`:""}
|
|
9
|
-
`)}}export function run(
|
|
9
|
+
`)}}export async function run(o){const i=await main(o,j,void 0,A,st({ALLYHUB_CLIENT:`${H}/${b}`,...j.env},s=>{j.stderr(s)})),a=await dt();return a!==void 0&&j.stderr(`${a}
|
|
10
|
+
`),i}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/3d-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./tools": {
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
"name": "scenery bake",
|
|
272
|
-
"summary": "Bakes a 3D scenery's light into a lightmap once, kept in .allyhub/cache/bake/ and laid on it each time it is built; one baked on a GPU is laid only by that GPU, one baked on the CPU (ALLYHUB_GPU=0) by every renderer",
|
|
272
|
+
"summary": "Bakes a 3D scenery's light into a lightmap once, kept in .allyhub/cache/bake/ by the scene's digest and laid on it each time it is built; one baked on a GPU is laid only by that GPU, one baked on the CPU (ALLYHUB_GPU=0) by every renderer; a scene that changed is drawn unbaked until baked again",
|
|
273
273
|
"work": "3d",
|
|
274
274
|
"module": "./dist/cli/index.js"
|
|
275
275
|
},
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
AllyHub Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software (the AllyHub command-line tool, its SDK, runtime and the
|
|
6
|
+
packages they depend on) is proprietary. It is not open source.
|
|
7
|
+
|
|
8
|
+
1. Permitted use. You may install and run the software, unmodified, to make,
|
|
9
|
+
check, preview and render videos and decks, including for commercial
|
|
10
|
+
purposes. What you make with it is yours.
|
|
11
|
+
|
|
12
|
+
2. Restrictions. Except as this license permits or applicable law requires,
|
|
13
|
+
you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
|
|
14
|
+
publish or otherwise distribute the software, create derivative works of
|
|
15
|
+
it, or reverse engineer, decompile or disassemble it.
|
|
16
|
+
|
|
17
|
+
3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
|
|
18
|
+
video) are separate services governed by AllyHub's terms of service.
|
|
19
|
+
|
|
20
|
+
4. Trademarks. This license grants no right to use the name "AllyHub" or its
|
|
21
|
+
logos.
|
|
22
|
+
|
|
23
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
24
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
26
|
+
ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
28
|
+
|
|
29
|
+
6. Third-party code. Parts of the software are adapted from HyperFrames,
|
|
30
|
+
licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
|
|
31
|
+
remain under that license, reproduced below, and nothing in this license
|
|
32
|
+
limits your rights under it.
|
|
33
|
+
|
|
34
|
+
7. Starter components. The starter components in the "components" folder,
|
|
35
|
+
which "allyhub add" copies into your workspace, are licensed under the MIT
|
|
36
|
+
License (see components/LICENSE): once copied, you may change, use and
|
|
37
|
+
share them freely.
|
|
38
|
+
|
|
39
|
+
--------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
Apache License
|
|
42
|
+
Version 2.0, January 2004
|
|
43
|
+
http://www.apache.org/licenses/
|
|
44
|
+
|
|
45
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
46
|
+
|
|
47
|
+
1. Definitions.
|
|
48
|
+
|
|
49
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
50
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
51
|
+
|
|
52
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
53
|
+
the copyright owner that is granting the License.
|
|
54
|
+
|
|
55
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
56
|
+
other entities that control, are controlled by, or are under common
|
|
57
|
+
control with that entity. For the purposes of this definition,
|
|
58
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
59
|
+
direction or management of such entity, whether by contract or
|
|
60
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
61
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
62
|
+
|
|
63
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
64
|
+
exercising permissions granted by this License.
|
|
65
|
+
|
|
66
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
67
|
+
including but not limited to software source code, documentation
|
|
68
|
+
source, and configuration files.
|
|
69
|
+
|
|
70
|
+
"Object" form shall mean any form resulting from mechanical
|
|
71
|
+
transformation or translation of a Source form, including but
|
|
72
|
+
not limited to compiled object code, generated documentation,
|
|
73
|
+
and conversions to other media types.
|
|
74
|
+
|
|
75
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
76
|
+
Object form, made available under the License, as indicated by a
|
|
77
|
+
copyright notice that is included in or attached to the work
|
|
78
|
+
(an example is provided in the Appendix below).
|
|
79
|
+
|
|
80
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
81
|
+
form, that is based on (or derived from) the Work and for which the
|
|
82
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
83
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
84
|
+
of this License, Derivative Works shall not include works that remain
|
|
85
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
86
|
+
the Work and Derivative Works thereof.
|
|
87
|
+
|
|
88
|
+
"Contribution" shall mean any work of authorship, including
|
|
89
|
+
the original version of the Work and any modifications or additions
|
|
90
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
91
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
92
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
93
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
94
|
+
means any form of electronic, verbal, or written communication sent
|
|
95
|
+
to the Licensor or its representatives, including but not limited to
|
|
96
|
+
communication on electronic mailing lists, source code control systems,
|
|
97
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
98
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
99
|
+
excluding communication that is conspicuously marked or otherwise
|
|
100
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
101
|
+
|
|
102
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
103
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
104
|
+
subsequently incorporated within the Work.
|
|
105
|
+
|
|
106
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
107
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
108
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
109
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
110
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
111
|
+
Work and such Derivative Works in Source or Object form.
|
|
112
|
+
|
|
113
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
114
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
115
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
116
|
+
(except as stated in this section) patent license to make, have made,
|
|
117
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
118
|
+
where such license applies only to those patent claims licensable
|
|
119
|
+
by such Contributor that are necessarily infringed by their
|
|
120
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
121
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
122
|
+
institute patent litigation against any entity (including a
|
|
123
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
124
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
125
|
+
or contributory patent infringement, then any patent licenses
|
|
126
|
+
granted to You under this License for that Work shall terminate
|
|
127
|
+
as of the date such litigation is filed.
|
|
128
|
+
|
|
129
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
130
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
131
|
+
modifications, and in Source or Object form, provided that You
|
|
132
|
+
meet the following conditions:
|
|
133
|
+
|
|
134
|
+
(a) You must give any other recipients of the Work or
|
|
135
|
+
Derivative Works a copy of this License; and
|
|
136
|
+
|
|
137
|
+
(b) You must cause any modified files to carry prominent notices
|
|
138
|
+
stating that You changed the files; and
|
|
139
|
+
|
|
140
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
141
|
+
that You distribute, all copyright, patent, trademark, and
|
|
142
|
+
attribution notices from the Source form of the Work,
|
|
143
|
+
excluding those notices that do not pertain to any part of
|
|
144
|
+
the Derivative Works; and
|
|
145
|
+
|
|
146
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
147
|
+
distribution, then any Derivative Works that You distribute must
|
|
148
|
+
include a readable copy of the attribution notices contained
|
|
149
|
+
within such NOTICE file, excluding those notices that do not
|
|
150
|
+
pertain to any part of the Derivative Works, in at least one
|
|
151
|
+
of the following places: within a NOTICE text file distributed
|
|
152
|
+
as part of the Derivative Works; within the Source form or
|
|
153
|
+
documentation, if provided along with the Derivative Works; or,
|
|
154
|
+
within a display generated by the Derivative Works, if and
|
|
155
|
+
wherever such third-party notices normally appear. The contents
|
|
156
|
+
of the NOTICE file are for informational purposes only and
|
|
157
|
+
do not modify the License. You may add Your own attribution
|
|
158
|
+
notices within Derivative Works that You distribute, alongside
|
|
159
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
160
|
+
that such additional attribution notices cannot be construed
|
|
161
|
+
as modifying the License.
|
|
162
|
+
|
|
163
|
+
You may add Your own copyright statement to Your modifications and
|
|
164
|
+
may provide additional or different license terms and conditions
|
|
165
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
166
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
167
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
168
|
+
the conditions stated in this License.
|
|
169
|
+
|
|
170
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
171
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
172
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
173
|
+
this License, without any additional terms or conditions.
|
|
174
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
175
|
+
the terms of any separate license agreement you may have executed
|
|
176
|
+
with Licensor regarding such Contributions.
|
|
177
|
+
|
|
178
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
179
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
180
|
+
except as required for reasonable and customary use in describing the
|
|
181
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
182
|
+
|
|
183
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
184
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
185
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
187
|
+
implied, including, without limitation, any warranties or conditions
|
|
188
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
189
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
190
|
+
appropriateness of using or redistributing the Work and assume any
|
|
191
|
+
risks associated with Your exercise of permissions under this License.
|
|
192
|
+
|
|
193
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
194
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
195
|
+
unless required by applicable law (such as deliberate and grossly
|
|
196
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
197
|
+
liable to You for damages, including any direct, indirect, special,
|
|
198
|
+
incidental, or consequential damages of any character arising as a
|
|
199
|
+
result of this License or out of the use or inability to use the
|
|
200
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
201
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
202
|
+
other commercial damages or losses), even if such Contributor
|
|
203
|
+
has been advised of the possibility of such damages.
|
|
204
|
+
|
|
205
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
206
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
207
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
208
|
+
or other liability obligations and/or rights consistent with this
|
|
209
|
+
License. However, in accepting such obligations, You may act only
|
|
210
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
211
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
212
|
+
defend, and hold each Contributor harmless for any liability
|
|
213
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
214
|
+
of your accepting any such warranty or additional liability.
|
|
215
|
+
|
|
216
|
+
END OF TERMS AND CONDITIONS
|
|
217
|
+
|
|
218
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
219
|
+
|
|
220
|
+
To apply the Apache License to your work, attach the following
|
|
221
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
222
|
+
replaced with your own identifying information. (Don't include
|
|
223
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
224
|
+
comment syntax for the file format. We also recommend that a
|
|
225
|
+
file or class name and description of purpose be included on the
|
|
226
|
+
same "printed page" as the copyright notice for easier
|
|
227
|
+
identification within third-party archives.
|
|
228
|
+
|
|
229
|
+
Copyright [yyyy] [name of copyright owner]
|
|
230
|
+
|
|
231
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
232
|
+
you may not use this file except in compliance with the License.
|
|
233
|
+
You may obtain a copy of the License at
|
|
234
|
+
|
|
235
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
236
|
+
|
|
237
|
+
Unless required by applicable law or agreed to in writing, software
|
|
238
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
239
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
240
|
+
See the License for the specific language governing permissions and
|
|
241
|
+
limitations under the License.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{gridAlt as d}from"./grids.js";import{treeAlt as $}from"./trees.js";import{areMonths as m,formatDate as g,formatNumber as h}from"./format.js";import{deltaWay as S}from"./resolve.js";import{ganttAlt as b,sankeyAlt as k}from"./flow-table.js";const u={en:{target:"target",step:(e,t)=>`step ${String(e)} of ${String(t)}`,today:"today",done:"done",current:"now",planned:"planned",risk:"at risk",late:"late",up:"up",down:"down",colon:": ",sep:"; "},zh:{target:"目标",step:(e,t)=>`第 ${String(e)} 步,共 ${String(t)} 步`,today:"今天",done:"已完成",current:"进行中",planned:"计划中",risk:"有风险",late:"延误",up:"上升",down:"下降",colon:":",sep:";"},"zh-hant":{target:"目標",step:(e,t)=>`第 ${String(e)} 步,共 ${String(t)} 步`,today:"今天",done:"已完成",current:"進行中",planned:"計劃中",risk:"有風險",late:"延誤",up:"上升",down:"下降",colon:":",sep:";"},ja:{target:"目標",step:(e,t)=>`${String(t)} ステップ中 ${String(e)}`,today:"今日",done:"完了",current:"進行中",planned:"予定",risk:"リスクあり",late:"遅延",up:"上昇",down:"下降",colon:":",sep:";"},ko:{target:"목표",step:(e,t)=>`${String(t)}단계 중 ${String(e)}단계`,today:"오늘",done:"완료",current:"진행 중",planned:"예정",risk:"위험",late:"지연",up:"상승",down:"하락",colon:": ",sep:"; "},es:{target:"objetivo",step:(e,t)=>`paso ${String(e)} de ${String(t)}`,today:"hoy",done:"hecho",current:"en curso",planned:"previsto",risk:"en riesgo",late:"con retraso",up:"sube",down:"baja",colon:": ",sep:"; "},pt:{target:"meta",step:(e,t)=>`passo ${String(e)} de ${String(t)}`,today:"hoje",done:"concluído",current:"em curso",planned:"previsto",risk:"em risco",late:"atrasado",up:"sobe",down:"desce",colon:": ",sep:"; "},de:{target:"Ziel",step:(e,t)=>`Schritt ${String(e)} von ${String(t)}`,today:"heute",done:"erledigt",current:"läuft",planned:"geplant",risk:"gefährdet",late:"verspätet",up:"steigt",down:"fällt",colon:": ",sep:"; "},fr:{target:"objectif",step:(e,t)=>`étape ${String(e)} sur ${String(t)}`,today:"aujourd’hui",done:"terminé",current:"en cours",planned:"prévu",risk:"à risque",late:"en retard",up:"en hausse",down:"en baisse",colon:" : ",sep:" ; "}},p=u.en??{target:"target",step:(e,t)=>`step ${String(e)} of ${String(t)}`,today:"today",done:"done",current:"now",planned:"planned",risk:"at risk",late:"late",up:"up",down:"down",colon:": ",sep:"; "};function w(e){const t=(e??"en").toLowerCase();return t.startsWith("zh")?(/hant|tw|hk|mo/u.test(t)?u["zh-hant"]:u.zh)??p:u[t.split("-")[0]??"en"]??p}const s=(e,t)=>e.auto===!0&&e.number!==void 0?h(e.number,t):e.text,a=e=>e.replace(/\*\*([^*]+)\*\*|\*([^*]+)\*/gu,"$1$2").replace(/\s+/gu," ").trim();function c(e,t,r){const n=[s(e.value,r)];if(e.delta!==void 0){const o=S(e.delta);n.push(`${o==="up"?"▲":o==="down"?"▼":""} ${s(e.delta,r).replace(/^[+↑▲\-−–↓▼]\s*/u,"")}`.trim())}return e.target!==void 0&&n.push(`${t.target} ${s(e.target,r)}`),e.note!==void 0&&n.push(a(e.note)),`${a(e.label)}${t.colon}${n.join(", ")}`}const j=(e,t)=>e==="done"?t.done:e==="current"?t.current:e==="planned"?t.planned:e==="warning"?t.risk:e==="bad"?t.late:void 0;export function blockAlt(e,t){if(e.alt!==void 0)return e.alt;const r=w(t);switch(e.kind){case"sankey":return k(e,r.sep,t);case"gantt":return b(e,r.colon,r.sep,t);case"stat":return c(e,r,t);case"stats":return e.items.map(n=>c(n,r,t)).join(r.sep);case"tag":return a(e.text);case"card":return[e.eyebrow,e.value===void 0?void 0:`${s(e.value,t)}${e.caption===void 0?"":" "+e.caption}`,e.title,e.subtitle,e.tag?.text,e.body,...(e.lines??[]).map(n=>n.label===void 0?n.text:`${n.label}${r.colon}${n.text}`)].filter(n=>n!==void 0).map(a).join(r.sep);case"risk_matrix":return[[e.y,e.x].filter(n=>n!==void 0).join(" × "),...e.items.map(n=>`${n.label}${r.colon}${e.rows[n.row]??""}, ${e.columns[n.column]??""}`)].filter(n=>n!=="").map(a).join(r.sep);case"callout":return[e.title,e.text].filter(n=>n!==void 0).map(a).join(r.colon);case"icon":return e.name.replace(/-/gu," ");case"progress":return`${e.label===void 0?"":a(e.label)+r.colon}${e.figure===void 0?e.shown:s(e.figure,t)}${e.of===void 0?"":` / ${s(e.of,t)}`}${e.note===void 0?"":" "+a(e.note)}${e.target===void 0?"":`, ${r.target} ${String(Math.round(e.target*100))}%`}`;case"timeline":{const n=m(e.items.map(o=>o.date));return e.items.map(o=>{const i=j(o.state,r);return`${o.date===void 0?"":g(o.date,t,n)+" "}${a(o.title)}${i===void 0?"":` (${i})`}`}).join(r.sep)}case"steps":{const n=e.items.map((o,i)=>`${String(i+1)}. ${a(o.title)}`).join(r.sep);return e.current===void 0?n:`${n} (${r.step(e.current,e.items.length)})`}case"person":return[e.name,e.role,e.note].filter(n=>n!==void 0).map(a).join(", ");case"people":return e.items.map(n=>[n.name,n.role].filter(o=>o!==void 0).map(a).join(", ")).join(r.sep);case"table":return`${e.columns.map(o=>o.title??o.name).join(", ")} (${String(e.rows.length)} × ${String(e.columns.length)})`;case"org_chart":case"issue_tree":case"decision_tree":case"fishbone":return $(e);case"matrix":case"marimekko":case"heatmap":case"small_multiples":return d(e,t);case"chart":{const n=e.chart,o=n.series.map(i=>`${i.name}${r.colon}${i.values.map(l=>l===null?"–":String(l)).join(", ")}`).join(r.sep);return`${n.title===void 0?"":a(n.title)+r.colon}${n.categories.join(", ")}${r.sep}${o}`}}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{THEMES as y,csvRows as P,readBlock as I,shownPath as C}from"@allyhub/formats";import{isRound as F}from"@allyhub/chart";import{BLOCK_ELEMENTS as O,PAGE_DATA_ID as K,elementBlock as U,isListItem as q,namedAddresses as J}from"./page.js";import{CSS_ROLES as z,cssPalette as G}from"./palette.js";import{blockAlt as V}from"./alt.js";import{BLOCK_HTML_CSS as W,blockHtml as Q}from"./html.js";import{blockLayout as X,plotHeight as Y}from"./layout.js";import{roughMeasure as Z}from"./measure.js";import{drawingSvg as tt}from"./svg.js";import{addressParts as A,blockOf as et,readAddress as N}from"./resolve.js";export{BLOCK_ELEMENTS}from"./page.js";const T=t=>({tag:t.localName,attributes:Object.fromEntries(Array.from(t.attributes).map(e=>[e.name,e.value])),children:Array.from(t.children).map(T),text:t.textContent});function nt(t,e){if(/\.csv$/iu.test(t)){const[n,...o]=P(e);return n?o.map(r=>Object.fromEntries(n.map((a,c)=>{const l=(r[c]??"").trim(),h=Number(l);return[a.trim(),l!==""&&Number.isFinite(h)?h:l]}))):[]}return JSON.parse(e)}const B=new Map;function H(t){const e=new URL(t,document.baseURI).href;let n=B.get(e);return n===void 0&&(n=fetch(e).then(async o=>{if(!o.ok)throw new Error(`${t}: ${String(o.status)}`);return nt(t,await o.text())}),B.set(e,n)),n}let g;function R(){if(g!==void 0)return g;const t=document.getElementById(K);try{g=t===null?{}:JSON.parse(t.textContent)}catch(e){if(!(e instanceof SyntaxError))throw e;g={}}return g}async function ot(t,e={}){const n=R();if(A(t).some(r=>r in n))return N(t,r=>e.shown===!0?n[C(r)]??n[r]:n[r]);const[o=t]=t.split("#");if(/\.(?:csv|json)$/iu.test(o)){const r=await H(o);return o===t?r:N(t,()=>r)}throw new Error(`${t} is not among the data this page was served with: name it in a block element or in allyhubData("…") in the page's own file; allyhub check says what it cannot read.`)}const it=()=>{const t=document.documentElement.dataset.theme;return(t!==void 0&&t in y?y[t]:y.blue).colors},st=t=>{const e=getComputedStyle(t),n={};for(const o of Object.values(z))n[o]=e.getPropertyValue(`--${o}`);return n};let j;function rt(t){const e=getComputedStyle(t).fontFamily||"sans-serif";j??=document.createElement("canvas").getContext("2d");const n=j;return n===null?Z:(o,r,a)=>(n.font=`${String(a)} ${String(r)}px ${e}`,n.measureText(o).width)}const k=new Set;let D=!1;function at(){if(D)return;D=!0;const t=()=>{for(const e of k)e.draw()};document.fonts.addEventListener("loadingdone",t),new MutationObserver(t).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]}),matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t)}export const ROUND_CHART={width:560,aspect:.6},chartHeight=t=>Math.round(Y(t*.75)/.75);let lt=0;function ct(){return class extends HTMLElement{observer;changes;drawn="";overflow=[];key=`ah${String(lt++)}`;connectedCallback(){if(q(this.localName,this.parentElement?.localName)){this.style.display="none";return}if(this.shadowRoot===null){const e=this.attachShadow({mode:"open"}),n=O[this.localName];e.innerHTML=n==="tag"||n==="icon"?"<style>:host{display:inline-block}</style>":"<style>:host{display:block;margin:0 0 var(--block-gap,24px)}</style>"}this.observer=new ResizeObserver(()=>{this.draw()}),this.observer.observe(this),this.changes=new MutationObserver(()=>{this.draw()}),this.changes.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),k.add(this),at(),this.draw()}disconnectedCallback(){this.observer?.disconnect(),this.changes?.disconnect(),k.delete(this)}async draw(){if(document.readyState==="loading")return;const e=this.shadowRoot,n=U(T(this));if(n===void 0||e===null)return;const{kind:o,fields:r}=n,a=o==="tag"||o==="icon",c=a?600:this.clientWidth;if(c<=0)return;const l=R(),h=new Map;for(const i of J(r)){if(A(i).some(f=>f in l))continue;const[s=i]=i.split("#");if(/\.(?:csv|json)$/iu.test(s))try{h.set(s,await H(s))}catch(f){if(!(f instanceof Error))throw f;this.problem(f.message);return}}const v=I(o,r),b=v.problems.map(i=>i.message),d=v.block===void 0?void 0:et(v.block,{data:i=>i in l?l[i]:h.get(i),shown:i=>l[C(i)],problem:i=>b.push(i)});if(b.length>0&&console.warn(`<${this.localName}>: ${b.join(" ")}`),d===void 0){this.problem(b.join(" "));return}const u=this.getAttribute("height"),m=document.documentElement.lang===""?void 0:document.documentElement.lang,E=G(it(),st(this)),S=Q(d,{pal:E,...m===void 0?{}:{lang:m}});if(S!==void 0){const i=(a?":host{display:inline-block;margin:0;vertical-align:baseline}":"")+(u===null?"":`:host{height:${String(Number(u))}px}`),s=`<style>${W}${i}</style>${S}`;if(s===this.drawn)return;this.drawn=s,e.innerHTML=s;return}const x=d.kind==="chart"&&F(d.chart.type),w=x?Math.min(c,ROUND_CHART.width):c,_=u!==null?{height:Number(u)*.75}:o==="chart"?{height:(x?Math.round(w*ROUND_CHART.aspect):chartHeight(c))*.75}:{};await document.fonts.ready;const $=rt(this),M=X(d,{width:w*.75,..._},{flow:u===null,measure:$,...m===void 0?{}:{lang:m}}),p=tt(M,E,{measure:$,id:this.key,label:V(d,m)});if(p===this.drawn)return;this.drawn=p,this.overflow=M.overflow,e.innerHTML=a?`<style>:host{display:inline-block;vertical-align:middle;line-height:0}svg{display:block;overflow:visible}</style>${p}`:`<style>:host{display:block;margin:0 0 var(--block-gap,24px)}svg{display:block;width:100%;${w<c?`max-width:${String(w)}px;`:""}height:auto;overflow:visible}</style>${p}`;const L=e.querySelector("svg");if(L!==null&&this.overflow.length>0&&L.setAttribute("data-overflow",this.overflow.join(" ")),a){const i=e.querySelector("svg"),s=i?.getBBox();i&&s&&s.width>0&&(i.setAttribute("viewBox",`${String(s.x)} ${String(s.y)} ${String(s.width)} ${String(s.height)}`),i.setAttribute("width",String(s.width*(4/3))),i.setAttribute("height",String(s.height*(4/3))))}}problem(e){const n=this.shadowRoot;if(n===null)return;this.drawn="",n.innerHTML='<div style="border:1px dashed #d6d1c6;border-radius:6px;padding:8px 12px;color:#847f72;font:12px sans-serif"></div>';const o=n.firstElementChild;o&&(o.textContent=`<${this.localName}> ${e}`)}}}export function defineBlockElements(t=customElements){const e=ct();for(const o of[...Object.keys(O),"allyhub-milestone","allyhub-step"])t.get(o)===void 0&&t.define(o,class extends e{});const n=globalThis;n.allyhubData??=ot}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{toneOf as O}from"@allyhub/formats";const k=t=>typeof t=="string"?t:typeof t=="number"&&Number.isFinite(t)?String(t):void 0,C=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],b=(t,n,s)=>Date.UTC(t,n,s)/864e5,S=-25569;export function dateOf(t){if(typeof t=="number"&&Number.isFinite(t)){if(t<1||t>2958465)return;const d=Math.floor(t)+S;return{day:d,after:d+1}}if(t instanceof Date&&!Number.isNaN(t.getTime())){const d=b(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());return{day:d,after:d+1}}if(typeof t!="string")return;const n=t.trim();if(n==="")return;if(/^\d+(?:\.\d+)?$/u.test(n)&&Number(n)>9999)return dateOf(Number(n));let s=/^(\d{4})[-/.](\d{1,2})(?:[-/.](\d{1,2}))?(?:[T\s].*)?$/u.exec(n);if(s){const d=Number(s[1]),c=Number(s[2])-1;if(s[3]===void 0)return{day:b(d,c,1),after:b(d,c+1,1)};const g=b(d,c,Number(s[3]));return{day:g,after:g+1}}if(s=/^q([1-4])\s*[-/ ]?\s*(\d{4})$/iu.exec(n)??/^(\d{4})\s*[-/ ]?\s*q([1-4])$/iu.exec(n),s){const[d,c]=/^q/iu.test(n)?[Number(s[1]),Number(s[2])]:[Number(s[2]),Number(s[1])];return{day:b(c,(d-1)*3,1),after:b(c,d*3,1)}}if(s=/^([a-z]{3})[a-z]*\.?\s+(\d{4})$/iu.exec(n),s){const d=C.indexOf((s[1]??"").toLowerCase());if(d>=0){const c=Number(s[2]);return{day:b(c,d,1),after:b(c,d+1,1)}}}const i=Date.parse(n);if(Number.isNaN(i))return;const p=new Date(i),y=i%864e5===0?Math.floor(i/864e5):b(p.getFullYear(),p.getMonth(),p.getDate());return{day:y,after:y+1}}export function isoOf(t){return new Date(t*864e5).toISOString().slice(0,10)}function _(t,n){if(typeof n=="number"&&Number.isFinite(n)&&n>=0)return t+n;if(typeof n!="string")return;const s=/^(\d+(?:\.\d+)?)\s*(d|days?|w|wks?|weeks?|m|mos?|months?|q|qtrs?|quarters?|y|yrs?|years?)?$/iu.exec(n.trim());if(!s)return;const i=Number(s[1]),p=(s[2]??"d").toLowerCase().charAt(0);if(p==="d")return t+i;if(p==="w")return t+7*i;const y=p==="m"?i:p==="q"?3*i:12*i,d=new Date(t*864e5),c=Math.floor(y);return b(d.getUTCFullYear(),d.getUTCMonth()+c,d.getUTCDate())+Math.round((y-c)*30)}function M(t){if(t===!0)return 1;if(typeof t=="number"&&Number.isFinite(t))return Math.max(0,Math.min(1,t>1?t/100:t));if(typeof t!="string")return;const n=t.trim(),s=/^(-?\d+(?:\.\d+)?)\s*(%)?$/u.exec(n);if(!s)return;const i=Number(s[1]);return M(s[2]==="%"?i/100:i)}export function sankeyOf(t,n){const s=[],i=new Map,p=(e,a,o)=>{const f=e.trim().toLowerCase(),m=i.get(f);if(m!==void 0)return m;const l=s.length,N=n.words(["nodes",l,"label"],a??e)??e;return s.push({name:e.trim(),label:N,...o===void 0?{}:{color:o}}),i.set(f,l),l},y=Array.isArray(t.nodes)?t.nodes:[];for(const e of y)e.name!==void 0&&p(e.name,e.label,e.color);const{list:d}=n.items("link"),c=[];d.forEach((e,a)=>{const o=k(e.source),f=k(e.target),m=typeof e.value=="number"?e.value:Number(e.value);if(o===void 0||f===void 0){n.problem("a flow has a source and a target.",["items",a]);return}if(!Number.isFinite(m)||m<=0){n.problem(`a flow's value is a number over 0, not ${JSON.stringify(e.value)}.`,["items",a,"value"]);return}const l=p(o),N=p(f);if(l===N){n.problem(`${o} flows to itself: a flow goes to another node.`,["items",a]);return}const w=k(e.color);c.push({source:l,target:N,value:m,...w===void 0?{}:{color:w}})});const g=[],h=s.map(()=>[]),$=(e,a)=>{const o=new Set,f=[e];for(;f.length>0;){const m=f.pop()??0;if(m===a)return!0;o.has(m)||(o.add(m),f.push(...h[m]??[]))}return!1};for(const e of c){if($(e.target,e.source)){n.problem(`${s[e.source]?.name??""} → ${s[e.target]?.name??""} makes a loop: a Sankey's flows run one way, left to right.`,["items"]);continue}h[e.source]?.push(e.target),g.push(e)}g.length===0&&n.problem("a Sankey has flows: source, target, value.",[]);const r=k(t.format),u=t.align??"justify";return{kind:"sankey",nodes:s,links:g,values:t.values!==!1,align:u,...r===void 0?{}:{format:r},...n.alt()}}export function ganttOf(t,n){const{list:s}=n.items("task"),i=[];s.forEach((r,u)=>{const e=n.words(["items",u,"name"],r.name);if(e===void 0){n.problem("a task has a name.",["items",u]);return}const a=k(r.id),o=n.words(["items",u,"group"],r.group),f=M(r.progress);r.progress!==void 0&&f===void 0&&n.problem(`progress is a share (60%, 0.6), not ${JSON.stringify(r.progress)}.`,["items",u,"progress"]);const m=r.status,l=k(r.color);i.push({t:{name:e,depends:[],milestone:r.milestone===!0,...a===void 0?{}:{id:a},...o===void 0?{}:{group:o},...f===void 0?{}:{progress:f},...m===void 0||O(m)===void 0?{}:{status:m},...l===void 0?{}:{color:l}},raw:r,at:u,after:Array.isArray(r.depends)?r.depends.map(String):[]})});const p=r=>{const u=r.trim().toLowerCase(),e=i.findIndex(o=>o.t.id?.toLowerCase()===u);if(e>=0)return e;const a=i.findIndex(o=>o.t.name.toLowerCase()===u);return a>=0?a:void 0};for(const[r,u]of i.entries())for(const e of u.after){const a=p(e);a===void 0||a===r?n.problem(`${e} is no other task: depends names a task by its id or its name (${i.map(o=>o.t.id??o.t.name).join(", ")}).`,["items",u.at,"depends"]):u.t.depends.push(a)}const y=new Set;for(let r=0;r<=i.length;r++)for(const[u,e]of i.entries()){if(y.has(u))continue;const{raw:a}=e;let o=dateOf(a.start);if(a.start!==void 0&&o===void 0){n.problem(`start is a date (2026-03-02, Q1 2027, Mar 2027), not ${JSON.stringify(a.start)}.`,["items",e.at,"start"]),y.add(u);continue}if(o===void 0&&e.t.depends.length>0){if(!e.t.depends.every(x=>y.has(x)&&i[x]?.t.end!==void 0))continue;const w=Math.max(...e.t.depends.map(x=>i[x]?.t.end??0));o={day:w,after:w+1}}const f=dateOf(a.end);a.end!==void 0&&f===void 0&&n.problem(`end is a date (2026-03-02, Q1 2027, Mar 2027), not ${JSON.stringify(a.end)}.`,["items",e.at,"end"]);const m=o===void 0&&f!==void 0;if(o===void 0&&f!==void 0&&(o={day:f.day,after:f.after}),o===void 0){(r===i.length||e.t.depends.length===0)&&(n.problem("a task has a start (or depends on a task before it), and an end or a duration.",["items",e.at]),y.add(u));continue}let l;a.duration!==void 0&&(l=_(o.day,a.duration),l===void 0&&n.problem(`duration is days (5), or 5d, 2w, 3 months; not ${JSON.stringify(a.duration)}.`,["items",e.at,"duration"])),l===void 0&&f!==void 0&&!m&&(l=f.after);const N=e.t.milestone===!0||l===void 0||l<=o.day;e.t.start=o.day,e.t.end=N?o.day:Math.max(l??o.day,o.day),e.t.milestone=N,y.add(u)}const d=[],c=new Map;for(const[r,u]of i.entries())u.t.start!==void 0&&u.t.end!==void 0&&(c.set(r,d.length),d.push(u.t));for(const r of d)r.depends=r.depends.flatMap(u=>{const e=c.get(u);return e===void 0?[]:[e]});d.length===0&&n.problem("a Gantt has tasks: name, start, and an end or a duration.",[]);const g=[];for(const r of d)r.group!==void 0&&!g.includes(r.group)&&g.push(r.group);const h=dateOf(t.today);t.today!==void 0&&h===void 0&&n.problem(`today is a date (2026-11-24), not ${JSON.stringify(t.today)}.`,["today"]);const $=t.scale;return{kind:"gantt",tasks:d,groups:g,...h===void 0?{}:{today:h.day},...$===void 0?{}:{scale:$},...n.alt()}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{formatValue as y}from"@allyhub/chart";import{formatDate as l,formatNumber as $}from"./format.js";import{isoOf as i}from"./flow-resolve.js";const c={source:"From",target:"To",value:"Value",task:"Task",lane:"Lane",start:"Start",end:"End",progress:"Progress",after:"After",today:"today"},g={en:c,zh:{source:"来源",target:"去向",value:"数值",task:"任务",lane:"分组",start:"开始",end:"结束",progress:"进度",after:"前置任务",today:"今天"},"zh-hant":{source:"來源",target:"去向",value:"數值",task:"任務",lane:"分組",start:"開始",end:"結束",progress:"進度",after:"前置任務",today:"今天"},ja:{source:"流出元",target:"流入先",value:"値",task:"タスク",lane:"グループ",start:"開始",end:"終了",progress:"進捗",after:"先行タスク",today:"今日"},ko:{source:"출발",target:"도착",value:"값",task:"작업",lane:"그룹",start:"시작",end:"종료",progress:"진행률",after:"선행 작업",today:"오늘"},es:{source:"Origen",target:"Destino",value:"Valor",task:"Tarea",lane:"Grupo",start:"Inicio",end:"Fin",progress:"Progreso",after:"Después de",today:"hoy"},pt:{source:"Origem",target:"Destino",value:"Valor",task:"Tarefa",lane:"Grupo",start:"Início",end:"Fim",progress:"Progresso",after:"Depois de",today:"hoje"},de:{source:"Von",target:"Nach",value:"Wert",task:"Aufgabe",lane:"Gruppe",start:"Beginn",end:"Ende",progress:"Fortschritt",after:"Nach Vorgänger",today:"heute"},fr:{source:"De",target:"Vers",value:"Valeur",task:"Tâche",lane:"Groupe",start:"Début",end:"Fin",progress:"Avancement",after:"Après",today:"aujourd’hui"}};function d(e){const r=(e??"en").toLowerCase();return r.startsWith("zh")?(/hant|tw|hk|mo/u.test(r)?g["zh-hant"]:g.zh)??c:g[r.split("-")[0]??"en"]??c}const m=(e,r,a)=>e.format===void 0?$(r,a):y(r,e.format),f=e=>e.milestone?e.start:Math.max(e.start,e.end-1);export function blockDataTable(e,r){const a=d(r);if(e.kind==="sankey")return{columns:[a.source,a.target,a.value],numeric:[!1,!1,!0],rows:e.links.map(t=>[e.nodes[t.source]?.label??"",e.nodes[t.target]?.label??"",m(e,t.value,r)])};if(e.kind==="gantt"){const t=e.groups.length>0,u=e.tasks.some(s=>s.progress!==void 0),n=e.tasks.some(s=>s.depends.length>0);return{columns:[a.task,...t?[a.lane]:[],a.start,a.end,...u?[a.progress]:[],...n?[a.after]:[]],numeric:[!1,...t?[!1]:[],!1,!1,...u?[!0]:[],...n?[!1]:[]],rows:e.tasks.map(s=>[s.name,...t?[s.group??""]:[],l(i(s.start),r),l(i(f(s)),r),...u?[s.progress===void 0?"":`${String(Math.round(s.progress*100))}%`]:[],...n?[s.depends.map(p=>e.tasks[p]?.name??"").join(", ")]:[]])}}}export function sankeyAlt(e,r,a){return e.links.map(t=>`${e.nodes[t.source]?.label??""} → ${e.nodes[t.target]?.label??""} ${m(e,t.value,a)}`).join(r)}export function ganttAlt(e,r,a,t){const u=d(t),n=o=>`${o.name} ${l(i(o.start),t)}${o.milestone?"":` – ${l(i(f(o)),t)}`}${o.progress===void 0?"":` (${String(Math.round(o.progress*100))}%)`}`,s=e.tasks.filter(o=>o.group===void 0).map(n),p=e.groups.map(o=>`${o}${r}${e.tasks.filter(h=>h.group===o).map(n).join(", ")}`),k=e.today===void 0?[]:[`${u.today} ${l(i(e.today),t)}`];return[...s,...p,...k].join(a)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export function formatNumber(t,e){return new Intl.NumberFormat(e??"en",{maximumFractionDigits:3}).format(t)}const m=/^(\d{4})-(\d{2})(?:-(\d{2}))?$/u;export const isIsoDate=t=>m.test(t.trim());export function formatDate(t,e,n=!1){const r=m.exec(t.trim());if(!r)return t;const i=n||r[3]===void 0,o=new Date(Date.UTC(Number(r[1]),Number(r[2])-1,Number(r[3]??"1")));if(Number.isNaN(o.getTime()))return t;if(e===void 0||/^en\b/iu.test(e)){const u=new Intl.DateTimeFormat("en-US",{month:"short",timeZone:"UTC"}).format(o);return i?`${u} ${String(o.getUTCFullYear())}`:`${String(o.getUTCDate())} ${u} ${String(o.getUTCFullYear())}`}return new Intl.DateTimeFormat(e,{...i?{}:{day:"numeric"},month:"short",year:"numeric",timeZone:"UTC"}).format(o)}export function areMonths(t){const e=t.filter(n=>n!==void 0&&isIsoDate(n));return e.length>0&&e.every(n=>(m.exec(n.trim())?.[3]??"01")==="01")}export function formatDay(t,e){const n=m.exec(t.trim());if(n?.[3]===void 0)return formatDate(t,e);const r=new Date(Date.UTC(Number(n[1]),Number(n[2])-1,Number(n[3])));return Number.isNaN(r.getTime())?t:e===void 0||/^en\b/iu.test(e)?`${String(r.getUTCDate())} ${new Intl.DateTimeFormat("en-US",{month:"short",timeZone:"UTC"}).format(r)}`:new Intl.DateTimeFormat(e,{day:"numeric",month:"short",timeZone:"UTC"}).format(r)}export function formatMonth(t,e,n=!1){const r=new Date(t*864e5);return new Intl.DateTimeFormat(e===void 0||/^en\b/iu.test(e)?"en-US":e,{month:"short",...n?{year:"numeric"}:{},timeZone:"UTC"}).format(r)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{TYPE_STEPS as st}from"@allyhub/formats";import{formatDate as A}from"./format.js";import{isoOf as B}from"./flow-resolve.js";import{add as p,LINE as G,textMark as q}from"./layout.js";const Q=864e5,dt=t=>{const e=new Date(t*Q);return{y:e.getUTCFullYear(),m:e.getUTCMonth(),d:e.getUTCDate(),w:e.getUTCDay()}},E=(t,e,c=1)=>Date.UTC(t,e,c)/Q;export function ganttScaleOf(t){return t<=31?"day":t<=120?"week":t<=760?"month":t<=2200?"quarter":"year"}function v(t,e){const c=dt(e);switch(t){case"day":return{start:Math.floor(e),end:Math.floor(e)+1};case"week":{const u=Math.floor(e)-(c.w+6)%7;return{start:u,end:u+7}}case"month":return{start:E(c.y,c.m),end:E(c.y,c.m+1)};case"quarter":{const u=Math.floor(c.m/3)*3;return{start:E(c.y,u),end:E(c.y,u+3)}}case"year":return{start:E(c.y,0),end:E(c.y+1,0)}}}function ft(t,e,c){const u=new Date(e*Q),s=c??"en";switch(t){case"day":return String(u.getUTCDate());case"week":return new Intl.DateTimeFormat(s==="en"?"en-GB":s,{day:"numeric",month:"short",timeZone:"UTC"}).format(u);case"month":return new Intl.DateTimeFormat(s,{month:"short",timeZone:"UTC"}).format(u);case"quarter":return`Q${String(Math.floor(u.getUTCMonth()/3)+1)}`;case"year":return String(u.getUTCFullYear())}}const rt={day:"month",week:"month",month:"year",quarter:"year",year:void 0};function it(t,e,c,u){const s=[];let m=v(t,e).start;for(;m<c&&s.length<2e3;){const h=v(t,m),y=t==="month"&&rt[t]===void 0?A(B(h.start).slice(0,7),u):ft(t,h.start,u);s.push({start:h.start,end:h.end,label:y}),m=h.end}return s}export function ganttSpan(t){const e=t.tasks.flatMap(m=>[m.start,m.end]);t.today!==void 0&&e.push(t.today);const c=e.length>0?Math.min(...e):E(2026,0),u=e.length>0?Math.max(...e,c+1):c+30,s=t.scale??ganttScaleOf(u-c);return{lo:v(s,c).start,hi:v(s,u-1e-6).end,scale:s}}export function ganttColor(t,e){if(e.color!==void 0)return e.color;if(e.status!==void 0&&e.status!=="neutral")return e.status;const c=e.group===void 0?0:t.groups.indexOf(e.group);return`accent${String(Math.max(0,c)%6+1)}`}function xt(t,e,c){const u=[],s=[...e].sort((m,h)=>(t.tasks[m]?.start??0)-(t.tasks[h]?.start??0)||m-h);for(const m of s){const h=c(m),y=u.find($=>$.to<=h.from);y?(y.tasks.push(m),y.to=h.to):u.push({tasks:[m],to:h.to})}return u.map(m=>m.tasks)}export function ganttLayout(t,e,c,u){const s=t.s,m=st.label*s,h=st.caption*s,y=8*s,{lo:$,hi:H,scale:J}=ganttSpan(e),P=rt[J],K=h*G+6*s,_=K*(P===void 0?1:2),ct=e.groups.length>0,C=[],V=e.tasks.flatMap((n,o)=>n.group===void 0?[o]:[]);V.length>0&&C.push({tasks:V});for(const n of e.groups)C.push({name:n,tasks:e.tasks.flatMap((o,a)=>o.group===n?[a]:[])});const X=C.flatMap((n,o)=>[...n.name===void 0?[]:[{lane:n.name,in:o,tasks:[]}],...n.tasks.map(a=>({in:o,tasks:[a]}))]),lt=m*1.7,tt=m*2.1,nt=e.today!==void 0&&e.today>=$&&e.today<=H,U=nt?h*G+4*s:0,S=u!==void 0&&X.length*lt>u-_-U,N=ct&&!S?10*s:0,et=Math.max(0,...S?C.map(n=>n.name===void 0?0:t.measure(n.name,m,700)):[...e.tasks.map(n=>t.measure(n.name,m,400)+N),...e.groups.map(n=>t.measure(n,m,700))]),I=et===0?0:Math.min(c*(S?.22:.34),et+y*1.5),L=I,k=c-4*s,D=(k-L)/Math.max(1,H-$),g=n=>L+(n-$)*D,mt=n=>{const o=e.tasks[n];if(!o)return{from:0,to:0};const a=t.measure(o.name,h,500)+y,l=o.milestone?m:0,r=o.start-(o.milestone?l/2/D:0),f=(o.end-o.start)*D,i=(!o.milestone&&f>=a+y?o.end:Math.max(o.end,o.start)+(a+l/2)/D)+y/D;return{from:r,to:i}},O=S?C.flatMap((n,o)=>xt(e,n.tasks,mt).map(a=>({in:o,tasks:a}))):X,W=O.map(n=>n.in),Y=u??_+O.length*tt+4*s+U,T=Math.max(6*s,Math.min(tt*1.4,(Y-_-U-4*s)/Math.max(1,O.length)));T<m*G&&t.overflow.push("rows");const M=_,Z=it(J,$,H,t.lang);Z.forEach((n,o)=>{o%2===1&&p(t,{type:"rect",part:`bands/${String(o)}`,x:g(n.start),y:M,w:g(n.end)-g(n.start),h:Y-M-U,r:0,fill:"stripe",line:"none",lineWidth:0})}),O.forEach((n,o)=>{if(o===0||W[o]===W[o-1])return;const a=M+o*T;p(t,{type:"line",part:`lanes/${String(W[o]??0)}`,x1:0,y1:a,x2:c,y2:a,color:"rule",width:.75*s,dash:!1})});const ut=P===void 0?[]:it(P,$,H,t.lang),at=n=>n*K+3*s;ut.forEach((n,o)=>{const a=Math.max(L,g(n.start)),l=Math.min(k,g(n.end));if(l-a<8*s)return;o>0&&p(t,{type:"line",part:`header/upper/${String(o)}/rule`,x1:g(n.start),y1:0,x2:g(n.start),y2:Y-U,color:"rule",width:.75*s,dash:!1});const r=P==="month"?A(B(n.start).slice(0,7),t.lang):n.label;if(t.measure(r,h,600)>l-a-6*s)return;const f=q(t,`header/upper/${String(o)}`,r,{x:a+4*s,y:at(0),w:l-a-6*s,size:h,weight:600,color:"muted",max:1});p(t,f.mark)});const ot=Math.max(1,...Z.map(n=>t.measure(n.label,h,400))),ht=Z.length>0?(k-L)/Z.length:k-L,R=Math.max(1,Math.ceil((ot+6*s)/ht));Z.forEach((n,o)=>{if(o%R!==0||R>1&&g(n.start)+2*s+t.measure(n.label,h,400)>k+.5)return;const a=q(t,`header/lower/${String(o)}`,n.label,{x:g(n.start),y:at(P===void 0?0:1),w:Math.max(ot,g(n.end)-g(n.start)),size:h,color:"muted",align:R===1?"center":"left",max:1,tabular:!0});R>1&&(a.mark.x+=2*s),p(t,a.mark)}),p(t,{type:"line",part:"header/rule",x1:0,y1:M,x2:c,y2:M,color:"rule-strong",width:.75*s,dash:!1}),I>0&&(S?C.forEach((n,o)=>{if(n.name===void 0)return;const a=W.flatMap((f,x)=>f===o?[x]:[]);if(a.length===0)return;const l=M+((a[0]??0)+a.length/2)*T,r=q(t,`lanes/${String(o)}/name`,n.name,{x:0,y:0,w:I-y,size:m,weight:700,color:"text",max:2});r.mark.y=l-r.height/2,p(t,r.mark)}):O.forEach((n,o)=>{const a=M+(o+.5)*T,l=n.lane,r=n.tasks[0],f=l??(r===void 0?"":e.tasks[r]?.name??""),x=q(t,l!==void 0?`lanes/${String(W[o]??0)}/name`:`tasks/${String(r??0)}/name`,f,{x:l!==void 0?0:N,y:0,w:I-y-(l!==void 0?0:N),size:m,weight:l!==void 0?700:400,color:l!==void 0?"text":"body",max:1});x.mark.y=a-x.height/2,p(t,x.mark)}));const F=new Map,z=Math.min(T*.58,m*1.5);if(O.forEach((n,o)=>{const a=M+(o+.5)*T;for(const l of n.tasks){const r=e.tasks[l];if(!r)continue;const f=ganttColor(e,r),x=`tasks/${String(l)}`;if(r.milestone){const i=Math.min(T*.66,z*1.15),d=g(r.start);p(t,{type:"path",part:`${x}/milestone`,x:d-i/2,y:a-i/2,w:i,h:i,segs:[["M",d,a-i/2],["L",d+i/2,a],["L",d,a+i/2],["L",d-i/2,a],["Z"]],fill:f,line:"none",lineWidth:0,preset:"diamond"}),F.set(l,{y:a,xa:d-i/2,xb:d+i/2})}else{const i=g(r.start),d=Math.max(2*s,(r.end-r.start)*D),w=Math.min(3*s,z/2,d/2),b=r.progress;p(t,{type:"rect",part:`${x}/bar`,x:i,y:a-z/2,w:d,h:z,r:w,fill:b===void 0?f:`${f}~32`,line:"none",lineWidth:0}),b!==void 0&&b>0&&p(t,{type:"rect",part:`${x}/progress`,x:i,y:a-z/2,w:Math.max(Math.min(d,2*w),d*b),h:z,r:w,fill:f,line:"none",lineWidth:0}),F.set(l,{y:a,xa:i,xb:i+d})}if(S||r.milestone){const i=F.get(l);if(!i)continue;const d=t.measure(r.name,h,500),w=!r.milestone&&i.xb-i.xa>=d+2*y,b=!w&&i.xb+4*s+d>k&&i.xa-4*s-d>=L,j=q(t,S?`${x}/name`:`${x}/label`,r.name,{x:w?i.xa+y*.75:b?i.xa-4*s-d-2:i.xb+4*s,y:0,w:w?i.xb-i.xa-y*1.5:b?d+2:Math.max(d+2,k-i.xb-4*s),size:h,weight:500,color:w?`on:${f}`:"text",align:b?"right":"left",max:1});j.mark.y=i.y-j.height/2,p(t,j.mark)}}}),e.tasks.forEach((n,o)=>{const a=F.get(o);if(a)for(const l of n.depends){const r=F.get(l);if(!r)continue;const f=5*s,x=a.xa-r.xb>=2*f?[["M",r.xb,r.y],["L",r.xb+f,r.y],["L",r.xb+f,a.y],["L",a.xa,a.y]]:[["M",r.xb,r.y],["L",r.xb+f,r.y],["L",r.xb+f,(r.y+a.y)/2],["L",a.xa-f,(r.y+a.y)/2],["L",a.xa-f,a.y],["L",a.xa,a.y]],i=x.flatMap(w=>w[0]==="Z"?[]:[w[1]]),d=x.flatMap(w=>w[0]==="Z"?[]:[w[2]]);p(t,{type:"path",part:`tasks/${String(o)}/depends/${String(l)}`,x:Math.min(...i),y:Math.min(...d),w:Math.max(...i)-Math.min(...i),h:Math.max(...d)-Math.min(...d),segs:x,fill:"none",line:"muted",lineWidth:1*s,arrow:!0})}}),e.today!==void 0&&nt){const n=g(e.today),o=Y-U;p(t,{type:"line",part:"today",x1:n,y1:M,x2:n,y2:o+2*s,color:"bad",width:1.25*s,dash:!0});const a=A(B(e.today),t.lang),l=t.measure(a,h,600)+2,r=q(t,"today/date",a,{x:Math.max(L,Math.min(k-l,n-l/2)),y:o+3*s,w:l,size:h,weight:600,color:"bad",max:1});p(t,r.mark)}return Y}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{chartTypeOf as X,TYPE_STEPS as k}from"@allyhub/formats";import{chartOfFile as Y,formatValue as I,isHorizontal as J}from"@allyhub/chart";import{formatNumber as R}from"./format.js";import{LINE as E,plotHeight as Q,textMark as Z}from"./layout.js";import{readAddress as ee}from"./resolve.js";const F=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&t!==null&&!Array.isArray(t)),j=e=>{if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()!==""){const t=Number(e.replace(/[,%$€£\s]/gu,""));return Number.isFinite(t)?t:null}return null},L=e=>typeof e=="string"?e:typeof e=="number"||typeof e=="boolean"?String(e):"",O=(e,t)=>e===void 0?void 0:t in e?t:Object.keys(e).find(i=>i.toLowerCase()===t.toLowerCase());function V(e,t){if(t.data===void 0){t.problem(`${e} cannot be read here.`,["data"]);return}const i=ee(e,t.data);if(F(i)&&i.length>0)return i;if(Array.isArray(i)&&i.every(Array.isArray))return i.map(s=>s.map(j));t.problem(i===void 0?`${e} is not there: name a table (#sales) or a CSV.`:`${e} holds no rows.`,["data"])}export function niceScale(e,t,i=4){if(!Number.isFinite(e)||!Number.isFinite(t))return{min:0,max:1,major:.25};t===e&&(t=e+(Math.abs(e)||1),e=Math.min(0,e));const s=(t-e)/i,a=10**Math.floor(Math.log10(s)),n=([1,2,2.5,5,10].find(d=>d*a>=s)??10)*a,r=d=>Math.round(d*1e9)/1e9;return{min:r(Math.floor(e/n+1e-9)*n),max:r(Math.ceil(t/n-1e-9)*n),major:r(n)}}const te={top_left:0,tl:0,upper_left:0,top_right:1,tr:1,upper_right:1,bottom_left:2,bl:2,lower_left:2,bottom_right:3,br:3,lower_right:3,1:0,2:1,3:2,4:3},P=e=>e.trim().toLowerCase().replace(/[-\s]+/gu,"_");function ne(e,t,i){let s=Array.isArray(e.items)?e.items:[];if(s.length===0&&typeof e.data=="string"){const l=V(e.data,t);if(l!==void 0&&F(l)){const p=e.columns??{};s=l.map(h=>{const x={};for(const w of["name","x","y","quadrant","color","status"]){const A=O(h,p[w]??w);A!==void 0&&(x[w]=h[A])}if(x.name===void 0){const w=Object.keys(h).find(A=>typeof h[A]=="string");w!==void 0&&(x.name=h[w])}return x})}}const a=Array.isArray(e.quadrants)?e.quadrants.map((l,p)=>i(["quadrants",p],l)):[void 0,void 0,void 0,void 0],n=(l,p)=>{const h=e[l]??{},x=Math.min(...p),w=Math.max(...p),A=niceScale(p.length===0?0:Math.min(0,x),p.length===0?10:w,4),v=typeof h.min=="number"?h.min:A.min,b=typeof h.max=="number"?h.max:A.max,o={min:v,max:b,split:typeof h.split=="number"?h.split:(v+b)/2};for(const u of["title","low","high"]){const f=i([l,u],h[u]);f!==void 0&&(o[u]=f)}return o},r=s.map(l=>j(l.x)).filter(l=>l!==null),d=s.map(l=>j(l.y)).filter(l=>l!==null),m=n("x_axis",r),y=n("y_axis",d),g=s.map((l,p)=>{const h=i(["items",p,"name"],l.name)??"",x=j(l.x),w=j(l.y);let A=0;if(x!==null&&w!==null)A=(w>=y.split?0:2)+(x>=m.split?1:0);else if(typeof l.quadrant=="string"||typeof l.quadrant=="number"){const b=String(l.quadrant),o=a.findIndex(f=>f!==void 0&&P(f)===P(b)),u=te[P(b)]??(o>=0?o:void 0);u===void 0&&t.problem(`${b} is no quadrant: top-left, top-right, bottom-left, bottom-right, 1 to 4, or a quadrant's name.`,["items",p,"quadrant"]),A=u??0}const v=typeof l.color=="string"?l.color:typeof l.status=="string"&&l.status!=="accent1"?l.status:void 0;return{name:h,quadrant:A,...x===null?{}:{x},...w===null?{}:{y:w},...v===void 0?{}:{color:v}}});if(g.length===0){t.problem("a matrix has an item.",["items"]);return}const c=g.every(l=>l.x!==void 0&&l.y!==void 0);return{kind:"matrix",items:g,x:m,y,quadrants:a,scored:c}}function ae(e,t,i){const s=Array.isArray(e.series)?e.series:[];if(typeof e.data=="string"){const n=V(e.data,t);if(n===void 0||!F(n))return;const r=n[0]??{},d=Array.isArray(e.categories)?e.categories:[],m=(d.length===1?O(r,d[0]??""):void 0)??Object.keys(r).find(c=>typeof r[c]=="string");if(m===void 0){t.problem(`${e.data} has no column of words for its categories: name it (categories: <its column>).`,["data"]);return}const y=s.length>0?s.map(c=>typeof c=="string"?c:String(c.name)):Object.keys(r).filter(c=>c!==m&&j(r[c])!==null),g=y.filter(c=>O(r,c)===void 0);return g.length>0&&t.problem(`${e.data} has no column ${g.join(", ")} (it has ${Object.keys(r).join(", ")}).`,["data"]),{categories:n.map(c=>L(c[m])),series:y.filter(c=>O(r,c)!==void 0).map((c,l)=>{const p=s[l],h=typeof p=="object"&&typeof p.color=="string"?p.color:void 0;return{name:c,values:n.map(x=>j(x[O(x,c)??c])??0),...h===void 0?{}:{color:h}}})}}const a=Array.isArray(e.categories)?e.categories.map((n,r)=>i(["categories",r],n)??n):[];return{categories:a,series:s.flatMap((n,r)=>{if(typeof n=="string")return t.problem(`series ${n} names a column: give data, or its values ({ name, values }).`,["series",r]),[];const d=i(["series",r,"name"],n.name)??"",m=Array.isArray(n.values)?n.values.map(y=>j(y)??0):[];return m.length!==a.length&&t.problem(`series ${d} has ${String(m.length)} values for ${String(a.length)} categories.`,["series",r]),[{name:d,values:m,...typeof n.color=="string"?{color:n.color}:{}}]})}}function se(e,t,i){const s=ae(e,t,i);if(s===void 0||s.categories.length===0){s!==void 0&&t.problem("a Marimekko has a category.",["categories"]);return}const a=s.categories.map((r,d)=>s.series.reduce((m,y)=>m+Math.max(0,y.values[d]??0),0)),n=Array.isArray(e.widths)?e.widths.map(r=>j(r)??0):void 0;return n!==void 0&&n.length!==s.categories.length&&t.problem(`widths has ${String(n.length)} for ${String(s.categories.length)} categories.`,["widths"]),s.series.some(r=>r.values.some(d=>d<0))&&t.problem("a Marimekko's values are shares of a whole: none is below zero.",["series"]),{kind:"marimekko",categories:s.categories,series:s.series,widths:s.categories.map((r,d)=>n?.[d]??a[d]??0),labels:e.labels==="value"||e.labels==="none"?e.labels:"share",...typeof e.format=="string"?{format:e.format}:{}}}function re(e,t,i){let s=Array.isArray(e.rows)?e.rows:[],a=Array.isArray(e.columns)?e.columns:[],n=Array.isArray(e.values)?e.values:[];const r=typeof e.data=="string"?e.data:void 0;if(n.length===0&&r!==void 0){const c=V(r,t);if(c===void 0)return;if(F(c)){const l=c[0]??{},p=Object.keys(l).find(x=>typeof l[x]=="string"&&j(l[x])===null),h=Object.keys(l).filter(x=>x!==p);a.length===0&&(a=h),s.length===0&&(s=c.map((x,w)=>p===void 0?String(w+1):L(x[p]))),n=c.map(x=>h.map(w=>j(x[w])))}else n=c,s.length===0&&(s=n.map(()=>"")),a.length===0&&(a=(n[0]??[]).map(()=>""))}if(n.length===0){t.problem("a heatmap has values, or data.",["values"]);return}const d=n.flat().filter(c=>c!==null),m=typeof e.min=="number"?e.min:Math.min(...d),y=typeof e.max=="number"?e.max:Math.max(...d),g=i(["title"],e.title);return{kind:"heatmap",rows:s.map((c,l)=>i(["rows",l],c)??c),columns:a.map((c,l)=>i(["columns",l],c)??c),values:n,color:typeof e.color=="string"?e.color:"accent1",min:Number.isFinite(m)?m:0,max:Number.isFinite(y)?y:1,showValues:e.show_values!==!1,...typeof e.low_color=="string"?{low:e.low_color}:typeof e.mid=="number"?{low:"accent2"}:{},...typeof e.mid=="number"?{mid:e.mid}:{},...typeof e.format=="string"?{format:e.format}:{},...g===void 0?{}:{title:g},...r===void 0?{}:{source:r}}}const D=["accent1","accent2","accent3","accent4","accent5","accent6"];function ie(e,t,i){const s=e.chart??{},a=X(typeof s.type=="string"?s.type:"column");let n=Array.isArray(e.categories)?e.categories:[],r=[];if(Array.isArray(e.panels))r=e.panels.map((o,u)=>({title:i(["panels",u,"title"],o.title)??"",series:Array.isArray(o.series)?o.series.flatMap((f,$)=>typeof f=="string"?[]:[{name:i(["panels",u,"series",$,"name"],f.name)??"",values:Array.isArray(f.values)?f.values.map(j):[],...typeof f.color=="string"?{color:f.color}:{}}]):[{name:Array.isArray(e.series)&&typeof e.series[0]?.name=="string"?String(e.series[0]?.name):i(["panels",u,"title"],o.title)??"",values:Array.isArray(o.values)?o.values.map(j):[]}]}));else if(typeof e.data=="string"&&typeof e.by=="string"){const o=V(e.data,t);if(o===void 0||!F(o))return;const u=o[0]??{},f=O(u,e.by);if(f===void 0){t.problem(`${e.data} has no column ${e.by} (it has ${Object.keys(u).join(", ")}).`,["by"]);return}const $=(n.length===1?O(u,n[0]??""):void 0)??Object.keys(u).find(M=>M!==f&&typeof u[M]=="string");if($===void 0){t.problem(`${e.data} has no column of words for its categories: name it (categories: <its column>).`,["categories"]);return}const S=Array.isArray(e.series)?e.series:[],_=S.length>0?S.map(M=>typeof M=="string"?M:String(M.name)):Object.keys(u).filter(M=>M!==f&&M!==$&&j(u[M])!==null);n=[...new Set(o.map(M=>L(M[$])))],r=[...new Set(o.map(M=>L(M[f])))].map(M=>({title:M,series:_.map(N=>({name:N,values:n.map(K=>{const B=o.find(G=>L(G[f])===M&&L(G[$])===K);return B===void 0?null:j(B[O(B,N)??N])})}))}))}if(r.length===0){t.problem("small multiples have a panel.",["panels"]);return}n=n.map((o,u)=>i(["categories",u],o)??o);const d=Math.max(0,...r.flatMap(o=>o.series.map(u=>u.values.length)));n.length===0&&(n=Array.from({length:d},(o,u)=>String(u+1)));const m=Math.max(...r.map(o=>o.series.length)),y=Array.from({length:m},(o,u)=>r.find(f=>f.series[u]!==void 0)?.series[u]?.name??""),g=o=>r.map(u=>u.series[o]?.color).find(u=>u!==void 0),c=o=>g(o)??(typeof s.color=="string"&&m===1?s.color:D[o%6]??"accent1"),l=[];for(const o of r)if(a.includes("stacked"))n.forEach((u,f)=>{l.push(o.series.reduce(($,S)=>$+Math.max(0,S.values[f]??0),0)),l.push(o.series.reduce(($,S)=>$+Math.min(0,S.values[f]??0),0))});else for(const u of o.series)for(const f of u.values)f!==null&&l.push(f);const p=Math.min(0,...l),h=Math.max(0,...l),w=a.includes("100")?{min:0,max:1,major:.25}:niceScale(p,h,4),A=e.shared!==!1,v=typeof e.format=="string"?e.format:void 0,b={...s};return delete b.type,delete b.color,{kind:"small_multiples",panels:r.map(o=>({title:o.title,chart:{...b,type:a,categories:n,series:o.series.map((u,f)=>({name:u.name,values:u.values,color:c(f)})),value_axis:{...b.value_axis??{},...A?{min:w.min,max:w.max,major:w.major}:{},...v===void 0?{}:{format:v}}}})),...typeof e.columns=="number"?{columns:Math.max(1,Math.round(e.columns))}:{},legend:m>1?y.map((o,u)=>({name:o,color:c(u)})):[]}}export function gridOf(e,t){const i=e.fields,s=(r,d)=>t.words?.(r)??(typeof d=="string"?d:void 0),a=s(["alt"],i.alt),n=e.kind==="matrix"?ne(i,t,s):e.kind==="marimekko"?se(i,t,s):e.kind==="heatmap"?re(i,t,s):ie(i,t,s);return n===void 0?void 0:a===void 0?n:{...n,alt:a}}const C=(e,t)=>{e.marks.push(t)};function z(e,t,i,s){const a=s.probe===!0?{...e,marks:[],overflow:[]}:e,n=Z(a,t,i,{...s,w:Math.max(1,s.w)});return s.probe!==!0&&C(e,n.mark),n.height}const W=(e,t,i,s=400)=>e.measure(t.replace(/\*+/gu,""),i,s),T=(e,t,i)=>Math.max(t,Math.min(i,e));export function matrixChart(e,t){const i=s=>({min:s.min,max:s.max,crosses_at:s.split,gridlines:!1,labels:"none",tick_marks:"none",line_color:"tx1 alpha 40%"});return{type:"scatter",series:e.items.map(s=>({name:s.name||" ",values:[s.y??0],x:[s.x??0],color:U(s.color??"accent1"),marker:"circle",marker_size:Math.round(k.label*t*.75*10)/10,labels:{series:!0,value:!1,position:(s.x??0)>e.x.max-(e.x.max-e.x.min)*.25?"l":"r",size:Math.round(k.label*t*10)/10}})),value_axis:i(e.y),category_axis:i(e.x),size:Math.round(k.label*t*10)/10}}function U(e){return{good:"#2E7D4F",warning:"#A35400",bad:"#B3362C",info:"#3E54CE",neutral:"#6B635E"}[e]??e}function oe(e,t,i,s){const a=e.s,n=s??Q(i),r=k.label*a,d=r*E,m=t.y.title!==void 0||t.y.low!==void 0||t.y.high!==void 0,y=t.x.title!==void 0||t.x.low!==void 0||t.x.high!==void 0,g=m?T(Math.max(...[t.y.title,t.y.low,t.y.high].map(o=>o===void 0?0:W(e,o,r,600)))+8*a,40*a,i*.18):0,c=y?d+6*a:0,l=g,p=i-g,h=n-c;if(m){const o=(u,f,$,S)=>{const _=W(e,f,r,S?600:400)>g-6*a;return z(e,u,f,{x:0,y:$-(_?d:d/2),w:g-6*a,size:r,...S?{weight:600}:{},color:S?"text":"muted",align:"right",max:2})};t.y.high!==void 0&&o("y_axis/high",t.y.high,h/4,!1),t.y.title!==void 0&&o("y_axis/title",t.y.title,h/2,!0),t.y.low!==void 0&&o("y_axis/low",t.y.low,h*3/4,!1)}if(y){const o=h+6*a,u=(f,$,S,_)=>z(e,f,$,{x:l+S-p/6,y:o,w:p/3,size:r,..._?{weight:600}:{},color:_?"text":"muted",align:"center",max:1});t.x.low!==void 0&&u("x_axis/low",t.x.low,p/4,!1),t.x.title!==void 0&&u("x_axis/title",t.x.title,p/2,!0),t.x.high!==void 0&&u("x_axis/high",t.x.high,p*3/4,!1)}const x=k.label*a;if(t.scored){const o=matrixChart(t,a),u=Y(o,{title:void 0,base:"",rows:()=>{},problem:()=>{},size:{width:p,height:h}});return u!==void 0&&C(e,{type:"chart",part:"chart",x:l,y:0,w:p,h,chart:u,file:o}),t.quadrants.forEach((f,$)=>{if(f===void 0)return;const S=$%2===1,_=$>=2;z(e,`quadrants/${String($)}`,f,{x:l+(S?p/2+4*a:4*a),y:_?h-4*a-x*E:4*a,w:p/2-8*a,size:x,weight:700,color:"muted",align:S?"right":"left",max:1})}),n}const w=8*a,A=(p-w)/2,v=(h-w)/2,b=k.body*a;for(let o=0;o<4;o++){const u=l+o%2*(A+w),f=Math.floor(o/2)*(v+w);C(e,{type:"rect",part:`quadrants/${String(o)}/box`,x:u,y:f,w:A,h:v,r:6*a,fill:"well",line:"none",lineWidth:0});let $=f+10*a;const S=t.quadrants[o];S!==void 0&&($+=4*a+z(e,`quadrants/${String(o)}/name`,S,{x:u+12*a,y:$,w:A-24*a,size:x,weight:700,color:"muted",max:1})),t.items.forEach((_,H)=>{if(_.quadrant!==o)return;const M=z(e,`items/${String(H)}`,`• ${_.name}`,{x:u+12*a,y:$,w:A-24*a,size:b,color:_.color??"text",max:2});$+=M+2*a}),$>f+v+.5&&e.overflow.push(`quadrants/${String(o)}`)}return n}function le(e,t,i,s){const a=e.s,n=s??Q(i),r=k.label*a,d=r*E,m=T(Math.max(...t.series.map(v=>W(e,v.name,r)))+12*a,40*a,i*.24),y=d*2+6*a,g=d+4*a,c=i-m,l=n-y-g,p=t.widths.reduce((v,b)=>v+Math.max(0,b),0)||1,h=2*a;let x=0;const w=[];t.categories.forEach((v,b)=>{const o=Math.max(0,t.widths[b]??0)/p*c,u=t.series.reduce((S,_)=>S+Math.max(0,_.values[b]??0),0)||1;let f=g;t.series.forEach((S,_)=>{const H=Math.max(0,S.values[b]??0),M=H/u*l,N=S.color??D[_%6]??"accent1";if(C(e,{type:"rect",part:`columns/${String(b)}/${String(_)}`,x,y:f,w:Math.max(0,o-h),h:M,r:0,fill:N,line:"ground",lineWidth:Math.min(1,M/4)*a}),t.labels!=="none"&&M>d+2*a){const K=t.labels==="value"?t.format!==void 0?I(H,t.format):R(H,e.lang):`${String(Math.round(H/u*100))}%`;W(e,K,k.caption*a,600)<o-6*a&&z(e,`columns/${String(b)}/${String(_)}/label`,K,{x:x+2*a,y:f+(M-k.caption*a*E)/2,w:o-h-4*a,size:k.caption*a,weight:600,color:`on:${N}`,align:"center",max:1})}b===t.categories.length-1&&(w[_]={y:f,h:M}),f+=M});const $=t.format!==void 0?I(t.widths[b]??0,t.format):R(t.widths[b]??0,e.lang);W(e,$,k.caption*a)<o&&z(e,`columns/${String(b)}/total`,$,{x,y:0,w:o-h,size:k.caption*a,color:"muted",align:"center",max:1}),z(e,`columns/${String(b)}/name`,v,{x,y:g+l+4*a,w:o-h,size:r,weight:600,color:"text",align:"center",max:2}),x+=o});let A=0;return t.series.forEach((v,b)=>{const o=w[b];if(o===void 0)return;const u=Math.max(A,o.y+o.h/2-d/2);z(e,`series/${String(b)}`,v.name,{x:c+8*a,y:u,w:m-8*a,size:r,color:v.color??D[b%6]??"accent1",weight:600,max:1}),A=u+d}),A>n+.5&&e.overflow.push("series"),n}export function heatPaint(e,t){if(t===null)return{fill:"well",ink:"muted"};let i=e.color,s;e.mid!==void 0&&e.low!==void 0?t<e.mid?(i=e.low,s=e.mid===e.min?0:(e.mid-t)/(e.mid-e.min)):s=e.max===e.mid?0:(t-e.mid)/(e.max-e.mid):s=e.max===e.min?1:(t-e.min)/(e.max-e.min);const a=Math.round(6+94*T(s,0,1));return{fill:`${i}~${String(a)}`,ink:a>=75?`on:${i}`:"text"}}export function heatmapGrid(e,t,i,s){const a=t.s,n=k.label*a,r=n*E,d=e.rows.some(h=>h!==""),m=e.columns.some(h=>h!==""),y=d?T(Math.max(...e.rows.map(h=>t.measure(h,n,500)),e.title===void 0?0:t.measure(e.title,n,700))+16*a,40*a,i*.32):0,g=m?r+10*a:0,c=Math.max(1,...e.values.map(h=>h.length)),l=(i-y)/c,p=s===void 0?T(l*.55,22*a,40*a):(s-g)/Math.max(1,e.values.length);return{labelW:y,headH:g,cellW:l,cellH:p,columns:c,size:n}}function ce(e,t,i,s){const a=e.s,n=heatmapGrid(t,e,i,s),r=n.size*E;return(n.cellH<r+2*a-.5||n.cellW<18*a)&&e.overflow.push("cells"),t.title!==void 0&&n.headH>0&&z(e,"title",t.title,{x:4*a,y:(n.headH-r)/2,w:n.labelW-8*a,size:n.size,weight:700,color:"text",max:1}),t.columns.forEach((d,m)=>{n.headH!==0&&z(e,`columns/${String(m)}`,d,{x:n.labelW+m*n.cellW+2*a,y:(n.headH-r)/2,w:n.cellW-4*a,size:n.size,weight:600,color:"muted",align:"center",max:1})}),t.values.forEach((d,m)=>{const y=n.headH+m*n.cellH;n.labelW>0&&z(e,`rows/${String(m)}`,t.rows[m]??"",{x:4*a,y:y+(n.cellH-r)/2,w:n.labelW-8*a,size:n.size,weight:500,color:"text",max:1});for(let g=0;g<n.columns;g++){const c=d[g]??null,l=heatPaint(t,c);if(C(e,{type:"rect",part:`cells/${String(m)}/${String(g)}`,x:n.labelW+g*n.cellW,y,w:n.cellW,h:n.cellH,r:0,fill:l.fill,line:"ground",lineWidth:1.5*a}),t.showValues&&c!==null){const p=t.format!==void 0?I(c,t.format):R(c,e.lang);z(e,`cells/${String(m)}/${String(g)}/value`,p,{x:n.labelW+g*n.cellW+2*a,y:y+(n.cellH-r)/2,w:n.cellW-4*a,size:n.size,weight:500,color:l.ink,align:"center",max:1})}}}),s??n.headH+t.values.length*n.cellH}export function multiplesGrid(e,t,i,s){const a=e.panels.length,n=12*t,r=k.label*t*E+4*t,d=e.legend.length>0?k.label*t*E+8*t:0;let m=e.columns??0;if(m===0)if(s===void 0)m=Math.min(a,Math.max(1,Math.floor(i/(200*t))));else{let l=1/0;for(let p=1;p<=a;p++){const h=Math.ceil(a/p),x=(i-(p-1)*n)/p,w=(s-d-(h-1)*n)/h-r;if(w<=0)continue;const A=Math.abs(Math.log(x/w/1.6))+(h*p-a)*.4;A<l&&(l=A,m=p)}m===0&&(m=a)}m=Math.min(m,a);const y=Math.ceil(a/m),g=(i-(m-1)*n)/m,c=s===void 0?g/1.6+r:(s-d-(y-1)*n)/y;return{across:m,rows:y,pw:g,ph:c,gap:n,titleH:r,legendH:d}}export function panelChart(e,t,i,s){const a=e.panels.length,r=e.panels[t]?.chart??{type:"column-clustered",series:[{name:"",values:[]}]},d=t%i,m=t+i<a,y=J(r.type),g=y?!m:d===0,c=y?d===0:!m;return{...r,size:r.size??Math.round(k.caption*.9*s*10)/10,value_axis:{gridlines:!0,...r.value_axis,...g?{}:{labels:"none"}},category_axis:{...r.category_axis,...c?{}:{labels:"none"}}}}function ue(e,t,i,s){const a=e.s,n=multiplesGrid(t,a,i,s),r=k.label*a;let d=0;return t.legend.forEach((m,y)=>{const g=10*a,c=W(e,m.name,r)+6*a;C(e,{type:"rect",part:`legend/${String(y)}/key`,x:d,y:(n.legendH-8*a-g)/2+2*a,w:g,h:g,r:2*a,fill:U(m.color),line:"none",lineWidth:0}),z(e,`legend/${String(y)}`,m.name,{x:d+g+4*a,y:(n.legendH-8*a-r*E)/2+2*a,w:c,size:r,color:"text",max:1}),d+=g+4*a+c+12*a}),n.ph-n.titleH<40*a&&e.overflow.push("panels"),t.panels.forEach((m,y)=>{const g=y%n.across*(n.pw+n.gap),c=n.legendH+Math.floor(y/n.across)*(n.ph+n.gap);z(e,`panels/${String(y)}/title`,m.title,{x:g,y:c,w:n.pw,size:r,weight:700,color:"text",max:1});const l=panelChart(t,y,n.across,a),p=n.ph-n.titleH,h=Y(l,{title:void 0,base:"",rows:()=>{},problem:()=>{},size:{width:n.pw,height:p}});h!==void 0&&C(e,{type:"chart",part:`panels/${String(y)}/chart`,x:g,y:c+n.titleH,w:n.pw,h:p,chart:h,file:l})}),s??n.legendH+n.rows*n.ph+(n.rows-1)*n.gap}export function gridLayout(e,t,i,s){switch(t.kind){case"matrix":return oe(e,t,i,s);case"marimekko":return le(e,t,i,s);case"heatmap":return ce(e,t,i,s);case"small_multiples":return ue(e,t,i,s)}}const q=e=>e.replace(/\*+/gu,"");export function gridAlt(e,t){const i=(s,a)=>a!==void 0?I(s,a):R(s,t);switch(e.kind){case"matrix":return[e.x.title!==void 0||e.y.title!==void 0?`${q(e.x.title??"x")} × ${q(e.y.title??"y")}`:void 0,...[0,1,2,3].map(s=>{const a=e.items.filter(n=>n.quadrant===s);if(!(a.length===0&&e.quadrants[s]===void 0))return`${q(e.quadrants[s]??String(s+1))}: ${a.map(n=>n.x===void 0?q(n.name):`${q(n.name)} (${i(n.x)}, ${i(n.y??0)})`).join(", ")}`})].filter(s=>s!==void 0).join("; ");case"marimekko":return e.categories.map((s,a)=>{const n=e.series.reduce((r,d)=>r+Math.max(0,d.values[a]??0),0)||1;return`${q(s)} ${i(e.widths[a]??0,e.format)}: ${e.series.map(r=>`${q(r.name)} ${String(Math.round((r.values[a]??0)/n*100))}%`).join(", ")}`}).join("; ");case"heatmap":return e.values.map((s,a)=>`${q(e.rows[a]??"")}: ${s.map((n,r)=>`${q(e.columns[r]??"")} ${n===null?"–":i(n,e.format)}`).join(", ")}`).join("; ");case"small_multiples":return e.panels.map(s=>`${q(s.title)}: ${s.chart.series.map(a=>typeof a=="string"?a:`${a.name} ${(a.values??[]).map(n=>n===null?"–":i(n)).join(", ")}`).join("; ")}`).join(" | ")}}
|