@ixo/editor 6.28.0 → 6.29.0

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.
@@ -9264,6 +9264,14 @@ var RUBRIC_ENVELOPE_TYPE = "ixo:entity#rubric";
9264
9264
  function buildRubricEnvelope(body) {
9265
9265
  return { "@context": RUBRIC_CONTEXT, type: RUBRIC_ENVELOPE_TYPE, rubric: body };
9266
9266
  }
9267
+ function parsePublishedRubric(raw) {
9268
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) return null;
9269
+ const wrapped = raw.rubric;
9270
+ const candidate = wrapped && typeof wrapped === "object" && !Array.isArray(wrapped) ? wrapped : raw;
9271
+ const body = candidate;
9272
+ if (!body.claimSchema || typeof body.claimSchema !== "object") return null;
9273
+ return migrateRubric({ ...body, "@type": "Rubric" });
9274
+ }
9267
9275
  var EMPTY_INPUTS = {
9268
9276
  deedDid: "",
9269
9277
  collectionId: "",
@@ -20265,6 +20273,7 @@ export {
20265
20273
  normalizeRepeatSubmissions,
20266
20274
  extractRubricFieldCatalog,
20267
20275
  buildRubricEnvelope,
20276
+ parsePublishedRubric,
20268
20277
  parseEvalRubricInputs,
20269
20278
  serializeEvalRubricInputs,
20270
20279
  validateRubricShape,
@@ -20503,4 +20512,4 @@ export {
20503
20512
  executeQueuedFlowAgentCoreCommands,
20504
20513
  FlowAgentService
20505
20514
  };
20506
- //# sourceMappingURL=chunk-TT4TNNOV.js.map
20515
+ //# sourceMappingURL=chunk-LMZV7QFM.js.map