@ixo/editor 3.2.1 → 3.3.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-ZCRLP7QH.mjs → chunk-T6RCHQV6.mjs} +565 -237
- package/dist/chunk-T6RCHQV6.mjs.map +1 -0
- package/dist/{chunk-F2JSGDES.mjs → chunk-UBCN5SXM.mjs} +8 -7
- package/dist/{chunk-F2JSGDES.mjs.map → chunk-UBCN5SXM.mjs.map} +1 -1
- package/dist/{chunk-IQX6H7AK.mjs → chunk-VG4NLEZB.mjs} +2 -2
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.mjs +2 -2
- package/dist/{graphql-client-BxmM6bOC.d.ts → graphql-client-DY0fpuUe.d.ts} +68 -22
- package/dist/{index-DMrZ4EwQ.d.ts → index-BNmOWWd8.d.ts} +2 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/mantine/index.d.ts +12 -12
- package/dist/mantine/index.mjs +2 -2
- package/dist/{setup-B0la8n04.d.ts → setup-BFQp9-K3.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZCRLP7QH.mjs.map +0 -1
- /package/dist/{chunk-IQX6H7AK.mjs.map → chunk-VG4NLEZB.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActionByCan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UBCN5SXM.mjs";
|
|
4
4
|
|
|
5
5
|
// src/core/lib/flowCompiler/blockMapping.ts
|
|
6
6
|
var ICON_DEFAULTS = {
|
|
@@ -467,4 +467,4 @@ export {
|
|
|
467
467
|
resolveRuntimeRefs,
|
|
468
468
|
setupFlowFromBaseUcan
|
|
469
469
|
};
|
|
470
|
-
//# sourceMappingURL=chunk-
|
|
470
|
+
//# sourceMappingURL=chunk-VG4NLEZB.mjs.map
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { n as ActionDefinition, o as ActionServices } from '../setup-
|
|
2
|
-
export { q as ActionContext, r as ActionResult, h as ActivationResult, u as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, v as CompiledBlock, w as CompiledEdge, m as CompiledFlow, x as CompiledFlowNode, C as CompilerRegistry, t as ConditionRef, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, O as OutputSchemaField, R as RuntimeRef, S as SetupFlowOptions, k as SetupFlowResult, T as TTLConstraint, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, p as clearRuntimeForTemplateClone, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, y as isRuntimeRef, s as setupFlowFromBaseUcan } from '../setup-
|
|
3
|
-
export { A as ActivationCondition, C as ClaimCollectionURI, G as CreateDelegationParams, H as CreateInvocationParams, B as CreateRootDelegationParams, s as DID, D as DelegationChainValidationResult, k as DelegationGrant, E as EvaluationStatus, y as ExecutionWithInvocationResult, z as FindProofsResult, v as FlowNode, F as FlowNodeAuthzExtension, u as FlowNodeBase, t as FlowNodeRuntimeState, w as InvocationRequest, x as InvocationResult, I as InvocationStore, L as LinkedClaim, N as NodeState, S as StoredDelegation, j as StoredInvocation, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService } from '../index-
|
|
1
|
+
import { n as ActionDefinition, o as ActionServices } from '../setup-BFQp9-K3.mjs';
|
|
2
|
+
export { q as ActionContext, r as ActionResult, h as ActivationResult, u as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, v as CompiledBlock, w as CompiledEdge, m as CompiledFlow, x as CompiledFlowNode, C as CompilerRegistry, t as ConditionRef, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, O as OutputSchemaField, R as RuntimeRef, S as SetupFlowOptions, k as SetupFlowResult, T as TTLConstraint, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, p as clearRuntimeForTemplateClone, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, y as isRuntimeRef, s as setupFlowFromBaseUcan } from '../setup-BFQp9-K3.mjs';
|
|
3
|
+
export { A as ActivationCondition, C as ClaimCollectionURI, G as CreateDelegationParams, H as CreateInvocationParams, B as CreateRootDelegationParams, s as DID, D as DelegationChainValidationResult, k as DelegationGrant, E as EvaluationStatus, y as ExecutionWithInvocationResult, z as FindProofsResult, v as FlowNode, F as FlowNodeAuthzExtension, u as FlowNodeBase, t as FlowNodeRuntimeState, w as InvocationRequest, x as InvocationResult, I as InvocationStore, L as LinkedClaim, N as NodeState, S as StoredDelegation, j as StoredInvocation, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService } from '../index-BNmOWWd8.mjs';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'matrix-js-sdk';
|
|
6
6
|
import '@blocknote/core';
|
|
7
|
+
import 'react';
|
|
7
8
|
import '@ixo/ucan';
|
|
8
9
|
|
|
9
10
|
declare function registerAction<TInputs extends Record<string, any> = Record<string, any>>(definition: ActionDefinition<TInputs>): void;
|
package/dist/core/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
isRuntimeRef,
|
|
4
4
|
resolveRuntimeRefs,
|
|
5
5
|
setupFlowFromBaseUcan
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-VG4NLEZB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildAuthzFromProps,
|
|
9
9
|
buildFlowNodeFromBlock,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
isNodeActive,
|
|
27
27
|
registerAction,
|
|
28
28
|
typeToCan
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-UBCN5SXM.mjs";
|
|
30
30
|
import {
|
|
31
31
|
computeCID,
|
|
32
32
|
computeJsonCID
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _blocknote_core from '@blocknote/core';
|
|
2
|
-
import { K as IxoBlockProps, J as IxoEditorType, l as IxoEditorOptions, p as IxoCollaborativeEditorOptions, k as DelegationGrant } from './index-
|
|
2
|
+
import { K as IxoBlockProps, J as IxoEditorType, l as IxoEditorOptions, p as IxoCollaborativeEditorOptions, k as DelegationGrant } from './index-BNmOWWd8.mjs';
|
|
3
3
|
import { Text, Doc, Map, Array as Array$1 } from 'yjs';
|
|
4
|
-
import
|
|
4
|
+
import React__default from 'react';
|
|
5
5
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
6
6
|
|
|
7
7
|
declare const CheckboxBlockSpec: {
|
|
@@ -1159,36 +1159,77 @@ interface DomainCard {
|
|
|
1159
1159
|
valid_from?: string;
|
|
1160
1160
|
}
|
|
1161
1161
|
interface AssetDetails extends Asset {
|
|
1162
|
+
type: string;
|
|
1163
|
+
image: string;
|
|
1162
1164
|
actionSections: SelectionActionSection[];
|
|
1163
1165
|
}
|
|
1164
1166
|
interface CollectionDetails extends Collection {
|
|
1167
|
+
type: string;
|
|
1168
|
+
image: string;
|
|
1165
1169
|
actionSections: SelectionActionSection[];
|
|
1166
1170
|
}
|
|
1167
1171
|
interface TransactionDetails extends Transaction {
|
|
1172
|
+
image: string;
|
|
1168
1173
|
actionSections: SelectionActionSection[];
|
|
1169
1174
|
}
|
|
1170
1175
|
interface InvestmentDetails extends Investment {
|
|
1176
|
+
type: string;
|
|
1177
|
+
image: string;
|
|
1171
1178
|
actionSections: SelectionActionSection[];
|
|
1172
1179
|
}
|
|
1173
1180
|
interface OracleDetails extends Oracle {
|
|
1181
|
+
type: string;
|
|
1182
|
+
image: string;
|
|
1174
1183
|
actionSections: SelectionActionSection[];
|
|
1175
1184
|
}
|
|
1176
1185
|
interface PODDetails extends POD {
|
|
1186
|
+
type: string;
|
|
1187
|
+
image: string;
|
|
1177
1188
|
actionSections: SelectionActionSection[];
|
|
1178
1189
|
}
|
|
1179
1190
|
interface ProposalDetails extends Proposal {
|
|
1191
|
+
type: string;
|
|
1192
|
+
image: string;
|
|
1180
1193
|
actionSections: SelectionActionSection[];
|
|
1181
1194
|
}
|
|
1182
1195
|
interface RequestDetails extends Request {
|
|
1196
|
+
type: string;
|
|
1197
|
+
image: string;
|
|
1183
1198
|
actionSections: SelectionActionSection[];
|
|
1184
1199
|
}
|
|
1185
1200
|
interface MemberDetails extends Member {
|
|
1201
|
+
type: string;
|
|
1202
|
+
image: string;
|
|
1186
1203
|
actionSections: SelectionActionSection[];
|
|
1187
1204
|
}
|
|
1188
1205
|
interface ValidatorDetails extends Validator {
|
|
1206
|
+
type: string;
|
|
1207
|
+
image: string;
|
|
1189
1208
|
actionSections: SelectionActionSection[];
|
|
1190
1209
|
}
|
|
1191
1210
|
interface LinkedResourceDetails extends LinkedResource {
|
|
1211
|
+
image: string;
|
|
1212
|
+
actionSections: SelectionActionSection[];
|
|
1213
|
+
}
|
|
1214
|
+
interface ProjectDetails extends Project {
|
|
1215
|
+
type: string;
|
|
1216
|
+
image: string;
|
|
1217
|
+
actionSections: SelectionActionSection[];
|
|
1218
|
+
}
|
|
1219
|
+
interface DaoDetails extends Dao {
|
|
1220
|
+
image: string;
|
|
1221
|
+
actionSections: SelectionActionSection[];
|
|
1222
|
+
}
|
|
1223
|
+
interface BalanceDetails extends Balance {
|
|
1224
|
+
image: string;
|
|
1225
|
+
actionSections: SelectionActionSection[];
|
|
1226
|
+
}
|
|
1227
|
+
interface DeedSubscriptionDetails extends DeedSubscription {
|
|
1228
|
+
image: string;
|
|
1229
|
+
actionSections: SelectionActionSection[];
|
|
1230
|
+
}
|
|
1231
|
+
interface ClaimDetails extends Claim {
|
|
1232
|
+
image: string;
|
|
1192
1233
|
actionSections: SelectionActionSection[];
|
|
1193
1234
|
}
|
|
1194
1235
|
interface DAOGroup {
|
|
@@ -1500,6 +1541,11 @@ interface BlocknoteHandlers {
|
|
|
1500
1541
|
getValidatorDetails?: (id: string) => Promise<ValidatorDetails>;
|
|
1501
1542
|
getLinkedResourceDetails?: (id: string) => Promise<LinkedResourceDetails>;
|
|
1502
1543
|
getDaoMemberDetails?: (id: string) => Promise<MemberDetails>;
|
|
1544
|
+
getProjectDetails?: (id: string) => Promise<ProjectDetails>;
|
|
1545
|
+
getDaoDetails?: (id: string) => Promise<DaoDetails>;
|
|
1546
|
+
getBalanceDetails?: (id: string) => Promise<BalanceDetails>;
|
|
1547
|
+
getDeedSubscriptionDetails?: (id: string) => Promise<DeedSubscriptionDetails>;
|
|
1548
|
+
getClaimDetails?: (id: string) => Promise<ClaimDetails>;
|
|
1503
1549
|
getDeedSurveyTemplate: (deedDid: string, claimCollectionId?: string) => Promise<{
|
|
1504
1550
|
surveyTemplate: any;
|
|
1505
1551
|
claimCollectionId: string;
|
|
@@ -2149,7 +2195,7 @@ type DocType = 'template' | 'page' | 'flow';
|
|
|
2149
2195
|
* @param onPreferencesChange - Optional callback to update preferences (persists via CRDT)
|
|
2150
2196
|
* @returns React node with the rendered visualization, or null if type is not supported
|
|
2151
2197
|
*/
|
|
2152
|
-
type VisualizationRenderer = (vizType: string, config: object, preferences?: object, onPreferencesChange?: (prefs: object) => void) =>
|
|
2198
|
+
type VisualizationRenderer = (vizType: string, config: object, preferences?: object, onPreferencesChange?: (prefs: object) => void) => React__default.ReactNode | null;
|
|
2153
2199
|
/**
|
|
2154
2200
|
* Domain card data structure for rendering domain card previews
|
|
2155
2201
|
*/
|
|
@@ -2191,7 +2237,7 @@ interface DomainCardData {
|
|
|
2191
2237
|
* Renderer for domain card previews in the domainCardViewer block.
|
|
2192
2238
|
* The web app provides this renderer to display domain card data with proper styling.
|
|
2193
2239
|
*/
|
|
2194
|
-
type DomainCardRenderer = (domainCardData: DomainCardData) =>
|
|
2240
|
+
type DomainCardRenderer = (domainCardData: DomainCardData) => React__default.ReactNode;
|
|
2195
2241
|
/**
|
|
2196
2242
|
* Dynamic list data returned by the data provider
|
|
2197
2243
|
*/
|
|
@@ -2242,7 +2288,7 @@ interface DynamicListAction {
|
|
|
2242
2288
|
* @param dataSource - Data source info (oracle, query, etc.)
|
|
2243
2289
|
* @returns React node with custom panel content, or null to use default
|
|
2244
2290
|
*/
|
|
2245
|
-
type DynamicListPanelRenderer = (item: any, columns: DynamicListColumn[], dataSource: DataSource | null, panelDescription?: string, actions?: DynamicListAction[], onClose?: () => void) =>
|
|
2291
|
+
type DynamicListPanelRenderer = (item: any, columns: DynamicListColumn[], dataSource: DataSource | null, panelDescription?: string, actions?: DynamicListAction[], onClose?: () => void) => React__default.ReactNode | null;
|
|
2246
2292
|
interface BlocknoteContextValue {
|
|
2247
2293
|
editor?: IxoEditorType;
|
|
2248
2294
|
handlers?: BlocknoteHandlers;
|
|
@@ -2257,8 +2303,8 @@ interface BlocknoteContextValue {
|
|
|
2257
2303
|
invalidateProposal: (proposalId: string) => void;
|
|
2258
2304
|
subscribeToProposal: (proposalId: string) => ProposalResponse | undefined;
|
|
2259
2305
|
activeDrawerId: string | null;
|
|
2260
|
-
drawerContent:
|
|
2261
|
-
openDrawer: (id: string, content:
|
|
2306
|
+
drawerContent: React__default.ReactNode | null;
|
|
2307
|
+
openDrawer: (id: string, content: React__default.ReactNode) => void;
|
|
2262
2308
|
closeDrawer: () => void;
|
|
2263
2309
|
visualizationRenderer?: VisualizationRenderer;
|
|
2264
2310
|
getDynamicListData?: DynamicListDataProvider;
|
|
@@ -2270,8 +2316,8 @@ interface BlocknoteContextValue {
|
|
|
2270
2316
|
}>;
|
|
2271
2317
|
awarenessInstance?: any;
|
|
2272
2318
|
}
|
|
2273
|
-
declare const BlocknoteProvider:
|
|
2274
|
-
children:
|
|
2319
|
+
declare const BlocknoteProvider: React__default.FC<{
|
|
2320
|
+
children: React__default.ReactNode;
|
|
2275
2321
|
editor?: IxoEditorType;
|
|
2276
2322
|
handlers?: BlocknoteHandlers;
|
|
2277
2323
|
blockRequirements?: BlockRequirements;
|
|
@@ -2618,15 +2664,15 @@ interface ExternalDropZoneProps {
|
|
|
2618
2664
|
/** MIME type to accept (default: 'application/x-artifact') */
|
|
2619
2665
|
acceptedType?: string;
|
|
2620
2666
|
/** Drop indicator element to show (provided by caller, already has data) */
|
|
2621
|
-
dropIndicator?:
|
|
2667
|
+
dropIndicator?: React__default.ReactNode;
|
|
2622
2668
|
/** Whether placement mode is active (click-to-place) */
|
|
2623
2669
|
isPlacementMode?: boolean;
|
|
2624
2670
|
/** Callback when placement mode should be canceled */
|
|
2625
2671
|
onPlacementCancel?: () => void;
|
|
2626
2672
|
/** Children (the editor content) */
|
|
2627
|
-
children:
|
|
2673
|
+
children: React__default.ReactNode;
|
|
2628
2674
|
}
|
|
2629
|
-
declare const ExternalDropZone:
|
|
2675
|
+
declare const ExternalDropZone: React__default.FC<ExternalDropZoneProps>;
|
|
2630
2676
|
|
|
2631
2677
|
interface IxoEditorProps {
|
|
2632
2678
|
editor: IxoEditorType | undefined;
|
|
@@ -2634,7 +2680,7 @@ interface IxoEditorProps {
|
|
|
2634
2680
|
className?: string;
|
|
2635
2681
|
onChange?: () => void;
|
|
2636
2682
|
onSelectionChange?: () => void;
|
|
2637
|
-
children?:
|
|
2683
|
+
children?: React__default.ReactNode;
|
|
2638
2684
|
mantineTheme?: any;
|
|
2639
2685
|
handlers?: BlocknoteHandlers;
|
|
2640
2686
|
blockRequirements?: BlockRequirements;
|
|
@@ -2642,7 +2688,7 @@ interface IxoEditorProps {
|
|
|
2642
2688
|
isPanelVisible?: boolean;
|
|
2643
2689
|
coverImageUrl?: string;
|
|
2644
2690
|
logoUrl?: string;
|
|
2645
|
-
visualizationRenderer?: (vizType: string, config: object) =>
|
|
2691
|
+
visualizationRenderer?: (vizType: string, config: object) => React__default.ReactNode;
|
|
2646
2692
|
getDynamicListData?: DynamicListDataProvider;
|
|
2647
2693
|
dynamicListPanelRenderer?: DynamicListPanelRenderer;
|
|
2648
2694
|
domainCardRenderer?: DomainCardRenderer;
|
|
@@ -2651,7 +2697,7 @@ interface IxoEditorProps {
|
|
|
2651
2697
|
/** MIME type to accept for external drops (default: 'application/x-artifact') */
|
|
2652
2698
|
externalDropType?: string;
|
|
2653
2699
|
/** Drop indicator element to show during drag (caller provides with data already populated) */
|
|
2654
|
-
dropIndicator?:
|
|
2700
|
+
dropIndicator?: React__default.ReactNode;
|
|
2655
2701
|
/** Whether placement mode is active (click-to-place) */
|
|
2656
2702
|
isPlacementMode?: boolean;
|
|
2657
2703
|
/** Callback when placement mode should be canceled */
|
|
@@ -2667,13 +2713,13 @@ interface IxoEditorProps {
|
|
|
2667
2713
|
/**
|
|
2668
2714
|
* IxoEditor component - A customized BlockNote editor for IXO (Mantine UI)
|
|
2669
2715
|
*/
|
|
2670
|
-
declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, coverImageUrl, logoUrl, visualizationRenderer, getDynamicListData, dynamicListPanelRenderer, domainCardRenderer, onExternalDrop, externalDropType, dropIndicator, isPlacementMode, onPlacementCancel, mapConfig, connectedUsers, awarenessInstance, }: IxoEditorProps):
|
|
2716
|
+
declare function IxoEditor({ editor, editable, className, onChange, onSelectionChange, children, mantineTheme, handlers, blockRequirements, isPanelVisible, coverImageUrl, logoUrl, visualizationRenderer, getDynamicListData, dynamicListPanelRenderer, domainCardRenderer, onExternalDrop, externalDropType, dropIndicator, isPlacementMode, onPlacementCancel, mapConfig, connectedUsers, awarenessInstance, }: IxoEditorProps): React__default.ReactElement | null;
|
|
2671
2717
|
|
|
2672
2718
|
interface CoverImageProps {
|
|
2673
2719
|
coverImageUrl?: string;
|
|
2674
2720
|
logoUrl?: string;
|
|
2675
2721
|
}
|
|
2676
|
-
declare function CoverImage({ coverImageUrl, logoUrl }: CoverImageProps):
|
|
2722
|
+
declare function CoverImage({ coverImageUrl, logoUrl }: CoverImageProps): React__default.ReactElement | null;
|
|
2677
2723
|
|
|
2678
2724
|
type AuthorizationTabState = {
|
|
2679
2725
|
activationUpstreamNodeId: string;
|
|
@@ -2688,14 +2734,14 @@ interface AuthorizationTabProps extends IxoBlockProps {
|
|
|
2688
2734
|
/** Callback to open flow permissions panel */
|
|
2689
2735
|
onOpenFlowPermissions?: () => void;
|
|
2690
2736
|
}
|
|
2691
|
-
declare const AuthorizationTab:
|
|
2737
|
+
declare const AuthorizationTab: React__default.FC<AuthorizationTabProps>;
|
|
2692
2738
|
|
|
2693
2739
|
type EvaluationTabState = {
|
|
2694
2740
|
linkedClaimCollectionId: string;
|
|
2695
2741
|
};
|
|
2696
2742
|
interface EvaluationTabProps extends IxoBlockProps {
|
|
2697
2743
|
}
|
|
2698
|
-
declare const EvaluationTab:
|
|
2744
|
+
declare const EvaluationTab: React__default.FC<EvaluationTabProps>;
|
|
2699
2745
|
|
|
2700
2746
|
interface EntitySigningSetupProps {
|
|
2701
2747
|
opened: boolean;
|
|
@@ -2707,7 +2753,7 @@ interface EntitySigningSetupProps {
|
|
|
2707
2753
|
error?: string;
|
|
2708
2754
|
}>;
|
|
2709
2755
|
}
|
|
2710
|
-
declare const EntitySigningSetup:
|
|
2756
|
+
declare const EntitySigningSetup: React__default.FC<EntitySigningSetupProps>;
|
|
2711
2757
|
|
|
2712
2758
|
interface FlowPermissionsPanelProps {
|
|
2713
2759
|
editor: IxoEditorType;
|
|
@@ -2718,7 +2764,7 @@ interface FlowPermissionsPanelProps {
|
|
|
2718
2764
|
onRevokePermission: (capabilityId: string) => Promise<void>;
|
|
2719
2765
|
getUserDisplayName?: (did: string) => Promise<string>;
|
|
2720
2766
|
}
|
|
2721
|
-
declare const FlowPermissionsPanel:
|
|
2767
|
+
declare const FlowPermissionsPanel: React__default.FC<FlowPermissionsPanelProps>;
|
|
2722
2768
|
|
|
2723
2769
|
interface GrantPermissionModalProps {
|
|
2724
2770
|
opened: boolean;
|
|
@@ -2746,7 +2792,7 @@ interface GrantPermissionModalProps {
|
|
|
2746
2792
|
error?: string;
|
|
2747
2793
|
}>;
|
|
2748
2794
|
}
|
|
2749
|
-
declare const GrantPermissionModal:
|
|
2795
|
+
declare const GrantPermissionModal: React__default.FC<GrantPermissionModalProps>;
|
|
2750
2796
|
|
|
2751
2797
|
interface BlockPresenceUser {
|
|
2752
2798
|
clientId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _blocknote_core from '@blocknote/core';
|
|
2
2
|
import { BlockSchemaFromSpecs, InlineContentSchema, StyleSchema, BlockNoteEditor, PartialBlock } from '@blocknote/core';
|
|
3
|
+
import * as React from 'react';
|
|
3
4
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
4
5
|
import { Map, Array as Array$1 } from 'yjs';
|
|
5
6
|
import { Delegation } from '@ixo/ucan';
|
|
@@ -1782,6 +1783,7 @@ declare const blockSpecs: {
|
|
|
1782
1783
|
};
|
|
1783
1784
|
declare const getExtraSlashMenuItems: (editor: any) => {
|
|
1784
1785
|
title: string;
|
|
1786
|
+
icon: React.JSX.Element;
|
|
1785
1787
|
onItemClick: () => void;
|
|
1786
1788
|
aliases: string[];
|
|
1787
1789
|
group: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, v as BlocknoteHandlers, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from './graphql-client-
|
|
2
|
-
export { h as ActivationResult, A as AuthorizationResult, B as BaseUcanFlow, m as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, S as SetupFlowOptions, k as SetupFlowResult, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, s as setupFlowFromBaseUcan } from './setup-
|
|
3
|
-
export { D as DelegationChainValidationResult, k as DelegationGrant, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, S as StoredDelegation, j as StoredInvocation, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems } from './index-
|
|
1
|
+
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, v as BlocknoteHandlers, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from './graphql-client-DY0fpuUe.mjs';
|
|
2
|
+
export { h as ActivationResult, A as AuthorizationResult, B as BaseUcanFlow, m as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, g as ExecutionContext, f as ExecutionOutcome, l as FlowCapability, F as FlowRuntimeStateManager, N as NodeActionResult, S as SetupFlowOptions, k as SetupFlowResult, d as buildAuthzFromProps, b as buildFlowNodeFromBlock, j as compileBaseUcanFlow, c as createRuntimeStateManager, e as executeNode, i as isAuthorized, a as isNodeActive, s as setupFlowFromBaseUcan } from './setup-BFQp9-K3.mjs';
|
|
3
|
+
export { D as DelegationChainValidationResult, k as DelegationGrant, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, S as StoredDelegation, j as StoredInvocation, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems } from './index-BNmOWWd8.mjs';
|
|
4
4
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
5
5
|
export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
|
|
6
6
|
import 'yjs';
|
package/dist/index.mjs
CHANGED
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
useCreateCollaborativeIxoEditor,
|
|
27
27
|
useCreateIxoEditor,
|
|
28
28
|
useTrackBlockFocus
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-T6RCHQV6.mjs";
|
|
30
30
|
import {
|
|
31
31
|
compileBaseUcanFlow,
|
|
32
32
|
setupFlowFromBaseUcan
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VG4NLEZB.mjs";
|
|
34
34
|
import {
|
|
35
35
|
buildAuthzFromProps,
|
|
36
36
|
buildFlowNodeFromBlock,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
executeNode,
|
|
44
44
|
isAuthorized,
|
|
45
45
|
isNodeActive
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UBCN5SXM.mjs";
|
|
47
47
|
|
|
48
48
|
// src/index.ts
|
|
49
49
|
import { cloneDocument } from "@ixo/matrix-crdt";
|
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { v as BlocknoteHandlers } from '../graphql-client-
|
|
2
|
-
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, ae as DomainCardData, ad as DomainCardRenderer, a8 as DropPosition, aa as DynamicListData, ab as DynamicListDataProvider, ac as DynamicListPanelRenderer, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, a7 as ExternalDropZone, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, a9 as VisualizationRenderer, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from '../graphql-client-
|
|
3
|
-
import
|
|
4
|
-
import { K as IxoBlockProps, J as IxoEditorType, t as FlowNodeRuntimeState } from '../index-
|
|
5
|
-
export { p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, q as blockSpecs, r as getExtraSlashMenuItems } from '../index-
|
|
1
|
+
import { v as BlocknoteHandlers } from '../graphql-client-DY0fpuUe.mjs';
|
|
2
|
+
export { N as Addr, n as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, t as AuthzExecActionTypes, B as BlockPresenceUser, x as BlockRequirements, w as BlocknoteContextValue, q as BlocknoteProvider, i as CheckboxBlockProps, g as CheckboxBlockSpec, Z as CosmosMsgForEmpty, C as CoverImage, c as CoverImageProps, ae as DomainCardData, ad as DomainCardRenderer, a8 as DropPosition, aa as DynamicListData, ab as DynamicListDataProvider, ac as DynamicListPanelRenderer, a0 as Entity, a1 as EntityResponse, f as EntitySigningSetup, a2 as EntityVariables, E as EvaluationTab, e as EvaluationTabState, R as Expiration, a7 as ExternalDropZone, F as FlowPermissionsPanel, G as GrantPermissionModal, a3 as GraphQLClient, a6 as GraphQLRequest, a5 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, l as OverviewBlockProps, _ as ProposalAction, m as ProposalBlockProps, P as ProposalBlockSpec, y as ProposalResponse, z as SingleChoiceProposal, S as StakeType, S as StakeTypeValue, W as Status, X as Threshold, T as Timestamp, Q as Uint128, U as User, V as ValidatorActionType, a9 as VisualizationRenderer, M as Vote, J as VoteInfo, D as VoteResponse, Y as Votes, $ as getEntity, a4 as ixoGraphQLClient, o as useBlockPresence, r as useBlocknoteContext, s as useBlocknoteHandlers, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from '../graphql-client-DY0fpuUe.mjs';
|
|
3
|
+
import React__default, { PropsWithChildren } from 'react';
|
|
4
|
+
import { K as IxoBlockProps, J as IxoEditorType, t as FlowNodeRuntimeState } from '../index-BNmOWWd8.mjs';
|
|
5
|
+
export { p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, q as blockSpecs, r as getExtraSlashMenuItems } from '../index-BNmOWWd8.mjs';
|
|
6
6
|
import * as zustand from 'zustand';
|
|
7
7
|
import * as _blocknote_core from '@blocknote/core';
|
|
8
8
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
@@ -146,7 +146,7 @@ interface DynamicListPanelConfig {
|
|
|
146
146
|
|
|
147
147
|
declare function DebugButton({ editor }: {
|
|
148
148
|
editor: IxoEditorType;
|
|
149
|
-
}):
|
|
149
|
+
}): React__default.JSX.Element;
|
|
150
150
|
|
|
151
151
|
interface BaseIconPickerProps {
|
|
152
152
|
opened: boolean;
|
|
@@ -156,18 +156,18 @@ interface BaseIconPickerProps {
|
|
|
156
156
|
onRemove?: () => void;
|
|
157
157
|
currentIcon?: string;
|
|
158
158
|
}
|
|
159
|
-
declare function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove, children, currentIcon }: PropsWithChildren<BaseIconPickerProps>):
|
|
159
|
+
declare function BaseIconPicker({ opened, onClose, onSelectIcon, onUploadClick, onRemove, children, currentIcon }: PropsWithChildren<BaseIconPickerProps>): React__default.JSX.Element;
|
|
160
160
|
|
|
161
161
|
interface PageHeaderMenuItem {
|
|
162
162
|
label: string;
|
|
163
163
|
onClick: () => void;
|
|
164
|
-
icon?:
|
|
164
|
+
icon?: React__default.ReactNode;
|
|
165
165
|
disabled?: boolean;
|
|
166
166
|
divider?: boolean;
|
|
167
167
|
}
|
|
168
168
|
interface PageHeaderProps {
|
|
169
169
|
title?: string;
|
|
170
|
-
icon?:
|
|
170
|
+
icon?: React__default.ReactNode;
|
|
171
171
|
isPrivate?: boolean;
|
|
172
172
|
onPrivacyChange?: (isPrivate: boolean) => void;
|
|
173
173
|
lastEdited?: string;
|
|
@@ -179,13 +179,13 @@ interface PageHeaderProps {
|
|
|
179
179
|
/**
|
|
180
180
|
* PageHeader component - A Notion-style page header with title, privacy badge, and actions
|
|
181
181
|
*/
|
|
182
|
-
declare function PageHeader({ title, icon, isPrivate, onPrivacyChange, lastEdited, onShare, onFavorite, isFavorited, menuItems, }: PageHeaderProps):
|
|
182
|
+
declare function PageHeader({ title, icon, isPrivate, onPrivacyChange, lastEdited, onShare, onFavorite, isFavorited, menuItems, }: PageHeaderProps): React__default.ReactElement;
|
|
183
183
|
|
|
184
184
|
interface PageTitleProps {
|
|
185
185
|
editor: IxoEditorType;
|
|
186
186
|
editable?: boolean;
|
|
187
187
|
}
|
|
188
|
-
declare function PageTitle({ editor, editable }: PageTitleProps):
|
|
188
|
+
declare function PageTitle({ editor, editable }: PageTitleProps): React__default.ReactElement;
|
|
189
189
|
|
|
190
190
|
interface PanelState {
|
|
191
191
|
activePanel: string | null;
|
|
@@ -394,7 +394,7 @@ interface HookedActionsTabProps {
|
|
|
394
394
|
onHookedActionsChange: (value: string) => void;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
declare const HookedActionsTab:
|
|
397
|
+
declare const HookedActionsTab: React__default.FC<HookedActionsTabProps>;
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
400
|
* Extract the homeserver domain from a Matrix user ID.
|
package/dist/mantine/index.mjs
CHANGED
|
@@ -49,13 +49,13 @@ import {
|
|
|
49
49
|
usePanel,
|
|
50
50
|
usePanelStore,
|
|
51
51
|
useTrackBlockFocus
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-T6RCHQV6.mjs";
|
|
53
53
|
import {
|
|
54
54
|
didToMatrixUserId,
|
|
55
55
|
findOrCreateDMRoom,
|
|
56
56
|
getHomeserver,
|
|
57
57
|
sendDirectMessage
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-UBCN5SXM.mjs";
|
|
59
59
|
export {
|
|
60
60
|
ApiRequestBlockSpec,
|
|
61
61
|
AuthorizationTab,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as FlowNode, F as FlowNodeAuthzExtension, t as FlowNodeRuntimeState, J as IxoEditorType, f as UcanService, I as InvocationStore, E as EvaluationStatus } from './index-
|
|
1
|
+
import { v as FlowNode, F as FlowNodeAuthzExtension, t as FlowNodeRuntimeState, J as IxoEditorType, f as UcanService, I as InvocationStore, E as EvaluationStatus } from './index-BNmOWWd8.mjs';
|
|
2
2
|
import { Doc } from 'yjs';
|
|
3
3
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
4
4
|
|