@edifice.io/tiptap-extensions 2.2.8 → 2.2.9-develop-b2school.20250616172105
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/conversation-history/conversation-history.cjs +2 -0
- package/dist/conversation-history/conversation-history.cjs.map +1 -0
- package/dist/conversation-history/conversation-history.d.ts +2 -0
- package/dist/conversation-history/conversation-history.js +63 -0
- package/dist/conversation-history/conversation-history.js.map +1 -0
- package/dist/conversation-history/index.d.ts +1 -0
- package/dist/conversation-history-body/conversation-history-body.cjs +2 -0
- package/dist/conversation-history-body/conversation-history-body.cjs.map +1 -0
- package/dist/conversation-history-body/conversation-history-body.d.ts +2 -0
- package/dist/conversation-history-body/conversation-history-body.js +24 -0
- package/dist/conversation-history-body/conversation-history-body.js.map +1 -0
- package/dist/conversation-history-body/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const core=require("@tiptap/core"),prosemirrorState=require("prosemirror-state"),ConversationHistory=core.Node.create({name:"converstationHistory",group:"block",content:"block+",parseHTML(){return[{tag:"div.conversation-history"}]},renderHTML({HTMLAttributes}){return["div",core.mergeAttributes(HTMLAttributes,{class:"conversation-history"}),0]},addProseMirrorPlugins(){return[new prosemirrorState.Plugin({appendTransaction:(transactions,oldState,newState)=>{const tr=newState.tr;let modified=!1;const nodesAfterHr=[];return newState.doc.descendants((node,pos,parent)=>{if(node.type.name==="horizontalRule"&&parent.type.name==="doc"){const start=pos,end=newState.doc.content.size;if(newState.doc.nodesBetween(start,end,(n,p,parent2)=>{if(n.type.name!=="horizontalRule"&&parent2.type.name==="doc")nodesAfterHr.push({node:n,pos:p});else return!1}),nodesAfterHr.length>0){const groupNode=this.type.create({},nodesAfterHr.map(n=>n.node));tr.replaceWith(start,end,groupNode),modified=!0}return!1}}),modified?tr:null}})]}});exports.ConversationHistory=ConversationHistory;
|
|
2
|
+
//# sourceMappingURL=conversation-history.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-history.cjs","sources":["../../src/conversation-history/conversation-history.ts"],"sourcesContent":["/**\n * A Tiptap Node extension that creates a conversation history container.\n * This extension groups content blocks that appear after a horizontal rule\n * into a conversation history section.\n *\n * @extends Node\n *\n * @remarks\n * The node is rendered as a div element with the class 'conversation-history'.\n * It can parse HTML elements that match the same structure.\n *\n * For retrocompatibility, this extension also includes a ProseMirror plugin\n * that handles the grouping all the content after an horizontal rules into the\n * conversation-history children block.\n *\n * Usage:\n * ```\n * // Add to your Tiptap editor extensions\n * import { ConversationHistory } from './conversation-history'\n *\n * new Editor({\n * extensions: [\n * ConversationHistory,\n * // ... other extensions\n * ],\n * })\n * ```\n */\nimport { mergeAttributes, Node } from '@tiptap/core';\nimport { Plugin } from 'prosemirror-state';\n\nexport const ConversationHistory = Node.create({\n name: 'converstationHistory',\n group: 'block',\n content: 'block+',\n\n parseHTML() {\n return [\n {\n tag: 'div.conversation-history',\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n return [\n 'div',\n mergeAttributes(HTMLAttributes, { class: 'conversation-history' }),\n 0,\n ];\n },\n\n /**\n * Adds custom ProseMirror plugins to the editor.\n * When a horizontal rule is encountered, this plugin collects all nodes\n * following the horizontal rule until the end of the document.\n * These nodes are then grouped together and replaced with\n * a single node of the same type as the plugin's type.\n *\n * @returns {Plugin[]} An array of ProseMirror plugins.\n */\n addProseMirrorPlugins() {\n return [\n new Plugin({\n appendTransaction: (transactions, oldState, newState) => {\n const tr = newState.tr;\n let modified = false;\n const nodesAfterHr = [];\n\n newState.doc.descendants((node, pos, parent) => {\n if (\n node.type.name === 'horizontalRule' &&\n parent.type.name === 'doc'\n ) {\n const start = pos;\n const end = newState.doc.content.size;\n\n newState.doc.nodesBetween(start, end, (n, p, parent) => {\n if (\n n.type.name !== 'horizontalRule' &&\n parent.type.name === 'doc'\n ) {\n nodesAfterHr.push({ node: n, pos: p });\n } else {\n return false;\n }\n });\n\n if (nodesAfterHr.length > 0) {\n const groupNode = this.type.create(\n {},\n nodesAfterHr.map((n) => n.node),\n );\n tr.replaceWith(start, end, groupNode);\n modified = true;\n }\n return false;\n }\n });\n\n return modified ? tr : null;\n },\n }),\n ];\n },\n});\n"],"names":["Node","mergeAttributes","Plugin","parent"],"mappings":"iKA+Ba,oBAAsBA,UAAK,OAAO,CAC7C,KAAM,uBACN,MAAO,QACP,QAAS,SAET,WAAY,CACH,MAAA,CACL,CACE,IAAK,0BAAA,CAET,CACF,EAEA,WAAW,CAAE,gBAAkB,CACtB,MAAA,CACL,MACAC,KAAAA,gBAAgB,eAAgB,CAAE,MAAO,uBAAwB,EACjE,CACF,CACF,EAWA,uBAAwB,CACf,MAAA,CACL,IAAIC,wBAAO,CACT,kBAAmB,CAAC,aAAc,SAAU,WAAa,CACvD,MAAM,GAAK,SAAS,GACpB,IAAI,SAAW,GACf,MAAM,aAAe,CAAC,EAEtB,gBAAS,IAAI,YAAY,CAAC,KAAM,IAAK,SAAW,CAC9C,GACE,KAAK,KAAK,OAAS,kBACnB,OAAO,KAAK,OAAS,MACrB,CACA,MAAM,MAAQ,IACR,IAAM,SAAS,IAAI,QAAQ,KAa7B,GAXJ,SAAS,IAAI,aAAa,MAAO,IAAK,CAAC,EAAG,EAAGC,UAAW,CACtD,GACE,EAAE,KAAK,OAAS,kBAChBA,QAAO,KAAK,OAAS,MAErB,aAAa,KAAK,CAAE,KAAM,EAAG,IAAK,EAAG,MAE9B,OAAA,EACT,CACD,EAEG,aAAa,OAAS,EAAG,CACrB,MAAA,UAAY,KAAK,KAAK,OAC1B,CAAC,EACD,aAAa,IAAK,GAAM,EAAE,IAAI,CAChC,EACG,GAAA,YAAY,MAAO,IAAK,SAAS,EACzB,SAAA,EAAA,CAEN,MAAA,EAAA,CACT,CACD,EAEM,SAAW,GAAK,IAAA,CAE1B,CAAA,CACH,CAAA,CAEJ,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Node, mergeAttributes } from "@tiptap/core";
|
|
2
|
+
import { Plugin } from "prosemirror-state";
|
|
3
|
+
const ConversationHistory = Node.create({
|
|
4
|
+
name: "converstationHistory",
|
|
5
|
+
group: "block",
|
|
6
|
+
content: "block+",
|
|
7
|
+
parseHTML() {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
tag: "div.conversation-history"
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
},
|
|
14
|
+
renderHTML({ HTMLAttributes }) {
|
|
15
|
+
return [
|
|
16
|
+
"div",
|
|
17
|
+
mergeAttributes(HTMLAttributes, { class: "conversation-history" }),
|
|
18
|
+
0
|
|
19
|
+
];
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* Adds custom ProseMirror plugins to the editor.
|
|
23
|
+
* When a horizontal rule is encountered, this plugin collects all nodes
|
|
24
|
+
* following the horizontal rule until the end of the document.
|
|
25
|
+
* These nodes are then grouped together and replaced with
|
|
26
|
+
* a single node of the same type as the plugin's type.
|
|
27
|
+
*
|
|
28
|
+
* @returns {Plugin[]} An array of ProseMirror plugins.
|
|
29
|
+
*/
|
|
30
|
+
addProseMirrorPlugins() {
|
|
31
|
+
return [
|
|
32
|
+
new Plugin({
|
|
33
|
+
appendTransaction: (transactions, oldState, newState) => {
|
|
34
|
+
const tr = newState.tr;
|
|
35
|
+
let modified = !1;
|
|
36
|
+
const nodesAfterHr = [];
|
|
37
|
+
return newState.doc.descendants((node, pos, parent) => {
|
|
38
|
+
if (node.type.name === "horizontalRule" && parent.type.name === "doc") {
|
|
39
|
+
const start = pos, end = newState.doc.content.size;
|
|
40
|
+
if (newState.doc.nodesBetween(start, end, (n, p, parent2) => {
|
|
41
|
+
if (n.type.name !== "horizontalRule" && parent2.type.name === "doc")
|
|
42
|
+
nodesAfterHr.push({ node: n, pos: p });
|
|
43
|
+
else
|
|
44
|
+
return !1;
|
|
45
|
+
}), nodesAfterHr.length > 0) {
|
|
46
|
+
const groupNode = this.type.create(
|
|
47
|
+
{},
|
|
48
|
+
nodesAfterHr.map((n) => n.node)
|
|
49
|
+
);
|
|
50
|
+
tr.replaceWith(start, end, groupNode), modified = !0;
|
|
51
|
+
}
|
|
52
|
+
return !1;
|
|
53
|
+
}
|
|
54
|
+
}), modified ? tr : null;
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export {
|
|
61
|
+
ConversationHistory
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=conversation-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-history.js","sources":["../../src/conversation-history/conversation-history.ts"],"sourcesContent":["/**\n * A Tiptap Node extension that creates a conversation history container.\n * This extension groups content blocks that appear after a horizontal rule\n * into a conversation history section.\n *\n * @extends Node\n *\n * @remarks\n * The node is rendered as a div element with the class 'conversation-history'.\n * It can parse HTML elements that match the same structure.\n *\n * For retrocompatibility, this extension also includes a ProseMirror plugin\n * that handles the grouping all the content after an horizontal rules into the\n * conversation-history children block.\n *\n * Usage:\n * ```\n * // Add to your Tiptap editor extensions\n * import { ConversationHistory } from './conversation-history'\n *\n * new Editor({\n * extensions: [\n * ConversationHistory,\n * // ... other extensions\n * ],\n * })\n * ```\n */\nimport { mergeAttributes, Node } from '@tiptap/core';\nimport { Plugin } from 'prosemirror-state';\n\nexport const ConversationHistory = Node.create({\n name: 'converstationHistory',\n group: 'block',\n content: 'block+',\n\n parseHTML() {\n return [\n {\n tag: 'div.conversation-history',\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n return [\n 'div',\n mergeAttributes(HTMLAttributes, { class: 'conversation-history' }),\n 0,\n ];\n },\n\n /**\n * Adds custom ProseMirror plugins to the editor.\n * When a horizontal rule is encountered, this plugin collects all nodes\n * following the horizontal rule until the end of the document.\n * These nodes are then grouped together and replaced with\n * a single node of the same type as the plugin's type.\n *\n * @returns {Plugin[]} An array of ProseMirror plugins.\n */\n addProseMirrorPlugins() {\n return [\n new Plugin({\n appendTransaction: (transactions, oldState, newState) => {\n const tr = newState.tr;\n let modified = false;\n const nodesAfterHr = [];\n\n newState.doc.descendants((node, pos, parent) => {\n if (\n node.type.name === 'horizontalRule' &&\n parent.type.name === 'doc'\n ) {\n const start = pos;\n const end = newState.doc.content.size;\n\n newState.doc.nodesBetween(start, end, (n, p, parent) => {\n if (\n n.type.name !== 'horizontalRule' &&\n parent.type.name === 'doc'\n ) {\n nodesAfterHr.push({ node: n, pos: p });\n } else {\n return false;\n }\n });\n\n if (nodesAfterHr.length > 0) {\n const groupNode = this.type.create(\n {},\n nodesAfterHr.map((n) => n.node),\n );\n tr.replaceWith(start, end, groupNode);\n modified = true;\n }\n return false;\n }\n });\n\n return modified ? tr : null;\n },\n }),\n ];\n },\n});\n"],"names":["parent"],"mappings":";;AA+Ba,MAAA,sBAAsB,KAAK,OAAO;AAAA,EAC7C,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EAET,YAAY;AACH,WAAA;AAAA,MACL;AAAA,QACE,KAAK;AAAA,MAAA;AAAA,IAET;AAAA,EACF;AAAA,EAEA,WAAW,EAAE,kBAAkB;AACtB,WAAA;AAAA,MACL;AAAA,MACA,gBAAgB,gBAAgB,EAAE,OAAO,wBAAwB;AAAA,MACjE;AAAA,IACF;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,wBAAwB;AACf,WAAA;AAAA,MACL,IAAI,OAAO;AAAA,QACT,mBAAmB,CAAC,cAAc,UAAU,aAAa;AACvD,gBAAM,KAAK,SAAS;AACpB,cAAI,WAAW;AACf,gBAAM,eAAe,CAAC;AAEtB,0BAAS,IAAI,YAAY,CAAC,MAAM,KAAK,WAAW;AAC9C,gBACE,KAAK,KAAK,SAAS,oBACnB,OAAO,KAAK,SAAS,OACrB;AACA,oBAAM,QAAQ,KACR,MAAM,SAAS,IAAI,QAAQ;AAa7B,kBAXJ,SAAS,IAAI,aAAa,OAAO,KAAK,CAAC,GAAG,GAAGA,YAAW;AACtD,oBACE,EAAE,KAAK,SAAS,oBAChBA,QAAO,KAAK,SAAS;AAErB,+BAAa,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG;AAAA;AAE9B,yBAAA;AAAA,cACT,CACD,GAEG,aAAa,SAAS,GAAG;AACrB,sBAAA,YAAY,KAAK,KAAK;AAAA,kBAC1B,CAAC;AAAA,kBACD,aAAa,IAAI,CAAC,MAAM,EAAE,IAAI;AAAA,gBAChC;AACG,mBAAA,YAAY,OAAO,KAAK,SAAS,GACzB,WAAA;AAAA,cAAA;AAEN,qBAAA;AAAA,YAAA;AAAA,UACT,CACD,GAEM,WAAW,KAAK;AAAA,QAAA;AAAA,MAE1B,CAAA;AAAA,IACH;AAAA,EAAA;AAEJ,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './conversation-history';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const core=require("@tiptap/core"),ConversationHistoryBody=core.Node.create({name:"converstationHistoryBody",group:"block",content:"block+",parseHTML(){return[{tag:"div.conversation-history-body"}]},renderHTML({HTMLAttributes}){return["div",core.mergeAttributes(HTMLAttributes,{class:"conversation-history-body"}),0]}});exports.ConversationHistoryBody=ConversationHistoryBody;
|
|
2
|
+
//# sourceMappingURL=conversation-history-body.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-history-body.cjs","sources":["../../src/conversation-history-body/conversation-history-body.ts"],"sourcesContent":["/**\n * A Tiptap Node extension that represents a conversation history body.\n * This node is a block-level element that can contain one or more block elements.\n *\n * @remarks\n * The node is rendered as a div element with the class 'conversation-history-body'.\n * It can parse HTML elements that match the same structure.\n *\n * @group Block Nodes\n */\nimport { mergeAttributes, Node } from '@tiptap/core';\n\nexport const ConversationHistoryBody = Node.create({\n name: 'converstationHistoryBody',\n group: 'block',\n content: 'block+',\n\n parseHTML() {\n return [\n {\n tag: 'div.conversation-history-body',\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n return [\n 'div',\n mergeAttributes(HTMLAttributes, { class: 'conversation-history-body' }),\n 0,\n ];\n },\n});\n"],"names":["Node","mergeAttributes"],"mappings":"mHAYa,wBAA0BA,UAAK,OAAO,CACjD,KAAM,2BACN,MAAO,QACP,QAAS,SAET,WAAY,CACH,MAAA,CACL,CACE,IAAK,+BAAA,CAET,CACF,EAEA,WAAW,CAAE,gBAAkB,CACtB,MAAA,CACL,MACAC,KAAAA,gBAAgB,eAAgB,CAAE,MAAO,4BAA6B,EACtE,CACF,CAAA,CAEJ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Node, mergeAttributes } from "@tiptap/core";
|
|
2
|
+
const ConversationHistoryBody = Node.create({
|
|
3
|
+
name: "converstationHistoryBody",
|
|
4
|
+
group: "block",
|
|
5
|
+
content: "block+",
|
|
6
|
+
parseHTML() {
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
tag: "div.conversation-history-body"
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
},
|
|
13
|
+
renderHTML({ HTMLAttributes }) {
|
|
14
|
+
return [
|
|
15
|
+
"div",
|
|
16
|
+
mergeAttributes(HTMLAttributes, { class: "conversation-history-body" }),
|
|
17
|
+
0
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
ConversationHistoryBody
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=conversation-history-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-history-body.js","sources":["../../src/conversation-history-body/conversation-history-body.ts"],"sourcesContent":["/**\n * A Tiptap Node extension that represents a conversation history body.\n * This node is a block-level element that can contain one or more block elements.\n *\n * @remarks\n * The node is rendered as a div element with the class 'conversation-history-body'.\n * It can parse HTML elements that match the same structure.\n *\n * @group Block Nodes\n */\nimport { mergeAttributes, Node } from '@tiptap/core';\n\nexport const ConversationHistoryBody = Node.create({\n name: 'converstationHistoryBody',\n group: 'block',\n content: 'block+',\n\n parseHTML() {\n return [\n {\n tag: 'div.conversation-history-body',\n },\n ];\n },\n\n renderHTML({ HTMLAttributes }) {\n return [\n 'div',\n mergeAttributes(HTMLAttributes, { class: 'conversation-history-body' }),\n 0,\n ];\n },\n});\n"],"names":[],"mappings":";AAYa,MAAA,0BAA0B,KAAK,OAAO;AAAA,EACjD,MAAM;AAAA,EACN,OAAO;AAAA,EACP,SAAS;AAAA,EAET,YAAY;AACH,WAAA;AAAA,MACL;AAAA,QACE,KAAK;AAAA,MAAA;AAAA,IAET;AAAA,EACF;AAAA,EAEA,WAAW,EAAE,kBAAkB;AACtB,WAAA;AAAA,MACL;AAAA,MACA,gBAAgB,gBAAgB,EAAE,OAAO,6BAA6B;AAAA,MACtE;AAAA,IACF;AAAA,EAAA;AAEJ,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './conversation-history-body';
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const abbr=require("./abbr/abbr.cjs"),alert=require("./alert/alert.cjs"),attachmentTransformer=require("./attachment/attachment-transformer.cjs"),attachment=require("./attachment/attachment.cjs"),audio=require("./audio/audio.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const abbr=require("./abbr/abbr.cjs"),alert=require("./alert/alert.cjs"),attachmentTransformer=require("./attachment/attachment-transformer.cjs"),attachment=require("./attachment/attachment.cjs"),audio=require("./audio/audio.cjs"),conversationHistory=require("./conversation-history/conversation-history.cjs"),conversationHistoryBody=require("./conversation-history-body/conversation-history-body.cjs"),fontSize=require("./font-size/font-size.cjs"),heading=require("./heading/heading.cjs"),highlight=require("./highlight/highlight.cjs"),hyperlink=require("./hyperlink/hyperlink.cjs"),iframe=require("./iframe/iframe.cjs"),image=require("./image/image.cjs"),informationPane=require("./information-pane/information-pane.cjs"),lineHeight=require("./line-height/line-height.cjs"),linker=require("./linker/linker.cjs"),mathjax=require("./mathjax/mathjax.cjs"),paragraph=require("./paragraph/paragraph.cjs"),speechRecognition=require("./speech-recognition/speech-recognition.cjs"),speechSynthesis=require("./speech-synthesis/speech-synthesis.cjs"),tableCell=require("./table-cell/table-cell.cjs"),htmlToJson=require("./transform/html-to-json/html-to-json.cjs"),jsonToHtml=require("./transform/json-to-html/json-to-html.cjs"),video=require("./video/video.cjs");exports.Abbr=abbr.Abbr;exports.Alert=alert.Alert;exports.AttachmentTransformer=attachmentTransformer.AttachmentTransformer;exports.Attachment=attachment.Attachment;exports.Audio=audio.Audio;exports.ConversationHistory=conversationHistory.ConversationHistory;exports.ConversationHistoryBody=conversationHistoryBody.ConversationHistoryBody;exports.FontSize=fontSize.FontSize;exports.CustomHeading=heading.CustomHeading;exports.CustomHighlight=highlight.CustomHighlight;exports.Hyperlink=hyperlink.Hyperlink;exports.Iframe=iframe.Iframe;exports.IMAGE_INPUT_REGEX=image.IMAGE_INPUT_REGEX;exports.Image=image.Image;exports.InformationPane=informationPane.InformationPane;exports.LineHeight=lineHeight.LineHeight;exports.Linker=linker.Linker;exports.MathJax=mathjax.MathJax;exports.Paragraph=paragraph.Paragraph;exports.SpeechRecognition=speechRecognition.SpeechRecognition;exports.SpeechSynthesis=speechSynthesis.SpeechSynthesis;exports.TableCell=tableCell.TableCell;exports.htmlToJson=htmlToJson;exports.jsonToHtml=jsonToHtml;exports.Video=video.Video;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,15 @@ export * from './abbr';
|
|
|
2
2
|
export * from './alert';
|
|
3
3
|
export * from './attachment';
|
|
4
4
|
export * from './audio';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './conversation-history';
|
|
6
|
+
export * from './conversation-history-body';
|
|
6
7
|
export * from './font-size';
|
|
7
8
|
export * from './heading';
|
|
8
9
|
export * from './highlight';
|
|
9
10
|
export * from './hyperlink';
|
|
10
11
|
export * from './iframe';
|
|
11
12
|
export * from './image';
|
|
13
|
+
export * from './information-pane';
|
|
12
14
|
export * from './line-height';
|
|
13
15
|
export * from './linker';
|
|
14
16
|
export * from './mathjax';
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,15 @@ import { Alert } from "./alert/alert.js";
|
|
|
3
3
|
import { AttachmentTransformer } from "./attachment/attachment-transformer.js";
|
|
4
4
|
import { Attachment } from "./attachment/attachment.js";
|
|
5
5
|
import { Audio } from "./audio/audio.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ConversationHistory } from "./conversation-history/conversation-history.js";
|
|
7
|
+
import { ConversationHistoryBody } from "./conversation-history-body/conversation-history-body.js";
|
|
7
8
|
import { FontSize } from "./font-size/font-size.js";
|
|
8
9
|
import { CustomHeading } from "./heading/heading.js";
|
|
9
10
|
import { CustomHighlight } from "./highlight/highlight.js";
|
|
10
11
|
import { Hyperlink } from "./hyperlink/hyperlink.js";
|
|
11
12
|
import { Iframe } from "./iframe/iframe.js";
|
|
12
13
|
import { IMAGE_INPUT_REGEX, Image } from "./image/image.js";
|
|
14
|
+
import { InformationPane } from "./information-pane/information-pane.js";
|
|
13
15
|
import { LineHeight } from "./line-height/line-height.js";
|
|
14
16
|
import { Linker } from "./linker/linker.js";
|
|
15
17
|
import { MathJax } from "./mathjax/mathjax.js";
|
|
@@ -26,6 +28,8 @@ export {
|
|
|
26
28
|
Attachment,
|
|
27
29
|
AttachmentTransformer,
|
|
28
30
|
Audio,
|
|
31
|
+
ConversationHistory,
|
|
32
|
+
ConversationHistoryBody,
|
|
29
33
|
CustomHeading,
|
|
30
34
|
CustomHighlight,
|
|
31
35
|
FontSize,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/tiptap-extensions",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9-develop-b2school.20250616172105",
|
|
4
4
|
"description": "Edifice Rich Text Editor Extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"edifice",
|
|
@@ -42,6 +42,14 @@
|
|
|
42
42
|
"import": "./dist/audio/audio.js",
|
|
43
43
|
"require": "./dist/audio/audio.cjs"
|
|
44
44
|
},
|
|
45
|
+
"./conversation-history": {
|
|
46
|
+
"import": "./dist/conversation-history/conversation-history.js",
|
|
47
|
+
"require": "./dist/conversation-history/conversation-history.cjs"
|
|
48
|
+
},
|
|
49
|
+
"./conversation-history-body": {
|
|
50
|
+
"import": "./dist/conversation-history-body/conversation-history-body.js",
|
|
51
|
+
"require": "./dist/conversation-history-body/conversation-history-body.cjs"
|
|
52
|
+
},
|
|
45
53
|
"./font-size": {
|
|
46
54
|
"import": "./dist/font-size/font-size.js",
|
|
47
55
|
"require": "./dist/font-size/font-size.cjs"
|
|
@@ -134,11 +142,11 @@
|
|
|
134
142
|
"prosemirror-view": "^1.27.0",
|
|
135
143
|
"vite": "^5.4.11",
|
|
136
144
|
"vite-plugin-dts": "^4.1.0",
|
|
137
|
-
"@edifice.io/utilities": "2.2.
|
|
145
|
+
"@edifice.io/utilities": "2.2.9-develop-b2school.20250616172105"
|
|
138
146
|
},
|
|
139
147
|
"devDependencies": {
|
|
140
148
|
"@types/dom-speech-recognition": "^0.0.1",
|
|
141
|
-
"@edifice.io/client": "2.2.
|
|
149
|
+
"@edifice.io/client": "2.2.9-develop-b2school.20250616172105"
|
|
142
150
|
},
|
|
143
151
|
"publishConfig": {
|
|
144
152
|
"access": "public"
|