forked from github/plane
updated package name to @plane/editor
This commit is contained in:
parent
3b9c29cfd4
commit
28697e3c0e
@ -1,16 +1,17 @@
|
||||
{
|
||||
"name": "plane-editor",
|
||||
"name": "@plane/editor",
|
||||
"version": "0.0.1",
|
||||
"description": "Rich Text Editor that powers Plane",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"main": "dist/index.js",
|
||||
"source": "src/index.ts",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.mts",
|
||||
"files": [
|
||||
"dist/**/*"
|
||||
"dist"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"types": "./dist/index.d.mts",
|
||||
"import": "./dist/index.mjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
|
@ -59,7 +59,7 @@ const TiptapEditor = ({
|
||||
const editor = useEditor({
|
||||
editable: editable ?? true,
|
||||
editorProps: TiptapEditorProps(workspaceSlug, uploadFile, setIsSubmitting),
|
||||
// @ts-expect-error
|
||||
// @ts-expect-err
|
||||
extensions: TiptapExtensions(workspaceSlug, uploadFile, deleteFile, setIsSubmitting),
|
||||
content: (typeof value === "string" && value.trim() !== "") ? value : "<p></p>",
|
||||
onUpdate: async ({ editor }) => {
|
||||
|
@ -3,11 +3,9 @@
|
||||
"display": "React Library",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"lib": [
|
||||
"DOM"
|
||||
],
|
||||
"jsx": "react-jsx",
|
||||
"lib": ["ES2015", "DOM"],
|
||||
"module": "ESNext",
|
||||
"target": "ES6",
|
||||
"jsx": "react-jsx"
|
||||
"target": "es6"
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ import { useDebouncedCallback } from "use-debounce";
|
||||
import { TextArea } from "components/ui";
|
||||
// types
|
||||
import { IIssue } from "types";
|
||||
import { TiptapEditor } from "plane-editor"
|
||||
import { TiptapEditor } from "@plane/editor"
|
||||
import fileService from "services/file.service";
|
||||
|
||||
export interface IssueDescriptionFormValues {
|
||||
@ -100,7 +100,7 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = ({
|
||||
placeholder="Enter issue name"
|
||||
register={register}
|
||||
onFocus={() => setCharacterLimit(true)}
|
||||
onChange={(e) => {
|
||||
onChange={() => {
|
||||
setCharacterLimit(false);
|
||||
setIsSubmitting("submitting");
|
||||
debouncedTitleSave();
|
||||
|
@ -26,7 +26,7 @@
|
||||
"@nivo/pie": "0.80.0",
|
||||
"@nivo/scatterplot": "0.80.0",
|
||||
"@sentry/nextjs": "^7.36.0",
|
||||
"plane-editor": "*",
|
||||
"@plane/editor": "*",
|
||||
"@tiptap/extension-code-block-lowlight": "^2.0.4",
|
||||
"@tiptap/extension-color": "^2.0.4",
|
||||
"@tiptap/extension-gapcursor": "^2.1.7",
|
||||
|
Loading…
Reference in New Issue
Block a user