Repository navigation
Packaging - #6
Merged
Merged
Conversation
… it (e.g., to get our version).
…ion (our type declarations now have explicit file extensions) and with require() (our main export now uses the default condition).
…tation shows up in a consumer's editor.
…the documentation of our props and methods shows up in a consumer's editor, and linked our JSDoc comments to the README's Large and live data section.
… like we do after our other comments.
There was a problem hiding this comment.
🔵 Needs a closer look
Packaging changes to conditional exports and generated declaration specifiers require unavailable build-and-consumer validation across Node16/NodeNext and bundlers.
No open issues 🎉
What changed in this PR
This PR improves the package’s published TypeScript declarations and public API documentation while updating declaration cleanup and package exports for broader consumer compatibility.
Changes:
- Adds JSDoc documentation for public plot, context-menu, icon, event, prop, and method types.
- Rewrites relative declaration imports with explicit
.jsextensions. - Updates package exports and metadata, including a version bump and public subpaths.
| File | Description |
|---|---|
| src/widgets/PlotWidget.vue | Documents public plot data types, props, events, and exposed methods. |
| src/widgets/ContextMenuWidget.vue | Documents context-menu item types and properties. |
| src/common/icons.ts | Documents the exported icon-name type. |
| scripts/declarations.clean.ts | Rewrites relative declaration imports with explicit JavaScript extensions. |
| package.json | Updates the package version and export map, including public package metadata and stylesheet subpaths. |
Review effort: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.