@inploi/plugin-job-search 0.19.4 → 0.21.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 +15 -15
- package/cdn/style.css +1 -1
- package/dist/index.cjs +1017 -365
- package/dist/index.js +1017 -365
- package/dist/job-search.api.d.ts +4 -2
- package/dist/job-search.d.ts +10 -0
- package/dist/job-search.state.d.ts +3 -0
- package/dist/style.css +29 -6
- package/package.json +2 -2
package/dist/job-search.api.d.ts
CHANGED
|
@@ -274,9 +274,10 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
274
274
|
}[];
|
|
275
275
|
}>;
|
|
276
276
|
export type JobSearchResponsePayload = Input<typeof JobSearchResponseSchema>;
|
|
277
|
-
export declare const getAvailableFilters: ({ apiClient, filters, logger, signal, }: {
|
|
277
|
+
export declare const getAvailableFilters: ({ apiClient, filters, keyword, logger, signal, }: {
|
|
278
278
|
apiClient: ApiClient;
|
|
279
279
|
logger: Logger;
|
|
280
|
+
keyword: string | undefined;
|
|
280
281
|
signal?: AbortSignal;
|
|
281
282
|
filters: Record<string, FilterValue | undefined>;
|
|
282
283
|
}) => Promise<{
|
|
@@ -287,11 +288,12 @@ export declare const getAvailableFilters: ({ apiClient, filters, logger, signal,
|
|
|
287
288
|
}[];
|
|
288
289
|
}>;
|
|
289
290
|
export type GetAvailableFiltersResponse = Awaited<ReturnType<typeof getAvailableFilters>>;
|
|
290
|
-
export declare const getJobSearchResults: ({ apiClient, logger, signal, filters, page, }: {
|
|
291
|
+
export declare const getJobSearchResults: ({ apiClient, logger, signal, filters, keyword, page, }: {
|
|
291
292
|
apiClient: ApiClient;
|
|
292
293
|
logger: Logger;
|
|
293
294
|
signal?: AbortSignal;
|
|
294
295
|
filters: Record<string, FilterValue | undefined>;
|
|
296
|
+
keyword?: string;
|
|
295
297
|
page?: number;
|
|
296
298
|
}) => Promise<{
|
|
297
299
|
pagination: {
|
package/dist/job-search.d.ts
CHANGED
|
@@ -96,6 +96,12 @@ export type JobSearchPluginParams = {
|
|
|
96
96
|
/** Float between 0 and 2. Acts as a multiplier to the original generated palette. */
|
|
97
97
|
chroma: number;
|
|
98
98
|
};
|
|
99
|
+
monetary?: {
|
|
100
|
+
/** Number between 0 and 360. Number above or below range will loop. Defaults to 140. */
|
|
101
|
+
hue: number;
|
|
102
|
+
/** Float between 0 and 2. Acts as a multiplier to the original generated palette. */
|
|
103
|
+
chroma: number;
|
|
104
|
+
};
|
|
99
105
|
typography: Partial<FontSettings> & Partial<Record<TextStyle, Partial<FontSettings>>>;
|
|
100
106
|
/** Applies to the filter section on desktop. Override to ensure the filters are stuck to the top of the viewport,
|
|
101
107
|
* but not obscured by the header. This is useful when the header is sticky on your website.
|
|
@@ -136,8 +142,11 @@ export type JobSearchPluginParams = {
|
|
|
136
142
|
*/
|
|
137
143
|
openJob?: 'redirect' | 'redirect-new-tab';
|
|
138
144
|
};
|
|
145
|
+
defaultSearchKeyword?: string;
|
|
139
146
|
/** Enables the job alerts button */
|
|
140
147
|
enableJobAlerts?: boolean;
|
|
148
|
+
/** Enables searching for jobs by keyword */
|
|
149
|
+
enableKeywordSearch?: boolean;
|
|
141
150
|
};
|
|
142
151
|
export interface PrerenderJobSearchPluginParams extends JobSearchPluginParams {
|
|
143
152
|
/** If true, the data needed to display the first page of results
|
|
@@ -153,6 +162,7 @@ export interface RenderJobSearchPluginParams extends JobSearchPluginParams {
|
|
|
153
162
|
jobs: Awaited<ReturnType<typeof getJobSearchResults>>;
|
|
154
163
|
};
|
|
155
164
|
onFilterChange: (params: Record<string, FilterValue | undefined>) => void;
|
|
165
|
+
onKeywordChange: (keyword: string | undefined) => void;
|
|
156
166
|
}
|
|
157
167
|
export declare const createJobSearchDomManager: () => {
|
|
158
168
|
getRenderTargetElement: () => Element;
|
package/dist/style.css
CHANGED
|
@@ -71,6 +71,13 @@
|
|
|
71
71
|
animation-delay: 0s !important;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
#ijs input[type='search']::-webkit-search-decoration,
|
|
75
|
+
#ijs input[type='search']::-webkit-search-cancel-button,
|
|
76
|
+
#ijs input[type='search']::-webkit-search-results-button,
|
|
77
|
+
#ijs input[type='search']::-webkit-search-results-decoration {
|
|
78
|
+
-webkit-appearance: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
74
81
|
@media (prefers-reduced-motion) {
|
|
75
82
|
#ijs * {
|
|
76
83
|
animation-duration: 0.01ms !important;
|
|
@@ -291,6 +298,10 @@
|
|
|
291
298
|
bottom: 0px;
|
|
292
299
|
}
|
|
293
300
|
|
|
301
|
+
#ijs .left-0 {
|
|
302
|
+
left: 0px;
|
|
303
|
+
}
|
|
304
|
+
|
|
294
305
|
#ijs .right-0 {
|
|
295
306
|
right: 0px;
|
|
296
307
|
}
|
|
@@ -348,6 +359,10 @@
|
|
|
348
359
|
margin-right: auto;
|
|
349
360
|
}
|
|
350
361
|
|
|
362
|
+
#ijs .mb-2 {
|
|
363
|
+
margin-bottom: 0.5rem;
|
|
364
|
+
}
|
|
365
|
+
|
|
351
366
|
#ijs .ml-auto {
|
|
352
367
|
margin-left: auto;
|
|
353
368
|
}
|
|
@@ -460,8 +475,8 @@
|
|
|
460
475
|
width: 10ch;
|
|
461
476
|
}
|
|
462
477
|
|
|
463
|
-
#ijs .w-\[
|
|
464
|
-
width:
|
|
478
|
+
#ijs .w-\[3ch\] {
|
|
479
|
+
width: 3ch;
|
|
465
480
|
}
|
|
466
481
|
|
|
467
482
|
#ijs .w-\[6ch\] {
|
|
@@ -924,6 +939,10 @@
|
|
|
924
939
|
padding-left: 0.25rem;
|
|
925
940
|
}
|
|
926
941
|
|
|
942
|
+
#ijs .pl-10 {
|
|
943
|
+
padding-left: 2.5rem;
|
|
944
|
+
}
|
|
945
|
+
|
|
927
946
|
#ijs .pl-2 {
|
|
928
947
|
padding-left: 0.5rem;
|
|
929
948
|
}
|
|
@@ -956,8 +975,8 @@
|
|
|
956
975
|
padding-right: 0.75rem;
|
|
957
976
|
}
|
|
958
977
|
|
|
959
|
-
#ijs .pr-
|
|
960
|
-
padding-right:
|
|
978
|
+
#ijs .pr-4 {
|
|
979
|
+
padding-right: 1rem;
|
|
961
980
|
}
|
|
962
981
|
|
|
963
982
|
#ijs .pr-8 {
|
|
@@ -1098,8 +1117,8 @@
|
|
|
1098
1117
|
color: var(--i-color-a-11);
|
|
1099
1118
|
}
|
|
1100
1119
|
|
|
1101
|
-
#ijs .text-copy-accent {
|
|
1102
|
-
color: var(--i-copy-accent);
|
|
1120
|
+
#ijs .text-copy-accent-icon {
|
|
1121
|
+
color: var(--i-copy-accent-icon);
|
|
1103
1122
|
}
|
|
1104
1123
|
|
|
1105
1124
|
#ijs .text-copy-job-info {
|
|
@@ -1231,6 +1250,10 @@
|
|
|
1231
1250
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1232
1251
|
}
|
|
1233
1252
|
|
|
1253
|
+
#ijs .ring-accent-10 {
|
|
1254
|
+
--tw-ring-color: var(--i-color-a-10);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1234
1257
|
#ijs .ring-job-card-stroke {
|
|
1235
1258
|
--tw-ring-color: var(--i-job-card-stroke-color);
|
|
1236
1259
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-job-search",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-job-search.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vite-tsconfig-paths": "^4.3.2",
|
|
55
55
|
"@inploi/core": "1.14.2",
|
|
56
56
|
"@inploi/design-tokens": "0.2.1",
|
|
57
|
-
"@inploi/plugin-job-alerts": "0.3.0",
|
|
58
57
|
"@inploi/sdk": "1.14.4",
|
|
58
|
+
"@inploi/plugin-job-alerts": "0.3.0",
|
|
59
59
|
"eslint-config-custom": "0.1.0"
|
|
60
60
|
},
|
|
61
61
|
"msw": {
|