allyhub 0.18.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/bin/allyhub.js +10 -0
- package/dist/args.js +1 -1
- package/dist/command.js +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/align.js +1 -1
- package/dist/commands/auth.js +1 -1
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +2 -2
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/contributed.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +3 -0
- package/dist/commands/found-extensions.js +2 -0
- package/dist/commands/frames/common.js +1 -1
- 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 +3 -3
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/inspect/index.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/views.js +1 -1
- package/dist/commands/list.js +2 -0
- package/dist/commands/mail.js +1 -1
- package/dist/commands/migrate.js +3 -0
- package/dist/commands/run-context.js +2 -0
- package/dist/commands/skills.js +3 -3
- package/dist/commands/upgrade.js +5 -0
- package/dist/commands.json +1 -0
- package/dist/fields.js +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/package.json +4 -3
- 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/build-plugins.js +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/meta-worker.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +13 -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 +2 -2
- 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/catalog.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +5 -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/dist/workspace.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 +36 -10
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
- 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 +25 -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/linkedin-view/src/style.css +1 -600
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +5 -1
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.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/dist/vision/track.js +1 -1
- 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/layer.d.ts +1 -2
- 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 +9 -3
- package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +5 -2
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
- 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/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/blobs.js +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/errors.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/jsonrpc.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +41 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
- package/dist/node_modules/@allyhub/render/package.json +9 -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/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +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 +9 -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/dist/bundle.js +3 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/annotations.js +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/arrange.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/filter.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/html.js +9 -9
- 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/open.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/arimo/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
- 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/noto-color-emoji/emoji.css +1 -8
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
- 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/fonts/tinos/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
- 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/doc.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
- 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/build-plugins.js +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 +7 -26
- 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/plans.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/reference/video.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 +5 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +5 -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/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +6 -6
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +8 -4
- 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/node_modules/@allyhub/x-view/src/style.css +1 -709
- package/dist/package.json +14 -14
- package/dist/project.js +1 -1
- package/dist/resources.js +1 -1
- package/dist/sdk-docs.js +1 -1
- package/dist/self-upgrade.js +2 -0
- package/dist/slot.js +4 -0
- package/dist/telemetry.js +1 -1
- 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-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.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-DcoNo1WH.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-CsMt61gx.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-fj-TJIRG.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.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-lIUY3WQQ.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
- package/editor-web/assets/deck-DQpNIS2p.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.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-C4aiB8HI.js → docx-draw-L54blreB.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
- package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.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-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.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-BY0AOfex.js → info-OHQRW6UA-CdPrqere.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.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-BxV09WdR.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.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-BWT9UQh_.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
- package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-BOln9YdH.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
- package/editor-web/assets/minus-ngE8owxs.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
- package/editor-web/assets/progress-DZQTiRLv.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.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-LWAEz8Gy.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-B_pZGwUK.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
- package/editor-web/assets/schemas-C21MyseF.js +1 -0
- package/editor-web/assets/{iso-ahTwmFwH.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-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
- package/editor-web/assets/{session-Beijw9EK.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-DI-oM3qz.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-awDmoLdW.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-CayduPvL.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.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-DxT99uaq.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
- package/editor-web/assets/video-SJvDRCJK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.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-0Ww2RyT4.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-D_D5IGmd.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 -243
- package/dist/commands/render.js +0 -3
- package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
- package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
- package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
- package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
- package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
- package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
- package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
- package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
- package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
- package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
- package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
- package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
- package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
- package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
- package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
- package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
- package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
- package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
- package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
- package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
- package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
- package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
- package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
- package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
- package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
- package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
- package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
- package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
- package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
- package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
- package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
- package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
- package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
- package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
- package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
- package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
- package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
- package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
- package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
- package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
- package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
- package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
- package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
- package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
- package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
- package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
- package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
- package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
- package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
- package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
- package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
- package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
- package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
- package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
- package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
- package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
- package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
- package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
- package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
- package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
- package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
- package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
- package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
- package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
- package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
- package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
- package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
- package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
- package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
- package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
- package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
- package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
- package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
- package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
- package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
- package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
- package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
- package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
- package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
- package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
- package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
- package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
- package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
- package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
- package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
- package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
- package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
- package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
- package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
- package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
- package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
- package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
- package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
- package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
- package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
- package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
- package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
- package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
- package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
- package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
- package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
- package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
- package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
- package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
- package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
- package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
- package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
- package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
- package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
- package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
- package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
- package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
- package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
- package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
- package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
- package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
- package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
- package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
- package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
- package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
- package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
- package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
- package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
- package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
- package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
- package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
- package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
- 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-CS48wwvk.js +0 -3
- package/editor-web/assets/article-Cyle57uq.js +0 -7
- package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
- package/editor-web/assets/calc-worker-BdHh5LXM.js +0 -45
- package/editor-web/assets/channel-HUlo15J7.js +0 -1
- package/editor-web/assets/chart-amT4lgX3.js +0 -2
- package/editor-web/assets/chart-file-CfbWK9l1.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-CtEtDHo2.js +0 -1
- package/editor-web/assets/dist-BBshIz1Q.js +0 -5
- package/editor-web/assets/dist-BI8QjOsV.js +0 -1
- package/editor-web/assets/dist-BajH5QfK.js +0 -24
- package/editor-web/assets/dist-Bl74xqMW.js +0 -19
- package/editor-web/assets/dist-BrUtQth3.js +0 -18
- package/editor-web/assets/dist-CN5A7Au2.js +0 -1
- package/editor-web/assets/dist-CcL6r6l3.js +0 -1
- package/editor-web/assets/dist-D2E3cgRP.js +0 -4
- package/editor-web/assets/dist-D3C6FyrO.js +0 -82
- package/editor-web/assets/dist-DGKjn59H.js +0 -16
- package/editor-web/assets/dist-NQNQ5HqZ.js +0 -17
- package/editor-web/assets/dist-SV0sOVIC.js +0 -43
- package/editor-web/assets/dist-YW8hS4IM.js +0 -9
- package/editor-web/assets/dist-Y_XZZa8q.js +0 -531
- package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
- package/editor-web/assets/dist-d4dayaWE.js +0 -17
- package/editor-web/assets/dist-elglzHMT.js +0 -6
- package/editor-web/assets/dist-hHcrvNn9.js +0 -1
- package/editor-web/assets/esm-DzxAod8Q.js +0 -21
- package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
- package/editor-web/assets/hint-rlht0uxG.js +0 -1
- package/editor-web/assets/index-Dvh1t1om.css +0 -2
- package/editor-web/assets/index-q7X6hdHp.js +0 -28
- package/editor-web/assets/minus-CbPnUIOy.js +0 -1
- package/editor-web/assets/progress-CwKcXARv.js +0 -6
- package/editor-web/assets/props-form-DUFxM5eb.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-moE_A7Nj.js +0 -1
- package/editor-web/assets/search-Ba2BbT6T.js +0 -1
- package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
- package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
- package/editor-web/assets/sound-bTlco_K3.js +0 -1
- package/editor-web/assets/split-zARio3J8.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-X35m3xN6.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-BHBvbekZ.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-oJ3qa1Qv.js +0 -1
- package/editor-web/assets/words-XlXG79Ur.js +0 -3
- package/editor-web/assets/workbook-DznVDqoE.js +0 -45
- package/editor-web/assets/x-DlhyIKuu.js +0 -41
- /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.js} +0 -0
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { type Browser, type Page } from "@allyhub/browser";
|
|
2
|
-
import type { BakeReport } from "@allyhub/scenery";
|
|
3
|
-
import type { MediaInfo } from "@allyhub/piece";
|
|
4
|
-
import type { Answer, SceneryCommands } from "../commands.js";
|
|
5
|
-
import type { SceneryFailure } from "../errors.js";
|
|
6
|
-
/** How long a bake may take: as long as its samples, bounces and density ask, up to half a day. */
|
|
7
|
-
export declare const BAKE_TIMEOUT_MS: number;
|
|
8
|
-
/** Methods of a scenery's commands a host calls by name. */
|
|
9
|
-
type Command = Exclude<keyof SceneryCommands, "page">;
|
|
10
|
-
export interface SceneryStageOptions {
|
|
11
|
-
browser: Browser;
|
|
12
|
-
root: string;
|
|
13
|
-
/** The scenery module, a project path (room/scenery.ts). */
|
|
14
|
-
file: string;
|
|
15
|
-
/** The build folder this bundle goes into. */
|
|
16
|
-
buildDir: string;
|
|
17
|
-
/** The project's media the scenery may load, by path. */
|
|
18
|
-
media: Readonly<Record<string, MediaInfo>>;
|
|
19
|
-
/** The project's declared packages. */
|
|
20
|
-
dependencies: ReadonlySet<string>;
|
|
21
|
-
/** The page's size, which commands that draw take theirs from. */
|
|
22
|
-
width?: number;
|
|
23
|
-
height?: number;
|
|
24
|
-
/** Leave the scenery unbaked even when there is a bake for it (to bake it). */
|
|
25
|
-
unbaked?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* What a scenery's page failed at: its kind, the rule it is said under,
|
|
29
|
-
* and, when a move or the scenery's update asked the time of a reference
|
|
30
|
-
* that has none, that reference (give it a time).
|
|
31
|
-
*/
|
|
32
|
-
export declare class SceneryCallError extends Error {
|
|
33
|
-
readonly kind: SceneryFailure;
|
|
34
|
-
readonly rule: string;
|
|
35
|
-
readonly needsTime: string | undefined;
|
|
36
|
-
constructor(kind: SceneryFailure, message: string, needsTime?: string);
|
|
37
|
-
}
|
|
38
|
-
export declare class SceneryStage {
|
|
39
|
-
readonly page: Page;
|
|
40
|
-
private readonly server;
|
|
41
|
-
private constructor();
|
|
42
|
-
static open(options: SceneryStageOptions): Promise<SceneryStage>;
|
|
43
|
-
/** Calls one of the scenery's commands, with JSON arguments. */
|
|
44
|
-
call<M extends Command>(method: M, ...args: Parameters<SceneryCommands[M]>): Promise<Awaited<ReturnType<SceneryCommands[M]>>>;
|
|
45
|
-
private callWithin;
|
|
46
|
-
/** A command's value, or a SceneryCallError with what failed. */
|
|
47
|
-
value<T>(answer: Answer<T> | Promise<Answer<T>>): Promise<T>;
|
|
48
|
-
/**
|
|
49
|
-
* Bakes the scenery's light on this page's renderer: the report and the
|
|
50
|
-
* bake file's bytes (keepBake writes them). The stage must be opened
|
|
51
|
-
* unbaked.
|
|
52
|
-
*/
|
|
53
|
-
bake(): Promise<{
|
|
54
|
-
report: BakeReport;
|
|
55
|
-
bytes: Uint8Array;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* A project's scenery item on a page of its own: its files' media and
|
|
59
|
-
* its declared packages read from the project, its bundle in the
|
|
60
|
-
* project's build folder.
|
|
61
|
-
*/
|
|
62
|
-
static ofProject(options: Omit<SceneryStageOptions, "buildDir" | "media" | "dependencies"> & {
|
|
63
|
-
buildDir?: string;
|
|
64
|
-
}): Promise<SceneryStage>;
|
|
65
|
-
close(): Promise<void>;
|
|
66
|
-
}
|
|
67
|
-
/** Where a scenery's bundle goes in a project's build folder. */
|
|
68
|
-
export declare const sceneryBuildDir: (root: string) => string;
|
|
69
|
-
export {};
|
|
70
|
-
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { type Browser } from "@allyhub/browser";
|
|
2
|
-
import { type CameraState, type LensFrame, type SolveParam, type SolveResult } from "@allyhub/scenery";
|
|
3
|
-
import type { SceneryStage } from "./page.js";
|
|
4
|
-
/** A point of the scenery as a correspondence names it: metres, an object's box centre, or a place on a screen's face (shares of its content from its top left). */
|
|
5
|
-
export type SolveRef = readonly [number, number, number] | {
|
|
6
|
-
object: string;
|
|
7
|
-
} | {
|
|
8
|
-
screen: string;
|
|
9
|
-
uv: readonly [number, number];
|
|
10
|
-
};
|
|
11
|
-
export interface Correspondences {
|
|
12
|
-
points?: readonly {
|
|
13
|
-
name?: string | undefined;
|
|
14
|
-
where: SolveRef;
|
|
15
|
-
px: readonly [number, number];
|
|
16
|
-
weight?: number | undefined;
|
|
17
|
-
}[];
|
|
18
|
-
lines?: readonly {
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
from: SolveRef;
|
|
21
|
-
to: SolveRef;
|
|
22
|
-
px: readonly [number, number];
|
|
23
|
-
weight?: number | undefined;
|
|
24
|
-
}[];
|
|
25
|
-
}
|
|
26
|
-
export interface SceneryCameraSolve {
|
|
27
|
-
/** The picture's size, px: the frame the pixels were measured on. */
|
|
28
|
-
frame: readonly [number, number];
|
|
29
|
-
/** Scenery time the scenery is posed at for named points, s. */
|
|
30
|
-
t: number;
|
|
31
|
-
times?: Readonly<Record<string, number>>;
|
|
32
|
-
lens?: number;
|
|
33
|
-
lensFrame?: LensFrame;
|
|
34
|
-
free?: readonly SolveParam[];
|
|
35
|
-
/** A camera to start from (one of the scenery's, as its info gives it). */
|
|
36
|
-
from?: CameraState;
|
|
37
|
-
}
|
|
38
|
-
/** Solves the camera of a picture from correspondences with a scenery on its page. */
|
|
39
|
-
export declare function solveSceneryCamera(stage: SceneryStage, c: Correspondences, o: SceneryCameraSolve): Promise<SolveResult>;
|
|
40
|
-
/**
|
|
41
|
-
* The scenery drawn from a solved camera, the measured pixels as yellow
|
|
42
|
-
* rings and where the camera puts them as red dots joined to them: a WebP.
|
|
43
|
-
*/
|
|
44
|
-
export declare function solvedPicture(stage: SceneryStage, browser: Browser, camera: CameraState, r: SolveResult, o: {
|
|
45
|
-
frame: readonly [number, number];
|
|
46
|
-
t: number;
|
|
47
|
-
times?: Readonly<Record<string, number>>;
|
|
48
|
-
}): Promise<Buffer>;
|
|
49
|
-
//# sourceMappingURL=solve.d.ts.map
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { Fact } from "@allyhub/diagnostics";
|
|
2
|
-
import { type Img } from "@allyhub/measure";
|
|
3
|
-
import type { VersionPage } from "@allyhub/build";
|
|
4
|
-
import { type SceneryFact, type SceneryFactData } from "../fact.js";
|
|
5
|
-
import { type FidelityOptions } from "../fidelity.js";
|
|
6
|
-
import { type BakeIndex } from "./bakes.js";
|
|
7
|
-
/** A version page on a clock of parts, each with its still (a video's). */
|
|
8
|
-
export type FilmClockPage = VersionPage & {
|
|
9
|
-
readonly timeline: {
|
|
10
|
-
readonly fps: number;
|
|
11
|
-
readonly parts: readonly {
|
|
12
|
-
readonly still: number;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
type Data = SceneryFactData["scenery-screen-fidelity"];
|
|
17
|
-
/**
|
|
18
|
-
* Compares the flat capture with the texture's level: the numbers of the
|
|
19
|
-
* fact, regions in content px with the listed elements that meet them, and
|
|
20
|
-
* the two side by side with where they differ (the element drawn flat,
|
|
21
|
-
* the texture, the difference over the element).
|
|
22
|
-
*/
|
|
23
|
-
export declare function fidelityOf(flat: Img, level: Img, size: readonly [number, number], elements: NonNullable<Data["elements"]>, o: FidelityOptions): {
|
|
24
|
-
data: Pick<Data, "deltaE" | "channels" | "share" | "regions">;
|
|
25
|
-
side: Img;
|
|
26
|
-
};
|
|
27
|
-
/** Where a comparison is made and what else it gives. */
|
|
28
|
-
export interface FidelityRun {
|
|
29
|
-
/**
|
|
30
|
-
* Film seconds to compare at: every one inside a scenery layer's window.
|
|
31
|
-
* Default: each layer once, at its part's still, else its middle.
|
|
32
|
-
*/
|
|
33
|
-
at?: readonly number[];
|
|
34
|
-
/**
|
|
35
|
-
* Gets each comparison's picture (the element flat, the texture, where
|
|
36
|
-
* they differ) with its fact; says where it put it.
|
|
37
|
-
*/
|
|
38
|
-
sheet?: (picture: Img, f: SceneryFact) => Promise<string>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Each screen drawn in the scenery of the page's scenery layers, compared
|
|
42
|
-
* with its own element at one moment of its layer, as facts. A screen that
|
|
43
|
-
* cannot be compared (a browser without HTML-in-Canvas draws it over the
|
|
44
|
-
* scenery; its picture never copied) has its fact with why.
|
|
45
|
-
*/
|
|
46
|
-
export declare function screenFidelity(page: FilmClockPage, options?: Partial<FidelityOptions>, run?: FidelityRun): Promise<{
|
|
47
|
-
facts: SceneryFact[];
|
|
48
|
-
sheets: string[];
|
|
49
|
-
}>;
|
|
50
|
-
type BakeData = SceneryFactData["scenery-bake"];
|
|
51
|
-
/**
|
|
52
|
-
* A scenery layer's bake as the page found it, with what the project's bake
|
|
53
|
-
* index says: baked before for another scene (out of date) or never, and the
|
|
54
|
-
* command that makes it. Undefined for a scenery that neither says how to
|
|
55
|
-
* bake it, nor has a bake laid, nor was ever baked: nothing to say.
|
|
56
|
-
*/
|
|
57
|
-
export declare function bakeFact(data: BakeData, index: BakeIndex): BakeData | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* The facts with each scenery-bake fact as the project's bake index says it
|
|
60
|
-
* now: what the page measured is kept with the check's results, and the
|
|
61
|
-
* index changes without the version changing (a bake of another scene).
|
|
62
|
-
*/
|
|
63
|
-
export declare function withBakes(facts: readonly Fact[], root: string): Promise<Fact[]>;
|
|
64
|
-
/** What the page's scenery layers measure: their facts, with this version's place. */
|
|
65
|
-
export declare function sceneryLayerFacts(page: Pick<VersionPage, "ask" | "target">): Promise<Fact[]>;
|
|
66
|
-
/** The page's scenery layers' camera cuts, on the film's clock. */
|
|
67
|
-
export declare function sceneryCuts(page: Pick<FilmClockPage, "ask" | "timeline">): Promise<{
|
|
68
|
-
layer: string;
|
|
69
|
-
part?: string;
|
|
70
|
-
t: number;
|
|
71
|
-
}[]>;
|
|
72
|
-
export {};
|
|
73
|
-
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type SceneryBundle } from "../bundle.js";
|
|
2
|
-
/** A scenery bundled for its viewer, with the media its bundle may load. */
|
|
3
|
-
export interface SceneryBuilt {
|
|
4
|
-
bundle: SceneryBundle;
|
|
5
|
-
/** The project's media files, by project path. */
|
|
6
|
-
media: string[];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* The scenery module `file` (a project path) bundled for its viewer into
|
|
10
|
-
* `outDir`; or, given `entry`, the module it writes for the file (a 3D
|
|
11
|
-
* model shown alone, in a scenery written for it).
|
|
12
|
-
*/
|
|
13
|
-
export declare function viewerBundle(o: {
|
|
14
|
-
root: string;
|
|
15
|
-
file: string;
|
|
16
|
-
outDir: string;
|
|
17
|
-
}, entry?: () => Promise<string>): Promise<SceneryBuilt>;
|
|
18
|
-
//# sourceMappingURL=view.d.ts.map
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { type CameraState, type Scenery } from "@allyhub/scenery";
|
|
2
|
-
import type { SceneryAdapter } from "./adapter.js";
|
|
3
|
-
import type { Vec3 } from "./vec.js";
|
|
4
|
-
/** How the viewer's camera answers the hand; every value can change. */
|
|
5
|
-
export declare const VIEWER_DEFAULTS: {
|
|
6
|
-
/** Degrees turned for each pixel dragged. */
|
|
7
|
-
orbitSpeed: number;
|
|
8
|
-
/** The camera's height above the horizon, degrees, at most. */
|
|
9
|
-
maxElevation: number;
|
|
10
|
-
/** How far one wheel notch (100 px of delta) moves in or out, a share of the distance. */
|
|
11
|
-
dollyPerNotch: number;
|
|
12
|
-
/** The nearest and farthest the camera comes to its point, m. */
|
|
13
|
-
minDistance: number;
|
|
14
|
-
maxDistance: number;
|
|
15
|
-
/** The lens, 35 mm-equivalent mm. */
|
|
16
|
-
lens: number;
|
|
17
|
-
/** How long a move to a framing takes, ms. */
|
|
18
|
-
flyMs: number;
|
|
19
|
-
/** How long the wheel rests before the camera it moved is told, ms. */
|
|
20
|
-
wheelRestMs: number;
|
|
21
|
-
/** How far toward the frame's edges a framed object reaches, 0–1 (fitCamera's fill). */
|
|
22
|
-
fill: number;
|
|
23
|
-
/** A press that moves less than this, px, is a click. */
|
|
24
|
-
clickSlop: number;
|
|
25
|
-
/** Draw the hover and selection outlines itself (a page that embeds it may draw its own from "place"). */
|
|
26
|
-
marks: boolean;
|
|
27
|
-
/** The outlines' colour. */
|
|
28
|
-
markColor: string;
|
|
29
|
-
};
|
|
30
|
-
export type ViewerOptions = typeof VIEWER_DEFAULTS;
|
|
31
|
-
/** An object as the person points at it: its path of names from the scene down. */
|
|
32
|
-
export interface PickedObject {
|
|
33
|
-
/** The named objects from the outermost down to the one picked. */
|
|
34
|
-
path: string[];
|
|
35
|
-
/** The one picked: the last of path. */
|
|
36
|
-
name: string;
|
|
37
|
-
/** Its box's size along the world axes, m. */
|
|
38
|
-
size: [number, number, number];
|
|
39
|
-
/** Where the pointer met it, world space, m. */
|
|
40
|
-
point: [number, number, number];
|
|
41
|
-
/**
|
|
42
|
-
* Its box as the camera sees it: the outline round its eight corners, in
|
|
43
|
-
* px of the viewer (its edge for a person who picks it; its silhouette is
|
|
44
|
-
* later). None where a corner is behind the camera.
|
|
45
|
-
*/
|
|
46
|
-
screen?: [number, number][];
|
|
47
|
-
}
|
|
48
|
-
/** What the viewer tells the page that embeds it. */
|
|
49
|
-
export type ViewerEvent = {
|
|
50
|
-
type: "ready";
|
|
51
|
-
cameras: string[];
|
|
52
|
-
ms: number;
|
|
53
|
-
} | {
|
|
54
|
-
type: "hover";
|
|
55
|
-
object: PickedObject | null;
|
|
56
|
-
} | {
|
|
57
|
-
type: "select";
|
|
58
|
-
object: PickedObject | null;
|
|
59
|
-
}
|
|
60
|
-
/** The camera after the hand moved it; `framed`: Back has somewhere to go. */
|
|
61
|
-
| {
|
|
62
|
-
type: "camera";
|
|
63
|
-
camera: CameraState;
|
|
64
|
-
framed: boolean;
|
|
65
|
-
}
|
|
66
|
-
/** Where the selection is on the picture after a draw, px from its top left (null: not on it). */
|
|
67
|
-
| {
|
|
68
|
-
type: "place";
|
|
69
|
-
hover: Box2D | null;
|
|
70
|
-
select: Box2D | null;
|
|
71
|
-
}
|
|
72
|
-
/** The picture as drawn now, a WebP data URL to look at (asked with "shot"). */
|
|
73
|
-
| {
|
|
74
|
-
type: "shot";
|
|
75
|
-
picture: string;
|
|
76
|
-
}
|
|
77
|
-
/** What is at a place of the picture (asked with "pick"). */
|
|
78
|
-
| {
|
|
79
|
-
type: "picked";
|
|
80
|
-
id: string;
|
|
81
|
-
object: PickedObject | null;
|
|
82
|
-
} | {
|
|
83
|
-
type: "drawn";
|
|
84
|
-
ms: number;
|
|
85
|
-
};
|
|
86
|
-
/** A box on the picture, CSS px from its top left. */
|
|
87
|
-
export interface Box2D {
|
|
88
|
-
x: number;
|
|
89
|
-
y: number;
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
}
|
|
93
|
-
/** What the embedding page can ask of it. */
|
|
94
|
-
export type ViewerCommand = {
|
|
95
|
-
type: "camera";
|
|
96
|
-
name: string;
|
|
97
|
-
}
|
|
98
|
-
/** Flies to a view the viewer told before (a note's), Back to where it was. */
|
|
99
|
-
| {
|
|
100
|
-
type: "view";
|
|
101
|
-
position: readonly [number, number, number];
|
|
102
|
-
target: readonly [number, number, number];
|
|
103
|
-
}
|
|
104
|
-
/** A wheel the page had where the viewer did not (a page's note mode takes the pointer from its frames). */
|
|
105
|
-
| {
|
|
106
|
-
type: "wheel";
|
|
107
|
-
deltaY: number;
|
|
108
|
-
ctrlKey: boolean;
|
|
109
|
-
} | {
|
|
110
|
-
type: "frame";
|
|
111
|
-
path: string[];
|
|
112
|
-
} | {
|
|
113
|
-
type: "shot";
|
|
114
|
-
} | {
|
|
115
|
-
type: "pick";
|
|
116
|
-
id: string;
|
|
117
|
-
x: number;
|
|
118
|
-
y: number;
|
|
119
|
-
} | {
|
|
120
|
-
type: "back";
|
|
121
|
-
} | {
|
|
122
|
-
type: "select";
|
|
123
|
-
path: string[] | null;
|
|
124
|
-
};
|
|
125
|
-
/** Starts a viewer of a scenery in an element: the scenery built, then drawn. */
|
|
126
|
-
export declare function startViewer(scenery: Scenery, adapter: SceneryAdapter, el: HTMLElement, given?: Partial<ViewerOptions>, tell?: (e: ViewerEvent) => void,
|
|
127
|
-
/** Where the camera starts: the person's last view, kept across a reload. */
|
|
128
|
-
start?: {
|
|
129
|
-
position: Vec3;
|
|
130
|
-
target: Vec3;
|
|
131
|
-
}): Promise<{
|
|
132
|
-
command(c: ViewerCommand): void;
|
|
133
|
-
}>;
|
|
134
|
-
//# sourceMappingURL=viewer.d.ts.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as c}from"zod";import{STRETCH as T,VERSION_FIELDS as $,allFindings as D,defineView as u}from"@allyhub/build";import{MOVING_DEFAULTS as j,largestSteps as V,movingStretches as _}from"@allyhub/video-core";import{STILL_DEFAULTS as z,loopSeam as M,stillPicture as P,stretchOf as O}from"@allyhub/video-measure";import{boxText as w,filmOf as S,looking as v,mustBeVideo as F,plural as y,sec as l}from"./common.js";const g=12;export const motion=u({input:c.strictObject({...$,...T,all:c.boolean().default(!1).describe(`Every step and moving stretch, not only the ${String(g)} largest steps of each kind and the ${String(g)} stretches longest slow`),hold:c.number().positive().default(j.hold).describe("Seconds a box holds unchanged that end a moving stretch (boxes are whole pixels: a slow creep changes every few frames)"),slow:c.number().positive().default(j.slow).describe("Px a second at a 1080 frame under which a stretch's time counts as slow")}),positional:["item"],examples:["allyhub inspect motion launch/film --part hook"],async run(t,o){const r=await o.version(t,"check",async e=>{const n=S(e);await v(o,n,t);const{from:p,to:b}=O(n.timeline,t),m=await n.version.tracks(p,b),x=V(m),d=n.timeline,k=_(m,{hold:t.hold,slow:t.slow,fps:d.fps,height:d.height,parts:d.parts,transitions:d.transitions??[]}),I=[...k].sort((a,h)=>h.slow-a.slow||h.end-h.start-(a.end-a.start)),L=x.filter(a=>a.kind==="move"),E=x.filter(a=>a.kind==="fade"),f=a=>t.all?a:a.slice(0,g);return{from:p,to:b,things:m.length,steps:[...f(L),...f(E)],moves:L.length,fades:E.length,stretches:f(I).sort((a,h)=>a.start-h.start),moving:k.length,hold:t.hold,slow:t.slow}}),s=r.result,i=e=>String(s.steps.filter(n=>n.kind===e).length);return{value:{...s,...o.pageJson(r)},text:[`Motion ${l(s.from)}–${l(s.to)} s (${y(s.things,"thing")} followed: text, painted boxes, pictures): each thing's largest step from one frame to the next, over the larger of the steps beside it. ${i("move")} of ${y(s.moves,"move")} and ${i("fade")} of ${y(s.fades,"fade")} listed (the ${String(g)} largest of each kind; --all lists every one).`,...s.steps.map(e=>{const n=` ${l(e.t)} s ${e.part}: ${e.layer} ${e.what}`;return e.kind==="move"?`${n} moved ${String(e.px)} px${e.grew>0?`, grew ${String(e.grew)} px`:""} in one frame (${String(e.around)} px beside it): ${e.from?w(e.from):"nothing"} → ${e.to?w(e.to):"nothing"}`:`${n} opacity ${String(e.opacity[0])} → ${String(e.opacity[1])} in one frame (${String(e.around)} beside it)${e.to?` at ${w(e.to)}`:""}`}),`Moving stretches: a thing's box moving or changing size from one frame until it holds ${String(s.hold)} s (--hold), things a camera or a parent moves together as one; slow is the time under ${String(s.slow)} px/s at a 1080 frame (--slow). ${String(s.stretches.length)} of ${String(s.moving)} listed (the ${String(g)} longest slow; --all lists every one).`,...s.stretches.map(A),...o.pageLines(r)].join(`
|
|
3
|
-
`)}}});function A(t){const o=t.names.map(e=>`${e.layer} ${e.name===void 0?e.what:`"${e.name}"`}`).join(", "),r=t.things>t.names.length?` and ${String(t.things-t.names.length)} more`:"",s=t.scale[0]!==1||t.scale[1]!==1?`, size ×${String(t.scale[0])}${t.scale[1]===t.scale[0]?"":` × ${String(t.scale[1])}`}`:"",i=[...t.transition?[`in the ${t.transition.type} ${l(t.transition.start)}–${l(t.transition.end)} s`]:[],...t.toEnd?["moving to its part's end"]:[]];return` ${l(t.start)}–${l(t.end)} s ${t.part}: ${o}${r} moved ${String(t.px)} px${s}, ${t.speed.toFixed(1)} px/s, slow ${String(t.slow)} s${i.length>0?`; ${i.join("; ")}`:""}`}export const loop=u({input:c.strictObject($),positional:["item"],examples:["allyhub inspect loop launch/film"],async run(t,o){const r=await o.version(t,"render",async e=>{const n=S(e);return F(n,"it has no loop"),await v(o,n),M(n.timeline,p=>n.still(p))}),s=r.result,i=e=>`mean ${String(e.mean)} of 255, largest ${String(e.max)}`;return{value:{loop:s,...o.pageJson(r)},text:[`Loop seam (${String(s.frames)} frames at ${String(s.fps)} fps): the last frame against the first differs by ${i(s.seam)}.`,` Two frames in a row, for scale: the first two ${i(s.first)}; the last two ${i(s.last)}.`,...o.pageLines(r)].join(`
|
|
4
|
-
`)}}}),still=u({input:c.strictObject({...$,...T,all:D(`every stretch that holds, however short (without it, ${String(z.minSeconds)} s or longer)`)}),positional:["item"],examples:["allyhub inspect still launch/film --all"],async run(t,o){const r=await o.version(t,"check",async s=>{const i=S(s);F(i,"a page holds still"),await v(o,i,t);const{from:e,last:n}=O(i.timeline,t);return P(i.version,t.all?{minSeconds:0}:{},{from:e,to:n})});return o.measured(r.result,r,{all:t.all})}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{fact as N}from"@allyhub/video-core";import{readPng as T}from"@allyhub/render";export const STILL_DEFAULTS={every:1,width:320,noise:8,change:.001,minSeconds:3};export function stillOptions(t={}){const a=(r,o)=>{const e=t[r];return e!==void 0&&Number.isFinite(e)&&e>=o?e:STILL_DEFAULTS[r]};return{every:a("every",.001),width:Math.round(a("width",1)),noise:a("noise",0),change:a("change",0),minSeconds:a("minSeconds",0)}}export function readThumb(t){const{width:a,height:r,data:o}=T(t);return{width:a,height:r,data:o}}export function pictureChange(t,a,r){if(t.width!==a.width||t.height!==a.height)return{changed:1,mean:255};const o=t.width*t.height;if(o===0)return{changed:0,mean:0};let e=0,s=0;for(let f=0;f<o*4;f+=4){let u=0;for(let i=0;i<4;i++)u=Math.max(u,Math.abs((t.data[f+i]??0)-(a.data[f+i]??0)));s+=u,u>r&&e++}return{changed:e/o,mean:s/o}}const y={changed:0,mean:0};export async function stillRuns(t,a,r){const o=[];let e=0,s=y,f=y;const u=i=>{i>e&&o.push({from:e,to:i,worst:s,drift:f})};for(let i=1;i<t;i++){const h=await a(e,i);if(h.changed<=r+1e-12){s={changed:Math.max(s.changed,h.changed),mean:Math.max(s.mean,h.mean)},f=h;continue}u(i-1),e=i,s=y,f=y}return u(t-1),o}export function stillFrames(t,a){const r=Math.max(0,Math.round(t.duration*t.fps)-1),o=new Set;for(let e=0;;e++){const s=Math.round(e*a*t.fps);if(s>r)break;o.add(s)}return o.add(r),[...o].sort((e,s)=>e-s)}const M=t=>Math.round(t*1e3)/1e3,D=t=>Math.round(t*1e5)/1e5,E=t=>({change:D(t.changed),mean:M(t.mean)});export async function stillPicture(t,a={},r={}){const o=t.timeline,e=stillOptions(a),s=o.fps,f=Math.max(0,Math.round(o.duration*s)-1),u=r.from===void 0?0:r.from*s-1e-6,i=r.to===void 0?1/0:r.to*s+1e-6,h=stillFrames(o,e.every).filter(n=>n>=u&&n<=i),S=new Map,x=new Map,k=async n=>{let c=x.get(n);return c||(c=readThumb(await t.thumb((h[n]??0)/s,e.width)),x.set(n,c)),c},v=async n=>(S.has(n)||S.set(n,await t.sign((h[n]??0)/s)),S.get(n));let b;const L=await stillRuns(h.length,async(n,c)=>{const l=await v(n),m=await v(c);if(l!==void 0&&l===m)return y;b?.first!==n&&(b={first:n,by:new Map});const p=m===void 0?void 0:b.by.get(m);if(p)return p;const g=pictureChange(await k(n),await k(c),e.noise);m!==void 0&&b.by.set(m,g);for(const w of x.keys())w!==n&&w!==c&&x.delete(w);return g},e.change),O=n=>M((h[n]??0)/s),F=[];for(const n of L){const c=O(n.from),l=O(n.to),m=M(l-c);if(m<e.minSeconds-1e-9)continue;const p=o.parts.filter(d=>d.start<=l+1e-6&&d.end>c+1e-6).map(d=>d.key),g=(o.footage??[]).filter(d=>d.start<=l+1e-6&&d.end>c+1e-6).map(d=>({file:d.file,part:d.part,start:M(d.start),end:M(d.end)})),w={start:c,end:l,seconds:m,frames:n.to-n.from+1,parts:p,...E(n.worst),drift:E(n.drift),...g.length>0?{footage:g}:{},...(h[n.to]??0)>=f?{toEnd:!0}:{},options:e};F.push(N("still-picture",{piece:t.target.piece,output:t.target.output,combo:t.target.combo,format:t.target.format,t:c,...p[0]?{part:p[0]}:{}},w))}return F}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-lm_6n8YT.js";var t=e(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-lm_6n8YT.js";var t=e(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]);export{t};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,d as n,o as r,p as i,s as a,y as o}from"./react-Edyoga_4.js";import{Et as s,ht as c,kt as l,n as u,t as d}from"./x-DlhyIKuu.js";import{t as f}from"./session-Beijw9EK.js";import{t as p}from"./jsx-runtime-DePvh3-m.js";import{A as m,C as h,f as g,m as _,u as v}from"./bar-button-J9vbfzTx.js";import{C as y,D as ee,i as te,w as b,x}from"./dist-elglzHMT.js";import{n as S,t as ne}from"./italic-zw4_eUNF.js";import{t as C}from"./code-CD-CbJG9.js";import{a as re,c as w,i as ie,l as T,n as ae,o as E,s as oe,t as se}from"./split-zARio3J8.js";import{t as D}from"./link-DopSU3aa.js";import{D as ce,O}from"./dist-Bd8IxQPP.js";import{t as k}from"./minus-CbPnUIOy.js";import{O as A,T as j,n as M,nt as N,o as P,s as le,t as ue,ut as F}from"./dist-D3C6FyrO.js";import{n as de,t as I}from"./undo-2-C47jrRp5.js";import{t as fe}from"./sigma-DSUsJhMn.js";import{t as L}from"./strikethrough-BwXWi4zg.js";import{t as pe}from"./table-DRbddzx0.js";import{_ as me,o as R}from"./index-q7X6hdHp.js";import{t as he}from"./collaborator-BU4qU7O3.js";import{t as ge}from"./row-C_svyL8o.js";import{c as _e,n as ve,s as ye,t as be}from"./dist-YW8hS4IM.js";import{i as xe,n as Se,r as Ce,t as we}from"./dist-DruvDNQe.js";import{S as Te,_ as Ee,a as De,c as Oe,g as z,h as ke,i as Ae,m as je,o as Me,r as Ne,s as Pe,t as B,u as V,v as Fe,x as Ie}from"./words-0Ww2RyT4.js";var H=e(o(),1),U=p(),Le=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Re(e,t){if(e.title!==t.title||!Le(e.cover,t.cover))return{head:!0};for(let n=0;n<t.blocks.length;n++)if(!Le(e.blocks[n],t.blocks[n]))return{block:n};if(e.blocks.length>t.blocks.length&&t.blocks.length>0)return{block:t.blocks.length-1}}function ze(e,t){let n=z(e),r=e=>e.from<=t.to&&t.from<=e.to;if(n.head&&r(n.head))return{head:!0};let i=n.lines.findIndex(r);return i<0?void 0:{block:i}}function Be(e,t){if(e.from!==void 0&&e.path===t.path)return ze(t.text,{from:e.from,to:e.to??e.from})}var W=new _e(`xArticleAgent`),Ve=j.create({name:`xArticleAgent`,addProseMirrorPlugins(){return[new ye({key:W,state:{init:()=>null,apply:(e,t)=>{let n=e.getMeta(W);return n===void 0?t:n}},props:{decorations(e){let t=W.getState(e);if(!t)return null;let n;return e.doc.forEach((e,r,i)=>{i===t.block&&(n=be.node(r,r+e.nodeSize,{class:`ak-x-agent`,"data-agent":t.label,"data-testid":`x-agent-block`}))}),n?ve.create(e.doc,[n]):null}}})]}});function He(e,t){e.isDestroyed||e.view.dispatch(e.state.tr.setMeta(W,t))}var G={image:`xImage`,post:`xPost`,link:`xLink`,latex:`xLatex`,markdown:`xMarkdown`};function Ue(e){let t=[];return e.bold===!0&&t.push({type:`bold`}),e.italic===!0&&t.push({type:`italic`}),e.strike===!0&&t.push({type:`strike`}),e.link!==void 0&&t.push({type:`link`,attrs:{href:e.link}}),{type:`text`,text:e.text,...t.length>0?{marks:t}:{}}}var K=e=>({type:`paragraph`,...e.length>0?{content:e.filter(e=>e.text!==``).map(Ue)}:{}});function q(e){let t=e.map(e=>{switch(e.type){case`paragraph`:return K(e.runs);case`h1`:case`h2`:return{type:`heading`,attrs:{level:e.type===`h1`?1:2},...e.runs.length>0?{content:e.runs.map(Ue)}:{}};case`quote`:return{type:`blockquote`,content:[K(e.runs)]};case`ul`:case`ol`:return{type:e.type===`ul`?`bulletList`:`orderedList`,content:e.items.map(e=>({type:`listItem`,content:[K(e)]}))};case`image`:return{type:G.image,attrs:{file:e.file,alt:e.alt??``,caption:e.caption??``}};case`post`:return{type:G.post,attrs:{url:e.url,id:e.id}};case`link`:return{type:G.link,attrs:{url:e.url}};case`divider`:return{type:`horizontalRule`};case`latex`:return{type:G.latex,attrs:{tex:e.tex}};case`markdown`:return{type:G.markdown,attrs:{markdown:e.markdown}}}});return{type:`doc`,content:t.length>0?t:[{type:`paragraph`}]}}function We(e){let t=e.marks??[],n=e=>t.some(t=>t.type===e),r=t.find(e=>e.type===`link`)?.attrs?.href;return{text:e.text??``,...n(`bold`)?{bold:!0}:{},...n(`italic`)?{italic:!0}:{},...n(`strike`)?{strike:!0}:{},...r===void 0?{}:{link:r}}}var J=e=>(e?.content??[]).map(e=>e.type===`hardBreak`?{text:` `}:We(e)),Y=(e,t)=>{let n=e.attrs?.[t];return typeof n==`string`?n:``};function X(e){let t=[];for(let n of e.content??[])switch(n.type){case`paragraph`:t.push({type:`paragraph`,runs:J(n)});break;case`heading`:{let e=Number(n.attrs?.level??1);t.push({type:e<=1?`h1`:`h2`,runs:J(n)});break}case`blockquote`:for(let e of n.content??[])t.push({type:`quote`,runs:J(e)});break;case`bulletList`:case`orderedList`:t.push({type:n.type===`bulletList`?`ul`:`ol`,items:(n.content??[]).map(e=>(e.content??[]).flatMap(e=>J(e)))});break;case`horizontalRule`:t.push({type:`divider`});break;case G.image:{let e=Y(n,`alt`),r=Y(n,`caption`);t.push({type:`image`,file:Y(n,`file`),...e===``?{}:{alt:e},...r===``?{}:{caption:r}});break}case G.post:t.push({type:`post`,url:Y(n,`url`),id:Y(n,`id`)});break;case G.link:t.push({type:`link`,url:Y(n,`url`)});break;case G.latex:t.push({type:`latex`,tex:Y(n,`tex`)});break;case G.markdown:t.push({type:`markdown`,markdown:Y(n,`markdown`)})}let n=t[0];return t.length===1&&n?.type===`paragraph`&&n.runs.every(e=>e.text===``)?[]:t}var Ge=new _e(`x-found`);function Ke(e){let t=[];return e.descendants((e,n)=>{if(!e.isTextblock)return!0;let r=e.textContent;for(let e of Ie(r))t.push(be.inline(n+1+e.start,n+1+e.end,{class:`ak-x-link`}));return!1}),ve.create(e,t)}var qe=j.create({name:`xFound`,addProseMirrorPlugins(){return[new ye({key:Ge,state:{init:(e,t)=>Ke(t.doc),apply:(e,t)=>e.docChanged?Ke(e.doc):t},props:{decorations:e=>Ge.getState(e)}})]}}),Je=(0,H.createContext)(()=>void 0),Z=e=>typeof e==`string`?e:``;function Ye({node:e,updateAttributes:t}){let n=B(),r=(0,H.useContext)(Je),i=Z(e.attrs.file),a=r(i),o=Fe(i.split(`#`)[0]?.split(`.`).pop()??``);return(0,U.jsxs)(M,{as:`figure`,"data-x":`image`,className:`relative`,children:[(0,U.jsxs)(`div`,{className:`ak-x-a-picture`,children:[a===void 0?(0,U.jsx)(`div`,{className:`ak-x-made`,children:i}):o===`video`?(0,U.jsx)(E,{src:a,file:i,controls:!0,muted:!0,playsInline:!0,className:`w-full`}):(0,U.jsx)(`img`,{src:a,alt:Z(e.attrs.alt)}),(0,U.jsxs)(`div`,{className:`ak-x-labels`,contentEditable:!1,children:[o===`gif`?(0,U.jsx)(`span`,{className:`ak-x-label`,children:n.gif}):null,(0,U.jsx)(w,{most:Te.alt,alt:Z(e.attrs.alt),onAlt:e=>{t({alt:e})},trigger:(0,U.jsx)(u,{variant:`secondary`,size:`xs`,className:`bg-media/75 text-on-media font-bold`,"aria-label":n.altText,children:n.alt})})]})]}),(0,U.jsx)(`input`,{className:`mt-2 w-full bg-transparent text-left text-[13px] leading-4 text-[var(--ak-x-caption)] outline-none`,value:Z(e.attrs.caption),placeholder:n.caption,"aria-label":n.caption,dir:`auto`,onChange:e=>{t({caption:e.target.value})}})]})}function Xe({node:e}){return(0,U.jsx)(M,{"data-x":`link`,children:(0,U.jsx)(Pe,{url:Z(e.attrs.url)})})}function Ze({node:e}){return(0,U.jsx)(M,{className:`ak-x-a-post`,"data-x":`post`,children:ke(Z(e.attrs.url))})}function Qe(e){return function({node:t,updateAttributes:n,selected:r}){let i=B(),a=e===`tex`?i.article.equation:i.article.code,o=Z(t.attrs[e]);return!r&&o.trim()!==``?(0,U.jsx)(M,{"data-x":e,children:e===`tex`?(0,U.jsx)(Me,{tex:o}):(0,U.jsx)(Oe,{markdown:o})}):(0,U.jsx)(M,{as:`pre`,"data-latex":e===`tex`?``:void 0,children:(0,U.jsx)(`textarea`,{className:`block w-full resize-none bg-transparent font-[inherit] outline-none [field-sizing:content]`,value:o,"aria-label":a,placeholder:a,spellCheck:!1,onChange:t=>{n({[e]:t.target.value})}})})}}function Q(e,t,n){return A.create({name:e,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return Object.fromEntries(t.map(e=>[e,{default:``}]))},parseHTML(){return[{tag:`div[data-node="${e}"]`}]},renderHTML({HTMLAttributes:t}){return[`div`,N(t,{"data-node":e})]},addNodeView(){return P(n)}})}var $e=[Q(G.image,[`file`,`alt`,`caption`],Ye),Q(G.post,[`url`,`id`],Ze),Q(G.link,[`url`],Xe),Q(G.latex,[`tex`],Qe(`tex`)),Q(G.markdown,[`markdown`],Qe(`markdown`))],et=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/[A-Za-z0-9_]+\/status\/([0-9]{1,19})/u,tt=3e4;function nt(e){let t=z(e).issues.find(e=>e.rule===`article-markup`||e.rule===`format`);if(t!==void 0)return t.line===void 0?t.message:`${String(t.line)}: ${t.message}`}var rt=class{head;listeners=new Set;body;show;session;constructor(e){this.session=e;let{article:t}=z(e.text);this.head={title:t.title,cover:t.cover,state:e.state,held:nt(e.text)},e.attach({save:e=>{let t=this.article();if(t===void 0||nt(e)!==void 0)return;let n=Ee(t);return n===Ee(z(e).article)?void 0:n},take:(e,t,n)=>{let{article:r}=z(e),i=n?.kind===`agent`?Re(z(t).article,r):void 0;this.set({title:r.title,cover:r.cover,held:nt(e),...i===void 0?{}:{landed:{spot:i,at:Date.now()}}}),this.show?.(r)}}),e.onState(e=>{this.set({state:e})})}get read(){return z(this.session.text).article}bind(e,t){this.body=e,this.show=t}article(){if(this.body!==void 0)return{title:this.head.title,...this.head.cover?{cover:this.head.cover}:{},blocks:this.body()}}get(){return this.head}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}set(e){this.head={...this.head,...e};for(let e of this.listeners)e()}edited(e={}){Object.keys(e).length>0&&this.set(e),this.session.edited()}};function $(e){return(0,U.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,"aria-pressed":e.on,disabled:e.disabled,className:c(e.on===!0&&`bg-here`),onMouseDown:e=>{e.preventDefault()},onClick:e.onClick,children:e.children})}function it(e){let t=B(),[n,r]=(0,H.useState)(!1),[i,a]=(0,H.useState)(``),o=i.trim()===``?void 0:e.check?.(i.trim());return(0,U.jsxs)(x,{open:n,onOpenChange:e=>{r(e),e&&a(``)},children:[(0,U.jsx)(b,{asChild:!0,children:(0,U.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,disabled:e.disabled,children:e.icon})}),(0,U.jsx)(y,{className:`w-80`,align:`start`,children:(0,U.jsxs)(`form`,{className:`flex flex-col gap-2`,onSubmit:t=>{t.preventDefault(),i.trim()!==``&&o===void 0&&(e.onAnswer(i.trim()),r(!1))},children:[(0,U.jsx)(R,{autoFocus:!0,value:i,placeholder:e.hint,"aria-label":e.hint,onChange:e=>{a(e.target.value)}}),o===void 0?null:(0,U.jsx)(`p`,{className:`text-destructive text-xs`,children:o}),(0,U.jsx)(u,{type:`submit`,size:`sm`,className:`self-end`,disabled:i.trim()===``||o!==void 0,children:t.article.add})]})})]})}function at({dir:e,entry:t,insert:n,divider:r}){let i=B().article,[a,o]=(0,H.useState)(!1),[s,l]=(0,H.useState)(`menu`),[d,f]=(0,H.useState)(``),p=()=>{o(!1)},h=(e,t,n)=>(0,U.jsx)(ge,{size:`dense`,icon:t,onClick:n,children:e}),g=(e,t,n)=>{let r=d.trim()===``?void 0:t(d.trim());return(0,U.jsxs)(`form`,{className:`flex w-80 flex-col gap-2`,onSubmit:e=>{e.preventDefault(),d.trim()!==``&&r===void 0&&(n(d.trim()),p())},children:[(0,U.jsx)(R,{autoFocus:!0,value:d,placeholder:e,"aria-label":e,onChange:e=>{f(e.target.value)}}),r===void 0?null:(0,U.jsx)(`p`,{className:`text-destructive text-xs`,children:r}),(0,U.jsx)(u,{type:`submit`,size:`sm`,className:`self-end`,disabled:d.trim()===``||r!==void 0,children:i.add})]})};return(0,U.jsxs)(x,{open:a,onOpenChange:e=>{o(e),e&&(l(`menu`),f(``))},children:[(0,U.jsx)(b,{asChild:!0,children:(0,U.jsxs)(u,{variant:`ghost`,size:`sm`,className:`gap-1 px-2`,children:[i.insert,(0,U.jsx)(m,{})]})}),(0,U.jsx)(y,{className:c(s===`menu`?`w-48 p-1`:`w-auto`),align:`start`,children:s===`menu`?(0,U.jsxs)(`div`,{role:`menu`,children:[h(i.media,(0,U.jsx)(T,{}),()=>{l(`media`)}),h(i.post,(0,U.jsx)(me,{}),()=>{l(`post`)}),h(i.linkCard,(0,U.jsx)(D,{}),()=>{l(`link`)}),h(i.divider,(0,U.jsx)(k,{}),()=>{r(),p()}),h(i.code,(0,U.jsx)(C,{}),()=>{n(G.markdown,{markdown:"```\n\n```"}),p()}),h(i.equation,(0,U.jsx)(fe,{}),()=>{n(G.latex,{tex:``}),p()}),h(i.table,(0,U.jsx)(pe,{}),()=>{n(G.markdown,{markdown:`| A | B |
|
|
2
|
-
| - | - |
|
|
3
|
-
| | |`}),p()})]}):s===`media`?(0,U.jsx)(ae,{self:t,types:Ae,testId:`x-picker`,onPick:t=>{n(G.image,{file:re(e,t),alt:``,caption:``}),p()}}):s===`post`?g(i.postHint,e=>et.test(e)?void 0:i.notPost,e=>{n(G.post,{url:e,id:et.exec(e)?.[1]??``})}):g(i.linkHint,e=>/^https?:\/\/\S+$/u.test(e)?void 0:i.notLink,e=>{n(G.link,{url:e})})})]})}function ot({editor:e}){let t=B().article,n=()=>e.chain().focus(),r=e.isActive(`heading`,{level:1})?t.heading:e.isActive(`heading`,{level:2})?t.subheading:t.paragraph;return(0,U.jsxs)(v,{children:[(0,U.jsx)(h,{asChild:!0,children:(0,U.jsxs)(u,{variant:`ghost`,size:`sm`,className:`w-32 justify-between gap-1 px-2`,onMouseDown:e=>{e.preventDefault()},children:[r,(0,U.jsx)(m,{})]})}),(0,U.jsxs)(g,{align:`start`,className:`ak-x w-48`,children:[(0,U.jsx)(_,{className:`text-[31px] leading-10 font-extrabold`,onSelect:()=>n().setHeading({level:1}).run(),children:t.heading}),(0,U.jsx)(_,{className:`text-[26px] leading-9 font-extrabold`,onSelect:()=>n().setHeading({level:2}).run(),children:t.subheading}),(0,U.jsx)(_,{className:`text-[15px] font-bold`,onSelect:()=>n().setParagraph().run(),children:t.paragraph})]})]})}function st({editor:e,dir:t,entry:n}){let r=B(),i=r.article,[,a]=(0,H.useState)(0);(0,H.useEffect)(()=>{let t=()=>{a(e=>e+1)};return e.on(`transaction`,t),()=>{e.off(`transaction`,t)}},[e]);let o=()=>e.chain().focus(),s=(t,n)=>{let{$from:r}=e.state.selection;r.depth>1?o().insertContentAt(r.after(1),{type:t,attrs:n}).run():o().insertContent({type:t,attrs:n}).run()},c=e.getText().split(/\s+/u).filter(e=>e!==``).length;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{label:r.undo,disabled:!e.can().undo(),onClick:()=>o().undo().run(),children:(0,U.jsx)(I,{})}),(0,U.jsx)($,{label:r.redo,disabled:!e.can().redo(),onClick:()=>o().redo().run(),children:(0,U.jsx)(de,{})}),(0,U.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),(0,U.jsx)($,{label:i.bold,on:e.isActive(`bold`),onClick:()=>o().toggleBold().run(),children:(0,U.jsx)(S,{})}),(0,U.jsx)($,{label:i.italic,on:e.isActive(`italic`),onClick:()=>o().toggleItalic().run(),children:(0,U.jsx)(ne,{})}),(0,U.jsx)($,{label:i.strike,on:e.isActive(`strike`),onClick:()=>o().toggleStrike().run(),children:(0,U.jsx)(L,{})}),(0,U.jsx)(ot,{editor:e}),(0,U.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),(0,U.jsx)($,{label:i.quote,on:e.isActive(`blockquote`),onClick:()=>o().toggleBlockquote().run(),children:(0,U.jsx)(F,{})}),(0,U.jsx)($,{label:i.bullets,on:e.isActive(`bulletList`),onClick:()=>o().toggleBulletList().run(),children:(0,U.jsx)(ce,{})}),(0,U.jsx)($,{label:i.numbers,on:e.isActive(`orderedList`),onClick:()=>o().toggleOrderedList().run(),children:(0,U.jsx)(O,{})}),(0,U.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),e.isActive(`link`)?(0,U.jsx)($,{label:i.removeLink,on:!0,onClick:()=>o().extendMarkRange(`link`).unsetLink().run(),children:(0,U.jsx)(d,{})}):(0,U.jsx)(it,{label:i.link,hint:i.linkHint,icon:(0,U.jsx)(D,{}),disabled:e.state.selection.empty,onAnswer:e=>{o().extendMarkRange(`link`).setLink({href:e}).run()}}),(0,U.jsx)(at,{dir:t,entry:n,insert:s,divider:()=>o().setHorizontalRule().run()}),(0,U.jsx)(`span`,{className:`text-muted-foreground ml-2 text-xs tabular-nums`,children:i.words(c)})]})}function ct({doc:e,dir:r,entry:o}){let c=B(),f=a(),p=i(),m=(0,H.useSyncExternalStore)(t=>e.subscribe(t),()=>e.get()),h=p||m.held!==void 0,g=(0,H.useMemo)(()=>e.read,[e]),[_,v]=(0,H.useState)(()=>g.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),S=le({textDirection:`auto`,editable:!h,immediatelyRender:!0,extensions:[we.configure({heading:{levels:[1,2]},listItem:!1,blockquote:!1,code:!1,codeBlock:!1,underline:!1,hardBreak:!1,link:{openOnClick:!1,autolink:!0}}),Se.extend({content:`paragraph`}),Ce.extend({content:`paragraph`}),xe.configure({placeholder:c.article.body}),qe,Ve,...$e],content:q(g.blocks),onUpdate:({editor:t,transaction:n})=>{n.docChanged&&(v(X(t.getJSON()).flatMap(e=>e.type===`image`?[e.file]:[])),e.edited())}}),[ne,C]=(0,H.useState)(()=>g.blocks);(0,H.useEffect)(()=>{e.bind(()=>X(S.getJSON()),e=>{S.commands.setContent(q(e.blocks),{emitUpdate:!1}),v(e.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),C(e.blocks)})},[e,S]),(0,H.useEffect)(()=>{S.setEditable(!h)},[S,h]),(0,H.useEffect)(()=>{let e=()=>{C(X(S.getJSON()))};return S.on(`update`,e),()=>{S.off(`update`,e)}},[S]);let w=(0,H.useDeferredValue)(ne),{agent:E,following:D}=t(),ce=ee(),O=(()=>{if(E?.doing===void 0)return;let t=m.landed,n=t!==void 0&&t.at>=E.at-tt;return n&&E.source?.path===o?t.spot:(E.source?Be(E.source,{path:o,text:e.session.text}):void 0)??(n?t.spot:void 0)})(),k=O&&`block`in O?O.block:void 0,A=O!==void 0&&`head`in O,j=E?ce(E):``,M=(0,H.useRef)(null),N=(0,H.useRef)(null);(0,H.useEffect)(()=>{He(S,k===void 0?null:{block:k,label:j})},[S,k,j]),(0,H.useEffect)(()=>{let e=N.current;if(e){for(let t of e.querySelectorAll(`[data-agent]`))t.removeAttribute(`data-agent`);(A?e.querySelector(`.ak-x-a-title`):k===void 0?null:e.querySelector(`.ak-x-a-body`)?.children[k])?.setAttribute(`data-agent`,``)}},[k,A,w,m.title]),(0,H.useEffect)(()=>{D&&O!==void 0&&((A?M.current?.querySelector(`.ak-x-a-title`):M.current?.querySelector(`[data-testid="x-agent-block"]`))?.scrollIntoView({block:`nearest`}),N.current?.querySelector(`[data-agent]`)?.scrollIntoView({block:`nearest`}))},[D,O,A,m.landed]),n({hold:()=>Promise.resolve({key:`${o}@${String(e.session.text.length)}`,what:`The X article ${o}`,source:{path:o}}),locate:t=>{let n=z(e.session.text),r=e=>{let t=e?.getBoundingClientRect();return t&&t.width>0&&t.height>0?{x:t.x,y:t.y,width:t.width,height:t.height}:void 0},i=s(t)[0],a=e=>e!==void 0&&i!==void 0&&i.x>=e.x&&i.x<=e.x+e.width&&i.y>=e.y&&i.y<=e.y+e.height,c=[{as:`where it is written`,head:[`.ak-x-a-cover`,`.ak-x-a-title`].map(e=>M.current?.querySelector(e)),blocks:[...M.current?.querySelector(`.ak-x-a-body .ProseMirror`)?.children??[]]},{as:`as X will show it`,head:[`.ak-x-a-cover`,`.ak-x-a-title`].map(e=>N.current?.querySelector(e)),blocks:[...N.current?.querySelector(`.ak-x-a-body`)?.children??[]]}],u=e=>e===void 0?{}:{line:e.from,...e.to>e.from?{endLine:e.to}:{}},d=c.some(e=>e.head.some(e=>{let n=r(e);return n!==void 0&&l(t,n)})),f=new Set;for(let e of c)e.blocks.forEach((e,n)=>{let i=r(e);i&&l(t,i)&&f.add(n)});let p=[...d?[{name:`the article's head: its cover and title`,source:{path:o,...u(n.head)},...m.title===``?{}:{text:m.title}}]:[],...[...f].sort((e,t)=>e-t).map(e=>{let t=c.map(t=>t.blocks[e]?.textContent.trim()??``).find(e=>e!==``)??``;return{name:`block ${String(e+1)} of the article`,source:{path:o,...u(n.lines[e])},...t===``?{}:{text:t}}})],h=c.flatMap(e=>{if(e.head.some(e=>a(r(e))))return[`in the article's head, ${e.as}`];let t=e.blocks.findIndex(e=>a(r(e)));return t<0?[]:[`in block ${String(t+1)}, ${e.as}`]}).at(0);return Promise.resolve({elements:p,...h===void 0?{}:{where:h}})}});let P=ie(r,[...m.cover?[m.cover.file]:[],..._]),F=(0,H.useMemo)(()=>e=>P.get(e),[P]),[de,I]=(0,H.useState)(!1),fe=m.cover===void 0?void 0:P.get(m.cover.file),L=f?.theme===`dark`,pe=(0,U.jsxs)(x,{open:de,onOpenChange:I,children:[(0,U.jsx)(`div`,{className:`group/cover ak-x-a-cover relative`,children:m.cover===void 0?h?null:(0,U.jsx)(b,{asChild:!0,children:(0,U.jsxs)(u,{variant:`ghost`,className:`size-full flex-col gap-2 rounded-none text-[13px] font-normal text-[var(--ak-x-muted)]`,"aria-label":c.article.addCover,children:[(0,U.jsx)(`span`,{className:`grid size-10 place-items-center rounded-full bg-[var(--ak-x-muted)] text-[var(--ak-x-bg)]`,children:(0,U.jsx)(T,{className:`size-5`})}),c.article.coverHint]})}):(0,U.jsxs)(U.Fragment,{children:[fe===void 0?(0,U.jsx)(`div`,{className:`ak-x-made`,children:m.cover.file}):(0,U.jsx)(`img`,{src:fe,alt:m.cover.alt??``}),h?null:(0,U.jsxs)(`div`,{className:`absolute top-2 right-2 flex gap-1`,children:[(0,U.jsx)(b,{asChild:!0,children:(0,U.jsxs)(u,{variant:`secondary`,size:`sm`,className:`bg-media/75 text-on-media`,children:[(0,U.jsx)(T,{}),c.article.changeCover]})}),(0,U.jsx)(u,{variant:`secondary`,size:`icon-sm`,className:`bg-media/75 text-on-media`,"aria-label":c.article.removeCover,title:c.article.removeCover,onClick:()=>{e.edited({cover:void 0})},children:(0,U.jsx)(d,{})})]})]})}),(0,U.jsx)(y,{className:`w-auto`,align:`center`,children:(0,U.jsx)(ae,{self:o,types:Ne,testId:`x-picker`,onPick:t=>{I(!1),e.edited({cover:{file:re(r,t)}})}})})]}),me=(0,U.jsxs)(`div`,{ref:M,className:`ak-x ak-x-editing min-h-full`,"data-theme":L?`dark`:`light`,children:[pe,(0,U.jsxs)(`div`,{className:`ak-x-e-page`,children:[(0,U.jsxs)(`div`,{className:`relative`,children:[(0,U.jsx)(`textarea`,{className:`ak-x-a-title block w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-[var(--ak-x-muted)]`,value:m.title,placeholder:c.article.title,"aria-label":c.article.title,readOnly:h,dir:`auto`,"data-testid":`x-article-title`,onChange:t=>{h||e.edited({title:t.target.value.replace(/\n/gu,` `)})}}),E&&A?(0,U.jsx)(he,{"data-testid":`x-agent-head`,label:j,className:`-inset-1`}):null]}),(0,U.jsxs)(`div`,{className:`ak-x-e-by`,children:[(0,U.jsx)(`div`,{className:`ak-x-avatar`,"aria-hidden":`true`,children:V.name.slice(0,1)}),(0,U.jsx)(`span`,{className:`ak-x-name`,children:V.name}),(0,U.jsxs)(`span`,{className:`ak-x-handle`,children:[`@`,V.handle]})]}),(0,U.jsx)(Je.Provider,{value:F,children:(0,U.jsx)(`div`,{className:`ak-x-a-body`,"data-testid":`x-article-body`,children:(0,U.jsx)(ue,{editor:S,className:`[&_.ProseMirror]:outline-none`})})})]})]}),R=(0,U.jsx)(`div`,{ref:N,className:`ak-x ak-x-column`,"data-theme":L?`dark`:`light`,children:(0,U.jsx)(De,{article:{title:m.title,...m.cover?{cover:m.cover}:{},blocks:w},source:F})});return(0,U.jsxs)(`div`,{className:`bg-background flex size-full flex-col`,"data-testid":`x-article-editor`,children:[(0,U.jsx)(te,{start:h?void 0:(0,U.jsx)(st,{editor:S,dir:r,entry:o}),saved:{state:m.state},exports:{}}),m.held===void 0?null:(0,U.jsx)(`p`,{className:`text-lead border-b px-4 py-2 text-sm`,role:`status`,"data-testid":`x-article-held`,children:c.article.held(m.held)}),(0,U.jsx)(je.Provider,{value:oe,children:(0,U.jsx)(se,{edit:me,preview:R,width:600,background:L?`#000000`:`#ffffff`,testId:`x-preview`})})]})}function lt(){let e=B(),t=r(),n=a(),i=n?.item.entry,o=n?.item.dir??``,[s,c]=(0,H.useState)(),[l,u]=(0,H.useState)();return(0,H.useEffect)(()=>{if(i===void 0)return;let e,n=!0;return f.open(t,i).then(t=>{n?(e=t,c(new rt(t))):t.close()},e=>{n&&u(e instanceof Error?e.message:String(e))}),()=>{n=!1,e?.close()}},[t,i]),!s||i===void 0?(0,U.jsx)(`div`,{className:`text-muted-foreground flex size-full items-center justify-center text-sm`,"data-testid":`x-article-editor`,"data-state":l===void 0?`loading`:`error`,children:l===void 0?e.article.loading:e.couldNotOpen(l)}):(0,U.jsx)(ct,{doc:s,dir:o,entry:i})}export{lt as XArticleEditor,lt as default,X as fromDoc,q as toDoc};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,d as n,o as r,p as i,s as a,y as o}from"./react-Edyoga_4.js";import{Et as s,ht as c,kt as l,n as u,t as d}from"./x-DlhyIKuu.js";import{S as f,w as p,x as m}from"./iso-ahTwmFwH.js";import{t as h}from"./session-Beijw9EK.js";import{t as g}from"./jsx-runtime-DePvh3-m.js";import{A as ee,C as _,f as v,j as te,m as y,u as b}from"./bar-button-J9vbfzTx.js";import{C as x,D as ne,i as re,w as S,x as C}from"./dist-elglzHMT.js";import{t as w}from"./createLucideIcon-lm_6n8YT.js";import{n as T,t as ie}from"./italic-zw4_eUNF.js";import{t as E}from"./copy-CuJSs0nI.js";import{a as ae,c as D,i as oe,l as se,n as ce,s as le,t as ue}from"./split-zARio3J8.js";import{t as O}from"./link-DopSU3aa.js";import{D as k,O as A}from"./dist-Bd8IxQPP.js";import{t as j}from"./minus-CbPnUIOy.js";import{O as M,T as de,n as fe,nt as N,o as P,s as pe,t as me,ut as F}from"./dist-D3C6FyrO.js";import{n as he,t as ge}from"./undo-2-C47jrRp5.js";import{o as _e,y as ve}from"./index-q7X6hdHp.js";import{t as ye}from"./collaborator-BU4qU7O3.js";import{S as be,h as xe,i as Se,n as Ce,p as we,r as Te,t as Ee}from"./syntax-C0iPON60.js";import{i as De,n as Oe,t as ke}from"./syntax-BIEjjMZL.js";import{r as Ae,t as je}from"./browser-C9NP0ZYz.js";import{n as Me,r as Ne,t as Pe}from"./lib-KOEbW83T.js";import{c as Fe,n as Ie,s as Le,t as Re}from"./dist-YW8hS4IM.js";import{i as ze,n as Be,r as Ve,t as He}from"./dist-DruvDNQe.js";import{d as Ue,l as We,o as Ge,p as Ke,r as qe,s as Je,t as I,v as Ye}from"./words-XlXG79Ur.js";var Xe=w(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Ze=w(`square-play`,[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}]]),Qe=m({title:f().optional(),cover:p([f().min(1),m({file:f().min(1),alt:f().optional()})]).optional()}),$e=/^<br\s*\/?>$/iu,et=/^https?:\/\/\S+$/u,tt={extensions:[Ne([`yaml`]),Ce(),Ee(),Te(),ke()],mdastExtensions:[Pe([`yaml`]),xe(),we(),Se(),Oe()]},nt={extensions:[Me([`yaml`])],bullet:`-`,emphasis:`*`,strong:`*`,rule:`-`,fences:!0},rt=e=>`${e.bold===!0?`b`:``}${e.italic===!0?`i`:``}|${e.link??``}`;function L(e){let t=[];for(let n of e){if(n.text===``)continue;let e=t.at(-1);e&&rt(e)===rt(n)?t[t.length-1]={...e,text:e.text+n.text}:t.push(n)}return t}function R(e,t,n,r={}){let i=[];for(let a of e)switch(a.type){case`text`:i.push({...r,text:a.value.replace(/\n/gu,` `)});break;case`break`:i.push({...r,text:` `});break;case`strong`:i.push(...R(a.children,t,n,{...r,bold:!0}));break;case`emphasis`:i.push(...R(a.children,t,n,{...r,italic:!0}));break;case`delete`:t(a,`strikethrough, which LinkedIn's article editor does not have: its words are kept plain`),i.push(...R(a.children,t,n,r));break;case`link`:i.push(...R(a.children,t,n,{...r,link:a.url}));break;case`linkReference`:{let e=n.get(a.identifier.toLowerCase());i.push(...R(a.children,t,n,e===void 0?r:{...r,link:e}));break}case`footnoteReference`:t(a,`a footnote, which LinkedIn's blocks do not hold: write the source in the words, or as a link`);break;case`inlineCode`:t(a,`inline code, which LinkedIn's article editor does not style: write it as words, or as a code snippet`),i.push({...r,text:a.value});break;case`image`:t(a,`a picture inside a line: LinkedIn takes a picture as a block of its own, on a line of its own`);break;case`inlineMath`:t(a,`an equation, which LinkedIn's article editor does not have`),i.push({...r,text:a.value});break;case`html`:/^<!--[\s\S]*-->$/u.test(a.value.trim())||t(a,`HTML, which LinkedIn's blocks do not hold`);break;default:t(a,`${a.type}, which LinkedIn's blocks do not hold`)}return i}var it=e=>e.map(e=>`value`in e?e.value:`children`in e?it(e.children):``).join(``);function z(e){let t=[],n=(e,n)=>{t.push({rule:`article-markup`,line:e.position?.start.line,message:`${n[0]?.toUpperCase()??``}${n.slice(1)}.`})},r=be(e,tt),i=new Map;for(let e of r.children)e.type===`definition`&&i.set(e.identifier.toLowerCase(),e.url);let a=``,o,s=[],c=e=>{switch(e.type){case`yaml`:{let n;try{n=je(e.value)}catch(n){t.push({rule:`format`,line:e.position?.start.line,message:`Its front matter is not YAML: ${n.message.split(`
|
|
2
|
-
`)[0]??``}`});break}let r=Qe.safeParse(n??{});if(!r.success){t.push({rule:`format`,line:e.position?.start.line,message:`Its front matter takes a title and a cover (a file, or { file, alt }): ${r.error.issues.map(e=>e.message).join(`; `)}`});break}a=r.data.title??``;let i=r.data.cover;o=i===void 0?void 0:typeof i==`string`?{file:i}:{file:i.file,...i.alt===void 0?{}:{alt:i.alt}};break}case`paragraph`:{let t=e.children.filter(e=>e.type===`image`),r=e.children.filter(e=>e.type!==`image`&&e.type!==`break`&&(e.type!==`text`||e.value.trim()!==``));if(t.length>0&&r.length===0){for(let e of t)s.push({type:`image`,file:e.url,...e.alt?{alt:e.alt}:{},...e.title?{caption:e.title}:{}});break}let a=it(e.children).trim();if(!a.includes(` `)&&et.test(a)){s.push({type:`embed`,url:a});break}s.push({type:`paragraph`,runs:L(R(e.children,n,i))});break}case`heading`:e.depth>2&&n(e,`a heading of level ${String(e.depth)}: LinkedIn has a Heading (#) and a Subheading (##)`),s.push({type:e.depth===1?`h1`:`h2`,runs:L(R(e.children,n,i))});break;case`blockquote`:for(let t of e.children)t.type===`paragraph`?s.push({type:`quote`,runs:L(R(t.children,n,i))}):n(t,`${t.type} inside a quote, which LinkedIn's blocks do not hold`);break;case`list`:{let t=[],r=()=>{t.length>0&&s.push({type:e.ordered===!0?`ol`:`ul`,items:t}),t=[]};e.ordered===!0&&(e.start??1)!==1&&n(e,`a numbered list starting at ${String(e.start)}: LinkedIn numbers every list from 1`);for(let a of e.children){let[e,...o]=a.children;t.push(e?.type===`paragraph`?L(R(e.children,n,i)):[]),e!==void 0&&e.type!==`paragraph`&&o.unshift(e);for(let e of o)e.type===`list`?n(e,`a list inside a list: LinkedIn's lists are one level deep`):(r(),c(e))}r();break}case`thematicBreak`:s.push({type:`divider`});break;case`code`:s.push({type:`code`,code:e.value,...e.lang?{lang:e.lang}:{}});break;case`math`:n(e,`an equation, which LinkedIn's article editor does not have`);break;case`table`:n(e,`a table, which LinkedIn's article editor does not have: a picture of it, or a list`);break;case`html`:if($e.test(e.value.trim())){s.push({type:`paragraph`,runs:[]});break}if(/^<!--[\s\S]*-->$/u.test(e.value.trim()))break;n(e,`HTML, which LinkedIn's blocks do not hold (an empty line is <br /> alone)`);break;case`definition`:break;case`footnoteDefinition`:n(e,`a footnote, which LinkedIn's blocks do not hold: write the source in the words, or as a link`);break;default:n(e,`${e.type}, which LinkedIn's blocks do not hold`)}},l=[],u;for(let e of r.children){let t=s.length;c(e);let n=e.position&&{from:e.position.start.line,to:e.position.end.line};if(n){e.type===`yaml`&&(u=n);for(let e=t;e<s.length;e++)l.push(n)}}return a.trim()===``&&t.push({rule:`article-title`,line:1,message:`It has no title: LinkedIn's article needs one (front matter: title: …).`}),{article:{title:a,...o?{cover:o}:{},blocks:s},issues:t,lines:l,head:u}}function B(e){return e.map(e=>{let t={type:`text`,value:e.text};return e.italic===!0&&(t={type:`emphasis`,children:[t]}),e.bold===!0&&(t={type:`strong`,children:[t]}),e.link!==void 0&&(t={type:`link`,url:e.link,children:[t]}),t})}function at(e){switch(e.type){case`paragraph`:return e.runs.every(e=>e.text===``)?[{type:`html`,value:`<br />`}]:[{type:`paragraph`,children:B(e.runs)}];case`h1`:case`h2`:return[{type:`heading`,depth:e.type===`h1`?1:2,children:B(e.runs)}];case`quote`:return[{type:`blockquote`,children:[{type:`paragraph`,children:B(e.runs)}]}];case`ul`:case`ol`:return[{type:`list`,ordered:e.type===`ol`,spread:!1,children:e.items.map(e=>({type:`listItem`,spread:!1,children:[{type:`paragraph`,children:B(e)}]}))}];case`image`:return[{type:`paragraph`,children:[{type:`image`,url:e.file,alt:e.alt??``,title:e.caption??null}]}];case`embed`:return[{type:`paragraph`,children:[{type:`text`,value:e.url}]}];case`divider`:return[{type:`thematicBreak`}];case`code`:return[{type:`code`,lang:e.lang??null,value:e.code}]}}function ot(e){let t={title:e.title};e.cover&&(t.cover=e.cover.alt===void 0?e.cover.file:{file:e.cover.file,alt:e.cover.alt});let n={type:`root`,children:[{type:`yaml`,value:Ae(t,{lineWidth:0}).trimEnd()},...e.blocks.flatMap(at)]};return De(n,nt)}var V=e=>e.replace(/&/gu,`&`).replace(/</gu,`<`).replace(/>/gu,`>`).replace(/"/gu,`"`);function H(e){return e.map(e=>{let t=V(e.text);return e.italic===!0&&(t=`<em>${t}</em>`),e.bold===!0&&(t=`<strong>${t}</strong>`),e.link!==void 0&&(t=`<a href="${V(e.link)}">${t}</a>`),t}).join(``)}function st(e,t){switch(e.type){case`paragraph`:return e.runs.length===0?`<p><br></p>`:`<p>${H(e.runs)}</p>`;case`h1`:return`<h1>${H(e.runs)}</h1>`;case`h2`:return`<h2>${H(e.runs)}</h2>`;case`quote`:return`<blockquote><p>${H(e.runs)}</p></blockquote>`;case`ul`:case`ol`:return`<${e.type}>${e.items.map(e=>`<li>${H(e)}</li>`).join(``)}</${e.type}>`;case`code`:return`<pre><code>${V(e.code)}</code></pre>`;case`divider`:return`<hr>`;case`embed`:return`<p><a href="${V(e.url)}">${V(e.url)}</a></p>`;case`image`:{let n=t(e.file);return n===void 0?``:`<figure><img src="${V(n)}" alt="${V(e.alt??``)}">${e.caption===void 0?``:`<figcaption>${V(e.caption)}</figcaption>`}</figure>`}}}function ct(e,t=()=>void 0){return e.blocks.map(e=>st(e,t)).filter(e=>e!==``).join(`
|
|
3
|
-
`)}function lt(e){return e.blocks.map(e=>{switch(e.type){case`ul`:return e.items.map(e=>`• ${e.map(e=>e.text).join(``)}`).join(`
|
|
4
|
-
`);case`ol`:return e.items.map((e,t)=>`${String(t+1)}. ${e.map(e=>e.text).join(``)}`).join(`
|
|
5
|
-
`);case`code`:return e.code;case`divider`:return`---`;case`embed`:return e.url;case`image`:return e.caption??``;default:return e.runs.map(e=>e.text).join(``)}}).join(`
|
|
6
|
-
|
|
7
|
-
`)}var U=e(o(),1),W=g(),ut=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function dt(e,t){if(e.title!==t.title||!ut(e.cover,t.cover))return{head:!0};for(let n=0;n<t.blocks.length;n++)if(!ut(e.blocks[n],t.blocks[n]))return{block:n};if(e.blocks.length>t.blocks.length&&t.blocks.length>0)return{block:t.blocks.length-1}}function ft(e,t){let n=z(e),r=e=>e.from<=t.to&&t.from<=e.to;if(n.head&&r(n.head))return{head:!0};let i=n.lines.findIndex(r);return i<0?void 0:{block:i}}function pt(e,t){if(e.from!==void 0&&e.path===t.path)return ft(t.text,{from:e.from,to:e.to??e.from})}var G=new Fe(`liArticleAgent`),mt=de.create({name:`liArticleAgent`,addProseMirrorPlugins(){return[new Le({key:G,state:{init:()=>null,apply:(e,t)=>{let n=e.getMeta(G);return n===void 0?t:n}},props:{decorations(e){let t=G.getState(e);if(!t)return null;let n;return e.doc.forEach((e,r,i)=>{i===t.block&&(n=Re.node(r,r+e.nodeSize,{class:`ak-li-agent`,"data-agent":t.label,"data-testid":`linkedin-agent-block`}))}),n?Ie.create(e.doc,[n]):null}}})]}});function ht(e,t){e.isDestroyed||e.view.dispatch(e.state.tr.setMeta(G,t))}var K={image:`liImage`,embed:`liEmbed`};function gt(e){let t=[];return e.bold===!0&&t.push({type:`bold`}),e.italic===!0&&t.push({type:`italic`}),e.link!==void 0&&t.push({type:`link`,attrs:{href:e.link}}),{type:`text`,text:e.text,...t.length>0?{marks:t}:{}}}var q=e=>({type:`paragraph`,...e.length>0?{content:e.filter(e=>e.text!==``).map(gt)}:{}});function J(e){let t=e.map(e=>{switch(e.type){case`paragraph`:return q(e.runs);case`h1`:case`h2`:return{type:`heading`,attrs:{level:e.type===`h1`?1:2},...e.runs.length>0?{content:e.runs.map(gt)}:{}};case`quote`:return{type:`blockquote`,content:[q(e.runs)]};case`ul`:case`ol`:return{type:e.type===`ul`?`bulletList`:`orderedList`,content:e.items.map(e=>({type:`listItem`,content:[q(e)]}))};case`code`:return{type:`codeBlock`,attrs:{language:e.lang??null},...e.code===``?{}:{content:[{type:`text`,text:e.code}]}};case`image`:return{type:K.image,attrs:{file:e.file,alt:e.alt??``,caption:e.caption??``}};case`embed`:return{type:K.embed,attrs:{url:e.url}};case`divider`:return{type:`horizontalRule`}}});return{type:`doc`,content:t.length>0?t:[{type:`paragraph`}]}}function _t(e){let t=e.marks??[],n=e=>t.some(t=>t.type===e),r=t.find(e=>e.type===`link`)?.attrs?.href;return{text:e.text??``,...n(`bold`)?{bold:!0}:{},...n(`italic`)?{italic:!0}:{},...r===void 0?{}:{link:r}}}var Y=e=>(e?.content??[]).map(e=>e.type===`hardBreak`?{text:` `}:_t(e)),X=(e,t)=>{let n=e.attrs?.[t];return typeof n==`string`?n:``};function Z(e){let t=[];for(let n of e.content??[])switch(n.type){case`paragraph`:t.push({type:`paragraph`,runs:Y(n)});break;case`heading`:{let e=Number(n.attrs?.level??1);t.push({type:e<=1?`h1`:`h2`,runs:Y(n)});break}case`blockquote`:for(let e of n.content??[])t.push({type:`quote`,runs:Y(e)});break;case`bulletList`:case`orderedList`:t.push({type:n.type===`bulletList`?`ul`:`ol`,items:(n.content??[]).map(e=>(e.content??[]).flatMap(e=>Y(e)))});break;case`codeBlock`:{let e=X(n,`language`);t.push({type:`code`,code:(n.content??[]).map(e=>e.text??``).join(``),...e===``?{}:{lang:e}});break}case`horizontalRule`:t.push({type:`divider`});break;case K.image:{let e=X(n,`alt`),r=X(n,`caption`);t.push({type:`image`,file:X(n,`file`),...e===``?{}:{alt:e},...r===``?{}:{caption:r}});break}case K.embed:t.push({type:`embed`,url:X(n,`url`)})}let n=t[0];return t.length===1&&n?.type===`paragraph`&&n.runs.every(e=>e.text===``)?[]:t}var vt=(0,U.createContext)(()=>void 0),Q=e=>typeof e==`string`?e:``;function yt({node:e,updateAttributes:t}){let n=I(),r=(0,U.useContext)(vt),i=Q(e.attrs.file),a=r(i);return(0,W.jsxs)(fe,{as:`figure`,"data-li":`image`,className:`relative`,children:[(0,W.jsxs)(`div`,{className:`relative`,children:[a===void 0?(0,W.jsx)(`div`,{className:`ak-li-made`,children:i}):(0,W.jsx)(`img`,{src:a,alt:Q(e.attrs.alt)}),(0,W.jsx)(`div`,{className:`absolute bottom-2 left-2`,contentEditable:!1,children:(0,W.jsx)(D,{most:Ye.alt,alt:Q(e.attrs.alt),onAlt:e=>{t({alt:e})},trigger:(0,W.jsx)(u,{variant:`secondary`,size:`xs`,className:`bg-media/75 text-on-media font-bold`,children:n.alt})})})]}),(0,W.jsx)(`input`,{className:`mt-2 w-full bg-transparent text-center text-sm text-[var(--ak-li-muted)] outline-none`,value:Q(e.attrs.caption),placeholder:n.article.caption,"aria-label":n.article.caption,dir:`auto`,onChange:e=>{t({caption:e.target.value})}})]})}function bt({node:e}){return(0,W.jsx)(fe,{"data-li":`embed`,children:(0,W.jsx)(Ue,{url:Q(e.attrs.url)})})}function xt(e,t,n){return M.create({name:e,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return Object.fromEntries(t.map(e=>[e,{default:``}]))},parseHTML(){return[{tag:`div[data-node="${e}"]`}]},renderHTML({HTMLAttributes:t}){return[`div`,N(t,{"data-node":e})]},addNodeView(){return P(n)}})}var St=[xt(K.image,[`file`,`alt`,`caption`],yt),xt(K.embed,[`url`],bt)],Ct=3e4;function wt(e){let t=z(e).issues.find(e=>e.rule===`article-markup`||e.rule===`format`);if(t!==void 0)return t.line===void 0?t.message:`${String(t.line)}: ${t.message}`}var Tt=class{head;listeners=new Set;body;show;session;constructor(e){this.session=e;let{article:t}=z(e.text);this.head={title:t.title,cover:t.cover,state:e.state,held:wt(e.text)},e.attach({save:e=>{let t=this.article();if(t===void 0||wt(e)!==void 0)return;let n=ot(t);return n===ot(z(e).article)?void 0:n},take:(e,t,n)=>{let{article:r}=z(e),i=n?.kind===`agent`?dt(z(t).article,r):void 0;this.set({title:r.title,cover:r.cover,held:wt(e),...i===void 0?{}:{landed:{spot:i,at:Date.now()}}}),this.show?.(r)}}),e.onState(e=>{this.set({state:e})})}get read(){return z(this.session.text).article}bind(e,t){this.body=e,this.show=t}article(){if(this.body!==void 0)return{title:this.head.title,...this.head.cover?{cover:this.head.cover}:{},blocks:this.body()}}get(){return this.head}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}set(e){this.head={...this.head,...e};for(let e of this.listeners)e()}edited(e={}){Object.keys(e).length>0&&this.set(e),this.session.edited()}};function $(e){return(0,W.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,"aria-pressed":e.on,disabled:e.disabled,className:c(e.on===!0&&`bg-here`),onMouseDown:e=>{e.preventDefault()},onClick:e.onClick,children:e.children})}function Et(e){let t=I(),[n,r]=(0,U.useState)(!1),[i,a]=(0,U.useState)(``),o=i.trim()===``||/^https?:\/\/\S+$/u.test(i.trim())?void 0:t.article.notLink;return(0,W.jsxs)(C,{open:n,onOpenChange:e=>{r(e),e&&a(``)},children:[(0,W.jsx)(S,{asChild:!0,children:(0,W.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,disabled:e.disabled,children:e.icon})}),(0,W.jsx)(x,{className:`w-80`,align:`start`,children:(0,W.jsxs)(`form`,{className:`flex flex-col gap-2`,onSubmit:t=>{t.preventDefault(),i.trim()!==``&&o===void 0&&(e.onAnswer(i.trim()),r(!1))},children:[(0,W.jsx)(_e,{autoFocus:!0,value:i,placeholder:e.hint,"aria-label":e.hint,onChange:e=>{a(e.target.value)}}),o===void 0?null:(0,W.jsx)(`p`,{className:`text-destructive text-xs`,children:o}),(0,W.jsx)(u,{type:`submit`,size:`sm`,className:`self-end`,disabled:i.trim()===``||o!==void 0,children:t.article.add})]})})]})}function Dt({editor:e}){let t=I().article,n=()=>e.chain().focus(),r=e.isActive(`heading`,{level:1})?t.heading:e.isActive(`heading`,{level:2})?t.subheading:t.normal;return(0,W.jsxs)(b,{children:[(0,W.jsx)(_,{asChild:!0,children:(0,W.jsxs)(u,{variant:`ghost`,size:`sm`,className:`w-28 justify-between gap-1 px-2`,"aria-label":t.style,onMouseDown:e=>{e.preventDefault()},children:[r,(0,W.jsx)(ee,{})]})}),(0,W.jsxs)(v,{align:`start`,className:`w-44`,children:[(0,W.jsx)(y,{className:`text-sm`,onSelect:()=>n().setParagraph().run(),children:t.normal}),(0,W.jsx)(y,{className:`text-base font-semibold`,onSelect:()=>n().setHeading({level:1}).run(),children:t.heading}),(0,W.jsx)(y,{className:`text-sm font-semibold`,onSelect:()=>n().setHeading({level:2}).run(),children:t.subheading})]})]})}function Ot({article:e}){let t=I().article,[n,r]=(0,U.useState)(!1);return(0,U.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{r(!1)},4e3);return()=>{clearTimeout(e)}},[n]),(0,W.jsxs)(u,{variant:`outline`,size:`sm`,className:`gap-1`,title:n?t.copied:t.copy,"data-testid":`linkedin-copy`,onClick:()=>{let t=e(),n=ct(t),i=lt(t);navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([n],{type:`text/html`}),"text/plain":new Blob([i],{type:`text/plain`})})]).then(()=>{r(!0)})},children:[n?(0,W.jsx)(te,{}):(0,W.jsx)(E,{}),n?t.copied:t.copy]})}function kt({editor:e,dir:t,entry:n}){let r=I(),i=r.article,[,a]=(0,U.useState)(0);(0,U.useEffect)(()=>{let t=()=>{a(e=>e+1)};return e.on(`transaction`,t),()=>{e.off(`transaction`,t)}},[e]);let[o,s]=(0,U.useState)(!1),c=()=>e.chain().focus(),l=(t,n)=>{let{$from:r}=e.state.selection;r.depth>1?c().insertContentAt(r.after(1),{type:t,attrs:n}).run():c().insertContent({type:t,attrs:n}).run()},f=e.getText().split(/\s+/u).filter(e=>e!==``).length;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)($,{label:r.undo,disabled:!e.can().undo(),onClick:()=>c().undo().run(),children:(0,W.jsx)(ge,{})}),(0,W.jsx)($,{label:r.redo,disabled:!e.can().redo(),onClick:()=>c().redo().run(),children:(0,W.jsx)(he,{})}),(0,W.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),(0,W.jsx)(Dt,{editor:e}),(0,W.jsx)($,{label:i.bold,on:e.isActive(`bold`),onClick:()=>c().toggleBold().run(),children:(0,W.jsx)(T,{})}),(0,W.jsx)($,{label:i.italic,on:e.isActive(`italic`),onClick:()=>c().toggleItalic().run(),children:(0,W.jsx)(ie,{})}),(0,W.jsx)($,{label:i.bullets,on:e.isActive(`bulletList`),onClick:()=>c().toggleBulletList().run(),children:(0,W.jsx)(k,{})}),(0,W.jsx)($,{label:i.numbers,on:e.isActive(`orderedList`),onClick:()=>c().toggleOrderedList().run(),children:(0,W.jsx)(A,{})}),(0,W.jsx)($,{label:i.quote,on:e.isActive(`blockquote`),onClick:()=>c().toggleBlockquote().run(),children:(0,W.jsx)(F,{})}),(0,W.jsx)($,{label:i.code,on:e.isActive(`codeBlock`),onClick:()=>c().toggleCodeBlock().run(),children:(0,W.jsx)(Xe,{})}),(0,W.jsx)($,{label:i.divider,onClick:()=>c().setHorizontalRule().run(),children:(0,W.jsx)(j,{})}),e.isActive(`link`)?(0,W.jsx)($,{label:i.removeLink,on:!0,onClick:()=>c().extendMarkRange(`link`).unsetLink().run(),children:(0,W.jsx)(d,{})}):(0,W.jsx)(Et,{label:i.link,hint:i.linkHint,icon:(0,W.jsx)(O,{}),disabled:e.state.selection.empty,onAnswer:e=>{c().extendMarkRange(`link`).setLink({href:e}).run()}}),(0,W.jsx)(Et,{label:i.embed,hint:i.embedHint,icon:(0,W.jsx)(Ze,{}),onAnswer:e=>{l(K.embed,{url:e})}}),(0,W.jsxs)(C,{open:o,onOpenChange:s,children:[(0,W.jsx)(S,{asChild:!0,children:(0,W.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":i.image,title:i.image,children:(0,W.jsx)(ve,{})})}),(0,W.jsx)(x,{className:`w-auto`,align:`start`,children:(0,W.jsx)(ce,{self:n,types:Ge,testId:`linkedin-picker`,onPick:e=>{s(!1),l(K.image,{file:ae(t,e),alt:``,caption:``})}})})]}),(0,W.jsx)(`span`,{className:`text-muted-foreground ml-2 text-xs tabular-nums`,children:i.words(f)})]})}function At({doc:e,dir:r,entry:o}){let c=I(),f=a(),p=i(),m=(0,U.useSyncExternalStore)(t=>e.subscribe(t),()=>e.get()),h=p||m.held!==void 0,g=(0,U.useMemo)(()=>e.read,[e]),[ee,_]=(0,U.useState)(()=>g.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),v=pe({textDirection:`auto`,editable:!h,immediatelyRender:!0,extensions:[He.configure({heading:{levels:[1,2]},listItem:!1,blockquote:!1,code:!1,strike:!1,underline:!1,hardBreak:!1,link:{openOnClick:!1,autolink:!0}}),Be.extend({content:`paragraph`}),Ve.extend({content:`paragraph`}),ze.configure({placeholder:c.article.body}),mt,...St],content:J(g.blocks),onUpdate:({editor:t,transaction:n})=>{n.docChanged&&(_(Z(t.getJSON()).flatMap(e=>e.type===`image`?[e.file]:[])),e.edited())}}),[te,y]=(0,U.useState)(()=>g.blocks);(0,U.useEffect)(()=>{e.bind(()=>Z(v.getJSON()),e=>{v.commands.setContent(J(e.blocks),{emitUpdate:!1}),_(e.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),y(e.blocks)})},[e,v]),(0,U.useEffect)(()=>{v.setEditable(!h)},[v,h]),(0,U.useEffect)(()=>{let e=()=>{y(Z(v.getJSON()))};return v.on(`update`,e),()=>{v.off(`update`,e)}},[v]);let b=(0,U.useDeferredValue)(te),{agent:w,following:T}=t(),ie=ne(),E=(()=>{if(w?.doing===void 0)return;let t=m.landed,n=t!==void 0&&t.at>=w.at-Ct;return n&&w.source?.path===o?t.spot:(w.source?pt(w.source,{path:o,text:e.session.text}):void 0)??(n?t.spot:void 0)})(),D=E&&`block`in E?E.block:void 0,O=E!==void 0&&`head`in E,k=w?ie(w):``,A=(0,U.useRef)(null),j=(0,U.useRef)(null);(0,U.useEffect)(()=>{ht(v,D===void 0?null:{block:D,label:k})},[v,D,k]),(0,U.useEffect)(()=>{let e=j.current;if(e){for(let t of e.querySelectorAll(`[data-agent]`))t.removeAttribute(`data-agent`);(O?e.querySelector(`.ak-li-a-title`):D===void 0?null:e.querySelector(`.ak-li-a-body`)?.children[D])?.setAttribute(`data-agent`,``)}},[D,O,b,m.title]),(0,U.useEffect)(()=>{T&&E!==void 0&&((O?A.current?.querySelector(`.ak-li-a-title`):A.current?.querySelector(`[data-testid="linkedin-agent-block"]`))?.scrollIntoView({block:`nearest`}),j.current?.querySelector(`[data-agent]`)?.scrollIntoView({block:`nearest`}))},[T,E,O,m.landed]),n({hold:()=>Promise.resolve({key:`${o}@${String(e.session.text.length)}`,what:`The LinkedIn article ${o}`,source:{path:o}}),locate:t=>{let n=z(e.session.text),r=e=>{let t=e?.getBoundingClientRect();return t&&t.width>0&&t.height>0?{x:t.x,y:t.y,width:t.width,height:t.height}:void 0},i=s(t)[0],a=e=>e!==void 0&&i!==void 0&&i.x>=e.x&&i.x<=e.x+e.width&&i.y>=e.y&&i.y<=e.y+e.height,c=[{as:`where it is written`,head:[`.ak-li-a-cover`,`.ak-li-a-title`].map(e=>A.current?.querySelector(e)),blocks:[...A.current?.querySelector(`.ak-li-a-body .ProseMirror`)?.children??[]]},{as:`as LinkedIn will show it`,head:[`.ak-li-a-cover`,`.ak-li-a-title`].map(e=>j.current?.querySelector(e)),blocks:[...j.current?.querySelector(`.ak-li-a-body`)?.children??[]]}],u=e=>e===void 0?{}:{line:e.from,...e.to>e.from?{endLine:e.to}:{}},d=c.some(e=>e.head.some(e=>{let n=r(e);return n!==void 0&&l(t,n)})),f=new Set;for(let e of c)e.blocks.forEach((e,n)=>{let i=r(e);i&&l(t,i)&&f.add(n)});let p=[...d?[{name:`the article's head: its cover and title`,source:{path:o,...u(n.head)},...m.title===``?{}:{text:m.title}}]:[],...[...f].sort((e,t)=>e-t).map(e=>{let t=c.map(t=>t.blocks[e]?.textContent.trim()??``).find(e=>e!==``)??``;return{name:`block ${String(e+1)} of the article`,source:{path:o,...u(n.lines[e])},...t===``?{}:{text:t}}})],h=c.flatMap(e=>{if(e.head.some(e=>a(r(e))))return[`in the article's head, ${e.as}`];let t=e.blocks.findIndex(e=>a(r(e)));return t<0?[]:[`in block ${String(t+1)}, ${e.as}`]}).at(0);return Promise.resolve({elements:p,...h===void 0?{}:{where:h}})}});let M=oe(r,[...m.cover?[m.cover.file]:[],...ee]),de=(0,U.useMemo)(()=>e=>M.get(e),[M]),[fe,N]=(0,U.useState)(!1),P=m.cover===void 0?void 0:M.get(m.cover.file),F=f?.theme===`dark`,he=(0,W.jsxs)(C,{open:fe,onOpenChange:N,children:[(0,W.jsx)(`div`,{className:`ak-li-a-cover ak-li-e-cover relative`,children:m.cover===void 0?h?null:(0,W.jsx)(S,{asChild:!0,children:(0,W.jsxs)(u,{variant:`ghost`,className:`size-full flex-col gap-2 rounded-none text-sm font-normal text-[var(--ak-li-muted)]`,children:[(0,W.jsx)(se,{className:`size-6`}),c.article.addCover]})}):(0,W.jsxs)(W.Fragment,{children:[P===void 0?(0,W.jsx)(`div`,{className:`ak-li-made`,children:m.cover.file}):/\.mp4$/iu.test(m.cover.file)?(0,W.jsx)(`video`,{src:P,muted:!0,playsInline:!0,className:`w-full`}):(0,W.jsx)(`img`,{src:P,alt:m.cover.alt??``}),h?null:(0,W.jsxs)(`div`,{className:`absolute top-2 right-2 flex gap-1`,children:[(0,W.jsx)(S,{asChild:!0,children:(0,W.jsxs)(u,{variant:`secondary`,size:`sm`,className:`bg-media/75 text-on-media`,children:[(0,W.jsx)(se,{}),c.article.changeCover]})}),(0,W.jsx)(u,{variant:`secondary`,size:`icon-sm`,className:`bg-media/75 text-on-media`,"aria-label":c.article.removeCover,title:c.article.removeCover,onClick:()=>{e.edited({cover:void 0})},children:(0,W.jsx)(d,{})})]})]})}),(0,W.jsx)(x,{className:`w-auto`,align:`center`,children:(0,W.jsx)(ce,{self:o,types:qe,testId:`linkedin-picker`,onPick:t=>{N(!1),e.edited({cover:{file:ae(r,t)}})}})})]}),ge=(0,W.jsxs)(`div`,{ref:A,className:`ak-li ak-li-editing min-h-full`,"data-theme":F?`dark`:`light`,children:[he,(0,W.jsxs)(`div`,{className:`ak-li-e-page`,children:[(0,W.jsxs)(`div`,{className:`relative`,children:[(0,W.jsx)(`textarea`,{className:`ak-li-a-title block w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-[var(--ak-li-muted)]`,value:m.title,placeholder:c.article.title,"aria-label":c.article.title,readOnly:h,dir:`auto`,"data-testid":`linkedin-article-title`,onChange:t=>{h||e.edited({title:t.target.value.replace(/\n/gu,` `)})}}),w&&O?(0,W.jsx)(ye,{"data-testid":`linkedin-agent-head`,label:k,className:`-inset-1`}):null]}),(0,W.jsx)(We,{}),(0,W.jsx)(vt.Provider,{value:de,children:(0,W.jsx)(`div`,{className:`ak-li-a-body`,"data-testid":`linkedin-article-body`,children:(0,W.jsx)(me,{editor:v,className:`[&_.ProseMirror]:outline-none`})})})]})]}),_e=()=>({title:m.title,...m.cover?{cover:m.cover}:{},blocks:Z(v.getJSON())}),ve=(0,W.jsx)(`div`,{ref:j,className:`ak-li ak-li-page`,"data-theme":F?`dark`:`light`,children:(0,W.jsx)(Je,{article:{title:m.title,...m.cover?{cover:m.cover}:{},blocks:b},source:de})});return(0,W.jsxs)(`div`,{className:`bg-background flex size-full flex-col`,"data-testid":`linkedin-article-editor`,children:[(0,W.jsx)(re,{start:(0,W.jsxs)(W.Fragment,{children:[h?null:(0,W.jsx)(kt,{editor:v,dir:r,entry:o}),(0,W.jsx)(`span`,{className:`ml-auto`}),(0,W.jsx)(Ot,{article:_e})]}),saved:{state:m.state},exports:{}}),m.held===void 0?null:(0,W.jsx)(`p`,{className:`text-lead border-b px-4 py-2 text-sm`,role:`status`,"data-testid":`linkedin-article-held`,children:c.article.held(m.held)}),(0,W.jsx)(Ke.Provider,{value:le,children:(0,W.jsx)(ue,{edit:ge,preview:ve,width:632,background:F?`#000000`:`#f4f2ee`,testId:`linkedin-preview`})})]})}function jt(){let e=I(),t=r(),n=a(),i=n?.item.entry,o=n?.item.dir??``,[s,c]=(0,U.useState)(),[l,u]=(0,U.useState)();return(0,U.useEffect)(()=>{if(i===void 0)return;let e,n=!0;return h.open(t,i).then(t=>{n?(e=t,c(new Tt(t))):t.close()},e=>{n&&u(e instanceof Error?e.message:String(e))}),()=>{n=!1,e?.close()}},[t,i]),!s||i===void 0?(0,W.jsx)(`div`,{className:`text-muted-foreground flex size-full items-center justify-center text-sm`,"data-testid":`linkedin-article-editor`,"data-state":l===void 0?`loading`:`error`,children:l===void 0?e.article.loading:e.couldNotOpen(l)}):(0,W.jsx)(At,{doc:s,dir:o,entry:i})}export{jt as LinkedInArticleEditor,jt as default,Z as fromDoc,J as toDoc};
|