-
Notifications
You must be signed in to change notification settings - Fork 9
React App Shell: port os-chrome #303
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
| interface SidebarProps { | ||
| homeRef: any; | ||
| linkedCharms: any[]; | ||
| workingSpec: string; | ||
| focusedCharm: any; | ||
| handlePublish: () => void; | ||
| recipeId: string; | ||
| } | ||
|
|
||
| const Sidebar: React.FC< | ||
| SidebarProps & { | ||
| query: any; | ||
| onQueryChanged: (value: string) => void; | ||
| schema: any; | ||
| copyRecipeLink: () => void; | ||
| argument: any; | ||
| data: any; | ||
| onDataChanged: (value: string) => void; | ||
| onSpecChanged: (value: string) => void; | ||
| } | ||
| > = ({ |
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.
Messy and bloated, we need to work out where all this stuff comes from still
|
|
||
| import * as osUi from "@commontools/os-ui"; | ||
| import { OsChrome } from "@commontools/os-ui/src/components/os-chrome"; | ||
| console.log(osUi); |
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.
I have to use the variable or else it gets 'cleaned up' during build 🙃
| <WebComponent | ||
| slot="overlay" | ||
| as="os-fabgroup" | ||
| className="pin-br" | ||
| onSubmit={() => { | ||
| console.log("submitted"); | ||
| }} | ||
| /> |
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.
we can define interfaces and thin components for commonly used webcomponents using this same abstraction
it's a little bit automagical in terms of handling event names but... it works!
|
AMAZE! Thank you for doing all of this! -- I just tried it locally, I ran into a minor issue with a dependency issue for |
Screen.Recording.2025-02-03.at.1.20.38.pm.mov