@ixo/editor 3.8.1 → 4.0.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.
@@ -764,74 +764,6 @@ declare const blockSpecs: {
764
764
  readonly content: "none";
765
765
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
766
766
  };
767
- domainCreator: {
768
- config: {
769
- readonly type: "domainCreator";
770
- readonly propSchema: {
771
- readonly title: {
772
- readonly default: "";
773
- };
774
- readonly description: {
775
- readonly default: "";
776
- };
777
- readonly icon: {
778
- readonly default: "file-text";
779
- };
780
- readonly surveySchema: {
781
- readonly default: "";
782
- };
783
- readonly answers: {
784
- readonly default: "";
785
- };
786
- readonly lastSubmission: {
787
- readonly default: "";
788
- };
789
- readonly entityDid: {
790
- readonly default: "";
791
- };
792
- readonly entityType: {
793
- readonly default: "";
794
- };
795
- readonly skill: {
796
- readonly default: "";
797
- };
798
- };
799
- readonly content: "none";
800
- };
801
- implementation: _blocknote_core.TiptapBlockImplementation<{
802
- readonly type: "domainCreator";
803
- readonly propSchema: {
804
- readonly title: {
805
- readonly default: "";
806
- };
807
- readonly description: {
808
- readonly default: "";
809
- };
810
- readonly icon: {
811
- readonly default: "file-text";
812
- };
813
- readonly surveySchema: {
814
- readonly default: "";
815
- };
816
- readonly answers: {
817
- readonly default: "";
818
- };
819
- readonly lastSubmission: {
820
- readonly default: "";
821
- };
822
- readonly entityDid: {
823
- readonly default: "";
824
- };
825
- readonly entityType: {
826
- readonly default: "";
827
- };
828
- readonly skill: {
829
- readonly default: "";
830
- };
831
- };
832
- readonly content: "none";
833
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
834
- };
835
767
  email: {
836
768
  config: {
837
769
  readonly type: "email";
@@ -1208,184 +1140,6 @@ declare const blockSpecs: {
1208
1140
  readonly content: "none";
1209
1141
  }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1210
1142
  };
1211
- domainCreatorSign: {
1212
- config: {
1213
- readonly type: "domainCreatorSign";
1214
- readonly propSchema: {
1215
- readonly title: {
1216
- readonly default: "";
1217
- };
1218
- readonly description: {
1219
- readonly default: "";
1220
- };
1221
- readonly icon: {
1222
- readonly default: "feather";
1223
- };
1224
- readonly domainCardData: {
1225
- readonly default: "{}";
1226
- };
1227
- readonly entityType: {
1228
- readonly default: "";
1229
- };
1230
- readonly status: {
1231
- readonly default: "pending";
1232
- };
1233
- readonly entityDid: {
1234
- readonly default: "";
1235
- };
1236
- readonly transactionHash: {
1237
- readonly default: "";
1238
- };
1239
- readonly errorMessage: {
1240
- readonly default: "";
1241
- };
1242
- readonly linkedEntities: {
1243
- readonly default: "[]";
1244
- };
1245
- readonly ttlAbsoluteDueDate: {
1246
- readonly default: "";
1247
- };
1248
- readonly ttlFromEnablement: {
1249
- readonly default: "";
1250
- };
1251
- readonly ttlFromCommitment: {
1252
- readonly default: "";
1253
- };
1254
- readonly assignment: {
1255
- readonly default: string;
1256
- };
1257
- readonly commitment: {
1258
- readonly default: string;
1259
- };
1260
- readonly skill: {
1261
- readonly default: "";
1262
- };
1263
- };
1264
- readonly content: "none";
1265
- };
1266
- implementation: _blocknote_core.TiptapBlockImplementation<{
1267
- readonly type: "domainCreatorSign";
1268
- readonly propSchema: {
1269
- readonly title: {
1270
- readonly default: "";
1271
- };
1272
- readonly description: {
1273
- readonly default: "";
1274
- };
1275
- readonly icon: {
1276
- readonly default: "feather";
1277
- };
1278
- readonly domainCardData: {
1279
- readonly default: "{}";
1280
- };
1281
- readonly entityType: {
1282
- readonly default: "";
1283
- };
1284
- readonly status: {
1285
- readonly default: "pending";
1286
- };
1287
- readonly entityDid: {
1288
- readonly default: "";
1289
- };
1290
- readonly transactionHash: {
1291
- readonly default: "";
1292
- };
1293
- readonly errorMessage: {
1294
- readonly default: "";
1295
- };
1296
- readonly linkedEntities: {
1297
- readonly default: "[]";
1298
- };
1299
- readonly ttlAbsoluteDueDate: {
1300
- readonly default: "";
1301
- };
1302
- readonly ttlFromEnablement: {
1303
- readonly default: "";
1304
- };
1305
- readonly ttlFromCommitment: {
1306
- readonly default: "";
1307
- };
1308
- readonly assignment: {
1309
- readonly default: string;
1310
- };
1311
- readonly commitment: {
1312
- readonly default: string;
1313
- };
1314
- readonly skill: {
1315
- readonly default: "";
1316
- };
1317
- };
1318
- readonly content: "none";
1319
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1320
- };
1321
- domainCardViewer: {
1322
- config: {
1323
- readonly type: "domainCardViewer";
1324
- readonly propSchema: {
1325
- readonly title: {
1326
- readonly default: "";
1327
- };
1328
- readonly description: {
1329
- readonly default: "";
1330
- };
1331
- readonly icon: {
1332
- readonly default: "dots-circle";
1333
- };
1334
- readonly domainPreviewData: {
1335
- readonly default: "{}";
1336
- };
1337
- readonly domainCardData: {
1338
- readonly default: "{}";
1339
- };
1340
- readonly status: {
1341
- readonly default: "pending";
1342
- };
1343
- readonly loadingMessage: {
1344
- readonly default: "";
1345
- };
1346
- readonly errorMessage: {
1347
- readonly default: "";
1348
- };
1349
- readonly skill: {
1350
- readonly default: "";
1351
- };
1352
- };
1353
- readonly content: "none";
1354
- };
1355
- implementation: _blocknote_core.TiptapBlockImplementation<{
1356
- readonly type: "domainCardViewer";
1357
- readonly propSchema: {
1358
- readonly title: {
1359
- readonly default: "";
1360
- };
1361
- readonly description: {
1362
- readonly default: "";
1363
- };
1364
- readonly icon: {
1365
- readonly default: "dots-circle";
1366
- };
1367
- readonly domainPreviewData: {
1368
- readonly default: "{}";
1369
- };
1370
- readonly domainCardData: {
1371
- readonly default: "{}";
1372
- };
1373
- readonly status: {
1374
- readonly default: "pending";
1375
- };
1376
- readonly loadingMessage: {
1377
- readonly default: "";
1378
- };
1379
- readonly errorMessage: {
1380
- readonly default: "";
1381
- };
1382
- readonly skill: {
1383
- readonly default: "";
1384
- };
1385
- };
1386
- readonly content: "none";
1387
- }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1388
- };
1389
1143
  governanceGroup: {
1390
1144
  config: {
1391
1145
  readonly type: "governanceGroup";
@@ -2716,4 +2470,4 @@ interface IxoEditorConfig {
2716
2470
  tableHandles: boolean;
2717
2471
  }
2718
2472
 
2719
- export { type CreateRootDelegationParams as A, type CreateDelegationParams as B, type ClaimCollectionURI as C, type DelegationChainValidationResult as D, type EvaluationStatus as E, type FlowNodeAuthzExtension as F, type CreateInvocationParams as G, type IxoEditorType as H, type InvocationStore as I, type IxoBlockProps as J, type LinkedClaim as L, type NodeState as N, type StoredDelegation as S, type UcanDelegationStore as U, createMemoryUcanDelegationStore as a, createInvocationStore as b, createUcanDelegationStore as c, createMemoryInvocationStore as d, createUcanService as e, type UcanService as f, type UcanServiceConfig as g, type UcanServiceHandlers as h, type UcanCapability as i, type StoredInvocation as j, type DelegationGrant as k, type IxoEditorOptions as l, type IxoEditorTheme as m, type IxoEditorConfig as n, type IxoCollaborativeUser as o, type IxoCollaborativeEditorOptions as p, blockSpecs as q, getExtraSlashMenuItems as r, type DID as s, type FlowNodeRuntimeState as t, type FlowNodeBase as u, type FlowNode as v, type InvocationRequest as w, type InvocationResult as x, type ExecutionWithInvocationResult as y, type FindProofsResult as z };
2473
+ export { type FindProofsResult as A, type CreateRootDelegationParams as B, type ClaimCollectionURI as C, type DelegationChainValidationResult as D, type EvaluationStatus as E, type FlowNodeAuthzExtension as F, type CreateDelegationParams as G, type CreateInvocationParams as H, type InvocationStore as I, type IxoBlockProps as J, type LinkedClaim as L, type NodeState as N, type StoredDelegation as S, type UcanDelegationStore as U, createMemoryUcanDelegationStore as a, createInvocationStore as b, createUcanDelegationStore as c, createMemoryInvocationStore as d, createUcanService as e, type UcanService as f, type UcanServiceConfig as g, type UcanServiceHandlers as h, type UcanCapability as i, type StoredInvocation as j, type DelegationGrant as k, type IxoEditorOptions as l, type IxoEditorTheme as m, type IxoEditorConfig as n, type IxoCollaborativeUser as o, type IxoCollaborativeEditorOptions as p, blockSpecs as q, getExtraSlashMenuItems as r, type IxoEditorType as s, type DID as t, type FlowNodeRuntimeState as u, type FlowNodeBase as v, type FlowNode as w, type InvocationRequest as x, type InvocationResult as y, type ExecutionWithInvocationResult as z };
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-DGl50_zh.mjs';
2
- export { A as AuthorizationResult, B as BaseUcanFlow, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, 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, a as buildAuthzFromProps, b as buildFlowNodeFromBlock, l as compileBaseUcanFlow, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, e as executeNode, k as getActiveEditor, i as isAuthorized, n as mergeCompiledFlows, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, j as setActiveEditor, s as setupFlowFromBaseUcan } from './decompile-BroSNv1q.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-BEoftwDZ.mjs';
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-l6N8ekd1.mjs';
2
+ export { A as AuthorizationResult, B as BaseUcanFlow, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, 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, a as buildAuthzFromProps, b as buildFlowNodeFromBlock, l as compileBaseUcanFlow, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, e as executeNode, k as getActiveEditor, i as isAuthorized, n as mergeCompiledFlows, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, j as setActiveEditor, s as setupFlowFromBaseUcan } from './decompile-BNprXLsA.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-CNCZs4wP.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,8 +26,8 @@ import {
26
26
  useCreateCollaborativeIxoEditor,
27
27
  useCreateIxoEditor,
28
28
  useTrackBlockFocus
29
- } from "./chunk-WIPR64OD.mjs";
30
- import "./chunk-FXFKKA6L.mjs";
29
+ } from "./chunk-YWL7V44B.mjs";
30
+ import "./chunk-VE3WI2J2.mjs";
31
31
  import {
32
32
  buildAuthzFromProps,
33
33
  buildFlowNodeFromBlock,
@@ -49,7 +49,7 @@ import {
49
49
  readFlowFromEditor,
50
50
  setActiveEditor,
51
51
  setupFlowFromBaseUcan
52
- } from "./chunk-QIJA3CMG.mjs";
52
+ } from "./chunk-4ETFMWQR.mjs";
53
53
 
54
54
  // src/index.ts
55
55
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -1,8 +1,8 @@
1
- import { v as BlocknoteHandlers } from '../graphql-client-DGl50_zh.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-DGl50_zh.mjs';
1
+ import { v as BlocknoteHandlers } from '../graphql-client-l6N8ekd1.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-l6N8ekd1.mjs';
3
3
  import React__default, { PropsWithChildren } from 'react';
4
- import { J as IxoBlockProps, H as IxoEditorType, t as FlowNodeRuntimeState } from '../index-BEoftwDZ.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-BEoftwDZ.mjs';
4
+ import { J as IxoBlockProps, s as IxoEditorType, u as FlowNodeRuntimeState } from '../index-CNCZs4wP.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-CNCZs4wP.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';
@@ -49,13 +49,13 @@ import {
49
49
  usePanel,
50
50
  usePanelStore,
51
51
  useTrackBlockFocus
52
- } from "../chunk-WIPR64OD.mjs";
52
+ } from "../chunk-YWL7V44B.mjs";
53
53
  import {
54
54
  didToMatrixUserId,
55
55
  findOrCreateDMRoom,
56
56
  getHomeserver,
57
57
  sendDirectMessage
58
- } from "../chunk-QIJA3CMG.mjs";
58
+ } from "../chunk-4ETFMWQR.mjs";
59
59
  export {
60
60
  ApiRequestBlockSpec,
61
61
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.8.1",
3
+ "version": "4.0.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",