@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.
@@ -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 (CMS, Studio, any app area).
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;
@@ -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 CMS
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 CMS collections.
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 CMS.
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 CMS, currently only affecting dates
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 CMS
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 CMS
240
+ * Plugins loaded in the admin
241
241
  */
242
242
  plugins?: RebasePlugin[];
243
243
  /**
244
- * Extra slots for the CMS
244
+ * Extra slots for the admin
245
245
  */
246
246
  slots?: SlotContribution[];
247
247
  /**
@@ -1,6 +1,6 @@
1
1
  import type { ModeController } from "./useModeController";
2
2
  /**
3
3
  * Use this hook to build a color mode controller that determines
4
- * the theme of the CMS
4
+ * the theme of the admin
5
5
  */
6
6
  export declare function useBuildModeController(): ModeController;
@@ -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 CMS.
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
- registerCMS: (config: RebaseAdminConfig) => void;
14
- unregisterCMS: () => void;
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 CMS capabilities to Studio components.
7
- * When CMS is present, a bridge provider injects real implementations.
8
- * When CMS is absent, noop defaults ensure Studio works standalone.
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 CMS capabilities into Studio.
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 CMS is present):
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 CMS is not present. */
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 CMS is not present. */
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 CMS is not present. */
43
+ /** URL controller — returns noop if the admin is not present. */
44
44
  export declare function useStudioUrlController(): UrlController;
45
- /** Navigation state — returns noop if CMS is not present. */
45
+ /** Navigation state — returns noop if the admin is not present. */
46
46
  export declare function useStudioNavigationState(): NavigationStateController;
47
- /** Breadcrumbs controller — returns noop if CMS is not present. */
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