@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 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 fall back to the
6
- existing direct Mapbox geocoder. Exact typed postcodes still rank first. Applying a suggestion or searching
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'` keeps Mapbox for an embed that sets it explicitly (careers hubs use it for per-company
21
- rollback); Mapbox code loads only then, with its optional performance telemetry off
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 each map library on demand from a sibling of the plugin's `cdn/index.js`
26
- (`maplibre-gl.js` or `mapbox-gl.js`), so a page downloads only the renderer it uses. A sibling download that
27
- fails or takes longer than ten seconds, like a map that fails to start, gets one more attempt before the map shows
28
- the unavailable notice below. npm builds keep `maplibre-gl` external and load `mapbox-gl` from a lazy chunk.
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. Separately, `mapbox-gl` installs a stub `@types/mapbox__point-geometry` that breaks
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/**`. For local manual checks of the Mapbox renderer, use `?test_renderer=mapbox`.
75
+ `https://maps.inploi.com/**`.
80
76
 
81
77
  ## Search options
82
78