@tiptap/core 3.10.0 → 3.10.1
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.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -1
- package/src/lib/{ResizableNodeview.ts → ResizableNodeView.ts} +11 -5
- package/src/lib/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/core",
|
|
3
3
|
"description": "headless rich text editor",
|
|
4
|
-
"version": "3.10.
|
|
4
|
+
"version": "3.10.1",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"jsx-dev-runtime"
|
|
53
53
|
],
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@tiptap/pm": "^3.10.
|
|
55
|
+
"@tiptap/pm": "^3.10.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@tiptap/pm": "^3.10.
|
|
58
|
+
"@tiptap/pm": "^3.10.1"
|
|
59
59
|
},
|
|
60
60
|
"repository": {
|
|
61
61
|
"type": "git",
|
package/src/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ export * from './helpers/index.js'
|
|
|
9
9
|
export * from './InputRule.js'
|
|
10
10
|
export * from './inputRules/index.js'
|
|
11
11
|
export { createElement, Fragment, createElement as h } from './jsx-runtime.js'
|
|
12
|
-
export
|
|
12
|
+
export * from './lib/index.js'
|
|
13
13
|
export * from './Mark.js'
|
|
14
14
|
export * from './MarkView.js'
|
|
15
15
|
export * from './Node.js'
|
|
@@ -33,11 +33,11 @@ export type ResizableNodeDimensions = {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Configuration options for creating a
|
|
36
|
+
* Configuration options for creating a ResizableNodeView
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
40
|
-
* new
|
|
40
|
+
* new ResizableNodeView({
|
|
41
41
|
* element: imgElement,
|
|
42
42
|
* node,
|
|
43
43
|
* getPos,
|
|
@@ -222,7 +222,7 @@ export type ResizableNodeViewOptions = {
|
|
|
222
222
|
* const img = document.createElement('img')
|
|
223
223
|
* img.src = node.attrs.src
|
|
224
224
|
*
|
|
225
|
-
* return new
|
|
225
|
+
* return new ResizableNodeView({
|
|
226
226
|
* element: img,
|
|
227
227
|
* node,
|
|
228
228
|
* getPos,
|
|
@@ -243,7 +243,7 @@ export type ResizableNodeViewOptions = {
|
|
|
243
243
|
* }
|
|
244
244
|
* ```
|
|
245
245
|
*/
|
|
246
|
-
export class
|
|
246
|
+
export class ResizableNodeView {
|
|
247
247
|
/** The ProseMirror node instance */
|
|
248
248
|
node: PMNode
|
|
249
249
|
|
|
@@ -325,7 +325,7 @@ export class ResizableNodeview {
|
|
|
325
325
|
private isShiftKeyPressed: boolean = false
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
|
-
* Creates a new
|
|
328
|
+
* Creates a new ResizableNodeView instance.
|
|
329
329
|
*
|
|
330
330
|
* The constructor sets up the resize handles, applies initial sizing from
|
|
331
331
|
* node attributes, and configures all resize behavior options.
|
|
@@ -934,3 +934,9 @@ export class ResizableNodeview {
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Alias for ResizableNodeView to maintain consistent naming.
|
|
940
|
+
* @deprecated Use ResizableNodeView instead - will be removed in future versions.
|
|
941
|
+
*/
|
|
942
|
+
export const ResizableNodeview = ResizableNodeView
|
package/src/lib/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ResizableNodeView.js'
|