feat: add notebook widget (#294)
* feat: add nestjs replacement, remove nestjs * feat: add notebook widget * fix: format issue * fix: add missing tiptap packages * refactor: improve structure of table options * fix: downgrade to tiptap 2.2.5 as not yet supported by mantine/tiptap * fix: format issue * fix: deepsource issues * fix: typecheck issues * refactor: move default notebook content to seperate file * fix: format issue
This commit is contained in:
@@ -37,9 +37,6 @@
|
||||
"@tanstack/react-query": "^5.29.0",
|
||||
"@tanstack/react-query-devtools": "^5.29.0",
|
||||
"@tanstack/react-query-next-experimental": "5.29.0",
|
||||
"@tiptap/extension-link": "^2.2.5",
|
||||
"@tiptap/react": "^2.2.5",
|
||||
"@tiptap/starter-kit": "^2.2.5",
|
||||
"@trpc/client": "11.0.0-rc.332",
|
||||
"@trpc/next": "next",
|
||||
"@trpc/react-query": "next",
|
||||
|
||||
@@ -112,6 +112,8 @@ export const WidgetPreviewPageContent = ({
|
||||
width={dimensions.width}
|
||||
height={dimensions.height}
|
||||
isEditMode={editMode}
|
||||
boardId={undefined}
|
||||
itemId={undefined}
|
||||
/>
|
||||
</Card>
|
||||
<Affix bottom={12} right={72}>
|
||||
|
||||
@@ -88,6 +88,7 @@ interface ItemProps {
|
||||
}
|
||||
|
||||
const BoardItem = ({ item, ...dimensions }: ItemProps) => {
|
||||
const board = useRequiredBoard();
|
||||
const editMode = useAtomValue(editModeAtom);
|
||||
const serverData = useServerDataFor(item.id);
|
||||
const Comp = loadWidgetDynamic(item.kind);
|
||||
@@ -104,6 +105,8 @@ const BoardItem = ({ item, ...dimensions }: ItemProps) => {
|
||||
integrations={item.integrations}
|
||||
serverData={serverData?.data as never}
|
||||
isEditMode={editMode}
|
||||
boardId={board.id}
|
||||
itemId={item.id}
|
||||
{...dimensions}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user