@box/threaded-annotations 4.1.7 → 4.1.9

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/chunks/dist.js +3 -3
  2. package/package.json +11 -11
@@ -1288,8 +1288,8 @@ var V = class e extends P {
1288
1288
  return new e(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
1289
1289
  }
1290
1290
  map(t) {
1291
- let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
1292
- return n.deletedAcross && r.deletedAcross ? null : new e(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
1291
+ let n = t.mapResult(this.to, -1), r = this.from == this.to && e.MAP_BIAS < 0 ? n : t.mapResult(this.from, 1);
1292
+ return r.deletedAcross && n.deletedAcross ? null : new e(r.pos, Math.max(r.pos, n.pos), this.slice, this.structure);
1293
1293
  }
1294
1294
  merge(t) {
1295
1295
  if (!(t instanceof e) || t.structure || this.structure) return null;
@@ -1314,7 +1314,7 @@ var V = class e extends P {
1314
1314
  return new e(n.from, n.to, u.fromJSON(t, n.slice), !!n.structure);
1315
1315
  }
1316
1316
  };
1317
- P.jsonID("replace", V);
1317
+ V.MAP_BIAS = 1, P.jsonID("replace", V);
1318
1318
  var H = class e extends P {
1319
1319
  constructor(e, t, n, r, i, a, o = !1) {
1320
1320
  super(), this.from = e, this.to = t, this.gapFrom = n, this.gapTo = r, this.slice = i, this.insert = a, this.structure = o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/threaded-annotations",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "dependencies": {
6
6
  "@floating-ui/dom": "^1.6.0",
@@ -17,23 +17,23 @@
17
17
  "uuid": "^9.0.1"
18
18
  },
19
19
  "peerDependencies": {
20
- "@box/blueprint-web": "^16.12.0",
21
- "@box/blueprint-web-assets": "^5.5.7",
22
- "@box/collaboration-popover": "^2.1.32",
23
- "@box/readable-time": "^2.1.32",
24
- "@box/user-selector": "^2.1.35",
20
+ "@box/blueprint-web": "^16.13.0",
21
+ "@box/blueprint-web-assets": "^5.5.9",
22
+ "@box/collaboration-popover": "^2.1.34",
23
+ "@box/readable-time": "^2.1.34",
24
+ "@box/user-selector": "^2.1.37",
25
25
  "clsx": "^1.2.1",
26
26
  "react": "^18.0.0",
27
27
  "react-dom": "^18.0.0",
28
28
  "react-intl": "^6.4.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@box/blueprint-web": "^16.12.0",
32
- "@box/blueprint-web-assets": "^5.5.7",
31
+ "@box/blueprint-web": "^16.13.0",
32
+ "@box/blueprint-web-assets": "^5.5.9",
33
33
  "@box/eslint-plugin-blueprint": "2.1.10",
34
- "@box/readable-time": "^2.1.32",
35
- "@box/storybook-utils": "^1.1.31",
36
- "@box/user-selector": "^2.1.35",
34
+ "@box/readable-time": "^2.1.34",
35
+ "@box/storybook-utils": "^1.1.33",
36
+ "@box/user-selector": "^2.1.37",
37
37
  "react": "^18.0.0",
38
38
  "react-dom": "^18.0.0"
39
39
  },