* chore(richtext-lexical): lazy import all React things * chore(richtext-lexical): use useMemo for lazy-loaded React Components to prevent lag and flashes when parent component re-renders * chore: make exportPointerFiles.ts script usable for other packages as well by hoisting it up to the workspace root and making it configurable * chore(richtext-lexical): make sure no client-side code is imported by default from Features * chore(richtext-lexical): remove unnecessary scss files * chore(richtext-lexical): adjust package.json exports * chore(richtext-*): lazy-import Field & Cell Components, move Client-only exports to /components subpath export * chore(richtext-lexical): make sure nothing client-side is directly exported from the / subpath export anymore * add missing imports * chore: remove breaking changes for Slate * LazyCellComponent & LazyFieldComponent
16 lines
327 B
TypeScript
16 lines
327 B
TypeScript
import type {
|
|
FloatingToolbarSection,
|
|
FloatingToolbarSectionEntry,
|
|
} from '../../../lexical/plugins/FloatingSelectToolbar/types'
|
|
|
|
export const SectionWithEntries = (
|
|
entries: FloatingToolbarSectionEntry[],
|
|
): FloatingToolbarSection => {
|
|
return {
|
|
entries,
|
|
key: 'format',
|
|
order: 4,
|
|
type: 'buttons',
|
|
}
|
|
}
|