@inploi/plugin-job-search 0.22.0 → 0.22.2
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 +9 -9
- package/cdn/style.css +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/dist/job-search.api.d.ts +73 -72
- package/dist/job-search.api.typetest.d.ts +1 -0
- package/dist/job-search.d.ts +26 -35
- package/dist/job-search.schemas.d.ts +17 -17
- package/dist/style.css +8 -0
- package/package.json +6 -5
package/dist/job-search.api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiClient, Logger } from '@inploi/sdk';
|
|
2
2
|
import { SWRResponse } from 'swr';
|
|
3
|
-
import { Input } from 'valibot';
|
|
3
|
+
import { Input, Output } from 'valibot';
|
|
4
4
|
import { FilterValue } from './components/filter';
|
|
5
5
|
|
|
6
6
|
declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<import('valibot').ObjectSchema<{
|
|
@@ -61,6 +61,23 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
61
61
|
skills?: string | undefined;
|
|
62
62
|
town?: string | undefined;
|
|
63
63
|
}>, {
|
|
64
|
+
id: number;
|
|
65
|
+
createdAt: string | null;
|
|
66
|
+
company: {
|
|
67
|
+
name: string;
|
|
68
|
+
logo: string | null;
|
|
69
|
+
};
|
|
70
|
+
employmentType: string;
|
|
71
|
+
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
72
|
+
pay: string | null;
|
|
73
|
+
description: string;
|
|
74
|
+
title: string;
|
|
75
|
+
contractType: string | null;
|
|
76
|
+
href: string;
|
|
77
|
+
relativePostedDate: string;
|
|
78
|
+
customData: {
|
|
79
|
+
[x: string]: any;
|
|
80
|
+
} | null;
|
|
64
81
|
raw: {
|
|
65
82
|
id: number;
|
|
66
83
|
company_name: string;
|
|
@@ -89,15 +106,16 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
89
106
|
skills?: string | undefined;
|
|
90
107
|
town?: string | undefined;
|
|
91
108
|
};
|
|
109
|
+
}>, {
|
|
92
110
|
id: number;
|
|
93
111
|
createdAt: string | null;
|
|
94
112
|
company: {
|
|
95
113
|
name: string;
|
|
96
|
-
logo: string |
|
|
114
|
+
logo: string | null;
|
|
97
115
|
};
|
|
98
116
|
employmentType: string;
|
|
99
117
|
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
100
|
-
pay: string |
|
|
118
|
+
pay: string | null;
|
|
101
119
|
description: string;
|
|
102
120
|
title: string;
|
|
103
121
|
contractType: string | null;
|
|
@@ -106,7 +124,6 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
106
124
|
customData: {
|
|
107
125
|
[x: string]: any;
|
|
108
126
|
} | null;
|
|
109
|
-
}>, {
|
|
110
127
|
raw: {
|
|
111
128
|
id: number;
|
|
112
129
|
company_name: string;
|
|
@@ -135,15 +152,29 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
135
152
|
skills?: string | undefined;
|
|
136
153
|
town?: string | undefined;
|
|
137
154
|
};
|
|
155
|
+
}[]>;
|
|
156
|
+
pagination: import('valibot').ObjectSchema<{
|
|
157
|
+
total: import('valibot').NumberSchema<number>;
|
|
158
|
+
current_page: import('valibot').NumberSchema<number>;
|
|
159
|
+
per_page: import('valibot').NumberSchema<number>;
|
|
160
|
+
last_page: import('valibot').NumberSchema<number>;
|
|
161
|
+
}, undefined, {
|
|
162
|
+
total: number;
|
|
163
|
+
current_page: number;
|
|
164
|
+
per_page: number;
|
|
165
|
+
last_page: number;
|
|
166
|
+
}>;
|
|
167
|
+
}, undefined, {
|
|
168
|
+
data: {
|
|
138
169
|
id: number;
|
|
139
170
|
createdAt: string | null;
|
|
140
171
|
company: {
|
|
141
172
|
name: string;
|
|
142
|
-
logo: string |
|
|
173
|
+
logo: string | null;
|
|
143
174
|
};
|
|
144
175
|
employmentType: string;
|
|
145
176
|
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
146
|
-
pay: string |
|
|
177
|
+
pay: string | null;
|
|
147
178
|
description: string;
|
|
148
179
|
title: string;
|
|
149
180
|
contractType: string | null;
|
|
@@ -152,20 +183,6 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
152
183
|
customData: {
|
|
153
184
|
[x: string]: any;
|
|
154
185
|
} | null;
|
|
155
|
-
}[]>;
|
|
156
|
-
pagination: import('valibot').ObjectSchema<{
|
|
157
|
-
total: import('valibot').NumberSchema<number>;
|
|
158
|
-
current_page: import('valibot').NumberSchema<number>;
|
|
159
|
-
per_page: import('valibot').NumberSchema<number>;
|
|
160
|
-
last_page: import('valibot').NumberSchema<number>;
|
|
161
|
-
}, undefined, {
|
|
162
|
-
total: number;
|
|
163
|
-
current_page: number;
|
|
164
|
-
per_page: number;
|
|
165
|
-
last_page: number;
|
|
166
|
-
}>;
|
|
167
|
-
}, undefined, {
|
|
168
|
-
data: {
|
|
169
186
|
raw: {
|
|
170
187
|
id: number;
|
|
171
188
|
company_name: string;
|
|
@@ -194,23 +211,6 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
194
211
|
skills?: string | undefined;
|
|
195
212
|
town?: string | undefined;
|
|
196
213
|
};
|
|
197
|
-
id: number;
|
|
198
|
-
createdAt: string | null;
|
|
199
|
-
company: {
|
|
200
|
-
name: string;
|
|
201
|
-
logo: string | undefined;
|
|
202
|
-
};
|
|
203
|
-
employmentType: string;
|
|
204
|
-
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
205
|
-
pay: string | undefined;
|
|
206
|
-
description: string;
|
|
207
|
-
title: string;
|
|
208
|
-
contractType: string | null;
|
|
209
|
-
href: string;
|
|
210
|
-
relativePostedDate: string;
|
|
211
|
-
customData: {
|
|
212
|
-
[x: string]: any;
|
|
213
|
-
} | null;
|
|
214
214
|
}[];
|
|
215
215
|
pagination: {
|
|
216
216
|
total: number;
|
|
@@ -226,6 +226,23 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
226
226
|
last_page: number;
|
|
227
227
|
};
|
|
228
228
|
results: {
|
|
229
|
+
id: number;
|
|
230
|
+
createdAt: string | null;
|
|
231
|
+
company: {
|
|
232
|
+
name: string;
|
|
233
|
+
logo: string | null;
|
|
234
|
+
};
|
|
235
|
+
employmentType: string;
|
|
236
|
+
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
237
|
+
pay: string | null;
|
|
238
|
+
description: string;
|
|
239
|
+
title: string;
|
|
240
|
+
contractType: string | null;
|
|
241
|
+
href: string;
|
|
242
|
+
relativePostedDate: string;
|
|
243
|
+
customData: {
|
|
244
|
+
[x: string]: any;
|
|
245
|
+
} | null;
|
|
229
246
|
raw: {
|
|
230
247
|
id: number;
|
|
231
248
|
company_name: string;
|
|
@@ -254,26 +271,10 @@ declare const JobSearchResponseSchema: import('valibot').SchemaWithTransform<imp
|
|
|
254
271
|
skills?: string | undefined;
|
|
255
272
|
town?: string | undefined;
|
|
256
273
|
};
|
|
257
|
-
id: number;
|
|
258
|
-
createdAt: string | null;
|
|
259
|
-
company: {
|
|
260
|
-
name: string;
|
|
261
|
-
logo: string | undefined;
|
|
262
|
-
};
|
|
263
|
-
employmentType: string;
|
|
264
|
-
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
265
|
-
pay: string | undefined;
|
|
266
|
-
description: string;
|
|
267
|
-
title: string;
|
|
268
|
-
contractType: string | null;
|
|
269
|
-
href: string;
|
|
270
|
-
relativePostedDate: string;
|
|
271
|
-
customData: {
|
|
272
|
-
[x: string]: any;
|
|
273
|
-
} | null;
|
|
274
274
|
}[];
|
|
275
275
|
}>;
|
|
276
|
-
export type
|
|
276
|
+
export type JobSearchResponsePayloadInput = Input<typeof JobSearchResponseSchema>;
|
|
277
|
+
export type JobSearchResponsePayloadOutput = Output<typeof JobSearchResponseSchema>;
|
|
277
278
|
export declare const getAvailableFilters: ({ apiClient, filters, keyword, logger, signal, }: {
|
|
278
279
|
apiClient: ApiClient;
|
|
279
280
|
logger: Logger;
|
|
@@ -303,6 +304,23 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, filters,
|
|
|
303
304
|
last_page: number;
|
|
304
305
|
};
|
|
305
306
|
results: {
|
|
307
|
+
id: number;
|
|
308
|
+
createdAt: string | null;
|
|
309
|
+
company: {
|
|
310
|
+
name: string;
|
|
311
|
+
logo: string | null;
|
|
312
|
+
};
|
|
313
|
+
employmentType: string;
|
|
314
|
+
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
315
|
+
pay: string | null;
|
|
316
|
+
description: string;
|
|
317
|
+
title: string;
|
|
318
|
+
contractType: string | null;
|
|
319
|
+
href: string;
|
|
320
|
+
relativePostedDate: string;
|
|
321
|
+
customData: {
|
|
322
|
+
[x: string]: any;
|
|
323
|
+
} | null;
|
|
306
324
|
raw: {
|
|
307
325
|
id: number;
|
|
308
326
|
company_name: string;
|
|
@@ -331,23 +349,6 @@ export declare const getJobSearchResults: ({ apiClient, logger, signal, filters,
|
|
|
331
349
|
skills?: string | undefined;
|
|
332
350
|
town?: string | undefined;
|
|
333
351
|
};
|
|
334
|
-
id: number;
|
|
335
|
-
createdAt: string | null;
|
|
336
|
-
company: {
|
|
337
|
-
name: string;
|
|
338
|
-
logo: string | undefined;
|
|
339
|
-
};
|
|
340
|
-
employmentType: string;
|
|
341
|
-
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
342
|
-
pay: string | undefined;
|
|
343
|
-
description: string;
|
|
344
|
-
title: string;
|
|
345
|
-
contractType: string | null;
|
|
346
|
-
href: string;
|
|
347
|
-
relativePostedDate: string;
|
|
348
|
-
customData: {
|
|
349
|
-
[x: string]: any;
|
|
350
|
-
} | null;
|
|
351
352
|
}[];
|
|
352
353
|
}>;
|
|
353
354
|
export type GetJobSearchResponse = Awaited<ReturnType<typeof getJobSearchResults>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/job-search.d.ts
CHANGED
|
@@ -79,29 +79,20 @@ export type JobSearchPluginCardOverrides = {
|
|
|
79
79
|
/** Overrides the default behavior of the hover event. */
|
|
80
80
|
onMouseEnter?: (e: TargetedEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
81
81
|
};
|
|
82
|
+
type ColorPaletteConfig = {
|
|
83
|
+
/** Number between 0 and 360. Number above or below range will loop. */
|
|
84
|
+
hue: number;
|
|
85
|
+
/** Float between 0 and 2. Acts as a multiplier to the original generated palette. */
|
|
86
|
+
chroma: number;
|
|
87
|
+
};
|
|
82
88
|
export type JobSearchPluginParams = {
|
|
83
89
|
theme: {
|
|
84
90
|
mode: 'light' | 'dark';
|
|
85
91
|
corners: 'rounded' | 'soft' | 'sharp';
|
|
86
92
|
highlights: 'stroke' | 'fill';
|
|
87
|
-
accent:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/** Float between 0 and 2. Acts as a multiplier to the original generated palette. */
|
|
91
|
-
chroma: number;
|
|
92
|
-
};
|
|
93
|
-
neutral?: {
|
|
94
|
-
/** Number between 0 and 360. Number above or below range will loop. */
|
|
95
|
-
hue: number;
|
|
96
|
-
/** Float between 0 and 2. Acts as a multiplier to the original generated palette. */
|
|
97
|
-
chroma: number;
|
|
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
|
-
};
|
|
93
|
+
accent: ColorPaletteConfig;
|
|
94
|
+
neutral?: ColorPaletteConfig;
|
|
95
|
+
monetary?: ColorPaletteConfig;
|
|
105
96
|
typography: Partial<FontSettings> & Partial<Record<TextStyle, Partial<FontSettings>>>;
|
|
106
97
|
/** Applies to the filter section on desktop. Override to ensure the filters are stuck to the top of the viewport,
|
|
107
98
|
* but not obscured by the header. This is useful when the header is sticky on your website.
|
|
@@ -187,6 +178,23 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
|
|
|
187
178
|
last_page: number;
|
|
188
179
|
};
|
|
189
180
|
results: {
|
|
181
|
+
id: number;
|
|
182
|
+
createdAt: string | null;
|
|
183
|
+
company: {
|
|
184
|
+
name: string;
|
|
185
|
+
logo: string | null;
|
|
186
|
+
};
|
|
187
|
+
employmentType: string;
|
|
188
|
+
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
189
|
+
pay: string | null;
|
|
190
|
+
description: string;
|
|
191
|
+
title: string;
|
|
192
|
+
contractType: string | null;
|
|
193
|
+
href: string;
|
|
194
|
+
relativePostedDate: string;
|
|
195
|
+
customData: {
|
|
196
|
+
[x: string]: any;
|
|
197
|
+
} | null;
|
|
190
198
|
raw: {
|
|
191
199
|
id: number;
|
|
192
200
|
company_name: string;
|
|
@@ -215,23 +223,6 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
|
|
|
215
223
|
skills?: string | undefined;
|
|
216
224
|
town?: string | undefined;
|
|
217
225
|
};
|
|
218
|
-
id: number;
|
|
219
|
-
createdAt: string | null;
|
|
220
|
-
company: {
|
|
221
|
-
name: string;
|
|
222
|
-
logo: string | undefined;
|
|
223
|
-
};
|
|
224
|
-
employmentType: string;
|
|
225
|
-
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
226
|
-
pay: string | undefined;
|
|
227
|
-
description: string;
|
|
228
|
-
title: string;
|
|
229
|
-
contractType: string | null;
|
|
230
|
-
href: string;
|
|
231
|
-
relativePostedDate: string;
|
|
232
|
-
customData: {
|
|
233
|
-
[x: string]: any;
|
|
234
|
-
} | null;
|
|
235
226
|
}[];
|
|
236
227
|
};
|
|
237
228
|
} | undefined;
|
|
@@ -148,6 +148,23 @@ export declare const JobSchema: import('valibot').SchemaWithTransform<import('va
|
|
|
148
148
|
skills?: string | undefined;
|
|
149
149
|
town?: string | undefined;
|
|
150
150
|
}>, {
|
|
151
|
+
id: number;
|
|
152
|
+
createdAt: string | null;
|
|
153
|
+
company: {
|
|
154
|
+
name: string;
|
|
155
|
+
logo: string | null;
|
|
156
|
+
};
|
|
157
|
+
employmentType: string;
|
|
158
|
+
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
159
|
+
pay: string | null;
|
|
160
|
+
description: string;
|
|
161
|
+
title: string;
|
|
162
|
+
contractType: string | null;
|
|
163
|
+
href: string;
|
|
164
|
+
relativePostedDate: string;
|
|
165
|
+
customData: {
|
|
166
|
+
[x: string]: any;
|
|
167
|
+
} | null;
|
|
151
168
|
raw: {
|
|
152
169
|
id: number;
|
|
153
170
|
company_name: string;
|
|
@@ -176,22 +193,5 @@ export declare const JobSchema: import('valibot').SchemaWithTransform<import('va
|
|
|
176
193
|
skills?: string | undefined;
|
|
177
194
|
town?: string | undefined;
|
|
178
195
|
};
|
|
179
|
-
id: number;
|
|
180
|
-
createdAt: string | null;
|
|
181
|
-
company: {
|
|
182
|
-
name: string;
|
|
183
|
-
logo: string | undefined;
|
|
184
|
-
};
|
|
185
|
-
employmentType: string;
|
|
186
|
-
locationType: "LOCATION" | "REMOTE" | "HYBRID";
|
|
187
|
-
pay: string | undefined;
|
|
188
|
-
description: string;
|
|
189
|
-
title: string;
|
|
190
|
-
contractType: string | null;
|
|
191
|
-
href: string;
|
|
192
|
-
relativePostedDate: string;
|
|
193
|
-
customData: {
|
|
194
|
-
[x: string]: any;
|
|
195
|
-
} | null;
|
|
196
196
|
}>;
|
|
197
197
|
export type JobSchema = Output<typeof JobSchema>;
|
package/dist/style.css
CHANGED
|
@@ -1556,6 +1556,14 @@
|
|
|
1556
1556
|
border-bottom-left-radius: var(--i-radius-job-tag);
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
|
+
#ijs .peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:hidden {
|
|
1560
|
+
display: none;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
#ijs .peer:placeholder-shown ~ .peer-placeholder-shown\:hidden {
|
|
1564
|
+
display: none;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1559
1567
|
#ijs .has-\[\[data-current-value\=true\]\]\:border-b-accent-3:has([data-current-value=true]) {
|
|
1560
1568
|
border-bottom-color: var(--i-color-a-3);
|
|
1561
1569
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-job-search",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/plugin-job-search.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"dotenv": "^16.4.5",
|
|
41
41
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
42
42
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
43
|
+
"expect-type": "^1.0.0",
|
|
43
44
|
"happy-dom": "14.3.6",
|
|
44
45
|
"msw": "^2.3.2",
|
|
45
46
|
"playwright-msw": "^3.0.1",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"vite": "^4.5.3",
|
|
53
54
|
"vite-plugin-dts": "^3.9.1",
|
|
54
55
|
"vite-tsconfig-paths": "^4.3.2",
|
|
55
|
-
"@inploi/core": "1.14.
|
|
56
|
+
"@inploi/core": "1.14.3",
|
|
56
57
|
"@inploi/design-tokens": "0.2.1",
|
|
57
58
|
"@inploi/plugin-job-alerts": "0.3.0",
|
|
58
59
|
"@inploi/sdk": "1.14.4",
|
|
@@ -64,12 +65,12 @@
|
|
|
64
65
|
"dependencies": {
|
|
65
66
|
"clsx": "^2.1.1",
|
|
66
67
|
"lodash": "^4.17.21",
|
|
68
|
+
"neoqs": "^6.13.0",
|
|
69
|
+
"preact": "^10.22.1",
|
|
67
70
|
"react": "npm:@preact/compat@^17.1.2",
|
|
68
71
|
"react-dom": "npm:@preact/compat@^17.1.2",
|
|
69
|
-
"preact": "^10.22.1",
|
|
70
72
|
"swr": "^2.2.5",
|
|
71
|
-
"valibot": "^0.21.0"
|
|
72
|
-
"neoqs": "^6.13.0"
|
|
73
|
+
"valibot": "^0.21.0"
|
|
73
74
|
},
|
|
74
75
|
"scripts": {
|
|
75
76
|
"dev": "vite",
|