2023-11-20 16:01:12 +00:00
|
|
|
{
|
|
|
|
"name": "@plane/document-editor",
|
2024-05-03 11:53:12 +00:00
|
|
|
"version": "0.19.0",
|
2023-11-20 16:01:12 +00:00
|
|
|
"description": "Package that powers Plane's Pages Editor",
|
|
|
|
"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-11-20 16:01:12 +00:00
|
|
|
"dev": "tsup --watch",
|
2023-11-28 06:04:20 +00:00
|
|
|
"check-types": "tsc --noEmit",
|
|
|
|
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
2023-11-20 16:01:12 +00:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
|
|
|
"next": "12.3.2",
|
|
|
|
"next-themes": "^0.2.1",
|
|
|
|
"react": "^18.2.0",
|
|
|
|
"react-dom": "18.2.0"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2024-01-10 12:48:09 +00:00
|
|
|
"@floating-ui/react": "^0.26.4",
|
2023-11-20 16:01:12 +00:00
|
|
|
"@plane/editor-core": "*",
|
2023-11-27 15:07:40 +00:00
|
|
|
"@plane/editor-extensions": "*",
|
2023-12-07 06:34:21 +00:00
|
|
|
"@plane/ui": "*",
|
2024-01-19 09:48:47 +00:00
|
|
|
"@tippyjs/react": "^4.2.6",
|
[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",
|
2024-05-11 12:46:49 +00:00
|
|
|
"@tiptap/extension-collaboration": "^2.3.2",
|
[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/pm": "^2.1.13",
|
|
|
|
"@tiptap/suggestion": "^2.1.13",
|
2024-05-08 08:31:05 +00:00
|
|
|
"lucide-react": "^0.378.0",
|
2023-12-07 06:34:21 +00:00
|
|
|
"react-popper": "^2.3.0",
|
|
|
|
"tippy.js": "^6.3.7",
|
2024-05-11 12:46:49 +00:00
|
|
|
"uuid": "^9.0.1",
|
|
|
|
"y-indexeddb": "^9.0.12",
|
|
|
|
"y-prosemirror": "^1.2.5",
|
|
|
|
"y-protocols": "^1.0.6",
|
|
|
|
"yjs": "^13.6.15"
|
2023-11-20 16:01:12 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-12-06 14:37:39 +00:00
|
|
|
"@types/node": "18.15.3",
|
|
|
|
"@types/react": "^18.2.42",
|
|
|
|
"@types/react-dom": "^18.2.17",
|
2024-03-06 13:09:14 +00:00
|
|
|
"eslint-config-custom": "*",
|
2023-11-20 16:01:12 +00:00
|
|
|
"postcss": "^8.4.29",
|
|
|
|
"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
|
|
|
}
|