@abcagency/hc-ui-components 1.3.57 → 1.3.59

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 (158) hide show
  1. package/dist/apis/hcApi.js +85 -85
  2. package/dist/apis/hcApi.js.map +1 -1
  3. package/dist/clientToken.js.map +1 -1
  4. package/dist/components/containers/accordions/filter-container.js.map +1 -1
  5. package/dist/components/containers/accordions/filter-item-container.js +4 -2
  6. package/dist/components/containers/accordions/filter-item-container.js.map +1 -1
  7. package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
  8. package/dist/components/containers/filter/filter-item-container.js +4 -2
  9. package/dist/components/containers/filter/filter-item-container.js.map +1 -1
  10. package/dist/components/containers/jobListing/listing-details-container.js.map +1 -1
  11. package/dist/components/containers/list/item-list-container.js +21 -21
  12. package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
  13. package/dist/components/containers/maps/map-container.js.map +1 -1
  14. package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
  15. package/dist/components/modules/accordions/default.js.map +1 -1
  16. package/dist/components/modules/buttons/commute-pill.js.map +1 -1
  17. package/dist/components/modules/buttons/default.js.map +1 -1
  18. package/dist/components/modules/buttons/items-pill.js.map +1 -1
  19. package/dist/components/modules/buttons/pill-wrapper.js.map +1 -1
  20. package/dist/components/modules/buttons/show-all-button.js.map +1 -1
  21. package/dist/components/modules/cards/default.js.map +1 -1
  22. package/dist/components/modules/cards/filter.js.map +1 -1
  23. package/dist/components/modules/filter/item.js.map +1 -1
  24. package/dist/components/modules/filter/sort.js.map +1 -1
  25. package/dist/components/modules/grid.js.map +1 -1
  26. package/dist/components/modules/icon.js.map +1 -1
  27. package/dist/components/modules/list/header.js.map +1 -1
  28. package/dist/components/modules/list/item-list.js +40 -40
  29. package/dist/components/modules/maps/info-window-card.js.map +1 -1
  30. package/dist/components/modules/maps/map.js.map +1 -1
  31. package/dist/components/modules/maps/place-marker.js.map +1 -1
  32. package/dist/components/modules/maps/tabs.js.map +1 -1
  33. package/dist/constants/placeTypes.js.map +1 -1
  34. package/dist/contexts/mapContext.js +83 -83
  35. package/dist/contexts/mapListContext.js +190 -190
  36. package/dist/contexts/trackEventContext.js.map +1 -1
  37. package/dist/hooks/useList.js.map +1 -1
  38. package/dist/services/configService.js +9 -9
  39. package/dist/services/googlePlacesNearbyService.js +32 -32
  40. package/dist/services/googlePlacesNearbyService.js.map +1 -1
  41. package/dist/services/listingAggregatorService.js +34 -34
  42. package/dist/services/listingAggregatorService.js.map +1 -1
  43. package/dist/services/listingEntityService.js +9 -9
  44. package/dist/services/listingService.js +24 -24
  45. package/dist/services/recruiterService.js +10 -10
  46. package/dist/types/apis/hcApi.d.ts +5 -5
  47. package/dist/types/clientToken.d.ts +2 -2
  48. package/dist/types/components/containers/accordions/map-accordion-item-container.d.ts +12 -12
  49. package/dist/types/components/containers/jobListing/listing-details-container.d.ts +6 -6
  50. package/dist/types/components/containers/list/item-list-container.d.ts +9 -9
  51. package/dist/types/components/containers/list/list-item/list-item-container.d.ts +14 -14
  52. package/dist/types/components/modules/accordions/MapAccordionItem.d.ts +10 -10
  53. package/dist/types/components/modules/accordions/default.d.ts +19 -19
  54. package/dist/types/components/modules/buttons/button-group-apply.d.ts +24 -24
  55. package/dist/types/components/modules/buttons/commute-pill.d.ts +5 -5
  56. package/dist/types/components/modules/buttons/default.d.ts +48 -48
  57. package/dist/types/components/modules/buttons/pill-wrapper.d.ts +3 -3
  58. package/dist/types/components/modules/dialogs/apply-dialog.d.ts +8 -8
  59. package/dist/types/components/modules/filter/sort.d.ts +8 -8
  60. package/dist/types/components/modules/grid.d.ts +8 -8
  61. package/dist/types/components/modules/icon.d.ts +10 -10
  62. package/dist/types/components/modules/jobListing/listing-details.d.ts +18 -18
  63. package/dist/types/components/modules/list/field-mapper.d.ts +10 -10
  64. package/dist/types/components/modules/list/header-item.d.ts +11 -11
  65. package/dist/types/components/modules/list/header.d.ts +12 -12
  66. package/dist/types/components/modules/list/item-expand-card/index.d.ts +7 -7
  67. package/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +17 -17
  68. package/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +21 -21
  69. package/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +8 -8
  70. package/dist/types/components/modules/list/item-list.d.ts +20 -20
  71. package/dist/types/components/modules/list/list-item/list-item.d.ts +3 -3
  72. package/dist/types/constants/eventTypes.d.ts +14 -14
  73. package/dist/types/contexts/mapContext.d.ts +29 -29
  74. package/dist/types/contexts/mapListContext.d.ts +61 -61
  75. package/dist/types/contexts/trackEventContext.d.ts +6 -6
  76. package/dist/types/enums/SectionType.d.ts +9 -9
  77. package/dist/types/hooks/useList.d.ts +13 -13
  78. package/dist/types/services/configService.d.ts +6 -6
  79. package/dist/types/services/googlePlacesNearbyService.d.ts +5 -5
  80. package/dist/types/services/listingAggregatorService.d.ts +12 -12
  81. package/dist/types/services/listingEntityService.d.ts +6 -6
  82. package/dist/types/services/listingService.d.ts +9 -9
  83. package/dist/types/services/recruiterService.d.ts +6 -6
  84. package/dist/types/types/Address.d.ts +7 -7
  85. package/dist/types/types/ContentSection.d.ts +8 -8
  86. package/dist/types/types/GetListingParams.d.ts +8 -8
  87. package/dist/types/types/LatLng.d.ts +4 -4
  88. package/dist/types/types/ListingEntity.d.ts +10 -10
  89. package/dist/types/types/ListingFields.d.ts +25 -25
  90. package/dist/types/types/Listings.d.ts +31 -31
  91. package/dist/types/types/Recruiter.d.ts +9 -9
  92. package/dist/types/types/SimilarListing.d.ts +24 -24
  93. package/dist/types/types/config/Colors.d.ts +8 -8
  94. package/dist/types/types/config/MapConfig.d.ts +30 -30
  95. package/dist/types/types/config/PointsOfInterestConfig.d.ts +13 -13
  96. package/dist/types/types/config/SearchConfig.d.ts +4 -4
  97. package/dist/types/util/filterUtil.d.ts +28 -28
  98. package/dist/types/util/loading.d.ts +3 -3
  99. package/dist/types/util/localStorageUtil.d.ts +3 -3
  100. package/dist/types/util/mapUtil.d.ts +16 -16
  101. package/dist/types/util/sortUtil.d.ts +1 -1
  102. package/dist/types/util/stringUtils.d.ts +1 -1
  103. package/dist/types/util/urlFilterUtil.d.ts +8 -8
  104. package/dist/util/filterUtil.js +2 -2
  105. package/dist/util/filterUtil.js.map +1 -1
  106. package/dist/util/loading.js.map +1 -1
  107. package/dist/util/localStorageUtil.js +37 -37
  108. package/dist/util/localStorageUtil.js.map +1 -1
  109. package/dist/util/sortUtil.js.map +1 -1
  110. package/dist/util/stringUtils.js.map +1 -1
  111. package/dist/util/urlFilterUtil.js.map +1 -1
  112. package/package.json +1 -1
  113. package/src/apis/hcApi.ts +109 -109
  114. package/src/clientToken.js +9 -9
  115. package/src/components/containers/accordions/filter-container.js +48 -48
  116. package/src/components/containers/accordions/filter-item-container.js +2 -0
  117. package/src/components/containers/accordions/map-accordion-item-container.js +70 -70
  118. package/src/components/containers/filter/filter-item-container.js +2 -1
  119. package/src/components/containers/jobListing/listing-details-container.js +40 -40
  120. package/src/components/containers/list/list-item/list-item-container.js +43 -43
  121. package/src/components/containers/maps/map-container.js +249 -249
  122. package/src/components/modules/accordions/MapAccordionItem.js +30 -30
  123. package/src/components/modules/accordions/default.js +171 -171
  124. package/src/components/modules/buttons/commute-pill.js +22 -22
  125. package/src/components/modules/buttons/default.js +194 -194
  126. package/src/components/modules/buttons/items-pill.js +35 -35
  127. package/src/components/modules/buttons/pill-wrapper.js +27 -27
  128. package/src/components/modules/buttons/show-all-button.js +19 -19
  129. package/src/components/modules/cards/default.js +167 -167
  130. package/src/components/modules/cards/filter.js +56 -56
  131. package/src/components/modules/filter/item.js +69 -69
  132. package/src/components/modules/filter/sort.js +83 -83
  133. package/src/components/modules/grid.js +54 -54
  134. package/src/components/modules/icon.js +33 -33
  135. package/src/components/modules/list/header.js +51 -51
  136. package/src/components/modules/list/item-expand-card/recruiter-contact-nav.js +50 -50
  137. package/src/components/modules/list/item-expand-card/recruiter-details.js +68 -68
  138. package/src/components/modules/list/item-expand-card/recruiter-headshot.js +22 -22
  139. package/src/components/modules/maps/info-window-card.js +17 -17
  140. package/src/components/modules/maps/map.js +64 -64
  141. package/src/components/modules/maps/place-marker.js +41 -41
  142. package/src/components/modules/maps/tabs.js +81 -81
  143. package/src/constants/placeTypes.js +8 -8
  144. package/src/contexts/trackEventContext.js +14 -14
  145. package/src/enums/SectionType.ts +9 -9
  146. package/src/hooks/useList.js +89 -89
  147. package/src/index.js +3 -3
  148. package/src/services/googlePlacesNearbyService.ts +42 -42
  149. package/src/services/listingAggregatorService.ts +76 -76
  150. package/src/util/arrayUtil.js +3 -3
  151. package/src/util/fieldMapper.js +22 -22
  152. package/src/util/filterUtil.js +311 -310
  153. package/src/util/loading.js +17 -17
  154. package/src/util/localStorageUtil.ts +34 -34
  155. package/src/util/sortUtil.js +32 -32
  156. package/src/util/stringUtils.js +6 -6
  157. package/src/util/urlFilterUtil.js +85 -85
  158. package/dist/types/contexts/themeContext.d.ts +0 -11
