*/
2 | export const getSlateClass = (type?: string) => (type ? `slate-${type}` : '');
3 |
--------------------------------------------------------------------------------
/packages/core/src/react/editor/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './PlateEditor';
6 | export * from './getPlateCorePlugins';
7 | export * from './usePlateEditor';
8 | export * from './withPlate';
9 |
--------------------------------------------------------------------------------
/packages/core/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useEditableProps';
6 | export * from './useNodePath';
7 | export * from './useSlateProps';
8 |
--------------------------------------------------------------------------------
/packages/core/src/react/libs/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './jotai';
6 |
--------------------------------------------------------------------------------
/packages/core/src/react/plugins/event-editor/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './EventEditorPlugin';
6 | export * from './EventEditorStore';
7 | export * from './getEventPlateId';
8 | export * from './useFocusEditorEvents';
9 |
--------------------------------------------------------------------------------
/packages/core/src/react/plugins/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './SlateReactExtensionPlugin';
6 | export * from './event-editor/index';
7 | export * from './paragraph/index';
8 | export * from './react/index';
--------------------------------------------------------------------------------
/packages/core/src/react/plugins/paragraph/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './ParagraphPlugin';
6 |
--------------------------------------------------------------------------------
/packages/core/src/react/plugins/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './ReactPlugin';
6 | export * from './withPlateReact';
7 |
--------------------------------------------------------------------------------
/packages/core/src/react/stores/element/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useElement';
6 | export * from './useElementSelector';
7 | export * from './useElementStore';
8 | export * from './usePath';
9 |
--------------------------------------------------------------------------------
/packages/core/src/react/stores/event-editor/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useEventPlateId';
6 |
--------------------------------------------------------------------------------
/packages/core/src/react/stores/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './element/index';
6 | export * from './event-editor/index';
7 | export * from './plate/index';
8 | export * from './plate-controller/index';
9 |
--------------------------------------------------------------------------------
/packages/core/src/react/stores/plate-controller/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './plateControllerStore';
6 |
--------------------------------------------------------------------------------
/packages/core/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/core/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": [],
5 | "compilerOptions": {
6 | "paths": {
7 | "@/*": ["../../apps/www/src/*"]
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/packages/csv/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/csv/README.md:
--------------------------------------------------------------------------------
1 | # Plate CSV serializer plugin
2 |
3 | This package implements the CSV serializer for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Playground](https://platejs.org/docs/playground).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/csv/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/csv/src/lib/deserializer/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './utils/index';
6 |
--------------------------------------------------------------------------------
/packages/csv/src/lib/deserializer/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './deserializeCsv';
6 |
--------------------------------------------------------------------------------
/packages/csv/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './CsvPlugin';
6 | export * from './deserializer/index';
7 |
--------------------------------------------------------------------------------
/packages/csv/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/csv/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/cursor/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/cursor/README.md:
--------------------------------------------------------------------------------
1 | # Plate Cursor Overlay
2 |
3 | This package implements a cursor overlay for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out
8 | [Cursor Overlay](https://platejs.org/docs/components/cursor-overlay).
9 |
10 | ## License
11 |
12 | [MIT](../../LICENSE)
13 |
--------------------------------------------------------------------------------
/packages/cursor/src/components/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './CursorOverlay';
6 |
--------------------------------------------------------------------------------
/packages/cursor/src/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useCursorOverlayPositions';
6 | export * from './useRefreshOnResize';
7 | export * from './useRequestReRender';
8 |
--------------------------------------------------------------------------------
/packages/cursor/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './types';
6 | export * from './components/index';
7 | export * from './hooks/index';
8 | export * from './queries/index';
9 |
--------------------------------------------------------------------------------
/packages/cursor/src/queries/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getCaretPosition';
6 | export * from './getCursorOverlayState';
7 | export * from './getSelectionRects';
8 |
--------------------------------------------------------------------------------
/packages/cursor/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/cursor/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/date/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/date/README.md:
--------------------------------------------------------------------------------
1 | # Plate date plugin
2 |
3 | This package implements the date plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [date](https://platejs.org/docs/date).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/date/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/date/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseDatePlugin';
6 | export * from './queries/index';
7 | export * from './transforms/index';
8 |
--------------------------------------------------------------------------------
/packages/date/src/lib/queries/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './isPointNextToNode';
6 |
--------------------------------------------------------------------------------
/packages/date/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertDate';
6 |
--------------------------------------------------------------------------------
/packages/date/src/react/DatePlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseDatePlugin } from '../lib';
4 |
5 | export const DatePlugin = toPlatePlugin(BaseDatePlugin);
6 |
--------------------------------------------------------------------------------
/packages/date/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './DatePlugin';
6 |
--------------------------------------------------------------------------------
/packages/date/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/date/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/depset/CHANGELOG.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/depset/CHANGELOG.md
--------------------------------------------------------------------------------
/packages/depset/src/utils/spinner.ts:
--------------------------------------------------------------------------------
1 | import ora, { type Options } from 'ora';
2 |
3 | export function spinner(
4 | text: Options['text'],
5 | options?: {
6 | silent?: boolean;
7 | }
8 | ) {
9 | return ora({
10 | isSilent: options?.silent,
11 | text,
12 | });
13 | }
14 |
--------------------------------------------------------------------------------
/packages/depset/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/diff/.npmignore:
--------------------------------------------------------------------------------
1 | src/diff/internal
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/diff/README.md:
--------------------------------------------------------------------------------
1 | # Compute a diff of two Slate documents
2 |
3 | ## License
4 |
5 | [See LICENSE](./LICENSE)
6 |
--------------------------------------------------------------------------------
/packages/diff/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/diff/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './computeDiff';
6 | export * from './types';
7 | export * from './withGetFragmentExcludeDiff';
8 |
--------------------------------------------------------------------------------
/packages/diff/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/diff/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/dnd/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/dnd/README.md:
--------------------------------------------------------------------------------
1 | # Plate Drag & Drop
2 |
3 | Visit https://platejs.org/docs/dnd to view the documentation.
4 |
5 | ## License
6 |
7 | [MIT](../../LICENSE)
8 |
--------------------------------------------------------------------------------
/packages/dnd/src/components/Scroller/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './DndScroller';
6 | export * from './ScrollArea';
7 | export * from './Scroller';
8 |
--------------------------------------------------------------------------------
/packages/dnd/src/components/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useDraggable';
6 | export * from './useDropLine';
7 | export * from './Scroller/index';
8 |
--------------------------------------------------------------------------------
/packages/dnd/src/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useDndNode';
6 | export * from './useDragNode';
7 | export * from './useDropNode';
8 |
--------------------------------------------------------------------------------
/packages/dnd/src/queries/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getBlocksWithId';
6 |
--------------------------------------------------------------------------------
/packages/dnd/src/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getHoverDirection';
6 | export * from './getNewDirection';
7 |
--------------------------------------------------------------------------------
/packages/dnd/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/dnd/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/docx/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/docx/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/align.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/align.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/alternate_document_path.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/alternate_document_path.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/block_quotes.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/block_quotes.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/char_styles.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/char_styles.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/codeblock.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/codeblock.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/custom-style-reference.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/custom-style-reference.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/dummy_item_after_list_item.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/dummy_item_after_list_item.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/dummy_item_after_paragraph.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/dummy_item_after_paragraph.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/font.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/font.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/headers.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/headers.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/inline_code.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/inline_code.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/inline_formatting.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/inline_formatting.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/legal.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/legal.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/line-height.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/line-height.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/links.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/links.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/lists.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/lists.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/lists_continuing.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/lists_continuing.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/lists_restarting.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/lists_restarting.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/lists_sublist_reset.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/lists_sublist_reset.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/numbered_header.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/numbered_header.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/numbered_sublist.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/numbered_sublist.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/tables.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/tables.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/__tests__/tabs.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/packages/docx/src/lib/__tests__/tabs.docx
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/__tests__/input/empty-paragraphs.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/__tests__/input/whitespaces-1.html:
--------------------------------------------------------------------------------
1 | Bold Normal text Italics Underline Bold
2 | italics underline superscript2 subscript2 normal
3 | text, prezly.com,
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/__tests__/input/whitespaces-2.html:
--------------------------------------------------------------------------------
1 | aaaa
2 | bbbb
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/__tests__/input/whitespaces-3.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - “Share
5 | this page” in the CTA should just say “Share”. The landing page CTA
6 | rule would apply.
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/__tests__/output/empty-paragraphs.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/__tests__/output/whitespaces-2.html:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/__tests__/output/whitespaces-3.html:
--------------------------------------------------------------------------------
1 | - “Share this page” in the CTA should just say “Share”. The landing page CTA rule would apply.
2 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './cleanDocx';
6 | export * from './types';
7 | export * from './utils/index';
8 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/types.ts:
--------------------------------------------------------------------------------
1 | export interface RtfImage {
2 | hex: string;
3 | mimeType: string;
4 | spid: string;
5 | }
6 |
7 | export type RtfImagesMap = Record;
8 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/utils/getDocxListNode.ts:
--------------------------------------------------------------------------------
1 | export const getDocxListNode = (element: Element): Node | null => {
2 | return (
3 | element.querySelector('[style="mso-list:Ignore"]') ||
4 | element.querySelector('span[lang]')
5 | );
6 | };
7 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/utils/isDocxBookmark.ts:
--------------------------------------------------------------------------------
1 | export const isDocxBookmark = (element: Element): boolean => {
2 | const styleAttribute = element.getAttribute('style');
3 |
4 | return (
5 | (styleAttribute || '').startsWith('mso-bookmark') && !element.textContent
6 | );
7 | };
8 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/docx-cleaner/utils/isDocxFootnote.ts:
--------------------------------------------------------------------------------
1 | /** Is element a docx footnote. */
2 | export const isDocxFootnote = (element: Element): boolean => {
3 | return (
4 | element.tagName === 'SPAN' &&
5 | element.classList.contains('MsoFootnoteReference')
6 | );
7 | };
8 |
--------------------------------------------------------------------------------
/packages/docx/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './DocxPlugin';
6 | export * from './docx-cleaner/index';
7 |
--------------------------------------------------------------------------------
/packages/docx/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/docx/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/emoji/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/emoji/README.md:
--------------------------------------------------------------------------------
1 | # Plate emoji plugin
2 |
3 | This package implements the emoji plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Emoji](https://platejs.org/docs/emoji).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/emoji/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/emoji/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseEmojiPlugin';
6 | export * from './constants';
7 | export * from './types';
8 | export * from './transforms/index';
9 | export * from './utils/index';
10 |
--------------------------------------------------------------------------------
/packages/emoji/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertEmoji';
6 |
--------------------------------------------------------------------------------
/packages/emoji/src/lib/utils/EmojiLibrary/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './EmojiInlineLibrary';
6 | export * from './EmojiLibrary.types';
7 |
--------------------------------------------------------------------------------
/packages/emoji/src/lib/utils/Grid/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './Grid';
6 | export * from './Grid.types';
7 | export * from './GridSection';
8 |
--------------------------------------------------------------------------------
/packages/emoji/src/lib/utils/IndexSearch/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './EmojiFloatingIndexSearch';
6 | export * from './EmojiInlineIndexSearch';
7 | export * from './IndexSearch';
8 |
--------------------------------------------------------------------------------
/packages/emoji/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './EmojiLibrary/index';
6 | export * from './Grid/index';
7 | export * from './IndexSearch/index';
8 |
--------------------------------------------------------------------------------
/packages/emoji/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useEmojiDropdownMenuState';
6 | export * from './useEmojiPicker';
7 |
--------------------------------------------------------------------------------
/packages/emoji/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './EmojiPlugin';
6 | export * from './hooks/index';
7 | export * from './storage/index';
8 | export * from './utils/index';
9 |
--------------------------------------------------------------------------------
/packages/emoji/src/react/storage/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './FrequentEmojiStorage';
6 | export * from './LocalStorage';
7 |
--------------------------------------------------------------------------------
/packages/emoji/src/react/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './EmojiObserver';
6 | export * from './EmojiPickerState';
7 | export * from './EmojiLibrary/index';
8 |
--------------------------------------------------------------------------------
/packages/emoji/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/emoji/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/excalidraw/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/excalidraw/README.md:
--------------------------------------------------------------------------------
1 | # Plate excalidraw plugin
2 |
3 | This package implements the excalidraw plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out
8 | [Excalidraw](https://platejs.org/docs/excalidraw).
9 |
10 | ## License
11 |
12 | [MIT](../../LICENSE)
13 |
--------------------------------------------------------------------------------
/packages/excalidraw/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/excalidraw/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseExcalidrawPlugin';
6 | export * from './types';
7 | export * from './transforms/index';
8 |
--------------------------------------------------------------------------------
/packages/excalidraw/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertExcalidraw';
6 |
--------------------------------------------------------------------------------
/packages/excalidraw/src/react/ExcalidrawPlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseExcalidrawPlugin } from '../lib';
4 |
5 | export const ExcalidrawPlugin = toPlatePlugin(BaseExcalidrawPlugin);
6 |
--------------------------------------------------------------------------------
/packages/excalidraw/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useExcalidrawElement';
6 |
--------------------------------------------------------------------------------
/packages/excalidraw/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './ExcalidrawPlugin';
6 | export * from './types';
7 | export * from './hooks/index';
8 |
--------------------------------------------------------------------------------
/packages/excalidraw/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/excalidraw/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/find-replace/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/find-replace/README.md:
--------------------------------------------------------------------------------
1 | # Plate find and replace plugin
2 |
3 | This package implements the find and replace plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Find & Replace](https://platejs.org/docs/find-replace).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/find-replace/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/find-replace/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './FindReplacePlugin';
6 | export * from './decorateFindReplace';
7 |
--------------------------------------------------------------------------------
/packages/find-replace/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/find-replace/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/floating/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/floating/README.md:
--------------------------------------------------------------------------------
1 | # Plate floating UI
2 |
3 | This package implements the floating UI for Plate.
4 |
5 | ## Documentation
6 |
7 | See Link, Mention.
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/floating/src/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useFloatingToolbar';
6 | export * from './useVirtualFloating';
7 |
--------------------------------------------------------------------------------
/packages/floating/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './createVirtualElement';
6 | export * from './hooks/index';
7 | export * from './libs/index';
8 | export * from './utils/index';
9 |
--------------------------------------------------------------------------------
/packages/floating/src/libs/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './floating-ui';
6 |
--------------------------------------------------------------------------------
/packages/floating/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/floating/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/font/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/font/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/font/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './setBlockBackgroundColor';
6 | export * from './setFontSize';
7 |
--------------------------------------------------------------------------------
/packages/font/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './toUnitLess';
6 |
--------------------------------------------------------------------------------
/packages/font/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useColorDropdownMenu';
6 | export * from './useColorInput';
7 | export * from './useColorsCustom';
8 |
--------------------------------------------------------------------------------
/packages/font/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './FontPlugin';
6 | export * from './hooks/index';
7 |
--------------------------------------------------------------------------------
/packages/font/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/font/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/heading/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/heading/README.md:
--------------------------------------------------------------------------------
1 | # Plate headings plugin
2 |
3 | This package implements the headings plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out
8 | [Basic Elements](https://platejs.org/docs/basic-elements).
9 |
10 | ## License
11 |
12 | [MIT](../../LICENSE)
13 |
--------------------------------------------------------------------------------
/packages/heading/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/heading/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertToc';
6 |
--------------------------------------------------------------------------------
/packages/heading/src/lib/types.ts:
--------------------------------------------------------------------------------
1 | import type { Path } from '@udecode/plate';
2 |
3 | export interface Heading {
4 | id: string;
5 | depth: number;
6 | path: Path;
7 | title: string;
8 | type: string;
9 | }
10 |
--------------------------------------------------------------------------------
/packages/heading/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './isHeading';
6 |
--------------------------------------------------------------------------------
/packages/heading/src/lib/utils/isHeading.ts:
--------------------------------------------------------------------------------
1 | import type { TNode } from '@udecode/plate';
2 |
3 | import { HEADING_LEVELS } from '../constants';
4 |
5 | export const isHeading = (node: TNode) => {
6 | return node.type && HEADING_LEVELS.includes(node.type as any);
7 | };
8 |
--------------------------------------------------------------------------------
/packages/heading/src/react/TocPlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseTocPlugin } from '../lib';
4 |
5 | export const TocPlugin = toPlatePlugin(BaseTocPlugin);
6 |
--------------------------------------------------------------------------------
/packages/heading/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './HeadingPlugin';
6 | export * from './TocPlugin';
7 | export * from './types';
8 | export * from './hooks/index';
9 | export * from './utils/index';
10 |
--------------------------------------------------------------------------------
/packages/heading/src/react/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './checkIn';
6 | export * from './heightToTop';
7 |
--------------------------------------------------------------------------------
/packages/heading/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/heading/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/highlight/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/highlight/README.md:
--------------------------------------------------------------------------------
1 | # Plate highlight plugin
2 |
3 | This package implements the text highlight plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Highlight](https://platejs.org/docs/highlight).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/highlight/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/highlight/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseHighlightPlugin';
6 |
--------------------------------------------------------------------------------
/packages/highlight/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './HighlightPlugin';
6 |
--------------------------------------------------------------------------------
/packages/highlight/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/highlight/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/horizontal-rule/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/horizontal-rule/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/horizontal-rule/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseHorizontalRulePlugin';
6 |
--------------------------------------------------------------------------------
/packages/horizontal-rule/src/react/HorizontalRulePlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseHorizontalRulePlugin } from '../lib';
4 |
5 | export const HorizontalRulePlugin = toPlatePlugin(BaseHorizontalRulePlugin);
6 |
--------------------------------------------------------------------------------
/packages/horizontal-rule/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './HorizontalRulePlugin';
6 |
--------------------------------------------------------------------------------
/packages/horizontal-rule/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/horizontal-rule/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/indent-list/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/indent-list/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/indent-list/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useIndentListToolbarButton';
6 | export * from './useIndentTodoListElement';
7 | export * from './useIndentTodoToolbarButton';
8 |
--------------------------------------------------------------------------------
/packages/indent-list/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './IndentListPlugin';
6 | export * from './onKeyDownIndentList';
7 | export * from './hooks/index';
8 |
--------------------------------------------------------------------------------
/packages/indent-list/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/indent-list/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/indent/README.md:
--------------------------------------------------------------------------------
1 | # Plate block indentation plugin
2 |
3 | This package implements block indentation support for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Indentation](https://platejs.org/docs/indent).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/indent/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/indent/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseIndentPlugin';
6 | export * from './BaseTextIndentPlugin';
7 | export * from './withIndent';
8 | export * from './transforms/index';
9 |
--------------------------------------------------------------------------------
/packages/indent/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './indent';
6 | export * from './outdent';
7 | export * from './setIndent';
8 |
--------------------------------------------------------------------------------
/packages/indent/src/react/TextIndentPlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseTextIndentPlugin } from '../lib';
4 |
5 | export const TextIndentPlugin = toPlatePlugin(BaseTextIndentPlugin);
6 |
--------------------------------------------------------------------------------
/packages/indent/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useIndentButton';
6 | export * from './useOutdentButton';
7 |
--------------------------------------------------------------------------------
/packages/indent/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './IndentPlugin';
6 | export * from './TextIndentPlugin';
7 | export * from './onKeyDownIndent';
8 | export * from './hooks/index';
9 |
--------------------------------------------------------------------------------
/packages/indent/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/indent/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/juice/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/juice/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/juice/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './JuicePlugin';
6 |
--------------------------------------------------------------------------------
/packages/juice/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/juice/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/kbd/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/kbd/README.md:
--------------------------------------------------------------------------------
1 | # Plate keyboard input plugin
2 |
3 | This package implements the keyboard input plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Keyboard Input](https://platejs.org/docs/kbd).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/kbd/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/kbd/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseKbdPlugin';
6 |
--------------------------------------------------------------------------------
/packages/kbd/src/react/KbdPlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseKbdPlugin } from '../lib/BaseKbdPlugin';
4 |
5 | /** Enables support for code formatting with React-specific features */
6 | export const KbdPlugin = toPlatePlugin(BaseKbdPlugin);
7 |
--------------------------------------------------------------------------------
/packages/kbd/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './KbdPlugin';
6 |
--------------------------------------------------------------------------------
/packages/kbd/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/kbd/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/layout/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/layout/README.md:
--------------------------------------------------------------------------------
1 | # Plate Column plugin
2 |
--------------------------------------------------------------------------------
/packages/layout/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/layout/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseColumnPlugin';
6 | export * from './types';
7 | export * from './withColumn';
8 | export * from './transforms/index';
9 | export * from './utils/index';
10 |
--------------------------------------------------------------------------------
/packages/layout/src/lib/utils/columnsToWidths.ts:
--------------------------------------------------------------------------------
1 | export const columnsToWidths = ({ columns = 2 }: { columns?: number } = {}) =>
2 | new Array(columns).fill(null).map(() => `${100 / columns}%`);
3 |
--------------------------------------------------------------------------------
/packages/layout/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './columnsToWidths';
6 |
--------------------------------------------------------------------------------
/packages/layout/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useDebouncePopoverOpen';
6 |
--------------------------------------------------------------------------------
/packages/layout/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './ColumnPlugin';
6 | export * from './onKeyDownColumn';
7 | export * from './hooks/index';
8 |
--------------------------------------------------------------------------------
/packages/layout/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/layout/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/line-height/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/line-height/README.md:
--------------------------------------------------------------------------------
1 | # Plate line height plugin
2 |
3 | This package implements the line height plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Line height](https://platejs.org/docs/line-height).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/line-height/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/line-height/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseLineHeightPlugin';
6 | export * from './transforms/index';
7 |
--------------------------------------------------------------------------------
/packages/line-height/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './setLineHeight';
6 |
--------------------------------------------------------------------------------
/packages/line-height/src/react/LineHeightPlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseLineHeightPlugin } from '../lib';
4 |
5 | export const LineHeightPlugin = toPlatePlugin(BaseLineHeightPlugin);
6 |
--------------------------------------------------------------------------------
/packages/line-height/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useLineHeightDropdownMenu';
6 |
--------------------------------------------------------------------------------
/packages/line-height/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './LineHeightPlugin';
6 | export * from './hooks/index';
7 |
--------------------------------------------------------------------------------
/packages/line-height/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/line-height/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/link/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/link/README.md:
--------------------------------------------------------------------------------
1 | # Plate link plugin
2 |
3 | This package implements the link plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Link](https://platejs.org/docs/link).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/link/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/link/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseLinkPlugin';
6 | export * from './types';
7 | export * from './withLink';
8 | export * from './transforms/index';
9 | export * from './utils/index';
10 |
--------------------------------------------------------------------------------
/packages/link/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertLink';
6 | export * from './unwrapLink';
7 | export * from './upsertLink';
8 | export * from './upsertLinkText';
9 | export * from './wrapLink';
10 |
--------------------------------------------------------------------------------
/packages/link/src/lib/types.ts:
--------------------------------------------------------------------------------
1 | import type { TElement } from '@udecode/plate';
2 |
3 | export interface TLinkElement extends TElement {
4 | url: string;
5 | target?: string;
6 | }
7 |
--------------------------------------------------------------------------------
/packages/link/src/lib/utils/safeDecodeUrl.ts:
--------------------------------------------------------------------------------
1 | export const safeDecodeUrl = (url: string) => {
2 | try {
3 | return decodeURI(url);
4 | } catch (error) {
5 | if (error instanceof URIError) {
6 | return url;
7 | }
8 |
9 | throw error;
10 | }
11 | };
12 |
--------------------------------------------------------------------------------
/packages/link/src/react/components/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useLink';
6 | export * from './useLinkToolbarButton';
7 | export * from './FloatingLink/index';
8 |
--------------------------------------------------------------------------------
/packages/link/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './LinkPlugin';
6 | export * from './components/index';
7 | export * from './transforms/index';
8 | export * from './utils/index';
9 |
--------------------------------------------------------------------------------
/packages/link/src/react/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './submitFloatingLink';
6 |
--------------------------------------------------------------------------------
/packages/link/src/react/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './triggerFloatingLink';
6 | export * from './triggerFloatingLinkEdit';
7 | export * from './triggerFloatingLinkInsert';
8 |
--------------------------------------------------------------------------------
/packages/link/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/link/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/list/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/list/README.md:
--------------------------------------------------------------------------------
1 | # Plate list plugin
2 |
3 | This package implements the list plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [List](https://platejs.org/docs/list).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/list/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/list/src/lib/normalizers/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './normalizeListItem';
6 | export * from './normalizeNestedList';
7 |
--------------------------------------------------------------------------------
/packages/list/src/lib/queries/someList.ts:
--------------------------------------------------------------------------------
1 | import type { SlateEditor } from '@udecode/plate';
2 |
3 | import { getListItemEntry } from '../index';
4 |
5 | export const someList = (editor: SlateEditor, type: string) => {
6 | return getListItemEntry(editor)?.list?.[0].type === type;
7 | };
8 |
--------------------------------------------------------------------------------
/packages/list/src/lib/transforms/indentListItems.ts:
--------------------------------------------------------------------------------
1 | import type { SlateEditor } from '@udecode/plate';
2 |
3 | import { moveListItems } from './moveListItems';
4 |
5 | export const indentListItems = (editor: SlateEditor) => {
6 | moveListItems(editor, { increase: true });
7 | };
8 |
--------------------------------------------------------------------------------
/packages/list/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useListToolbarButton';
6 | export * from './useTodoListElement';
7 |
--------------------------------------------------------------------------------
/packages/list/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/list/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/markdown/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/markdown/README.md:
--------------------------------------------------------------------------------
1 | # Plate MD serializer plugin
2 |
3 | This package implements the Markdown serializer for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out
8 | [Serializing Markdown](https://platejs.org/docs/markdown).
9 |
10 | ## License
11 |
12 | [MIT](./LICENSE)
13 |
--------------------------------------------------------------------------------
/packages/markdown/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/__snapshots__/mdx.spec.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`roundTrip should serialize callout correctly 1`] = `
4 | "
5 | Callout
6 |
7 | "
8 | `;
9 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/deserializer/__snapshots__/deserializeMd.spec.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`fixures when deserializing a empty value 1`] = `[]`;
4 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/plugins/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './remarkMdx';
6 | export * from './remarkMention';
7 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/plugins/remarkMdx.ts:
--------------------------------------------------------------------------------
1 | import baseRemarkMdx from 'remark-mdx';
2 |
3 | import { REMARK_MDX_TAG, tagRemarkPlugin } from '../utils';
4 |
5 | export const remarkMdx = tagRemarkPlugin(
6 | baseRemarkMdx,
7 | REMARK_MDX_TAG
8 | ) as typeof baseRemarkMdx;
9 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/rules/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './parseAttributes';
6 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/serializer/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getCustomMark';
6 | export * from './getMergedOptionsSerialize';
7 | export * from './getSerializerByKey';
8 | export * from './unreachable';
9 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/serializer/utils/unreachable.ts:
--------------------------------------------------------------------------------
1 | export const unreachable = (value: any) => {
2 | console.warn(`Unreachable code: ${JSON.stringify(value)}`);
3 | };
4 |
--------------------------------------------------------------------------------
/packages/markdown/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getRemarkPluginsWithoutMdx';
6 | export * from './mapTypeUtils';
7 |
--------------------------------------------------------------------------------
/packages/markdown/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/markdown/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/math/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/math/README.md:
--------------------------------------------------------------------------------
1 | # Plate math plugin
2 |
3 | This package implements the math plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [math](https://platejs.org/docs/math).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/math/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/math/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseEquationPlugin';
6 | export * from './BaseInlineEquationPlugin';
7 | export * from './transforms/index';
8 | export * from './utils/index';
9 |
--------------------------------------------------------------------------------
/packages/math/src/lib/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertEquation';
6 | export * from './insertInlineEquation';
7 |
--------------------------------------------------------------------------------
/packages/math/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getEquationHtml';
6 |
--------------------------------------------------------------------------------
/packages/math/src/react/EquationPlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseEquationPlugin } from '../lib';
4 |
5 | export const EquationPlugin = toPlatePlugin(BaseEquationPlugin);
6 |
--------------------------------------------------------------------------------
/packages/math/src/react/InlineEquationPlugin.tsx:
--------------------------------------------------------------------------------
1 | import { toPlatePlugin } from '@udecode/plate/react';
2 |
3 | import { BaseInlineEquationPlugin } from '../lib';
4 |
5 | export const InlineEquationPlugin = toPlatePlugin(BaseInlineEquationPlugin);
6 |
--------------------------------------------------------------------------------
/packages/math/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useEquationElement';
6 | export * from './useEquationInput';
7 |
--------------------------------------------------------------------------------
/packages/math/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './EquationPlugin';
6 | export * from './InlineEquationPlugin';
7 | export * from './hooks/index';
8 |
--------------------------------------------------------------------------------
/packages/math/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/math/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/media/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/media/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/media/src/lib/image/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertImage';
6 | export * from './insertImageFromFiles';
7 |
--------------------------------------------------------------------------------
/packages/media/src/lib/image/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './isImageUrl';
6 |
--------------------------------------------------------------------------------
/packages/media/src/lib/media-embed/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertMediaEmbed';
6 |
--------------------------------------------------------------------------------
/packages/media/src/lib/media/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertMedia';
6 | export * from './parseMediaUrl';
7 | export * from './types';
8 |
--------------------------------------------------------------------------------
/packages/media/src/lib/placeholder/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BasePlaceholderPlugin';
6 | export * from './transforms/index';
7 |
--------------------------------------------------------------------------------
/packages/media/src/lib/placeholder/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertPlaceholder';
6 | export * from './setMediaNode';
7 |
--------------------------------------------------------------------------------
/packages/media/src/react/image/components/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './Image';
6 | export * from './PreviewImage';
7 | export * from './useScaleInput';
8 |
--------------------------------------------------------------------------------
/packages/media/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './plugins';
6 | export * from './image/index';
7 | export * from './media/index';
8 | export * from './placeholder/index';
9 |
--------------------------------------------------------------------------------
/packages/media/src/react/placeholder/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './usePlaceholderElement';
6 | export * from './usePlaceholderPopover';
7 |
--------------------------------------------------------------------------------
/packages/media/src/react/placeholder/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './insertMedia';
6 |
--------------------------------------------------------------------------------
/packages/media/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/media/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/mention/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/mention/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/mention/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseMentionPlugin';
6 | export * from './getMentionOnSelectItem';
7 | export * from './types';
8 |
--------------------------------------------------------------------------------
/packages/mention/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './MentionPlugin';
6 |
--------------------------------------------------------------------------------
/packages/mention/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/mention/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/node-id/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/node-id/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/node-id/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './NodeIdPlugin';
6 | export * from './withNodeId';
7 |
--------------------------------------------------------------------------------
/packages/node-id/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/node-id/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/normalizers/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/normalizers/README.md:
--------------------------------------------------------------------------------
1 | # Plate normalizer plugins
2 |
3 | This package implements the normalizer plugins for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out
8 | [Forced Layout](https://platejs.org/docs/forced-layout).
9 |
10 | ## License
11 |
12 | [MIT](../../LICENSE)
13 |
--------------------------------------------------------------------------------
/packages/normalizers/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/normalizers/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './NormalizeTypesPlugin';
6 | export * from './RemoveEmptyNodesPlugin';
7 | export * from './withNormalizeTypes';
8 | export * from './withRemoveEmptyNodes';
9 |
--------------------------------------------------------------------------------
/packages/normalizers/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/normalizers/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/plate-utils/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/plate-utils/README.md:
--------------------------------------------------------------------------------
1 | # Plate utils
2 |
3 | ## Documentation
4 |
5 | Visit https://platejs.org/docs/api/utils to view the documentation.
6 |
7 | ## License
8 |
9 | [MIT](../../LICENSE)
10 |
--------------------------------------------------------------------------------
/packages/plate-utils/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/plate-utils/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './keep';
6 |
--------------------------------------------------------------------------------
/packages/plate-utils/src/lib/keep.ts:
--------------------------------------------------------------------------------
1 | export const __plateUtils__ = true;
2 |
--------------------------------------------------------------------------------
/packages/plate-utils/src/react/useEditorString.ts:
--------------------------------------------------------------------------------
1 | import { useEditorSelector } from '@udecode/plate-core/react';
2 |
3 | export const useEditorString = () => {
4 | return useEditorSelector((editor) => editor.api.string([]), []);
5 | };
6 |
--------------------------------------------------------------------------------
/packages/plate-utils/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/plate-utils/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/plate/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/plate/README.md:
--------------------------------------------------------------------------------
1 | # Plate utils
2 |
3 | ## License
4 |
5 | [MIT](../../LICENSE)
6 |
--------------------------------------------------------------------------------
/packages/plate/src/index.tsx:
--------------------------------------------------------------------------------
1 | export * from '@udecode/plate-core';
2 |
3 | export * from '@udecode/slate';
4 |
5 | export * from '@udecode/utils';
6 |
--------------------------------------------------------------------------------
/packages/plate/src/react/index.tsx:
--------------------------------------------------------------------------------
1 | export * from '@udecode/plate-core/react';
2 |
3 | export * from '@udecode/plate-utils/react';
4 |
5 | export * from '@udecode/react-hotkeys';
6 |
7 | export * from '@udecode/react-utils';
8 |
--------------------------------------------------------------------------------
/packages/plate/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/plate/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/playwright/README.md:
--------------------------------------------------------------------------------
1 | # Interact with a Plate editor from inside a Playwright test
2 |
3 | ## License
4 |
5 | [See LICENSE](./LICENSE)
6 |
--------------------------------------------------------------------------------
/packages/playwright/src/getEditable.ts:
--------------------------------------------------------------------------------
1 | import type { Locator, Page } from '@playwright/test';
2 |
3 | export const getEditable = (context: Locator | Page) =>
4 | context.locator('[data-slate-editor]');
5 |
--------------------------------------------------------------------------------
/packages/playwright/src/internal/globals.d.ts:
--------------------------------------------------------------------------------
1 | import type { TPlatePlaywrightAdapter } from './types';
2 |
3 | declare global {
4 | interface Window {
5 | platePlaywrightAdapter?: TPlatePlaywrightAdapter;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packages/playwright/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/playwright/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/react-hotkeys/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/react-hotkeys/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # @udecode/react-hotkeys
2 |
3 | ## 37.0.0
4 |
5 | ### Minor Changes
6 |
7 | - [#3420](https://github.com/udecode/plate/pull/3420) by [@zbeyens](https://github.com/zbeyens) –
8 | - NEW package: fork of `react-hotkeys-hook`
9 |
--------------------------------------------------------------------------------
/packages/react-hotkeys/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/react-hotkeys/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/react-utils/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/react-utils/README.md:
--------------------------------------------------------------------------------
1 | # Udecode React utils
2 |
3 | React utils used by the many packages of the Udecode ecosystem.
4 |
5 | ## Documentation
6 |
7 | Visit https://platejs.org/docs/api/react-utils to view the documentation.
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/react-utils/src/Box.tsx:
--------------------------------------------------------------------------------
1 | import type React from 'react';
2 |
3 | import { createSlotComponent } from './createSlotComponent';
4 |
5 | export const Box = createSlotComponent('div');
6 |
7 | export type BoxProps = React.ComponentPropsWithRef;
8 |
--------------------------------------------------------------------------------
/packages/react-utils/src/MemoizedChildren.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | export const MemoizedChildren = React.memo(
4 | ({ children }: { children: React.ReactNode }) => {
5 | return <>{children}>;
6 | }
7 | );
8 |
--------------------------------------------------------------------------------
/packages/react-utils/src/Text.tsx:
--------------------------------------------------------------------------------
1 | import type React from 'react';
2 |
3 | import { createSlotComponent } from './createSlotComponent';
4 |
5 | export const Text = createSlotComponent('span');
6 |
7 | export type TextProps = React.ComponentPropsWithRef;
8 |
--------------------------------------------------------------------------------
/packages/react-utils/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/react-utils/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/reset-node/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/reset-node/README.md:
--------------------------------------------------------------------------------
1 | # Plate reset node plugin
2 |
3 | This package implements the reset node plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out
8 | [Reset Node](https://platejs.org/docs/reset-node).
9 |
10 | ## License
11 |
12 | [MIT](../../LICENSE)
13 |
--------------------------------------------------------------------------------
/packages/reset-node/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/reset-node/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseResetNodePlugin';
6 | export * from './types';
7 |
--------------------------------------------------------------------------------
/packages/reset-node/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './ResetNodePlugin';
6 | export * from './onKeyDownResetNode';
7 |
--------------------------------------------------------------------------------
/packages/reset-node/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/reset-node/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/resizable/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/resizable/README.md:
--------------------------------------------------------------------------------
1 | # Resizable
2 |
3 | ## License
4 |
5 | [MIT](../../LICENSE)
6 |
--------------------------------------------------------------------------------
/packages/resizable/src/components/TResizableElement.ts:
--------------------------------------------------------------------------------
1 | import type { TElement } from '@udecode/plate';
2 |
3 | export interface TResizableElement extends TElement {
4 | align?: 'center' | 'left' | 'right';
5 | width?: number;
6 | }
7 |
--------------------------------------------------------------------------------
/packages/resizable/src/components/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './Resizable';
6 | export * from './ResizeHandle';
7 | export * from './TResizableElement';
8 | export * from './useResizableStore';
9 |
--------------------------------------------------------------------------------
/packages/resizable/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './types';
6 | export * from './components/index';
7 | export * from './utils/index';
8 |
--------------------------------------------------------------------------------
/packages/resizable/src/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './isTouchEvent';
6 | export * from './resizeLengthClamp';
7 | export * from './resizeLengthToRelative';
8 | export * from './resizeLengthToStatic';
9 |
--------------------------------------------------------------------------------
/packages/resizable/src/utils/isTouchEvent.ts:
--------------------------------------------------------------------------------
1 | export const isTouchEvent = (
2 | event: MouseEvent | TouchEvent
3 | ): event is TouchEvent => 'touches' in event;
4 |
--------------------------------------------------------------------------------
/packages/resizable/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/resizable/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/select/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/select/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/select/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './DeletePlugin';
6 | export * from './SelectOnBackspacePlugin';
7 | export * from './withSelectOnBackspace';
8 |
--------------------------------------------------------------------------------
/packages/select/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/select/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/selection/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/selection/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/selection/src/internal/index.ts:
--------------------------------------------------------------------------------
1 | export * from './EventEmitter'
2 | export * from './SelectionArea'
3 | export type * from './types'
4 | export * from './utils'
--------------------------------------------------------------------------------
/packages/selection/src/internal/utils/index.ts:
--------------------------------------------------------------------------------
1 | export * from './css';
2 | export * from './events';
3 | export * from './intersects';
4 | export * from './selectAll';
5 | export * from './constants';
6 | export * from './frames';
7 | export * from './shouldTrigger';
8 |
--------------------------------------------------------------------------------
/packages/selection/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './extractSelectableIds';
6 | export * from './getAboveDomNode';
7 | export * from './isSelecting';
8 |
--------------------------------------------------------------------------------
/packages/selection/src/react/components/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BlockSelectionAfterEditable';
6 |
--------------------------------------------------------------------------------
/packages/selection/src/react/queries/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getCaretPosition';
6 | export * from './getCursorOverlayState';
7 | export * from './getSelectionRects';
8 |
--------------------------------------------------------------------------------
/packages/selection/src/react/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './copySelectedBlocks';
6 | export * from './pasteSelectedBlocks';
7 | export * from './selectInsertedBlocks';
8 |
--------------------------------------------------------------------------------
/packages/selection/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "compilerOptions": {
4 | "paths": {}
5 | },
6 | "include": ["src"],
7 | "exclude": []
8 | }
9 |
--------------------------------------------------------------------------------
/packages/slash-command/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/slash-command/README.md:
--------------------------------------------------------------------------------
1 | # Plate slash commands plugin
2 |
3 | This package implements the slash commands plugin for Plate.
4 |
5 | ## License
6 |
7 | [MIT](../../LICENSE)
8 |
--------------------------------------------------------------------------------
/packages/slash-command/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/slash-command/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseSlashPlugin';
6 |
--------------------------------------------------------------------------------
/packages/slash-command/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './SlashPlugin';
6 |
--------------------------------------------------------------------------------
/packages/slash-command/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/slash-command/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/slate/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/slate/README.md:
--------------------------------------------------------------------------------
1 | # Slate extension
2 |
3 | ## Documentation
4 |
5 | Visit https://platejs.org/docs/api/slate to view the documentation.
6 |
7 | ## License
8 |
9 | [MIT](../../LICENSE)
10 |
--------------------------------------------------------------------------------
/packages/slate/src/interfaces/editor/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './editor-api';
6 | export * from './editor-transforms';
7 | export * from './editor-type';
8 | export * from './legacy-editor';
9 |
--------------------------------------------------------------------------------
/packages/slate/src/interfaces/scroll.ts:
--------------------------------------------------------------------------------
1 | import type { StandardBehaviorOptions } from 'scroll-into-view-if-needed';
2 |
3 | export type ScrollIntoViewOptions = StandardBehaviorOptions | boolean;
4 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/dom-editor/blur.ts:
--------------------------------------------------------------------------------
1 | import { DOMEditor } from 'slate-dom';
2 |
3 | import type { Editor } from '../../interfaces/editor';
4 |
5 | export const blur = (editor: Editor) => DOMEditor.blur(editor as any);
6 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/dom-editor/deselectDOM.ts:
--------------------------------------------------------------------------------
1 | import { DOMEditor } from 'slate-dom';
2 |
3 | import type { Editor } from '../../interfaces/editor';
4 |
5 | export const deselectDOM = (editor: Editor) =>
6 | DOMEditor.deselect(editor as any);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/dom-editor/insertData.ts:
--------------------------------------------------------------------------------
1 | import { DOMEditor } from 'slate-dom';
2 |
3 | import type { Editor } from '../../interfaces/editor';
4 |
5 | export const insertData = (editor: Editor, data: DataTransfer) =>
6 | DOMEditor.insertData(editor as any, data);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/dom-editor/isComposing.ts:
--------------------------------------------------------------------------------
1 | import { DOMEditor } from 'slate-dom';
2 |
3 | import type { Editor } from '../../interfaces/editor';
4 |
5 | export const isComposing = (editor: Editor) =>
6 | DOMEditor.isComposing(editor as any);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/dom-editor/isFocused.ts:
--------------------------------------------------------------------------------
1 | import { DOMEditor } from 'slate-dom';
2 |
3 | import type { Editor } from '../../interfaces/editor';
4 |
5 | export const isFocused = (editor: Editor) => DOMEditor.isFocused(editor as any);
6 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/dom-editor/isReadOnly.ts:
--------------------------------------------------------------------------------
1 | import { DOMEditor } from 'slate-dom';
2 |
3 | import type { Editor } from '../../interfaces/editor';
4 |
5 | export const isReadOnly = (editor: Editor) =>
6 | DOMEditor.isReadOnly(editor as any);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/dom-editor/setFragmentData.ts:
--------------------------------------------------------------------------------
1 | import { DOMEditor } from 'slate-dom';
2 |
3 | import type { Editor } from '../../interfaces/editor';
4 |
5 | export const setFragmentData = (editor: Editor, data: DataTransfer) =>
6 | DOMEditor.setFragmentData(editor as any, data);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor-extension/editor-mark.ts:
--------------------------------------------------------------------------------
1 | import type { Editor } from '../../interfaces/index';
2 |
3 | export const mark = (editor: Editor, key: string) => {
4 | const marks = editor.api.marks();
5 |
6 | return (marks as any)?.[key] as unknown;
7 | };
8 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor-extension/hasMark.ts:
--------------------------------------------------------------------------------
1 | import type { Editor } from '../../interfaces/editor/editor-type';
2 |
3 | export const hasMark = (editor: Editor, key: string) => {
4 | return !!editor.api.mark(key);
5 | };
6 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor/addMark.ts:
--------------------------------------------------------------------------------
1 | import { addMark as addMarkBase } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces/editor/editor-type';
4 |
5 | export const addMark = (editor: Editor, key: string, value: any) =>
6 | addMarkBase(editor as any, key, value);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor/getPathRefs.ts:
--------------------------------------------------------------------------------
1 | import { pathRefs } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces/editor/editor-type';
4 |
5 | export const getPathRefs = (editor: Editor) => pathRefs(editor as any);
6 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor/getPointRefs.ts:
--------------------------------------------------------------------------------
1 | import { pointRefs } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces/editor/editor-type';
4 |
5 | export const getPointRefs = (editor: Editor) => pointRefs(editor as any);
6 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor/getRangeRefs.ts:
--------------------------------------------------------------------------------
1 | import { rangeRefs } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces/editor/editor-type';
4 |
5 | export const getRangeRefs = (editor: Editor) => rangeRefs(editor as any);
6 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor/insertBreak.ts:
--------------------------------------------------------------------------------
1 | import { insertBreak as insertBreakBase } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces/editor/editor-type';
4 |
5 | export const insertBreak = (editor: Editor) => insertBreakBase(editor as any);
6 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor/isEditorNormalizing.ts:
--------------------------------------------------------------------------------
1 | import { isNormalizing } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces/editor/editor-type';
4 |
5 | export const isEditorNormalizing = (editor: Editor) =>
6 | isNormalizing(editor as any);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/editor/removeEditorMark.ts:
--------------------------------------------------------------------------------
1 | import { removeMark } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces/editor/editor-type';
4 |
5 | export const removeEditorMark = (editor: Editor, key: string) =>
6 | removeMark(editor as any, key);
7 |
--------------------------------------------------------------------------------
/packages/slate/src/internal/transforms/deselect.ts:
--------------------------------------------------------------------------------
1 | import { deselect as deselectBase } from 'slate';
2 |
3 | import type { Editor } from '../../interfaces';
4 |
5 | export const deselect = (editor: Editor) => {
6 | deselectBase(editor as any);
7 | };
8 |
--------------------------------------------------------------------------------
/packages/slate/src/slate-history/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './history';
6 | export * from './with-history';
7 |
--------------------------------------------------------------------------------
/packages/slate/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/slate/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/suggestion/.npmignore:
--------------------------------------------------------------------------------
1 | src/diff/internal
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/suggestion/README.md:
--------------------------------------------------------------------------------
1 | # Plate plugin for suggestion
2 |
3 | ## License
4 |
5 | [MIT](../../LICENSE)
6 |
--------------------------------------------------------------------------------
/packages/suggestion/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/suggestion/src/lib/queries/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './findSuggestionNode';
6 | export * from './findSuggestionProps';
7 |
--------------------------------------------------------------------------------
/packages/suggestion/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getActiveSuggestionDescriptions';
6 | export * from './getSuggestionId';
7 | export * from './getSuggestionKeys';
8 | export * from './getSuggestionNodeEntries';
9 |
--------------------------------------------------------------------------------
/packages/suggestion/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './SuggestionPlugin';
6 |
--------------------------------------------------------------------------------
/packages/suggestion/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/suggestion/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/tabbable/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/tabbable/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/tabbable/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseTabbablePlugin';
6 | export * from './findTabDestination';
7 | export * from './types';
8 |
--------------------------------------------------------------------------------
/packages/tabbable/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './TabbableEffects';
6 | export * from './TabbablePlugin';
7 |
--------------------------------------------------------------------------------
/packages/tabbable/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/tabbable/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/table/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/table/README.md:
--------------------------------------------------------------------------------
1 | # Plate table plugin
2 |
3 | This package implements the table plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Table](https://platejs.org/docs/table).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/table/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/table/src/lib/api/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './getEmptyCellNode';
6 | export * from './getEmptyRowNode';
7 | export * from './getEmptyTableNode';
8 |
--------------------------------------------------------------------------------
/packages/table/src/lib/constants.ts:
--------------------------------------------------------------------------------
1 | export const KEY_SHIFT_EDGES = {
2 | 'shift+down': 'bottom',
3 | 'shift+left': 'left',
4 | 'shift+right': 'right',
5 | 'shift+up': 'top',
6 | };
7 |
--------------------------------------------------------------------------------
/packages/table/src/lib/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './computeCellIndices';
6 | export * from './getCellIndices';
7 | export * from './getCellRowIndexByPath';
8 | export * from './getCellType';
9 |
--------------------------------------------------------------------------------
/packages/table/src/react/components/TableElement/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useSelectedCells';
6 | export * from './useTableColSizes';
7 | export * from './useTableElement';
8 |
--------------------------------------------------------------------------------
/packages/table/src/react/components/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './TableCellElement/index';
6 | export * from './TableElement/index';
7 |
--------------------------------------------------------------------------------
/packages/table/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useCellIndices';
6 | export * from './useTableMergeState';
7 |
--------------------------------------------------------------------------------
/packages/table/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './TablePlugin';
6 | export * from './onKeyDownTable';
7 | export * from './components/index';
8 | export * from './hooks/index';
9 | export * from './stores/index';
10 |
--------------------------------------------------------------------------------
/packages/table/src/react/stores/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useTableStore';
6 |
--------------------------------------------------------------------------------
/packages/table/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/table/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/tag/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/tag/README.md:
--------------------------------------------------------------------------------
1 | # Plate tag plugin
2 |
3 | This package implements the tag plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out [Tag](https://platejs.org/docs/tag).
8 |
9 | ## License
10 |
11 | [MIT](../../LICENSE)
12 |
--------------------------------------------------------------------------------
/packages/tag/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/tag/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseTagPlugin';
6 | export * from './isEqualTags';
7 |
--------------------------------------------------------------------------------
/packages/tag/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './TagPlugin';
6 | export * from './useSelectEditorCombobox';
7 | export * from './useSelectableItems';
8 | export * from './useSelectedItems';
9 |
--------------------------------------------------------------------------------
/packages/tag/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/tag/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/test-utils/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __mocks__
3 |
--------------------------------------------------------------------------------
/packages/test-utils/README.md:
--------------------------------------------------------------------------------
1 | # Plate test utilities
2 |
3 | This package implements the test utilities for Plate.
4 |
5 | ## License
6 |
7 | [MIT](../../LICENSE)
8 |
--------------------------------------------------------------------------------
/packages/test-utils/src/getHtmlDocument.ts:
--------------------------------------------------------------------------------
1 | export const getHtmlDocument = (html: string) =>
2 | new DOMParser().parseFromString(html, 'text/html');
3 |
--------------------------------------------------------------------------------
/packages/test-utils/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './createDataTransfer';
6 | export * from './getHtmlDocument';
7 | export * from './jsx';
8 |
--------------------------------------------------------------------------------
/packages/test-utils/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/test-utils/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/toggle/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/toggle/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/toggle/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './BaseTogglePlugin';
6 | export * from './queries/index';
7 |
--------------------------------------------------------------------------------
/packages/toggle/src/lib/queries/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './someToggle';
6 |
--------------------------------------------------------------------------------
/packages/toggle/src/react/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './useToggleButton';
6 | export * from './useToggleToolbarButton';
7 |
--------------------------------------------------------------------------------
/packages/toggle/src/react/queries/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './findElementIdsHiddenInToggle';
6 | export * from './getEnclosingToggleIds';
7 | export * from './getLastEntryEnclosedInToggle';
8 | export * from './isInClosedToggle';
9 |
--------------------------------------------------------------------------------
/packages/toggle/src/react/transforms/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './moveCurrentBlockAfterPreviousSelectable';
6 | export * from './moveNextSelectableAfterCurrentBlock';
7 | export * from './openNextToggles';
8 |
--------------------------------------------------------------------------------
/packages/toggle/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/toggle/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/trailing-block/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/trailing-block/README.md:
--------------------------------------------------------------------------------
1 | # Plate trailing-block plugin
2 |
3 | This package implements the trailing-block plugin for Plate.
4 |
5 | ## Documentation
6 |
7 | Check out
8 | [Playground](https://platejs.org/docs/playground).
9 |
10 | ## License
11 |
12 | [MIT](../../LICENSE)
13 |
--------------------------------------------------------------------------------
/packages/trailing-block/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 |
--------------------------------------------------------------------------------
/packages/trailing-block/src/lib/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './TrailingBlockPlugin';
6 | export * from './withTrailingBlock';
7 |
--------------------------------------------------------------------------------
/packages/trailing-block/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/trailing-block/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/utils/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/utils/README.md:
--------------------------------------------------------------------------------
1 | # Udecode Utils
2 |
3 | Utils used by the many packages of the Udecode ecosystem.
4 |
5 | ## License
6 |
7 | [MIT](../../LICENSE)
8 |
--------------------------------------------------------------------------------
/packages/utils/src/environment.ts:
--------------------------------------------------------------------------------
1 | export const IS_APPLE =
2 | typeof navigator !== 'undefined' && navigator.userAgent.includes('Mac OS X');
3 |
--------------------------------------------------------------------------------
/packages/utils/src/escapeRegexp.ts:
--------------------------------------------------------------------------------
1 | export const escapeRegExp = (text: string) => {
2 | return text.replaceAll(/[#$()*+,.?[\\\]^s{|}-]/g, String.raw`\$&`);
3 | };
4 |
--------------------------------------------------------------------------------
/packages/utils/src/getHandler.ts:
--------------------------------------------------------------------------------
1 | /** Call a handler if defined */
2 | export const getHandler =
3 | any>(cb?: T, ...args: Parameters) =>
4 | () => {
5 | cb?.(...(args as any));
6 | };
7 |
--------------------------------------------------------------------------------
/packages/utils/src/types/AnyObject.ts:
--------------------------------------------------------------------------------
1 | /** Any function. */
2 | export type AnyFunction = (...args: any) => any;
3 |
4 | export type AnyObject = Record;
5 |
6 | export type UnknownObject = Record;
7 |
--------------------------------------------------------------------------------
/packages/utils/src/types/Nullable.ts:
--------------------------------------------------------------------------------
1 | export type Nullable = {
2 | [P in keyof T]: T[P] | null;
3 | };
4 |
--------------------------------------------------------------------------------
/packages/utils/src/types/WithOptional.ts:
--------------------------------------------------------------------------------
1 | export type WithOptional = Omit &
2 | Partial>;
3 |
--------------------------------------------------------------------------------
/packages/utils/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/utils/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/packages/yjs/.npmignore:
--------------------------------------------------------------------------------
1 | __tests__
2 | __test-utils__
3 | __mocks__
4 |
--------------------------------------------------------------------------------
/packages/yjs/src/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './lib/index';
6 | export * from './utils/index';
7 |
--------------------------------------------------------------------------------
/packages/yjs/src/lib/providers/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './hocuspocus-provider';
6 | export * from './registry';
7 | export * from './types';
8 | export * from './webrtc-provider';
9 |
--------------------------------------------------------------------------------
/packages/yjs/src/react/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './YjsPlugin';
6 |
--------------------------------------------------------------------------------
/packages/yjs/src/utils/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @file Automatically generated by barrelsby.
3 | */
4 |
5 | export * from './slateToDeterministicYjsState';
6 |
--------------------------------------------------------------------------------
/packages/yjs/tsconfig.build.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.build.json",
3 | "compilerOptions": {
4 | "outDir": "./dist"
5 | },
6 | "include": ["src"]
7 | }
8 |
--------------------------------------------------------------------------------
/packages/yjs/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tooling/config/tsconfig.base.json",
3 | "include": ["src"],
4 | "exclude": []
5 | }
6 |
--------------------------------------------------------------------------------
/postcss.config.mjs:
--------------------------------------------------------------------------------
1 | export default { plugins: { '@tailwindcss/postcss': {} } };
2 |
--------------------------------------------------------------------------------
/prettier.config.mjs:
--------------------------------------------------------------------------------
1 | import config from './tooling/eslint/src/configs/prettier.base.config.js';
2 |
3 | /** @type {import('prettier').Config} */
4 | export default {
5 | ...config,
6 | tailwindStylesheet: './apps/www/src/app/globals.css',
7 | };
8 |
--------------------------------------------------------------------------------
/templates/plate-playground-template/.env.example:
--------------------------------------------------------------------------------
1 | OPENAI_API_KEY=
2 | UPLOADTHING_TOKEN=
--------------------------------------------------------------------------------
/templates/plate-playground-template/.prettierignore:
--------------------------------------------------------------------------------
1 | cache
2 | .cache
3 | package.json
4 | package-lock.json
5 | public
6 | CHANGELOG.md
7 | .yarn
8 | dist
9 | node_modules
10 | .next
11 | build
12 | .contentlayer
--------------------------------------------------------------------------------
/templates/plate-playground-template/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
6 |
--------------------------------------------------------------------------------
/templates/plate-playground-template/postcss.config.mjs:
--------------------------------------------------------------------------------
1 | export default { plugins: { '@tailwindcss/postcss': {} } };
2 |
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/app/api/uploadthing/route.ts:
--------------------------------------------------------------------------------
1 | import { createRouteHandler } from 'uploadthing/next';
2 |
3 | import { ourFileRouter } from '@/lib/uploadthing';
4 |
5 | export const { GET, POST } = createRouteHandler({ router: ourFileRouter });
6 |
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/app/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/templates/plate-playground-template/src/app/favicon.ico
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/app/fonts/GeistMonoVF.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/templates/plate-playground-template/src/app/fonts/GeistMonoVF.woff
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/app/fonts/GeistVF.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/templates/plate-playground-template/src/app/fonts/GeistVF.woff
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/components/editor/plugins/equation-plugins.ts:
--------------------------------------------------------------------------------
1 | 'use client';
2 |
3 | import {
4 | EquationPlugin,
5 | InlineEquationPlugin,
6 | } from '@udecode/plate-math/react';
7 |
8 | export const equationPlugins = [InlineEquationPlugin, EquationPlugin];
9 |
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/components/editor/plugins/table-plugin.ts:
--------------------------------------------------------------------------------
1 | 'use client';
2 |
3 | import { TablePlugin } from '@udecode/plate-table/react';
4 |
5 | export const tablePlugin = TablePlugin.configure({
6 | options: {},
7 | });
8 |
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/components/ui/code-line-element.tsx:
--------------------------------------------------------------------------------
1 | 'use client';
2 |
3 | import { type PlateElementProps, PlateElement } from '@udecode/plate/react';
4 |
5 | export function CodeLineElement(props: PlateElementProps) {
6 | return ;
7 | }
8 |
--------------------------------------------------------------------------------
/templates/plate-playground-template/src/lib/utils.ts:
--------------------------------------------------------------------------------
1 | import { type ClassValue, clsx } from 'clsx';
2 | import { twMerge } from 'tailwind-merge';
3 |
4 | export function cn(...inputs: ClassValue[]) {
5 | return twMerge(clsx(inputs));
6 | }
7 |
--------------------------------------------------------------------------------
/templates/plate-template/.prettierignore:
--------------------------------------------------------------------------------
1 | cache
2 | .cache
3 | package.json
4 | package-lock.json
5 | public
6 | CHANGELOG.md
7 | .yarn
8 | dist
9 | node_modules
10 | .next
11 | build
12 | .contentlayer
--------------------------------------------------------------------------------
/templates/plate-template/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
6 |
--------------------------------------------------------------------------------
/templates/plate-template/postcss.config.mjs:
--------------------------------------------------------------------------------
1 | export default { plugins: { '@tailwindcss/postcss': {} } };
2 |
--------------------------------------------------------------------------------
/templates/plate-template/src/app/editor/page.tsx:
--------------------------------------------------------------------------------
1 | import { PlateEditor } from '@/components/editor/plate-editor';
2 |
3 | export default function Page() {
4 | return (
5 |
8 | );
9 | }
10 |
--------------------------------------------------------------------------------
/templates/plate-template/src/app/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/templates/plate-template/src/app/favicon.ico
--------------------------------------------------------------------------------
/templates/plate-template/src/app/fonts/GeistMonoVF.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/templates/plate-template/src/app/fonts/GeistMonoVF.woff
--------------------------------------------------------------------------------
/templates/plate-template/src/app/fonts/GeistVF.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/udecode/plate/eeab51de48247fffb241449d690f414116d29424/templates/plate-template/src/app/fonts/GeistVF.woff
--------------------------------------------------------------------------------
/templates/plate-template/src/lib/utils.ts:
--------------------------------------------------------------------------------
1 | import { type ClassValue, clsx } from 'clsx';
2 | import { twMerge } from 'tailwind-merge';
3 |
4 | export function cn(...inputs: ClassValue[]) {
5 | return twMerge(clsx(inputs));
6 | }
7 |
--------------------------------------------------------------------------------
/tooling/config/.ncurc.yml:
--------------------------------------------------------------------------------
1 | # npm-check-updates configuration used by yarn deps:check && yarn deps:update
2 | # convenience scripts.
3 | # @link https://github.com/raineorshine/npm-check-updates
4 |
5 | # Add here exclusions on packages if any
6 | reject: []
--------------------------------------------------------------------------------
/tooling/config/deprecate/README.md:
--------------------------------------------------------------------------------
1 | This package is no longer maintained.
2 |
--------------------------------------------------------------------------------
/tooling/config/styleMock.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {};
2 |
--------------------------------------------------------------------------------
/tooling/scripts/add-ai.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # add editor-ai
4 | # node ./packages/cli/dist/index.js add localhost:3000/rd/editor-ai -c ./templates/plate-template
5 |
6 | ./pre-registry.sh && npx shadcn@canary add localhost:3000/rd/editor-ai -o && ./post-registry.sh
--------------------------------------------------------------------------------
/tooling/scripts/add-basic.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # add editor-ai
4 | node ./packages/cli/dist/index.js add localhost:3000/r/editor-basic -c ./templates/plate-template -o
5 |
--------------------------------------------------------------------------------
/tooling/scripts/init-plate-template.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # init plate in shadcn project
4 | node ./packages/cli/dist/index.js init http://localhost:3000/r -c ./templates/plate-template
--------------------------------------------------------------------------------
/tooling/scripts/init-plate.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # init plate in new project
4 | rimraf tmp
5 | mkdir -p tmp/my-app
6 | chmod -R 777 ./tmp
7 | node ./packages/cli/dist/index.js init http://localhost:3000/r -c ./tmp --pm pnpm -d
--------------------------------------------------------------------------------
/tooling/scripts/init.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # init shadcn in new project
4 | rimraf tmp
5 | mkdir -p tmp/my-app
6 | chmod -R 777 ./tmp
7 | node ./packages/cli/dist/index.js init -y -c ./tmp -d --pm pnpm
8 |
--------------------------------------------------------------------------------
/tooling/scripts/init2.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # init plate in shadcn project
4 | node ./packages/cli/dist/index.js init http://localhost:3000/r -c ./templates/plate-template
5 |
--------------------------------------------------------------------------------
/tooling/scripts/post-ai.sh:
--------------------------------------------------------------------------------
1 | sed -i '' 's|"url": "http://localhost:3000/r"|"url": "https://platejs.org/r"|' templates/plate-playground-template/components.json
--------------------------------------------------------------------------------
/tooling/scripts/post-basic.sh:
--------------------------------------------------------------------------------
1 | sed -i '' 's|"url": "http://localhost:3000/r"|"url": "https://platejs.org/r"|' templates/plate-template/components.json
--------------------------------------------------------------------------------
/tooling/scripts/pre-ai.sh:
--------------------------------------------------------------------------------
1 | sed -i '' 's|"url": "https://platejs.org/r"|"url": "http://localhost:3000/r"|' templates/plate-playground-template/components.json
--------------------------------------------------------------------------------
/tooling/scripts/pre-basic.sh:
--------------------------------------------------------------------------------
1 | sed -i '' 's|"url": "https://platejs.org/r"|"url": "http://localhost:3000/r"|' templates/plate-template/components.json
--------------------------------------------------------------------------------
/vercel.json:
--------------------------------------------------------------------------------
1 | {
2 | "functions": {
3 | "app/**/*": {
4 | "maxDuration": 1
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------