@despia-native/kernel 0.0.0-stage → 0.3.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 +202 -0
- package/NOTICE +1414 -0
- package/README.md +17 -2
- package/dist/.dsx-build-stamp.json +7 -0
- package/dist/api-cohort.d.ts +27 -0
- package/dist/api-cohort.d.ts.map +1 -0
- package/dist/api-cohort.js +94 -0
- package/dist/api-cohort.js.map +1 -0
- package/dist/api.d.ts +454 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +2442 -0
- package/dist/api.js.map +1 -0
- package/dist/app-consts.d.ts +10 -0
- package/dist/app-consts.d.ts.map +1 -0
- package/dist/app-consts.js +39 -0
- package/dist/app-consts.js.map +1 -0
- package/dist/app-update.d.ts +12 -0
- package/dist/app-update.d.ts.map +1 -0
- package/dist/app-update.js +32 -0
- package/dist/app-update.js.map +1 -0
- package/dist/aria.d.ts +152 -0
- package/dist/aria.d.ts.map +1 -0
- package/dist/aria.js +524 -0
- package/dist/aria.js.map +1 -0
- package/dist/audio-core.d.ts +260 -0
- package/dist/audio-core.d.ts.map +1 -0
- package/dist/audio-core.js +1440 -0
- package/dist/audio-core.js.map +1 -0
- package/dist/audio-edit.d.ts +100 -0
- package/dist/audio-edit.d.ts.map +1 -0
- package/dist/audio-edit.js +489 -0
- package/dist/audio-edit.js.map +1 -0
- package/dist/audio-mix.d.ts +84 -0
- package/dist/audio-mix.d.ts.map +1 -0
- package/dist/audio-mix.js +393 -0
- package/dist/audio-mix.js.map +1 -0
- package/dist/auth-proof.d.ts +145 -0
- package/dist/auth-proof.d.ts.map +1 -0
- package/dist/auth-proof.js +644 -0
- package/dist/auth-proof.js.map +1 -0
- package/dist/availability-explain.d.ts +3 -0
- package/dist/availability-explain.d.ts.map +1 -0
- package/dist/availability-explain.js +322 -0
- package/dist/availability-explain.js.map +1 -0
- package/dist/availability.d.ts +246 -0
- package/dist/availability.d.ts.map +1 -0
- package/dist/availability.js +615 -0
- package/dist/availability.js.map +1 -0
- package/dist/background.d.ts +116 -0
- package/dist/background.d.ts.map +1 -0
- package/dist/background.js +235 -0
- package/dist/background.js.map +1 -0
- package/dist/boot-tables-flag.d.ts +2 -0
- package/dist/boot-tables-flag.d.ts.map +1 -0
- package/dist/boot-tables-flag.js +16 -0
- package/dist/boot-tables-flag.js.map +1 -0
- package/dist/boot-tables.d.ts +40 -0
- package/dist/boot-tables.d.ts.map +1 -0
- package/dist/boot-tables.js +102 -0
- package/dist/boot-tables.js.map +1 -0
- package/dist/border-edges.d.ts +5 -0
- package/dist/border-edges.d.ts.map +1 -0
- package/dist/border-edges.js +47 -0
- package/dist/border-edges.js.map +1 -0
- package/dist/bus.d.ts +1203 -0
- package/dist/bus.d.ts.map +1 -0
- package/dist/bus.js +2647 -0
- package/dist/bus.js.map +1 -0
- package/dist/calendar-core.d.ts +143 -0
- package/dist/calendar-core.d.ts.map +1 -0
- package/dist/calendar-core.js +372 -0
- package/dist/calendar-core.js.map +1 -0
- package/dist/call-value.d.ts +16 -0
- package/dist/call-value.d.ts.map +1 -0
- package/dist/call-value.js +54 -0
- package/dist/call-value.js.map +1 -0
- package/dist/camera-core.d.ts +222 -0
- package/dist/camera-core.d.ts.map +1 -0
- package/dist/camera-core.js +980 -0
- package/dist/camera-core.js.map +1 -0
- package/dist/canvas-core.d.ts +404 -0
- package/dist/canvas-core.d.ts.map +1 -0
- package/dist/canvas-core.js +2186 -0
- package/dist/canvas-core.js.map +1 -0
- package/dist/capture-core.d.ts +74 -0
- package/dist/capture-core.d.ts.map +1 -0
- package/dist/capture-core.js +158 -0
- package/dist/capture-core.js.map +1 -0
- package/dist/compile/codegen.d.ts +146 -0
- package/dist/compile/codegen.d.ts.map +1 -0
- package/dist/compile/codegen.js +1949 -0
- package/dist/compile/codegen.js.map +1 -0
- package/dist/compile/jstier.d.ts +44 -0
- package/dist/compile/jstier.d.ts.map +1 -0
- package/dist/compile/jstier.js +181 -0
- package/dist/compile/jstier.js.map +1 -0
- package/dist/compile/tier-door.d.ts +41 -0
- package/dist/compile/tier-door.d.ts.map +1 -0
- package/dist/compile/tier-door.js +167 -0
- package/dist/compile/tier-door.js.map +1 -0
- package/dist/compile/tier-realm.d.ts +49 -0
- package/dist/compile/tier-realm.d.ts.map +1 -0
- package/dist/compile/tier-realm.js +368 -0
- package/dist/compile/tier-realm.js.map +1 -0
- package/dist/compile/tier.d.ts +23 -0
- package/dist/compile/tier.d.ts.map +1 -0
- package/dist/compile/tier.js +157 -0
- package/dist/compile/tier.js.map +1 -0
- package/dist/compose-core.d.ts +86 -0
- package/dist/compose-core.d.ts.map +1 -0
- package/dist/compose-core.js +112 -0
- package/dist/compose-core.js.map +1 -0
- package/dist/config-validate.d.ts +31 -0
- package/dist/config-validate.d.ts.map +1 -0
- package/dist/config-validate.js +147 -0
- package/dist/config-validate.js.map +1 -0
- package/dist/config-values.d.ts +106 -0
- package/dist/config-values.d.ts.map +1 -0
- package/dist/config-values.js +340 -0
- package/dist/config-values.js.map +1 -0
- package/dist/contacts-core.d.ts +127 -0
- package/dist/contacts-core.d.ts.map +1 -0
- package/dist/contacts-core.js +211 -0
- package/dist/contacts-core.js.map +1 -0
- package/dist/content-transition.d.ts +58 -0
- package/dist/content-transition.d.ts.map +1 -0
- package/dist/content-transition.js +94 -0
- package/dist/content-transition.js.map +1 -0
- package/dist/controls-core.d.ts +227 -0
- package/dist/controls-core.d.ts.map +1 -0
- package/dist/controls-core.js +652 -0
- package/dist/controls-core.js.map +1 -0
- package/dist/cookies.d.ts +78 -0
- package/dist/cookies.d.ts.map +1 -0
- package/dist/cookies.js +265 -0
- package/dist/cookies.js.map +1 -0
- package/dist/corner-shape-core.d.ts +69 -0
- package/dist/corner-shape-core.d.ts.map +1 -0
- package/dist/corner-shape-core.js +261 -0
- package/dist/corner-shape-core.js.map +1 -0
- package/dist/crypto-core.d.ts +57 -0
- package/dist/crypto-core.d.ts.map +1 -0
- package/dist/crypto-core.js +128 -0
- package/dist/crypto-core.js.map +1 -0
- package/dist/dataviz.d.ts +436 -0
- package/dist/dataviz.d.ts.map +1 -0
- package/dist/dataviz.js +956 -0
- package/dist/dataviz.js.map +1 -0
- package/dist/debug.d.ts +293 -0
- package/dist/debug.d.ts.map +1 -0
- package/dist/debug.js +767 -0
- package/dist/debug.js.map +1 -0
- package/dist/device-ownership.d.ts +50 -0
- package/dist/device-ownership.d.ts.map +1 -0
- package/dist/device-ownership.js +105 -0
- package/dist/device-ownership.js.map +1 -0
- package/dist/effects.d.ts +86 -0
- package/dist/effects.d.ts.map +1 -0
- package/dist/effects.js +98 -0
- package/dist/effects.js.map +1 -0
- package/dist/element.d.ts +108 -0
- package/dist/element.d.ts.map +1 -0
- package/dist/element.js +63 -0
- package/dist/element.js.map +1 -0
- package/dist/file-watch.d.ts +16 -0
- package/dist/file-watch.d.ts.map +1 -0
- package/dist/file-watch.js +49 -0
- package/dist/file-watch.js.map +1 -0
- package/dist/filepaths.d.ts +72 -0
- package/dist/filepaths.d.ts.map +1 -0
- package/dist/filepaths.js +271 -0
- package/dist/filepaths.js.map +1 -0
- package/dist/film.d.ts +264 -0
- package/dist/film.d.ts.map +1 -0
- package/dist/film.js +313 -0
- package/dist/film.js.map +1 -0
- package/dist/fonts.d.ts +66 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.js +135 -0
- package/dist/fonts.js.map +1 -0
- package/dist/forms.d.ts +191 -0
- package/dist/forms.d.ts.map +1 -0
- package/dist/forms.js +663 -0
- package/dist/forms.js.map +1 -0
- package/dist/geo.d.ts +289 -0
- package/dist/geo.d.ts.map +1 -0
- package/dist/geo.js +460 -0
- package/dist/geo.js.map +1 -0
- package/dist/handler-announce.d.ts +46 -0
- package/dist/handler-announce.d.ts.map +1 -0
- package/dist/handler-announce.js +96 -0
- package/dist/handler-announce.js.map +1 -0
- package/dist/handoff.d.ts +71 -0
- package/dist/handoff.d.ts.map +1 -0
- package/dist/handoff.js +250 -0
- package/dist/handoff.js.map +1 -0
- package/dist/identity-durability.d.ts +76 -0
- package/dist/identity-durability.d.ts.map +1 -0
- package/dist/identity-durability.js +150 -0
- package/dist/identity-durability.js.map +1 -0
- package/dist/image-core.d.ts +240 -0
- package/dist/image-core.d.ts.map +1 -0
- package/dist/image-core.js +618 -0
- package/dist/image-core.js.map +1 -0
- package/dist/image-schemes.d.ts +10 -0
- package/dist/image-schemes.d.ts.map +1 -0
- package/dist/image-schemes.js +28 -0
- package/dist/image-schemes.js.map +1 -0
- package/dist/index.d.ts +143 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +299 -0
- package/dist/index.js.map +1 -0
- package/dist/ink-core.d.ts +53 -0
- package/dist/ink-core.d.ts.map +1 -0
- package/dist/ink-core.js +119 -0
- package/dist/ink-core.js.map +1 -0
- package/dist/input.d.ts +148 -0
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +358 -0
- package/dist/input.js.map +1 -0
- package/dist/integrity.d.ts +63 -0
- package/dist/integrity.d.ts.map +1 -0
- package/dist/integrity.js +150 -0
- package/dist/integrity.js.map +1 -0
- package/dist/intents.d.ts +95 -0
- package/dist/intents.d.ts.map +1 -0
- package/dist/intents.js +282 -0
- package/dist/intents.js.map +1 -0
- package/dist/interpolate-core.d.ts +37 -0
- package/dist/interpolate-core.d.ts.map +1 -0
- package/dist/interpolate-core.js +443 -0
- package/dist/interpolate-core.js.map +1 -0
- package/dist/jse/color.d.ts +12 -0
- package/dist/jse/color.d.ts.map +1 -0
- package/dist/jse/color.js +196 -0
- package/dist/jse/color.js.map +1 -0
- package/dist/jse/core.d.ts +54 -0
- package/dist/jse/core.d.ts.map +1 -0
- package/dist/jse/core.js +1519 -0
- package/dist/jse/core.js.map +1 -0
- package/dist/jse/dispatch.d.ts +28 -0
- package/dist/jse/dispatch.d.ts.map +1 -0
- package/dist/jse/dispatch.js +116 -0
- package/dist/jse/dispatch.js.map +1 -0
- package/dist/jse/highlight-grammar.d.ts +15 -0
- package/dist/jse/highlight-grammar.d.ts.map +1 -0
- package/dist/jse/highlight-grammar.js +161 -0
- package/dist/jse/highlight-grammar.js.map +1 -0
- package/dist/jse/highlight-grammars.generated.d.ts +2 -0
- package/dist/jse/highlight-grammars.generated.d.ts.map +1 -0
- package/dist/jse/highlight-grammars.generated.js +4 -0
- package/dist/jse/highlight-grammars.generated.js.map +1 -0
- package/dist/jse/highlight.d.ts +37 -0
- package/dist/jse/highlight.d.ts.map +1 -0
- package/dist/jse/highlight.js +323 -0
- package/dist/jse/highlight.js.map +1 -0
- package/dist/jse/jse.d.ts +674 -0
- package/dist/jse/jse.d.ts.map +1 -0
- package/dist/jse/jse.js +5841 -0
- package/dist/jse/jse.js.map +1 -0
- package/dist/jse/pathmatch.d.ts +10 -0
- package/dist/jse/pathmatch.d.ts.map +1 -0
- package/dist/jse/pathmatch.js +73 -0
- package/dist/jse/pathmatch.js.map +1 -0
- package/dist/jse/regex.d.ts +33 -0
- package/dist/jse/regex.d.ts.map +1 -0
- package/dist/jse/regex.js +375 -0
- package/dist/jse/regex.js.map +1 -0
- package/dist/jse/stdlib.d.ts +8 -0
- package/dist/jse/stdlib.d.ts.map +1 -0
- package/dist/jse/stdlib.js +765 -0
- package/dist/jse/stdlib.js.map +1 -0
- package/dist/jse/tokens.d.ts +102 -0
- package/dist/jse/tokens.d.ts.map +1 -0
- package/dist/jse/tokens.js +982 -0
- package/dist/jse/tokens.js.map +1 -0
- package/dist/jse/values.d.ts +206 -0
- package/dist/jse/values.d.ts.map +1 -0
- package/dist/jse/values.js +846 -0
- package/dist/jse/values.js.map +1 -0
- package/dist/keyboard.d.ts +196 -0
- package/dist/keyboard.d.ts.map +1 -0
- package/dist/keyboard.js +186 -0
- package/dist/keyboard.js.map +1 -0
- package/dist/label-choices.d.ts +3 -0
- package/dist/label-choices.d.ts.map +1 -0
- package/dist/label-choices.js +168 -0
- package/dist/label-choices.js.map +1 -0
- package/dist/language.d.ts +33 -0
- package/dist/language.d.ts.map +1 -0
- package/dist/language.js +50 -0
- package/dist/language.js.map +1 -0
- package/dist/length-units.d.ts +30 -0
- package/dist/length-units.d.ts.map +1 -0
- package/dist/length-units.js +83 -0
- package/dist/length-units.js.map +1 -0
- package/dist/lightsensor.d.ts +48 -0
- package/dist/lightsensor.d.ts.map +1 -0
- package/dist/lightsensor.js +97 -0
- package/dist/lightsensor.js.map +1 -0
- package/dist/link-refresh.d.ts +27 -0
- package/dist/link-refresh.d.ts.map +1 -0
- package/dist/link-refresh.js +166 -0
- package/dist/link-refresh.js.map +1 -0
- package/dist/link.d.ts +57 -0
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +333 -0
- package/dist/link.js.map +1 -0
- package/dist/linkpreview.d.ts +114 -0
- package/dist/linkpreview.d.ts.map +1 -0
- package/dist/linkpreview.js +439 -0
- package/dist/linkpreview.js.map +1 -0
- package/dist/list-presence.d.ts +32 -0
- package/dist/list-presence.d.ts.map +1 -0
- package/dist/list-presence.js +48 -0
- package/dist/list-presence.js.map +1 -0
- package/dist/live-stream.d.ts +27 -0
- package/dist/live-stream.d.ts.map +1 -0
- package/dist/live-stream.js +274 -0
- package/dist/live-stream.js.map +1 -0
- package/dist/livelogs.d.ts +134 -0
- package/dist/livelogs.d.ts.map +1 -0
- package/dist/livelogs.js +409 -0
- package/dist/livelogs.js.map +1 -0
- package/dist/logs.d.ts +80 -0
- package/dist/logs.d.ts.map +1 -0
- package/dist/logs.js +206 -0
- package/dist/logs.js.map +1 -0
- package/dist/mcp/apps.d.ts +82 -0
- package/dist/mcp/apps.d.ts.map +1 -0
- package/dist/mcp/apps.js +219 -0
- package/dist/mcp/apps.js.map +1 -0
- package/dist/mcp/entities.d.ts +25 -0
- package/dist/mcp/entities.d.ts.map +1 -0
- package/dist/mcp/entities.js +71 -0
- package/dist/mcp/entities.js.map +1 -0
- package/dist/mcp/result.d.ts +73 -0
- package/dist/mcp/result.d.ts.map +1 -0
- package/dist/mcp/result.js +119 -0
- package/dist/mcp/result.js.map +1 -0
- package/dist/mcp/webmcp.d.ts +162 -0
- package/dist/mcp/webmcp.d.ts.map +1 -0
- package/dist/mcp/webmcp.js +214 -0
- package/dist/mcp/webmcp.js.map +1 -0
- package/dist/mcp.d.ts +5 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +14 -0
- package/dist/mcp.js.map +1 -0
- package/dist/media-core.d.ts +191 -0
- package/dist/media-core.d.ts.map +1 -0
- package/dist/media-core.js +446 -0
- package/dist/media-core.js.map +1 -0
- package/dist/media-timeline-core.d.ts +94 -0
- package/dist/media-timeline-core.d.ts.map +1 -0
- package/dist/media-timeline-core.js +620 -0
- package/dist/media-timeline-core.js.map +1 -0
- package/dist/message.d.ts +42 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.js +582 -0
- package/dist/message.js.map +1 -0
- package/dist/missing-element.d.ts +29 -0
- package/dist/missing-element.d.ts.map +1 -0
- package/dist/missing-element.js +76 -0
- package/dist/missing-element.js.map +1 -0
- package/dist/motion-core.d.ts +160 -0
- package/dist/motion-core.d.ts.map +1 -0
- package/dist/motion-core.js +752 -0
- package/dist/motion-core.js.map +1 -0
- package/dist/motion-pose.d.ts +65 -0
- package/dist/motion-pose.d.ts.map +1 -0
- package/dist/motion-pose.js +143 -0
- package/dist/motion-pose.js.map +1 -0
- package/dist/motion.d.ts +132 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/motion.js +260 -0
- package/dist/motion.js.map +1 -0
- package/dist/mount-core.d.ts +203 -0
- package/dist/mount-core.d.ts.map +1 -0
- package/dist/mount-core.js +437 -0
- package/dist/mount-core.js.map +1 -0
- package/dist/net-core.d.ts +110 -0
- package/dist/net-core.d.ts.map +1 -0
- package/dist/net-core.js +225 -0
- package/dist/net-core.js.map +1 -0
- package/dist/notify.d.ts +399 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +964 -0
- package/dist/notify.js.map +1 -0
- package/dist/orientation-binding.d.ts +39 -0
- package/dist/orientation-binding.d.ts.map +1 -0
- package/dist/orientation-binding.js +64 -0
- package/dist/orientation-binding.js.map +1 -0
- package/dist/orientation.d.ts +55 -0
- package/dist/orientation.d.ts.map +1 -0
- package/dist/orientation.js +89 -0
- package/dist/orientation.js.map +1 -0
- package/dist/ota.d.ts +52 -0
- package/dist/ota.d.ts.map +1 -0
- package/dist/ota.js +122 -0
- package/dist/ota.js.map +1 -0
- package/dist/passkeys.d.ts +91 -0
- package/dist/passkeys.d.ts.map +1 -0
- package/dist/passkeys.js +307 -0
- package/dist/passkeys.js.map +1 -0
- package/dist/payment.d.ts +85 -0
- package/dist/payment.d.ts.map +1 -0
- package/dist/payment.js +270 -0
- package/dist/payment.js.map +1 -0
- package/dist/pending-presenter.d.ts +31 -0
- package/dist/pending-presenter.d.ts.map +1 -0
- package/dist/pending-presenter.js +119 -0
- package/dist/pending-presenter.js.map +1 -0
- package/dist/permission-core.d.ts +59 -0
- package/dist/permission-core.d.ts.map +1 -0
- package/dist/permission-core.js +102 -0
- package/dist/permission-core.js.map +1 -0
- package/dist/persist.d.ts +169 -0
- package/dist/persist.d.ts.map +1 -0
- package/dist/persist.js +361 -0
- package/dist/persist.js.map +1 -0
- package/dist/phase-plan.d.ts +114 -0
- package/dist/phase-plan.d.ts.map +1 -0
- package/dist/phase-plan.js +837 -0
- package/dist/phase-plan.js.map +1 -0
- package/dist/playback-core.d.ts +64 -0
- package/dist/playback-core.d.ts.map +1 -0
- package/dist/playback-core.js +176 -0
- package/dist/playback-core.js.map +1 -0
- package/dist/player-sources.d.ts +12 -0
- package/dist/player-sources.d.ts.map +1 -0
- package/dist/player-sources.js +44 -0
- package/dist/player-sources.js.map +1 -0
- package/dist/proxy-denylist.d.ts +11 -0
- package/dist/proxy-denylist.d.ts.map +1 -0
- package/dist/proxy-denylist.js +44 -0
- package/dist/proxy-denylist.js.map +1 -0
- package/dist/public-config.d.ts +20 -0
- package/dist/public-config.d.ts.map +1 -0
- package/dist/public-config.js +109 -0
- package/dist/public-config.js.map +1 -0
- package/dist/qoe-core.d.ts +72 -0
- package/dist/qoe-core.d.ts.map +1 -0
- package/dist/qoe-core.js +113 -0
- package/dist/qoe-core.js.map +1 -0
- package/dist/reactive-request.d.ts +80 -0
- package/dist/reactive-request.d.ts.map +1 -0
- package/dist/reactive-request.js +192 -0
- package/dist/reactive-request.js.map +1 -0
- package/dist/read-cache.d.ts +129 -0
- package/dist/read-cache.d.ts.map +1 -0
- package/dist/read-cache.js +566 -0
- package/dist/read-cache.js.map +1 -0
- package/dist/recorder-core.d.ts +57 -0
- package/dist/recorder-core.d.ts.map +1 -0
- package/dist/recorder-core.js +136 -0
- package/dist/recorder-core.js.map +1 -0
- package/dist/ref.d.ts +41 -0
- package/dist/ref.d.ts.map +1 -0
- package/dist/ref.js +98 -0
- package/dist/ref.js.map +1 -0
- package/dist/refusal.d.ts +82 -0
- package/dist/refusal.d.ts.map +1 -0
- package/dist/refusal.js +218 -0
- package/dist/refusal.js.map +1 -0
- package/dist/region-insets.d.ts +61 -0
- package/dist/region-insets.d.ts.map +1 -0
- package/dist/region-insets.js +67 -0
- package/dist/region-insets.js.map +1 -0
- package/dist/rive-core.d.ts +323 -0
- package/dist/rive-core.d.ts.map +1 -0
- package/dist/rive-core.js +677 -0
- package/dist/rive-core.js.map +1 -0
- package/dist/runner.d.ts +595 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +4094 -0
- package/dist/runner.js.map +1 -0
- package/dist/scene/a11y.d.ts +11 -0
- package/dist/scene/a11y.d.ts.map +1 -0
- package/dist/scene/a11y.js +67 -0
- package/dist/scene/a11y.js.map +1 -0
- package/dist/scene/anim.d.ts +149 -0
- package/dist/scene/anim.d.ts.map +1 -0
- package/dist/scene/anim.js +396 -0
- package/dist/scene/anim.js.map +1 -0
- package/dist/scene/bind.d.ts +33 -0
- package/dist/scene/bind.d.ts.map +1 -0
- package/dist/scene/bind.js +66 -0
- package/dist/scene/bind.js.map +1 -0
- package/dist/scene/collide.d.ts +56 -0
- package/dist/scene/collide.d.ts.map +1 -0
- package/dist/scene/collide.js +146 -0
- package/dist/scene/collide.js.map +1 -0
- package/dist/scene/frame.d.ts +22 -0
- package/dist/scene/frame.d.ts.map +1 -0
- package/dist/scene/frame.js +57 -0
- package/dist/scene/frame.js.map +1 -0
- package/dist/scene/gltf.d.ts +79 -0
- package/dist/scene/gltf.d.ts.map +1 -0
- package/dist/scene/gltf.js +409 -0
- package/dist/scene/gltf.js.map +1 -0
- package/dist/scene/ir.d.ts +293 -0
- package/dist/scene/ir.d.ts.map +1 -0
- package/dist/scene/ir.js +692 -0
- package/dist/scene/ir.js.map +1 -0
- package/dist/scene/math.d.ts +50 -0
- package/dist/scene/math.d.ts.map +1 -0
- package/dist/scene/math.js +180 -0
- package/dist/scene/math.js.map +1 -0
- package/dist/scene/orbit.d.ts +19 -0
- package/dist/scene/orbit.d.ts.map +1 -0
- package/dist/scene/orbit.js +60 -0
- package/dist/scene/orbit.js.map +1 -0
- package/dist/scene/physics.d.ts +228 -0
- package/dist/scene/physics.d.ts.map +1 -0
- package/dist/scene/physics.js +1500 -0
- package/dist/scene/physics.js.map +1 -0
- package/dist/scene/registry.d.ts +85 -0
- package/dist/scene/registry.d.ts.map +1 -0
- package/dist/scene/registry.js +75 -0
- package/dist/scene/registry.js.map +1 -0
- package/dist/scene/skin.d.ts +82 -0
- package/dist/scene/skin.d.ts.map +1 -0
- package/dist/scene/skin.js +351 -0
- package/dist/scene/skin.js.map +1 -0
- package/dist/scene/sprite.d.ts +36 -0
- package/dist/scene/sprite.d.ts.map +1 -0
- package/dist/scene/sprite.js +107 -0
- package/dist/scene/sprite.js.map +1 -0
- package/dist/scene/viewer.d.ts +96 -0
- package/dist/scene/viewer.d.ts.map +1 -0
- package/dist/scene/viewer.js +235 -0
- package/dist/scene/viewer.js.map +1 -0
- package/dist/scoped-slots.d.ts +9 -0
- package/dist/scoped-slots.d.ts.map +1 -0
- package/dist/scoped-slots.js +42 -0
- package/dist/scoped-slots.js.map +1 -0
- package/dist/screen.d.ts +109 -0
- package/dist/screen.d.ts.map +1 -0
- package/dist/screen.js +309 -0
- package/dist/screen.js.map +1 -0
- package/dist/scroll.d.ts +525 -0
- package/dist/scroll.d.ts.map +1 -0
- package/dist/scroll.js +1226 -0
- package/dist/scroll.js.map +1 -0
- package/dist/settings-plane.d.ts +58 -0
- package/dist/settings-plane.d.ts.map +1 -0
- package/dist/settings-plane.js +86 -0
- package/dist/settings-plane.js.map +1 -0
- package/dist/share-inbox.d.ts +56 -0
- package/dist/share-inbox.d.ts.map +1 -0
- package/dist/share-inbox.js +114 -0
- package/dist/share-inbox.js.map +1 -0
- package/dist/shared-transition.d.ts +152 -0
- package/dist/shared-transition.d.ts.map +1 -0
- package/dist/shared-transition.js +257 -0
- package/dist/shared-transition.js.map +1 -0
- package/dist/sheet-content-padding.d.ts +24 -0
- package/dist/sheet-content-padding.d.ts.map +1 -0
- package/dist/sheet-content-padding.js +32 -0
- package/dist/sheet-content-padding.js.map +1 -0
- package/dist/shot-devices.d.ts +36 -0
- package/dist/shot-devices.d.ts.map +1 -0
- package/dist/shot-devices.js +90 -0
- package/dist/shot-devices.js.map +1 -0
- package/dist/shot-guards.d.ts +100 -0
- package/dist/shot-guards.d.ts.map +1 -0
- package/dist/shot-guards.js +260 -0
- package/dist/shot-guards.js.map +1 -0
- package/dist/shot-scope.d.ts +140 -0
- package/dist/shot-scope.d.ts.map +1 -0
- package/dist/shot-scope.js +302 -0
- package/dist/shot-scope.js.map +1 -0
- package/dist/slot-partition.d.ts +9 -0
- package/dist/slot-partition.d.ts.map +1 -0
- package/dist/slot-partition.js +38 -0
- package/dist/slot-partition.js.map +1 -0
- package/dist/snackbar.d.ts +165 -0
- package/dist/snackbar.d.ts.map +1 -0
- package/dist/snackbar.js +220 -0
- package/dist/snackbar.js.map +1 -0
- package/dist/socket.d.ts +96 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +370 -0
- package/dist/socket.js.map +1 -0
- package/dist/spotlight.d.ts +77 -0
- package/dist/spotlight.d.ts.map +1 -0
- package/dist/spotlight.js +174 -0
- package/dist/spotlight.js.map +1 -0
- package/dist/state-primitive.d.ts +37 -0
- package/dist/state-primitive.d.ts.map +1 -0
- package/dist/state-primitive.js +91 -0
- package/dist/state-primitive.js.map +1 -0
- package/dist/store-query.d.ts +25 -0
- package/dist/store-query.d.ts.map +1 -0
- package/dist/store-query.js +88 -0
- package/dist/store-query.js.map +1 -0
- package/dist/store-value.d.ts +48 -0
- package/dist/store-value.d.ts.map +1 -0
- package/dist/store-value.js +264 -0
- package/dist/store-value.js.map +1 -0
- package/dist/store-versioning.d.ts +70 -0
- package/dist/store-versioning.d.ts.map +1 -0
- package/dist/store-versioning.js +188 -0
- package/dist/store-versioning.js.map +1 -0
- package/dist/store.d.ts +282 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +1144 -0
- package/dist/store.js.map +1 -0
- package/dist/strings.d.ts +141 -0
- package/dist/strings.d.ts.map +1 -0
- package/dist/strings.js +581 -0
- package/dist/strings.js.map +1 -0
- package/dist/telemetry.d.ts +95 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +255 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/transform-core.d.ts +228 -0
- package/dist/transform-core.d.ts.map +1 -0
- package/dist/transform-core.js +921 -0
- package/dist/transform-core.js.map +1 -0
- package/dist/transition-core.d.ts +58 -0
- package/dist/transition-core.d.ts.map +1 -0
- package/dist/transition-core.js +352 -0
- package/dist/transition-core.js.map +1 -0
- package/dist/trim-trailing.d.ts +3 -0
- package/dist/trim-trailing.d.ts.map +1 -0
- package/dist/trim-trailing.js +14 -0
- package/dist/trim-trailing.js.map +1 -0
- package/dist/upload.d.ts +51 -0
- package/dist/upload.d.ts.map +1 -0
- package/dist/upload.js +68 -0
- package/dist/upload.js.map +1 -0
- package/dist/vendor-face.d.ts +44 -0
- package/dist/vendor-face.d.ts.map +1 -0
- package/dist/vendor-face.js +80 -0
- package/dist/vendor-face.js.map +1 -0
- package/dist/vendor-session.d.ts +166 -0
- package/dist/vendor-session.d.ts.map +1 -0
- package/dist/vendor-session.js +423 -0
- package/dist/vendor-session.js.map +1 -0
- package/dist/vendor-surface.d.ts +290 -0
- package/dist/vendor-surface.d.ts.map +1 -0
- package/dist/vendor-surface.js +439 -0
- package/dist/vendor-surface.js.map +1 -0
- package/dist/version-rules.generated.d.ts +17 -0
- package/dist/version-rules.generated.d.ts.map +1 -0
- package/dist/version-rules.generated.js +99 -0
- package/dist/version-rules.generated.js.map +1 -0
- package/dist/view-transition-core.d.ts +99 -0
- package/dist/view-transition-core.d.ts.map +1 -0
- package/dist/view-transition-core.js +127 -0
- package/dist/view-transition-core.js.map +1 -0
- package/dist/view-transition-door.d.ts +26 -0
- package/dist/view-transition-door.d.ts.map +1 -0
- package/dist/view-transition-door.js +88 -0
- package/dist/view-transition-door.js.map +1 -0
- package/dist/window-identity.d.ts +3 -0
- package/dist/window-identity.d.ts.map +1 -0
- package/dist/window-identity.js +27 -0
- package/dist/window-identity.js.map +1 -0
- package/package.json +139 -4
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
//
|
|
2
|
+
// shot-guards.ts - THE SHOT GUARD SET (platform/10-screenshot-execution.md §4).
|
|
3
|
+
//
|
|
4
|
+
// Ways to refuse an image, each with its own detector, because they are different
|
|
5
|
+
// failures and only one of them is obvious:
|
|
6
|
+
//
|
|
7
|
+
// G-unresolved a binding with no value at any tier (shot-scope.ts)
|
|
8
|
+
// G-empty the screen RENDERED FINE and says "No data" (this file)
|
|
9
|
+
// G-unsettled a settle condition never held inside budget (this file)
|
|
10
|
+
// G-blank the frame painted neither text nor an image (this file)
|
|
11
|
+
// G-cover a decoration covers readable app UI silently (this file)
|
|
12
|
+
// G-safe content crowds the card edge past the safe inset (this file)
|
|
13
|
+
//
|
|
14
|
+
// G-empty is the one worth reading twice. `{{ user.name }}` rendering as literal text is a
|
|
15
|
+
// bug anyone spots. A screen that renders perfectly, with correct chrome and real typography,
|
|
16
|
+
// and shows an empty list under a "Recent orders" header is a DIFFERENT failure: everything
|
|
17
|
+
// technically worked, nothing threw, and the resulting image is a store rejection for
|
|
18
|
+
// placeholder content. Only a zero-row rule catches it.
|
|
19
|
+
//
|
|
20
|
+
// This file is pure. It scores a FRAME REPORT that the browser driver collects; it never
|
|
21
|
+
// touches the DOM itself, so the same law can be scored from a native capture later.
|
|
22
|
+
//
|
|
23
|
+
/** The card canvas keeps a 1rem safe inset on its content - the same responsive discipline
|
|
24
|
+
* DSX enforces everywhere else. Enforced on the MEASURED frame, so a template edit that
|
|
25
|
+
* glues the phone to the card border is caught even when the template's own padding was
|
|
26
|
+
* supposed to prevent it. */
|
|
27
|
+
export const SAFE_INSET_PX = 16;
|
|
28
|
+
/** Rounding and hairline borders must not refuse a box that sits exactly on the inset. */
|
|
29
|
+
const SAFE_SLACK_PX = 4;
|
|
30
|
+
/** How far `rect` intrudes into the safe inset of `card`, per edge; all zeros is lawful.
|
|
31
|
+
* `edges` names which edges the law applies to (the device's bottom runs into the dissolve
|
|
32
|
+
* by design, so its bottom edge is exempt). */
|
|
33
|
+
function safeIntrusion(rect, card, inset, edges) {
|
|
34
|
+
const out = [];
|
|
35
|
+
const l = rect.x - (card.x + inset);
|
|
36
|
+
const r = (card.x + card.w - inset) - (rect.x + rect.w);
|
|
37
|
+
const t = rect.y - (card.y + inset);
|
|
38
|
+
const b = (card.y + card.h - inset) - (rect.y + rect.h);
|
|
39
|
+
if (edges.left && l < -SAFE_SLACK_PX)
|
|
40
|
+
out.push(`${Math.round(-l)}px past the left inset`);
|
|
41
|
+
if (edges.right && r < -SAFE_SLACK_PX)
|
|
42
|
+
out.push(`${Math.round(-r)}px past the right inset`);
|
|
43
|
+
if (edges.top && t < -SAFE_SLACK_PX)
|
|
44
|
+
out.push(`${Math.round(-t)}px past the top inset`);
|
|
45
|
+
if (edges.bottom && b < -SAFE_SLACK_PX)
|
|
46
|
+
out.push(`${Math.round(-b)}px past the bottom inset`);
|
|
47
|
+
return out;
|
|
48
|
+
}
|
|
49
|
+
// ── the containment arithmetic (pure, so a native capture can score the same law) ─────
|
|
50
|
+
function intersect(a, b) {
|
|
51
|
+
const x = Math.max(a.x, b.x);
|
|
52
|
+
const y = Math.max(a.y, b.y);
|
|
53
|
+
const r = Math.min(a.x + a.w, b.x + b.w);
|
|
54
|
+
const btm = Math.min(a.y + a.h, b.y + b.h);
|
|
55
|
+
if (r - x <= 0 || btm - y <= 0)
|
|
56
|
+
return null;
|
|
57
|
+
return { x, y, w: r - x, h: btm - y };
|
|
58
|
+
}
|
|
59
|
+
/** A touch under this many px in either axis is a kiss, not a cover - rounding and border
|
|
60
|
+
* overlap must not refuse a legitimate composition. */
|
|
61
|
+
const COVER_SLACK_PX = 6;
|
|
62
|
+
/** Where the app UI stops being READABLE. The visible screen is the screen clipped by the
|
|
63
|
+
* crop window; under a dissolve veil the UI is design ground, not content, so the readable
|
|
64
|
+
* zone ends partway into the gradient (35% in ≈ where the card colour takes over). */
|
|
65
|
+
export function readableScreen(scene) {
|
|
66
|
+
if (scene.screen === null)
|
|
67
|
+
return null;
|
|
68
|
+
let zone = scene.screen;
|
|
69
|
+
if (scene.crop !== undefined && scene.crop !== null) {
|
|
70
|
+
const clipped = intersect(zone, scene.crop);
|
|
71
|
+
if (clipped === null)
|
|
72
|
+
return null;
|
|
73
|
+
zone = clipped;
|
|
74
|
+
}
|
|
75
|
+
if (scene.veil !== undefined && scene.veil !== null) {
|
|
76
|
+
const readableBottom = scene.veil.y + scene.veil.h * 0.35;
|
|
77
|
+
const h = readableBottom - zone.y;
|
|
78
|
+
if (h <= 0)
|
|
79
|
+
return null;
|
|
80
|
+
zone = { x: zone.x, y: zone.y, w: zone.w, h: Math.min(zone.h, h) };
|
|
81
|
+
}
|
|
82
|
+
return zone;
|
|
83
|
+
}
|
|
84
|
+
function allows(allow, ref) {
|
|
85
|
+
if (allow === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (allow === true)
|
|
88
|
+
return true;
|
|
89
|
+
return allow.includes(ref);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Score a collected frame. An empty result means the image may be published.
|
|
93
|
+
*/
|
|
94
|
+
export function evaluateShotGuards(report, opts = {}) {
|
|
95
|
+
const findings = [];
|
|
96
|
+
// ── G-unsettled ──
|
|
97
|
+
const settle = report.settle;
|
|
98
|
+
const conditions = [
|
|
99
|
+
[settle.fontsReady, "fonts", "document.fonts.ready never resolved - the capture would use the fallback face"],
|
|
100
|
+
[settle.imagesDecoded, "images", "an <img> never decoded - it would be a blank box in the PNG"],
|
|
101
|
+
[settle.domStable, "dom", "the DOM never held still for three consecutive snapshots"],
|
|
102
|
+
[settle.actionsIdle, "actions", "the action queue never drained"],
|
|
103
|
+
[settle.transportIdle, "transport", "a request was still in flight"],
|
|
104
|
+
];
|
|
105
|
+
for (const [ok, subject, reason] of conditions) {
|
|
106
|
+
if (!ok) {
|
|
107
|
+
findings.push({
|
|
108
|
+
guard: "G-unsettled",
|
|
109
|
+
subject,
|
|
110
|
+
reason,
|
|
111
|
+
fix: "raise the settle budget for this shot, or fix what never rests",
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
for (const element of settle.restless) {
|
|
116
|
+
findings.push({
|
|
117
|
+
guard: "G-unsettled",
|
|
118
|
+
subject: element,
|
|
119
|
+
reason: "a continuous surface could not be frozen",
|
|
120
|
+
fix: `give ${element} a poster/frame, or exclude it from this shot`,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// ── G-blank ──
|
|
124
|
+
//
|
|
125
|
+
// A slide with no text and no painted image is a rectangle of background colour. Nothing
|
|
126
|
+
// threw, no api failed, no collection was empty (there were none), and every settle
|
|
127
|
+
// condition held - so every other guard passes it, and it uploads to a store as a blank
|
|
128
|
+
// banner. This guard exists because that happened: a composition template whose layers
|
|
129
|
+
// silently collapsed to zero width rendered a flat 1024x500 rectangle and was reported ok.
|
|
130
|
+
//
|
|
131
|
+
// Text OR an image is enough; a full-bleed screenshot with no caption is legitimate.
|
|
132
|
+
const ink = report.ink;
|
|
133
|
+
if (ink !== undefined && ink.text === 0 && ink.images === 0) {
|
|
134
|
+
findings.push({
|
|
135
|
+
guard: "G-blank",
|
|
136
|
+
subject: "slide",
|
|
137
|
+
reason: "the frame rendered no text and no image - it is a rectangle of background colour",
|
|
138
|
+
fix: "check the template's layers: a layer that collapsed to zero size paints nothing",
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
// ── G-cover ──
|
|
142
|
+
//
|
|
143
|
+
// The containment law of the composed scene: a decoration may sit beside the phone, over
|
|
144
|
+
// the bezel, over the dissolve - anywhere - but the moment it covers READABLE app UI it
|
|
145
|
+
// must say so (`over: "screen"` on its data row). The app screen is the thing the store
|
|
146
|
+
// listing is selling and the thing review compares against the real build; a chip that
|
|
147
|
+
// drifts onto the greeting because a headline wrapped is not a design choice, it is the
|
|
148
|
+
// layout equivalent of an unresolved binding. This guard is what lets the freeform-feeling
|
|
149
|
+
// parts of a slide stay data-driven without freeform's failure mode.
|
|
150
|
+
const scene = report.scene;
|
|
151
|
+
if (scene !== undefined) {
|
|
152
|
+
const readable = readableScreen(scene);
|
|
153
|
+
if (readable !== null) {
|
|
154
|
+
for (const d of scene.decor) {
|
|
155
|
+
if (d.over === "screen")
|
|
156
|
+
continue;
|
|
157
|
+
const hit = intersect(d.rect, readable);
|
|
158
|
+
if (hit === null || hit.w <= COVER_SLACK_PX || hit.h <= COVER_SLACK_PX)
|
|
159
|
+
continue;
|
|
160
|
+
findings.push({
|
|
161
|
+
guard: "G-cover",
|
|
162
|
+
subject: d.label,
|
|
163
|
+
reason: `it covers ${Math.round(hit.w)}x${Math.round(hit.h)}px of readable app UI without declaring it`,
|
|
164
|
+
fix: `move it off the screen, or declare over: "screen" on its row if covering the UI is the composition`,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
// ── G-safe ──
|
|
170
|
+
//
|
|
171
|
+
// The safe-inset law: the card canvas is not a freeform poster. The device keeps the
|
|
172
|
+
// inset on its left and right (its top is flow, its bottom runs into the dissolve by
|
|
173
|
+
// design), and every decoration keeps it on all four edges unless its row declares
|
|
174
|
+
// `bleed: true`. The template's own padding is supposed to make a violation impossible;
|
|
175
|
+
// this guard is what notices when an edit makes it possible again.
|
|
176
|
+
if (scene !== undefined && scene.card !== undefined && scene.card !== null) {
|
|
177
|
+
const card = scene.card;
|
|
178
|
+
if (scene.device !== undefined && scene.device !== null) {
|
|
179
|
+
const hits = safeIntrusion(scene.device, card, opts.safeInsetPx ?? SAFE_INSET_PX, { left: true, right: true, top: false, bottom: false });
|
|
180
|
+
for (const hit of hits) {
|
|
181
|
+
findings.push({
|
|
182
|
+
guard: "G-safe",
|
|
183
|
+
subject: "device",
|
|
184
|
+
reason: `the device sits ${hit} - it is glued to the card edge with no breathing room`,
|
|
185
|
+
fix: "reduce deviceWidth: 100% is the largest lawful phone, sized against the safe width",
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
for (const d of scene.decor) {
|
|
190
|
+
if (d.bleed === true)
|
|
191
|
+
continue;
|
|
192
|
+
const hits = safeIntrusion(d.rect, card, opts.safeInsetPx ?? SAFE_INSET_PX, { left: true, right: true, top: true, bottom: true });
|
|
193
|
+
for (const hit of hits) {
|
|
194
|
+
findings.push({
|
|
195
|
+
guard: "G-safe",
|
|
196
|
+
subject: d.label,
|
|
197
|
+
reason: `it sits ${hit}`,
|
|
198
|
+
fix: `move it inside the safe area, or declare bleed: true on its row if running off the card is the composition`,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
// ── G-empty ──
|
|
204
|
+
for (const miss of report.seamMisses) {
|
|
205
|
+
findings.push({
|
|
206
|
+
guard: "G-empty",
|
|
207
|
+
subject: miss,
|
|
208
|
+
reason: "a request the armed response plane did not recognise",
|
|
209
|
+
fix: "declare a sample= whose url template matches it, or record a cassette",
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
for (const api of report.apis) {
|
|
213
|
+
if (api.error !== null && api.error !== undefined) {
|
|
214
|
+
findings.push({
|
|
215
|
+
guard: "G-empty",
|
|
216
|
+
subject: api.as,
|
|
217
|
+
reason: `the api settled with an error (${JSON.stringify(api.error)})`,
|
|
218
|
+
fix: `check the sample= or cassette entry for <api as="${api.as}"/>`,
|
|
219
|
+
});
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
if (api.blockedBy.length > 0 || api.status === "waiting") {
|
|
223
|
+
findings.push({
|
|
224
|
+
guard: "G-empty",
|
|
225
|
+
subject: api.as,
|
|
226
|
+
reason: `still gated on ${api.blockedBy.join(", ") || "an upstream block"}`,
|
|
227
|
+
fix: "resolve the upstream block's inputs - its dependency never produced a value",
|
|
228
|
+
});
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
if (api.loading || api.refreshing) {
|
|
232
|
+
findings.push({
|
|
233
|
+
guard: "G-unsettled",
|
|
234
|
+
subject: api.as,
|
|
235
|
+
reason: "the block was still loading at capture",
|
|
236
|
+
fix: "raise the settle budget for this shot",
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
for (const collection of report.collections) {
|
|
241
|
+
if (collection.rows > 0)
|
|
242
|
+
continue;
|
|
243
|
+
if (allows(opts.allowEmpty, collection.ref))
|
|
244
|
+
continue;
|
|
245
|
+
findings.push({
|
|
246
|
+
guard: "G-empty",
|
|
247
|
+
subject: collection.ref,
|
|
248
|
+
reason: `a bound <${collection.tag}> rendered ZERO rows - this is the "No data found" screenshot`,
|
|
249
|
+
fix: `give its bound data a sample=, or add allowEmpty="${collection.ref}" if the empty state IS the point`,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
return findings;
|
|
253
|
+
}
|
|
254
|
+
/** Did every settle condition hold? Kept separate so the driver can keep waiting rather
|
|
255
|
+
* than failing the moment one is false. */
|
|
256
|
+
export function settleHolds(settle) {
|
|
257
|
+
return settle.fontsReady && settle.imagesDecoded && settle.domStable
|
|
258
|
+
&& settle.actionsIdle && settle.transportIdle && settle.restless.length === 0;
|
|
259
|
+
}
|
|
260
|
+
//# sourceMappingURL=shot-guards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shot-guards.js","sourceRoot":"","sources":["../src/shot-guards.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,iFAAiF;AACjF,EAAE;AACF,mFAAmF;AACnF,6CAA6C;AAC7C,EAAE;AACF,kFAAkF;AAClF,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,gFAAgF;AAChF,EAAE;AACF,4FAA4F;AAC5F,+FAA+F;AAC/F,6FAA6F;AAC7F,uFAAuF;AACvF,yDAAyD;AACzD,EAAE;AACF,0FAA0F;AAC1F,sFAAsF;AACtF,EAAE;AA4EF;;;8BAG8B;AAC9B,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAEhC,0FAA0F;AAC1F,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB;;gDAEgD;AAChD,SAAS,aAAa,CACpB,IAAe,EAAE,IAAe,EAAE,KAAa,EAC/C,KAAuE;IAEvE,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,C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"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { isDict, type Dict } from "./jse/values.ts";
|
|
2
|
+
/** The subset of `ComponentHead` the resolver reads. Structural, so a `ComponentHead`
|
|
3
|
+
* satisfies it without the kernel importing the compiler (which it must not). */
|
|
4
|
+
export type ShotHead = {
|
|
5
|
+
attributes: ReadonlyArray<{
|
|
6
|
+
as: string;
|
|
7
|
+
default?: string;
|
|
8
|
+
sample?: string;
|
|
9
|
+
}>;
|
|
10
|
+
variables: ReadonlyArray<{
|
|
11
|
+
as: string;
|
|
12
|
+
body: string;
|
|
13
|
+
computed: boolean;
|
|
14
|
+
sample?: string;
|
|
15
|
+
}>;
|
|
16
|
+
apis: ReadonlyArray<{
|
|
17
|
+
as: string;
|
|
18
|
+
attrs: {
|
|
19
|
+
[k: string]: string;
|
|
20
|
+
};
|
|
21
|
+
sample?: string;
|
|
22
|
+
}>;
|
|
23
|
+
events?: ReadonlyArray<{
|
|
24
|
+
as: string;
|
|
25
|
+
payload: string[];
|
|
26
|
+
sample?: string;
|
|
27
|
+
}>;
|
|
28
|
+
/** `<expects variable="x"/>` - state the MOUNTING side seeds. A headless shot has no
|
|
29
|
+
* mounting side, so every row resolves through this ladder or lands unresolved (§5a). */
|
|
30
|
+
expects?: ReadonlyArray<string>;
|
|
31
|
+
};
|
|
32
|
+
/** The project-wide plane: the app-wide store's sample values. The word matches the module
|
|
33
|
+
* manifests' own `hydrate` (writing-unit-tests.md), which is the same idea one scope down. */
|
|
34
|
+
export type ShotHydrate = {
|
|
35
|
+
global?: Dict;
|
|
36
|
+
};
|
|
37
|
+
/** A frozen live snapshot from the state door (`devState()`), the capture-from-preview path. */
|
|
38
|
+
export type ShotSnapshot = {
|
|
39
|
+
screen?: string | null;
|
|
40
|
+
vars?: ReadonlyArray<{
|
|
41
|
+
name: string;
|
|
42
|
+
value: unknown;
|
|
43
|
+
}>;
|
|
44
|
+
/** the `global.*` plane - W2 made the door's read half symmetric with its write half */
|
|
45
|
+
globals?: Dict;
|
|
46
|
+
};
|
|
47
|
+
/** Per-image overrides, the top tier. `vars`/`globals` are dotted-name keyed. */
|
|
48
|
+
export type ShotOverrides = {
|
|
49
|
+
vars?: Dict;
|
|
50
|
+
globals?: Dict;
|
|
51
|
+
};
|
|
52
|
+
/** Where an api's answer comes from. `record` is `live` that also writes a cassette, so it
|
|
53
|
+
* has live's reachability and replay's determinism on the NEXT run - which is why it is the
|
|
54
|
+
* mode a project settles on once it has a staging backend. */
|
|
55
|
+
export type ShotMode = "sample" | "replay" | "record" | "live";
|
|
56
|
+
export type ShotScopeInput = {
|
|
57
|
+
head: ShotHead;
|
|
58
|
+
hydrate?: ShotHydrate;
|
|
59
|
+
snapshot?: ShotSnapshot | null;
|
|
60
|
+
overrides?: ShotOverrides;
|
|
61
|
+
/** `/notes/:id` params for the shot's route, resolved into the attribute scope (§5b). */
|
|
62
|
+
routeParams?: {
|
|
63
|
+
[name: string]: unknown;
|
|
64
|
+
};
|
|
65
|
+
/** Which response plane is armed. `sample` requires every reachable api to carry a
|
|
66
|
+
* `sample=`; `replay` is answered by the cassette; `live` reaches the network. */
|
|
67
|
+
mode?: ShotMode;
|
|
68
|
+
/** Names the cassette can answer, so `replay` does not demand a `sample=` too. */
|
|
69
|
+
cassetteKeys?: ReadonlyArray<string>;
|
|
70
|
+
};
|
|
71
|
+
/** Why a name could not be resolved. `kind` is the declaration site; `name` is what the
|
|
72
|
+
* author has to fix; `fix` is the sentence the report prints. */
|
|
73
|
+
export type ShotUnresolved = {
|
|
74
|
+
kind: "attribute" | "variable" | "expects" | "api" | "global" | "routeParam";
|
|
75
|
+
name: string;
|
|
76
|
+
reason: string;
|
|
77
|
+
fix: string;
|
|
78
|
+
};
|
|
79
|
+
/** One armed seam route: any request matching `method` + `template` is answered with `data`. */
|
|
80
|
+
export type ShotSeamRoute = {
|
|
81
|
+
as: string;
|
|
82
|
+
method: string;
|
|
83
|
+
/** the authored url with `{{ … }}` holes intact - matching is by template, not by value,
|
|
84
|
+
* because the hole's value is whatever the DAG interpolated at fire time */
|
|
85
|
+
template: string;
|
|
86
|
+
/** the regex source the driver matches with (holes widened to a single segment) */
|
|
87
|
+
pattern: string;
|
|
88
|
+
data: unknown;
|
|
89
|
+
};
|
|
90
|
+
export type ShotScopeResult = {
|
|
91
|
+
/** the entry surface's ATTRIBUTES - what a parent would pass. Kept separate from `vars`
|
|
92
|
+
* because a component reads its own attributes as `dsx.attribute.<name>` and its variables
|
|
93
|
+
* by bare name: seeding an attribute into the variable scope would make the shot render
|
|
94
|
+
* differently from the way the component is really used, which is the one thing a
|
|
95
|
+
* screenshot must never do. */
|
|
96
|
+
attrs: Dict;
|
|
97
|
+
/** the screen's own variable scope, ready for the store / `renderToString(vars)` */
|
|
98
|
+
vars: Dict;
|
|
99
|
+
/** the app-wide plane, ready for `devSetState("global.<k>", v)` */
|
|
100
|
+
globals: Dict;
|
|
101
|
+
/** SSR/isolated-render seeds keyed by `as` (the `renderToString` opts shape) */
|
|
102
|
+
apiSeeds: {
|
|
103
|
+
[as: string]: {
|
|
104
|
+
data: unknown;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
/** the live-boot response plane */
|
|
108
|
+
seamPlan: ShotSeamRoute[];
|
|
109
|
+
/** non-empty means NO IMAGE */
|
|
110
|
+
unresolved: ShotUnresolved[];
|
|
111
|
+
};
|
|
112
|
+
/** A sample is JSON, never an expression - `JSON.parse` on every runner, in lint, and in
|
|
113
|
+
* every future native editor. A malformed one is a lint error at authoring time; here it
|
|
114
|
+
* is simply not a value, so the name falls through to the next tier honestly. */
|
|
115
|
+
export declare function parseSample(text: string | undefined): {
|
|
116
|
+
ok: boolean;
|
|
117
|
+
value: unknown;
|
|
118
|
+
};
|
|
119
|
+
/** `/api/orders?user={{ user.data.id }}` → an anchored regex source. */
|
|
120
|
+
export declare function templateToPattern(template: string): string;
|
|
121
|
+
/**
|
|
122
|
+
* Two routes COLLIDE when one request could be answered by either with a different answer.
|
|
123
|
+
*
|
|
124
|
+
* Identical shapes carrying identical data are not a collision: it does not matter which one
|
|
125
|
+
* answers, so refusing them would be a false positive on a screen that legitimately declares
|
|
126
|
+
* the same read twice. What is refused is genuine ambiguity, and it is refused at PLAN time
|
|
127
|
+
* rather than becoming a runtime coin flip nobody can reproduce.
|
|
128
|
+
*/
|
|
129
|
+
export declare function seamCollisions(routes: ReadonlyArray<ShotSeamRoute>): Array<{
|
|
130
|
+
a: string;
|
|
131
|
+
b: string;
|
|
132
|
+
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Resolve one screen's shot scope. Pure: same inputs, same result, on every runtime.
|
|
135
|
+
*/
|
|
136
|
+
export declare function resolveShotScope(input: ShotScopeInput): ShotScopeResult;
|
|
137
|
+
/** The one-line verdict a report prints. Kept here so every face says it the same way. */
|
|
138
|
+
export declare function shotScopeVerdict(result: ShotScopeResult): string;
|
|
139
|
+
export { isDict as isShotDict };
|
|
140
|
+
//# sourceMappingURL=shot-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shot-scope.d.ts","sourceRoot":"","sources":["../src/shot-scope.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAIpD;kFACkF;AAClF,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7E,SAAS,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3F,IAAI,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE;YAA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