@ixo/editor 5.36.1 → 5.37.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.
- package/dist/{chunk-CDBCSQQA.mjs → chunk-MNPEDF2U.mjs} +250 -123
- package/dist/chunk-MNPEDF2U.mjs.map +1 -0
- package/dist/{chunk-MCFRBVCB.mjs → chunk-OOPKMGYW.mjs} +29 -1
- package/dist/{chunk-MCFRBVCB.mjs.map → chunk-OOPKMGYW.mjs.map} +1 -1
- package/dist/{chunk-OXIWTOZ5.mjs → chunk-SBSTGR5L.mjs} +72 -2
- package/dist/chunk-SBSTGR5L.mjs.map +1 -0
- package/dist/core/index.d.ts +38 -5
- package/dist/core/index.mjs +6 -2
- package/dist/core/index.mjs.map +1 -1
- package/dist/{graphql-client-DsWWkro-.d.ts → graphql-client-7RPUfOZ7.d.ts} +56 -3
- package/dist/{index-DUqLNz0c.d.ts → index-1drTq85A.d.ts} +4 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/dist/mantine/index.d.ts +46 -4
- package/dist/mantine/index.mjs +122 -2
- package/dist/mantine/index.mjs.map +1 -1
- package/dist/{store-C2NG2nTB.d.ts → store-ChkNN7b4.d.ts} +1 -1
- package/package.json +1 -1
- package/style-core.css +5 -2
- package/style-mantine.css +5 -2
- package/style-scoped.css +5 -2
- package/style.css +5 -2
- package/dist/chunk-CDBCSQQA.mjs.map +0 -1
- package/dist/chunk-OXIWTOZ5.mjs.map +0 -1
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { q as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, B as BlockPresenceUser, i as CheckboxBlockProps, g as CheckboxBlockSpec, C as CoverImage, c as CoverImageProps, D as DevUcanGrantButton, Q as DropPosition, v as Entity, w as EntityResponse, f as EntitySigningSetup, x as EntityVariables, E as EvaluationTab, e as EvaluationTabState, N as ExternalDropZone, F as FlowPermissionsPanel, n as FlowStepRefProps, l as FlowStepRefSpec, G as GrantPermissionModal, y as GraphQLClient, M as GraphQLRequest, J as GraphQLResponse, H as HttpMethod, I as IxoEditor, b as IxoEditorProps, K as KeyValuePair, k as ListBlockProps, j as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, o as OverviewBlockProps, p as ProposalBlockProps, P as ProposalBlockSpec, t as getEntity, m as inlineContentSpecs, z as ixoGraphQLClient, r as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, s as useTrackBlockFocus } from '../graphql-client-7RPUfOZ7.mjs';
|
|
2
2
|
import React__default, { PropsWithChildren } from 'react';
|
|
3
|
-
import { ao as IxoBlockProps, a4 as IxoEditorType, w as BlocknoteHandlers, a5 as FlowNodeRuntimeState } from '../index-
|
|
4
|
-
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, B as BlocknoteProvider, O as CosmosMsgForEmpty, au as DomainCardData, at as DomainCardRenderer, aq as DynamicListData, ar as DynamicListDataProvider, as as DynamicListPanelRenderer, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, M as Threshold, T as Timestamp, J as Uint128, G as User, V as ValidatorActionType, ap as VisualizationRenderer, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers } from '../index-
|
|
3
|
+
import { ao as IxoBlockProps, a4 as IxoEditorType, w as BlocknoteHandlers, a5 as FlowNodeRuntimeState } from '../index-1drTq85A.mjs';
|
|
4
|
+
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, B as BlocknoteProvider, O as CosmosMsgForEmpty, au as DomainCardData, at as DomainCardRenderer, aq as DynamicListData, ar as DynamicListDataProvider, as as DynamicListPanelRenderer, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, M as Threshold, T as Timestamp, J as Uint128, G as User, V as ValidatorActionType, ap as VisualizationRenderer, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers } from '../index-1drTq85A.mjs';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
6
|
import { SurveyModel } from '@ixo/surveys';
|
|
7
7
|
import * as _blocknote_core from '@blocknote/core';
|
|
8
8
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
9
9
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
10
10
|
import { Map as Map$1 } from 'yjs';
|
|
11
|
+
import '@tiptap/core';
|
|
11
12
|
import '@ixo/ucan';
|
|
12
13
|
|
|
13
14
|
declare const DynamicListBlockSpec: {
|
|
@@ -188,6 +189,47 @@ interface PageTitleProps {
|
|
|
188
189
|
}
|
|
189
190
|
declare function PageTitle({ editor, editable }: PageTitleProps): React__default.ReactElement;
|
|
190
191
|
|
|
192
|
+
interface FlowNodePanelProps {
|
|
193
|
+
editor: IxoBlockProps['editor'];
|
|
194
|
+
block: IxoBlockProps['block'];
|
|
195
|
+
isDisabled?: {
|
|
196
|
+
isDisabled: 'disable';
|
|
197
|
+
message?: string;
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Single dispatcher that, given a flow editor and a step block, renders that
|
|
202
|
+
* block's "do-the-step" / detail UI. Lets a host app render the panel for any
|
|
203
|
+
* selected step in its own right column without relying on the per-block
|
|
204
|
+
* usePanel/registeredPanels indirection.
|
|
205
|
+
*
|
|
206
|
+
* NOTE: every rendered detail component reads from BlocknoteContext
|
|
207
|
+
* (useBlocknoteHandlers / useBlocknoteContext throw if the provider is
|
|
208
|
+
* missing). Keep <FlowNodePanel> wrapped in the app's BlocknoteProvider /
|
|
209
|
+
* EditorBlocknoteProvider.
|
|
210
|
+
*/
|
|
211
|
+
declare function FlowNodePanel(props: FlowNodePanelProps): React__default.JSX.Element;
|
|
212
|
+
|
|
213
|
+
interface FlowNodeConfigPanelProps {
|
|
214
|
+
editor: IxoBlockProps['editor'];
|
|
215
|
+
block: IxoBlockProps['block'];
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Single dispatcher that, given a flow editor and a step block, renders that
|
|
219
|
+
* block's TEMPLATE configuration panel — the authoring counterpart to
|
|
220
|
+
* `FlowNodePanel` (which renders the runtime "do-the-step" UI). Lets a host app
|
|
221
|
+
* render the rich config (General + Authorization/Assignment/Commitment/TTL/…)
|
|
222
|
+
* for any selected step in its own right column.
|
|
223
|
+
*
|
|
224
|
+
* Since `addFlowNode` and the registry route every capability through the
|
|
225
|
+
* generic `action` block, `action → ActionConfig` is the primary case; the
|
|
226
|
+
* dedicated block types are covered for documents that use them directly.
|
|
227
|
+
*
|
|
228
|
+
* Wrapped in `FlowPanelEmbeddedContext` so each config's `BaseRightPanelLayout`
|
|
229
|
+
* suppresses its own header/close (the host supplies those).
|
|
230
|
+
*/
|
|
231
|
+
declare function FlowNodeConfigPanel(props: FlowNodeConfigPanelProps): React__default.JSX.Element;
|
|
232
|
+
|
|
191
233
|
interface PanelState {
|
|
192
234
|
activePanel: string | null;
|
|
193
235
|
registeredPanels: Map<string, React.ReactNode>;
|
|
@@ -576,4 +618,4 @@ declare function setDMNotificationRecord(runtimeMap: Map$1<any>, blockId: string
|
|
|
576
618
|
*/
|
|
577
619
|
declare function shouldNotify(state: DMNotificationState, blockId: string, currentAssignedDid: string): boolean;
|
|
578
620
|
|
|
579
|
-
export { BaseIconPicker, type BlockActionDefinition, BlocknoteHandlers, type CollapseEvent, type ColumnPosition, type DMNotificationRecord, type DMNotificationState, type DataSource, DebugButton, type DynamicListAction, type DynamicListBlockProps, DynamicListBlockSpec, type DynamicListColumn, type DynamicListPanelConfig, type FillOpenSurveyResult, type HookedActionInstanceConfig, type HookedActionType, type HookedActionsConfig, HookedActionsTab, IxoEditorType, type ListBlocksUIContextValue, type Listener, type OpenSurveyContext, type OpenSurveyEntry, type OpenSurveyQuestionSummary, type OpenSurveySnapshot, PageHeader, type PageHeaderMenuItem, type PageHeaderProps, PageTitle, type PageTitleProps, type PayloadField, didToMatrixUserId, fillOpenSurvey, findOrCreateDMRoom, getAllHookedActionTypes, getBlockActions, getDMNotificationState, getHomeserver, getHookedActionType, initializeHookedActions, registerBlockActions, registerBuiltInActionTypes, registerHookedActionType, sendDirectMessage, setDMNotificationRecord, shouldNotify, snapshotOpenSurvey, useHookedActions, useListBlocksUI, useListBlocksUIStore, useNodeRuntime, useOpenSurveyStore, usePanel, usePanelStore, useRegisterOpenSurvey };
|
|
621
|
+
export { BaseIconPicker, type BlockActionDefinition, BlocknoteHandlers, type CollapseEvent, type ColumnPosition, type DMNotificationRecord, type DMNotificationState, type DataSource, DebugButton, type DynamicListAction, type DynamicListBlockProps, DynamicListBlockSpec, type DynamicListColumn, type DynamicListPanelConfig, type FillOpenSurveyResult, FlowNodeConfigPanel, type FlowNodeConfigPanelProps, FlowNodePanel, type FlowNodePanelProps, type HookedActionInstanceConfig, type HookedActionType, type HookedActionsConfig, HookedActionsTab, IxoEditorType, type ListBlocksUIContextValue, type Listener, type OpenSurveyContext, type OpenSurveyEntry, type OpenSurveyQuestionSummary, type OpenSurveySnapshot, PageHeader, type PageHeaderMenuItem, type PageHeaderProps, PageTitle, type PageTitleProps, type PayloadField, didToMatrixUserId, fillOpenSurvey, findOrCreateDMRoom, getAllHookedActionTypes, getBlockActions, getDMNotificationState, getHomeserver, getHookedActionType, initializeHookedActions, registerBlockActions, registerBuiltInActionTypes, registerHookedActionType, sendDirectMessage, setDMNotificationRecord, shouldNotify, snapshotOpenSurvey, useHookedActions, useListBlocksUI, useListBlocksUIStore, useNodeRuntime, useOpenSurveyStore, usePanel, usePanelStore, useRegisterOpenSurvey };
|
package/dist/mantine/index.mjs
CHANGED
|
@@ -1,26 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ActionFlowPanel,
|
|
2
3
|
ApiRequestBlockSpec,
|
|
4
|
+
ApiRequestFlowView,
|
|
3
5
|
AuthorizationTab,
|
|
4
6
|
AuthzExecActionTypes,
|
|
5
7
|
BaseIconPicker,
|
|
6
8
|
BlocknoteProvider,
|
|
7
9
|
CheckboxBlockSpec,
|
|
10
|
+
CheckboxFlowView,
|
|
11
|
+
ClaimFlowView,
|
|
8
12
|
CoverImage,
|
|
9
13
|
DevUcanGrantButton,
|
|
14
|
+
DomainCreatorSurveyPanel,
|
|
10
15
|
DynamicListBlockSpec,
|
|
16
|
+
EmailFlowView,
|
|
11
17
|
EntitySigningSetup,
|
|
12
18
|
EvaluationTab,
|
|
19
|
+
EvaluatorFlowView,
|
|
13
20
|
ExternalDropZone,
|
|
21
|
+
FlowConfig,
|
|
22
|
+
FlowPanelEmbeddedContext,
|
|
14
23
|
FlowPermissionsPanel,
|
|
24
|
+
FlowStepRefSpec,
|
|
25
|
+
FormPanel,
|
|
26
|
+
GovernanceGroupPanel,
|
|
15
27
|
GrantPermissionModal,
|
|
16
28
|
GraphQLClient,
|
|
17
29
|
HookedActionsTab,
|
|
18
30
|
IxoEditor,
|
|
19
31
|
ListBlockSpec,
|
|
32
|
+
NotifyFlowView,
|
|
20
33
|
OverviewBlock,
|
|
21
34
|
PageTitle,
|
|
22
35
|
ProposalBlockSpec,
|
|
36
|
+
SecretsFlowView,
|
|
37
|
+
SecretsTemplateView,
|
|
38
|
+
SignPanel,
|
|
39
|
+
SkillsFlowView,
|
|
40
|
+
SkillsTemplateView,
|
|
23
41
|
StakeType,
|
|
42
|
+
TemplateConfig,
|
|
43
|
+
TemplateConfig10,
|
|
44
|
+
TemplateConfig11,
|
|
45
|
+
TemplateConfig12,
|
|
46
|
+
TemplateConfig2,
|
|
47
|
+
TemplateConfig3,
|
|
48
|
+
TemplateConfig4,
|
|
49
|
+
TemplateConfig5,
|
|
50
|
+
TemplateConfig6,
|
|
51
|
+
TemplateConfig7,
|
|
52
|
+
TemplateConfig8,
|
|
53
|
+
TemplateConfig9,
|
|
24
54
|
ValidatorActionType,
|
|
25
55
|
blockSpecs,
|
|
26
56
|
fillOpenSurvey,
|
|
@@ -31,6 +61,7 @@ import {
|
|
|
31
61
|
getExtraSlashMenuItems,
|
|
32
62
|
getHookedActionType,
|
|
33
63
|
initializeHookedActions,
|
|
64
|
+
inlineContentSpecs,
|
|
34
65
|
ixoGraphQLClient,
|
|
35
66
|
registerBlockActions,
|
|
36
67
|
registerBuiltInActionTypes,
|
|
@@ -52,13 +83,13 @@ import {
|
|
|
52
83
|
usePanelStore,
|
|
53
84
|
useRegisterOpenSurvey,
|
|
54
85
|
useTrackBlockFocus
|
|
55
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-MNPEDF2U.mjs";
|
|
56
87
|
import {
|
|
57
88
|
didToMatrixUserId,
|
|
58
89
|
findOrCreateDMRoom,
|
|
59
90
|
getHomeserver,
|
|
60
91
|
sendDirectMessage
|
|
61
|
-
} from "../chunk-
|
|
92
|
+
} from "../chunk-OOPKMGYW.mjs";
|
|
62
93
|
|
|
63
94
|
// src/mantine/components/DebugButton.tsx
|
|
64
95
|
import React from "react";
|
|
@@ -357,6 +388,91 @@ var styles = {
|
|
|
357
388
|
margin: "4px 0"
|
|
358
389
|
}
|
|
359
390
|
};
|
|
391
|
+
|
|
392
|
+
// src/mantine/flow/FlowNodePanel.tsx
|
|
393
|
+
import React3 from "react";
|
|
394
|
+
function FlowNodePanel(props) {
|
|
395
|
+
return /* @__PURE__ */ React3.createElement(FlowPanelEmbeddedContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(FlowNodePanelContent, { ...props }));
|
|
396
|
+
}
|
|
397
|
+
function FlowNodePanelContent({ editor, block, isDisabled }) {
|
|
398
|
+
switch (block?.type) {
|
|
399
|
+
case "action":
|
|
400
|
+
return /* @__PURE__ */ React3.createElement(ActionFlowPanel, { editor, block, isDisabled });
|
|
401
|
+
case "form":
|
|
402
|
+
return /* @__PURE__ */ React3.createElement(FormPanel, { editor, block });
|
|
403
|
+
case "proposal":
|
|
404
|
+
return /* @__PURE__ */ React3.createElement(FlowConfig, { editor, block });
|
|
405
|
+
case "domainCreator":
|
|
406
|
+
return /* @__PURE__ */ React3.createElement(DomainCreatorSurveyPanel, { editor, block });
|
|
407
|
+
case "domainCreatorSign":
|
|
408
|
+
return /* @__PURE__ */ React3.createElement(SignPanel, { editor, block });
|
|
409
|
+
case "governanceGroup":
|
|
410
|
+
return /* @__PURE__ */ React3.createElement(GovernanceGroupPanel, { editor, block });
|
|
411
|
+
case "claim":
|
|
412
|
+
return /* @__PURE__ */ React3.createElement(ClaimFlowView, { editor, block });
|
|
413
|
+
case "evaluator":
|
|
414
|
+
return /* @__PURE__ */ React3.createElement(EvaluatorFlowView, { editor, block });
|
|
415
|
+
case "notify":
|
|
416
|
+
return /* @__PURE__ */ React3.createElement(NotifyFlowView, { editor, block, isDisabled });
|
|
417
|
+
case "checkbox":
|
|
418
|
+
return /* @__PURE__ */ React3.createElement(CheckboxFlowView, { editor, block, isDisabled });
|
|
419
|
+
case "secrets":
|
|
420
|
+
return /* @__PURE__ */ React3.createElement(SecretsFlowView, { editor, block });
|
|
421
|
+
case "skills":
|
|
422
|
+
return /* @__PURE__ */ React3.createElement(SkillsFlowView, { editor, block });
|
|
423
|
+
// email / apiRequest: detail UI is a private PanelContent fn; render the
|
|
424
|
+
// full FlowView card (its own onClick opens the registered panel).
|
|
425
|
+
case "email":
|
|
426
|
+
return /* @__PURE__ */ React3.createElement(EmailFlowView, { editor, block, isDisabled });
|
|
427
|
+
case "apiRequest":
|
|
428
|
+
return /* @__PURE__ */ React3.createElement(ApiRequestFlowView, { editor, block, isDisabled });
|
|
429
|
+
// enumChecklist has no flow-mode panel (renders EnumChecklistBlock in all
|
|
430
|
+
// modes). Fallback to null / "open in document".
|
|
431
|
+
case "enumChecklist":
|
|
432
|
+
default:
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// src/mantine/flow/FlowNodeConfigPanel.tsx
|
|
438
|
+
import React4 from "react";
|
|
439
|
+
function FlowNodeConfigPanel(props) {
|
|
440
|
+
return /* @__PURE__ */ React4.createElement(FlowPanelEmbeddedContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(FlowNodeConfigPanelContent, { ...props }));
|
|
441
|
+
}
|
|
442
|
+
function FlowNodeConfigPanelContent({ editor, block }) {
|
|
443
|
+
switch (block?.type) {
|
|
444
|
+
case "action":
|
|
445
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig12, { editor, block });
|
|
446
|
+
case "claim":
|
|
447
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig6, { editor, block });
|
|
448
|
+
case "form":
|
|
449
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig9, { editor, block });
|
|
450
|
+
case "checkbox":
|
|
451
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig, { editor, block });
|
|
452
|
+
case "evaluator":
|
|
453
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig2, { editor, block });
|
|
454
|
+
case "notify":
|
|
455
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig5, { editor, block });
|
|
456
|
+
case "email":
|
|
457
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig8, { editor, block });
|
|
458
|
+
case "apiRequest":
|
|
459
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig4, { editor, block });
|
|
460
|
+
case "proposal":
|
|
461
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig3, { editor, block });
|
|
462
|
+
case "domainCreator":
|
|
463
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig7, { editor, block });
|
|
464
|
+
case "domainCreatorSign":
|
|
465
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig10, { editor, block });
|
|
466
|
+
case "governanceGroup":
|
|
467
|
+
return /* @__PURE__ */ React4.createElement(TemplateConfig11, { editor, block });
|
|
468
|
+
case "secrets":
|
|
469
|
+
return /* @__PURE__ */ React4.createElement(SecretsTemplateView, { editor, block });
|
|
470
|
+
case "skills":
|
|
471
|
+
return /* @__PURE__ */ React4.createElement(SkillsTemplateView, { editor, block });
|
|
472
|
+
default:
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
360
476
|
export {
|
|
361
477
|
ApiRequestBlockSpec,
|
|
362
478
|
AuthorizationTab,
|
|
@@ -371,7 +487,10 @@ export {
|
|
|
371
487
|
EntitySigningSetup,
|
|
372
488
|
EvaluationTab,
|
|
373
489
|
ExternalDropZone,
|
|
490
|
+
FlowNodeConfigPanel,
|
|
491
|
+
FlowNodePanel,
|
|
374
492
|
FlowPermissionsPanel,
|
|
493
|
+
FlowStepRefSpec,
|
|
375
494
|
GrantPermissionModal,
|
|
376
495
|
GraphQLClient,
|
|
377
496
|
HookedActionsTab,
|
|
@@ -395,6 +514,7 @@ export {
|
|
|
395
514
|
getHomeserver,
|
|
396
515
|
getHookedActionType,
|
|
397
516
|
initializeHookedActions,
|
|
517
|
+
inlineContentSpecs,
|
|
398
518
|
ixoGraphQLClient,
|
|
399
519
|
registerBlockActions,
|
|
400
520
|
registerBuiltInActionTypes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/mantine/components/DebugButton.tsx","../../src/mantine/components/PageHeader.tsx"],"sourcesContent":["import React from 'react';\nimport type { IxoEditorType } from '../../core/types';\nimport type { BlocknoteHandlers } from '../context/BlocknoteContext';\nimport { DevUcanGrantButton } from './DevUcanGrantButton';\n\nexport function DebugButton({ editor, handlers }: { editor: IxoEditorType; handlers?: BlocknoteHandlers }) {\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 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 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 (companion oracle results)\n dump.entities = yMapToObject(yDoc?.getMap('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) runtimeFailures / pendingDMState: failure + notification dedup\n dump.auditTrail = yMapToObject(yDoc?.getMap('auditTrail'));\n dump.pendingInvocations = yMapToObject(yDoc?.getMap('pendingInvocations'));\n dump.barrierState = yMapToObject(yDoc?.getMap('barrierState'));\n dump.runtimeFailures = yMapToObject(yDoc?.getMap('runtimeFailures'));\n dump.dmNotifications = yMapToObject(yDoc?.getMap('dmNotifications'));\n\n const json = JSON.stringify(dump, null, 2);\n console.log('Editor Debug Dump:\\n' + json);\n };\n\n return (\n <>\n <DevUcanGrantButton editor={editor} handlers={handlers} />\n <button\n onClick={handleClick}\n style={{\n position: 'fixed',\n bottom: 16,\n right: 16,\n zIndex: 9999,\n padding: '8px 12px',\n background: '#1a1a2e',\n color: '#00ff88',\n border: '1px solid #00ff88',\n borderRadius: 6,\n fontSize: 12,\n fontFamily: 'monospace',\n cursor: 'pointer',\n opacity: 0.7,\n }}\n title=\"Debug: Log all blocks + runtime state to console\"\n >\n Debug Y.Doc\n </button>\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAKX,SAAS,YAAY,EAAE,QAAQ,SAAS,GAA4D;AACzG,QAAM,eAAe,CAAC,QAAa;AACjC,QAAI,CAAC,IAAK,QAAO;AACjB,UAAM,MAA2B,CAAC;AAClC,QAAI,QAAQ,CAAC,OAAY,QAAgB;AAEvC,UAAI,SAAS,OAAO,MAAM,YAAY,cAAc,OAAO,MAAM,QAAQ,cAAc,CAAC,MAAM,QAAQ,KAAK,GAAG;AAC5G,YAAI,GAAG,IAAI,aAAa,KAAK;AAAA,MAC/B,WAAW,SAAS,OAAO,MAAM,YAAY,YAAY;AACvD,YAAI,GAAG,IAAI,MAAM,QAAQ;AAAA,MAC3B,OAAO;AACL,YAAI,GAAG,IAAI;AAAA,MACb;AAAA,IACF,CAAC;AACD,WAAO,OAAO,KAAK,GAAG,EAAE,WAAW,IAAI,YAAY;AAAA,EACrD;AAEA,QAAM,gBAAgB,CAAC,QAAiB;AACtC,QAAI,OAAO,QAAQ,YAAY,CAAC,IAAK,QAAO;AAC5C,QAAI;AACF,aAAO,KAAK,MAAM,GAAG;AAAA,IACvB,Q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BAAiB;AAAA,IACjB,QAAQ;AAAA,EACV;AACF;","names":["React"]}
|
|
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 from 'react';\nimport type { IxoEditorType } from '../../core/types';\nimport type { BlocknoteHandlers } from '../context/BlocknoteContext';\nimport { DevUcanGrantButton } from './DevUcanGrantButton';\n\nexport function DebugButton({ editor, handlers }: { editor: IxoEditorType; handlers?: BlocknoteHandlers }) {\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 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 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 (companion oracle results)\n dump.entities = yMapToObject(yDoc?.getMap('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) runtimeFailures / pendingDMState: failure + notification dedup\n dump.auditTrail = yMapToObject(yDoc?.getMap('auditTrail'));\n dump.pendingInvocations = yMapToObject(yDoc?.getMap('pendingInvocations'));\n dump.barrierState = yMapToObject(yDoc?.getMap('barrierState'));\n dump.runtimeFailures = yMapToObject(yDoc?.getMap('runtimeFailures'));\n dump.dmNotifications = yMapToObject(yDoc?.getMap('dmNotifications'));\n\n const json = JSON.stringify(dump, null, 2);\n console.log('Editor Debug Dump:\\n' + json);\n };\n\n return (\n <>\n <DevUcanGrantButton editor={editor} handlers={handlers} />\n <button\n onClick={handleClick}\n style={{\n position: 'fixed',\n bottom: 16,\n right: 16,\n zIndex: 9999,\n padding: '8px 12px',\n background: '#1a1a2e',\n color: '#00ff88',\n border: '1px solid #00ff88',\n borderRadius: 6,\n fontSize: 12,\n fontFamily: 'monospace',\n cursor: 'pointer',\n opacity: 0.7,\n }}\n title=\"Debug: Log all blocks + runtime state to console\"\n >\n Debug Y.Doc\n </button>\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';\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}\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 <FlowPanelEmbeddedContext.Provider value={true}>\n <FlowNodePanelContent {...props} />\n </FlowPanelEmbeddedContext.Provider>\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,WAAW;AAKX,SAAS,YAAY,EAAE,QAAQ,SAAS,GAA4D;AACzG,QAAM,eAAe,CAAC,QAAa;AACjC,QAAI,CAAC,IAAK,QAAO;AACjB,UAAM,MAA2B,CAAC;AAClC,QAAI,QAAQ,CAAC,OAAY,QAAgB;AAEvC,UAAI,SAAS,OAAO,MAAM,YAAY,cAAc,OAAO,MAAM,QAAQ,cAAc,CAAC,MAAM,QAAQ,KAAK,GAAG;AAC5G,YAAI,GAAG,IAAI,aAAa,KAAK;AAAA,MAC/B,WAAW,SAAS,OAAO,MAAM,YAAY,YAAY;AACvD,YAAI,GAAG,IAAI,MAAM,QAAQ;AAAA,MAC3B,OAAO;AACL,YAAI,GAAG,IAAI;AAAA,MACb;AAAA,IACF,CAAC;AACD,WAAO,OAAO,KAAK,GAAG,EAAE,WAAW,IAAI,YAAY;AAAA,EACrD;AAEA,QAAM,gBAAgB,CAAC,QAAiB;AACtC,QAAI,OAAO,QAAQ,YAAY,CAAC,IAAK,QAAO;AAC5C,QAAI;AACF,aAAO,KAAK,MAAM,GAAG;AAAA,IACvB,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF;AAEA,QAAM,cAAc,MAAM;AACxB,IAAC,OAAe,WAAW;AAC3B,UAAM,OAAQ,OAAe,SAAU,OAAe,WAAW;AACjE,YAAQ,IAAI,6CAA6C,CAAC,CAAC,IAAI;AAC/D,UAAM,OA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AAO,gBAAAA,OAAA,cAAC,sBAAmB,QAAgB,OAAc;AAAA,IAC3D;AACE,aAAO;AAAA,EACX;AACF;","names":["React","React","React","React","React","TemplateConfig"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as FlowNode, ac as FlowNodeAuthzExtension, a5 as FlowNodeRuntimeState, a4 as IxoEditorType, f as UcanService, I as InvocationStore, aa as EvaluationStatus, i as UcanCapability, U as UcanDelegationStore, S as StoredDelegation } from './index-
|
|
1
|
+
import { a7 as FlowNode, ac as FlowNodeAuthzExtension, a5 as FlowNodeRuntimeState, a4 as IxoEditorType, f as UcanService, I as InvocationStore, aa as EvaluationStatus, i as UcanCapability, U as UcanDelegationStore, S as StoredDelegation } from './index-1drTq85A.mjs';
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
import { Doc, Map } from 'yjs';
|
|
4
4
|
import { MatrixClient } from 'matrix-js-sdk';
|
package/package.json
CHANGED
package/style-core.css
CHANGED
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ixo-editor .bn-editor {
|
|
14
|
-
/* Centered content with max-width constraint
|
|
15
|
-
|
|
14
|
+
/* Centered content with max-width constraint + a guaranteed side gutter so
|
|
15
|
+
the content never hugs the edge on narrow canvases. */
|
|
16
|
+
max-width: 964px;
|
|
16
17
|
margin: 0 auto; /* Center the content */
|
|
18
|
+
padding-inline: 32px;
|
|
19
|
+
box-sizing: border-box;
|
|
17
20
|
border-radius: 0px !important;
|
|
18
21
|
}
|
|
19
22
|
|
package/style-mantine.css
CHANGED
|
@@ -108,9 +108,12 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.ixo-editor .bn-editor {
|
|
111
|
-
/* Centered content with max-width constraint
|
|
112
|
-
|
|
111
|
+
/* Centered content with max-width constraint + a guaranteed side gutter so
|
|
112
|
+
the content never hugs the edge on narrow canvases. */
|
|
113
|
+
max-width: 964px;
|
|
113
114
|
margin: 0 auto; /* Center the content */
|
|
115
|
+
padding-inline: 32px;
|
|
116
|
+
box-sizing: border-box;
|
|
114
117
|
border-radius: 0px !important;
|
|
115
118
|
}
|
|
116
119
|
|
package/style-scoped.css
CHANGED
|
@@ -306,9 +306,12 @@
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
.ixo-editor .bn-editor {
|
|
309
|
-
/* Centered content with max-width constraint
|
|
310
|
-
|
|
309
|
+
/* Centered content with max-width constraint + a guaranteed side gutter so
|
|
310
|
+
the content never hugs the edge on narrow canvases. */
|
|
311
|
+
max-width: 964px;
|
|
311
312
|
margin: 0 auto; /* Center the content */
|
|
313
|
+
padding-inline: 32px;
|
|
314
|
+
box-sizing: border-box;
|
|
312
315
|
border-radius: 0px !important;
|
|
313
316
|
}
|
|
314
317
|
|
package/style.css
CHANGED
|
@@ -108,9 +108,12 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.ixo-editor .bn-editor {
|
|
111
|
-
/* Centered content with max-width constraint
|
|
112
|
-
|
|
111
|
+
/* Centered content with max-width constraint + a guaranteed side gutter so
|
|
112
|
+
the content never hugs the edge on narrow canvases. */
|
|
113
|
+
max-width: 964px;
|
|
113
114
|
margin: 0 auto; /* Center the content */
|
|
115
|
+
padding-inline: 32px;
|
|
116
|
+
box-sizing: border-box;
|
|
114
117
|
border-radius: 0px !important;
|
|
115
118
|
}
|
|
116
119
|
|