@allyhub/sdk 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/NOTICE +46 -49
- package/dist/dom.d.ts +1 -209
- package/dist/dom.js +1 -1
- package/dist/image.d.ts +2 -0
- package/dist/image.js +2 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.js +1 -1
- package/dist/media.d.ts +1 -5
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +3 -4
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +44 -4
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +19 -2
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +17 -10
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +22 -430
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +6 -12
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/scenery.d.ts +1 -1
- package/dist/scenery.js +1 -1
- package/dist/sheets.d.ts +1 -1
- package/dist/sheets.js +1 -1
- package/dist/slides.d.ts +1 -9
- package/dist/slides.js +1 -1
- package/docs/README.md +8 -6
- package/docs/batches.md +5 -5
- package/docs/contract.md +2 -2
- package/docs/defaults.md +278 -20
- package/docs/docs.md +77 -63
- package/docs/footage.md +7 -7
- package/docs/image.md +165 -0
- package/docs/layers.md +22 -13
- package/docs/modeling.md +4 -4
- package/docs/pictures.md +65 -0
- package/docs/project.md +51 -31
- package/docs/scenery.md +11 -11
- package/docs/sheets.md +26 -25
- package/docs/slides.md +73 -65
- package/docs/sound.md +3 -3
- package/docs/speech.md +8 -8
- package/docs/video.md +16 -13
- package/docs/websites.md +4 -4
- package/package.json +7 -2
- package/dist/define.js +0 -2
- package/dist/free.js +0 -2
- package/dist/input.js +0 -2
- package/dist/module.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/parts.js +0 -2
- package/dist/piece.js +0 -2
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
- /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
- /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
- /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
- /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
- /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
- /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
- /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
- /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
- /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
- /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
- /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
- /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
- /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* "error": must fix — the render breaks or a safety rule is broken;
|
|
3
|
-
* nothing is rendered until it is fixed. "warn": a suggestion — never
|
|
4
|
-
* blocks.
|
|
5
|
-
*/
|
|
6
|
-
export type ProblemLevel = "error" | "warn";
|
|
7
|
-
export type Box = [x: number, y: number, w: number, h: number];
|
|
8
|
-
export interface Problem {
|
|
9
|
-
/** Rule code, e.g. "AK-L002". */
|
|
10
|
-
code: string;
|
|
11
|
-
level: ProblemLevel;
|
|
12
|
-
/** What is wrong and how to fix it. */
|
|
13
|
-
message: string;
|
|
14
|
-
/** Where it was found: absent for project-level problems. */
|
|
15
|
-
piece?: string;
|
|
16
|
-
output?: string;
|
|
17
|
-
combo?: Record<string, string>;
|
|
18
|
-
format?: string;
|
|
19
|
-
/** Where inside the output. */
|
|
20
|
-
part?: string;
|
|
21
|
-
t?: number;
|
|
22
|
-
page?: number;
|
|
23
|
-
where?: {
|
|
24
|
-
file?: string;
|
|
25
|
-
line?: number;
|
|
26
|
-
selector?: string;
|
|
27
|
-
bbox?: Box;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
/** Rule codes and their levels. */
|
|
31
|
-
export declare const RULES: {
|
|
32
|
-
readonly "AK-M001": {
|
|
33
|
-
readonly level: "error";
|
|
34
|
-
readonly rule: "The fields of video(), presentation() or defineComponent do not match the format";
|
|
35
|
-
};
|
|
36
|
-
readonly "AK-M002": {
|
|
37
|
-
readonly level: "error";
|
|
38
|
-
readonly rule: "A piece is not the entry file of an item folder";
|
|
39
|
-
};
|
|
40
|
-
readonly "AK-M003": {
|
|
41
|
-
readonly level: "error";
|
|
42
|
-
readonly rule: "An item's entry file does not match its folder or its kind";
|
|
43
|
-
};
|
|
44
|
-
readonly "AK-M004": {
|
|
45
|
-
readonly level: "error";
|
|
46
|
-
readonly rule: "The project has no pieces";
|
|
47
|
-
};
|
|
48
|
-
readonly "AK-M006": {
|
|
49
|
-
readonly level: "error";
|
|
50
|
-
readonly rule: "A messages file does not match the format";
|
|
51
|
-
};
|
|
52
|
-
readonly "AK-M007": {
|
|
53
|
-
readonly level: "error";
|
|
54
|
-
readonly rule: "A script file does not match the format";
|
|
55
|
-
};
|
|
56
|
-
readonly "AK-M008": {
|
|
57
|
-
readonly level: "error";
|
|
58
|
-
readonly rule: "A doc's file is not MDX, holds what a doc does not draw, or is not an item of its own";
|
|
59
|
-
};
|
|
60
|
-
readonly "AK-M009": {
|
|
61
|
-
readonly level: "error";
|
|
62
|
-
readonly rule: "A sheet is wrong whatever the taste: its files cannot be read, a formula does not parse or names what is not there, a reference is circular, or a check does not hold";
|
|
63
|
-
};
|
|
64
|
-
readonly "AK-M010": {
|
|
65
|
-
readonly level: "error";
|
|
66
|
-
readonly rule: "A video item reaches itself through the videos it shows (a screen, a video take, a footage of a video item)";
|
|
67
|
-
};
|
|
68
|
-
readonly "AK-M011": {
|
|
69
|
-
readonly level: "error";
|
|
70
|
-
readonly rule: "A deck's slides.yaml does not match the format, or names a layout, a prop, a file or a video item the deck does not have";
|
|
71
|
-
};
|
|
72
|
-
readonly "AK-M012": {
|
|
73
|
-
readonly level: "error";
|
|
74
|
-
readonly rule: "A sheet's sheet.ts reads the clock or a random number, reaches outside the project, or does not make the same sheets twice";
|
|
75
|
-
};
|
|
76
|
-
readonly "AK-M013": {
|
|
77
|
-
readonly level: "error";
|
|
78
|
-
readonly rule: "A website's website.json is not JSON or does not match the format";
|
|
79
|
-
};
|
|
80
|
-
readonly "AK-B001": {
|
|
81
|
-
readonly level: "error";
|
|
82
|
-
readonly rule: "Two pieces have the same id";
|
|
83
|
-
};
|
|
84
|
-
readonly "AK-B003": {
|
|
85
|
-
readonly level: "error";
|
|
86
|
-
readonly rule: "The build made a network request";
|
|
87
|
-
};
|
|
88
|
-
readonly "AK-B004": {
|
|
89
|
-
readonly level: "error";
|
|
90
|
-
readonly rule: "The build timed out, or its result is over the size limit";
|
|
91
|
-
};
|
|
92
|
-
readonly "AK-B005": {
|
|
93
|
-
readonly level: "error";
|
|
94
|
-
readonly rule: "An import of a file outside the project, or of a package not declared in package.json";
|
|
95
|
-
};
|
|
96
|
-
readonly "AK-B006": {
|
|
97
|
-
readonly level: "error";
|
|
98
|
-
readonly rule: "An import of an @allyhub/sdk entry point that does not exist";
|
|
99
|
-
};
|
|
100
|
-
readonly "AK-B008": {
|
|
101
|
-
readonly level: "error";
|
|
102
|
-
readonly rule: "The project's @allyhub/sdk is another version than the allyhub that builds it";
|
|
103
|
-
};
|
|
104
|
-
readonly "AK-B009": {
|
|
105
|
-
readonly level: "error";
|
|
106
|
-
readonly rule: "The project's package.json declares AllyHub, but its packages are not installed";
|
|
107
|
-
};
|
|
108
|
-
readonly "AK-B010": {
|
|
109
|
-
readonly level: "error";
|
|
110
|
-
readonly rule: "A 3D model does not build";
|
|
111
|
-
};
|
|
112
|
-
readonly "AK-K001": {
|
|
113
|
-
readonly level: "error";
|
|
114
|
-
readonly rule: "Two parts have the same key";
|
|
115
|
-
};
|
|
116
|
-
readonly "AK-K003": {
|
|
117
|
-
readonly level: "error";
|
|
118
|
-
readonly rule: "The output has no parts";
|
|
119
|
-
};
|
|
120
|
-
readonly "AK-D002": {
|
|
121
|
-
readonly level: "error";
|
|
122
|
-
readonly rule: "The same frame has different pixels when drawn in order and out of order";
|
|
123
|
-
};
|
|
124
|
-
readonly "AK-N003": {
|
|
125
|
-
readonly level: "error";
|
|
126
|
-
readonly rule: "The sandbox blocked a request at run time";
|
|
127
|
-
};
|
|
128
|
-
readonly "AK-S001": {
|
|
129
|
-
readonly level: "error";
|
|
130
|
-
readonly rule: "The code reads a key that is missing in the default language too";
|
|
131
|
-
};
|
|
132
|
-
readonly "AK-T001": {
|
|
133
|
-
readonly level: "error";
|
|
134
|
-
readonly rule: "A take has no word times beside it (<name>.words.json)";
|
|
135
|
-
};
|
|
136
|
-
readonly "AK-T002": {
|
|
137
|
-
readonly level: "error";
|
|
138
|
-
readonly rule: "A say part has no generated file for its text, voice and tool";
|
|
139
|
-
};
|
|
140
|
-
readonly "AK-T003": {
|
|
141
|
-
readonly level: "error";
|
|
142
|
-
readonly rule: "A take's range phrase, or the line a part is saying, is not found in the take";
|
|
143
|
-
};
|
|
144
|
-
readonly "AK-T004": {
|
|
145
|
-
readonly level: "error";
|
|
146
|
-
readonly rule: "A word reference is not in its part's words, or an anchor is not in its line";
|
|
147
|
-
};
|
|
148
|
-
readonly "AK-T005": {
|
|
149
|
-
readonly level: "error";
|
|
150
|
-
readonly rule: "A take's edits file is missing or does not match the format, or an edit's words are no longer in the take";
|
|
151
|
-
};
|
|
152
|
-
readonly "AK-T006": {
|
|
153
|
-
readonly level: "error";
|
|
154
|
-
readonly rule: "A take's range phrase, or the line a part is saying, is said in words the take's edits remove";
|
|
155
|
-
};
|
|
156
|
-
readonly "AK-T007": {
|
|
157
|
-
readonly level: "error";
|
|
158
|
-
readonly rule: "A part says a line its generated voice was not made from";
|
|
159
|
-
};
|
|
160
|
-
readonly "AK-F001": {
|
|
161
|
-
readonly level: "error";
|
|
162
|
-
readonly rule: "The video is longer than its platform profile takes";
|
|
163
|
-
};
|
|
164
|
-
readonly "AK-A001": {
|
|
165
|
-
readonly level: "error";
|
|
166
|
-
readonly rule: "A referenced media or data file does not exist";
|
|
167
|
-
};
|
|
168
|
-
readonly "AK-A003": {
|
|
169
|
-
readonly level: "error";
|
|
170
|
-
readonly rule: "Wrong media type";
|
|
171
|
-
};
|
|
172
|
-
readonly "AK-A005": {
|
|
173
|
-
readonly level: "error";
|
|
174
|
-
readonly rule: "A layer draws a picture that does not load: its source is not a file the stage serves, or not a picture";
|
|
175
|
-
};
|
|
176
|
-
readonly "AK-P002": {
|
|
177
|
-
readonly level: "error";
|
|
178
|
-
readonly rule: "Loading took longer than the piece's loadLimit (default 10 seconds)";
|
|
179
|
-
};
|
|
180
|
-
readonly "AK-P003": {
|
|
181
|
-
readonly level: "error";
|
|
182
|
-
readonly rule: "A moment did not finish drawing within the piece's seekLimit (default 30 seconds): work a layer waits for (ctx.wait) or a picture it shows never settled";
|
|
183
|
-
};
|
|
184
|
-
readonly "AK-R001": {
|
|
185
|
-
readonly level: "error";
|
|
186
|
-
readonly rule: "An unhandled exception was thrown at run time";
|
|
187
|
-
};
|
|
188
|
-
readonly "AK-R003": {
|
|
189
|
-
readonly level: "error";
|
|
190
|
-
readonly rule: "The page was changed outside the stage";
|
|
191
|
-
};
|
|
192
|
-
readonly "AK-R004": {
|
|
193
|
-
readonly level: "error";
|
|
194
|
-
readonly rule: "The code sets a style value the browser does not accept, so the style does not apply";
|
|
195
|
-
};
|
|
196
|
-
readonly "AK-G001": {
|
|
197
|
-
readonly level: "error";
|
|
198
|
-
readonly rule: "Unknown format: not one of the four presets, a platform profile or WIDTHxHEIGHT with even sides";
|
|
199
|
-
};
|
|
200
|
-
readonly "AK-X001": {
|
|
201
|
-
readonly level: "error";
|
|
202
|
-
readonly rule: "The matrix's slots, structures, rules or combos name something that does not exist, or a combo lacks a slot of its structure";
|
|
203
|
-
};
|
|
204
|
-
readonly "AK-X002": {
|
|
205
|
-
readonly level: "error";
|
|
206
|
-
readonly rule: "The matrix's rules leave no combination to make, or rule out a combo matrix.combos names";
|
|
207
|
-
};
|
|
208
|
-
readonly "AK-X004": {
|
|
209
|
-
readonly level: "error";
|
|
210
|
-
readonly rule: "Two chosen combos are the same, or more alike than the matrix's differ allows";
|
|
211
|
-
};
|
|
212
|
-
readonly "AK-X005": {
|
|
213
|
-
readonly level: "error";
|
|
214
|
-
readonly rule: "A part reads another slot's pick, so one render of it cannot serve every combo";
|
|
215
|
-
};
|
|
216
|
-
readonly "AK-X006": {
|
|
217
|
-
readonly level: "error";
|
|
218
|
-
readonly rule: "A combo is longer than its output's maxDuration";
|
|
219
|
-
};
|
|
220
|
-
readonly "AK-W001": {
|
|
221
|
-
readonly level: "error";
|
|
222
|
-
readonly rule: "A scenery does not build: its module's export is not a scenery, its build throws or does not finish, or its update throws";
|
|
223
|
-
};
|
|
224
|
-
readonly "AK-W002": {
|
|
225
|
-
readonly level: "error";
|
|
226
|
-
readonly rule: "WebGL cannot be made or is lost, or draws on something other than SwiftShader where the CPU was asked for (--cpu, ALLYHUB_GPU=0, or the default off macOS)";
|
|
227
|
-
};
|
|
228
|
-
readonly "AK-W003": {
|
|
229
|
-
readonly level: "error";
|
|
230
|
-
readonly rule: "A model, texture, environment or splat file does not load, names a file that is not there, or needs a decoder AllyHub does not lend";
|
|
231
|
-
};
|
|
232
|
-
readonly "AK-W004": {
|
|
233
|
-
readonly level: "error";
|
|
234
|
-
readonly rule: "A camera cannot be drawn: a number that is not finite, a target at its position, a view along its up, a field of view outside (0°, 180°), or near and far planes out of order";
|
|
235
|
-
};
|
|
236
|
-
readonly "AK-W005": {
|
|
237
|
-
readonly level: "error";
|
|
238
|
-
readonly rule: "A name a camera, a move or a measurement refers to names no object in the scenery, or names two";
|
|
239
|
-
};
|
|
240
|
-
readonly "AK-W006": {
|
|
241
|
-
readonly level: "error";
|
|
242
|
-
readonly rule: "A material's shader does not compile or link on this renderer, or needs more texture units than the renderer has, so what uses it draws nothing (warn: more than the 16 a GPU may have)";
|
|
243
|
-
};
|
|
244
|
-
readonly "AK-W008": {
|
|
245
|
-
readonly level: "error";
|
|
246
|
-
readonly rule: "A screen drawn in the scenery cannot show its element as it is: an element of it is in the browser's top layer (a modal dialog, a popover), planes of a preserve-3d context overlap, its element is larger than the largest texture, or its picture could not be copied";
|
|
247
|
-
};
|
|
248
|
-
readonly "AK-S002": {
|
|
249
|
-
readonly level: "warn";
|
|
250
|
-
readonly rule: "Missing translation";
|
|
251
|
-
};
|
|
252
|
-
readonly "AK-L002": {
|
|
253
|
-
readonly level: "warn";
|
|
254
|
-
readonly rule: "Text overflows the frame or is clipped";
|
|
255
|
-
};
|
|
256
|
-
readonly "AK-L003": {
|
|
257
|
-
readonly level: "warn";
|
|
258
|
-
readonly rule: "Missing glyphs";
|
|
259
|
-
};
|
|
260
|
-
readonly "AK-L006": {
|
|
261
|
-
readonly level: "warn";
|
|
262
|
-
readonly rule: "Text is drawn in a fallback font, or in a bold or italic the font does not have";
|
|
263
|
-
};
|
|
264
|
-
readonly "AK-W007": {
|
|
265
|
-
readonly level: "warn";
|
|
266
|
-
readonly rule: "A screen asked to be drawn in the scenery is drawn over it, unlit and untoned: this browser cannot draw an element into a canvas (Chrome's HTML-in-Canvas), or ALLYHUB_HTML_IN_CANVAS=0";
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
export type RuleCode = keyof typeof RULES;
|
|
270
|
-
/** A problem at the rule's own level. */
|
|
271
|
-
export declare function problem(code: RuleCode, message: string, extra?: Omit<Problem, "code" | "level" | "message"> & {
|
|
272
|
-
level?: ProblemLevel;
|
|
273
|
-
}): Problem;
|
|
274
|
-
export declare function countLevels(problems: readonly Problem[]): {
|
|
275
|
-
errors: number;
|
|
276
|
-
warnings: number;
|
|
277
|
-
};
|
|
278
|
-
//# sourceMappingURL=problem.d.ts.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const RULES={"AK-M001":{level:"error",rule:"The fields of video(), presentation() or defineComponent do not match the format"},"AK-M002":{level:"error",rule:"A piece is not the entry file of an item folder"},"AK-M003":{level:"error",rule:"An item's entry file does not match its folder or its kind"},"AK-M004":{level:"error",rule:"The project has no pieces"},"AK-M006":{level:"error",rule:"A messages file does not match the format"},"AK-M007":{level:"error",rule:"A script file does not match the format"},"AK-M008":{level:"error",rule:"A doc's file is not MDX, holds what a doc does not draw, or is not an item of its own"},"AK-M009":{level:"error",rule:"A sheet is wrong whatever the taste: its files cannot be read, a formula does not parse or names what is not there, a reference is circular, or a check does not hold"},"AK-M010":{level:"error",rule:"A video item reaches itself through the videos it shows (a screen, a video take, a footage of a video item)"},"AK-M011":{level:"error",rule:"A deck's slides.yaml does not match the format, or names a layout, a prop, a file or a video item the deck does not have"},"AK-M012":{level:"error",rule:"A sheet's sheet.ts reads the clock or a random number, reaches outside the project, or does not make the same sheets twice"},"AK-M013":{level:"error",rule:"A website's website.json is not JSON or does not match the format"},"AK-B001":{level:"error",rule:"Two pieces have the same id"},"AK-B003":{level:"error",rule:"The build made a network request"},"AK-B004":{level:"error",rule:"The build timed out, or its result is over the size limit"},"AK-B005":{level:"error",rule:"An import of a file outside the project, or of a package not declared in package.json"},"AK-B006":{level:"error",rule:"An import of an @allyhub/sdk entry point that does not exist"},"AK-B008":{level:"error",rule:"The project's @allyhub/sdk is another version than the allyhub that builds it"},"AK-B009":{level:"error",rule:"The project's package.json declares AllyHub, but its packages are not installed"},"AK-B010":{level:"error",rule:"A 3D model does not build"},"AK-K001":{level:"error",rule:"Two parts have the same key"},"AK-K003":{level:"error",rule:"The output has no parts"},"AK-D002":{level:"error",rule:"The same frame has different pixels when drawn in order and out of order"},"AK-N003":{level:"error",rule:"The sandbox blocked a request at run time"},"AK-S001":{level:"error",rule:"The code reads a key that is missing in the default language too"},"AK-T001":{level:"error",rule:"A take has no word times beside it (<name>.words.json)"},"AK-T002":{level:"error",rule:"A say part has no generated file for its text, voice and tool"},"AK-T003":{level:"error",rule:"A take's range phrase, or the line a part is saying, is not found in the take"},"AK-T004":{level:"error",rule:"A word reference is not in its part's words, or an anchor is not in its line"},"AK-T005":{level:"error",rule:"A take's edits file is missing or does not match the format, or an edit's words are no longer in the take"},"AK-T006":{level:"error",rule:"A take's range phrase, or the line a part is saying, is said in words the take's edits remove"},"AK-T007":{level:"error",rule:"A part says a line its generated voice was not made from"},"AK-F001":{level:"error",rule:"The video is longer than its platform profile takes"},"AK-A001":{level:"error",rule:"A referenced media or data file does not exist"},"AK-A003":{level:"error",rule:"Wrong media type"},"AK-A005":{level:"error",rule:"A layer draws a picture that does not load: its source is not a file the stage serves, or not a picture"},"AK-P002":{level:"error",rule:"Loading took longer than the piece's loadLimit (default 10 seconds)"},"AK-P003":{level:"error",rule:"A moment did not finish drawing within the piece's seekLimit (default 30 seconds): work a layer waits for (ctx.wait) or a picture it shows never settled"},"AK-R001":{level:"error",rule:"An unhandled exception was thrown at run time"},"AK-R003":{level:"error",rule:"The page was changed outside the stage"},"AK-R004":{level:"error",rule:"The code sets a style value the browser does not accept, so the style does not apply"},"AK-G001":{level:"error",rule:"Unknown format: not one of the four presets, a platform profile or WIDTHxHEIGHT with even sides"},"AK-X001":{level:"error",rule:"The matrix's slots, structures, rules or combos name something that does not exist, or a combo lacks a slot of its structure"},"AK-X002":{level:"error",rule:"The matrix's rules leave no combination to make, or rule out a combo matrix.combos names"},"AK-X004":{level:"error",rule:"Two chosen combos are the same, or more alike than the matrix's differ allows"},"AK-X005":{level:"error",rule:"A part reads another slot's pick, so one render of it cannot serve every combo"},"AK-X006":{level:"error",rule:"A combo is longer than its output's maxDuration"},"AK-W001":{level:"error",rule:"A scenery does not build: its module's export is not a scenery, its build throws or does not finish, or its update throws"},"AK-W002":{level:"error",rule:"WebGL cannot be made or is lost, or draws on something other than SwiftShader where the CPU was asked for (--cpu, ALLYHUB_GPU=0, or the default off macOS)"},"AK-W003":{level:"error",rule:"A model, texture, environment or splat file does not load, names a file that is not there, or needs a decoder AllyHub does not lend"},"AK-W004":{level:"error",rule:"A camera cannot be drawn: a number that is not finite, a target at its position, a view along its up, a field of view outside (0°, 180°), or near and far planes out of order"},"AK-W005":{level:"error",rule:"A name a camera, a move or a measurement refers to names no object in the scenery, or names two"},"AK-W006":{level:"error",rule:"A material's shader does not compile or link on this renderer, or needs more texture units than the renderer has, so what uses it draws nothing (warn: more than the 16 a GPU may have)"},"AK-W008":{level:"error",rule:"A screen drawn in the scenery cannot show its element as it is: an element of it is in the browser's top layer (a modal dialog, a popover), planes of a preserve-3d context overlap, its element is larger than the largest texture, or its picture could not be copied"},"AK-S002":{level:"warn",rule:"Missing translation"},"AK-L002":{level:"warn",rule:"Text overflows the frame or is clipped"},"AK-L003":{level:"warn",rule:"Missing glyphs"},"AK-L006":{level:"warn",rule:"Text is drawn in a fallback font, or in a bold or italic the font does not have"},"AK-W007":{level:"warn",rule:"A screen asked to be drawn in the scenery is drawn over it, unlit and untoned: this browser cannot draw an element into a canvas (Chrome's HTML-in-Canvas), or ALLYHUB_HTML_IN_CANVAS=0"}};export function problem(e,r,o={}){const{level:t,...l}=o;return{code:e,level:t??RULES[e].level,message:r,...l}}export function countLevels(e){let r=0,o=0;for(const t of e)t.level==="error"?r++:o++;return{errors:r,warnings:o}}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{hasAnchors as A,hasSpans as O,readAnchors as k,spokenLine as S}from"./anchors.js";import{isSpoken as g}from"./messages.js";export const SCRIPT_FILE=/^script\.([a-z]{2,3}(?:-[a-z0-9]{2,8})?)\.ya?ml$/;const $=/^[A-Za-z0-9_-]+$/,b=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),E=e=>e.length===0?"(root)":e.map((r,s)=>typeof r=="number"?`[${String(r)}]`:`${s?".":""}${r}`).join("");function w(e){const r=d=>Array.isArray(d)&&d.every(o=>typeof o=="string"),s=e.match;if(!b(s)||!Object.values(s).every(d=>typeof d=="string"))return"match must map each case to its text";const u=e.declarations??[],m=e.selectors??[];if(!r(u)||!r(m))return"declarations and selectors must be lists of strings";const h=Object.keys(e).filter(d=>!["declarations","selectors","match"].includes(d));return h.length>0?`unknown key ${h.join(", ")}`:{declarations:u,selectors:m,match:s}}function _(e){if(typeof e=="string")return e;if(g(e))return Object.keys(e).length===2?e:"has more than display and speak";if(b(e)&&"match"in e)return w(e)}export function parseScript(e){const r=[],s=(t,n)=>{r.push(`${E(t)}: ${n}`)},u=(t,n)=>{const i=_(t);if(i===void 0||typeof i=="string"&&i!==t){s(n,typeof i=="string"?i:typeof t=="number"||typeof t=="boolean"?`${String(t)} is not text: put it in quotes`:"must be text, { display, speak }, or a plural or selection");return}return i},m=(t,n)=>{if(!b(t)){s(n,"must be names with their text");return}const i={};for(const[c,f]of Object.entries(t)){const y=h(f,[...n,c]);$.test(c)?y!==void 0&&(i[c]=y):s([...n,c],"a name has only letters, digits, _ and -")}return i},h=(t,n)=>{if(Array.isArray(t)){const i=t.map((c,f)=>h(c,[...n,f]));return i.every(c=>c!==void 0)?i:void 0}return b(t)&&!g(t)&&!("match"in t)?m(t,n):u(t,n)};if(e==null)return{script:{parts:[]}};if(!b(e))return{problems:["(root): must be title, text and parts"]};const d={parts:[]};for(const t of Object.keys(e))["title","text","parts","slides"].includes(t)||s([t],"unknown key: a script has title, text, parts and slides");if(e.title!==void 0&&(typeof e.title=="string"?d.title=e.title:s(["title"],"must be text")),e.text!==void 0){const t=m(e.text,["text"]);t&&(d.text=t)}const o=e.parts??[];if(!Array.isArray(o))s(["parts"],"must be a list of parts");else{const t=new Set;o.forEach((n,i)=>{const c=["parts",i];if(!b(n)){s(c,"must be a part: id, say, screen");return}for(const l of Object.keys(n))["id","say","screen"].includes(l)||s([...c,l],"unknown key: a part has id, say and screen");const f=n.id;if(typeof f!="string"||!$.test(f)){s([...c,"id"],"a part needs an id of letters, digits, _ and -");return}if(t.has(f)){s([...c,"id"],`two parts have the id ${f}`);return}t.add(f);const y={id:f};if(n.say!==void 0){const l=u(n.say,[...c,"say"]);if(g(l))s([...c,"say"],"is one line: write a piece that is shown one way and said another inside it, as <shown|said>");else if(l!==void 0){y.say=l;for(const x of z(l))s([...c,"say"],x)}}if(n.screen!==void 0){const l=m(n.screen,[...c,"screen"]);l&&(y.screen=l)}d.parts.push(y)})}const a=e.slides??[];if(!Array.isArray(a))s(["slides"],"must be a list of slides");else{const t=new Set,n=[];a.forEach((i,c)=>{const f=["slides",c];if(!b(i)){s(f,"must be a slide: id, text, alt, notes");return}for(const p of Object.keys(i))["id","text","alt","notes"].includes(p)||s([...f,p],"unknown key: a slide has id, text, alt and notes");const y=i.id;if(typeof y!="string"||!$.test(y)){s([...f,"id"],"a slide needs an id of letters, digits, _ and -");return}if(t.has(y)){s([...f,"id"],`two slides have the id ${y}`);return}t.add(y);const l={id:y};if(i.text!==void 0){const p=m(i.text,[...f,"text"]);p&&(l.text=p)}const x=i.alt;if(x!==void 0&&(b(x)&&Object.entries(x).every(([p,j])=>$.test(p)&&typeof j=="string")?l.alt=x:s([...f,"alt"],"is each shape's alternative text, by name")),i.notes!==void 0){const p=u(i.notes,[...f,"notes"]);typeof p=="string"||p!==void 0&&!g(p)?l.notes=p:p!==void 0&&s([...f,"notes"],"is text")}n.push(l)}),n.length>0&&(d.slides=n)}return r.length>0?{problems:r}:{script:d}}function z(e){return typeof e=="string"?k(e).problems:g(e)?[]:Object.values(e.match).some(r=>A(r)||O(r))?["a plural or a selection cannot have anchors or <shown|said>"]:[]}export function saidOf(e){if(typeof e!="string")return{value:e,anchors:[]};const r=k(e);if(r.spans.length===0)return{value:r.text,anchors:r.anchors};const s=S(r);return{value:{display:r.text,speak:s.text},anchors:r.anchors.map(u=>({name:u.name,at:s.at(u.at,!1),...u.end===void 0?{}:{end:s.at(u.end,!0)}}))}}const L=e=>typeof e=="string"||!Array.isArray(e)&&(g(e)||"match"in e);export function scriptKeys(e,r){const s=[],u=new Set,m=[],h=(o,a,t,n=[])=>{u.has(o)?m.push(o):(u.add(o),s.push({key:o,value:a,path:t,...n.length>0?{anchors:n}:{}}))},d=(o,a,t)=>{if(L(a))h(o,a,t);else if(Array.isArray(a))a.forEach((n,i)=>{d(`${o}.${String(i)}`,n,[...t,i])});else for(const[n,i]of Object.entries(a))d(`${o}.${n}`,i,[...t,n])};r.title!==void 0&&h(`${e}.title`,r.title,["title"]);for(const[o,a]of Object.entries(r.text??{}))d(`${e}.${o}`,a,["text",o]);return r.parts.forEach((o,a)=>{const t=`${e}.${o.id}`;if(o.say!==void 0){const n=saidOf(o.say);h(`${t}.say`,n.value,["parts",a,"say"],n.anchors)}for(const[n,i]of Object.entries(o.screen??{}))d(`${t}.${n}`,i,["parts",a,"screen",n])}),(r.slides??[]).forEach((o,a)=>{const t=`${e}.${o.id}`;for(const[n,i]of Object.entries(o.text??{}))d(`${t}.${n}`,i,["slides",a,"text",n]);o.notes!==void 0&&h(`${t}.notes`,o.notes,["slides",a,"notes"]);for(const[n,i]of Object.entries(o.alt??{}))h(`${t}.alt.${n}`,i,["slides",a,"alt",n])}),{keys:s,twice:m}}export function scriptMessages(e,r){return Object.fromEntries(scriptKeys(e,r).keys.map(s=>[s.key,s.value]))}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MediaInfo } from "./media.js";
|
|
2
|
-
import type { BuildSource } from "./timeline.js";
|
|
3
|
-
/** A file's media, its addresses absolute against the tree's root. */
|
|
4
|
-
export declare function resolveMedia(media: Readonly<Record<string, MediaInfo>>, root: string | URL): Record<string, MediaInfo>;
|
|
5
|
-
/** A piece's source, its bundle's, styles' and media's addresses absolute against the tree's root. */
|
|
6
|
-
export declare function resolveSource(source: BuildSource, root: string | URL): BuildSource;
|
|
7
|
-
//# sourceMappingURL=source.d.ts.map
|
package/dist/parts.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{shapeProblem as R,voiceProblem as T}from"@allyhub/audio";import{BACKDROP_BLUR_MAX as $,EASES as E,LAYER_BRAND as h,MATTE_FEATHER_MAX as S,MATTE_SHRINK_MAX as l,MEDIA_BRAND as _,ORIENT_KEYS as N,PART_BRAND as M,SPEECH_BRAND as g,isPerOrient as Y,notJson as G,partAnchorsProblem as C,speechSpeedProblem as O,transitionProblem as q}from"@allyhub/video-core";import{enginePiece as x,isItemPiece as j}from"./piece.js";export const partFor=r=>e=>{const{key:o,layers:n,...i}=e;if(typeof o!="string"||o==="")throw new Error("part: every part needs a key");if(i.title!==void 0&&(typeof i.title!="string"||i.title.trim()===""))throw new Error(`part ${o}: title is a name, not ${JSON.stringify(i.title)}`);for(const a of["before","after"]){const s=e.overlap?.[a];if(s!==void 0&&(!Number.isFinite(s)||s<0||s>10))throw new Error(`part ${o}: overlap.${a} is seconds from 0 to 10, not ${String(s)}`)}for(const[a,s]of(e.sounds??[]).entries()){if(!(typeof s=="object"&&(typeof s.at=="string"||typeof s.at=="number")&&(typeof s.sound=="string"||typeof s.sound=="object"&&"path"in s.sound)))throw new Error(`part ${o}: sounds[${String(a)}] is { at, sound, gainDb? }: at a word reference or seconds, sound a name or an audio file`);if(s.gainDb!==void 0&&(!Number.isFinite(s.gainDb)||s.gainDb<-60||s.gainDb>24))throw new Error(`part ${o}: sounds[${String(a)}].gainDb is dB from -60 to 24, not ${String(s.gainDb)}`);if(s.shape!==void 0){const f=R(s.shape);if(f!==void 0)throw new Error(`part ${o}: sounds[${String(a)}].shape: ${f}`)}}if(e.speechGainDb!==void 0&&(typeof e.speechGainDb!="number"||!Number.isFinite(e.speechGainDb)||e.speechGainDb<-40||e.speechGainDb>24))throw new Error(`part ${o}: speechGainDb is dB from -40 to 24, not ${String(e.speechGainDb)}`);if(e.anchors!==void 0){const a=C(e.anchors);if(a!==void 0)throw new Error(`part ${o}: anchors ${a}`)}if(e.transition!==void 0){const a=q(e.transition);if(a!==void 0)throw new Error(`part ${o}: transition ${a}`)}if(e.mic!==void 0){const a=T(e.mic);if(a!==void 0)throw new Error(`part ${o}: ${a}`)}if(e.post!==void 0){const a=e.post.filter;if(typeof a!="string"||a.trim()==="")throw new Error(`part ${o}: post: post is { filter: an ffmpeg filter chain }`)}const t=e.speech?.kind==="take"||e.speech?.kind==="say"?e.speech.tempo??1:1;if(t!==1&&(n??[]).some(a=>a[h]==="footage"&&a.file===void 0&&a.video===void 0))throw new Error(`part ${o}: footage() shows the part's take, which plays at speed ${String(t)}; a take's picture is drawn only at its own speed. Play the take at speed 1, or show other footage.`);return{[M]:!0,key:o,layers:n??[],...i,base:r.base}};function m(r,...e){const o={...r};for(const n of e)Reflect.deleteProperty(o,n);return o}function A(r,e){const o=i=>A(r,i);return{...{[g]:!0,...e},range(i,t){const a=m(e,"line","from","to");return o({...a,from:i,...t===void 0?{}:{to:t}})},saying(i){return o({...m(e,"from","to"),line:i})},edits(i){if(typeof i!="string"||!/\.json$/i.test(i))throw new Error(`take(…).edits(path): a JSON file relative to the file that names it, such as "./edits/host.json" (not ${JSON.stringify(i)})`);return o({...e,editsFile:i,editsBase:r.base})},speed(i){const t=O(i);if(t!==void 0)throw new Error(`take(…).speed(times): ${t}`);const a=m(e,"tempo");return o(i===1?a:{...a,tempo:i})},denoise(i=12){if(!Number.isFinite(i)||i<=0||i>97)throw new Error(`take(…).denoise(db): the noise reduction in dB, over 0 and up to 97 (not ${String(i)})`);return o({...e,denoiseDb:i})},roomTone(i){if(i===!1)return o({...e,room:!1});const t="take(…).roomTone(tone): false, or { from, to, match, gainDb, limitDb, fade }";if(typeof i!="object"||Array.isArray(i))throw new Error(`${t} (not ${JSON.stringify(i)})`);const{from:a,to:s,match:d,gainDb:f,limitDb:u,fade:c}=i,k=Object.keys(i).filter(P=>!["from","to","match","gainDb","limitDb","fade"].includes(P));if(k.length>0)throw new Error(`${t}: it has no ${k.join(", ")}`);if((a!==void 0||s!==void 0)&&(a===void 0||s===void 0||!Number.isFinite(a)||!Number.isFinite(s)||a<0||s-a<.05))throw new Error(`${t}: from and to are seconds of the file, both given, at least 0.05 s apart`);if(d!==void 0&&typeof d!="boolean")throw new Error(`${t}: match is true or false`);if(f!==void 0&&(!Number.isFinite(f)||f<-60||f>24))throw new Error(`${t}: gainDb is dB from -60 to 24, not ${String(f)}`);if(u!==void 0&&(!Number.isFinite(u)||u<0||u>60))throw new Error(`${t}: limitDb is dB from 0 to 60, not ${String(u)}`);if(c!==void 0&&(!Number.isFinite(c)||c<0||c>1))throw new Error(`${t}: fade is seconds from 0 to 1, not ${String(c)}`);return o({...e,room:{...a===void 0||s===void 0?{}:{from:a,to:s},...d===void 0?{}:{match:d},...f===void 0?{}:{gainDb:f},...u===void 0?{}:{limitDb:u},...c===void 0?{}:{fade:c}}})}}}export function takeFor(r){function e(o){return j(o)?J({kind:"video",piece:x(o)}):A(r,{kind:"take",file:o,...typeof o=="string"?{fileBase:r.base}:{}})}return e}const D=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0||typeof r=="string"&&r.trim()!=="";function J(r){return{[g]:!0,...r,range(e,o){for(const[n,i]of[["from",e],["to",o]])if(i!==void 0&&!D(i))throw new Error(`take(video).range(from, to): ${n} is seconds from 0, an anchor ("@turn") or a part's key (not ${JSON.stringify(i)}).`);if(typeof e=="number"&&typeof o=="number"&&!(o>e))throw new Error(`take(video).range(${String(e)}, ${String(o)}): to comes after from.`);return J({...r,from:e,...o===void 0?{}:{to:o}})}}}export function say(r,e={}){if(e.speed!==void 0){const n=O(e.speed);if(n!==void 0)throw new Error(`say(): ${n}`)}const o=e.params;if(o!==void 0){if(typeof o!="object"||o===null||Array.isArray(o))throw new Error("say() params is not an object: give the voice tool's extra input as { name: value }.");const n=G(o,"params");if(n!==void 0)throw new Error(`say() ${n} is not plain JSON: use strings, finite numbers, booleans, null, arrays and plain objects.`);for(const[i,t]of[["text","say()'s text"],["voiceId","the voice option"]])if(i in o)throw new Error(`say() params.${i} is not allowed: give it as ${t}.`)}return{[g]:!0,kind:"say",text:r,...e.voice===void 0?{}:{voice:e.voice},...e.tool===void 0?{}:{tool:e.tool},...o&&Object.keys(o).length>0?{params:structuredClone(o)}:{},...e.speed===void 0||e.speed===1?{}:{tempo:e.speed}}}const b=r=>typeof r=="string"||typeof r=="object"&&r!==null&&(_ in r||"sha256"in r),p=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0&&r<=1;function w(r,e){if(e===void 0)return;if(!(typeof e=="object"&&e!==null&&p(e.x)&&p(e.y)))throw new Error(`footage() ${r} ${JSON.stringify(e)} is not a point { x, y } with each from 0 to 1.`)}function F(r,e){if(e!==void 0&&(typeof e!="number"||!(e>0)||e>30))throw new Error(`footage() ${r} ${JSON.stringify(e)} is not seconds over 0 and up to 30.`)}function v(r,e){if(!(e===void 0||E.includes(e)))throw new Error(`footage() ${r} ${JSON.stringify(e)} is not one of ${E.map(o=>`"${o}"`).join(", ")}.`)}function H(r){if(!(r===void 0||r==="face"||r==="center")){if(typeof r=="object"&&r!==null&&"face"in r){const e=r;if(e.face!==!0)throw new Error(`footage() reframe ${JSON.stringify(r)}: face is true, as in { face: true, faceY: 0.4 }.`);if(e.faceY!==void 0&&!p(e.faceY))throw new Error(`footage() reframe faceY ${JSON.stringify(e.faceY)} is not from 0 (the crop's top) to 1 (its bottom); 0.4 is a little above the middle.`);return}if(typeof r=="object"&&r!==null&&"x"in r){w("reframe",r);return}throw new Error(`footage() reframe ${JSON.stringify(r)} is not "face", { face: true, faceY }, "center" or a point { x, y }.`)}}function K(r){if(r===void 0)return;if(typeof r!="object"||r===null||Array.isArray(r))throw new Error(`footage() background ${JSON.stringify(r)} is not an object such as { blur: 24 }, { dim: 0.4, desaturate: 1 }, { color: "#101418" } or { image: "./backdrop.jpg" }.`);const e=r,o=["blur","dim","desaturate","color","image","feather","shrink"],n=Object.keys(e).find(t=>!o.includes(t));if(n!==void 0)throw new Error(`footage() background has no option "${n}": it takes ${o.join(", ")}.`);const i=t=>typeof t=="number"&&Number.isFinite(t);if(e.blur!==void 0&&!(i(e.blur)&&e.blur>=0&&e.blur<=$))throw new Error(`footage() background blur ${JSON.stringify(e.blur)} is not a number from 0 to ${String($)}: the blur's standard deviation in px at 1080p (24 is a soft room).`);for(const t of["dim","desaturate"])if(e[t]!==void 0&&!p(e[t]))throw new Error(`footage() background ${t} ${JSON.stringify(e[t])} is not a number from 0 (as it is) to 1.`);if(e.color!==void 0&&(typeof e.color!="string"||e.color.trim()===""))throw new Error(`footage() background color ${JSON.stringify(e.color)} is not a CSS colour such as "#101418", "var(--ak-color-bg)" or "transparent".`);if(e.image!==void 0&&!b(e.image))throw new Error(`footage() background image ${JSON.stringify(e.image)} is not an image: a path relative to the piece, or an imported file.`);if(e.color!==void 0&&e.image!==void 0)throw new Error("footage() background takes a color or an image, not both.");if(e.color!==void 0){const t=["blur","dim","desaturate"].find(a=>e[a]!==void 0);if(t!==void 0)throw new Error(`footage() background ${t} does nothing with a color, which replaces the background: leave one out.`)}if(e.feather!==void 0&&!(i(e.feather)&&e.feather>=0&&e.feather<=S))throw new Error(`footage() background feather ${JSON.stringify(e.feather)} is not a number from 0 to ${String(S)}: the softness of the person's edge in px at 1080p (2 by default).`);if(e.shrink!==void 0&&!(i(e.shrink)&&Math.abs(e.shrink)<=l))throw new Error(`footage() background shrink ${JSON.stringify(e.shrink)} is not a number from −${String(l)} to ${String(l)}: how far the person's edge is pulled in, px at 1080p (4 by default).`)}function I(r){if(r===void 0||r==="full"||!Array.isArray(r))return;const e=r.length>0&&typeof r[0]=="object"?r.map(n=>n.box):[r],o=1e-6;for(const n of e){if(n==="full"||!Array.isArray(n)||n.length!==4)continue;const[i,t,a,s]=n;if(!([i,t,a,s].every(d=>typeof d=="number"&&Number.isFinite(d))&&(i??0)>=-o&&(t??0)>=-o&&(a??0)>0&&(s??0)>0&&(i??0)+(a??0)<=1+o&&(t??0)+(s??0)<=1+o))throw new Error(`footage() box ${JSON.stringify(n)} is not inside the frame: [x, y, width, height] are fractions of it, with x + width and y + height at most 1. A box is where the picture shows, so it cannot grow past the frame; for a slow push in use punchIn, eased in over its \`in\` seconds centred on \`at\` ({ at: 4, in: 8, until: 8, scale: 1.07, ease: "linear" } pushes in over the first 8 s), and for a slow pull out pullback ({ scale: 1.07, dur: 8 }).`)}}function y(r,e){if(e===void 0)return[];if(!Y(e))return[e];const o=N,n=Object.keys(e).filter(i=>!o.includes(i));if(n.length>0)throw new Error(`footage() ${r} has ${n.map(i=>JSON.stringify(i)).join(", ")}, which is not a frame shape: a per-shape ${r} is { ${N.join(", ")} } (each optional; an output takes the one for its orientation, else default).`);return Object.values(e).filter(i=>i!==void 0)}function X(r){const o=Array.isArray(r)?r:[],[n,i,t,a]=o;if(!(o.length===4&&typeof n=="number"&&typeof i=="number"&&typeof t=="number"&&typeof a=="number"&&[n,i,t,a].every(s=>Number.isFinite(s))&&n>=-1e-6&&i>=-1e-6&&t>0&&a>0&&n+t<=1+1e-6&&i+a<=1+1e-6))throw new Error(`footage() crop ${JSON.stringify(r)} is not a part of the source: [x, y, width, height] are fractions of it, with x + width and y + height at most 1.`)}function B(r){if(r===void 0)return;const e=r.scale;if(e!==void 0&&!(Number.isFinite(e)&&e>0&&e<=4))throw new Error(`footage() quality.scale ${String(e)} is outside (0, 4]: 0.5 is the fastest, 1 every pixel.`)}function L(r,e){const o=["crop","reframe","speaker","punchIn","sharpen","pullback","background","shape","radius"].filter(n=>e[n]!==void 0);if(o.length>0)throw new Error(`footage() of a video item takes at, until, dur, from, speed, box, fit, audio, gainDb, camera, cameras and quality; not ${o.join(", ")}.`);if(e.from!==void 0&&!D(e.from))throw new Error(`footage() from ${JSON.stringify(e.from)} is seconds from 0, an anchor ("@click") or a part's key of the video.`);if(e.speed!==void 0&&(!Number.isFinite(e.speed)||e.speed<=0||e.speed>16))throw new Error(`footage() speed ${String(e.speed)} is not a number over 0 and up to 16 (1 is normal speed).`);if(e.audio===!0&&e.speed!==void 0&&e.speed!==1)throw new Error("footage() of a video item plays its sound only at its own speed: speed 1, or audio off.");for(const n of y("box",e.box))I(n);return B(e.quality),{[h]:"footage",video:r,...e}}export const footageFor=r=>(e,o={})=>{if(j(e))return L(x(e),o);const n=e!==void 0&&!b(e)?e:o;if(typeof n.from=="string")throw new Error(`footage() from ${JSON.stringify(n.from)}: a file's from is seconds; a reference is a video item's.`);if(B(n.quality),n.speed!==void 0&&(!Number.isFinite(n.speed)||n.speed<=0||n.speed>16))throw new Error(`footage() speed ${String(n.speed)} is not a number over 0 and up to 16 (1 is normal speed).`);if(n.sharpen!==void 0&&(!Number.isFinite(n.sharpen)||n.sharpen<0||n.sharpen>1))throw new Error(`footage() sharpen ${String(n.sharpen)} is not a number from 0 to 1 (0.3 is gentle).`);if(H(n.reframe),n.speaker!==void 0&&(!Number.isInteger(n.speaker)||n.speaker<0))throw new Error(`footage() speaker ${String(n.speaker)} is not a face id (a whole number from 0, as allyhub frames --overlay labels them).`);for(const t of n.punchIn??[]){const a=typeof t=="object"?t.scale:/@(\d*\.\d+)$/.exec(String(t))?.[1]!==void 0?Number(/@(\d*\.\d+)$/.exec(String(t))?.[1]):void 0;if(a!==void 0&&(!(a>1)||a>3))throw new Error(`footage() punchIn scale ${String(a)} is not over 1 and up to 3 (1.12 is a gentle punch-in).`);typeof t=="object"&&(F("punchIn in",t.in),F("punchIn out",t.out),v("punchIn ease",t.ease),w("punchIn center",t.center))}if(typeof n.pullback=="object"){const{scale:t,dur:a}=n.pullback;if(t!==void 0&&(!(t>1)||t>3))throw new Error(`footage() pullback scale ${String(t)} is not over 1 and up to 3 (1.12 is a gentle pullback).`);if(a!==void 0&&(!(a>0)||a>10))throw new Error(`footage() pullback dur ${String(a)} is not seconds over 0 and up to 10.`);v("pullback ease",n.pullback.ease),w("pullback center",n.pullback.center)}if(n.shape!==void 0&&n.shape!=="rect"&&n.shape!=="circle")throw new Error(`footage() shape ${JSON.stringify(n.shape)} is not "rect" or "circle".`);if(n.radius!==void 0&&(typeof n.radius!="number"||!Number.isFinite(n.radius)||n.radius<0))throw new Error(`footage() radius ${JSON.stringify(n.radius)} is not a number from 0: the corners' radius, px at 1080p (24 is a soft card corner).`);if(n.radius!==void 0&&n.radius>0&&n.shape==="circle")throw new Error('footage(): radius rounds the corners of a rect; shape "circle" has none. Use one of them.');const i=y("box",n.box);for(const t of i)I(t);for(const t of y("crop",n.crop))X(t);if(K(n.background),i.some(t=>Array.isArray(t)&&t.length>0&&typeof t[0]=="object")&&(n.reframe!==void 0||n.punchIn?.length||n.pullback!==void 0&&n.pullback!==!1))throw new Error("footage(): a keyframed box cannot be reframed, punched in or pulled back; use a still box, or keyframes without reframe, punchIn and pullback.");return e!==void 0&&!b(e)?{[h]:"footage",...e,base:r.base}:{[h]:"footage",...e===void 0?{}:{file:e},...o,base:r.base}};
|
package/dist/piece.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{PIECE_BRAND as c,isPieceDefinition as a}from"@allyhub/video-core";import{shapeProblem as u,voiceProblem as m}from"@allyhub/audio";const d=e=>{throw new Error(e)},p="An item's video.ts exports one video: export default video({ format, parts: (ctx) => [ part(…), … ] }). A second video (a cut-down, another format) is an item of its own, which imports what it shares.";export function isItemPiece(e){return a(e)}export function enginePiece(e){return e}const h=["music","post"];export const videoFor=e=>t=>{if((typeof t=="function"||typeof t.parts!="function")&&d(p),t.mic!==void 0){const i=m(t.mic);if(i!==void 0)throw new Error(`video: ${i}`)}const s=t.music;if(s!==void 0&&typeof s!="string"&&!("path"in s)){const i=Object.fromEntries(["filter","eq","compress"].filter(o=>s[o]!==void 0).map(o=>[o,s[o]])),n=u(i,!0);if(n!==void 0)throw new Error(`video: music: ${n}`)}const f=t.written?.paths,r={};for(const i of h){const n=t[i];if(n===void 0)continue;const o=f?.[i];r[i]=[n,o?.[0]===n?o[1]:e.base]}return{...t,[c]:!0,kind:"video",written:{file:e.file,...Object.keys(r).length>0?{paths:r}:{}}}},definePiece=()=>d("definePiece is gone: an item's video.ts exports one video, export default video({ format, parts: (ctx) => [ … ] }), with what definePiece and its output had (id, format, matrix, music, mix…); a deck is slides.ts's export default presentation((prs) => { … }) from @allyhub/sdk/slides. Each other output is an item of its own, which imports what it shares."),paged=()=>d("paged() is gone: a deck is an item's slides.ts, export default presentation((prs) => { … }) from @allyhub/sdk/slides, with its slides in slides.yaml.");export function defineConfig(e){return e}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|