-
Notifications
You must be signed in to change notification settings - Fork 416
feat: new @scalar/api-reference-editor
package
#2091
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
🦋 Changeset detectedLatest commit: 7c6b8bb The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
c2dcc21
to
f39214e
Compare
#2487 Bundle Size — 2.01MiB (+0.03%).Bundle metrics
Bundle analysis report Branch geoff/add-reference-editor Project dashboard |
@scalar/api-reference-editor
package
c1b9f61
to
4e6f03c
Compare
ba56a91
to
7837170
Compare
I’ve extracted the |
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 get an error for [vite-node] [ERR_LOAD_URL] ./nuxt-theme.css
on nuxt
also we should add some documentation to root README (even if just a link to the package readme) and remove our isEditable
prop
<slot></slot> | ||
</div> | ||
</template> | ||
<style> |
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.
lets scope this :)
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.
Done.
@@ -250,7 +250,19 @@ export type ReferenceLayoutSlot = | |||
| 'sidebar-start' | |||
| 'sidebar-end' | |||
|
|||
export type ReferenceLayoutSlots = { | |||
[x in ReferenceLayoutSlot]: (props: ReferenceSlotProps) => any |
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.
do we need to specify any here? maybe a comment would help : )
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'm not sure this is previous code that was moved.
import ClassicLayout from './ClassicLayout.vue' | ||
import ModernLayout from './ModernLayout.vue' | ||
|
||
// eslint-disable-next-line vue/no-unused-properties |
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.
should we just pick the props we use from this?
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.
No we are passing props through.
fix: Test removing scalar cli from galaxy fix: Correct type errors chore: restore galaxy build command chore: reset version docs(changeset): init docs(changeset): chore: introduce the new @scalar/api-reference-editor chore: update lock file fix: scope css
07772e8
to
7c6b8bb
Compare
Preview deployed to https://87882de7-78db-4ff9-99e8-f87d0e6a8a4d--scalar-deploy-preview.netlify.app |
Adds an editor package to the repo to enable spec editing with internal or external state.
Derived from: #1490
Also includes a fix to remove the npx call of
@scalar/cli
during build tooling which is dangerous.