@allyhub/sdk 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/define.d.ts +4 -0
- package/dist/define.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +69 -18
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +847 -116
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +501 -38
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
- package/dist/node_modules/@allyhub-next/ooxml/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +79 -5
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +42 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +59 -39
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +27 -13
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +179 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +2 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +17 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +21 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/dist/slides.d.ts +3 -1
- package/dist/slides.js +1 -1
- package/docs/README.md +1 -0
- package/docs/contract.md +1 -1
- package/docs/defaults.md +2 -2
- package/docs/layers.md +1 -1
- package/docs/project.md +3 -1
- package/docs/sheets.md +7 -6
- package/docs/slides.md +16 -12
- package/docs/sound.md +1 -1
- package/docs/websites.md +57 -0
- package/package.json +3 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +0 -2
|
@@ -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 r}from"zod";import{CommentsFileSchema as m}from"./data/comments.js";import{ConfigSchema as n}from"./data/config.js";import{DeckCodeSchema as c}from"./data/deck-code.js";import{EditsFileSchema as h}from"./data/edits.js";import{ElementsFileSchema as l}from"./data/elements.js";import{GenFileSchema as d}from"./data/gen.js";import{MessagesFileSchema as f}from"./data/messages.js";import{InterpretationSchema as p}from"./data/reference.js";import{ScriptFileSchema as u}from"./data/script.js";import{SHEET_FILE as b,SheetFileSchema as g}from"./data/sheet.js";import{SlidesFileSchema as S}from"./data/slides.js";import{WEBSITE_FILE as w,WebsiteFileSchema as F}from"./data/website.js";import{WordsFileSchema as j}from"./data/words.js";export const DATA_FILES={words:{schema:j,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:h,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:l,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:d,files:["**/*.gen.json"],about:"How a media file was made, and where it came from."},comments:{schema:m,files:["**/comments.json"],about:"What was said about an item, in threads."},script:{schema:u,files:["**/script.*.yaml"],about:"An item's words in one language."},messages:{schema:f,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:g,files:[`**/${b}`],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:S,files:["**/slides.yaml"],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:F,files:[`**/${w}`],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:p,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:c,files:[],about:"What a deck's slides.ts and its generators made, as data: what its code host sends the editor."},config:{schema:n,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...r.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}function o(e){if(e.code!=="invalid_union")return e.message;const t=e.errors.flatMap(s=>s.slice(0,1).map(a=>{const i=a.path.map(String).join(".");return i===""?o(a):`${i}: ${o(a)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join("; ")}`}export function readDataFile(e,t){const s=DATA_FILES[e].schema.safeParse(t);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(a=>({path:a.path.map(String).join("."),message:o(a)}))}}
|
|
@@ -16,6 +16,8 @@ export interface StrictOptions {
|
|
|
16
16
|
key?: (name: string) => unknown;
|
|
17
17
|
/** `x["A1"] = v`; false: it is not one. */
|
|
18
18
|
setKey?: (name: string, value: unknown) => boolean;
|
|
19
|
+
/** What a value set on it or passed to its methods is taken as (a Length as its number). */
|
|
20
|
+
value?: (v: unknown) => unknown;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* The object behind a proxy that refuses what it does not hold. A class's
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export function publicNames(
|
|
2
|
+
export function publicNames(s){const o=new Set;for(let e=s;e!==null&&e!==Object.prototype;e=Object.getPrototypeOf(e))for(const t of Object.getOwnPropertyNames(e))t!=="constructor"&&!t.startsWith("_")&&o.add(t);return[...o].sort()}const d=new Set(["then","toJSON","constructor","length"]),y=(s,o)=>{for(let e=s;e!==null;e=Object.getPrototypeOf(e)){const t=Object.getOwnPropertyDescriptor(e,o);if(t)return t.set!==void 0||"value"in t}return!1};function g(s,o){let e=Array.from({length:o.length+1},(t,n)=>n);for(let t=1;t<=s.length;t++){const n=[t];for(let c=1;c<=o.length;c++)n[c]=Math.min((e[c]??0)+1,(n[c-1]??0)+1,(e[c-1]??0)+(s[t-1]===o[c-1]?0:1));e=n}return e[o.length]??0}export function closest(s,o){const e=Math.max(2,Math.floor(s.length/3));return o.map(t=>[t,g(s.toLowerCase(),t.toLowerCase())]).filter(([,t])=>t<=e).sort((t,n)=>t[1]-n[1]).slice(0,3).map(([t])=>t)}export class NotHeld extends Error{constructor(o,e,t,n){const c=closest(e,t);super(`${o} has no ${e} here.`+(c.length>0?` Did you mean ${c.join(" or ")}?`:"")+` It holds: ${t.join(", ")}. ${n}`),this.name="NotHeld"}}export function strict(s,o,e,t={}){const n=(u,r)=>{const f=Object.getPrototypeOf(u);return new NotHeld(o,r,publicNames(f===Object.prototype?u:f),e)},c=t.value??(u=>u);return new Proxy(s,{get(u,r,f){if(typeof r=="symbol"||r in u||d.has(r)){const i=Reflect.get(u,r,f),p=t.value;return p===void 0||typeof i!="function"||r==="constructor"?i:(...h)=>Reflect.apply(i,f,h.map(p))}if(t.index&&/^(0|[1-9]\d*)$/u.test(r)){const i=t.index(Number(r));if(i===void 0)throw new RangeError(`${o}[${r}]: there is none.`);return i}const l=t.key?.(r);if(l!==void 0)return l;throw n(u,r)},set(u,r,f,l){if(t.setIndex&&typeof r=="string"&&/^(0|[1-9]\d*)$/u.test(r))return t.setIndex(Number(r),c(f)),!0;if(typeof r=="symbol"||r.startsWith("_")||y(u,r))return Reflect.set(u,r,c(f),l);if(t.setKey?.(r,c(f))===!0)return!0;throw n(u,r)}})}export function strictEnum(s,o,e){return new Proxy(o,{get(t,n){if(typeof n=="symbol"||Object.hasOwn(t,n)||d.has(n))return Reflect.get(t,n);throw new NotHeld(s,n,Object.keys(t),e)}})}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub-next/formats",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"./schemas/*": "./schemas/*"
|
|
11
11
|
},
|
|
12
|
+
"sideEffects": false,
|
|
12
13
|
"private": true,
|
|
13
14
|
"license": "SEE LICENSE IN LICENSE.md"
|
|
14
15
|
}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
AllyHub Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software (the AllyHub command-line tool, its SDK, runtime and the
|
|
6
|
+
packages they depend on) is proprietary. It is not open source.
|
|
7
|
+
|
|
8
|
+
1. Permitted use. You may install and run the software, unmodified, to make,
|
|
9
|
+
check, preview and render videos and decks, including for commercial
|
|
10
|
+
purposes. What you make with it is yours.
|
|
11
|
+
|
|
12
|
+
2. Restrictions. Except as this license permits or applicable law requires,
|
|
13
|
+
you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
|
|
14
|
+
publish or otherwise distribute the software, create derivative works of
|
|
15
|
+
it, or reverse engineer, decompile or disassemble it.
|
|
16
|
+
|
|
17
|
+
3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
|
|
18
|
+
video) are separate services governed by AllyHub's terms of service.
|
|
19
|
+
|
|
20
|
+
4. Trademarks. This license grants no right to use the name "AllyHub" or its
|
|
21
|
+
logos.
|
|
22
|
+
|
|
23
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
24
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
26
|
+
ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
28
|
+
|
|
29
|
+
6. Third-party code. Parts of the software are adapted from HyperFrames,
|
|
30
|
+
licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
|
|
31
|
+
remain under that license, reproduced below, and nothing in this license
|
|
32
|
+
limits your rights under it.
|
|
33
|
+
|
|
34
|
+
7. Starter components. The starter components in the "components" folder,
|
|
35
|
+
which "allyhub add" copies into your workspace, are licensed under the MIT
|
|
36
|
+
License (see components/LICENSE): once copied, you may change, use and
|
|
37
|
+
share them freely.
|
|
38
|
+
|
|
39
|
+
--------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
Apache License
|
|
42
|
+
Version 2.0, January 2004
|
|
43
|
+
http://www.apache.org/licenses/
|
|
44
|
+
|
|
45
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
46
|
+
|
|
47
|
+
1. Definitions.
|
|
48
|
+
|
|
49
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
50
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
51
|
+
|
|
52
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
53
|
+
the copyright owner that is granting the License.
|
|
54
|
+
|
|
55
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
56
|
+
other entities that control, are controlled by, or are under common
|
|
57
|
+
control with that entity. For the purposes of this definition,
|
|
58
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
59
|
+
direction or management of such entity, whether by contract or
|
|
60
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
61
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
62
|
+
|
|
63
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
64
|
+
exercising permissions granted by this License.
|
|
65
|
+
|
|
66
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
67
|
+
including but not limited to software source code, documentation
|
|
68
|
+
source, and configuration files.
|
|
69
|
+
|
|
70
|
+
"Object" form shall mean any form resulting from mechanical
|
|
71
|
+
transformation or translation of a Source form, including but
|
|
72
|
+
not limited to compiled object code, generated documentation,
|
|
73
|
+
and conversions to other media types.
|
|
74
|
+
|
|
75
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
76
|
+
Object form, made available under the License, as indicated by a
|
|
77
|
+
copyright notice that is included in or attached to the work
|
|
78
|
+
(an example is provided in the Appendix below).
|
|
79
|
+
|
|
80
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
81
|
+
form, that is based on (or derived from) the Work and for which the
|
|
82
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
83
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
84
|
+
of this License, Derivative Works shall not include works that remain
|
|
85
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
86
|
+
the Work and Derivative Works thereof.
|
|
87
|
+
|
|
88
|
+
"Contribution" shall mean any work of authorship, including
|
|
89
|
+
the original version of the Work and any modifications or additions
|
|
90
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
91
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
92
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
93
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
94
|
+
means any form of electronic, verbal, or written communication sent
|
|
95
|
+
to the Licensor or its representatives, including but not limited to
|
|
96
|
+
communication on electronic mailing lists, source code control systems,
|
|
97
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
98
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
99
|
+
excluding communication that is conspicuously marked or otherwise
|
|
100
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
101
|
+
|
|
102
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
103
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
104
|
+
subsequently incorporated within the Work.
|
|
105
|
+
|
|
106
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
107
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
108
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
109
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
110
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
111
|
+
Work and such Derivative Works in Source or Object form.
|
|
112
|
+
|
|
113
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
114
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
115
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
116
|
+
(except as stated in this section) patent license to make, have made,
|
|
117
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
118
|
+
where such license applies only to those patent claims licensable
|
|
119
|
+
by such Contributor that are necessarily infringed by their
|
|
120
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
121
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
122
|
+
institute patent litigation against any entity (including a
|
|
123
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
124
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
125
|
+
or contributory patent infringement, then any patent licenses
|
|
126
|
+
granted to You under this License for that Work shall terminate
|
|
127
|
+
as of the date such litigation is filed.
|
|
128
|
+
|
|
129
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
130
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
131
|
+
modifications, and in Source or Object form, provided that You
|
|
132
|
+
meet the following conditions:
|
|
133
|
+
|
|
134
|
+
(a) You must give any other recipients of the Work or
|
|
135
|
+
Derivative Works a copy of this License; and
|
|
136
|
+
|
|
137
|
+
(b) You must cause any modified files to carry prominent notices
|
|
138
|
+
stating that You changed the files; and
|
|
139
|
+
|
|
140
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
141
|
+
that You distribute, all copyright, patent, trademark, and
|
|
142
|
+
attribution notices from the Source form of the Work,
|
|
143
|
+
excluding those notices that do not pertain to any part of
|
|
144
|
+
the Derivative Works; and
|
|
145
|
+
|
|
146
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
147
|
+
distribution, then any Derivative Works that You distribute must
|
|
148
|
+
include a readable copy of the attribution notices contained
|
|
149
|
+
within such NOTICE file, excluding those notices that do not
|
|
150
|
+
pertain to any part of the Derivative Works, in at least one
|
|
151
|
+
of the following places: within a NOTICE text file distributed
|
|
152
|
+
as part of the Derivative Works; within the Source form or
|
|
153
|
+
documentation, if provided along with the Derivative Works; or,
|
|
154
|
+
within a display generated by the Derivative Works, if and
|
|
155
|
+
wherever such third-party notices normally appear. The contents
|
|
156
|
+
of the NOTICE file are for informational purposes only and
|
|
157
|
+
do not modify the License. You may add Your own attribution
|
|
158
|
+
notices within Derivative Works that You distribute, alongside
|
|
159
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
160
|
+
that such additional attribution notices cannot be construed
|
|
161
|
+
as modifying the License.
|
|
162
|
+
|
|
163
|
+
You may add Your own copyright statement to Your modifications and
|
|
164
|
+
may provide additional or different license terms and conditions
|
|
165
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
166
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
167
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
168
|
+
the conditions stated in this License.
|
|
169
|
+
|
|
170
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
171
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
172
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
173
|
+
this License, without any additional terms or conditions.
|
|
174
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
175
|
+
the terms of any separate license agreement you may have executed
|
|
176
|
+
with Licensor regarding such Contributions.
|
|
177
|
+
|
|
178
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
179
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
180
|
+
except as required for reasonable and customary use in describing the
|
|
181
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
182
|
+
|
|
183
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
184
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
185
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
187
|
+
implied, including, without limitation, any warranties or conditions
|
|
188
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
189
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
190
|
+
appropriateness of using or redistributing the Work and assume any
|
|
191
|
+
risks associated with Your exercise of permissions under this License.
|
|
192
|
+
|
|
193
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
194
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
195
|
+
unless required by applicable law (such as deliberate and grossly
|
|
196
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
197
|
+
liable to You for damages, including any direct, indirect, special,
|
|
198
|
+
incidental, or consequential damages of any character arising as a
|
|
199
|
+
result of this License or out of the use or inability to use the
|
|
200
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
201
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
202
|
+
other commercial damages or losses), even if such Contributor
|
|
203
|
+
has been advised of the possibility of such damages.
|
|
204
|
+
|
|
205
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
206
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
207
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
208
|
+
or other liability obligations and/or rights consistent with this
|
|
209
|
+
License. However, in accepting such obligations, You may act only
|
|
210
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
211
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
212
|
+
defend, and hold each Contributor harmless for any liability
|
|
213
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
214
|
+
of your accepting any such warranty or additional liability.
|
|
215
|
+
|
|
216
|
+
END OF TERMS AND CONDITIONS
|
|
217
|
+
|
|
218
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
219
|
+
|
|
220
|
+
To apply the Apache License to your work, attach the following
|
|
221
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
222
|
+
replaced with your own identifying information. (Don't include
|
|
223
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
224
|
+
comment syntax for the file format. We also recommend that a
|
|
225
|
+
file or class name and description of purpose be included on the
|
|
226
|
+
same "printed page" as the copyright notice for easier
|
|
227
|
+
identification within third-party archives.
|
|
228
|
+
|
|
229
|
+
Copyright [yyyy] [name of copyright owner]
|
|
230
|
+
|
|
231
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
232
|
+
you may not use this file except in compliance with the License.
|
|
233
|
+
You may obtain a copy of the License at
|
|
234
|
+
|
|
235
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
236
|
+
|
|
237
|
+
Unless required by applicable law or agreed to in writing, software
|
|
238
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
239
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
240
|
+
See the License for the specific language governing permissions and
|
|
241
|
+
limitations under the License.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** `#RRGGBB` as red, green and blue, each 0 to 1. */
|
|
2
|
+
export declare const rgbOfHex: (h: string) => [number, number, number];
|
|
3
|
+
/** Red, green and blue, each 0 to 1, as `#RRGGBB`. */
|
|
4
|
+
export declare const hexOfRgb: ([r, g, b]: readonly number[]) => string;
|
|
5
|
+
/** RGB (0 to 1) as HSL: hue in degrees, saturation and luminance 0 to 1. */
|
|
6
|
+
export declare function toHsl([r, g, b]: readonly number[]): [number, number, number];
|
|
7
|
+
/** HSL (hue in degrees, saturation and luminance 0 to 1) as RGB, each 0 to 1. */
|
|
8
|
+
export declare function fromHsl([h, s, l]: readonly number[]): [
|
|
9
|
+
number,
|
|
10
|
+
number,
|
|
11
|
+
number
|
|
12
|
+
];
|
|
13
|
+
/** A brightness's transforms, in 100 000ths as the file writes them: `lumOff` only when lighter. */
|
|
14
|
+
export declare function lumOf(brightness: number): {
|
|
15
|
+
lumMod: number;
|
|
16
|
+
lumOff?: number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The brightness a colour's luminance transforms are, in 100 000ths and in
|
|
20
|
+
* the file's order; undefined when they are not the picker's pattern (a
|
|
21
|
+
* `lumMod` under 100 % alone, or a `lumMod` and a `lumOff` that make 100 %).
|
|
22
|
+
*/
|
|
23
|
+
export declare function brightnessOfLum(lum: readonly {
|
|
24
|
+
name: "lumMod" | "lumOff";
|
|
25
|
+
val: number;
|
|
26
|
+
}[]): number | undefined;
|
|
27
|
+
/** A luminance (0 to 1) under a brightness, as its transforms make it. */
|
|
28
|
+
export declare function luminanceAt(l: number, brightness: number): number;
|
|
29
|
+
/** `#RRGGBB` lighter (above 0) or darker by a brightness from -1 to 1, as PowerPoint draws its tints and shades. */
|
|
30
|
+
export declare function brightened(hex: string, brightness: number): string;
|
|
31
|
+
//# sourceMappingURL=brightness.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const rgbOfHex=o=>{const n=/^#?([0-9a-fA-F]{6})$/u.exec(o)?.[1]??"000000";return[0,2,4].map(t=>parseInt(n.slice(t,t+2),16)/255)};const l=o=>Math.ceil(Math.min(1,Math.max(0,o))*255-.5-1e-9).toString(16).padStart(2,"0").toUpperCase();export const hexOfRgb=([o,n,t])=>`#${l(o??0)}${l(n??0)}${l(t??0)}`;export function toHsl([o,n,t]){const e=o??0,c=n??0,r=t??0,u=Math.max(e,c,r),s=Math.min(e,c,r),a=(u+s)/2;if(u===s)return[0,0,a];const i=u-s,m=a>.5?i/(2-u-s):i/(u+s);return[u===e?((c-r)/i+(c<r?6:0))*60:u===c?((r-e)/i+2)*60:((e-c)/i+4)*60,m,a]}export function fromHsl([o,n,t]){const e=((o??0)%360+360)%360,c=n??0,r=t??0;if(c===0)return[r,r,r];const u=r<.5?r*(1+c):r+c-r*c,s=2*r-u,a=i=>{const m=(i%1+1)%1;return m<1/6?s+(u-s)*6*m:m<1/2?u:m<2/3?s+(u-s)*(2/3-m)*6:s};return[a(e/360+1/3),a(e/360),a(e/360-1/3)]}const f=1e5;export function lumOf(o){const n=Math.round(o*f);return n>0?{lumMod:f-n,lumOff:n}:{lumMod:f+n}}export function brightnessOfLum(o){const[n,t,e]=o;if(!(n?.name!=="lumMod"||e!==void 0))return t===void 0?n.val>=0&&n.val<f?-(f-n.val)/f:void 0:t.name==="lumOff"&&t.val>0&&t.val<=f&&n.val+t.val===f?t.val/f:void 0}export function luminanceAt(o,n){const{lumMod:t,lumOff:e=0}=lumOf(n);return Math.min(1,Math.max(0,(o*t+e)/f))}export function brightened(o,n){if(n===0)return hexOfRgb(rgbOfHex(o));const[t,e,c]=toHsl(rgbOfHex(o));return hexOfRgb(fromHsl([t,e,luminanceAt(c,n)]))}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type AnyEl, type XEl } from "./node.js";
|
|
2
|
+
/** The scheme's twelve colours (`a:clrScheme`). */
|
|
3
|
+
export declare const SCHEME_COLORS: readonly ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"];
|
|
4
|
+
export type SchemeColor = (typeof SCHEME_COLORS)[number];
|
|
5
|
+
/** A master's colour map (`p:clrMap`): what `bg1`, `tx1`… and the twelve names are in the scheme. */
|
|
6
|
+
export type ColorMap = Readonly<Record<string, SchemeColor>>;
|
|
7
|
+
/** Office's colour map: light background, dark text. */
|
|
8
|
+
export declare const DEFAULT_COLOR_MAP: ColorMap;
|
|
9
|
+
/** What colours resolve against: the theme's scheme, the colour map in force, and a style's placeholder colour. */
|
|
10
|
+
export interface ColorContext {
|
|
11
|
+
scheme: Readonly<Partial<Record<SchemeColor, string>>>;
|
|
12
|
+
map: ColorMap;
|
|
13
|
+
/** `phClr`: the colour a style matrix reference gives (`a:fillRef`'s own). */
|
|
14
|
+
placeholder?: ResolvedColor;
|
|
15
|
+
}
|
|
16
|
+
/** A colour resolved. */
|
|
17
|
+
export interface ResolvedColor {
|
|
18
|
+
/** `#RRGGBB`. */
|
|
19
|
+
rgb: string;
|
|
20
|
+
/** 0 to 1. */
|
|
21
|
+
alpha: number;
|
|
22
|
+
/** The scheme colour it is, when it is one with no transform but alpha and a brightness. */
|
|
23
|
+
scheme?: SchemeColor;
|
|
24
|
+
/** The scheme colour's brightness, -1 to 1 (brightness.ts), when its transforms are the picker's `lumMod`/`lumOff`. */
|
|
25
|
+
brightness?: number;
|
|
26
|
+
/** Its transforms other than alpha and a brightness changed it: it is no longer the scheme's colour. */
|
|
27
|
+
transformed: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** The colour in an element whose content is a colour choice; undefined when it has none. */
|
|
30
|
+
export declare function colorIn(parent: AnyEl | undefined, ctx: ColorContext): ResolvedColor | undefined;
|
|
31
|
+
/** A colour element (`a:srgbClr`…) resolved with its transforms in document order. */
|
|
32
|
+
export declare function colorOf(el: XEl<"a:CT_SRgbColor">, ctx: ColorContext): ResolvedColor;
|
|
33
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{brightened as w,brightnessOfLum as v,fromHsl as k,hexOfRgb as M,rgbOfHex as O,toHsl as B}from"./brightness.js";import{parseValue as x}from"./node.js";export const SCHEME_COLORS=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],DEFAULT_COLOR_MAP={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",...Object.fromEntries(SCHEME_COLORS.map(t=>[t,t]))};const L=["a:srgbClr","a:schemeClr","a:sysClr","a:prstClr","a:hslClr","a:scrgbClr"];export function colorIn(t,l){const e=t?.choice(...L);return e?colorOf(e,l):void 0}const T=M,m=O,C=2.3,u=t=>Math.pow(t,C),h=t=>Math.pow(Math.max(0,t),1/C),f=t=>Math.min(1,Math.max(0,t));export function colorOf(t,l){let e=[0,0,0],s=1,i,p,c=!1;const D=[],g=t;switch(t.key){case"a:srgbClr":e=m(g.attr("val")??"000000");break;case"a:schemeClr":{const r=g.attr("val")??"";r==="phClr"&&l.placeholder?(e=m(l.placeholder.rgb),s=l.placeholder.alpha,i=l.placeholder.scheme,p=l.placeholder.brightness,c=l.placeholder.transformed):(i=l.map[r]??r,e=m(l.scheme[i]??"000000"));break}case"a:sysClr":{const r=g.attr("lastClr"),d=g.attr("val")??"";e=m(r??W[d]??"000000");break}case"a:prstClr":e=m(q(g.attr("val")??""));break;case"a:hslClr":{const r=t;e=k([(r.attr("hue")??0)/6e4,(r.attr("sat")??0)/1e5,(r.attr("lum")??0)/1e5]);break}case"a:scrgbClr":{const r=t;e=[r.attr("r")??0,r.attr("g")??0,r.attr("b")??0].map(d=>h(d/1e5));break}}for(const r of g.kids()){r.use();const d=r.attr("val"),E=typeof d=="number"?d:Number(x("pct",d??"0")),o=E/1e5,F=r.el.local;if(F.startsWith("alpha")){s=F==="alpha"?o:F==="alphaMod"?s*o:s+o,s=f(s);continue}switch(F==="lumMod"||F==="lumOff"?D.push({name:F,val:E}):c=!0,F){case"tint":e=e.map(a=>h(1-(1-u(a))*o));break;case"shade":e=e.map(a=>h(u(a)*o));break;case"inv":e=e.map(a=>h(1-u(a)));break;case"gamma":e=e.map(a=>h(Math.pow(u(a),1/C)));break;case"invGamma":e=e.map(a=>h(Math.pow(u(a),C)));break;case"comp":{const[a,n,b]=B(e);e=k([a+180,n,b]);break}case"gray":{const a=.299*e[0]+.587*e[1]+.114*e[2];e=[a,a,a];break}case"red":case"green":case"blue":case"redMod":case"greenMod":case"blueMod":case"redOff":case"greenOff":case"blueOff":{const a=F.startsWith("red")?0:F.startsWith("green")?1:2,n=e.map(u);n[a]=f(F.endsWith("Mod")?n[a]*o:F.endsWith("Off")?n[a]+o:o),e=n.map(h);break}default:{const a=B(e),n=F.startsWith("hue")?0:F.startsWith("sat")?1:2,b=n===0?E/6e4:o,y=n===0?360:1,A=a[n];a[n]=Math.min(y,Math.max(0,F.endsWith("Mod")?A*o:F.endsWith("Off")?A+b:b)),e=k(a);break}}}if(D.length>0&&!c){const r=p===void 0?v(D):void 0;i===void 0||r===void 0?c=!0:(p=r,e=m(w(l.scheme[i]??"000000",r)))}return{rgb:T(e),alpha:s,...i===void 0||c?{}:{scheme:i},...p===void 0||c?{}:{brightness:p},transformed:c}}const W={window:"FFFFFF",windowText:"000000",btnFace:"F0F0F0",btnText:"000000",highlight:"0078D7",highlightText:"FFFFFF",grayText:"6D6D6D",menu:"F0F0F0",menuText:"000000",infoBk:"FFFFE1",infoText:"000000",hotLight:"0066CC",captionText:"000000",activeCaption:"99B4D1",inactiveCaption:"BFCDDB",appWorkspace:"ABABAB",background:"000000",scrollBar:"C8C8C8","3dDkShadow":"696969","3dLight":"E3E3E3",btnHighlight:"FFFFFF",btnShadow:"A0A0A0",windowFrame:"646464",activeBorder:"B4B4B4",inactiveBorder:"F4F7FC",gradientActiveCaption:"B9D1EA",gradientInactiveCaption:"D7E4F2",menuBar:"F0F0F0",menuHighlight:"3399FF",inactiveCaptionText:"000000"},_={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgrey:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",grey:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgrey:"D3D3D3",lightgreen:"90EE90",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370DB",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"DB7093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"},q=t=>_[t.replace(/^dk/u,"dark").replace(/^lt/u,"light").replace(/^med/u,"medium").toLowerCase()]??"000000";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Every preset geometry (ST_ShapeType), in the schema's order. */
|
|
2
|
+
export declare const SHAPE_TYPES: 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"];
|
|
3
|
+
export type ShapeType = (typeof SHAPE_TYPES)[number];
|
|
4
|
+
/** A list's numbering schemes (ST_TextAutonumberScheme). */
|
|
5
|
+
export declare const AUTONUMBER_SCHEMES: readonly ["alphaLcParenBoth", "alphaUcParenBoth", "alphaLcParenR", "alphaUcParenR", "alphaLcPeriod", "alphaUcPeriod", "arabicParenBoth", "arabicParenR", "arabicPeriod", "arabicPlain", "romanLcParenBoth", "romanUcParenBoth", "romanLcParenR", "romanUcParenR", "romanLcPeriod", "romanUcPeriod", "circleNumDbPlain", "circleNumWdBlackPlain", "circleNumWdWhitePlain", "arabicDbPeriod", "arabicDbPlain", "ea1ChsPeriod", "ea1ChsPlain", "ea1ChtPeriod", "ea1ChtPlain", "ea1JpnChsDbPeriod", "ea1JpnKorPlain", "ea1JpnKorPeriod", "arabic1Minus", "arabic2Minus", "hebrew2Minus", "thaiAlphaPeriod", "thaiAlphaParenR", "thaiAlphaParenBoth", "thaiNumPeriod", "thaiNumParenR", "thaiNumParenBoth", "hindiAlphaPeriod", "hindiNumPeriod", "hindiNumParenR", "hindiAlpha1Period"];
|
|
6
|
+
export type AutonumberScheme = (typeof AUTONUMBER_SCHEMES)[number];
|
|
7
|
+
/** A line's preset dashes (ST_PresetLineDashVal). */
|
|
8
|
+
export declare const LINE_DASH_VALUES: readonly ["solid", "dot", "dash", "lgDash", "dashDot", "lgDashDot", "lgDashDotDot", "sysDash", "sysDot", "sysDashDot", "sysDashDotDot"];
|
|
9
|
+
/** A line end's kinds (ST_LineEndType). */
|
|
10
|
+
export declare const LINE_END_TYPES: readonly ["none", "triangle", "stealth", "diamond", "oval", "arrow"];
|
|
11
|
+
/** A transition's speeds (ST_TransitionSpeed). */
|
|
12
|
+
export declare const TRANSITION_SPEEDS: readonly ["slow", "med", "fast"];
|
|
13
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{ENUMS as S}from"./generated/enums.js";export const SHAPE_TYPES=S["a:ST_ShapeType"],AUTONUMBER_SCHEMES=S["a:ST_TextAutonumberScheme"],LINE_DASH_VALUES=S["a:ST_PresetLineDashVal"],LINE_END_TYPES=S["a:ST_LineEndType"],TRANSITION_SPEEDS=S["p:ST_TransitionSpeed"];
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/** Extension elements, by name, and their types. */
|
|
2
|
+
export declare const EXT_ELEMENTS: {
|
|
3
|
+
/** [MS-PPTX] 2.3.20: a video's or a sound's embedded file beside `a:videoFile`'s link. */
|
|
4
|
+
readonly "p14:media": "p14:CT_Media";
|
|
5
|
+
/** [MS-PPTX] 2.3.33 / 2.3.21: a slide's and a master's ids, PowerPoint's bookkeeping. */
|
|
6
|
+
readonly "p14:creationId": "x:CT_Val";
|
|
7
|
+
readonly "p14:modId": "x:CT_Val";
|
|
8
|
+
/** [MS-ODRAWXML] 2.6.2: a shape's id across versions, bookkeeping. */
|
|
9
|
+
readonly "a16:creationId": "x:CT_Id";
|
|
10
|
+
/** [MS-ODRAWXML] 2.3.2.3: a picture kept at its own resolution, bookkeeping. */
|
|
11
|
+
readonly "a14:useLocalDpi": "x:CT_Val";
|
|
12
|
+
/** [MS-ODRAWXML] 2.25.1: a picture's SVG original beside its PNG. */
|
|
13
|
+
readonly "asvg:svgBlip": "asvg:CT_SVGBlip";
|
|
14
|
+
/** [MS-PPTX] 2.3.31: the Morph transition. */
|
|
15
|
+
readonly "p159:morph": "p159:CT_Morph";
|
|
16
|
+
};
|
|
17
|
+
/** The types of the extension elements. */
|
|
18
|
+
export declare const EXT_TYPES: {
|
|
19
|
+
readonly "p14:CT_Media": {
|
|
20
|
+
readonly a: {
|
|
21
|
+
readonly "r:embed": readonly ["s"];
|
|
22
|
+
readonly "r:link": readonly ["s"];
|
|
23
|
+
};
|
|
24
|
+
readonly c: {
|
|
25
|
+
readonly "p14:trim": "p14:CT_MediaTrim";
|
|
26
|
+
readonly "p14:fade": "p14:CT_MediaFade";
|
|
27
|
+
readonly "p14:bmkLst": "x:CT_Any";
|
|
28
|
+
readonly "p14:extLst": "x:CT_Any";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly "p14:CT_MediaTrim": {
|
|
32
|
+
readonly a: {
|
|
33
|
+
readonly st: readonly ["s"];
|
|
34
|
+
readonly end: readonly ["s"];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly "p14:CT_MediaFade": {
|
|
38
|
+
readonly a: {
|
|
39
|
+
readonly in: readonly ["s"];
|
|
40
|
+
readonly out: readonly ["s"];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly "asvg:CT_SVGBlip": {
|
|
44
|
+
readonly a: {
|
|
45
|
+
readonly "r:embed": readonly ["s"];
|
|
46
|
+
readonly "r:link": readonly ["s"];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly "p159:CT_Morph": {
|
|
50
|
+
readonly a: {
|
|
51
|
+
readonly option: readonly ["p159:ST_MorphOption", "byObject"];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly "x:CT_Val": {
|
|
55
|
+
readonly a: {
|
|
56
|
+
readonly val: readonly ["s"];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly "x:CT_Id": {
|
|
60
|
+
readonly a: {
|
|
61
|
+
readonly id: readonly ["s"];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly "x:CT_Any": {
|
|
65
|
+
readonly any: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/** Extension attributes on the ISO types. */
|
|
69
|
+
export declare const EXT_ATTRS: {
|
|
70
|
+
/** [MS-PPTX] 2.6.1: a transition's length in milliseconds, over `spd`. */
|
|
71
|
+
readonly "p:CT_SlideTransition": {
|
|
72
|
+
readonly "p14:dur": readonly ["n"];
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
/** Extension enumerations. */
|
|
76
|
+
export declare const EXT_ENUMS: {
|
|
77
|
+
readonly "p159:ST_MorphOption": readonly ["byObject", "byWord", "byChar"];
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=ext.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const EXT_ELEMENTS={"p14:media":"p14:CT_Media","p14:creationId":"x:CT_Val","p14:modId":"x:CT_Val","a16:creationId":"x:CT_Id","a14:useLocalDpi":"x:CT_Val","asvg:svgBlip":"asvg:CT_SVGBlip","p159:morph":"p159:CT_Morph"},EXT_TYPES={"p14:CT_Media":{a:{"r:embed":["s"],"r:link":["s"]},c:{"p14:trim":"p14:CT_MediaTrim","p14:fade":"p14:CT_MediaFade","p14:bmkLst":"x:CT_Any","p14:extLst":"x:CT_Any"}},"p14:CT_MediaTrim":{a:{st:["s"],end:["s"]}},"p14:CT_MediaFade":{a:{in:["s"],out:["s"]}},"asvg:CT_SVGBlip":{a:{"r:embed":["s"],"r:link":["s"]}},"p159:CT_Morph":{a:{option:["p159:ST_MorphOption","byObject"]}},"x:CT_Val":{a:{val:["s"]}},"x:CT_Id":{a:{id:["s"]}},"x:CT_Any":{any:!0}},EXT_ATTRS={"p:CT_SlideTransition":{"p14:dur":["n"]}},EXT_ENUMS={"p159:ST_MorphOption":["byObject","byWord","byChar"]};
|