@ixo/editor 7.5.2 → 7.6.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.
Files changed (37) hide show
  1. package/dist/{CollectionLifecycleFlowDetail-2SRQUN4V.js → CollectionLifecycleFlowDetail-UL2HCPDI.js} +3 -6
  2. package/dist/CollectionLifecycleFlowDetail-UL2HCPDI.js.map +1 -0
  3. package/dist/{EvalEngineFlowDetail-FQAX4PJ5.js → EvalEngineFlowDetail-JTZWOUTV.js} +3 -6
  4. package/dist/EvalEngineFlowDetail-JTZWOUTV.js.map +1 -0
  5. package/dist/{chunk-5JEXVSJG.js → chunk-2SKTQGH5.js} +2 -2
  6. package/dist/chunk-H3UJUFQJ.js +344 -0
  7. package/dist/chunk-H3UJUFQJ.js.map +1 -0
  8. package/dist/{chunk-6S3WBLXO.js → chunk-KKTYO345.js} +2641 -2098
  9. package/dist/chunk-KKTYO345.js.map +1 -0
  10. package/dist/{chunk-FYPDR7DJ.js → chunk-QHZMBOXS.js} +13 -9
  11. package/dist/chunk-QHZMBOXS.js.map +1 -0
  12. package/dist/{connections-Cs5-9hGz.d.ts → connections-o7kw2vBI.d.ts} +1 -1
  13. package/dist/core/index.cjs +566 -215
  14. package/dist/core/index.cjs.map +1 -1
  15. package/dist/core/index.d.ts +9 -7
  16. package/dist/core/index.js +16 -2
  17. package/dist/core/index.js.map +1 -1
  18. package/dist/graphql-client-D7Mnaei-.d.ts +536 -0
  19. package/dist/index-D99iLwsk.d.ts +112 -0
  20. package/dist/index.d.ts +4 -4
  21. package/dist/index.js +3 -3
  22. package/dist/mantine/index.d.ts +98 -105
  23. package/dist/mantine/index.js +54 -249
  24. package/dist/mantine/index.js.map +1 -1
  25. package/dist/{types-C6MmkH69.d.ts → types-6w9s8P5j.d.ts} +851 -1848
  26. package/package.json +18 -13
  27. package/style-core.css +286 -0
  28. package/style-mantine.css +8856 -19
  29. package/style-scoped.css +1478 -255
  30. package/style.css +8856 -19
  31. package/dist/CollectionLifecycleFlowDetail-2SRQUN4V.js.map +0 -1
  32. package/dist/EvalEngineFlowDetail-FQAX4PJ5.js.map +0 -1
  33. package/dist/chunk-6S3WBLXO.js.map +0 -1
  34. package/dist/chunk-FYPDR7DJ.js.map +0 -1
  35. package/dist/graphql-client-BanLWXV8.d.ts +0 -766
  36. package/dist/nodeContext-CV9D4s3X.d.ts +0 -45
  37. /package/dist/{chunk-5JEXVSJG.js.map → chunk-2SKTQGH5.js.map} +0 -0
@@ -54,8 +54,13 @@ import {
54
54
  blockSpecs,
55
55
  getEntity,
56
56
  getExtraSlashMenuItems,
57
+ getInsertEntries,
58
+ getSlashMenuItems,
57
59
  inlineContentSpecs,
60
+ insertEntry,
61
+ isIxoBlockType,
58
62
  ixoGraphQLClient,
63
+ resolveProfile,
59
64
  useBlockPresence,
60
65
  useCreateCollaborativeIxoEditor,
61
66
  useCreateIxoEditor,
@@ -65,7 +70,7 @@ import {
65
70
  usePanel,
66
71
  usePanelStore,
67
72
  useTrackBlockFocus
68
- } from "../chunk-6S3WBLXO.js";
73
+ } from "../chunk-KKTYO345.js";
69
74
  import "../chunk-PNS4Y2PQ.js";
70
75
  import "../chunk-QIDYNTJV.js";
71
76
  import "../chunk-7ZLW7H37.js";
@@ -109,8 +114,14 @@ import {
109
114
  import "../chunk-NZ7AXA7B.js";
110
115
  import "../chunk-BKLSSLPZ.js";
111
116
  import "../chunk-XVA7QRVH.js";
117
+ import {
118
+ blocksToPageMarkdown,
119
+ pageContentHash,
120
+ pageDocumentHash,
121
+ pageMarkdownToBlocks
122
+ } from "../chunk-H3UJUFQJ.js";
112
123
  import "../chunk-YYNMESIF.js";
113
- import "../chunk-FYPDR7DJ.js";
124
+ import "../chunk-QHZMBOXS.js";
114
125
  import "../chunk-MDCOAGIF.js";
115
126
  import "../chunk-66XW6TQT.js";
116
127
  import "../chunk-IH4T7V4C.js";
@@ -348,257 +359,43 @@ function DebugButton({ editor, handlers }) {
348
359
  ));
349
360
  }
350
361
 
