@inploi/plugin-job-search 0.24.0 → 0.25.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.
Files changed (46) hide show
  1. package/cdn/index.js +17 -17
  2. package/cdn/style.css +1 -1
  3. package/dist/components/button.d.ts +1 -1
  4. package/dist/components/combobox.d.ts +25 -0
  5. package/dist/components/filter-content.active.d.ts +174 -1
  6. package/dist/components/filter-section.d.ts +3 -2
  7. package/dist/components/filter.d.ts +57 -0
  8. package/dist/components/geo-search.d.ts +22 -0
  9. package/dist/components/geo-search.locate-button.d.ts +8 -0
  10. package/dist/components/geo-search.location-input.d.ts +10 -0
  11. package/dist/components/geo-search.utils.d.ts +7 -0
  12. package/dist/components/icon.d.ts +2 -0
  13. package/dist/components/job-search.d.ts +21 -1
  14. package/dist/components/keyword-search.d.ts +3 -2
  15. package/dist/components/mode-switch.d.ts +3 -3
  16. package/dist/components/natural-language-section.d.ts +3 -2
  17. package/dist/components/results-section.d.ts +3 -3
  18. package/dist/components/tag.d.ts +1 -1
  19. package/dist/index.cjs +4 -20
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +1170 -4735
  22. package/dist/job-search.api-4bfb3842.js +3874 -0
  23. package/dist/job-search.api-e3e2ae41.cjs +17 -0
  24. package/dist/job-search.api.d.ts +35 -27
  25. package/dist/job-search.d.ts +10 -3
  26. package/dist/job-search.schemas.d.ts +10 -10
  27. package/dist/lib/cache-key.d.ts +2 -3
  28. package/dist/lib/currency.d.ts +1 -1
  29. package/dist/lib/datetime.d.ts +1 -1
  30. package/dist/lib/type-utils.d.ts +1 -0
  31. package/dist/lib/utils.d.ts +3 -0
  32. package/dist/plugin-job-alerts-7fc7b0f9.cjs +1050 -0
  33. package/dist/{plugin-job-alerts-6f8dbd69.js → plugin-job-alerts-a5cbb5be.js} +1777 -1812
  34. package/dist/style/tokens.d.ts +2 -2
  35. package/dist/style.css +1 -1
  36. package/dist/utils.cjs +1 -1
  37. package/dist/utils.d.ts +1 -1
  38. package/dist/utils.js +5 -15
  39. package/package.json +10 -9
  40. package/dist/datetime-3eccae90.cjs +0 -1
  41. package/dist/datetime-796d4b37.js +0 -32
  42. package/dist/job-search.state.d.ts +0 -4
  43. package/dist/lib/translation.d.ts +0 -44
  44. package/dist/lib/translation.terms.d.ts +0 -246
  45. package/dist/lib/translation.test.d.ts +0 -1
  46. package/dist/plugin-job-alerts-4b46b097.cjs +0 -1050
@@ -1,7 +1,6 @@
1
- import { FilterValue } from '../components/filter';
1
+ import { JobSearchState } from '../components/job-search';
2
2
 
3
3
  export declare const cacheKey: (value: {
4
- filter: Record<string, FilterValue | undefined>;
4
+ state: JobSearchState;
5
5
  baseKey: string;
6
- keyword: string | undefined;
7
6
  }) => string;
@@ -1,5 +1,5 @@
1
1
  import { JobPayloadSchema } from '../job-search.schemas';
2
- import { TFunction } from './translation.terms';
2
+ import { TFunction } from './i18n';
3
3
 
4
4
  export declare const getSalaryAsText: (params: {
5
5
  salary: Pick<JobPayloadSchema, 'pay' | 'pay_min' | 'pay_mask' | 'pay_max' | 'pay_type' | 'pay_currency' | 'pay_display'>;
@@ -1,4 +1,4 @@
1
- import { TFunction } from './translation.terms';
1
+ import { TFunction } from './i18n';
2
2
 
3
3
  type Params = {
4
4
  from?: Date;
@@ -20,6 +20,7 @@ export type Select<T, U extends T> = U;
20
20
  export type Maybe<T> = T | null | undefined;
21
21
  export type PartialReadonly<T> = T | Readonly<T>;
22
22
  export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
23
+ export type DistributiveOmit<T, U> = T extends any ? Pick<T, Exclude<keyof T, U>> : never;
23
24
  export type Jsonify<T> = IsAny<T> extends true ? any : T extends ({
24
25
  toJSON(): infer U;
25
26
  }) ? 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;
@@ -1,4 +1,7 @@
1
+ import { GeoSearchFilter } from '../components/geo-search';
1
2
  import { FilterProperty } from '..';
2
3
 
3
4
  /** Reads from search params provided and adds to list of filters. */
4
5
  export declare const getStatefulPropertiesFromSearchParams: (properties: FilterProperty[], searchParams: URLSearchParams) => FilterProperty[];
6
+ export declare const getGeolocationFromSearchParams: (searchParams: URLSearchParams) => GeoSearchFilter;
7
+ export declare const useDebouncedValue: <T>(value: T, timeout?: number) => T;