@halo-dev/richtext-editor 0.0.0-alpha.5 → 0.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rich-text-editor.es.js +1 -1
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +1 -1
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +3 -4
- package/package.json +16 -16
- package/dist/extensions/code-block/code-block.d.ts +0 -2
- package/dist/extensions/code-block/index.d.ts +0 -2
- package/dist/extensions/code-block/lowlight.d.ts +0 -2
- package/dist/extensions/commands-menu/commands.d.ts +0 -3
- package/dist/extensions/commands-menu/index.d.ts +0 -2
- package/dist/extensions/commands-menu/suggestion.d.ts +0 -23
- package/dist/extensions/index.d.ts +0 -35
- package/dist/extensions/katex/index.d.ts +0 -2
- package/dist/index.d.ts +0 -7
package/dist/style.css
CHANGED
|
@@ -95,6 +95,9 @@
|
|
|
95
95
|
.halo-rich-text-editor .editor-content .ProseMirror ul[data-type=taskList] li > label {
|
|
96
96
|
flex: 0 0 auto;
|
|
97
97
|
margin-right: 0.5rem;
|
|
98
|
+
}
|
|
99
|
+
.halo-rich-text-editor .editor-content .ProseMirror ul {
|
|
100
|
+
list-style-type: disc;
|
|
98
101
|
}/*
|
|
99
102
|
! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com
|
|
100
103
|
*//*
|
|
@@ -608,9 +611,6 @@ video {
|
|
|
608
611
|
.relative {
|
|
609
612
|
position: relative;
|
|
610
613
|
}
|
|
611
|
-
.block {
|
|
612
|
-
display: block;
|
|
613
|
-
}
|
|
614
614
|
.flex {
|
|
615
615
|
display: flex;
|
|
616
616
|
}
|
|
@@ -2793,7 +2793,6 @@ body {
|
|
|
2793
2793
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0px 10px 20px rgba(0, 0, 0, 0.1);
|
|
2794
2794
|
}
|
|
2795
2795
|
.item {
|
|
2796
|
-
display: block;
|
|
2797
2796
|
margin: 0;
|
|
2798
2797
|
width: 100%;
|
|
2799
2798
|
text-align: left;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halo-dev/richtext-editor",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
"unpkg": "./dist/rich-text-editor.iife.js",
|
|
11
11
|
"jsdelivr": "./dist/rich-text-editor.iife.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite build --watch",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"test:unit": "vitest --environment jsdom --run",
|
|
17
|
+
"test:unit:watch": "vitest --environment jsdom --watch",
|
|
18
|
+
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
|
19
|
+
"test:unit:coverage": "vitest run --environment jsdom --coverage",
|
|
20
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
|
21
|
+
"lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
|
|
22
|
+
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}'",
|
|
23
|
+
"release": "release-it"
|
|
24
|
+
},
|
|
13
25
|
"keywords": [],
|
|
14
26
|
"author": "",
|
|
15
27
|
"license": "ISC",
|
|
@@ -21,12 +33,12 @@
|
|
|
21
33
|
"@types/katex": "^0.14.0",
|
|
22
34
|
"@vue/compiler-sfc": "^3.2.37",
|
|
23
35
|
"autoprefixer": "^10.4.8",
|
|
24
|
-
"bumpp": "^8.2.1",
|
|
25
36
|
"postcss": "^8.4.16",
|
|
26
37
|
"sass": "^1.54.5",
|
|
27
38
|
"tailwindcss": "^3.1.8",
|
|
28
39
|
"unplugin-icons": "^0.14.8",
|
|
29
|
-
"vite-plugin-dts": "^1.4.1"
|
|
40
|
+
"vite-plugin-dts": "^1.4.1",
|
|
41
|
+
"release-it": "^15.4.1"
|
|
30
42
|
},
|
|
31
43
|
"exports": {
|
|
32
44
|
".": {
|
|
@@ -76,17 +88,5 @@
|
|
|
76
88
|
"katex": "^0.16.0",
|
|
77
89
|
"lowlight": "^2.7.0",
|
|
78
90
|
"tippy.js": "^6.3.7"
|
|
79
|
-
},
|
|
80
|
-
"scripts": {
|
|
81
|
-
"dev": "vite build --watch",
|
|
82
|
-
"build": "vite build",
|
|
83
|
-
"test:unit": "vitest --environment jsdom --run",
|
|
84
|
-
"test:unit:watch": "vitest --environment jsdom --watch",
|
|
85
|
-
"test:unit:ui": "vitest --environment jsdom --watch --ui",
|
|
86
|
-
"test:unit:coverage": "vitest run --environment jsdom --coverage",
|
|
87
|
-
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
|
88
|
-
"lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
|
|
89
|
-
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}'",
|
|
90
|
-
"release": "bumpp"
|
|
91
91
|
}
|
|
92
|
-
}
|
|
92
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Editor, Range } from "@tiptap/vue-3";
|
|
2
|
-
import type { Component } from "vue";
|
|
3
|
-
export interface Item {
|
|
4
|
-
icon: Component;
|
|
5
|
-
title: string;
|
|
6
|
-
keywords: string[];
|
|
7
|
-
command: ({ editor, range }: {
|
|
8
|
-
editor: Editor;
|
|
9
|
-
range: Range;
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: {
|
|
13
|
-
items: ({ query }: {
|
|
14
|
-
query: string;
|
|
15
|
-
}) => Item[];
|
|
16
|
-
render: () => {
|
|
17
|
-
onStart: (props: Record<string, any>) => void;
|
|
18
|
-
onUpdate(props: Record<string, any>): void;
|
|
19
|
-
onKeyDown(props: Record<string, any>): any;
|
|
20
|
-
onExit(): void;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import ExtensionBlockquote from "@tiptap/extension-blockquote";
|
|
2
|
-
import ExtensionBold from "@tiptap/extension-bold";
|
|
3
|
-
import ExtensionBulletList from "@tiptap/extension-bullet-list";
|
|
4
|
-
import ExtensionCode from "@tiptap/extension-code";
|
|
5
|
-
import ExtensionDocument from "@tiptap/extension-document";
|
|
6
|
-
import ExtensionDropcursor from "@tiptap/extension-dropcursor";
|
|
7
|
-
import ExtensionGapcursor from "@tiptap/extension-gapcursor";
|
|
8
|
-
import ExtensionHardBreak from "@tiptap/extension-hard-break";
|
|
9
|
-
import ExtensionHeading from "@tiptap/extension-heading";
|
|
10
|
-
import ExtensionHistory from "@tiptap/extension-history";
|
|
11
|
-
import ExtensionHorizontalRule from "@tiptap/extension-horizontal-rule";
|
|
12
|
-
import ExtensionItalic from "@tiptap/extension-italic";
|
|
13
|
-
import ExtensionListItem from "@tiptap/extension-list-item";
|
|
14
|
-
import ExtensionOrderedList from "@tiptap/extension-ordered-list";
|
|
15
|
-
import ExtensionParagraph from "@tiptap/extension-paragraph";
|
|
16
|
-
import ExtensionStrike from "@tiptap/extension-strike";
|
|
17
|
-
import ExtensionText from "@tiptap/extension-text";
|
|
18
|
-
import ExtensionImage from "@tiptap/extension-image";
|
|
19
|
-
import ExtensionTaskList from "@tiptap/extension-task-list";
|
|
20
|
-
import ExtensionTaskItem from "@tiptap/extension-task-item";
|
|
21
|
-
import ExtensionLink from "@tiptap/extension-link";
|
|
22
|
-
import ExtensionTextAlign from "@tiptap/extension-text-align";
|
|
23
|
-
import ExtensionUnderline from "@tiptap/extension-underline";
|
|
24
|
-
import ExtensionTable from "@tiptap/extension-table";
|
|
25
|
-
import ExtensionTableHeader from "@tiptap/extension-table-header";
|
|
26
|
-
import ExtensionTableCell from "@tiptap/extension-table-cell";
|
|
27
|
-
import ExtensionTableRow from "@tiptap/extension-table-row";
|
|
28
|
-
import ExtensionSubscript from "@tiptap/extension-subscript";
|
|
29
|
-
import ExtensionSuperscript from "@tiptap/extension-superscript";
|
|
30
|
-
import ExtensionPlaceholder from "@tiptap/extension-placeholder";
|
|
31
|
-
import { CommandsSuggestion, ExtensionCommands } from "../extensions/commands-menu";
|
|
32
|
-
import { ExtensionCodeBlock, lowlight } from '../extensions/code-block';
|
|
33
|
-
import { KatexBlock as ExtensionKatexBlock } from "../extensions/katex/index";
|
|
34
|
-
declare const allExtensions: any[];
|
|
35
|
-
export { allExtensions, ExtensionBlockquote, ExtensionBold, ExtensionBulletList, ExtensionCode, ExtensionDocument, ExtensionDropcursor, ExtensionGapcursor, ExtensionHardBreak, ExtensionHeading, ExtensionHistory, ExtensionHorizontalRule, ExtensionItalic, ExtensionListItem, ExtensionOrderedList, ExtensionParagraph, ExtensionStrike, ExtensionText, ExtensionImage, ExtensionTaskList, ExtensionTaskItem, ExtensionLink, ExtensionTextAlign, ExtensionUnderline, ExtensionTable, ExtensionTableHeader, ExtensionTableCell, ExtensionTableRow, ExtensionSubscript, ExtensionSuperscript, ExtensionPlaceholder, ExtensionCommands, CommandsSuggestion, ExtensionCodeBlock, lowlight, ExtensionKatexBlock, };
|
package/dist/index.d.ts
DELETED