@schukai/monster 3.82.0 → 3.82.1
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.11","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.82.
|
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.11","@popperjs/core":"^2.11.8"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.82.1"}
|
|
@@ -73,6 +73,7 @@ class Iframe extends CustomElement {
|
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @return {Components.Layout.Iframe
|
|
76
|
+
* @fires monster-iframe-clicked
|
|
76
77
|
*/
|
|
77
78
|
[assembleMethodSymbol]() {
|
|
78
79
|
super[assembleMethodSymbol]();
|
|
@@ -286,7 +287,6 @@ function disconnectResizeObserver() {
|
|
|
286
287
|
/**
|
|
287
288
|
* @private
|
|
288
289
|
* @return {initEventHandler}
|
|
289
|
-
* @fires monster-iframe-clicked
|
|
290
290
|
*/
|
|
291
291
|
function initEventHandler() {
|
|
292
292
|
const self = this;
|
|
@@ -320,8 +320,8 @@ function initEventHandler() {
|
|
|
320
320
|
|
|
321
321
|
this[iframeElementSymbol].addEventListener("load", () => {
|
|
322
322
|
calcHeight.call(this);
|
|
323
|
-
if (this.getOption("features.
|
|
324
|
-
|
|
323
|
+
if (this.getOption("features.replaceTargets")) {
|
|
324
|
+
const links = this[iframeElementSymbol].contentDocument.querySelectorAll('a[target="_parent"], form[target="_parent"], a[target="_top"], form[target="_top"]');
|
|
325
325
|
links.forEach(function(link) {
|
|
326
326
|
link.target = '_self';
|
|
327
327
|
});
|