Skip to content

Commit aa6538b

Browse files
authored
✨ Plate Headless UI
1 parent 56dc99f commit aa6538b

File tree

3,757 files changed

+90717
-98627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,757 files changed

+90717
-98627
lines changed

.all-contributorsrc

-150
This file was deleted.

.changeset/align.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-alignment': minor
3+
---
4+
5+
New exports:
6+
- `useAlignDropdownMenu`

.changeset/cloud-minor.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@udecode/plate-cloud': minor
3+
---
4+
5+
New exports:
6+
- `generateSrcAndSrcSet`
7+
- `useCloudAttachmentElementState`
8+
- `useCloudImageElementState`

.changeset/codeblock.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@udecode/plate-code-block': minor
3+
---
4+
5+
New exports:
6+
- `useCodeBlockElement`
7+
- `useCodeBlockSelectElement`
8+
- `useCodeSyntaxLeaf`

.changeset/combobox.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@udecode/plate-combobox': minor
3+
---
4+
5+
New hooks:
6+
- `useComboboxContent`
7+
- `useComboboxItem`

.changeset/comments-major.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@udecode/plate-comments': major
3+
---
4+
5+
Removed:
6+
- `AccountCircleIcon`
7+
- `CheckIcon`
8+
- `MoreVertIcon`
9+
- `RefreshIcon`
10+
- `AvatarImage`
11+
- `CommentLinkButton`
12+
- `CommentLinkDialog`
13+
- `CommentLinkDialogCloseButton`
14+
- `CommentLinkDialogCopyLink`
15+
- `CommentLinkDialogInput`
16+
- `PlateCommentLeaf` for `useCommentLeafState`

.changeset/comments-minor.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-comments': minor
3+
---
4+
5+
New exports:
6+
-

.changeset/config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": ["./changelog-config", { "repo": "udecode/plate" }],
44
"commit": false,
5-
"linked": [["@udecode/slate*", "@udecode/plate*"]],
5+
"linked": [["@udecode/*", "plate-cli"]],
66
"access": "public",
77
"baseBranch": "main",
88
"updateInternalDependencies": "patch",
9-
"ignore": ["examples*"]
9+
"ignore": ["apps*"]
1010
}

.changeset/core-minor.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-core': minor
3+
---
4+
5+
New plugin option:
6+
- `enabled`: boolean to enable/disable the plugin

.changeset/dnd-major.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@udecode/plate-dnd': major
3+
---
4+
5+
Removed:
6+
- `Draggable`
7+
- `DraggableBlock`
8+
- `DraggableBlockToolbar`
9+
- `DraggableBlockToolbarWrapper`
10+
- `DraggableDropline`
11+
- `DraggableGutterLeftProps`
12+
- `DraggableRoot`
13+
- `DragHandle`

.changeset/emoji.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@udecode/plate-emoji': minor
3+
---
4+
5+
New exports:
6+
- `useEmojiCombobox`
7+
- `useEmojiDropdownMenuState`

.changeset/excalidraw.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@udecode/plate-excalidraw': minor
3+
---
4+
5+
Renamed package to `@udecode/plate-excalidraw`.
6+
New hooks:
7+
- `useExalidawElement`

.changeset/font.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@udecode/plate-font': minor
3+
---
4+
5+
New exports:
6+
- `useColorDropdownMenu`
7+
- `useColorInput`
8+
- `useColorsCustom`

.changeset/indent-list.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@udecode/plate-indent-list': minor
3+
---
4+
5+
New exports:
6+
- `someIndentList`
7+
- `useIndentListToolbarButton`

.changeset/indent.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@udecode/plate-indent': minor
3+
---
4+
5+
New exports:
6+
- `useIndentButton`
7+
- `useOutdentButton`

.changeset/link-major.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@udecode/plate-link': major
3+
---
4+
5+
Removed:
6+
- `FloatingLink`
7+
- `FloatingLinkEditButton`
8+
- `FloatingLinkTextInput`
9+
- `UnlinkButton`
10+
- `LaunchIcon`
11+
- `Link`
12+
- `LinkIcon`
13+
- `LinkOffIcon`
14+
- `ShortTextIcon`

.changeset/link.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@udecode/plate-link': minor
3+
---
4+
5+
New hooks:
6+
- `useLink`
7+
- `useLinkToolbarButton`

.changeset/list.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@udecode/plate-link': minor
3+
---
4+
5+
New exports:
6+
- `useListToolbarButton`
7+
- `useTodoListElement`
8+
- `someList`

.changeset/media-major.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@udecode/plate-media': major
3+
---
4+
5+
Removed:
6+
- `MediaEmbed`

.changeset/media.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@udecode/plate-media': minor
3+
---
4+
5+
New exports:
6+
- `insertMedia`
7+
- `useMediaState`
8+
- `useMediaToolbarButton`

.changeset/plate-utils-major.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@udecode/plate-utils': major
3+
---
4+
5+
Upgraded peer dependencies:
6+
- `slate-react: >=0.95.0`
7+
Removed:
8+
- `useElementPrpos`
9+
- `useWrapElement`
10+
- `createComponentAs`
11+
- `createElementAs`

.changeset/plate-utils.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
'@udecode/plate-utils': minor
3+
---
4+
5+
New components:
6+
- `PlateElement`: Headless element component
7+
- `PlateLeaf`: Headless leaf component
8+
- `Box`: Slot div component
9+
- `Text`: Slot text component
10+
- `PortalBody`
11+
New hooks:
12+
- `useMarkToolbarButton`
13+
- `usePlaceholder`
14+
- `useRemoveNodeButton`
15+
New functions:
16+
- `getRootProps`
17+
- `createSlotComponent`: Merges its props onto its immediate child. https://www.radix-ui.com/docs/primitives/utilities/slot
18+
- `createPrimitiveComponent`: Primitive component factory used by most Plate components. It uses hooks for managing state and props, and forwards references to child components.
19+
Component props:
20+
- `asChild`: If true, the component will be rendered as a `Slot` {@link https://www.radix-ui.com/docs/primitives/utilities/slot}.
21+
- `options`: Options passed to the state hook.
22+
- `state`: Provide your state instead of using the state hook.
23+
- `...props`: Props to be passed to the component.
24+
Props hook return value:
25+
- `ref`: Reference to be forwarded to the component.
26+
- `props`: Props to be passed to the component.
27+
- `hidden`: If true, the component will not be rendered.
28+
Example:
29+
```tsx
30+
const MyButton = createPrimitiveComponent(Button)({
31+
stateHook: useButtonState,
32+
propsHook: useButton
33+
});
34+
```

0 commit comments

Comments
 (0)