fix: resolve TypeScript errors in frontend build
This commit is contained in:
48
node_modules/@tiptap/extension-document/dist/index.cjs
generated
vendored
Normal file
48
node_modules/@tiptap/extension-document/dist/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
"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
|
||||
1
node_modules/@tiptap/extension-document/dist/index.cjs.map
generated
vendored
Normal file
1
node_modules/@tiptap/extension-document/dist/index.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"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":[]}
|
||||
9
node_modules/@tiptap/extension-document/dist/index.d.cts
generated
vendored
Normal file
9
node_modules/@tiptap/extension-document/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
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 };
|
||||
9
node_modules/@tiptap/extension-document/dist/index.d.ts
generated
vendored
Normal file
9
node_modules/@tiptap/extension-document/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
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 };
|
||||
21
node_modules/@tiptap/extension-document/dist/index.js
generated
vendored
Normal file
21
node_modules/@tiptap/extension-document/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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
|
||||
1
node_modules/@tiptap/extension-document/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@tiptap/extension-document/dist/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"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":[]}
|
||||
Reference in New Issue
Block a user