@octostar/map-component 0.3.10 → 0.4.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/README.md +6 -1
- package/dist/index.mjs +30 -14
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +75 -68
- package/dist/types/components/cluster-pie-chart.d.ts +1 -1
- package/dist/types/components/cluster-pie-chart.d.ts.map +1 -1
- package/dist/types/components/cursor-coordinates-overlay.d.ts +1 -1
- package/dist/types/components/cursor-coordinates-overlay.d.ts.map +1 -1
- package/dist/types/components/map-editor-canvas.d.ts.map +1 -1
- package/dist/types/lib/cluster-gradient.d.ts +1 -1
- package/dist/types/lib/cluster-gradient.d.ts.map +1 -1
- package/dist/types/lib/map-editor-api.d.ts +1 -0
- package/dist/types/lib/map-editor-api.d.ts.map +1 -1
- package/dist/types/lib/map-endpoints.d.ts +1 -1
- package/dist/types/lib/map-endpoints.d.ts.map +1 -1
- package/dist/types/lib/maplibre-worker.d.ts +13 -0
- package/dist/types/lib/maplibre-worker.d.ts.map +1 -0
- package/dist/types/lib/shard-registry.d.ts +1 -1
- package/dist/types/lib/shard-registry.d.ts.map +1 -1
- package/package.json +3 -7
- package/dist/index.cjs +0 -18123
- package/dist/index.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -57,7 +57,6 @@ pnpm build:lib
|
|
|
57
57
|
|
|
58
58
|
This outputs:
|
|
59
59
|
- `dist/index.mjs` - ES module
|
|
60
|
-
- `dist/index.cjs` - CommonJS module
|
|
61
60
|
- `dist/types/` - TypeScript declarations
|
|
62
61
|
- `dist/styles.css` - Component styles
|
|
63
62
|
|
|
@@ -95,6 +94,12 @@ function App() {
|
|
|
95
94
|
}
|
|
96
95
|
```
|
|
97
96
|
|
|
97
|
+
Host requirements:
|
|
98
|
+
- The package is ESM-only (`dist/index.mjs`); there is no CommonJS entry.
|
|
99
|
+
- maplibre-gl 6 needs WebGL2. A browser without it shows no map.
|
|
100
|
+
- maplibre's worker is inlined in this package and starts from a `blob:` URL, so a Content-Security-Policy needs `worker-src blob:`.
|
|
101
|
+
- Don't override or dedupe `maplibre-gl` in the host: the inlined worker must match the exact version this package pins, and a mismatch logs an error and breaks rendering. Take maplibre fixes by upgrading this package.
|
|
102
|
+
|
|
98
103
|
## Main Components
|
|
99
104
|
|
|
100
105
|
| Component | Description |
|