@abcagency/hc-ui-components 1.3.22 → 1.3.23

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 (174) hide show
  1. package/package.json +4 -1
  2. package/.env +0 -3
  3. package/.eslintrc +0 -136
  4. package/bundleDist/bundle.js +0 -28145
  5. package/bundleDist/bundle.js.map +0 -1
  6. package/bundleDist/dist/styles/index.css +0 -3
  7. package/bundleDist/dist/types/apis/hcApi.d.ts +0 -5
  8. package/bundleDist/dist/types/clientToken.d.ts +0 -2
  9. package/bundleDist/dist/types/components/containers/accordions/map-accordion-item-container.d.ts +0 -12
  10. package/bundleDist/dist/types/components/containers/jobListing/listing-details-container.d.ts +0 -6
  11. package/bundleDist/dist/types/components/containers/list/item-list-container.d.ts +0 -9
  12. package/bundleDist/dist/types/components/containers/list/list-item/list-item-container.d.ts +0 -14
  13. package/bundleDist/dist/types/components/modules/accordions/MapAccordionItem.d.ts +0 -10
  14. package/bundleDist/dist/types/components/modules/accordions/default.d.ts +0 -19
  15. package/bundleDist/dist/types/components/modules/buttons/button-group-apply.d.ts +0 -24
  16. package/bundleDist/dist/types/components/modules/buttons/commute-pill.d.ts +0 -5
  17. package/bundleDist/dist/types/components/modules/buttons/default.d.ts +0 -48
  18. package/bundleDist/dist/types/components/modules/buttons/pill-wrapper.d.ts +0 -3
  19. package/bundleDist/dist/types/components/modules/dialogs/apply-dialog.d.ts +0 -8
  20. package/bundleDist/dist/types/components/modules/filter/sort.d.ts +0 -8
  21. package/bundleDist/dist/types/components/modules/grid.d.ts +0 -8
  22. package/bundleDist/dist/types/components/modules/icon.d.ts +0 -10
  23. package/bundleDist/dist/types/components/modules/jobListing/listing-details.d.ts +0 -18
  24. package/bundleDist/dist/types/components/modules/list/field-mapper.d.ts +0 -10
  25. package/bundleDist/dist/types/components/modules/list/header-item.d.ts +0 -11
  26. package/bundleDist/dist/types/components/modules/list/header.d.ts +0 -11
  27. package/bundleDist/dist/types/components/modules/list/item-expand-card/index.d.ts +0 -7
  28. package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +0 -17
  29. package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +0 -21
  30. package/bundleDist/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +0 -8
  31. package/bundleDist/dist/types/components/modules/list/item-list.d.ts +0 -20
  32. package/bundleDist/dist/types/components/modules/list/list-item/list-item.d.ts +0 -3
  33. package/bundleDist/dist/types/constants/eventTypes.d.ts +0 -13
  34. package/bundleDist/dist/types/contexts/mapContext.d.ts +0 -29
  35. package/bundleDist/dist/types/contexts/mapListContext.d.ts +0 -59
  36. package/bundleDist/dist/types/contexts/trackEventContext.d.ts +0 -6
  37. package/bundleDist/dist/types/enums/SectionType.d.ts +0 -9
  38. package/bundleDist/dist/types/hooks/useList.d.ts +0 -13
  39. package/bundleDist/dist/types/services/configService.d.ts +0 -6
  40. package/bundleDist/dist/types/services/googlePlacesNearbyService.d.ts +0 -5
  41. package/bundleDist/dist/types/services/listingAggregatorService.d.ts +0 -12
  42. package/bundleDist/dist/types/services/listingEntityService.d.ts +0 -6
  43. package/bundleDist/dist/types/services/listingService.d.ts +0 -9
  44. package/bundleDist/dist/types/services/recruiterService.d.ts +0 -6
  45. package/bundleDist/dist/types/types/Address.d.ts +0 -7
  46. package/bundleDist/dist/types/types/ContentSection.d.ts +0 -8
  47. package/bundleDist/dist/types/types/GetListingParams.d.ts +0 -8
  48. package/bundleDist/dist/types/types/LatLng.d.ts +0 -4
  49. package/bundleDist/dist/types/types/ListingEntity.d.ts +0 -10
  50. package/bundleDist/dist/types/types/ListingFields.d.ts +0 -25
  51. package/bundleDist/dist/types/types/Listings.d.ts +0 -31
  52. package/bundleDist/dist/types/types/Recruiter.d.ts +0 -9
  53. package/bundleDist/dist/types/types/SimilarListing.d.ts +0 -24
  54. package/bundleDist/dist/types/types/config/Colors.d.ts +0 -8
  55. package/bundleDist/dist/types/types/config/MapConfig.d.ts +0 -30
  56. package/bundleDist/dist/types/types/config/PointsOfInterestConfig.d.ts +0 -13
  57. package/bundleDist/dist/types/types/config/SearchConfig.d.ts +0 -4
  58. package/bundleDist/dist/types/util/filterUtil.d.ts +0 -28
  59. package/bundleDist/dist/types/util/loading.d.ts +0 -3
  60. package/bundleDist/dist/types/util/localStorageUtil.d.ts +0 -3
  61. package/bundleDist/dist/types/util/mapUtil.d.ts +0 -15
  62. package/bundleDist/dist/types/util/sortUtil.d.ts +0 -1
  63. package/bundleDist/dist/types/util/stringUtils.d.ts +0 -1
  64. package/bundleDist/dist/types/util/urlFilterUtil.d.ts +0 -8
  65. package/bundleDist/styles/index.css +0 -3
  66. package/bundleDist.map +0 -1
  67. package/jsconfig.json +0 -7
  68. package/postcss.config.js +0 -14
  69. package/preset.default.js +0 -15
  70. package/rollup.config.mjs +0 -111
  71. package/src/.editorconfig +0 -12
  72. package/src/apis/hcApi.ts +0 -109
  73. package/src/bundleIndex.js +0 -14
  74. package/src/clientToken.js +0 -9
  75. package/src/components/HireControlMap.js +0 -135
  76. package/src/components/containers/accordions/filter-container.js +0 -48
  77. package/src/components/containers/accordions/filter-item-container.js +0 -66
  78. package/src/components/containers/accordions/map-accordion-item-container.js +0 -70
  79. package/src/components/containers/filter/commute-container.js +0 -89
  80. package/src/components/containers/filter/filter-container.js +0 -76
  81. package/src/components/containers/filter/filter-item-container.js +0 -71
  82. package/src/components/containers/filter/location-container.js +0 -45
  83. package/src/components/containers/filter/points-of-interest-container.js +0 -33
  84. package/src/components/containers/filter/points-of-interest-radio-item-container.js +0 -35
  85. package/src/components/containers/filter/search-container.js +0 -50
  86. package/src/components/containers/jobListing/listing-details-container.js +0 -40
  87. package/src/components/containers/list/item-list-container.tsx +0 -81
  88. package/src/components/containers/list/list-item/list-item-container.js +0 -43
  89. package/src/components/containers/maps/info-window-content-container.js +0 -51
  90. package/src/components/containers/maps/map-container.js +0 -204
  91. package/src/components/containers/maps/map-list-container.js +0 -48
  92. package/src/components/containers/maps/map-marker-container.js +0 -78
  93. package/src/components/modules/accordions/MapAccordionItem.js +0 -30
  94. package/src/components/modules/accordions/default.js +0 -171
  95. package/src/components/modules/accordions/filterItem.js +0 -27
  96. package/src/components/modules/accordions/filters.js +0 -32
  97. package/src/components/modules/buttons/button-group-apply.js +0 -123
  98. package/src/components/modules/buttons/commute-pill.js +0 -22
  99. package/src/components/modules/buttons/default.js +0 -194
  100. package/src/components/modules/buttons/items-pill.js +0 -35
  101. package/src/components/modules/buttons/pill-wrapper.js +0 -27
  102. package/src/components/modules/buttons/show-all-button.js +0 -20
  103. package/src/components/modules/cards/default.js +0 -167
  104. package/src/components/modules/cards/filter.js +0 -56
  105. package/src/components/modules/dialogs/apply-dialog.js +0 -48
  106. package/src/components/modules/filter/commute.js +0 -108
  107. package/src/components/modules/filter/index.js +0 -55
  108. package/src/components/modules/filter/item.js +0 -48
  109. package/src/components/modules/filter/location.js +0 -48
  110. package/src/components/modules/filter/radio-item.js +0 -42
  111. package/src/components/modules/filter/search.js +0 -65
  112. package/src/components/modules/filter/sort.js +0 -83
  113. package/src/components/modules/grid.js +0 -54
  114. package/src/components/modules/icon.js +0 -33
  115. package/src/components/modules/jobListing/listing-details.js +0 -109
  116. package/src/components/modules/list/field-mapper.js +0 -114
  117. package/src/components/modules/list/header-item.js +0 -91
  118. package/src/components/modules/list/header.js +0 -49
  119. package/src/components/modules/list/item-expand-card/index.js +0 -22
  120. package/src/components/modules/list/item-expand-card/recruiter-contact-nav.js +0 -50
  121. package/src/components/modules/list/item-expand-card/recruiter-details.js +0 -68
  122. package/src/components/modules/list/item-expand-card/recruiter-headshot.js +0 -22
  123. package/src/components/modules/list/item-list.tsx +0 -84
  124. package/src/components/modules/list/list-item/list-item.js +0 -130
  125. package/src/components/modules/maps/info-window-card.js +0 -17
  126. package/src/components/modules/maps/info-window-content.js +0 -35
  127. package/src/components/modules/maps/map-list.js +0 -28
  128. package/src/components/modules/maps/map-marker.js +0 -29
  129. package/src/components/modules/maps/map.js +0 -76
  130. package/src/components/modules/maps/place-marker.js +0 -41
  131. package/src/components/modules/maps/tabs.js +0 -81
  132. package/src/constants/eventTypes.js +0 -13
  133. package/src/constants/placeTypes.js +0 -8
  134. package/src/contexts/mapContext.tsx +0 -129
  135. package/src/contexts/mapListContext.tsx +0 -311
  136. package/src/contexts/placesContext.js +0 -102
  137. package/src/contexts/trackEventContext.js +0 -14
  138. package/src/enums/SectionType.ts +0 -9
  139. package/src/hooks/useList.js +0 -89
  140. package/src/index.js +0 -3
  141. package/src/services/configService.ts +0 -16
  142. package/src/services/googlePlacesNearbyService.ts +0 -42
  143. package/src/services/listingAggregatorService.ts +0 -76
  144. package/src/services/listingEntityService.ts +0 -16
  145. package/src/services/listingService.ts +0 -40
  146. package/src/services/recruiterService.ts +0 -18
  147. package/src/styles/bundle.css +0 -268
  148. package/src/styles/index.css +0 -24
  149. package/src/types/Address.ts +0 -7
  150. package/src/types/ContentSection.ts +0 -9
  151. package/src/types/GetListingParams.ts +0 -8
  152. package/src/types/LatLng.ts +0 -4
  153. package/src/types/ListingEntity.ts +0 -11
  154. package/src/types/ListingFields.ts +0 -25
  155. package/src/types/Listings.ts +0 -32
  156. package/src/types/Recruiter.ts +0 -9
  157. package/src/types/SimilarListing.ts +0 -24
  158. package/src/types/config/Colors.ts +0 -8
  159. package/src/types/config/MapConfig.ts +0 -31
  160. package/src/types/config/PointsOfInterestConfig.ts +0 -13
  161. package/src/types/config/SearchConfig.ts +0 -4
  162. package/src/util/arrayUtil.js +0 -3
  163. package/src/util/fieldMapper.js +0 -22
  164. package/src/util/filterUtil.js +0 -239
  165. package/src/util/loading.js +0 -17
  166. package/src/util/localStorageUtil.ts +0 -34
  167. package/src/util/mapIconUtil.js +0 -180
  168. package/src/util/mapUtil.js +0 -91
  169. package/src/util/sortUtil.js +0 -33
  170. package/src/util/stringUtils.js +0 -6
  171. package/src/util/urlFilterUtil.js +0 -85
  172. package/stats.html +0 -4842
  173. package/tailwind.config.js +0 -129
  174. package/tsconfig.json +0 -23
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@abcagency/hc-ui-components",
3
- "version": "1.3.22",
3
+ "version": "1.3.23",
4
4
  "description": "UI Components for HireControl",
