@ixo/editor 3.0.0-beta.4 → 3.0.0-beta.5
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.
|
@@ -25972,28 +25972,6 @@ var EmailSendConfig = ({ inputs, onInputsChange, editor, blockId }) => {
|
|
|
25972
25972
|
currentBlockId: blockId,
|
|
25973
25973
|
description: "Carbon copy recipients (optional)"
|
|
25974
25974
|
}
|
|
25975
|
-
), /* @__PURE__ */ React241.createElement(
|
|
25976
|
-
DataInput,
|
|
25977
|
-
{
|
|
25978
|
-
label: "BCC",
|
|
25979
|
-
placeholder: "bcc@example.com",
|
|
25980
|
-
value: local.bcc,
|
|
25981
|
-
onChange: (value) => update({ bcc: value }),
|
|
25982
|
-
editorDocument: editor?.document || [],
|
|
25983
|
-
currentBlockId: blockId,
|
|
25984
|
-
description: "Blind carbon copy recipients (optional)"
|
|
25985
|
-
}
|
|
25986
|
-
), /* @__PURE__ */ React241.createElement(
|
|
25987
|
-
DataInput,
|
|
25988
|
-
{
|
|
25989
|
-
label: "Reply-To",
|
|
25990
|
-
placeholder: "reply@example.com",
|
|
25991
|
-
value: local.replyTo,
|
|
25992
|
-
onChange: (value) => update({ replyTo: value }),
|
|
25993
|
-
editorDocument: editor?.document || [],
|
|
25994
|
-
currentBlockId: blockId,
|
|
25995
|
-
description: "Reply-to address (optional)"
|
|
25996
|
-
}
|
|
25997
25975
|
)), /* @__PURE__ */ React241.createElement(Divider24, { variant: "dashed" }), /* @__PURE__ */ React241.createElement(
|
|
25998
25976
|
BaseTextInput,
|
|
25999
25977
|
{
|
|
@@ -29281,125 +29259,6 @@ var getExtraSlashMenuItems = (editor) => {
|
|
|
29281
29259
|
group: "DAO",
|
|
29282
29260
|
subtext: "Create a new DAO proposal"
|
|
29283
29261
|
},
|
|
29284
|
-
{
|
|
29285
|
-
title: "API Request",
|
|
29286
|
-
onItemClick: () => {
|
|
29287
|
-
editor.insertBlocks(
|
|
29288
|
-
[
|
|
29289
|
-
{
|
|
29290
|
-
type: "apiRequest",
|
|
29291
|
-
props: {
|
|
29292
|
-
title: "",
|
|
29293
|
-
description: "",
|
|
29294
|
-
icon: "square-check",
|
|
29295
|
-
endpoint: "",
|
|
29296
|
-
method: "GET",
|
|
29297
|
-
headers: "[]",
|
|
29298
|
-
body: "[]",
|
|
29299
|
-
response: "",
|
|
29300
|
-
status: "idle",
|
|
29301
|
-
conditions: "",
|
|
29302
|
-
assignment: JSON.stringify({
|
|
29303
|
-
assignedActor: { did: "", avatar: "", displayName: "" },
|
|
29304
|
-
assignedBy: { did: "", avatar: "", displayName: "" },
|
|
29305
|
-
assignedTimestamp: ""
|
|
29306
|
-
})
|
|
29307
|
-
}
|
|
29308
|
-
}
|
|
29309
|
-
],
|
|
29310
|
-
editor.getTextCursorPosition().block,
|
|
29311
|
-
"after"
|
|
29312
|
-
);
|
|
29313
|
-
},
|
|
29314
|
-
aliases: ["api", "api-request", "request", "http", "fetch"],
|
|
29315
|
-
group: "Basics",
|
|
29316
|
-
subtext: "Make HTTP requests and handle responses"
|
|
29317
|
-
},
|
|
29318
|
-
{
|
|
29319
|
-
title: "Email",
|
|
29320
|
-
onItemClick: () => {
|
|
29321
|
-
editor.insertBlocks(
|
|
29322
|
-
[
|
|
29323
|
-
{
|
|
29324
|
-
type: "email",
|
|
29325
|
-
props: {
|
|
29326
|
-
title: "",
|
|
29327
|
-
description: "",
|
|
29328
|
-
icon: "mail",
|
|
29329
|
-
templateName: "",
|
|
29330
|
-
templateVersion: "",
|
|
29331
|
-
from: "",
|
|
29332
|
-
to: "",
|
|
29333
|
-
subject: "",
|
|
29334
|
-
variables: "{}",
|
|
29335
|
-
extractedVariables: "[]",
|
|
29336
|
-
status: "idle",
|
|
29337
|
-
conditions: ""
|
|
29338
|
-
}
|
|
29339
|
-
}
|
|
29340
|
-
],
|
|
29341
|
-
editor.getTextCursorPosition().block,
|
|
29342
|
-
"after"
|
|
29343
|
-
);
|
|
29344
|
-
},
|
|
29345
|
-
aliases: ["email", "mail", "send", "mailgun", "message"],
|
|
29346
|
-
group: "Basics",
|
|
29347
|
-
subtext: "Send emails using Mailgun templates"
|
|
29348
|
-
},
|
|
29349
|
-
{
|
|
29350
|
-
title: "Claim",
|
|
29351
|
-
onItemClick: () => {
|
|
29352
|
-
editor.insertBlocks(
|
|
29353
|
-
[
|
|
29354
|
-
{
|
|
29355
|
-
type: "claim",
|
|
29356
|
-
props: {}
|
|
29357
|
-
}
|
|
29358
|
-
],
|
|
29359
|
-
editor.getTextCursorPosition().block,
|
|
29360
|
-
"after"
|
|
29361
|
-
);
|
|
29362
|
-
},
|
|
29363
|
-
aliases: ["claim", "submission", "form", "attestation"],
|
|
29364
|
-
group: "DAO",
|
|
29365
|
-
subtext: "Create and manage claims with submission tracking"
|
|
29366
|
-
},
|
|
29367
|
-
{
|
|
29368
|
-
title: "Bid",
|
|
29369
|
-
onItemClick: () => {
|
|
29370
|
-
editor.insertBlocks(
|
|
29371
|
-
[
|
|
29372
|
-
{
|
|
29373
|
-
type: "bid",
|
|
29374
|
-
props: {}
|
|
29375
|
-
}
|
|
29376
|
-
],
|
|
29377
|
-
editor.getTextCursorPosition().block,
|
|
29378
|
-
"after"
|
|
29379
|
-
);
|
|
29380
|
-
},
|
|
29381
|
-
aliases: ["bid", "offer", "tender"],
|
|
29382
|
-
group: "DAO",
|
|
29383
|
-
subtext: "Create and submit bids"
|
|
29384
|
-
},
|
|
29385
|
-
{
|
|
29386
|
-
title: "Evaluator",
|
|
29387
|
-
onItemClick: () => {
|
|
29388
|
-
editor.insertBlocks(
|
|
29389
|
-
[
|
|
29390
|
-
{
|
|
29391
|
-
type: "evaluator",
|
|
29392
|
-
props: {}
|
|
29393
|
-
}
|
|
29394
|
-
],
|
|
29395
|
-
editor.getTextCursorPosition().block,
|
|
29396
|
-
"after"
|
|
29397
|
-
);
|
|
29398
|
-
},
|
|
29399
|
-
aliases: ["evaluator", "evaluate", "review", "assessment"],
|
|
29400
|
-
group: "DAO",
|
|
29401
|
-
subtext: "Evaluate and review submitted claims"
|
|
29402
|
-
},
|
|
29403
29262
|
{
|
|
29404
29263
|
title: "Visualization",
|
|
29405
29264
|
onItemClick: () => {
|
|
@@ -29474,32 +29333,6 @@ var getExtraSlashMenuItems = (editor) => {
|
|
|
29474
29333
|
group: "Domains",
|
|
29475
29334
|
subtext: "Select a protocol from a predefined list"
|
|
29476
29335
|
},
|
|
29477
|
-
{
|
|
29478
|
-
title: "Form",
|
|
29479
|
-
onItemClick: () => {
|
|
29480
|
-
editor.insertBlocks(
|
|
29481
|
-
[
|
|
29482
|
-
{
|
|
29483
|
-
type: "form",
|
|
29484
|
-
props: {
|
|
29485
|
-
title: "",
|
|
29486
|
-
description: "",
|
|
29487
|
-
icon: "checklist",
|
|
29488
|
-
surveySchema: "",
|
|
29489
|
-
answers: "",
|
|
29490
|
-
status: "pending",
|
|
29491
|
-
completedAt: ""
|
|
29492
|
-
}
|
|
29493
|
-
}
|
|
29494
|
-
],
|
|
29495
|
-
editor.getTextCursorPosition().block,
|
|
29496
|
-
"after"
|
|
29497
|
-
);
|
|
29498
|
-
},
|
|
29499
|
-
aliases: ["form", "survey", "questionnaire", "input"],
|
|
29500
|
-
group: "Basics",
|
|
29501
|
-
subtext: "Add a configurable form with SurveyJS"
|
|
29502
|
-
},
|
|
29503
29336
|
{
|
|
29504
29337
|
title: "Sign to Create",
|
|
29505
29338
|
onItemClick: () => {
|
|
@@ -30333,7 +30166,7 @@ function useCreateCollaborativeIxoEditor(options) {
|
|
|
30333
30166
|
|
|
30334
30167
|
// src/mantine/IxoEditor.tsx
|
|
30335
30168
|
import React269, { useState as useState112, useEffect as useEffect94, useCallback as useCallback88 } from "react";
|
|
30336
|
-
import {
|
|
30169
|
+
import { SuggestionMenuController } from "@blocknote/react";
|
|
30337
30170
|
import { BlockNoteView } from "@blocknote/mantine";
|
|
30338
30171
|
import { filterSuggestionItems } from "@blocknote/core";
|
|
30339
30172
|
import { MantineProvider } from "@mantine/core";
|
|
@@ -31657,9 +31490,8 @@ function IxoEditorContent({
|
|
|
31657
31490
|
{
|
|
31658
31491
|
triggerCharacter: "/",
|
|
31659
31492
|
getItems: async (query) => {
|
|
31660
|
-
const defaultItems = getDefaultReactSlashMenuItems(editor);
|
|
31661
31493
|
const customItems = getExtraSlashMenuItems(editor);
|
|
31662
|
-
const allItems = [...
|
|
31494
|
+
const allItems = [...customItems];
|
|
31663
31495
|
allItems.sort((a, b) => {
|
|
31664
31496
|
const groupA = a.group || "";
|
|
31665
31497
|
const groupB = b.group || "";
|
|
@@ -32318,4 +32150,4 @@ export {
|
|
|
32318
32150
|
getExtraSlashMenuItems,
|
|
32319
32151
|
useCreateIxoEditor
|
|
32320
32152
|
};
|
|
32321
|
-
//# sourceMappingURL=chunk-
|
|
32153
|
+
//# sourceMappingURL=chunk-VYBAY32D.mjs.map
|