fix: resolve TypeScript errors in frontend build
This commit is contained in:
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":[]}
|
||||
Reference in New Issue
Block a user