@m0saic/templates 0.2.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/LICENSE +13 -0
- package/README.md +7 -0
- package/dist/freeze.d.ts +406 -0
- package/dist/freeze.js +855 -0
- package/dist/gen-geometry-matrix.d.ts +1 -0
- package/dist/gen-geometry-matrix.js +177 -0
- package/dist/gen-geometry-proof.d.ts +1 -0
- package/dist/gen-geometry-proof.js +259 -0
- package/dist/gen-layout-envelope.d.ts +1 -0
- package/dist/gen-layout-envelope.js +120 -0
- package/dist/gen-precision-sweep.d.ts +1 -0
- package/dist/gen-precision-sweep.js +219 -0
- package/dist/gen-props-shape.d.ts +1 -0
- package/dist/gen-props-shape.js +269 -0
- package/dist/gen-template-audit.d.ts +1 -0
- package/dist/gen-template-audit.js +379 -0
- package/dist/gen-template-manifest.d.ts +1 -0
- package/dist/gen-template-manifest.js +162 -0
- package/dist/gen-web-template-ids.d.ts +1 -0
- package/dist/gen-web-template-ids.js +65 -0
- package/dist/geometry-audit.d.ts +149 -0
- package/dist/geometry-audit.js +368 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +29 -0
- package/dist/m0saic/_shared/onboarding-cover.d.ts +95 -0
- package/dist/m0saic/_shared/onboarding-cover.js +247 -0
- package/dist/m0saic/_shared/raster.d.ts +28 -0
- package/dist/m0saic/_shared/raster.js +146 -0
- package/dist/m0saic/_shared/svgRaster.d.ts +40 -0
- package/dist/m0saic/_shared/svgRaster.js +142 -0
- package/dist/m0saic/agents/commit-feed/index.d.ts +1 -0
- package/dist/m0saic/agents/commit-feed/index.js +17 -0
- package/dist/m0saic/agents/commit-feed/v1/commit-feed.d.ts +68 -0
- package/dist/m0saic/agents/commit-feed/v1/commit-feed.js +293 -0
- package/dist/m0saic/agents/commit-feed/v1/index.d.ts +2 -0
- package/dist/m0saic/agents/commit-feed/v1/index.js +11 -0
- package/dist/m0saic/agents/index.d.ts +7 -0
- package/dist/m0saic/agents/index.js +25 -0
- package/dist/m0saic/agents/trace-timeline/index.d.ts +1 -0
- package/dist/m0saic/agents/trace-timeline/index.js +17 -0
- package/dist/m0saic/agents/trace-timeline/v1/index.d.ts +2 -0
- package/dist/m0saic/agents/trace-timeline/v1/index.js +15 -0
- package/dist/m0saic/agents/trace-timeline/v1/trace-timeline.d.ts +73 -0
- package/dist/m0saic/agents/trace-timeline/v1/trace-timeline.js +356 -0
- package/dist/m0saic/alpine/_shared/alpine-anim.d.ts +65 -0
- package/dist/m0saic/alpine/_shared/alpine-anim.js +142 -0
- package/dist/m0saic/alpine/_shared/alpine-card.d.ts +114 -0
- package/dist/m0saic/alpine/_shared/alpine-card.js +193 -0
- package/dist/m0saic/alpine/_shared/alpine-glyphs.d.ts +23 -0
- package/dist/m0saic/alpine/_shared/alpine-glyphs.js +46 -0
- package/dist/m0saic/alpine/_shared/alpine-theme.d.ts +84 -0
- package/dist/m0saic/alpine/_shared/alpine-theme.js +155 -0
- package/dist/m0saic/alpine/bar-graph/v1/bar-graph.d.ts +85 -0
- package/dist/m0saic/alpine/bar-graph/v1/bar-graph.js +558 -0
- package/dist/m0saic/alpine/bar-graph/v1/index.d.ts +5 -0
- package/dist/m0saic/alpine/bar-graph/v1/index.js +9 -0
- package/dist/m0saic/alpine/commit-feed/v1/commit-feed.d.ts +64 -0
- package/dist/m0saic/alpine/commit-feed/v1/commit-feed.js +261 -0
- package/dist/m0saic/alpine/commit-feed/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/commit-feed/v1/index.js +5 -0
- package/dist/m0saic/alpine/commit-feed/v2/commit-feed.d.ts +78 -0
- package/dist/m0saic/alpine/commit-feed/v2/commit-feed.js +509 -0
- package/dist/m0saic/alpine/commit-feed/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/commit-feed/v2/index.js +5 -0
- package/dist/m0saic/alpine/contributor-table/v1/assets/README.md +13 -0
- package/dist/m0saic/alpine/contributor-table/v1/assets/layout-lite.m0 +9 -0
- package/dist/m0saic/alpine/contributor-table/v1/assets/layout-standard.m0 +9 -0
- package/dist/m0saic/alpine/contributor-table/v1/contributor-table.d.ts +76 -0
- package/dist/m0saic/alpine/contributor-table/v1/contributor-table.js +651 -0
- package/dist/m0saic/alpine/contributor-table/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/contributor-table/v1/index.js +5 -0
- package/dist/m0saic/alpine/donut/v1/donut.d.ts +55 -0
- package/dist/m0saic/alpine/donut/v1/donut.js +322 -0
- package/dist/m0saic/alpine/donut/v1/index.d.ts +5 -0
- package/dist/m0saic/alpine/donut/v1/index.js +9 -0
- package/dist/m0saic/alpine/donut/v2/donut.d.ts +58 -0
- package/dist/m0saic/alpine/donut/v2/donut.js +268 -0
- package/dist/m0saic/alpine/donut/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/donut/v2/index.js +5 -0
- package/dist/m0saic/alpine/donut/v3/donut.d.ts +65 -0
- package/dist/m0saic/alpine/donut/v3/donut.js +428 -0
- package/dist/m0saic/alpine/donut/v3/index.d.ts +1 -0
- package/dist/m0saic/alpine/donut/v3/index.js +5 -0
- package/dist/m0saic/alpine/heatmap/v1/heatmap.d.ts +68 -0
- package/dist/m0saic/alpine/heatmap/v1/heatmap.js +370 -0
- package/dist/m0saic/alpine/heatmap/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/heatmap/v1/index.js +5 -0
- package/dist/m0saic/alpine/heatmap/v2/heatmap.d.ts +73 -0
- package/dist/m0saic/alpine/heatmap/v2/heatmap.js +582 -0
- package/dist/m0saic/alpine/heatmap/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/heatmap/v2/index.js +5 -0
- package/dist/m0saic/alpine/index.d.ts +20 -0
- package/dist/m0saic/alpine/index.js +37 -0
- package/dist/m0saic/alpine/kpi-card/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/kpi-card/v1/index.js +5 -0
- package/dist/m0saic/alpine/kpi-card/v1/kpi-card.d.ts +54 -0
- package/dist/m0saic/alpine/kpi-card/v1/kpi-card.js +311 -0
- package/dist/m0saic/alpine/kpi-card/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/kpi-card/v2/index.js +5 -0
- package/dist/m0saic/alpine/kpi-card/v2/kpi-card.d.ts +60 -0
- package/dist/m0saic/alpine/kpi-card/v2/kpi-card.js +362 -0
- package/dist/m0saic/alpine/leaderboard/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/leaderboard/v1/index.js +5 -0
- package/dist/m0saic/alpine/leaderboard/v1/leaderboard.d.ts +58 -0
- package/dist/m0saic/alpine/leaderboard/v1/leaderboard.js +313 -0
- package/dist/m0saic/alpine/line-chart/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/line-chart/v1/index.js +5 -0
- package/dist/m0saic/alpine/line-chart/v1/line-chart.d.ts +70 -0
- package/dist/m0saic/alpine/line-chart/v1/line-chart.js +408 -0
- package/dist/m0saic/alpine/line-chart/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/line-chart/v2/index.js +5 -0
- package/dist/m0saic/alpine/line-chart/v2/line-chart.d.ts +72 -0
- package/dist/m0saic/alpine/line-chart/v2/line-chart.js +434 -0
- package/dist/m0saic/alpine/progress-card/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/progress-card/v1/index.js +5 -0
- package/dist/m0saic/alpine/progress-card/v1/progress-card.d.ts +53 -0
- package/dist/m0saic/alpine/progress-card/v1/progress-card.js +333 -0
- package/dist/m0saic/alpine/stat-card/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/stat-card/v1/index.js +5 -0
- package/dist/m0saic/alpine/stat-card/v1/stat-card.d.ts +76 -0
- package/dist/m0saic/alpine/stat-card/v1/stat-card.js +295 -0
- package/dist/m0saic/alpine/timeline/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/timeline/v1/index.js +5 -0
- package/dist/m0saic/alpine/timeline/v1/timeline.d.ts +55 -0
- package/dist/m0saic/alpine/timeline/v1/timeline.js +266 -0
- package/dist/m0saic/alpine/timeline/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/timeline/v2/index.js +5 -0
- package/dist/m0saic/alpine/timeline/v2/timeline.d.ts +61 -0
- package/dist/m0saic/alpine/timeline/v2/timeline.js +371 -0
- package/dist/m0saic/alpine/treemap/v1/index.d.ts +1 -0
- package/dist/m0saic/alpine/treemap/v1/index.js +5 -0
- package/dist/m0saic/alpine/treemap/v1/treemap.d.ts +56 -0
- package/dist/m0saic/alpine/treemap/v1/treemap.js +326 -0
- package/dist/m0saic/alpine/treemap/v2/index.d.ts +1 -0
- package/dist/m0saic/alpine/treemap/v2/index.js +5 -0
- package/dist/m0saic/alpine/treemap/v2/treemap.d.ts +59 -0
- package/dist/m0saic/alpine/treemap/v2/treemap.js +323 -0
- package/dist/m0saic/benchmark/battery/assets/media/README.md +16 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-av.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-01.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-02.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-03.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/media/bbb-clip-04.mp4 +0 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/duration-long.mosaic +80 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/encoders-base.mosaic +32 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/geometry-grid.mosaic +592 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/lifetime-window-fade.mosaic +28 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-bar-graph.mosaic +1980 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-donut.mosaic +797 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-screencap-grid.mosaic +4591 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/real-stat-card.mosaic +187 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-audio.mosaic +31 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-lavfi.mosaic +32 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-media.mosaic +73 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-nested.mosaic +48 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-ref.mosaic +24 -0
- package/dist/m0saic/benchmark/battery/assets/scenarios/sources-text.mosaic +120 -0
- package/dist/m0saic/benchmark/battery/manifest.d.ts +65 -0
- package/dist/m0saic/benchmark/battery/manifest.js +97 -0
- package/dist/m0saic/benchmark/index.d.ts +2 -0
- package/dist/m0saic/benchmark/index.js +22 -0
- package/dist/m0saic/benchmark/report/v1/assets/m-logo.png +0 -0
- package/dist/m0saic/benchmark/report/v1/assets/sample-session/benchmark.json +41 -0
- package/dist/m0saic/benchmark/report/v1/index.d.ts +1 -0
- package/dist/m0saic/benchmark/report/v1/index.js +17 -0
- package/dist/m0saic/benchmark/report/v1/report.d.ts +23 -0
- package/dist/m0saic/benchmark/report/v1/report.js +242 -0
- package/dist/m0saic/benchmark/run/v1/benchmarkRun.d.ts +57 -0
- package/dist/m0saic/benchmark/run/v1/benchmarkRun.js +151 -0
- package/dist/m0saic/benchmark/run/v1/confirmation.d.ts +11 -0
- package/dist/m0saic/benchmark/run/v1/confirmation.js +48 -0
- package/dist/m0saic/benchmark/run/v1/index.d.ts +1 -0
- package/dist/m0saic/benchmark/run/v1/index.js +17 -0
- package/dist/m0saic/benchmark/run/v1/renderScenario.d.ts +12 -0
- package/dist/m0saic/benchmark/run/v1/renderScenario.js +122 -0
- package/dist/m0saic/benchmark/run/v1/runner.d.ts +10 -0
- package/dist/m0saic/benchmark/run/v1/runner.js +208 -0
- package/dist/m0saic/brand/business-card/v1/back-catalog.d.ts +68 -0
- package/dist/m0saic/brand/business-card/v1/back-catalog.js +121 -0
- package/dist/m0saic/brand/business-card/v1/business-card.d.ts +82 -0
- package/dist/m0saic/brand/business-card/v1/business-card.js +517 -0
- package/dist/m0saic/brand/business-card/v1/index.d.ts +4 -0
- package/dist/m0saic/brand/business-card/v1/index.js +16 -0
- package/dist/m0saic/brand/business-card/v1/layout.d.ts +163 -0
- package/dist/m0saic/brand/business-card/v1/layout.js +369 -0
- package/dist/m0saic/brand/community-m/v1/camera.d.ts +45 -0
- package/dist/m0saic/brand/community-m/v1/camera.js +44 -0
- package/dist/m0saic/brand/community-m/v1/caption.d.ts +5 -0
- package/dist/m0saic/brand/community-m/v1/caption.js +18 -0
- package/dist/m0saic/brand/community-m/v1/community-m.d.ts +25 -0
- package/dist/m0saic/brand/community-m/v1/community-m.js +117 -0
- package/dist/m0saic/brand/community-m/v1/community-m.web.d.ts +3 -0
- package/dist/m0saic/brand/community-m/v1/community-m.web.js +172 -0
- package/dist/m0saic/brand/community-m/v1/gen-seed-piece.d.ts +1 -0
- package/dist/m0saic/brand/community-m/v1/gen-seed-piece.js +59 -0
- package/dist/m0saic/brand/community-m/v1/geometry.d.ts +44 -0
- package/dist/m0saic/brand/community-m/v1/geometry.js +68 -0
- package/dist/m0saic/brand/community-m/v1/imageSize.node.d.ts +3 -0
- package/dist/m0saic/brand/community-m/v1/imageSize.node.js +60 -0
- package/dist/m0saic/brand/community-m/v1/index.d.ts +1 -0
- package/dist/m0saic/brand/community-m/v1/index.js +5 -0
- package/dist/m0saic/brand/community-m/v1/loadPiece.node.d.ts +14 -0
- package/dist/m0saic/brand/community-m/v1/loadPiece.node.js +69 -0
- package/dist/m0saic/brand/community-m/v1/manifest.d.ts +22 -0
- package/dist/m0saic/brand/community-m/v1/manifest.js +81 -0
- package/dist/m0saic/brand/community-m/v1/mark.d.ts +76 -0
- package/dist/m0saic/brand/community-m/v1/mark.js +136 -0
- package/dist/m0saic/brand/community-m/v1/paths.d.ts +14 -0
- package/dist/m0saic/brand/community-m/v1/paths.js +61 -0
- package/dist/m0saic/brand/community-m/v1/piece.d.ts +28 -0
- package/dist/m0saic/brand/community-m/v1/piece.js +35 -0
- package/dist/m0saic/brand/community-m/v1/pipeline.d.ts +122 -0
- package/dist/m0saic/brand/community-m/v1/pipeline.js +461 -0
- package/dist/m0saic/brand/community-m/v1/preview.d.ts +75 -0
- package/dist/m0saic/brand/community-m/v1/preview.js +214 -0
- package/dist/m0saic/brand/community-m/v1/props.d.ts +101 -0
- package/dist/m0saic/brand/community-m/v1/props.js +178 -0
- package/dist/m0saic/brand/community-m/v1/reveal.d.ts +129 -0
- package/dist/m0saic/brand/community-m/v1/reveal.js +155 -0
- package/dist/m0saic/brand/community-m/v1/seedPiece.d.ts +57 -0
- package/dist/m0saic/brand/community-m/v1/seedPiece.js +153 -0
- package/dist/m0saic/brand/community-m/v1/target.d.ts +88 -0
- package/dist/m0saic/brand/community-m/v1/target.js +132 -0
- package/dist/m0saic/brand/community-m/v1/timing.d.ts +32 -0
- package/dist/m0saic/brand/community-m/v1/timing.js +57 -0
- package/dist/m0saic/brand/community-m/v1/webPiece.d.ts +23 -0
- package/dist/m0saic/brand/community-m/v1/webPiece.js +42 -0
- package/dist/m0saic/brand/community-m/v1/wordmark.d.ts +34 -0
- package/dist/m0saic/brand/community-m/v1/wordmark.js +62 -0
- package/dist/m0saic/brand/index.d.ts +7 -0
- package/dist/m0saic/brand/index.js +17 -0
- package/dist/m0saic/brand/logo/v1/index.d.ts +1 -0
- package/dist/m0saic/brand/logo/v1/index.js +5 -0
- package/dist/m0saic/brand/logo/v1/logo.d.ts +30 -0
- package/dist/m0saic/brand/logo/v1/logo.js +471 -0
- package/dist/m0saic/brand/logo/v2/index.d.ts +1 -0
- package/dist/m0saic/brand/logo/v2/index.js +5 -0
- package/dist/m0saic/brand/logo/v2/logo.d.ts +30 -0
- package/dist/m0saic/brand/logo/v2/logo.js +615 -0
- package/dist/m0saic/brand/logo/v3/index.d.ts +1 -0
- package/dist/m0saic/brand/logo/v3/index.js +5 -0
- package/dist/m0saic/brand/logo/v3/logo.d.ts +36 -0
- package/dist/m0saic/brand/logo/v3/logo.js +666 -0
- package/dist/m0saic/brand/logo/v3/logo_runner.d.ts +36 -0
- package/dist/m0saic/brand/logo/v3/logo_runner.js +216 -0
- package/dist/m0saic/brand/qr-stamp/assets/brand-qr-with-logo.svg +8 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.dark.mp4 +0 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.dark.static.png +0 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.light.mp4 +0 -0
- package/dist/m0saic/brand/qr-stamp/assets/qr-animate.light.static.png +0 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/index.d.ts +2 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/index.js +10 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/qr-stamp-still.d.ts +45 -0
- package/dist/m0saic/brand/qr-stamp/still/v1/qr-stamp-still.js +347 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/index.d.ts +2 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/index.js +9 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/qr-stamp.d.ts +43 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/qr-stamp.js +447 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/windows.d.ts +19 -0
- package/dist/m0saic/brand/qr-stamp/video/v2/windows.js +24 -0
- package/dist/m0saic/charts/_shared/index.d.ts +8 -0
- package/dist/m0saic/charts/_shared/index.js +24 -0
- package/dist/m0saic/charts/_shared/line.d.ts +100 -0
- package/dist/m0saic/charts/_shared/line.js +134 -0
- package/dist/m0saic/charts/_shared/scale.d.ts +9 -0
- package/dist/m0saic/charts/_shared/scale.js +17 -0
- package/dist/m0saic/charts/bar-graph/v1/anim.d.ts +83 -0
- package/dist/m0saic/charts/bar-graph/v1/anim.js +104 -0
- package/dist/m0saic/charts/bar-graph/v1/axis.d.ts +51 -0
- package/dist/m0saic/charts/bar-graph/v1/axis.js +73 -0
- package/dist/m0saic/charts/bar-graph/v1/bar-graph.d.ts +44 -0
- package/dist/m0saic/charts/bar-graph/v1/bar-graph.js +316 -0
- package/dist/m0saic/charts/bar-graph/v1/defaults.d.ts +88 -0
- package/dist/m0saic/charts/bar-graph/v1/defaults.js +157 -0
- package/dist/m0saic/charts/bar-graph/v1/format.d.ts +46 -0
- package/dist/m0saic/charts/bar-graph/v1/format.js +95 -0
- package/dist/m0saic/charts/bar-graph/v1/index.d.ts +31 -0
- package/dist/m0saic/charts/bar-graph/v1/index.js +36 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-cell.d.ts +53 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-cell.js +198 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-fill.d.ts +4 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bar-fill.js +154 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bars-stack.d.ts +41 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/bars-stack.js +208 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/chart-frame.d.ts +32 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/chart-frame.js +124 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/labels.d.ts +52 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/labels.js +504 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/plot-area.d.ts +24 -0
- package/dist/m0saic/charts/bar-graph/v1/internal/plot-area.js +180 -0
- package/dist/m0saic/charts/bar-graph/v1/types.d.ts +326 -0
- package/dist/m0saic/charts/bar-graph/v1/types.js +36 -0
- package/dist/m0saic/charts/bar-graph/v2/bar-graph.d.ts +131 -0
- package/dist/m0saic/charts/bar-graph/v2/bar-graph.js +768 -0
- package/dist/m0saic/charts/bar-graph/v2/index.d.ts +10 -0
- package/dist/m0saic/charts/bar-graph/v2/index.js +14 -0
- package/dist/m0saic/charts/donut/v1/anim.d.ts +54 -0
- package/dist/m0saic/charts/donut/v1/anim.js +84 -0
- package/dist/m0saic/charts/donut/v1/donut.d.ts +87 -0
- package/dist/m0saic/charts/donut/v1/donut.js +400 -0
- package/dist/m0saic/charts/donut/v1/geometry.d.ts +55 -0
- package/dist/m0saic/charts/donut/v1/geometry.js +115 -0
- package/dist/m0saic/charts/donut/v1/index.d.ts +11 -0
- package/dist/m0saic/charts/donut/v1/index.js +17 -0
- package/dist/m0saic/charts/donut/v2/donut.d.ts +67 -0
- package/dist/m0saic/charts/donut/v2/donut.js +307 -0
- package/dist/m0saic/charts/donut/v2/index.d.ts +10 -0
- package/dist/m0saic/charts/donut/v2/index.js +14 -0
- package/dist/m0saic/charts/donut/v3/anim.d.ts +47 -0
- package/dist/m0saic/charts/donut/v3/anim.js +77 -0
- package/dist/m0saic/charts/donut/v3/donut.d.ts +54 -0
- package/dist/m0saic/charts/donut/v3/donut.js +531 -0
- package/dist/m0saic/charts/donut/v3/geometry.d.ts +74 -0
- package/dist/m0saic/charts/donut/v3/geometry.js +152 -0
- package/dist/m0saic/charts/donut/v3/index.d.ts +10 -0
- package/dist/m0saic/charts/donut/v3/index.js +14 -0
- package/dist/m0saic/charts/donut/v4/donut.d.ts +63 -0
- package/dist/m0saic/charts/donut/v4/donut.js +546 -0
- package/dist/m0saic/charts/donut/v4/index.d.ts +10 -0
- package/dist/m0saic/charts/donut/v4/index.js +14 -0
- package/dist/m0saic/charts/index.d.ts +8 -0
- package/dist/m0saic/charts/index.js +25 -0
- package/dist/m0saic/charts/line-chart/v1/anim.d.ts +78 -0
- package/dist/m0saic/charts/line-chart/v1/anim.js +119 -0
- package/dist/m0saic/charts/line-chart/v1/axis.d.ts +48 -0
- package/dist/m0saic/charts/line-chart/v1/axis.js +55 -0
- package/dist/m0saic/charts/line-chart/v1/card.d.ts +27 -0
- package/dist/m0saic/charts/line-chart/v1/card.js +44 -0
- package/dist/m0saic/charts/line-chart/v1/chrome-spec.d.ts +110 -0
- package/dist/m0saic/charts/line-chart/v1/chrome-spec.js +208 -0
- package/dist/m0saic/charts/line-chart/v1/chrome.d.ts +30 -0
- package/dist/m0saic/charts/line-chart/v1/chrome.js +335 -0
- package/dist/m0saic/charts/line-chart/v1/defaults.d.ts +65 -0
- package/dist/m0saic/charts/line-chart/v1/defaults.js +151 -0
- package/dist/m0saic/charts/line-chart/v1/format.d.ts +26 -0
- package/dist/m0saic/charts/line-chart/v1/format.js +76 -0
- package/dist/m0saic/charts/line-chart/v1/frame.d.ts +50 -0
- package/dist/m0saic/charts/line-chart/v1/frame.js +62 -0
- package/dist/m0saic/charts/line-chart/v1/geometry.d.ts +15 -0
- package/dist/m0saic/charts/line-chart/v1/geometry.js +34 -0
- package/dist/m0saic/charts/line-chart/v1/index.d.ts +16 -0
- package/dist/m0saic/charts/line-chart/v1/index.js +21 -0
- package/dist/m0saic/charts/line-chart/v1/line-chart.d.ts +26 -0
- package/dist/m0saic/charts/line-chart/v1/line-chart.js +634 -0
- package/dist/m0saic/charts/line-chart/v1/line-series.d.ts +69 -0
- package/dist/m0saic/charts/line-chart/v1/line-series.js +259 -0
- package/dist/m0saic/charts/line-chart/v1/types.d.ts +328 -0
- package/dist/m0saic/charts/line-chart/v1/types.js +24 -0
- package/dist/m0saic/charts/stat-card/v1/index.d.ts +10 -0
- package/dist/m0saic/charts/stat-card/v1/index.js +15 -0
- package/dist/m0saic/charts/stat-card/v1/stat-card.d.ts +78 -0
- package/dist/m0saic/charts/stat-card/v1/stat-card.js +475 -0
- package/dist/m0saic/code/_shared/code-diff.d.ts +73 -0
- package/dist/m0saic/code/_shared/code-diff.js +220 -0
- package/dist/m0saic/code/_shared/code-lexer.d.ts +28 -0
- package/dist/m0saic/code/_shared/code-lexer.js +226 -0
- package/dist/m0saic/code/_shared/code-metrics.d.ts +58 -0
- package/dist/m0saic/code/_shared/code-metrics.js +140 -0
- package/dist/m0saic/code/_shared/code-theme.d.ts +30 -0
- package/dist/m0saic/code/_shared/code-theme.js +141 -0
- package/dist/m0saic/code/index.d.ts +1 -0
- package/dist/m0saic/code/index.js +17 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/chrome.d.ts +60 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/chrome.js +252 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/plan.d.ts +90 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/plan.js +226 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/steps.d.ts +103 -0
- package/dist/m0saic/code/snippet-morph/v1/internal/steps.js +313 -0
- package/dist/m0saic/code/snippet-morph/v1/snippet-morph.d.ts +61 -0
- package/dist/m0saic/code/snippet-morph/v1/snippet-morph.js +462 -0
- package/dist/m0saic/collage/image-collage/v1/demo-fixture.d.ts +18 -0
- package/dist/m0saic/collage/image-collage/v1/demo-fixture.js +30 -0
- package/dist/m0saic/collage/image-collage/v1/emit.d.ts +81 -0
- package/dist/m0saic/collage/image-collage/v1/emit.js +163 -0
- package/dist/m0saic/collage/image-collage/v1/image-collage.d.ts +63 -0
- package/dist/m0saic/collage/image-collage/v1/image-collage.js +386 -0
- package/dist/m0saic/collage/image-collage/v1/index.d.ts +2 -0
- package/dist/m0saic/collage/image-collage/v1/index.js +5 -0
- package/dist/m0saic/collage/image-collage/v1/packer/candidates.d.ts +71 -0
- package/dist/m0saic/collage/image-collage/v1/packer/candidates.js +211 -0
- package/dist/m0saic/collage/image-collage/v1/packer/classify.d.ts +26 -0
- package/dist/m0saic/collage/image-collage/v1/packer/classify.js +70 -0
- package/dist/m0saic/collage/image-collage/v1/packer/index.d.ts +7 -0
- package/dist/m0saic/collage/image-collage/v1/packer/index.js +23 -0
- package/dist/m0saic/collage/image-collage/v1/packer/paging.d.ts +39 -0
- package/dist/m0saic/collage/image-collage/v1/packer/paging.js +139 -0
- package/dist/m0saic/collage/image-collage/v1/packer/score.d.ts +25 -0
- package/dist/m0saic/collage/image-collage/v1/packer/score.js +69 -0
- package/dist/m0saic/collage/image-collage/v1/packer/solve.d.ts +27 -0
- package/dist/m0saic/collage/image-collage/v1/packer/solve.js +84 -0
- package/dist/m0saic/collage/image-collage/v1/packer/tiler.d.ts +65 -0
- package/dist/m0saic/collage/image-collage/v1/packer/tiler.js +607 -0
- package/dist/m0saic/collage/image-collage/v1/packer/types.d.ts +99 -0
- package/dist/m0saic/collage/image-collage/v1/packer/types.js +10 -0
- package/dist/m0saic/collage/image-collage/v1/tutorial.d.ts +17 -0
- package/dist/m0saic/collage/image-collage/v1/tutorial.js +269 -0
- package/dist/m0saic/collage/index.d.ts +2 -0
- package/dist/m0saic/collage/index.js +18 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/grid-fixture.d.ts +7 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/grid-fixture.js +11 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/index.d.ts +1 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/index.js +5 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/spread-grid-mock.d.ts +29 -0
- package/dist/m0saic/collage/spread-grid-mock/v1/spread-grid-mock.js +78 -0
- package/dist/m0saic/dsl-tutorial/index.d.ts +1 -0
- package/dist/m0saic/dsl-tutorial/index.js +18 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/brand-glyphs.d.ts +24 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/brand-glyphs.js +17 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/m0saic-logo.d.ts +6 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/m0saic-logo.js +9 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/node-kit.d.ts +57 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/node-kit.js +156 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/text-fit.d.ts +76 -0
- package/dist/m0saic/dsl-tutorial/v1/_shared/text-fit.js +127 -0
- package/dist/m0saic/dsl-tutorial/v1/dsl-tutorial.d.ts +124 -0
- package/dist/m0saic/dsl-tutorial/v1/dsl-tutorial.js +675 -0
- package/dist/m0saic/dsl-tutorial/v1/index.d.ts +24 -0
- package/dist/m0saic/dsl-tutorial/v1/index.js +35 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/canvas/v1/dsl-canvas.d.ts +113 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/canvas/v1/dsl-canvas.js +573 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/chrome/v1/dsl-chrome.d.ts +83 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/chrome/v1/dsl-chrome.js +373 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/dsl-string/v1/dsl-string.d.ts +48 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/dsl-string/v1/dsl-string.js +366 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/inspector/v1/dsl-inspector.d.ts +54 -0
- package/dist/m0saic/dsl-tutorial/v1/panels/inspector/v1/dsl-inspector.js +304 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/buildSteps.d.ts +110 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/buildSteps.js +443 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/camera.d.ts +64 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/camera.js +177 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/cursor.d.ts +47 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/cursor.js +64 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/dslString.d.ts +61 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/dslString.js +135 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/inspector.d.ts +62 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/inspector.js +197 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/timing.d.ts +117 -0
- package/dist/m0saic/dsl-tutorial/v1/pipeline/timing.js +180 -0
- package/dist/m0saic/dsl-tutorial/v1/theme/tokens.d.ts +87 -0
- package/dist/m0saic/dsl-tutorial/v1/theme/tokens.js +96 -0
- package/dist/m0saic/forensic/index.d.ts +1 -0
- package/dist/m0saic/forensic/index.js +17 -0
- package/dist/m0saic/forensic/watermark/_shared/cellLuminance.d.ts +37 -0
- package/dist/m0saic/forensic/watermark/_shared/cellLuminance.js +62 -0
- package/dist/m0saic/forensic/watermark/index.d.ts +2 -0
- package/dist/m0saic/forensic/watermark/index.js +18 -0
- package/dist/m0saic/forensic/watermark/verify/index.d.ts +1 -0
- package/dist/m0saic/forensic/watermark/verify/index.js +17 -0
- package/dist/m0saic/forensic/watermark/verify/v1/decode.d.ts +83 -0
- package/dist/m0saic/forensic/watermark/verify/v1/decode.js +270 -0
- package/dist/m0saic/forensic/watermark/verify/v1/index.d.ts +2 -0
- package/dist/m0saic/forensic/watermark/verify/v1/index.js +23 -0
- package/dist/m0saic/forensic/watermark/verify/v1/report.d.ts +71 -0
- package/dist/m0saic/forensic/watermark/verify/v1/report.js +428 -0
- package/dist/m0saic/forensic/watermark/verify/v1/verify.d.ts +55 -0
- package/dist/m0saic/forensic/watermark/verify/v1/verify.js +286 -0
- package/dist/m0saic/forensic/watermark/video/index.d.ts +1 -0
- package/dist/m0saic/forensic/watermark/video/index.js +17 -0
- package/dist/m0saic/forensic/watermark/video/v1/forensic-watermark.d.ts +119 -0
- package/dist/m0saic/forensic/watermark/video/v1/forensic-watermark.js +629 -0
- package/dist/m0saic/forensic/watermark/video/v1/index.d.ts +2 -0
- package/dist/m0saic/forensic/watermark/video/v1/index.js +9 -0
- package/dist/m0saic/forensic/watermark/video/v1/maskAsset.d.ts +67 -0
- package/dist/m0saic/forensic/watermark/video/v1/maskAsset.js +125 -0
- package/dist/m0saic/forensic/watermark/video/v1/probeHost.d.ts +69 -0
- package/dist/m0saic/forensic/watermark/video/v1/probeHost.js +83 -0
- package/dist/m0saic/github/client.d.ts +200 -0
- package/dist/m0saic/github/client.js +161 -0
- package/dist/m0saic/github/connection.d.ts +24 -0
- package/dist/m0saic/github/connection.js +91 -0
- package/dist/m0saic/github/index.d.ts +20 -0
- package/dist/m0saic/github/index.js +42 -0
- package/dist/m0saic/github/repo-facts-fetcher/index.d.ts +4 -0
- package/dist/m0saic/github/repo-facts-fetcher/index.js +20 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/build-facts.d.ts +54 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/build-facts.js +238 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/facts.d.ts +112 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/facts.js +12 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/repo-facts-fetcher.d.ts +67 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/repo-facts-fetcher.js +210 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/sample-facts.d.ts +16 -0
- package/dist/m0saic/github/repo-facts-fetcher/v1/sample-facts.js +175 -0
- package/dist/m0saic/github/week-math.d.ts +50 -0
- package/dist/m0saic/github/week-math.js +96 -0
- package/dist/m0saic/github/weekly-pulse/index.d.ts +1 -0
- package/dist/m0saic/github/weekly-pulse/index.js +17 -0
- package/dist/m0saic/github/weekly-pulse/v1/weekly-pulse.d.ts +51 -0
- package/dist/m0saic/github/weekly-pulse/v1/weekly-pulse.js +153 -0
- package/dist/m0saic/github/weekly-pulse-adapter/index.d.ts +2 -0
- package/dist/m0saic/github/weekly-pulse-adapter/index.js +18 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/derive-pulse.d.ts +24 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/derive-pulse.js +257 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/weekly-pulse-adapter.d.ts +35 -0
- package/dist/m0saic/github/weekly-pulse-adapter/v1/weekly-pulse-adapter.js +131 -0
- package/dist/m0saic/github/year-card/index.d.ts +1 -0
- package/dist/m0saic/github/year-card/index.js +17 -0
- package/dist/m0saic/github/year-card/v1/index.d.ts +2 -0
- package/dist/m0saic/github/year-card/v1/index.js +16 -0
- package/dist/m0saic/github/year-card/v1/year-card.d.ts +90 -0
- package/dist/m0saic/github/year-card/v1/year-card.js +476 -0
- package/dist/m0saic/hello-world/index.d.ts +1 -0
- package/dist/m0saic/hello-world/index.js +18 -0
- package/dist/m0saic/hello-world/v1/hello-world.d.ts +4 -0
- package/dist/m0saic/hello-world/v1/hello-world.js +36 -0
- package/dist/m0saic/hello-world/v1/index.d.ts +5 -0
- package/dist/m0saic/hello-world/v1/index.js +9 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/bake-fin-qr.sh +11 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/ffmpeg-logo.png +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/ffmpeg_logo_480x480.svg +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/m-hero.png +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/qr-fin.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-desktop.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-layout.m0p +5146 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-mobile.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/scatter-square.mp4 +0 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/assets/title-layout.m0p +130 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-chrome.d.ts +151 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-chrome.js +305 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-data.d.ts +178 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-data.js +238 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-glyphs.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-glyphs.js +12 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-theme.d.ts +67 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/pulse-theme.js +59 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/scatter.d.ts +54 -0
- package/dist/m0saic/hero/ffmpeg-pulse/_shared/scatter.js +173 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/activity-trend.d.ts +37 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/activity-trend.js +178 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/activity-trend/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/changes-breakdown.d.ts +37 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/changes-breakdown.js +164 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/changes-breakdown/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/contributions.d.ts +37 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/contributions.js +159 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/contributions/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/fin.d.ts +31 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/fin.js +154 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/fin/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/index.d.ts +10 -0
- package/dist/m0saic/hero/ffmpeg-pulse/index.js +24 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/kpi-overview.d.ts +38 -0
- package/dist/m0saic/hero/ffmpeg-pulse/kpi-overview/v1/kpi-overview.js +161 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/notable-commits.d.ts +36 -0
- package/dist/m0saic/hero/ffmpeg-pulse/notable-commits/v1/notable-commits.js +151 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/runner.d.ts +54 -0
- package/dist/m0saic/hero/ffmpeg-pulse/runner/v1/runner.js +128 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/scatter-bake.d.ts +29 -0
- package/dist/m0saic/hero/ffmpeg-pulse/scatter-bake/v1/scatter-bake.js +47 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/title.d.ts +20 -0
- package/dist/m0saic/hero/ffmpeg-pulse/title/v1/title.js +365 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/index.d.ts +1 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/index.js +5 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/top-contributors.d.ts +38 -0
- package/dist/m0saic/hero/ffmpeg-pulse/top-contributors/v1/top-contributors.js +174 -0
- package/dist/m0saic/hero/index.d.ts +1 -0
- package/dist/m0saic/hero/index.js +18 -0
- package/dist/m0saic/index.d.ts +20 -0
- package/dist/m0saic/index.js +56 -0
- package/dist/m0saic/media/barcode/v1/barcode.d.ts +22 -0
- package/dist/m0saic/media/barcode/v1/barcode.js +218 -0
- package/dist/m0saic/media/barcode/v1/index.d.ts +1 -0
- package/dist/m0saic/media/barcode/v1/index.js +9 -0
- package/dist/m0saic/media/blur-regions/index.d.ts +1 -0
- package/dist/m0saic/media/blur-regions/index.js +17 -0
- package/dist/m0saic/media/blur-regions/v1/blur-regions.d.ts +58 -0
- package/dist/m0saic/media/blur-regions/v1/blur-regions.js +303 -0
- package/dist/m0saic/media/blur-regions/v1/index.d.ts +2 -0
- package/dist/m0saic/media/blur-regions/v1/index.js +20 -0
- package/dist/m0saic/media/blur-regions/v1/plan.d.ts +125 -0
- package/dist/m0saic/media/blur-regions/v1/plan.js +204 -0
- package/dist/m0saic/media/blur-regions/v1/tutorial.d.ts +18 -0
- package/dist/m0saic/media/blur-regions/v1/tutorial.js +428 -0
- package/dist/m0saic/media/highlights/index.d.ts +1 -0
- package/dist/m0saic/media/highlights/index.js +17 -0
- package/dist/m0saic/media/highlights/v1/assets/cover-ranges.jpg +0 -0
- package/dist/m0saic/media/highlights/v1/highlights.d.ts +49 -0
- package/dist/m0saic/media/highlights/v1/highlights.js +222 -0
- package/dist/m0saic/media/highlights/v1/index.d.ts +3 -0
- package/dist/m0saic/media/highlights/v1/index.js +19 -0
- package/dist/m0saic/media/highlights/v1/pipeline.d.ts +35 -0
- package/dist/m0saic/media/highlights/v1/pipeline.js +91 -0
- package/dist/m0saic/media/highlights/v1/plan.d.ts +46 -0
- package/dist/m0saic/media/highlights/v1/plan.js +68 -0
- package/dist/m0saic/media/index.d.ts +13 -0
- package/dist/m0saic/media/index.js +31 -0
- package/dist/m0saic/media/logo-animate/index.d.ts +1 -0
- package/dist/m0saic/media/logo-animate/index.js +17 -0
- package/dist/m0saic/media/logo-animate/v1/default-logo.d.ts +12 -0
- package/dist/m0saic/media/logo-animate/v1/default-logo.js +49 -0
- package/dist/m0saic/media/logo-animate/v1/expressions.d.ts +66 -0
- package/dist/m0saic/media/logo-animate/v1/expressions.js +107 -0
- package/dist/m0saic/media/logo-animate/v1/index.d.ts +2 -0
- package/dist/m0saic/media/logo-animate/v1/index.js +5 -0
- package/dist/m0saic/media/logo-animate/v1/layout.d.ts +29 -0
- package/dist/m0saic/media/logo-animate/v1/layout.js +43 -0
- package/dist/m0saic/media/logo-animate/v1/logo-animate.d.ts +106 -0
- package/dist/m0saic/media/logo-animate/v1/logo-animate.js +732 -0
- package/dist/m0saic/media/logo-animate/v1/svg-source.d.ts +63 -0
- package/dist/m0saic/media/logo-animate/v1/svg-source.js +127 -0
- package/dist/m0saic/media/logo-animate/v1/tutorial.d.ts +16 -0
- package/dist/m0saic/media/logo-animate/v1/tutorial.js +378 -0
- package/dist/m0saic/media/metadata-stamp/index.d.ts +1 -0
- package/dist/m0saic/media/metadata-stamp/index.js +17 -0
- package/dist/m0saic/media/metadata-stamp/v1/assets/cover-frame.jpg +0 -0
- package/dist/m0saic/media/metadata-stamp/v1/format-date.d.ts +52 -0
- package/dist/m0saic/media/metadata-stamp/v1/format-date.js +128 -0
- package/dist/m0saic/media/metadata-stamp/v1/index.d.ts +4 -0
- package/dist/m0saic/media/metadata-stamp/v1/index.js +10 -0
- package/dist/m0saic/media/metadata-stamp/v1/metadata-stamp.d.ts +58 -0
- package/dist/m0saic/media/metadata-stamp/v1/metadata-stamp.js +534 -0
- package/dist/m0saic/media/qr/_shared/brandMCenter.d.ts +28 -0
- package/dist/m0saic/media/qr/_shared/brandMCenter.js +52 -0
- package/dist/m0saic/media/qr/animate/v1/expressions.d.ts +164 -0
- package/dist/m0saic/media/qr/animate/v1/expressions.js +251 -0
- package/dist/m0saic/media/qr/animate/v1/index.d.ts +2 -0
- package/dist/m0saic/media/qr/animate/v1/index.js +9 -0
- package/dist/m0saic/media/qr/animate/v1/qr-animate.d.ts +171 -0
- package/dist/m0saic/media/qr/animate/v1/qr-animate.js +775 -0
- package/dist/m0saic/media/qr/animate/v2/index.d.ts +2 -0
- package/dist/m0saic/media/qr/animate/v2/index.js +9 -0
- package/dist/m0saic/media/qr/animate/v2/qr-animate.d.ts +64 -0
- package/dist/m0saic/media/qr/animate/v2/qr-animate.js +341 -0
- package/dist/m0saic/media/qr/basic/v1/index.d.ts +1 -0
- package/dist/m0saic/media/qr/basic/v1/index.js +10 -0
- package/dist/m0saic/media/qr/basic/v1/qr.d.ts +24 -0
- package/dist/m0saic/media/qr/basic/v1/qr.js +132 -0
- package/dist/m0saic/media/qr/code/v1/index.d.ts +2 -0
- package/dist/m0saic/media/qr/code/v1/index.js +9 -0
- package/dist/m0saic/media/qr/code/v1/qr-code.d.ts +135 -0
- package/dist/m0saic/media/qr/code/v1/qr-code.js +611 -0
- package/dist/m0saic/media/qr/index.d.ts +7 -0
- package/dist/m0saic/media/qr/index.js +19 -0
- package/dist/m0saic/media/qr/rounded/v1/index.d.ts +1 -0
- package/dist/m0saic/media/qr/rounded/v1/index.js +9 -0
- package/dist/m0saic/media/qr/rounded/v1/qr-rounded.d.ts +68 -0
- package/dist/m0saic/media/qr/rounded/v1/qr-rounded.js +338 -0
- package/dist/m0saic/media/qr/stamp/v1/assets/cover-frame.jpg +0 -0
- package/dist/m0saic/media/qr/stamp/v1/qr-stamp-custom.d.ts +44 -0
- package/dist/m0saic/media/qr/stamp/v1/qr-stamp-custom.js +389 -0
- package/dist/m0saic/media/qr/stamp-video/v1/expressions.d.ts +10 -0
- package/dist/m0saic/media/qr/stamp-video/v1/expressions.js +18 -0
- package/dist/m0saic/media/qr/stamp-video/v1/gleamBand.d.ts +115 -0
- package/dist/m0saic/media/qr/stamp-video/v1/gleamBand.js +206 -0
- package/dist/m0saic/media/qr/stamp-video/v1/index.d.ts +2 -0
- package/dist/m0saic/media/qr/stamp-video/v1/index.js +9 -0
- package/dist/m0saic/media/qr/stamp-video/v1/qr-stamp.d.ts +82 -0
- package/dist/m0saic/media/qr/stamp-video/v1/qr-stamp.js +424 -0
- package/dist/m0saic/media/screencap_grid/index.d.ts +3 -0
- package/dist/m0saic/media/screencap_grid/index.js +9 -0
- package/dist/m0saic/media/screencap_grid/internal/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid/internal/index.js +5 -0
- package/dist/m0saic/media/screencap_grid/internal/info_pane.d.ts +13 -0
- package/dist/m0saic/media/screencap_grid/internal/info_pane.js +130 -0
- package/dist/m0saic/media/screencap_grid/v1/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid/v1/index.js +5 -0
- package/dist/m0saic/media/screencap_grid/v1/screencap-grid.d.ts +162 -0
- package/dist/m0saic/media/screencap_grid/v1/screencap-grid.js +690 -0
- package/dist/m0saic/media/screencap_grid/v2/assets/tutorial-sheet.jpg +0 -0
- package/dist/m0saic/media/screencap_grid/v2/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid/v2/index.js +5 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover-assets.d.ts +9 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover-assets.js +12 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover.d.ts +97 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-cover.js +367 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-tutorial.d.ts +38 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid-tutorial.js +530 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid.d.ts +194 -0
- package/dist/m0saic/media/screencap_grid/v2/screencap-grid.js +615 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/index.js +5 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/assets/pair-sheet.jpg +0 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/index.d.ts +1 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/index.js +5 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-cover.d.ts +18 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-cover.js +191 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-tutorial.d.ts +13 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe-tutorial.js +355 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe.d.ts +179 -0
- package/dist/m0saic/media/screencap_grid_aspect_safe/v1/screencap-grid-aspect-safe.js +544 -0
- package/dist/m0saic/media/scroll_wall/index.d.ts +1 -0
- package/dist/m0saic/media/scroll_wall/index.js +5 -0
- package/dist/m0saic/media/scroll_wall/v1/geometry.d.ts +131 -0
- package/dist/m0saic/media/scroll_wall/v1/geometry.js +172 -0
- package/dist/m0saic/media/scroll_wall/v1/index.d.ts +1 -0
- package/dist/m0saic/media/scroll_wall/v1/index.js +5 -0
- package/dist/m0saic/media/scroll_wall/v1/motion.d.ts +114 -0
- package/dist/m0saic/media/scroll_wall/v1/motion.js +141 -0
- package/dist/m0saic/media/scroll_wall/v1/scroll-wall.d.ts +182 -0
- package/dist/m0saic/media/scroll_wall/v1/scroll-wall.js +432 -0
- package/dist/m0saic/media/subtitle-burn/index.d.ts +1 -0
- package/dist/m0saic/media/subtitle-burn/index.js +17 -0
- package/dist/m0saic/media/subtitle-burn/v1/assets/cover-frame.jpg +0 -0
- package/dist/m0saic/media/subtitle-burn/v1/index.d.ts +1 -0
- package/dist/m0saic/media/subtitle-burn/v1/index.js +6 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn-cover.d.ts +13 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn-cover.js +196 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn.d.ts +137 -0
- package/dist/m0saic/media/subtitle-burn/v1/subtitle-burn.js +603 -0
- package/dist/m0saic/media/trickplay/index.d.ts +1 -0
- package/dist/m0saic/media/trickplay/index.js +17 -0
- package/dist/m0saic/media/trickplay/v1/index.d.ts +4 -0
- package/dist/m0saic/media/trickplay/v1/index.js +18 -0
- package/dist/m0saic/media/trickplay/v1/pipeline.d.ts +51 -0
- package/dist/m0saic/media/trickplay/v1/pipeline.js +180 -0
- package/dist/m0saic/media/trickplay/v1/plan.d.ts +65 -0
- package/dist/m0saic/media/trickplay/v1/plan.js +76 -0
- package/dist/m0saic/media/trickplay/v1/sidecars.d.ts +79 -0
- package/dist/m0saic/media/trickplay/v1/sidecars.js +89 -0
- package/dist/m0saic/media/trickplay/v1/trickplay.d.ts +40 -0
- package/dist/m0saic/media/trickplay/v1/trickplay.js +123 -0
- package/dist/m0saic/media/video_to_png_sequence/index.d.ts +1 -0
- package/dist/m0saic/media/video_to_png_sequence/index.js +5 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/index.d.ts +1 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/index.js +5 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/video-to-png-sequence.d.ts +37 -0
- package/dist/m0saic/media/video_to_png_sequence/v1/video-to-png-sequence.js +234 -0
- package/dist/m0saic/media/watermark/index.d.ts +1 -0
- package/dist/m0saic/media/watermark/index.js +17 -0
- package/dist/m0saic/media/watermark/v1/adaptive.d.ts +85 -0
- package/dist/m0saic/media/watermark/v1/adaptive.js +162 -0
- package/dist/m0saic/media/watermark/v1/content.d.ts +56 -0
- package/dist/m0saic/media/watermark/v1/content.js +160 -0
- package/dist/m0saic/media/watermark/v1/geometry.d.ts +138 -0
- package/dist/m0saic/media/watermark/v1/geometry.js +247 -0
- package/dist/m0saic/media/watermark/v1/index.d.ts +3 -0
- package/dist/m0saic/media/watermark/v1/index.js +5 -0
- package/dist/m0saic/media/watermark/v1/pageGrid.d.ts +105 -0
- package/dist/m0saic/media/watermark/v1/pageGrid.js +203 -0
- package/dist/m0saic/media/watermark/v1/pipeline.d.ts +68 -0
- package/dist/m0saic/media/watermark/v1/pipeline.js +324 -0
- package/dist/m0saic/media/watermark/v1/watermark.d.ts +88 -0
- package/dist/m0saic/media/watermark/v1/watermark.js +452 -0
- package/dist/m0saic/meta/camera-debug/index.d.ts +1 -0
- package/dist/m0saic/meta/camera-debug/index.js +17 -0
- package/dist/m0saic/meta/camera-debug/v1/camera-debug.d.ts +98 -0
- package/dist/m0saic/meta/camera-debug/v1/camera-debug.js +490 -0
- package/dist/m0saic/meta/fixture-fetcher/index.d.ts +1 -0
- package/dist/m0saic/meta/fixture-fetcher/index.js +17 -0
- package/dist/m0saic/meta/fixture-fetcher/v1/fixture-fetcher.d.ts +76 -0
- package/dist/m0saic/meta/fixture-fetcher/v1/fixture-fetcher.js +159 -0
- package/dist/m0saic/meta/hot-reload-smoke/index.d.ts +1 -0
- package/dist/m0saic/meta/hot-reload-smoke/index.js +17 -0
- package/dist/m0saic/meta/hot-reload-smoke/v1/hot-reload-smoke.d.ts +50 -0
- package/dist/m0saic/meta/hot-reload-smoke/v1/hot-reload-smoke.js +131 -0
- package/dist/m0saic/meta/index.d.ts +13 -0
- package/dist/m0saic/meta/index.js +29 -0
- package/dist/m0saic/meta/post-mortem/index.d.ts +1 -0
- package/dist/m0saic/meta/post-mortem/index.js +17 -0
- package/dist/m0saic/meta/post-mortem/v1/assets/human.png +0 -0
- package/dist/m0saic/meta/post-mortem/v1/assets/robot.png +0 -0
- package/dist/m0saic/meta/post-mortem/v1/post-mortem.d.ts +47 -0
- package/dist/m0saic/meta/post-mortem/v1/post-mortem.js +634 -0
- package/dist/m0saic/meta/upstream-echo/index.d.ts +1 -0
- package/dist/m0saic/meta/upstream-echo/index.js +17 -0
- package/dist/m0saic/meta/upstream-echo/v1/upstream-echo.d.ts +52 -0
- package/dist/m0saic/meta/upstream-echo/v1/upstream-echo.js +138 -0
- package/dist/m0saic/primitives/grid/index.d.ts +2 -0
- package/dist/m0saic/primitives/grid/index.js +7 -0
- package/dist/m0saic/primitives/grid/v1/grid.d.ts +85 -0
- package/dist/m0saic/primitives/grid/v1/grid.js +217 -0
- package/dist/m0saic/primitives/grid/v2/grid.d.ts +80 -0
- package/dist/m0saic/primitives/grid/v2/grid.js +150 -0
- package/dist/m0saic/primitives/index.d.ts +1 -0
- package/dist/m0saic/primitives/index.js +17 -0
- package/dist/m0saic/social/index.d.ts +1 -0
- package/dist/m0saic/social/index.js +17 -0
- package/dist/m0saic/social/quote-card/index.d.ts +1 -0
- package/dist/m0saic/social/quote-card/index.js +17 -0
- package/dist/m0saic/social/quote-card/v1/index.d.ts +2 -0
- package/dist/m0saic/social/quote-card/v1/index.js +5 -0
- package/dist/m0saic/social/quote-card/v1/layout.d.ts +119 -0
- package/dist/m0saic/social/quote-card/v1/layout.js +323 -0
- package/dist/m0saic/social/quote-card/v1/quote-card.d.ts +51 -0
- package/dist/m0saic/social/quote-card/v1/quote-card.js +310 -0
- package/dist/m0saic/story/index.d.ts +2 -0
- package/dist/m0saic/story/index.js +20 -0
- package/dist/m0saic/story/narrated-chapters/index.d.ts +1 -0
- package/dist/m0saic/story/narrated-chapters/index.js +17 -0
- package/dist/m0saic/story/narrated-chapters/v1/captions.d.ts +42 -0
- package/dist/m0saic/story/narrated-chapters/v1/captions.js +200 -0
- package/dist/m0saic/story/narrated-chapters/v1/demo-fixture.d.ts +13 -0
- package/dist/m0saic/story/narrated-chapters/v1/demo-fixture.js +52 -0
- package/dist/m0saic/story/narrated-chapters/v1/index.d.ts +2 -0
- package/dist/m0saic/story/narrated-chapters/v1/index.js +5 -0
- package/dist/m0saic/story/narrated-chapters/v1/kenburns.d.ts +50 -0
- package/dist/m0saic/story/narrated-chapters/v1/kenburns.js +0 -0
- package/dist/m0saic/story/narrated-chapters/v1/layout.d.ts +103 -0
- package/dist/m0saic/story/narrated-chapters/v1/layout.js +162 -0
- package/dist/m0saic/story/narrated-chapters/v1/narrated-chapters.d.ts +22 -0
- package/dist/m0saic/story/narrated-chapters/v1/narrated-chapters.js +160 -0
- package/dist/m0saic/story/narrated-chapters/v1/pipeline.d.ts +43 -0
- package/dist/m0saic/story/narrated-chapters/v1/pipeline.js +94 -0
- package/dist/m0saic/story/narrated-chapters/v1/plan.d.ts +144 -0
- package/dist/m0saic/story/narrated-chapters/v1/plan.js +372 -0
- package/dist/m0saic/story/narrated-chapters/v1/props.d.ts +147 -0
- package/dist/m0saic/story/narrated-chapters/v1/props.js +205 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/body.d.ts +64 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/body.js +253 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/card.d.ts +40 -0
- package/dist/m0saic/story/narrated-chapters/v1/scenes/card.js +201 -0
- package/dist/m0saic/story/narrated-chapters/v1/theme.d.ts +25 -0
- package/dist/m0saic/story/narrated-chapters/v1/theme.js +38 -0
- package/dist/m0saic/story/scrapbook/v1/document.d.ts +41 -0
- package/dist/m0saic/story/scrapbook/v1/document.js +124 -0
- package/dist/m0saic/story/scrapbook/v1/index.d.ts +1 -0
- package/dist/m0saic/story/scrapbook/v1/index.js +9 -0
- package/dist/m0saic/story/scrapbook/v1/page.d.ts +34 -0
- package/dist/m0saic/story/scrapbook/v1/page.js +121 -0
- package/dist/m0saic/story/scrapbook/v1/pages.d.ts +29 -0
- package/dist/m0saic/story/scrapbook/v1/pages.js +37 -0
- package/dist/m0saic/story/scrapbook/v1/pipeline.d.ts +44 -0
- package/dist/m0saic/story/scrapbook/v1/pipeline.js +130 -0
- package/dist/m0saic/story/scrapbook/v1/placeholder.d.ts +22 -0
- package/dist/m0saic/story/scrapbook/v1/placeholder.js +51 -0
- package/dist/m0saic/story/scrapbook/v1/props.d.ts +66 -0
- package/dist/m0saic/story/scrapbook/v1/props.js +80 -0
- package/dist/m0saic/story/scrapbook/v1/scrapbook.d.ts +23 -0
- package/dist/m0saic/story/scrapbook/v1/scrapbook.js +77 -0
- package/dist/m0saic/theming/index.d.ts +1 -0
- package/dist/m0saic/theming/index.js +17 -0
- package/dist/m0saic/theming/v1/brand-m-glyph.d.ts +14 -0
- package/dist/m0saic/theming/v1/brand-m-glyph.js +12 -0
- package/dist/m0saic/theming/v1/index.d.ts +2 -0
- package/dist/m0saic/theming/v1/index.js +16 -0
- package/dist/m0saic/theming/v1/theme-tokens.d.ts +71 -0
- package/dist/m0saic/theming/v1/theme-tokens.js +111 -0
- package/dist/m0saic/theming/v1/theming.d.ts +18 -0
- package/dist/m0saic/theming/v1/theming.js +94 -0
- package/dist/m0saic/theming/v1/token-sheet.d.ts +23 -0
- package/dist/m0saic/theming/v1/token-sheet.js +191 -0
- package/dist/m0saic/web/index.d.ts +1 -0
- package/dist/m0saic/web/index.js +17 -0
- package/dist/m0saic/web/page-skeleton/v1/capture/capture-snippet-source.d.ts +1 -0
- package/dist/m0saic/web/page-skeleton/v1/capture/capture-snippet-source.js +528 -0
- package/dist/m0saic/web/page-skeleton/v1/index.d.ts +1 -0
- package/dist/m0saic/web/page-skeleton/v1/index.js +5 -0
- package/dist/m0saic/web/page-skeleton/v1/layout.d.ts +107 -0
- package/dist/m0saic/web/page-skeleton/v1/layout.js +246 -0
- package/dist/m0saic/web/page-skeleton/v1/page-skeleton.d.ts +148 -0
- package/dist/m0saic/web/page-skeleton/v1/page-skeleton.js +787 -0
- package/dist/m0saic/web/page-skeleton/v1/sample-capture.d.ts +7 -0
- package/dist/m0saic/web/page-skeleton/v1/sample-capture.js +50 -0
- package/dist/m0saic/web/page-skeleton/v1/schema.d.ts +35 -0
- package/dist/m0saic/web/page-skeleton/v1/schema.js +132 -0
- package/dist/m0saic/wireframe/animated/v1/animated-wireframe.d.ts +93 -0
- package/dist/m0saic/wireframe/animated/v1/animated-wireframe.js +580 -0
- package/dist/m0saic/wireframe/animated/v1/index.d.ts +1 -0
- package/dist/m0saic/wireframe/animated/v1/index.js +5 -0
- package/dist/m0saic/wireframe/base/v1/index.d.ts +1 -0
- package/dist/m0saic/wireframe/base/v1/index.js +5 -0
- package/dist/m0saic/wireframe/base/v1/wireframe.d.ts +68 -0
- package/dist/m0saic/wireframe/base/v1/wireframe.js +372 -0
- package/dist/m0saic/wireframe/base/v2/index.d.ts +2 -0
- package/dist/m0saic/wireframe/base/v2/index.js +9 -0
- package/dist/m0saic/wireframe/base/v2/wireframe.d.ts +166 -0
- package/dist/m0saic/wireframe/base/v2/wireframe.js +1181 -0
- package/dist/m0saic/wireframe/index.d.ts +4 -0
- package/dist/m0saic/wireframe/index.js +16 -0
- package/dist/m0saic/wireframe/utils/paperGrid.d.ts +53 -0
- package/dist/m0saic/wireframe/utils/paperGrid.js +91 -0
- package/dist/m0saic/wireframe/utils/wireframeCell.d.ts +35 -0
- package/dist/m0saic/wireframe/utils/wireframeCell.js +278 -0
- package/dist/registry.d.ts +4 -0
- package/dist/registry.js +7 -0
- package/dist/repo.d.ts +11 -0
- package/dist/repo.js +39 -0
- package/dist/template-registry.d.ts +18 -0
- package/dist/template-registry.js +888 -0
- package/dist/web.d.ts +35 -0
- package/dist/web.js +88 -0
- package/dist/webTemplateIds.d.ts +6 -0
- package/dist/webTemplateIds.js +80 -0
- package/package.json +52 -0
- package/template-manifest.json +1635 -0
- package/web-template-ids.json +84 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** Pure state → diff/motion → pipeline-step planning for snippet-morph v1. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MAX_ANIMATED_UNITS = exports.DEFAULT_MORPH_TIMING = void 0;
|
|
5
|
+
exports.computeMorphTimeline = computeMorphTimeline;
|
|
6
|
+
exports.buildSnippetMorphPlan = buildSnippetMorphPlan;
|
|
7
|
+
const code_diff_1 = require("../../../_shared/code-diff");
|
|
8
|
+
const code_lexer_1 = require("../../../_shared/code-lexer");
|
|
9
|
+
exports.DEFAULT_MORPH_TIMING = {
|
|
10
|
+
morphMs: 750,
|
|
11
|
+
holdMs: 3000,
|
|
12
|
+
leadMs: 0,
|
|
13
|
+
trailMs: 0,
|
|
14
|
+
};
|
|
15
|
+
/** Maximum independently animated code rasters in one transition document. */
|
|
16
|
+
exports.MAX_ANIMATED_UNITS = 16;
|
|
17
|
+
function normalizeDuration(value, fallback, name, allowZero) {
|
|
18
|
+
const selected = value !== null && value !== void 0 ? value : fallback;
|
|
19
|
+
if (!Number.isFinite(selected) ||
|
|
20
|
+
(allowZero ? selected < 0 : selected <= 0)) {
|
|
21
|
+
throw new Error(`${name} must be a finite number ${allowZero ? ">= 0" : "> 0"}, got ${selected}`);
|
|
22
|
+
}
|
|
23
|
+
const rounded = Math.round(selected);
|
|
24
|
+
if (!allowZero && rounded <= 0) {
|
|
25
|
+
throw new Error(`${name} rounds below 1ms, got ${selected}`);
|
|
26
|
+
}
|
|
27
|
+
return rounded;
|
|
28
|
+
}
|
|
29
|
+
function normalizeTiming(input) {
|
|
30
|
+
return {
|
|
31
|
+
morphMs: normalizeDuration(input.morphMs, exports.DEFAULT_MORPH_TIMING.morphMs, "computeMorphTimeline: morphMs", false),
|
|
32
|
+
holdMs: normalizeDuration(input.holdMs, exports.DEFAULT_MORPH_TIMING.holdMs, "computeMorphTimeline: holdMs", true),
|
|
33
|
+
leadMs: normalizeDuration(input.leadMs, exports.DEFAULT_MORPH_TIMING.leadMs, "computeMorphTimeline: leadMs", true),
|
|
34
|
+
trailMs: normalizeDuration(input.trailMs, exports.DEFAULT_MORPH_TIMING.trailMs, "computeMorphTimeline: trailMs", true),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function clamp(value, min, max) {
|
|
38
|
+
return Math.min(max, Math.max(min, value));
|
|
39
|
+
}
|
|
40
|
+
function timeWindow(startMs, endMs, globalOffsetMs) {
|
|
41
|
+
return {
|
|
42
|
+
startMs,
|
|
43
|
+
endMs,
|
|
44
|
+
durationMs: endMs - startMs,
|
|
45
|
+
globalStartMs: globalOffsetMs + startMs,
|
|
46
|
+
globalEndMs: globalOffsetMs + endMs,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Build integer pipeline-step timings from the uniform duration-fit model.
|
|
51
|
+
*
|
|
52
|
+
* Natural duration = lead + S·(morph + hold) + trail. Under a pin every
|
|
53
|
+
* component first scales by one `k`; step durations round independently and
|
|
54
|
+
* the final step owns the exact remainder. A ≥1ms reservation keeps every
|
|
55
|
+
* state present when a very short (but viable) duration is authored.
|
|
56
|
+
*/
|
|
57
|
+
function computeMorphTimeline(stateCount, knobs = {}, targetDurationMs) {
|
|
58
|
+
if (!Number.isInteger(stateCount) || stateCount < 1) {
|
|
59
|
+
throw new Error(`computeMorphTimeline: stateCount must be a positive integer, got ${stateCount}`);
|
|
60
|
+
}
|
|
61
|
+
const normalized = normalizeTiming(knobs);
|
|
62
|
+
const naturalDurationMs = normalized.leadMs +
|
|
63
|
+
stateCount * (normalized.morphMs + normalized.holdMs) +
|
|
64
|
+
normalized.trailMs;
|
|
65
|
+
if (targetDurationMs != null && !Number.isFinite(targetDurationMs)) {
|
|
66
|
+
throw new Error(`computeMorphTimeline: targetDurationMs must be finite, got ${targetDurationMs}`);
|
|
67
|
+
}
|
|
68
|
+
const pinned = targetDurationMs != null && targetDurationMs > 0;
|
|
69
|
+
const durationMs = pinned
|
|
70
|
+
? Math.round(targetDurationMs)
|
|
71
|
+
: naturalDurationMs;
|
|
72
|
+
if (pinned && durationMs < stateCount) {
|
|
73
|
+
throw new Error(`computeMorphTimeline: targetDurationMs must provide at least 1ms per state (${stateCount} states, got ${durationMs}ms)`);
|
|
74
|
+
}
|
|
75
|
+
const scale = durationMs / naturalDurationMs;
|
|
76
|
+
const naturalStepDurations = Array.from({ length: stateCount }, (_, index) => normalized.morphMs +
|
|
77
|
+
normalized.holdMs +
|
|
78
|
+
(index === 0 ? normalized.leadMs : 0) +
|
|
79
|
+
(index === stateCount - 1 ? normalized.trailMs : 0));
|
|
80
|
+
const stepDurations = [];
|
|
81
|
+
let remaining = durationMs;
|
|
82
|
+
for (let index = 0; index < stateCount; index += 1) {
|
|
83
|
+
const remainingSteps = stateCount - index - 1;
|
|
84
|
+
const stepDuration = index === stateCount - 1
|
|
85
|
+
? remaining
|
|
86
|
+
: clamp(Math.round(naturalStepDurations[index] * scale), 1, remaining - remainingSteps);
|
|
87
|
+
stepDurations.push(stepDuration);
|
|
88
|
+
remaining -= stepDuration;
|
|
89
|
+
}
|
|
90
|
+
const steps = [];
|
|
91
|
+
let globalStartMs = 0;
|
|
92
|
+
for (let index = 0; index < stateCount; index += 1) {
|
|
93
|
+
const duration = stepDurations[index];
|
|
94
|
+
const isFirst = index === 0;
|
|
95
|
+
const isLast = index === stateCount - 1;
|
|
96
|
+
const leadEnd = isFirst
|
|
97
|
+
? clamp(Math.round(normalized.leadMs * scale), 0, duration)
|
|
98
|
+
: 0;
|
|
99
|
+
const naturalMorphEnd = (isFirst ? normalized.leadMs : 0) + normalized.morphMs;
|
|
100
|
+
const morphEnd = clamp(Math.round(naturalMorphEnd * scale), leadEnd, duration);
|
|
101
|
+
const scaledTrail = isLast
|
|
102
|
+
? clamp(Math.round(normalized.trailMs * scale), 0, duration)
|
|
103
|
+
: 0;
|
|
104
|
+
const trailStart = isLast
|
|
105
|
+
? clamp(duration - scaledTrail, morphEnd, duration)
|
|
106
|
+
: duration;
|
|
107
|
+
const globalEndMs = globalStartMs + duration;
|
|
108
|
+
steps.push({
|
|
109
|
+
index,
|
|
110
|
+
naturalDurationMs: naturalStepDurations[index],
|
|
111
|
+
durationMs: duration,
|
|
112
|
+
globalStartMs,
|
|
113
|
+
globalEndMs,
|
|
114
|
+
lead: timeWindow(0, leadEnd, globalStartMs),
|
|
115
|
+
morph: timeWindow(leadEnd, morphEnd, globalStartMs),
|
|
116
|
+
hold: timeWindow(morphEnd, trailStart, globalStartMs),
|
|
117
|
+
trail: timeWindow(trailStart, duration, globalStartMs),
|
|
118
|
+
});
|
|
119
|
+
globalStartMs = globalEndMs;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
stateCount,
|
|
123
|
+
knobs: normalized,
|
|
124
|
+
naturalDurationMs,
|
|
125
|
+
durationMs,
|
|
126
|
+
scale,
|
|
127
|
+
pinned,
|
|
128
|
+
steps,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function validateStates(states) {
|
|
132
|
+
if (!Array.isArray(states) || states.length === 0) {
|
|
133
|
+
throw new Error("buildSnippetMorphPlan: states must contain at least one code state");
|
|
134
|
+
}
|
|
135
|
+
states.forEach((state, index) => {
|
|
136
|
+
if (typeof state !== "string") {
|
|
137
|
+
throw new Error(`buildSnippetMorphPlan: states[${index}] must be a string`);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function animatedUnitCount(plan) {
|
|
142
|
+
return (plan.moves.length +
|
|
143
|
+
(plan.removalRaster ? 1 : 0) +
|
|
144
|
+
(plan.additionRaster ? 1 : 0));
|
|
145
|
+
}
|
|
146
|
+
function wholeSnippetCrossfade(beforeLines, afterLines) {
|
|
147
|
+
return {
|
|
148
|
+
...(beforeLines.length > 0
|
|
149
|
+
? {
|
|
150
|
+
removalRaster: {
|
|
151
|
+
kind: "remove",
|
|
152
|
+
lines: beforeLines.map((text, fromLine) => ({
|
|
153
|
+
text,
|
|
154
|
+
fromLine,
|
|
155
|
+
toLine: null,
|
|
156
|
+
})),
|
|
157
|
+
},
|
|
158
|
+
}
|
|
159
|
+
: {}),
|
|
160
|
+
...(afterLines.length > 0
|
|
161
|
+
? {
|
|
162
|
+
additionRaster: {
|
|
163
|
+
kind: "add",
|
|
164
|
+
lines: afterLines.map((text, toLine) => ({
|
|
165
|
+
text,
|
|
166
|
+
fromLine: null,
|
|
167
|
+
toLine,
|
|
168
|
+
})),
|
|
169
|
+
},
|
|
170
|
+
}
|
|
171
|
+
: {}),
|
|
172
|
+
moves: [],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
/** Build the complete pure plan consumed by the raster/document seams. */
|
|
176
|
+
function buildSnippetMorphPlan(spec) {
|
|
177
|
+
var _a, _b;
|
|
178
|
+
if (spec == null || typeof spec !== "object") {
|
|
179
|
+
throw new Error("buildSnippetMorphPlan: spec must be an object");
|
|
180
|
+
}
|
|
181
|
+
validateStates(spec.states);
|
|
182
|
+
const language = (_a = spec.language) !== null && _a !== void 0 ? _a : "ts";
|
|
183
|
+
const tabWidth = (_b = spec.tabWidth) !== null && _b !== void 0 ? _b : 2;
|
|
184
|
+
const states = spec.states.map((state) => (0, code_lexer_1.lexTsJs)(state, language, { tabWidth }));
|
|
185
|
+
const timeline = computeMorphTimeline(states.length, spec.timing, spec.targetDurationMs);
|
|
186
|
+
const transitions = states.map((state, index) => {
|
|
187
|
+
const beforeLines = index === 0
|
|
188
|
+
? []
|
|
189
|
+
: states[index - 1].lines.map((line) => line.text);
|
|
190
|
+
const afterLines = state.lines.map((line) => line.text);
|
|
191
|
+
const ops = (0, code_diff_1.lcsDiffLines)(beforeLines, afterLines);
|
|
192
|
+
const units = (0, code_diff_1.groupMotionUnits)(ops);
|
|
193
|
+
const morphPlan = (0, code_diff_1.coalesceFadeUnits)(units, "block");
|
|
194
|
+
const requestedAnimatedUnitCount = animatedUnitCount(morphPlan);
|
|
195
|
+
const renderMode = index > 0 && requestedAnimatedUnitCount > exports.MAX_ANIMATED_UNITS
|
|
196
|
+
? "crossfade"
|
|
197
|
+
: "morph";
|
|
198
|
+
return {
|
|
199
|
+
index,
|
|
200
|
+
fromStateIndex: index === 0 ? null : index - 1,
|
|
201
|
+
toStateIndex: index,
|
|
202
|
+
ops,
|
|
203
|
+
units,
|
|
204
|
+
requestedAnimatedUnitCount,
|
|
205
|
+
renderMode,
|
|
206
|
+
coalesced: renderMode === "crossfade"
|
|
207
|
+
? wholeSnippetCrossfade(beforeLines, afterLines)
|
|
208
|
+
: morphPlan,
|
|
209
|
+
};
|
|
210
|
+
});
|
|
211
|
+
const steps = transitions.map((transition, index) => ({
|
|
212
|
+
index,
|
|
213
|
+
stateIndex: index,
|
|
214
|
+
durationMs: timeline.steps[index].durationMs,
|
|
215
|
+
timing: timeline.steps[index],
|
|
216
|
+
transition,
|
|
217
|
+
}));
|
|
218
|
+
return {
|
|
219
|
+
language,
|
|
220
|
+
tabWidth,
|
|
221
|
+
states,
|
|
222
|
+
transitions,
|
|
223
|
+
timeline,
|
|
224
|
+
steps,
|
|
225
|
+
};
|
|
226
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step / document construction for snippet-morph v1.
|
|
3
|
+
*
|
|
4
|
+
* Every code LINE is ONE svg text source: one layer per token run, each in
|
|
5
|
+
* its token colour, placed on the monospace grid by an absolute px `xExpr`. The engine
|
|
6
|
+
* rasterizes such a source to a single coloured RGBA image (core svg text,
|
|
7
|
+
* multi-colour route) — one animatable unit per line — and Make's preview
|
|
8
|
+
* draws the very same document. There is no template-side rasterizer and no
|
|
9
|
+
* separate preview stand-in.
|
|
10
|
+
*/
|
|
11
|
+
import { type MosaicDocument, type MosaicDocumentPipeline } from "@m0saic/types";
|
|
12
|
+
import type { CodeTheme } from "../../../_shared/code-theme";
|
|
13
|
+
import type { LexedCodeState } from "../../../_shared/code-lexer";
|
|
14
|
+
import { type SnippetFrameGeometry } from "./chrome";
|
|
15
|
+
import type { MorphStepTiming, SnippetMorphPlan, TransitionPlan } from "./plan";
|
|
16
|
+
export type SnippetCodeAlign = "left" | "center";
|
|
17
|
+
export type SnippetAddEntrance = "fade" | "rise";
|
|
18
|
+
export interface SnippetMotionOptions {
|
|
19
|
+
reduceMotion: boolean;
|
|
20
|
+
addEntrance: SnippetAddEntrance;
|
|
21
|
+
}
|
|
22
|
+
/** Typography of the code grid. */
|
|
23
|
+
export interface SnippetTextStyle {
|
|
24
|
+
fontSize: number;
|
|
25
|
+
lineHeight: number;
|
|
26
|
+
fontFamily?: string;
|
|
27
|
+
fontWeight?: number | "normal" | "bold";
|
|
28
|
+
fontStyle?: "normal" | "italic";
|
|
29
|
+
}
|
|
30
|
+
export interface SnippetStepVisualOptions extends SnippetTextStyle {
|
|
31
|
+
title: string;
|
|
32
|
+
showChrome: boolean;
|
|
33
|
+
trafficLights: boolean;
|
|
34
|
+
lineNumbers: boolean;
|
|
35
|
+
codeAlign: SnippetCodeAlign;
|
|
36
|
+
/** Card fills the canvas (no outer margin). */
|
|
37
|
+
fullBleed?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/** One RAW line of a `states[i]` string: its text and `[start, end)` span
|
|
40
|
+
* in the prop value (newline excluded). Offsets index the raw prop — what
|
|
41
|
+
* Make's ranged inline edit splices — not the tab-expanded lexer copy. */
|
|
42
|
+
export type LiteLineSpan = {
|
|
43
|
+
start: number;
|
|
44
|
+
end: number;
|
|
45
|
+
raw: string;
|
|
46
|
+
};
|
|
47
|
+
export type LiteBindSpans = {
|
|
48
|
+
tabWidth: number;
|
|
49
|
+
/** Line spans of the state the step shows (`states[bindStateIndex]`). */
|
|
50
|
+
current?: LiteLineSpan[];
|
|
51
|
+
/** Line spans of the previous state (removed lines bind there). */
|
|
52
|
+
previous?: LiteLineSpan[];
|
|
53
|
+
};
|
|
54
|
+
/** Split a raw state into line spans the way the lexer splits lines
|
|
55
|
+
* (`\r\n` / `\r` / `\n`; a trailing newline yields an empty last line). */
|
|
56
|
+
export declare function rawLineSpans(raw: string): LiteLineSpan[];
|
|
57
|
+
/** Raw string offset (UTF-16 units) of a character-grid column in a raw
|
|
58
|
+
* line: tabs advance `tabWidth` columns (the lexer expands them so), wide
|
|
59
|
+
* glyphs two, astral glyphs one column over two code units. */
|
|
60
|
+
export declare function rawOffsetForColumn(rawLine: string, col: number, tabWidth: number): number;
|
|
61
|
+
export interface BuildSnippetDocumentSpec {
|
|
62
|
+
state: LexedCodeState;
|
|
63
|
+
geometry: SnippetFrameGeometry;
|
|
64
|
+
theme: CodeTheme;
|
|
65
|
+
visual: SnippetStepVisualOptions;
|
|
66
|
+
width: number;
|
|
67
|
+
height: number;
|
|
68
|
+
fps: number;
|
|
69
|
+
durationMs: number;
|
|
70
|
+
/** Morph context for an animated step (absent → the state at rest). */
|
|
71
|
+
transition?: TransitionPlan;
|
|
72
|
+
previousState?: LexedCodeState;
|
|
73
|
+
stepTiming?: MorphStepTiming;
|
|
74
|
+
motion?: SnippetMotionOptions;
|
|
75
|
+
/** `states[]` index the code lines bind to (Make double-click → edit). */
|
|
76
|
+
bindStateIndex?: number;
|
|
77
|
+
bindPreviousStateIndex?: number;
|
|
78
|
+
/** Raw line spans of the bound states — each line then binds ITS span. */
|
|
79
|
+
bindSpans?: LiteBindSpans;
|
|
80
|
+
}
|
|
81
|
+
/** One state's document: chrome + code lines (+ the morph into it). */
|
|
82
|
+
export declare function buildSnippetDocument(spec: BuildSnippetDocumentSpec): MosaicDocument;
|
|
83
|
+
export interface BuildSnippetPipelineSpec {
|
|
84
|
+
plan: SnippetMorphPlan;
|
|
85
|
+
/** The RAW `states` prop + tab width: each code line then binds ITS line
|
|
86
|
+
* of its state in raw offsets (Make ranged inline edit). Absent →
|
|
87
|
+
* whole-state bindings. */
|
|
88
|
+
rawStates?: string[];
|
|
89
|
+
tabWidth?: number;
|
|
90
|
+
geometry: SnippetFrameGeometry;
|
|
91
|
+
theme: CodeTheme;
|
|
92
|
+
visual: SnippetStepVisualOptions;
|
|
93
|
+
width: number;
|
|
94
|
+
height: number;
|
|
95
|
+
fps: number;
|
|
96
|
+
motion: SnippetMotionOptions;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The per-state cut pipeline — one document per state, each carrying the
|
|
100
|
+
* morph INTO it, step lengths from the plan's timing. The same pipeline is
|
|
101
|
+
* the explicit render and Make's live preview (which scrubs it step by step).
|
|
102
|
+
*/
|
|
103
|
+
export declare function buildSnippetPipeline(spec: BuildSnippetPipelineSpec): MosaicDocumentPipeline;
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Step / document construction for snippet-morph v1.
|
|
4
|
+
*
|
|
5
|
+
* Every code LINE is ONE svg text source: one layer per token run, each in
|
|
6
|
+
* its token colour, placed on the monospace grid by an absolute px `xExpr`. The engine
|
|
7
|
+
* rasterizes such a source to a single coloured RGBA image (core svg text,
|
|
8
|
+
* multi-colour route) — one animatable unit per line — and Make's preview
|
|
9
|
+
* draws the very same document. There is no template-side rasterizer and no
|
|
10
|
+
* separate preview stand-in.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.rawLineSpans = rawLineSpans;
|
|
14
|
+
exports.rawOffsetForColumn = rawOffsetForColumn;
|
|
15
|
+
exports.buildSnippetDocument = buildSnippetDocument;
|
|
16
|
+
exports.buildSnippetPipeline = buildSnippetPipeline;
|
|
17
|
+
const template_utils_1 = require("@m0saic/template-utils");
|
|
18
|
+
const code_metrics_1 = require("../../../_shared/code-metrics");
|
|
19
|
+
const chrome_1 = require("./chrome");
|
|
20
|
+
/** Split a raw state into line spans the way the lexer splits lines
|
|
21
|
+
* (`\r\n` / `\r` / `\n`; a trailing newline yields an empty last line). */
|
|
22
|
+
function rawLineSpans(raw) {
|
|
23
|
+
const spans = [];
|
|
24
|
+
const re = /\r\n|\r|\n/g;
|
|
25
|
+
let start = 0;
|
|
26
|
+
let m;
|
|
27
|
+
while ((m = re.exec(raw))) {
|
|
28
|
+
spans.push({ start, end: m.index, raw: raw.slice(start, m.index) });
|
|
29
|
+
start = m.index + m[0].length;
|
|
30
|
+
}
|
|
31
|
+
spans.push({ start, end: raw.length, raw: raw.slice(start) });
|
|
32
|
+
return spans;
|
|
33
|
+
}
|
|
34
|
+
/** Raw string offset (UTF-16 units) of a character-grid column in a raw
|
|
35
|
+
* line: tabs advance `tabWidth` columns (the lexer expands them so), wide
|
|
36
|
+
* glyphs two, astral glyphs one column over two code units. */
|
|
37
|
+
function rawOffsetForColumn(rawLine, col, tabWidth) {
|
|
38
|
+
let cols = 0;
|
|
39
|
+
let offset = 0;
|
|
40
|
+
for (const ch of rawLine) {
|
|
41
|
+
if (cols >= col)
|
|
42
|
+
break;
|
|
43
|
+
cols += ch === "\t" ? tabWidth : (0, code_metrics_1.codeColumnCount)(ch);
|
|
44
|
+
offset += ch.length;
|
|
45
|
+
}
|
|
46
|
+
return offset;
|
|
47
|
+
}
|
|
48
|
+
function codeOffsetX(state, geometry, visual) {
|
|
49
|
+
if (visual.codeAlign === "left")
|
|
50
|
+
return 0;
|
|
51
|
+
const metrics = (0, code_metrics_1.measureCodeGrid)(state.lines, {
|
|
52
|
+
fontSize: visual.fontSize,
|
|
53
|
+
lineHeight: visual.lineHeight,
|
|
54
|
+
});
|
|
55
|
+
return Math.max(0, Math.floor((geometry.codeArea.w - metrics.width) / 2));
|
|
56
|
+
}
|
|
57
|
+
function seconds(milliseconds) {
|
|
58
|
+
return milliseconds / 1000;
|
|
59
|
+
}
|
|
60
|
+
function intersectRect(rect, bounds) {
|
|
61
|
+
const left = Math.max(rect.x, bounds.x);
|
|
62
|
+
const top = Math.max(rect.y, bounds.y);
|
|
63
|
+
const right = Math.min(rect.x + rect.w, bounds.x + bounds.w);
|
|
64
|
+
const bottom = Math.min(rect.y + rect.h, bounds.y + bounds.h);
|
|
65
|
+
if (right <= left || bottom <= top)
|
|
66
|
+
return null;
|
|
67
|
+
return { x: left, y: top, w: right - left, h: bottom - top };
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* One code line as ONE svg text source: a layer per token run, each in its
|
|
71
|
+
* token colour, placed at `col × charW` px from the line box's left edge
|
|
72
|
+
* (a plain-number `xExpr` — an absolute px offset for the engine's svg text
|
|
73
|
+
* path AND the preview, so the grid never scales with the quantized frame
|
|
74
|
+
* width a fractional padding would). `vAlign: "top"` puts every run's
|
|
75
|
+
* baseline at `ascent` from the row top: the line-box model the gutter
|
|
76
|
+
* numbers share. Returns null for a blank line (nothing to draw, nothing to bind).
|
|
77
|
+
*/
|
|
78
|
+
function codeLineSource(line, box, metrics, theme, visual, overlay, bindIndex, bindSpan) {
|
|
79
|
+
var _a;
|
|
80
|
+
const layers = [];
|
|
81
|
+
line.tokens.forEach((token) => {
|
|
82
|
+
var _a;
|
|
83
|
+
for (const match of token.text.matchAll(/\S+/gu)) {
|
|
84
|
+
const text = match[0];
|
|
85
|
+
const prefix = token.text.slice(0, (_a = match.index) !== null && _a !== void 0 ? _a : 0);
|
|
86
|
+
const startCol = token.col + (0, code_metrics_1.codeColumnCount)(prefix);
|
|
87
|
+
const startPx = startCol * metrics.charW;
|
|
88
|
+
if (startPx >= box.w)
|
|
89
|
+
continue; // starts past the code area's right edge
|
|
90
|
+
layers.push({
|
|
91
|
+
content: { kind: "literal", text },
|
|
92
|
+
style: { fontColor: theme.syntax[token.kind] },
|
|
93
|
+
placement: {
|
|
94
|
+
hAlign: "left",
|
|
95
|
+
vAlign: "top",
|
|
96
|
+
xExpr: String(Math.round(startPx * 1000) / 1000),
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
if (layers.length === 0)
|
|
102
|
+
return null;
|
|
103
|
+
const source = {
|
|
104
|
+
type: "text",
|
|
105
|
+
rasterizer: "svg",
|
|
106
|
+
renderMode: { kind: "image" },
|
|
107
|
+
visual: { backgroundColor: "black@0" },
|
|
108
|
+
style: {
|
|
109
|
+
fontFamily: (_a = visual.fontFamily) !== null && _a !== void 0 ? _a : "JetBrains Mono",
|
|
110
|
+
fontSize: visual.fontSize,
|
|
111
|
+
...(visual.fontWeight != null ? { fontWeight: visual.fontWeight } : {}),
|
|
112
|
+
...(visual.fontStyle != null ? { fontStyle: visual.fontStyle } : {}),
|
|
113
|
+
},
|
|
114
|
+
layers,
|
|
115
|
+
editor: { owner: "template" },
|
|
116
|
+
};
|
|
117
|
+
if (overlay)
|
|
118
|
+
source.overlay = overlay;
|
|
119
|
+
// Make double-click → inline edit of THIS line of its state (range in
|
|
120
|
+
// raw-prop offsets); without spans, the whole state.
|
|
121
|
+
if (bindIndex != null) {
|
|
122
|
+
if (bindSpan)
|
|
123
|
+
(0, template_utils_1.bindPropRange)(source, "states", bindIndex, { start: bindSpan.start, end: bindSpan.end });
|
|
124
|
+
else
|
|
125
|
+
(0, template_utils_1.bindProp)(source, "states", bindIndex);
|
|
126
|
+
}
|
|
127
|
+
return source;
|
|
128
|
+
}
|
|
129
|
+
/** Grid column just past the last glyph of a line (0 for a blank line). */
|
|
130
|
+
function lineEndCol(line) {
|
|
131
|
+
let end = 0;
|
|
132
|
+
for (const token of line.tokens) {
|
|
133
|
+
const trimmed = token.text.replace(/\s+$/u, "");
|
|
134
|
+
if (trimmed.length > 0)
|
|
135
|
+
end = Math.max(end, token.col + (0, code_metrics_1.codeColumnCount)(trimmed));
|
|
136
|
+
}
|
|
137
|
+
return end;
|
|
138
|
+
}
|
|
139
|
+
/** Pixels kept to the right of the last glyph: room for a glyph's ink to
|
|
140
|
+
* overhang its advance box (anti-aliasing, italics) so nothing is clipped,
|
|
141
|
+
* and a little air for the hover ring. The raster itself is width-agnostic
|
|
142
|
+
* (measured: the same glyphs in a 26 px and a 300 px tile are pixel-identical). */
|
|
143
|
+
const LINE_BOX_INK_PAD_PX = 6;
|
|
144
|
+
function linePiece(line, row, offsetX, geometry, metrics, theme, visual, importance, overlay, bindIndex, bindSpan) {
|
|
145
|
+
if (!line)
|
|
146
|
+
return null;
|
|
147
|
+
const area = geometry.codeArea;
|
|
148
|
+
// The line box HUGS its text: from the code column to just past the last
|
|
149
|
+
// glyph (clipped at the code area's right edge). The render is unchanged
|
|
150
|
+
// (runs sit at absolute px), the raster is only as wide as the ink, and in
|
|
151
|
+
// Make the hover ring, the edit handle and the inline editor wrap the text
|
|
152
|
+
// instead of running to the far edge of the card.
|
|
153
|
+
const inkW = Math.ceil(lineEndCol(line) * metrics.charW) + LINE_BOX_INK_PAD_PX;
|
|
154
|
+
const box = intersectRect({ x: area.x + offsetX, y: area.y + row * metrics.lineStep, w: Math.max(1, Math.min(inkW, area.w - offsetX)), h: metrics.lineStep }, area);
|
|
155
|
+
if (!box || box.h < 2)
|
|
156
|
+
return null;
|
|
157
|
+
const source = codeLineSource(line, box, metrics, theme, visual, overlay, bindIndex, bindSpan);
|
|
158
|
+
if (!source)
|
|
159
|
+
return null;
|
|
160
|
+
return { rect: { ...box, importance }, source };
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Code pieces for one step. With a morph context the lines carry the
|
|
164
|
+
* transition's overlay expressions — persisting lines slide from their
|
|
165
|
+
* previous row, added lines fade (and rise) in, removed lines fade out at
|
|
166
|
+
* their old row (drawn from the previous state). Without one (first state,
|
|
167
|
+
* reduced motion) the state sits at rest.
|
|
168
|
+
*/
|
|
169
|
+
function codePieces(state, geometry, theme, visual, motionCtx, bindStateIndex, bindPreviousStateIndex, bindSpans) {
|
|
170
|
+
const metrics = (0, code_metrics_1.measureCodeGrid)(state.lines, {
|
|
171
|
+
fontSize: visual.fontSize,
|
|
172
|
+
lineHeight: visual.lineHeight,
|
|
173
|
+
});
|
|
174
|
+
const offsetX = codeOffsetX(state, geometry, visual);
|
|
175
|
+
const spanAt = (spans, row) => spans === null || spans === void 0 ? void 0 : spans[row];
|
|
176
|
+
const pieces = [];
|
|
177
|
+
const push = (piece) => {
|
|
178
|
+
if (piece)
|
|
179
|
+
pieces.push(piece);
|
|
180
|
+
};
|
|
181
|
+
const animate = motionCtx &&
|
|
182
|
+
!motionCtx.motion.reduceMotion &&
|
|
183
|
+
motionCtx.transition.fromStateIndex != null;
|
|
184
|
+
if (!animate) {
|
|
185
|
+
state.lines.forEach((line, row) => {
|
|
186
|
+
push(linePiece(line, row, offsetX, geometry, metrics, theme, visual, 10, undefined, bindStateIndex, spanAt(bindSpans === null || bindSpans === void 0 ? void 0 : bindSpans.current, row)));
|
|
187
|
+
});
|
|
188
|
+
return pieces;
|
|
189
|
+
}
|
|
190
|
+
const { transition, previousState, timing, motion } = motionCtx;
|
|
191
|
+
const morphStartSec = seconds(timing.morph.startMs);
|
|
192
|
+
const morphEndSec = seconds(timing.morph.endMs);
|
|
193
|
+
const morphDurationSec = Math.max(0.0001, seconds(timing.morph.durationMs));
|
|
194
|
+
const fade = (0, template_utils_1.fadeInExpr)(morphStartSec, morphDurationSec, "easeInOut");
|
|
195
|
+
const eased = (0, template_utils_1.easingExpr)("easeInOut", (0, template_utils_1.progressExpr)(morphStartSec, morphDurationSec));
|
|
196
|
+
const risePx = Math.max(1, Math.round(metrics.lineStep * 0.25));
|
|
197
|
+
const previousOffsetX = previousState ? codeOffsetX(previousState, geometry, visual) : offsetX;
|
|
198
|
+
transition.ops.forEach((op) => {
|
|
199
|
+
if (op.kind === "same") {
|
|
200
|
+
const offsetPx = (op.fromLine - op.toLine) * metrics.lineStep;
|
|
201
|
+
const overlay = offsetPx !== 0 ? { yExpr: `(1-(${eased}))*${offsetPx}`, startAtSec: morphStartSec } : undefined;
|
|
202
|
+
push(linePiece(state.lines[op.toLine], op.toLine, offsetX, geometry, metrics, theme, visual, overlay ? 12 : 10, overlay, bindStateIndex, spanAt(bindSpans === null || bindSpans === void 0 ? void 0 : bindSpans.current, op.toLine)));
|
|
203
|
+
}
|
|
204
|
+
else if (op.kind === "add") {
|
|
205
|
+
const overlay = {
|
|
206
|
+
alpha: fade,
|
|
207
|
+
...(motion.addEntrance === "rise" ? { yExpr: `(1-(${eased}))*${risePx}` } : {}),
|
|
208
|
+
startAtSec: morphStartSec,
|
|
209
|
+
window: { startSec: morphStartSec },
|
|
210
|
+
};
|
|
211
|
+
push(linePiece(state.lines[op.toLine], op.toLine, offsetX, geometry, metrics, theme, visual, 30, overlay, bindStateIndex, spanAt(bindSpans === null || bindSpans === void 0 ? void 0 : bindSpans.current, op.toLine)));
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
const overlay = {
|
|
215
|
+
alpha: `(1-(${fade}))`,
|
|
216
|
+
startAtSec: morphStartSec,
|
|
217
|
+
window: { endSec: morphEndSec },
|
|
218
|
+
};
|
|
219
|
+
push(linePiece(previousState === null || previousState === void 0 ? void 0 : previousState.lines[op.fromLine], op.fromLine, previousOffsetX, geometry, metrics, theme, visual, 11, overlay, bindPreviousStateIndex, spanAt(bindSpans === null || bindSpans === void 0 ? void 0 : bindSpans.previous, op.fromLine)));
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
return pieces;
|
|
223
|
+
}
|
|
224
|
+
/** One state's document: chrome + code lines (+ the morph into it). */
|
|
225
|
+
function buildSnippetDocument(spec) {
|
|
226
|
+
const metrics = (0, code_metrics_1.measureCodeGrid)(spec.state.lines, {
|
|
227
|
+
fontSize: spec.visual.fontSize,
|
|
228
|
+
lineHeight: spec.visual.lineHeight,
|
|
229
|
+
});
|
|
230
|
+
const pieces = (0, chrome_1.buildSnippetChromePieces)({
|
|
231
|
+
geometry: spec.geometry,
|
|
232
|
+
theme: spec.theme,
|
|
233
|
+
title: spec.visual.title,
|
|
234
|
+
showChrome: spec.visual.showChrome,
|
|
235
|
+
trafficLights: spec.visual.trafficLights,
|
|
236
|
+
lineNumbers: spec.visual.lineNumbers,
|
|
237
|
+
titleFontSize: Math.max(10, Math.round(spec.geometry.titleBar.h * 0.3)),
|
|
238
|
+
lineCount: spec.state.lines.length,
|
|
239
|
+
lineStep: metrics.lineStep,
|
|
240
|
+
fontSize: spec.visual.fontSize,
|
|
241
|
+
charW: metrics.charW,
|
|
242
|
+
});
|
|
243
|
+
pieces.push(...codePieces(spec.state, spec.geometry, spec.theme, spec.visual, spec.transition && spec.stepTiming && spec.motion
|
|
244
|
+
? { transition: spec.transition, previousState: spec.previousState, timing: spec.stepTiming, motion: spec.motion }
|
|
245
|
+
: undefined, spec.bindStateIndex, spec.bindPreviousStateIndex, spec.bindSpans));
|
|
246
|
+
const placed = (0, template_utils_1.placeInsetPieces)({
|
|
247
|
+
rootW: spec.width,
|
|
248
|
+
rootH: spec.height,
|
|
249
|
+
pieces,
|
|
250
|
+
});
|
|
251
|
+
return {
|
|
252
|
+
kind: "mosaic_document",
|
|
253
|
+
version: 1,
|
|
254
|
+
m0: placed.m0,
|
|
255
|
+
sources: placed.sources,
|
|
256
|
+
assets: {},
|
|
257
|
+
size: { width: spec.width, height: spec.height },
|
|
258
|
+
fps: spec.fps,
|
|
259
|
+
durationMs: spec.durationMs,
|
|
260
|
+
backgroundColor: spec.theme.canvas,
|
|
261
|
+
// Author stamp: a silent video deliverable. Also what Make's Output Type
|
|
262
|
+
// reads (without it `inferOutputKind` judged a still-only doc an IMAGE).
|
|
263
|
+
format: { kind: "video", container: "mp4" },
|
|
264
|
+
audio: { mode: "off" },
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* The per-state cut pipeline — one document per state, each carrying the
|
|
269
|
+
* morph INTO it, step lengths from the plan's timing. The same pipeline is
|
|
270
|
+
* the explicit render and Make's live preview (which scrubs it step by step).
|
|
271
|
+
*/
|
|
272
|
+
function buildSnippetPipeline(spec) {
|
|
273
|
+
var _a, _b;
|
|
274
|
+
const spans = (_a = spec.rawStates) === null || _a === void 0 ? void 0 : _a.map(rawLineSpans);
|
|
275
|
+
const tabWidth = (_b = spec.tabWidth) !== null && _b !== void 0 ? _b : 2;
|
|
276
|
+
const steps = spec.plan.steps.map((step) => {
|
|
277
|
+
const state = spec.plan.states[step.stateIndex];
|
|
278
|
+
const from = step.transition.fromStateIndex;
|
|
279
|
+
const file = buildSnippetDocument({
|
|
280
|
+
state,
|
|
281
|
+
geometry: spec.geometry,
|
|
282
|
+
theme: spec.theme,
|
|
283
|
+
visual: spec.visual,
|
|
284
|
+
width: spec.width,
|
|
285
|
+
height: spec.height,
|
|
286
|
+
fps: spec.fps,
|
|
287
|
+
durationMs: step.durationMs,
|
|
288
|
+
transition: step.transition,
|
|
289
|
+
previousState: from == null ? undefined : spec.plan.states[from],
|
|
290
|
+
stepTiming: step.timing,
|
|
291
|
+
motion: spec.motion,
|
|
292
|
+
bindStateIndex: step.stateIndex,
|
|
293
|
+
bindPreviousStateIndex: from == null ? undefined : from,
|
|
294
|
+
...(spans
|
|
295
|
+
? { bindSpans: { tabWidth, current: spans[step.stateIndex], previous: from == null ? undefined : spans[from] } }
|
|
296
|
+
: {}),
|
|
297
|
+
});
|
|
298
|
+
return { name: `state-${step.index + 1}`, durationMs: step.durationMs, file };
|
|
299
|
+
});
|
|
300
|
+
return {
|
|
301
|
+
kind: "mosaic_pipeline",
|
|
302
|
+
version: 1,
|
|
303
|
+
emit: "single",
|
|
304
|
+
steps,
|
|
305
|
+
defaultTransition: { type: "cut" },
|
|
306
|
+
size: { width: spec.width, height: spec.height },
|
|
307
|
+
fps: spec.fps,
|
|
308
|
+
durationMs: spec.plan.timeline.durationMs,
|
|
309
|
+
backgroundColor: spec.theme.canvas,
|
|
310
|
+
format: { kind: "video", container: "mp4" },
|
|
311
|
+
audio: { mode: "off" },
|
|
312
|
+
};
|
|
313
|
+
}
|