fix: resolve TypeScript errors in frontend build
This commit is contained in:
21
node_modules/@tiptap/extension-document/LICENSE.md
generated
vendored
Normal file
21
node_modules/@tiptap/extension-document/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025, Tiptap GmbH
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
18
node_modules/@tiptap/extension-document/README.md
generated
vendored
Normal file
18
node_modules/@tiptap/extension-document/README.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# @tiptap/extension-document
|
||||
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-document)
|
||||
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-document)
|
||||
[](https://github.com/sponsors/ueberdosis)
|
||||
|
||||
## Introduction
|
||||
|
||||
Tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as _New York Times_, _The Guardian_ or _Atlassian_.
|
||||
|
||||
## Official Documentation
|
||||
|
||||
Documentation can be found on the [Tiptap website](https://tiptap.dev).
|
||||
|
||||
## License
|
||||
|
||||
Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
|
||||
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":[]}
|
||||
48
node_modules/@tiptap/extension-document/package.json
generated
vendored
Normal file
48
node_modules/@tiptap/extension-document/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "@tiptap/extension-document",
|
||||
"description": "document extension for tiptap",
|
||||
"version": "3.21.0",
|
||||
"homepage": "https://tiptap.dev",
|
||||
"keywords": [
|
||||
"tiptap",
|
||||
"tiptap extension"
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ueberdosis"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": {
|
||||
"import": "./dist/index.d.ts",
|
||||
"require": "./dist/index.d.cts"
|
||||
},
|
||||
"import": "./dist/index.js",
|
||||
"require": "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
"main": "dist/index.cjs",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@tiptap/core": "^3.21.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@tiptap/core": "^3.21.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ueberdosis/tiptap",
|
||||
"directory": "packages/extension-document"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/"
|
||||
}
|
||||
}
|
||||
19
node_modules/@tiptap/extension-document/src/document.ts
generated
vendored
Normal file
19
node_modules/@tiptap/extension-document/src/document.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
*/
|
||||
export const Document = Node.create({
|
||||
name: 'doc',
|
||||
topNode: true,
|
||||
content: 'block+',
|
||||
|
||||
renderMarkdown: (node, h) => {
|
||||
if (!node.content) {
|
||||
return ''
|
||||
}
|
||||
|
||||
return h.renderChildren(node.content, '\n\n')
|
||||
},
|
||||
})
|
||||
5
node_modules/@tiptap/extension-document/src/index.ts
generated
vendored
Normal file
5
node_modules/@tiptap/extension-document/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Document } from './document.js'
|
||||
|
||||
export * from './document.js'
|
||||
|
||||
export default Document
|
||||
Reference in New Issue
Block a user