@inploi/plugin-job-search 9.0.8 → 9.1.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 +142 -0
- package/cdn/index.js +14 -14
- package/cdn/style.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +112 -3
- package/dist/index.d.ts +112 -3
- package/dist/index.js +211 -204
- package/dist/{job-search-C1jNeCI0.js → job-search-CI9kMPab.js} +3255 -2886
- package/dist/job-search-NaGE4ixy.cjs +44 -0
- package/dist/{map-BdK-wTC4.js → map-Cg3MSVPB.js} +2 -2
- package/dist/{map-CA2GQNlw.cjs → map-sXHS6vhg.cjs} +1 -1
- package/dist/{mapbox-gl-DU8p4eb-.js → mapbox-gl-B4QioMNv.js} +1 -1
- package/dist/{mapbox-gl-SSZZLm3u.cjs → mapbox-gl-DP29e0dp.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +59 -2
- package/dist/utils.d.ts +59 -2
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/job-search-TQDgitmM.cjs +0 -44
package/dist/utils.d.ts
CHANGED
|
@@ -20,6 +20,18 @@ export declare function createMapAttribution(style: string): {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
declare const createTFunction: <T extends {
|
|
23
|
+
readonly save_job: "Save {{title}}";
|
|
24
|
+
readonly remove_saved_job: "Remove {{title}} from saved jobs";
|
|
25
|
+
readonly view_saved_jobs: "Saved jobs";
|
|
26
|
+
readonly view_saved_jobs_count: "Saved jobs ({{count}})";
|
|
27
|
+
readonly saved_jobs_title: "Your saved jobs";
|
|
28
|
+
readonly saved_job_unavailable: "No longer available";
|
|
29
|
+
readonly remove_unavailable_saved_job: "Remove unavailable job {{id}} from saved jobs";
|
|
30
|
+
readonly remove: "Remove";
|
|
31
|
+
readonly no_saved_jobs: "No saved jobs";
|
|
32
|
+
readonly unavailable_saved_jobs: "Some saved jobs are unavailable in this view. Your bookmarks have been kept.";
|
|
33
|
+
readonly search_jobs: "Search Jobs";
|
|
34
|
+
readonly search: "Search";
|
|
23
35
|
readonly type_to_search_jobs: "Type to search jobs";
|
|
24
36
|
readonly type_to_search: "Type to search";
|
|
25
37
|
readonly jobs_found: {
|
|
@@ -102,6 +114,18 @@ declare const createTFunction: <T extends {
|
|
|
102
114
|
readonly 'job.location_type.REMOTE': "Remote";
|
|
103
115
|
readonly 'job.location_type.HYBRID': "Hybrid";
|
|
104
116
|
} = {
|
|
117
|
+
readonly save_job: "Save {{title}}";
|
|
118
|
+
readonly remove_saved_job: "Remove {{title}} from saved jobs";
|
|
119
|
+
readonly view_saved_jobs: "Saved jobs";
|
|
120
|
+
readonly view_saved_jobs_count: "Saved jobs ({{count}})";
|
|
121
|
+
readonly saved_jobs_title: "Your saved jobs";
|
|
122
|
+
readonly saved_job_unavailable: "No longer available";
|
|
123
|
+
readonly remove_unavailable_saved_job: "Remove unavailable job {{id}} from saved jobs";
|
|
124
|
+
readonly remove: "Remove";
|
|
125
|
+
readonly no_saved_jobs: "No saved jobs";
|
|
126
|
+
readonly unavailable_saved_jobs: "Some saved jobs are unavailable in this view. Your bookmarks have been kept.";
|
|
127
|
+
readonly search_jobs: "Search Jobs";
|
|
128
|
+
readonly search: "Search";
|
|
105
129
|
readonly type_to_search_jobs: "Type to search jobs";
|
|
106
130
|
readonly type_to_search: "Type to search";
|
|
107
131
|
readonly jobs_found: {
|
|
@@ -185,6 +209,18 @@ declare const createTFunction: <T extends {
|
|
|
185
209
|
readonly 'job.location_type.HYBRID': "Hybrid";
|
|
186
210
|
}>(options: {
|
|
187
211
|
overrides: Partial<TranslationDict< {
|
|
212
|
+
readonly save_job: "Save {{title}}";
|
|
213
|
+
readonly remove_saved_job: "Remove {{title}} from saved jobs";
|
|
214
|
+
readonly view_saved_jobs: "Saved jobs";
|
|
215
|
+
readonly view_saved_jobs_count: "Saved jobs ({{count}})";
|
|
216
|
+
readonly saved_jobs_title: "Your saved jobs";
|
|
217
|
+
readonly saved_job_unavailable: "No longer available";
|
|
218
|
+
readonly remove_unavailable_saved_job: "Remove unavailable job {{id}} from saved jobs";
|
|
219
|
+
readonly remove: "Remove";
|
|
220
|
+
readonly no_saved_jobs: "No saved jobs";
|
|
221
|
+
readonly unavailable_saved_jobs: "Some saved jobs are unavailable in this view. Your bookmarks have been kept.";
|
|
222
|
+
readonly search_jobs: "Search Jobs";
|
|
223
|
+
readonly search: "Search";
|
|
188
224
|
readonly type_to_search_jobs: "Type to search jobs";
|
|
189
225
|
readonly type_to_search: "Type to search";
|
|
190
226
|
readonly jobs_found: {
|
|
@@ -275,7 +311,7 @@ declare type CustomDataKey = `custom_data.${string}`;
|
|
|
275
311
|
declare type DisplayableFilterProperty = {
|
|
276
312
|
key: /** Enter any key or traverse any custom_data object returned by the job with dot-separated keys.
|
|
277
313
|
* @example `custom_data.location.city`
|
|
278
|
-
*/ FilterKey | CustomDataKey;
|
|
314
|
+
*/ FilterKey | CustomDataKey | 'external_id';
|
|
279
315
|
transform?: (value: unknown) => string | string[] | null;
|
|
280
316
|
};
|
|
281
317
|
|
|
@@ -308,6 +344,8 @@ declare type FilterProperty = {
|
|
|
308
344
|
* @default false
|
|
309
345
|
*/
|
|
310
346
|
searchable?: boolean;
|
|
347
|
+
/** Always offer these unselected values without a keyword, including at zero matches. */
|
|
348
|
+
pinnedValues?: string[];
|
|
311
349
|
/** Whether users can select one or multiple values.
|
|
312
350
|
* @default `'one'`
|
|
313
351
|
*/
|
|
@@ -422,7 +460,7 @@ export declare const getWidgetStateFromSearchParams: ({ searchParams }: {
|
|
|
422
460
|
|
|
423
461
|
declare type HintedString<KnownValues> = (string & {}) | KnownValues;
|
|
424
462
|
|
|
425
|
-
declare type IconName = 'briefcase' | 'brand' | 'building' | 'circles' | 'clock' | 'filter' | 'globe' | 'magnifier' | 'magnifierSimple' | 'mapPin' | 'pay' | 'sunset' | 'x' | 'plus' | 'chevron-right' | 'ai' | 'target-location' | 'warning' | 'map' | 'list';
|
|
463
|
+
declare type IconName = 'bookmark' | 'bookmark-filled' | 'briefcase' | 'brand' | 'building' | 'circles' | 'clock' | 'filter' | 'globe' | 'magnifier' | 'magnifierSimple' | 'mapPin' | 'pay' | 'sunset' | 'x' | 'plus' | 'chevron-right' | 'ai' | 'target-location' | 'warning' | 'map' | 'list';
|
|
426
464
|
|
|
427
465
|
declare type JobSearchPluginCardOverrides = {
|
|
428
466
|
/** Use only if you want to override the default salary property. */
|
|
@@ -466,6 +504,18 @@ declare interface JobSearchPluginParams {
|
|
|
466
504
|
/** Array of properties because _order matters_ to display them. */
|
|
467
505
|
properties: FilterProperty[];
|
|
468
506
|
jobCard: {
|
|
507
|
+
/** Optional reference or other info text above the title. Uses the same transforms as subheading. */
|
|
508
|
+
eyebrow?: DisplayableFilterProperty;
|
|
509
|
+
/** First exact scalar/array match wins. Invalid colours suppress the accent. Off by default. */
|
|
510
|
+
accent?: {
|
|
511
|
+
rules: {
|
|
512
|
+
key: string;
|
|
513
|
+
value: string;
|
|
514
|
+
color: string;
|
|
515
|
+
}[];
|
|
516
|
+
/** Decorative 4px top band (default) or left edge. Keep the meaning visible in text too. */
|
|
517
|
+
style?: 'band' | 'edge';
|
|
518
|
+
};
|
|
469
519
|
subheading: DisplayableFilterProperty | null;
|
|
470
520
|
infoTags: DisplayableFilterProperty[];
|
|
471
521
|
logo?: 'hidden' | '1:1' | '2:1';
|
|
@@ -495,6 +545,13 @@ declare interface JobSearchPluginParams {
|
|
|
495
545
|
initialState: JobSearchState_2 | ((params: Omit<JobSearchPluginParams, 'initialState'>) => JobSearchState_2);
|
|
496
546
|
/** Enables searching for jobs by keyword */
|
|
497
547
|
enableKeywordSearch?: boolean;
|
|
548
|
+
/** Stage edits and facets until Search/Enter. Reset always applies immediately. @default 'change' */
|
|
549
|
+
applyFiltersOn?: 'change' | 'submit';
|
|
550
|
+
/** Tenant-scoped bookmarks. Off by default. */
|
|
551
|
+
savedJobs?: {
|
|
552
|
+
enabled: boolean; /** Show the saved-view entry button. @default true */
|
|
553
|
+
showEntry?: boolean;
|
|
554
|
+
};
|
|
498
555
|
geolocation?: {
|
|
499
556
|
enabled: boolean;
|
|
500
557
|
distanceUnit?: 'miles' | 'km';
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CI9kMPab.js";
|
|
2
2
|
import { c as i, r as P } from "./map-attribution-By9wrlPf.js";
|
|
3
3
|
export {
|
|
4
4
|
i as createMapAttribution,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-job-search",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@inploi/design-tokens": "0.2.2",
|
|
82
82
|
"@inploi/i18n": "0.1.6",
|
|
83
83
|
"@inploi/plugin-feedback": "6.3.2",
|
|
84
|
-
"@inploi/plugin-job-alerts": "5.3.
|
|
84
|
+
"@inploi/plugin-job-alerts": "5.3.4",
|
|
85
85
|
"eslint-config-custom": "0.1.0"
|
|
86
86
|
},
|
|
87
87
|
"msw": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"mapbox-gl": "^3.12.0",
|
|
94
94
|
"maplibre-gl": "^5.24.0",
|
|
95
|
-
"@inploi/sdk": "
|
|
95
|
+
"@inploi/sdk": "3.0.0"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"dev": "vite",
|