@ai-matrx/content-ir-react 0.12.0 → 0.12.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/react.cjs CHANGED
@@ -128,9 +128,9 @@ var import_react4 = require("react");
128
128
  var import_content_ir = require("@ai-matrx/content-ir");
129
129
 
130
130
  // directives/item-changes.ts
131
+ var import_uuid = require("@ai-matrx/kit/uuid");
131
132
  var TARGETING_CLASSES = /* @__PURE__ */ new Set(["update", "delete"]);
132
133
  var NOT_A_CHANGE = /* @__PURE__ */ new Set(["__kind", "id"]);
133
- var UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
134
134
  var CHANGE_VALUE_MAX = 60;
135
135
  function itemRecordId(item) {
136
136
  const id = item.id;
@@ -143,7 +143,7 @@ function fieldLabel(key) {
143
143
  return spaced.charAt(0).toUpperCase() + spaced.slice(1);
144
144
  }
145
145
  function recordFallbackName(nounLabel3, id) {
146
- const short = UUID_RE.test(id) ? id.slice(0, 8) : id.length > 12 ? `${id.slice(0, 12)}\u2026` : id;
146
+ const short = (0, import_uuid.isUuidShape)(id) ? id.slice(0, 8) : id.length > 12 ? `${id.slice(0, 12)}\u2026` : id;
147
147
  return `${nounLabel3} ${short}`;
148
148
  }
149
149
  function describeValue(value) {