fix: resolve TypeScript errors in frontend build
This commit is contained in:
21
node_modules/@tiptap/starter-kit/LICENSE.md
generated
vendored
Normal file
21
node_modules/@tiptap/starter-kit/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/starter-kit/README.md
generated
vendored
Normal file
18
node_modules/@tiptap/starter-kit/README.md
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# @tiptap/starter-kit
|
||||
|
||||
[](https://www.npmjs.com/package/@tiptap/starter-kit)
|
||||
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
||||
[](https://www.npmjs.com/package/@tiptap/starter-kit)
|
||||
[](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).
|
||||
127
node_modules/@tiptap/starter-kit/dist/index.cjs
generated
vendored
Normal file
127
node_modules/@tiptap/starter-kit/dist/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
"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, {
|
||||
StarterKit: () => StarterKit,
|
||||
default: () => index_default
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/starter-kit.ts
|
||||
var import_core = require("@tiptap/core");
|
||||
var import_extension_blockquote = require("@tiptap/extension-blockquote");
|
||||
var import_extension_bold = require("@tiptap/extension-bold");
|
||||
var import_extension_code = require("@tiptap/extension-code");
|
||||
var import_extension_code_block = require("@tiptap/extension-code-block");
|
||||
var import_extension_document = require("@tiptap/extension-document");
|
||||
var import_extension_hard_break = require("@tiptap/extension-hard-break");
|
||||
var import_extension_heading = require("@tiptap/extension-heading");
|
||||
var import_extension_horizontal_rule = require("@tiptap/extension-horizontal-rule");
|
||||
var import_extension_italic = require("@tiptap/extension-italic");
|
||||
var import_extension_link = require("@tiptap/extension-link");
|
||||
var import_extension_list = require("@tiptap/extension-list");
|
||||
var import_extension_paragraph = require("@tiptap/extension-paragraph");
|
||||
var import_extension_strike = require("@tiptap/extension-strike");
|
||||
var import_extension_text = require("@tiptap/extension-text");
|
||||
var import_extension_underline = require("@tiptap/extension-underline");
|
||||
var import_extensions = require("@tiptap/extensions");
|
||||
var StarterKit = import_core.Extension.create({
|
||||
name: "starterKit",
|
||||
addExtensions() {
|
||||
var _a, _b, _c, _d;
|
||||
const extensions = [];
|
||||
if (this.options.bold !== false) {
|
||||
extensions.push(import_extension_bold.Bold.configure(this.options.bold));
|
||||
}
|
||||
if (this.options.blockquote !== false) {
|
||||
extensions.push(import_extension_blockquote.Blockquote.configure(this.options.blockquote));
|
||||
}
|
||||
if (this.options.bulletList !== false) {
|
||||
extensions.push(import_extension_list.BulletList.configure(this.options.bulletList));
|
||||
}
|
||||
if (this.options.code !== false) {
|
||||
extensions.push(import_extension_code.Code.configure(this.options.code));
|
||||
}
|
||||
if (this.options.codeBlock !== false) {
|
||||
extensions.push(import_extension_code_block.CodeBlock.configure(this.options.codeBlock));
|
||||
}
|
||||
if (this.options.document !== false) {
|
||||
extensions.push(import_extension_document.Document.configure(this.options.document));
|
||||
}
|
||||
if (this.options.dropcursor !== false) {
|
||||
extensions.push(import_extensions.Dropcursor.configure(this.options.dropcursor));
|
||||
}
|
||||
if (this.options.gapcursor !== false) {
|
||||
extensions.push(import_extensions.Gapcursor.configure(this.options.gapcursor));
|
||||
}
|
||||
if (this.options.hardBreak !== false) {
|
||||
extensions.push(import_extension_hard_break.HardBreak.configure(this.options.hardBreak));
|
||||
}
|
||||
if (this.options.heading !== false) {
|
||||
extensions.push(import_extension_heading.Heading.configure(this.options.heading));
|
||||
}
|
||||
if (this.options.undoRedo !== false) {
|
||||
extensions.push(import_extensions.UndoRedo.configure(this.options.undoRedo));
|
||||
}
|
||||
if (this.options.horizontalRule !== false) {
|
||||
extensions.push(import_extension_horizontal_rule.HorizontalRule.configure(this.options.horizontalRule));
|
||||
}
|
||||
if (this.options.italic !== false) {
|
||||
extensions.push(import_extension_italic.Italic.configure(this.options.italic));
|
||||
}
|
||||
if (this.options.listItem !== false) {
|
||||
extensions.push(import_extension_list.ListItem.configure(this.options.listItem));
|
||||
}
|
||||
if (this.options.listKeymap !== false) {
|
||||
extensions.push(import_extension_list.ListKeymap.configure((_a = this.options) == null ? void 0 : _a.listKeymap));
|
||||
}
|
||||
if (this.options.link !== false) {
|
||||
extensions.push(import_extension_link.Link.configure((_b = this.options) == null ? void 0 : _b.link));
|
||||
}
|
||||
if (this.options.orderedList !== false) {
|
||||
extensions.push(import_extension_list.OrderedList.configure(this.options.orderedList));
|
||||
}
|
||||
if (this.options.paragraph !== false) {
|
||||
extensions.push(import_extension_paragraph.Paragraph.configure(this.options.paragraph));
|
||||
}
|
||||
if (this.options.strike !== false) {
|
||||
extensions.push(import_extension_strike.Strike.configure(this.options.strike));
|
||||
}
|
||||
if (this.options.text !== false) {
|
||||
extensions.push(import_extension_text.Text.configure(this.options.text));
|
||||
}
|
||||
if (this.options.underline !== false) {
|
||||
extensions.push(import_extension_underline.Underline.configure((_c = this.options) == null ? void 0 : _c.underline));
|
||||
}
|
||||
if (this.options.trailingNode !== false) {
|
||||
extensions.push(import_extensions.TrailingNode.configure((_d = this.options) == null ? void 0 : _d.trailingNode));
|
||||
}
|
||||
return extensions;
|
||||
}
|
||||
});
|
||||
|
||||
// src/index.ts
|
||||
var index_default = StarterKit;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
StarterKit
|
||||
});
|
||||
//# sourceMappingURL=index.cjs.map
|
||||
1
node_modules/@tiptap/starter-kit/dist/index.cjs.map
generated
vendored
Normal file
1
node_modules/@tiptap/starter-kit/dist/index.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
136
node_modules/@tiptap/starter-kit/dist/index.d.cts
generated
vendored
Normal file
136
node_modules/@tiptap/starter-kit/dist/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,136 @@
|
||||
import { Extension } from '@tiptap/core';
|
||||
import { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
||||
import { BoldOptions } from '@tiptap/extension-bold';
|
||||
import { CodeOptions } from '@tiptap/extension-code';
|
||||
import { CodeBlockOptions } from '@tiptap/extension-code-block';
|
||||
import { HardBreakOptions } from '@tiptap/extension-hard-break';
|
||||
import { HeadingOptions } from '@tiptap/extension-heading';
|
||||
import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
|
||||
import { ItalicOptions } from '@tiptap/extension-italic';
|
||||
import { LinkOptions } from '@tiptap/extension-link';
|
||||
import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list';
|
||||
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
||||
import { StrikeOptions } from '@tiptap/extension-strike';
|
||||
import { UnderlineOptions } from '@tiptap/extension-underline';
|
||||
import { DropcursorOptions, UndoRedoOptions, TrailingNodeOptions } from '@tiptap/extensions';
|
||||
|
||||
interface StarterKitOptions {
|
||||
/**
|
||||
* If set to false, the blockquote extension will not be registered
|
||||
* @example blockquote: false
|
||||
*/
|
||||
blockquote: Partial<BlockquoteOptions> | false;
|
||||
/**
|
||||
* If set to false, the bold extension will not be registered
|
||||
* @example bold: false
|
||||
*/
|
||||
bold: Partial<BoldOptions> | false;
|
||||
/**
|
||||
* If set to false, the bulletList extension will not be registered
|
||||
* @example bulletList: false
|
||||
*/
|
||||
bulletList: Partial<BulletListOptions> | false;
|
||||
/**
|
||||
* If set to false, the code extension will not be registered
|
||||
* @example code: false
|
||||
*/
|
||||
code: Partial<CodeOptions> | false;
|
||||
/**
|
||||
* If set to false, the codeBlock extension will not be registered
|
||||
* @example codeBlock: false
|
||||
*/
|
||||
codeBlock: Partial<CodeBlockOptions> | false;
|
||||
/**
|
||||
* If set to false, the document extension will not be registered
|
||||
* @example document: false
|
||||
*/
|
||||
document: false;
|
||||
/**
|
||||
* If set to false, the dropcursor extension will not be registered
|
||||
* @example dropcursor: false
|
||||
*/
|
||||
dropcursor: Partial<DropcursorOptions> | false;
|
||||
/**
|
||||
* If set to false, the gapcursor extension will not be registered
|
||||
* @example gapcursor: false
|
||||
*/
|
||||
gapcursor: false;
|
||||
/**
|
||||
* If set to false, the hardBreak extension will not be registered
|
||||
* @example hardBreak: false
|
||||
*/
|
||||
hardBreak: Partial<HardBreakOptions> | false;
|
||||
/**
|
||||
* If set to false, the heading extension will not be registered
|
||||
* @example heading: false
|
||||
*/
|
||||
heading: Partial<HeadingOptions> | false;
|
||||
/**
|
||||
* If set to false, the undo-redo extension will not be registered
|
||||
* @example undoRedo: false
|
||||
*/
|
||||
undoRedo: Partial<UndoRedoOptions> | false;
|
||||
/**
|
||||
* If set to false, the horizontalRule extension will not be registered
|
||||
* @example horizontalRule: false
|
||||
*/
|
||||
horizontalRule: Partial<HorizontalRuleOptions> | false;
|
||||
/**
|
||||
* If set to false, the italic extension will not be registered
|
||||
* @example italic: false
|
||||
*/
|
||||
italic: Partial<ItalicOptions> | false;
|
||||
/**
|
||||
* If set to false, the listItem extension will not be registered
|
||||
* @example listItem: false
|
||||
*/
|
||||
listItem: Partial<ListItemOptions> | false;
|
||||
/**
|
||||
* If set to false, the listItemKeymap extension will not be registered
|
||||
* @example listKeymap: false
|
||||
*/
|
||||
listKeymap: Partial<ListKeymapOptions> | false;
|
||||
/**
|
||||
* If set to false, the link extension will not be registered
|
||||
* @example link: false
|
||||
*/
|
||||
link: Partial<LinkOptions> | false;
|
||||
/**
|
||||
* If set to false, the orderedList extension will not be registered
|
||||
* @example orderedList: false
|
||||
*/
|
||||
orderedList: Partial<OrderedListOptions> | false;
|
||||
/**
|
||||
* If set to false, the paragraph extension will not be registered
|
||||
* @example paragraph: false
|
||||
*/
|
||||
paragraph: Partial<ParagraphOptions> | false;
|
||||
/**
|
||||
* If set to false, the strike extension will not be registered
|
||||
* @example strike: false
|
||||
*/
|
||||
strike: Partial<StrikeOptions> | false;
|
||||
/**
|
||||
* If set to false, the text extension will not be registered
|
||||
* @example text: false
|
||||
*/
|
||||
text: false;
|
||||
/**
|
||||
* If set to false, the underline extension will not be registered
|
||||
* @example underline: false
|
||||
*/
|
||||
underline: Partial<UnderlineOptions> | false;
|
||||
/**
|
||||
* If set to false, the trailingNode extension will not be registered
|
||||
* @example trailingNode: false
|
||||
*/
|
||||
trailingNode: Partial<TrailingNodeOptions> | false;
|
||||
}
|
||||
/**
|
||||
* The starter kit is a collection of essential editor extensions.
|
||||
*
|
||||
* It’s a good starting point for building your own editor.
|
||||
*/
|
||||
declare const StarterKit: Extension<StarterKitOptions, any>;
|
||||
|
||||
export { StarterKit, type StarterKitOptions, StarterKit as default };
|
||||
136
node_modules/@tiptap/starter-kit/dist/index.d.ts
generated
vendored
Normal file
136
node_modules/@tiptap/starter-kit/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,136 @@
|
||||
import { Extension } from '@tiptap/core';
|
||||
import { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
||||
import { BoldOptions } from '@tiptap/extension-bold';
|
||||
import { CodeOptions } from '@tiptap/extension-code';
|
||||
import { CodeBlockOptions } from '@tiptap/extension-code-block';
|
||||
import { HardBreakOptions } from '@tiptap/extension-hard-break';
|
||||
import { HeadingOptions } from '@tiptap/extension-heading';
|
||||
import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
|
||||
import { ItalicOptions } from '@tiptap/extension-italic';
|
||||
import { LinkOptions } from '@tiptap/extension-link';
|
||||
import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list';
|
||||
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
||||
import { StrikeOptions } from '@tiptap/extension-strike';
|
||||
import { UnderlineOptions } from '@tiptap/extension-underline';
|
||||
import { DropcursorOptions, UndoRedoOptions, TrailingNodeOptions } from '@tiptap/extensions';
|
||||
|
||||
interface StarterKitOptions {
|
||||
/**
|
||||
* If set to false, the blockquote extension will not be registered
|
||||
* @example blockquote: false
|
||||
*/
|
||||
blockquote: Partial<BlockquoteOptions> | false;
|
||||
/**
|
||||
* If set to false, the bold extension will not be registered
|
||||
* @example bold: false
|
||||
*/
|
||||
bold: Partial<BoldOptions> | false;
|
||||
/**
|
||||
* If set to false, the bulletList extension will not be registered
|
||||
* @example bulletList: false
|
||||
*/
|
||||
bulletList: Partial<BulletListOptions> | false;
|
||||
/**
|
||||
* If set to false, the code extension will not be registered
|
||||
* @example code: false
|
||||
*/
|
||||
code: Partial<CodeOptions> | false;
|
||||
/**
|
||||
* If set to false, the codeBlock extension will not be registered
|
||||
* @example codeBlock: false
|
||||
*/
|
||||
codeBlock: Partial<CodeBlockOptions> | false;
|
||||
/**
|
||||
* If set to false, the document extension will not be registered
|
||||
* @example document: false
|
||||
*/
|
||||
document: false;
|
||||
/**
|
||||
* If set to false, the dropcursor extension will not be registered
|
||||
* @example dropcursor: false
|
||||
*/
|
||||
dropcursor: Partial<DropcursorOptions> | false;
|
||||
/**
|
||||
* If set to false, the gapcursor extension will not be registered
|
||||
* @example gapcursor: false
|
||||
*/
|
||||
gapcursor: false;
|
||||
/**
|
||||
* If set to false, the hardBreak extension will not be registered
|
||||
* @example hardBreak: false
|
||||
*/
|
||||
hardBreak: Partial<HardBreakOptions> | false;
|
||||
/**
|
||||
* If set to false, the heading extension will not be registered
|
||||
* @example heading: false
|
||||
*/
|
||||
heading: Partial<HeadingOptions> | false;
|
||||
/**
|
||||
* If set to false, the undo-redo extension will not be registered
|
||||
* @example undoRedo: false
|
||||
*/
|
||||
undoRedo: Partial<UndoRedoOptions> | false;
|
||||
/**
|
||||
* If set to false, the horizontalRule extension will not be registered
|
||||
* @example horizontalRule: false
|
||||
*/
|
||||
horizontalRule: Partial<HorizontalRuleOptions> | false;
|
||||
/**
|
||||
* If set to false, the italic extension will not be registered
|
||||
* @example italic: false
|
||||
*/
|
||||
italic: Partial<ItalicOptions> | false;
|
||||
/**
|
||||
* If set to false, the listItem extension will not be registered
|
||||
* @example listItem: false
|
||||
*/
|
||||
listItem: Partial<ListItemOptions> | false;
|
||||
/**
|
||||
* If set to false, the listItemKeymap extension will not be registered
|
||||
* @example listKeymap: false
|
||||
*/
|
||||
listKeymap: Partial<ListKeymapOptions> | false;
|
||||
/**
|
||||
* If set to false, the link extension will not be registered
|
||||
* @example link: false
|
||||
*/
|
||||
link: Partial<LinkOptions> | false;
|
||||
/**
|
||||
* If set to false, the orderedList extension will not be registered
|
||||
* @example orderedList: false
|
||||
*/
|
||||
orderedList: Partial<OrderedListOptions> | false;
|
||||
/**
|
||||
* If set to false, the paragraph extension will not be registered
|
||||
* @example paragraph: false
|
||||
*/
|
||||
paragraph: Partial<ParagraphOptions> | false;
|
||||
/**
|
||||
* If set to false, the strike extension will not be registered
|
||||
* @example strike: false
|
||||
*/
|
||||
strike: Partial<StrikeOptions> | false;
|
||||
/**
|
||||
* If set to false, the text extension will not be registered
|
||||
* @example text: false
|
||||
*/
|
||||
text: false;
|
||||
/**
|
||||
* If set to false, the underline extension will not be registered
|
||||
* @example underline: false
|
||||
*/
|
||||
underline: Partial<UnderlineOptions> | false;
|
||||
/**
|
||||
* If set to false, the trailingNode extension will not be registered
|
||||
* @example trailingNode: false
|
||||
*/
|
||||
trailingNode: Partial<TrailingNodeOptions> | false;
|
||||
}
|
||||
/**
|
||||
* The starter kit is a collection of essential editor extensions.
|
||||
*
|
||||
* It’s a good starting point for building your own editor.
|
||||
*/
|
||||
declare const StarterKit: Extension<StarterKitOptions, any>;
|
||||
|
||||
export { StarterKit, type StarterKitOptions, StarterKit as default };
|
||||
100
node_modules/@tiptap/starter-kit/dist/index.js
generated
vendored
Normal file
100
node_modules/@tiptap/starter-kit/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
// src/starter-kit.ts
|
||||
import { Extension } from "@tiptap/core";
|
||||
import { Blockquote } from "@tiptap/extension-blockquote";
|
||||
import { Bold } from "@tiptap/extension-bold";
|
||||
import { Code } from "@tiptap/extension-code";
|
||||
import { CodeBlock } from "@tiptap/extension-code-block";
|
||||
import { Document } from "@tiptap/extension-document";
|
||||
import { HardBreak } from "@tiptap/extension-hard-break";
|
||||
import { Heading } from "@tiptap/extension-heading";
|
||||
import { HorizontalRule } from "@tiptap/extension-horizontal-rule";
|
||||
import { Italic } from "@tiptap/extension-italic";
|
||||
import { Link } from "@tiptap/extension-link";
|
||||
import { BulletList, ListItem, ListKeymap, OrderedList } from "@tiptap/extension-list";
|
||||
import { Paragraph } from "@tiptap/extension-paragraph";
|
||||
import { Strike } from "@tiptap/extension-strike";
|
||||
import { Text } from "@tiptap/extension-text";
|
||||
import { Underline } from "@tiptap/extension-underline";
|
||||
import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from "@tiptap/extensions";
|
||||
var StarterKit = Extension.create({
|
||||
name: "starterKit",
|
||||
addExtensions() {
|
||||
var _a, _b, _c, _d;
|
||||
const extensions = [];
|
||||
if (this.options.bold !== false) {
|
||||
extensions.push(Bold.configure(this.options.bold));
|
||||
}
|
||||
if (this.options.blockquote !== false) {
|
||||
extensions.push(Blockquote.configure(this.options.blockquote));
|
||||
}
|
||||
if (this.options.bulletList !== false) {
|
||||
extensions.push(BulletList.configure(this.options.bulletList));
|
||||
}
|
||||
if (this.options.code !== false) {
|
||||
extensions.push(Code.configure(this.options.code));
|
||||
}
|
||||
if (this.options.codeBlock !== false) {
|
||||
extensions.push(CodeBlock.configure(this.options.codeBlock));
|
||||
}
|
||||
if (this.options.document !== false) {
|
||||
extensions.push(Document.configure(this.options.document));
|
||||
}
|
||||
if (this.options.dropcursor !== false) {
|
||||
extensions.push(Dropcursor.configure(this.options.dropcursor));
|
||||
}
|
||||
if (this.options.gapcursor !== false) {
|
||||
extensions.push(Gapcursor.configure(this.options.gapcursor));
|
||||
}
|
||||
if (this.options.hardBreak !== false) {
|
||||
extensions.push(HardBreak.configure(this.options.hardBreak));
|
||||
}
|
||||
if (this.options.heading !== false) {
|
||||
extensions.push(Heading.configure(this.options.heading));
|
||||
}
|
||||
if (this.options.undoRedo !== false) {
|
||||
extensions.push(UndoRedo.configure(this.options.undoRedo));
|
||||
}
|
||||
if (this.options.horizontalRule !== false) {
|
||||
extensions.push(HorizontalRule.configure(this.options.horizontalRule));
|
||||
}
|
||||
if (this.options.italic !== false) {
|
||||
extensions.push(Italic.configure(this.options.italic));
|
||||
}
|
||||
if (this.options.listItem !== false) {
|
||||
extensions.push(ListItem.configure(this.options.listItem));
|
||||
}
|
||||
if (this.options.listKeymap !== false) {
|
||||
extensions.push(ListKeymap.configure((_a = this.options) == null ? void 0 : _a.listKeymap));
|
||||
}
|
||||
if (this.options.link !== false) {
|
||||
extensions.push(Link.configure((_b = this.options) == null ? void 0 : _b.link));
|
||||
}
|
||||
if (this.options.orderedList !== false) {
|
||||
extensions.push(OrderedList.configure(this.options.orderedList));
|
||||
}
|
||||
if (this.options.paragraph !== false) {
|
||||
extensions.push(Paragraph.configure(this.options.paragraph));
|
||||
}
|
||||
if (this.options.strike !== false) {
|
||||
extensions.push(Strike.configure(this.options.strike));
|
||||
}
|
||||
if (this.options.text !== false) {
|
||||
extensions.push(Text.configure(this.options.text));
|
||||
}
|
||||
if (this.options.underline !== false) {
|
||||
extensions.push(Underline.configure((_c = this.options) == null ? void 0 : _c.underline));
|
||||
}
|
||||
if (this.options.trailingNode !== false) {
|
||||
extensions.push(TrailingNode.configure((_d = this.options) == null ? void 0 : _d.trailingNode));
|
||||
}
|
||||
return extensions;
|
||||
}
|
||||
});
|
||||
|
||||
// src/index.ts
|
||||
var index_default = StarterKit;
|
||||
export {
|
||||
StarterKit,
|
||||
index_default as default
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/@tiptap/starter-kit/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@tiptap/starter-kit/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
68
node_modules/@tiptap/starter-kit/package.json
generated
vendored
Normal file
68
node_modules/@tiptap/starter-kit/package.json
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"name": "@tiptap/starter-kit",
|
||||
"description": "starter kit for tiptap",
|
||||
"version": "3.21.0",
|
||||
"homepage": "https://tiptap.dev",
|
||||
"keywords": [
|
||||
"tiptap",
|
||||
"tiptap starter kit"
|
||||
],
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ueberdosis"
|
||||
},
|
||||
"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",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@tiptap/core": "^3.21.0",
|
||||
"@tiptap/extension-blockquote": "^3.21.0",
|
||||
"@tiptap/extension-bold": "^3.21.0",
|
||||
"@tiptap/extension-bullet-list": "^3.21.0",
|
||||
"@tiptap/extension-code": "^3.21.0",
|
||||
"@tiptap/extension-code-block": "^3.21.0",
|
||||
"@tiptap/extension-document": "^3.21.0",
|
||||
"@tiptap/extension-dropcursor": "^3.21.0",
|
||||
"@tiptap/extension-gapcursor": "^3.21.0",
|
||||
"@tiptap/extension-hard-break": "^3.21.0",
|
||||
"@tiptap/extension-heading": "^3.21.0",
|
||||
"@tiptap/extension-horizontal-rule": "^3.21.0",
|
||||
"@tiptap/extension-italic": "^3.21.0",
|
||||
"@tiptap/extension-link": "^3.21.0",
|
||||
"@tiptap/extension-list": "^3.21.0",
|
||||
"@tiptap/extension-list-item": "^3.21.0",
|
||||
"@tiptap/extension-list-keymap": "^3.21.0",
|
||||
"@tiptap/extension-ordered-list": "^3.21.0",
|
||||
"@tiptap/extension-paragraph": "^3.21.0",
|
||||
"@tiptap/extension-strike": "^3.21.0",
|
||||
"@tiptap/extension-text": "^3.21.0",
|
||||
"@tiptap/extension-underline": "^3.21.0",
|
||||
"@tiptap/extensions": "^3.21.0",
|
||||
"@tiptap/pm": "^3.21.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ueberdosis/tiptap",
|
||||
"directory": "packages/starter-kit"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/"
|
||||
}
|
||||
}
|
||||
6
node_modules/@tiptap/starter-kit/src/index.ts
generated
vendored
Normal file
6
node_modules/@tiptap/starter-kit/src/index.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { StarterKit } from './starter-kit.js'
|
||||
|
||||
export type { StarterKitOptions } from './starter-kit.js'
|
||||
export * from './starter-kit.js'
|
||||
|
||||
export default StarterKit
|
||||
268
node_modules/@tiptap/starter-kit/src/starter-kit.ts
generated
vendored
Normal file
268
node_modules/@tiptap/starter-kit/src/starter-kit.ts
generated
vendored
Normal file
@@ -0,0 +1,268 @@
|
||||
import { Extension } from '@tiptap/core'
|
||||
import type { BlockquoteOptions } from '@tiptap/extension-blockquote'
|
||||
import { Blockquote } from '@tiptap/extension-blockquote'
|
||||
import type { BoldOptions } from '@tiptap/extension-bold'
|
||||
import { Bold } from '@tiptap/extension-bold'
|
||||
import type { CodeOptions } from '@tiptap/extension-code'
|
||||
import { Code } from '@tiptap/extension-code'
|
||||
import type { CodeBlockOptions } from '@tiptap/extension-code-block'
|
||||
import { CodeBlock } from '@tiptap/extension-code-block'
|
||||
import { Document } from '@tiptap/extension-document'
|
||||
import type { HardBreakOptions } from '@tiptap/extension-hard-break'
|
||||
import { HardBreak } from '@tiptap/extension-hard-break'
|
||||
import type { HeadingOptions } from '@tiptap/extension-heading'
|
||||
import { Heading } from '@tiptap/extension-heading'
|
||||
import type { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'
|
||||
import { HorizontalRule } from '@tiptap/extension-horizontal-rule'
|
||||
import type { ItalicOptions } from '@tiptap/extension-italic'
|
||||
import { Italic } from '@tiptap/extension-italic'
|
||||
import type { LinkOptions } from '@tiptap/extension-link'
|
||||
import { Link } from '@tiptap/extension-link'
|
||||
import type { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list'
|
||||
import { BulletList, ListItem, ListKeymap, OrderedList } from '@tiptap/extension-list'
|
||||
import type { ParagraphOptions } from '@tiptap/extension-paragraph'
|
||||
import { Paragraph } from '@tiptap/extension-paragraph'
|
||||
import type { StrikeOptions } from '@tiptap/extension-strike'
|
||||
import { Strike } from '@tiptap/extension-strike'
|
||||
import { Text } from '@tiptap/extension-text'
|
||||
import type { UnderlineOptions } from '@tiptap/extension-underline'
|
||||
import { Underline } from '@tiptap/extension-underline'
|
||||
import type { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from '@tiptap/extensions'
|
||||
import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from '@tiptap/extensions'
|
||||
|
||||
export interface StarterKitOptions {
|
||||
/**
|
||||
* If set to false, the blockquote extension will not be registered
|
||||
* @example blockquote: false
|
||||
*/
|
||||
blockquote: Partial<BlockquoteOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the bold extension will not be registered
|
||||
* @example bold: false
|
||||
*/
|
||||
bold: Partial<BoldOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the bulletList extension will not be registered
|
||||
* @example bulletList: false
|
||||
*/
|
||||
bulletList: Partial<BulletListOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the code extension will not be registered
|
||||
* @example code: false
|
||||
*/
|
||||
code: Partial<CodeOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the codeBlock extension will not be registered
|
||||
* @example codeBlock: false
|
||||
*/
|
||||
codeBlock: Partial<CodeBlockOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the document extension will not be registered
|
||||
* @example document: false
|
||||
*/
|
||||
document: false
|
||||
|
||||
/**
|
||||
* If set to false, the dropcursor extension will not be registered
|
||||
* @example dropcursor: false
|
||||
*/
|
||||
dropcursor: Partial<DropcursorOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the gapcursor extension will not be registered
|
||||
* @example gapcursor: false
|
||||
*/
|
||||
gapcursor: false
|
||||
|
||||
/**
|
||||
* If set to false, the hardBreak extension will not be registered
|
||||
* @example hardBreak: false
|
||||
*/
|
||||
hardBreak: Partial<HardBreakOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the heading extension will not be registered
|
||||
* @example heading: false
|
||||
*/
|
||||
heading: Partial<HeadingOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the undo-redo extension will not be registered
|
||||
* @example undoRedo: false
|
||||
*/
|
||||
undoRedo: Partial<UndoRedoOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the horizontalRule extension will not be registered
|
||||
* @example horizontalRule: false
|
||||
*/
|
||||
horizontalRule: Partial<HorizontalRuleOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the italic extension will not be registered
|
||||
* @example italic: false
|
||||
*/
|
||||
italic: Partial<ItalicOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the listItem extension will not be registered
|
||||
* @example listItem: false
|
||||
*/
|
||||
listItem: Partial<ListItemOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the listItemKeymap extension will not be registered
|
||||
* @example listKeymap: false
|
||||
*/
|
||||
listKeymap: Partial<ListKeymapOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the link extension will not be registered
|
||||
* @example link: false
|
||||
*/
|
||||
link: Partial<LinkOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the orderedList extension will not be registered
|
||||
* @example orderedList: false
|
||||
*/
|
||||
orderedList: Partial<OrderedListOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the paragraph extension will not be registered
|
||||
* @example paragraph: false
|
||||
*/
|
||||
paragraph: Partial<ParagraphOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the strike extension will not be registered
|
||||
* @example strike: false
|
||||
*/
|
||||
strike: Partial<StrikeOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the text extension will not be registered
|
||||
* @example text: false
|
||||
*/
|
||||
text: false
|
||||
|
||||
/**
|
||||
* If set to false, the underline extension will not be registered
|
||||
* @example underline: false
|
||||
*/
|
||||
underline: Partial<UnderlineOptions> | false
|
||||
|
||||
/**
|
||||
* If set to false, the trailingNode extension will not be registered
|
||||
* @example trailingNode: false
|
||||
*/
|
||||
trailingNode: Partial<TrailingNodeOptions> | false
|
||||
}
|
||||
|
||||
/**
|
||||
* The starter kit is a collection of essential editor extensions.
|
||||
*
|
||||
* It’s a good starting point for building your own editor.
|
||||
*/
|
||||
export const StarterKit = Extension.create<StarterKitOptions>({
|
||||
name: 'starterKit',
|
||||
|
||||
addExtensions() {
|
||||
const extensions = []
|
||||
|
||||
if (this.options.bold !== false) {
|
||||
extensions.push(Bold.configure(this.options.bold))
|
||||
}
|
||||
|
||||
if (this.options.blockquote !== false) {
|
||||
extensions.push(Blockquote.configure(this.options.blockquote))
|
||||
}
|
||||
|
||||
if (this.options.bulletList !== false) {
|
||||
extensions.push(BulletList.configure(this.options.bulletList))
|
||||
}
|
||||
|
||||
if (this.options.code !== false) {
|
||||
extensions.push(Code.configure(this.options.code))
|
||||
}
|
||||
|
||||
if (this.options.codeBlock !== false) {
|
||||
extensions.push(CodeBlock.configure(this.options.codeBlock))
|
||||
}
|
||||
|
||||
if (this.options.document !== false) {
|
||||
extensions.push(Document.configure(this.options.document))
|
||||
}
|
||||
|
||||
if (this.options.dropcursor !== false) {
|
||||
extensions.push(Dropcursor.configure(this.options.dropcursor))
|
||||
}
|
||||
|
||||
if (this.options.gapcursor !== false) {
|
||||
extensions.push(Gapcursor.configure(this.options.gapcursor))
|
||||
}
|
||||
|
||||
if (this.options.hardBreak !== false) {
|
||||
extensions.push(HardBreak.configure(this.options.hardBreak))
|
||||
}
|
||||
|
||||
if (this.options.heading !== false) {
|
||||
extensions.push(Heading.configure(this.options.heading))
|
||||
}
|
||||
|
||||
if (this.options.undoRedo !== false) {
|
||||
extensions.push(UndoRedo.configure(this.options.undoRedo))
|
||||
}
|
||||
|
||||
if (this.options.horizontalRule !== false) {
|
||||
extensions.push(HorizontalRule.configure(this.options.horizontalRule))
|
||||
}
|
||||
|
||||
if (this.options.italic !== false) {
|
||||
extensions.push(Italic.configure(this.options.italic))
|
||||
}
|
||||
|
||||
if (this.options.listItem !== false) {
|
||||
extensions.push(ListItem.configure(this.options.listItem))
|
||||
}
|
||||
|
||||
if (this.options.listKeymap !== false) {
|
||||
extensions.push(ListKeymap.configure(this.options?.listKeymap))
|
||||
}
|
||||
|
||||
if (this.options.link !== false) {
|
||||
extensions.push(Link.configure(this.options?.link))
|
||||
}
|
||||
|
||||
if (this.options.orderedList !== false) {
|
||||
extensions.push(OrderedList.configure(this.options.orderedList))
|
||||
}
|
||||
|
||||
if (this.options.paragraph !== false) {
|
||||
extensions.push(Paragraph.configure(this.options.paragraph))
|
||||
}
|
||||
|
||||
if (this.options.strike !== false) {
|
||||
extensions.push(Strike.configure(this.options.strike))
|
||||
}
|
||||
|
||||
if (this.options.text !== false) {
|
||||
extensions.push(Text.configure(this.options.text))
|
||||
}
|
||||
|
||||
if (this.options.underline !== false) {
|
||||
extensions.push(Underline.configure(this.options?.underline))
|
||||
}
|
||||
|
||||
if (this.options.trailingNode !== false) {
|
||||
extensions.push(TrailingNode.configure(this.options?.trailingNode))
|
||||
}
|
||||
|
||||
return extensions
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user