@inploi/plugin-job-search 9.2.1 → 9.3.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/dist/utils.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./job-search-CVo-37ft.cjs"),a=require("./map-attribution-DyuZ3dMC.cjs");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getModeFromSearchParams=e.getModeFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;exports.getViewFromSearchParams=e.getViewFromSearchParams;exports.getWidgetStateFromSearchParams=e.getWidgetStateFromSearchParams;exports.setWidgetStateToSearchParams=e.setWidgetStateToSearchParams;exports.useDebouncedValue=e.useDebouncedValue;exports.createMapAttribution=a.createMapAttribution;exports.resolveMapStyle=a.resolveMapStyle;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./job-search-DyRuFVYr.cjs"),a=require("./map-outcome-BiHZjMoM.cjs");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getModeFromSearchParams=e.getModeFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;exports.getViewFromSearchParams=e.getViewFromSearchParams;exports.getWidgetStateFromSearchParams=e.getWidgetStateFromSearchParams;exports.setWidgetStateToSearchParams=e.setWidgetStateToSearchParams;exports.useDebouncedValue=e.useDebouncedValue;exports.createMapAttribution=a.createMapAttribution;exports.mapOutcome=a.mapOutcome;exports.resolveMapStyle=a.resolveMapStyle;
package/dist/utils.d.cts CHANGED
@@ -622,6 +622,23 @@ declare type JobSearchState_2 = {
622
622
 
623
623
  declare type JobSearchTranslationTerms = Parameters<typeof createTFunction>[0]['overrides'] | undefined;
624
624
 
625
+ export declare type MapFailure = 'library' | 'start' | 'webgl' | 'style-timeout' | 'style-error';
626
+
627
+ /**
628
+ * Reports how a map's first render ended to maps.inploi.com, so failures show without waiting for feedback.
629
+ * Codes and a duration only: never a query, place or anything about the candidate.
630
+ */
631
+ export declare const mapOutcome: (outcome: {
632
+ surface: "job-search" | "job-results";
633
+ retried: boolean;
634
+ since: number;
635
+ } & ({
636
+ stage: "loaded";
637
+ } | {
638
+ stage: "unavailable";
639
+ reason: MapFailure;
640
+ })) => void;
641
+
625
642
  /**
626
643
  * Resolves styles for the MapLibre renderer. Mapbox styles, in either URL form, never reach Mapbox: unknown ones
627
644
  * use the default and report their original URL.
package/dist/utils.d.ts CHANGED
@@ -622,6 +622,23 @@ declare type JobSearchState_2 = {
622
622
 
623
623
  declare type JobSearchTranslationTerms = Parameters<typeof createTFunction>[0]['overrides'] | undefined;
624
624
 
625
+ export declare type MapFailure = 'library' | 'start' | 'webgl' | 'style-timeout' | 'style-error';
626
+
627
+ /**
628
+ * Reports how a map's first render ended to maps.inploi.com, so failures show without waiting for feedback.
629
+ * Codes and a duration only: never a query, place or anything about the candidate.
630
+ */
631
+ export declare const mapOutcome: (outcome: {
632
+ surface: "job-search" | "job-results";
633
+ retried: boolean;
634
+ since: number;
635
+ } & ({
636
+ stage: "loaded";
637
+ } | {
638
+ stage: "unavailable";
639
+ reason: MapFailure;
640
+ })) => void;
641
+
625
642
  /**
626
643
  * Resolves styles for the MapLibre renderer. Mapbox styles, in either URL form, never reach Mapbox: unknown ones
627
644
  * use the default and report their original URL.
package/dist/utils.js CHANGED
@@ -1,5 +1,5 @@
1
- import { g as r, a as t, b as s, c as o, d as m, s as c, u as S } from "./job-search-4dhEa2UZ.js";
2
- import { c as i, r as P } from "./map-attribution-By9wrlPf.js";
1
+ import { g as r, a as t, b as s, c as o, d as m, s as c, u as S } from "./job-search-CkwwTVkM.js";
2
+ import { c as i, m as u, r as P } from "./map-outcome-zYbBd2H8.js";
3
3
  export {
4
4
  i as createMapAttribution,
5
5
  r as getGeolocationFromSearchParams,
@@ -7,6 +7,7 @@ export {
7
7
  s as getStatefulPropertiesFromSearchParams,
8
8
  o as getViewFromSearchParams,
9
9
  m as getWidgetStateFromSearchParams,
10
+ u as mapOutcome,
10
11
  P as resolveMapStyle,
11
12
  c as setWidgetStateToSearchParams,
12
13
  S as useDebouncedValue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-job-search",
3
- "version": "9.2.1",
3
+ "version": "9.3.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/inploi/platform.git",
@@ -82,7 +82,7 @@
82
82
  "vite-plugin-dts": "4.5.4",
83
83
  "vite-tsconfig-paths": "5.1.4",
84
84
  "vitest": "4.1.12",
85
- "@inploi/core": "1.24.1",
85
+ "@inploi/core": "1.25.0",
86
86
  "@inploi/design-tokens": "0.2.3",
87
87
  "@inploi/i18n": "0.1.7",
88
88
  "@inploi/plugin-feedback": "6.3.3",
@@ -97,7 +97,7 @@
97
97
  "dependencies": {
98
98
  "mapbox-gl": "^3.12.0",
99
99
  "maplibre-gl": "^5.24.0",
100
- "@inploi/sdk": "3.1.1"
100
+ "@inploi/sdk": "3.1.2"
101
101
  },
102
102
  "scripts": {
103
103
  "dev": "vite",