@bitcobblers/wod-wiki-engine 0.62.2263 → 0.62.2265

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/index.cjs CHANGED
@@ -941,13 +941,13 @@ function csvToTelemetryBundle(csv) {
941
941
  }
942
942
 
943
943
  // src/version.ts
944
- var VERSION = "0.62.2263";
945
- var GIT_SHA = "fd25940";
946
- var BUILD_TIME = "2026-11-23T19:21:39.932Z";
944
+ var VERSION = "0.62.2265";
945
+ var GIT_SHA = "d2bb120";
946
+ var BUILD_TIME = "2026-11-23T22:41:50.837Z";
947
947
  var SEMVER = {
948
- version: "0.62.2263",
949
- gitSha: "fd25940",
950
- buildTime: "2026-11-23T19:21:39.932Z"
948
+ version: "0.62.2265",
949
+ gitSha: "d2bb120",
950
+ buildTime: "2026-11-23T22:41:50.837Z"
951
951
  };
952
952
  var SEED_SCHEMA = 9;
953
953
  var SEED_REGISTERED_WIDGETS = wodWikiCore.KNOWN_SECTION_WIDGETS;
@@ -4282,10 +4282,17 @@ async function setNoteNotebooks(storage, input) {
4282
4282
  const primaryUserNb = finalMemberships.find(
4283
4283
  (id) => id !== "notebook/journal" && id !== "notebook/playground"
4284
4284
  );
4285
+ const cleanedTags = note.tags ? note.tags.filter((tag) => {
4286
+ if (!tag.startsWith("notebook:") && !tag.startsWith("notebook/")) return true;
4287
+ const slug = wodWikiCore.notebookSlugFromId(tag);
4288
+ if (!slug) return true;
4289
+ return finalMemberships.includes(wodWikiCore.toNotebookId(slug));
4290
+ }) : void 0;
4285
4291
  const { notebookId: _priorSingle, ...rest } = note;
4286
4292
  const updatedNote = {
4287
4293
  ...rest,
4288
4294
  notebookIds: finalMemberships,
4295
+ ...cleanedTags !== void 0 ? { tags: cleanedTags } : {},
4289
4296
  ...primaryUserNb ? { notebookId: primaryUserNb } : {}
4290
4297
  };
4291
4298
  await tx.readwrite("notes").put(updatedNote);