@buildbase/sdk 0.0.6 → 0.0.7
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 +6 -5
- package/dist/index.esm.js +29 -1
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -0
- package/dist/types/providers/workspace/hooks.d.ts +2 -0
- package/package.json +3 -5
package/dist/index.d.ts
CHANGED
|
@@ -239,6 +239,11 @@ declare function useSaaSSettings(): {
|
|
|
239
239
|
getSettings: () => Promise<ISettings | null>;
|
|
240
240
|
};
|
|
241
241
|
|
|
242
|
+
declare function WorkspaceSwitcher(props: {
|
|
243
|
+
trigger: (isLoading: boolean, currentWorkspace: IWorkspace | null) => ReactNode;
|
|
244
|
+
onWorkspaceChange: (workspace: IWorkspace) => Promise<void>;
|
|
245
|
+
}): react_jsx_runtime.JSX.Element;
|
|
246
|
+
|
|
242
247
|
declare const useSaaSWorkspaces: () => {
|
|
243
248
|
workspaces: IWorkspace[];
|
|
244
249
|
loading: boolean;
|
|
@@ -246,6 +251,7 @@ declare const useSaaSWorkspaces: () => {
|
|
|
246
251
|
fetchWorkspaces: () => Promise<void>;
|
|
247
252
|
refreshWorkspaces: () => Promise<void>;
|
|
248
253
|
refreshing: boolean;
|
|
254
|
+
WorkspaceSwitcher: typeof WorkspaceSwitcher;
|
|
249
255
|
currentWorkspace: IWorkspace | null;
|
|
250
256
|
setCurrentWorkspace: (ws: IWorkspace) => void;
|
|
251
257
|
resetCurrentWorkspace: () => void;
|
|
@@ -279,11 +285,6 @@ declare const useSaaSWorkspaces: () => {
|
|
|
279
285
|
}>;
|
|
280
286
|
};
|
|
281
287
|
|
|
282
|
-
declare function WorkspaceSwitcher(props: {
|
|
283
|
-
trigger: (isLoading: boolean, currentWorkspace: IWorkspace | null) => ReactNode;
|
|
284
|
-
onWorkspaceChange: (workspace: IWorkspace) => Promise<void>;
|
|
285
|
-
}): react_jsx_runtime.JSX.Element;
|
|
286
|
-
|
|
287
288
|
/**
|
|
288
289
|
* EventEmitter class to handle and trigger event callbacks
|
|
289
290
|
* This class manages all event listeners and provides methods to trigger events
|