@tiptap/core 3.0.0-beta.24 → 3.0.0-beta.25
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-PR4QN5HX.js → chunk-G3PMV62Z.js} +2 -9
- package/dist/dist-GJ4HMHO4.js +15184 -0
- package/dist/dist-GJ4HMHO4.js.map +1 -0
- package/dist/index.cjs +14482 -53165
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
- package/src/Editor.ts +7 -7
- package/src/types.ts +1 -1
- package/dist/chunk-GRT2MR5L.js +0 -59
- package/dist/chunk-GRT2MR5L.js.map +0 -1
- package/dist/chunk-TH7LERQR.js +0 -34
- package/dist/chunk-TH7LERQR.js.map +0 -1
- package/dist/chunk-UNIMJOD2.js +0 -1010
- package/dist/chunk-UNIMJOD2.js.map +0 -1
- package/dist/esm-7BF7U2WM.js +0 -47055
- package/dist/esm-7BF7U2WM.js.map +0 -1
- package/dist/json-diff-main-ASELUCBE.js +0 -4742
- package/dist/json-diff-main-ASELUCBE.js.map +0 -1
- package/dist/json-diff-worker-ET432FKY.js +0 -398
- package/dist/json-diff-worker-ET432FKY.js.map +0 -1
- /package/dist/{chunk-PR4QN5HX.js.map → chunk-G3PMV62Z.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1175,7 +1175,7 @@ interface EditorOptions {
|
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Enable a lazy-loaded Prosemirror DevTools integration.
|
|
1177
1177
|
*
|
|
1178
|
-
* Requires having the `prosemirror-dev-
|
|
1178
|
+
* Requires having the `prosemirror-dev-toolkit` npm package installed.
|
|
1179
1179
|
* @type boolean
|
|
1180
1180
|
* @default false
|
|
1181
1181
|
* @example
|
|
@@ -2931,14 +2931,14 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2931
2931
|
/**
|
|
2932
2932
|
* Applies ProseMirror dev tools to the editor instance if enabled and running in a browser environment.
|
|
2933
2933
|
*
|
|
2934
|
-
* This method dynamically imports the `prosemirror-dev-
|
|
2934
|
+
* This method dynamically imports the `prosemirror-dev-toolkit` package and applies it to the current
|
|
2935
2935
|
* editor view. If the dev tools are not installed, a warning is logged to the console.
|
|
2936
2936
|
*
|
|
2937
2937
|
* @private
|
|
2938
2938
|
* @remarks
|
|
2939
2939
|
* - Dev tools are only applied if `this.options.enableDevTools` is `true` and the code is running in a browser.
|
|
2940
2940
|
* - If the editor view is not available, the dev tools are not applied.
|
|
2941
|
-
* - If the `prosemirror-dev-
|
|
2941
|
+
* - If the `prosemirror-dev-toolkit` package is missing, a warning is shown in the console.
|
|
2942
2942
|
*
|
|
2943
2943
|
* @returns {void}
|
|
2944
2944
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1175,7 +1175,7 @@ interface EditorOptions {
|
|
|
1175
1175
|
/**
|
|
1176
1176
|
* Enable a lazy-loaded Prosemirror DevTools integration.
|
|
1177
1177
|
*
|
|
1178
|
-
* Requires having the `prosemirror-dev-
|
|
1178
|
+
* Requires having the `prosemirror-dev-toolkit` npm package installed.
|
|
1179
1179
|
* @type boolean
|
|
1180
1180
|
* @default false
|
|
1181
1181
|
* @example
|
|
@@ -2931,14 +2931,14 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2931
2931
|
/**
|
|
2932
2932
|
* Applies ProseMirror dev tools to the editor instance if enabled and running in a browser environment.
|
|
2933
2933
|
*
|
|
2934
|
-
* This method dynamically imports the `prosemirror-dev-
|
|
2934
|
+
* This method dynamically imports the `prosemirror-dev-toolkit` package and applies it to the current
|
|
2935
2935
|
* editor view. If the dev tools are not installed, a warning is logged to the console.
|
|
2936
2936
|
*
|
|
2937
2937
|
* @private
|
|
2938
2938
|
* @remarks
|
|
2939
2939
|
* - Dev tools are only applied if `this.options.enableDevTools` is `true` and the code is running in a browser.
|
|
2940
2940
|
* - If the editor view is not available, the dev tools are not applied.
|
|
2941
|
-
* - If the `prosemirror-dev-
|
|
2941
|
+
* - If the `prosemirror-dev-toolkit` package is missing, a warning is shown in the console.
|
|
2942
2942
|
*
|
|
2943
2943
|
* @returns {void}
|
|
2944
2944
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G3PMV62Z.js";
|
|
4
4
|
|
|
5
5
|
// src/helpers/createChainableState.ts
|
|
6
6
|
function createChainableState(config) {
|
|
@@ -4387,14 +4387,14 @@ var Editor = class extends EventEmitter {
|
|
|
4387
4387
|
/**
|
|
4388
4388
|
* Applies ProseMirror dev tools to the editor instance if enabled and running in a browser environment.
|
|
4389
4389
|
*
|
|
4390
|
-
* This method dynamically imports the `prosemirror-dev-
|
|
4390
|
+
* This method dynamically imports the `prosemirror-dev-toolkit` package and applies it to the current
|
|
4391
4391
|
* editor view. If the dev tools are not installed, a warning is logged to the console.
|
|
4392
4392
|
*
|
|
4393
4393
|
* @private
|
|
4394
4394
|
* @remarks
|
|
4395
4395
|
* - Dev tools are only applied if `this.options.enableDevTools` is `true` and the code is running in a browser.
|
|
4396
4396
|
* - If the editor view is not available, the dev tools are not applied.
|
|
4397
|
-
* - If the `prosemirror-dev-
|
|
4397
|
+
* - If the `prosemirror-dev-toolkit` package is missing, a warning is shown in the console.
|
|
4398
4398
|
*
|
|
4399
4399
|
* @returns {void}
|
|
4400
4400
|
*/
|
|
@@ -4402,14 +4402,14 @@ var Editor = class extends EventEmitter {
|
|
|
4402
4402
|
if (typeof window === "undefined" || !this.options.enableDevTools) {
|
|
4403
4403
|
return;
|
|
4404
4404
|
}
|
|
4405
|
-
import("./
|
|
4405
|
+
import("./dist-GJ4HMHO4.js").then(({ applyDevTools }) => {
|
|
4406
4406
|
if (!this.editorView) {
|
|
4407
4407
|
return;
|
|
4408
4408
|
}
|
|
4409
|
-
|
|
4409
|
+
applyDevTools(this.editorView);
|
|
4410
4410
|
}).catch(() => {
|
|
4411
|
-
console.warn("[Tiptap warning]: Devtools are enabled but `prosemirror-dev-
|
|
4412
|
-
console.warn("Install 'prosemirror-dev-
|
|
4411
|
+
console.warn("[Tiptap warning]: Devtools are enabled but `prosemirror-dev-toolkit` is not installed.");
|
|
4412
|
+
console.warn("Install 'prosemirror-dev-toolkit' as a dev dependency to use the dev tools.");
|
|
4413
4413
|
});
|
|
4414
4414
|
}
|
|
4415
4415
|
/**
|