@tiptap/extension-document
Advanced tools
+3
-3
| { | ||
| "name": "@tiptap/extension-document", | ||
| "description": "document extension for tiptap", | ||
| "version": "3.20.2", | ||
| "version": "3.20.3", | ||
| "homepage": "https://tiptap.dev", | ||
@@ -34,6 +34,6 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@tiptap/core": "^3.20.2" | ||
| "@tiptap/core": "^3.20.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "@tiptap/core": "^3.20.2" | ||
| "@tiptap/core": "^3.20.3" | ||
| }, | ||
@@ -40,0 +40,0 @@ "repository": { |
| "use strict"; | ||
| var __defProp = Object.defineProperty; | ||
| var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
| var __getOwnPropNames = Object.getOwnPropertyNames; | ||
| var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
| var __export = (target, all) => { | ||
| for (var name in all) | ||
| __defProp(target, name, { get: all[name], enumerable: true }); | ||
| }; | ||
| var __copyProps = (to, from, except, desc) => { | ||
| if (from && typeof from === "object" || typeof from === "function") { | ||
| for (let key of __getOwnPropNames(from)) | ||
| if (!__hasOwnProp.call(to, key) && key !== except) | ||
| __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
| } | ||
| return to; | ||
| }; | ||
| var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
| // src/index.ts | ||
| var index_exports = {}; | ||
| __export(index_exports, { | ||
| Document: () => Document, | ||
| default: () => index_default | ||
| }); | ||
| module.exports = __toCommonJS(index_exports); | ||
| // src/document.ts | ||
| var import_core = require("@tiptap/core"); | ||
| var Document = import_core.Node.create({ | ||
| name: "doc", | ||
| topNode: true, | ||
| content: "block+", | ||
| renderMarkdown: (node, h) => { | ||
| if (!node.content) { | ||
| return ""; | ||
| } | ||
| return h.renderChildren(node.content, "\n\n"); | ||
| } | ||
| }); | ||
| // src/index.ts | ||
| var index_default = Document; | ||
| // Annotate the CommonJS export names for ESM import in node: | ||
| 0 && (module.exports = { | ||
| Document | ||
| }); | ||
| //# sourceMappingURL=index.cjs.map |
| {"version":3,"sources":["../src/index.ts","../src/document.ts"],"sourcesContent":["import { Document } from './document.js'\n\nexport * from './document.js'\n\nexport default Document\n","import { Node } from '@tiptap/core'\n\n/**\n * The default document node which represents the top level node of the editor.\n * @see https://tiptap.dev/api/nodes/document\n */\nexport const Document = Node.create({\n name: 'doc',\n topNode: true,\n content: 'block+',\n\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return ''\n }\n\n return h.renderChildren(node.content, '\\n\\n')\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAqB;AAMd,IAAM,WAAW,iBAAK,OAAO;AAAA,EAClC,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EAET,gBAAgB,CAAC,MAAM,MAAM;AAC3B,QAAI,CAAC,KAAK,SAAS;AACjB,aAAO;AAAA,IACT;AAEA,WAAO,EAAE,eAAe,KAAK,SAAS,MAAM;AAAA,EAC9C;AACF,CAAC;;;ADdD,IAAO,gBAAQ;","names":[]} |
| import { Node } from '@tiptap/core'; | ||
| /** | ||
| * The default document node which represents the top level node of the editor. | ||
| * @see https://tiptap.dev/api/nodes/document | ||
| */ | ||
| declare const Document: Node<any, any>; | ||
| export { Document, Document as default }; |
| import { Node } from '@tiptap/core'; | ||
| /** | ||
| * The default document node which represents the top level node of the editor. | ||
| * @see https://tiptap.dev/api/nodes/document | ||
| */ | ||
| declare const Document: Node<any, any>; | ||
| export { Document, Document as default }; |
| // src/document.ts | ||
| import { Node } from "@tiptap/core"; | ||
| var Document = Node.create({ | ||
| name: "doc", | ||
| topNode: true, | ||
| content: "block+", | ||
| renderMarkdown: (node, h) => { | ||
| if (!node.content) { | ||
| return ""; | ||
| } | ||
| return h.renderChildren(node.content, "\n\n"); | ||
| } | ||
| }); | ||
| // src/index.ts | ||
| var index_default = Document; | ||
| export { | ||
| Document, | ||
| index_default as default | ||
| }; | ||
| //# sourceMappingURL=index.js.map |
| {"version":3,"sources":["../src/document.ts","../src/index.ts"],"sourcesContent":["import { Node } from '@tiptap/core'\n\n/**\n * The default document node which represents the top level node of the editor.\n * @see https://tiptap.dev/api/nodes/document\n */\nexport const Document = Node.create({\n name: 'doc',\n topNode: true,\n content: 'block+',\n\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return ''\n }\n\n return h.renderChildren(node.content, '\\n\\n')\n },\n})\n","import { Document } from './document.js'\n\nexport * from './document.js'\n\nexport default Document\n"],"mappings":";AAAA,SAAS,YAAY;AAMd,IAAM,WAAW,KAAK,OAAO;AAAA,EAClC,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EAET,gBAAgB,CAAC,MAAM,MAAM;AAC3B,QAAI,CAAC,KAAK,SAAS;AACjB,aAAO;AAAA,IACT;AAEA,WAAO,EAAE,eAAe,KAAK,SAAS,MAAM;AAAA,EAC9C;AACF,CAAC;;;ACdD,IAAO,gBAAQ;","names":[]} |
3714
-52.96%5
-54.55%19
-78.65%