Skip to content

Commit 17eb7e1

Browse files
authored
Merge pull request #4492 from udecode/registry
2 parents 63b5582 + 93332fe commit 17eb7e1

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

apps/www/public/r/basic-blocks-base-kit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"files": [
1313
{
1414
"path": "src/registry/components/editor/plugins/basic-blocks-base-kit.tsx",
15-
"content": "import {\n BaseBlockquotePlugin,\n BaseH1Plugin,\n BaseH2Plugin,\n BaseH3Plugin,\n BaseHorizontalRulePlugin,\n} from '@platejs/basic-nodes';\nimport { BaseParagraphPlugin } from 'platejs';\n\nimport { BlockquoteElementStatic } from '@/registry/ui/blockquote-node-static';\nimport {\n H1ElementStatic,\n H2ElementStatic,\n H3ElementStatic,\n} from '@/registry/ui/heading-node-static';\nimport { HrElementStatic } from '@/registry/ui/hr-node-static';\nimport { ParagraphElementStatic } from '@/registry/ui/paragraph-node-static';\n\nexport const BaseBasicBlocksKit = [\n BaseParagraphPlugin.withComponent(ParagraphElementStatic),\n BaseH1Plugin.withComponent(H1ElementStatic),\n BaseH2Plugin.withComponent(H2ElementStatic),\n BaseH3Plugin.withComponent(H3ElementStatic),\n BaseBlockquotePlugin.withComponent(BlockquoteElementStatic),\n BaseHorizontalRulePlugin.withComponent(HrElementStatic),\n];\n",
15+
"content": "import {\n BaseBlockquotePlugin,\n BaseH1Plugin,\n BaseH2Plugin,\n BaseH3Plugin,\n BaseH4Plugin,\n BaseH5Plugin,\n BaseH6Plugin,\n BaseHorizontalRulePlugin,\n} from '@platejs/basic-nodes';\nimport { BaseParagraphPlugin } from 'platejs';\n\nimport { BlockquoteElementStatic } from '@/registry/ui/blockquote-node-static';\nimport {\n H1ElementStatic,\n H2ElementStatic,\n H3ElementStatic,\n H4ElementStatic,\n H5ElementStatic,\n H6ElementStatic,\n} from '@/registry/ui/heading-node-static';\nimport { HrElementStatic } from '@/registry/ui/hr-node-static';\nimport { ParagraphElementStatic } from '@/registry/ui/paragraph-node-static';\n\nexport const BaseBasicBlocksKit = [\n BaseParagraphPlugin.withComponent(ParagraphElementStatic),\n BaseH1Plugin.withComponent(H1ElementStatic),\n BaseH2Plugin.withComponent(H2ElementStatic),\n BaseH3Plugin.withComponent(H3ElementStatic),\n BaseH4Plugin.withComponent(H4ElementStatic),\n BaseH5Plugin.withComponent(H5ElementStatic),\n BaseH6Plugin.withComponent(H6ElementStatic),\n BaseBlockquotePlugin.withComponent(BlockquoteElementStatic),\n BaseHorizontalRulePlugin.withComponent(HrElementStatic),\n];\n",
1616
"type": "registry:component"
1717
}
1818
]

