@superwall/studio 1.3.0-beta.3 → 1.3.0-beta.4

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/dist/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
  <style>
15
15
  body { margin: 0; background: #1a1918; }
16
16
  </style>
17
- <script type="module" crossorigin src="/__studio/assets/index-DyLb5fiB.js"></script>
17
+ <script type="module" crossorigin src="/__studio/assets/index-CEz-HnIH.js"></script>
18
18
  <link rel="stylesheet" crossorigin href="/__studio/assets/index-_HCp6gCi.css">
19
19
  </head>
20
20
  <body>
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
+ import { type StudioMode } from "./lib/studio-host";
2
3
  import type { StudioSource } from "./lib/surfaces";
3
- export declare const StudioApp: ({ source, device, }: {
4
+ export declare const StudioApp: ({ source, mode, }: {
4
5
  source: StudioSource;
5
- device?: boolean;
6
+ mode?: StudioMode;
6
7
  }) => React.JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
- export declare const TopBar: ({ title, onHome, actions, inset, label, }: {
2
+ export declare const TopBar: ({ title, actions, inset, label, }: {
3
3
  title: string;
4
- onHome: () => void;
5
4
  actions?: React.ReactNode;
6
5
  inset?: boolean;
7
6
  label?: string;
@@ -12,6 +12,8 @@ export { Segmented, Select, Switch } from "./components/controls";
12
12
  export { DEFAULT_DEVICE_ID, deviceById, STUDIO_DEVICES } from "./lib/devices";
13
13
  export type { StudioDevice } from "./lib/devices";
14
14
  export { hostStateFor, studioDefaults } from "./lib/host";
15
+ export { hasActions } from "./lib/surfaces";
16
+ export { StudioHostProvider, useStudioHome, useStudioMode, type StudioHome, type StudioMode, } from "./lib/studio-host";
15
17
  export { createHostState, diffHostState, hasIntroductoryOffer, silentDelegate, type HostDelegate, type HostProduct, type HostState, } from "@superwall/host";
16
18
  export type { HostInputs } from "./lib/host";
17
19
  export { buildPreviewPath, hostedUrl, snapshotPreviewUrl, surfacePath } from "./lib/preview";