351
- // src/mantine/components/PageHeader.tsx
352
- import React2, { useState as useState2, useRef as useRef2, useEffect as useEffect2 } from "react";
353
- function PageHeader({
354
- title = "New page",
355
- icon: icon2,
356
- isPrivate = true,
357
- onPrivacyChange,
358
- lastEdited,
359
- onShare,
360
- onFavorite,
361
- isFavorited = false,
362
- menuItems = []
363
- }) {
364
- const [isMenuOpen, setIsMenuOpen] = useState2(false);
365
- const [isPrivacyOpen, setIsPrivacyOpen] = useState2(false);
366
- const menuRef = useRef2(null);
367
- const privacyRef = useRef2(null);
368
- useEffect2(() => {
369
- function handleClickOutside(event) {
370
- if (menuRef.current && !menuRef.current.contains(event.target)) {
371
- setIsMenuOpen(false);
372
- }
373
- if (privacyRef.current && !privacyRef.current.contains(event.target)) {
374
- setIsPrivacyOpen(false);
375
- }
376
- }
377
- if (isMenuOpen || isPrivacyOpen) {
378
- document.addEventListener("mousedown", handleClickOutside);
379
- }
380
- return () => {
381
- document.removeEventListener("mousedown", handleClickOutside);
382
- };
383
- }, [isMenuOpen, isPrivacyOpen]);
384
- const handleMenuItemClick = (item) => {
385
- if (!item.disabled) {
386
- item.onClick();
387
- setIsMenuOpen(false);
388
- }
389
- };
390
- return /* @__PURE__ */ React2.createElement("div", { style: styles.container }, /* @__PURE__ */ React2.createElement("div", { style: styles.leftSection }, /* @__PURE__ */ React2.createElement("span", { style: styles.icon }, icon2 || "\u{1F4C4}"), /* @__PURE__ */ React2.createElement("span", { style: styles.title }, title), /* @__PURE__ */ React2.createElement("div", { style: styles.privacyContainer, ref: privacyRef }, /* @__PURE__ */ React2.createElement("button", { style: styles.privacyBadge, onClick: () => onPrivacyChange && setIsPrivacyOpen(!isPrivacyOpen) }, /* @__PURE__ */ React2.createElement("span", { style: styles.lockIcon }, isPrivate ? "\u{1F512}" : "\u{1F310}"), /* @__PURE__ */ React2.createElement("span", null, isPrivate ? "Private" : "Public"), onPrivacyChange && /* @__PURE__ */ React2.createElement("span", { style: styles.chevron }, "\u25BE")), isPrivacyOpen && onPrivacyChange && /* @__PURE__ */ React2.createElement("div", { style: styles.dropdown }, /* @__PURE__ */ React2.createElement(
391
- "button",
392
- {
393
- style: {
394
- ...styles.menuItem,
395
- ...isPrivate ? styles.menuItemActive : {}
396
- },
397
- onClick: () => {
398
- onPrivacyChange(true);
399
- setIsPrivacyOpen(false);
400
- }
401
- },
402
- /* @__PURE__ */ React2.createElement("span", { style: styles.menuItemIcon }, "\u{1F512}"),
403
- /* @__PURE__ */ React2.createElement("span", null, "Private")
404
- ), /* @__PURE__ */ React2.createElement(
405
- "button",
406
- {
407
- style: {
408
- ...styles.menuItem,
409
- ...!isPrivate ? styles.menuItemActive : {}
410
- },
411
- onClick: () => {
412
- onPrivacyChange(false);
413
- setIsPrivacyOpen(false);
414
- }
415
- },
416
- /* @__PURE__ */ React2.createElement("span", { style: styles.menuItemIcon }, "\u{1F310}"),
417
- /* @__PURE__ */ React2.createElement("span", null, "Public")
418
- )))), /* @__PURE__ */ React2.createElement("div", { style: styles.rightSection }, lastEdited && /* @__PURE__ */ React2.createElement("span", { style: styles.editedText }, lastEdited), onShare && /* @__PURE__ */ React2.createElement("button", { style: styles.shareButton, onClick: onShare }, "Share"), onFavorite && /* @__PURE__ */ React2.createElement("button", { style: styles.iconButton, onClick: onFavorite }, isFavorited ? "\u2605" : "\u2606"), menuItems.length > 0 && /* @__PURE__ */ React2.createElement("div", { style: styles.menuContainer, ref: menuRef }, /* @__PURE__ */ React2.createElement("button", { style: styles.menuButton, onClick: () => setIsMenuOpen(!isMenuOpen), "aria-label": "Menu" }, /* @__PURE__ */ React2.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, /* @__PURE__ */ React2.createElement("circle", { cx: "3", cy: "8", r: "1.5" }), /* @__PURE__ */ React2.createElement("circle", { cx: "8", cy: "8", r: "1.5" }), /* @__PURE__ */ React2.createElement("circle", { cx: "13", cy: "8", r: "1.5" }))), isMenuOpen && /* @__PURE__ */ React2.createElement("div", { style: styles.dropdown }, menuItems.map((item, index) => /* @__PURE__ */ React2.createElement(React2.Fragment, { key: index }, item.divider && index > 0 && /* @__PURE__ */ React2.createElement("div", { style: styles.divider }), /* @__PURE__ */ React2.createElement(
419
- "button",
420
- {
421
- style: {
422
- ...styles.menuItem,
423
- ...item.disabled ? styles.menuItemDisabled : {}
424
- },
425
- onClick: () => handleMenuItemClick(item),
426
- disabled: item.disabled
427
- },
428
- item.icon && /* @__PURE__ */ React2.createElement("span", { style: styles.menuItemIcon }, item.icon),
429
- /* @__PURE__ */ React2.createElement("span", null, item.label)
430
- )))))));
431
- }
432
- var styles = {
433
- container: {
434
- display: "flex",
435
- alignItems: "center",
436
- justifyContent: "space-between",
437
- padding: "8px 12px",
438
- borderBottom: "1px solid rgba(255, 255, 255, 0.1)",
439
- backgroundColor: "transparent",
440
- fontSize: "14px",
441
- minHeight: "44px",
442
- color: "rgba(255, 255, 255, 0.9)"
443
- },
444
- leftSection: {
445
- display: "flex",
446
- alignItems: "center",
447
- gap: "8px"
448
- },
449
- icon: {
450
- fontSize: "16px"
451
- },
452
- title: {
453
- fontWeight: 500,
454
- color: "rgba(255, 255, 255, 0.9)"
455
- },
456
- privacyContainer: {
457
- position: "relative"
458
- },
459
- privacyBadge: {
460
- display: "flex",
461
- alignItems: "center",
462
- gap: "4px",
463
- padding: "2px 6px",
464
- border: "none",
465
- backgroundColor: "transparent",
466
- color: "rgba(255, 255, 255, 0.5)",
467
- fontSize: "12px",
468
- cursor: "pointer",
469
- borderRadius: "3px"
470
- },
471
- lockIcon: {
472
- fontSize: "12px"
473
- },
474
- chevron: {
475
- fontSize: "10px",
476
- marginLeft: "2px"
477
- },
478
- rightSection: {
479
- display: "flex",
480
- alignItems: "center",
481
- gap: "8px"
482
- },
483
- editedText: {
484
- color: "rgba(255, 255, 255, 0.4)",
485
- fontSize: "12px"
486
- },
487
- shareButton: {
488
- padding: "4px 10px",
489
- border: "none",
490
- backgroundColor: "transparent",
491
- color: "rgba(255, 255, 255, 0.9)",
492
- fontSize: "14px",
493
- cursor: "pointer",
494
- borderRadius: "3px",
495
- fontWeight: 500
496
- },
497
- iconButton: {
498
- padding: "4px 8px",
499
- border: "none",
500
- backgroundColor: "transparent",
501
- color: "rgba(255, 255, 255, 0.5)",
502
- fontSize: "16px",
503
- cursor: "pointer",
504
- borderRadius: "3px"
505
- },
506
- menuContainer: {
507
- position: "relative"
508
- },
509
- menuButton: {
510
- display: "flex",
511
- alignItems: "center",
512
- justifyContent: "center",
513
- padding: "4px 8px",
514
- border: "none",
515
- backgroundColor: "transparent",
516
- color: "rgba(255, 255, 255, 0.5)",
517
- cursor: "pointer",
518
- borderRadius: "3px"
519
- },
520
- dropdown: {
521
- position: "absolute",
522
- top: "100%",
523
- right: 0,
524
- marginTop: "4px",
525
- minWidth: "180px",
526
- backgroundColor: "rgb(37, 37, 37)",
527
- borderRadius: "6px",
528
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.4)",
529
- border: "1px solid rgba(255, 255, 255, 0.1)",
530
- padding: "4px 0",
531
- zIndex: 1e3
532
- },
533
- menuItem: {
534
- display: "flex",
535
- alignItems: "center",
536
- gap: "8px",
537
- width: "100%",
538
- padding: "8px 12px",
539
- border: "none",
540
- backgroundColor: "transparent",
541
- color: "rgba(255, 255, 255, 0.9)",
542
- fontSize: "14px",
543
- cursor: "pointer",
544
- textAlign: "left"
545
- },
546
- menuItemDisabled: {
547
- color: "rgba(255, 255, 255, 0.3)",
548
- cursor: "not-allowed"
549
- },
550
- menuItemActive: {
551
- backgroundColor: "rgba(255, 255, 255, 0.08)"
552
- },
553
- menuItemIcon: {
554
- display: "flex",
555
- alignItems: "center",
556
- fontSize: "16px"
557
- },
558
- divider: {
559
- height: "1px",
560
- backgroundColor: "rgba(255, 255, 255, 0.1)",
561
- margin: "4px 0"
562
- }
563
- };
564
-
565
362
  // src/mantine/flow/FlowNodePanel.tsx
566
- import React3 from "react";
363
+ import React2 from "react";
567
364
  function FlowNodePanel(props) {
568
- return /* @__PURE__ */ React3.createElement(RunSessionProvider, { sessionRunId: props.sessionRunId, runEventLog: props.runEventLog || props.editor?._runEventLog, designPodAuthority: props.designPodAuthority }, /* @__PURE__ */ React3.createElement(FlowPanelEmbeddedContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(FlowNodePanelContent, { ...props })));
365
+ return /* @__PURE__ */ React2.createElement(RunSessionProvider, { sessionRunId: props.sessionRunId, runEventLog: props.runEventLog || props.editor?._runEventLog, designPodAuthority: props.designPodAuthority }, /* @__PURE__ */ React2.createElement(FlowPanelEmbeddedContext.Provider, { value: true }, /* @__PURE__ */ React2.createElement(FlowNodePanelContent, { ...props })));
569
366
  }
