Skip to content

Commit

Permalink
Merge branch 'main' into feature/table-cell-background-color
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hertling committed Feb 16, 2025
2 parents 789704c + 6b838e0 commit 43ac87c
Show file tree
Hide file tree
Showing 1,678 changed files with 30,208 additions and 32,569 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions .cursor/rules/mdx.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
description: Codeblocks in mdx files
globs: *.mdx
---
- for mdx output, always use `` instead of ``` EXCEPT for the start and end of the file
5 changes: 4 additions & 1 deletion .cursorrules → .cursor/rules/react-components.mdc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
- for mdx output, always use `` instead of ``` EXCEPT for the start and end of the file
---
description: React components
globs: *.tsx
---
- components: always export function, never export default except pages and layout, never type React.FC, use props inline type.
File renamed without changes.
File renamed without changes.
127 changes: 0 additions & 127 deletions .eslintrc.cjs

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/sync-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
paths:
- '.github/actions/**'
- '.github/workflows/sync-templates.yml'
- 'scripts/sync-templates.sh'
- 'tooling/scripts/sync-templates.sh'
- 'templates/**'

jobs:
Expand Down Expand Up @@ -71,5 +71,5 @@ jobs:
- name: 🔄 Sync Templates
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
run: ./scripts/sync-templates.sh "templates/${{ matrix.template }}"
run: ./tooling/scripts/sync-templates.sh "templates/${{ matrix.template }}"
shell: bash
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**/dist
**/node_modules
**/.next
**/build
**/index.ts
**/*.mdx
**/__tests__/**/*.html
**/.contentlayer
**/__registry__
925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.4.1.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
compressionLevel: 0

defaultSemverRangePrefix: ""
defaultSemverRangePrefix: ''

enableGlobalCache: false

nmMode: hardlinks-local

nodeLinker: node-modules

npmRegistryServer: "https://registry.npmjs.org/"
npmRegistryServer: 'https://registry.npmjs.org/'

supportedArchitectures:
cpu:
Expand All @@ -18,4 +18,4 @@ supportedArchitectures:
os:
- current

yarnPath: .yarn/releases/yarn-4.4.1.cjs
yarnPath: .yarn/releases/yarn-4.6.0.cjs
78 changes: 77 additions & 1 deletion BREAKING_CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,80 @@
For older changelogs, see https://github.com/udecode/plate/blob/main/docs
For older changelogs, see https://github.com/udecode/plate/blob/main/tooling

# 44.0.1

## @udecode/plate-core@44.0.0

### Major Changes

- [#4048](https://github.com/udecode/plate/pull/4048) by [@zbeyens](https://github.com/zbeyens)

- Support React 19
- Upgraded to `zustand-x@6`
- `eventEditorSelectors` -> `EventEditorStore.get`
- `eventEditorActions` -> `EventEditorStore.set`
- `useEventEditorSelectors` -> `useEventEditorValue(key)`
- Upgraded to `jotai-x@2`
- `usePlateEditorStore` -> `usePlateStore`
- `usePlateActions` -> `usePlateSet`
- Remove `editor.setPlateState`, use `usePlateSet` instead
- `usePlateSelectors` -> `usePlateValue`
- `usePlateStates` -> `usePlateState`
- Moving plugin options hooks into standalone hooks to be compatible with React Compiler
- `editor.useOption`, `ctx.useOption` -> `usePluginOption(plugin, key, ...args)`
- `editor.useOptions`, `ctx.useOptions` -> `usePluginOption(plugin, 'state')`
- New hook `usePluginOptions(plugin, selector)` to select plugin options (Zustand way).
- We were supporting adding selectors to plugins using `extendOptions`. Those were mixed up with the options state, leading to potential conflicts and confusion.
- The plugin method is renamed to `extendSelectors`
- Selectors are now internally stored in `plugin.selectors` instead of `plugin.options`, but this does not change how you access those: using `editor.getOption(plugin, 'selectorName')`, `ctx.getOption('selectorName')` or above hooks.
- Selector types are no longer in the 2nd generic type of `PluginConfig`, we're adding a 5th generic type for it.

```ts
// Before:
export type BlockSelectionConfig = PluginConfig<
'blockSelection',
{ selectedIds?: Set<string>; } & BlockSelectionSelectors,
>;

// After:
export type BlockSelectionConfig = PluginConfig<
'blockSelection',
{ selectedIds?: Set<string>; },
{}, // API
{}, // Transforms
BlockSelectionSelectors, // Selectors
}>
```
## @udecode/plate-comments@44.0.0
### Major Changes
- [#4048](https://github.com/udecode/plate/pull/4048) by [@zbeyens](https://github.com/zbeyens) – Upgrade to `jotai-x@2`. [Migration](https://github.com/udecode/jotai-x/blob/main/packages/jotai-x/CHANGELOG.md#211) needed only if you use `useCommentStore`
## @udecode/plate-media@44.0.0
### Major Changes
- [#4048](https://github.com/udecode/plate/pull/4048) by [@zbeyens](https://github.com/zbeyens) – Upgrade to `zustand-x@2`. [Migration](https://github.com/udecode/zustand-x/blob/main/packages/zustand-x/CHANGELOG.md#600) needed only if you use one of these stores:
- `ImagePreviewStore`
- `FloatingMediaStore`
- [#4048](https://github.com/udecode/plate/pull/4048) by [@zbeyens](https://github.com/zbeyens) – Upgrade to `jotai-x@2`. [Migration](https://github.com/udecode/jotai-x/blob/main/packages/jotai-x/CHANGELOG.md#211) needed only if you use `usePlaceholderStore`
## @udecode/plate-resizable@44.0.0
### Major Changes
- [#4048](https://github.com/udecode/plate/pull/4048) by [@zbeyens](https://github.com/zbeyens) – Upgrade to `jotai-x@2`. [Migration](https://github.com/udecode/jotai-x/blob/main/packages/jotai-x/CHANGELOG.md#211) needed only if you use `useResizableStore`
## @udecode/plate-table@44.0.0
### Major Changes
- [#4048](https://github.com/udecode/plate/pull/4048) by [@zbeyens](https://github.com/zbeyens) – Move store state `selectedCells` and `selectedTables` from `useTableStore` to `TablePlugin` options store. This fixes the issue to get access to those state outside a table element (e.g. the toolbar)
- [#4048](https://github.com/udecode/plate/pull/4048) by [@zbeyens](https://github.com/zbeyens) – Upgrade to `jotai-x@2`. [Migration](https://github.com/udecode/jotai-x/blob/main/packages/jotai-x/CHANGELOG.md#211) needed only if you use `useTableStore`
# 43.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ You can learn more about Plate by checking out our [documentation](https://plate

## Contributing

To get started, check out our [contributing guide](CONTRIBUTING.md).
To get started, check out our [contributing guide](tooling/CONTRIBUTING.md).

### Contributors

Expand Down
5 changes: 0 additions & 5 deletions apps/www/.prettierignore

This file was deleted.

Loading

0 comments on commit 43ac87c

Please sign in to comment.