-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Feat/spec renderer resolved #8028
Conversation
|
@jackkav for now, we'd recommend utilizing the default theme (light) in the short term. There is theming available currently via CSS Custom Properties; however, we're going to bake-in easier theming and possibly a default dark theme that you can then tweak for Insomnia specifically. We're working with Design on getting some "official" themes, so recommended to hold on working on customizing on your own in the short-term |
I was trying to fix the styling and I encountered a couple of dx issues,
|
I'm not sure on this one; nothing in the web component should be triggering this?
This typically happens when a Additionally, do you need to unmount the web component at some point, e.g. |
@@ -42,6 +42,7 @@ | |||
"@getinsomnia/node-libcurl": "^2.4.31-0", | |||
"@grpc/grpc-js": "^1.10.10", | |||
"@grpc/proto-loader": "^0.7.13", | |||
"@kong/spec-renderer-dev": "^1.76.4-pr.339.fdf5330.0", |
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 merged in the changes from this PR preview into main
for now (still need to resolve exports, etc.) but you can install the latest
npm i @kong/spec-renderer-dev@latest
Both issues could be caused by the place we register I can try a few other places that are more likely to only eval once |
above idea didn't work, looks like the spec renderer register function is interfering with vite HMR in insomnia. |
Motivation: use internel spec renderer, over swagger-ui-dist
Aim: drop-in replacement
Todo:
Future work