Skip to content

Add shared React asset base package#51

Merged
tfukaza merged 3 commits into
update-docsfrom
feat/asset-base-react
Jul 18, 2026
Merged

Add shared React asset base package#51
tfukaza merged 3 commits into
update-docsfrom
feat/asset-base-react

Conversation

@tfukaza

@tfukaza tfukaza commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • add @snap-engine/asset-base-react with shared Engine, Camera, and Background components, contexts, hooks, forwarded refs, injected-instance support, and React Strict Mode-safe cleanup
  • reuse the shared Engine context from the SnapSort and SnapLine React adapters and support React 18 and React 19
  • add the React demo, documentation, TypeScript mappings, lifecycle coverage, and camera interaction coverage
  • publish the core cleanup needed for framework-owned DOM lifecycles as @snap-engine/core@0.4.1
  • make asset tag publishing idempotent and add trusted-publisher support for the new React package

Published packages

  • @snap-engine/asset-base-react@0.1.0
  • @snap-engine/snapsort-react@0.1.0
  • @snap-engine/core@0.4.1

Validation

  • npm run lint
  • npm run build
  • npx tsc --noEmit -p assets/asset-base/react/tsconfig.json
  • npx tsc --noEmit -p assets/snapsort/react/tsconfig.json
  • npx tsc --noEmit -p assets/snapline/react/tsconfig.json
  • npm run test:asset-base-react
  • npm run test:camera-control-react
  • npm run test:snapline-react
  • package tarball inspection for both newly published packages
  • clean React 19 consumer production build using both exact 0.1.0 tarballs

The full SnapSort React suite reports 52 passing, 5 skipped, and 7 failing tests. Targeted failures reproduce unchanged at the update-docs base commit, so they are not introduced by this branch.

@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
snap-engine-js Ready Ready Preview, Comment Jul 17, 2026 6:25am

@tfukaza
tfukaza marked this pull request as ready for review July 18, 2026 20:54
@tfukaza
tfukaza merged commit fb25d33 into update-docs Jul 18, 2026
4 checks passed
@tfukaza
tfukaza deleted the feat/asset-base-react branch July 18, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant