@edifice.io/tiptap-extensions 2.2.2-develop.20250409145633 → 2.2.3-develop-b2school.20250414171310
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.
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
2
|
+
/**
|
|
3
|
+
* The `ConversationHistory` node is a custom ProseMirror node that represents a block-level
|
|
4
|
+
* container for conversation history. It is implemented using the `@tiptap/core` library.
|
|
5
|
+
*
|
|
6
|
+
* @name ConversationHistory
|
|
7
|
+
* @group block
|
|
8
|
+
* @content block
|
|
9
|
+
*
|
|
10
|
+
* @parseHTML
|
|
11
|
+
* This method defines how to parse the HTML representation of the node. It looks for a `div`
|
|
12
|
+
* element with the class `conversation-history`.
|
|
13
|
+
*
|
|
14
|
+
* @renderHTML
|
|
15
|
+
* This method defines how to render the node as HTML. It creates a `div` element with the class
|
|
16
|
+
* `conversation-history`.
|
|
17
|
+
*
|
|
18
|
+
* @addProseMirrorPlugins
|
|
19
|
+
* This method adds a ProseMirror plugin to the node. The plugin appends a transaction that groups
|
|
20
|
+
* all nodes after a horizontal rule (`horizontalRule`) into a single `conversationHistory` node.
|
|
21
|
+
*
|
|
22
|
+
* @plugin
|
|
23
|
+
* The plugin's `appendTransaction` method is called whenever a transaction is appended. It checks
|
|
24
|
+
* for nodes after a horizontal rule and groups them into a `conversationHistory` node if any are
|
|
25
|
+
* found.
|
|
26
|
+
*
|
|
27
|
+
* @param transactions - The list of transactions that have been applied.
|
|
28
|
+
* @param oldState - The previous editor state.
|
|
29
|
+
* @param newState - The new editor state.
|
|
30
|
+
* @returns A new transaction if modifications were made, otherwise `null`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const ConversationHistory: Node<any, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './conversation-history';
|
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.3-develop-b2school.20250414171310",
|
|
4
4
|
"description": "Edifice Rich Text Editor Extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"edifice",
|
|
@@ -42,6 +42,10 @@
|
|
|
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
|
+
},
|
|
45
49
|
"./font-size": {
|
|
46
50
|
"import": "./dist/font-size/font-size.js",
|
|
47
51
|
"require": "./dist/font-size/font-size.cjs"
|
|
@@ -134,11 +138,11 @@
|
|
|
134
138
|
"prosemirror-view": "^1.27.0",
|
|
135
139
|
"vite": "^5.4.11",
|
|
136
140
|
"vite-plugin-dts": "^4.1.0",
|
|
137
|
-
"@edifice.io/utilities": "2.2.
|
|
141
|
+
"@edifice.io/utilities": "2.2.3-develop-b2school.20250414171310"
|
|
138
142
|
},
|
|
139
143
|
"devDependencies": {
|
|
140
144
|
"@types/dom-speech-recognition": "^0.0.1",
|
|
141
|
-
"@edifice.io/client": "2.2.
|
|
145
|
+
"@edifice.io/client": "2.2.3-develop-b2school.20250414171310"
|
|
142
146
|
},
|
|
143
147
|
"publishConfig": {
|
|
144
148
|
"access": "public"
|