@inploi/plugin-job-search 9.3.0 → 9.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 +10 -14
- package/cdn/index.js +8 -8
- package/cdn/style.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{job-search-CkwwTVkM.js → job-search-CKOaVaAU.js} +1988 -2030
- package/dist/job-search-KhP7P-87.cjs +44 -0
- package/dist/{map-B7xhLyNZ.js → map-Cy_zksVi.js} +149 -188
- package/dist/map-J5Z-eofP.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +1 -1
- package/package.json +6 -5
- package/cdn/mapbox-gl.js +0 -51
- package/dist/job-search-DyRuFVYr.cjs +0 -44
- package/dist/map-stOwdTz6.cjs +0 -1
- package/dist/mapbox-gl-BKeoApBS.js +0 -35991
- package/dist/mapbox-gl-Buwj8UJV.cjs +0 -3073
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Location suggestions use `https://maps.inploi.com/places`, limited to the hub's countries. A random id kept in
|
|
4
4
|
memory for the page load (never stored on the device) keeps the Worker's rollout on one search arm for that
|
|
5
|
-
page. Worker errors, invalid responses and a 2.5-second timeout
|
|
6
|
-
|
|
5
|
+
page. Worker errors, invalid responses and a 2.5-second timeout give no suggestions (Enter then says suggestions
|
|
6
|
+
are unavailable) and call no other provider. Exact typed postcodes still rank first. Applying a suggestion or searching
|
|
7
7
|
typed text sends a codes-only outcome to the Worker; query text and location details are never included.
|
|
8
8
|
|
|
9
9
|
The SDK job-search widget supports an optional map via `JobSearchPluginParams.map`.
|
|
@@ -17,15 +17,13 @@ map: {
|
|
|
17
17
|
}
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
`renderer: 'mapbox'`
|
|
21
|
-
|
|
22
|
-
(`performanceMetricsCollection: false`). Its map-load and tile billing events have no opt-out.
|
|
23
|
-
Mapbox's `accessToken` is used only by that renderer, is ignored by MapLibre, and is deprecated for eventual removal.
|
|
20
|
+
The Mapbox renderer is retired. `renderer: 'mapbox'` (deprecated) logs a warning and renders with MapLibre;
|
|
21
|
+
`accessToken` (deprecated) is ignored. Both stay in the type until the next major.
|
|
24
22
|
|
|
25
|
-
CDN embeds load
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
CDN embeds load MapLibre on demand from a sibling of the plugin's `cdn/index.js` (`maplibre-gl.js`), so only pages
|
|
24
|
+
with a map download it. A sibling download that fails or takes longer than ten seconds, like a map that fails to
|
|
25
|
+
start, gets one more attempt before the map shows the unavailable notice below. npm builds keep `maplibre-gl`
|
|
26
|
+
external.
|
|
29
27
|
|
|
30
28
|
Use a hosted style id only once `maps.inploi.com` serves it and its tile, glyph and sprite resources.
|
|
31
29
|
MapLibre needs no access token. A style id resolves to `https://maps.inploi.com/styles/{id}.json`;
|
|
@@ -69,14 +67,12 @@ Under TypeScript's `node16` resolution, `utils`' types fail to type-check with `
|
|
|
69
67
|
MapLibre's own declarations, which `createMapAttribution` reaches through MapLibre's `Map`: its dependencies
|
|
70
68
|
`@maplibre/geojson-vt` and `@maplibre/vt-pbf` import without file extensions (TS2834), and `maplibre-gl`'s CommonJS
|
|
71
69
|
declarations import ES modules without `resolution-mode` (TS1479, TS1542). `skipLibCheck: true` or `bundler`
|
|
72
|
-
resolution avoids it.
|
|
73
|
-
TypeScript's automatic global types. Consumers who hit TS2688 can list their global types explicitly, for example
|
|
74
|
-
`"types": ["geojson"]`. CI's [packed types](../../docs/sdk/ci.md#packed-types) check allows exactly these upstream errors.
|
|
70
|
+
resolution avoids it. CI's [packed types](../../docs/sdk/ci.md#packed-types) check allows exactly these upstream errors.
|
|
75
71
|
MapLibre's cooperative-gesture hints use the plugin's `map_gesture_windows`, `map_gesture_mac` and
|
|
76
72
|
`map_gesture_mobile` terms, so embeds can localise them through `terms`.
|
|
77
73
|
|
|
78
74
|
The dev harness uses the default renderer and hosted default style; browser tests intercept
|
|
79
|
-
`https://maps.inploi.com/**`.
|
|
75
|
+
`https://maps.inploi.com/**`.
|
|
80
76
|
|
|
81
77
|
## Search options
|
|
82
78
|
|