@@ -1,8 +1,8 @@
1
- export default FilterSort;
2
- declare function FilterSort({ className, fields, setSortSetting, fieldNames }: {
3
- className: any;
4
- fields: any;
5
- setSortSetting: any;
6
- fieldNames: any;
7
- }): React.JSX.Element;
8
- import React from "react";
1
+ export default FilterSort;
2
+ declare function FilterSort({ className, fields, setSortSetting, fieldNames }: {
3
+ className: any;
4
+ fields: any;
5
+ setSortSetting: any;
6
+ fieldNames: any;
7
+ }): React.JSX.Element;
8
+ import React from "react";
@@ -1,8 +1,8 @@
1
- export function GridItem({ as, children, className }: {
2
- as?: string | undefined;
3
- children: any;
4
- className: any;
5
- }): React.JSX.Element;
6
- export default Grid;
7
- import React from "react";
8
- declare const Grid: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
1
+ export function GridItem({ as, children, className }: {
2
+ as?: string | undefined;
3
+ children: any;
4
+ className: any;
5
+ }): React.JSX.Element;
6
+ export default Grid;
7
+ import React from "react";
8
+ declare const Grid: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
@@ -1,10 +1,10 @@
1
- export default IconContained;
2
- declare function IconContained({ className, size, icon, iconClasses, title, ...iconProps }: {
3
- [x: string]: any;
4
- className: any;
5
- size: any;
6
- icon: any;
7
- iconClasses: any;
8
- title: any;
9
- }): React.JSX.Element;
10
- import React from "react";
1
+ export default IconContained;
2
+ declare function IconContained({ className, size, icon, iconClasses, title, ...iconProps }: {
3
+ [x: string]: any;
4
+ className: any;
5
+ size: any;
6
+ icon: any;
7
+ iconClasses: any;
8
+ title: any;
9
+ }): React.JSX.Element;
10
+ import React from "react";
@@ -1,18 +1,18 @@
1
- export default ListingDetails;
2
- declare function ListingDetails({ item, recruiter, travelTime, useDetailsPostMessage, navigateToDetails, navigateToEasyApply, Link, linkFormat, useApplyDialog, internalApplyLink, companyName, jobsDomain, trackEvent, eventTypes }: {
3
- item: any;
4
- recruiter: any;
5
- travelTime: any;
6
- useDetailsPostMessage: any;
7
- navigateToDetails: any;
8
- navigateToEasyApply: any;
9
- Link: any;
10
- linkFormat: any;
11
- useApplyDialog: any;
12
- internalApplyLink: any;
13
- companyName: any;
14
- jobsDomain: any;
15
- trackEvent: any;
16
- eventTypes: any;
17
- }): React.JSX.Element | null;
18
- import React from "react";
1
+ export default ListingDetails;
2
+ declare function ListingDetails({ item, recruiter, travelTime, useDetailsPostMessage, navigateToDetails, navigateToEasyApply, Link, linkFormat, useApplyDialog, internalApplyLink, companyName, jobsDomain, trackEvent, eventTypes }: {
3
+ item: any;
4
+ recruiter: any;
5
+ travelTime: any;
6
+ useDetailsPostMessage: any;
7
+ navigateToDetails: any;
8
+ navigateToEasyApply: any;
9
+ Link: any;
10
+ linkFormat: any;
11
+ useApplyDialog: any;
12
+ internalApplyLink: any;
13
+ companyName: any;
14
+ jobsDomain: any;
15
+ trackEvent: any;
16
+ eventTypes: any;
17
+ }): React.JSX.Element | null;
18
+ import React from "react";
@@ -1,10 +1,10 @@
1
- export default FieldMapper;
2
- declare function FieldMapper({ item, fieldsShown, specialFeatures, handleFavouriteClick, isFavorite, includeFavorite }: {
3
- item: any;
4
- fieldsShown: any;
5
- specialFeatures: any;
6
- handleFavouriteClick: any;
7
- isFavorite: any;
8
- includeFavorite?: boolean | undefined;
9
- }): React.JSX.Element;
10
- import React from "react";
1
+ export default FieldMapper;
2
+ declare function FieldMapper({ item, fieldsShown, specialFeatures, handleFavouriteClick, isFavorite, includeFavorite }: {
3
+ item: any;
4
+ fieldsShown: any;
5
+ specialFeatures: any;
6
+ handleFavouriteClick: any;
7
+ isFavorite: any;
8
+ includeFavorite?: boolean | undefined;
9
+ }): React.JSX.Element;
10
+ import React from "react";
@@ -1,11 +1,11 @@
1
- export default HeaderItem;
2
- declare function HeaderItem({ className, children, field, setSortSetting, sortSetting, isSortable, ...rest }: {
3
- [x: string]: any;
4
- className: any;
5
- children: any;
6
- field: any;
7
- setSortSetting: any;
8
- sortSetting: any;
9
- isSortable: any;
10
- }): React.JSX.Element;
11
- import React from "react";
1
+ export default HeaderItem;
2
+ declare function HeaderItem({ className, children, field, setSortSetting, sortSetting, isSortable, ...rest }: {
3
+ [x: string]: any;
4
+ className: any;
5
+ children: any;
6
+ field: any;
7
+ setSortSetting: any;
8
+ sortSetting: any;
9
+ isSortable: any;
10
+ }): React.JSX.Element;
11
+ import React from "react";
@@ -1,12 +1,12 @@
1
- export default ListHeader;
2
- declare function ListHeader({ className, fieldsShown, fieldNames, fieldIsSortable, setSortSetting, sortSetting, includeFavorite, scrollbarWidth }: {
3
- className: any;
4
- fieldsShown: any;
5
- fieldNames: any;
6
- fieldIsSortable?: boolean | undefined;
7
- setSortSetting: any;
8
- sortSetting: any;
9
- includeFavorite?: boolean | undefined;
10
- scrollbarWidth: any;
11
- }): React.JSX.Element;
12
- import React from "react";
1
+ export default ListHeader;
2
+ declare function ListHeader({ className, fieldsShown, fieldNames, fieldIsSortable, setSortSetting, sortSetting, includeFavorite, scrollbarWidth }: {
3
+ className: any;
4
+ fieldsShown: any;
5
+ fieldNames: any;
6
+ fieldIsSortable?: boolean | undefined;
7
+ setSortSetting: any;
8
+ sortSetting: any;
9
+ includeFavorite?: boolean | undefined;
10
+ scrollbarWidth: any;
11
+ }): React.JSX.Element;
12
+ import React from "react";
@@ -1,7 +1,7 @@
1
- export default CardItemExpand;
2
- declare function CardItemExpand({ className, content, ...props }: {
3
- [x: string]: any;
4
- className: any;
5
- content: any;
6
- }): React.JSX.Element;
7
- import React from "react";
1
+ export default CardItemExpand;
2
+ declare function CardItemExpand({ className, content, ...props }: {
3
+ [x: string]: any;
4
+ className: any;
5
+ content: any;
6
+ }): React.JSX.Element;
7
+ import React from "react";
@@ -1,17 +1,17 @@
1
- export function NavButton({ className, href, target, title, icon, ...props }: {
2
- [x: string]: any;
3
- className: any;
4
- href: any;
5
- target?: string | undefined;
6
- title: any;
7
- icon: any;
8
- }): React.JSX.Element;
9
- export default RecruiterContactNav;
10
- import React from "react";
11
- declare function RecruiterContactNav({ children, className }: {
12
- children: any;
13
- className: any;
14
- }): React.JSX.Element;
15
- declare namespace RecruiterContactNav {
16
- export { NavButton as Button };
17
- }
1
+ export function NavButton({ className, href, target, title, icon, ...props }: {
2
+ [x: string]: any;
3
+ className: any;
4
+ href: any;
5
+ target?: string | undefined;
6
+ title: any;
7
+ icon: any;
8
+ }): React.JSX.Element;
9
+ export default RecruiterContactNav;
10
+ import React from "react";
11
+ declare function RecruiterContactNav({ children, className }: {
12
+ children: any;
13
+ className: any;
14
+ }): React.JSX.Element;
15
+ declare namespace RecruiterContactNav {
16
+ export { NavButton as Button };
17
+ }
@@ -1,21 +1,21 @@
1
- export function Title({ as, className, children }: {
2
- as?: string | undefined;
3
- className: any;
4
- children: any;
5
- }): React.JSX.Element;
6
- export function Text({ as, className, children }: {
7
- as?: string | undefined;
8
- className: any;
9
- children: any;
10
- }): React.JSX.Element;
11
- export default RecruiterDetails;
12
- import React from "react";
13
- declare function RecruiterDetails({ contactNav, className, children }: {
14
- contactNav: any;
15
- className: any;
16
- children: any;
17
- }): React.JSX.Element;
18
- declare namespace RecruiterDetails {
19
- export { Title };
20
- export { Text };
21
- }
1
+ export function Title({ as, className, children }: {
2
+ as?: string | undefined;
3
+ className: any;
4
+ children: any;
5
+ }): React.JSX.Element;
6
+ export function Text({ as, className, children }: {
7
+ as?: string | undefined;
8
+ className: any;
9
+ children: any;
10
+ }): React.JSX.Element;
11
+ export default RecruiterDetails;
12
+ import React from "react";
13
+ declare function RecruiterDetails({ contactNav, className, children }: {
14
+ contactNav: any;
15
+ className: any;
16
+ children: any;
17
+ }): React.JSX.Element;
18
+ declare namespace RecruiterDetails {
19
+ export { Title };
20
+ export { Text };
21
+ }
@@ -1,8 +1,8 @@
1
- export default RecruiterHeadshot;
2
- declare function RecruiterHeadshot({ image, alt, className, imageClassName }: {
3
- image: any;
4
- alt: any;
5
- className: any;
6
- imageClassName: any;
7
- }): React.JSX.Element;
8
- import React from "react";
1
+ export default RecruiterHeadshot;
2
+ declare function RecruiterHeadshot({ image, alt, className, imageClassName }: {
3
+ image: any;
4
+ alt: any;
5
+ className: any;
6
+ imageClassName: any;
7
+ }): React.JSX.Element;
8
+ import React from "react";
@@ -1,20 +1,20 @@
1
- import React, { RefObject, ReactNode } from 'react';
2
- import { Listing } from '~/types/Listings';
3
- interface ItemsListProps {
4
- fieldNames: Record<string, string>;
5
- showMap: boolean;
6
- fieldsShown: string[];
7
- filteredListings: Listing[];
8
- loading: boolean;
9
- sortSetting: any;
10
- setSortSetting: (setting: any) => void;
11
- itemLimit: number;
12
- loader: RefObject<HTMLDivElement>;
13
- scrollContainerRef: RefObject<HTMLDivElement>;
14
- itemRefs: any;
15
- selectedListItem: Listing | null;
16
- children: ReactNode;
17
- includeFavorite: boolean;
18
- }
19
- declare const ItemsList: React.FC<ItemsListProps>;
20
- export default ItemsList;
1
+ import React, { RefObject, ReactNode } from 'react';
2
+ import { Listing } from '~/types/Listings';
3
+ interface ItemsListProps {
4
+ fieldNames: Record<string, string>;
5
+ showMap: boolean;
6
+ fieldsShown: string[];
7
+ filteredListings: Listing[];
8
+ loading: boolean;
9
+ sortSetting: any;
10
+ setSortSetting: (setting: any) => void;
11
+ itemLimit: number;
12
+ loader: RefObject<HTMLDivElement>;
13
+ scrollContainerRef: RefObject<HTMLDivElement>;
14
+ itemRefs: any;
15
+ selectedListItem: Listing | null;
16
+ children: ReactNode;
17
+ includeFavorite: boolean;
18
+ }
19
+ declare const ItemsList: React.FC<ItemsListProps>;
20
+ export default ItemsList;
@@ -1,3 +1,3 @@
1
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<React.RefAttributes<any>>>;
2
- export default _default;
3
- import React from "react";
1
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<React.RefAttributes<any>>>;
2
+ export default _default;
3
+ import React from "react";
@@ -1,14 +1,14 @@
1
- export namespace eventTypes {
2
- const FILTER_APPLIED: string;
3
- const MAP_MARKER_CLICKED: string;
4
- const JOB_LISTING_SELECTED: string;
5
- const APPLY_NOW_CLICKED: string;
6
- const VIEW_DETAILS_CLICKED: string;
7
- const COMMUTE_ORIGIN_ADDED: string;
8
- const POI_APPLIED: string;
9
- const VIEW_JOBS_AT_Location: string;
10
- const FAVORITE_SELECTED: string;
11
- const LIST_SORTED: string;
12
- const FILTERS_RESET: string;
13
- const EXTERNAL_LINK_CLICKED: string;
14
- }
1
+ export namespace eventTypes {
2
+ const FILTER_APPLIED: string;
3
+ const MAP_MARKER_CLICKED: string;
4
+ const JOB_LISTING_SELECTED: string;
5
+ const APPLY_NOW_CLICKED: string;
6
+ const VIEW_DETAILS_CLICKED: string;
7
+ const COMMUTE_ORIGIN_ADDED: string;
8
+ const POI_APPLIED: string;
9
+ const VIEW_JOBS_AT_Location: string;
10
+ const FAVORITE_SELECTED: string;
11
+ const LIST_SORTED: string;
12
+ const FILTERS_RESET: string;
13
+ const EXTERNAL_LINK_CLICKED: string;
14
+ }
@@ -1,29 +1,29 @@
1
- import React, { ReactNode } from 'react';
2
- import { Listing } from '~/types/Listings';
3
- import { LatLng } from '~/types/LatLng';
4
- interface IMapContext {
5
- selectedListItem: Listing | null;
6
- setSelectedListItem: (item: Listing | null) => void;
7
- location: any | null;
8
- setLocation: (location: LatLng | null) => void;
9
- center: LatLng;
10
- setCenter: (center: LatLng) => void;
11
- zoom: number;
12
- setZoom: (zoom: number) => void;
13
- selectedPlaces: string[];
14
- setSelectedPlaces: (places: string[]) => void;
15
- mapInteracted: boolean;
16
- setMapInteracted: (interacted: boolean) => void;
17
- userSetZoom: React.MutableRefObject<boolean>;
18
- firstLoadListItem: any;
19
- selectItem: (item: Listing, itemLocation: LatLng | null, zoom: number, center: LatLng) => void;
20
- filterReset: () => void;
21
- selectLocationEntity: (location: LatLng) => void;
22
- }
23
- export declare const useMap: () => IMapContext;
24
- interface MapProviderProps {
25
- children: ReactNode;
26
- resetFilters: boolean;
27
- }
28
- export declare const MapProvider: React.FC<MapProviderProps>;
29
- export {};
1
+ import React, { ReactNode } from 'react';
2
+ import { Listing } from '~/types/Listings';
3
+ import { LatLng } from '~/types/LatLng';
4
+ interface IMapContext {
5
+ selectedListItem: Listing | null;
6
+ setSelectedListItem: (item: Listing | null) => void;
7
+ location: any | null;
8
+ setLocation: (location: LatLng | null) => void;
9
+ center: LatLng;
10
+ setCenter: (center: LatLng) => void;
11
+ zoom: number;
12
+ setZoom: (zoom: number) => void;
13
+ selectedPlaces: string[];
14
+ setSelectedPlaces: (places: string[]) => void;
15
+ mapInteracted: boolean;
16
+ setMapInteracted: (interacted: boolean) => void;
17
+ userSetZoom: React.MutableRefObject<boolean>;
18
+ firstLoadListItem: any;
19
+ selectItem: (item: Listing, itemLocation: LatLng | null, zoom: number, center: LatLng) => void;
20
+ filterReset: () => void;
21
+ selectLocationEntity: (location: LatLng) => void;
22
+ }
23
+ export declare const useMap: () => IMapContext;
24
+ interface MapProviderProps {
25
+ children: ReactNode;
26
+ resetFilters: boolean;
27
+ }
28
+ export declare const MapProvider: React.FC<MapProviderProps>;
29
+ export {};
@@ -1,61 +1,61 @@
1
- import React, { ReactNode } from 'react';
2
- import { Listing } from '~/types/Listings';
3
- import { ListingEntity } from '~/types/ListingEntity';
4
- import { Recruiter } from '~/types/Recruiter';
5
- import { MapConfig, MapConfig as SiteConfig } from '~/types/config/MapConfig';
6
- interface MapListContextProps {
7
- loading: boolean;
8
- allListings: Listing[];
9
- filteredListings: Listing[];
10
- mapItems: any;
11
- query: string | null;
12
- setNewFilteredListings: (filteredListings: Listing[]) => void;
13
- setQuery: (query: string | null) => void;
14
- listingEntities: Record<number, ListingEntity> | null;
15
- selectedFilters: Record<string, any>;
16
- setSelectedFilters: (filters: Record<string, any>) => void;
17
- filterOptions: any;
18
- recruiters: Record<number, Recruiter>;
19
- handleFilterListingsByLocation: (selectedLocation: any) => void;
20
- filterDialogIsOpen: boolean;
21
- setFilterDialogIsOpen: (isOpen: boolean) => void;
22
- setMobileTab: (tab: string) => void;
23
- mobileTab: string;
24
- siteConfig: SiteConfig;
25
- favorites: number[];
26
- resetEntityFilter: () => void;
27
- handleSettingFavorites: (favorites: number[] | null) => void;
28
- setFilterByFavorites: (filter: boolean) => void;
29
- filterByFavorites: boolean;
30
- commuteLocation: any | null;
31
- setCommuteLocation: (location: any | null) => void;
32
- navigateToDetails: (id: number) => void;
33
- navigateToEasyApply: (id: number) => void;
34
- Link: React.ComponentType<any>;
35
- linkFormat: string;
36
- sortSetting: {
37
- field: string;
38
- type: string;
39
- };
40
- setSortSetting: (setting: {
41
- field: string;
42
- type: string;
43
- }) => void;
44
- trackEvent: (event: string) => void;
45
- }
46
- export declare const useMapList: () => MapListContextProps;
47
- interface MapListProviderProps {
48
- children: ReactNode;
49
- siteConfig: MapConfig;
50
- resetFilters: boolean;
51
- navigateToDetails: (id: number) => void;
52
- navigateToEasyApply: (id: number) => void;
53
- Link: React.ComponentType<any>;
54
- linkFormat: string;
55
- trackEvent: (event: string) => void;
56
- listings?: Listing[];
57
- setFiltersUrl?: boolean;
58
- handleUrlUpdate: (searchParams: string) => void;
59
- }
60
- export declare const MapListProvider: React.FC<MapListProviderProps>;
61
- export {};
1
+ import React, { ReactNode } from 'react';
2
+ import { Listing } from '~/types/Listings';
3
+ import { ListingEntity } from '~/types/ListingEntity';
4
+ import { Recruiter } from '~/types/Recruiter';
5
+ import { MapConfig, MapConfig as SiteConfig } from '~/types/config/MapConfig';
6
+ interface MapListContextProps {
7
+ loading: boolean;
8
+ allListings: Listing[];
9
+ filteredListings: Listing[];
10
+ mapItems: any;
11
+ query: string | null;
12
+ setNewFilteredListings: (filteredListings: Listing[]) => void;
13
+ setQuery: (query: string | null) => void;
14
+ listingEntities: Record<number, ListingEntity> | null;
15
+ selectedFilters: Record<string, any>;
16
+ setSelectedFilters: (filters: Record<string, any>) => void;
17
+ filterOptions: any;
18
+ recruiters: Record<number, Recruiter>;
19
+ handleFilterListingsByLocation: (selectedLocation: any) => void;
20
+ filterDialogIsOpen: boolean;
21
+ setFilterDialogIsOpen: (isOpen: boolean) => void;
22
+ setMobileTab: (tab: string) => void;
23
+ mobileTab: string;
24
+ siteConfig: SiteConfig;
25
+ favorites: number[];
26
+ resetEntityFilter: () => void;
27
+ handleSettingFavorites: (favorites: number[] | null) => void;
28
+ setFilterByFavorites: (filter: boolean) => void;
29
+ filterByFavorites: boolean;
30
+ commuteLocation: any | null;
31
+ setCommuteLocation: (location: any | null) => void;
32
+ navigateToDetails: (id: number) => void;
33
+ navigateToEasyApply: (id: number) => void;
34
+ Link: React.ComponentType<any>;
35
+ linkFormat: string;
36
+ sortSetting: {
37
+ field: string;
38
+ type: string;
39
+ };
40
+ setSortSetting: (setting: {
41
+ field: string;
42
+ type: string;
43
+ }) => void;
44
+ trackEvent: (event: string) => void;
45
+ }
46
+ export declare const useMapList: () => MapListContextProps;
47
+ interface MapListProviderProps {
48
+ children: ReactNode;
49
+ siteConfig: MapConfig;
50
+ resetFilters: boolean;
51
+ navigateToDetails: (id: number) => void;
52
+ navigateToEasyApply: (id: number) => void;
53
+ Link: React.ComponentType<any>;
54
+ linkFormat: string;
55
+ trackEvent: (event: string) => void;
56
+ listings?: Listing[];
57
+ setFiltersUrl?: boolean;
58
+ handleUrlUpdate: (searchParams: string) => void;
59
+ }
60
+ export declare const MapListProvider: React.FC<MapListProviderProps>;
61
+ export {};
@@ -1,6 +1,6 @@
1
- export function useTrackEvent(): any;
2
- export function TrackEventProvider({ children, trackEvent }: {
3
- children: any;
4
- trackEvent: any;
5
- }): React.JSX.Element;
6
- import React from "react";
1
+ export function useTrackEvent(): any;
2
+ export function TrackEventProvider({ children, trackEvent }: {
3
+ children: any;
4
+ trackEvent: any;
5
+ }): React.JSX.Element;
6
+ import React from "react";
@@ -1,9 +1,9 @@
1
- export declare enum SectionType {
2
- Default = -1,
3
- Company = 1,
4
- Category = 2,
5
- CategoryClass = 3,
6
- Entity = 4,
7
- CustomVar = 5,
8
- REGION = 7
9
- }
1
+ export declare enum SectionType {
2
+ Default = -1,
3
+ Company = 1,
4
+ Category = 2,
5
+ CategoryClass = 3,
6
+ Entity = 4,
7
+ CustomVar = 5,
8
+ REGION = 7
9
+ }
@@ -1,13 +1,13 @@
1
- export default useListLogic;
2
- declare function useListLogic(filteredListings: any): {
3
- itemLimit: number;
4
- expandedId: any;
5
- sortSetting: null;
6
- scrollPosition: number | null;
7
- loader: import("react").MutableRefObject<null>;
8
- scrollContainerRef: import("react").MutableRefObject<null>;
9
- itemRefs: import("react").MutableRefObject<{}>;
10
- setSortSetting: import("react").Dispatch<import("react").SetStateAction<null>>;
11
- setScrollPosition: import("react").Dispatch<import("react").SetStateAction<number | null>>;
12
- filteredListings: any;
13
- };
1
+ export default useListLogic;
2
+ declare function useListLogic(filteredListings: any): {
3
+ itemLimit: number;
4
+ expandedId: any;
5
+ sortSetting: null;
6
+ scrollPosition: number | null;
7
+ loader: import("react").MutableRefObject<null>;
8
+ scrollContainerRef: import("react").MutableRefObject<null>;
9
+ itemRefs: import("react").MutableRefObject<{}>;
10
+ setSortSetting: import("react").Dispatch<import("react").SetStateAction<null>>;
11
+ setScrollPosition: import("react").Dispatch<import("react").SetStateAction<number | null>>;
12
+ filteredListings: any;
13
+ };
@@ -1,6 +1,6 @@
1
- import { MapConfig } from '~/types/config/MapConfig';
2
- export declare const getMapConfig: () => Promise<MapConfig>;
3
- declare const _default: {
4
- getMapConfig: () => Promise<MapConfig>;
5
- };
6
- export default _default;
1
+ import { MapConfig } from '~/types/config/MapConfig';
2
+ export declare const getMapConfig: () => Promise<MapConfig>;
3
+ declare const _default: {
4
+ getMapConfig: () => Promise<MapConfig>;
5
+ };
6
+ export default _default;
@@ -1,5 +1,5 @@
1
- export interface Location {
2
- latitude: number;
3
- longitude: number;
4
- }
5
- export declare const searchNearbyPlaces: (typesArray: string[], location: Location, radius: number) => Promise<any>;
1
+ export interface Location {
2
+ latitude: number;
3
+ longitude: number;
4
+ }
5
+ export declare const searchNearbyPlaces: (typesArray: string[], location: Location, radius: number) => Promise<any>;