@d-i-t-a/reader 2.4.6 → 2.4.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/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 (false) {
13518
+ if (true) {
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 (false) {
13710
+ if (true) {
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 (false) {
13895
+ if (true) {
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 (false) {
14090
+ if (true) {
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 (false) {
14179
+ if (true) {
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
  );
@@ -46467,6 +46467,7 @@ var EventHandler = class {
46467
46467
  return isEpubInternal;
46468
46468
  };
46469
46469
  this.handleLinks = async (event) => {
46470
+ var _a;
46470
46471
  import_loglevel.default.log("R2 Click Handler");
46471
46472
  const link = this.checkForLink(event);
46472
46473
  if (link) {
@@ -46502,7 +46503,9 @@ var EventHandler = class {
46502
46503
  }
46503
46504
  }
46504
46505
  } else {
46505
- this.onClickThrough(event);
46506
+ if (!((_a = this.navigator.highlighter) == null ? void 0 : _a.isSelectionMenuOpen)) {
46507
+ this.onClickThrough(event);
46508
+ }
46506
46509
  }
46507
46510
  };
46508
46511
  this.navigator = navigator2;
@@ -55210,7 +55213,7 @@ function delay(t, v) {
55210
55213
  setTimeout(resolve.bind(null, v), t);
55211
55214
  });
55212
55215
  }
55213
- var IS_DEV = false;
55216
+ var IS_DEV = true;
55214
55217
  import_loglevel13.default.setLevel(IS_DEV ? "trace" : "warn", true);
55215
55218
 
55216
55219
  // src/modules/protection/ContentProtectionModule.ts