apps/www/public/r/basic-blocks-kit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"files": [
1414
{
1515
"path": "src/registry/components/editor/plugins/basic-blocks-kit.tsx",
16-
"content": "'use client';\n\nimport {\n BlockquotePlugin,\n H1Plugin,\n H2Plugin,\n H3Plugin,\n HorizontalRulePlugin,\n} from '@platejs/basic-nodes/react';\nimport { ParagraphPlugin } from 'platejs/react';\n\nimport { BlockquoteElement } from '@/registry/ui/blockquote-node';\nimport { H1Element, H2Element, H3Element } from '@/registry/ui/heading-node';\nimport { HrElement } from '@/registry/ui/hr-node';\nimport { ParagraphElement } from '@/registry/ui/paragraph-node';\n\nexport const BasicBlocksKit = [\n ParagraphPlugin.withComponent(ParagraphElement),\n H1Plugin.configure({\n node: {\n component: H1Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+1' } },\n }),\n H2Plugin.configure({\n node: {\n component: H2Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+2' } },\n }),\n H3Plugin.configure({\n node: {\n component: H3Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+3' } },\n }),\n BlockquotePlugin.configure({\n node: { component: BlockquoteElement },\n shortcuts: { toggle: { keys: 'mod+shift+period' } },\n }),\n HorizontalRulePlugin.withComponent(HrElement),\n];\n",
16+
"content": "'use client';\n\nimport {\n BlockquotePlugin,\n H1Plugin,\n H2Plugin,\n H3Plugin,\n H4Plugin,\n H5Plugin,\n H6Plugin,\n HorizontalRulePlugin,\n} from '@platejs/basic-nodes/react';\nimport { ParagraphPlugin } from 'platejs/react';\n\nimport { BlockquoteElement } from '@/registry/ui/blockquote-node';\nimport { H1Element, H2Element, H3Element, H4Element, H5Element, H6Element } from '@/registry/ui/heading-node';\nimport { HrElement } from '@/registry/ui/hr-node';\nimport { ParagraphElement } from '@/registry/ui/paragraph-node';\n\nexport const BasicBlocksKit = [\n ParagraphPlugin.withComponent(ParagraphElement),\n H1Plugin.configure({\n node: {\n component: H1Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+1' } },\n }),\n H2Plugin.configure({\n node: {\n component: H2Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+2' } },\n }),\n H3Plugin.configure({\n node: {\n component: H3Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+3' } },\n }),\n H4Plugin.configure({\n node: {\n component: H4Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+4' } },\n }),\n H5Plugin.configure({\n node: {\n component: H5Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+5' } },\n }),\n H6Plugin.configure({\n node: {\n component: H6Element,\n },\n rules: {\n break: { empty: 'reset' },\n },\n shortcuts: { toggle: { keys: 'mod+alt+6' } },\n }),\n BlockquotePlugin.configure({\n node: { component: BlockquoteElement },\n shortcuts: { toggle: { keys: 'mod+shift+period' } },\n }),\n HorizontalRulePlugin.withComponent(HrElement),\n];\n",
1717
"type": "registry:component"
1818
}
1919
]

apps/www/public/r/list-classic-kit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"files": [
1414
{
1515
"path": "src/registry/components/editor/plugins/list-classic-kit.tsx",
16-
"content": "'use client';\n\nimport {\n BulletedListPlugin,\n ListItemPlugin,\n ListPlugin,\n NumberedListPlugin,\n TaskListPlugin,\n} from '@platejs/list-classic/react';\n\nimport {\n BulletedListElement,\n ListItemElement,\n NumberedListElement,\n TaskListElement,\n} from '@/registry/ui/list-classic-node';\n\nexport const ListKit = [\n ListPlugin,\n BulletedListPlugin.configure({\n node: { component: BulletedListElement },\n shortcuts: { toggle: { keys: 'mod+alt+5' } },\n }),\n NumberedListPlugin.configure({\n node: { component: NumberedListElement },\n shortcuts: { toggle: { keys: 'mod+alt+6' } },\n }),\n TaskListPlugin.configure({\n node: { component: TaskListElement },\n shortcuts: { toggle: { keys: 'mod+alt+7' } },\n }),\n ListItemPlugin.withComponent(ListItemElement),\n];\n",
16+
"content": "'use client';\n\nimport {\n BulletedListPlugin,\n ListItemContentPlugin,\n ListItemPlugin,\n NumberedListPlugin,\n TaskListPlugin,\n} from '@platejs/list-classic/react';\n\nimport {\n BulletedListElement,\n ListItemElement,\n NumberedListElement,\n TaskListElement,\n} from '@/registry/ui/list-classic-node';\n\nexport const ListKit = [\n ListItemPlugin,\n ListItemContentPlugin,\n BulletedListPlugin.configure({\n node: { component: BulletedListElement },\n shortcuts: { toggle: { keys: 'mod+alt+5' } },\n }),\n NumberedListPlugin.configure({\n node: { component: NumberedListElement },\n shortcuts: { toggle: { keys: 'mod+alt+6' } },\n }),\n TaskListPlugin.configure({\n node: { component: TaskListElement },\n shortcuts: { toggle: { keys: 'mod+alt+7' } },\n }),\n ListItemPlugin.withComponent(ListItemElement),\n];\n",
1717
"type": "registry:component"
1818
}
1919
]

