@inploi/plugin-job-search 0.19.3 → 0.20.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.
@@ -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: {
@@ -136,8 +136,11 @@ export type JobSearchPluginParams = {
136
136
  */
137
137
  openJob?: 'redirect' | 'redirect-new-tab';
138
138
  };
139
+ defaultSearchKeyword?: string;
139
140
  /** Enables the job alerts button */
140
141
  enableJobAlerts?: boolean;
142
+ /** Enables searching for jobs by keyword */
143
+ enableKeywordSearch?: boolean;
141
144
  };
142
145
  export interface PrerenderJobSearchPluginParams extends JobSearchPluginParams {
143
146
  /** If true, the data needed to display the first page of results
@@ -153,6 +156,7 @@ export interface RenderJobSearchPluginParams extends JobSearchPluginParams {
153
156
  jobs: Awaited<ReturnType<typeof getJobSearchResults>>;
154
157
  };
155
158
  onFilterChange: (params: Record<string, FilterValue | undefined>) => void;
159
+ onKeywordChange: (keyword: string | undefined) => void;
156
160
  }
157
161
  export declare const createJobSearchDomManager: () => {
158
162
  getRenderTargetElement: () => Element;
@@ -0,0 +1,3 @@
1
+ export declare const store: {
2
+ keyword$: import('@preact/signals').Signal<string | undefined>;
3
+ };
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-\[2\.5ch\] {
464
- width: 2.5ch;
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-5 {
960
- padding-right: 1.25rem;
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.19.3",
3
+ "version": "0.20.0",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-job-search.js",
6
6
  "types": "dist/index.d.ts",
@@ -52,9 +52,9 @@
52
52
  "vite": "^4.5.3",
53
53
  "vite-plugin-dts": "^3.9.1",
54
54
  "vite-tsconfig-paths": "^4.3.2",
55
- "@inploi/core": "1.14.2",
56
- "@inploi/design-tokens": "0.2.1",
57
55
  "@inploi/plugin-job-alerts": "0.3.0",
56
+ "@inploi/design-tokens": "0.2.1",
57
+ "@inploi/core": "1.14.2",
58
58
  "@inploi/sdk": "1.14.4",
59
59
  "eslint-config-custom": "0.1.0"
60
60
  },