@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 +17 -19
- package/cdn/index.js +14 -14
- 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-4dhEa2UZ.js → job-search-CKOaVaAU.js} +2644 -2695
- package/dist/job-search-KhP7P-87.cjs +44 -0
- package/dist/{map-RWZQgQ0o.js → map-Cy_zksVi.js} +170 -194
- package/dist/map-J5Z-eofP.cjs +1 -0
- package/dist/map-outcome-BiHZjMoM.cjs +26 -0
- package/dist/map-outcome-zYbBd2H8.js +150 -0
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +20 -3
- package/dist/utils.d.ts +20 -3
- package/dist/utils.js +3 -2
- package/package.json +6 -5
- package/cdn/mapbox-gl.js +0 -51
- package/dist/job-search-CVo-37ft.cjs +0 -44
- package/dist/map-BRREfYtI.cjs +0 -1
- package/dist/map-attribution-By9wrlPf.js +0 -134
- package/dist/map-attribution-DyuZ3dMC.cjs +0 -26
- package/dist/mapbox-gl-DLs2e1S-.js +0 -35991
- package/dist/mapbox-gl-mKULjIJW.cjs +0 -3073
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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'`
|
|
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`;
|
|
@@ -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
|
|
37
|
-
retries the same style once
|
|
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.
|
|
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.
|
|
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/**`.
|
|
75
|
+
`https://maps.inploi.com/**`.
|
|
78
76
|
|
|
79
77
|
## Search options
|
|
80
78
|
|