@sevenfold/setto-client 0.46.0 → 0.48.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 +8 -0
- package/dist/chunks/SettoChat-SqJlsGXL.js +14899 -0
- package/dist/chunks/SettoChat-SqJlsGXL.js.map +1 -0
- package/dist/chunks/supabase-Dn3DJaKR.js +20737 -0
- package/dist/chunks/supabase-Dn3DJaKR.js.map +1 -0
- package/dist/lib/api.d.ts +7 -1
- package/dist/lib/supabase.d.ts +58 -7
- package/dist/lib/use-site-access.d.ts +3 -1
- package/dist/modules/chat/SettoChat.d.ts +13 -2
- package/dist/modules/chat/index.d.ts +31 -1
- package/dist/modules/chat/realtime.d.ts +17 -0
- package/dist/modules/chat/settings.d.ts +25 -0
- package/dist/provider.d.ts +20 -2
- package/dist/setto-client.js +1967 -37307
- package/dist/setto-client.js.map +1 -1
- package/package.json +1 -1
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')`. */
|