apps/www/public/r/plate-types.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"files": [
1515
{
1616
"path": "src/registry/components/editor/plate-types.ts",
17-
"content": "'use client';\n\nimport type {\n EmptyText,\n KEYS,\n PlainText,\n TBasicMarks,\n TCaptionProps,\n TComboboxInputElement,\n TCommentText,\n TElement,\n TFontMarks,\n TImageElement,\n TLineHeightProps,\n TLinkElement,\n TListProps,\n TMediaEmbedElement,\n TMentionElement,\n TResizableProps,\n TTableElement,\n TText,\n TTextAlignProps,\n} from 'platejs';\n\nexport interface MyBlockElement extends TElement, TListProps {\n id?: string;\n}\n\nexport interface MyTextBlockElement\n extends TElement,\n TLineHeightProps,\n TTextAlignProps {\n children: (\n | MyLinkElement\n | MyMentionElement\n | MyMentionInputElement\n | RichText\n )[];\n}\n\nexport interface MyBlockquoteElement extends MyTextBlockElement {\n type: typeof KEYS.blockquote;\n}\n\nexport interface MyCodeBlockElement extends MyBlockElement {\n children: MyCodeLineElement[];\n type: typeof KEYS.codeBlock;\n}\n\nexport interface MyCodeLineElement extends TElement {\n children: PlainText[];\n type: typeof KEYS.codeLine;\n}\n\nexport interface MyH1Element extends MyTextBlockElement {\n type: typeof KEYS.h1;\n}\n\nexport interface MyH2Element extends MyTextBlockElement {\n type: typeof KEYS.h2;\n}\n\n/** Block props */\n\nexport interface MyH3Element extends MyTextBlockElement {\n type: typeof KEYS.h3;\n}\n\nexport interface MyHrElement extends MyBlockElement {\n children: [EmptyText];\n type: typeof KEYS.hr;\n}\n\nexport interface MyImageElement\n extends MyBlockElement,\n TCaptionProps,\n TImageElement,\n TResizableProps {\n children: [EmptyText];\n type: typeof KEYS.img;\n}\n\nexport interface MyLinkElement extends TLinkElement {\n children: RichText[];\n type: typeof KEYS.link;\n}\n\nexport interface MyMediaEmbedElement\n extends MyBlockElement,\n TCaptionProps,\n TMediaEmbedElement,\n TResizableProps {\n children: [EmptyText];\n type: typeof KEYS.mediaEmbed;\n}\n\nexport interface MyMentionElement extends TMentionElement {\n children: [EmptyText];\n type: typeof KEYS.mention;\n}\n\nexport interface MyMentionInputElement extends TComboboxInputElement {\n children: [PlainText];\n type: typeof KEYS.mentionInput;\n}\n\nexport type MyNestableBlock = MyParagraphElement;\n\nexport interface MyParagraphElement extends MyTextBlockElement {\n type: typeof KEYS.p;\n}\n\nexport interface MyTableCellElement extends TElement {\n children: MyNestableBlock[];\n type: typeof KEYS.td;\n}\n\nexport interface MyTableElement extends MyBlockElement, TTableElement {\n children: MyTableRowElement[];\n type: typeof KEYS.table;\n}\n\nexport interface MyTableRowElement extends TElement {\n children: MyTableCellElement[];\n type: typeof KEYS.tr;\n}\n\nexport interface MyToggleElement extends MyTextBlockElement {\n type: typeof KEYS.toggle;\n}\n\nexport interface RichText extends TBasicMarks, TCommentText, TFontMarks, TText {\n kbd?: boolean;\n}\n\nexport type MyValue = (\n | MyBlockquoteElement\n | MyCodeBlockElement\n | MyH1Element\n | MyH2Element\n | MyH3Element\n | MyHrElement\n | MyImageElement\n | MyMediaEmbedElement\n | MyParagraphElement\n | MyTableElement\n | MyToggleElement\n)[];\n",
17+
"content": "'use client';\n\nimport type {\n EmptyText,\n KEYS,\n PlainText,\n TBasicMarks,\n TCaptionProps,\n TComboboxInputElement,\n TCommentText,\n TElement,\n TFontMarks,\n TImageElement,\n TLineHeightProps,\n TLinkElement,\n TListProps,\n TMediaEmbedElement,\n TMentionElement,\n TResizableProps,\n TTableElement,\n TText,\n TTextAlignProps,\n} from 'platejs';\n\nexport interface MyBlockElement extends TElement, TListProps {\n id?: string;\n}\n\nexport interface MyTextBlockElement\n extends TElement,\n TLineHeightProps,\n TTextAlignProps {\n children: (\n | MyLinkElement\n | MyMentionElement\n | MyMentionInputElement\n | RichText\n )[];\n}\n\nexport interface MyBlockquoteElement extends MyTextBlockElement {\n type: typeof KEYS.blockquote;\n}\n\nexport interface MyCodeBlockElement extends MyBlockElement {\n children: MyCodeLineElement[];\n type: typeof KEYS.codeBlock;\n}\n\nexport interface MyCodeLineElement extends TElement {\n children: PlainText[];\n type: typeof KEYS.codeLine;\n}\n\nexport interface MyH1Element extends MyTextBlockElement {\n type: typeof KEYS.h1;\n}\n\nexport interface MyH2Element extends MyTextBlockElement {\n type: typeof KEYS.h2;\n}\n\n/** Block props */\n\nexport interface MyH3Element extends MyTextBlockElement {\n type: typeof KEYS.h3;\n}\n\nexport interface MyH4Element extends MyTextBlockElement {\n type: typeof KEYS.h4;\n}\n\nexport interface MyH5Element extends MyTextBlockElement {\n type: typeof KEYS.h5;\n}\n\nexport interface MyH6Element extends MyTextBlockElement {\n type: typeof KEYS.h6;\n}\n\nexport interface MyHrElement extends MyBlockElement {\n children: [EmptyText];\n type: typeof KEYS.hr;\n}\n\nexport interface MyImageElement\n extends MyBlockElement,\n TCaptionProps,\n TImageElement,\n TResizableProps {\n children: [EmptyText];\n type: typeof KEYS.img;\n}\n\nexport interface MyLinkElement extends TLinkElement {\n children: RichText[];\n type: typeof KEYS.link;\n}\n\nexport interface MyMediaEmbedElement\n extends MyBlockElement,\n TCaptionProps,\n TMediaEmbedElement,\n TResizableProps {\n children: [EmptyText];\n type: typeof KEYS.mediaEmbed;\n}\n\nexport interface MyMentionElement extends TMentionElement {\n children: [EmptyText];\n type: typeof KEYS.mention;\n}\n\nexport interface MyMentionInputElement extends TComboboxInputElement {\n children: [PlainText];\n type: typeof KEYS.mentionInput;\n}\n\nexport type MyNestableBlock = MyParagraphElement;\n\nexport interface MyParagraphElement extends MyTextBlockElement {\n type: typeof KEYS.p;\n}\n\nexport interface MyTableCellElement extends TElement {\n children: MyNestableBlock[];\n type: typeof KEYS.td;\n}\n\nexport interface MyTableElement extends MyBlockElement, TTableElement {\n children: MyTableRowElement[];\n type: typeof KEYS.table;\n}\n\nexport interface MyTableRowElement extends TElement {\n children: MyTableCellElement[];\n type: typeof KEYS.tr;\n}\n\nexport interface MyToggleElement extends MyTextBlockElement {\n type: typeof KEYS.toggle;\n}\n\nexport interface RichText extends TBasicMarks, TCommentText, TFontMarks, TText {\n kbd?: boolean;\n}\n\nexport type MyValue = (\n | MyBlockquoteElement\n | MyCodeBlockElement\n | MyH1Element\n | MyH2Element\n | MyH3Element\n | MyH4Element\n | MyH5Element\n | MyH6Element\n | MyHrElement\n | MyImageElement\n | MyMediaEmbedElement\n | MyParagraphElement\n | MyTableElement\n | MyToggleElement\n)[];\n",
1818
"type": "registry:component"
1919
}
2020
]

0 commit comments

Comments
 (0)