@fileverse-dev/ddoc 3.1.7-comment-re-arch-12 → 3.1.7-comment-re-arch-13

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.
Files changed (2) hide show
  1. package/dist/index.es.js +16 -16
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -185947,20 +185947,20 @@ const CKe = Number.POSITIVE_INFINITY, Q2 = (e) => e.isVisible && e.isMeasured &&
185947
185947
  h.forEach((_) => {
185948
185948
  const B = f(
185949
185949
  _.floatingCardId
185950
- ), { anchorId: E, anchorType: N } = sx(_), T = x.get(E);
185950
+ ), { anchorId: E, anchorType: N } = sx(_), T = x.get(E), R = T !== void 0 && (T.missingSinceCycle !== null || T.missingSinceDocVersion !== null);
185951
185951
  if (!(D.has(
185952
185952
  _.floatingCardId
185953
- ) || !T)) {
185953
+ ) || !T || R)) {
185954
185954
  B.anchorPosition = (T == null ? void 0 : T.pmPos) ?? B.anchorPosition;
185955
185955
  return;
185956
185956
  }
185957
- const z = jKe({
185957
+ const $ = jKe({
185958
185958
  editorRoot: d,
185959
185959
  anchorId: E,
185960
185960
  anchorType: N
185961
185961
  });
185962
- if (!z.length) {
185963
- const U = (T == null ? void 0 : T.missingSinceDocVersion) ?? u, Q = (T == null ? void 0 : T.missingSinceCycle) ?? l;
185962
+ if (!$.length) {
185963
+ const Q = (T == null ? void 0 : T.missingSinceDocVersion) ?? u, ue = (T == null ? void 0 : T.missingSinceCycle) ?? l;
185964
185964
  if (T !== void 0 && (T.missingSinceCycle !== null && T.missingSinceCycle < l || T.missingSinceDocVersion !== null && T.missingSinceDocVersion < u)) {
185965
185965
  C.add(_.floatingCardId), x.delete(E);
185966
185966
  return;
@@ -185974,32 +185974,32 @@ const CKe = Number.POSITIVE_INFINITY, Q2 = (e) => e.isVisible && e.isMeasured &&
185974
185974
  anchorVersion: (T == null ? void 0 : T.anchorVersion) ?? 0,
185975
185975
  cachedRect: (T == null ? void 0 : T.cachedRect) ?? null,
185976
185976
  lastSeenEditorRoot: d,
185977
- missingSinceDocVersion: U,
185978
- missingSinceCycle: Q
185977
+ missingSinceDocVersion: Q,
185978
+ missingSinceCycle: ue
185979
185979
  }), v = !0, B.anchorPosition = (T == null ? void 0 : T.pmPos) ?? B.anchorPosition;
185980
185980
  return;
185981
185981
  }
185982
- const $ = BKe(c, z), H = !T || T.anchorType !== N || T.pmPos !== $ || T.lastSeenEditorRoot !== d || !NKe(T.elements, z), L = {
185982
+ const H = BKe(c, $), L = !T || T.anchorType !== N || T.pmPos !== H || T.lastSeenEditorRoot !== d || !NKe(T.elements, $), U = {
185983
185983
  floatingCardId: _.floatingCardId,
185984
185984
  anchorId: E,
185985
185985
  anchorType: N,
185986
- elements: z,
185987
- pmPos: $,
185988
- anchorVersion: T ? H ? T.anchorVersion + 1 : T.anchorVersion : 0,
185989
- cachedRect: T && !H ? T.cachedRect : null,
185986
+ elements: $,
185987
+ pmPos: H,
185988
+ anchorVersion: T ? L ? T.anchorVersion + 1 : T.anchorVersion : 0,
185989
+ cachedRect: T && !L ? T.cachedRect : null,
185990
185990
  lastSeenEditorRoot: d,
185991
185991
  missingSinceDocVersion: null,
185992
185992
  missingSinceCycle: null
185993
185993
  };
185994
- if (x.set(E, L), B.anchorPosition = $, H || B.anchorVersion !== L.anchorVersion) {
185995
- (!T || T.pmPos !== $) && m();
185996
- const U = y(
185994
+ if (x.set(E, U), B.anchorPosition = H, L || B.anchorVersion !== U.anchorVersion) {
185995
+ (!T || T.pmPos !== H) && m();
185996
+ const Q = y(
185997
185997
  _.floatingCardId
185998
185998
  );
185999
185999
  g(
186000
186000
  _.floatingCardId,
186001
186001
  Sr.Anchor
186002
- ), b(U ?? 0);
186002
+ ), b(Q ?? 0);
186003
186003
  }
186004
186004
  }), t.current.clear();
186005
186005
  const A = h.filter(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.1.7-comment-re-arch-12",
5
+ "version": "3.1.7-comment-re-arch-13",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {