Skip to content

Add viewer-settings subpath exposing the vendored viewer's settings api - #308

Merged
slimbuck merged 1 commit into
playcanvas:mainfrom
slimbuck:viewer-export
Aug 25, 2026
Merged

Add viewer-settings subpath exposing the vendored viewer's settings api#308
slimbuck merged 1 commit into
playcanvas:mainfrom
slimbuck:viewer-export

Conversation

@slimbuck

Copy link
Copy Markdown
Member

Adds a ./viewer-settings exports subpath re-exporting @playcanvas/supersplat-viewer/settings (types, shared defaults, validation, migration, authoring ranges). This package already vendors and pins the viewer for its html writer, so producers like supersplat get the settings api matching the embedded viewer from a single dependency, with no version skew.

@slimbuck
slimbuck requested a balanced review from Copilot August 25, 2026 09:07
@slimbuck slimbuck self-assigned this Aug 25, 2026
@slimbuck slimbuck added the enhancement New feature or request label Aug 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a version-aligned viewer settings API subpath.

Changes:

  • Bundles and exports viewer settings.
  • Copies bundled type declarations.
  • Adds packaging and API parity tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
package.json Registers the new export subpath.
rollup.config.mjs Builds runtime and declaration artifacts.
src/lib/viewer-settings.ts Re-exports the viewer settings API.
test/viewer-settings.test.mjs Verifies exports, defaults, and declarations.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/lib/viewer-settings.ts
Comment thread test/viewer-settings.test.mjs
@slimbuck
slimbuck marked this pull request as ready for review August 25, 2026 09:20
@slimbuck
slimbuck requested a review from a team August 25, 2026 09:20
@slimbuck
slimbuck merged commit 9b9d87b into playcanvas:main Aug 25, 2026
3 checks passed
@slimbuck
slimbuck deleted the viewer-export branch August 25, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants