@annotorious/annotorious 3.0.2 → 3.0.3

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.
@@ -667,11 +667,11 @@ const xn = (e, t) => {
667
667
  targetUpdated: to(e, t) ? { oldTarget: e.target, newTarget: t.target } : void 0
668
668
  };
669
669
  };
670
- var z = /* @__PURE__ */ ((e) => (e.LOCAL = "LOCAL", e.REMOTE = "REMOTE", e))(z || {});
670
+ var z = /* @__PURE__ */ ((e) => (e.LOCAL = "LOCAL", e.REMOTE = "REMOTE", e.SILENT = "SILENT", e))(z || {});
671
671
  const no = (e, t) => {
672
672
  var n, o;
673
673
  const { changes: i, origin: s } = t;
674
- if (!(!e.options.origin || e.options.origin === s))
674
+ if (!(e.options.origin ? e.options.origin === s : s !== "SILENT"))
675
675
  return !1;
676
676
  if (e.options.ignore) {
677
677
  const { ignore: r } = e.options, l = (a) => a && a.length > 0;
@@ -724,7 +724,9 @@ const no = (e, t) => {
724
724
  }
725
725
  };
726
726
  }, io = (e) => e.id !== void 0, so = () => {
727
- const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [], o = (E, A = {}) => n.push({ onChange: E, options: A }), i = (E) => {
727
+ const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [], o = (E, A = {}) => {
728
+ n.push({ onChange: E, options: A });
729
+ }, i = (E) => {
728
730
  const A = n.findIndex((S) => S.onChange == E);
729
731
  A > -1 && n.splice(A, 1);
730
732
  }, s = (E, A) => {