codecharta-visualization 2.5.0 → 2.5.2
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/conf/setupJestUnit.ts +4 -2
- package/dist/bundler/browser/chunk-OUNZ5VH4.js +17 -0
- package/dist/bundler/browser/chunk-VY6TRIWG.js +4193 -0
- package/dist/bundler/browser/index.html +51 -3
- package/dist/bundler/browser/main-FTLK4SLY.js +3598 -0
- package/dist/bundler/browser/main.js +4 -1
- package/dist/bundler/browser/media/fa-brands-400-LA6RBN2H.woff2 +0 -0
- package/dist/bundler/browser/media/fa-regular-400-NCGHE5NP.woff2 +0 -0
- package/dist/bundler/browser/media/fa-solid-900-EFITDVWS.woff2 +0 -0
- package/dist/bundler/browser/media/fa-v4compatibility-4GXT74DT.woff2 +0 -0
- package/dist/bundler/browser/package.json +28 -28
- package/dist/bundler/browser/styles-75GURSQY.css +1 -0
- package/package.json +28 -28
- package/tsconfig.json +2 -1
- package/dist/bundler/browser/chunk-6J2WBHT7.js +0 -4192
- package/dist/bundler/browser/chunk-G73QOOPI.js +0 -17
- package/dist/bundler/browser/main-2QGIUNMN.js +0 -3570
- package/dist/bundler/browser/media/fa-brands-400-AHOAZHCU.woff2 +0 -0
- package/dist/bundler/browser/media/fa-regular-400-VRZYIBIZ.woff2 +0 -0
- package/dist/bundler/browser/media/fa-solid-900-MDEYK55F.woff2 +0 -0
- package/dist/bundler/browser/media/fa-v4compatibility-ETEVP6IB.woff2 +0 -0
- package/dist/bundler/browser/styles-UC5AWXPD.css +0 -1
package/conf/setupJestUnit.ts
CHANGED
|
@@ -57,12 +57,14 @@ if (typeof Blob.prototype.arrayBuffer === "undefined") {
|
|
|
57
57
|
// Without zone.js swallowing the thrown error, components calling popover.matches(":popover-open")
|
|
58
58
|
// would fail tests. Make the selector match nothing and stub the popover methods.
|
|
59
59
|
const originalElementMatches = Element.prototype.matches
|
|
60
|
-
|
|
60
|
+
// Cast because the native signature is a set of overloads that narrow the receiver, and a function
|
|
61
|
+
// literal cannot express a type predicate — the shim stands in for all of them.
|
|
62
|
+
Element.prototype.matches = function (this: Element, selectors: string): boolean {
|
|
61
63
|
if (selectors === ":popover-open") {
|
|
62
64
|
return false
|
|
63
65
|
}
|
|
64
66
|
return originalElementMatches.call(this, selectors)
|
|
65
|
-
}
|
|
67
|
+
} as typeof Element.prototype.matches
|
|
66
68
|
if (typeof HTMLElement.prototype.showPopover === "undefined") {
|
|
67
69
|
HTMLElement.prototype.showPopover = function () {}
|
|
68
70
|
}
|