@superwall/studio 1.4.0 → 1.5.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.
Files changed (46) hide show
  1. package/README.md +2 -2
  2. package/dist/assets/index-Bi2YHYVJ.js +11 -0
  3. package/dist/assets/index-DrsTCwot.css +1 -0
  4. package/dist/index.html +2 -2
  5. package/dist/lib/components/chrome/Toolbar.d.ts +1 -0
  6. package/dist/lib/components/chrome/TopBar.d.ts +1 -0
  7. package/dist/lib/components/icons.d.ts +1 -0
  8. package/dist/lib/components/menus/CompareMenu.d.ts +2 -1
  9. package/dist/lib/components/preview/Canvas.d.ts +18 -0
  10. package/dist/lib/components/preview/DeviceFrame.d.ts +4 -4
  11. package/dist/lib/components/preview/ResizeHandles.d.ts +13 -0
  12. package/dist/lib/index.d.ts +1 -1
  13. package/dist/lib/index.js +2296 -1616
  14. package/dist/lib/lib/canvas.d.ts +27 -0
  15. package/dist/lib/lib/contract.d.ts +7 -1
  16. package/dist/lib/lib/devices.d.ts +9 -0
  17. package/dist/lib/lib/host.d.ts +2 -1
  18. package/dist/lib/lib/presentation.d.ts +23 -0
  19. package/dist/lib/lib/preview.d.ts +1 -0
  20. package/dist/lib/lib/surfaces.d.ts +23 -2
  21. package/dist/lib/studio.css +1 -1
  22. package/package.json +2 -2
  23. package/src/components/DownloadScreenshot.tsx +45 -18
  24. package/src/components/PaywallToasts.tsx +5 -3
  25. package/src/components/chrome/Toolbar.tsx +47 -6
  26. package/src/components/chrome/TopBar.tsx +37 -3
  27. package/src/components/icons.tsx +6 -0
  28. package/src/components/menus/ActionMenu.tsx +1 -1
  29. package/src/components/menus/CompareMenu.tsx +49 -30
  30. package/src/components/preview/Canvas.tsx +426 -0
  31. package/src/components/preview/DeviceFrame.tsx +83 -74
  32. package/src/components/preview/ResizeHandles.tsx +205 -0
  33. package/src/index.ts +2 -0
  34. package/src/lib/canvas.ts +60 -0
  35. package/src/lib/contract.ts +8 -1
  36. package/src/lib/devices.ts +52 -4
  37. package/src/lib/host.ts +7 -2
  38. package/src/lib/presentation.ts +102 -0
  39. package/src/lib/preview.ts +3 -0
  40. package/src/lib/project.ts +43 -1
  41. package/src/lib/surfaces.ts +39 -1
  42. package/src/main.tsx +5 -1
  43. package/src/screens/SurfaceEditor.tsx +215 -52
  44. package/src/styles.css +46 -0
  45. package/dist/assets/index-GB-RwJI6.js +0 -11
  46. package/dist/assets/index-Sz7S5UsH.css +0 -1
package/README.md CHANGED
@@ -124,8 +124,8 @@ editor. What the library gives a host:
124
124
  controls for the User, Device, Params and Products groups the SDK reports.
125
125
  Override changes hot-swap: the next frame loads hidden and crossfades, so
126
126
  nothing ever flashes white. Shipping happens here too: an action menu runs
127
- Push, Publish and Promote, and a Compare menu diffs the preview against
128
- the live paywall.
127
+ Push, Publish and Promote, and a Compare menu splits the stage against any
128
+ pushed version of the paywall (the live one marked) or another local one.
129
129
 
130
130
  ## Design
131
131