@ixo/editor 5.20.0-experimental.3 → 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.
- package/dist/{chunk-6CBTLK7K.mjs → chunk-6N5JNDZ3.mjs} +14 -29
- package/dist/chunk-6N5JNDZ3.mjs.map +1 -0
- package/dist/{chunk-B32AHE5F.mjs → chunk-EOOKJV32.mjs} +4 -3
- package/dist/{chunk-B32AHE5F.mjs.map → chunk-EOOKJV32.mjs.map} +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/mantine/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-6CBTLK7K.mjs.map +0 -1
|
@@ -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 =
|
|
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();
|
|
@@ -397,23 +406,13 @@ registerAction({
|
|
|
397
406
|
{ path: "skipped", displayName: "Skipped", type: "boolean", description: "False when a parent entity was selected" }
|
|
398
407
|
],
|
|
399
408
|
pendingDisplayFields: ["selectedEntityName", "selectedEntityDid"]
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
name: "skipped",
|
|
403
|
-
displayName: "Selection Skipped",
|
|
404
|
-
description: "Fires when parent entity selection is skipped.",
|
|
405
|
-
payloadSchema: [
|
|
406
|
-
{ path: "selectedEntityDid", displayName: "Selected Entity DID", type: "string", description: "Null when skipped" },
|
|
407
|
-
{ path: "skipped", displayName: "Skipped", type: "boolean", description: "True when skipped" }
|
|
408
|
-
],
|
|
409
|
-
pendingDisplayFields: ["skipped"]
|
|
410
409
|
}
|
|
411
410
|
],
|
|
412
411
|
run: async (inputs) => {
|
|
413
412
|
const skipped = !!inputs.skipped;
|
|
414
413
|
if (skipped) {
|
|
415
414
|
const output2 = { selectedEntityDid: null, selectedEntityName: "", selectedEntityType: "", skipped: true };
|
|
416
|
-
return { output: output2, events: [
|
|
415
|
+
return { output: output2, events: [] };
|
|
417
416
|
}
|
|
418
417
|
const selectedEntityDid = String(inputs.selectedEntityDid || "").trim();
|
|
419
418
|
if (!selectedEntityDid) throw new Error("selectedEntityDid is required when not skipping");
|
|
@@ -605,24 +604,10 @@ registerAction({
|
|
|
605
604
|
{ path: "flowTemplateConfig", displayName: "Flow Template Config", type: "object", description: "Event payload consumed by POD signing/import steps" }
|
|
606
605
|
],
|
|
607
606
|
events: [
|
|
608
|
-
{
|
|
609
|
-
name: "configured",
|
|
610
|
-
displayName: "Flow Templates Configured",
|
|
611
|
-
description: "Fires when protocol flow templates are selected for the POD.",
|
|
612
|
-
payloadSchema: [
|
|
613
|
-
{
|
|
614
|
-
path: "flowTemplateConfig",
|
|
615
|
-
displayName: "Flow Template Config",
|
|
616
|
-
type: "object",
|
|
617
|
-
description: "Selected templates grouped by their protocol DID for later import"
|
|
618
|
-
}
|
|
619
|
-
],
|
|
620
|
-
pendingDisplayFields: ["flowTemplateConfig.templateCount", "flowTemplateConfig.protocolCount"]
|
|
621
|
-
},
|
|
622
607
|
{
|
|
623
608
|
name: "selected",
|
|
624
609
|
displayName: "Flow Templates Selected",
|
|
625
|
-
description: "Fires
|
|
610
|
+
description: "Fires when the flow template selection is confirmed, including an empty selection.",
|
|
626
611
|
payloadSchema: [
|
|
627
612
|
{
|
|
628
613
|
path: "flowTemplateConfig",
|
|
@@ -658,7 +643,6 @@ registerAction({
|
|
|
658
643
|
return {
|
|
659
644
|
output: { selectedProtocolTemplates, selectedFlowDids, flowTemplateConfig },
|
|
660
645
|
events: [
|
|
661
|
-
{ name: "configured", payload: { flowTemplateConfig } },
|
|
662
646
|
{
|
|
663
647
|
name: "selected",
|
|
664
648
|
payload: {
|
|
@@ -10137,6 +10121,7 @@ export {
|
|
|
10137
10121
|
buildServicesFromHandlers,
|
|
10138
10122
|
getDiffResolver,
|
|
10139
10123
|
hasDiffResolver,
|
|
10124
|
+
extractDid,
|
|
10140
10125
|
extractSurveyAnswerSchema,
|
|
10141
10126
|
transformSurveyToCredentialSubject,
|
|
10142
10127
|
buildVerifiableCredential,
|
|
@@ -10230,4 +10215,4 @@ export {
|
|
|
10230
10215
|
executeQueuedFlowAgentCoreCommands,
|
|
10231
10216
|
FlowAgentService
|
|
10232
10217
|
};
|
|
10233
|
-
//# sourceMappingURL=chunk-
|
|
10218
|
+
//# sourceMappingURL=chunk-6N5JNDZ3.mjs.map
|