@rebasepro/app 0.11.0 → 0.11.1-canary.g8caabf3
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/components/RebaseAuth.d.ts +1 -1
- package/dist/core/Rebase.d.ts +1 -1
- package/dist/core/RebaseProps.d.ts +6 -6
- package/dist/hooks/useBuildModeController.d.ts +1 -1
- package/dist/hooks/useCustomizationController.d.ts +1 -1
- package/dist/hooks/useRebaseRegistry.d.ts +2 -2
- package/dist/hooks/useStudioBridge.d.ts +10 -10
- package/dist/index.es.js +79 -79
- package/dist/index.es.js.map +1 -1
- package/package.json +7 -7
- package/src/components/RebaseAuth.tsx +1 -1
- package/src/components/common/useColumnsIds.tsx +1 -1
- package/src/core/Rebase.tsx +2 -3
- package/src/core/RebaseProps.tsx +6 -6
- package/src/hooks/useBuildModeController.tsx +1 -1
- package/src/hooks/useCustomizationController.tsx +1 -1
- package/src/hooks/useRebaseContext.tsx +1 -1
- package/src/hooks/useRebaseRegistry.tsx +4 -4
- package/src/hooks/useStudioBridge.tsx +10 -10
- package/src/index.ts +1 -1
- package/src/locales/de.ts +9 -9
- package/src/locales/en.ts +9 -9
- package/src/locales/es.ts +9 -9
- package/src/locales/fr.ts +9 -9
- package/src/locales/hi.ts +10 -10
- package/src/locales/it.ts +10 -10
- package/src/locales/pt.ts +9 -9
|
@@ -4,7 +4,7 @@ import type { RebaseAuthConfig } from "@rebasepro/admin-types";
|
|
|
4
4
|
* Renders nothing — purely registers config into the RebaseRegistry.
|
|
5
5
|
*
|
|
6
6
|
* This is a framework-level component that lives in core since
|
|
7
|
-
* authentication is cross-cutting (
|
|
7
|
+
* authentication is cross-cutting (admin, Studio, any app area).
|
|
8
8
|
* @group Core
|
|
9
9
|
*/
|
|
10
10
|
export declare function RebaseAuth({ loginView }: RebaseAuthConfig): null;
|
package/dist/core/Rebase.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { RebaseProps } from "./RebaseProps";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { User } from "@rebasepro/types";
|
|
4
4
|
/**
|
|
5
|
-
* If you are using independent components of the
|
|
5
|
+
* If you are using independent components of the admin
|
|
6
6
|
* you need to wrap them with this main component, so the internal hooks work.
|
|
7
7
|
*
|
|
8
8
|
* This is the main component of Rebase. It acts as the provider of all the
|
|
@@ -116,7 +116,7 @@ export type RebaseProps<USER extends User> = {
|
|
|
116
116
|
*/
|
|
117
117
|
basePath?: string;
|
|
118
118
|
/**
|
|
119
|
-
* Optional base path for the
|
|
119
|
+
* Optional base path for the admin collections.
|
|
120
120
|
* Defaults to "/c"
|
|
121
121
|
*/
|
|
122
122
|
baseCollectionPath?: string;
|
|
@@ -127,12 +127,12 @@ export type RebaseProps<USER extends User> = {
|
|
|
127
127
|
*/
|
|
128
128
|
apiUrl?: string;
|
|
129
129
|
/**
|
|
130
|
-
* Format of the dates in the
|
|
130
|
+
* Format of the dates in the admin.
|
|
131
131
|
* Defaults to 'MMMM dd, yyyy, HH:mm:ss'
|
|
132
132
|
*/
|
|
133
133
|
dateTimeFormat?: string;
|
|
134
134
|
/**
|
|
135
|
-
* Locale of the
|
|
135
|
+
* Locale of the admin, currently only affecting dates
|
|
136
136
|
*/
|
|
137
137
|
locale?: Locale;
|
|
138
138
|
/**
|
|
@@ -228,7 +228,7 @@ export type RebaseProps<USER extends User> = {
|
|
|
228
228
|
*/
|
|
229
229
|
userConfigPersistence?: UserConfigurationPersistence;
|
|
230
230
|
/**
|
|
231
|
-
* Callback used to get analytics events from the
|
|
231
|
+
* Callback used to get analytics events from the admin
|
|
232
232
|
*/
|
|
233
233
|
onAnalyticsEvent?: (event: AnalyticsEvent, data?: object) => void;
|
|
234
234
|
/**
|
|
@@ -237,11 +237,11 @@ export type RebaseProps<USER extends User> = {
|
|
|
237
237
|
*/
|
|
238
238
|
entityLinkBuilder?: EntityLinkBuilder;
|
|
239
239
|
/**
|
|
240
|
-
* Plugins loaded in the
|
|
240
|
+
* Plugins loaded in the admin
|
|
241
241
|
*/
|
|
242
242
|
plugins?: RebasePlugin[];
|
|
243
243
|
/**
|
|
244
|
-
* Extra slots for the
|
|
244
|
+
* Extra slots for the admin
|
|
245
245
|
*/
|
|
246
246
|
slots?: SlotContribution[];
|
|
247
247
|
/**
|
|
@@ -2,7 +2,7 @@ import type { CustomizationController } from "@rebasepro/admin-types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Use this hook to retrieve the customization controller.
|
|
4
4
|
* This hook includes all the customization options that can be used
|
|
5
|
-
* to customize the
|
|
5
|
+
* to customize the admin.
|
|
6
6
|
*
|
|
7
7
|
* You will likely not need to use this hook directly.
|
|
8
8
|
*
|
|
@@ -10,8 +10,8 @@ import type { RebaseRegistryController, RebaseAdminConfig, RebaseStudioConfig, R
|
|
|
10
10
|
* RebaseShell consumes state context to read the collected configs.
|
|
11
11
|
*/
|
|
12
12
|
interface RegistryDispatch {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
registerAdmin: (config: RebaseAdminConfig) => void;
|
|
14
|
+
unregisterAdmin: () => void;
|
|
15
15
|
registerStudio: (config: RebaseStudioConfig) => void;
|
|
16
16
|
unregisterStudio: () => void;
|
|
17
17
|
registerAuth: (config: RebaseAuthConfig) => void;
|
|
@@ -3,9 +3,9 @@ import type { CollectionRegistryController } from "@rebasepro/types";
|
|
|
3
3
|
import type { SidePanelController, UrlController, NavigationStateController, BreadcrumbEntry, BreadcrumbsController } from "@rebasepro/admin-types";
|
|
4
4
|
export type { BreadcrumbEntry, BreadcrumbsController };
|
|
5
5
|
/**
|
|
6
|
-
* StudioBridge provides optional
|
|
7
|
-
* When
|
|
8
|
-
* When
|
|
6
|
+
* StudioBridge provides optional admin capabilities to Studio components.
|
|
7
|
+
* When the admin is present, a bridge provider injects real implementations.
|
|
8
|
+
* When the admin is absent, noop defaults ensure Studio works standalone.
|
|
9
9
|
*/
|
|
10
10
|
export interface StudioBridge {
|
|
11
11
|
collectionRegistry: CollectionRegistryController;
|
|
@@ -16,10 +16,10 @@ export interface StudioBridge {
|
|
|
16
16
|
}
|
|
17
17
|
export declare const StudioBridgeContext: React.Context<StudioBridge>;
|
|
18
18
|
/**
|
|
19
|
-
* Provider that injects
|
|
19
|
+
* Provider that injects admin capabilities into Studio.
|
|
20
20
|
* Accepts partial overrides — any field not provided falls back to noop.
|
|
21
21
|
*
|
|
22
|
-
* Usage (in app wiring, when
|
|
22
|
+
* Usage (in app wiring, when the admin is present):
|
|
23
23
|
* ```tsx
|
|
24
24
|
* <StudioBridgeProvider value={{
|
|
25
25
|
* collectionRegistry: useCollectionRegistryController(),
|
|
@@ -36,15 +36,15 @@ export declare function StudioBridgeProvider({ value, children }: {
|
|
|
36
36
|
value: Partial<StudioBridge>;
|
|
37
37
|
children: React.ReactNode;
|
|
38
38
|
}): React.JSX.Element;
|
|
39
|
-
/** Collection registry — returns noop if
|
|
39
|
+
/** Collection registry — returns noop if the admin is not present. */
|
|
40
40
|
export declare function useStudioCollectionRegistry(): CollectionRegistryController;
|
|
41
|
-
/** Side panel controller — returns noop if
|
|
41
|
+
/** Side panel controller — returns noop if the admin is not present. */
|
|
42
42
|
export declare function useStudioSidePanelController(): SidePanelController;
|
|
43
|
-
/** URL controller — returns noop if
|
|
43
|
+
/** URL controller — returns noop if the admin is not present. */
|
|
44
44
|
export declare function useStudioUrlController(): UrlController;
|
|
45
|
-
/** Navigation state — returns noop if
|
|
45
|
+
/** Navigation state — returns noop if the admin is not present. */
|
|
46
46
|
export declare function useStudioNavigationState(): NavigationStateController;
|
|
47
|
-
/** Breadcrumbs controller — returns noop if
|
|
47
|
+
/** Breadcrumbs controller — returns noop if the admin is not present. */
|
|
48
48
|
export declare function useStudioBreadcrumbs(): BreadcrumbsController;
|
|
49
49
|
/**
|
|
50
50
|
* Registry that controllers use to self-register their implementations
|