@tileflow/vite 0.1.0-alpha.23 → 0.1.0-alpha.24

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.
Files changed (2) hide show
  1. package/README.md +8 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -48,9 +48,9 @@ export default defineConfig({plugins: [tileflow()]});
48
48
  ```
49
49
 
50
50
  Run the application's normal development or production-build command. At the default base, the
51
- component can use `source={{kind: 'tileflow', map: 'madrid'}}`; it reads
52
- `/tileflow/manifest.json`. Do not also run a CLI build that overwrites the same delivery manifest.
53
- Config loading executes trusted imports and is not a sandbox.
51
+ component can use `source={{map: 'madrid'}}`; it reads `/tileflow/manifest.json`. The source selects
52
+ a Tileflow map, not a renderer or direct style. Do not also run a CLI build that overwrites the same
53
+ delivery manifest. Config loading executes trusted imports and is not a sandbox.
54
54
 
55
55
  ## Configure the worker
56
56
 
@@ -86,12 +86,15 @@ export default defineConfig({
86
86
 
87
87
  In the application, pass the resulting public URL explicitly:
88
88
 
89
+ <!-- docs:check -->
90
+
89
91
  ```ts
92
+ import type {TileflowRuntimeSource} from '@tileflow/core/runtime';
93
+
90
94
  const source = {
91
- kind: 'tileflow' as const,
92
95
  map: 'madrid',
93
96
  manifestUrl: '/app/maps/manifest.json',
94
- };
97
+ } satisfies TileflowRuntimeSource;
95
98
  ```
96
99
 
97
100
  Development and production expose the same prefixed URL. The browser does not infer Vite's base;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tileflow/vite",
3
- "version": "0.1.0-alpha.23",
3
+ "version": "0.1.0-alpha.24",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Vite plugin for Tileflow map style development and static artifacts.",
6
6
  "engines": {
@@ -41,14 +41,14 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@tileflow/dev": ">=0.1.0-alpha.25 <0.1.0-beta.0"
44
+ "@tileflow/dev": ">=0.1.0-alpha.26 <0.1.0-beta.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "vite": ">=5 <9"
48
48
  },
49
49
  "devDependencies": {
50
50
  "vite": "^8.0.16",
51
- "@tileflow/maps": "0.1.0-alpha.4"
51
+ "@tileflow/maps": "0.1.0-alpha.5"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "tsup src/index.ts --format esm --dts --clean --external vite --platform node",