@ixo/editor 5.14.0 → 5.18.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-JAB2IBVH.mjs → chunk-67477PYU.mjs} +310 -81
- package/dist/chunk-67477PYU.mjs.map +1 -0
- package/dist/{chunk-UVZZ52PF.mjs → chunk-7OOTFDLP.mjs} +2396 -812
- package/dist/chunk-7OOTFDLP.mjs.map +1 -0
- package/dist/{chunk-ZEKC5FGC.mjs → chunk-K4YAG7AQ.mjs} +2 -2
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.mjs +2 -2
- package/dist/{graphql-client-BjgWToqz.d.ts → graphql-client-xxQMIQzo.d.ts} +1 -1
- package/dist/{index-1Y4fIZa7.d.ts → index-BoRWeiDg.d.ts} +113 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/mantine/index.d.ts +3 -3
- package/dist/mantine/index.mjs +2 -2
- package/dist/{store-CEGM2mJP.d.ts → store-DZobLMG3.d.ts} +2 -1
- package/package.json +3 -3
- package/dist/chunk-JAB2IBVH.mjs.map +0 -1
- package/dist/chunk-UVZZ52PF.mjs.map +0 -1
- /package/dist/{chunk-ZEKC5FGC.mjs.map → chunk-K4YAG7AQ.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isRuntimeRef
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-67477PYU.mjs";
|
|
4
4
|
|
|
5
5
|
// src/core/lib/flowCompiler/resolveRefs.ts
|
|
6
6
|
function resolveRuntimeRefs(nb, getNodeOutput, triggerContext) {
|
|
@@ -60,4 +60,4 @@ function getNestedValue(obj, path) {
|
|
|
60
60
|
export {
|
|
61
61
|
resolveRuntimeRefs
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-K4YAG7AQ.mjs.map
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a5 as ActionDefinition, a6 as ActionServices, Z as FlowAgentCommand, $ as FlowAgentContext, _ as FlowAgentCommandResult, a0 as FlowAgentExecutor, a2 as FlowAgentNodeSnapshot, a7 as FlowAgentBlockerCause, a3 as FlowAgentPublicNodeState } from '../store-
|
|
2
|
-
export { aj as AcquireFlowAgentLeaseParams, a9 as ActionContext, aa as ActionResult, ax as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, aA as CompiledBlock, aB as CompiledEdge, v as CompiledFlow, aC as CompiledFlowNode, C as CompilerRegistry, aw as ConditionRef, ak as CreateAgentCommandParams, al as EvaluateFlowAgentPolicyParams, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, ao as FlowAgentCommandBase, ap as FlowAgentCommandStatus, aq as FlowAgentCommandType, a1 as FlowAgentLease, ar as FlowAgentLedgerEvent, as as FlowAgentLedgerEventType, at as FlowAgentMaps, am as FlowAgentOrchestratorOptions, au as FlowAgentPolicyDecision, av as FlowAgentRunPhase, x as FlowAgentService, an as FlowAgentServiceOptions, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, ab as OutputSchemaField, R as ReadFlowOptions, q as ReadFlowResult, az as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, ay as TTLConstraint, aD as TriggerSpec, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, ac as canMatches, G as cleanupExpiredFlowAgentLeases, a8 as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, ad as computeAgentCommandId, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, ae as isCapabilityMatch, af as isExternalMutation, aE as isRuntimeRef, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, ag as requiredCapabilityForCommand, ah as resourceMatches, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, ai as updateAgentCommand, V as validateAgentCommand, W as validateFlowAgentLease } from '../store-
|
|
3
|
-
import { W as IxoEditorType, f as UcanService, U as UcanDelegationStore, S as StoredDelegation, I as InvocationStore, X as FlowNodeRuntimeState, Y as FlowMetadata, Z as FlowNode } from '../index-
|
|
4
|
-
export { $ as ClaimCollectionURI, aa as CreateDelegationParams, ab as CreateInvocationParams, a9 as CreateRootDelegationParams, _ as DID, D as DelegationChainValidationResult, k as DelegationGrant, a0 as EvaluationStatus, a7 as ExecutionWithInvocationResult, a8 as FindProofsResult, a2 as FlowNodeAuthzExtension, a4 as FlowNodeBase, a5 as InvocationRequest, a6 as InvocationResult, a1 as LinkedClaim, a3 as NodeState, j as StoredInvocation, i as UcanCapability, 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 { a5 as ActionDefinition, a6 as ActionServices, Z as FlowAgentCommand, $ as FlowAgentContext, _ as FlowAgentCommandResult, a0 as FlowAgentExecutor, a2 as FlowAgentNodeSnapshot, a7 as FlowAgentBlockerCause, a3 as FlowAgentPublicNodeState } from '../store-DZobLMG3.mjs';
|
|
2
|
+
export { aj as AcquireFlowAgentLeaseParams, a9 as ActionContext, aa as ActionResult, ax as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, aA as CompiledBlock, aB as CompiledEdge, v as CompiledFlow, aC as CompiledFlowNode, C as CompilerRegistry, aw as ConditionRef, ak as CreateAgentCommandParams, al as EvaluateFlowAgentPolicyParams, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, ao as FlowAgentCommandBase, ap as FlowAgentCommandStatus, aq as FlowAgentCommandType, a1 as FlowAgentLease, ar as FlowAgentLedgerEvent, as as FlowAgentLedgerEventType, at as FlowAgentMaps, am as FlowAgentOrchestratorOptions, au as FlowAgentPolicyDecision, av as FlowAgentRunPhase, x as FlowAgentService, an as FlowAgentServiceOptions, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, ab as OutputSchemaField, R as ReadFlowOptions, q as ReadFlowResult, az as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, ay as TTLConstraint, aD as TriggerSpec, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, ac as canMatches, G as cleanupExpiredFlowAgentLeases, a8 as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, ad as computeAgentCommandId, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, ae as isCapabilityMatch, af as isExternalMutation, aE as isRuntimeRef, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, ag as requiredCapabilityForCommand, ah as resourceMatches, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, ai as updateAgentCommand, V as validateAgentCommand, W as validateFlowAgentLease } from '../store-DZobLMG3.mjs';
|
|
3
|
+
import { W as IxoEditorType, f as UcanService, U as UcanDelegationStore, S as StoredDelegation, I as InvocationStore, X as FlowNodeRuntimeState, Y as FlowMetadata, Z as FlowNode } from '../index-BoRWeiDg.mjs';
|
|
4
|
+
export { $ as ClaimCollectionURI, aa as CreateDelegationParams, ab as CreateInvocationParams, a9 as CreateRootDelegationParams, _ as DID, D as DelegationChainValidationResult, k as DelegationGrant, a0 as EvaluationStatus, a7 as ExecutionWithInvocationResult, a8 as FindProofsResult, a2 as FlowNodeAuthzExtension, a4 as FlowNodeBase, a5 as InvocationRequest, a6 as InvocationResult, a1 as LinkedClaim, a3 as NodeState, j as StoredInvocation, i as UcanCapability, g as UcanServiceConfig, h as UcanServiceHandlers, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService } from '../index-BoRWeiDg.mjs';
|
|
5
5
|
import * as Y from 'yjs';
|
|
6
6
|
import 'matrix-js-sdk';
|
|
7
7
|
import '@blocknote/core';
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveRuntimeRefs
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-K4YAG7AQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
FlowAgentService,
|
|
6
6
|
RUN_RECORD_AUDIT_TYPE,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
validateAgentCommand,
|
|
78
78
|
validateFlowAgentLease,
|
|
79
79
|
writeRunRecordAndReconcile
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-67477PYU.mjs";
|
|
81
81
|
import {
|
|
82
82
|
computeCID,
|
|
83
83
|
computeJsonCID
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _blocknote_core from '@blocknote/core';
|
|
2
|
-
import { ac as IxoBlockProps, l as IxoEditorOptions, W as IxoEditorType, p as IxoCollaborativeEditorOptions, w as BlocknoteHandlers, y as BlockRequirements, aj as UnlMapConfig, af as DynamicListDataProvider, ag as DynamicListPanelRenderer, ah as DomainCardRenderer, R as Translate, k as DelegationGrant } from './index-
|
|
2
|
+
import { ac as IxoBlockProps, l as IxoEditorOptions, W as IxoEditorType, p as IxoCollaborativeEditorOptions, w as BlocknoteHandlers, y as BlockRequirements, aj as UnlMapConfig, af as DynamicListDataProvider, ag as DynamicListPanelRenderer, ah as DomainCardRenderer, R as Translate, k as DelegationGrant } from './index-BoRWeiDg.mjs';
|
|
3
3
|
import { Text, Doc, Map, Array as Array$1 } from 'yjs';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
|
|
@@ -566,7 +566,12 @@ interface VoteResponse {
|
|
|
566
566
|
vote?: VoteInfo | null;
|
|
567
567
|
}
|
|
568
568
|
interface User {
|
|
569
|
+
/** Bare blockchain address (bech32) — e.g. ixo1abc… */
|
|
569
570
|
address: string;
|
|
571
|
+
/** Full IXO DID (e.g. did:ixo:ixo1abc…) — required for UCAN signing.
|
|
572
|
+
* Optional for backward-compat; callers that need a DID should fall back
|
|
573
|
+
* to `did:ixo:${address}` when this field is absent. */
|
|
574
|
+
did?: string;
|
|
570
575
|
}
|
|
571
576
|
type AwarenessDocActor = {
|
|
572
577
|
name: string;
|
|
@@ -1360,6 +1365,21 @@ interface BlocknoteHandlers {
|
|
|
1360
1365
|
getVote: (proposalContractAddress: string, proposalId: string, userAddress: string) => Promise<VoteResponse>;
|
|
1361
1366
|
getProposal: (proposalContractAddress: string, proposalId: string) => Promise<ProposalResponse>;
|
|
1362
1367
|
getCurrentUser: () => User;
|
|
1368
|
+
/**
|
|
1369
|
+
* The companion (chat) oracle's DID for the active network. This is the
|
|
1370
|
+
* ENTITY DID (display, lookup, routing). Use `getOracleAuthDid` instead when
|
|
1371
|
+
* you need a UCAN audience. Returns "" when the host doesn't expose one.
|
|
1372
|
+
*/
|
|
1373
|
+
getOracleDid?: () => string;
|
|
1374
|
+
/**
|
|
1375
|
+
* The companion oracle's signing/auth DID — the value that UCAN delegations
|
|
1376
|
+
* targeting the oracle MUST use as their audience. Resolved from the entity
|
|
1377
|
+
* DID via the `#orz` linked resource (or returned as-is if the active DID
|
|
1378
|
+
* is already a `did:ixo:ixo1…` account DID, e.g. the local-dev override).
|
|
1379
|
+
* Async because the resolution may need a blocksync round trip. The result
|
|
1380
|
+
* is cached by the host, so repeat calls are cheap.
|
|
1381
|
+
*/
|
|
1382
|
+
getOracleAuthDid?: () => Promise<string>;
|
|
1363
1383
|
getRoomMembers: (roomId: string, mx: MatrixClient) => Promise<AwarenessDocActor[]>;
|
|
1364
1384
|
getMatrixInfoPerDid: (did: string) => Promise<IUserMatrixProfile>;
|
|
1365
1385
|
getDaoGroupsIds: () => Promise<string[] | undefined>;
|
|
@@ -1681,6 +1701,10 @@ interface BlocknoteHandlers {
|
|
|
1681
1701
|
invokerType: 'entity' | 'user';
|
|
1682
1702
|
/** Entity room ID (required if invokerType is 'entity') */
|
|
1683
1703
|
entityRoomId?: string;
|
|
1704
|
+
/** DID of the audience (typically the service worker's did:web).
|
|
1705
|
+
* The invocation is addressed to this DID — the worker rejects the
|
|
1706
|
+
* invocation if the audience does not match its own DID. */
|
|
1707
|
+
audience: string;
|
|
1684
1708
|
/** Capability to invoke */
|
|
1685
1709
|
capability: {
|
|
1686
1710
|
can: string;
|
|
@@ -1832,6 +1856,11 @@ interface BlocknoteHandlers {
|
|
|
1832
1856
|
createDomain?: (params: {
|
|
1833
1857
|
/** Entity type from survey (e.g., 'dao', 'protocol') */
|
|
1834
1858
|
entityType: string;
|
|
1859
|
+
/** Entity context entries (e.g., class = selected blueprint DID) */
|
|
1860
|
+
context?: Array<{
|
|
1861
|
+
key: string;
|
|
1862
|
+
val: string;
|
|
1863
|
+
}>;
|
|
1835
1864
|
/** Linked resources to attach to the entity (includes domain card) */
|
|
1836
1865
|
linkedResource: Array<{
|
|
1837
1866
|
id: string;
|
|
@@ -1860,6 +1889,44 @@ interface BlocknoteHandlers {
|
|
|
1860
1889
|
/** Transaction hash */
|
|
1861
1890
|
transactionHash: string;
|
|
1862
1891
|
}>;
|
|
1892
|
+
/**
|
|
1893
|
+
* Build a MsgAddLinkedResource transaction message without signing or broadcasting it.
|
|
1894
|
+
*/
|
|
1895
|
+
createAddLinkedResourceMessage?: (params: {
|
|
1896
|
+
/** Entity DID to update. Host may default to the current entity context. */
|
|
1897
|
+
entityDid?: string;
|
|
1898
|
+
/** Linked resource to add when absent. */
|
|
1899
|
+
linkedResource: {
|
|
1900
|
+
id: string;
|
|
1901
|
+
type: string;
|
|
1902
|
+
description?: string;
|
|
1903
|
+
serviceEndpoint: string;
|
|
1904
|
+
proof?: string;
|
|
1905
|
+
mediaType?: string;
|
|
1906
|
+
encrypted?: string | boolean;
|
|
1907
|
+
right?: string;
|
|
1908
|
+
};
|
|
1909
|
+
/** Optional signer override. Host may default to the connected wallet address. */
|
|
1910
|
+
signer?: string;
|
|
1911
|
+
}) => Promise<{
|
|
1912
|
+
typeUrl: string;
|
|
1913
|
+
value: unknown;
|
|
1914
|
+
}>;
|
|
1915
|
+
/**
|
|
1916
|
+
* Sign and broadcast transaction messages built by host-provided message factories.
|
|
1917
|
+
*/
|
|
1918
|
+
executeTransaction?: (params: {
|
|
1919
|
+
messages: Array<{
|
|
1920
|
+
typeUrl: string;
|
|
1921
|
+
value: unknown;
|
|
1922
|
+
}>;
|
|
1923
|
+
memo?: string;
|
|
1924
|
+
}) => Promise<{
|
|
1925
|
+
transactionHash?: string;
|
|
1926
|
+
code?: number;
|
|
1927
|
+
rawLog?: string;
|
|
1928
|
+
[key: string]: unknown;
|
|
1929
|
+
}>;
|
|
1863
1930
|
/**
|
|
1864
1931
|
* List available email templates from Mailgun
|
|
1865
1932
|
*/
|
|
@@ -2019,6 +2086,37 @@ interface BlocknoteHandlers {
|
|
|
2019
2086
|
icon?: string;
|
|
2020
2087
|
description?: string;
|
|
2021
2088
|
}>>;
|
|
2089
|
+
/**
|
|
2090
|
+
* List IID-backed entities from Blocksync.
|
|
2091
|
+
* Used by the POD setup flow to list parent DAOs/PODs controlled by the current user.
|
|
2092
|
+
*/
|
|
2093
|
+
getIids?: (params?: {
|
|
2094
|
+
ids?: string[];
|
|
2095
|
+
/** Controller DIDs to filter by. */
|
|
2096
|
+
controllers?: string[];
|
|
2097
|
+
entityTypes?: string[];
|
|
2098
|
+
pagination?: {
|
|
2099
|
+
page?: number;
|
|
2100
|
+
pageSize?: number;
|
|
2101
|
+
offset?: number;
|
|
2102
|
+
limit?: number;
|
|
2103
|
+
};
|
|
2104
|
+
fields?: string[];
|
|
2105
|
+
}) => Promise<{
|
|
2106
|
+
nodes: Array<{
|
|
2107
|
+
id: string;
|
|
2108
|
+
type: string;
|
|
2109
|
+
iid: {
|
|
2110
|
+
id?: string;
|
|
2111
|
+
controller?: string[];
|
|
2112
|
+
alsoKnownAs?: string;
|
|
2113
|
+
service?: Service[];
|
|
2114
|
+
linkedResource?: LinkedResource[];
|
|
2115
|
+
[key: string]: unknown;
|
|
2116
|
+
};
|
|
2117
|
+
}>;
|
|
2118
|
+
totalCount?: number;
|
|
2119
|
+
}>;
|
|
2022
2120
|
/**
|
|
2023
2121
|
* List flow templates available for a given blueprint entity.
|
|
2024
2122
|
* Used by the POD setup flow to let the user select startup flows.
|
|
@@ -4055,6 +4153,9 @@ declare const blockSpecs: {
|
|
|
4055
4153
|
readonly paymentError: {
|
|
4056
4154
|
readonly default: "";
|
|
4057
4155
|
};
|
|
4156
|
+
readonly payments: {
|
|
4157
|
+
readonly default: "[]";
|
|
4158
|
+
};
|
|
4058
4159
|
};
|
|
4059
4160
|
readonly content: "none";
|
|
4060
4161
|
};
|
|
@@ -4121,6 +4222,9 @@ declare const blockSpecs: {
|
|
|
4121
4222
|
readonly paymentError: {
|
|
4122
4223
|
readonly default: "";
|
|
4123
4224
|
};
|
|
4225
|
+
readonly payments: {
|
|
4226
|
+
readonly default: "[]";
|
|
4227
|
+
};
|
|
4124
4228
|
};
|
|
4125
4229
|
readonly content: "none";
|
|
4126
4230
|
}, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
|
|
@@ -4661,6 +4765,8 @@ interface CreateInvocationParams {
|
|
|
4661
4765
|
invokerType: 'entity' | 'user';
|
|
4662
4766
|
/** Entity room ID if signing as entity */
|
|
4663
4767
|
entityRoomId?: string;
|
|
4768
|
+
/** DID of the audience */
|
|
4769
|
+
audience?: string;
|
|
4664
4770
|
/** Capability to invoke */
|
|
4665
4771
|
capability: UcanCapability;
|
|
4666
4772
|
/** CIDs of proof delegations */
|
|
@@ -5276,8 +5382,15 @@ interface IxoCollaborativeUser {
|
|
|
5276
5382
|
name: string;
|
|
5277
5383
|
color: string;
|
|
5278
5384
|
accessToken: string;
|
|
5385
|
+
/** Bare blockchain address (bech32, e.g. ixo1abc…) */
|
|
5279
5386
|
address: string;
|
|
5387
|
+
/** Matrix user ID (e.g. @did-ixo-ixo1abc:server) — used for collaborative
|
|
5388
|
+
* awareness and Matrix room operations. NOT a UCAN-compatible DID. */
|
|
5280
5389
|
id: string;
|
|
5390
|
+
/** Full IXO DID (e.g. did:ixo:ixo1abc…). Used for UCAN signing — must
|
|
5391
|
+
* start with `did:` so dag-ucan / ucanto can parse it. Optional only for
|
|
5392
|
+
* backward-compat with hosts that haven't updated yet. */
|
|
5393
|
+
did?: string;
|
|
5281
5394
|
/** Optional avatar image URL for presence indicators */
|
|
5282
5395
|
avatar?: string;
|
|
5283
5396
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { n 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, r as Entity, s as EntityResponse, f as EntitySigningSetup, t as EntityVariables, E as EvaluationTab, e as EvaluationTabState, F as FlowPermissionsPanel, G as GrantPermissionModal, v as GraphQLClient, y as GraphQLRequest, x 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, m as ProposalBlockProps, P as ProposalBlockSpec, q as getEntity, w as ixoGraphQLClient, o as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from './graphql-client-
|
|
2
|
-
export { A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, Z as FlowAgentCommand, _ as FlowAgentCommandResult, $ as FlowAgentContext, a0 as FlowAgentExecutor, a1 as FlowAgentLease, a2 as FlowAgentNodeSnapshot, a3 as FlowAgentPublicNodeState, x as FlowAgentService, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, G as cleanupExpiredFlowAgentLeases, l as compileBaseUcanFlow, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, V as validateAgentCommand, W as validateFlowAgentLease } from './store-
|
|
3
|
-
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, w as BlocknoteHandlers, B as BlocknoteProvider, O as CosmosMsgForEmpty, D as DelegationChainValidationResult, k as DelegationGrant, K as Expiration, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, Q as ProposalAction, P as ProposalResponse, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, S as StoredDelegation, j as StoredInvocation, M as Threshold, T as Timestamp, R as Translate, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, J as Uint128, G as User, V as ValidatorActionType, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers, t as useTranslate } from './index-
|
|
1
|
+
export { n 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, r as Entity, s as EntityResponse, f as EntitySigningSetup, t as EntityVariables, E as EvaluationTab, e as EvaluationTabState, F as FlowPermissionsPanel, G as GrantPermissionModal, v as GraphQLClient, y as GraphQLRequest, x 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, m as ProposalBlockProps, P as ProposalBlockSpec, q as getEntity, w as ixoGraphQLClient, o as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from './graphql-client-xxQMIQzo.mjs';
|
|
2
|
+
export { A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, Z as FlowAgentCommand, _ as FlowAgentCommandResult, $ as FlowAgentContext, a0 as FlowAgentExecutor, a1 as FlowAgentLease, a2 as FlowAgentNodeSnapshot, a3 as FlowAgentPublicNodeState, x as FlowAgentService, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, G as cleanupExpiredFlowAgentLeases, l as compileBaseUcanFlow, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, V as validateAgentCommand, W as validateFlowAgentLease } from './store-DZobLMG3.mjs';
|
|
3
|
+
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, w as BlocknoteHandlers, B as BlocknoteProvider, O as CosmosMsgForEmpty, D as DelegationChainValidationResult, k as DelegationGrant, K as Expiration, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, Q as ProposalAction, P as ProposalResponse, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, S as StoredDelegation, j as StoredInvocation, M as Threshold, T as Timestamp, R as Translate, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, J as Uint128, G as User, V as ValidatorActionType, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers, t as useTranslate } from './index-BoRWeiDg.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
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
useCreateIxoEditor,
|
|
29
29
|
useTrackBlockFocus,
|
|
30
30
|
useTranslate
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-7OOTFDLP.mjs";
|
|
32
|
+
import "./chunk-K4YAG7AQ.mjs";
|
|
33
33
|
import {
|
|
34
34
|
FlowAgentService,
|
|
35
35
|
acquireFlowAgentLease,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
tickFlowAgent,
|
|
69
69
|
validateAgentCommand,
|
|
70
70
|
validateFlowAgentLease
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-67477PYU.mjs";
|
|
72
72
|
|
|
73
73
|
// src/index.ts
|
|
74
74
|
import { cloneDocument } from "@ixo/matrix-crdt";
|
package/dist/mantine/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { n 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, J as DropPosition, r as Entity, s as EntityResponse, f as EntitySigningSetup, t as EntityVariables, E as EvaluationTab, e as EvaluationTabState, z as ExternalDropZone, F as FlowPermissionsPanel, G as GrantPermissionModal, v as GraphQLClient, y as GraphQLRequest, x 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, m as ProposalBlockProps, P as ProposalBlockSpec, q as getEntity, w as ixoGraphQLClient, o as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from '../graphql-client-
|
|
1
|
+
export { n 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, J as DropPosition, r as Entity, s as EntityResponse, f as EntitySigningSetup, t as EntityVariables, E as EvaluationTab, e as EvaluationTabState, z as ExternalDropZone, F as FlowPermissionsPanel, G as GrantPermissionModal, v as GraphQLClient, y as GraphQLRequest, x 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, m as ProposalBlockProps, P as ProposalBlockSpec, q as getEntity, w as ixoGraphQLClient, o as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, p as useTrackBlockFocus } from '../graphql-client-xxQMIQzo.mjs';
|
|
2
2
|
import React__default, { PropsWithChildren } from 'react';
|
|
3
|
-
import { ac as IxoBlockProps, W as IxoEditorType, w as BlocknoteHandlers, X as FlowNodeRuntimeState } from '../index-
|
|
4
|
-
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, B as BlocknoteProvider, O as CosmosMsgForEmpty, ai as DomainCardData, ah as DomainCardRenderer, ae as DynamicListData, af as DynamicListDataProvider, ag as DynamicListPanelRenderer, K as Expiration, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, Q as ProposalAction, P as ProposalResponse, 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, ad 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 { ac as IxoBlockProps, W as IxoEditorType, w as BlocknoteHandlers, X as FlowNodeRuntimeState } from '../index-BoRWeiDg.mjs';
|
|
4
|
+
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, B as BlocknoteProvider, O as CosmosMsgForEmpty, ai as DomainCardData, ah as DomainCardRenderer, ae as DynamicListData, af as DynamicListDataProvider, ag as DynamicListPanelRenderer, K as Expiration, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, Q as ProposalAction, P as ProposalResponse, 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, ad 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-BoRWeiDg.mjs';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
6
|
import * as _blocknote_core from '@blocknote/core';
|
|
7
7
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
package/dist/mantine/index.mjs
CHANGED
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
usePanel,
|
|
51
51
|
usePanelStore,
|
|
52
52
|
useTrackBlockFocus
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-7OOTFDLP.mjs";
|
|
54
54
|
import {
|
|
55
55
|
didToMatrixUserId,
|
|
56
56
|
findOrCreateDMRoom,
|
|
57
57
|
getHomeserver,
|
|
58
58
|
sendDirectMessage
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-67477PYU.mjs";
|
|
60
60
|
export {
|
|
61
61
|
ApiRequestBlockSpec,
|
|
62
62
|
AuthorizationTab,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as FlowNode, a2 as FlowNodeAuthzExtension, X as FlowNodeRuntimeState, W as IxoEditorType, f as UcanService, I as InvocationStore, a0 as EvaluationStatus, i as UcanCapability, U as UcanDelegationStore, S as StoredDelegation } from './index-
|
|
1
|
+
import { Z as FlowNode, a2 as FlowNodeAuthzExtension, X as FlowNodeRuntimeState, W as IxoEditorType, f as UcanService, I as InvocationStore, a0 as EvaluationStatus, i as UcanCapability, U as UcanDelegationStore, S as StoredDelegation } from './index-BoRWeiDg.mjs';
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
import { Doc, Map } from 'yjs';
|
|
4
4
|
import { MatrixClient } from 'matrix-js-sdk';
|
|
@@ -418,6 +418,7 @@ interface ActionServices {
|
|
|
418
418
|
}) => Promise<any>;
|
|
419
419
|
getCurrentUser: () => {
|
|
420
420
|
address: string;
|
|
421
|
+
did?: string;
|
|
421
422
|
};
|
|
422
423
|
createUdid?: (params: any) => Promise<any>;
|
|
423
424
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.0",
|
|
4
4
|
"description": "A custom BlockNote editor wrapper for IXO team",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build": "tsup && node scripts/rename-dts.mjs",
|
|
38
38
|
"dev": "nodemon --watch src --ext ts,tsx --exec \"tsup\"",
|
|
39
39
|
"clean": "rimraf dist style.css",
|
|
40
|
-
"prepare": "husky install &&
|
|
40
|
+
"prepare": "husky install && pnpm run clean && pnpm run build",
|
|
41
41
|
"type-check": "tsc --noEmit",
|
|
42
42
|
"test": "vitest run --passWithNoTests",
|
|
43
43
|
"test:watch": "vitest",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@blocknote/mantine": "0.29.1",
|
|
71
71
|
"@blocknote/react": "0.29.1",
|
|
72
72
|
"@dnd-kit/core": "^6.3.1",
|
|
73
|
-
"@ixo/ucan": "^1.
|
|
73
|
+
"@ixo/ucan": "^1.2.3",
|
|
74
74
|
"@tabler/icons-react": "3.35.0",
|
|
75
75
|
"@tiptap/core": "^2.26.1",
|
|
76
76
|
"@tiptap/extension-code": "^2.26.1",
|