@inploi/plugin-job-search 9.2.1 → 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
@@ -1,9 +1,9 @@
1
1
  # @inploi/plugin-job-search
2
2
 
3
- Location suggestions use `https://maps.inploi.com/places`, limited to the hub's countries. A random id persists
4
- in sessionStorage for the browser tab (or memory when storage is unavailable), so the Worker's rollout keeps
5
- each visitor on one search arm. 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
3
+ Location suggestions use `https://maps.inploi.com/places`, limited to the hub's countries. A random id kept in
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 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`;
@@ -33,10 +31,12 @@ omitting `style` selects `default`. Mapbox styles never reach Mapbox: the light-
33
31
  `default`, outdoors-v12 and streets-v12 to `outdoors` and `streets`, and each client's custom Mapbox style to its
34
32
  hosted id (see `MAPBOX_TO_ID`), in either the `mapbox://styles/…` or `https://api.mapbox.com/styles/v1/…` form;
35
33
  other Mapbox URLs select `default` and log a warning. Other HTTPS style URLs are used as given.
36
- If the style or a basemap tile fails before the map first loads, or it takes longer than ten seconds, MapLibre
37
- retries the same style once. If that fails too, or an unsupported style format is configured, the map is replaced
34
+ If the style or a basemap tile fails before the map first loads, or the style itself takes longer than ten
35
+ seconds to answer, MapLibre retries the same style once; slow tiles after the style has loaded never trigger
36
+ it. If that fails too, or an unsupported style format is configured, the map is replaced
38
37
  by a static `Map unavailable` notice (`role="status"`, term `map_unavailable`) and the job list and search keep
39
- working. Styles hosted at `https://maps.inploi.com` show only the linked
38
+ working. Each map reports how its first render ended (loaded or unavailable, a reason code, whether it retried
39
+ and how long it took) to `https://maps.inploi.com/outcome`: codes only, never a query or place. Styles hosted at `https://maps.inploi.com` show only the linked
40
40
  `© OpenStreetMap contributors` credit. Other styles show de-duplicated source credits,
41
41
  updated as the style and source metadata load. Source attribution is parsed in an inert document and rebuilt
42
42
  as text and HTTP(S) links only; remote elements and attributes are never copied into the page.
@@ -67,14 +67,12 @@ Under TypeScript's `node16` resolution, `utils`' types fail to type-check with `
67
67
  MapLibre's own declarations, which `createMapAttribution` reaches through MapLibre's `Map`: its dependencies
68
68
  `@maplibre/geojson-vt` and `@maplibre/vt-pbf` import without file extensions (TS2834), and `maplibre-gl`'s CommonJS
69
69
  declarations import ES modules without `resolution-mode` (TS1479, TS1542). `skipLibCheck: true` or `bundler`
70
- resolution avoids it. Separately, `mapbox-gl` installs a stub `@types/mapbox__point-geometry` that breaks
71
- TypeScript's automatic global types. Consumers who hit TS2688 can list their global types explicitly, for example
72
- `"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.
73
71
  MapLibre's cooperative-gesture hints use the plugin's `map_gesture_windows`, `map_gesture_mac` and
74
72
  `map_gesture_mobile` terms, so embeds can localise them through `terms`.
75
73
 
76
74
  The dev harness uses the default renderer and hosted default style; browser tests intercept
77
- `https://maps.inploi.com/**`. For local manual checks of the Mapbox renderer, use `?test_renderer=mapbox`.
75
+ `https://maps.inploi.com/**`.
78
76
 
79
77
  ## Search options
80
78