@ixo/editor 3.3.0 → 3.4.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-T6RCHQV6.mjs → chunk-CITHJ6JU.mjs} +6 -8
- package/dist/chunk-CITHJ6JU.mjs.map +1 -0
- package/dist/core/index.d.ts +3 -3
- package/dist/{graphql-client-DY0fpuUe.d.ts → graphql-client-vuaTCDox.d.ts} +2 -2
- package/dist/{index-BNmOWWd8.d.ts → index-MLwb3a2P.d.ts} +10 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/mantine/index.d.ts +4 -4
- package/dist/mantine/index.mjs +1 -1
- package/dist/{setup-BFQp9-K3.d.ts → setup-mrrJlbcA.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-T6RCHQV6.mjs.map +0 -1
|
@@ -29968,7 +29968,7 @@ var LocationFlowView = ({ editor, block }) => {
|
|
|
29968
29968
|
// src/mantine/blocks/location/LocationBlock.tsx
|
|
29969
29969
|
function LocationBlock({ editor, block }) {
|
|
29970
29970
|
const { docType } = useBlocknoteContext();
|
|
29971
|
-
if (docType === "template"
|
|
29971
|
+
if (docType === "template") {
|
|
29972
29972
|
return /* @__PURE__ */ React282.createElement(LocationTemplateView, { editor, block });
|
|
29973
29973
|
}
|
|
29974
29974
|
return /* @__PURE__ */ React282.createElement(LocationFlowView, { editor, block });
|
|
@@ -30209,7 +30209,7 @@ var EmbedFlowView = ({ editor, block }) => {
|
|
|
30209
30209
|
// src/mantine/blocks/embed/EmbedBlock.tsx
|
|
30210
30210
|
function EmbedBlock({ editor, block }) {
|
|
30211
30211
|
const { docType } = useBlocknoteContext();
|
|
30212
|
-
if (docType === "template"
|
|
30212
|
+
if (docType === "template") {
|
|
30213
30213
|
return /* @__PURE__ */ React289.createElement(EmbedTemplateView, { editor, block });
|
|
30214
30214
|
}
|
|
30215
30215
|
return /* @__PURE__ */ React289.createElement(EmbedFlowView, { editor, block });
|
|
@@ -30910,10 +30910,6 @@ var getExtraSlashMenuItems = (editor) => {
|
|
|
30910
30910
|
subtext: "Embed an external website or content via iframe"
|
|
30911
30911
|
}
|
|
30912
30912
|
];
|
|
30913
|
-
const docType = editor?.docType;
|
|
30914
|
-
if (docType === "page") {
|
|
30915
|
-
return slashMenuList.filter((item) => item.title !== "Proposal" && item.title !== "Action" && item.title !== "Protocol Selector");
|
|
30916
|
-
}
|
|
30917
30913
|
return slashMenuList;
|
|
30918
30914
|
};
|
|
30919
30915
|
|
|
@@ -30975,6 +30971,7 @@ function useCreateIxoEditor(options) {
|
|
|
30975
30971
|
};
|
|
30976
30972
|
ixoEditor.mode = "flow";
|
|
30977
30973
|
ixoEditor.docType = docType;
|
|
30974
|
+
ixoEditor.hasBlockType = (type) => (ixoEditor.document || []).some((b) => b.type === type);
|
|
30978
30975
|
ixoEditor.isEditable = editable;
|
|
30979
30976
|
return ixoEditor;
|
|
30980
30977
|
}
|
|
@@ -31000,7 +30997,7 @@ function useMatrixProvider({ matrixClient, roomId, yDoc }) {
|
|
|
31000
30997
|
updateEventType: "matrix-crdt.doc_update",
|
|
31001
30998
|
snapshotEventType: "matrix-crdt.doc_snapshot"
|
|
31002
30999
|
},
|
|
31003
|
-
enableExperimentalWebrtcSync:
|
|
31000
|
+
enableExperimentalWebrtcSync: false,
|
|
31004
31001
|
enableAwareness: true,
|
|
31005
31002
|
reader: { snapshotInterval: 10 },
|
|
31006
31003
|
writer: { flushInterval: 300, retryIfForbiddenInterval: 3e4 }
|
|
@@ -31777,6 +31774,7 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
31777
31774
|
ixoEditor.mode = editable ? "template" : "flow";
|
|
31778
31775
|
ixoEditor.user = memoizedUser;
|
|
31779
31776
|
ixoEditor.docType = docType;
|
|
31777
|
+
ixoEditor.hasBlockType = (type) => (ixoEditor.document || []).some((b) => b.type === type);
|
|
31780
31778
|
ixoEditor.getUserProps = (block) => {
|
|
31781
31779
|
return userFragment.get(block.id) || {};
|
|
31782
31780
|
};
|
|
@@ -34480,4 +34478,4 @@ export {
|
|
|
34480
34478
|
getExtraSlashMenuItems,
|
|
34481
34479
|
useCreateIxoEditor
|
|
34482
34480
|
};
|
|
34483
|
-
//# sourceMappingURL=chunk-
|
|
34481
|
+
//# sourceMappingURL=chunk-CITHJ6JU.mjs.map
|