From 22eb74ad18dc1fb766e0d6028c51b37d5c11bb21 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Tue, 9 Jan 2024 17:57:41 +0100 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=90=9B=20merge=20empty=20cells?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/table/src/merge/mergeTableCells.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/table/src/merge/mergeTableCells.ts b/packages/table/src/merge/mergeTableCells.ts index fd9be85244..2a32f5630b 100644 --- a/packages/table/src/merge/mergeTableCells.ts +++ b/packages/table/src/merge/mergeTableCells.ts @@ -4,6 +4,7 @@ import { getPluginOptions, getPluginType, insertElements, + isElementEmpty, PlateEditor, removeNodes, Value, @@ -72,7 +73,12 @@ export const mergeTableCells = ( const contents = []; for (const cellEntry of cellEntries) { const [el] = cellEntry; - contents.push(...cloneDeep(el.children)); + if ( + el.children.length !== 1 || + !isElementEmpty(editor, el.children[0] as any) + ) { + contents.push(...cloneDeep(el.children)); + } } // Create a hash map where keys are col paths, From f0b49a5b883a7f7a7052d98d919054d6b0b83b28 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Tue, 9 Jan 2024 17:58:12 +0100 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=90=9B=20handle=20editor.selection=20?= =?UTF-8?q?=3D=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../indent-list/src/hooks/someIndentList.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/indent-list/src/hooks/someIndentList.ts b/packages/indent-list/src/hooks/someIndentList.ts index 0fead09f46..9067d2736e 100644 --- a/packages/indent-list/src/hooks/someIndentList.ts +++ b/packages/indent-list/src/hooks/someIndentList.ts @@ -6,11 +6,14 @@ export const someIndentList = ( editor: PlateEditor, type: string ) => { - return someNode(editor, { - match: (n) => { - const list = n[KEY_LIST_STYLE_TYPE]; - if (type === ListStyleType.Disc) return list === ListStyleType.Disc; - return !!list && list !== ListStyleType.Disc; - }, - }); + return ( + editor.selection && + someNode(editor, { + match: (n) => { + const list = n[KEY_LIST_STYLE_TYPE]; + if (type === ListStyleType.Disc) return list === ListStyleType.Disc; + return !!list && list !== ListStyleType.Disc; + }, + }) + ); }; From 8a3b16799c652e70a526be2c4560ff12d8627f4d Mon Sep 17 00:00:00 2001 From: zbeyens Date: Tue, 9 Jan 2024 18:00:04 +0100 Subject: [PATCH 3/4] =?UTF-8?q?=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/nervous-baboons-sparkle.md | 5 + .changeset/olive-rats-share.md | 5 + .../www/content/docs/components/changelog.mdx | 10 + apps/www/content/docs/components/toggle.mdx | 58 ---- apps/www/content/docs/components/toolbar.mdx | 1 - apps/www/src/__registry__/index.tsx | 7 - apps/www/src/components/command-menu.tsx | 2 +- apps/www/src/components/settings-toggle.tsx | 2 +- .../plate-ui => components/ui}/toggle.tsx | 2 +- apps/www/src/config/customizer-components.ts | 1 - apps/www/src/config/docs.ts | 1 - .../src/lib/plate/demo/values/tableValue.tsx | 4 +- .../default/plate-ui/color-dropdown-menu.tsx | 9 +- .../src/registry/default/plate-ui/toolbar.tsx | 128 ++++---- .../src/registry/default/plate-ui/tooltip.tsx | 45 +++ apps/www/src/registry/registry.ts | 9 +- .../src/components/plate-ui/tooltip.tsx | 45 +++ .../src/components/plate-ui/tooltip.tsx | 45 +++ yarn.lock | 310 +++++++++--------- 19 files changed, 387 insertions(+), 302 deletions(-) create mode 100644 .changeset/nervous-baboons-sparkle.md create mode 100644 .changeset/olive-rats-share.md delete mode 100644 apps/www/content/docs/components/toggle.mdx rename apps/www/src/{registry/default/plate-ui => components/ui}/toggle.tsx (97%) diff --git a/.changeset/nervous-baboons-sparkle.md b/.changeset/nervous-baboons-sparkle.md new file mode 100644 index 0000000000..9aa42b7c81 --- /dev/null +++ b/.changeset/nervous-baboons-sparkle.md @@ -0,0 +1,5 @@ +--- +"@udecode/plate-table": patch +--- + +Fix: merging empty cells should result into a single empty paragraph diff --git a/.changeset/olive-rats-share.md b/.changeset/olive-rats-share.md new file mode 100644 index 0000000000..a785e094ca --- /dev/null +++ b/.changeset/olive-rats-share.md @@ -0,0 +1,5 @@ +--- +"@udecode/plate-indent-list": patch +--- + +fix someIndentList: handle the case when editor.selection is null diff --git a/apps/www/content/docs/components/changelog.mdx b/apps/www/content/docs/components/changelog.mdx index 2b278fd8ed..41cc8f812d 100644 --- a/apps/www/content/docs/components/changelog.mdx +++ b/apps/www/content/docs/components/changelog.mdx @@ -10,6 +10,16 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver ## January 2024 #7 +### January 9 #7.3 + +- `toolbar` + - `Toolbar`: replace `items-stretch` with `items-center` + - use `toolbarButtonVariants` instead of `toggleVariants` + - fix `value` prop type bug + - uses now `withTooltip`, so replace `[data-state=on]` with `aria-checked` to avoid conflicts +- `toggle`: removed as unused +- `tooltip`: add `withTooltip`, which is used by `ToolbarButton` + ### January 8 #7.2 - `table-element` - TableProvider must now be rendered above TableElement diff --git a/apps/www/content/docs/components/toggle.mdx b/apps/www/content/docs/components/toggle.mdx deleted file mode 100644 index 705373600c..0000000000 --- a/apps/www/content/docs/components/toggle.mdx +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: Toggle -description: Enable or disable a specific feature or functionality with a toggle switch. -component: true -links: - doc: https://ui.shadcn.com/docs/components/toggle - api: https://www.radix-ui.com/docs/primitives/components/toggle#api-reference ---- - -## Installation - - - - -CLI -Manual - - - -```bash -npx @udecode/plate-ui@latest add toggle -``` - - - - - - - - - -Install the `@radix-ui/react-toggle` component from radix-ui: - -```bash -npm install @radix-ui/react-toggle -``` - - - - - -Copy and paste the following code into your project. - - - - - - - -Update the import paths to match your project setup. - - - - - - - - diff --git a/apps/www/content/docs/components/toolbar.mdx b/apps/www/content/docs/components/toolbar.mdx index dbfdf317d0..347127edba 100644 --- a/apps/www/content/docs/components/toolbar.mdx +++ b/apps/www/content/docs/components/toolbar.mdx @@ -37,7 +37,6 @@ npm install @radix-ui/react-toolbar - [Separator](/docs/components/separator) - [Tooltip](/docs/components/tooltip) -- [Toggle](/docs/components/toggle) diff --git a/apps/www/src/__registry__/index.tsx b/apps/www/src/__registry__/index.tsx index 9d95513583..cc7a2177f6 100644 --- a/apps/www/src/__registry__/index.tsx +++ b/apps/www/src/__registry__/index.tsx @@ -641,13 +641,6 @@ export const Index: Record = { files: ['registry/default/plate-ui/todo-list-element.tsx'], component: React.lazy(() => import('@/registry/default/plate-ui/todo-list-element')), }, - 'toggle': { - name: 'toggle', - type: 'components:plate-ui', - registryDependencies: [], - files: ['registry/default/plate-ui/toggle.tsx'], - component: React.lazy(() => import('@/registry/default/plate-ui/toggle')), - }, 'toolbar': { name: 'toolbar', type: 'components:plate-ui', diff --git a/apps/www/src/components/command-menu.tsx b/apps/www/src/components/command-menu.tsx index 263e5459a4..53c8f497c0 100644 --- a/apps/www/src/components/command-menu.tsx +++ b/apps/www/src/components/command-menu.tsx @@ -85,7 +85,7 @@ export function CommandMenuGroup({ item={navItem} runCommand={runCommand} > - {navItem.items?.map((item) => { + {navItem?.items?.map((item) => { return ( ( - Yes + - No + No diff --git a/apps/www/src/registry/default/plate-ui/color-dropdown-menu.tsx b/apps/www/src/registry/default/plate-ui/color-dropdown-menu.tsx index ae3e654aff..510d07cebe 100644 --- a/apps/www/src/registry/default/plate-ui/color-dropdown-menu.tsx +++ b/apps/www/src/registry/default/plate-ui/color-dropdown-menu.tsx @@ -7,15 +7,14 @@ import { useColorDropdownMenuState, } from '@udecode/plate-font'; +import { DEFAULT_COLORS, DEFAULT_CUSTOM_COLORS } from './color-constants'; +import { ColorPicker } from './color-picker'; import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, -} from '@/registry/default/plate-ui/dropdown-menu'; -import { ToolbarButton } from '@/registry/default/plate-ui/toolbar'; - -import { DEFAULT_COLORS, DEFAULT_CUSTOM_COLORS } from './color-constants'; -import { ColorPicker } from './color-picker'; +} from './dropdown-menu'; +import { ToolbarButton } from './toolbar'; export type TColor = { name: string; diff --git a/apps/www/src/registry/default/plate-ui/toolbar.tsx b/apps/www/src/registry/default/plate-ui/toolbar.tsx index 5f25a81e93..7d4145546c 100644 --- a/apps/www/src/registry/default/plate-ui/toolbar.tsx +++ b/apps/www/src/registry/default/plate-ui/toolbar.tsx @@ -1,24 +1,18 @@ 'use client'; import * as React from 'react'; -import { ComponentPropsWithoutRef, ReactNode } from 'react'; import * as ToolbarPrimitive from '@radix-ui/react-toolbar'; import { cn, withCn, withRef, withVariants } from '@udecode/cn'; +import { cva, VariantProps } from 'class-variance-authority'; import { Icons } from '@/components/icons'; import { Separator } from './separator'; -import { Toggle, toggleVariants } from './toggle'; -import { - Tooltip, - TooltipContent, - TooltipPortal, - TooltipTrigger, -} from './tooltip'; +import { withTooltip } from './tooltip'; export const Toolbar = withCn( ToolbarPrimitive.Root, - 'relative flex select-none items-stretch gap-1 bg-background' + 'relative flex select-none items-center gap-1 bg-background' ); export const ToolbarToggleGroup = withCn( @@ -36,42 +30,59 @@ export const ToolbarSeparator = withCn( 'my-1 w-[1px] shrink-0 bg-border' ); -export const ToolbarButton = withRef< - typeof ToolbarPrimitive.Button, - Omit, 'type'> & { - buttonType?: 'button' | 'toggle'; - pressed?: boolean; - tooltip?: ReactNode; - isDropdown?: boolean; - } ->( - ( - { - className, - variant, - size = 'sm', - isDropdown, - children, - pressed, - value, - tooltip, - ...props +const toolbarButtonVariants = cva( + cn( + 'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50', + '[&_svg:not([data-icon])]:h-5 [&_svg:not([data-icon])]:w-5' + ), + { + variants: { + variant: { + default: + 'bg-transparent hover:bg-muted hover:text-muted-foreground aria-checked:bg-accent aria-checked:text-accent-foreground', + outline: + 'border border-input bg-transparent hover:bg-accent hover:text-accent-foreground', + }, + size: { + default: 'h-10 px-3', + sm: 'h-9 px-2', + lg: 'h-11 px-5', + }, }, - ref - ) => { - const [isLoaded, setIsLoaded] = React.useState(false); - - React.useEffect(() => { - setIsLoaded(true); - }, []); + defaultVariants: { + variant: 'default', + size: 'sm', + }, + } +); - const content = - typeof pressed === 'boolean' ? ( - +const ToolbarButton = withTooltip( + // eslint-disable-next-line react/display-name + React.forwardRef< + React.ElementRef, + Omit< + React.ComponentPropsWithoutRef, + 'asChild' | 'value' + > & + VariantProps & { + pressed?: boolean; + isDropdown?: boolean; + } + >( + ( + { className, variant, size, isDropdown, children, pressed, ...props }, + ref + ) => { + return typeof pressed === 'boolean' ? ( + -
{children}
-
- {isDropdown && ( - - )} -
+ {isDropdown ? ( + <> +
{children}
+
+ +
+ + ) : ( + children + )}
) : ( ); - - return isLoaded && tooltip ? ( - - {content} - - - {tooltip} - - - ) : ( - <>{content} - ); - } + } + ) ); +ToolbarButton.displayName = 'ToolbarButton'; +export { ToolbarButton }; export const ToolbarToggleItem = withVariants( ToolbarPrimitive.ToggleItem, - toggleVariants, + toolbarButtonVariants, ['variant', 'size'] ); diff --git a/apps/www/src/registry/default/plate-ui/tooltip.tsx b/apps/www/src/registry/default/plate-ui/tooltip.tsx index e18f1d19a3..b872ea03ec 100644 --- a/apps/www/src/registry/default/plate-ui/tooltip.tsx +++ b/apps/www/src/registry/default/plate-ui/tooltip.tsx @@ -1,5 +1,6 @@ 'use client'; +import React from 'react'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { withCn, withProps } from '@udecode/cn'; @@ -14,3 +15,47 @@ export const TooltipContent = withCn( }), 'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md' ); + +export function withTooltip< + T extends React.ComponentType | keyof HTMLElementTagNameMap, +>(Component: T) { + return React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & { + tooltip?: React.ReactNode; + tooltipContentProps?: Omit< + React.ComponentPropsWithoutRef, + 'children' + >; + tooltipProps?: Omit< + React.ComponentPropsWithoutRef, + 'children' + >; + } + >(function ExtendComponent( + { tooltip, tooltipContentProps, tooltipProps, ...props }, + ref + ) { + const [mounted, setMounted] = React.useState(false); + + React.useEffect(() => { + setMounted(true); + }, []); + + const component = ; + + if (tooltip && mounted) { + return ( + + {component} + + + {tooltip} + + + ); + } + + return component; + }); +} diff --git a/apps/www/src/registry/registry.ts b/apps/www/src/registry/registry.ts index af5cd2795c..23afc93bcc 100644 --- a/apps/www/src/registry/registry.ts +++ b/apps/www/src/registry/registry.ts @@ -521,18 +521,11 @@ const ui: Registry = [ registryDependencies: ['checkbox'], files: ['plate-ui/todo-list-element.tsx'], }, - { - name: 'toggle', - type: 'components:plate-ui', - dependencies: ['@radix-ui/react-toggle'], - registryDependencies: [], - files: ['plate-ui/toggle.tsx'], - }, { name: 'toolbar', type: 'components:plate-ui', dependencies: ['@radix-ui/react-toolbar'], - registryDependencies: ['tooltip', 'toggle', 'separator'], + registryDependencies: ['tooltip', 'separator'], files: ['plate-ui/toolbar.tsx'], }, { diff --git a/templates/plate-playground-template/src/components/plate-ui/tooltip.tsx b/templates/plate-playground-template/src/components/plate-ui/tooltip.tsx index e18f1d19a3..b872ea03ec 100644 --- a/templates/plate-playground-template/src/components/plate-ui/tooltip.tsx +++ b/templates/plate-playground-template/src/components/plate-ui/tooltip.tsx @@ -1,5 +1,6 @@ 'use client'; +import React from 'react'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { withCn, withProps } from '@udecode/cn'; @@ -14,3 +15,47 @@ export const TooltipContent = withCn( }), 'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md' ); + +export function withTooltip< + T extends React.ComponentType | keyof HTMLElementTagNameMap, +>(Component: T) { + return React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & { + tooltip?: React.ReactNode; + tooltipContentProps?: Omit< + React.ComponentPropsWithoutRef, + 'children' + >; + tooltipProps?: Omit< + React.ComponentPropsWithoutRef, + 'children' + >; + } + >(function ExtendComponent( + { tooltip, tooltipContentProps, tooltipProps, ...props }, + ref + ) { + const [mounted, setMounted] = React.useState(false); + + React.useEffect(() => { + setMounted(true); + }, []); + + const component = ; + + if (tooltip && mounted) { + return ( + + {component} + + + {tooltip} + + + ); + } + + return component; + }); +} diff --git a/templates/plate-template/src/components/plate-ui/tooltip.tsx b/templates/plate-template/src/components/plate-ui/tooltip.tsx index e18f1d19a3..b872ea03ec 100644 --- a/templates/plate-template/src/components/plate-ui/tooltip.tsx +++ b/templates/plate-template/src/components/plate-ui/tooltip.tsx @@ -1,5 +1,6 @@ 'use client'; +import React from 'react'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { withCn, withProps } from '@udecode/cn'; @@ -14,3 +15,47 @@ export const TooltipContent = withCn( }), 'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md' ); + +export function withTooltip< + T extends React.ComponentType | keyof HTMLElementTagNameMap, +>(Component: T) { + return React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & { + tooltip?: React.ReactNode; + tooltipContentProps?: Omit< + React.ComponentPropsWithoutRef, + 'children' + >; + tooltipProps?: Omit< + React.ComponentPropsWithoutRef, + 'children' + >; + } + >(function ExtendComponent( + { tooltip, tooltipContentProps, tooltipProps, ...props }, + ref + ) { + const [mounted, setMounted] = React.useState(false); + + React.useEffect(() => { + setMounted(true); + }, []); + + const component = ; + + if (tooltip && mounted) { + return ( + + {component} + + + {tooltip} + + + ); + } + + return component; + }); +} diff --git a/yarn.lock b/yarn.lock index 5ffe47bdf0..a9d115f9ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6159,11 +6159,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-alignment@npm:29.1.0, @udecode/plate-alignment@workspace:^, @udecode/plate-alignment@workspace:packages/alignment": +"@udecode/plate-alignment@npm:30.0.0, @udecode/plate-alignment@workspace:^, @udecode/plate-alignment@workspace:packages/alignment": version: 0.0.0-use.local resolution: "@udecode/plate-alignment@workspace:packages/alignment" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6174,11 +6174,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-autoformat@npm:29.1.0, @udecode/plate-autoformat@workspace:^, @udecode/plate-autoformat@workspace:packages/autoformat": +"@udecode/plate-autoformat@npm:30.0.0, @udecode/plate-autoformat@workspace:^, @udecode/plate-autoformat@workspace:packages/autoformat": version: 0.0.0-use.local resolution: "@udecode/plate-autoformat@workspace:packages/autoformat" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -6190,15 +6190,15 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-basic-elements@npm:29.1.0, @udecode/plate-basic-elements@workspace:^, @udecode/plate-basic-elements@workspace:packages/basic-elements": +"@udecode/plate-basic-elements@npm:30.0.0, @udecode/plate-basic-elements@workspace:^, @udecode/plate-basic-elements@workspace:packages/basic-elements": version: 0.0.0-use.local resolution: "@udecode/plate-basic-elements@workspace:packages/basic-elements" dependencies: - "@udecode/plate-block-quote": "npm:29.1.0" - "@udecode/plate-code-block": "npm:29.1.0" - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-heading": "npm:29.1.0" - "@udecode/plate-paragraph": "npm:29.1.0" + "@udecode/plate-block-quote": "npm:30.0.0" + "@udecode/plate-code-block": "npm:30.0.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-heading": "npm:30.0.0" + "@udecode/plate-paragraph": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6209,11 +6209,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-basic-marks@npm:29.1.0, @udecode/plate-basic-marks@workspace:^, @udecode/plate-basic-marks@workspace:packages/basic-marks": +"@udecode/plate-basic-marks@npm:30.0.0, @udecode/plate-basic-marks@workspace:^, @udecode/plate-basic-marks@workspace:packages/basic-marks": version: 0.0.0-use.local resolution: "@udecode/plate-basic-marks@workspace:packages/basic-marks" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6224,11 +6224,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-block-quote@npm:29.1.0, @udecode/plate-block-quote@workspace:^, @udecode/plate-block-quote@workspace:packages/block-quote": +"@udecode/plate-block-quote@npm:30.0.0, @udecode/plate-block-quote@workspace:^, @udecode/plate-block-quote@workspace:packages/block-quote": version: 0.0.0-use.local resolution: "@udecode/plate-block-quote@workspace:packages/block-quote" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6239,11 +6239,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-break@npm:29.1.0, @udecode/plate-break@workspace:^, @udecode/plate-break@workspace:packages/break": +"@udecode/plate-break@npm:30.0.0, @udecode/plate-break@workspace:^, @udecode/plate-break@workspace:packages/break": version: 0.0.0-use.local resolution: "@udecode/plate-break@workspace:packages/break" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6258,7 +6258,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-caption@workspace:packages/caption" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" react-textarea-autosize: "npm:^8.5.2" peerDependencies: react: ">=16.8.0" @@ -6275,7 +6275,7 @@ __metadata: resolution: "@udecode/plate-cloud@workspace:packages/cloud" dependencies: "@portive/client": "npm:10.0.3" - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" delay: "npm:5.0.0" p-defer: "npm:^3.0.0" peerDependencies: @@ -6288,11 +6288,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-code-block@npm:29.1.0, @udecode/plate-code-block@workspace:^, @udecode/plate-code-block@workspace:packages/code-block": +"@udecode/plate-code-block@npm:30.0.0, @udecode/plate-code-block@workspace:^, @udecode/plate-code-block@workspace:packages/code-block": version: 0.0.0-use.local resolution: "@udecode/plate-code-block@workspace:packages/code-block" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" prismjs: "npm:^1.29.0" peerDependencies: react: ">=16.8.0" @@ -6304,11 +6304,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-combobox@npm:29.1.0, @udecode/plate-combobox@workspace:^, @udecode/plate-combobox@workspace:packages/combobox": +"@udecode/plate-combobox@npm:30.0.0, @udecode/plate-combobox@workspace:^, @udecode/plate-combobox@workspace:packages/combobox": version: 0.0.0-use.local resolution: "@udecode/plate-combobox@workspace:packages/combobox" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" downshift: "npm:^6.1.12" peerDependencies: react: ">=16.8.0" @@ -6320,11 +6320,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-comments@npm:29.1.0, @udecode/plate-comments@workspace:^, @udecode/plate-comments@workspace:packages/comments": +"@udecode/plate-comments@npm:30.0.0, @udecode/plate-comments@workspace:^, @udecode/plate-comments@workspace:packages/comments": version: 0.0.0-use.local resolution: "@udecode/plate-comments@workspace:packages/comments" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -6336,12 +6336,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-common@npm:29.1.0, @udecode/plate-common@workspace:^, @udecode/plate-common@workspace:packages/common": +"@udecode/plate-common@npm:30.0.0, @udecode/plate-common@workspace:^, @udecode/plate-common@workspace:packages/common": version: 0.0.0-use.local resolution: "@udecode/plate-common@workspace:packages/common" dependencies: - "@udecode/plate-core": "npm:29.1.0" - "@udecode/plate-utils": "npm:29.1.0" + "@udecode/plate-core": "npm:30.0.0" + "@udecode/plate-utils": "npm:30.0.0" "@udecode/react-utils": "npm:29.0.1" "@udecode/slate": "npm:25.0.0" "@udecode/slate-react": "npm:29.0.1" @@ -6357,7 +6357,7 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-core@npm:29.1.0, @udecode/plate-core@workspace:^, @udecode/plate-core@workspace:packages/core": +"@udecode/plate-core@npm:30.0.0, @udecode/plate-core@workspace:^, @udecode/plate-core@workspace:packages/core": version: 0.0.0-use.local resolution: "@udecode/plate-core@workspace:packages/core" dependencies: @@ -6391,7 +6391,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-cursor@workspace:packages/cursor" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6406,7 +6406,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-dnd@workspace:packages/dnd" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" lodash: "npm:^4.17.21" raf: "npm:^3.4.1" peerDependencies: @@ -6426,8 +6426,8 @@ __metadata: resolution: "@udecode/plate-emoji@workspace:packages/emoji" dependencies: "@emoji-mart/data": "npm:^1.1.2" - "@udecode/plate-combobox": "npm:29.1.0" - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-combobox": "npm:30.0.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6443,7 +6443,7 @@ __metadata: resolution: "@udecode/plate-excalidraw@workspace:packages/excalidraw" dependencies: "@excalidraw/excalidraw": "npm:0.12.0" - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6454,11 +6454,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-find-replace@npm:29.1.0, @udecode/plate-find-replace@workspace:^, @udecode/plate-find-replace@workspace:packages/find-replace": +"@udecode/plate-find-replace@npm:30.0.0, @udecode/plate-find-replace@workspace:^, @udecode/plate-find-replace@workspace:packages/find-replace": version: 0.0.0-use.local resolution: "@udecode/plate-find-replace@workspace:packages/find-replace" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6469,13 +6469,13 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-floating@npm:29.1.0, @udecode/plate-floating@workspace:^, @udecode/plate-floating@workspace:packages/floating": +"@udecode/plate-floating@npm:30.0.0, @udecode/plate-floating@workspace:^, @udecode/plate-floating@workspace:packages/floating": version: 0.0.0-use.local resolution: "@udecode/plate-floating@workspace:packages/floating" dependencies: "@floating-ui/core": "npm:^1.3.1" "@floating-ui/react": "npm:^0.22.3" - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6486,11 +6486,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-font@npm:29.1.0, @udecode/plate-font@workspace:^, @udecode/plate-font@workspace:packages/font": +"@udecode/plate-font@npm:30.0.0, @udecode/plate-font@workspace:^, @udecode/plate-font@workspace:packages/font": version: 0.0.0-use.local resolution: "@udecode/plate-font@workspace:packages/font" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -6502,11 +6502,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-heading@npm:29.1.0, @udecode/plate-heading@workspace:^, @udecode/plate-heading@workspace:packages/heading": +"@udecode/plate-heading@npm:30.0.0, @udecode/plate-heading@workspace:^, @udecode/plate-heading@workspace:packages/heading": version: 0.0.0-use.local resolution: "@udecode/plate-heading@workspace:packages/heading" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6517,11 +6517,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-highlight@npm:29.1.0, @udecode/plate-highlight@workspace:^, @udecode/plate-highlight@workspace:packages/highlight": +"@udecode/plate-highlight@npm:30.0.0, @udecode/plate-highlight@workspace:^, @udecode/plate-highlight@workspace:packages/highlight": version: 0.0.0-use.local resolution: "@udecode/plate-highlight@workspace:packages/highlight" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6532,11 +6532,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-horizontal-rule@npm:29.1.0, @udecode/plate-horizontal-rule@workspace:^, @udecode/plate-horizontal-rule@workspace:packages/horizontal-rule": +"@udecode/plate-horizontal-rule@npm:30.0.0, @udecode/plate-horizontal-rule@workspace:^, @udecode/plate-horizontal-rule@workspace:packages/horizontal-rule": version: 0.0.0-use.local resolution: "@udecode/plate-horizontal-rule@workspace:packages/horizontal-rule" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6547,13 +6547,13 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-indent-list@npm:29.1.0, @udecode/plate-indent-list@workspace:^, @udecode/plate-indent-list@workspace:packages/indent-list": +"@udecode/plate-indent-list@npm:30.0.0, @udecode/plate-indent-list@workspace:^, @udecode/plate-indent-list@workspace:packages/indent-list": version: 0.0.0-use.local resolution: "@udecode/plate-indent-list@workspace:packages/indent-list" dependencies: - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-indent": "npm:29.1.0" - "@udecode/plate-list": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-indent": "npm:30.0.0" + "@udecode/plate-list": "npm:30.0.0" clsx: "npm:^1.2.1" peerDependencies: react: ">=16.8.0" @@ -6565,11 +6565,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-indent@npm:29.1.0, @udecode/plate-indent@workspace:^, @udecode/plate-indent@workspace:packages/indent": +"@udecode/plate-indent@npm:30.0.0, @udecode/plate-indent@workspace:^, @udecode/plate-indent@workspace:packages/indent": version: 0.0.0-use.local resolution: "@udecode/plate-indent@workspace:packages/indent" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6584,7 +6584,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-juice@workspace:packages/juice" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" juice: "npm:^8.1.0" peerDependencies: react: ">=16.8.0" @@ -6596,11 +6596,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-kbd@npm:29.1.0, @udecode/plate-kbd@workspace:^, @udecode/plate-kbd@workspace:packages/kbd": +"@udecode/plate-kbd@npm:30.0.0, @udecode/plate-kbd@workspace:^, @udecode/plate-kbd@workspace:packages/kbd": version: 0.0.0-use.local resolution: "@udecode/plate-kbd@workspace:packages/kbd" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6611,11 +6611,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-line-height@npm:29.1.0, @udecode/plate-line-height@workspace:^, @udecode/plate-line-height@workspace:packages/line-height": +"@udecode/plate-line-height@npm:30.0.0, @udecode/plate-line-height@workspace:^, @udecode/plate-line-height@workspace:packages/line-height": version: 0.0.0-use.local resolution: "@udecode/plate-line-height@workspace:packages/line-height" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6626,13 +6626,13 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-link@npm:29.1.0, @udecode/plate-link@workspace:^, @udecode/plate-link@workspace:packages/link": +"@udecode/plate-link@npm:30.0.0, @udecode/plate-link@workspace:^, @udecode/plate-link@workspace:packages/link": version: 0.0.0-use.local resolution: "@udecode/plate-link@workspace:packages/link" dependencies: - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-floating": "npm:29.1.0" - "@udecode/plate-normalizers": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-floating": "npm:30.0.0" + "@udecode/plate-normalizers": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6643,12 +6643,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-list@npm:29.1.0, @udecode/plate-list@workspace:^, @udecode/plate-list@workspace:packages/list": +"@udecode/plate-list@npm:30.0.0, @udecode/plate-list@workspace:^, @udecode/plate-list@workspace:packages/list": version: 0.0.0-use.local resolution: "@udecode/plate-list@workspace:packages/list" dependencies: - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-reset-node": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-reset-node": "npm:30.0.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -6660,11 +6660,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-media@npm:29.1.0, @udecode/plate-media@workspace:^, @udecode/plate-media@workspace:packages/media": +"@udecode/plate-media@npm:30.0.0, @udecode/plate-media@workspace:^, @udecode/plate-media@workspace:packages/media": version: 0.0.0-use.local resolution: "@udecode/plate-media@workspace:packages/media" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" js-video-url-parser: "npm:^0.5.1" peerDependencies: react: ">=16.8.0" @@ -6676,12 +6676,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-mention@npm:29.1.0, @udecode/plate-mention@workspace:^, @udecode/plate-mention@workspace:packages/mention": +"@udecode/plate-mention@npm:30.0.0, @udecode/plate-mention@workspace:^, @udecode/plate-mention@workspace:packages/mention": version: 0.0.0-use.local resolution: "@udecode/plate-mention@workspace:packages/mention" dependencies: - "@udecode/plate-combobox": "npm:29.1.0" - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-combobox": "npm:30.0.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6692,11 +6692,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-node-id@npm:29.1.0, @udecode/plate-node-id@workspace:^, @udecode/plate-node-id@workspace:packages/node-id": +"@udecode/plate-node-id@npm:30.0.0, @udecode/plate-node-id@workspace:^, @udecode/plate-node-id@workspace:packages/node-id": version: 0.0.0-use.local resolution: "@udecode/plate-node-id@workspace:packages/node-id" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -6708,11 +6708,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-normalizers@npm:29.1.0, @udecode/plate-normalizers@workspace:^, @udecode/plate-normalizers@workspace:packages/normalizers": +"@udecode/plate-normalizers@npm:30.0.0, @udecode/plate-normalizers@workspace:^, @udecode/plate-normalizers@workspace:packages/normalizers": version: 0.0.0-use.local resolution: "@udecode/plate-normalizers@workspace:packages/normalizers" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -6724,11 +6724,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-paragraph@npm:29.1.0, @udecode/plate-paragraph@workspace:^, @udecode/plate-paragraph@workspace:packages/paragraph": +"@udecode/plate-paragraph@npm:30.0.0, @udecode/plate-paragraph@workspace:^, @udecode/plate-paragraph@workspace:packages/paragraph": version: 0.0.0-use.local resolution: "@udecode/plate-paragraph@workspace:packages/paragraph" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6739,11 +6739,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-reset-node@npm:29.1.0, @udecode/plate-reset-node@workspace:^, @udecode/plate-reset-node@workspace:packages/reset-node": +"@udecode/plate-reset-node@npm:30.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" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6754,11 +6754,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-resizable@npm:29.1.0, @udecode/plate-resizable@workspace:^, @udecode/plate-resizable@workspace:packages/resizable": +"@udecode/plate-resizable@npm:30.0.0, @udecode/plate-resizable@workspace:^, @udecode/plate-resizable@workspace:packages/resizable": version: 0.0.0-use.local resolution: "@udecode/plate-resizable@workspace:packages/resizable" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6769,11 +6769,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-select@npm:29.1.0, @udecode/plate-select@workspace:^, @udecode/plate-select@workspace:packages/select": +"@udecode/plate-select@npm:30.0.0, @udecode/plate-select@workspace:^, @udecode/plate-select@workspace:packages/select": version: 0.0.0-use.local resolution: "@udecode/plate-select@workspace:packages/select" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6788,7 +6788,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-selection@workspace:packages/selection" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" "@viselect/vanilla": "npm:3.2.5" copy-to-clipboard: "npm:^3.3.3" peerDependencies: @@ -6801,13 +6801,13 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-csv@npm:29.1.0, @udecode/plate-serializer-csv@workspace:^, @udecode/plate-serializer-csv@workspace:packages/serializer-csv": +"@udecode/plate-serializer-csv@npm:30.0.0, @udecode/plate-serializer-csv@workspace:^, @udecode/plate-serializer-csv@workspace:packages/serializer-csv": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-csv@workspace:packages/serializer-csv" dependencies: "@types/papaparse": "npm:^5.3.7" - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-table": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-table": "npm:30.0.0" papaparse: "npm:^5.4.1" peerDependencies: react: ">=16.8.0" @@ -6819,17 +6819,17 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-docx@npm:29.1.0, @udecode/plate-serializer-docx@workspace:^, @udecode/plate-serializer-docx@workspace:packages/serializer-docx": +"@udecode/plate-serializer-docx@npm:30.0.0, @udecode/plate-serializer-docx@workspace:^, @udecode/plate-serializer-docx@workspace:packages/serializer-docx": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-docx@workspace:packages/serializer-docx" dependencies: - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-heading": "npm:29.1.0" - "@udecode/plate-indent": "npm:29.1.0" - "@udecode/plate-indent-list": "npm:29.1.0" - "@udecode/plate-media": "npm:29.1.0" - "@udecode/plate-paragraph": "npm:29.1.0" - "@udecode/plate-table": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-heading": "npm:30.0.0" + "@udecode/plate-indent": "npm:30.0.0" + "@udecode/plate-indent-list": "npm:30.0.0" + "@udecode/plate-media": "npm:30.0.0" + "@udecode/plate-paragraph": "npm:30.0.0" + "@udecode/plate-table": "npm:30.0.0" validator: "npm:^13.9.0" peerDependencies: react: ">=16.8.0" @@ -6841,12 +6841,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-html@npm:29.1.0, @udecode/plate-serializer-html@workspace:^, @udecode/plate-serializer-html@workspace:packages/serializer-html": +"@udecode/plate-serializer-html@npm:30.0.0, @udecode/plate-serializer-html@workspace:^, @udecode/plate-serializer-html@workspace:packages/serializer-html": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-html@workspace:packages/serializer-html" dependencies: "@types/papaparse": "npm:^5.3.7" - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" html-entities: "npm:^2.4.0" peerDependencies: react: ">=16.8.0" @@ -6858,20 +6858,20 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-serializer-md@npm:29.1.0, @udecode/plate-serializer-md@workspace:^, @udecode/plate-serializer-md@workspace:packages/serializer-md": +"@udecode/plate-serializer-md@npm:30.0.0, @udecode/plate-serializer-md@workspace:^, @udecode/plate-serializer-md@workspace:packages/serializer-md": version: 0.0.0-use.local resolution: "@udecode/plate-serializer-md@workspace:packages/serializer-md" dependencies: - "@udecode/plate-basic-marks": "npm:29.1.0" - "@udecode/plate-block-quote": "npm:29.1.0" - "@udecode/plate-code-block": "npm:29.1.0" - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-heading": "npm:29.1.0" - "@udecode/plate-horizontal-rule": "npm:29.1.0" - "@udecode/plate-link": "npm:29.1.0" - "@udecode/plate-list": "npm:29.1.0" - "@udecode/plate-media": "npm:29.1.0" - "@udecode/plate-paragraph": "npm:29.1.0" + "@udecode/plate-basic-marks": "npm:30.0.0" + "@udecode/plate-block-quote": "npm:30.0.0" + "@udecode/plate-code-block": "npm:30.0.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-heading": "npm:30.0.0" + "@udecode/plate-horizontal-rule": "npm:30.0.0" + "@udecode/plate-link": "npm:30.0.0" + "@udecode/plate-list": "npm:30.0.0" + "@udecode/plate-media": "npm:30.0.0" + "@udecode/plate-paragraph": "npm:30.0.0" remark-parse: "npm:^9.0.0" unified: "npm:^9.2.2" peerDependencies: @@ -6884,11 +6884,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-suggestion@npm:29.1.0, @udecode/plate-suggestion@workspace:^, @udecode/plate-suggestion@workspace:packages/suggestion": +"@udecode/plate-suggestion@npm:30.0.0, @udecode/plate-suggestion@workspace:^, @udecode/plate-suggestion@workspace:packages/suggestion": version: 0.0.0-use.local resolution: "@udecode/plate-suggestion@workspace:packages/suggestion" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6899,11 +6899,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-tabbable@npm:29.1.0, @udecode/plate-tabbable@workspace:^, @udecode/plate-tabbable@workspace:packages/tabbable": +"@udecode/plate-tabbable@npm:30.0.0, @udecode/plate-tabbable@workspace:^, @udecode/plate-tabbable@workspace:packages/tabbable": version: 0.0.0-use.local resolution: "@udecode/plate-tabbable@workspace:packages/tabbable" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" tabbable: "npm:^6.2.0" peerDependencies: react: ">=16.8.0" @@ -6915,12 +6915,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-table@npm:29.1.0, @udecode/plate-table@workspace:^, @udecode/plate-table@workspace:packages/table": +"@udecode/plate-table@npm:30.0.0, @udecode/plate-table@workspace:^, @udecode/plate-table@workspace:packages/table": version: 0.0.0-use.local resolution: "@udecode/plate-table@workspace:packages/table" dependencies: - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-resizable": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-resizable": "npm:30.0.0" lodash: "npm:^4.17.21" peerDependencies: react: ">=16.8.0" @@ -6940,11 +6940,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-trailing-block@npm:29.1.0, @udecode/plate-trailing-block@workspace:^, @udecode/plate-trailing-block@workspace:packages/trailing-block": +"@udecode/plate-trailing-block@npm:30.0.0, @udecode/plate-trailing-block@workspace:^, @udecode/plate-trailing-block@workspace:packages/trailing-block": version: 0.0.0-use.local resolution: "@udecode/plate-trailing-block@workspace:packages/trailing-block" dependencies: - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" @@ -6985,11 +6985,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-utils@npm:29.1.0, @udecode/plate-utils@workspace:^, @udecode/plate-utils@workspace:packages/plate-utils": +"@udecode/plate-utils@npm:30.0.0, @udecode/plate-utils@workspace:^, @udecode/plate-utils@workspace:packages/plate-utils": version: 0.0.0-use.local resolution: "@udecode/plate-utils@workspace:packages/plate-utils" dependencies: - "@udecode/plate-core": "npm:29.1.0" + "@udecode/plate-core": "npm:30.0.0" "@udecode/react-utils": "npm:29.0.1" "@udecode/slate": "npm:25.0.0" "@udecode/slate-react": "npm:29.0.1" @@ -7013,7 +7013,7 @@ __metadata: dependencies: "@hocuspocus/provider": "npm:^2.2.1" "@slate-yjs/core": "npm:^1.0.1" - "@udecode/plate-common": "npm:29.1.0" + "@udecode/plate-common": "npm:30.0.0" yjs: "npm:^13.5.42" peerDependencies: react: ">=16.8.0" @@ -7029,44 +7029,44 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate@workspace:packages/plate" dependencies: - "@udecode/plate-alignment": "npm:29.1.0" - "@udecode/plate-autoformat": "npm:29.1.0" - "@udecode/plate-basic-elements": "npm:29.1.0" - "@udecode/plate-basic-marks": "npm:29.1.0" - "@udecode/plate-block-quote": "npm:29.1.0" - "@udecode/plate-break": "npm:29.1.0" - "@udecode/plate-code-block": "npm:29.1.0" - "@udecode/plate-combobox": "npm:29.1.0" - "@udecode/plate-comments": "npm:29.1.0" - "@udecode/plate-common": "npm:29.1.0" - "@udecode/plate-find-replace": "npm:29.1.0" - "@udecode/plate-floating": "npm:29.1.0" - "@udecode/plate-font": "npm:29.1.0" - "@udecode/plate-heading": "npm:29.1.0" - "@udecode/plate-highlight": "npm:29.1.0" - "@udecode/plate-horizontal-rule": "npm:29.1.0" - "@udecode/plate-indent": "npm:29.1.0" - "@udecode/plate-indent-list": "npm:29.1.0" - "@udecode/plate-kbd": "npm:29.1.0" - "@udecode/plate-line-height": "npm:29.1.0" - "@udecode/plate-link": "npm:29.1.0" - "@udecode/plate-list": "npm:29.1.0" - "@udecode/plate-media": "npm:29.1.0" - "@udecode/plate-mention": "npm:29.1.0" - "@udecode/plate-node-id": "npm:29.1.0" - "@udecode/plate-normalizers": "npm:29.1.0" - "@udecode/plate-paragraph": "npm:29.1.0" - "@udecode/plate-reset-node": "npm:29.1.0" - "@udecode/plate-resizable": "npm:29.1.0" - "@udecode/plate-select": "npm:29.1.0" - "@udecode/plate-serializer-csv": "npm:29.1.0" - "@udecode/plate-serializer-docx": "npm:29.1.0" - "@udecode/plate-serializer-html": "npm:29.1.0" - "@udecode/plate-serializer-md": "npm:29.1.0" - "@udecode/plate-suggestion": "npm:29.1.0" - "@udecode/plate-tabbable": "npm:29.1.0" - "@udecode/plate-table": "npm:29.1.0" - "@udecode/plate-trailing-block": "npm:29.1.0" + "@udecode/plate-alignment": "npm:30.0.0" + "@udecode/plate-autoformat": "npm:30.0.0" + "@udecode/plate-basic-elements": "npm:30.0.0" + "@udecode/plate-basic-marks": "npm:30.0.0" + "@udecode/plate-block-quote": "npm:30.0.0" + "@udecode/plate-break": "npm:30.0.0" + "@udecode/plate-code-block": "npm:30.0.0" + "@udecode/plate-combobox": "npm:30.0.0" + "@udecode/plate-comments": "npm:30.0.0" + "@udecode/plate-common": "npm:30.0.0" + "@udecode/plate-find-replace": "npm:30.0.0" + "@udecode/plate-floating": "npm:30.0.0" + "@udecode/plate-font": "npm:30.0.0" + "@udecode/plate-heading": "npm:30.0.0" + "@udecode/plate-highlight": "npm:30.0.0" + "@udecode/plate-horizontal-rule": "npm:30.0.0" + "@udecode/plate-indent": "npm:30.0.0" + "@udecode/plate-indent-list": "npm:30.0.0" + "@udecode/plate-kbd": "npm:30.0.0" + "@udecode/plate-line-height": "npm:30.0.0" + "@udecode/plate-link": "npm:30.0.0" + "@udecode/plate-list": "npm:30.0.0" + "@udecode/plate-media": "npm:30.0.0" + "@udecode/plate-mention": "npm:30.0.0" + "@udecode/plate-node-id": "npm:30.0.0" + "@udecode/plate-normalizers": "npm:30.0.0" + "@udecode/plate-paragraph": "npm:30.0.0" + "@udecode/plate-reset-node": "npm:30.0.0" + "@udecode/plate-resizable": "npm:30.0.0" + "@udecode/plate-select": "npm:30.0.0" + "@udecode/plate-serializer-csv": "npm:30.0.0" + "@udecode/plate-serializer-docx": "npm:30.0.0" + "@udecode/plate-serializer-html": "npm:30.0.0" + "@udecode/plate-serializer-md": "npm:30.0.0" + "@udecode/plate-suggestion": "npm:30.0.0" + "@udecode/plate-tabbable": "npm:30.0.0" + "@udecode/plate-table": "npm:30.0.0" + "@udecode/plate-trailing-block": "npm:30.0.0" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" From 6c45933b21ca8943b517d3ce2733bedd62d5df20 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Tue, 9 Jan 2024 18:11:09 +0100 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=92=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/indent-list/src/hooks/someIndentList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/indent-list/src/hooks/someIndentList.ts b/packages/indent-list/src/hooks/someIndentList.ts index 9067d2736e..cc175eb292 100644 --- a/packages/indent-list/src/hooks/someIndentList.ts +++ b/packages/indent-list/src/hooks/someIndentList.ts @@ -7,7 +7,7 @@ export const someIndentList = ( type: string ) => { return ( - editor.selection && + !!editor.selection && someNode(editor, { match: (n) => { const list = n[KEY_LIST_STYLE_TYPE];