@d-i-t-a/reader 2.4.7 → 2.4.8
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/esm/index.js +17 -13
- package/dist/esm/index.js.map +2 -2
- package/dist/injectables/click/click.js +1 -1
- package/dist/injectables/click/click.js.map +1 -1
- package/dist/reader.js +80 -65949
- package/dist/reader.js.map +3 -3
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -13515,7 +13515,7 @@ var require_parse = __commonJS({
|
|
|
13515
13515
|
try {
|
|
13516
13516
|
parser.parse();
|
|
13517
13517
|
} catch (e) {
|
|
13518
|
-
if (
|
|
13518
|
+
if (false) {
|
|
13519
13519
|
if (e.name === "CssSyntaxError" && opts && opts.from) {
|
|
13520
13520
|
if (/\.scss$/i.test(opts.from)) {
|
|
13521
13521
|
e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser";
|
|
@@ -13707,7 +13707,7 @@ var require_lazy_result = __commonJS({
|
|
|
13707
13707
|
error.plugin = plugin.postcssPlugin;
|
|
13708
13708
|
error.setMessage();
|
|
13709
13709
|
} else if (plugin.postcssVersion) {
|
|
13710
|
-
if (
|
|
13710
|
+
if (false) {
|
|
13711
13711
|
let pluginName = plugin.postcssPlugin;
|
|
13712
13712
|
let pluginVer = plugin.postcssVersion;
|
|
13713
13713
|
let runtimeVer = this.result.processor.version;
|
|
@@ -13892,7 +13892,7 @@ var require_lazy_result = __commonJS({
|
|
|
13892
13892
|
return this.result;
|
|
13893
13893
|
}
|
|
13894
13894
|
then(onFulfilled, onRejected) {
|
|
13895
|
-
if (
|
|
13895
|
+
if (false) {
|
|
13896
13896
|
if (!("from" in this.opts)) {
|
|
13897
13897
|
warnOnce(
|
|
13898
13898
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
@@ -14087,7 +14087,7 @@ var require_no_work_result = __commonJS({
|
|
|
14087
14087
|
return this.result;
|
|
14088
14088
|
}
|
|
14089
14089
|
then(onFulfilled, onRejected) {
|
|
14090
|
-
if (
|
|
14090
|
+
if (false) {
|
|
14091
14091
|
if (!("from" in this._opts)) {
|
|
14092
14092
|
warnOnce(
|
|
14093
14093
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
@@ -14176,7 +14176,7 @@ var require_processor = __commonJS({
|
|
|
14176
14176
|
} else if (typeof i === "function") {
|
|
14177
14177
|
normalized.push(i);
|
|
14178
14178
|
} else if (typeof i === "object" && (i.parse || i.stringify)) {
|
|
14179
|
-
if (
|
|
14179
|
+
if (false) {
|
|
14180
14180
|
throw new Error(
|
|
14181
14181
|
"PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."
|
|
14182
14182
|
);
|
|
@@ -55213,7 +55213,7 @@ function delay(t, v) {
|
|
|
55213
55213
|
setTimeout(resolve.bind(null, v), t);
|
|
55214
55214
|
});
|
|
55215
55215
|
}
|
|
55216
|
-
var IS_DEV =
|
|
55216
|
+
var IS_DEV = false;
|
|
55217
55217
|
import_loglevel13.default.setLevel(IS_DEV ? "trace" : "warn", true);
|
|
55218
55218
|
|
|
55219
55219
|
// src/modules/protection/ContentProtectionModule.ts
|
|
@@ -63070,7 +63070,7 @@ var IFrameNavigator = class _IFrameNavigator extends eventemitter3_default {
|
|
|
63070
63070
|
if (doc && doc.body) {
|
|
63071
63071
|
height = getComputedStyle(doc.body).height;
|
|
63072
63072
|
width = getComputedStyle(doc.body).width;
|
|
63073
|
-
if (parseInt(height
|
|
63073
|
+
if (parseInt(height.toString().replace("px", "")) === 0 || parseInt(width.toString().replace("px", "")) === 0) {
|
|
63074
63074
|
const head = findIframeElement(
|
|
63075
63075
|
doc,
|
|
63076
63076
|
"head"
|
|
@@ -63095,8 +63095,8 @@ var IFrameNavigator = class _IFrameNavigator extends eventemitter3_default {
|
|
|
63095
63095
|
}
|
|
63096
63096
|
var iframeParent = index2 === 0 && this.iframes.length === 2 ? (_b2 = this.iframes[1].parentElement) == null ? void 0 : _b2.parentElement : (_c2 = this.iframes[0].parentElement) == null ? void 0 : _c2.parentElement;
|
|
63097
63097
|
if (iframeParent && width) {
|
|
63098
|
-
var widthRatio = (parseInt(getComputedStyle(iframeParent).width) - 100) / (this.iframes.length === 2 ? parseInt(width
|
|
63099
|
-
var heightRatio = (parseInt(getComputedStyle(iframeParent).height) - 100) / parseInt(height
|
|
63098
|
+
var widthRatio = (parseInt(getComputedStyle(iframeParent).width) - 100) / (this.iframes.length === 2 ? parseInt(width.toString().replace("px", "")) * 2 + 200 : parseInt(width.toString().replace("px", "")));
|
|
63099
|
+
var heightRatio = (parseInt(getComputedStyle(iframeParent).height) - 100) / parseInt(height.toString().replace("px", ""));
|
|
63100
63100
|
var scale = Math.min(widthRatio, heightRatio);
|
|
63101
63101
|
iframeParent.style.transform = "scale(" + scale + ")";
|
|
63102
63102
|
for (const iframe of this.iframes) {
|
|
@@ -63505,13 +63505,17 @@ var IFrameNavigator = class _IFrameNavigator extends eventemitter3_default {
|
|
|
63505
63505
|
return obj2;
|
|
63506
63506
|
}, {});
|
|
63507
63507
|
if (parseInt(obj["height"]) !== 0 || parseInt(obj["width"]) !== 0) {
|
|
63508
|
-
height = obj["height"].endsWith("px") ? obj["height"] : obj["height"] + "px";
|
|
63509
|
-
width = obj["width"].endsWith("px") ? obj["width"] : obj["width"] + "px";
|
|
63508
|
+
height = obj["height"].toString().endsWith("px") ? obj["height"] : obj["height"] + "px";
|
|
63509
|
+
width = obj["width"].toString().endsWith("px") ? obj["width"] : obj["width"] + "px";
|
|
63510
63510
|
}
|
|
63511
63511
|
}
|
|
63512
63512
|
}
|
|
63513
|
-
var widthRatio = (parseInt(getComputedStyle(iframeParent).width) - 100) / (this.iframes.length === 2 ? parseInt(
|
|
63514
|
-
|
|
63513
|
+
var widthRatio = (parseInt(getComputedStyle(iframeParent).width) - 100) / (this.iframes.length === 2 ? parseInt(
|
|
63514
|
+
width.toString().endsWith("px") ? width == null ? void 0 : width.replace("px", "") : width
|
|
63515
|
+
) * 2 + 200 : parseInt(
|
|
63516
|
+
width.toString().endsWith("px") ? width == null ? void 0 : width.replace("px", "") : width
|
|
63517
|
+
));
|
|
63518
|
+
var heightRatio = (parseInt(getComputedStyle(iframeParent).height) - 100) / parseInt(height.toString().replace("px", ""));
|
|
63515
63519
|
var scale = Math.min(widthRatio, heightRatio);
|
|
63516
63520
|
iframeParent.style.transform = "scale(" + scale + ")";
|
|
63517
63521
|
for (const iframe of this.iframes) {
|