@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
|
@@ -43,7 +43,6 @@ export declare const ReferenceTextSchema: z.ZodObject<{
|
|
|
43
43
|
text: z.ZodString;
|
|
44
44
|
box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
45
45
|
height: z.ZodNumber;
|
|
46
|
-
conf: z.ZodNumber;
|
|
47
46
|
words: z.ZodNumber;
|
|
48
47
|
upper: z.ZodNumber;
|
|
49
48
|
start: z.ZodNumber;
|
|
@@ -276,6 +275,12 @@ export declare const ReferenceSchema: z.ZodObject<{
|
|
|
276
275
|
hint: z.ZodOptional<z.ZodString>;
|
|
277
276
|
instead: z.ZodString;
|
|
278
277
|
}, z.core.$strip>>;
|
|
278
|
+
textMissing: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
code: z.ZodOptional<z.ZodString>;
|
|
280
|
+
message: z.ZodString;
|
|
281
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
282
|
+
instead: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>;
|
|
279
284
|
shots: z.ZodObject<{
|
|
280
285
|
threshold: z.ZodNumber;
|
|
281
286
|
minShot: z.ZodNumber;
|
|
@@ -346,26 +351,16 @@ export declare const ReferenceSchema: z.ZodObject<{
|
|
|
346
351
|
}, z.core.$strip>;
|
|
347
352
|
ocr: z.ZodObject<{
|
|
348
353
|
engine: z.ZodString;
|
|
349
|
-
confidence: z.ZodObject<{
|
|
350
|
-
word: z.ZodNumber;
|
|
351
|
-
short: z.ZodNumber;
|
|
352
|
-
}, z.core.$strip>;
|
|
353
354
|
frames: z.ZodNumber;
|
|
355
|
+
unread: z.ZodOptional<z.ZodNumber>;
|
|
354
356
|
samePlace: z.ZodNumber;
|
|
355
357
|
saidWithin: z.ZodNumber;
|
|
356
|
-
low: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
-
t: z.ZodNumber;
|
|
358
|
-
text: z.ZodString;
|
|
359
|
-
conf: z.ZodNumber;
|
|
360
|
-
box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
361
|
-
}, z.core.$strip>>>;
|
|
362
358
|
}, z.core.$strip>;
|
|
363
359
|
text: z.ZodArray<z.ZodObject<{
|
|
364
360
|
id: z.ZodNumber;
|
|
365
361
|
text: z.ZodString;
|
|
366
362
|
box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
367
363
|
height: z.ZodNumber;
|
|
368
|
-
conf: z.ZodNumber;
|
|
369
364
|
words: z.ZodNumber;
|
|
370
365
|
upper: z.ZodNumber;
|
|
371
366
|
start: z.ZodNumber;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";import{SECONDS as n,SHA256 as
|
|
2
|
+
import{z as e}from"zod";import{SECONDS as n,SHA256 as s,dataFile as c}from"./file.js";const m=e.tuple([e.number(),e.number(),e.number(),e.number()]),r=e.object({t:n,score:e.number()}),t=e.number().nullable(),o=e.number().int().nonnegative();export const ReferenceSentenceSchema=e.object({index:o,start:n,end:n,words:e.tuple([e.number().int(),e.number().int()]),text:e.string(),punctuation:e.boolean(),pauseAfter:n.optional()}),ReferenceGapSchema=e.object({after:o,start:n,end:n,dur:n}),ReferenceBoundarySchema=e.object({t:n,cut:r.optional(),weak:r.optional(),pause:e.object({start:n,end:n,dur:n}).optional(),sentence:o.optional()}),ReferenceTextSchema=e.object({id:o,text:e.string(),box:m,height:e.number(),words:o,upper:e.number().min(0).max(1),start:n,end:n,spans:e.array(e.tuple([n,n])),seconds:n,seen:e.number().int().positive(),frames:e.number().min(0).max(1),spread:e.number().min(0).max(1),said:e.number().min(0).max(1)}),SectionNumbersSchema=e.object({start:n,end:n,dur:n,said:e.string(),words:o,wordsPerMinute:e.number().nonnegative(),cuts:e.array(n),shots:e.number().int().positive(),cutsPerMinute:e.number().nonnegative(),text:e.array(o),textSeconds:n}),ReferenceSegmentSchema=SectionNumbersSchema.extend({index:o,name:e.string(),sentences:e.tuple([e.number().int(),e.number().int()]).optional()}),ReferencePacingSchema=e.object({cutsPerMinute:e.number().nonnegative(),meanShot:n,medianShot:n,wordsPerMinute:e.number().nonnegative(),speakingRate:e.number().nonnegative(),timeToFirstWord:n.optional(),timeToFirstCut:n.optional(),textShare:e.number().min(0).max(1),speechShare:e.number().min(0).max(1),tempo:e.object({bpm:e.number().positive(),confidence:e.number().min(0),candidates:e.array(e.object({bpm:e.number(),r:e.number(),score:e.number()})).optional(),prior:e.number().optional()}).optional(),onsetsPerMinute:e.number().nonnegative()});const a=e.object({seconds:n,p10:e.number(),median:e.number(),p90:e.number()});export const ReferenceSoundSchema=e.object({gap:n,edge:n,voiced:e.number().min(0).max(100),whole:a,words:a.optional(),between:a.extend({voicedShare:e.number().min(0).max(1),onsetsPerMinute:e.number().nonnegative()}).optional(),floor:e.number()}),ReferencePictureSchema=e.object({params:e.record(e.string(),e.unknown()),frames:e.object({tone:o,color:o,motion:o}),luma:e.object({p1:t,p50:t,p99:t}),blackShare:t,noise:t,sharpness:t,saturation:t,warmth:t,motion:e.object({speed:e.object({p50:t,p90:t}),shake:e.object({p50:t,p90:t}),stillShare:t,runs:o}),sharpnessBySpeed:e.array(e.object({from:e.number(),to:t,frames:o,sharpness:t})),noiseByLuma:e.array(e.object({from:e.number(),to:e.number(),blocks:o,noise:t,median:t})),shake:e.array(e.object({start:n,end:n,rms:e.number(),peaks:e.array(e.object({hz:e.number(),share:e.number()})),flatness:e.number()}))});const i=e.object({frames:o,reach:e.array(e.object({drop:e.number(),hz:t})),rolloff95:t,rolloff99:t,steps:e.array(e.object({hz:e.number(),db:e.number()}))});export const ReferenceAudioSchema=e.object({loudness:e.object({integrated:t,range:t,truePeak:t}),recording:e.object({params:e.record(e.string(),e.unknown()),spectrum:e.array(e.object({hz:e.number(),db:e.number()})),dynamics:e.object({spread:e.number(),crest:e.number()})}).loose(),bandwidth:i.extend({params:e.record(e.string(),e.unknown())}),voice:i.optional()}),ReferenceSchema=e.object({version:e.literal(1),id:e.string(),source:e.object({file:e.string(),url:e.string().optional(),title:e.string().optional(),sha256:s}),analysedAt:e.string(),duration:n,width:e.number().int().positive(),height:e.number().int().positive(),fps:e.number().positive(),encoding:e.object({codec:e.string().optional(),bitrate:e.number().positive().optional(),audio:e.object({codec:e.string().optional(),profile:e.string().optional(),bitrate:e.number().positive().optional(),rate:e.number().positive().optional(),channels:e.number().int().positive().optional()}).optional()}).optional(),words:e.string().optional(),wordCount:o,asr:e.string().optional(),wordsMissing:e.object({code:e.string().optional(),message:e.string(),hint:e.string().optional(),instead:e.string()}).optional(),textMissing:e.object({code:e.string().optional(),message:e.string(),hint:e.string().optional(),instead:e.string()}).optional(),shots:e.object({threshold:e.number().min(0).max(1),minShot:e.number().nonnegative(),weakFloor:e.number().min(0).max(1),prominence:e.number().nonnegative(),cuts:e.array(r),weak:e.array(r),candidates:e.array(e.object({t:n,score:e.number(),source:e.enum(["jump","change"]),around:e.number(),passes:e.boolean()})).optional()}),speech:e.object({pause:n,sentences:e.array(ReferenceSentenceSchema),pauses:e.array(ReferenceGapSchema),gaps:e.array(ReferenceGapSchema).optional()}),boundaries:e.object({cutWithin:n,candidates:e.array(ReferenceBoundarySchema)}),ocr:e.object({engine:e.string(),frames:o,unread:o.optional(),samePlace:e.number(),saidWithin:n}),text:e.array(ReferenceTextSchema),pacing:ReferencePacingSchema,sound:ReferenceSoundSchema.optional(),segments:e.object({rule:e.string(),pause:n,cutWithin:n,minLength:n,list:e.array(ReferenceSegmentSchema).min(1)}),sheets:e.array(e.string()),picture:ReferencePictureSchema,audio:ReferenceAudioSchema.optional()}),REFERENCE_FILE="reference.json",INTERPRETATION_FILE="interpretation.json",InterpretedSectionSchema=e.strictObject({start:n,end:n,name:e.string().min(1).optional(),role:e.string().min(1).optional(),picture:e.string().optional(),onScreen:e.array(e.string()).optional(),notes:e.string().optional()}),InterpretationSchema=c({version:e.literal(1).default(1),summary:e.string().optional(),layout:e.string().optional(),hook:e.string().optional(),sections:e.array(InterpretedSectionSchema).min(1),captions:e.strictObject({lines:e.array(o).optional(),style:e.string().optional()}).optional(),watermarks:e.array(o).optional(),notes:e.string().optional(),labels:e.record(e.string(),e.union([e.string(),e.number(),e.boolean(),e.array(e.string())])).optional()});
|
|
@@ -31,6 +31,11 @@ export declare const ScriptSlideSchema: z.ZodObject<{
|
|
|
31
31
|
match: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
32
32
|
}, z.core.$strict>]>>;
|
|
33
33
|
}, z.core.$strict>;
|
|
34
|
+
/** An image's board in its script: the words of its layers by their names. */
|
|
35
|
+
export declare const ScriptBoardSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
|
|
38
|
+
}, z.core.$strict>;
|
|
34
39
|
export declare const ScriptFileSchema: z.ZodObject<{
|
|
35
40
|
title: z.ZodOptional<z.ZodString>;
|
|
36
41
|
text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
|
|
@@ -53,10 +58,10 @@ export declare const ScriptFileSchema: z.ZodObject<{
|
|
|
53
58
|
match: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
54
59
|
}, z.core.$strict>]>>;
|
|
55
60
|
}, z.core.$strict>>>;
|
|
61
|
+
boards: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
|
|
64
|
+
}, z.core.$strict>>>;
|
|
56
65
|
}, z.core.$strict>;
|
|
57
66
|
export type ScriptFile = z.infer<typeof ScriptFileSchema>;
|
|
58
|
-
/** The script of an item in a language. */
|
|
59
|
-
export declare const scriptFileFor: (dir: string, locale: string) => string;
|
|
60
|
-
/** The language a script file is in, or undefined for another file. */
|
|
61
|
-
export declare function scriptLocale(path: string): string | undefined;
|
|
62
67
|
//# sourceMappingURL=script.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{SpokenSchema as
|
|
2
|
+
import{z as t}from"zod";import{SpokenSchema as p,VariantsSchema as i}from"./messages.js";export const SCRIPT_NAME=/^[A-Za-z0-9_-]+$/u;const a=t.string().regex(SCRIPT_NAME,"A name is letters, digits, _ and -.");export const ScriptTextSchema=t.lazy(()=>t.union([t.string(),p,i,t.array(ScriptTextSchema),t.record(a,ScriptTextSchema)])),ScriptPartSchema=t.strictObject({id:a,say:t.union([t.string(),i]).optional(),screen:t.record(a,ScriptTextSchema).optional()}),ScriptSlideSchema=t.strictObject({id:a,text:t.record(a,ScriptTextSchema).optional(),alt:t.record(a,t.string()).optional(),notes:t.union([t.string(),i]).optional()}),ScriptBoardSchema=t.strictObject({id:a,text:t.record(a,ScriptTextSchema).optional()}),ScriptFileSchema=t.strictObject({title:t.string().optional(),text:t.record(a,ScriptTextSchema).optional(),parts:t.array(ScriptPartSchema).default([]),slides:t.array(ScriptSlideSchema).default([]),boards:t.array(ScriptBoardSchema).default([])}).superRefine((o,r)=>{const d=new Set;o.parts.forEach((e,s)=>{d.has(e.id)&&r.addIssue({code:"custom",path:["parts",s,"id"],message:`Two parts are "${e.id}".`}),d.add(e.id)});const c=new Set;o.slides.forEach((e,s)=>{c.has(e.id)&&r.addIssue({code:"custom",path:["slides",s,"id"],message:`Two slides are "${e.id}".`}),c.add(e.id)});const n=new Set;o.boards.forEach((e,s)=>{n.has(e.id)&&r.addIssue({code:"custom",path:["boards",s,"id"],message:`Two boards are "${e.id}".`}),n.add(e.id)})});
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/**
|
|
2
|
+
/** The name a new sheet's file is written as when none is asked (an import); a sheet's file may be named anything, the project's list naming it. */
|
|
3
3
|
export declare const SHEET_FILE = "sheet.yaml";
|
|
4
|
-
/** The folder beside it that holds its CSV files. */
|
|
5
|
-
export declare const SHEET_DATA = "data";
|
|
6
|
-
/** The code beside it that makes sheets. */
|
|
7
|
-
export declare const SHEET_CODE = "sheet.ts";
|
|
8
|
-
/** The folder beside it that holds the files its cells name. */
|
|
9
|
-
export declare const SHEET_FILES = "files";
|
|
10
4
|
/** What joins the choices of a cell, and the files of one, unless it says. */
|
|
11
5
|
export declare const SHEET_SEPARATOR = ", ";
|
|
12
6
|
/** How tall a `files` column draws a picture, in pixels, unless it says. */
|
|
@@ -1604,12 +1598,12 @@ export declare const SHEET_VALIDATIONS: readonly ["whole", "decimal", "list", "d
|
|
|
1604
1598
|
declare const Validation: z.ZodObject<{
|
|
1605
1599
|
range: z.ZodString;
|
|
1606
1600
|
type: z.ZodEnum<{
|
|
1607
|
-
list: "list";
|
|
1608
1601
|
date: "date";
|
|
1609
1602
|
custom: "custom";
|
|
1603
|
+
list: "list";
|
|
1604
|
+
time: "time";
|
|
1610
1605
|
whole: "whole";
|
|
1611
1606
|
decimal: "decimal";
|
|
1612
|
-
time: "time";
|
|
1613
1607
|
textLength: "textLength";
|
|
1614
1608
|
}>;
|
|
1615
1609
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3248,12 +3242,12 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3248
3242
|
validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3249
3243
|
range: z.ZodString;
|
|
3250
3244
|
type: z.ZodEnum<{
|
|
3251
|
-
list: "list";
|
|
3252
3245
|
date: "date";
|
|
3253
3246
|
custom: "custom";
|
|
3247
|
+
list: "list";
|
|
3248
|
+
time: "time";
|
|
3254
3249
|
whole: "whole";
|
|
3255
3250
|
decimal: "decimal";
|
|
3256
|
-
time: "time";
|
|
3257
3251
|
textLength: "textLength";
|
|
3258
3252
|
}>;
|
|
3259
3253
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3462,9 +3456,10 @@ declare const Check: z.ZodObject<{
|
|
|
3462
3456
|
formula: z.ZodString;
|
|
3463
3457
|
}, z.core.$strict>;
|
|
3464
3458
|
export type SheetCheck = z.output<typeof Check>;
|
|
3465
|
-
/** sheet.
|
|
3459
|
+
/** A sheet's file. */
|
|
3466
3460
|
export declare const SheetFileSchema: z.ZodObject<{
|
|
3467
3461
|
title: z.ZodOptional<z.ZodString>;
|
|
3462
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3468
3463
|
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
|
|
3469
3464
|
hidden_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3470
3465
|
sheets: z.ZodArray<z.ZodObject<{
|
|
@@ -4847,12 +4842,12 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4847
4842
|
validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4848
4843
|
range: z.ZodString;
|
|
4849
4844
|
type: z.ZodEnum<{
|
|
4850
|
-
list: "list";
|
|
4851
4845
|
date: "date";
|
|
4852
4846
|
custom: "custom";
|
|
4847
|
+
list: "list";
|
|
4848
|
+
time: "time";
|
|
4853
4849
|
whole: "whole";
|
|
4854
4850
|
decimal: "decimal";
|
|
4855
|
-
time: "time";
|
|
4856
4851
|
textLength: "textLength";
|
|
4857
4852
|
}>;
|
|
4858
4853
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5062,77 +5057,20 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
5062
5057
|
scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
|
|
5063
5058
|
}, z.core.$strict>;
|
|
5064
5059
|
export type SheetFile = z.output<typeof SheetFileSchema>;
|
|
5065
|
-
/** What
|
|
5066
|
-
export interface
|
|
5067
|
-
/**
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
};
|
|
5076
|
-
/** Numbers written into a formula. */
|
|
5077
|
-
"sheet-number": {
|
|
5078
|
-
sheet: string;
|
|
5079
|
-
/** The cell its formula is written for. */
|
|
5080
|
-
cell: string;
|
|
5081
|
-
/** How many cells hold this formula. */
|
|
5082
|
-
cells: number;
|
|
5083
|
-
formula: string;
|
|
5084
|
-
/** Each number, and the operator or function it is given to. */
|
|
5085
|
-
numbers: {
|
|
5086
|
-
value: number;
|
|
5087
|
-
in: string;
|
|
5088
|
-
}[];
|
|
5089
|
-
};
|
|
5090
|
-
/** A cell between neighbours that agree, unlike them. */
|
|
5091
|
-
"sheet-unlike": {
|
|
5092
|
-
sheet: string;
|
|
5093
|
-
cell: string;
|
|
5094
|
-
/** What it holds: its formula, or its value. */
|
|
5095
|
-
holds: string;
|
|
5096
|
-
/** What the neighbours hold, as the first of them reads. */
|
|
5097
|
-
neighbour: string;
|
|
5098
|
-
along: "column" | "row";
|
|
5099
|
-
/** How many cells together read alike either side. */
|
|
5100
|
-
run: number;
|
|
5101
|
-
};
|
|
5102
|
-
/** A cell of a calculated column set apart from its formula. */
|
|
5103
|
-
"sheet-exception": {
|
|
5104
|
-
sheet: string;
|
|
5105
|
-
table: string;
|
|
5106
|
-
column: string;
|
|
5107
|
-
cell: string;
|
|
5108
|
-
text: string;
|
|
5109
|
-
};
|
|
5110
|
-
/** An input nothing reads. */
|
|
5111
|
-
"sheet-unused": {
|
|
5112
|
-
/** A defined name, a typed cell, or a table's column (with --all). */
|
|
5113
|
-
what: "name" | "cell" | "column";
|
|
5114
|
-
name: string;
|
|
5115
|
-
sheet?: string;
|
|
5116
|
-
value?: string;
|
|
5117
|
-
};
|
|
5118
|
-
/** A cell that breaks its data validation. */
|
|
5119
|
-
"sheet-invalid": {
|
|
5120
|
-
sheet: string;
|
|
5121
|
-
cell: string;
|
|
5122
|
-
value: string | number | boolean | null;
|
|
5123
|
-
rule: string;
|
|
5124
|
-
range: string;
|
|
5125
|
-
};
|
|
5126
|
-
/** A number sheet.ts typed that neither its data nor its code holds: what it computed, where a formula should. */
|
|
5127
|
-
"sheet-typed": {
|
|
5060
|
+
/** What a sheet's code makes, beside what its file holds: sheets as sheet.yaml would hold them, with their tables' rows as CSV text, and names. */
|
|
5061
|
+
export interface GeneratedSheets {
|
|
5062
|
+
/** The sheets it makes, in the order it made them, as sheet.yaml would hold them. */
|
|
5063
|
+
sheets: SheetWorksheet[];
|
|
5064
|
+
/** Names it defines. */
|
|
5065
|
+
names?: NonNullable<SheetFile["names"]>;
|
|
5066
|
+
/** Its tables' and blocks' rows, as CSV text, by the paths its sheets name. */
|
|
5067
|
+
csv: Record<string, string>;
|
|
5068
|
+
/** Numbers it typed that neither its data nor its code holds. */
|
|
5069
|
+
typed?: {
|
|
5128
5070
|
sheet: string;
|
|
5129
5071
|
cell: string;
|
|
5130
5072
|
value: number;
|
|
5131
|
-
};
|
|
5132
|
-
/** A sheet sheet.ts makes and sheet.yaml holds too: sheet.yaml's stands. */
|
|
5133
|
-
"sheet-ordinary": {
|
|
5134
|
-
sheet: string;
|
|
5135
|
-
};
|
|
5073
|
+
}[];
|
|
5136
5074
|
}
|
|
5137
5075
|
export {};
|
|
5138
5076
|
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as
|
|
2
|
+
import{z as o}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const t=o.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const l=o.strictObject({style:o.enum(SHEET_BORDERS),color:t.optional()}),m={bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.union([o.boolean(),o.enum(SHEET_UNDERLINES)]).optional(),strike:o.boolean().optional(),font:o.string().min(1).optional(),size:o.number().positive().optional(),color:t.optional(),fill:o.union([t,o.strictObject({pattern:o.enum(SHEET_PATTERNS),color:t.optional(),background:t.optional()})]).optional(),align:o.enum(SHEET_ALIGNS).optional(),valign:o.enum(SHEET_VALIGNS).optional(),wrap:o.boolean().optional(),shrink:o.boolean().optional(),indent:o.number().int().min(0).optional(),rotation:o.number().int().min(-90).max(180).optional(),border:o.strictObject({left:l.optional(),right:l.optional(),top:l.optional(),bottom:l.optional()}).optional()},a={...m,format:o.string().min(1).optional()},r=o.union([o.number(),o.boolean(),o.string(),o.null()]),O=o.strictObject({value:r.optional(),formula:o.string().min(1).optional(),name:o.string().min(1).optional(),...a}).refine(c=>c.value===void 0||c.formula===void 0,{message:"A cell has a value or a formula, not both."}),E=o.union([r,O]),f=o.strictObject({range:o.string().min(1),...a}),b=o.union([o.literal(!0),o.strictObject({separator:o.string().min(1).optional(),height:o.number().positive().optional()})]),j=o.strictObject({formula:o.string().min(1).optional(),...a,width:o.number().positive().optional(),files:b.optional()}),g=o.strictObject({values:o.array(o.string()).optional(),blanks:o.boolean().optional()}),x=o.strictObject({name:o.string().min(1),at:o.string().min(1),rows:o.string().min(1),key:o.string().min(1).optional(),style:o.string().min(1).optional(),columns:o.record(o.string(),j).optional(),filter:o.union([o.literal(!1),o.strictObject({columns:o.record(o.string(),g)})]).optional()}),S=o.strictObject({at:o.string().min(1),rows:o.string().min(1)}),T=o.strictObject({width:o.number().positive().optional(),hidden:o.boolean().optional(),level:o.number().int().min(1).max(7).optional(),...a,files:b.optional()}),_=o.strictObject({height:o.number().positive().optional(),hidden:o.boolean().optional(),level:o.number().int().min(1).max(7).optional(),...a}),v=o.strictObject({range:o.string().min(1),columns:o.record(o.string(),g).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const p=o.union([o.number(),o.string()]),i={bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:t.optional(),fill:t.optional(),border:m.border},n={range:o.string().min(1),stop:o.boolean().optional()},s=o.strictObject({at:o.enum(["min","max","num","percent","percentile","formula"]),value:p.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const w=o.discriminatedUnion("type",[o.strictObject({...n,...i,type:o.literal("cellIs"),operator:o.enum(SHEET_OPERATORS),formula:o.array(p).min(1).max(2)}),o.strictObject({...n,...i,type:o.literal("containsText"),operator:o.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:o.string()}),o.strictObject({...n,...i,type:o.enum(["duplicateValues","uniqueValues"])}),o.strictObject({...n,...i,type:o.literal("top10"),rank:o.number().int().positive(),percent:o.boolean().optional(),bottom:o.boolean().optional()}),o.strictObject({...n,...i,type:o.literal("aboveAverage"),below:o.boolean().optional(),equal:o.boolean().optional()}),o.strictObject({...n,...i,type:o.literal("expression"),formula:o.string().min(1)}),o.strictObject({...n,type:o.literal("dataBar"),color:t,min:s.optional(),max:s.optional(),show:o.boolean().optional()}),o.strictObject({...n,type:o.literal("colorScale"),stops:o.array(o.strictObject({...s.shape,color:t})).min(2).max(3)}),o.strictObject({...n,type:o.literal("iconSet"),icons:o.enum(SHEET_ICONS),stops:o.array(s).min(3).max(5).optional(),reverse:o.boolean().optional(),show:o.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const A=o.strictObject({range:o.string().min(1),type:o.enum(SHEET_VALIDATIONS),operator:o.enum(SHEET_OPERATORS).optional(),formula:o.array(p).max(2).optional(),values:o.array(o.string()).optional(),multiple:o.boolean().optional(),separator:o.string().min(1).optional(),blank:o.boolean().optional(),dropdown:o.boolean().optional(),prompt:o.strictObject({title:o.string().optional(),message:o.string().optional(),show:o.boolean().optional()}).optional(),error:o.strictObject({style:o.enum(["stop","warning","information"]).optional(),title:o.string().optional(),message:o.string().optional(),show:o.boolean().optional()}).optional()}),k=o.strictObject({values:o.string().min(1),x:o.string().min(1).optional(),name:o.string().optional(),color:t.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()}),u=o.strictObject({title:o.string().optional(),min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional()}),H=o.strictObject({type:o.enum(y),at:o.string().min(1),x:o.number().min(0).optional(),y:o.number().min(0).optional(),width:o.number().positive().optional(),height:o.number().positive().optional(),title:o.string().optional(),categories:o.string().min(1).optional(),series:o.array(k).min(1),legend:o.enum(h).optional(),labels:e.shape.labels,gap_width:e.shape.gap_width,overlap:e.shape.overlap,vary_by_categories:e.shape.vary_by_categories,hole_size:e.shape.hole_size,value_axis:u.optional(),category_axis:u.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:t.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=o.strictObject({left:o.string().optional(),center:o.string().optional(),right:o.string().optional()}),R=o.strictObject({area:o.string().min(1).optional(),title_rows:o.string().regex(/^\d+:\d+$/u).optional(),title_cols:o.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:o.enum(["portrait","landscape"]).optional(),paper:o.enum(Object.keys(SHEET_PAPERS)).optional(),fit:o.strictObject({width:o.number().int().min(0).optional(),height:o.number().int().min(0).optional()}).optional(),scale:o.number().int().min(10).max(400).optional(),breaks:o.strictObject({rows:o.array(o.number().int().min(2)).optional(),cols:o.array(o.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:o.strictObject({left:o.number().min(0).optional(),right:o.number().min(0).optional(),top:o.number().min(0).optional(),bottom:o.number().min(0).optional(),header:o.number().min(0).optional(),footer:o.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),C=o.strictObject({file:o.string().min(1),at:o.string().min(1),x:o.number().min(0).optional(),y:o.number().min(0).optional(),width:o.number().positive().optional(),height:o.number().positive().optional()}),D=o.union([o.string().min(1),o.strictObject({text:o.string().min(1),author:o.string().optional()})]),G=o.strictObject({name:o.string().min(1),hidden:o.boolean().optional(),gridlines:o.boolean().optional(),tab:t.optional(),freeze:o.string().min(1).optional(),tables:o.array(x).optional(),columns:o.record(o.string(),T).optional(),rows:o.record(o.string(),_).optional(),cells:o.record(o.string(),E).optional(),format:o.array(f).optional(),merges:o.array(o.string().min(1)).optional(),blocks:o.array(S).optional(),filter:v.optional(),conditional:o.array(w).optional(),validations:o.array(A).optional(),charts:o.array(H).optional(),pictures:o.array(C).optional(),links:o.record(o.string(),o.string().min(1)).optional(),notes:o.record(o.string(),D).optional(),print:R.optional(),protect:o.boolean().optional(),names:o.record(o.string(),r).optional(),hidden_names:o.array(o.string().min(1)).optional()}),z=o.strictObject({name:o.string().min(1),formula:o.string().min(1)});export const SheetFileSchema=o.strictObject({title:o.string().optional(),code:o.string().min(1).optional(),names:o.record(o.string(),r).optional(),hidden_names:o.array(o.string().min(1)).optional(),sheets:o.array(G).min(1),checks:o.array(z).optional(),scenarios:o.record(o.string(),o.record(o.string(),r)).optional()});
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** A deck's presentation file, in the item's folder beside slides.ts. */
|
|
3
|
-
export declare const SLIDES_FILE = "slides.yaml";
|
|
4
|
-
/** A deck's presentation file, for an item's folder. */
|
|
5
|
-
export declare const slidesFileFor: (dir: string) => string;
|
|
6
2
|
/** The theme's colours, as PresentationML names them (`a:clrScheme`). */
|
|
7
3
|
export declare const THEME_COLORS: readonly ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"];
|
|
8
4
|
export type ThemeColor = (typeof THEME_COLORS)[number];
|
|
@@ -11,7 +7,10 @@ export declare const TEXT_ALIGNS: readonly ["l", "ctr", "r", "just"];
|
|
|
11
7
|
export type TextAlign = (typeof TEXT_ALIGNS)[number];
|
|
12
8
|
/**
|
|
13
9
|
* The preset shapes (`a:prstGeom/@prst`): all of ECMA-376's ST_ShapeType,
|
|
14
|
-
* drawn from its preset shape definitions as
|
|
10
|
+
* in the schema's order, drawn from its preset shape definitions as
|
|
11
|
+
* PowerPoint draws them. The OOXML library generates the same list from
|
|
12
|
+
* the ISO schemas (@allyhub/ooxml's SHAPE_TYPES; its tests hold the two
|
|
13
|
+
* the same).
|
|
15
14
|
*/
|
|
16
15
|
export declare const SHAPE_GEOMETRIES: readonly ["line", "lineInv", "triangle", "rtTriangle", "rect", "diamond", "parallelogram", "trapezoid", "nonIsoscelesTrapezoid", "pentagon", "hexagon", "heptagon", "octagon", "decagon", "dodecagon", "star4", "star5", "star6", "star7", "star8", "star10", "star12", "star16", "star24", "star32", "roundRect", "round1Rect", "round2SameRect", "round2DiagRect", "snipRoundRect", "snip1Rect", "snip2SameRect", "snip2DiagRect", "plaque", "ellipse", "teardrop", "homePlate", "chevron", "pieWedge", "pie", "blockArc", "donut", "noSmoking", "rightArrow", "leftArrow", "upArrow", "downArrow", "stripedRightArrow", "notchedRightArrow", "bentUpArrow", "leftRightArrow", "upDownArrow", "leftUpArrow", "leftRightUpArrow", "quadArrow", "leftArrowCallout", "rightArrowCallout", "upArrowCallout", "downArrowCallout", "leftRightArrowCallout", "upDownArrowCallout", "quadArrowCallout", "bentArrow", "uturnArrow", "circularArrow", "leftCircularArrow", "leftRightCircularArrow", "curvedRightArrow", "curvedLeftArrow", "curvedUpArrow", "curvedDownArrow", "swooshArrow", "cube", "can", "lightningBolt", "heart", "sun", "moon", "smileyFace", "irregularSeal1", "irregularSeal2", "foldedCorner", "bevel", "frame", "halfFrame", "corner", "diagStripe", "chord", "arc", "leftBracket", "rightBracket", "leftBrace", "rightBrace", "bracketPair", "bracePair", "straightConnector1", "bentConnector2", "bentConnector3", "bentConnector4", "bentConnector5", "curvedConnector2", "curvedConnector3", "curvedConnector4", "curvedConnector5", "callout1", "callout2", "callout3", "accentCallout1", "accentCallout2", "accentCallout3", "borderCallout1", "borderCallout2", "borderCallout3", "accentBorderCallout1", "accentBorderCallout2", "accentBorderCallout3", "wedgeRectCallout", "wedgeRoundRectCallout", "wedgeEllipseCallout", "cloudCallout", "cloud", "ribbon", "ribbon2", "ellipseRibbon", "ellipseRibbon2", "leftRightRibbon", "verticalScroll", "horizontalScroll", "wave", "doubleWave", "plus", "flowChartProcess", "flowChartDecision", "flowChartInputOutput", "flowChartPredefinedProcess", "flowChartInternalStorage", "flowChartDocument", "flowChartMultidocument", "flowChartTerminator", "flowChartPreparation", "flowChartManualInput", "flowChartManualOperation", "flowChartConnector", "flowChartPunchedCard", "flowChartPunchedTape", "flowChartSummingJunction", "flowChartOr", "flowChartCollate", "flowChartSort", "flowChartExtract", "flowChartMerge", "flowChartOfflineStorage", "flowChartOnlineStorage", "flowChartMagneticTape", "flowChartMagneticDisk", "flowChartMagneticDrum", "flowChartDisplay", "flowChartDelay", "flowChartAlternateProcess", "flowChartOffpageConnector", "actionButtonBlank", "actionButtonHome", "actionButtonHelp", "actionButtonInformation", "actionButtonForwardNext", "actionButtonBackPrevious", "actionButtonEnd", "actionButtonBeginning", "actionButtonReturn", "actionButtonDocument", "actionButtonSound", "actionButtonMovie", "gear6", "gear9", "funnel", "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "cornerTabs", "squareTabs", "plaqueTabs", "chartX", "chartStar", "chartPlus"];
|
|
17
16
|
export type ShapeGeometry = (typeof SHAPE_GEOMETRIES)[number];
|
|
@@ -50,11 +49,11 @@ export type Color = ThemeColor | {
|
|
|
50
49
|
} | {
|
|
51
50
|
rgb: string;
|
|
52
51
|
};
|
|
53
|
-
/** A colour as slides
|
|
52
|
+
/** A colour as a slides file and a script's `<span color="…">` write it; undefined when it is none. */
|
|
54
53
|
export declare function colorOfFile(s: string): Color | undefined;
|
|
55
|
-
/** A colour as slides
|
|
54
|
+
/** A colour as a slides file and a script's `<span color="…">` write it. */
|
|
56
55
|
export declare function colorFile(c: Color): string;
|
|
57
|
-
/** A colour slides
|
|
56
|
+
/** A colour a slides file names: the theme's (`accent1`), lighter or darker (`accent1 lighter 40%`), or `#RRGGBB` (an imported deck's own). */
|
|
58
57
|
export declare const ColorFileSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
59
58
|
dk1: "dk1";
|
|
60
59
|
lt1: "lt1";
|
|
@@ -230,6 +229,20 @@ export declare const ChartSchema: z.ZodObject<{
|
|
|
230
229
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
231
230
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
232
231
|
vary_by_categories: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
233
|
+
dk1: "dk1";
|
|
234
|
+
lt1: "lt1";
|
|
235
|
+
dk2: "dk2";
|
|
236
|
+
lt2: "lt2";
|
|
237
|
+
accent1: "accent1";
|
|
238
|
+
accent2: "accent2";
|
|
239
|
+
accent3: "accent3";
|
|
240
|
+
accent4: "accent4";
|
|
241
|
+
accent5: "accent5";
|
|
242
|
+
accent6: "accent6";
|
|
243
|
+
hlink: "hlink";
|
|
244
|
+
folHlink: "folHlink";
|
|
245
|
+
}>, z.ZodString, z.ZodString]>>>;
|
|
233
246
|
hole_size: z.ZodOptional<z.ZodNumber>;
|
|
234
247
|
value_axis: z.ZodOptional<z.ZodObject<{
|
|
235
248
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -422,6 +435,16 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
422
435
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
423
436
|
flip_h: z.ZodOptional<z.ZodLiteral<true>>;
|
|
424
437
|
flip_v: z.ZodOptional<z.ZodLiteral<true>>;
|
|
438
|
+
connect: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
begin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
440
|
+
shape: z.ZodString;
|
|
441
|
+
site: z.ZodInt;
|
|
442
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
443
|
+
end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
444
|
+
shape: z.ZodString;
|
|
445
|
+
site: z.ZodInt;
|
|
446
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
447
|
+
}, z.core.$strict>>;
|
|
425
448
|
z: z.ZodOptional<z.ZodInt>;
|
|
426
449
|
fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
|
|
427
450
|
dk1: "dk1";
|
|
@@ -935,6 +958,20 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
935
958
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
936
959
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
937
960
|
vary_by_categories: z.ZodOptional<z.ZodBoolean>;
|
|
961
|
+
category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
962
|
+
dk1: "dk1";
|
|
963
|
+
lt1: "lt1";
|
|
964
|
+
dk2: "dk2";
|
|
965
|
+
lt2: "lt2";
|
|
966
|
+
accent1: "accent1";
|
|
967
|
+
accent2: "accent2";
|
|
968
|
+
accent3: "accent3";
|
|
969
|
+
accent4: "accent4";
|
|
970
|
+
accent5: "accent5";
|
|
971
|
+
accent6: "accent6";
|
|
972
|
+
hlink: "hlink";
|
|
973
|
+
folHlink: "folHlink";
|
|
974
|
+
}>, z.ZodString, z.ZodString]>>>;
|
|
938
975
|
hole_size: z.ZodOptional<z.ZodNumber>;
|
|
939
976
|
value_axis: z.ZodOptional<z.ZodObject<{
|
|
940
977
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1031,6 +1068,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
1031
1068
|
locked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1032
1069
|
component: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
1033
1070
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<PropValue, unknown, z.core.$ZodTypeInternals<PropValue, unknown>>>>;
|
|
1071
|
+
dur: z.ZodOptional<z.ZodNumber>;
|
|
1034
1072
|
}, z.core.$strict>;
|
|
1035
1073
|
export type ShapeFile = z.infer<typeof ShapeSchema>;
|
|
1036
1074
|
/** The kinds a shape of the slide's own is, by the field that makes it. */
|
|
@@ -1104,6 +1142,16 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
1104
1142
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1105
1143
|
flip_h: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1106
1144
|
flip_v: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1145
|
+
connect: z.ZodOptional<z.ZodObject<{
|
|
1146
|
+
begin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1147
|
+
shape: z.ZodString;
|
|
1148
|
+
site: z.ZodInt;
|
|
1149
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
1150
|
+
end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1151
|
+
shape: z.ZodString;
|
|
1152
|
+
site: z.ZodInt;
|
|
1153
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
1154
|
+
}, z.core.$strict>>;
|
|
1107
1155
|
z: z.ZodOptional<z.ZodInt>;
|
|
1108
1156
|
fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
|
|
1109
1157
|
dk1: "dk1";
|
|
@@ -1617,6 +1665,20 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
1617
1665
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
1618
1666
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
1619
1667
|
vary_by_categories: z.ZodOptional<z.ZodBoolean>;
|
|
1668
|
+
category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1669
|
+
dk1: "dk1";
|
|
1670
|
+
lt1: "lt1";
|
|
1671
|
+
dk2: "dk2";
|
|
1672
|
+
lt2: "lt2";
|
|
1673
|
+
accent1: "accent1";
|
|
1674
|
+
accent2: "accent2";
|
|
1675
|
+
accent3: "accent3";
|
|
1676
|
+
accent4: "accent4";
|
|
1677
|
+
accent5: "accent5";
|
|
1678
|
+
accent6: "accent6";
|
|
1679
|
+
hlink: "hlink";
|
|
1680
|
+
folHlink: "folHlink";
|
|
1681
|
+
}>, z.ZodString, z.ZodString]>>>;
|
|
1620
1682
|
hole_size: z.ZodOptional<z.ZodNumber>;
|
|
1621
1683
|
value_axis: z.ZodOptional<z.ZodObject<{
|
|
1622
1684
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1713,6 +1775,7 @@ export declare const SlideSchema: z.ZodObject<{
|
|
|
1713
1775
|
locked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1714
1776
|
component: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
1715
1777
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<PropValue, unknown, z.core.$ZodTypeInternals<PropValue, unknown>>>>;
|
|
1778
|
+
dur: z.ZodOptional<z.ZodNumber>;
|
|
1716
1779
|
}, z.core.$strict>>>;
|
|
1717
1780
|
animations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1718
1781
|
shape: z.ZodString;
|
|
@@ -1818,6 +1881,16 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
1818
1881
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1819
1882
|
flip_h: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1820
1883
|
flip_v: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1884
|
+
connect: z.ZodOptional<z.ZodObject<{
|
|
1885
|
+
begin: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1886
|
+
shape: z.ZodString;
|
|
1887
|
+
site: z.ZodInt;
|
|
1888
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
1889
|
+
end: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1890
|
+
shape: z.ZodString;
|
|
1891
|
+
site: z.ZodInt;
|
|
1892
|
+
}, z.core.$strict>, z.ZodLiteral<"none">]>>;
|
|
1893
|
+
}, z.core.$strict>>;
|
|
1821
1894
|
z: z.ZodOptional<z.ZodInt>;
|
|
1822
1895
|
fill: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodEnum<{
|
|
1823
1896
|
dk1: "dk1";
|
|
@@ -2331,6 +2404,20 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
2331
2404
|
gap_width: z.ZodOptional<z.ZodNumber>;
|
|
2332
2405
|
overlap: z.ZodOptional<z.ZodNumber>;
|
|
2333
2406
|
vary_by_categories: z.ZodOptional<z.ZodBoolean>;
|
|
2407
|
+
category_colors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2408
|
+
dk1: "dk1";
|
|
2409
|
+
lt1: "lt1";
|
|
2410
|
+
dk2: "dk2";
|
|
2411
|
+
lt2: "lt2";
|
|
2412
|
+
accent1: "accent1";
|
|
2413
|
+
accent2: "accent2";
|
|
2414
|
+
accent3: "accent3";
|
|
2415
|
+
accent4: "accent4";
|
|
2416
|
+
accent5: "accent5";
|
|
2417
|
+
accent6: "accent6";
|
|
2418
|
+
hlink: "hlink";
|
|
2419
|
+
folHlink: "folHlink";
|
|
2420
|
+
}>, z.ZodString, z.ZodString]>>>;
|
|
2334
2421
|
hole_size: z.ZodOptional<z.ZodNumber>;
|
|
2335
2422
|
value_axis: z.ZodOptional<z.ZodObject<{
|
|
2336
2423
|
min: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2427,6 +2514,7 @@ export declare const SlidesFileSchema: z.ZodObject<{
|
|
|
2427
2514
|
locked: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2428
2515
|
component: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
2429
2516
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<PropValue, unknown, z.core.$ZodTypeInternals<PropValue, unknown>>>>;
|
|
2517
|
+
dur: z.ZodOptional<z.ZodNumber>;
|
|
2430
2518
|
}, z.core.$strict>>>;
|
|
2431
2519
|
animations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2432
2520
|
shape: z.ZodString;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as o}from"zod";import{SHAPE_TYPES as y}from"@allyhub/ooxml/enums";import{SCRIPT_NAME as h}from"./script.js";export const SLIDES_FILE="slides.yaml",slidesFileFor=t=>`${t}/${SLIDES_FILE}`;const s=o.string().regex(h,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=y,ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()});const g=new RegExp(`^(${THEME_COLORS.join("|")}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),f=/^#[0-9A-Fa-f]{6}$/u,x=t=>THEME_COLORS.includes(t);export function colorOfFile(t){if(x(t))return t;if(f.test(t))return{rgb:t.toUpperCase()};const n=g.exec(t),[,r="",e,i=""]=n??[],l=Math.round(Number(i)*1e3);if(!(!n||!x(r)||l<=0||l>1e5))return{theme_color:r,brightness:(e==="lighter"?l:-l)/1e5}}export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.rgb;const n=Math.round(Math.abs(t.brightness)*1e5)/1e3;return n===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(n)}%`}const u=`A colour is one of the theme's (${THEME_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), or #RRGGBB.`;export const ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(g,u),o.string().regex(f,u)]).refine(t=>colorOfFile(t)!==void 0,u),NUMBERINGS=["arabicPeriod","arabicParenR","alphaLcPeriod","alphaUcPeriod","romanLcPeriod","romanUcPeriod"],TEXT_ANCHORS=["t","ctr","b"],TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional(),line_spacing:o.number().positive().max(10).optional(),space_before:o.number().min(0).max(1584).optional(),space_after:o.number().min(0).max(1584).optional(),anchor:o.enum(TEXT_ANCHORS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional()});const E=o.strictObject({left:o.number().min(0).max(1).optional(),top:o.number().min(0).max(1).optional(),right:o.number().min(0).max(1).optional(),bottom:o.number().min(0).max(1).optional()}),d=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(d),o.record(o.string(),d)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],SHEET_CHART_TYPES=[...CHART_TYPES,"scatter","scatter-lines","scatter-smooth"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const S=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(SHEET_CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]).optional(),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),x:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:S.optional(),category_axis:S.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()});const p=o.number().min(0).max(1);export const GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),stops:o.array(o.strictObject({at:p,color:ColorFileSchema,transparency:p.optional()})).min(2).max(10)}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(n=>n!==void 0).length===1,{message:"A background is a fill, a gradient or a picture: one of them."}),ShadowSchema=o.strictObject({color:ColorFileSchema.optional(),blur:o.number().min(0).max(100).optional(),distance:o.number().min(0).max(200).optional(),angle:o.number().min(0).max(360).optional(),transparency:p.optional()}),ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:p.optional(),gradient:GradientSchema.optional(),shadow:ShadowSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:E.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),adjustments:o.array(o.number()).max(8).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:s.optional(),locked:o.literal(!0).optional(),component:o.union([s,o.string().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,"A component is a name slides.ts registers, or a module's path and export: ../ui.ts#Dialog.")]).optional(),props:o.record(o.string(),d).optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:s,layout:o.string().min(1).optional(),generate:s.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional(),advance_after:o.number().min(0).max(86400).optional(),background:BackgroundSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,n)=>{const r=new Set;t.slides.forEach((e,i)=>{r.has(e.id)&&n.addIssue({code:"custom",path:["slides",i,"id"],message:`Two slides are "${e.id}".`}),r.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",i],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&n.addIssue({code:"custom",path:["slides",i,"hidden"],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(const[a,_]of Object.entries(e.shapes??{})){const b=SHAPE_KINDS.filter(c=>_[c]!==void 0);b.length>1&&n.addIssue({code:"custom",path:["slides",i,"shapes",a],message:`Shape ${a} is one kind of shape, not ${b.join(" and ")}.`});const m=a.includes("/")?a.split("/"):[a];(!(m.length<=2&&m.every(c=>h.test(c)))||m.length===2&&e.generate===void 0)&&n.addIssue({code:"custom",path:["slides",i,"shapes",a],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
|
|
2
|
+
import{z as o}from"zod";import{SCRIPT_NAME as g}from"./script.js";const s=o.string().regex(g,"A name is letters, digits, _ and -.");export const THEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],TEXT_ALIGNS=["l","ctr","r","just"],SHAPE_GEOMETRIES=["line","lineInv","triangle","rtTriangle","rect","diamond","parallelogram","trapezoid","nonIsoscelesTrapezoid","pentagon","hexagon","heptagon","octagon","decagon","dodecagon","star4","star5","star6","star7","star8","star10","star12","star16","star24","star32","roundRect","round1Rect","round2SameRect","round2DiagRect","snipRoundRect","snip1Rect","snip2SameRect","snip2DiagRect","plaque","ellipse","teardrop","homePlate","chevron","pieWedge","pie","blockArc","donut","noSmoking","rightArrow","leftArrow","upArrow","downArrow","stripedRightArrow","notchedRightArrow","bentUpArrow","leftRightArrow","upDownArrow","leftUpArrow","leftRightUpArrow","quadArrow","leftArrowCallout","rightArrowCallout","upArrowCallout","downArrowCallout","leftRightArrowCallout","upDownArrowCallout","quadArrowCallout","bentArrow","uturnArrow","circularArrow","leftCircularArrow","leftRightCircularArrow","curvedRightArrow","curvedLeftArrow","curvedUpArrow","curvedDownArrow","swooshArrow","cube","can","lightningBolt","heart","sun","moon","smileyFace","irregularSeal1","irregularSeal2","foldedCorner","bevel","frame","halfFrame","corner","diagStripe","chord","arc","leftBracket","rightBracket","leftBrace","rightBrace","bracketPair","bracePair","straightConnector1","bentConnector2","bentConnector3","bentConnector4","bentConnector5","curvedConnector2","curvedConnector3","curvedConnector4","curvedConnector5","callout1","callout2","callout3","accentCallout1","accentCallout2","accentCallout3","borderCallout1","borderCallout2","borderCallout3","accentBorderCallout1","accentBorderCallout2","accentBorderCallout3","wedgeRectCallout","wedgeRoundRectCallout","wedgeEllipseCallout","cloudCallout","cloud","ribbon","ribbon2","ellipseRibbon","ellipseRibbon2","leftRightRibbon","verticalScroll","horizontalScroll","wave","doubleWave","plus","flowChartProcess","flowChartDecision","flowChartInputOutput","flowChartPredefinedProcess","flowChartInternalStorage","flowChartDocument","flowChartMultidocument","flowChartTerminator","flowChartPreparation","flowChartManualInput","flowChartManualOperation","flowChartConnector","flowChartPunchedCard","flowChartPunchedTape","flowChartSummingJunction","flowChartOr","flowChartCollate","flowChartSort","flowChartExtract","flowChartMerge","flowChartOfflineStorage","flowChartOnlineStorage","flowChartMagneticTape","flowChartMagneticDisk","flowChartMagneticDrum","flowChartDisplay","flowChartDelay","flowChartAlternateProcess","flowChartOffpageConnector","actionButtonBlank","actionButtonHome","actionButtonHelp","actionButtonInformation","actionButtonForwardNext","actionButtonBackPrevious","actionButtonEnd","actionButtonBeginning","actionButtonReturn","actionButtonDocument","actionButtonSound","actionButtonMovie","gear6","gear9","funnel","mathPlus","mathMinus","mathMultiply","mathDivide","mathEqual","mathNotEqual","cornerTabs","squareTabs","plaqueTabs","chartX","chartStar","chartPlus"],ANIMATION_EFFECTS=["appear","fade","wipe","fly-in","zoom","disappear","fade-out","wipe-out","fly-out","zoom-out","pulse","path"],ANIMATION_STARTS=["on-click","with-previous","after-previous"],ANIMATION_DIRECTIONS=["from-bottom","from-top","from-left","from-right"],LINE_DASHES=["solid","sysDash","sysDot","dash","dashDot","lgDash","lgDashDot","lgDashDotDot"],LINE_ENDS=["none","triangle","arrow","stealth","diamond","oval"],FrameSchema=o.strictObject({x:o.number(),y:o.number(),w:o.number().nonnegative(),h:o.number().nonnegative()});const b=new RegExp(`^(${THEME_COLORS.join("|")}) (lighter|darker) (100(?:\\.0{1,3})?|[1-9]?\\d(?:\\.\\d{1,3})?)%$`,"u"),f=/^#[0-9A-Fa-f]{6}$/u,w=t=>THEME_COLORS.includes(t);export function colorOfFile(t){if(w(t))return t;if(f.test(t))return{rgb:t.toUpperCase()};const n=b.exec(t),[,i="",e,a=""]=n??[],l=Math.round(Number(a)*1e3);if(!(!n||!w(i)||l<=0||l>1e5))return{theme_color:i,brightness:(e==="lighter"?l:-l)/1e5}}export function colorFile(t){if(typeof t=="string")return t;if("rgb"in t)return t.rgb;const n=Math.round(Math.abs(t.brightness)*1e5)/1e3;return n===0?t.theme_color:`${t.theme_color} ${t.brightness>0?"lighter":"darker"} ${String(n)}%`}const m=`A colour is one of the theme's (${THEME_COLORS.join(", ")}), one of them lighter or darker by a share over 0 up to 100% ("accent1 lighter 40%", "dk1 darker 25%"), or #RRGGBB.`;export const ColorFileSchema=o.union([o.enum(THEME_COLORS),o.string().regex(b,m),o.string().regex(f,m)]).refine(t=>colorOfFile(t)!==void 0,m),NUMBERINGS=["arabicPeriod","arabicParenR","alphaLcPeriod","alphaUcPeriod","romanLcPeriod","romanUcPeriod"],TEXT_ANCHORS=["t","ctr","b"],TextStyleSchema=o.strictObject({size:o.number().positive().max(4e3).optional(),bold:o.boolean().optional(),italic:o.boolean().optional(),underline:o.boolean().optional(),strike:o.boolean().optional(),color:ColorFileSchema.optional(),font:o.string().min(1).optional(),align:o.enum(TEXT_ALIGNS).optional(),line_spacing:o.number().positive().max(10).optional(),space_before:o.number().min(0).max(1584).optional(),space_after:o.number().min(0).max(1584).optional(),anchor:o.enum(TEXT_ANCHORS).optional(),bullet:o.union([o.literal(!1),o.string().min(1).max(2)]).optional(),numbered:o.enum(NUMBERINGS).optional()});const A=o.strictObject({left:o.number().lt(1).optional(),top:o.number().lt(1).optional(),right:o.number().lt(1).optional(),bottom:o.number().lt(1).optional()}).refine(t=>(t.left??0)+(t.right??0)<1,{message:"left and right together cut the whole picture away"}).refine(t=>(t.top??0)+(t.bottom??0)<1,{message:"top and bottom together cut the whole picture away"}),d=o.lazy(()=>o.union([o.string(),o.number(),o.boolean(),o.null(),o.array(d),o.record(o.string(),d)]));export const CHART_TYPES=["column-clustered","column-stacked","column-stacked-100","bar-clustered","bar-stacked","bar-stacked-100","line","line-markers","area","area-stacked","area-stacked-100","pie","doughnut"],SHEET_CHART_TYPES=[...CHART_TYPES,"scatter","scatter-lines","scatter-smooth"],CHART_LEGEND_POSITIONS=["bottom","top","left","right"];const C=o.strictObject({min:o.number().optional(),max:o.number().optional(),major:o.number().positive().optional(),gridlines:o.boolean().optional(),visible:o.boolean().optional(),format:o.string().min(1).optional(),reverse:o.boolean().optional(),gridline_color:ColorFileSchema.optional(),line_color:ColorFileSchema.optional()});export const ChartSchema=o.strictObject({type:o.enum(SHEET_CHART_TYPES),data:o.string().min(1).optional(),categories:o.union([o.string().min(1),o.array(o.string())]).optional(),series:o.array(o.union([o.string().min(1),o.strictObject({name:o.string().min(1),values:o.array(o.number().nullable()).optional(),x:o.array(o.number().nullable()).optional(),color:ColorFileSchema.optional(),format:o.string().min(1).optional(),smooth:o.boolean().optional(),line_width:o.number().positive().optional(),marker_size:o.number().int().min(2).max(72).optional()})])).min(1),legend:o.enum(CHART_LEGEND_POSITIONS).optional(),labels:o.union([o.boolean(),o.strictObject({value:o.boolean().optional(),percentage:o.boolean().optional(),category:o.boolean().optional(),series:o.boolean().optional(),format:o.string().min(1).optional(),position:o.enum(["outEnd","inEnd","ctr","inBase","t","b","l","r","bestFit"]).optional(),size:o.number().positive().optional(),color:ColorFileSchema.optional()})]).optional(),gap_width:o.number().min(0).max(500).optional(),overlap:o.number().min(-100).max(100).optional(),vary_by_categories:o.boolean().optional(),category_colors:o.array(ColorFileSchema).min(1).optional(),hole_size:o.number().min(10).max(90).optional(),value_axis:C.optional(),category_axis:C.optional(),size:o.number().positive().optional(),title_size:o.number().positive().optional(),color:ColorFileSchema.optional()});const c=o.number().min(0).max(1);export const GradientSchema=o.strictObject({angle:o.number().min(0).max(360).optional(),stops:o.array(o.strictObject({at:c,color:ColorFileSchema,transparency:c.optional()})).min(2).max(10)}),BackgroundSchema=o.strictObject({fill:ColorFileSchema.optional(),gradient:GradientSchema.optional(),picture:o.string().min(1).optional()}).refine(t=>[t.fill,t.gradient,t.picture].filter(n=>n!==void 0).length===1,{message:"A background is a fill, a gradient or a picture: one of them."}),ShadowSchema=o.strictObject({color:ColorFileSchema.optional(),blur:o.number().min(0).max(100).optional(),distance:o.number().min(0).max(200).optional(),angle:o.number().min(0).max(360).optional(),transparency:c.optional()});const S=o.union([o.strictObject({shape:o.string().min(1),site:o.int().min(0)}),o.literal("none")]);export const ShapeSchema=o.strictObject({frame:FrameSchema.optional(),rotation:o.number().min(0).lt(360).optional(),flip_h:o.literal(!0).optional(),flip_v:o.literal(!0).optional(),connect:o.strictObject({begin:S.optional(),end:S.optional()}).optional(),z:o.int().optional(),fill:o.union([ColorFileSchema,o.literal("none")]).optional(),fill_transparency:c.optional(),gradient:GradientSchema.optional(),shadow:ShadowSchema.optional(),line:o.union([ColorFileSchema,o.literal("none")]).optional(),line_width:o.number().positive().max(1584).optional(),line_dash:o.enum(LINE_DASHES).optional(),line_begin:o.enum(LINE_ENDS).optional(),line_end:o.enum(LINE_ENDS).optional(),text:TextStyleSchema.optional(),textbox:o.literal(!0).optional(),picture:o.string().min(1).optional(),crop:A.optional(),movie:o.string().min(1).optional(),poster:o.number().min(0).optional(),geometry:o.enum(SHAPE_GEOMETRIES).optional(),adjustments:o.array(o.number()).max(8).optional(),path:o.strictObject({w:o.number().positive(),h:o.number().positive(),d:o.string().min(1)}).optional(),table:o.strictObject({columns:o.array(o.number().positive()).min(1),rows:o.array(o.strictObject({height:o.number().positive(),fill:ColorFileSchema.optional(),text:TextStyleSchema.optional(),line:ColorFileSchema.optional()})).min(1)}).optional(),chart:ChartSchema.optional(),group:s.optional(),locked:o.literal(!0).optional(),component:o.union([s,o.string().regex(/^[^#\s]+\.[cm]?[jt]sx?(?:#[A-Za-z_$][\w$]*)?$/u,"A component is a name the deck's module registers, or a module's path and export: ../ui.ts#Dialog.")]).optional(),props:o.record(o.string(),d).optional(),dur:o.number().positive().optional()}),SHAPE_KINDS=["textbox","picture","movie","geometry","path","table","chart","component"],SLIDE_TRANSITIONS=["fade","push","wipe","morph"],TransitionSchema=o.strictObject({type:o.enum(SLIDE_TRANSITIONS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),duration:o.number().positive().optional()}),AnimationSchema=o.strictObject({shape:o.string().min(1),paragraph:o.int().min(0).optional(),effect:o.enum(ANIMATION_EFFECTS),direction:o.enum(ANIMATION_DIRECTIONS).optional(),start:o.enum(ANIMATION_STARTS).optional(),duration:o.number().min(0).optional(),delay:o.number().min(0).optional(),path:o.string().min(1).optional()}),SlideSchema=o.strictObject({id:s,layout:o.string().min(1).optional(),generate:s.optional(),hidden:o.union([o.literal(!0),o.array(o.string())]).optional(),shapes:o.record(o.string().min(1),ShapeSchema).optional(),animations:o.array(AnimationSchema).optional(),transition:TransitionSchema.optional(),advance_after:o.number().min(0).max(86400).optional(),background:BackgroundSchema.optional()}),SlidesFileSchema=o.strictObject({slides:o.array(SlideSchema).default([])}).superRefine((t,n)=>{const i=new Set;t.slides.forEach((e,a)=>{i.has(e.id)&&n.addIssue({code:"custom",path:["slides",a,"id"],message:`Two slides are "${e.id}".`}),i.add(e.id),(e.layout===void 0?0:1)+(e.generate===void 0?0:1)!==1&&n.addIssue({code:"custom",path:["slides",a],message:`Slide ${e.id} has a layout or a generator: one of them.`}),e.hidden!==void 0&&e.generate===void 0&&e.hidden!==!0&&n.addIssue({code:"custom",path:["slides",a,"hidden"],message:`Slide ${e.id} is hidden (true); a list of ids is a generated block's.`});for(const[r,x]of Object.entries(e.shapes??{})){const h=SHAPE_KINDS.filter(u=>x[u]!==void 0);h.length>1&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:`Shape ${r} is one kind of shape, not ${h.join(" and ")}.`});const p=r.includes("/")?r.split("/"):[r];(!(p.length<=2&&p.every(u=>g.test(u)))||p.length===2&&e.generate===void 0)&&n.addIssue({code:"custom",path:["slides",a,"shapes",r],message:"A shape's name is letters, digits, _ and -; <slide>/<shape> only in a generated block."})}})});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/**
|
|
2
|
+
/** The name a new website's file is written as; a website's file may be named anything, the project's list naming it. Its folder is the web project. */
|
|
3
3
|
export declare const WEBSITE_FILE = "website.json";
|
|
4
4
|
export declare const WebsiteFileSchema: z.ZodObject<{
|
|
5
5
|
$schema: z.ZodOptional<z.ZodString>;
|
|
6
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6
7
|
dev: z.ZodOptional<z.ZodString>;
|
|
7
8
|
build: z.ZodOptional<z.ZodString>;
|
|
8
9
|
output: z.ZodString;
|