@webmaster-droid/web 0.1.0-alpha.0 → 0.1.0-alpha.1
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.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -678,20 +678,20 @@ declare function useWebmasterDroid(): WebmasterDroidContextValue;
|
|
|
678
678
|
|
|
679
679
|
declare function WebmasterDroidOverlay(): react_jsx_runtime.JSX.Element | null;
|
|
680
680
|
|
|
681
|
-
type WebmasterDroidCmsContextValue = {
|
|
682
|
-
document:
|
|
681
|
+
type WebmasterDroidCmsContextValue<TDocument extends CmsDocument = CmsDocument> = {
|
|
682
|
+
document: TDocument;
|
|
683
683
|
stage: "live" | "draft";
|
|
684
684
|
loading: boolean;
|
|
685
685
|
error: string | null;
|
|
686
686
|
};
|
|
687
|
-
declare function WebmasterDroidRuntime(props: {
|
|
687
|
+
declare function WebmasterDroidRuntime<TDocument extends CmsDocument>(props: {
|
|
688
688
|
children: ReactNode;
|
|
689
|
-
fallbackDocument:
|
|
689
|
+
fallbackDocument: TDocument;
|
|
690
690
|
config?: WebmasterDroidConfig;
|
|
691
691
|
includeOverlay?: boolean;
|
|
692
692
|
applyThemeTokens?: boolean;
|
|
693
693
|
}): react_jsx_runtime.JSX.Element;
|
|
694
|
-
declare function useWebmasterDroidCmsDocument(): WebmasterDroidCmsContextValue
|
|
694
|
+
declare function useWebmasterDroidCmsDocument<TDocument extends CmsDocument = CmsDocument>(): WebmasterDroidCmsContextValue<TDocument>;
|
|
695
695
|
|
|
696
696
|
declare function getSupabaseBrowserClient(config: ResolvedWebmasterDroidConfig): SupabaseClient | null;
|
|
697
697
|
|