@ixo/editor 1.4.0 → 1.5.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
@@ -960,15 +960,6 @@ declare const ProposalVoteBlockSpec: {
960
960
  readonly dependsOn: {
961
961
  readonly default: string;
962
962
  };
963
- readonly proposalBlockId: {
964
- readonly default: "";
965
- };
966
- readonly hasDependencies: {
967
- readonly default: true;
968
- };
969
- readonly dependencies: {
970
- readonly default: "";
971
- };
972
963
  readonly title: {
973
964
  readonly default: "";
974
965
  };
@@ -999,15 +990,6 @@ declare const ProposalVoteBlockSpec: {
999
990
  readonly dependsOn: {
1000
991
  readonly default: string;
1001
992
  };
1002
- readonly proposalBlockId: {
1003
- readonly default: "";
1004
- };
1005
- readonly hasDependencies: {
1006
- readonly default: true;
1007
- };
1008
- readonly dependencies: {
1009
- readonly default: "";
1010
- };
1011
993
  readonly title: {
1012
994
  readonly default: "";
1013
995
  };
@@ -1212,15 +1194,6 @@ declare const blockSpecs: {
1212
1194
  readonly dependsOn: {
1213
1195
  readonly default: string;
1214
1196
  };
1215
- readonly proposalBlockId: {
1216
- readonly default: "";
1217
- };
1218
- readonly hasDependencies: {
1219
- readonly default: true;
1220
- };
1221
- readonly dependencies: {
1222
- readonly default: "";
1223
- };
1224
1197
  readonly title: {
1225
1198
  readonly default: "";
1226
1199
  };
@@ -1251,15 +1224,6 @@ declare const blockSpecs: {
1251
1224
  readonly dependsOn: {
1252
1225
  readonly default: string;
1253
1226
  };
1254
- readonly proposalBlockId: {
1255
- readonly default: "";
1256
- };
1257
- readonly hasDependencies: {
1258
- readonly default: true;
1259
- };
1260
- readonly dependencies: {
1261
- readonly default: "";
1262
- };
1263
1227
  readonly title: {
1264
1228
  readonly default: "";
1265
1229
  };
@@ -1465,6 +1429,16 @@ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema
1465
1429
  * @returns Array of flow blocks
1466
1430
  */
1467
1431
  getFlow?: () => any[];
1432
+ /**
1433
+ * Get the document type (template, flow, page, or empty)
1434
+ * @returns Document type string
1435
+ */
1436
+ getDocType?: () => string;
1437
+ /**
1438
+ * Set the document type (template, flow, page, or empty)
1439
+ * @param value - Document type to set
1440
+ */
1441
+ setDocType?: (value: 'template' | 'flow' | 'page' | '') => void;
1468
1442
  }
1469
1443
  /**
1470
1444
  * Re-map BlockNote renderer props to use IxoEditorType instead of BlockNoteEditor.
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  useBlocknoteHandlers,
18
18
  useCreateCollaborativeIxoEditor,
19
19
  useCreateIxoEditor
20
- } from "./chunk-BO2JVTVH.mjs";
20
+ } from "./chunk-VGSTHGS4.mjs";
21
21
  export {
22
22
  AuthzExecActionTypes,
23
23
  BlocknoteProvider,
@@ -17,7 +17,7 @@ import {
17
17
  useBlocknoteHandlers,
18
18
  useCreateCollaborativeIxoEditor,
19
19
  useCreateIxoEditor
20
- } from "../chunk-BO2JVTVH.mjs";
20
+ } from "../chunk-VGSTHGS4.mjs";
21
21
  export {
22
22
  AuthzExecActionTypes,
23
23
  BlocknoteProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "1.4.0",
3
+ "version": "1.5.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",