@nice-digital/global-nav 4.1.805 → 4.1.808-GN-181-fix-console-e
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 +6 -2
- package/lib/Main/Main.js +0 -1
- package/lib/services.json +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -707,12 +707,16 @@ This renders with the default configuration. See [the configuration section belo
|
|
|
707
707
|
|
|
708
708
|
> Note: you can reference the non-minified version by removing _.min_ from the filename.
|
|
709
709
|
|
|
710
|
-
Reference a specific version of the global nav by including the build number as a sub folder. This is useful for testing,
|
|
710
|
+
Reference a specific version of the global nav by including the build number as a sub folder. This is useful for testing, in case of a breaking change, or in case of needing to roll back for a hotfix, for example:
|
|
711
711
|
|
|
712
712
|
```html
|
|
713
|
-
<script src="//alpha-cdn.nice.org.uk/global-nav/1.
|
|
713
|
+
<script src="//alpha-cdn.nice.org.uk/global-nav/4.1.806-GN-180-FixInDev/global-nav.min.js"></script>
|
|
714
|
+
or
|
|
715
|
+
<script src="//cdn.nice.org.uk/global-nav/4.1.805%2Br6D13311/global-nav.min.js"></script>
|
|
714
716
|
```
|
|
715
717
|
|
|
718
|
+
Note the production build needs the `+` character in the build metadata encoding as `%2B` to avoid browsers interpreting it as a space in the URL.
|
|
719
|
+
|
|
716
720
|
> See the [IE8](#supporting-ie8) section below if you're supporting IE8.
|
|
717
721
|
|
|
718
722
|
#### Container IDs
|
package/lib/Main/Main.js
CHANGED
|
@@ -29,7 +29,6 @@ function Main(props) {
|
|
|
29
29
|
withPadding = _props$withPadding === void 0 ? true : _props$withPadding,
|
|
30
30
|
rest = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
31
31
|
return /*#__PURE__*/_react["default"].createElement("main", (0, _extends2["default"])({
|
|
32
|
-
withPadding: withPadding,
|
|
33
32
|
className: (0, _classnames["default"])([_MainModule["default"].main, className], withPadding && _MainModule["default"].withPadding)
|
|
34
33
|
}, rest), children, /*#__PURE__*/_react["default"].createElement(_BackToTop.BackToTop, null));
|
|
35
34
|
}
|
package/lib/services.json
CHANGED
package/package.json
CHANGED