@ixo/editor 5.20.0-experimental.4 → 5.20.0-experimental.5

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.
@@ -328,6 +328,15 @@ registerAction({
328
328
  }
329
329
  });
330
330
 
331
+ // src/core/lib/did.ts
332
+ var DID_PATTERN = /\bdid:[a-z0-9]+:[A-Za-z0-9._:%-]+/i;
333
+ function extractDid(value) {
334
+ const raw = String(value || "").trim();
335
+ if (!raw) return "";
336
+ const match = raw.match(DID_PATTERN);
337
+ return match?.[0] || "";
338
+ }
339
+
331
340
  // src/core/lib/actionRegistry/actions/pod/domainSingleSelection.ts
332
341
  registerAction({
333
342
  type: "qi/pod.domain-single-selection",
@@ -355,7 +364,7 @@ registerAction({
355
364
  }
356
365
  ],
357
366
  run: async (inputs) => {
358
- const selectedBlueprintDid = String(inputs.selectedBlueprintDid || "").trim();
367
+ const selectedBlueprintDid = extractDid(inputs.selectedBlueprintDid);
359
368
  if (!selectedBlueprintDid) throw new Error("selectedBlueprintDid is required");
360
369
  const selectedBlueprintName = String(inputs.selectedBlueprintName || "").trim();
361
370
  const selectedBlueprintDescription = String(inputs.selectedBlueprintDescription || "").trim();
@@ -10112,6 +10121,7 @@ export {
10112
10121
  buildServicesFromHandlers,
10113
10122
  getDiffResolver,
10114
10123
  hasDiffResolver,
10124
+ extractDid,
10115
10125
  extractSurveyAnswerSchema,
10116
10126
  transformSurveyToCredentialSubject,
10117
10127
  buildVerifiableCredential,
@@ -10205,4 +10215,4 @@ export {
10205
10215
  executeQueuedFlowAgentCoreCommands,
10206
10216
  FlowAgentService
10207
10217
  };
10208
- //# sourceMappingURL=chunk-25XKVLR3.mjs.map
10218
+ //# sourceMappingURL=chunk-6N5JNDZ3.mjs.map