@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.
- package/README.md +5 -0
- package/cdn/index.js +16 -18
- package/cdn/style.css +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +977 -0
- package/dist/index.d.ts +977 -2
- package/dist/index.js +147 -175
- package/dist/{job-search-eb64050e.js → job-search-C39oHZb7.js} +1804 -1959
- package/dist/job-search-C9kyIrbM.cjs +60 -0
- package/dist/map-B3T2x-f7.cjs +1 -0
- package/dist/map-DVf9u_B8.js +286 -0
- package/dist/{map-attribution-96798686.js → map-attribution-By9wrlPf.js} +7 -14
- package/dist/mapbox-gl-BvQCqDX3.cjs +3073 -0
- package/dist/{mapbox-gl-0f446975.js → mapbox-gl-D9aqTRUT.js} +13146 -16312
- package/dist/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +622 -0
- package/dist/utils.d.ts +622 -3
- package/dist/utils.js +11 -12
- package/package.json +25 -15
- package/dist/components/button.d.ts +0 -60
- package/dist/components/combobox.d.ts +0 -27
- package/dist/components/error-boundary.d.ts +0 -23
- package/dist/components/filter-content.active.d.ts +0 -246
- package/dist/components/filter-section.d.ts +0 -18
- package/dist/components/filter.d.ts +0 -24
- package/dist/components/geo-search.d.ts +0 -37
- package/dist/components/geo-search.geocode.d.ts +0 -34
- package/dist/components/geo-search.geocode.test.d.ts +0 -1
- package/dist/components/geo-search.locate-button.d.ts +0 -8
- package/dist/components/geo-search.location-input.d.ts +0 -12
- package/dist/components/geo-search.location-input.test.d.ts +0 -1
- package/dist/components/geo-search.utils.d.ts +0 -19
- package/dist/components/geo-search.utils.test.d.ts +0 -1
- package/dist/components/icon.d.ts +0 -33
- package/dist/components/job-card.d.ts +0 -17
- package/dist/components/job-search.alerts.test.d.ts +0 -1
- package/dist/components/job-search.d.ts +0 -56
- package/dist/components/keyword-search.d.ts +0 -6
- package/dist/components/map.attribution.test.d.ts +0 -1
- package/dist/components/map.d.ts +0 -12
- package/dist/components/map.imports.test.d.ts +0 -1
- package/dist/components/map.mapbox.d.ts +0 -11
- package/dist/components/map.maplibre.d.ts +0 -12
- package/dist/components/map.test.d.ts +0 -1
- package/dist/components/map.types.d.ts +0 -46
- package/dist/components/natural-language-section.d.ts +0 -9
- package/dist/components/palette-debugger.d.ts +0 -1
- package/dist/components/result-order.d.ts +0 -6
- package/dist/components/results-list.d.ts +0 -26
- package/dist/components/results-map.d.ts +0 -22
- package/dist/components/results.d.ts +0 -28
- package/dist/components/roving-text.d.ts +0 -6
- package/dist/components/skeleton-text.d.ts +0 -3
- package/dist/components/tag.d.ts +0 -60
- package/dist/components/view-switch.d.ts +0 -64
- package/dist/index.cdn.d.ts +0 -9
- package/dist/index.dev.d.ts +0 -1
- package/dist/job-search-941c04d7.cjs +0 -60
- package/dist/job-search.api.d.ts +0 -682
- package/dist/job-search.api.test.d.ts +0 -1
- package/dist/job-search.api.typetest.d.ts +0 -1
- package/dist/job-search.constants.d.ts +0 -7
- package/dist/job-search.d.ts +0 -296
- package/dist/job-search.schemas.d.ts +0 -183
- package/dist/lib/cache-key.d.ts +0 -7
- package/dist/lib/cache-key.test.d.ts +0 -1
- package/dist/lib/countries.d.ts +0 -4
- package/dist/lib/countries.test.d.ts +0 -1
- package/dist/lib/currency.test.d.ts +0 -1
- package/dist/lib/deep-set.d.ts +0 -8
- package/dist/lib/deep-set.test.d.ts +0 -1
- package/dist/lib/distance.d.ts +0 -11
- package/dist/lib/distance.test.d.ts +0 -1
- package/dist/lib/hooks.d.ts +0 -8
- package/dist/lib/i18n.d.ts +0 -587
- package/dist/lib/map-attribution.d.ts +0 -8
- package/dist/lib/map-library-cdn.test.d.ts +0 -1
- package/dist/lib/map-style.d.ts +0 -8
- package/dist/lib/map-style.test.d.ts +0 -1
- package/dist/lib/match.d.ts +0 -35
- package/dist/lib/match.test.d.ts +0 -1
- package/dist/lib/sort.d.ts +0 -4
- package/dist/lib/sort.test.d.ts +0 -1
- package/dist/lib/type-utils.d.ts +0 -56
- package/dist/lib/utils.d.ts +0 -16
- package/dist/lib/utils.test.d.ts +0 -1
- package/dist/map-00ee82df.js +0 -300
- package/dist/map-109de8da.cjs +0 -2
- package/dist/mapbox-gl-11152b6e.cjs +0 -3073
- package/dist/mocks/browser.d.ts +0 -1
- package/dist/mocks/handlers.d.ts +0 -26
- package/dist/style/theme.d.ts +0 -7
- package/dist/style/theme.utils.d.ts +0 -6
- package/dist/style/tokens.d.ts +0 -148
- /package/dist/{common.geo-transport-CJGUJXTA-aba25ae8.cjs → common.geo-transport-CJGUJXTA-BmDm5A18.cjs} +0 -0
- /package/dist/{common.geo-transport-CJGUJXTA-e1f9b82a.js → common.geo-transport-CJGUJXTA-H3__EeqQ.js} +0 -0
- /package/dist/{map-attribution-0b24769c.cjs → map-attribution-DyuZ3dMC.cjs} +0 -0
package/dist/mocks/browser.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const worker: import('msw/browser').SetupWorker;
|
package/dist/mocks/handlers.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const availableFiltersHandler: {
|
|
2
|
-
withResults: import('msw').HttpHandler;
|
|
3
|
-
malformed: import('msw').HttpHandler;
|
|
4
|
-
};
|
|
5
|
-
export declare const jobSearchHandler: {
|
|
6
|
-
withResults: import('msw').HttpHandler;
|
|
7
|
-
noResults: import('msw').HttpHandler;
|
|
8
|
-
/** Returns an invalid payload with a 200 code.
|
|
9
|
-
* E.g.: if the backend returns something incompatible with the frontend.
|
|
10
|
-
*/
|
|
11
|
-
invalid_payload: import('msw').HttpHandler;
|
|
12
|
-
/** Returns a laravel-structured error */
|
|
13
|
-
exception: import('msw').HttpHandler;
|
|
14
|
-
};
|
|
15
|
-
export declare const jobSearchMapHandler: {
|
|
16
|
-
hasMore: import('msw').HttpHandler;
|
|
17
|
-
noMore: import('msw').HttpHandler;
|
|
18
|
-
noResults: import('msw').HttpHandler;
|
|
19
|
-
/** Returns an invalid payload with a 200 code.
|
|
20
|
-
* E.g.: if the backend returns something incompatible with the frontend.
|
|
21
|
-
*/
|
|
22
|
-
invalid_payload: import('msw').HttpHandler;
|
|
23
|
-
/** Returns a laravel-structured error */
|
|
24
|
-
exception: import('msw').HttpHandler;
|
|
25
|
-
};
|
|
26
|
-
export declare const browserHandlers: import('msw').HttpHandler[];
|
package/dist/style/theme.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { JobSearchPluginParams } from '../job-search';
|
|
2
|
-
|
|
3
|
-
export declare const generateColorThemeCss: (params: JobSearchPluginParams) => string;
|
|
4
|
-
type CustomMediaProperties = Pick<JobSearchPluginParams['theme'], 'corners' | 'highlights' | 'mode'>;
|
|
5
|
-
export type ThemeVariantMedia = CustomMediaProperties[keyof CustomMediaProperties];
|
|
6
|
-
export declare const getThemeVariants: (theme: JobSearchPluginParams["theme"]) => ThemeVariantMedia[];
|
|
7
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { JobSearchPluginParams } from '../job-search';
|
|
2
|
-
|
|
3
|
-
export type Theme = JobSearchPluginParams['theme'];
|
|
4
|
-
export declare const prefixInploi: <T extends string | number>(v: T) => `--i-${T}`;
|
|
5
|
-
export declare const prefixVar: <T extends string | number>(v: T) => `var(--i-${T})`;
|
|
6
|
-
export type PrefixedVar<T extends string | number> = `var(--i-${T})`;
|
package/dist/style/tokens.d.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
export declare const tokens: {
|
|
2
|
-
from: <TGetToken extends import('@inploi/design-tokens/tokens').GetTokenFn>(config: {
|
|
3
|
-
theme: {
|
|
4
|
-
mode: "light" | "dark";
|
|
5
|
-
corners: "rounded" | "soft" | "sharp";
|
|
6
|
-
highlights: "stroke" | "fill";
|
|
7
|
-
accent: {
|
|
8
|
-
hue: number;
|
|
9
|
-
chroma: number;
|
|
10
|
-
};
|
|
11
|
-
neutral?: {
|
|
12
|
-
hue: number;
|
|
13
|
-
chroma: number;
|
|
14
|
-
};
|
|
15
|
-
monetary?: {
|
|
16
|
-
hue: number;
|
|
17
|
-
chroma: number;
|
|
18
|
-
};
|
|
19
|
-
typography: Partial<{
|
|
20
|
-
fontFamily: string;
|
|
21
|
-
weight: "normal" | "bold" | "lighter" | "bolder" | number;
|
|
22
|
-
style: "normal" | "italic";
|
|
23
|
-
}> & Partial<Record<"input" | "filter" | "tag" | "jobHeading", Partial<{
|
|
24
|
-
fontFamily: string;
|
|
25
|
-
weight: "normal" | "bold" | "lighter" | "bolder" | number;
|
|
26
|
-
style: "normal" | "italic";
|
|
27
|
-
}>>>;
|
|
28
|
-
filtersOffsetTopPx?: number;
|
|
29
|
-
accessibility?: {
|
|
30
|
-
highContrast: boolean;
|
|
31
|
-
reducedMotion: boolean;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
getToken: TGetToken;
|
|
35
|
-
}) => {
|
|
36
|
-
values: {
|
|
37
|
-
"color.white": unknown;
|
|
38
|
-
"color.black": unknown;
|
|
39
|
-
"color.lowest": unknown;
|
|
40
|
-
"color.highest": unknown;
|
|
41
|
-
"color.a-1": unknown;
|
|
42
|
-
"color.a-2": unknown;
|
|
43
|
-
"color.a-3": unknown;
|
|
44
|
-
"color.a-4": unknown;
|
|
45
|
-
"color.a-5": unknown;
|
|
46
|
-
"color.a-6": unknown;
|
|
47
|
-
"color.a-7": unknown;
|
|
48
|
-
"color.a-8": unknown;
|
|
49
|
-
"color.a-9": unknown;
|
|
50
|
-
"color.a-10": unknown;
|
|
51
|
-
"color.a-11": unknown;
|
|
52
|
-
"color.a-12": unknown;
|
|
53
|
-
"color.n-1": unknown;
|
|
54
|
-
"color.n-2": unknown;
|
|
55
|
-
"color.n-3": unknown;
|
|
56
|
-
"color.n-4": unknown;
|
|
57
|
-
"color.n-5": unknown;
|
|
58
|
-
"color.n-6": unknown;
|
|
59
|
-
"color.n-7": unknown;
|
|
60
|
-
"color.n-8": unknown;
|
|
61
|
-
"color.n-9": unknown;
|
|
62
|
-
"color.n-10": unknown;
|
|
63
|
-
"color.n-11": unknown;
|
|
64
|
-
"color.n-12": unknown;
|
|
65
|
-
"color.m-1": unknown;
|
|
66
|
-
"color.m-2": unknown;
|
|
67
|
-
"color.m-3": unknown;
|
|
68
|
-
"color.m-4": unknown;
|
|
69
|
-
"color.m-5": unknown;
|
|
70
|
-
"color.m-6": unknown;
|
|
71
|
-
"color.m-7": unknown;
|
|
72
|
-
"color.m-8": unknown;
|
|
73
|
-
"color.m-9": unknown;
|
|
74
|
-
"color.m-10": unknown;
|
|
75
|
-
"color.m-11": unknown;
|
|
76
|
-
"color.m-12": unknown;
|
|
77
|
-
font: string;
|
|
78
|
-
'font-style': string;
|
|
79
|
-
'font-filter': string;
|
|
80
|
-
'font-job-heading': string;
|
|
81
|
-
'font-tag': string;
|
|
82
|
-
'weight-default': string;
|
|
83
|
-
'style-filter': string;
|
|
84
|
-
'weight-filter': string;
|
|
85
|
-
'style-tag': string;
|
|
86
|
-
'style-job-heading': string;
|
|
87
|
-
'weight-tag': string;
|
|
88
|
-
'weight-job-heading': string;
|
|
89
|
-
'style-input': string;
|
|
90
|
-
'weight-input': string;
|
|
91
|
-
'app-bg': string;
|
|
92
|
-
copy: string;
|
|
93
|
-
'copy-lowcontrast': string;
|
|
94
|
-
'copy-info': string;
|
|
95
|
-
'copy-icon': string;
|
|
96
|
-
'copy-accent': string;
|
|
97
|
-
'copy-accent-lowcontrast': string;
|
|
98
|
-
'copy-accent-icon': string;
|
|
99
|
-
'copy-inverted': string;
|
|
100
|
-
'copy-inverted-lowcontrast': string;
|
|
101
|
-
'copy-inverted-icon': string;
|
|
102
|
-
'tag-neutral-weak-bg': string;
|
|
103
|
-
'tag-neutral-weak-copy': string;
|
|
104
|
-
'tag-neutral-weak-stroke-color': string;
|
|
105
|
-
'tag-neutral-strong-bg': string;
|
|
106
|
-
'tag-neutral-strong-copy': string;
|
|
107
|
-
'tag-neutral-strong-stroke-color': string;
|
|
108
|
-
'tag-monetary-weak-bg': string;
|
|
109
|
-
'tag-monetary-weak-copy': string;
|
|
110
|
-
'tag-monetary-weak-stroke-color': string;
|
|
111
|
-
'tag-accent-strong-bg': string;
|
|
112
|
-
'tag-accent-strong-copy': string;
|
|
113
|
-
'tag-accent-strong-stroke-color': string;
|
|
114
|
-
'radius-app': string;
|
|
115
|
-
'radius-section': string;
|
|
116
|
-
'radius-input': string;
|
|
117
|
-
'radius-job-card': string;
|
|
118
|
-
'radius-job-tag': string;
|
|
119
|
-
'radius-logo': string;
|
|
120
|
-
'logo-gap': string;
|
|
121
|
-
'interactive-neutral-bg': string;
|
|
122
|
-
'interactive-neutral-bg-hover': string;
|
|
123
|
-
'interactive-neutral-text': string;
|
|
124
|
-
'interactive-accent-bg': string;
|
|
125
|
-
'interactive-accent-bg-hover': string;
|
|
126
|
-
'interactive-accent-text': string;
|
|
127
|
-
'radius-interactive': string;
|
|
128
|
-
'section-weak-bg': string;
|
|
129
|
-
'section-strong-bg': string;
|
|
130
|
-
'section-weak-stroke-color': string;
|
|
131
|
-
'section-strong-stroke-color': string;
|
|
132
|
-
'section-stroke-width': string;
|
|
133
|
-
'job-card-bg': string;
|
|
134
|
-
'job-card-bg-active': string;
|
|
135
|
-
'job-card-stroke-color': string;
|
|
136
|
-
'job-card-stroke-color-active': string;
|
|
137
|
-
'job-card-stroke-width': string;
|
|
138
|
-
};
|
|
139
|
-
declarations: {
|
|
140
|
-
[k: string]: string;
|
|
141
|
-
};
|
|
142
|
-
ref: (path: "font" | "font-style" | "font-filter" | "font-job-heading" | "font-tag" | "weight-default" | "style-filter" | "weight-filter" | "style-tag" | "style-job-heading" | "weight-tag" | "weight-job-heading" | "style-input" | "weight-input" | "color.white" | "color.black" | "color.lowest" | "color.highest" | "color.a-1" | "color.a-2" | "color.a-3" | "color.a-4" | "color.a-5" | "color.a-6" | "color.a-7" | "color.a-8" | "color.a-9" | "color.a-10" | "color.a-11" | "color.a-12" | "color.n-1" | "color.n-2" | "color.n-3" | "color.n-4" | "color.n-5" | "color.n-6" | "color.n-7" | "color.n-8" | "color.n-9" | "color.n-10" | "color.n-11" | "color.n-12" | "color.m-1" | "color.m-2" | "color.m-3" | "color.m-4" | "color.m-5" | "color.m-6" | "color.m-7" | "color.m-8" | "color.m-9" | "color.m-10" | "color.m-11" | "color.m-12" | "app-bg" | "copy" | "copy-lowcontrast" | "copy-info" | "copy-icon" | "copy-accent" | "copy-accent-lowcontrast" | "copy-accent-icon" | "copy-inverted" | "copy-inverted-lowcontrast" | "copy-inverted-icon" | "tag-neutral-weak-bg" | "tag-neutral-weak-copy" | "tag-neutral-weak-stroke-color" | "tag-neutral-strong-bg" | "tag-neutral-strong-copy" | "tag-neutral-strong-stroke-color" | "tag-monetary-weak-bg" | "tag-monetary-weak-copy" | "tag-monetary-weak-stroke-color" | "tag-accent-strong-bg" | "tag-accent-strong-copy" | "tag-accent-strong-stroke-color" | "radius-app" | "radius-section" | "radius-input" | "radius-job-card" | "radius-job-tag" | "radius-logo" | "logo-gap" | "interactive-neutral-bg" | "interactive-neutral-bg-hover" | "interactive-neutral-text" | "interactive-accent-bg" | "interactive-accent-bg-hover" | "interactive-accent-text" | "radius-interactive" | "section-weak-bg" | "section-strong-bg" | "section-weak-stroke-color" | "section-strong-stroke-color" | "section-stroke-width" | "job-card-bg" | "job-card-bg-active" | "job-card-stroke-color" | "job-card-stroke-color-active" | "job-card-stroke-width") => string;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
export declare const asInploiVar: {
|
|
146
|
-
<const TPath extends PropertyKey>(target: "declaration", path: TPath): `--i-${TPath & string extends infer T ? T extends TPath & string ? T extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${/*elided*/ any}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : T : never : never}`;
|
|
147
|
-
<const TPath extends PropertyKey>(target: "reference", path: TPath): `var(--i-${TPath & string extends infer T ? T extends TPath & string ? T extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${After extends `${infer Before}.${infer After}` ? `${Before}-${/*elided*/ any}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : After}` : T : never : never})`;
|
|
148
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|