@remirror/core
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -11,2 +11,5 @@ import type { AcceptUndefined, CommandFunction, CommandFunctionProps, EditorSchema, EditorState, EditorView, FromToProps, Handler, MakeRequired, Static } from '@remirror/core-types'; | ||
* | ||
* You can set it as `'selection'` to match the default styles provided by | ||
* `@remirror/styles`. | ||
* | ||
* @default undefined | ||
@@ -13,0 +16,0 @@ */ |
@@ -7,3 +7,3 @@ export declare enum ActionType { | ||
type: ActionType.ADD_PLACEHOLDER; | ||
id: unknown; | ||
id: string; | ||
payload: any; | ||
@@ -14,5 +14,5 @@ pos: number; | ||
type: ActionType.REMOVE_PLACEHOLDER; | ||
id: unknown; | ||
id: string; | ||
} | ||
export declare type PlaceholderPluginAction = AddPlaceholderAction | RemovePlaceholderAction; | ||
export {}; |
@@ -6,8 +6,20 @@ import { EditorState, Plugin, Transaction } from '@remirror/pm/state'; | ||
set: DecorationSet; | ||
payloads: Map<unknown, any>; | ||
payloads: Map<string, any>; | ||
} | ||
export declare function createUploadPlaceholderPlugin(): Plugin<UploadPlaceholderPluginData>; | ||
export declare function findUploadPlaceholderPos(state: EditorState, id: unknown): number | undefined; | ||
export declare function findUploadPlaceholderPayload(state: EditorState, id: unknown): any | undefined; | ||
export declare function findUploadPlaceholderPos(state: EditorState, id: string): number | undefined; | ||
export declare function findUploadPlaceholderPayload(state: EditorState, id: string): any | undefined; | ||
/** | ||
* Determine if there are active file uploads in the given state | ||
* | ||
* @remarks | ||
* This utility is useful to warn users there are still active uploads before | ||
* exiting or saving a document. | ||
* | ||
* @see https://remirror.vercel.app/?path=/story/extensions-file--with-upload-incomplete-warning | ||
* | ||
* @param state - the editor state | ||
*/ | ||
export declare function hasUploadingFile(state: EditorState): boolean; | ||
export declare function setUploadPlaceholderAction(tr: Transaction, action: PlaceholderPluginAction): Transaction; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
export { findUploadPlaceholderPayload, findUploadPlaceholderPos, setUploadPlaceholderAction, } from './file-placeholder-plugin'; | ||
export { findUploadPlaceholderPayload, findUploadPlaceholderPos, hasUploadingFile, setUploadPlaceholderAction, } from './file-placeholder-plugin'; | ||
export type { UploadFileHandler, UploadPlaceholderPayload } from './file-upload'; | ||
@@ -3,0 +3,0 @@ export { uploadFile } from './file-upload'; |
{ | ||
"name": "@remirror/core", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Where your quest to create a world class editing experience begins.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/remirror__core", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1647356
43429