@bitcobblers/wod-wiki-core 0.43.2153 → 0.44.2155

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
@@ -963,6 +963,31 @@ var BlockKey = class {
963
963
  }
964
964
  };
965
965
 
966
+ // src/models/Tag.ts
967
+ function createTagIndex(tags) {
968
+ const bySlug = /* @__PURE__ */ new Map();
969
+ for (const tag of tags) {
970
+ bySlug.set(tag.slug, tag);
971
+ }
972
+ return {
973
+ resolve: (slug) => bySlug.get(slug),
974
+ list: () => [...bySlug.values()]
975
+ };
976
+ }
977
+
978
+ // src/models/TagReference.ts
979
+ var TAG_REFERENCE_METADATA_KEY = "tagReference";
980
+ function getTagReference(metadata) {
981
+ const value = metadata?.[TAG_REFERENCE_METADATA_KEY];
982
+ if (!value || typeof value !== "object") return void 0;
983
+ const candidate = value;
984
+ if (typeof candidate.slug !== "string" || !candidate.slug) return void 0;
985
+ if (typeof candidate.label !== "string") return void 0;
986
+ if (candidate.functions !== void 0 && !Array.isArray(candidate.functions)) return void 0;
987
+ if (candidate.soundProfileId !== void 0 && typeof candidate.soundProfileId !== "string") return void 0;
988
+ return value;
989
+ }
990
+
966
991
  // src/models/blockContentId.ts
967
992
  function blockContentId(content) {
968
993
  const normalized = content.trim();
@@ -1409,13 +1434,13 @@ function patchFrontmatterProperty(raw, path, value) {
1409
1434
  }
1410
1435
 
1411
1436
  // src/version.ts
1412
- var VERSION = "0.43.2153";
1413
- var GIT_SHA = "3bb3096";
1414
- var BUILD_TIME = "2026-10-22T21:06:18.747Z";
1437
+ var VERSION = "0.44.2155";
1438
+ var GIT_SHA = "6807397";
1439
+ var BUILD_TIME = "2026-10-24T03:58:47.392Z";
1415
1440
  var SEMVER = {
1416
- version: "0.43.2153",
1417
- gitSha: "3bb3096",
1418
- buildTime: "2026-10-22T21:06:18.747Z"
1441
+ version: "0.44.2155",
1442
+ gitSha: "6807397",
1443
+ buildTime: "2026-10-24T03:58:47.392Z"
1419
1444
  };
1420
1445
 
1421
1446
  exports.BUILD_TIME = BUILD_TIME;
@@ -1438,6 +1463,7 @@ exports.ParsedCodeStatement = ParsedCodeStatement;
1438
1463
  exports.REFERENCE_METADATA_KEY = REFERENCE_METADATA_KEY;
1439
1464
  exports.SEMVER = SEMVER;
1440
1465
  exports.SYSTEM_DEFAULT_OUTPUT_UNIT = SYSTEM_DEFAULT_OUTPUT_UNIT;
1466
+ exports.TAG_REFERENCE_METADATA_KEY = TAG_REFERENCE_METADATA_KEY;
1441
1467
  exports.UNIT_CATALOG = UNIT_CATALOG;
1442
1468
  exports.UnitConversionError = UnitConversionError;
1443
1469
  exports.VALID_FENCE_DIALECTS = VALID_FENCE_DIALECTS;
@@ -1448,6 +1474,7 @@ exports.buildRawContent = buildRawContent;
1448
1474
  exports.calculateTotalLines = calculateTotalLines;
1449
1475
  exports.convertViaCatalog = convertViaCatalog;
1450
1476
  exports.createMetricOwnershipLedger = createMetricOwnershipLedger;
1477
+ exports.createTagIndex = createTagIndex;
1451
1478
  exports.detectScriptBlocks = detectScriptBlocks;
1452
1479
  exports.dimensionKeyOf = dimensionKeyOf;
1453
1480
  exports.extractBlockContent = extractBlockContent;
@@ -1458,6 +1485,7 @@ exports.flattenFieldLeaves = flattenFieldLeaves;
1458
1485
  exports.fromNotebookTag = fromNotebookTag;
1459
1486
  exports.getMetricOwnershipLayer = getMetricOwnershipLayer;
1460
1487
  exports.getReferenceMetadata = getReferenceMetadata;
1488
+ exports.getTagReference = getTagReference;
1461
1489
  exports.isNoteEditable = isNoteEditable;
1462
1490
  exports.isNotebookTag = isNotebookTag;
1463
1491
  exports.isWorkoutSectionType = isWorkoutSectionType;