@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.
- package/dist/Toast/index.js +4 -2
- package/package.json +5 -5
package/dist/Toast/index.js
CHANGED
|
@@ -82,8 +82,10 @@ if (!target) {
|
|
|
82
82
|
}
|
|
83
83
|
var root = client.createRoot(target);
|
|
84
84
|
function showToast(props) {
|
|
85
|
-
|
|
86
|
-
|
|
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-
|
|
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-
|
|
22
|
-
"@jobber/formatters": "^0.2.2-
|
|
23
|
-
"@jobber/hooks": "^1.13.2-
|
|
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": "
|
|
87
|
+
"gitHead": "3d350ab43df4707a91d0dd1b224e2596787cba4c"
|
|
88
88
|
}
|