@leaflink/dom-testing-utils 0.0.0-PR-50--733fea1 → 0.0.0-PR-50--ea7d6ae
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.
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* @returns void
|
|
5
5
|
*/
|
|
6
6
|
export default function cleanupModals() {
|
|
7
|
-
document.querySelectorAll('.stash-modal
|
|
7
|
+
document.querySelectorAll('.stash-modal').forEach((elem) => elem.parentNode?.removeChild(elem));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Helper method to remove the modals' mount node from the DOM.
|
|
11
11
|
*/
|
|
12
|
-
export function cleanupModalsMountNode() {
|
|
13
|
-
document.querySelectorAll(
|
|
12
|
+
export function cleanupModalsMountNode(selector = '#stash-modals-mount-node') {
|
|
13
|
+
document.querySelectorAll(selector).forEach((elem) => elem.parentNode?.removeChild(elem));
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=cleanupModals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanupModals.js","sourceRoot":"src/","sources":["utils/cleanupModals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;IACnC,QAAQ,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"cleanupModals.js","sourceRoot":"src/","sources":["utils/cleanupModals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;IACnC,QAAQ,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAClG,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAQ,GAAG,0BAA0B;IAC1E,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -9,7 +9,7 @@ export default function cleanupToasts() {
|
|
|
9
9
|
/**
|
|
10
10
|
* Helper method to remove the toasts' mount node from the DOM.
|
|
11
11
|
*/
|
|
12
|
-
export function cleanupToastsMountNode() {
|
|
13
|
-
document.querySelectorAll(
|
|
12
|
+
export function cleanupToastsMountNode(selector = '#stash-toasts-mount-node') {
|
|
13
|
+
document.querySelectorAll(selector).forEach((elem) => elem.parentNode?.removeChild(elem));
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=cleanupToasts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanupToasts.js","sourceRoot":"src/","sources":["utils/cleanupToasts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;IACnC,QAAQ,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAClG,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;
|
|
1
|
+
{"version":3,"file":"cleanupToasts.js","sourceRoot":"src/","sources":["utils/cleanupToasts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa;IACnC,QAAQ,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAClG,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,QAAQ,GAAG,0BAA0B;IAC1E,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5F,CAAC"}
|