570
367
  function FlowNodePanelContent({ editor, block, isDisabled }) {
571
368
  switch (block?.type) {
572
369
  case "action":
573
- return /* @__PURE__ */ React3.createElement(ActionFlowPanel, { editor, block, isDisabled });
370
+ return /* @__PURE__ */ React2.createElement(ActionFlowPanel, { editor, block, isDisabled });
574
371
  case "form":
575
- return /* @__PURE__ */ React3.createElement(FormPanel, { editor, block });
372
+ return /* @__PURE__ */ React2.createElement(FormPanel, { editor, block });
576
373
  case "proposal":
577
- return /* @__PURE__ */ React3.createElement(FlowConfig, { editor, block });
374
+ return /* @__PURE__ */ React2.createElement(FlowConfig, { editor, block });
578
375
  case "domainCreator":
579
- return /* @__PURE__ */ React3.createElement(DomainCreatorSurveyPanel, { editor, block });
376
+ return /* @__PURE__ */ React2.createElement(DomainCreatorSurveyPanel, { editor, block });
580
377
  case "domainCreatorSign":
581
- return /* @__PURE__ */ React3.createElement(SignPanel, { editor, block });
378
+ return /* @__PURE__ */ React2.createElement(SignPanel, { editor, block });
582
379
  case "governanceGroup":
583
- return /* @__PURE__ */ React3.createElement(GovernanceGroupPanel, { editor, block });
380
+ return /* @__PURE__ */ React2.createElement(GovernanceGroupPanel, { editor, block });
584
381
  case "claim":
585
- return /* @__PURE__ */ React3.createElement(ClaimFlowView, { editor, block });
382
+ return /* @__PURE__ */ React2.createElement(ClaimFlowView, { editor, block });
586
383
  case "evaluator":
587
- return /* @__PURE__ */ React3.createElement(EvaluatorFlowView, { editor, block });
384
+ return /* @__PURE__ */ React2.createElement(EvaluatorFlowView, { editor, block });
588
385
  case "notify":
589
- return /* @__PURE__ */ React3.createElement(NotifyFlowView, { editor, block, isDisabled });
386
+ return /* @__PURE__ */ React2.createElement(NotifyFlowView, { editor, block, isDisabled });
590
387
  case "checkbox":
591
- return /* @__PURE__ */ React3.createElement(CheckboxFlowView, { editor, block, isDisabled });
388
+ return /* @__PURE__ */ React2.createElement(CheckboxFlowView, { editor, block, isDisabled });
592
389
  case "secrets":
593
- return /* @__PURE__ */ React3.createElement(SecretsFlowView, { editor, block });
390
+ return /* @__PURE__ */ React2.createElement(SecretsFlowView, { editor, block });
594
391
  case "skills":
595
- return /* @__PURE__ */ React3.createElement(SkillsFlowView, { editor, block });
392
+ return /* @__PURE__ */ React2.createElement(SkillsFlowView, { editor, block });
596
393
  // email / apiRequest: detail UI is a private PanelContent fn; render the
597
394
  // full FlowView card (its own onClick opens the registered panel).
598
395
  case "email":
599
- return /* @__PURE__ */ React3.createElement(EmailFlowView, { editor, block, isDisabled });
396
+ return /* @__PURE__ */ React2.createElement(EmailFlowView, { editor, block, isDisabled });
600
397
  case "apiRequest":
601
- return /* @__PURE__ */ React3.createElement(ApiRequestFlowView, { editor, block, isDisabled });
398
+ return /* @__PURE__ */ React2.createElement(ApiRequestFlowView, { editor, block, isDisabled });
602
399
  // enumChecklist has no flow-mode panel (renders EnumChecklistBlock in all
603
400
  // modes). Fallback to null / "open in document".
604
401
  case "enumChecklist":
@@ -608,40 +405,40 @@ function FlowNodePanelContent({ editor, block, isDisabled }) {
608
405
  }
609
406
 
610
407
  // src/mantine/flow/FlowNodeConfigPanel.tsx
611
- import React4 from "react";
408
+ import React3 from "react";
612
409
  function FlowNodeConfigPanel(props) {
613
- return /* @__PURE__ */ React4.createElement(FlowPanelEmbeddedContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(FlowNodeConfigPanelContent, { ...props }));
410
+ return /* @__PURE__ */ React3.createElement(FlowPanelEmbeddedContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(FlowNodeConfigPanelContent, { ...props }));
614
411
  }
615
412
  function FlowNodeConfigPanelContent({ editor, block }) {
616
413
  switch (block?.type) {
617
414
  case "action":
618
- return /* @__PURE__ */ React4.createElement(TemplateConfig12, { editor, block });
415
+ return /* @__PURE__ */ React3.createElement(TemplateConfig12, { editor, block });
619
416
  case "claim":
620
- return /* @__PURE__ */ React4.createElement(TemplateConfig6, { editor, block });
417
+ return /* @__PURE__ */ React3.createElement(TemplateConfig6, { editor, block });
621
418
  case "form":
622
- return /* @__PURE__ */ React4.createElement(TemplateConfig9, { editor, block });
419
+ return /* @__PURE__ */ React3.createElement(TemplateConfig9, { editor, block });
623
420
  case "checkbox":
624
- return /* @__PURE__ */ React4.createElement(TemplateConfig, { editor, block });
421
+ return /* @__PURE__ */ React3.createElement(TemplateConfig, { editor, block });
625
422
  case "evaluator":
626
- return /* @__PURE__ */ React4.createElement(TemplateConfig2, { editor, block });
423
+ return /* @__PURE__ */ React3.createElement(TemplateConfig2, { editor, block });
627
424
  case "notify":
628
- return /* @__PURE__ */ React4.createElement(TemplateConfig5, { editor, block });
425
+ return /* @__PURE__ */ React3.createElement(TemplateConfig5, { editor, block });
629
426
  case "email":
630
- return /* @__PURE__ */ React4.createElement(TemplateConfig8, { editor, block });
427
+ return /* @__PURE__ */ React3.createElement(TemplateConfig8, { editor, block });
631
428
  case "apiRequest":
632
- return /* @__PURE__ */ React4.createElement(TemplateConfig4, { editor, block });
429
+ return /* @__PURE__ */ React3.createElement(TemplateConfig4, { editor, block });
633
430
  case "proposal":
634
- return /* @__PURE__ */ React4.createElement(TemplateConfig3, { editor, block });
431
+ return /* @__PURE__ */ React3.createElement(TemplateConfig3, { editor, block });
635
432
  case "domainCreator":
636
- return /* @__PURE__ */ React4.createElement(TemplateConfig7, { editor, block });
433
+ return /* @__PURE__ */ React3.createElement(TemplateConfig7, { editor, block });
637
434
  case "domainCreatorSign":
638
- return /* @__PURE__ */ React4.createElement(TemplateConfig10, { editor, block });
435
+ return /* @__PURE__ */ React3.createElement(TemplateConfig10, { editor, block });
639
436
  case "governanceGroup":
640
- return /* @__PURE__ */ React4.createElement(TemplateConfig11, { editor, block });
437
+ return /* @__PURE__ */ React3.createElement(TemplateConfig11, { editor, block });
641
438
  case "secrets":
642
- return /* @__PURE__ */ React4.createElement(SecretsTemplateView, { editor, block });
439
+ return /* @__PURE__ */ React3.createElement(SecretsTemplateView, { editor, block });
643
440
  case "skills":
644
- return /* @__PURE__ */ React4.createElement(SkillsTemplateView, { editor, block });
441
+ return /* @__PURE__ */ React3.createElement(SkillsTemplateView, { editor, block });
645
442
  default:
646
443
  return null;
647
444
  }
@@ -671,13 +468,13 @@ export {
671
468
  IxoEditor,
672
469
  ListBlockSpec,
673
470
  OverviewBlock,
674
- PageHeader,
675
471
  PageTitle,
676
472
  ProposalBlockSpec,
677
473
  RunSessionProvider,
678
474
  StakeType,
679
475
  ValidatorActionType,
680
476
  blockSpecs,
477
+ blocksToPageMarkdown,
681
478
  didToMatrixUserId,
682
479
  fillOpenSurvey,
683
480
  findOrCreateDMRoom,
@@ -688,12 +485,20 @@ export {
688
485
  getExtraSlashMenuItems,
689
486
  getHomeserver,
690
487
  getHookedActionType,
488
+ getInsertEntries,
489
+ getSlashMenuItems,
691
490
  initializeHookedActions,
692
491
  inlineContentSpecs,
492
+ insertEntry,
493
+ isIxoBlockType,
693
494
  ixoGraphQLClient,
495
+ pageContentHash,
496
+ pageDocumentHash,
497
+ pageMarkdownToBlocks,
694
498
  registerBlockActions,
695
499
  registerBuiltInActionTypes,
696
500
  registerHookedActionType,
501
+ resolveProfile,
697
502
  sendDirectMessage,
698
503
  setDMNotificationRecord,
699
504
  shouldNotify,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/mantine/components/DebugButton.tsx","../../src/mantine/components/PageHeader.tsx","../../src/mantine/flow/FlowNodePanel.tsx","../../src/mantine/flow/FlowNodeConfigPanel.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { IconBraces, IconShieldPlus, IconTools } from '@tabler/icons-react';\nimport type { IxoEditorType } from '../../core/types';\nimport type { BlocknoteHandlers } from '../context/BlocknoteContext';\nimport { DevUcanGrantButton } from './DevUcanGrantButton';\nimport { icon } from './ReusablePanel';\nimport { DM_NOTIFICATIONS_MAP_KEY } from '../../core/lib/flowEngine/dmNotificationState';\nimport { RUNS_MAP_KEY, RUNS_TERMINAL_MAP_KEY } from '../../core/lib/flowEngine/runs';\n\nconst ACCENT = '#00ff88';\nconst SURFACE = '#1a1a2e';\n\n/**\n * Dev-tools launcher: a single round button pinned to the bottom-right (the Next.js\n * dev indicator owns the bottom-left) that expands into the individual tools, so the\n * dev overlay costs one small dot instead of a row of bars across the flow canvas.\n */\nexport function DebugButton({ editor, handlers }: { editor: IxoEditorType; handlers?: BlocknoteHandlers }) {\n const [menuOpen, setMenuOpen] = useState(false);\n const [ucanOpen, setUcanOpen] = useState(false);\n const [hovered, setHovered] = useState<string | null>(null);\n const containerRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!menuOpen) return;\n\n const onPointerDown = (event: MouseEvent) => {\n if (!containerRef.current?.contains(event.target as Node)) setMenuOpen(false);\n };\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') setMenuOpen(false);\n };\n\n document.addEventListener('mousedown', onPointerDown);\n document.addEventListener('keydown', onKeyDown);\n return () => {\n document.removeEventListener('mousedown', onPointerDown);\n document.removeEventListener('keydown', onKeyDown);\n };\n }, [menuOpen]);\n\n const yMapToObject = (map: any) => {\n if (!map) return null;\n const obj: Record<string, any> = {};\n map.forEach((value: any, key: string) => {\n // Recursively unwrap nested Y.Maps so their contents are visible in JSON\n if (value && typeof value.forEach === 'function' && typeof value.get === 'function' && !Array.isArray(value)) {\n obj[key] = yMapToObject(value);\n } else if (value && typeof value.toArray === 'function') {\n obj[key] = value.toArray();\n } else {\n obj[key] = value;\n }\n });\n return Object.keys(obj).length === 0 ? '(empty)' : obj;\n };\n\n const parseJsonProp = (raw: unknown) => {\n if (typeof raw !== 'string' || !raw) return raw;\n try {\n return JSON.parse(raw);\n } catch {\n return raw;\n }\n };\n\n const handleClick = () => {\n (window as any).__editor = editor;\n const yDoc = (editor as any)._yDoc || (editor as any)._yRuntime?.doc;\n const readShared = (key: string) => yDoc?.share?.get?.(key);\n console.log('Editor exposed as window.__editor. _yDoc?', !!yDoc);\n const dump: Record<string, any> = {};\n\n // 1. BlockNote blocks — with parsed trigger / inputs / assignment so we can\n // see exactly what the listener is subscribing to.\n dump.blocks = editor.document.map((block: any) => ({\n id: block.id,\n type: block.type,\n actionType: block?.props?.actionType,\n triggerRaw: block?.props?.trigger,\n trigger: parseJsonProp(block?.props?.trigger),\n inputs: parseJsonProp(block?.props?.inputs),\n assignment: parseJsonProp(block?.props?.assignment),\n triggerMode: block?.props?.triggerMode,\n props: block.props,\n content: block.content,\n children: block.children,\n }));\n\n // 2. Runtime state\n // a) runs: the run-scoped action state (`runId → { meta, actions }`).\n // `yMapToObject` unwraps the nested containers.\n // b) runsTerminal: write-once closed/cancelled latch per run (Phase B).\n // c) runtime: the legacy flat map. Storage v1 mirrors run-scoped writes;\n // storage v2 deliberately leaves this map behind.\n dump.runs = yMapToObject(editor._yRuns ?? readShared(RUNS_MAP_KEY));\n dump.runsTerminal = yMapToObject(editor._yRunsTerminal ?? readShared(RUNS_TERMINAL_MAP_KEY));\n dump.runtime = yMapToObject(editor._yRuntime);\n dump.xeroConnection = yMapToObject((editor as any)._yXeroConnection);\n dump.xeroWorkItems = yMapToObject((editor as any)._yXeroWorkItems);\n\n // 3. Delegations\n dump.delegations = yMapToObject(editor._yDelegations);\n\n // 4. Invocations\n dump.invocations = yMapToObject(editor._yInvocations);\n\n // 5. Flow metadata\n dump.flowMetadata = editor.getFlowMetadata?.() || null;\n\n // 6. Flow array\n dump.flowArray = editor.getFlow?.() || null;\n\n // 7. Entities Y.Map (Personal Agent results)\n dump.entities = yMapToObject(readShared('entities'));\n\n // 8. Trigger/event state — the full chain for debugging block.event.all\n // a) auditTrail: where run records (source emissions) are written\n // b) pendingInvocations: what the Invoke button reads from\n // c) barrierState: partial barrier completion for block.event.all listeners\n // d) dmNotificationState: DM notification dedup (block + pending invocation)\n dump.auditTrail = yMapToObject(readShared('auditTrail'));\n dump.pendingInvocations = yMapToObject(readShared('pendingInvocations'));\n dump.barrierState = yMapToObject(readShared('barrierState'));\n dump.dmNotificationState = yMapToObject(readShared(DM_NOTIFICATIONS_MAP_KEY));\n\n const json = JSON.stringify(dump, null, 2);\n console.log('Editor Debug Dump:\\n' + json);\n };\n\n const tools = [\n {\n id: 'ucans',\n label: 'Grant UCANs',\n title: 'Dev: grant Flow Agent and block action UCANs to room members',\n leftSection: icon(IconShieldPlus, 14, ACCENT),\n onClick: () => setUcanOpen(true),\n },\n {\n id: 'ydoc',\n label: 'Debug Y.Doc',\n title: 'Debug: Log all blocks + runtime state to console',\n leftSection: icon(IconBraces, 14, ACCENT),\n onClick: handleClick,\n },\n ];\n\n return (\n <>\n <DevUcanGrantButton editor={editor} handlers={handlers} opened={ucanOpen} onOpenedChange={setUcanOpen} />\n\n <div\n ref={containerRef}\n style={{\n position: 'fixed',\n bottom: 16,\n right: 16,\n zIndex: 9999,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-end',\n gap: 8,\n fontFamily: 'monospace',\n }}\n >\n {menuOpen && (\n <div\n role=\"menu\"\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n padding: 4,\n minWidth: 168,\n background: SURFACE,\n border: `1px solid ${ACCENT}`,\n borderRadius: 8,\n boxShadow: '0 8px 24px rgba(0, 0, 0, 0.45)',\n }}\n >\n {tools.map((tool) => (\n <button\n key={tool.id}\n role=\"menuitem\"\n title={tool.title}\n onClick={() => {\n tool.onClick();\n setMenuOpen(false);\n }}\n onMouseEnter={() => setHovered(tool.id)}\n onMouseLeave={() => setHovered((current) => (current === tool.id ? null : current))}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n width: '100%',\n padding: '7px 10px',\n background: hovered === tool.id ? 'rgba(0, 255, 136, 0.12)' : 'transparent',\n color: ACCENT,\n border: 'none',\n borderRadius: 5,\n fontSize: 12,\n fontFamily: 'inherit',\n textAlign: 'left',\n cursor: 'pointer',\n }}\n >\n {tool.leftSection}\n {tool.label}\n </button>\n ))}\n </div>\n )}\n\n <button\n onClick={() => setMenuOpen((current) => !current)}\n onMouseEnter={() => setHovered('launcher')}\n onMouseLeave={() => setHovered((current) => (current === 'launcher' ? null : current))}\n aria-label=\"Dev tools\"\n aria-haspopup=\"menu\"\n aria-expanded={menuOpen}\n title=\"Dev tools\"\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 36,\n height: 36,\n padding: 0,\n background: SURFACE,\n color: ACCENT,\n border: `1px solid ${ACCENT}`,\n borderRadius: '50%',\n cursor: 'pointer',\n opacity: menuOpen || hovered === 'launcher' ? 1 : 0.55,\n transition: 'opacity 120ms ease',\n }}\n >\n {icon(IconTools, 18, ACCENT)}\n </button>\n </div>\n </>\n );\n}\n","import React, { useState, useRef, useEffect } from 'react';\n\nexport interface PageHeaderMenuItem {\n label: string;\n onClick: () => void;\n icon?: React.ReactNode;\n disabled?: boolean;\n divider?: boolean;\n}\n\nexport interface PageHeaderProps {\n title?: string;\n icon?: React.ReactNode;\n isPrivate?: boolean;\n onPrivacyChange?: (isPrivate: boolean) => void;\n lastEdited?: string;\n onShare?: () => void;\n onFavorite?: () => void;\n isFavorited?: boolean;\n menuItems?: PageHeaderMenuItem[];\n}\n\n/**\n * PageHeader component - A Notion-style page header with title, privacy badge, and actions\n */\nexport function PageHeader({\n title = 'New page',\n icon,\n isPrivate = true,\n onPrivacyChange,\n lastEdited,\n onShare,\n onFavorite,\n isFavorited = false,\n menuItems = [],\n}: PageHeaderProps): React.ReactElement {\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n const [isPrivacyOpen, setIsPrivacyOpen] = useState(false);\n const menuRef = useRef<HTMLDivElement>(null);\n const privacyRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n function handleClickOutside(event: MouseEvent) {\n if (menuRef.current && !menuRef.current.contains(event.target as Node)) {\n setIsMenuOpen(false);\n }\n if (privacyRef.current && !privacyRef.current.contains(event.target as Node)) {\n setIsPrivacyOpen(false);\n }\n }\n\n if (isMenuOpen || isPrivacyOpen) {\n document.addEventListener('mousedown', handleClickOutside);\n }\n\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [isMenuOpen, isPrivacyOpen]);\n\n const handleMenuItemClick = (item: PageHeaderMenuItem) => {\n if (!item.disabled) {\n item.onClick();\n setIsMenuOpen(false);\n }\n };\n\n return (\n <div style={styles.container}>\n <div style={styles.leftSection}>\n <span style={styles.icon}>{icon || '📄'}</span>\n <span style={styles.title}>{title}</span>\n <div style={styles.privacyContainer} ref={privacyRef}>\n <button style={styles.privacyBadge} onClick={() => onPrivacyChange && setIsPrivacyOpen(!isPrivacyOpen)}>\n <span style={styles.lockIcon}>{isPrivate ? '🔒' : '🌐'}</span>\n <span>{isPrivate ? 'Private' : 'Public'}</span>\n {onPrivacyChange && <span style={styles.chevron}>▾</span>}\n </button>\n {isPrivacyOpen && onPrivacyChange && (\n <div style={styles.dropdown}>\n <button\n style={{\n ...styles.menuItem,\n ...(isPrivate ? styles.menuItemActive : {}),\n }}\n onClick={() => {\n onPrivacyChange(true);\n setIsPrivacyOpen(false);\n }}\n >\n <span style={styles.menuItemIcon}>🔒</span>\n <span>Private</span>\n </button>\n <button\n style={{\n ...styles.menuItem,\n ...(!isPrivate ? styles.menuItemActive : {}),\n }}\n onClick={() => {\n onPrivacyChange(false);\n setIsPrivacyOpen(false);\n }}\n >\n <span style={styles.menuItemIcon}>🌐</span>\n <span>Public</span>\n </button>\n </div>\n )}\n </div>\n </div>\n <div style={styles.rightSection}>\n {lastEdited && <span style={styles.editedText}>{lastEdited}</span>}\n {onShare && (\n <button style={styles.shareButton} onClick={onShare}>\n Share\n </button>\n )}\n {onFavorite && (\n <button style={styles.iconButton} onClick={onFavorite}>\n {isFavorited ? '★' : '☆'}\n </button>\n )}\n {menuItems.length > 0 && (\n <div style={styles.menuContainer} ref={menuRef}>\n <button style={styles.menuButton} onClick={() => setIsMenuOpen(!isMenuOpen)} aria-label=\"Menu\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"currentColor\">\n <circle cx=\"3\" cy=\"8\" r=\"1.5\" />\n <circle cx=\"8\" cy=\"8\" r=\"1.5\" />\n <circle cx=\"13\" cy=\"8\" r=\"1.5\" />\n </svg>\n </button>\n {isMenuOpen && (\n <div style={styles.dropdown}>\n {menuItems.map((item, index) => (\n <React.Fragment key={index}>\n {item.divider && index > 0 && <div style={styles.divider} />}\n <button\n style={{\n ...styles.menuItem,\n ...(item.disabled ? styles.menuItemDisabled : {}),\n }}\n onClick={() => handleMenuItemClick(item)}\n disabled={item.disabled}\n >\n {item.icon && <span style={styles.menuItemIcon}>{item.icon}</span>}\n <span>{item.label}</span>\n </button>\n </React.Fragment>\n ))}\n </div>\n )}\n </div>\n )}\n </div>\n </div>\n );\n}\n\nconst styles: Record<string, React.CSSProperties> = {\n container: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: '8px 12px',\n borderBottom: '1px solid rgba(255, 255, 255, 0.1)',\n backgroundColor: 'transparent',\n fontSize: '14px',\n minHeight: '44px',\n color: 'rgba(255, 255, 255, 0.9)',\n },\n leftSection: {\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n },\n icon: {\n fontSize: '16px',\n },\n title: {\n fontWeight: 500,\n color: 'rgba(255, 255, 255, 0.9)',\n },\n privacyContainer: {\n position: 'relative' as const,\n },\n privacyBadge: {\n display: 'flex',\n alignItems: 'center',\n gap: '4px',\n padding: '2px 6px',\n border: 'none',\n backgroundColor: 'transparent',\n color: 'rgba(255, 255, 255, 0.5)',\n fontSize: '12px',\n cursor: 'pointer',\n borderRadius: '3px',\n },\n lockIcon: {\n fontSize: '12px',\n },\n chevron: {\n fontSize: '10px',\n marginLeft: '2px',\n },\n rightSection: {\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n },\n editedText: {\n color: 'rgba(255, 255, 255, 0.4)',\n fontSize: '12px',\n },\n shareButton: {\n padding: '4px 10px',\n border: 'none',\n backgroundColor: 'transparent',\n color: 'rgba(255, 255, 255, 0.9)',\n fontSize: '14px',\n cursor: 'pointer',\n borderRadius: '3px',\n fontWeight: 500,\n },\n iconButton: {\n padding: '4px 8px',\n border: 'none',\n backgroundColor: 'transparent',\n color: 'rgba(255, 255, 255, 0.5)',\n fontSize: '16px',\n cursor: 'pointer',\n borderRadius: '3px',\n },\n menuContainer: {\n position: 'relative',\n },\n menuButton: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '4px 8px',\n border: 'none',\n backgroundColor: 'transparent',\n color: 'rgba(255, 255, 255, 0.5)',\n cursor: 'pointer',\n borderRadius: '3px',\n },\n dropdown: {\n position: 'absolute',\n top: '100%',\n right: 0,\n marginTop: '4px',\n minWidth: '180px',\n backgroundColor: 'rgb(37, 37, 37)',\n borderRadius: '6px',\n boxShadow: '0 4px 12px rgba(0, 0, 0, 0.4)',\n border: '1px solid rgba(255, 255, 255, 0.1)',\n padding: '4px 0',\n zIndex: 1000,\n },\n menuItem: {\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n width: '100%',\n padding: '8px 12px',\n border: 'none',\n backgroundColor: 'transparent',\n color: 'rgba(255, 255, 255, 0.9)',\n fontSize: '14px',\n cursor: 'pointer',\n textAlign: 'left',\n },\n menuItemDisabled: {\n color: 'rgba(255, 255, 255, 0.3)',\n cursor: 'not-allowed',\n },\n menuItemActive: {\n backgroundColor: 'rgba(255, 255, 255, 0.08)',\n },\n menuItemIcon: {\n display: 'flex',\n alignItems: 'center',\n fontSize: '16px',\n },\n divider: {\n height: '1px',\n backgroundColor: 'rgba(255, 255, 255, 0.1)',\n margin: '4px 0',\n },\n};\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\nimport { RunSessionProvider } from './runSessionContext';\nimport type { RunEventAppender } from '@/core/lib/flowEngine/runLifecycle';\nimport type { DesignPodRuntimeAuthorityV1 } from '@/core/lib/designPod/contracts';\n\n// Panel-based blocks — these export a dedicated \"detail\" panel component that is\n// normally registered via usePanel. We render that panel content directly.\nimport { ActionFlowPanel } from '@/mantine/blocks/action/flow/FlowView';\nimport { FormPanel } from '@/mantine/blocks/form/flow/FormPanel';\nimport { FlowConfig as ProposalFlowConfig } from '@/mantine/blocks/proposal/flow/FlowConfig';\nimport { DomainCreatorSurveyPanel } from '@/mantine/blocks/domainCreator/flow/DomainCreatorSurveyPanel';\nimport { SignPanel } from '@/mantine/blocks/domainCreatorSign/flow/SignPanel';\nimport { GovernanceGroupPanel } from '@/mantine/blocks/governanceGroup/flow/GovernanceGroupPanel';\n\n// Inline-detail blocks — the FlowView itself IS the \"do-the-step\" detail UI\n// (no separate panel; they don't use usePanel for their primary content).\nimport { ClaimFlowView } from '@/mantine/blocks/claim/flow/FlowView';\nimport { EvaluatorFlowView } from '@/mantine/blocks/evaluator/flow/FlowView';\nimport { NotifyFlowView } from '@/mantine/blocks/notify/flow/FlowView';\nimport { CheckboxFlowView } from '@/mantine/blocks/checkbox/flow/FlowView';\nimport { SecretsFlowView } from '@/mantine/blocks/secrets/flow/SecretsFlowView';\nimport { SkillsFlowView } from '@/mantine/blocks/skills/flow/SkillsFlowView';\n\n// email / apiRequest keep their detail UI inside a private (non-exported)\n// PanelContent function, so we dispatch to the full FlowView card instead.\nimport { EmailFlowView } from '@/mantine/blocks/email/flow/FlowView';\nimport { ApiRequestFlowView } from '@/mantine/blocks/apiRequest/flow/FlowView';\n\nexport interface FlowNodePanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n isDisabled?: {\n isDisabled: 'disable';\n message?: string;\n };\n /** Explicit session whose runtime state this panel reads and writes. */\n sessionRunId?: string;\n runEventLog?: RunEventAppender;\n designPodAuthority?: DesignPodRuntimeAuthorityV1;\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's \"do-the-step\" / detail UI. Lets a host app render the panel for any\n * selected step in its own right column without relying on the per-block\n * usePanel/registeredPanels indirection.\n *\n * NOTE: every rendered detail component reads from BlocknoteContext\n * (useBlocknoteHandlers / useBlocknoteContext throw if the provider is\n * missing). Keep <FlowNodePanel> wrapped in the app's BlocknoteProvider /\n * EditorBlocknoteProvider.\n */\nexport function FlowNodePanel(props: FlowNodePanelProps) {\n // Embedded: the host app supplies the panel header, so BaseRightPanelLayout\n // suppresses its own (no duplicate title / close).\n return (\n <RunSessionProvider sessionRunId={props.sessionRunId} runEventLog={props.runEventLog || props.editor?._runEventLog} designPodAuthority={props.designPodAuthority}>\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodePanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n </RunSessionProvider>\n );\n}\n\nfunction FlowNodePanelContent({ editor, block, isDisabled }: FlowNodePanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionFlowPanel editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'form':\n return <FormPanel editor={editor} block={block} />;\n\n case 'proposal':\n return <ProposalFlowConfig editor={editor} block={block} />;\n\n case 'domainCreator':\n return <DomainCreatorSurveyPanel editor={editor} block={block} />;\n\n case 'domainCreatorSign':\n return <SignPanel editor={editor} block={block} />;\n\n case 'governanceGroup':\n return <GovernanceGroupPanel editor={editor} block={block} />;\n\n case 'claim':\n return <ClaimFlowView editor={editor} block={block} />;\n\n case 'evaluator':\n return <EvaluatorFlowView editor={editor} block={block} />;\n\n case 'notify':\n return <NotifyFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'checkbox':\n return <CheckboxFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'secrets':\n return <SecretsFlowView editor={editor} block={block} />;\n\n case 'skills':\n return <SkillsFlowView editor={editor} block={block} />;\n\n // email / apiRequest: detail UI is a private PanelContent fn; render the\n // full FlowView card (its own onClick opens the registered panel).\n case 'email':\n return <EmailFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'apiRequest':\n return <ApiRequestFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n // enumChecklist has no flow-mode panel (renders EnumChecklistBlock in all\n // modes). Fallback to null / \"open in document\".\n case 'enumChecklist':\n default:\n return null;\n }\n}\n\nexport default FlowNodePanel;\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\n\n// Per-block TEMPLATE config panels — the authoring counterpart to FlowNodePanel.\n// Each exposes the block's rich configuration (General + the shared\n// Authorization / Assignment / Commitment / TTL / Evaluation tabs) on the same\n// BaseRightPanelLayout the runtime panels use.\nimport { TemplateConfig as ActionConfig } from '@/mantine/blocks/action/template/TemplateConfig';\nimport { TemplateConfig as ClaimConfig } from '@/mantine/blocks/claim/template/TemplateConfig';\nimport { TemplateConfig as FormConfig } from '@/mantine/blocks/form/template/TemplateConfig';\nimport { TemplateConfig as CheckboxConfig } from '@/mantine/blocks/checkbox/template/TemplateConfig';\nimport { TemplateConfig as EvaluatorConfig } from '@/mantine/blocks/evaluator/template/TemplateConfig';\nimport { TemplateConfig as NotifyConfig } from '@/mantine/blocks/notify/template/TemplateConfig';\nimport { TemplateConfig as EmailConfig } from '@/mantine/blocks/email/template/TemplateConfig';\nimport { TemplateConfig as ApiRequestConfig } from '@/mantine/blocks/apiRequest/template/TemplateConfig';\nimport { TemplateConfig as ProposalConfig } from '@/mantine/blocks/proposal/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorConfig } from '@/mantine/blocks/domainCreator/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorSignConfig } from '@/mantine/blocks/domainCreatorSign/template/TemplateConfig';\nimport { TemplateConfig as GovernanceGroupConfig } from '@/mantine/blocks/governanceGroup/template/TemplateConfig';\n\n// secrets / skills have a template VIEW rather than a tabbed config.\nimport { SecretsTemplateView } from '@/mantine/blocks/secrets/template/SecretsTemplateView';\nimport { SkillsTemplateView } from '@/mantine/blocks/skills/template/SkillsTemplateView';\n\nexport interface FlowNodeConfigPanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's TEMPLATE configuration panel — the authoring counterpart to\n * `FlowNodePanel` (which renders the runtime \"do-the-step\" UI). Lets a host app\n * render the rich config (General + Authorization/Assignment/Commitment/TTL/…)\n * for any selected step in its own right column.\n *\n * Since `addFlowNode` and the registry route every capability through the\n * generic `action` block, `action → ActionConfig` is the primary case; the\n * dedicated block types are covered for documents that use them directly.\n *\n * Wrapped in `FlowPanelEmbeddedContext` so each config's `BaseRightPanelLayout`\n * suppresses its own header/close (the host supplies those).\n */\nexport function FlowNodeConfigPanel(props: FlowNodeConfigPanelProps) {\n return (\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodeConfigPanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n );\n}\n\nfunction FlowNodeConfigPanelContent({ editor, block }: FlowNodeConfigPanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionConfig editor={editor} block={block} />;\n case 'claim':\n return <ClaimConfig editor={editor} block={block} />;\n case 'form':\n return <FormConfig editor={editor} block={block} />;\n case 'checkbox':\n return <CheckboxConfig editor={editor} block={block} />;\n case 'evaluator':\n return <EvaluatorConfig editor={editor} block={block} />;\n case 'notify':\n return <NotifyConfig editor={editor} block={block} />;\n case 'email':\n return <EmailConfig editor={editor} block={block} />;\n case 'apiRequest':\n return <ApiRequestConfig editor={editor} block={block} />;\n case 'proposal':\n return <ProposalConfig editor={editor} block={block} />;\n case 'domainCreator':\n return <DomainCreatorConfig editor={editor} block={block} />;\n case 'domainCreatorSign':\n return <DomainCreatorSignConfig editor={editor} block={block} />;\n case 'governanceGroup':\n return <GovernanceGroupConfig editor={editor} block={block} />;\n case 'secrets':\n return <SecretsTemplateView editor={editor} block={block} />;\n case 'skills':\n return <SkillsTemplateView editor={editor} block={block} />;\n default:\n return null;\n }\n}\n\nexport default FlowNodeConfigPanel;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,SAAS,WAAW,QAAQ,gBAAgB;AACnD,SAAS,YAAY,gBAAgB,iBAAiB;AAQtD,IAAM,SAAS;AACf,IAAM,UAAU;AAOT,SAAS,YAAY,EAAE,QAAQ,SAAS,GAA4D;AACzG,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAwB,IAAI;AAC1D,QAAM,eAAe,OAA8B,IAAI;AAEvD,YAAU,MAAM;AACd,QAAI,CAAC,SAAU;AAEf,UAAM,gBAAgB,CAAC,UAAsB;AAC3C,UAAI,CAAC,aAAa,SAAS,SAAS,MAAM,MAAc,EAAG,aAAY,KAAK;AAAA,IAC9E;AACA,UAAM,YAAY,CAAC,UAAyB;AAC1C,UAAI,MAAM,QAAQ,SAAU,aAAY,KAAK;AAAA,IAC/C;AAEA,aAAS,iBAAiB,aAAa,aAAa;AACpD,aAAS,iBAAiB,WAAW,SAAS;AAC9C,WAAO,MAAM;AACX,eAAS,oBAAoB,aAAa,aAAa;AACvD,eAAS,oBAAoB,WAAW,SAAS;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,QAAM,eAAe,CAAC,QAAa;AACjC,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vD,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,iBAAA,EAAoB,QAAgB,OAAc;AAAA,IAC5D,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,kBAAA,EAAwB,QAAgB,OAAc;AAAA,IAChE,KAAK;AACH,aAAO,gBAAAD,OAAA,cAACC,kBAAA,EAAsB,QAAgB,OAAc;AAAA,IAC9D,KAAK;AACH,aAAO,gBAAAD,OAAA,cAAC,uBAAoB,QAAgB,OAAc;AAAA,IAC5D,KAAK;AACH,aAAO,gBAAAA,OAAA,cAAC,sBAAmB,QAAgB,OAAc;AAAA,IAC3D;AACE,aAAO;AAAA,EACX;AACF;","names":["React","useState","useRef","useEffect","icon","React","React","React","React","TemplateConfig"]}
1
+ {"version":3,"sources":["../../src/mantine/components/DebugButton.tsx","../../src/mantine/flow/FlowNodePanel.tsx","../../src/mantine/flow/FlowNodeConfigPanel.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { IconBraces, IconShieldPlus, IconTools } from '@tabler/icons-react';\nimport type { IxoEditorType } from '../../core/types';\nimport type { BlocknoteHandlers } from '../context/BlocknoteContext';\nimport { DevUcanGrantButton } from './DevUcanGrantButton';\nimport { icon } from './ReusablePanel';\nimport { DM_NOTIFICATIONS_MAP_KEY } from '../../core/lib/flowEngine/dmNotificationState';\nimport { RUNS_MAP_KEY, RUNS_TERMINAL_MAP_KEY } from '../../core/lib/flowEngine/runs';\n\nconst ACCENT = '#00ff88';\nconst SURFACE = '#1a1a2e';\n\n/**\n * Dev-tools launcher: a single round button pinned to the bottom-right (the Next.js\n * dev indicator owns the bottom-left) that expands into the individual tools, so the\n * dev overlay costs one small dot instead of a row of bars across the flow canvas.\n */\nexport function DebugButton({ editor, handlers }: { editor: IxoEditorType; handlers?: BlocknoteHandlers }) {\n const [menuOpen, setMenuOpen] = useState(false);\n const [ucanOpen, setUcanOpen] = useState(false);\n const [hovered, setHovered] = useState<string | null>(null);\n const containerRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!menuOpen) return;\n\n const onPointerDown = (event: MouseEvent) => {\n if (!containerRef.current?.contains(event.target as Node)) setMenuOpen(false);\n };\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') setMenuOpen(false);\n };\n\n document.addEventListener('mousedown', onPointerDown);\n document.addEventListener('keydown', onKeyDown);\n return () => {\n document.removeEventListener('mousedown', onPointerDown);\n document.removeEventListener('keydown', onKeyDown);\n };\n }, [menuOpen]);\n\n const yMapToObject = (map: any) => {\n if (!map) return null;\n const obj: Record<string, any> = {};\n map.forEach((value: any, key: string) => {\n // Recursively unwrap nested Y.Maps so their contents are visible in JSON\n if (value && typeof value.forEach === 'function' && typeof value.get === 'function' && !Array.isArray(value)) {\n obj[key] = yMapToObject(value);\n } else if (value && typeof value.toArray === 'function') {\n obj[key] = value.toArray();\n } else {\n obj[key] = value;\n }\n });\n return Object.keys(obj).length === 0 ? '(empty)' : obj;\n };\n\n const parseJsonProp = (raw: unknown) => {\n if (typeof raw !== 'string' || !raw) return raw;\n try {\n return JSON.parse(raw);\n } catch {\n return raw;\n }\n };\n\n const handleClick = () => {\n (window as any).__editor = editor;\n const yDoc = (editor as any)._yDoc || (editor as any)._yRuntime?.doc;\n const readShared = (key: string) => yDoc?.share?.get?.(key);\n console.log('Editor exposed as window.__editor. _yDoc?', !!yDoc);\n const dump: Record<string, any> = {};\n\n // 1. BlockNote blocks — with parsed trigger / inputs / assignment so we can\n // see exactly what the listener is subscribing to.\n dump.blocks = editor.document.map((block: any) => ({\n id: block.id,\n type: block.type,\n actionType: block?.props?.actionType,\n triggerRaw: block?.props?.trigger,\n trigger: parseJsonProp(block?.props?.trigger),\n inputs: parseJsonProp(block?.props?.inputs),\n assignment: parseJsonProp(block?.props?.assignment),\n triggerMode: block?.props?.triggerMode,\n props: block.props,\n content: block.content,\n children: block.children,\n }));\n\n // 2. Runtime state\n // a) runs: the run-scoped action state (`runId → { meta, actions }`).\n // `yMapToObject` unwraps the nested containers.\n // b) runsTerminal: write-once closed/cancelled latch per run (Phase B).\n // c) runtime: the legacy flat map. Storage v1 mirrors run-scoped writes;\n // storage v2 deliberately leaves this map behind.\n dump.runs = yMapToObject(editor._yRuns ?? readShared(RUNS_MAP_KEY));\n dump.runsTerminal = yMapToObject(editor._yRunsTerminal ?? readShared(RUNS_TERMINAL_MAP_KEY));\n dump.runtime = yMapToObject(editor._yRuntime);\n dump.xeroConnection = yMapToObject((editor as any)._yXeroConnection);\n dump.xeroWorkItems = yMapToObject((editor as any)._yXeroWorkItems);\n\n // 3. Delegations\n dump.delegations = yMapToObject(editor._yDelegations);\n\n // 4. Invocations\n dump.invocations = yMapToObject(editor._yInvocations);\n\n // 5. Flow metadata\n dump.flowMetadata = editor.getFlowMetadata?.() || null;\n\n // 6. Flow array\n dump.flowArray = editor.getFlow?.() || null;\n\n // 7. Entities Y.Map (Personal Agent results)\n dump.entities = yMapToObject(readShared('entities'));\n\n // 8. Trigger/event state — the full chain for debugging block.event.all\n // a) auditTrail: where run records (source emissions) are written\n // b) pendingInvocations: what the Invoke button reads from\n // c) barrierState: partial barrier completion for block.event.all listeners\n // d) dmNotificationState: DM notification dedup (block + pending invocation)\n dump.auditTrail = yMapToObject(readShared('auditTrail'));\n dump.pendingInvocations = yMapToObject(readShared('pendingInvocations'));\n dump.barrierState = yMapToObject(readShared('barrierState'));\n dump.dmNotificationState = yMapToObject(readShared(DM_NOTIFICATIONS_MAP_KEY));\n\n const json = JSON.stringify(dump, null, 2);\n console.log('Editor Debug Dump:\\n' + json);\n };\n\n const tools = [\n {\n id: 'ucans',\n label: 'Grant UCANs',\n title: 'Dev: grant Flow Agent and block action UCANs to room members',\n leftSection: icon(IconShieldPlus, 14, ACCENT),\n onClick: () => setUcanOpen(true),\n },\n {\n id: 'ydoc',\n label: 'Debug Y.Doc',\n title: 'Debug: Log all blocks + runtime state to console',\n leftSection: icon(IconBraces, 14, ACCENT),\n onClick: handleClick,\n },\n ];\n\n return (\n <>\n <DevUcanGrantButton editor={editor} handlers={handlers} opened={ucanOpen} onOpenedChange={setUcanOpen} />\n\n <div\n ref={containerRef}\n style={{\n position: 'fixed',\n bottom: 16,\n right: 16,\n zIndex: 9999,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-end',\n gap: 8,\n fontFamily: 'monospace',\n }}\n >\n {menuOpen && (\n <div\n role=\"menu\"\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n padding: 4,\n minWidth: 168,\n background: SURFACE,\n border: `1px solid ${ACCENT}`,\n borderRadius: 8,\n boxShadow: '0 8px 24px rgba(0, 0, 0, 0.45)',\n }}\n >\n {tools.map((tool) => (\n <button\n key={tool.id}\n role=\"menuitem\"\n title={tool.title}\n onClick={() => {\n tool.onClick();\n setMenuOpen(false);\n }}\n onMouseEnter={() => setHovered(tool.id)}\n onMouseLeave={() => setHovered((current) => (current === tool.id ? null : current))}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n width: '100%',\n padding: '7px 10px',\n background: hovered === tool.id ? 'rgba(0, 255, 136, 0.12)' : 'transparent',\n color: ACCENT,\n border: 'none',\n borderRadius: 5,\n fontSize: 12,\n fontFamily: 'inherit',\n textAlign: 'left',\n cursor: 'pointer',\n }}\n >\n {tool.leftSection}\n {tool.label}\n </button>\n ))}\n </div>\n )}\n\n <button\n onClick={() => setMenuOpen((current) => !current)}\n onMouseEnter={() => setHovered('launcher')}\n onMouseLeave={() => setHovered((current) => (current === 'launcher' ? null : current))}\n aria-label=\"Dev tools\"\n aria-haspopup=\"menu\"\n aria-expanded={menuOpen}\n title=\"Dev tools\"\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 36,\n height: 36,\n padding: 0,\n background: SURFACE,\n color: ACCENT,\n border: `1px solid ${ACCENT}`,\n borderRadius: '50%',\n cursor: 'pointer',\n opacity: menuOpen || hovered === 'launcher' ? 1 : 0.55,\n transition: 'opacity 120ms ease',\n }}\n >\n {icon(IconTools, 18, ACCENT)}\n </button>\n </div>\n </>\n );\n}\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\nimport { RunSessionProvider } from './runSessionContext';\nimport type { RunEventAppender } from '@/core/lib/flowEngine/runLifecycle';\nimport type { DesignPodRuntimeAuthorityV1 } from '@/core/lib/designPod/contracts';\n\n// Panel-based blocks — these export a dedicated \"detail\" panel component that is\n// normally registered via usePanel. We render that panel content directly.\nimport { ActionFlowPanel } from '@/mantine/blocks/action/flow/FlowView';\nimport { FormPanel } from '@/mantine/blocks/form/flow/FormPanel';\nimport { FlowConfig as ProposalFlowConfig } from '@/mantine/blocks/proposal/flow/FlowConfig';\nimport { DomainCreatorSurveyPanel } from '@/mantine/blocks/domainCreator/flow/DomainCreatorSurveyPanel';\nimport { SignPanel } from '@/mantine/blocks/domainCreatorSign/flow/SignPanel';\nimport { GovernanceGroupPanel } from '@/mantine/blocks/governanceGroup/flow/GovernanceGroupPanel';\n\n// Inline-detail blocks — the FlowView itself IS the \"do-the-step\" detail UI\n// (no separate panel; they don't use usePanel for their primary content).\nimport { ClaimFlowView } from '@/mantine/blocks/claim/flow/FlowView';\nimport { EvaluatorFlowView } from '@/mantine/blocks/evaluator/flow/FlowView';\nimport { NotifyFlowView } from '@/mantine/blocks/notify/flow/FlowView';\nimport { CheckboxFlowView } from '@/mantine/blocks/checkbox/flow/FlowView';\nimport { SecretsFlowView } from '@/mantine/blocks/secrets/flow/SecretsFlowView';\nimport { SkillsFlowView } from '@/mantine/blocks/skills/flow/SkillsFlowView';\n\n// email / apiRequest keep their detail UI inside a private (non-exported)\n// PanelContent function, so we dispatch to the full FlowView card instead.\nimport { EmailFlowView } from '@/mantine/blocks/email/flow/FlowView';\nimport { ApiRequestFlowView } from '@/mantine/blocks/apiRequest/flow/FlowView';\n\nexport interface FlowNodePanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n isDisabled?: {\n isDisabled: 'disable';\n message?: string;\n };\n /** Explicit session whose runtime state this panel reads and writes. */\n sessionRunId?: string;\n runEventLog?: RunEventAppender;\n designPodAuthority?: DesignPodRuntimeAuthorityV1;\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's \"do-the-step\" / detail UI. Lets a host app render the panel for any\n * selected step in its own right column without relying on the per-block\n * usePanel/registeredPanels indirection.\n *\n * NOTE: every rendered detail component reads from BlocknoteContext\n * (useBlocknoteHandlers / useBlocknoteContext throw if the provider is\n * missing). Keep <FlowNodePanel> wrapped in the app's BlocknoteProvider /\n * EditorBlocknoteProvider.\n */\nexport function FlowNodePanel(props: FlowNodePanelProps) {\n // Embedded: the host app supplies the panel header, so BaseRightPanelLayout\n // suppresses its own (no duplicate title / close).\n return (\n <RunSessionProvider sessionRunId={props.sessionRunId} runEventLog={props.runEventLog || props.editor?._runEventLog} designPodAuthority={props.designPodAuthority}>\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodePanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n </RunSessionProvider>\n );\n}\n\nfunction FlowNodePanelContent({ editor, block, isDisabled }: FlowNodePanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionFlowPanel editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'form':\n return <FormPanel editor={editor} block={block} />;\n\n case 'proposal':\n return <ProposalFlowConfig editor={editor} block={block} />;\n\n case 'domainCreator':\n return <DomainCreatorSurveyPanel editor={editor} block={block} />;\n\n case 'domainCreatorSign':\n return <SignPanel editor={editor} block={block} />;\n\n case 'governanceGroup':\n return <GovernanceGroupPanel editor={editor} block={block} />;\n\n case 'claim':\n return <ClaimFlowView editor={editor} block={block} />;\n\n case 'evaluator':\n return <EvaluatorFlowView editor={editor} block={block} />;\n\n case 'notify':\n return <NotifyFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'checkbox':\n return <CheckboxFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'secrets':\n return <SecretsFlowView editor={editor} block={block} />;\n\n case 'skills':\n return <SkillsFlowView editor={editor} block={block} />;\n\n // email / apiRequest: detail UI is a private PanelContent fn; render the\n // full FlowView card (its own onClick opens the registered panel).\n case 'email':\n return <EmailFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n case 'apiRequest':\n return <ApiRequestFlowView editor={editor} block={block} isDisabled={isDisabled} />;\n\n // enumChecklist has no flow-mode panel (renders EnumChecklistBlock in all\n // modes). Fallback to null / \"open in document\".\n case 'enumChecklist':\n default:\n return null;\n }\n}\n\nexport default FlowNodePanel;\n","import React from 'react';\nimport type { IxoBlockProps } from '@/core/types';\nimport { FlowPanelEmbeddedContext } from './embeddedPanelContext';\n\n// Per-block TEMPLATE config panels — the authoring counterpart to FlowNodePanel.\n// Each exposes the block's rich configuration (General + the shared\n// Authorization / Assignment / Commitment / TTL / Evaluation tabs) on the same\n// BaseRightPanelLayout the runtime panels use.\nimport { TemplateConfig as ActionConfig } from '@/mantine/blocks/action/template/TemplateConfig';\nimport { TemplateConfig as ClaimConfig } from '@/mantine/blocks/claim/template/TemplateConfig';\nimport { TemplateConfig as FormConfig } from '@/mantine/blocks/form/template/TemplateConfig';\nimport { TemplateConfig as CheckboxConfig } from '@/mantine/blocks/checkbox/template/TemplateConfig';\nimport { TemplateConfig as EvaluatorConfig } from '@/mantine/blocks/evaluator/template/TemplateConfig';\nimport { TemplateConfig as NotifyConfig } from '@/mantine/blocks/notify/template/TemplateConfig';\nimport { TemplateConfig as EmailConfig } from '@/mantine/blocks/email/template/TemplateConfig';\nimport { TemplateConfig as ApiRequestConfig } from '@/mantine/blocks/apiRequest/template/TemplateConfig';\nimport { TemplateConfig as ProposalConfig } from '@/mantine/blocks/proposal/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorConfig } from '@/mantine/blocks/domainCreator/template/TemplateConfig';\nimport { TemplateConfig as DomainCreatorSignConfig } from '@/mantine/blocks/domainCreatorSign/template/TemplateConfig';\nimport { TemplateConfig as GovernanceGroupConfig } from '@/mantine/blocks/governanceGroup/template/TemplateConfig';\n\n// secrets / skills have a template VIEW rather than a tabbed config.\nimport { SecretsTemplateView } from '@/mantine/blocks/secrets/template/SecretsTemplateView';\nimport { SkillsTemplateView } from '@/mantine/blocks/skills/template/SkillsTemplateView';\n\nexport interface FlowNodeConfigPanelProps {\n editor: IxoBlockProps['editor'];\n block: IxoBlockProps['block'];\n}\n\n/**\n * Single dispatcher that, given a flow editor and a step block, renders that\n * block's TEMPLATE configuration panel — the authoring counterpart to\n * `FlowNodePanel` (which renders the runtime \"do-the-step\" UI). Lets a host app\n * render the rich config (General + Authorization/Assignment/Commitment/TTL/…)\n * for any selected step in its own right column.\n *\n * Since `addFlowNode` and the registry route every capability through the\n * generic `action` block, `action → ActionConfig` is the primary case; the\n * dedicated block types are covered for documents that use them directly.\n *\n * Wrapped in `FlowPanelEmbeddedContext` so each config's `BaseRightPanelLayout`\n * suppresses its own header/close (the host supplies those).\n */\nexport function FlowNodeConfigPanel(props: FlowNodeConfigPanelProps) {\n return (\n <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodeConfigPanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\n );\n}\n\nfunction FlowNodeConfigPanelContent({ editor, block }: FlowNodeConfigPanelProps) {\n switch (block?.type) {\n case 'action':\n return <ActionConfig editor={editor} block={block} />;\n case 'claim':\n return <ClaimConfig editor={editor} block={block} />;\n case 'form':\n return <FormConfig editor={editor} block={block} />;\n case 'checkbox':\n return <CheckboxConfig editor={editor} block={block} />;\n case 'evaluator':\n return <EvaluatorConfig editor={editor} block={block} />;\n case 'notify':\n return <NotifyConfig editor={editor} block={block} />;\n case 'email':\n return <EmailConfig editor={editor} block={block} />;\n case 'apiRequest':\n return <ApiRequestConfig editor={editor} block={block} />;\n case 'proposal':\n return <ProposalConfig editor={editor} block={block} />;\n case 'domainCreator':\n return <DomainCreatorConfig editor={editor} block={block} />;\n case 'domainCreatorSign':\n return <DomainCreatorSignConfig editor={editor} block={block} />;\n case 'governanceGroup':\n return <GovernanceGroupConfig editor={editor} block={block} />;\n case 'secrets':\n return <SecretsTemplateView editor={editor} block={block} />;\n case 'skills':\n return <SkillsTemplateView editor={editor} block={block} />;\n default:\n return null;\n }\n}\n\nexport default FlowNodeConfigPanel;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,SAAS,WAAW,QAAQ,gBAAgB;AACnD,SAAS,YAAY,gBAAgB,iBAAiB;AAQtD,IAAM,SAAS;AACf,IAAM,UAAU;AAOT,SAAS,YAAY,EAAE,QAAQ,SAAS,GAA4D;AACzG,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,KAAK;AAC9C,QAAM,CAAC,SAAS,UAAU,IAAI,SAAwB,IAAI;AAC1D,QAAM,eAAe,OAA8B,IAAI;AAEvD,YAAU,MAAM;AACd,QAAI,CAAC,SAAU;AAEf,UAAM,gBAAgB,CAAC,UAAsB;AAC3C,UAAI,CAAC,aAAa,SAAS,SAAS,MAAM,MAAc,EAAG,aAAY,KAAK;AAAA,IAC9E;AACA,UAAM,YAAY,CAAC,UAAyB;AAC1C,UAAI,MAAM,QAAQ,SAAU,aAAY,KAAK;AAAA,IAC/C;AAEA,aAAS,iBAAiB,aAAa,aAAa;AACpD,aAAS,iBAAiB,WAAW,SAAS;AAC9C,WAAO,MAAM;AACX,eAAS,oBAAoB,aAAa,aAAa;AACvD,eAAS,oBAAoB,WAAW,SAAS;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,QAAM,eAAe,CAAC,QAAa;AACjC,QAAI,CAAC,IAAK,QAAO;AACjB,UAA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