@flapsdk/vault-runtime 0.1.40-next.2 → 0.1.40-next.4
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/README.md +2 -2
- package/{chunk-2K4HG2TC.js → chunk-5DU4W4CK.js} +417 -58
- package/chunk-5DU4W4CK.js.map +1 -0
- package/{chunk-WTLF4JPJ.js → chunk-FNM6KION.js} +3 -3
- package/{chunk-WTLF4JPJ.js.map → chunk-FNM6KION.js.map} +1 -1
- package/host-client.js +2 -2
- package/{maplibre-gl-5HQYASCY.js → maplibre-gl-KTPWJHIW.js} +3 -3
- package/maplibre-gl-KTPWJHIW.js.map +1 -0
- package/{mpegts-6MFVUHRP.js → mpegts-536UQHCG.js} +6 -6
- package/{mpegts-6MFVUHRP.js.map → mpegts-536UQHCG.js.map} +1 -1
- package/package.json +2 -2
- package/runtime-contract.json +3 -2
- package/sdk.js +4 -4
- package/ui.d.mts +49 -5
- package/ui.js +1 -1
- package/chunk-2K4HG2TC.js.map +0 -1
- package/maplibre-gl-5HQYASCY.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Generated from `flap-vault-ui-template`.
|
|
|
6
6
|
|
|
7
7
|
This package is the shared runtime surface that local preview, Artifact Workbench, and `flap.sh` should agree on.
|
|
8
8
|
|
|
9
|
-
Package version: `0.1.40-next.
|
|
9
|
+
Package version: `0.1.40-next.4`. Source commit: `3e677efb7f81d50575c5ae9ddd773d4c87a79f54`.
|
|
10
10
|
|
|
11
11
|
## Exports
|
|
12
12
|
|
|
@@ -33,7 +33,7 @@ accepting new route-dependent artifacts; source-package provenance is unchanged.
|
|
|
33
33
|
|
|
34
34
|
## Street maps
|
|
35
35
|
|
|
36
|
-
The `./ui` export `FlapStreetMap` requires `mapCapabilities: ["street-map-v1"]` and `uiFeatures.streetMap = 1`. Hosts copy the packaged `runtime-map/maplibre-6.15.0-worker.mjs` to the exact same-origin path `/runtime-map/maplibre-6.15.0-worker.mjs`. The fixed MapLibre 6.15.0 engine is lazy bundled; there is no CDN loader, arbitrary style/URL/Worker/HTML API or automatic GPS request.
|
|
36
|
+
The `./ui` export `FlapStreetMap` requires `mapCapabilities: ["street-map-v1"]` and `uiFeatures.streetMap = 1`. Enhanced map artifacts also require the immutable `STREET_MAP_PRESENTATION_V1 = 1` UI export and `uiFeatures.streetMapPresentation = 1`; Workbench records this requirement so older hosts stop before importing an unsupported artifact. Existing basic map artifacts remain compatible. Hosts copy the packaged `runtime-map/maplibre-6.15.0-worker.mjs` to the exact same-origin path `/runtime-map/maplibre-6.15.0-worker.mjs`. The fixed MapLibre 6.15.0 engine is lazy bundled; there is no CDN loader, arbitrary style/URL/Worker/HTML API or automatic GPS request. The component supports four rarity colors (optional bounded hex palette), gray cooldown/expiry states, city bubbles through zoom 7.2, store labels above zoom 10.5, separate event points/countdowns, selection, a React details slot, a pulsing user marker and a range circle in meters. Navigation/metric scale are opt-in. Pass existing GPS coordinates, localized control labels and a list fallback. Timestamps are epoch milliseconds; client distance/range/time are display estimates, never claim authorization. Points are capped at 2000, zoom at 3..18, radius at 100000 meters. Fixed OpenFreeMap dark resources are requested without credentials; the provider sees the client IP and viewport. This direct-resource policy does not isolate redirects or guarantee upstream availability. WebGL2/Worker failure and a 15-second startup timeout show the fallback. Map-owned canvas/listeners/observers/clock are released on unmount; MapLibre retains its page-wide shared pool, capped at two Workers, for reuse. Preserve the package Worker license and fixed attribution links. Old UI remains compatible; deployed 0.1.39 hosts do not gain this testing feature. See template docs/street-map.md and docs/street-map.zh-CN.md.
|
|
37
37
|
|
|
38
38
|
## Location and motion sensors
|
|
39
39
|
|