@inploi/plugin-job-search 9.0.0 → 9.0.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.
Files changed (98) hide show
  1. package/README.md +5 -0
  2. package/cdn/index.js +16 -18
  3. package/cdn/style.css +1 -1
  4. package/dist/index.cjs +1 -2
  5. package/dist/index.d.cts +977 -0
  6. package/dist/index.d.ts +977 -2
  7. package/dist/index.js +147 -175
  8. package/dist/{job-search-eb64050e.js → job-search-C39oHZb7.js} +1804 -1959
  9. package/dist/job-search-C9kyIrbM.cjs +60 -0
  10. package/dist/map-B3T2x-f7.cjs +1 -0
  11. package/dist/map-DVf9u_B8.js +286 -0
  12. package/dist/{map-attribution-96798686.js → map-attribution-By9wrlPf.js} +7 -14
  13. package/dist/mapbox-gl-BvQCqDX3.cjs +3073 -0
  14. package/dist/{mapbox-gl-0f446975.js → mapbox-gl-D9aqTRUT.js} +13146 -16312
  15. package/dist/style.css +1 -1
  16. package/dist/utils.cjs +1 -1
  17. package/dist/utils.d.cts +622 -0
  18. package/dist/utils.d.ts +622 -3
  19. package/dist/utils.js +11 -12
  20. package/package.json +25 -15
  21. package/dist/components/button.d.ts +0 -60
  22. package/dist/components/combobox.d.ts +0 -27
  23. package/dist/components/error-boundary.d.ts +0 -23
  24. package/dist/components/filter-content.active.d.ts +0 -246
  25. package/dist/components/filter-section.d.ts +0 -18
  26. package/dist/components/filter.d.ts +0 -24
  27. package/dist/components/geo-search.d.ts +0 -37
  28. package/dist/components/geo-search.geocode.d.ts +0 -34
  29. package/dist/components/geo-search.geocode.test.d.ts +0 -1
  30. package/dist/components/geo-search.locate-button.d.ts +0 -8
  31. package/dist/components/geo-search.location-input.d.ts +0 -12
  32. package/dist/components/geo-search.location-input.test.d.ts +0 -1
  33. package/dist/components/geo-search.utils.d.ts +0 -19
  34. package/dist/components/geo-search.utils.test.d.ts +0 -1
  35. package/dist/components/icon.d.ts +0 -33
  36. package/dist/components/job-card.d.ts +0 -17
  37. package/dist/components/job-search.alerts.test.d.ts +0 -1
  38. package/dist/components/job-search.d.ts +0 -56
  39. package/dist/components/keyword-search.d.ts +0 -6
  40. package/dist/components/map.attribution.test.d.ts +0 -1
  41. package/dist/components/map.d.ts +0 -12
  42. package/dist/components/map.imports.test.d.ts +0 -1
  43. package/dist/components/map.mapbox.d.ts +0 -11
  44. package/dist/components/map.maplibre.d.ts +0 -12
  45. package/dist/components/map.test.d.ts +0 -1
  46. package/dist/components/map.types.d.ts +0 -46
  47. package/dist/components/natural-language-section.d.ts +0 -9
  48. package/dist/components/palette-debugger.d.ts +0 -1
  49. package/dist/components/result-order.d.ts +0 -6
  50. package/dist/components/results-list.d.ts +0 -26
  51. package/dist/components/results-map.d.ts +0 -22
  52. package/dist/components/results.d.ts +0 -28
  53. package/dist/components/roving-text.d.ts +0 -6
  54. package/dist/components/skeleton-text.d.ts +0 -3
  55. package/dist/components/tag.d.ts +0 -60
  56. package/dist/components/view-switch.d.ts +0 -64
  57. package/dist/index.cdn.d.ts +0 -9
  58. package/dist/index.dev.d.ts +0 -1
  59. package/dist/job-search-941c04d7.cjs +0 -60
  60. package/dist/job-search.api.d.ts +0 -682
  61. package/dist/job-search.api.test.d.ts +0 -1
  62. package/dist/job-search.api.typetest.d.ts +0 -1
  63. package/dist/job-search.constants.d.ts +0 -7
  64. package/dist/job-search.d.ts +0 -296
  65. package/dist/job-search.schemas.d.ts +0 -183
  66. package/dist/lib/cache-key.d.ts +0 -7
  67. package/dist/lib/cache-key.test.d.ts +0 -1
  68. package/dist/lib/countries.d.ts +0 -4
  69. package/dist/lib/countries.test.d.ts +0 -1
  70. package/dist/lib/currency.test.d.ts +0 -1
  71. package/dist/lib/deep-set.d.ts +0 -8
  72. package/dist/lib/deep-set.test.d.ts +0 -1
  73. package/dist/lib/distance.d.ts +0 -11
  74. package/dist/lib/distance.test.d.ts +0 -1
  75. package/dist/lib/hooks.d.ts +0 -8
  76. package/dist/lib/i18n.d.ts +0 -587
  77. package/dist/lib/map-attribution.d.ts +0 -8
  78. package/dist/lib/map-library-cdn.test.d.ts +0 -1
  79. package/dist/lib/map-style.d.ts +0 -8
  80. package/dist/lib/map-style.test.d.ts +0 -1
  81. package/dist/lib/match.d.ts +0 -35
  82. package/dist/lib/match.test.d.ts +0 -1
  83. package/dist/lib/sort.d.ts +0 -4
  84. package/dist/lib/sort.test.d.ts +0 -1
  85. package/dist/lib/type-utils.d.ts +0 -56
  86. package/dist/lib/utils.d.ts +0 -16
  87. package/dist/lib/utils.test.d.ts +0 -1
  88. package/dist/map-00ee82df.js +0 -300
  89. package/dist/map-109de8da.cjs +0 -2
  90. package/dist/mapbox-gl-11152b6e.cjs +0 -3073
  91. package/dist/mocks/browser.d.ts +0 -1
  92. package/dist/mocks/handlers.d.ts +0 -26
  93. package/dist/style/theme.d.ts +0 -7
  94. package/dist/style/theme.utils.d.ts +0 -6
  95. package/dist/style/tokens.d.ts +0 -148
  96. /package/dist/{common.geo-transport-CJGUJXTA-aba25ae8.cjs → common.geo-transport-CJGUJXTA-BmDm5A18.cjs} +0 -0
  97. /package/dist/{common.geo-transport-CJGUJXTA-e1f9b82a.js → common.geo-transport-CJGUJXTA-H3__EeqQ.js} +0 -0
  98. /package/dist/{map-attribution-0b24769c.cjs → map-attribution-DyuZ3dMC.cjs} +0 -0
