@object-ui/plugin-map 16.0.0 → 17.1.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/CHANGELOG.md +232 -0
- package/dist/ObjectMap.d.ts.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,237 @@
|
|
|
1
1
|
# @object-ui/plugin-map
|
|
2
2
|
|
|
3
|
+
## 17.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [62311b6]
|
|
8
|
+
- Updated dependencies [fc0272a]
|
|
9
|
+
- Updated dependencies [9e7349e]
|
|
10
|
+
- Updated dependencies [8864971]
|
|
11
|
+
- Updated dependencies [c785740]
|
|
12
|
+
- Updated dependencies [b41f401]
|
|
13
|
+
- Updated dependencies [19e9fa0]
|
|
14
|
+
- Updated dependencies [95b7214]
|
|
15
|
+
- Updated dependencies [7d9734d]
|
|
16
|
+
- Updated dependencies [6ae818e]
|
|
17
|
+
- Updated dependencies [9eb932b]
|
|
18
|
+
- Updated dependencies [746dd00]
|
|
19
|
+
- Updated dependencies [aebfa4f]
|
|
20
|
+
- Updated dependencies [38ca8be]
|
|
21
|
+
- Updated dependencies [68ef584]
|
|
22
|
+
- Updated dependencies [4952edf]
|
|
23
|
+
- Updated dependencies [7f0252e]
|
|
24
|
+
- Updated dependencies [c4d7b20]
|
|
25
|
+
- Updated dependencies [c769d3d]
|
|
26
|
+
- Updated dependencies [7639a61]
|
|
27
|
+
- Updated dependencies [94e63ef]
|
|
28
|
+
- Updated dependencies [c735bf7]
|
|
29
|
+
- Updated dependencies [02aef0c]
|
|
30
|
+
- Updated dependencies [6f29aa5]
|
|
31
|
+
- Updated dependencies [c4db402]
|
|
32
|
+
- Updated dependencies [5319bf1]
|
|
33
|
+
- Updated dependencies [49e5671]
|
|
34
|
+
- Updated dependencies [9a04d25]
|
|
35
|
+
- Updated dependencies [b5b97e2]
|
|
36
|
+
- Updated dependencies [f59f2c1]
|
|
37
|
+
- Updated dependencies [07de839]
|
|
38
|
+
- Updated dependencies [2a40b5e]
|
|
39
|
+
- Updated dependencies [df613fa]
|
|
40
|
+
- Updated dependencies [4874117]
|
|
41
|
+
- Updated dependencies [ad0183a]
|
|
42
|
+
- Updated dependencies [ce08d55]
|
|
43
|
+
- Updated dependencies [eb4b740]
|
|
44
|
+
- Updated dependencies [5b084eb]
|
|
45
|
+
- Updated dependencies [aa1240a]
|
|
46
|
+
- Updated dependencies [2374a49]
|
|
47
|
+
- Updated dependencies [390c071]
|
|
48
|
+
- Updated dependencies [d10f526]
|
|
49
|
+
- Updated dependencies [2d5d594]
|
|
50
|
+
- Updated dependencies [ea7f477]
|
|
51
|
+
- Updated dependencies [379728f]
|
|
52
|
+
- Updated dependencies [7f23cd0]
|
|
53
|
+
- Updated dependencies [0ded602]
|
|
54
|
+
- Updated dependencies [24e0e0a]
|
|
55
|
+
- Updated dependencies [3a6cf24]
|
|
56
|
+
- Updated dependencies [aa35561]
|
|
57
|
+
- Updated dependencies [03bd53b]
|
|
58
|
+
- Updated dependencies [3c1f321]
|
|
59
|
+
- Updated dependencies [a045a32]
|
|
60
|
+
- Updated dependencies [912496d]
|
|
61
|
+
- Updated dependencies [80edbd4]
|
|
62
|
+
- Updated dependencies [9867281]
|
|
63
|
+
- @object-ui/core@17.1.0
|
|
64
|
+
- @object-ui/components@17.1.0
|
|
65
|
+
- @object-ui/react@17.1.0
|
|
66
|
+
- @object-ui/types@17.1.0
|
|
67
|
+
|
|
68
|
+
## 17.0.0
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- 5b9cf96: fix(plugin-map): drop the `maplibre-gl@6` default import, and put type-check behind a CI gate that cannot be silently skipped (#2911)
|
|
73
|
+
|
|
74
|
+
`maplibre-gl@6.0.0` removed its default export (arrived via #2848, dependabot),
|
|
75
|
+
so `ObjectMap.tsx`'s `import maplibregl from 'maplibre-gl'` has been a TS1192
|
|
76
|
+
error on `main` for a day. The binding was never used — the map instance comes
|
|
77
|
+
from `react-map-gl/maplibre`, and the stylesheet from the side-effect import on
|
|
78
|
+
the next line — so the import is simply deleted rather than rewritten to
|
|
79
|
+
`import * as`.
|
|
80
|
+
|
|
81
|
+
Removing it is runtime-neutral, which the issue had explicitly left unverified.
|
|
82
|
+
`@vis.gl/react-maplibre` (what `react-map-gl/maplibre` re-exports) does
|
|
83
|
+
`Promise.resolve(mapLib || import('maplibre-gl'))` in `components/map.js`, so it
|
|
84
|
+
loads the library itself when no `mapLib` prop is passed. Verified in a browser
|
|
85
|
+
against the `store-locator-map` catalog schema: `maplibre-gl` is fetched as its
|
|
86
|
+
own lazy chunk, the WebGL canvas comes up 800x600, and all three markers mount —
|
|
87
|
+
byte-identical probe output with and without the static import. That also matches
|
|
88
|
+
what `apps/console/src/main.tsx` already intends, where the plugin is registered
|
|
89
|
+
lazily specifically to keep `maplibre-gl` out of the initial bundle.
|
|
90
|
+
|
|
91
|
+
**The reason it survived a day of green CI is the part worth fixing.** No
|
|
92
|
+
workflow ran `type-check` at all, and `turbo build` only checks types for
|
|
93
|
+
packages whose `build` script happens to invoke `tsc` — the 22 `vite build`
|
|
94
|
+
packages transpile without checking. A sweep of all 45 packages found ten with
|
|
95
|
+
broken types, `plugin-map` merely being the one that had a script to notice it.
|
|
96
|
+
|
|
97
|
+
Adding a `pnpm type-check` job alone would not have been a gate: **turbo silently
|
|
98
|
+
skips any package with no `type-check` script**, so 17 packages read as passing
|
|
99
|
+
because nothing ran. With `plugin-map` fixed, `pnpm type-check` reports 63/63
|
|
100
|
+
green while nine packages are still broken. So:
|
|
101
|
+
|
|
102
|
+
- `plugin-ai` and `plugin-report` gain the `paths` override their type-checked
|
|
103
|
+
peers already carry, which detaches workspace deps from sibling _source_ and
|
|
104
|
+
resolves them through built `.d.ts` — the sole cause of the 104-error TS6059
|
|
105
|
+
`rootDir` floods, and the same trick their own `vite.config.ts` already applies
|
|
106
|
+
to the dts program.
|
|
107
|
+
- Seven packages gain `"type-check": "tsc --noEmit"` (`plugin-ai`,
|
|
108
|
+
`plugin-report`, `plugin-dashboard`, `create-plugin`, `console`, and the two
|
|
109
|
+
console examples). Coverage goes 28 -> 35 of 45.
|
|
110
|
+
- New `scripts/check-type-check-coverage.mjs` makes the invisibility impossible:
|
|
111
|
+
a package with no `type-check` script must be declared, with a reason, and the
|
|
112
|
+
lists only shrink — gaining a script without deleting the entry fails the
|
|
113
|
+
guard. The nine known-broken packages are recorded there with error counts
|
|
114
|
+
(`@object-ui/runner` has no `tsconfig.json` at all), tracked as follow-ups.
|
|
115
|
+
- New `Type Check` CI job runs the coverage guard first (instant, no install),
|
|
116
|
+
then `pnpm type-check`.
|
|
117
|
+
|
|
118
|
+
Both halves were proven to fail before being trusted: the guard was exercised in
|
|
119
|
+
all four of its failure modes, and re-introducing the `maplibre-gl` import turns
|
|
120
|
+
the job red again, as does a fresh error injected into `plugin-ai` — a package
|
|
121
|
+
that had no type checking whatsoever before this change.
|
|
122
|
+
|
|
123
|
+
- Updated dependencies [7b21891]
|
|
124
|
+
- Updated dependencies [952b978]
|
|
125
|
+
- Updated dependencies [de5e40c]
|
|
126
|
+
- Updated dependencies [1767124]
|
|
127
|
+
- Updated dependencies [8ecf5a6]
|
|
128
|
+
- Updated dependencies [7b35e4b]
|
|
129
|
+
- Updated dependencies [8fb1295]
|
|
130
|
+
- Updated dependencies [e16ed2d]
|
|
131
|
+
- Updated dependencies [f9bbddb]
|
|
132
|
+
- Updated dependencies [dfd3705]
|
|
133
|
+
- Updated dependencies [c77108c]
|
|
134
|
+
- Updated dependencies [2735de6]
|
|
135
|
+
- Updated dependencies [c19ac11]
|
|
136
|
+
- Updated dependencies [6dee2cb]
|
|
137
|
+
- Updated dependencies [c7cff19]
|
|
138
|
+
- Updated dependencies [cd09a7b]
|
|
139
|
+
- Updated dependencies [f1abf0e]
|
|
140
|
+
- Updated dependencies [f05b84e]
|
|
141
|
+
- Updated dependencies [2f947e4]
|
|
142
|
+
- Updated dependencies [7d46648]
|
|
143
|
+
- Updated dependencies [9b53d72]
|
|
144
|
+
- Updated dependencies [662bdf9]
|
|
145
|
+
- Updated dependencies [059a052]
|
|
146
|
+
- Updated dependencies [53642d4]
|
|
147
|
+
- Updated dependencies [8aae006]
|
|
148
|
+
- Updated dependencies [c6cfdf1]
|
|
149
|
+
- Updated dependencies [d147a13]
|
|
150
|
+
- Updated dependencies [c6aaed8]
|
|
151
|
+
- Updated dependencies [dc334da]
|
|
152
|
+
- @object-ui/components@17.0.0
|
|
153
|
+
- @object-ui/react@17.0.0
|
|
154
|
+
- @object-ui/types@17.0.0
|
|
155
|
+
- @object-ui/core@17.0.0
|
|
156
|
+
|
|
157
|
+
## 16.1.0
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- 7cf4051: chore(deps): align every `@objectstack/*` dependency to `^16.0.0-rc.0`
|
|
162
|
+
|
|
163
|
+
Bumps `@objectstack/spec` / `client` / `formula` / `lint` from `^15.1.1` to the
|
|
164
|
+
`16.0.0-rc.0` pre-release across the workspace (root + `apps/console` +
|
|
165
|
+
`apps/site` + all consuming packages). ObjectUI's own packages are already on
|
|
166
|
+
major 16, so this closes the 15↔16 skew between ObjectUI and the `@objectstack`
|
|
167
|
+
contract libraries (which publish in lockstep with `spec`).
|
|
168
|
+
|
|
169
|
+
This is a dependency alignment, not a behavioral migration: the full workspace
|
|
170
|
+
build (43/43) and the `@objectstack`-consuming package test suites
|
|
171
|
+
(`core` / `app-shell` / `data-objectstack` / `plugin-form` / `types`) are green
|
|
172
|
+
against `16.0.0-rc.0` with no source changes required.
|
|
173
|
+
|
|
174
|
+
Practical effect: `@objectstack/client@16.0.0-rc.0` now ships
|
|
175
|
+
`data.batchTransaction` (framework #3271), so `ObjectStackAdapter`'s feature
|
|
176
|
+
detect (`typeof client.data.batchTransaction === 'function'`) routes
|
|
177
|
+
master-detail cross-object saves through the typed SDK method instead of the
|
|
178
|
+
raw `fetch('/api/v1/batch')` fallback — realizing the "verify SDK path" half of
|
|
179
|
+
#2694. The raw-fetch branch stays as a defensive fallback (removal tracked in
|
|
180
|
+
#2694).
|
|
181
|
+
|
|
182
|
+
- 549c67d: chore(lint): clear the mechanical baseline lint errors so these packages' lint gates protect them again
|
|
183
|
+
|
|
184
|
+
Extends the fields/core cleanup from #2709 (objectui#2713). These eight package
|
|
185
|
+
lints were red at baseline on `main`, so their per-package `lint` gate could not
|
|
186
|
+
catch new violations of the same class. Cleared every **error** (no behavior
|
|
187
|
+
change; warnings are out of scope):
|
|
188
|
+
|
|
189
|
+
- **`no-useless-catch`** (`data-objectstack`) — unwrapped five try/catch blocks
|
|
190
|
+
whose `catch` only re-threw; errors still propagate identically.
|
|
191
|
+
- **`preserve-caught-error`** (`cli`, `data-objectstack`, `react`) — the caught
|
|
192
|
+
error's message is inlined into the thrown `Error`; a scoped disable with a
|
|
193
|
+
justifying comment carries each one, because these packages target ES2020
|
|
194
|
+
whose lib types the 1-arg `Error` constructor only (so `{ cause }` won't
|
|
195
|
+
compile) — same reasoning as the core case in #2709.
|
|
196
|
+
- **`prefer-const`** (`plugin-calendar`, `plugin-map`) — `let`→`const` for
|
|
197
|
+
never-reassigned bindings.
|
|
198
|
+
- **`no-empty-object-type`** (`plugin-designer`) — empty extend-only interfaces
|
|
199
|
+
→ equivalent `type` aliases.
|
|
200
|
+
- **`no-useless-assignment`** (`react`) — dropped a dead initializer that both
|
|
201
|
+
branches overwrite before it is read.
|
|
202
|
+
- **`no-require-imports`** (`plugin-calendar`, `plugin-timeline` tests) —
|
|
203
|
+
hoisted `vi.mock` factories now use an `async` factory with
|
|
204
|
+
`await import('react')` instead of `require('react')`.
|
|
205
|
+
- **stale `eslint-disable` directive** (`plugin-markdown`) — removed a
|
|
206
|
+
`react/no-danger` disable whose plugin is not loaded in the flat config (an
|
|
207
|
+
unknown-rule reference that ESLint v10 reports as an error); the rationale is
|
|
208
|
+
kept as a plain comment.
|
|
209
|
+
|
|
210
|
+
- Updated dependencies [1c8935a]
|
|
211
|
+
- Updated dependencies [8b8b744]
|
|
212
|
+
- Updated dependencies [7cf4051]
|
|
213
|
+
- Updated dependencies [803558e]
|
|
214
|
+
- Updated dependencies [2e7d7f0]
|
|
215
|
+
- Updated dependencies [ef14f69]
|
|
216
|
+
- Updated dependencies [94d4876]
|
|
217
|
+
- Updated dependencies [69fa5d1]
|
|
218
|
+
- Updated dependencies [549c67d]
|
|
219
|
+
- Updated dependencies [2b17339]
|
|
220
|
+
- Updated dependencies [31b77d4]
|
|
221
|
+
- Updated dependencies [6d4fbe6]
|
|
222
|
+
- Updated dependencies [0a3710b]
|
|
223
|
+
- Updated dependencies [62b9ab5]
|
|
224
|
+
- Updated dependencies [1629313]
|
|
225
|
+
- Updated dependencies [29c6040]
|
|
226
|
+
- Updated dependencies [faebac3]
|
|
227
|
+
- Updated dependencies [2331ac9]
|
|
228
|
+
- Updated dependencies [199fa83]
|
|
229
|
+
- Updated dependencies [eee4ded]
|
|
230
|
+
- @object-ui/core@16.1.0
|
|
231
|
+
- @object-ui/types@16.1.0
|
|
232
|
+
- @object-ui/react@16.1.0
|
|
233
|
+
- @object-ui/components@16.1.0
|
|
234
|
+
|
|
3
235
|
## 16.0.0
|
|
4
236
|
|
|
5
237
|
### Patch Changes
|
package/dist/ObjectMap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectMap.d.ts","sourceRoot":"","sources":["../src/ObjectMap.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAY,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ObjectMap.d.ts","sourceRoot":"","sources":["../src/ObjectMap.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAY,MAAM,kBAAkB,CAAC;AAO/E,OAAO,kCAAkC,CAAC;AAqB1C,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACjC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAkPD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA4d9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-map",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Map visualization plugin for Object UI",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@objectstack/spec": "^
|
|
28
|
-
"lucide-react": "^1.
|
|
29
|
-
"maplibre-gl": "^
|
|
27
|
+
"@objectstack/spec": "^17.0.0-rc.0",
|
|
28
|
+
"lucide-react": "^1.25.0",
|
|
29
|
+
"maplibre-gl": "^6.0.0",
|
|
30
30
|
"react-map-gl": "^8.1.1",
|
|
31
31
|
"zod": "^4.4.3",
|
|
32
|
-
"@object-ui/components": "
|
|
33
|
-
"@object-ui/core": "
|
|
34
|
-
"@object-ui/react": "
|
|
35
|
-
"@object-ui/types": "
|
|
32
|
+
"@object-ui/components": "17.1.0",
|
|
33
|
+
"@object-ui/core": "17.1.0",
|
|
34
|
+
"@object-ui/react": "17.1.0",
|
|
35
|
+
"@object-ui/types": "17.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/react": "19.2.17",
|
|
43
43
|
"@types/react-dom": "19.2.3",
|
|
44
|
-
"@vitejs/plugin-react": "^6.0.
|
|
44
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
45
45
|
"typescript": "^6.0.3",
|
|
46
|
-
"vite": "^8.1.
|
|
46
|
+
"vite": "^8.1.5",
|
|
47
47
|
"vite-plugin-dts": "^5.0.3"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|