@inploi/plugin-job-search 0.23.6 → 0.24.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.
- package/cdn/index.js +1070 -0
- package/cdn/style.css +1 -0
- package/dist/components/alerts-button.d.ts +11 -0
- package/dist/components/button.d.ts +60 -0
- package/dist/components/current-value-tag.d.ts +10 -0
- package/dist/components/error-boundary.d.ts +23 -0
- package/dist/components/filter-content.active.d.ts +74 -0
- package/dist/components/filter-section.d.ts +13 -0
- package/dist/components/filter.d.ts +23 -0
- package/dist/components/icon.d.ts +29 -0
- package/dist/components/job-card.d.ts +13 -0
- package/dist/components/job-search.d.ts +24 -0
- package/dist/components/keyword-search.d.ts +5 -0
- package/dist/components/mode-switch.d.ts +9 -0
- package/dist/components/natural-language-section.d.ts +8 -0
- package/dist/components/palette-debugger.d.ts +1 -0
- package/dist/components/results-section.d.ts +21 -0
- package/dist/components/roving-text.d.ts +6 -0
- package/dist/components/skeleton-text.d.ts +3 -0
- package/dist/components/tag.d.ts +60 -0
- package/dist/datetime-3eccae90.cjs +1 -0
- package/dist/datetime-796d4b37.js +32 -0
- package/dist/index.cjs +7 -6204
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3893 -4910
- package/dist/job-search.api.d.ts +20 -5
- package/dist/job-search.d.ts +11 -0
- package/dist/job-search.schemas.d.ts +9 -2
- package/dist/job-search.state.d.ts +1 -0
- package/dist/lib/cache-key.d.ts +7 -0
- package/dist/lib/cache-key.test.d.ts +1 -0
- package/dist/lib/currency.d.ts +10 -0
- package/dist/lib/currency.test.d.ts +1 -0
- package/dist/lib/datetime.d.ts +11 -0
- package/dist/lib/deep-set.d.ts +8 -0
- package/dist/lib/deep-set.test.d.ts +1 -0
- package/dist/lib/hooks.d.ts +8 -0
- package/dist/lib/match.d.ts +35 -0
- package/dist/lib/match.test.d.ts +1 -0
- package/dist/lib/translation.d.ts +44 -0
- package/dist/lib/translation.terms.d.ts +246 -0
- package/dist/lib/translation.test.d.ts +1 -0
- package/dist/lib/type-utils.d.ts +55 -0
- package/dist/lib/utils.d.ts +4 -0
- package/dist/mocks/browser.d.ts +1 -0
- package/dist/mocks/handlers.d.ts +15 -0
- package/dist/plugin-job-alerts-4b46b097.cjs +1050 -0
- package/dist/plugin-job-alerts-6f8dbd69.js +5613 -0
- package/dist/style/theme.d.ts +3 -0
- package/dist/style/theme.utils.d.ts +6 -0
- package/dist/style/tokens.d.ts +149 -0
- package/dist/style.css +1 -1742
- package/dist/utils.cjs +1 -18
- package/dist/utils.js +12 -13
- package/package.json +8 -6
- package/dist/datetime-5adbbd63.cjs +0 -55
- package/dist/datetime-ef341067.js +0 -56
- package/dist/plugin-job-alerts-2ce58f09.js +0 -6040
- package/dist/plugin-job-alerts-e8471004.cjs +0 -6040
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A type-safe way to get the keys and values of an object..
|
|
3
|
+
*/
|
|
4
|
+
export declare const objectEntries: <TObj extends object>(obj: TObj) => [keyof TObj, TObj[keyof TObj]][];
|
|
5
|
+
export type NonEmptyString<T extends string> = T extends '' ? never : T;
|
|
6
|
+
export type NonEmptyArray<T> = [T, ...T[]];
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a string type with type hints for known values.
|
|
9
|
+
*/
|
|
10
|
+
export type HintedString<KnownValues extends string> = (string & {}) | KnownValues;
|
|
11
|
+
export type Flatten<T> = {
|
|
12
|
+
[K in keyof T]: T[K];
|
|
13
|
+
} & {};
|
|
14
|
+
export type WithRequired<T, K extends keyof T> = T & {
|
|
15
|
+
[P in K]-?: T[P];
|
|
16
|
+
};
|
|
17
|
+
/** Allows you to get a type from a union of types.
|
|
18
|
+
* @example Select<string | number, string> will return string. */
|
|
19
|
+
export type Select<T, U extends T> = U;
|
|
20
|
+
export type Maybe<T> = T | null | undefined;
|
|
21
|
+
export type PartialReadonly<T> = T | Readonly<T>;
|
|
22
|
+
export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
23
|
+
export type Jsonify<T> = IsAny<T> extends true ? any : T extends ({
|
|
24
|
+
toJSON(): infer U;
|
|
25
|
+
}) ? U extends JsonValue ? U : unknown : T extends JsonPrimitive ? T : T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends Promise<unknown> ? EmptyObject : T extends Map<unknown, unknown> ? EmptyObject : T extends Set<unknown> ? EmptyObject : T extends TypedArray ? Record<string, number> : T extends NotJson ? never : T extends [] ? [] : T extends readonly [infer F, ...infer R] ? [NeverToNull<Jsonify<F>>, ...Jsonify<R>] : T extends readonly unknown[] ? NeverToNull<Jsonify<T[number]>>[] : T extends Record<keyof unknown, unknown> ? JsonifyObject<T> : unknown extends T ? unknown : never;
|
|
26
|
+
type ValueIsNotJson<T> = T extends NotJson ? true : false;
|
|
27
|
+
type IsNotJson<T> = {
|
|
28
|
+
[K in keyof T]-?: ValueIsNotJson<T[K]>;
|
|
29
|
+
};
|
|
30
|
+
type JsonifyValues<T> = {
|
|
31
|
+
[K in keyof T]: Jsonify<T[K]>;
|
|
32
|
+
};
|
|
33
|
+
type JsonifyObject<T extends Record<keyof unknown, unknown>> = {
|
|
34
|
+
[K in keyof T as unknown extends T[K] ? never : IsNotJson<T>[K] extends false ? K : never]: JsonifyValues<T>[K];
|
|
35
|
+
} & {
|
|
36
|
+
[K in keyof T as unknown extends T[K] ? K : IsNotJson<T>[K] extends false ? never : IsNotJson<T>[K] extends true ? never : K]?: JsonifyValues<T>[K];
|
|
37
|
+
};
|
|
38
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
39
|
+
type JsonArray = JsonValue[] | readonly JsonValue[];
|
|
40
|
+
type JsonObject = {
|
|
41
|
+
[K in string]: JsonValue;
|
|
42
|
+
} & {
|
|
43
|
+
[K in string]?: JsonValue;
|
|
44
|
+
};
|
|
45
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
46
|
+
type NotJson = undefined | symbol | AnyFunction;
|
|
47
|
+
type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
48
|
+
type AnyFunction = (...args: any[]) => unknown;
|
|
49
|
+
type NeverToNull<T> = [T] extends [never] ? null : T;
|
|
50
|
+
declare const emptyObjectSymbol: unique symbol;
|
|
51
|
+
export type EmptyObject = {
|
|
52
|
+
[emptyObjectSymbol]?: never;
|
|
53
|
+
};
|
|
54
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const worker: import('msw/browser').SetupWorker;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 browserHandlers: import('msw').HttpHandler[];
|