@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,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** Deterministic line LCS, motion grouping, and block-level fade coalescing. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.lcsDiffLines = lcsDiffLines;
|
|
5
|
+
exports.groupMotionUnits = groupMotionUnits;
|
|
6
|
+
exports.refineMotionUnits = refineMotionUnits;
|
|
7
|
+
exports.coalesceFadeUnits = coalesceFadeUnits;
|
|
8
|
+
function validateLines(lines, name) {
|
|
9
|
+
if (!Array.isArray(lines))
|
|
10
|
+
throw new Error(`${name} must be an array`);
|
|
11
|
+
lines.forEach((line, index) => {
|
|
12
|
+
if (typeof line !== "string") {
|
|
13
|
+
throw new Error(`${name}[${index}] must be a string`);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Classic O(N·M) exact-line LCS diff.
|
|
19
|
+
*
|
|
20
|
+
* Tie-break is load-bearing: when deleting or adding retains the same LCS
|
|
21
|
+
* length, emit the deletion first. Equal lines always match immediately.
|
|
22
|
+
*
|
|
23
|
+
* The table is a SUFFIX DP (lcs[i][j] = LCS of before[i..], after[j..]) with a
|
|
24
|
+
* forward walk, so its `lcs[i + 1][j] >= lcs[i][j + 1]` tie-break is the exact
|
|
25
|
+
* equivalent of the plan's prefix-table `L[i-1][j] >= L[i][j-1]` — do not
|
|
26
|
+
* "fix" one to match the other's index arithmetic.
|
|
27
|
+
*/
|
|
28
|
+
function lcsDiffLines(before, after) {
|
|
29
|
+
validateLines(before, "lcsDiffLines: before");
|
|
30
|
+
validateLines(after, "lcsDiffLines: after");
|
|
31
|
+
const rows = before.length + 1;
|
|
32
|
+
const cols = after.length + 1;
|
|
33
|
+
const lcs = Array.from({ length: rows }, () => Array(cols).fill(0));
|
|
34
|
+
for (let i = before.length - 1; i >= 0; i -= 1) {
|
|
35
|
+
for (let j = after.length - 1; j >= 0; j -= 1) {
|
|
36
|
+
lcs[i][j] =
|
|
37
|
+
before[i] === after[j]
|
|
38
|
+
? 1 + lcs[i + 1][j + 1]
|
|
39
|
+
: Math.max(lcs[i + 1][j], lcs[i][j + 1]);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const ops = [];
|
|
43
|
+
let i = 0;
|
|
44
|
+
let j = 0;
|
|
45
|
+
while (i < before.length || j < after.length) {
|
|
46
|
+
if (i < before.length && j < after.length && before[i] === after[j]) {
|
|
47
|
+
ops.push({
|
|
48
|
+
kind: "same",
|
|
49
|
+
text: before[i],
|
|
50
|
+
fromLine: i,
|
|
51
|
+
toLine: j,
|
|
52
|
+
});
|
|
53
|
+
i += 1;
|
|
54
|
+
j += 1;
|
|
55
|
+
}
|
|
56
|
+
else if (i < before.length &&
|
|
57
|
+
(j >= after.length || lcs[i + 1][j] >= lcs[i][j + 1])) {
|
|
58
|
+
ops.push({
|
|
59
|
+
kind: "del",
|
|
60
|
+
text: before[i],
|
|
61
|
+
fromLine: i,
|
|
62
|
+
toLine: null,
|
|
63
|
+
});
|
|
64
|
+
i += 1;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
ops.push({
|
|
68
|
+
kind: "add",
|
|
69
|
+
text: after[j],
|
|
70
|
+
fromLine: null,
|
|
71
|
+
toLine: j,
|
|
72
|
+
});
|
|
73
|
+
j += 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return ops;
|
|
77
|
+
}
|
|
78
|
+
/** Maximal contiguous same-vector moves, removals, and additions. */
|
|
79
|
+
function groupMotionUnits(ops) {
|
|
80
|
+
if (!Array.isArray(ops)) {
|
|
81
|
+
throw new Error("groupMotionUnits: ops must be an array");
|
|
82
|
+
}
|
|
83
|
+
const units = [];
|
|
84
|
+
for (const op of ops) {
|
|
85
|
+
const previous = units[units.length - 1];
|
|
86
|
+
if (op.kind === "same") {
|
|
87
|
+
const deltaLines = op.toLine - op.fromLine;
|
|
88
|
+
const line = {
|
|
89
|
+
text: op.text,
|
|
90
|
+
fromLine: op.fromLine,
|
|
91
|
+
toLine: op.toLine,
|
|
92
|
+
};
|
|
93
|
+
const lastLine = previous === null || previous === void 0 ? void 0 : previous.lines[previous.lines.length - 1];
|
|
94
|
+
if ((previous === null || previous === void 0 ? void 0 : previous.kind) === "move" &&
|
|
95
|
+
previous.deltaLines === deltaLines &&
|
|
96
|
+
(lastLine === null || lastLine === void 0 ? void 0 : lastLine.fromLine) === op.fromLine - 1 &&
|
|
97
|
+
lastLine.toLine === op.toLine - 1) {
|
|
98
|
+
previous.lines.push(line);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
units.push({
|
|
102
|
+
kind: "move",
|
|
103
|
+
fromStartLine: op.fromLine,
|
|
104
|
+
toStartLine: op.toLine,
|
|
105
|
+
deltaLines,
|
|
106
|
+
lines: [line],
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (op.kind === "del") {
|
|
112
|
+
const line = {
|
|
113
|
+
text: op.text,
|
|
114
|
+
fromLine: op.fromLine,
|
|
115
|
+
toLine: null,
|
|
116
|
+
};
|
|
117
|
+
const lastLine = previous === null || previous === void 0 ? void 0 : previous.lines[previous.lines.length - 1];
|
|
118
|
+
if ((previous === null || previous === void 0 ? void 0 : previous.kind) === "remove" &&
|
|
119
|
+
(lastLine === null || lastLine === void 0 ? void 0 : lastLine.fromLine) === op.fromLine - 1) {
|
|
120
|
+
previous.lines.push(line);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
units.push({
|
|
124
|
+
kind: "remove",
|
|
125
|
+
fromStartLine: op.fromLine,
|
|
126
|
+
lines: [line],
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
const line = {
|
|
132
|
+
text: op.text,
|
|
133
|
+
fromLine: null,
|
|
134
|
+
toLine: op.toLine,
|
|
135
|
+
};
|
|
136
|
+
const lastLine = previous === null || previous === void 0 ? void 0 : previous.lines[previous.lines.length - 1];
|
|
137
|
+
if ((previous === null || previous === void 0 ? void 0 : previous.kind) === "add" &&
|
|
138
|
+
(lastLine === null || lastLine === void 0 ? void 0 : lastLine.toLine) === op.toLine - 1) {
|
|
139
|
+
previous.lines.push(line);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
units.push({
|
|
143
|
+
kind: "add",
|
|
144
|
+
toStartLine: op.toLine,
|
|
145
|
+
lines: [line],
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return units;
|
|
150
|
+
}
|
|
151
|
+
/** Split blocks into one-line units without changing any line mapping. */
|
|
152
|
+
function refineMotionUnits(units, grouping) {
|
|
153
|
+
if (grouping === "block") {
|
|
154
|
+
return units.map((unit) => ({
|
|
155
|
+
...unit,
|
|
156
|
+
lines: unit.lines.map((line) => ({ ...line })),
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
const refined = [];
|
|
160
|
+
for (const unit of units) {
|
|
161
|
+
for (const line of unit.lines) {
|
|
162
|
+
if (unit.kind === "move") {
|
|
163
|
+
refined.push({
|
|
164
|
+
kind: "move",
|
|
165
|
+
fromStartLine: line.fromLine,
|
|
166
|
+
toStartLine: line.toLine,
|
|
167
|
+
deltaLines: unit.deltaLines,
|
|
168
|
+
lines: [{ ...line }],
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
else if (unit.kind === "remove") {
|
|
172
|
+
refined.push({
|
|
173
|
+
kind: "remove",
|
|
174
|
+
fromStartLine: line.fromLine,
|
|
175
|
+
lines: [{ ...line }],
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
refined.push({
|
|
180
|
+
kind: "add",
|
|
181
|
+
toStartLine: line.toLine,
|
|
182
|
+
lines: [{ ...line }],
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return refined;
|
|
188
|
+
}
|
|
189
|
+
/** Collapse block-level fades and static lines into three sparse raster units. */
|
|
190
|
+
function coalesceFadeUnits(units, grouping = "block") {
|
|
191
|
+
if (grouping !== "block") {
|
|
192
|
+
throw new Error(`coalesceFadeUnits: unsupported grouping ${JSON.stringify(grouping)}`);
|
|
193
|
+
}
|
|
194
|
+
const staticLines = [];
|
|
195
|
+
const removalLines = [];
|
|
196
|
+
const additionLines = [];
|
|
197
|
+
const moves = [];
|
|
198
|
+
for (const unit of units) {
|
|
199
|
+
if (unit.kind === "remove")
|
|
200
|
+
removalLines.push(...unit.lines.map((line) => ({ ...line })));
|
|
201
|
+
else if (unit.kind === "add")
|
|
202
|
+
additionLines.push(...unit.lines.map((line) => ({ ...line })));
|
|
203
|
+
else if (unit.deltaLines === 0)
|
|
204
|
+
staticLines.push(...unit.lines.map((line) => ({ ...line })));
|
|
205
|
+
else
|
|
206
|
+
moves.push({ ...unit, lines: unit.lines.map((line) => ({ ...line })) });
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
...(staticLines.length > 0
|
|
210
|
+
? { staticUnderlay: { kind: "static", lines: staticLines } }
|
|
211
|
+
: {}),
|
|
212
|
+
...(removalLines.length > 0
|
|
213
|
+
? { removalRaster: { kind: "remove", lines: removalLines } }
|
|
214
|
+
: {}),
|
|
215
|
+
...(additionLines.length > 0
|
|
216
|
+
? { additionRaster: { kind: "add", lines: additionLines } }
|
|
217
|
+
: {}),
|
|
218
|
+
moves,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Deterministic, dependency-free TypeScript/JavaScript syntax lexer. */
|
|
2
|
+
import type { CodeTokenKind } from "./code-theme";
|
|
3
|
+
export type CodeLanguage = "ts" | "js";
|
|
4
|
+
export interface CodeToken {
|
|
5
|
+
text: string;
|
|
6
|
+
kind: CodeTokenKind;
|
|
7
|
+
/** Zero-based character-grid column in the normalized line. */
|
|
8
|
+
col: number;
|
|
9
|
+
}
|
|
10
|
+
export interface LexedCodeLine {
|
|
11
|
+
text: string;
|
|
12
|
+
tokens: CodeToken[];
|
|
13
|
+
}
|
|
14
|
+
export interface LexedCodeState {
|
|
15
|
+
/** CRLF-normalized, tab-expanded source. */
|
|
16
|
+
code: string;
|
|
17
|
+
language: CodeLanguage;
|
|
18
|
+
lines: LexedCodeLine[];
|
|
19
|
+
}
|
|
20
|
+
export interface LexTsJsOptions {
|
|
21
|
+
tabWidth?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare function normalizeCodeSource(code: string, tabWidth?: number): string;
|
|
24
|
+
/**
|
|
25
|
+
* Lex TS/JS without parser dependencies. Regex literals are the documented v1
|
|
26
|
+
* gap: their characters still retain exact columns but use operator/ident/etc.
|
|
27
|
+
*/
|
|
28
|
+
export declare function lexTsJs(code: string, language?: CodeLanguage, options?: LexTsJsOptions): LexedCodeState;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** Deterministic, dependency-free TypeScript/JavaScript syntax lexer. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.normalizeCodeSource = normalizeCodeSource;
|
|
5
|
+
exports.lexTsJs = lexTsJs;
|
|
6
|
+
const JS_KEYWORDS = new Set([
|
|
7
|
+
"async", "await", "break", "case", "catch", "class", "const", "continue",
|
|
8
|
+
"debugger", "default", "delete", "do", "else", "export", "extends", "false",
|
|
9
|
+
"finally", "for", "from", "function", "get", "if", "import", "in", "instanceof",
|
|
10
|
+
"let", "new", "null", "of", "return", "set", "static", "super", "switch",
|
|
11
|
+
"this", "throw", "true", "try", "typeof", "undefined", "var", "void", "while",
|
|
12
|
+
"with", "yield",
|
|
13
|
+
]);
|
|
14
|
+
const TS_ONLY_KEYWORDS = new Set([
|
|
15
|
+
"abstract", "any", "as", "asserts", "bigint", "boolean", "declare", "enum",
|
|
16
|
+
"global", "implements", "infer", "interface", "is", "keyof", "module", "namespace",
|
|
17
|
+
"never", "number", "object", "override", "private", "protected", "public", "readonly",
|
|
18
|
+
"require", "satisfies", "string", "symbol", "type", "unknown",
|
|
19
|
+
]);
|
|
20
|
+
const PUNCTUATION = new Set(["(", ")", "{", "}", "[", "]", ";", ",", ":", "."]);
|
|
21
|
+
const OPERATOR_CHARS = new Set(Array.from("+-*/%=!<>&|^~?"));
|
|
22
|
+
function isIdentifierStart(char) {
|
|
23
|
+
return /[A-Za-z_$]/.test(char);
|
|
24
|
+
}
|
|
25
|
+
function isIdentifierPart(char) {
|
|
26
|
+
return /[A-Za-z0-9_$]/.test(char);
|
|
27
|
+
}
|
|
28
|
+
function isDigit(char) {
|
|
29
|
+
return char >= "0" && char <= "9";
|
|
30
|
+
}
|
|
31
|
+
function pushToken(tokens, text, kind, col) {
|
|
32
|
+
if (text.length === 0)
|
|
33
|
+
return;
|
|
34
|
+
const previous = tokens[tokens.length - 1];
|
|
35
|
+
if ((previous === null || previous === void 0 ? void 0 : previous.kind) === kind &&
|
|
36
|
+
previous.col + Array.from(previous.text).length === col) {
|
|
37
|
+
previous.text += text;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
tokens.push({ text, kind, col });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function scanQuoted(line, start, quote) {
|
|
44
|
+
let index = start + 1;
|
|
45
|
+
while (index < line.length) {
|
|
46
|
+
if (line[index] === "\\")
|
|
47
|
+
index += 2;
|
|
48
|
+
else if (line[index] === quote)
|
|
49
|
+
return index + 1;
|
|
50
|
+
else
|
|
51
|
+
index += 1;
|
|
52
|
+
}
|
|
53
|
+
return line.length;
|
|
54
|
+
}
|
|
55
|
+
function scanNumber(line, start) {
|
|
56
|
+
const match = line.slice(start).match(/^(?:0[xX][0-9a-fA-F_]+n?|0[bB][01_]+n?|0[oO][0-7_]+n?|(?:\d[\d_]*(?:\.[\d_]*)?|\.[\d_]+)(?:[eE][+-]?[\d_]+)?n?)/);
|
|
57
|
+
return match == null ? start + 1 : start + match[0].length;
|
|
58
|
+
}
|
|
59
|
+
function isKeyword(identifier, language) {
|
|
60
|
+
return JS_KEYWORDS.has(identifier) ||
|
|
61
|
+
(language === "ts" && TS_ONLY_KEYWORDS.has(identifier));
|
|
62
|
+
}
|
|
63
|
+
function scanTemplateText(line, start, opening, tokens, state) {
|
|
64
|
+
let index = opening ? start + 1 : start;
|
|
65
|
+
while (index < line.length) {
|
|
66
|
+
if (line[index] === "\\") {
|
|
67
|
+
index = Math.min(line.length, index + 2);
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (line[index] === "`") {
|
|
71
|
+
index += 1;
|
|
72
|
+
pushToken(tokens, line.slice(start, index), "string", start);
|
|
73
|
+
state.templates.pop();
|
|
74
|
+
return index;
|
|
75
|
+
}
|
|
76
|
+
if (line[index] === "$" && line[index + 1] === "{") {
|
|
77
|
+
index += 2;
|
|
78
|
+
pushToken(tokens, line.slice(start, index), "string", start);
|
|
79
|
+
const frame = state.templates[state.templates.length - 1];
|
|
80
|
+
frame.inExpression = true;
|
|
81
|
+
frame.braceDepth = 0;
|
|
82
|
+
return index;
|
|
83
|
+
}
|
|
84
|
+
index += 1;
|
|
85
|
+
}
|
|
86
|
+
pushToken(tokens, line.slice(start), "string", start);
|
|
87
|
+
return line.length;
|
|
88
|
+
}
|
|
89
|
+
function lexLine(line, language, state) {
|
|
90
|
+
var _a;
|
|
91
|
+
const tokens = [];
|
|
92
|
+
let index = 0;
|
|
93
|
+
while (index < line.length) {
|
|
94
|
+
if (state.inBlockComment) {
|
|
95
|
+
const close = line.indexOf("*/", index);
|
|
96
|
+
const end = close < 0 ? line.length : close + 2;
|
|
97
|
+
pushToken(tokens, line.slice(index, end), "comment", index);
|
|
98
|
+
index = end;
|
|
99
|
+
if (close < 0)
|
|
100
|
+
break;
|
|
101
|
+
state.inBlockComment = false;
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const template = state.templates[state.templates.length - 1];
|
|
105
|
+
if (template && !template.inExpression) {
|
|
106
|
+
index = scanTemplateText(line, index, false, tokens, state);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
const char = line[index];
|
|
110
|
+
const next = (_a = line[index + 1]) !== null && _a !== void 0 ? _a : "";
|
|
111
|
+
if (/\s/.test(char)) {
|
|
112
|
+
let end = index + 1;
|
|
113
|
+
while (end < line.length && /\s/.test(line[end]))
|
|
114
|
+
end += 1;
|
|
115
|
+
pushToken(tokens, line.slice(index, end), "plain", index);
|
|
116
|
+
index = end;
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if (char === "/" && next === "/") {
|
|
120
|
+
pushToken(tokens, line.slice(index), "comment", index);
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
if (char === "/" && next === "*") {
|
|
124
|
+
const close = line.indexOf("*/", index + 2);
|
|
125
|
+
const end = close < 0 ? line.length : close + 2;
|
|
126
|
+
pushToken(tokens, line.slice(index, end), "comment", index);
|
|
127
|
+
index = end;
|
|
128
|
+
state.inBlockComment = close < 0;
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
if (char === "'" || char === '"') {
|
|
132
|
+
const end = scanQuoted(line, index, char);
|
|
133
|
+
pushToken(tokens, line.slice(index, end), "string", index);
|
|
134
|
+
index = end;
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
if (char === "`") {
|
|
138
|
+
state.templates.push({ inExpression: false, braceDepth: 0 });
|
|
139
|
+
index = scanTemplateText(line, index, true, tokens, state);
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if ((template === null || template === void 0 ? void 0 : template.inExpression) && char === "}") {
|
|
143
|
+
if (template.braceDepth === 0) {
|
|
144
|
+
pushToken(tokens, char, "string", index);
|
|
145
|
+
template.inExpression = false;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
pushToken(tokens, char, "punct", index);
|
|
149
|
+
template.braceDepth -= 1;
|
|
150
|
+
}
|
|
151
|
+
index += 1;
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
if ((template === null || template === void 0 ? void 0 : template.inExpression) && char === "{") {
|
|
155
|
+
template.braceDepth += 1;
|
|
156
|
+
pushToken(tokens, char, "punct", index);
|
|
157
|
+
index += 1;
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
if (isIdentifierStart(char)) {
|
|
161
|
+
let end = index + 1;
|
|
162
|
+
while (end < line.length && isIdentifierPart(line[end]))
|
|
163
|
+
end += 1;
|
|
164
|
+
const identifier = line.slice(index, end);
|
|
165
|
+
let lookahead = end;
|
|
166
|
+
while (lookahead < line.length && /\s/.test(line[lookahead]))
|
|
167
|
+
lookahead += 1;
|
|
168
|
+
const kind = isKeyword(identifier, language)
|
|
169
|
+
? "keyword"
|
|
170
|
+
: line[lookahead] === "("
|
|
171
|
+
? "fnCall"
|
|
172
|
+
: "ident";
|
|
173
|
+
pushToken(tokens, identifier, kind, index);
|
|
174
|
+
index = end;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
if (isDigit(char) || (char === "." && isDigit(next))) {
|
|
178
|
+
const end = scanNumber(line, index);
|
|
179
|
+
pushToken(tokens, line.slice(index, end), "number", index);
|
|
180
|
+
index = end;
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
if (OPERATOR_CHARS.has(char)) {
|
|
184
|
+
let end = index + 1;
|
|
185
|
+
while (end < line.length && OPERATOR_CHARS.has(line[end]))
|
|
186
|
+
end += 1;
|
|
187
|
+
pushToken(tokens, line.slice(index, end), "operator", index);
|
|
188
|
+
index = end;
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
if (PUNCTUATION.has(char)) {
|
|
192
|
+
pushToken(tokens, char, "punct", index);
|
|
193
|
+
index += 1;
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
pushToken(tokens, char, "plain", index);
|
|
197
|
+
index += 1;
|
|
198
|
+
}
|
|
199
|
+
return { text: line, tokens };
|
|
200
|
+
}
|
|
201
|
+
function normalizeCodeSource(code, tabWidth = 2) {
|
|
202
|
+
if (typeof code !== "string") {
|
|
203
|
+
throw new Error("normalizeCodeSource: code must be a string");
|
|
204
|
+
}
|
|
205
|
+
if (!Number.isInteger(tabWidth) || tabWidth < 1 || tabWidth > 16) {
|
|
206
|
+
throw new Error(`normalizeCodeSource: tabWidth must be an integer from 1 to 16, got ${tabWidth}`);
|
|
207
|
+
}
|
|
208
|
+
return code.replace(/\r\n?/g, "\n").replace(/\t/g, " ".repeat(tabWidth));
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Lex TS/JS without parser dependencies. Regex literals are the documented v1
|
|
212
|
+
* gap: their characters still retain exact columns but use operator/ident/etc.
|
|
213
|
+
*/
|
|
214
|
+
function lexTsJs(code, language = "ts", options = {}) {
|
|
215
|
+
var _a;
|
|
216
|
+
if (language !== "ts" && language !== "js") {
|
|
217
|
+
throw new Error(`lexTsJs: language must be "ts" or "js", got ${JSON.stringify(language)}`);
|
|
218
|
+
}
|
|
219
|
+
const normalized = normalizeCodeSource(code, (_a = options.tabWidth) !== null && _a !== void 0 ? _a : 2);
|
|
220
|
+
const state = { inBlockComment: false, templates: [] };
|
|
221
|
+
return {
|
|
222
|
+
code: normalized,
|
|
223
|
+
language,
|
|
224
|
+
lines: normalized.split("\n").map((line) => lexLine(line, language, state)),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/** Deterministic JetBrains-Mono grid math and integer code-block bounds. */
|
|
2
|
+
/** JetBrains Mono's registered advance width: 600 units on a 1000-unit em. */
|
|
3
|
+
export declare const JETBRAINS_MONO_ADVANCE_EM = 0.6;
|
|
4
|
+
export declare const MIN_AUTOFIT_FONT_SIZE = 8;
|
|
5
|
+
export interface CodeLineLike {
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CodeGridMetrics {
|
|
9
|
+
fontSize: number;
|
|
10
|
+
lineHeight: number;
|
|
11
|
+
charW: number;
|
|
12
|
+
lineStep: number;
|
|
13
|
+
lineCount: number;
|
|
14
|
+
maxColumns: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
}
|
|
18
|
+
export interface CodeBlockRect {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
originCol: number;
|
|
24
|
+
originLine: number;
|
|
25
|
+
endCol: number;
|
|
26
|
+
endLine: number;
|
|
27
|
+
}
|
|
28
|
+
export interface AutoFitCodeOptions {
|
|
29
|
+
preferredFontSize: number;
|
|
30
|
+
lineHeight?: number;
|
|
31
|
+
minFontSize?: number;
|
|
32
|
+
maxWidth: number;
|
|
33
|
+
maxHeight: number;
|
|
34
|
+
charWidthEm?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface AutoFitCodeResult {
|
|
37
|
+
fontSize: number;
|
|
38
|
+
fits: boolean;
|
|
39
|
+
overflowX: boolean;
|
|
40
|
+
overflowY: boolean;
|
|
41
|
+
metrics: CodeGridMetrics;
|
|
42
|
+
}
|
|
43
|
+
/** Count Unicode code points; v1's documented envelope remains single-width glyphs. */
|
|
44
|
+
export declare function codeColumnCount(text: string): number;
|
|
45
|
+
export declare function measureCodeGrid(lines: ReadonlyArray<CodeLineLike>, options: {
|
|
46
|
+
fontSize: number;
|
|
47
|
+
lineHeight?: number;
|
|
48
|
+
charWidthEm?: number;
|
|
49
|
+
}): CodeGridMetrics;
|
|
50
|
+
/** Round a grid-aligned block outward once, matching the A2 raster placement. */
|
|
51
|
+
export declare function codeBlockRect(span: {
|
|
52
|
+
originCol?: number;
|
|
53
|
+
originLine: number;
|
|
54
|
+
endCol: number;
|
|
55
|
+
endLine: number;
|
|
56
|
+
}, metrics: Pick<CodeGridMetrics, "charW" | "lineStep">): CodeBlockRect;
|
|
57
|
+
/** Largest integer font size that fits, clamped at the documented 8px floor. */
|
|
58
|
+
export declare function autoFitCodeFont(lines: ReadonlyArray<CodeLineLike>, options: AutoFitCodeOptions): AutoFitCodeResult;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** Deterministic JetBrains-Mono grid math and integer code-block bounds. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MIN_AUTOFIT_FONT_SIZE = exports.JETBRAINS_MONO_ADVANCE_EM = void 0;
|
|
5
|
+
exports.codeColumnCount = codeColumnCount;
|
|
6
|
+
exports.measureCodeGrid = measureCodeGrid;
|
|
7
|
+
exports.codeBlockRect = codeBlockRect;
|
|
8
|
+
exports.autoFitCodeFont = autoFitCodeFont;
|
|
9
|
+
/** JetBrains Mono's registered advance width: 600 units on a 1000-unit em. */
|
|
10
|
+
exports.JETBRAINS_MONO_ADVANCE_EM = 0.6;
|
|
11
|
+
exports.MIN_AUTOFIT_FONT_SIZE = 8;
|
|
12
|
+
function requirePositiveFinite(value, name) {
|
|
13
|
+
if (!Number.isFinite(value) || value <= 0) {
|
|
14
|
+
throw new Error(`${name} must be a finite number > 0, got ${value}`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function requireNonNegativeFinite(value, name) {
|
|
18
|
+
if (!Number.isFinite(value) || value < 0) {
|
|
19
|
+
throw new Error(`${name} must be a finite number >= 0, got ${value}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** Count Unicode code points; v1's documented envelope remains single-width glyphs. */
|
|
23
|
+
function codeColumnCount(text) {
|
|
24
|
+
if (typeof text !== "string") {
|
|
25
|
+
throw new Error("codeColumnCount: text must be a string");
|
|
26
|
+
}
|
|
27
|
+
return Array.from(text).length;
|
|
28
|
+
}
|
|
29
|
+
function measureCodeGrid(lines, options) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
if (!Array.isArray(lines)) {
|
|
32
|
+
throw new Error("measureCodeGrid: lines must be an array");
|
|
33
|
+
}
|
|
34
|
+
const lineHeight = (_a = options.lineHeight) !== null && _a !== void 0 ? _a : 1.5;
|
|
35
|
+
const charWidthEm = (_b = options.charWidthEm) !== null && _b !== void 0 ? _b : exports.JETBRAINS_MONO_ADVANCE_EM;
|
|
36
|
+
requirePositiveFinite(options.fontSize, "measureCodeGrid: fontSize");
|
|
37
|
+
requirePositiveFinite(lineHeight, "measureCodeGrid: lineHeight");
|
|
38
|
+
requirePositiveFinite(charWidthEm, "measureCodeGrid: charWidthEm");
|
|
39
|
+
let maxColumns = 0;
|
|
40
|
+
lines.forEach((line, index) => {
|
|
41
|
+
if (line == null || typeof line.text !== "string") {
|
|
42
|
+
throw new Error(`measureCodeGrid: lines[${index}].text must be a string`);
|
|
43
|
+
}
|
|
44
|
+
maxColumns = Math.max(maxColumns, codeColumnCount(line.text));
|
|
45
|
+
});
|
|
46
|
+
const charW = options.fontSize * charWidthEm;
|
|
47
|
+
const lineStep = Math.max(1, Math.round(options.fontSize * lineHeight));
|
|
48
|
+
return {
|
|
49
|
+
fontSize: options.fontSize,
|
|
50
|
+
lineHeight,
|
|
51
|
+
charW,
|
|
52
|
+
lineStep,
|
|
53
|
+
lineCount: lines.length,
|
|
54
|
+
maxColumns,
|
|
55
|
+
width: maxColumns === 0 ? 0 : Math.ceil(maxColumns * charW),
|
|
56
|
+
height: lines.length * lineStep,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/** Round a grid-aligned block outward once, matching the A2 raster placement. */
|
|
60
|
+
function codeBlockRect(span, metrics) {
|
|
61
|
+
var _a;
|
|
62
|
+
const originCol = (_a = span.originCol) !== null && _a !== void 0 ? _a : 0;
|
|
63
|
+
for (const [name, value] of [
|
|
64
|
+
["originCol", originCol],
|
|
65
|
+
["originLine", span.originLine],
|
|
66
|
+
["endCol", span.endCol],
|
|
67
|
+
["endLine", span.endLine],
|
|
68
|
+
]) {
|
|
69
|
+
if (!Number.isInteger(value) || value < 0) {
|
|
70
|
+
throw new Error(`codeBlockRect: ${name} must be a non-negative integer, got ${value}`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (span.endCol < originCol || span.endLine < span.originLine) {
|
|
74
|
+
throw new Error("codeBlockRect: end coordinates must not precede the origin");
|
|
75
|
+
}
|
|
76
|
+
requirePositiveFinite(metrics.charW, "codeBlockRect: charW");
|
|
77
|
+
requirePositiveFinite(metrics.lineStep, "codeBlockRect: lineStep");
|
|
78
|
+
const x = Math.floor(originCol * metrics.charW);
|
|
79
|
+
const y = Math.floor(span.originLine * metrics.lineStep);
|
|
80
|
+
const right = Math.ceil(span.endCol * metrics.charW);
|
|
81
|
+
const bottom = Math.ceil(span.endLine * metrics.lineStep);
|
|
82
|
+
return {
|
|
83
|
+
x,
|
|
84
|
+
y,
|
|
85
|
+
width: Math.max(0, right - x),
|
|
86
|
+
height: Math.max(0, bottom - y),
|
|
87
|
+
originCol,
|
|
88
|
+
originLine: span.originLine,
|
|
89
|
+
endCol: span.endCol,
|
|
90
|
+
endLine: span.endLine,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/** Largest integer font size that fits, clamped at the documented 8px floor. */
|
|
94
|
+
function autoFitCodeFont(lines, options) {
|
|
95
|
+
var _a, _b, _c;
|
|
96
|
+
const lineHeight = (_a = options.lineHeight) !== null && _a !== void 0 ? _a : 1.5;
|
|
97
|
+
const minFontSize = (_b = options.minFontSize) !== null && _b !== void 0 ? _b : exports.MIN_AUTOFIT_FONT_SIZE;
|
|
98
|
+
const charWidthEm = (_c = options.charWidthEm) !== null && _c !== void 0 ? _c : exports.JETBRAINS_MONO_ADVANCE_EM;
|
|
99
|
+
requirePositiveFinite(options.preferredFontSize, "autoFitCodeFont: preferredFontSize");
|
|
100
|
+
requirePositiveFinite(minFontSize, "autoFitCodeFont: minFontSize");
|
|
101
|
+
requirePositiveFinite(lineHeight, "autoFitCodeFont: lineHeight");
|
|
102
|
+
requirePositiveFinite(charWidthEm, "autoFitCodeFont: charWidthEm");
|
|
103
|
+
requireNonNegativeFinite(options.maxWidth, "autoFitCodeFont: maxWidth");
|
|
104
|
+
requireNonNegativeFinite(options.maxHeight, "autoFitCodeFont: maxHeight");
|
|
105
|
+
const floorSize = Math.max(1, Math.ceil(minFontSize));
|
|
106
|
+
const preferredSize = Math.max(floorSize, Math.floor(options.preferredFontSize));
|
|
107
|
+
let metrics = measureCodeGrid(lines, {
|
|
108
|
+
fontSize: preferredSize,
|
|
109
|
+
lineHeight,
|
|
110
|
+
charWidthEm,
|
|
111
|
+
});
|
|
112
|
+
for (let candidate = preferredSize; candidate >= floorSize; candidate -= 1) {
|
|
113
|
+
metrics = measureCodeGrid(lines, {
|
|
114
|
+
fontSize: candidate,
|
|
115
|
+
lineHeight,
|
|
116
|
+
charWidthEm,
|
|
117
|
+
});
|
|
118
|
+
if (metrics.width <= options.maxWidth && metrics.height <= options.maxHeight) {
|
|
119
|
+
return {
|
|
120
|
+
fontSize: candidate,
|
|
121
|
+
fits: true,
|
|
122
|
+
overflowX: false,
|
|
123
|
+
overflowY: false,
|
|
124
|
+
metrics,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
metrics = measureCodeGrid(lines, {
|
|
129
|
+
fontSize: floorSize,
|
|
130
|
+
lineHeight,
|
|
131
|
+
charWidthEm,
|
|
132
|
+
});
|
|
133
|
+
return {
|
|
134
|
+
fontSize: floorSize,
|
|
135
|
+
fits: false,
|
|
136
|
+
overflowX: metrics.width > options.maxWidth,
|
|
137
|
+
overflowY: metrics.height > options.maxHeight,
|
|
138
|
+
metrics,
|
|
139
|
+
};
|
|
140
|
+
}
|