Property used by Plate to decorate editor ranges.
If the function returns undefined then no ranges are modified.
If the function returns an array the returned ranges are merged with the ranges called by other plugins.
Function called on editor.insertData just before editor.insertFragment.
Default: if the block above the selection is empty and the first fragment node type is not inline,
set the selected node type to the first fragment node type.
Function used to render an element.
If the function returns undefined then the next RenderElement function is called.
If the function renders a JSX element then that JSX element is rendered.
Function used to render the children of a leaf.
If the function returns undefined then the next RenderLeaf function is called and the current children are not modified.
The children passed to the function may be the result of a previous plugin.
To wrap the previous plugin simply return the passed children.
You do not need to add the attributes to your return value.
The attributes are added by default.
RenderLeaf always returns a JSX element (even if unmodified) to support multiple marks on a node.
The Ancestor union type represents nodes that are ancestors in the tree.
It is returned as a convenience in certain cases to narrow a value further
than the more generic Node union.
The Descendant union type represents nodes that are descendants in the
tree. It is returned as a convenience in certain cases to narrow a value
further than the more generic Node union.
TNodeEntry objects are returned when iterating over the nodes in a Slate
document tree. They consist of the node and its Path relative to the root
node in the document.
Operation objects define the low-level instructions that Slate editors use
to apply changes to their internal state. Representing all changes as
operations is what allows Slate editors to easily implement history,
collaboration, and other features.
Store where the keys are event names and the values are editor ids.
Const grabberTooltipProps
grabberTooltipProps:TippyProps
Const hoveredColIndexAtom
hoveredColIndexAtom:Atom & { onMount?: <S>(setAtom: S) => void | (() => void); write: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 } & { <Value_3>(atom: Atom<Value_3 | Promise<Value_3>>, options: { unstable_promise: true }): Value_3 | Promise<Value_3>; <Value_4>(atom: Atom<Promise<Value_4>>, options: { unstable_promise: true }): Value_4 | Promise<Value_4>; <Value_5>(atom: Atom<Value_5>, options: { unstable_promise: true }): (Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5> }, set: { <Value_6, Result>(atom: WritableAtom<Value_6, undefined, Result>): Result; <Value_7, Update, Result_1>(atom: WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1 }, update: number | ((prev: number | null) => number | null) | null) => void } & { init: number | null }
Const imageStore
imageStore:{ atom: { element: Atom; width: Atom }; extend: <ET, EN>(extendedState: ET, options?: Omit<CreateAtomStoreOptions, "initialStore">) => AtomStoreApi }
Type declaration
atom: { element: Atom; width: Atom }
element: Atom
width: Atom
extend: <ET, EN>(extendedState: ET, options?: Omit<CreateAtomStoreOptions, "initialStore">) => AtomStoreApi
<ET, EN>(extendedState: ET, options?: Omit<CreateAtomStoreOptions, "initialStore">): AtomStoreApi
plateIdAtom:Atom & { onMount?: <S>(setAtom: S) => void | (() => void); write: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 } & { <Value_3>(atom: Atom<Value_3 | Promise<Value_3>>, options: { unstable_promise: true }): Value_3 | Promise<Value_3>; <Value_4>(atom: Atom<Promise<Value_4>>, options: { unstable_promise: true }): Value_4 | Promise<Value_4>; <Value_5>(atom: Atom<Value_5>, options: { unstable_promise: true }): (Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5> }, set: { <Value_6, Result>(atom: WritableAtom<Value_6, undefined, Result>): Result; <Value_7, Update, Result_1>(atom: WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1 }, update: string | ((prev: string | null) => string | null) | null) => void } & { init: string | null }
resizingColAtom:Atom & { onMount?: <S>(setAtom: S) => void | (() => void); write: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 } & { <Value_3>(atom: Atom<Value_3 | Promise<Value_3>>, options: { unstable_promise: true }): Value_3 | Promise<Value_3>; <Value_4>(atom: Atom<Promise<Value_4>>, options: { unstable_promise: true }): Value_4 | Promise<Value_4>; <Value_5>(atom: Atom<Value_5>, options: { unstable_promise: true }): (Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5> }, set: { <Value_6, Result>(atom: WritableAtom<Value_6, undefined, Result>): Result; <Value_7, Update, Result_1>(atom: WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1 }, update: { index: number; width: number } | ((prev: { index: number; width: number } | null) => { index: number; width: number } | null) | null) => void } & { init: { index: number; width: number } | null }
Const selectedCellsAtom
selectedCellsAtom:Atom & { onMount?: <S>(setAtom: S) => void | (() => void); write: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 } & { <Value_3>(atom: Atom<Value_3 | Promise<Value_3>>, options: { unstable_promise: true }): Value_3 | Promise<Value_3>; <Value_4>(atom: Atom<Promise<Value_4>>, options: { unstable_promise: true }): Value_4 | Promise<Value_4>; <Value_5>(atom: Atom<Value_5>, options: { unstable_promise: true }): (Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5> }, set: { <Value_6, Result>(atom: WritableAtom<Value_6, undefined, Result>): Result; <Value_7, Update, Result_1>(atom: WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1 }, update: TElement[] | ((prev: TElement[] | null) => TElement[] | null) | null) => void } & { init: TElement[] | null }
ElementProvider(__namedParameters: { initialValues?: Iterable<readonly [Atom<unknown>, unknown]>; scope?: Scope; unstable_createStore?: (initialValues?: Iterable<readonly [{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, unknown]>) => { SECRET_INTERNAL_store: { a: (a: { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }) => undefined | AtomState<unknown>; c: (_atom: null | { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, version?: VersionObject) => void; h: (values: Iterable<readonly [{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, unknown]>, version?: VersionObject) => void; l: () => IterableIterator<{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }>; m: (a: { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }) => undefined | { l: Set<(version?: VersionObject) => void>; t: Set<{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }>; u?: () => void }; n: (l: () => void) => () => void; r: <Value_4>(readingAtom: Atom<Value_4>, version?: VersionObject) => AtomState<Value_4>; s: (atom: { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, callback: (version?: VersionObject) => void) => () => void; w: <Value_1_1, Update_1, Result_1>(writingAtom: WritableAtom<Value_1_1, Update_1, Result_1>, update: Update_1, version?: VersionObject) => Result_1 } | { a?: undefined; c: (_atom: null | { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, version?: VersionObject) => void; h: (values: Iterable<readonly [{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, unknown]>, version?: VersionObject) => void; l?: undefined; m?: undefined; n?: undefined; r: <Value_5>(readingAtom: Atom<Value_5>, version?: VersionObject) => AtomState<Value_5>; s: (atom: { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, callback: (version?: VersionObject) => void) => () => void; w: <Value_1_2, Update_2, Result_2>(writingAtom: WritableAtom<Value_1_2, Update_2, Result_2>, update: Update_2, version?: VersionObject) => Result_2 }; asyncGet: <Value_1>(atom: Atom<Value_1>) => Promise<Value_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_1>; get: <Value_3>(atom: Atom<Value_3>) => undefined | (Value_3 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? V_1 extends Promise<V_1> ? any : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : V_1 : Value_3); set: <Value_2, Update, Result>(atom: WritableAtom<Value_2, Update, Result>, update: Update) => Result; sub: (atom: { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, callback: () => void) => () => void }; unstable_enableVersionedWrite?: boolean } & { children?: ReactNode } & { element: TElement }): Element
Parameters
__namedParameters: { initialValues?: Iterable<readonly [Atom<unknown>, unknown]>; scope?: Scope; unstable_createStore?: (initialValues?: Iterable<readonly [{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, unknown]>) => { SECRET_INTERNAL_store: { a: (a: { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }) => undefined | AtomState<unknown>; c: (_atom: null | { debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, version?: VersionObject) => void; h: (values: Iterable<readonly [{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2 }) => unknown; toString: () => string }, unknown]>, version?: VersionObject) => void; l: () => IterableIterator<{ debugLabel?: string; read: (get: { <Value>(atom: Atom<Value | Promise<Value>>): Value; <Value_1>(atom: Atom<Promise<Value_1>>): Value_1; <Value_2>(atom: Atom<Value_2>): Value_2 extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ? V extends Promise<V> ?
A utility type to get all the ancestor node types from a root node type.