Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: UI libs CSS+API refactor #698

Merged
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
bd8c2e7
Cleaned up component context API
matthewlipski Apr 9, 2024
67709b9
WIP
matthewlipski Apr 11, 2024
abc0235
Refactored CSS & ShadCN API
matthewlipski Apr 19, 2024
f95006a
Fixed Ariakit component props
matthewlipski Apr 19, 2024
09f1093
Fixed Mantine component props
matthewlipski Apr 19, 2024
e6ad649
Fixed ShadCN component props
matthewlipski Apr 19, 2024
0f15fcd
Cleanup
matthewlipski Apr 19, 2024
015d2df
Misc fixes
matthewlipski Apr 19, 2024
7dfd920
- Added remaining components to context
matthewlipski Apr 24, 2024
487c0fb
Changed ShadCN suggestion menu to use Card
matthewlipski Apr 24, 2024
f818962
Small fix
matthewlipski Apr 24, 2024
89b7b87
Fixed linting
matthewlipski Apr 24, 2024
0896ca7
Fixed `BlockNoteViewRaw` typing
matthewlipski Apr 24, 2024
7d4b701
Misc fixes
matthewlipski Apr 24, 2024
d459a50
Misc fixes
matthewlipski Apr 24, 2024
e11e2ee
Fixed unit tests
matthewlipski Apr 24, 2024
62df240
Fixed Mantine sub menus
matthewlipski Apr 24, 2024
28d4fc1
Misc UI fixes
matthewlipski Apr 24, 2024
1023c09
Misc changes
matthewlipski Apr 24, 2024
d655d32
fix import
YousefED Apr 24, 2024
05b8a96
fix tablehandles performance issue / max call stack
YousefED Apr 24, 2024
2e8998e
Fixed PW tests
matthewlipski Apr 25, 2024
1a9b28e
Merge remote-tracking branch 'origin/refactor/ui-libs-api-css' into r…
matthewlipski Apr 25, 2024
2c506ff
Small fix
matthewlipski Apr 25, 2024
661e555
Added ShadCN/Ariakit tests
matthewlipski Apr 26, 2024
8f74a30
fix draghandles
YousefED Apr 29, 2024
f5b2fac
Merge branch 'refactor/ui-libs-api-css' of github.com:TypeCellOS/Bloc…
YousefED Apr 29, 2024
85e8ae5
add vercel rewrites
YousefED Apr 29, 2024
dc2fded
improve shadcn setup
YousefED Apr 29, 2024
8c53a67
Fixed remaining Ariakit/ShadCN/Mantine styles
matthewlipski Apr 29, 2024
bc6470c
extract strings from react package
YousefED Apr 29, 2024
9b02851
Merge branch 'refactor/ui-libs-api-css' of github.com:TypeCellOS/Bloc…
YousefED Apr 29, 2024
e97bcc9
extract all strings
YousefED Apr 29, 2024
c442d2c
clean i18n setup
YousefED Apr 29, 2024
1f0a370
fix build
YousefED Apr 29, 2024
be5a021
Fixed dark mode for Ariakit/ShadCN
matthewlipski Apr 30, 2024
b55ab71
Misc fixes
matthewlipski Apr 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions examples/01-basic/01-minimal/App.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
import "@blocknote/core/fonts/inter.css";
import { useCreateBlockNote } from "@blocknote/react";
import "@blocknote/react/style.css";
import { uploadToTmpFilesDotOrg_DEV_ONLY } from "@blocknote/core";

import { BlockNoteView } from "@blocknote/mantine";
// import { BlockNoteView } from "@blocknote/ariakit";
// import { BlockNoteView } from "@blocknote/mantine";
// import "@blocknote/mantine/styles.css";
matthewlipski marked this conversation as resolved.
Show resolved Hide resolved
import { BlockNoteView } from "@blocknote/ariakit";
import "@blocknote/ariakit/style.css";
// import { BlockNoteView } from "@blocknote/shadcn";
matthewlipski marked this conversation as resolved.
Show resolved Hide resolved
// import "@blocknote/shadcn/style.css";

export default function App() {
// Creates a new editor instance.
const editor = useCreateBlockNote({
uploadFile: uploadToTmpFilesDotOrg_DEV_ONLY,
initialContent: [
{
type: "image",
},
{
type: "paragraph",
content: "Hello, world!",
},
],
});

// Renders the editor instance using a React component.
Expand Down
Loading
Loading