package/package.json CHANGED
@@ -1,19 +1,29 @@
1
1
  {
2
2
  "name": "@inploi/plugin-job-search",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "type": "module",
5
- "main": "dist/plugin-job-search.js",
5
+ "main": "dist/index.cjs",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "require": "./dist/index.cjs",
10
- "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
9
+ "import": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "require": {
14
+ "types": "./dist/index.d.cts",
15
+ "default": "./dist/index.cjs"
16
+ }
12
17
  },
13
18
  "./utils": {
14
- "require": "./dist/utils.cjs",
15
- "import": "./dist/utils.js",
16
- "types": "./dist/utils.d.ts"
19
+ "import": {
20
+ "types": "./dist/utils.d.ts",
21
+ "default": "./dist/utils.js"
22
+ },
23
+ "require": {
24
+ "types": "./dist/utils.d.cts",
25
+ "default": "./dist/utils.cjs"
26
+ }
17
27
  }
18
28
  },
19
29
  "files": [
@@ -28,7 +38,7 @@
28
38
  "devDependencies": {
29
39
  "@faker-js/faker": "^8.4.1",
30
40
  "@happy-dom/global-registrator": "14.3.6",
31
- "@preact/preset-vite": "^2.9.0",
41
+ "@preact/preset-vite": "2.10.2",
32
42
  "eslint": "^7.32.0",
33
43
  "@preact/signals": "^1.3.0",
34
44
  "@radix-ui/react-dialog": "1.0.5",
@@ -57,19 +67,19 @@
57
67
  "preact-render-to-string": "^6.3.1",
58
68
  "react": "npm:@preact/compat@17.1.2",
59
69
  "react-dom": "npm:@preact/compat@17.1.2",
60
- "rollup-plugin-visualizer": "^5.12.0",
70
+ "rollup-plugin-visualizer": "6.0.3",
61
71
  "swr": "^2.2.5",
62
72
  "tailwindcss": "^3.4.6",
63
73
  "tailwindcss-touch": "^1.0.1",
64
74
  "type-testing": "^0.2.0",
65
75
  "valibot": "1.1.0",
66
- "vite": "^4.5.3",
67
- "vite-plugin-dts": "^3.9.1",
68
- "vite-tsconfig-paths": "^4.3.2",
76
+ "vite": "7.1.4",
77
+ "vite-plugin-dts": "4.5.4",
78
+ "vite-tsconfig-paths": "5.1.4",
69
79
  "@inploi/core": "1.23.0",
70
80
  "@inploi/design-tokens": "0.2.1",
71
81
  "@inploi/i18n": "0.1.5",
72
- "@inploi/plugin-job-alerts": "5.3.0",
82
+ "@inploi/plugin-job-alerts": "5.3.1",
73
83
  "eslint-config-custom": "0.1.0"
74
84
  },
75
85
  "msw": {
@@ -80,7 +90,7 @@
80
90
  "dependencies": {
81
91
  "mapbox-gl": "^3.12.0",
82
92
  "maplibre-gl": "^5.24.0",
83
- "@inploi/sdk": "2.7.1"
93
+ "@inploi/sdk": "2.8.1"
84
94
  },
85
95
  "scripts": {
86
96
  "dev": "vite",
@@ -1,60 +0,0 @@
1
- export declare const btnClass: (props?: ({
2
- variant?: "neutral" | "accent" | undefined;
3
- icon?: "none" | "right" | "left" | "only" | undefined;
4
- position?: "relative" | "absolute" | undefined;
5
- size?: "sm" | "lg" | "unsized" | undefined;
6
- } & ({
7
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
8
- [x: string]: any;
9
- } | null | undefined)[] | {
10
- [x: string]: any;
11
- } | null | undefined)[] | {
12
- [x: string]: any;
13
- } | null | undefined)[] | {
14
- [x: string]: any;
15
- } | null | undefined)[] | {
16
- [x: string]: any;
17
- } | null | undefined)[] | {
18
- [x: string]: any;
19
- } | null | undefined)[] | {
20
- [x: string]: any;
21
- } | null | undefined)[] | {
22
- [x: string]: any;
23
- } | null | undefined)[] | {
24
- [x: string]: any;
25
- } | null | undefined)[] | {
26
- [x: string]: any;
27
- } | null | undefined)[] | {
28
- [x: string]: any;
29
- } | null | undefined)[] | {
30
- [x: string]: any;
31
- } | null | undefined;
32
- className?: never;
33
- } | {
34
- class?: never;
35
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
36
- [x: string]: any;
37
- } | null | undefined)[] | {
38
- [x: string]: any;
39
- } | null | undefined)[] | {
40
- [x: string]: any;
41
- } | null | undefined)[] | {
42
- [x: string]: any;
43
- } | null | undefined)[] | {
44
- [x: string]: any;
45
- } | null | undefined)[] | {
46
- [x: string]: any;
47
- } | null | undefined)[] | {
48
- [x: string]: any;
49
- } | null | undefined)[] | {
50
- [x: string]: any;
51
- } | null | undefined)[] | {
52
- [x: string]: any;
53
- } | null | undefined)[] | {
54
- [x: string]: any;
55
- } | null | undefined)[] | {
56
- [x: string]: any;
57
- } | null | undefined)[] | {
58
- [x: string]: any;
59
- } | null | undefined;
60
- })) | undefined) => string;
@@ -1,27 +0,0 @@
1
- import { VNode } from 'preact';
2
-
3
- type ComboboxItem = {
4
- id: string;
5
- label: VNode | string;
6
- };
7
- type ComboboxProps = {
8
- disabled?: boolean;
9
- ref: React.RefObject<HTMLInputElement>;
10
- name: string;
11
- inputPlaceholder: string;
12
- items: ComboboxItem[];
13
- onItemSelect: (id: string) => void;
14
- /** Enter reaches the caller with the highlighted item and whether the visitor explicitly highlighted it. */
15
- onEnter: (activeItemId: string | undefined, picked: boolean) => void;
16
- onQueryChange: (query: string) => void;
17
- error?: unknown;
18
- query?: string;
19
- inputProps?: React.HTMLAttributes<HTMLInputElement>;
20
- menuProps?: React.HTMLAttributes<HTMLUListElement>;
21
- onBlur?: () => void;
22
- onFocus?: () => void;
23
- };
24
- export declare const Combobox: import('preact').FunctionalComponent<import('preact/compat').PropsWithoutRef<ComboboxProps> & {
25
- ref?: import('preact').Ref<HTMLInputElement> | undefined;
26
- }>;
27
- export {};
@@ -1,23 +0,0 @@
1
- import { Component, ComponentProps, FunctionComponent, VNode } from 'preact';
2
-
3
- type ErrorBoundaryProps = {
4
- children?: VNode | VNode[];
5
- Fallback: FunctionComponent<FallbackProps>;
6
- };
7
- type FallbackProps = {
8
- error: Error;
9
- resetError: () => void;
10
- };
11
- export declare const UnstyledErrorView: ({ error, resetError }: FallbackProps) => import("preact").JSX.Element;
12
- export declare const ErrorView: ({ error, resetError, class: className, ...props }: FallbackProps & ComponentProps<"div">) => import("preact").JSX.Element;
13
- export declare class ErrorBoundary extends Component<ErrorBoundaryProps> {
14
- state: {
15
- error: Error | null;
16
- };
17
- static getDerivedStateFromError(error: Error): {
18
- error: string;
19
- };
20
- componentDidCatch(error: Error): void;
21
- render(): import("preact").JSX.Element | (VNode<{}> & object) | (VNode<{}>[] & object) | undefined;
22
- }
23
- export {};
@@ -1,246 +0,0 @@
1
- import { SWRResponse } from 'swr';
2
- import { FilterProperty } from '../job-search';
3
- import { GetAvailableFiltersResponse, QueryState } from '../job-search.api';
4
- import { FilterValue } from './filter';
5
-
6
- export declare const inputClass: (props?: ({
7
- hasValue?: boolean | undefined;
8
- size?: "unsized" | "md" | undefined;
9
- } & ({
10
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
11
- [x: string]: any;
12
- } | null | undefined)[] | {
13
- [x: string]: any;
14
- } | null | undefined)[] | {
15
- [x: string]: any;
16
- } | null | undefined)[] | {
17
- [x: string]: any;
18
- } | null | undefined)[] | {
19
- [x: string]: any;
20
- } | null | undefined)[] | {
21
- [x: string]: any;
22
- } | null | undefined)[] | {
23
- [x: string]: any;
24
- } | null | undefined)[] | {
25
- [x: string]: any;
26
- } | null | undefined)[] | {
27
- [x: string]: any;
28
- } | null | undefined)[] | {
29
- [x: string]: any;
30
- } | null | undefined)[] | {
31
- [x: string]: any;
32
- } | null | undefined)[] | {
33
- [x: string]: any;
34
- } | null | undefined;
35
- className?: never;
36
- } | {
37
- class?: never;
38
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
39
- [x: string]: any;
40
- } | null | undefined)[] | {
41
- [x: string]: any;
42
- } | null | undefined)[] | {
43
- [x: string]: any;
44
- } | null | undefined)[] | {
45
- [x: string]: any;
46
- } | null | undefined)[] | {
47
- [x: string]: any;
48
- } | null | undefined)[] | {
49
- [x: string]: any;
50
- } | null | undefined)[] | {
51
- [x: string]: any;
52
- } | null | undefined)[] | {
53
- [x: string]: any;
54
- } | null | undefined)[] | {
55
- [x: string]: any;
56
- } | null | undefined)[] | {
57
- [x: string]: any;
58
- } | null | undefined)[] | {
59
- [x: string]: any;
60
- } | null | undefined)[] | {
61
- [x: string]: any;
62
- } | null | undefined;
63
- })) | undefined) => string;
64
- export declare const suggestionsListClass: (props?: ({
65
- ring?: "default" | "unset" | undefined;
66
- } & ({
67
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
68
- [x: string]: any;
69
- } | null | undefined)[] | {
70
- [x: string]: any;
71
- } | null | undefined)[] | {
72
- [x: string]: any;
73
- } | null | undefined)[] | {
74
- [x: string]: any;
75
- } | null | undefined)[] | {
76
- [x: string]: any;
77
- } | null | undefined)[] | {
78
- [x: string]: any;
79
- } | null | undefined)[] | {
80
- [x: string]: any;
81
- } | null | undefined)[] | {
82
- [x: string]: any;
83
- } | null | undefined)[] | {
84
- [x: string]: any;
85
- } | null | undefined)[] | {
86
- [x: string]: any;
87
- } | null | undefined)[] | {
88
- [x: string]: any;
89
- } | null | undefined)[] | {
90
- [x: string]: any;
91
- } | null | undefined;
92
- className?: never;
93
- } | {
94
- class?: never;
95
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
96
- [x: string]: any;
97
- } | null | undefined)[] | {
98
- [x: string]: any;
99
- } | null | undefined)[] | {
100
- [x: string]: any;
101
- } | null | undefined)[] | {
102
- [x: string]: any;
103
- } | null | undefined)[] | {
104
- [x: string]: any;
105
- } | null | undefined)[] | {
106
- [x: string]: any;
107
- } | null | undefined)[] | {
108
- [x: string]: any;
109
- } | null | undefined)[] | {
110
- [x: string]: any;
111
- } | null | undefined)[] | {
112
- [x: string]: any;
113
- } | null | undefined)[] | {
114
- [x: string]: any;
115
- } | null | undefined)[] | {
116
- [x: string]: any;
117
- } | null | undefined)[] | {
118
- [x: string]: any;
119
- } | null | undefined;
120
- })) | undefined) => string;
121
- export declare const suggestionItemClass: (props?: ({
122
- type?: "line" | "pill" | undefined;
123
- } & ({
124
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
125
- [x: string]: any;
126
- } | null | undefined)[] | {
127
- [x: string]: any;
128
- } | null | undefined)[] | {
129
- [x: string]: any;
130
- } | null | undefined)[] | {
131
- [x: string]: any;
132
- } | null | undefined)[] | {
133
- [x: string]: any;
134
- } | null | undefined)[] | {
135
- [x: string]: any;
136
- } | null | undefined)[] | {
137
- [x: string]: any;
138
- } | null | undefined)[] | {
139
- [x: string]: any;
140
- } | null | undefined)[] | {
141
- [x: string]: any;
142
- } | null | undefined)[] | {
143
- [x: string]: any;
144
- } | null | undefined)[] | {
145
- [x: string]: any;
146
- } | null | undefined)[] | {
147
- [x: string]: any;
148
- } | null | undefined;
149
- className?: never;
150
- } | {
151
- class?: never;
152
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
153
- [x: string]: any;
154
- } | null | undefined)[] | {
155
- [x: string]: any;
156
- } | null | undefined)[] | {
157
- [x: string]: any;
158
- } | null | undefined)[] | {
159
- [x: string]: any;
160
- } | null | undefined)[] | {
161
- [x: string]: any;
162
- } | null | undefined)[] | {
163
- [x: string]: any;
164
- } | null | undefined)[] | {
165
- [x: string]: any;
166
- } | null | undefined)[] | {
167
- [x: string]: any;
168
- } | null | undefined)[] | {
169
- [x: string]: any;
170
- } | null | undefined)[] | {
171
- [x: string]: any;
172
- } | null | undefined)[] | {
173
- [x: string]: any;
174
- } | null | undefined)[] | {
175
- [x: string]: any;
176
- } | null | undefined;
177
- })) | undefined) => string;
178
- export declare const tagLongClass: (props?: ({
179
- active?: boolean | undefined;
180
- disabled?: boolean | undefined;
181
- } & ({
182
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
183
- [x: string]: any;
184
- } | null | undefined)[] | {
185
- [x: string]: any;
186
- } | null | undefined)[] | {
187
- [x: string]: any;
188
- } | null | undefined)[] | {
189
- [x: string]: any;
190
- } | null | undefined)[] | {
191
- [x: string]: any;
192
- } | null | undefined)[] | {
193
- [x: string]: any;
194
- } | null | undefined)[] | {
195
- [x: string]: any;
196
- } | null | undefined)[] | {
197
- [x: string]: any;
198
- } | null | undefined)[] | {
199
- [x: string]: any;
200
- } | null | undefined)[] | {
201
- [x: string]: any;
202
- } | null | undefined)[] | {
203
- [x: string]: any;
204
- } | null | undefined)[] | {
205
- [x: string]: any;
206
- } | null | undefined;
207
- className?: never;
208
- } | {
209
- class?: never;
210
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
211
- [x: string]: any;
212
- } | null | undefined)[] | {
213
- [x: string]: any;
214
- } | null | undefined)[] | {
215
- [x: string]: any;
216
- } | null | undefined)[] | {
217
- [x: string]: any;
218
- } | null | undefined)[] | {
219
- [x: string]: any;
220
- } | null | undefined)[] | {
221
- [x: string]: any;
222
- } | null | undefined)[] | {
223
- [x: string]: any;
224
- } | null | undefined)[] | {
225
- [x: string]: any;
226
- } | null | undefined)[] | {
227
- [x: string]: any;
228
- } | null | undefined)[] | {
229
- [x: string]: any;
230
- } | null | undefined)[] | {
231
- [x: string]: any;
232
- } | null | undefined)[] | {
233
- [x: string]: any;
234
- } | null | undefined;
235
- })) | undefined) => string;
236
- type FilterContentActiveProps = {
237
- value: FilterValue;
238
- property: FilterProperty;
239
- unfilteredQuery: QueryState<GetAvailableFiltersResponse>;
240
- isMobile: boolean;
241
- onValueChange: (value: FilterValue | undefined) => void;
242
- onClose: () => void;
243
- useQuery: () => SWRResponse<GetAvailableFiltersResponse>;
244
- };
245
- export declare const FilterContentActive: ({ value, property, useQuery, isMobile, onValueChange, onClose, }: FilterContentActiveProps) => import("preact").JSX.Element;
246
- export {};
@@ -1,18 +0,0 @@
1
- import { InploiRpcClient } from '@inploi/sdk';
2
- import { FilterProperty, JobSearchPluginI18nParams, JobSearchPluginParams } from '..';
3
- import { FilterValue } from './filter';
4
- import { JobSearchState } from './job-search';
5
-
6
- type FilterSectionProps = {
7
- properties: FilterProperty[];
8
- state: JobSearchState;
9
- onFilterValueChange: (key: string, value: FilterValue | undefined) => void;
10
- onResetFilters: () => void;
11
- rpcClient: InploiRpcClient;
12
- theme: JobSearchPluginParams['theme'];
13
- alerts: JobSearchPluginParams['alerts'];
14
- widgetId: JobSearchPluginParams['widgetId'];
15
- i18n: JobSearchPluginI18nParams | undefined;
16
- };
17
- export declare const FilterSection: ({ properties, state, onFilterValueChange, onResetFilters, rpcClient, theme, alerts, widgetId, i18n, }: FilterSectionProps) => import("preact").JSX.Element;
18
- export {};
@@ -1,24 +0,0 @@
1
- import { SWRResponse } from 'swr';
2
- import { GetAvailableFiltersResponse, QueryState } from '../job-search.api';
3
- import { FilterProperty, JobSearchPluginParams } from '..';
4
-
5
- export type FilterValue = {
6
- select: 'one';
7
- value: string | undefined;
8
- } | {
9
- select: 'many';
10
- value: string[] | undefined;
11
- };
12
- export declare const getSelectedValues: (current: FilterValue) => string[];
13
- export type FilterProps = {
14
- active: boolean;
15
- value: FilterValue;
16
- unfilteredQuery: QueryState<GetAvailableFiltersResponse>;
17
- onActiveChange: (active: boolean) => void;
18
- property: FilterProperty;
19
- theme: JobSearchPluginParams['theme'];
20
- widgetId: JobSearchPluginParams['widgetId'];
21
- onValueChange: (value: FilterValue | undefined) => void;
22
- useQuery: () => SWRResponse<GetAvailableFiltersResponse>;
23
- };
24
- export declare const Filter: ({ active, value, onActiveChange, property, onValueChange, unfilteredQuery, useQuery, theme, widgetId, }: FilterProps) => import("preact").JSX.Element;
@@ -1,37 +0,0 @@
1
- import { InploiRpcClient } from '@inploi/sdk';
2
-
3
- export type GeoBounds = {
4
- type: 'bounds';
5
- sw: {
6
- lat: number;
7
- lng: number;
8
- };
9
- ne: {
10
- lat: number;
11
- lng: number;
12
- };
13
- };
14
- export type GeoSearchFilter = {
15
- type: 'provided';
16
- coords?: {
17
- lat: number;
18
- lng: number;
19
- };
20
- radius: number;
21
- /** The place as the candidate chose it; absent when the search came from a URL. */
22
- label?: string;
23
- } | {
24
- type: 'ip';
25
- radius: number;
26
- } | GeoBounds;
27
- declare const RADIUS_OPTIONS_MILES: readonly [0.25, 0.5, 1, 3, 5, 10, 15, 20, 30, 40];
28
- declare const RADIUS_OPTIONS_KM: readonly [0.5, 1, 3, 5, 10, 15, 25, 50, 100];
29
- export declare const DEFAULT_RADIUS_MILES: (typeof RADIUS_OPTIONS_MILES)[number];
30
- export declare const DEFAULT_RADIUS_KM: (typeof RADIUS_OPTIONS_KM)[number];
31
- export declare const GeoSearch: ({ rpcClient, value, onValueChange, distanceUnit, }: {
32
- rpcClient: InploiRpcClient;
33
- value: GeoSearchFilter | undefined;
34
- onValueChange: (geo: GeoSearchFilter | undefined) => void;
35
- distanceUnit?: "miles" | "km";
36
- }) => import("preact").JSX.Element;
37
- export {};
@@ -1,34 +0,0 @@
1
- import { GeoLookup } from '@inploi/core/common';
2
-
3
- export declare const MIN_GEOCODE_QUERY_LENGTH = 3;
4
- export type LocationSuggestion = ReturnType<typeof parseSuggestions>[number];
5
- declare const parseSuggestions: (json: unknown) => {
6
- mapbox_id: string;
7
- feature_type?: string | undefined;
8
- place_formatted?: string | undefined;
9
- name_preferred: string;
10
- coordinates: {
11
- lat: number;
12
- lng: number;
13
- };
14
- }[];
15
- /** The geocoder request for typed text, limited to the hub's countries and to places, ranked near the visitor. */
16
- export declare const geocodeUrl: (query: string, countries: string[]) => URL;
17
- /** A typed postcode ("NG1", "ng1 5aw") goes first when the geocoder knows it, so Enter searches that postcode
18
- * and not the neighbour the geocoder ranked above it (NG11 for "NG1"). */
19
- export declare const preferExactPostcode: (query: string, suggestions: LocationSuggestion[]) => {
20
- mapbox_id: string;
21
- feature_type?: string | undefined;
22
- place_formatted?: string | undefined;
23
- name_preferred: string;
24
- coordinates: {
25
- lat: number;
26
- lng: number;
27
- };
28
- }[];
29
- type LocationSuggestions = {
30
- results: LocationSuggestion[];
31
- lookup: GeoLookup | null;
32
- };
33
- export declare const getSuggestions: ([query, countries]: [query: string, countries: string[]], signal?: AbortSignal, onDirect?: () => void) => Promise<LocationSuggestions>;
34
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- export declare const LocateButton: ({ onLocate, onError, signal, }: {
2
- onLocate: (coords: {
3
- lat: number;
4
- lng: number;
5
- }) => void;
6
- onError: (message: string) => void;
7
- signal: AbortSignal;
8
- }) => import("preact").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { GeoSearchFilter } from './geo-search';
2
- import { Coords } from './geo-search.utils';
3
-
4
- export declare const LocationInput: ({ onSelect, onValueChange, coords, radius, countries, onError, }: {
5
- onSelect: (coords: Coords, label: string) => void;
6
- onValueChange: (geo: GeoSearchFilter | undefined) => void;
7
- coords: Coords | undefined;
8
- radius: number;
9
- /** The hub's countries, as ISO codes; suggestions come only from these. */
10
- countries: string[];
11
- onError: (error: string | undefined) => void;
12
- }) => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- export declare const LOCATE_TIMEOUT_MS = 10000;
2
- /** Rejected when no position arrives in time — including when the permission prompt is never answered. */
3
- export declare class LocateTimeoutError extends Error {
4
- constructor();
5
- }
6
- /**
7
- * The native `timeout` option only starts counting once permission is granted, so a prompt the
8
- * candidate never answers would hang forever. The timer here covers the prompt as well.
9
- */
10
- export declare const getLocationWithSignal: ({ signal, timeoutMs }: {
11
- signal: AbortSignal;
12
- timeoutMs: number;
13
- }) => Promise<GeolocationCoordinates>;
14
- /** Every failure maps to a message; `null` only for a deliberate abort (the candidate started typing instead). */
15
- export declare const locateErrorTerm: (error: unknown) => "geo_error_timeout" | "geo_error_permission_denied" | "geo_error_position_unavailable" | null;
16
- export type Coords = {
17
- lat: number;
18
- lng: number;
19
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,33 +0,0 @@
1
- import { ComponentProps } from 'preact';
2
- import { JobSearchPluginParams } from '../job-search';
3
-
4
- declare const icons: {
5
- briefcase: import("preact").JSX.Element;
6
- brand: import("preact").JSX.Element;
7
- building: import("preact").JSX.Element;
8
- circles: import("preact").JSX.Element;
9
- clock: import("preact").JSX.Element;
10
- filter: import("preact").JSX.Element;
11
- globe: import("preact").JSX.Element;
12
- magnifier: import("preact").JSX.Element;
13
- magnifierSimple: import("preact").JSX.Element;
14
- mapPin: import("preact").JSX.Element;
15
- pay: import("preact").JSX.Element;
16
- sunset: import("preact").JSX.Element;
17
- x: import("preact").JSX.Element;
18
- plus: import("preact").JSX.Element;
19
- 'chevron-right': import("preact").JSX.Element;
20
- ai: import("preact").JSX.Element;
21
- 'target-location': import("preact").JSX.Element;
22
- warning: import("preact").JSX.Element;
23
- map: import("preact").JSX.Element;
24
- list: import("preact").JSX.Element;
25
- };
26
- export type IconName = keyof typeof icons;
27
- export declare const IconSpritesheet: ({ theme }: {
28
- theme: JobSearchPluginParams["theme"];
29
- }) => import("preact").JSX.Element;
30
- export declare const Icon: ({ name, ...props }: {
31
- name: IconName;
32
- } & ComponentProps<"svg">) => import("preact").JSX.Element;
33
- export {};
@@ -1,17 +0,0 @@
1
- import { JobSchema } from '../job-search.schemas';
2
- import { JobSearchPluginParams } from '../job-search.ts';
3
- import { DistanceUnit } from '../lib/distance';
4
-
5
- export declare const JobCard: ({ job, config, onJobClick, size, distanceUnit, }: {
6
- job: JobSchema;
7
- config: JobSearchPluginParams["jobCard"];
8
- onJobClick?: (job: JobSchema) => void;
9
- size?: "sm";
10
- /** The hub's `geolocation.distanceUnit`; required so no call site silently falls back to miles. */
11
- distanceUnit: DistanceUnit | undefined;
12
- }) => import("preact").JSX.Element;
13
- export declare const JobCardSkeleton: ({ config, animationDelay, seed, }: {
14
- config: JobSearchPluginParams["jobCard"];
15
- animationDelay: number;
16
- seed: number;
17
- }) => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export {};