fix: resolve TypeScript errors in frontend build
This commit is contained in:
21
node_modules/@tiptap/extension-text/LICENSE.md
generated
vendored
Normal file
21
node_modules/@tiptap/extension-text/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-text/README.md
generated
vendored
Normal file
18
node_modules/@tiptap/extension-text/README.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# @tiptap/extension-text
|
||||
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-text)
|
||||
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
||||
[](https://www.npmjs.com/package/@tiptap/extension-text)
|
||||
[](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-text/dist/index.cjs
generated
vendored
Normal file
48
node_modules/@tiptap/extension-text/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, {
|
||||
Text: () => Text,
|
||||
default: () => index_default
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/text.ts
|
||||
var import_core = require("@tiptap/core");
|
||||
var Text = import_core.Node.create({
|
||||
name: "text",
|
||||
group: "inline",
|
||||
parseMarkdown: (token) => {
|
||||
return {
|
||||
type: "text",
|
||||
text: token.text || ""
|
||||
};
|
||||
},
|
||||
renderMarkdown: (node) => node.text || ""
|
||||
});
|
||||
|
||||
// src/index.ts
|
||||
var index_default = Text;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
Text
|
||||
});
|
||||
//# sourceMappingURL=index.cjs.map
|
||||
1
node_modules/@tiptap/extension-text/dist/index.cjs.map
generated
vendored
Normal file
1
node_modules/@tiptap/extension-text/dist/index.cjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/index.ts","../src/text.ts"],"sourcesContent":["import { Text } from './text.js'\n\nexport * from './text.js'\n\nexport default Text\n","import { Node } from '@tiptap/core'\n\n/**\n * This extension allows you to create text nodes.\n * @see https://www.tiptap.dev/api/nodes/text\n */\nexport const Text = Node.create({\n name: 'text',\n group: 'inline',\n\n parseMarkdown: token => {\n // Convert 'text' token to text node - text nodes are special as they store text directly\n return {\n type: 'text',\n text: token.text || '',\n }\n },\n\n renderMarkdown: node => node.text || '',\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAqB;AAMd,IAAM,OAAO,iBAAK,OAAO;AAAA,EAC9B,MAAM;AAAA,EACN,OAAO;AAAA,EAEP,eAAe,WAAS;AAEtB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM,MAAM,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EAEA,gBAAgB,UAAQ,KAAK,QAAQ;AACvC,CAAC;;;ADfD,IAAO,gBAAQ;","names":[]}
|
||||
9
node_modules/@tiptap/extension-text/dist/index.d.cts
generated
vendored
Normal file
9
node_modules/@tiptap/extension-text/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Node } from '@tiptap/core';
|
||||
|
||||
/**
|
||||
* This extension allows you to create text nodes.
|
||||
* @see https://www.tiptap.dev/api/nodes/text
|
||||
*/
|
||||
declare const Text: Node<any, any>;
|
||||
|
||||
export { Text, Text as default };
|
||||
9
node_modules/@tiptap/extension-text/dist/index.d.ts
generated
vendored
Normal file
9
node_modules/@tiptap/extension-text/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Node } from '@tiptap/core';
|
||||
|
||||
/**
|
||||
* This extension allows you to create text nodes.
|
||||
* @see https://www.tiptap.dev/api/nodes/text
|
||||
*/
|
||||
declare const Text: Node<any, any>;
|
||||
|
||||
export { Text, Text as default };
|
||||
21
node_modules/@tiptap/extension-text/dist/index.js
generated
vendored
Normal file
21
node_modules/@tiptap/extension-text/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// src/text.ts
|
||||
import { Node } from "@tiptap/core";
|
||||
var Text = Node.create({
|
||||
name: "text",
|
||||
group: "inline",
|
||||
parseMarkdown: (token) => {
|
||||
return {
|
||||
type: "text",
|
||||
text: token.text || ""
|
||||
};
|
||||
},
|
||||
renderMarkdown: (node) => node.text || ""
|
||||
});
|
||||
|
||||
// src/index.ts
|
||||
var index_default = Text;
|
||||
export {
|
||||
Text,
|
||||
index_default as default
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@tiptap/extension-text/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@tiptap/extension-text/dist/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../src/text.ts","../src/index.ts"],"sourcesContent":["import { Node } from '@tiptap/core'\n\n/**\n * This extension allows you to create text nodes.\n * @see https://www.tiptap.dev/api/nodes/text\n */\nexport const Text = Node.create({\n name: 'text',\n group: 'inline',\n\n parseMarkdown: token => {\n // Convert 'text' token to text node - text nodes are special as they store text directly\n return {\n type: 'text',\n text: token.text || '',\n }\n },\n\n renderMarkdown: node => node.text || '',\n})\n","import { Text } from './text.js'\n\nexport * from './text.js'\n\nexport default Text\n"],"mappings":";AAAA,SAAS,YAAY;AAMd,IAAM,OAAO,KAAK,OAAO;AAAA,EAC9B,MAAM;AAAA,EACN,OAAO;AAAA,EAEP,eAAe,WAAS;AAEtB,WAAO;AAAA,MACL,MAAM;AAAA,MACN,MAAM,MAAM,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EAEA,gBAAgB,UAAQ,KAAK,QAAQ;AACvC,CAAC;;;ACfD,IAAO,gBAAQ;","names":[]}
|
||||
48
node_modules/@tiptap/extension-text/package.json
generated
vendored
Normal file
48
node_modules/@tiptap/extension-text/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "@tiptap/extension-text",
|
||||
"description": "text 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-text"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/"
|
||||
}
|
||||
}
|
||||
5
node_modules/@tiptap/extension-text/src/index.ts
generated
vendored
Normal file
5
node_modules/@tiptap/extension-text/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Text } from './text.js'
|
||||
|
||||
export * from './text.js'
|
||||
|
||||
export default Text
|
||||
20
node_modules/@tiptap/extension-text/src/text.ts
generated
vendored
Normal file
20
node_modules/@tiptap/extension-text/src/text.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
/**
|
||||
* This extension allows you to create text nodes.
|
||||
* @see https://www.tiptap.dev/api/nodes/text
|
||||
*/
|
||||
export const Text = Node.create({
|
||||
name: 'text',
|
||||
group: 'inline',
|
||||
|
||||
parseMarkdown: token => {
|
||||
// Convert 'text' token to text node - text nodes are special as they store text directly
|
||||
return {
|
||||
type: 'text',
|
||||
text: token.text || '',
|
||||
}
|
||||
},
|
||||
|
||||
renderMarkdown: node => node.text || '',
|
||||
})
|
||||
Reference in New Issue
Block a user