5
5
  "main": "dist/index.js",
6
+ "files": [
7
+ "dist"
8
+ ],
6
9
  "scripts": {
7
10
  "build": "cross-env NODE_ENV=production rollup -c",
8
11
  "test": "echo \"Error: no test specified\" && exit 1"
package/.env DELETED
@@ -1,3 +0,0 @@
1
- GOOGLE_MAPS_API_KEY=AIzaSyAXPlfaoMCrmjNV1u-vFYdLBi7GkGeh4S4
2
- HC_API_BASE_URL=https://api.myhirecontrol.com
3
- GOOGLE_MAPS_API_URL=https://maps.googleapis.com/maps/api
package/.eslintrc DELETED
@@ -1,136 +0,0 @@
1
- {
2
- "root": true,
3
- "env": {
4
- "browser": true,
5
- "node": true
6
- },
7
- "extends": [
8
- "eslint:recommended",
9
- "plugin:react/recommended",
10
- "plugin:jsx-a11y/recommended",
11
- "plugin:react-hooks/recommended",
12
- "prettier"
13
- ],
14
- "plugins": [
15
- "react",
16
- "jsx-a11y",
17
- "react-hooks"
18
- ],
19
- "parserOptions": {
20
- "ecmaVersion": 2021,
21
- "sourceType": "module",
22
- "ecmaFeatures": {
23
- "jsx": true
24
- }
25
- },
26
- "settings": {
27
- "react": {
28
- "version": "detect"
29
- },
30
- "import/resolver": {
31
- "node": {
32
- "extensions": [".js", ".jsx"]
33
- }
34
- }
35
- },
36
- "ignorePatterns": ["dist/"],
37
- "rules": {
38
- "strict": 0,
39
- "semi": ["error", "always"],
40
- "indent": ["error", "tab", { "SwitchCase": 1 }],
41
- "comma-dangle": ["error", "never"],
42
- "arrow-parens": ["error", "as-needed"],
43
- "object-curly-spacing": ["error", "always"],
44
- "space-in-parens": ["error", "never"],
45
- "no-multiple-empty-lines": ["error", { "max": 1 }],
46
- "prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
47
- "react/prop-types": "off",
48
- "import/no-webpack-loader-syntax": [0],
49
- "react/jsx-pascal-case": [1, { "allowNamespace": true }],
50
- "jsx-a11y/accessible-emoji": 1,
51
- "jsx-a11y/alt-text": 1,
52
- "jsx-a11y/anchor-has-content": 1,
53
- "jsx-a11y/anchor-is-valid": 1,
54
- "jsx-a11y/aria-activedescendant-has-tabindex": 1,
55
- "jsx-a11y/aria-props": 1,
56
- "jsx-a11y/aria-proptypes": 1,
57
- "jsx-a11y/aria-role": 1,
58
- "jsx-a11y/aria-unsupported-elements": 1,
59
- "jsx-a11y/autocomplete-valid": [1, { "inputComponents": [] }],
60
- "jsx-a11y/click-events-have-key-events": 1,
61
- "jsx-a11y/control-has-associated-label": [
62
- 1,
63
- {
64
- "ignoreElements": ["audio", "canvas", "embed", "input", "textarea", "tr", "video"],
65
- "ignoreRoles": ["grid", "listbox", "menu", "menubar", "radiogroup", "row", "tablist", "toolbar", "tree", "treegrid"],
66
- "includeRoles": ["alert", "dialog"]
67
- }
68
- ],
69
- "jsx-a11y/heading-has-content": 1,
70
- "jsx-a11y/html-has-lang": 1,
71
- "jsx-a11y/iframe-has-title": 1,
72
- "jsx-a11y/img-redundant-alt": 1,
73
- "jsx-a11y/interactive-supports-focus": [
74
- 1,
75
- { "tabbable": ["button", "checkbox", "link", "progressbar", "searchbox", "slider", "spinbutton", "switch", "textbox"] }
76
- ],
77
- "jsx-a11y/label-has-associated-control": 1,
78
- "jsx-a11y/lang": 1,
79
- "jsx-a11y/media-has-caption": 1,
80
- "jsx-a11y/mouse-events-have-key-events": 1,
81
- "jsx-a11y/no-access-key": 1,
82
- "jsx-a11y/no-autofocus": 1,
83
- "jsx-a11y/no-distracting-elements": 1,
84
- "jsx-a11y/no-interactive-element-to-noninteractive-role": 1,
85
- "jsx-a11y/no-noninteractive-element-interactions": [1, { "body": ["onError", "onLoad"], "iframe": ["onError", "onLoad"], "img": ["onError", "onLoad"] }],
86
- "jsx-a11y/no-noninteractive-element-to-interactive-role": 1,
87
- "jsx-a11y/no-noninteractive-tabindex": 1,
88
- "jsx-a11y/no-onchange": 1,
89
- "jsx-a11y/no-redundant-roles": 1,
90
- "jsx-a11y/no-static-element-interactions": 1,
91
- "jsx-a11y/role-has-required-aria-props": 1,
92
- "jsx-a11y/role-supports-aria-props": 1,
93
- "jsx-a11y/scope": 1,
94
- "jsx-a11y/tabindex-no-positive": 1,
95
- "react-hooks/rules-of-hooks": 2,
96
- "no-unused-vars": "warn"
97
- },
98
- "overrides": [
99
- {
100
- "files": ["packages/hc-ui-components/**/*.ts", "packages/hc-ui-components/**/*.tsx"],
101
- "extends": ["plugin:@typescript-eslint/recommended"],
102
- "parser": "@typescript-eslint/parser",
103
- "parserOptions": {
104
- "project": ["./packages/hc-ui-components/tsconfig.json"]
105
- },
106
- "plugins": ["@typescript-eslint"],
107
- "rules": {
108
- "@typescript-eslint/no-unused-vars": ["warn"]
109
- }
110
- },
111
- {
112
- "files": ["apps/hc-next-iframes/**/*.js", "apps/hc-next-iframes/**/*.jsx"],
113
- "env": {
114
- "browser": true,
115
- "node": true
116
- },
117
- "parserOptions": {
118
- "ecmaVersion": 2021,
119
- "sourceType": "module",
120
- "ecmaFeatures": {
121
- "jsx": true
122
- }
123
- },
124
- "settings": {
125
- "react": {
126
- "version": "detect"
127
- },
128
- "import/resolver": {
129
- "node": {
130
- "extensions": [".js", ".jsx"]
131
- }
132
- }
133
- }
134
- }
135
- ]
136
- }