@inploi/plugin-job-search 8.2.0 → 8.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/cdn/index.js +93 -93
- package/cdn/style.css +1 -1
- package/dist/components/geo-search.d.ts +6 -1
- package/dist/components/geo-search.geocode.d.ts +36 -0
- package/dist/components/geo-search.geocode.test.d.ts +1 -0
- package/dist/components/geo-search.location-input.d.ts +4 -2
- package/dist/components/job-search.alerts.test.d.ts +1 -0
- package/dist/components/job-search.d.ts +8 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +185 -177
- package/dist/job-search.api.d.ts +2 -0
- package/dist/job-search.d.ts +1 -1
- package/dist/lib/countries.d.ts +8 -0
- package/dist/lib/countries.test.d.ts +1 -0
- package/dist/lib/distance.d.ts +3 -2
- package/dist/{map-5b358f66.cjs → map-4108c113.cjs} +1 -1
- package/dist/{map-e6c052ec.js → map-e0e84eac.js} +1 -1
- package/dist/style/tokens.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-1d47427d.cjs +60 -0
- package/dist/{utils-65ec6e7e.js → utils-c371d06a.js} +2869 -2755
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/package.json +4 -3
- package/dist/utils-864c9c53.cjs +0 -60
package/dist/job-search.api.d.ts
CHANGED
|
@@ -273,6 +273,8 @@ export declare const getAvailableFilters: ({ rpcClient, state, t, signal, locale
|
|
|
273
273
|
}[];
|
|
274
274
|
}>;
|
|
275
275
|
export type GetAvailableFiltersResponse = Awaited<ReturnType<typeof getAvailableFilters>>;
|
|
276
|
+
/** The countries the company's live jobs give, as their feeds spell them. */
|
|
277
|
+
export declare const getJobCountries: (rpcClient: InploiRpcClient) => Promise<string[]>;
|
|
276
278
|
export declare const getJobSearchResults: ({ rpcClient, signal, state, page, t, prioritySegment, locale, fallbackLocale, }: {
|
|
277
279
|
rpcClient: InploiRpcClient;
|
|
278
280
|
signal?: AbortSignal;
|
package/dist/job-search.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export interface JobSearchPluginParams {
|
|
|
166
166
|
plugin: ReturnType<typeof jobAlertsPlugin> | Promise<{
|
|
167
167
|
jobAlertsPlugin: typeof jobAlertsPlugin;
|
|
168
168
|
}>;
|
|
169
|
-
params: Pick<JobAlertsPluginParams, 'config'>;
|
|
169
|
+
params: Pick<JobAlertsPluginParams, 'config' | 'terms'>;
|
|
170
170
|
};
|
|
171
171
|
/** Provide a plugin instance to enable feedback. */
|
|
172
172
|
feedback?: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Where location search looks when a hub's jobs name no country it can read. */
|
|
2
|
+
export declare const DEFAULT_SEARCH_COUNTRIES: string[];
|
|
3
|
+
/**
|
|
4
|
+
* The countries a hub's location search covers, as the geocoder's ISO codes, read from the free text its live
|
|
5
|
+
* jobs give as their country ("United Kingdom", "England", "GB", "Republic of Ireland"). Values that name no
|
|
6
|
+
* country are left out; when none is left, the search covers the United Kingdom.
|
|
7
|
+
*/
|
|
8
|
+
export declare const searchCountries: (jobCountries: string[]) => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/lib/distance.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ export type DistanceUnit = 'miles' | 'km';
|
|
|
2
2
|
export declare const milesToMeters: (miles: number) => number;
|
|
3
3
|
export declare const kmToMeters: (km: number) => number;
|
|
4
4
|
/**
|
|
5
|
-
* Formats a distance already expressed in `unit`, e.g. `20 mi`, `2.5 km` or, on a German page, `2,5 km
|
|
5
|
+
* Formats a distance already expressed in `unit`, e.g. `20 mi`, `2.5 km` or, on a German page, `2,5 km`,
|
|
6
|
+
* to at most `maximumFractionDigits` decimals.
|
|
6
7
|
* The page's language wins over `locale`: the widget's `i18n.locale` chooses which jobs are shown, while the
|
|
7
8
|
* number sits in text written in the page's language (PROD-7117).
|
|
8
9
|
*/
|
|
9
|
-
export declare const createDistanceFormatter: (locale: string | undefined, unit: DistanceUnit) => Intl.NumberFormat;
|
|
10
|
+
export declare const createDistanceFormatter: (locale: string | undefined, unit: DistanceUnit, maximumFractionDigits?: number) => Intl.NumberFormat;
|
|
10
11
|
export declare const formatDistanceMeters: (meters: number, unit: DistanceUnit, locale: string | undefined) => string;
|