@bitcobblers/wod-wiki-core 0.37.2140 → 0.39.2142

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
@@ -998,6 +998,19 @@ function isWorkoutSectionType(type) {
998
998
  }
999
999
 
1000
1000
  // src/types/notebook.ts
1001
+ var DEFAULT_NOTEBOOK_SLUGS = ["journal", "playground", "guides"];
1002
+ function notebookSlugFromId(slugOrId) {
1003
+ const trimmed = slugOrId.trim();
1004
+ if (trimmed.startsWith("notebook/")) return trimmed.slice("notebook/".length);
1005
+ if (trimmed.startsWith("notebook:")) return trimmed.slice("notebook:".length);
1006
+ return trimmed;
1007
+ }
1008
+ function toNotebookId(slugOrId) {
1009
+ return `notebook/${notebookSlugFromId(slugOrId)}`;
1010
+ }
1011
+ function isNoteEditable(note) {
1012
+ return note.seedOrigin !== "seed";
1013
+ }
1001
1014
  var NOTEBOOK_TAG_PREFIX = "notebook:";
1002
1015
  var toNotebookTag = (notebookId) => `${NOTEBOOK_TAG_PREFIX}${notebookId}`;
1003
1016
  var fromNotebookTag = (tag) => tag.startsWith(NOTEBOOK_TAG_PREFIX) ? tag.slice(NOTEBOOK_TAG_PREFIX.length) : null;
@@ -1396,19 +1409,20 @@ function patchFrontmatterProperty(raw, path, value) {
1396
1409
  }
1397
1410
 
1398
1411
  // src/version.ts
1399
- var VERSION = "0.37.2140";
1400
- var GIT_SHA = "bcf7960";
1401
- var BUILD_TIME = "2026-10-18T21:43:29.081Z";
1412
+ var VERSION = "0.39.2142";
1413
+ var GIT_SHA = "fce2c7d";
1414
+ var BUILD_TIME = "2026-10-19T23:06:12.684Z";
1402
1415
  var SEMVER = {
1403
- version: "0.37.2140",
1404
- gitSha: "bcf7960",
1405
- buildTime: "2026-10-18T21:43:29.081Z"
1416
+ version: "0.39.2142",
1417
+ gitSha: "fce2c7d",
1418
+ buildTime: "2026-10-19T23:06:12.684Z"
1406
1419
  };
1407
1420
 
1408
1421
  exports.BUILD_TIME = BUILD_TIME;
1409
1422
  exports.BlockKey = BlockKey;
1410
1423
  exports.CodeMetadata = CodeMetadata;
1411
1424
  exports.CodeStatement = CodeStatement;
1425
+ exports.DEFAULT_NOTEBOOK_SLUGS = DEFAULT_NOTEBOOK_SLUGS;
1412
1426
  exports.GIT_SHA = GIT_SHA;
1413
1427
  exports.KNOWN_OUTPUT_TYPES = KNOWN_OUTPUT_TYPES;
1414
1428
  exports.KNOWN_SECTION_WIDGETS = KNOWN_SECTION_WIDGETS;
@@ -1444,6 +1458,7 @@ exports.flattenFieldLeaves = flattenFieldLeaves;
1444
1458
  exports.fromNotebookTag = fromNotebookTag;
1445
1459
  exports.getMetricOwnershipLayer = getMetricOwnershipLayer;
1446
1460
  exports.getReferenceMetadata = getReferenceMetadata;
1461
+ exports.isNoteEditable = isNoteEditable;
1447
1462
  exports.isNotebookTag = isNotebookTag;
1448
1463
  exports.isWorkoutSectionType = isWorkoutSectionType;
1449
1464
  exports.lookupUnit = lookupUnit;
@@ -1451,6 +1466,7 @@ exports.mapNoteBlockChanges = mapNoteBlockChanges;
1451
1466
  exports.matchDialectFence = matchDialectFence;
1452
1467
  exports.normalizeFieldComponent = normalizeFieldComponent;
1453
1468
  exports.normalizeFieldPath = normalizeFieldPath;
1469
+ exports.notebookSlugFromId = notebookSlugFromId;
1454
1470
  exports.ownershipRank = ownershipRank;
1455
1471
  exports.parseDocumentSections = parseDocumentSections;
1456
1472
  exports.patchFrontmatterProperty = patchFrontmatterProperty;
@@ -1458,6 +1474,7 @@ exports.reconcileNoteBlocks = reconcileNoteBlocks;
1458
1474
  exports.resolveLayer = resolveLayer;
1459
1475
  exports.runAffordance = runAffordance;
1460
1476
  exports.systemDefaultUnit = systemDefaultUnit;
1477
+ exports.toNotebookId = toNotebookId;
1461
1478
  exports.toNotebookTag = toNotebookTag;
1462
1479
  exports.validateNoteBlocks = validateNoteBlocks;
1463
1480
  exports.valueKindOf = valueKindOf;