@sevenfold/setto-client 0.45.0 → 0.47.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/dist/chrome.d.ts CHANGED
@@ -90,6 +90,14 @@ declare global {
90
90
  * What the host should render in a named place, or null while the chrome has
91
91
  * offered nothing — including after it offered something that threw. Callers
92
92
  * render their own version when this is null; every one of them must have one.
93
+ *
94
+ * Also null while supabase-js is still loading (0.47). Everything the chrome
95
+ * offers is an editor's — the dashboard, the menu, the section and image tools
96
+ * — and was written against a `useSetto().supabase` that always existed. The
97
+ * library is fetched only when it is needed now, so an offered component waits
98
+ * here, with the host's own version in its place, until the client is there;
99
+ * asking for the component is what fetches it. For an owner it has long since
100
+ * loaded, since there is no session without it; a guest editor pays here.
93
101
  */
94
102
  export declare function useSettoChromeSlot<P extends object = Record<string, never>>(name: string): React.ComponentType<P> | null;
95
103
  /** @deprecated Use `useSettoChromeSlot('admin')`. */