Skip to content

Commit

Permalink
Merge branch 'main' into pro
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Oct 3, 2024
2 parents e5f0f60 + b01d1d2 commit 8c86666
Show file tree
Hide file tree
Showing 22 changed files with 80 additions and 61 deletions.
23 changes: 23 additions & 0 deletions BREAKING_CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
For older changelogs, see https://github.com/udecode/plate/blob/main/docs

# 39.0.0

## @udecode/plate-dnd@39.0.0

### Major Changes

- [#3597](https://github.com/udecode/plate/pull/3597) by [@zbeyens](https://github.com/zbeyens) – The following changes were made to improve performance:

- Refactored `useDraggable` hook to focus on core dragging functionality:
- Removed `dropLine`. Use `useDropLine().dropLine` instead.
- Removed `groupProps` from the returned object – `isHovered`, and `setIsHovered` from the returned state. Use CSS instead.
- Removed `droplineProps`, and `gutterLeftProps` from the returned object. Use `useDropLine().props`, `useDraggableGutter().props` instead.

## @udecode/plate-selection@39.0.0

### Major Changes

- [#3597](https://github.com/udecode/plate/pull/3597) by [@zbeyens](https://github.com/zbeyens) – The following changes were made to improve performance:

- Removed `useHooksBlockSelection` in favor of `BlockSelectionAfterEditable`
- Removed `slate-selected` class from `BlockSelectable`. You can do it on your components using `useBlockSelected()` instead, or by using our new `block-selection.tsx` component.
- Introduced `useBlockSelectableStore` for managing selectable state.

# 38.0.1

## @udecode/plate-core@38.0.1
Expand Down
5 changes: 2 additions & 3 deletions apps/www/src/components/setting-checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ export function SettingCheckbox({
settingsStore.set.setCheckedIdNext(id, _checked);
}}
/>
<Label className="flex p-2" htmlFor={id}>
<Label className="flex px-2" htmlFor={id}>
{label}
</Label>
</div>
</TooltipTrigger>

<TooltipContent className="max-w-[200px]">
{description}
</TooltipContent>
Expand Down Expand Up @@ -193,7 +192,7 @@ export function SettingCheckbox({
htmlId={componentHtmlId}
/>

<Label className="flex p-2" htmlFor={componentHtmlId}>
<Label className="flex px-2" htmlFor={componentHtmlId}>
<Code>{componentLabel}</Code>
</Label>
</div>
Expand Down
7 changes: 7 additions & 0 deletions packages/ai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @udecode/plate-ai

## 39.1.0

### Minor Changes

- [#3604](https://github.com/udecode/plate/pull/3604) by [@felixfeng33](https://github.com/felixfeng33) – Release package
4 changes: 2 additions & 2 deletions packages/ai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-ai",
"version": "39.0.0",
"version": "39.1.0",
"description": "Text AI plugin for Plate",
"keywords": [
"plate",
Expand Down Expand Up @@ -52,7 +52,7 @@
"dependencies": {
"@udecode/plate-combobox": "39.0.0",
"@udecode/plate-markdown": "39.0.0",
"@udecode/plate-menu": "39.0.0",
"@udecode/plate-menu": "39.1.0",
"@udecode/plate-selection": "39.0.0",
"lodash": "^4.17.21"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ai/src/react/copilot/generateCopilotText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
isEndPoint,
isExpanded,
} from '@udecode/plate-common';
import debounce from 'lodash/debounce';
import debounce from 'lodash/debounce.js';

import { AIPlugin } from '../ai';
import { CopilotPlugin } from './CopilotPlugin';
Expand Down
2 changes: 2 additions & 0 deletions packages/csv/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @udecode/plate-serializer-csv

## 39.0.1

## 39.0.0

## 38.0.8
Expand Down
4 changes: 2 additions & 2 deletions packages/csv/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-csv",
"version": "39.0.0",
"version": "39.0.1",
"description": "CSV serializer plugin for Plate",
"keywords": [
"csv",
Expand Down Expand Up @@ -46,7 +46,7 @@
"typecheck": "yarn p:typecheck"
},
"dependencies": {
"@udecode/plate-table": "39.0.0",
"@udecode/plate-table": "39.0.1",
"papaparse": "^5.4.1"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/docx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @udecode/plate-docx-serializer

## 39.0.1

## 39.0.0

## 38.0.12
Expand Down
4 changes: 2 additions & 2 deletions packages/docx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-docx",
"version": "39.0.0",
"version": "39.0.1",
"description": "Docx serializer plugin for Plate",
"keywords": [
"docx",
Expand Down Expand Up @@ -50,7 +50,7 @@
"@udecode/plate-indent": "39.0.0",
"@udecode/plate-indent-list": "39.0.0",
"@udecode/plate-media": "39.0.0",
"@udecode/plate-table": "39.0.0",
"@udecode/plate-table": "39.0.1",
"validator": "^13.12.0"
},
"devDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/menu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @udecode/plate-menu

## 39.1.0

### Minor Changes

- [#3604](https://github.com/udecode/plate/pull/3604) by [@felixfeng33](https://github.com/felixfeng33) – Release package
12 changes: 1 addition & 11 deletions packages/menu/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
# Plate list plugin

This package implements the list plugin for Plate.

## Documentation

Check out [List](https://platejs.org/docs/list).

## License

[MIT](../../LICENSE)
WIP
4 changes: 1 addition & 3 deletions packages/menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-menu",
"version": "39.0.0",
"version": "39.1.0",
"description": "Menu for Plate",
"keywords": [
"plate",
Expand Down Expand Up @@ -51,8 +51,6 @@
},
"dependencies": {
"@ariakit/react": "0.4.7",
"@udecode/plate-reset-node": "38.0.1",
"lodash": "^4.17.21",
"match-sorter": "6.3.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/menu/src/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
*/

export * from './useMenu';
export * from './useMenuItem';
export * from './useMenuItem';
2 changes: 2 additions & 0 deletions packages/plate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @udecode/plate

## 39.0.1

## 39.0.0

## 38.0.13
Expand Down
8 changes: 4 additions & 4 deletions packages/plate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate",
"version": "39.0.0",
"version": "39.0.1",
"description": "Plate – a plugin system for slate",
"keywords": [
"contentEditable",
Expand Down Expand Up @@ -66,9 +66,9 @@
"@udecode/plate-combobox": "39.0.0",
"@udecode/plate-comments": "39.0.0",
"@udecode/plate-common": "39.0.0",
"@udecode/plate-csv": "39.0.0",
"@udecode/plate-csv": "39.0.1",
"@udecode/plate-diff": "39.0.0",
"@udecode/plate-docx": "39.0.0",
"@udecode/plate-docx": "39.0.1",
"@udecode/plate-find-replace": "39.0.0",
"@udecode/plate-floating": "39.0.0",
"@udecode/plate-font": "39.0.0",
Expand All @@ -95,7 +95,7 @@
"@udecode/plate-slash-command": "39.0.0",
"@udecode/plate-suggestion": "39.0.0",
"@udecode/plate-tabbable": "39.0.0",
"@udecode/plate-table": "39.0.0",
"@udecode/plate-table": "39.0.1",
"@udecode/plate-toggle": "39.0.0",
"@udecode/plate-trailing-block": "39.0.0"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/table/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @udecode/plate-table

## 39.0.1

### Patch Changes

- [`aa3456425606bc7680f51bc64412e3cb5aaabe8a`](https://github.com/udecode/plate/commit/aa3456425606bc7680f51bc64412e3cb5aaabe8a) by [@zbeyens](https://github.com/zbeyens) – fix lodash imports

## 39.0.0

## 38.0.8
Expand Down
2 changes: 1 addition & 1 deletion packages/table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-table",
"version": "39.0.0",
"version": "39.0.1",
"description": "Table plugin for Plate",
"keywords": [
"plate",
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/lib/merge/insertTableColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
withoutNormalizing,
} from '@udecode/plate-common';
import { getEditorPlugin } from '@udecode/plate-common';
import cloneDeep from 'lodash/cloneDeep';
import cloneDeep from 'lodash/cloneDeep.js';
import { Path } from 'slate';

import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/lib/merge/insertTableRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
setNodes,
withoutNormalizing,
} from '@udecode/plate-common';
import cloneDeep from 'lodash/cloneDeep';
import cloneDeep from 'lodash/cloneDeep.js';
import { Path } from 'slate';

import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/react/merge/deleteColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
someNode,
withoutNormalizing,
} from '@udecode/plate-common';
import cloneDeep from 'lodash/cloneDeep';
import cloneDeep from 'lodash/cloneDeep.js';

import {
type TTableCellElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/react/merge/deleteRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
someNode,
} from '@udecode/plate-common';
import { findNodePath } from '@udecode/plate-common/react';
import cloneDeep from 'lodash/cloneDeep';
import cloneDeep from 'lodash/cloneDeep.js';

import {
type TTableCellElement,
Expand Down
37 changes: 10 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5898,7 +5898,7 @@ __metadata:
dependencies:
"@udecode/plate-combobox": "npm:39.0.0"
"@udecode/plate-markdown": "npm:39.0.0"
"@udecode/plate-menu": "npm:39.0.0"
"@udecode/plate-menu": "npm:39.1.0"
"@udecode/plate-selection": "npm:39.0.0"
lodash: "npm:^4.17.21"
peerDependencies:
Expand Down Expand Up @@ -6167,13 +6167,13 @@ __metadata:
languageName: unknown
linkType: soft

"@udecode/plate-csv@npm:39.0.0, @udecode/plate-csv@workspace:^, @udecode/plate-csv@workspace:packages/csv":
"@udecode/plate-csv@npm:39.0.1, @udecode/plate-csv@workspace:^, @udecode/plate-csv@workspace:packages/csv":
version: 0.0.0-use.local
resolution: "@udecode/plate-csv@workspace:packages/csv"
dependencies:
"@types/papaparse": "npm:^5.3.14"
"@udecode/plate-common": "workspace:^"
"@udecode/plate-table": "npm:39.0.0"
"@udecode/plate-table": "npm:39.0.1"
papaparse: "npm:^5.4.1"
peerDependencies:
"@udecode/plate-common": ">=39.0.0"
Expand Down Expand Up @@ -6256,7 +6256,7 @@ __metadata:
languageName: unknown
linkType: soft

"@udecode/plate-docx@npm:39.0.0, @udecode/plate-docx@workspace:^, @udecode/plate-docx@workspace:packages/docx":
"@udecode/plate-docx@npm:39.0.1, @udecode/plate-docx@workspace:^, @udecode/plate-docx@workspace:packages/docx":
version: 0.0.0-use.local
resolution: "@udecode/plate-docx@workspace:packages/docx"
dependencies:
Expand All @@ -6265,7 +6265,7 @@ __metadata:
"@udecode/plate-indent": "npm:39.0.0"
"@udecode/plate-indent-list": "npm:39.0.0"
"@udecode/plate-media": "npm:39.0.0"
"@udecode/plate-table": "npm:39.0.0"
"@udecode/plate-table": "npm:39.0.1"
validator: "npm:^13.12.0"
peerDependencies:
"@udecode/plate-common": ">=39.0.0"
Expand Down Expand Up @@ -6637,14 +6637,12 @@ __metadata:
languageName: unknown
linkType: soft

"@udecode/plate-menu@npm:39.0.0, @udecode/plate-menu@workspace:^, @udecode/plate-menu@workspace:packages/menu":
"@udecode/plate-menu@npm:39.1.0, @udecode/plate-menu@workspace:^, @udecode/plate-menu@workspace:packages/menu":
version: 0.0.0-use.local
resolution: "@udecode/plate-menu@workspace:packages/menu"
dependencies:
"@ariakit/react": "npm:0.4.7"
"@udecode/plate-common": "workspace:^"
"@udecode/plate-reset-node": "npm:38.0.1"
lodash: "npm:^4.17.21"
match-sorter: "npm:6.3.4"
peerDependencies:
"@udecode/plate-common": ">=39.0.0"
Expand Down Expand Up @@ -6708,21 +6706,6 @@ __metadata:
languageName: unknown
linkType: soft

"@udecode/plate-reset-node@npm:38.0.1":
version: 38.0.1
resolution: "@udecode/plate-reset-node@npm:38.0.1"
peerDependencies:
"@udecode/plate-common": ">=38.0.1"
react: ">=16.8.0"
react-dom: ">=16.8.0"
slate: ">=0.103.0"
slate-history: ">=0.93.0"
slate-hyperscript: ">=0.66.0"
slate-react: ">=0.108.0"
checksum: 10c0/13db73f040d82388b270318f9cfecc60e28e9383e33c1a1cd771bec21348553ceccbe4fd1ddaf58529fe5b6b75cb0b1e11e27cddc3c80cb0bcd187d1bb71fd72
languageName: node
linkType: hard

"@udecode/plate-reset-node@npm:39.0.0, @udecode/plate-reset-node@workspace:^, @udecode/plate-reset-node@workspace:packages/reset-node":
version: 0.0.0-use.local
resolution: "@udecode/plate-reset-node@workspace:packages/reset-node"
Expand Down Expand Up @@ -6840,7 +6823,7 @@ __metadata:
languageName: unknown
linkType: soft

"@udecode/plate-table@npm:39.0.0, @udecode/plate-table@workspace:^, @udecode/plate-table@workspace:packages/table":
"@udecode/plate-table@npm:39.0.1, @udecode/plate-table@workspace:^, @udecode/plate-table@workspace:packages/table":
version: 0.0.0-use.local
resolution: "@udecode/plate-table@workspace:packages/table"
dependencies:
Expand Down Expand Up @@ -6987,9 +6970,9 @@ __metadata:
"@udecode/plate-combobox": "npm:39.0.0"
"@udecode/plate-comments": "npm:39.0.0"
"@udecode/plate-common": "npm:39.0.0"
"@udecode/plate-csv": "npm:39.0.0"
"@udecode/plate-csv": "npm:39.0.1"
"@udecode/plate-diff": "npm:39.0.0"
"@udecode/plate-docx": "npm:39.0.0"
"@udecode/plate-docx": "npm:39.0.1"
"@udecode/plate-find-replace": "npm:39.0.0"
"@udecode/plate-floating": "npm:39.0.0"
"@udecode/plate-font": "npm:39.0.0"
Expand All @@ -7016,7 +6999,7 @@ __metadata:
"@udecode/plate-slash-command": "npm:39.0.0"
"@udecode/plate-suggestion": "npm:39.0.0"
"@udecode/plate-tabbable": "npm:39.0.0"
"@udecode/plate-table": "npm:39.0.0"
"@udecode/plate-table": "npm:39.0.1"
"@udecode/plate-toggle": "npm:39.0.0"
"@udecode/plate-trailing-block": "npm:39.0.0"
peerDependencies:
Expand Down

0 comments on commit 8c86666

Please sign in to comment.