Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/dts-bundling-issue' into fix…
Browse files Browse the repository at this point in the history
…/dts-bundling-issue
  • Loading branch information
zbeyens committed Oct 2, 2023
2 parents 999f370 + 0bcc6dc commit d02fb62
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 11 deletions.
6 changes: 6 additions & 0 deletions packages/caption/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @udecode/plate-caption

## 24.3.3

### Patch Changes

- [`f47fdba0`](https://github.com/udecode/plate/commit/f47fdba049c363d6a441c6bc7bab12b4e1267929) by [@zbeyens](https://github.com/zbeyens) – fix types

## 24.3.2

## 24.3.1
Expand Down
2 changes: 1 addition & 1 deletion packages/caption/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-caption",
"version": "24.3.2",
"version": "24.3.3",
"description": "Primitive components for caption.",
"license": "MIT",
"homepage": "https://platejs.org",
Expand Down
2 changes: 1 addition & 1 deletion packages/caption/src/createCaptionPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface CaptionPlugin {
/**
* Plugin keys to enable caption.
*/
pluginKeys: string[];
pluginKeys?: string[];
}

export const KEY_CAPTION = 'caption';
Expand Down
2 changes: 1 addition & 1 deletion packages/caption/src/onKeyDownCaption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const onKeyDownCaption: KeyboardHandler<CaptionPlugin> =

// focus caption from image
if (isHotkey('down', e)) {
const types = getPluginTypes(editor, options.pluginKeys);
const types = getPluginTypes(editor, options.pluginKeys!);

const entry = getBlockAbove(editor, {
match: { type: types },
Expand Down
2 changes: 1 addition & 1 deletion packages/caption/src/withCaption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const withCaption = <
newSelection &&
isCollapsed(newSelection)
) {
const types = getPluginTypes(editor, pluginKeys);
const types = getPluginTypes(editor, pluginKeys!);

const entry = getAboveNode(editor, {
at: newSelection,
Expand Down
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

## 24.3.3

## 24.3.2

## 24.3.1
Expand Down
4 changes: 2 additions & 2 deletions packages/plate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate",
"version": "24.3.2",
"version": "24.3.3",
"description": "Plate – a plugin system for slate",
"license": "MIT",
"homepage": "https://platejs.org",
Expand Down Expand Up @@ -75,7 +75,7 @@
"@udecode/plate-serializer-csv": "24.3.2",
"@udecode/plate-serializer-docx": "24.3.2",
"@udecode/plate-serializer-html": "24.3.2",
"@udecode/plate-serializer-md": "24.3.2",
"@udecode/plate-serializer-md": "24.3.3",
"@udecode/plate-suggestion": "24.3.2",
"@udecode/plate-tabbable": "24.3.2",
"@udecode/plate-table": "24.3.2",
Expand Down
6 changes: 6 additions & 0 deletions packages/serializer-md/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @udecode/plate-md-serializer

## 24.3.3

### Patch Changes

- [`f47fdba0`](https://github.com/udecode/plate/commit/f47fdba049c363d6a441c6bc7bab12b4e1267929) by [@zbeyens](https://github.com/zbeyens) – fix types

## 24.3.2

## 24.3.1
Expand Down
2 changes: 1 addition & 1 deletion packages/serializer-md/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-serializer-md",
"version": "24.3.2",
"version": "24.3.3",
"description": "Markdown serializer plugin for Plate",
"license": "MIT",
"homepage": "https://platejs.org",
Expand Down
4 changes: 2 additions & 2 deletions packages/serializer-md/src/deserializer/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Value } from '@udecode/plate-common';
import { RemarkElementRules, RemarkTextRules } from '../remark-slate/index';

export interface DeserializeMdPlugin<V extends Value = Value> {
elementRules: RemarkElementRules<V>;
textRules: RemarkTextRules<V>;
elementRules?: RemarkElementRules<V>;
textRules?: RemarkTextRules<V>;
}
4 changes: 2 additions & 2 deletions packages/utils/src/types/AnyObject.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type AnyObject = {
export interface AnyObject {
[key: string]: any;
};
}

export interface UnknownObject {
[key: string]: unknown;
Expand Down

0 comments on commit d02fb62

Please sign in to comment.