@w100n/documents 0.15.0 → 0.15.1

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/collab.js CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  pending,
12
12
  save,
13
13
  seed
14
- } from "./chunk-Z7UNJ4ND.js";
15
- import "./chunk-M4OQG3EN.js";
14
+ } from "./chunk-BGH36LAR.js";
15
+ import "./chunk-CAPICJ6B.js";
16
16
  import "./chunk-ISOOUYLI.js";
17
17
  export {
18
18
  Refusal,
package/dist/index.cjs CHANGED
@@ -3431,8 +3431,10 @@ var init_write = __esm({
3431
3431
  }
3432
3432
  if (want.note) {
3433
3433
  const u = i >= 0 ? A[i] : null;
3434
- if (u?.note && u.note.id === want.note.id) out.push({ ch: u.ch, raw: u.raw, run: u.run, ctx: u.ctx, u, fmt: u.fmt });
3435
- else {
3434
+ if (u?.note && (u.note.id === want.note.id || !want.note.id)) {
3435
+ want.note.id = u.note.id;
3436
+ out.push({ ch: u.ch, raw: u.raw, run: u.run, ctx: u.ctx, u, fmt: u.fmt });
3437
+ } else {
3436
3438
  want.note.id = typeof want.note.id === "string" && want.note.id ? want.note.id : String(this.noteId());
3437
3439
  out.push({ ch: want.ch, raw: `<w:footnoteReference w:id="${want.note.id}"/>`, run: { open: "<w:r>", rPr: '<w:rPr><w:vertAlign w:val="superscript"/></w:rPr>', fmt: plain, el: null, parent: null }, ctx: [], u: null, fmt: plain });
3438
3440
  }
@@ -4654,7 +4656,7 @@ var init_extensions = __esm({
4654
4656
  var version;
4655
4657
  var init_package = __esm({
4656
4658
  "package.json"() {
4657
- version = "0.15.0";
4659
+ version = "0.15.1";
4658
4660
  }
4659
4661
  });
4660
4662