allyhub 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/add.js +2 -2
- package/dist/commands/auth.js +4 -4
- package/dist/commands/cloud-tools.js +9 -10
- package/dist/commands/dev.js +1 -1
- package/dist/commands/doctor.js +4 -4
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames.js +6 -6
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/contrast.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/orgs.js +2 -2
- package/dist/commands/render.js +2 -2
- package/dist/commands/sheet.js +2 -2
- package/dist/commands/slides.js +3 -0
- package/dist/main.js +3 -3
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/works.js +1 -1
- package/editor-web/assets/browser-B31cR_c2.js +105 -0
- package/editor-web/assets/dist-6TNEuNMX.js +4 -0
- package/editor-web/assets/dist-Cm2TIjW5.js +2 -0
- package/editor-web/assets/dist-Cpt0p8bX.js +6 -0
- package/editor-web/assets/dist-D2GccKEJ.js +1 -0
- package/editor-web/assets/dist-Z0zvYXmu.js +233 -0
- package/editor-web/assets/dist-fs4ONrUV.js +32 -0
- package/editor-web/assets/index-CAcsAZ9u.js +70 -0
- package/editor-web/assets/index-DlcJckhO.css +2 -0
- package/editor-web/assets/list-D2v7U8K8.js +1 -0
- package/editor-web/assets/react-D0RmGe2w.js +101 -0
- package/editor-web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/editor-web/assets/text-align-start-B3k2cx5f.js +1 -0
- package/editor-web/assets/undo-2-Ecr7-Obc.js +1 -0
- package/editor-web/index.html +4 -4
- package/node_modules/@allyhub-next/audio/package.json +1 -1
- package/node_modules/@allyhub-next/browser/package.json +1 -1
- package/node_modules/@allyhub-next/build/dist/data.js +1 -1
- package/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +10 -0
- package/node_modules/@allyhub-next/build/dist/meta-worker.js +2 -2
- package/node_modules/@allyhub-next/build/dist/model-info.js +2 -1
- package/node_modules/@allyhub-next/build/dist/plugin.d.ts +2 -0
- package/node_modules/@allyhub-next/build/dist/plugin.js +9 -8
- package/node_modules/@allyhub-next/build/dist/prepare.d.ts +13 -1
- package/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
- package/node_modules/@allyhub-next/build/dist/scan.d.ts +1 -1
- package/node_modules/@allyhub-next/build/dist/scan.js +1 -1
- package/node_modules/@allyhub-next/build/dist/types.js +3 -3
- package/node_modules/@allyhub-next/build/package.json +1 -1
- package/node_modules/@allyhub-next/check/dist/check.js +3 -3
- package/node_modules/@allyhub-next/check/dist/generated.d.ts +1 -1
- package/node_modules/@allyhub-next/check/package.json +1 -1
- package/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
- package/node_modules/@allyhub-next/cloud/dist/signin.js +2 -2
- package/node_modules/@allyhub-next/cloud/dist/token.js +1 -1
- package/node_modules/@allyhub-next/cloud/package.json +1 -1
- package/node_modules/@allyhub-next/components/package.json +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/card.d.ts +2 -11
- package/node_modules/@allyhub-next/dev-server/dist/card.js +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +2 -2
- package/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/index.d.ts +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/live.d.ts +3 -0
- package/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/project.d.ts +3 -0
- package/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +6 -0
- package/node_modules/@allyhub-next/dev-server/dist/reveal.js +2 -0
- package/node_modules/@allyhub-next/dev-server/dist/server.js +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +2 -0
- package/node_modules/@allyhub-next/dev-server/dist/stage.js +22 -2
- package/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +2 -0
- package/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
- package/node_modules/@allyhub-next/dev-server/package.json +1 -1
- package/node_modules/@allyhub-next/doc/dist/docx.d.ts +28 -0
- package/node_modules/@allyhub-next/doc/dist/docx.js +4 -0
- package/node_modules/@allyhub-next/doc/dist/html.d.ts +3 -0
- package/node_modules/@allyhub-next/doc/dist/html.js +1 -1
- package/node_modules/@allyhub-next/doc/package.json +5 -1
- package/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +24 -0
- package/node_modules/@allyhub-next/export/dist/deck-fonts.js +2 -0
- package/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +12 -0
- package/node_modules/@allyhub-next/export/dist/deck-pptx.js +2 -0
- package/node_modules/@allyhub-next/export/dist/export.d.ts +12 -3
- package/node_modules/@allyhub-next/export/dist/export.js +2 -2
- package/node_modules/@allyhub-next/export/dist/index.d.ts +1 -0
- package/node_modules/@allyhub-next/export/dist/index.js +1 -1
- package/node_modules/@allyhub-next/export/dist/names.d.ts +11 -6
- package/node_modules/@allyhub-next/export/dist/names.js +1 -1
- package/node_modules/@allyhub-next/export/package.json +1 -1
- package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +22 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1494 -0
- package/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.d.ts +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/items.d.ts +21 -0
- package/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
- package/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +418 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/node_modules/@allyhub-next/formats/package.json +1 -1
- package/node_modules/@allyhub-next/measure/dist/index.d.ts +1 -1
- package/node_modules/@allyhub-next/measure/dist/index.js +1 -1
- package/node_modules/@allyhub-next/measure/dist/overlay.d.ts +14 -1
- package/node_modules/@allyhub-next/measure/dist/overlay.js +1 -1
- package/node_modules/@allyhub-next/measure/package.json +1 -1
- package/node_modules/@allyhub-next/media/dist/asr/parakeet.d.ts +1 -4
- package/node_modules/@allyhub-next/media/dist/asr/parakeet.js +4 -4
- package/node_modules/@allyhub-next/media/dist/asr/transcribe.d.ts +1 -1
- package/node_modules/@allyhub-next/media/dist/asr/transcribe.js +1 -1
- package/node_modules/@allyhub-next/media/dist/grid.d.ts +3 -3
- package/node_modules/@allyhub-next/media/dist/grid.js +5 -5
- package/node_modules/@allyhub-next/media/dist/local.d.ts +3 -0
- package/node_modules/@allyhub-next/media/dist/local.js +1 -1
- package/node_modules/@allyhub-next/media/dist/ocr/tesseract.d.ts +8 -2
- package/node_modules/@allyhub-next/media/dist/ocr/tesseract.js +1 -1
- package/node_modules/@allyhub-next/media/dist/ocr/text.js +3 -3
- package/node_modules/@allyhub-next/media/dist/ocr/worker.js +1 -1
- package/node_modules/@allyhub-next/media/dist/sheet.js +3 -3
- package/node_modules/@allyhub-next/media/dist/tools.d.ts +11 -1
- package/node_modules/@allyhub-next/media/dist/tools.js +1 -1
- package/node_modules/@allyhub-next/media/dist/vision/faces.js +1 -1
- package/node_modules/@allyhub-next/media/dist/vision/matte.js +1 -1
- package/node_modules/@allyhub-next/media/dist/vision/runtime.d.ts +1 -1
- package/node_modules/@allyhub-next/media/dist/vision/runtime.js +2 -2
- package/node_modules/@allyhub-next/media/dist/worker-process.d.ts +1 -1
- package/node_modules/@allyhub-next/media/dist/worker-process.js +1 -1
- package/node_modules/@allyhub-next/media/package.json +1 -1
- package/node_modules/@allyhub-next/model/dist/build-job.d.ts +2 -0
- package/node_modules/@allyhub-next/model/dist/build-worker.js +1 -1
- package/node_modules/@allyhub-next/model/dist/build.d.ts +10 -0
- package/node_modules/@allyhub-next/model/dist/build.js +2 -1
- package/node_modules/@allyhub-next/model/package.json +1 -1
- package/node_modules/@allyhub-next/project/dist/digest.d.ts +1 -3
- package/node_modules/@allyhub-next/project/dist/digest.js +1 -1
- package/node_modules/@allyhub-next/project/dist/page.d.ts +0 -5
- package/node_modules/@allyhub-next/project/dist/page.js +2 -2
- package/node_modules/@allyhub-next/project/dist/session.js +1 -1
- package/node_modules/@allyhub-next/project/package.json +1 -1
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +0 -64
- package/node_modules/@allyhub-next/protocol/dist/app.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +0 -17
- package/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +0 -4
- package/node_modules/@allyhub-next/protocol/dist/cli.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +9 -26
- package/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/index.d.ts +1 -0
- package/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/notes.d.ts +163 -0
- package/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +1 -1
- package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
- package/node_modules/@allyhub-next/protocol/dist/runtimes.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +37 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/node_modules/@allyhub-next/protocol/package.json +1 -1
- package/node_modules/@allyhub-next/registry/dist/registry.js +1 -1
- package/node_modules/@allyhub-next/registry/package.json +1 -1
- package/node_modules/@allyhub-next/render/dist/doc/index.d.ts +1 -1
- package/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
- package/node_modules/@allyhub-next/render/dist/doc/print.d.ts +11 -0
- package/node_modules/@allyhub-next/render/dist/doc/print.js +17 -1
- package/node_modules/@allyhub-next/render/dist/exports.d.ts +29 -4
- package/node_modules/@allyhub-next/render/dist/exports.js +2 -2
- package/node_modules/@allyhub-next/render/dist/page.d.ts +11 -1
- package/node_modules/@allyhub-next/render/dist/render.d.ts +2 -0
- package/node_modules/@allyhub-next/render/dist/render.js +2 -2
- package/node_modules/@allyhub-next/render/package.json +1 -1
- package/node_modules/@allyhub-next/runtime/LICENSE +241 -0
- package/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +13 -3
- package/node_modules/@allyhub-next/runtime/dist/clock.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/env.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/facade.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/footage.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/frame.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/index.d.ts +2 -0
- package/node_modules/@allyhub-next/runtime/dist/index.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/locate.d.ts +11 -0
- package/node_modules/@allyhub-next/runtime/dist/locate.js +2 -0
- package/node_modules/@allyhub-next/runtime/dist/measure.d.ts +2 -1
- package/node_modules/@allyhub-next/runtime/dist/measure.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/output.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/piece.d.ts +5 -9
- package/node_modules/@allyhub-next/runtime/dist/piece.js +2 -2
- package/node_modules/@allyhub-next/runtime/dist/player/player.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/reads.d.ts +2 -0
- package/node_modules/@allyhub-next/runtime/dist/reads.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/sound.js +1 -1
- package/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +12 -0
- package/node_modules/@allyhub-next/runtime/dist/stage-kit.js +2 -0
- package/node_modules/@allyhub-next/runtime/package.json +5 -6
- package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
- package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +1 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
- package/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
- package/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +2 -2
- package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.js +1 -1
- package/node_modules/@allyhub-next/runtimes/package.json +5 -1
- package/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
- package/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
- package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +2533 -0
- package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
- package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
- package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
- package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
- package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
- package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
- package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
- package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
- package/node_modules/@allyhub-next/scaffold/dist/index.js +3 -3
- package/node_modules/@allyhub-next/scaffold/package.json +1 -1
- package/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +2 -2
- package/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
- package/node_modules/@allyhub-next/scenery-host/dist/viewer.d.ts +11 -0
- package/node_modules/@allyhub-next/scenery-host/dist/viewer.js +1 -1
- package/node_modules/@allyhub-next/scenery-host/package.json +1 -1
- package/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/node_modules/@allyhub-next/site/dist/media.js +2 -2
- package/node_modules/@allyhub-next/site/package.json +1 -1
- package/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
- package/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
- package/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
- package/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
- package/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
- package/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart.d.ts +184 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
- package/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
- package/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
- package/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
- package/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
- package/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
- package/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/model.d.ts +278 -0
- package/node_modules/@allyhub-next/slides-core/dist/model.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
- package/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
- package/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
- package/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
- package/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
- package/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
- package/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
- package/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +23 -0
- package/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
- package/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
- package/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
- package/node_modules/@allyhub-next/slides-core/package.json +14 -0
- package/node_modules/@allyhub-next/slides-pptx/LICENSE +241 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +6 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/charts.js +2 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +45 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/fonts.js +2 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +18 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/import.js +3 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +5 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/index.js +2 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +55 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/read.js +4 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +67 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +2 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +21 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/text.js +2 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +4 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/theme.js +2 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +32 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/timing.js +2 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +32 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/write.js +3 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +26 -0
- package/node_modules/@allyhub-next/slides-pptx/dist/xml.js +3 -0
- package/node_modules/@allyhub-next/slides-pptx/package.json +14 -0
- package/node_modules/@allyhub-next/slides-runtime/LICENSE +241 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +40 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/draw.js +3 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +4 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/edit.js +2 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +4 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/index.js +2 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +10 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/ink.js +2 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +6 -0
- package/node_modules/@allyhub-next/slides-runtime/dist/load.js +6 -0
- package/node_modules/@allyhub-next/slides-runtime/package.json +14 -0
- package/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
- package/node_modules/@allyhub-next/stage/dist/identity.js +1 -1
- package/node_modules/@allyhub-next/stage/dist/page.d.ts +9 -0
- package/node_modules/@allyhub-next/stage/dist/page.js +12 -2
- package/node_modules/@allyhub-next/stage/dist/server.js +1 -1
- package/node_modules/@allyhub-next/stage/package.json +1 -1
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/400-italic.css +79 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/400.css +79 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/700-italic.css +79 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/700.css +79 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/LICENSE +93 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/arial.css +316 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/400-italic.css +69 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/400.css +69 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/700-italic.css +69 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/700.css +69 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/LICENSE +93 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/calibri.css +276 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-400-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-400-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-700-italic.woff2 +0 -0
- package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-700-normal.woff2 +0 -0
- package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/400.css +1 -1
- package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/700.css +1 -1
- package/node_modules/@allyhub-next/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +2018 -0
- package/node_modules/@allyhub-next/stage-page/dist/host.js +21 -0
- package/node_modules/@allyhub-next/stage-page/dist/page.js +79 -0
- package/node_modules/@allyhub-next/stage-page/package.json +14 -0
- package/node_modules/@allyhub-next/video-core/dist/export.d.ts +6 -5
- package/node_modules/@allyhub-next/video-core/dist/export.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +173 -4
- package/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +6 -13
- package/node_modules/@allyhub-next/video-core/dist/formats.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -1
- package/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +83 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +8 -9
- package/node_modules/@allyhub-next/video-core/dist/piece.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +5 -1
- package/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -2
- package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
- package/node_modules/@allyhub-next/video-core/dist/script.d.ts +8 -0
- package/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
- package/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/package.json +48 -41
- package/dist/commands/mcp-app.js +0 -3
- package/dist/commands/mcp-docs.js +0 -2
- package/dist/commands/mcp.js +0 -2
- package/editor-app/view.html +0 -128
- package/editor-web/assets/chevron-left-W6sP7nB1.js +0 -1
- package/editor-web/assets/chevron-up-566GQpAm.js +0 -1
- package/editor-web/assets/dist-BKDr73BR.js +0 -136
- package/editor-web/assets/dist-CPCNTYVu.js +0 -8
- package/editor-web/assets/dist-C_NajYp0.js +0 -1
- package/editor-web/assets/dist-mA6NrAKh.js +0 -232
- package/editor-web/assets/floating-ui.react-dom-BUxFRF6t.js +0 -1
- package/editor-web/assets/index-CFZhjTQW.js +0 -56
- package/editor-web/assets/index-DgU-lyX6.css +0 -2
- package/editor-web/assets/react-Ff_buMj8.js +0 -61
- package/editor-web/assets/undo-2-BKFItM3X.js +0 -1
- package/node_modules/@allyhub-next/runtime/dist/host.js +0 -21
- package/node_modules/@allyhub-next/runtime/dist/page.js +0 -72
- package/node_modules/@allyhub-next/runtime/dist/paged.d.ts +0 -16
- package/node_modules/@allyhub-next/runtime/dist/paged.js +0 -2
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
- package/node_modules/@allyhub-next/video-core/dist/slides.js +0 -2
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-color-emoji/LICENSE +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-color-emoji/emoji.css +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-color-emoji/files/noto-color-emoji-emoji-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/LICENSE +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-100-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-100-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-101-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-101-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-102-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-102-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-103-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-103-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-104-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-104-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-105-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-105-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-106-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-106-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-107-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-107-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-108-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-108-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-109-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-109-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-110-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-110-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-111-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-111-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-112-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-112-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-113-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-113-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-114-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-114-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-115-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-115-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-116-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-116-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-117-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-117-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-118-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-118-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-119-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-119-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-21-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-21-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-22-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-22-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-23-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-23-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-24-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-24-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-25-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-25-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-26-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-26-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-27-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-27-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-28-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-28-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-29-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-29-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-30-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-30-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-31-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-31-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-32-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-32-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-33-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-33-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-34-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-34-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-35-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-35-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-36-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-36-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-37-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-37-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-38-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-38-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-39-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-39-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-4-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-4-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-40-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-40-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-41-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-41-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-42-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-42-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-43-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-43-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-44-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-44-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-45-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-45-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-46-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-46-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-47-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-47-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-48-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-48-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-49-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-49-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-5-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-5-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-50-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-50-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-51-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-51-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-52-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-52-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-53-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-53-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-54-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-54-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-55-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-55-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-56-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-56-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-57-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-57-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-58-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-58-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-59-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-59-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-6-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-6-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-60-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-60-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-61-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-61-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-62-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-62-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-63-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-63-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-64-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-64-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-65-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-65-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-66-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-66-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-67-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-67-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-68-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-68-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-69-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-69-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-70-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-70-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-71-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-71-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-72-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-72-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-73-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-73-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-74-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-74-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-75-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-75-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-76-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-76-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-77-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-77-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-78-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-78-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-79-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-79-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-80-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-80-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-81-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-81-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-82-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-82-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-83-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-83-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-84-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-84-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-85-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-85-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-86-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-86-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-87-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-87-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-88-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-88-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-89-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-89-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-90-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-90-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-91-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-91-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-97-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-97-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-98-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-98-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-99-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-99-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-cyrillic-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-cyrillic-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-ext-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-ext-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-vietnamese-400-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-vietnamese-700-normal.woff2 +0 -0
- /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/host.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FontDef, LevelStyle, LevelsDef, ParagraphDef, ParagraphFormatDef, TextFrameDef, TextStyle } from "@allyhub-next/slides-core";
|
|
2
|
+
/** A run's or a level's character properties (`a:rPr`, `a:defRPr`, `a:endParaRPr`). */
|
|
3
|
+
export declare function runProps(tag: "a:rPr" | "a:defRPr" | "a:endParaRPr", f: FontDef | undefined, lang?: string): string;
|
|
4
|
+
/** A list style's levels as `a:lvl1pPr`…`a:lvl9pPr`, the empty ones left out; under `tag`. */
|
|
5
|
+
export declare function listStyle(levels: LevelsDef, tag?: string): string;
|
|
6
|
+
/** A resolved level as a list style's level: every value written (what a text box's own style is). */
|
|
7
|
+
export declare function levelOf(l: LevelStyle): ParagraphFormatDef;
|
|
8
|
+
/** A text frame's body properties, from what it sets (a frame of code) or its resolved style. */
|
|
9
|
+
export declare function bodyProps(t: Pick<TextFrameDef, "vertical_anchor" | "auto_size" | "word_wrap" | "margin_left" | "margin_top" | "margin_right" | "margin_bottom">, fitted?: number, extra?: Record<string, string | number>): string;
|
|
10
|
+
/** A resolved style's body as a text frame's own. */
|
|
11
|
+
export declare const bodyOfStyle: (s: TextStyle) => Parameters<typeof bodyProps>[0];
|
|
12
|
+
/** What slides.yaml sets on a placeholder's whole text, written on each of its paragraphs and runs. */
|
|
13
|
+
export interface TextOverride {
|
|
14
|
+
font: FontDef;
|
|
15
|
+
alignment?: ParagraphFormatDef["alignment"];
|
|
16
|
+
}
|
|
17
|
+
/** A paragraph: its level and own properties, its runs, `\v` a line break. */
|
|
18
|
+
export declare function paragraph(p: ParagraphDef, lang: string | undefined, over?: TextOverride): string;
|
|
19
|
+
/** A text body: body properties, list style, paragraphs (at least one, as the schema asks). */
|
|
20
|
+
export declare function txBody(tag: "p:txBody" | "a:txBody", body: string, lstStyle: string, paragraphs: readonly ParagraphDef[], lang: string | undefined, over?: TextOverride): string;
|
|
21
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{face as g}from"./theme.js";import{centipoints as d,el as t,esc as b,fill as f}from"./xml.js";const h={t:"t",ctr:"ctr",b:"b"},P={"+mj-lt":"+mj-ea","+mn-lt":"+mn-ea"};export function runProps(n,e,a){const r=e?.rgb!==void 0?f({rgb:e.rgb}):e?.color!==void 0?f(e.color):"",i=e?.name===void 0?void 0:P[e.name];return t(n,{lang:a,sz:e?.size===void 0?void 0:d(e.size),b:e?.bold,i:e?.italic,u:e?.underline===void 0?void 0:e.underline?"sng":"none",spc:e?.spacing===void 0?void 0:d(e.spacing)},r,e?.name===void 0?"":t("a:latin",{typeface:g(e.name)}),i===void 0?"":t("a:ea",{typeface:i}))}function m(n,e){const a=n.line_spacing;return{attrs:{marL:n.margin_left,indent:n.indent,algn:n.alignment},children:[a===void 0?"":t("a:lnSpc",{},"lines"in a?t("a:spcPct",{val:Math.round(a.lines*1e5)}):t("a:spcPts",{val:d(a.fixed)})),n.space_before===void 0?"":t("a:spcBef",{},t("a:spcPts",{val:d(n.space_before)})),n.space_after===void 0?"":t("a:spcAft",{},t("a:spcPts",{val:d(n.space_after)})),n.bullet_font===void 0||n.bullet===null?"":t("a:buFont",{typeface:n.bullet_font}),n.bullet===void 0?"":n.bullet===null?t("a:buNone"):t("a:buChar",{char:n.bullet}),e&&n.font&&Object.keys(n.font).length>0?runProps("a:defRPr",n.font):""]}}export function listStyle(n,e="a:lstStyle"){const a=n.slice(0,9).flatMap((r,i)=>{const{attrs:o,children:l}=m(r,!0),u=l.join("");return u===""&&Object.values(o).every(s=>s===void 0)?[]:[t(`a:lvl${String(i+1)}pPr`,o,u)]});return t(e,{},...a)}export function levelOf(n){return{alignment:n.alignment,line_spacing:n.line_spacing,space_before:n.space_before,space_after:n.space_after,bullet:n.bullet?n.bullet.char:null,...n.bullet?.font===void 0?{}:{bullet_font:n.bullet.font},margin_left:n.margin_left,indent:n.indent,font:n.font}}export function bodyProps(n,e,a={}){const r=e!==void 0?t("a:normAutofit",{fontScale:Math.round(e*1e5)}):n.auto_size==="text"?t("a:normAutofit"):n.auto_size==="shape"?t("a:spAutoFit"):n.auto_size==="none"?t("a:noAutofit"):"";return t("a:bodyPr",{wrap:n.word_wrap===void 0?void 0:n.word_wrap?"square":"none",lIns:n.margin_left,tIns:n.margin_top,rIns:n.margin_right,bIns:n.margin_bottom,anchor:n.vertical_anchor===void 0?void 0:h[n.vertical_anchor],...a},r)}export const bodyOfStyle=n=>({vertical_anchor:n.vertical_anchor,auto_size:n.auto_size,word_wrap:n.word_wrap,margin_left:n.margins.left,margin_top:n.margins.top,margin_right:n.margins.right,margin_bottom:n.margins.bottom});export function paragraph(n,e,a){const{attrs:r,children:i}=m({...n,...a?.alignment===void 0?{}:{alignment:a.alignment}},!1),o=t("a:pPr",{...r,lvl:n.level>0?n.level:void 0},...i),l=n.runs.flatMap(u=>u.text.split("\v").flatMap((c,s)=>{const p={...n.font,...a?.font,...u.font},_=runProps("a:rPr",Object.keys(p).length>0?p:void 0,e);return[...s>0?[t("a:br",{},runProps("a:rPr",void 0,e))]:[],...c===""?[]:[t("a:r",{},_,t("a:t",{},b(c)))]]}));return t("a:p",{},o==="<a:pPr/>"?"":o,...l,l.length===0?runProps("a:endParaRPr",a?.font,e):"")}export function txBody(n,e,a,r,i,o){const l=r.map(u=>paragraph(u,i,o));return t(n,{},e,a,...l.length>0?l:[t("a:p")])}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{fontFace as l}from"@allyhub-next/slides-core";export{l as face};import{HEAD as s,NS as r,el as a}from"./xml.js";const m=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],f=t=>a("a:srgbClr",{val:t.replace("#","").toUpperCase().slice(0,6)}),e=a("a:solidFill",{},a("a:schemeClr",{val:"phClr"}));export function themeXml(t){const c=(n,o)=>a("a:latin",{typeface:l(n)})+a("a:ea",{typeface:l(o)})+a("a:cs",{typeface:""});return s+a("a:theme",{"xmlns:a":r.a,name:t.name},a("a:themeElements",{},a("a:clrScheme",{name:t.name},...m.map(n=>a(`a:${n}`,{},f(t.colors[n])))),a("a:fontScheme",{name:t.name},a("a:majorFont",{},c(t.fonts.major,t.fonts.major_east_asian)),a("a:minorFont",{},c(t.fonts.minor,t.fonts.minor_east_asian))),a("a:fmtScheme",{name:t.name},a("a:fillStyleLst",{},e,e,e),a("a:lnStyleLst",{},...[6350,12700,19050].map(n=>a("a:ln",{w:n,cap:"flat",cmpd:"sng",algn:"ctr"},e,a("a:prstDash",{val:"solid"})))),a("a:effectStyleLst",{},...[0,1,2].map(()=>a("a:effectStyle",{},a("a:effectLst")))),a("a:bgFillStyleLst",{},e,e,e))),a("a:objectDefaults"),a("a:extraClrSchemeLst"))}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AnimationDirection, AnimationEffect } from "@allyhub-next/formats";
|
|
2
|
+
import { type PathStep, type ResolvedAnimation, type ResolvedTransition } from "@allyhub-next/slides-core";
|
|
3
|
+
/** A push's or a wipe's side as PowerPoint writes it: the way the slide moves. */
|
|
4
|
+
export declare const TRANSITION_SIDES: Readonly<Record<AnimationDirection, string>>;
|
|
5
|
+
/**
|
|
6
|
+
* A slide's transition, as PowerPoint writes one: its length in p14's
|
|
7
|
+
* attribute, and a morph in p159's element, each for those that read them,
|
|
8
|
+
* with a plain transition for those that do not.
|
|
9
|
+
*/
|
|
10
|
+
export declare function transitionXml(t: ResolvedTransition | undefined): string;
|
|
11
|
+
/** PowerPoint's preset of each effect: its class and number. */
|
|
12
|
+
export declare const PRESETS: Readonly<Record<AnimationEffect, {
|
|
13
|
+
kind: string;
|
|
14
|
+
id: number;
|
|
15
|
+
}>>;
|
|
16
|
+
/** A wipe's or a fly's side as PowerPoint numbers it. */
|
|
17
|
+
export declare const SUBTYPES: Readonly<Record<AnimationDirection, number>>;
|
|
18
|
+
/** A motion path as PowerPoint writes one: shares of the slide, from where the shape stands. */
|
|
19
|
+
export declare function motionPath(steps: readonly PathStep[], slide: {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
}): string;
|
|
23
|
+
/** A slide's `p:timing`; nothing when it has neither animations nor videos. */
|
|
24
|
+
export declare function timingXml(animations: readonly ResolvedAnimation[], videos: readonly number[], spidOf: (shape: string) => number | undefined,
|
|
25
|
+
/** Whether a shape has a text body PowerPoint builds. */
|
|
26
|
+
texty: (shape: string) => boolean, slide: {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
},
|
|
30
|
+
/** Shapes that are videos which play when they come on, with their seconds. */
|
|
31
|
+
played?: ReadonlyMap<string, number>): string;
|
|
32
|
+
//# sourceMappingURL=timing.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{isEntrance as q,isExit as I}from"@allyhub-next/slides-core";import{el as t}from"./xml.js";const w=e=>Math.round(e*1e3),W="http://schemas.microsoft.com/office/powerpoint/2010/main",Y="http://schemas.microsoft.com/office/powerpoint/2015/09/main",Z="http://schemas.openxmlformats.org/markup-compatibility/2006";export const TRANSITION_SIDES={"from-right":"l","from-left":"r","from-bottom":"u","from-top":"d"};const G=e=>e<.75?"fast":e<1.5?"med":"slow";export function transitionXml(e){if(!e)return"";const n=G(e.duration),o=e.type==="morph"?t("p159:morph",{option:"byObject"}):e.type==="fade"?t("p:fade"):t(`p:${e.type}`,{dir:TRANSITION_SIDES[e.direction]});return t("mc:AlternateContent",{"xmlns:mc":Z},t("mc:Choice",{"xmlns:p14":W,...e.type==="morph"?{"xmlns:p159":Y}:{},Requires:e.type==="morph"?"p159":"p14"},t("p:transition",{spd:n,"p14:dur":w(e.duration)},o)),t("mc:Fallback",{},t("p:transition",{spd:n},e.type==="morph"?t("p:fade"):o)))}export const PRESETS={appear:{kind:"entr",id:1},fade:{kind:"entr",id:10},wipe:{kind:"entr",id:22},"fly-in":{kind:"entr",id:2},zoom:{kind:"entr",id:53},disappear:{kind:"exit",id:1},"fade-out":{kind:"exit",id:10},"wipe-out":{kind:"exit",id:22},"fly-out":{kind:"exit",id:2},"zoom-out":{kind:"exit",id:53},pulse:{kind:"emph",id:26},path:{kind:"path",id:0}},SUBTYPES={"from-top":1,"from-right":2,"from-bottom":4,"from-left":8};const H={"from-top":"up","from-right":"right","from-bottom":"down","from-left":"left"},F={"from-top":["ppt_y","0-#ppt_h/2"],"from-right":["ppt_x","1+#ppt_w/2"],"from-bottom":["ppt_y","1+#ppt_h/2"],"from-left":["ppt_x","0-#ppt_w/2"]};export function motionPath(e,n){const o=i=>String(i/n.width),s=i=>String(i/n.height);return`${e.map(i=>i.op==="close"?"Z":i.op==="curve"?`C ${o(i.x1)} ${s(i.y1)} ${o(i.x2)} ${s(i.y2)} ${o(i.x)} ${s(i.y)}`:`${i.op==="move"?"M":"L"} ${o(i.x)} ${s(i.y)}`).join(" ")} E`}class J{next=1;take(){return this.next++}}const _=e=>t("p:stCondLst",{},t("p:cond",{delay:e})),B=(...e)=>t("p:attrNameLst",{},...e.map(n=>t("p:attrName",{},n))),k=e=>t("p:tgtEl",{},t("p:spTgt",{spid:e.spid},e.paragraph===void 0?"":t("p:txEl",{},t("p:pRg",{st:e.paragraph,end:e.paragraph})))),z=(e,n,o,s)=>t("p:set",{},t("p:cBhvr",{},t("p:cTn",{id:e.take(),dur:1,fill:"hold"},_(s)),k(n),B("style.visibility")),t("p:to",{},t("p:strVal",{val:o}))),E=(e,n,o,s,r)=>t("p:animEffect",{transition:o,filter:s},t("p:cBhvr",{},t("p:cTn",{id:e.take(),dur:r}),k(n))),T=(e,n,o,s,r,i,f={})=>t("p:anim",{calcmode:"lin",valueType:"num"},t("p:cBhvr",{additive:"base"},t("p:cTn",{id:e.take(),dur:i,fill:"hold",...f}),k(n),B(o)),t("p:tavLst",{},...[[0,s],[1e5,r]].map(([a,c])=>t("p:tav",{tm:a},t("p:val",{},t("p:strVal",{val:c}))))));function K(e,n,o,s){const r=Math.max(1,w(n.duration)),i=I(n.effect)?z(e,o,"hidden",Math.max(0,r-1)):n.effect==="pulse"||n.effect==="path"?"":z(e,o,"visible",0),f=I(n.effect)?"out":"in",a=[];switch(n.effect){case"fade":case"fade-out":a.push(E(e,o,f,"fade",r));break;case"wipe":case"wipe-out":a.push(E(e,o,f,`wipe(${H[n.direction]})`,r));break;case"fly-in":{const[c,v]=F[n.direction];a.push(T(e,o,c,v,`#${c}`,r,{decel:1e5}));break}case"fly-out":{const[c,v]=F[n.direction];a.push(T(e,o,c,`#${c}`,v,r,{accel:1e5}));break}case"zoom":a.push(T(e,o,"ppt_w","0","#ppt_w",r),T(e,o,"ppt_h","0","#ppt_h",r),E(e,o,"in","fade",r));break;case"zoom-out":a.push(T(e,o,"ppt_w","#ppt_w","0",r),T(e,o,"ppt_h","#ppt_h","0",r),E(e,o,"out","fade",r));break;case"pulse":a.push(t("p:animScale",{},t("p:cBhvr",{},t("p:cTn",{id:e.take(),dur:Math.round(r/2),autoRev:1,fill:"hold"}),k(o)),t("p:by",{x:105e3,y:105e3})));break;case"path":a.push(t("p:animMotion",{origin:"layout",path:motionPath(n.path??[],s),pathEditMode:"relative",ptsTypes:""},t("p:cBhvr",{},t("p:cTn",{id:e.take(),dur:r,fill:"hold"}),k(o),B("ppt_x","ppt_y"))));break;default:break}return I(n.effect)?[...a,i]:[i,...a]}const x=["clickEffect","withEffect","afterEffect"],A=(e,n,o,s)=>t("p:par",{},t("p:cTn",{id:e.take(),presetID:1,presetClass:"mediacall",presetSubtype:0,fill:"hold",nodeType:o},_(0),t("p:childTnLst",{},t("p:cmd",{type:"call",cmd:"playFrom(0.0)"},t("p:cBhvr",{},t("p:cTn",{id:e.take(),dur:w(s),fill:"hold"}),k({spid:n}))))));export function timingXml(e,n,o,s,r,i=new Map){const f=e.filter(p=>o(p.shape)!==void 0),a=[...i].filter(([p])=>o(p)!==void 0&&!f.some(d=>d.shape===p&&q(d.effect)));if(f.length===0&&n.length===0)return"";const c=new J,v=c.take(),N=f.length>0||a.length>0,S=N?c.take():0,C=[];for(const p of f){const d=C.at(-1);if(p.start==="on-click"||!d){C.push({auto:p.start!=="on-click",groups:[{at:0,of:[p]}]});continue}const l=d.groups.at(-1);if(p.start==="with-previous"&&l)l.of.push(p);else{const u=d.groups.reduce((g,m)=>Math.max(g,...m.of.map(h=>m.at+h.delay+h.duration)),0);d.groups.push({at:u,of:[p]})}}const P=new Map,$=[],D=(p,d)=>{const l=o(p.shape)??0,u={spid:l,paragraph:p.paragraph},g=PRESETS[p.effect],m=p.paragraph!==void 0||s(p.shape),h=P.get(l)??0;m&&(P.set(l,h+1),$.push(t("p:bldP",{spid:l,grpId:h,...p.paragraph===void 0?{}:{build:"p"}})));const M=c.take();return t("p:par",{},t("p:cTn",{id:M,presetID:g.id,presetClass:g.kind,presetSubtype:p.effect==="wipe"||p.effect==="wipe-out"||p.effect==="fly-in"||p.effect==="fly-out"?SUBTYPES[p.direction]:0,fill:"hold",...m?{grpId:h}:{},nodeType:d},_(w(p.delay)),t("p:childTnLst",{},...K(c,p,u,r))))},X=C.map(p=>{const d=c.take(),l=p.groups.map((u,g)=>{const m=c.take(),h=u.of.map((y,b)=>{const L=g===0&&b===0&&!p.auto?x[0]:b>0||y.start==="with-previous"?x[1]:x[2];return D(y,L)}),M=u.of.flatMap(y=>{const b=i.get(y.shape),L=o(y.shape);return b!==void 0&&L!==void 0&&q(y.effect)?[A(c,L,x[1],b)]:[]});return t("p:par",{},t("p:cTn",{id:m,fill:"hold"},_(w(u.at)),t("p:childTnLst",{},...h,...M)))});return t("p:par",{},t("p:cTn",{id:d,fill:"hold"},t("p:stCondLst",{},t("p:cond",{delay:"indefinite"}),p.auto?t("p:cond",{evt:"onBegin",delay:0},t("p:tn",{val:S})):""),t("p:childTnLst",{},...l)))}),j=p=>{const d=c.take(),l=c.take();return t("p:par",{},t("p:cTn",{id:d,fill:"hold"},t("p:stCondLst",{},t("p:cond",{delay:"indefinite"}),t("p:cond",{evt:"onBegin",delay:0},t("p:tn",{val:S}))),t("p:childTnLst",{},t("p:par",{},t("p:cTn",{id:l,fill:"hold"},_(0),t("p:childTnLst",{},...p))))))},V=a.length>0?[j(a.map(([p,d],l)=>A(c,o(p)??0,l===0?x[2]:x[1],d)))]:[],R=p=>t("p:cond",{evt:p,delay:0},t("p:tgtEl",{},t("p:sldTgt"))),O=N?t("p:seq",{concurrent:1,nextAc:"seek"},t("p:cTn",{id:S,dur:"indefinite",nodeType:"mainSeq"},t("p:childTnLst",{},...V,...X)),t("p:prevCondLst",{},R("onPrev")),t("p:nextCondLst",{},R("onNext"))):"",U=n.map(p=>t("p:video",{},t("p:cMediaNode",{vol:8e4},t("p:cTn",{id:c.take(),fill:"hold",display:0},t("p:stCondLst",{},t("p:cond",{delay:"indefinite"}))),t("p:tgtEl",{},t("p:spTgt",{spid:p})))));return t("p:timing",{},t("p:tnLst",{},t("p:par",{},t("p:cTn",{id:v,dur:"indefinite",restart:"never",nodeType:"tmRoot"},t("p:childTnLst",{},O,...U)))),$.length>0?t("p:bldLst",{},...$):"")}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type DrawnDeck, type Frame, type ResolvedSlide, type Theme } from "@allyhub-next/slides-core";
|
|
2
|
+
import { type EmbeddedFont } from "./fonts.js";
|
|
3
|
+
export interface PptxInput {
|
|
4
|
+
deck: DrawnDeck<ResolvedSlide, Theme>;
|
|
5
|
+
/** A project file's bytes, by its project path; undefined when it is not there. */
|
|
6
|
+
file: (path: string) => Uint8Array | undefined;
|
|
7
|
+
/** Pictures (PNG) of the shapes picturedShapes lists, by `<slide>/<shape>`. */
|
|
8
|
+
pictures: ReadonlyMap<string, Uint8Array>;
|
|
9
|
+
/** What a component that moves draws, as an MP4 and its seconds, by `<slide>/<shape>`: PowerPoint plays it when the shape comes on. */
|
|
10
|
+
movies?: ReadonlyMap<string, {
|
|
11
|
+
bytes: Uint8Array;
|
|
12
|
+
seconds: number;
|
|
13
|
+
}>;
|
|
14
|
+
/** The document's title. */
|
|
15
|
+
title?: string;
|
|
16
|
+
/** Fonts to carry in the file, for a computer that lacks them. */
|
|
17
|
+
fonts?: readonly EmbeddedFont[];
|
|
18
|
+
}
|
|
19
|
+
/** The shapes the caller pictures from each slide's still: their keys (`<slide>/<shape>`) and frames, in EMU. */
|
|
20
|
+
export declare function picturedShapes(deck: DrawnDeck<ResolvedSlide, Theme>): {
|
|
21
|
+
key: string;
|
|
22
|
+
slide: string;
|
|
23
|
+
shape: string;
|
|
24
|
+
frame: Frame;
|
|
25
|
+
}[];
|
|
26
|
+
/** The project files the package holds: pictures and videos. */
|
|
27
|
+
export declare function filesOf(deck: DrawnDeck<ResolvedSlide, Theme>): string[];
|
|
28
|
+
/** The file's parts, in the order they are written. */
|
|
29
|
+
export declare function pptxParts(input: PptxInput): Map<string, Uint8Array>;
|
|
30
|
+
/** A deck as a .pptx file's bytes. */
|
|
31
|
+
export declare function writePptx(input: PptxInput): Uint8Array;
|
|
32
|
+
//# sourceMappingURL=write.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{createHash as ve}from"node:crypto";import{zipSync as Me}from"fflate";import{AUTOSHAPE_STYLE as ke,CONNECTOR_STYLE as Pe,joinPath as le,placeholderFrame as $e,plainLevels as Le,Pt as Te}from"@allyhub-next/slides-core";import{chartBook as De,chartXml as Ce}from"./charts.js";import{asFace as Ee,fontInfo as Ie,eotOf as Oe}from"./fonts.js";import{NO_PARAGRAPHS as Re,shapeXml as pe,treeXml as ee}from"./shapes.js";import{bodyOfStyle as Be,bodyProps as q,levelOf as de,listStyle as B,txBody as j}from"./text.js";import{themeXml as me}from"./theme.js";import{timingXml as Ae,transitionXml as Ne}from"./timing.js";import{HEAD as w,PML as T,el as n,esc as je,fill as ce}from"./xml.js";const te={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif"},fe={mp4:"video/mp4",m4v:"video/mp4",mov:"video/quicktime"},A=e=>(e.split(".").pop()??"").toLowerCase(),Fe=[["regular","p:regular","Regular"],["bold","p:bold","Bold"],["italic","p:italic","Italic"],["boldItalic","p:boldItalic","Bold Italic"]],d={chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",package:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package",font:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",core:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",app:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",slideMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster",slideLayout:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout",slide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",notesMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster",notesSlide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide",image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",video:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video",media:"http://schemas.microsoft.com/office/2007/relationships/media",presProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps",viewProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps",tableStyles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"},b={chart:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",workbook:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",presentation:"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",slideMaster:"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",slideLayout:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",slide:"application/vnd.openxmlformats-officedocument.presentationml.slide+xml",theme:"application/vnd.openxmlformats-officedocument.theme+xml",notesMaster:"application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml",notesSlide:"application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml",presProps:"application/vnd.openxmlformats-officedocument.presentationml.presProps+xml",viewProps:"application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml",tableStyles:"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml",core:"application/vnd.openxmlformats-package.core-properties+xml",app:"application/vnd.openxmlformats-officedocument.extended-properties+xml"};class D{list=[];add(t,s){const o=this.list.find(l=>l.type===t&&l.target===s);if(o)return o.id;const i=`rId${String(this.list.length+1)}`;return this.list.push({id:i,type:t,target:s}),i}xml(){return w+n("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},...this.list.map(t=>n("Relationship",{Id:t.id,Type:t.type,Target:t.target})))}}class He{list=[];add(t,s){return this.list.push({chart:t,frame:s}),`../charts/chart${String(this.list.length)}.xml`}}class ze{parts=new Map;byHash=new Map;add(t,s,o){const i=ve("sha256").update(t).digest("hex"),l=this.byHash.get(`${o}:${i}`);if(l)return l;const r=`${o}${String(this.parts.size+1)}.${s}`;return this.parts.set(`ppt/media/${r}`,t),this.byHash.set(`${o}:${i}`,`../media/${r}`),`../media/${r}`}}function he(e){return e.kind==="component"||e.kind==="movie"?!1:e.kind==="picture"?te[A(e.media?.path??"")]!==void 0:!0}function ne(e){return e.kind==="component"||e.kind==="movie"?!0:e.kind==="picture"?te[A(e.media?.path??"")]===void 0:!1}export function picturedShapes(e){return e.slides.flatMap(t=>t.shapes.filter(s=>ne(s)).map(s=>({key:`${t.id}/${s.name}`,slide:t.id,shape:s.name,frame:s.frame})))}export function filesOf(e){const t=new Set;for(const s of e.masters)for(const o of[...s.shapes,...s.layouts.flatMap(i=>i.shapes)])o.media&&he(o)&&t.add(le(o.media.base,o.media.path));for(const s of e.slides)for(const o of s.shapes)o.media&&(o.kind==="picture"||o.kind==="movie")&&t.add(o.media.path);return[...t].sort()}const Ge=n("p:nvGrpSpPr",{},n("p:cNvPr",{id:1,name:""}),n("p:cNvGrpSpPr"),n("p:nvPr")),Xe=n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:0,y:0}),n("a:ext",{cx:0,cy:0}),n("a:chOff",{x:0,y:0}),n("a:chExt",{cx:0,cy:0}))),U=e=>n("p:spTree",{},Ge,Xe,...e),ue={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink"},oe=e=>n("p:bg",{},n("p:bgPr",{},n("a:solidFill",{},Ue(e)),n("a:effectLst"))),Ue=e=>typeof e=="string"?n("a:schemeClr",{val:e}):n("a:srgbClr",{val:e.rgb.replace("#","").toUpperCase()}),xe=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Z(e){const t=s=>({...e.fill===void 0||"fill"in s&&xe(e.fill,s.fill)?{}:{fill:e.fill},...e.line===void 0||xe(e.line,s.line)?{}:{line:e.line},...e.line_width===void 0||e.line_width===s.line_width?{}:{lineWidth:e.line_width}});return e.kind==="autoshape"?e.geometry==="line"?{style:"connector",...t(Pe)}:{style:"shape",...t(ke)}:{...e.kind==="textbox"?{fill:e.fill??null}:e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width}}}const We=(e,t)=>Array.from({length:Math.max(e.length,t.length)},(s,o)=>{const i=e[o]??{},l=t[o]??{},r={...i.font,...l.font};return{...i,...l,...Object.keys(r).length>0?{font:r}:{}}});function ge(e,t,s,o,i,l,r,m){const x=o!==void 0&&i!==void 0&&JSON.stringify(o.text_styles.other)!==JSON.stringify(i.text_styles.other);return j("p:txBody",q(t,r,e==="autoshape"?{rtlCol:0}:{}),B(x?We(o.text_styles.other,t.levels):t.levels),s,l,m)}const Je="{2D5ABB26-0587-4C30-8999-92F81FD0307C}",Ye=[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]];function ye(e,t){return n("a:tbl",{},n("a:tblPr",{firstRow:e.first_row?1:void 0,firstCol:e.first_col?1:void 0,lastRow:e.last_row?1:void 0,lastCol:e.last_col?1:void 0,bandRow:e.horz_banding?1:void 0,bandCol:e.vert_banding?1:void 0},n("a:tableStyleId",{},Je)),n("a:tblGrid",{},...e.columns.map(s=>n("a:gridCol",{w:s}))),...e.rows.map((s,o)=>n("a:tr",{h:s.height},...s.cells.map((i,l)=>{const r=i.text.own??i.text,m=s.cells[l-1],x=e.rows[o-1]?.cells[l];return n("a:tc",{gridSpan:i.span_width,rowSpan:i.span_height,hMerge:i.spanned&&m&&(m.spanned||m.span_width)?1:void 0,vMerge:i.spanned&&x&&(x.spanned||x.span_height)?1:void 0},j("a:txBody",n("a:bodyPr"),n("a:lstStyle"),i.text.paragraphs,t,se(i.fileText)),n("a:tcPr",{marL:r.margin_left,marR:r.margin_right,marT:r.margin_top,marB:r.margin_bottom,anchor:r.vertical_anchor},...Ye.map(([P,$])=>{const C=i.borders?.[P];return C?n($,{w:C.width},ce(C.color)):""}),i.fill===void 0?"":ce(i.fill)))}))))}const ae=e=>e.group===void 0?{}:{group:e.group},V=e=>({...e.line_dash===void 0?{}:{lineDash:e.line_dash},...e.line_begin===void 0?{}:{lineBegin:e.line_begin},...e.line_end===void 0?{}:{lineEnd:e.line_end}});function Se(e,t,s,o,i,l,r){const m={id:t,name:e.name,...e.frame?{frame:e.frame}:{},...e.rotation===void 0?{}:{rotation:e.rotation}};if(e.kind==="placeholder"&&e.placeholder){const x=r.on==="master"?{...$e(e.placeholder.type),...e.text}:e.text;return{...m,kind:"sp",placeholder:{...e.placeholder},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width},...e.fill===void 0&&e.line===void 0?{}:{geometry:e.geometry??"rect"},text:j("p:txBody",x?q(x):n("a:bodyPr"),B(x?.levels??[]),Re,l)}}if(he(e)){if(e.table)return{...m,kind:"table",table:ye(e.table,l)};if(e.kind==="picture"&&e.media){const x=i(le(e.media.base,e.media.path));return x?{...m,kind:"pic",picture:{image:s.add(d.image,o.add(x,A(e.media.path),"image")),descr:e.media.path.split("/").pop()??""}}:void 0}return e.geometry==="line"?{...m,kind:"cxn",...e.flip?{flip:e.flip}:{},...Z(e),...V(e)}:{...m,kind:"sp",...e.kind==="textbox"?{textbox:!0}:{},...e.path?{path:e.path}:{geometry:e.geometry??"rect"},...e.adjustments?{adjustments:e.adjustments}:{},...Z(e),...V(e),...e.text?{text:ge(e.kind,e.text,e.text.paragraphs,r.master,r.first,l)}:{}}}}function se(e){if(e)return{font:{...e.size===void 0?{}:{size:Te(e.size)},...e.bold===void 0?{}:{bold:e.bold},...e.font===void 0?{}:{name:e.font},...e.color===void 0?{}:e.color.startsWith("#")?{rgb:e.color.toUpperCase()}:{color:e.color}},...e.align===void 0?{}:{alignment:e.align}}}function qe(e,t,s,o,i,l,r,m,x){const P=`${e.id}/${t.name}`,$=l.deck.fitted[P];if(t.level!=="slide"&&!ne(t))return;const C=t.level==="slide"&&t.placeholder?{placeholder:{...t.placeholder}}:{},F=!t.placeholder||t.sources.frame.from==="slide"||t.sources.frame.from==="code"?{frame:t.frame}:{},v={id:s,name:t.name,...C,...F,...t.rotation===void 0?{}:{rotation:t.rotation}},W=()=>{const f=l.pictures.get(P);return f?{image:o.add(d.image,i.add(f,"png","image")),descr:t.name}:void 0};if(t.table)return{...v,kind:"table",table:ye(t.table,r)};if(t.chart)return{...v,frame:t.frame,kind:"chart",chart:o.add(d.chart,x.add(t.chart,t.frame))};if(t.kind==="movie"&&t.media){const f=W(),I=fe[A(t.media.path)]?l.file(t.media.path):void 0;if(!f)return;if(!I)return{...v,frame:t.frame,kind:"pic",picture:f};const O=i.add(I,A(t.media.path),"media");return m.push(s),{...v,frame:t.frame,kind:"pic",picture:{image:f.image},video:{link:o.add(d.video,O),media:o.add(d.media,O)}}}if(ne(t)){const f=W(),I=l.movies?.get(P);if(f&&I){const O=i.add(I.bytes,"mp4","media");return m.push(s),{...v,frame:t.frame,kind:"pic",picture:{image:f.image},video:{link:o.add(d.video,O),media:o.add(d.media,O)}}}return f?{...v,frame:t.frame,kind:"pic",picture:f}:void 0}if(t.kind==="picture"&&t.media){const f=l.file(t.media.path);return f?{...v,frame:t.frame,kind:"pic",picture:{image:o.add(d.image,i.add(f,A(t.media.path),"image")),...t.media.crop?{crop:t.media.crop}:{},descr:t.media.path.split("/").pop()??""}}:void 0}if(t.geometry==="line")return{...v,kind:"cxn",...t.flip?{flip:t.flip}:{},...Z(t),...V(t)};const k=t.text,J=l.deck.masters.find(f=>f.name===e.master),H=k?t.placeholder?j("p:txBody",$===void 0?n("a:bodyPr"):q({},$),n("a:lstStyle"),k.paragraphs,r,se(t.fileText)):k.own?ge(t.kind,k.own,k.paragraphs,J,l.deck.masters[0],r,$,se(t.fileText)):j("p:txBody",q(Be(k.style),$),B(k.style.levels.map(de)),k.paragraphs,r):void 0,z=t.sources.frame.from==="code",G=t.fill!==void 0&&(z||t.sources.fill?.from==="slide"),E=t.line!==void 0&&(z||t.sources.line?.from==="slide");return{...v,kind:"sp",...t.kind==="textbox"?{textbox:!0}:{},...t.path?{path:t.path}:!t.placeholder||G||E?{geometry:t.geometry??"rect"}:{},...t.adjustments?{adjustments:t.adjustments}:{},...V(t),...t.placeholder?{...G?{fill:t.fill}:{},...E?{line:t.line}:{},...t.line_width===void 0?{}:{lineWidth:t.line_width}}:Z(t),...H?{text:H}:{}}}const Ze={cx:6858e3,cy:9144e3};function be(e,t){const s=pe({id:2,name:"Slide Image Placeholder 1",kind:"sp",placeholder:{type:"sldImg",idx:2},...e===void 0?{frame:{left:1143e3,top:685800,width:4572e3,height:3429e3}}:{}}),o=pe({id:3,name:"Notes Placeholder 2",kind:"sp",placeholder:{type:"body",idx:3,sz:"quarter"},...e===void 0?{frame:{left:685800,top:4343400,width:5486400,height:4114800}}:{},text:j("p:txBody",n("a:bodyPr"),n("a:lstStyle"),(e??"").split(`
|
|
3
|
+
`).map(i=>({runs:[{text:i}],level:0})),t)});return[s,o]}export function pptxParts(e){const{deck:t}=e,s=t.lang?.split("-").map((a,p)=>p===0?a.toLowerCase():a.toUpperCase()).join("-"),o=new Map,i=new ze,l=new He,r=[],m=new D,x=[],P=new Map;let $=2147483648;t.masters.forEach((a,p)=>{const c=p+1,_=$++,g=`ppt/slideMasters/slideMaster${String(c)}.xml`,y=`ppt/theme/theme${String(c)}.xml`;o.set(y,me(t.theme)),r.push([y,b.theme]);const S=new D,L=[];a.layouts.forEach(M=>{const h=P.size+1,u=`ppt/slideLayouts/slideLayout${String(h)}.xml`;P.set(M,u);const X=new D;X.add(d.slideMaster,`../slideMasters/slideMaster${String(c)}.xml`);const _e=M.shapes.flatMap((ie,we)=>{const re=Se(ie,we+2,X,i,e.file,s,{master:a,first:e.deck.masters[0],on:"layout"});return re?[{...re,...ae(ie)}]:[]});o.set(u,w+n("p:sldLayout",{...T,...M.display_master_shapes===!1?{showMasterSp:0}:{},preserve:1},n("p:cSld",{name:M.name},M.background===void 0?"":oe(M.background),U(ee(_e))),n("p:clrMapOvr",{},n("a:masterClrMapping")))),o.set(`ppt/slideLayouts/_rels/slideLayout${String(h)}.xml.rels`,X.xml()),r.push([u,b.slideLayout]),L.push(n("p:sldLayoutId",{id:$++,"r:id":S.add(d.slideLayout,`../slideLayouts/slideLayout${String(h)}.xml`)}))}),S.add(d.theme,`../theme/theme${String(c)}.xml`);const Y=a.shapes.flatMap((M,h)=>{const u=Se(M,h+2,S,i,e.file,s,{master:a,first:e.deck.masters[0],on:"master"});return u?[{...u,...ae(M)}]:[]}),N=a.text_styles;o.set(g,w+n("p:sldMaster",T,n("p:cSld",{name:a.name},oe(a.background),U(ee(Y))),n("p:clrMap",ue),n("p:sldLayoutIdLst",{},...L),n("p:txStyles",{},B(N.title,"p:titleStyle"),B(N.body,"p:bodyStyle"),B(N.other,"p:otherStyle")))),o.set(`ppt/slideMasters/_rels/slideMaster${String(c)}.xml.rels`,S.xml()),r.push([g,b.slideMaster]),x.push(n("p:sldMasterId",{id:_,"r:id":m.add(d.slideMaster,`slideMasters/slideMaster${String(c)}.xml`)}))});const C=t.slides.some(a=>a.notes!==void 0),K=`ppt/theme/theme${String(t.masters.length+1)}.xml`;let F="";if(C){o.set(K,me(t.theme)),r.push([K,b.theme]);const a=new D;a.add(d.theme,`../theme/theme${String(t.masters.length+1)}.xml`),o.set("ppt/notesMasters/notesMaster1.xml",w+n("p:notesMaster",T,n("p:cSld",{},oe("lt1"),U(be(void 0,s))),n("p:clrMap",ue))),o.set("ppt/notesMasters/_rels/notesMaster1.xml.rels",a.xml()),r.push(["ppt/notesMasters/notesMaster1.xml",b.notesMaster]),F=m.add(d.notesMaster,"notesMasters/notesMaster1.xml")}const v=[],W=new Map(t.masters.flatMap(a=>a.layouts.map(p=>[p.name,p]))),k=a=>{const p=new Set,c=t.slides[a];for(const[_,g]of[[t.slides[a-1],c],[c,t.slides[a+1]]])if(_&&g&&g.transition?.type==="morph")for(const y of _.shapes)y.level==="slide"&&g.shapes.some(S=>S.name===y.name)&&p.add(y.name);return p};t.slides.forEach((a,p)=>{const c=p+1,_=`ppt/slides/slide${String(c)}.xml`,g=new D,y=W.get(a.layout),S=y?P.get(y):void 0;S&&g.add(d.slideLayout,`../${S.slice(4)}`);const L=[],Y=new Map;let N=1;const M=a.shapes.flatMap(h=>{const u=qe(a,h,++N,g,i,e,s,L,l);if(!u)return N--,[];Y.set(h.name,u.id);const X=k(p).has(h.name)?{name:`!!${u.name}`}:{};return[{...u,...ae(h),...X}]});if(a.notes!==void 0){const h=`ppt/notesSlides/notesSlide${String(c)}.xml`,u=new D;u.add(d.notesMaster,"../notesMasters/notesMaster1.xml"),u.add(d.slide,`../slides/slide${String(c)}.xml`),o.set(h,w+n("p:notes",T,n("p:cSld",{},U(be(a.notes,s))),n("p:clrMapOvr",{},n("a:masterClrMapping")))),o.set(`ppt/notesSlides/_rels/notesSlide${String(c)}.xml.rels`,u.xml()),r.push([h,b.notesSlide]),g.add(d.notesSlide,`../notesSlides/notesSlide${String(c)}.xml`)}o.set(_,w+n("p:sld",{...T,show:a.hidden?0:void 0},n("p:cSld",{name:a.id},U(ee(M))),n("p:clrMapOvr",{},n("a:masterClrMapping")),Ne(a.transition),Ae(a.animations,L,h=>Y.get(h),h=>a.shapes.find(u=>u.name===h)?.text!==void 0,t,new Map(a.shapes.flatMap(h=>{const u=e.movies?.get(`${a.id}/${h.name}`);return u?[[h.name,u.seconds]]:[]}))))),o.set(`ppt/slides/_rels/slide${String(c)}.xml.rels`,g.xml()),r.push([_,b.slide]),v.push(n("p:sldId",{id:256+p,"r:id":m.add(d.slide,`slides/slide${String(c)}.xml`)}))}),m.add(d.theme,"theme/theme1.xml"),m.add(d.presProps,"presProps.xml"),m.add(d.viewProps,"viewProps.xml"),m.add(d.tableStyles,"tableStyles.xml");const J=new Map;let H=0;const z=(e.fonts??[]).flatMap(a=>{const p=Fe.flatMap(([c,_,g])=>{const y=a[c]&&Ee(a[c],a.typeface,g),S=y&&Ie(y);if(!y||!S)return[];const L=`fonts/font${String(++H)}.fntdata`;return J.set(`ppt/${L}`,Oe(y,S,a.typeface,g)),[n(_,{"r:id":m.add(d.font,L)})]});return p.length===0?[]:[n("p:embeddedFont",{},n("p:font",{typeface:a.typeface}),...p)]}),G=z.length===0?"":n("p:embeddedFontLst",{},...z);o.set("ppt/presentation.xml",w+n("p:presentation",{...T,...G===""?{}:{embedTrueTypeFonts:1},saveSubsetFonts:1},n("p:sldMasterIdLst",{},...x),F===""?"":n("p:notesMasterIdLst",{},n("p:notesMasterId",{"r:id":F})),n("p:sldIdLst",{},...v),n("p:sldSz",{cx:t.width,cy:t.height}),n("p:notesSz",Ze),G,e.deck.masters[0]?B(Le(e.deck.masters[0]).map(de),"p:defaultTextStyle"):"")),o.set("ppt/_rels/presentation.xml.rels",m.xml()),r.push(["ppt/presentation.xml",b.presentation]),o.set("ppt/presProps.xml",w+n("p:presentationPr",T)),o.set("ppt/viewProps.xml",w+n("p:viewPr",T)),o.set("ppt/tableStyles.xml",w+n("a:tblStyleLst",{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main",def:"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"})),r.push(["ppt/presProps.xml",b.presProps]),r.push(["ppt/viewProps.xml",b.viewProps]),r.push(["ppt/tableStyles.xml",b.tableStyles]),o.set("docProps/core.xml",w+n("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/"},e.title===void 0?"":`<dc:title>${je(e.title)}</dc:title>`)),o.set("docProps/app.xml",w+n("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},n("Application",{},"AllyHub"),n("Slides",{},String(t.slides.length)),n("Notes",{},String(t.slides.filter(a=>a.notes!==void 0).length)),n("HiddenSlides",{},String(t.slides.filter(a=>a.hidden).length)))),r.push(["docProps/core.xml",b.core]),r.push(["docProps/app.xml",b.app]);const E=new D;E.add(d.officeDocument,"ppt/presentation.xml"),E.add(d.core,"docProps/core.xml"),E.add(d.app,"docProps/app.xml");const f=new Map;l.list.forEach(({chart:a,frame:p},c)=>{const _=String(c+1),g=`ppt/charts/chart${_}.xml`,y=new D,S=`Microsoft_Excel_Sheet${_}.xlsx`;f.set(`ppt/embeddings/${S}`,De(a)),o.set(g,Ce(a,p,y.add(d.package,`../embeddings/${S}`))),o.set(`ppt/charts/_rels/chart${_}.xml.rels`,y.xml()),r.push([g,b.chart])});const I=new Set([...i.parts.keys(),...f.keys()].map(A)),O=w+n("Types",{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},n("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),n("Default",{Extension:"xml",ContentType:"application/xml"}),H>0?n("Default",{Extension:"fntdata",ContentType:"application/x-fontdata"}):"",...[...I].sort().map(a=>n("Default",{Extension:a,ContentType:a==="xlsx"?b.workbook:te[a]??fe[a]??"application/octet-stream"})),...r.map(([a,p])=>n("Override",{PartName:`/${a}`,ContentType:p}))),Q=new TextEncoder,R=new Map;R.set("[Content_Types].xml",Q.encode(O)),R.set("_rels/.rels",Q.encode(E.xml()));for(const[a,p]of o)R.set(a,Q.encode(p));for(const[a,p]of i.parts)R.set(a,p);for(const[a,p]of f)R.set(a,p);for(const[a,p]of J)R.set(a,p);return R}const Ve=new Date(1980,0,1);export function writePptx(e){const t={};for(const[s,o]of pptxParts(e))t[s]=[o,{level:/\.(png|jpe?g|gif|mp4|m4v|mov)$/u.test(s)?0:6,mtime:Ve}];return Me(t)}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Color } from "@allyhub-next/slides-core";
|
|
2
|
+
/** Text and attribute values escaped; characters XML 1.0 cannot hold dropped. */
|
|
3
|
+
export declare const esc: (s: string) => string;
|
|
4
|
+
export type Attrs = Record<string, string | number | boolean | undefined>;
|
|
5
|
+
/** An element: its attributes (undefined ones left out, booleans as 1 and 0) and its children. */
|
|
6
|
+
export declare function el(name: string, attrs?: Attrs, ...children: string[]): string;
|
|
7
|
+
export declare const HEAD = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n";
|
|
8
|
+
export declare const NS: {
|
|
9
|
+
readonly a: "http://schemas.openxmlformats.org/drawingml/2006/main";
|
|
10
|
+
readonly r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
11
|
+
readonly p: "http://schemas.openxmlformats.org/presentationml/2006/main";
|
|
12
|
+
readonly p14: "http://schemas.microsoft.com/office/powerpoint/2010/main";
|
|
13
|
+
};
|
|
14
|
+
/** The namespaces a PresentationML part's root declares. */
|
|
15
|
+
export declare const PML: {
|
|
16
|
+
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main";
|
|
17
|
+
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
18
|
+
"xmlns:p": "http://schemas.openxmlformats.org/presentationml/2006/main";
|
|
19
|
+
};
|
|
20
|
+
/** A colour as DrawingML writes it: the theme's (`a:schemeClr`) or RGB (`a:srgbClr`). */
|
|
21
|
+
export declare function color(c: Color): string;
|
|
22
|
+
/** A solid fill of a colour, or none. */
|
|
23
|
+
export declare const fill: (c: Color | null) => string;
|
|
24
|
+
/** Hundredths of a point (`sz`) from EMU. */
|
|
25
|
+
export declare const centipoints: (emu: number) => number;
|
|
26
|
+
//# sourceMappingURL=xml.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
const l={"&":"&","<":"<",">":">",'"':"""},p=o=>{const t=o.charCodeAt(0);return t<32&&t!==9&&t!==10&&t!==13||t===65534||t===65535};export const esc=o=>Array.from(o,t=>p(t)?"":l[t]??t).join("");export function el(o,t={},...a){const r=Object.entries(t).filter(([,n])=>n!==void 0).map(([n,e])=>` ${n}="${esc(typeof e=="boolean"?e?"1":"0":String(e))}"`).join(""),s=a.join("");return s===""?`<${o}${r}/>`:`<${o}${r}>${s}</${o}>`}export const HEAD=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
+
`,NS={a:"http://schemas.openxmlformats.org/drawingml/2006/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",p:"http://schemas.openxmlformats.org/presentationml/2006/main",p14:"http://schemas.microsoft.com/office/powerpoint/2010/main"},PML={"xmlns:a":NS.a,"xmlns:r":NS.r,"xmlns:p":NS.p};export function color(o){return typeof o=="string"?el("a:schemeClr",{val:o}):el("a:srgbClr",{val:o.rgb.replace("#","").toUpperCase()})}export const fill=o=>o===null?el("a:noFill"):el("a:solidFill",{},color(o)),centipoints=o=>Math.round(o/127);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@allyhub-next/slides-pptx",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"default": "./dist/index.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"private": true,
|
|
13
|
+
"license": "SEE LICENSE IN LICENSE.md"
|
|
14
|
+
}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
AllyHub Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software (the AllyHub command-line tool, its SDK, runtime and the
|
|
6
|
+
packages they depend on) is proprietary. It is not open source.
|
|
7
|
+
|
|
8
|
+
1. Permitted use. You may install and run the software, unmodified, to make,
|
|
9
|
+
check, preview and render videos and decks, including for commercial
|
|
10
|
+
purposes. What you make with it is yours.
|
|
11
|
+
|
|
12
|
+
2. Restrictions. Except as this license permits or applicable law requires,
|
|
13
|
+
you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
|
|
14
|
+
publish or otherwise distribute the software, create derivative works of
|
|
15
|
+
it, or reverse engineer, decompile or disassemble it.
|
|
16
|
+
|
|
17
|
+
3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
|
|
18
|
+
video) are separate services governed by AllyHub's terms of service.
|
|
19
|
+
|
|
20
|
+
4. Trademarks. This license grants no right to use the name "AllyHub" or its
|
|
21
|
+
logos.
|
|
22
|
+
|
|
23
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
24
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
26
|
+
ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
28
|
+
|
|
29
|
+
6. Third-party code. Parts of the software are adapted from HyperFrames,
|
|
30
|
+
licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
|
|
31
|
+
remain under that license, reproduced below, and nothing in this license
|
|
32
|
+
limits your rights under it.
|
|
33
|
+
|
|
34
|
+
7. Starter components. The starter components in the "components" folder,
|
|
35
|
+
which "allyhub add" copies into your workspace, are licensed under the MIT
|
|
36
|
+
License (see components/LICENSE): once copied, you may change, use and
|
|
37
|
+
share them freely.
|
|
38
|
+
|
|
39
|
+
--------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
Apache License
|
|
42
|
+
Version 2.0, January 2004
|
|
43
|
+
http://www.apache.org/licenses/
|
|
44
|
+
|
|
45
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
46
|
+
|
|
47
|
+
1. Definitions.
|
|
48
|
+
|
|
49
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
50
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
51
|
+
|
|
52
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
53
|
+
the copyright owner that is granting the License.
|
|
54
|
+
|
|
55
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
56
|
+
other entities that control, are controlled by, or are under common
|
|
57
|
+
control with that entity. For the purposes of this definition,
|
|
58
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
59
|
+
direction or management of such entity, whether by contract or
|
|
60
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
61
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
62
|
+
|
|
63
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
64
|
+
exercising permissions granted by this License.
|
|
65
|
+
|
|
66
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
67
|
+
including but not limited to software source code, documentation
|
|
68
|
+
source, and configuration files.
|
|
69
|
+
|
|
70
|
+
"Object" form shall mean any form resulting from mechanical
|
|
71
|
+
transformation or translation of a Source form, including but
|
|
72
|
+
not limited to compiled object code, generated documentation,
|
|
73
|
+
and conversions to other media types.
|
|
74
|
+
|
|
75
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
76
|
+
Object form, made available under the License, as indicated by a
|
|
77
|
+
copyright notice that is included in or attached to the work
|
|
78
|
+
(an example is provided in the Appendix below).
|
|
79
|
+
|
|
80
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
81
|
+
form, that is based on (or derived from) the Work and for which the
|
|
82
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
83
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
84
|
+
of this License, Derivative Works shall not include works that remain
|
|
85
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
86
|
+
the Work and Derivative Works thereof.
|
|
87
|
+
|
|
88
|
+
"Contribution" shall mean any work of authorship, including
|
|
89
|
+
the original version of the Work and any modifications or additions
|
|
90
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
91
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
92
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
93
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
94
|
+
means any form of electronic, verbal, or written communication sent
|
|
95
|
+
to the Licensor or its representatives, including but not limited to
|
|
96
|
+
communication on electronic mailing lists, source code control systems,
|
|
97
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
98
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
99
|
+
excluding communication that is conspicuously marked or otherwise
|
|
100
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
101
|
+
|
|
102
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
103
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
104
|
+
subsequently incorporated within the Work.
|
|
105
|
+
|
|
106
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
107
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
108
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
109
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
110
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
111
|
+
Work and such Derivative Works in Source or Object form.
|
|
112
|
+
|
|
113
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
114
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
115
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
116
|
+
(except as stated in this section) patent license to make, have made,
|
|
117
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
118
|
+
where such license applies only to those patent claims licensable
|
|
119
|
+
by such Contributor that are necessarily infringed by their
|
|
120
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
121
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
122
|
+
institute patent litigation against any entity (including a
|
|
123
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
124
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
125
|
+
or contributory patent infringement, then any patent licenses
|
|
126
|
+
granted to You under this License for that Work shall terminate
|
|
127
|
+
as of the date such litigation is filed.
|
|
128
|
+
|
|
129
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
130
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
131
|
+
modifications, and in Source or Object form, provided that You
|
|
132
|
+
meet the following conditions:
|
|
133
|
+
|
|
134
|
+
(a) You must give any other recipients of the Work or
|
|
135
|
+
Derivative Works a copy of this License; and
|
|
136
|
+
|
|
137
|
+
(b) You must cause any modified files to carry prominent notices
|
|
138
|
+
stating that You changed the files; and
|
|
139
|
+
|
|
140
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
141
|
+
that You distribute, all copyright, patent, trademark, and
|
|
142
|
+
attribution notices from the Source form of the Work,
|
|
143
|
+
excluding those notices that do not pertain to any part of
|
|
144
|
+
the Derivative Works; and
|
|
145
|
+
|
|
146
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
147
|
+
distribution, then any Derivative Works that You distribute must
|
|
148
|
+
include a readable copy of the attribution notices contained
|
|
149
|
+
within such NOTICE file, excluding those notices that do not
|
|
150
|
+
pertain to any part of the Derivative Works, in at least one
|
|
151
|
+
of the following places: within a NOTICE text file distributed
|
|
152
|
+
as part of the Derivative Works; within the Source form or
|
|
153
|
+
documentation, if provided along with the Derivative Works; or,
|
|
154
|
+
within a display generated by the Derivative Works, if and
|
|
155
|
+
wherever such third-party notices normally appear. The contents
|
|
156
|
+
of the NOTICE file are for informational purposes only and
|
|
157
|
+
do not modify the License. You may add Your own attribution
|
|
158
|
+
notices within Derivative Works that You distribute, alongside
|
|
159
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
160
|
+
that such additional attribution notices cannot be construed
|
|
161
|
+
as modifying the License.
|
|
162
|
+
|
|
163
|
+
You may add Your own copyright statement to Your modifications and
|
|
164
|
+
may provide additional or different license terms and conditions
|
|
165
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
166
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
167
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
168
|
+
the conditions stated in this License.
|
|
169
|
+
|
|
170
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
171
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
172
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
173
|
+
this License, without any additional terms or conditions.
|
|
174
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
175
|
+
the terms of any separate license agreement you may have executed
|
|
176
|
+
with Licensor regarding such Contributions.
|
|
177
|
+
|
|
178
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
179
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
180
|
+
except as required for reasonable and customary use in describing the
|
|
181
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
182
|
+
|
|
183
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
184
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
185
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
187
|
+
implied, including, without limitation, any warranties or conditions
|
|
188
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
189
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
190
|
+
appropriateness of using or redistributing the Work and assume any
|
|
191
|
+
risks associated with Your exercise of permissions under this License.
|
|
192
|
+
|
|
193
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
194
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
195
|
+
unless required by applicable law (such as deliberate and grossly
|
|
196
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
197
|
+
liable to You for damages, including any direct, indirect, special,
|
|
198
|
+
incidental, or consequential damages of any character arising as a
|
|
199
|
+
result of this License or out of the use or inability to use the
|
|
200
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
201
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
202
|
+
other commercial damages or losses), even if such Contributor
|
|
203
|
+
has been advised of the possibility of such damages.
|
|
204
|
+
|
|
205
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
206
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
207
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
208
|
+
or other liability obligations and/or rights consistent with this
|
|
209
|
+
License. However, in accepting such obligations, You may act only
|
|
210
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
211
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
212
|
+
defend, and hold each Contributor harmless for any liability
|
|
213
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
214
|
+
of your accepting any such warranty or additional liability.
|
|
215
|
+
|
|
216
|
+
END OF TERMS AND CONDITIONS
|
|
217
|
+
|
|
218
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
219
|
+
|
|
220
|
+
To apply the Apache License to your work, attach the following
|
|
221
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
222
|
+
replaced with your own identifying information. (Don't include
|
|
223
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
224
|
+
comment syntax for the file format. We also recommend that a
|
|
225
|
+
file or class name and description of purpose be included on the
|
|
226
|
+
same "printed page" as the copyright notice for easier
|
|
227
|
+
identification within third-party archives.
|
|
228
|
+
|
|
229
|
+
Copyright [yyyy] [name of copyright owner]
|
|
230
|
+
|
|
231
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
232
|
+
you may not use this file except in compliance with the License.
|
|
233
|
+
You may obtain a copy of the License at
|
|
234
|
+
|
|
235
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
236
|
+
|
|
237
|
+
Unless required by applicable law or agreed to in writing, software
|
|
238
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
239
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
240
|
+
See the License for the specific language governing permissions and
|
|
241
|
+
limitations under the License.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Color, ResolvedShape, ResolvedSlide, Theme } from "@allyhub-next/slides-core";
|
|
2
|
+
/** The attribute a shape's element carries: its slide and name (`<slide>/<shape>`). */
|
|
3
|
+
export declare const SHAPE_ATTR = "data-ak-shape";
|
|
4
|
+
/** A line's width when a shape's outline sets none: PowerPoint's, 0.75 pt. */
|
|
5
|
+
export declare const LINE_WIDTH: number;
|
|
6
|
+
/** A paragraph's line height at line spacing 1, a multiple of its font size: PowerPoint's single spacing. */
|
|
7
|
+
export declare const SINGLE_SPACING = 1.2;
|
|
8
|
+
/** The smallest share autofit shrinks text to. */
|
|
9
|
+
export declare const MIN_FONT_SCALE = 0.25;
|
|
10
|
+
/** The theme as CSS custom properties: `--ak-theme-<colour>`, `--ak-theme-major`, `--ak-theme-minor`. */
|
|
11
|
+
export declare function themeCss(theme: Theme): Record<string, string>;
|
|
12
|
+
export declare const colorCss: (c: Color | null | undefined) => string;
|
|
13
|
+
/** A run's text split where its characters are East Asian, and where they are not. */
|
|
14
|
+
export declare function eastAsianRuns(text: string, cjk: boolean): {
|
|
15
|
+
text: string;
|
|
16
|
+
ea: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
export interface DrawOptions {
|
|
19
|
+
/** Pixels per EMU. */
|
|
20
|
+
k: number;
|
|
21
|
+
/** A media file's address in the stage, by its project path. */
|
|
22
|
+
url: (path: string) => string;
|
|
23
|
+
/** Empty placeholders drawn (with nothing in them) while editing. */
|
|
24
|
+
editing: boolean;
|
|
25
|
+
/** A movie drawn as a playing <video> (presenting); else the footage plane draws its frame. */
|
|
26
|
+
playing: boolean;
|
|
27
|
+
/** The deck's language (its combo's): a CJK one draws its punctuation in the East Asian face. */
|
|
28
|
+
lang?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Shrinks a frame's text until it fits its frame, as PowerPoint's
|
|
32
|
+
* "shrink text on overflow" does (`a:normAutofit`, its fontScale): the
|
|
33
|
+
* largest scale, to 1 %, at which its paragraphs fit the frame's height.
|
|
34
|
+
*/
|
|
35
|
+
export declare function fitText(frame: HTMLElement, k: number): number;
|
|
36
|
+
/** A shape's element, placed in its frame. */
|
|
37
|
+
export declare function drawShape(slide: string, shape: ResolvedShape, o: DrawOptions): HTMLElement | undefined;
|
|
38
|
+
/** A slide's element: its background and every shape, back to front. */
|
|
39
|
+
export declare function drawSlide(slide: ResolvedSlide, o: DrawOptions): HTMLElement;
|
|
40
|
+
//# sourceMappingURL=draw.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{ADJUSTMENT_DEFAULTS as z,chartDrawing as M,EMU_PER_PT as $,Pt as R}from"@allyhub-next/slides-core";export const SHAPE_ATTR="data-ak-shape",LINE_WIDTH=R(.75),SINGLE_SPACING=1.2,MIN_FONT_SCALE=.25;export function themeCss(e){const t={};for(const[i,o]of Object.entries(e.colors))t[`--ak-theme-${i}`]=o;return t["--ak-theme-major"]=y(e.fonts.major),t["--ak-theme-minor"]=y(e.fonts.minor),t["--ak-theme-major-ea"]=y(e.fonts.major_east_asian),t["--ak-theme-minor-ea"]=y(e.fonts.minor_east_asian),t}const y=e=>e.includes(",")||e.includes('"')?e:`"${e}", "Noto Sans SC", sans-serif`;export const colorCss=e=>e==null?"transparent":typeof e=="string"?`var(--ak-theme-${e})`:e.rgb;const E=e=>e===void 0?void 0:e==="+mj-lt"?"var(--ak-theme-major)":e==="+mn-lt"?"var(--ak-theme-minor)":y(e),I={l:"left",ctr:"center",r:"right",just:"justify"},L={t:"flex-start",ctr:"center",b:"flex-end"},B=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\u2E80-\u2FDF\u3000-\u303F\uFF00-\uFFEF]/u,P=/[\u2018\u2019\u201C\u201D\u2026\u2014\u2013\u2025\u00B7]/u;export function eastAsianRuns(e,t){const i=[];for(const o of e){const r=B.test(o)||t&&P.test(o),c=i.at(-1);c?.ea===r?c.text+=o:i.push({text:o,ea:r})}return i}function j(e,t,i,o){if(!t)return;const r=E(t.name);r&&(e.style.fontFamily=r),t.size!==void 0&&(e.style.fontSize=`${String(t.size*i*o)}px`),t.bold!==void 0&&(e.style.fontWeight=t.bold?"700":"400"),t.italic!==void 0&&(e.style.fontStyle=t.italic?"italic":"normal"),t.underline!==void 0&&(e.style.textDecoration=t.underline?"underline":"none"),t.spacing!==void 0&&(e.style.letterSpacing=`${String(t.spacing*i*o)}px`),t.rgb!==void 0?e.style.color=t.rgb:t.color!==void 0&&(e.style.color=colorCss(t.color))}function G(){if(document.getElementById("ak-bullet-style"))return;const e=document.createElement("style");e.id="ak-bullet-style",e.textContent="[data-ak-bullet]::before{content:attr(data-ak-bullet)}",document.head.append(e)}function U(e,t){const i=t[e.level]??t[0];if(!i)throw new Error("A text style has nine levels.");return{...i,...e.alignment===void 0?{}:{alignment:e.alignment},...e.line_spacing===void 0?{}:{line_spacing:e.line_spacing},...e.space_before===void 0?{}:{space_before:e.space_before},...e.space_after===void 0?{}:{space_after:e.space_after},...e.margin_left===void 0?{}:{margin_left:e.margin_left},...e.indent===void 0?{}:{indent:e.indent},font:{...i.font,...e.font}}}function C(e,t,i,o,r=!1){e.replaceChildren(),t.paragraphs.forEach((c,d)=>{const s=U(c,t.style.levels),a=document.createElement("div");a.dataset.akParagraph=String(d),a.dataset.akLevel=String(c.level);const f=s.font.size*i*o,u="lines"in s.line_spacing?String(s.line_spacing.lines*SINGLE_SPACING):`${String(s.line_spacing.fixed*i*o)}px`,g=c.runs.some(l=>l.text!==""&&l.text!=="\v")?s.bullet:void 0;if(Object.assign(a.style,{position:"relative",textAlign:I[s.alignment],paddingLeft:`${String(s.margin_left*i)}px`,textIndent:g?"0px":`${String(s.indent*i)}px`,marginTop:d===0?"0px":`${String(s.space_before*i*o)}px`,marginBottom:`${String(s.space_after*i*o)}px`,lineHeight:u,fontSize:`${String(f)}px`,minHeight:"lines"in s.line_spacing?`${String(f*s.line_spacing.lines*SINGLE_SPACING)}px`:u}),j(a,s.font,i,o),g){G();const l=document.createElement("span");l.dataset.akBullet=g.char,Object.assign(l.style,{position:"absolute",left:`${String((s.margin_left+s.indent)*i)}px`,...g.font===void 0?{}:{fontFamily:E(g.font)}}),a.append(l)}for(const l of c.runs){const p=document.createElement("span");j(p,l.font,i,o);const m=l.font?.color??l.font?.rgb;m!==void 0&&(p.dataset.akColor=m),l.code?p.dataset.akCode="":l.font?.name!==void 0&&(p.dataset.akFont=l.font.name);const w=`var(--ak-theme-${(l.font?.name??s.font.name)==="+mj-lt"?"major":"minor"}-ea)`;for(const b of eastAsianRuns(l.text.replaceAll("\v",`
|
|
3
|
+
`),r)){if(!b.ea){p.append(b.text);continue}const x=document.createElement("span");x.style.fontFamily=w,x.textContent=b.text,p.append(x)}a.append(p)}e.append(a)})}const _=e=>e!==void 0&&/^(zh|ja|ko)(-|$)/iu.test(e);function v(e,t,i){const{style:o}=e,r=o.auto_size==="shape",c=document.createElement("div");c.dataset.akText="",c.dataset.akAutofit=o.auto_size,Object.assign(c.style,{position:r?"relative":"absolute",inset:r?"auto":"0px",minHeight:"100%",display:"flex",flexDirection:"column",justifyContent:L[o.vertical_anchor],padding:`${String(o.margins.top*t)}px ${String(o.margins.right*t)}px ${String(o.margins.bottom*t)}px ${String(o.margins.left*t)}px`,whiteSpace:o.word_wrap?"pre-wrap":"pre",overflowWrap:"break-word",boxSizing:"border-box"});const d=document.createElement("div");return d.dataset.akBody="",c.append(d),C(d,e,t,1,i),c.akText=e,i&&(c.dataset.akCjk=""),c}export function fitText(e,t){const i=e.akText,o=e.querySelector("[data-ak-body]");if(!i||!o||e.dataset.akAutofit!=="text")return 1;const r=e.clientHeight-parseFloat(getComputedStyle(e).paddingTop)-parseFloat(getComputedStyle(e).paddingBottom),c=a=>(C(o,i,t,a,e.dataset.akCjk!==void 0),o.scrollHeight<=r+.5);if(c(1))return 1;let d=MIN_FONT_SCALE,s=1;if(!c(d))return d;for(;s-d>.01;){const a=(d+s)/2;c(a)?d=a:s=a}return c(d),e.dataset.akFontScale=d.toFixed(2),d}function W(e,t,i,o){const r=t.frame.width*i,c=t.frame.height*i,d=t.flip?.h?r:0,s=t.flip?.v?c:0,a="http://www.w3.org/2000/svg",f=document.createElementNS(a,"svg");f.setAttribute("width",String(Math.max(r,1))),f.setAttribute("height",String(Math.max(c,1))),Object.assign(f.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"});const u=r-d,n=c-s,g=colorCss(t.line??"accent1"),l=h=>h===void 0||h==="none"||h==="arrow"?0:o*1.5,p=Math.hypot(u-d,n-s)||1,m=(u-d)/p,S=(n-s)/p,w=l(t.line_begin),b=l(t.line_end),x=document.createElementNS(a,"line");x.setAttribute("x1",String(d+m*w)),x.setAttribute("y1",String(s+S*w)),x.setAttribute("x2",String(u-m*b)),x.setAttribute("y2",String(n-S*b)),x.setAttribute("stroke",g),x.setAttribute("stroke-width",String(o));const A=F(t.line_dash,o);A&&x.setAttribute("stroke-dasharray",A),f.append(x);for(const[h,D,T,N,H]of[[t.line_begin,d,s,-m,-S],[t.line_end,u,n,m,S]]){const k=J(h,D,T,N,H,o,g);k&&f.append(k)}e.append(f)}const q={sysDash:[3,1],sysDot:[1,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]},F=(e,t)=>e&&q[e]?.map(i=>String(i*t)).join(" ");function J(e,t,i,o,r,c,d){if(e===void 0||e==="none")return;const s="http://www.w3.org/2000/svg",a=c*3,f=(l,p)=>`${String(t-o*l-r*p)},${String(i-r*l+o*p)}`;if(e==="oval"){const l=document.createElementNS(s,"circle");return l.setAttribute("cx",String(t)),l.setAttribute("cy",String(i)),l.setAttribute("r",String(a/2)),l.setAttribute("fill",d),l}const u=e==="arrow",n=document.createElementNS(s,u?"polyline":"polygon"),g={triangle:[f(0,0),f(a,a/2),f(a,-a/2)],stealth:[f(0,0),f(a,a/2),f(a*.7,0),f(a,-a/2)],diamond:[f(-a/2,0),f(0,a/2),f(a/2,0),f(0,-a/2)],arrow:[f(a,a/2),f(0,0),f(a,-a/2)]}[e];return n.setAttribute("points",g.join(" ")),u?(n.setAttribute("fill","none"),n.setAttribute("stroke",d),n.setAttribute("stroke-width",String(c))):n.setAttribute("fill",d),n}function K(e,t,i,o){const r=t.path;if(!r)return;const c=t.frame.width*i,d=t.frame.height*i,s=r.w===0?0:c/r.w,a=r.h===0?0:d/r.h,f=r.steps.map(l=>l.op==="close"?"Z":l.op==="move"?`M${String(l.x*s)} ${String(l.y*a)}`:l.op==="line"?`L${String(l.x*s)} ${String(l.y*a)}`:`C${String(l.x1*s)} ${String(l.y1*a)} ${String(l.x2*s)} ${String(l.y2*a)} ${String(l.x*s)} ${String(l.y*a)}`).join(""),u="http://www.w3.org/2000/svg",n=document.createElementNS(u,"svg");n.setAttribute("width",String(Math.max(c,1))),n.setAttribute("height",String(Math.max(d,1))),Object.assign(n.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"});const g=document.createElementNS(u,"path");if(g.setAttribute("d",f),g.setAttribute("fill-rule","evenodd"),g.setAttribute("fill",colorCss(t.fill)),t.line!==void 0&&t.line!==null){g.setAttribute("stroke",colorCss(t.line)),g.setAttribute("stroke-width",String(o));const l=F(t.line_dash,o);l&&g.setAttribute("stroke-dasharray",l)}n.append(g),e.append(n)}function V(e,t,i){const o=t.geometry??"rect",r=t.frame.width*i,c=t.frame.height*i;o==="roundRect"?e.style.borderRadius=`${String(Math.min(r,c)*Math.min(.5,Math.max(0,t.adjustments?.[0]??z.roundRect?.[0]??0)))}px`:o==="ellipse"?e.style.borderRadius="50%":o==="triangle"?e.style.clipPath="polygon(50% 0, 100% 100%, 0 100%)":o==="rightArrow"&&(e.style.clipPath="polygon(0 25%, 60% 25%, 60% 0, 100% 50%, 60% 100%, 60% 75%, 0 75%)")}const Z={left:"borderLeft",right:"borderRight",top:"borderTop",bottom:"borderBottom"},O="http://www.w3.org/2000/svg";function Q(e,t,i,o){const r=i.width/$,c=i.height/$,d=o*$,s=M(t,r,c),a=document.createElementNS(O,"svg");a.setAttribute("viewBox",`0 0 ${String(r)} ${String(c)}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),Object.assign(a.style,{position:"absolute",inset:"0px",overflow:"visible"});const f=(n,g)=>{const l=document.createElementNS(O,n);for(const[p,m]of Object.entries(g))l.setAttribute(p,String(m));a.append(l)},u=n=>{f("path",{d:n.d,fill:n.fill===void 0?"none":colorCss(n.fill),stroke:n.width>0?colorCss(n.color):"none","stroke-width":n.width,"stroke-linejoin":"round"})};for(const n of[...s.grid,...s.shapes])u(n);for(const n of[...s.boxes,...s.keys])f("rect",{x:n.x,y:n.y,width:n.width,height:n.height,fill:colorCss(n.color)});for(const n of[...s.axes,...s.lines])u(n);for(const n of s.dots)f("circle",{cx:n.x,cy:n.y,r:n.r,fill:colorCss(n.color)});e.append(a);for(const n of s.words){const g=document.createElement("div");g.textContent=n.text,Object.assign(g.style,{position:"absolute",left:`${String(n.x*d)}px`,top:`${String(n.y*d)}px`,transform:`translate(${{start:"0",middle:"-50%",end:"-100%"}[n.anchor]}, -50%)`,fontSize:`${String(n.size*d)}px`,lineHeight:"1",whiteSpace:"nowrap",color:colorCss(n.color),fontFamily:"var(--ak-theme-minor)"}),e.append(g)}}function X(e,t,i,o){const r=document.createElement("table");Object.assign(r.style,{borderCollapse:"collapse",tableLayout:"fixed",width:`${String(t.columns.reduce((d,s)=>d+s,0)*i)}px`});const c=document.createElement("colgroup");for(const d of t.columns){const s=document.createElement("col");s.style.width=`${String(d*i)}px`,c.append(s)}r.append(c);for(const[d,s]of t.rows.entries()){const a=document.createElement("tr");a.style.height=`${String(s.height*i)}px`;for(const[f,u]of s.cells.entries()){if(u.spanned)continue;const n=document.createElement("td");n.dataset.akCell=`${String(d)},${String(f)}`,u.span_width&&(n.colSpan=u.span_width),u.span_height&&(n.rowSpan=u.span_height),n.style.padding="0px",n.style.verticalAlign={t:"top",ctr:"middle",b:"bottom"}[u.text.style.vertical_anchor],u.fill!==void 0&&(n.style.background=colorCss(u.fill));for(const[l,p]of Object.entries(Z)){const m=u.borders?.[l];m&&(n.style[p]=`${String(m.width*i)}px solid ${colorCss(m.color)}`)}const g=v(u.text,i,o);g.style.minHeight="0px",n.append(g),a.append(n)}r.append(a)}e.style.height="auto",e.append(r)}export function drawShape(e,t,i){const{k:o}=i;if(t.kind==="placeholder"&&t.text?.empty===!0&&!i.editing)return;const r=document.createElement("div");r.setAttribute(SHAPE_ATTR,`${e}/${t.name}`);const{left:c,top:d,width:s,height:a}=t.frame;Object.assign(r.style,{position:"absolute",left:`${String(c*o)}px`,top:`${String(d*o)}px`,width:`${String(s*o)}px`,height:`${String(a*o)}px`}),t.rotation!==void 0&&(r.style.transform=`rotate(${String(t.rotation)}deg)`);const f=(t.line_width??LINE_WIDTH)*o;if(t.chart)Q(r,t.chart,t.frame,o);else if(t.table)return X(r,t.table,o,_(i.lang)),r;if(t.kind==="autoshape"){if(t.geometry==="line")return W(r,t,o,f),r;if(t.path)return K(r,t,o,f),t.text&&r.append(v(t.text,o,_(i.lang))),r;r.style.background=colorCss(t.fill),V(r,t,o)}else t.fill!==void 0&&(r.style.background=colorCss(t.fill));if(t.line!==void 0&&t.line!==null&&(r.style.outline=`${String(f)}px ${t.line_dash===void 0||t.line_dash==="solid"?"solid":"dashed"} ${colorCss(t.line)}`),t.text?.style.auto_size==="shape"&&(r.style.height="auto",r.style.minHeight="0px",t.text.style.word_wrap||(r.style.width="max-content")),t.kind==="picture"&&t.media){r.style.overflow="hidden";const u=document.createElement("img");u.alt="",u.src=i.url(t.media.path);const n=t.media.crop??{left:0,top:0,right:0,bottom:0},g=1-n.left-n.right,l=1-n.top-n.bottom;Object.assign(u.style,{position:"absolute",width:`${String(100/g)}%`,height:`${String(100/l)}%`,left:`${String(-n.left/g*100)}%`,top:`${String(-n.top/l*100)}%`,maxWidth:"none"}),r.append(u)}else if(t.kind==="movie"&&t.media&&!i.playing)r.dataset.akFilm="";else if(t.kind==="movie"&&t.media){const u=document.createElement("video");u.src=i.url(t.media.path),u.muted=!0,u.playsInline=!0,u.preload="auto",t.media.poster!==void 0&&(u.currentTime=t.media.poster),Object.assign(u.style,{width:"100%",height:"100%",objectFit:"fill"}),r.append(u)}return t.text&&r.append(v(t.text,o,_(i.lang))),r}export function drawSlide(e,t){const i=document.createElement("div");i.dataset.akSlide=e.id,Object.assign(i.style,{position:"absolute",inset:"0px",background:colorCss(e.background),overflow:"hidden"});for(const o of e.shapes){const r=drawShape(e.id,o,t);r&&i.append(r)}return i}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DeckEditCommand, DeckEditMessage } from "@allyhub-next/slides-core";
|
|
2
|
+
/** The commands a deck's stage takes from its editor, over its slides' element. */
|
|
3
|
+
export declare function deckEditor(stage: HTMLElement, k: number): (command: DeckEditCommand, post: (msg: DeckEditMessage) => void) => void;
|
|
4
|
+
//# sourceMappingURL=edit.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{SHAPE_ATTR as V}from"./draw.js";const A=600,X=342900,U=8,Z=.25,G=120;function Q(t,r,a){const d=t.commonAncestorContainer,i=[];if(d instanceof Text)i.push(d);else{const c=document.createTreeWalker(d,NodeFilter.SHOW_TEXT);for(;c.nextNode();)c.currentNode instanceof Text&&t.intersectsNode(c.currentNode)&&i.push(c.currentNode)}const n=[];for(const c of i){const u=c===t.startContainer?t.startOffset:0,E=c===t.endContainer?t.endOffset:c.length;if(u>=E)continue;const m=u>0?c.splitText(u):c;E-u<m.length&&m.splitText(E-u);const o=document.createElement("span");r(o),m.replaceWith(o),o.append(m),n.push(o)}const[l]=n,f=n.at(-1);if(!l||!f)return;const g=document.createRange();g.setStartBefore(l),g.setEndAfter(f),a.removeAllRanges(),a.addRange(g)}function I(t){document.execCommand("insertText",!1,t)}function K(t,r){if(!(t instanceof Text))return;const a=new Intl.Segmenter(document.documentElement.lang||void 0,{granularity:"word"}).segment(t.data);for(const d of[r,r-1]){if(d<0||d>=t.length)continue;const i=a.containing(d);if(i?.isWordLike!==!0)continue;const n=document.createRange();return n.setStart(t,i.index),n.setEnd(t,i.index+i.segment.length),n}}function M(t){const r=t.closest("[data-ak-autofit='text']");if(!r)return;const a=1/Number(r.dataset.akFontScale??"1"),d=getComputedStyle(r),i=r.clientHeight-parseFloat(d.paddingTop)-parseFloat(d.paddingBottom),n=r.getBoundingClientRect().height/r.offsetHeight,l=c=>{t.style.setProperty("zoom",String(c));const u=t.firstElementChild?.getBoundingClientRect(),E=t.lastElementChild?.getBoundingClientRect();return!u||!E||E.bottom-u.top<=i*n+.5};if(l(a))return;let f=Z,g=a;for(;g-f>.01;){const c=(f+g)/2;l(c)?f=c:g=c}l(f)}const Y=(t,r)=>t.bold===r.bold&&t.italic===r.italic&&t.code===r.code&&t.color===r.color&&t.font===r.font;function ee(t){const r=getComputedStyle(t),a=[],d=n=>{const l=a.at(-1);l&&(Y(l,n)||n.text.trim()==="")?l.text+=n.text:a.push(n)},i=n=>{if(n instanceof HTMLBRElement){d({...te,text:"\v"});return}if(n.nodeType!==Node.TEXT_NODE){n.childNodes.forEach(i);return}const l=n.parentElement;if(!l)return;const f=getComputedStyle(l);d({text:n.textContent??"",bold:Number(f.fontWeight)>=A&&Number(r.fontWeight)<A,italic:f.fontStyle==="italic"&&r.fontStyle!=="italic",code:l.closest("[data-ak-code]")!==null,color:l.closest("[data-ak-color]")?.dataset.akColor,font:l.closest("[data-ak-font]")?.dataset.akFont})};return t.childNodes.forEach(i),a}const te={bold:!1,italic:!1,code:!1,color:void 0,font:void 0};function ne(t){const[,r="",a="",d=""]=/^(\s*)(.*?)(\s*)$/su.exec(t.text)??[];if(a===""||t.text==="\v")return t.text;let i=t.code?`\`${a}\``:a;const n=[...t.color===void 0?[]:[`color="${t.color}"`],...t.font===void 0?[]:[`font="${t.font}"`]];return n.length>0&&(i=`<span ${n.join(" ")}>${i}</span>`),t.italic&&(i=`*${i}*`),t.bold&&(i=`**${i}**`),`${r}${i}${d}`}function oe(t){const r=[...t.children].filter(a=>a instanceof HTMLElement);return r.length===0?[{text:t.innerText.trim(),level:0}]:r.map(a=>({text:ee(a).map(ne).join("").replace(/\v$/u,""),level:Number(a.dataset.akLevel??"0")||0}))}export function deckEditor(t,r){const a=n=>t.querySelector(`[${V}="${CSS.escape(n)}"]`);let d;const i=(n,l)=>{if(n.type==="deck-frame"){const e=a(n.shape);if(!e)return;if(e.dataset.akFileFrame??=JSON.stringify([e.style.left,e.style.top,e.style.width,e.style.height]),n.frame===null){const[p,h,$,J]=JSON.parse(e.dataset.akFileFrame);Object.assign(e.style,{left:p,top:h,width:$,height:J});return}const s=n.frame;Object.assign(e.style,{left:`${String(s.left*r)}px`,top:`${String(s.top*r)}px`,width:`${String(s.width*r)}px`,height:`${String(s.height*r)}px`});return}if(n.type==="deck-stop"){d?.stop();return}if(n.type==="deck-hold"){d?.hold();return}if(n.type==="deck-format"){d?.format(n);return}const f=a(n.shape),g=t.getBoundingClientRect(),c=n.at&&[g.left+n.at.x*g.width,g.top+n.at.y*g.height],u=f?[...f.querySelectorAll("[data-ak-cell]")]:[],E=c&&document.elementFromPoint(c[0],c[1]),m=u.find(e=>e.dataset.akCell===n.cell?.join(","))??(E?u.find(e=>e.contains(E)):void 0)??u[0],o=(m??f)?.querySelector("[data-ak-body]");if(!f||!o)return;d?.stop();const y=n.shape,O=m?.dataset.akCell?.split(",").map(Number),S=O?{cell:O}:{};if(o.children.length===0){const e=document.createElement("div");e.dataset.akParagraph="0",e.dataset.akLevel="0",e.append(document.createElement("br")),o.append(e)}o.contentEditable="true",o.spellcheck=!1,o.style.outline="none",o.style.cursor="text";const L=()=>oe(o),C=e=>{e instanceof InputEvent&&e.isComposing||(M(o),l({type:"deck-text",shape:y,paragraphs:L(),...S}))},F=e=>{e.preventDefault();const s=e.clipboardData?.getData("text/plain")??"";I(s)},q=e=>{const s=getSelection()?.anchorNode,p=(s instanceof Element?s:s?.parentElement)?.closest("[data-ak-level]");if(!p)return;const h=Number(p.dataset.akLevel??"0")+e;if(h<0||h>U)return;p.dataset.akLevel=String(h);const $=parseFloat(p.style.marginLeft)||0;p.style.marginLeft=`${String($+e*X*r)}px`,l({type:"deck-text",shape:y,paragraphs:L(),...S})},P=e=>{const s=e?.dataset.akCell?.split(",").map(Number);!s||e===m||(_(!1),i({type:"deck-edit",shape:y,cell:[s[0]??0,s[1]??0]},l))},B=e=>{e.stopPropagation(),e.key==="Escape"&&T(),e.key==="Tab"&&(e.preventDefault(),m?P(u[u.indexOf(m)+(e.shiftKey?-1:1)]):q(e.shiftKey?-1:1)),(e.metaKey||e.ctrlKey)&&e.key==="u"&&e.preventDefault()};let w;const W=e=>{w=u.find(s=>s!==m&&e.target instanceof Node&&s.contains(e.target)),w&&e.preventDefault()},D=e=>{e.stopPropagation(),P(w)},_=e=>{o.removeEventListener("input",C),o.removeEventListener("compositionend",C),o.removeEventListener("paste",F),o.removeEventListener("keydown",B),o.removeEventListener("blur",H),o.removeEventListener("focus",j),document.removeEventListener("selectionchange",R),clearTimeout(b),f.removeEventListener("mousedown",W),document.removeEventListener("click",D,!0),o.contentEditable="false",d=void 0,l({type:e?"deck-text-done":"deck-text",shape:y,paragraphs:L(),...S})},T=()=>{_(!0)};let v,N=!1,b;const R=()=>{const e=getSelection();if(!e||e.rangeCount===0)return;const s=e.getRangeAt(0);if(!o.contains(s.commonAncestorContainer))return;v=s.cloneRange();const p=s.startContainer instanceof Element?s.startContainer:s.startContainer.parentElement;l({type:"deck-selection",shape:y,words:!s.collapsed,bold:p?Number(getComputedStyle(p).fontWeight)>=A:!1,italic:p?getComputedStyle(p).fontStyle==="italic":!1})},H=()=>{b=setTimeout(()=>{N||T()},G)},j=()=>{N=!1,clearTimeout(b)},z=e=>{const s=getSelection();if(!s||!v)return;window.focus(),o.focus();const p=v.collapsed?K(v.startContainer,v.startOffset):v;p&&(v=p,s.removeAllRanges(),s.addRange(v),Q(v,h=>{e.bold!==void 0&&(h.style.fontWeight=e.bold?"700":"400"),e.italic!==void 0&&(h.style.fontStyle=e.italic?"italic":"normal"),e.color!==void 0&&(h.dataset.akColor=e.color,h.style.color=e.color.startsWith("#")?e.color:`var(--ak-theme-${e.color})`)},s),M(o),l({type:"deck-text",shape:y,paragraphs:L(),...S}),R())};o.addEventListener("input",C),o.addEventListener("compositionend",C),o.addEventListener("paste",F),o.addEventListener("keydown",B),o.addEventListener("blur",H),o.addEventListener("focus",j),document.addEventListener("selectionchange",R),m&&f.addEventListener("mousedown",W),document.addEventListener("click",D,!0),window.focus(),d={body:o,stop:T,format:z,hold:()=>{N=!0}},o.focus();const x=c?document.caretPositionFromPoint(c[0],c[1]):null,k=getSelection();if(k){if(k.removeAllRanges(),x&&o.contains(x.offsetNode)){const e=document.createRange();e.setStart(x.offsetNode,x.offset),e.collapse(!0),k.addRange(e);const s=n.word===!0?K(x.offsetNode,x.offset):void 0;s&&(k.removeAllRanges(),k.addRange(s))}else{const e=document.createRange();e.selectNodeContents(o),e.collapse(!1),k.addRange(e)}n.text!==void 0&&I(n.text)}};return i}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DECK_FPS, SLIDE_SECONDS } from "@allyhub-next/slides-core";
|
|
2
|
+
export { loadDeck } from "./load.js";
|
|
3
|
+
export { drawShape, drawSlide, fitText, themeCss, colorCss, SHAPE_ATTR, LINE_WIDTH, SINGLE_SPACING, MIN_FONT_SCALE, type DrawOptions, } from "./draw.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export{DECK_FPS,SLIDE_SECONDS}from"@allyhub-next/slides-core";export{loadDeck}from"./load.js";export{drawShape,drawSlide,fitText,themeCss,colorCss,SHAPE_ATTR,LINE_WIDTH,SINGLE_SPACING,MIN_FONT_SCALE}from"./draw.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Box } from "@allyhub-next/video-core";
|
|
2
|
+
/**
|
|
3
|
+
* The ink of the text drawn by these elements (a paragraph's runs), a box
|
|
4
|
+
* per line, in the slide's pixels: `stage` is the slide's element and
|
|
5
|
+
* `width` its width in the slide's pixels.
|
|
6
|
+
*/
|
|
7
|
+
export declare function inkLines(runs: readonly HTMLElement[], stage: HTMLElement, width: number): Box[];
|
|
8
|
+
/** The box around boxes, whole pixels outward. */
|
|
9
|
+
export declare function union(boxes: readonly Box[]): Box | null;
|
|
10
|
+
//# sourceMappingURL=ink.d.ts.map
|