thm-p3-configurator 0.0.135 → 0.0.136
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.
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ To set up and test internal pages locally:
|
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
```
|
|
18
|
+
- Make sure to set "INTERNAL=true" and "NODE_ENV=development" in the .env file
|
|
18
19
|
- Add this import at the top of the file:
|
|
19
20
|
```javascript
|
|
20
21
|
import TEST_ONLY_INTERNAL_ROUTES from './__pages__/internal/__TEST_ONLY_INTERNAL_ROUTES';
|
|
@@ -33,7 +34,7 @@ To set up and test internal pages locally:
|
|
|
33
34
|
- Paste the copied value as `__authSession`
|
|
34
35
|
- Refresh the page
|
|
35
36
|
|
|
36
|
-
You should now be able to access the internal pages locally, you can test this by navigating to one of the internal pages in your code editor, change some text and see if it updates.
|
|
37
|
+
You should now be able to access the internal pages locally, you can test this by navigating to one of the internal pages in your code editor (`src/shared/__pages__/internal`), change some text and see if it updates.
|
|
37
38
|
|
|
38
39
|
3. Reauthenticating (Optional)
|
|
39
40
|
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.array.includes.js");
|
|
4
|
+
require("core-js/modules/es.string.includes.js");
|
|
5
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
6
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
3
7
|
require("core-js/modules/esnext.iterator.map.js");
|
|
4
8
|
Object.defineProperty(exports, "__esModule", {
|
|
5
9
|
value: true
|
|
6
10
|
});
|
|
7
11
|
exports.default = void 0;
|
|
12
|
+
require("core-js/modules/es.array.includes.js");
|
|
13
|
+
require("core-js/modules/es.string.includes.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
15
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
8
16
|
require("core-js/modules/esnext.iterator.map.js");
|
|
9
17
|
var _react = _interopRequireDefault(require("react"));
|
|
10
18
|
var _helpers__ = require("../../__helpers__");
|
|
@@ -16,18 +24,24 @@ function _interopRequireDefault(e) {
|
|
|
16
24
|
const ProductCardSpecifications = _ref => {
|
|
17
25
|
let {
|
|
18
26
|
specifications = [],
|
|
19
|
-
className = ''
|
|
27
|
+
className = '',
|
|
28
|
+
excludeKeys = []
|
|
20
29
|
} = _ref;
|
|
21
30
|
if (!specifications.length) {
|
|
22
31
|
return null;
|
|
23
32
|
}
|
|
24
33
|
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
25
34
|
className: (0, _helpers__.withStyle)("col-12 col-md-6 list-unstyled product-critera__text mt-2 mb-2 ".concat(className))
|
|
26
|
-
}, specifications.
|
|
35
|
+
}, specifications.filter(_ref2 => {
|
|
36
|
+
let {
|
|
37
|
+
key
|
|
38
|
+
} = _ref2;
|
|
39
|
+
return !excludeKeys.includes(key);
|
|
40
|
+
}).map(_ref3 => {
|
|
27
41
|
let {
|
|
28
42
|
key,
|
|
29
43
|
value
|
|
30
|
-
} =
|
|
44
|
+
} = _ref3;
|
|
31
45
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
32
46
|
key: key + value,
|
|
33
47
|
className: (0, _helpers__.withStyle)('d-flex justify-content-between card-text__criterea')
|
|
@@ -140,7 +140,8 @@ const ProductCard = _ref => {
|
|
|
140
140
|
key: (productFieldLabels === null || productFieldLabels === void 0 ? void 0 : productFieldLabels[key]) || key,
|
|
141
141
|
value
|
|
142
142
|
};
|
|
143
|
-
})
|
|
143
|
+
}),
|
|
144
|
+
excludeKeys: ['brand']
|
|
144
145
|
}), /*#__PURE__*/_react.default.createElement(_ProductCardDescription.default, {
|
|
145
146
|
description: productDescription
|
|
146
147
|
})), /*#__PURE__*/_react.default.createElement("div", {
|