2023-10-13 06:35:49 +00:00
|
|
|
{
|
|
|
|
"name": "@plane/editor-core",
|
2024-02-12 14:53:39 +00:00
|
|
|
"version": "0.15.1",
|
2023-10-13 06:35:49 +00:00
|
|
|
"description": "Core Editor that powers Plane",
|
2023-11-06 10:58:15 +00:00
|
|
|
"private": true,
|
2023-10-13 06:35:49 +00:00
|
|
|
"main": "./dist/index.mjs",
|
|
|
|
"module": "./dist/index.mjs",
|
|
|
|
"types": "./dist/index.d.mts",
|
|
|
|
"files": [
|
|
|
|
"dist/**/*"
|
|
|
|
],
|
|
|
|
"exports": {
|
|
|
|
".": {
|
|
|
|
"types": "./dist/index.d.mts",
|
|
|
|
"import": "./dist/index.mjs",
|
|
|
|
"module": "./dist/index.mjs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scripts": {
|
2023-12-07 08:56:17 +00:00
|
|
|
"build": "tsup --minify",
|
2023-10-13 06:35:49 +00:00
|
|
|
"dev": "tsup --watch",
|
2023-11-28 06:04:20 +00:00
|
|
|
"check-types": "tsc --noEmit",
|
|
|
|
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
2023-10-13 06:35:49 +00:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
|
|
|
"next": "12.3.2",
|
2023-11-01 11:06:37 +00:00
|
|
|
"react": "^18.2.0",
|
|
|
|
"react-dom": "18.2.0"
|
2023-10-13 06:35:49 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
[refactor] Editor code refactoring (#3194)
* removed relative imports from editor core
* Update issue widget file paths and imports to use kebab case instead of camel case, to align with coding conventions and improve consistency.
* Update Tiptap core and extensions versions to 2.1.13 and Tiptap React version to 2.1.13. Update Tiptap table imports to use the new location in package @tiptap/pm/tables. Update AlertLabel component to use the new type definition for LucideIcon.
* updated lock file
* removed default exports from editor/core
* fixed injecting css into the core package itself
* seperated css code to have single source of origin wrt to the package
* removed default imports from document editor
* all instances using index as key while mapping fixed
* Update Lite Text Editor package.json to remove @plane/editor-types as a dependency.
Update Lite Text Editor index.ts to update the import of IMentionSuggestion and IMentionHighlight from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/index.tsx to update the import of UploadImage, DeleteImage, IMentionSuggestion, and RestoreImage from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/menus/fixed-menu/index.tsx to update the import of UploadImage from @plane/editor-types to @plane/editor-core.
Update turbo.json to remove @plane/editor-types#build as a dependency for @plane/lite-text-editor#build, @plane/rich-text-editor#build, and @plane/document-editor#build.
* Remove deprecated import and adjust tippy.js usage in the slash-commands.tsx file of the editor extensions package.
* Update dependencies in `rich-text-editor/package.json`, remove `@plane/editor-types` and add `@plane/editor-core` in `rich-text-editor/src/index.ts`, and update imports in `rich-text-editor/src/ui/extensions/index.tsx` and `rich-text-editor/src/ui/index.tsx` to use `@plane/editor-core` instead of `@plane/editor-types`.
* Update package.json dependencies and add new types for image deletion, upload, restore, mention highlight, mention suggestion, and slash command item.
* Update import statements in various files to use the new package "@plane/editor-core" instead of "@plane/editor-types".
* fixed document editor to follow conventions
* Refactor imports in the Rich Text Editor package to use relative paths instead of absolute paths.
- Updated imports in `index.ts`, `ui/index.tsx`, and `ui/menus/bubble-menu/index.tsx` to use relative paths.
- Updated `tsconfig.json` to include the `baseUrl` compiler option and adjust the `include` and `exclude` paths.
* Refactor Lite Text Editor code to use relative import paths instead of absolute import paths.
* Added LucideIconType to the exports in index.ts for use in other files.
Created a new file lucide-icon.ts which contains the type LucideIconType.
Updated the icon type in HeadingOneItem in menu-items/index.tsx to use LucideIconType.
Updated the Icon type in AlertLabel in alert-label.tsx to use LucideIconType.
Updated the Icon type in VerticalDropdownItemProps in vertical-dropdown-menu.tsx to use LucideIconType.
Updated the Icon type in BubbleMenuItem in fixed-menu/index.tsx to use LucideIconType.
Deleted the file tooltip.tsx since it is no longer used.
Updated the Icon type in BubbleMenuItem in bubble-menu/index.tsx to use LucideIconType.
* ♻️ refactor: simplify rendering logic in slash-commands.tsx
The rendering logic in the file "slash-commands.tsx" has been simplified. Previously, the code used inline positioning for the popup, but it has now been removed. Instead of appending the popup to the document body, it is now appended to the element with the ID "tiptap-container". The "flip" option has also been removed. These changes have improved the readability and maintainability of the code.
* fixed build errors caused due to core's internal imports
* regression: fixed pages not saving issue and not duplicating with proper content issue
* build: Update @tiptap dependencies
Updated the @tiptap dependencies in the package.json files of `document-editor`, `extensions`, and `rich-text-editor` packages to version 2.1.13.
* 🚑 fix: Correct appendTo selector in slash-commands.tsx
Update the `appendTo` function call in `slash-commands.tsx` to use the correct selector `#editor-container` instead of `#tiptap-container`. This ensures that the component is appended to the appropriate container in the editor extension.
Note: The commit message assumes that the change is a fix for an issue or error. If it's not a fix, please provide more context so that an appropriate commit type can be determined.
2023-12-21 10:31:38 +00:00
|
|
|
"@tiptap/core": "^2.1.13",
|
2023-12-06 13:47:47 +00:00
|
|
|
"@tiptap/extension-blockquote": "^2.1.13",
|
[refactor] Editor code refactoring (#3194)
* removed relative imports from editor core
* Update issue widget file paths and imports to use kebab case instead of camel case, to align with coding conventions and improve consistency.
* Update Tiptap core and extensions versions to 2.1.13 and Tiptap React version to 2.1.13. Update Tiptap table imports to use the new location in package @tiptap/pm/tables. Update AlertLabel component to use the new type definition for LucideIcon.
* updated lock file
* removed default exports from editor/core
* fixed injecting css into the core package itself
* seperated css code to have single source of origin wrt to the package
* removed default imports from document editor
* all instances using index as key while mapping fixed
* Update Lite Text Editor package.json to remove @plane/editor-types as a dependency.
Update Lite Text Editor index.ts to update the import of IMentionSuggestion and IMentionHighlight from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/index.tsx to update the import of UploadImage, DeleteImage, IMentionSuggestion, and RestoreImage from @plane/editor-types to @plane/editor-core.
Update Lite Text Editor ui/menus/fixed-menu/index.tsx to update the import of UploadImage from @plane/editor-types to @plane/editor-core.
Update turbo.json to remove @plane/editor-types#build as a dependency for @plane/lite-text-editor#build, @plane/rich-text-editor#build, and @plane/document-editor#build.
* Remove deprecated import and adjust tippy.js usage in the slash-commands.tsx file of the editor extensions package.
* Update dependencies in `rich-text-editor/package.json`, remove `@plane/editor-types` and add `@plane/editor-core` in `rich-text-editor/src/index.ts`, and update imports in `rich-text-editor/src/ui/extensions/index.tsx` and `rich-text-editor/src/ui/index.tsx` to use `@plane/editor-core` instead of `@plane/editor-types`.
* Update package.json dependencies and add new types for image deletion, upload, restore, mention highlight, mention suggestion, and slash command item.
* Update import statements in various files to use the new package "@plane/editor-core" instead of "@plane/editor-types".
* fixed document editor to follow conventions
* Refactor imports in the Rich Text Editor package to use relative paths instead of absolute paths.
- Updated imports in `index.ts`, `ui/index.tsx`, and `ui/menus/bubble-menu/index.tsx` to use relative paths.
- Updated `tsconfig.json` to include the `baseUrl` compiler option and adjust the `include` and `exclude` paths.
* Refactor Lite Text Editor code to use relative import paths instead of absolute import paths.
* Added LucideIconType to the exports in index.ts for use in other files.
Created a new file lucide-icon.ts which contains the type LucideIconType.
Updated the icon type in HeadingOneItem in menu-items/index.tsx to use LucideIconType.
Updated the Icon type in AlertLabel in alert-label.tsx to use LucideIconType.
Updated the Icon type in VerticalDropdownItemProps in vertical-dropdown-menu.tsx to use LucideIconType.
Updated the Icon type in BubbleMenuItem in fixed-menu/index.tsx to use LucideIconType.
Deleted the file tooltip.tsx since it is no longer used.
Updated the Icon type in BubbleMenuItem in bubble-menu/index.tsx to use LucideIconType.
* ♻️ refactor: simplify rendering logic in slash-commands.tsx
The rendering logic in the file "slash-commands.tsx" has been simplified. Previously, the code used inline positioning for the popup, but it has now been removed. Instead of appending the popup to the document body, it is now appended to the element with the ID "tiptap-container". The "flip" option has also been removed. These changes have improved the readability and maintainability of the code.
* fixed build errors caused due to core's internal imports
* regression: fixed pages not saving issue and not duplicating with proper content issue
* build: Update @tiptap dependencies
Updated the @tiptap dependencies in the package.json files of `document-editor`, `extensions`, and `rich-text-editor` packages to version 2.1.13.
* 🚑 fix: Correct appendTo selector in slash-commands.tsx
Update the `appendTo` function call in `slash-commands.tsx` to use the correct selector `#editor-container` instead of `#tiptap-container`. This ensures that the component is appended to the appropriate container in the editor extension.
Note: The commit message assumes that the change is a fix for an issue or error. If it's not a fix, please provide more context so that an appropriate commit type can be determined.
2023-12-21 10:31:38 +00:00
|
|
|
"@tiptap/extension-code-block-lowlight": "^2.1.13",
|
|
|
|
"@tiptap/extension-color": "^2.1.13",
|
|
|
|
"@tiptap/extension-image": "^2.1.13",
|
|
|
|
"@tiptap/extension-list-item": "^2.1.13",
|
|
|
|
"@tiptap/extension-mention": "^2.1.13",
|
|
|
|
"@tiptap/extension-task-item": "^2.1.13",
|
|
|
|
"@tiptap/extension-task-list": "^2.1.13",
|
|
|
|
"@tiptap/extension-text-style": "^2.1.13",
|
|
|
|
"@tiptap/extension-underline": "^2.1.13",
|
|
|
|
"@tiptap/pm": "^2.1.13",
|
|
|
|
"@tiptap/react": "^2.1.13",
|
|
|
|
"@tiptap/starter-kit": "^2.1.13",
|
|
|
|
"@tiptap/suggestion": "^2.0.13",
|
2023-10-13 06:35:49 +00:00
|
|
|
"class-variance-authority": "^0.7.0",
|
|
|
|
"clsx": "^1.2.1",
|
2023-11-18 10:50:35 +00:00
|
|
|
"highlight.js": "^11.8.0",
|
2023-11-17 06:59:30 +00:00
|
|
|
"jsx-dom-cjs": "^8.0.3",
|
2024-01-11 12:59:41 +00:00
|
|
|
"linkifyjs": "^4.1.3",
|
2023-11-18 10:50:35 +00:00
|
|
|
"lowlight": "^3.0.0",
|
2023-12-10 12:24:36 +00:00
|
|
|
"lucide-react": "^0.294.0",
|
2023-11-01 11:06:37 +00:00
|
|
|
"react-moveable": "^0.54.2",
|
2023-10-13 06:35:49 +00:00
|
|
|
"tailwind-merge": "^1.14.0",
|
|
|
|
"tippy.js": "^6.3.7",
|
2023-11-27 15:07:40 +00:00
|
|
|
"tiptap-markdown": "^0.8.2"
|
2023-10-13 06:35:49 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-11-27 15:07:40 +00:00
|
|
|
"@types/node": "18.15.3",
|
2023-12-06 14:37:39 +00:00
|
|
|
"@types/react": "^18.2.42",
|
|
|
|
"@types/react-dom": "^18.2.17",
|
2023-12-06 13:47:47 +00:00
|
|
|
"eslint": "^7.32.0",
|
|
|
|
"eslint-config-next": "13.2.4",
|
|
|
|
"postcss": "^8.4.29",
|
2023-10-13 06:35:49 +00:00
|
|
|
"tailwind-config-custom": "*",
|
|
|
|
"tsconfig": "*",
|
|
|
|
"tsup": "^7.2.0",
|
|
|
|
"typescript": "4.9.5"
|
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"editor",
|
|
|
|
"rich-text",
|
|
|
|
"markdown",
|
|
|
|
"nextjs",
|
|
|
|
"react"
|
|
|
|
]
|
2023-12-08 10:40:40 +00:00
|
|
|
}
|