@aclymatepackages/modules 2.3.1 → 2.3.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.
@@ -48,7 +48,8 @@ const PdlCompanySelect = _ref2 => {
48
48
  onSelectClick = () => {},
49
49
  matchingFunction,
50
50
  label = "Enter your company's name",
51
- actionLabel = "Please select your company from these options"
51
+ actionLabel = "Please select your company from these options",
52
+ helperText
52
53
  } = _ref2;
53
54
  const [inputValue, setInputValue] = (0, _react.useState)("");
54
55
  const [matchingCompanies, setMatchingCompanies] = (0, _react.useState)([]);
@@ -97,6 +98,7 @@ const PdlCompanySelect = _ref2 => {
97
98
  return fetchMatchingCompanies();
98
99
  }
99
100
  },
101
+ helperText: helperText || "Press enter or click the search icon to search for matching companies",
100
102
  InputProps: {
101
103
  endAdornment: /*#__PURE__*/_react.default.createElement(_material.InputAdornment, null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
102
104
  disabled: pdlFetchLoading,
@@ -43,8 +43,7 @@ const PlacesAutocomplete = _ref => {
43
43
  id,
44
44
  style,
45
45
  textFieldProps,
46
- coordinates,
47
- appCheckToken
46
+ coordinates
48
47
  } = _ref;
49
48
  const [inputValue, setInputValue] = (0, _react.useState)("");
50
49
  const [options, setOptions] = (0, _react.useState)([]);
@@ -67,7 +66,6 @@ const PlacesAutocomplete = _ref => {
67
66
  return data.predictions;
68
67
  };
69
68
  return await (0, _fetchAclymateApi.default)({
70
- appCheckToken,
71
69
  path: "/google-maps/autocomplete/".concat(dataString),
72
70
  method: "GET",
73
71
  signal,
@@ -8,7 +8,6 @@ require("core-js/modules/web.dom-collections.iterator.js");
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _material = require("@mui/material");
10
10
  var _otherHelpers = require("@aclymatepackages/other-helpers");
11
- var _emissionsCalcs = require("@aclymatepackages/emissions-calcs");
12
11
  var _ReportGraphContentLayout = _interopRequireDefault(require("./ReportGraphContentLayout"));
13
12
  var _EmissionsPieChart = _interopRequireDefault(require("./EmissionsPieChart"));
14
13
  var _EmissionsSummarySentence = _interopRequireDefault(require("./EmissionsSummarySentence"));
@@ -30,7 +29,7 @@ const ReportSummaryBlock = _ref => {
30
29
  const {
31
30
  scope
32
31
  } = scopeObj;
33
- const scopeEmissions = (0, _emissionsCalcs.filterEmissionsByScope)(emissions, scope);
32
+ const scopeEmissions = (0, _otherHelpers.filterEmissionsByScope)(emissions, scope);
34
33
  return _objectSpread(_objectSpread({}, scopeObj), {}, {
35
34
  emissions: scopeEmissions
36
35
  });
package/package.json CHANGED
@@ -1,22 +1,21 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
7
7
  "dependencies": {
8
8
  "@aclymatepackages/array-immutability-helpers": "^1.0.0",
9
- "@aclymatepackages/atoms": "^3.1.14",
9
+ "@aclymatepackages/atoms": "^3.2.0",
10
10
  "@aclymatepackages/chart-helpers": "^2.0.8",
11
11
  "@aclymatepackages/converters": "^1.0.0",
12
- "@aclymatepackages/emissions-calcs": "^1.1.1",
13
- "@aclymatepackages/fetch-aclymate-api": "^2.1.8",
12
+ "@aclymatepackages/fetch-aclymate-api": "^1.0.0",
14
13
  "@aclymatepackages/formatters": "^1.0.0",
15
14
  "@aclymatepackages/lists": "^1.0.0",
16
15
  "@aclymatepackages/multi-part-form": "^2.0.1",
17
- "@aclymatepackages/other-helpers": "^1.0.3",
16
+ "@aclymatepackages/other-helpers": "^1.0.9",
18
17
  "@aclymatepackages/reg-exp": "^1.0.0",
19
- "@aclymatepackages/subcategories": "^3.1.14",
18
+ "@aclymatepackages/subcategories": "^3.2.1",
20
19
  "@aclymatepackages/themes": "^3.0.9",
21
20
  "@babel/preset-react": "^7.16.7",
22
21
  "@emotion/react": "^11.11.1",
@@ -43,6 +43,7 @@ const PdlCompanySelect = ({
43
43
  matchingFunction,
44
44
  label = "Enter your company's name",
45
45
  actionLabel = "Please select your company from these options",
46
+ helperText,
46
47
  }) => {
47
48
  const [inputValue, setInputValue] = useState("");
48
49
  const [matchingCompanies, setMatchingCompanies] = useState([]);
@@ -89,6 +90,10 @@ const PdlCompanySelect = ({
89
90
  return fetchMatchingCompanies();
90
91
  }
91
92
  }}
93
+ helperText={
94
+ helperText ||
95
+ "Press enter or click the search icon to search for matching companies"
96
+ }
92
97
  InputProps={{
93
98
  endAdornment: (
94
99
  <InputAdornment>
@@ -23,7 +23,6 @@ const PlacesAutocomplete = ({
23
23
  style,
24
24
  textFieldProps,
25
25
  coordinates,
26
- appCheckToken,
27
26
  }) => {
28
27
  const [inputValue, setInputValue] = useState("");
29
28
  const [options, setOptions] = useState([]);
@@ -45,7 +44,6 @@ const PlacesAutocomplete = ({
45
44
  };
46
45
 
47
46
  return await fetchAclymateApi({
48
- appCheckToken,
49
47
  path: `/google-maps/autocomplete/${dataString}`,
50
48
  method: "GET",
51
49
  signal,
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { Typography } from "@mui/material";
4
4
 
5
5
  import { buildEmissionsSummarySentence } from "@aclymatepackages/other-helpers";
6
- import { filterEmissionsByScope } from "@aclymatepackages/emissions-calcs";
6
+ import { filterEmissionsByScope } from "@aclymatepackages/other-helpers";
7
7
 
8
8
  import ReportGraphContentLayout from "./ReportGraphContentLayout";
9
9
  import EmissionsPieChart from "./EmissionsPieChart";