-
-
Notifications
You must be signed in to change notification settings - Fork 642
Add support for external_object_instance from github.com #219
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
Conversation
transitive-bullshit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an awesome set of changes @julbrs. Really great work.
Just a few minor nits and it's good-to-go.
packages/react-notion-x/src/components/external-component-github.tsx
Outdated
Show resolved
Hide resolved
|
Hi @transitive-bullshit 👋 Thanks for the review, I have added a commit with the suggested modification: e514502 I have also found some additional places to use Let me know if you find anything else, |
| const blockId = decorator[1] | ||
| const externalObjectInstance = recordMap.block[blockId] | ||
| ?.value as ExternalObjectInstance | ||
| switch (externalObjectInstance.format?.domain) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
externalObjectInstance may be undefined here
|
Awesome work; thanks @julbrs 🙏 Hoping to get a maintenance update out soon which should include this change. |
|
Published in |
* to get advantage of NotionX/react-notion-x#219 !

Hello!
The goal of this PR is to fix #216 for
github.comlinks only. It's the Preview mode, not the Mention mode (still need to work on it!)Here is an exemple page that contains this block: https://julb.notion.site/How-it-s-built-4ad0d992a4614b83854eff2fff616de6
It looks like that on notion:

It looks like that on react-notion-x with this PR:

Dark Mode:

Some infos:
owner/name) and no update date.Let me know if you need additional input!
Thanks!