@jobber/components 3.4.9-pre.8 → 3.4.9-rc.7

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.
@@ -82,8 +82,10 @@ if (!target) {
82
82
  }
83
83
  var root = client.createRoot(target);
84
84
  function showToast(props) {
85
- var _a;
86
- if ((_a = document === null || document === void 0 ? void 0 : document.body) === null || _a === void 0 ? void 0 : _a.contains(target)) {
85
+ // Ensure target and body is still there when rendering the toast. This is due
86
+ // to an issue with ReactDOM createRoot assuming document is always there and
87
+ // Jest taking the document down.
88
+ if (document.body.contains(target)) {
87
89
  root.render(React__default["default"].createElement(ToasterOven, tslib_es6.__assign({}, props)));
88
90
  }
89
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "3.4.9-pre.8+cf3f0498",
3
+ "version": "3.4.9-rc.7+3d350ab4",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "dist/*"
19
19
  ],
20
20
  "dependencies": {
21
- "@jobber/design": "^0.29.4-pre.43+cf3f0498",
22
- "@jobber/formatters": "^0.2.2-pre.43+cf3f0498",
23
- "@jobber/hooks": "^1.13.2-pre.10+cf3f0498",
21
+ "@jobber/design": "^0.29.4-rc.42+3d350ab4",
22
+ "@jobber/formatters": "^0.2.2-rc.42+3d350ab4",
23
+ "@jobber/hooks": "^1.13.2-rc.9+3d350ab4",
24
24
  "@popperjs/core": "^2.0.6",
25
25
  "@std-proposal/temporal": "0.0.1",
26
26
  "@tanstack/react-table": "8.5.13",
@@ -84,5 +84,5 @@
84
84
  "> 1%",
85
85
  "IE 10"
86
86
  ],
87
- "gitHead": "cf3f0498db2762ca0b6737720a1d87b8a8e768ce"
87
+ "gitHead": "3d350ab43df4707a91d0dd1b224e2596787cba4c"
88
88
  }