@inploi/plugin-job-search 0.19.2 → 0.19.3

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.
@@ -1,3 +1,4 @@
1
+ import { TargetedEvent } from 'preact/compat';
1
2
  import { getJobSearchResults } from './job-search.api.ts';
2
3
  import { FilterValue } from './components/filter.tsx';
3
4
  import { IconName } from './components/icon.tsx';
@@ -74,9 +75,9 @@ export type JobSearchPluginCardOverrides = {
74
75
  /** Overrides the link to the job. */
75
76
  baseUrl?: (jobId: string) => string;
76
77
  /** Overrides the default behavior of the click event. */
77
- onClick?: (event: Event) => void;
78
+ onClick?: (e: TargetedEvent<HTMLAnchorElement, MouseEvent>) => void;
78
79
  /** Overrides the default behavior of the hover event. */
79
- onMouseEnter?: (event: Event) => void;
80
+ onMouseEnter?: (e: TargetedEvent<HTMLAnchorElement, MouseEvent>) => void;
80
81
  };
81
82
  export type JobSearchPluginParams = {
82
83
  theme: {
@@ -211,9 +212,7 @@ export declare const jobSearchPlugin: () => ({ apiClient, logger, analytics }: {
211
212
  logo: string | undefined;
212
213
  };
213
214
  employmentType: string;
214
- locationType: "LOCATION" | "REMOTE" | "HYBRID"; /** Whether users can search from the available results.
215
- * @default false
216
- */
215
+ locationType: "LOCATION" | "REMOTE" | "HYBRID";
217
216
  pay: string | undefined;
218
217
  description: string;
219
218
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-job-search",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-job-search.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,16 +44,11 @@
44
44
  "msw": "^2.3.2",
45
45
  "playwright-msw": "^3.0.1",
46
46
  "postcss": "^8.4.39",
47
- "preact": "^10.22.1",
48
47
  "preact-render-to-string": "^6.5.6",
49
- "react": "npm:@preact/compat@^17.1.2",
50
- "react-dom": "npm:@preact/compat@^17.1.2",
51
48
  "rollup-plugin-visualizer": "^5.12.0",
52
- "swr": "^2.2.5",
53
49
  "tailwindcss": "^3.4.6",
54
50
  "tailwindcss-touch": "^1.0.1",
55
51
  "type-testing": "^0.2.0",
56
- "valibot": "^0.21.0",
57
52
  "vite": "^4.5.3",
58
53
  "vite-plugin-dts": "^3.9.1",
59
54
  "vite-tsconfig-paths": "^4.3.2",
@@ -69,6 +64,11 @@
69
64
  "dependencies": {
70
65
  "clsx": "^2.1.1",
71
66
  "lodash": "^4.17.21",
67
+ "react": "npm:@preact/compat@^17.1.2",
68
+ "react-dom": "npm:@preact/compat@^17.1.2",
69
+ "preact": "^10.22.1",
70
+ "swr": "^2.2.5",
71
+ "valibot": "^0.21.0",
72
72
  "neoqs": "^6.13.0"
73
73
  },
74
74
  "scripts": {