@aclymatepackages/modules 2.1.26 → 2.2.1

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.
@@ -159,7 +159,7 @@ const FootprintEquivalencies = _ref => {
159
159
  height: "100%"
160
160
  }, /*#__PURE__*/_react.default.createElement("img", {
161
161
  alt: "".concat(type, "-image"),
162
- src: "https://dashboard.aclymate.com/images/footprint-equivalencies/".concat(type, ".svg"),
162
+ src: "https://aclymate.app/images/footprint-equivalencies/".concat(type, ".svg"),
163
163
  style: {
164
164
  width: "100%",
165
165
  maxHeight: "250px"
@@ -48,8 +48,7 @@ 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",
52
- helperText
51
+ actionLabel = "Please select your company from these options"
53
52
  } = _ref2;
54
53
  const [inputValue, setInputValue] = (0, _react.useState)("");
55
54
  const [matchingCompanies, setMatchingCompanies] = (0, _react.useState)([]);
@@ -98,7 +97,6 @@ const PdlCompanySelect = _ref2 => {
98
97
  return fetchMatchingCompanies();
99
98
  }
100
99
  },
101
- helperText: helperText || "Press enter or click the search icon to search for matching companies",
102
100
  InputProps: {
103
101
  endAdornment: /*#__PURE__*/_react.default.createElement(_material.InputAdornment, null, /*#__PURE__*/_react.default.createElement(_material.IconButton, {
104
102
  disabled: pdlFetchLoading,
@@ -43,7 +43,8 @@ const PlacesAutocomplete = _ref => {
43
43
  id,
44
44
  style,
45
45
  textFieldProps,
46
- coordinates
46
+ coordinates,
47
+ appCheckToken
47
48
  } = _ref;
48
49
  const [inputValue, setInputValue] = (0, _react.useState)("");
49
50
  const [options, setOptions] = (0, _react.useState)([]);
@@ -66,6 +67,7 @@ const PlacesAutocomplete = _ref => {
66
67
  return data.predictions;
67
68
  };
68
69
  return await (0, _fetchAclymateApi.default)({
70
+ appCheckToken,
69
71
  path: "/google-maps/autocomplete/".concat(dataString),
70
72
  method: "GET",
71
73
  signal,
@@ -8,6 +8,7 @@ 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");
11
12
  var _ReportGraphContentLayout = _interopRequireDefault(require("./ReportGraphContentLayout"));
12
13
  var _EmissionsPieChart = _interopRequireDefault(require("./EmissionsPieChart"));
13
14
  var _EmissionsSummarySentence = _interopRequireDefault(require("./EmissionsSummarySentence"));
@@ -29,7 +30,7 @@ const ReportSummaryBlock = _ref => {
29
30
  const {
30
31
  scope
31
32
  } = scopeObj;
32
- const scopeEmissions = (0, _otherHelpers.filterEmissionsByScope)(emissions, scope);
33
+ const scopeEmissions = (0, _emissionsCalcs.filterEmissionsByScope)(emissions, scope);
33
34
  return _objectSpread(_objectSpread({}, scopeObj), {}, {
34
35
  emissions: scopeEmissions
35
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "2.1.26",
3
+ "version": "2.2.1",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -9,13 +9,14 @@
9
9
  "@aclymatepackages/atoms": "^3.0.8",
10
10
  "@aclymatepackages/chart-helpers": "^2.0.5",
11
11
  "@aclymatepackages/converters": "^1.0.0",
12
- "@aclymatepackages/fetch-aclymate-api": "^1.0.0",
12
+ "@aclymatepackages/emissions-calcs": "^1.1.1",
13
+ "@aclymatepackages/fetch-aclymate-api": "^2.1.6",
13
14
  "@aclymatepackages/formatters": "^1.0.0",
14
15
  "@aclymatepackages/lists": "^1.0.0",
15
16
  "@aclymatepackages/multi-part-form": "^2.0.1",
16
- "@aclymatepackages/other-helpers": "^1.0.9",
17
+ "@aclymatepackages/other-helpers": "^1.0.3",
17
18
  "@aclymatepackages/reg-exp": "^1.0.0",
18
- "@aclymatepackages/subcategories": "^3.1.6",
19
+ "@aclymatepackages/subcategories": "^3.1.10",
19
20
  "@aclymatepackages/themes": "^3.0.7",
20
21
  "@babel/preset-react": "^7.16.7",
21
22
  "@emotion/react": "^11.11.1",
@@ -167,7 +167,7 @@ const FootprintEquivalencies = ({
167
167
  <Box position="relative" width="100%" height="100%">
168
168
  <img
169
169
  alt={`${type}-image`}
170
- src={`https://dashboard.aclymate.com/images/footprint-equivalencies/${type}.svg`}
170
+ src={`https://aclymate.app/images/footprint-equivalencies/${type}.svg`}
171
171
  style={{ width: "100%", maxHeight: "250px" }}
172
172
  />
173
173
  <Paper
@@ -43,7 +43,6 @@ 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,
47
46
  }) => {
48
47
  const [inputValue, setInputValue] = useState("");
49
48
  const [matchingCompanies, setMatchingCompanies] = useState([]);
@@ -90,10 +89,6 @@ const PdlCompanySelect = ({
90
89
  return fetchMatchingCompanies();
91
90
  }
92
91
  }}
93
- helperText={
94
- helperText ||
95
- "Press enter or click the search icon to search for matching companies"
96
- }
97
92
  InputProps={{
98
93
  endAdornment: (
99
94
  <InputAdornment>
@@ -23,6 +23,7 @@ const PlacesAutocomplete = ({
23
23
  style,
24
24
  textFieldProps,
25
25
  coordinates,
26
+ appCheckToken,
26
27
  }) => {
27
28
  const [inputValue, setInputValue] = useState("");
28
29
  const [options, setOptions] = useState([]);
@@ -44,6 +45,7 @@ const PlacesAutocomplete = ({
44
45
  };
45
46
 
46
47
  return await fetchAclymateApi({
48
+ appCheckToken,
47
49
  path: `/google-maps/autocomplete/${dataString}`,
48
50
  method: "GET",
49
51
  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/other-helpers";
6
+ import { filterEmissionsByScope } from "@aclymatepackages/emissions-calcs";
7
7
 
8
8
  import ReportGraphContentLayout from "./ReportGraphContentLayout";
9
9
  import EmissionsPieChart from "./EmissionsPieChart";