@contentful/field-editor-rich-text 2.0.0-next.28 → 2.0.0-next.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ interface SlashCommandsPaletteProps {
2
+ editorId: string;
3
+ }
4
+ export declare function SlashCommandsPalette({ editorId }: SlashCommandsPaletteProps): JSX.Element | null;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ import { RichTextPlugin } from '../../types';
2
+ export declare function createSlashCommandsPlugin(): RichTextPlugin;
@@ -0,0 +1,6 @@
1
+ export declare function getCaretTopPoint(): {
2
+ left: any;
3
+ top: any;
4
+ } | undefined;
5
+ export declare function closePanel(editorId: string): void;
6
+ export declare function openPanel(editorId: string): void;
@@ -0,0 +1,2 @@
1
+ export * from './createSlashCommandsPlugin';
2
+ export * from './SlashCommandsPalette';
@@ -0,0 +1,3 @@
1
+ import { Node } from 'slate';
2
+ import { RichTextEditor } from '../../types';
3
+ export declare const insertTableFragment: (editor: RichTextEditor) => (fragments: Node[]) => void;
@@ -0,0 +1,3 @@
1
+ import { HotkeyPlugin, KeyboardHandler } from '@udecode/plate-core';
2
+ import { RichTextEditor } from '../../types';
3
+ export declare const onKeyDownTable: KeyboardHandler<RichTextEditor, HotkeyPlugin>;
@@ -1,5 +1,5 @@
1
1
  import { RichTextPlugin } from '../../types';
2
- export declare type RichTextTrackingActionName = 'edit' | 'insert' | 'remove' | 'mark' | 'unmark' | 'insertTable' | 'insertTableRow' | 'insertTableColumn' | 'removeTable' | 'removeTableRow' | 'removeTableColumn' | 'paste' | 'cancelCreateHyperlinkDialog' | 'cancelEditHyperlinkDialog' | 'linkRendered' | 'openCreateHyperlinkDialog' | 'openEditHyperlinkDialog' | 'unlinkHyperlinks' | 'openCreateEmbedDialog' | 'cancelCreateEmbedDialog';
2
+ export declare type RichTextTrackingActionName = 'edit' | 'insert' | 'remove' | 'mark' | 'unmark' | 'insertTable' | 'insertTableRow' | 'insertTableColumn' | 'removeTable' | 'removeTableRow' | 'removeTableColumn' | 'paste' | 'invalidTablePaste' | 'cancelCreateHyperlinkDialog' | 'cancelEditHyperlinkDialog' | 'linkRendered' | 'openCreateHyperlinkDialog' | 'openEditHyperlinkDialog' | 'unlinkHyperlinks' | 'openCreateEmbedDialog' | 'cancelCreateEmbedDialog';
3
3
  export declare type RichTextTrackingActionHandler = (name: RichTextTrackingActionName, data: Record<string, unknown>) => unknown;
4
4
  export interface TrackingPluginActions {
5
5
  onViewportAction: (actionName: RichTextTrackingActionName, data?: Record<string, unknown>) => ReturnType<RichTextTrackingActionHandler>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "2.0.0-next.28",
3
+ "version": "2.0.0-next.30",
4
4
  "publishConfig": {
5
5
  "tag": "next"
6
6
  },