@ixo/editor 1.7.0 → 1.8.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/index.d.ts CHANGED
@@ -985,7 +985,7 @@ declare const ProposalBlockSpec: {
985
985
  readonly default: "[]";
986
986
  };
987
987
  readonly voteEnabled: {
988
- readonly default: false;
988
+ readonly default: true;
989
989
  };
990
990
  readonly voteTitle: {
991
991
  readonly default: "";
@@ -1031,7 +1031,7 @@ declare const ProposalBlockSpec: {
1031
1031
  readonly default: "[]";
1032
1032
  };
1033
1033
  readonly voteEnabled: {
1034
- readonly default: false;
1034
+ readonly default: true;
1035
1035
  };
1036
1036
  readonly voteTitle: {
1037
1037
  readonly default: "";
@@ -1323,7 +1323,7 @@ declare const blockSpecs: {
1323
1323
  readonly default: "[]";
1324
1324
  };
1325
1325
  readonly voteEnabled: {
1326
- readonly default: false;
1326
+ readonly default: true;
1327
1327
  };
1328
1328
  readonly voteTitle: {
1329
1329
  readonly default: "";
@@ -1369,7 +1369,7 @@ declare const blockSpecs: {
1369
1369
  readonly default: "[]";
1370
1370
  };
1371
1371
  readonly voteEnabled: {
1372
- readonly default: false;
1372
+ readonly default: true;
1373
1373
  };
1374
1374
  readonly voteTitle: {
1375
1375
  readonly default: "";
@@ -1644,10 +1644,27 @@ interface IxoCollaborativeUser {
1644
1644
  address: string;
1645
1645
  id: string;
1646
1646
  }
1647
+ interface IxoCollaborativeEditorPermissions {
1648
+ /**
1649
+ * Whether the user has read permissions
1650
+ * @default true
1651
+ */
1652
+ read: boolean;
1653
+ /**
1654
+ * Whether the user has write permissions
1655
+ * @default true
1656
+ */
1657
+ write: boolean;
1658
+ }
1647
1659
  interface IxoCollaborativeEditorOptions extends IxoEditorOptions {
1648
1660
  user: IxoCollaborativeUser;
1649
1661
  matrixClient: MatrixClient;
1650
1662
  roomId: string;
1663
+ /**
1664
+ * User permissions for the collaborative document
1665
+ * @default { read: true, write: true }
1666
+ */
1667
+ permissions?: IxoCollaborativeEditorPermissions;
1651
1668
  /**
1652
1669
  * Unique identifier for the document/flow
1653
1670
  */
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "./chunk-URIMM24H.mjs";
21
+ } from "./chunk-HCXEWG4Z.mjs";
22
22
  export {
23
23
  ApiRequestBlockSpec,
24
24
  AuthzExecActionTypes,
@@ -18,7 +18,7 @@ import {
18
18
  useBlocknoteHandlers,
19
19
  useCreateCollaborativeIxoEditor,
20
20
  useCreateIxoEditor
21
- } from "../chunk-URIMM24H.mjs";
21
+ } from "../chunk-HCXEWG4Z.mjs";
22
22
  export {
23
23
  ApiRequestBlockSpec,
24
24
  AuthzExecActionTypes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "1.7.0",
3
+ "version": "1.8.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",
@@ -70,7 +70,7 @@
70
70
  "@eslint/compat": "^1.4.0",
71
71
  "@eslint/eslintrc": "^3.3.1",
72
72
  "@eslint/js": "^9.36.0",
73
- "@ixo/matrix-crdt": "1.0.3",
73
+ "@ixo/matrix-crdt": "1.0.4",
74
74
  "@mantine/core": "^7.11.2",
75
75
  "@mantine/hooks": "^7.11.2",
76
76
  "@semantic-release/changelog": "^6.0.3",