storysplat-viewer 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -522,7 +522,7 @@ function StorySplatViewer({ sceneId }) {
522
522
  </head>
523
523
  <body>
524
524
  <div id="app"></div>
525
- <script src="https://unpkg.com/storysplat-viewer@2/dist/storysplat-viewer.umd.js"></script>
525
+ <script src="https://cdn.jsdelivr.net/npm/storysplat-viewer@2/dist/storysplat-viewer.bundled.umd.js"></script>
526
526
  <script>
527
527
  StorySplatViewer.createViewerFromSceneId(
528
528
  document.getElementById('app'),
@@ -578,7 +578,7 @@ class _StorySplatViewerState extends State<StorySplatViewer> {
578
578
  </head>
579
579
  <body>
580
580
  <div id="app"></div>
581
- <script src="https://unpkg.com/storysplat-viewer@2/dist/storysplat-viewer.umd.js"></script>
581
+ <script src="https://cdn.jsdelivr.net/npm/storysplat-viewer@2/dist/storysplat-viewer.bundled.umd.js"></script>
582
582
  <script>
583
583
  StorySplatViewer.createViewerFromSceneId(
584
584
  document.getElementById('app'),
@@ -630,17 +630,18 @@ npm pack storysplat-viewer
630
630
 
631
631
  ### CDN Alternatives
632
632
 
633
- The viewer is available on multiple CDNs:
633
+ The viewer is available on multiple CDNs. **We recommend the bundled build for simplicity** - it includes PlayCanvas, so you only need one script:
634
634
 
635
635
  ```html
636
- <!-- unpkg (default) -->
637
- <script src="https://unpkg.com/storysplat-viewer@2/dist/storysplat-viewer.umd.js"></script>
636
+ <!-- RECOMMENDED: Bundled build (includes PlayCanvas - single script!) -->
637
+ <script src="https://cdn.jsdelivr.net/npm/storysplat-viewer@2/dist/storysplat-viewer.bundled.umd.js"></script>
638
638
 
639
- <!-- jsDelivr -->
639
+ <!-- Alternative: Separate scripts (if you need a specific PlayCanvas version) -->
640
+ <script src="https://cdn.jsdelivr.net/npm/playcanvas@2.14.3/build/playcanvas.min.js"></script>
640
641
  <script src="https://cdn.jsdelivr.net/npm/storysplat-viewer@2/dist/storysplat-viewer.umd.js"></script>
641
642
 
642
- <!-- Specific version -->
643
- <script src="https://unpkg.com/storysplat-viewer@2.0.0/dist/storysplat-viewer.umd.js"></script>
643
+ <!-- unpkg alternative -->
644
+ <script src="https://unpkg.com/storysplat-viewer@2/dist/storysplat-viewer.bundled.umd.js"></script>
644
645
  ```
645
646
 
646
647
  ### Standalone HTML Generation