updated package name to @plane/editor

This commit is contained in:
Palanikannan1437 2023-09-20 12:19:35 +05:30
parent 3b9c29cfd4
commit 28697e3c0e
6 changed files with 677 additions and 896 deletions

View File

@ -1,16 +1,17 @@
{ {
"name": "plane-editor", "name": "@plane/editor",
"version": "0.0.1", "version": "0.0.1",
"description": "Rich Text Editor that powers Plane", "description": "Rich Text Editor that powers Plane",
"main": "./dist/index.js", "main": "dist/index.js",
"module": "./dist/index.mjs", "source": "src/index.ts",
"types": "./dist/index.d.ts", "module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [ "files": [
"dist/**/*" "dist"
], ],
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.mts",
"import": "./dist/index.mjs", "import": "./dist/index.mjs",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
"require": "./dist/index.js" "require": "./dist/index.js"

View File

@ -59,7 +59,7 @@ const TiptapEditor = ({
const editor = useEditor({ const editor = useEditor({
editable: editable ?? true, editable: editable ?? true,
editorProps: TiptapEditorProps(workspaceSlug, uploadFile, setIsSubmitting), editorProps: TiptapEditorProps(workspaceSlug, uploadFile, setIsSubmitting),
// @ts-expect-error // @ts-expect-err
extensions: TiptapExtensions(workspaceSlug, uploadFile, deleteFile, setIsSubmitting), extensions: TiptapExtensions(workspaceSlug, uploadFile, deleteFile, setIsSubmitting),
content: (typeof value === "string" && value.trim() !== "") ? value : "<p></p>", content: (typeof value === "string" && value.trim() !== "") ? value : "<p></p>",
onUpdate: async ({ editor }) => { onUpdate: async ({ editor }) => {

View File

@ -3,11 +3,9 @@
"display": "React Library", "display": "React Library",
"extends": "./base.json", "extends": "./base.json",
"compilerOptions": { "compilerOptions": {
"lib": [ "jsx": "react-jsx",
"DOM" "lib": ["ES2015", "DOM"],
],
"module": "ESNext", "module": "ESNext",
"target": "ES6", "target": "es6"
"jsx": "react-jsx"
} }
} }

View File

@ -9,7 +9,7 @@ import { useDebouncedCallback } from "use-debounce";
import { TextArea } from "components/ui"; import { TextArea } from "components/ui";
// types // types
import { IIssue } from "types"; import { IIssue } from "types";
import { TiptapEditor } from "plane-editor" import { TiptapEditor } from "@plane/editor"
import fileService from "services/file.service"; import fileService from "services/file.service";
export interface IssueDescriptionFormValues { export interface IssueDescriptionFormValues {
@ -100,7 +100,7 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = ({
placeholder="Enter issue name" placeholder="Enter issue name"
register={register} register={register}
onFocus={() => setCharacterLimit(true)} onFocus={() => setCharacterLimit(true)}
onChange={(e) => { onChange={() => {
setCharacterLimit(false); setCharacterLimit(false);
setIsSubmitting("submitting"); setIsSubmitting("submitting");
debouncedTitleSave(); debouncedTitleSave();

View File

@ -26,7 +26,7 @@
"@nivo/pie": "0.80.0", "@nivo/pie": "0.80.0",
"@nivo/scatterplot": "0.80.0", "@nivo/scatterplot": "0.80.0",
"@sentry/nextjs": "^7.36.0", "@sentry/nextjs": "^7.36.0",
"plane-editor": "*", "@plane/editor": "*",
"@tiptap/extension-code-block-lowlight": "^2.0.4", "@tiptap/extension-code-block-lowlight": "^2.0.4",
"@tiptap/extension-color": "^2.0.4", "@tiptap/extension-color": "^2.0.4",
"@tiptap/extension-gapcursor": "^2.1.7", "@tiptap/extension-gapcursor": "^2.1.7",

1544
yarn.lock

File diff suppressed because it is too large Load Diff