remoraid 2.10.7 → 2.14.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.
@@ -2,7 +2,7 @@ import { PropsWithChildren as PropsWithChildren5, ReactNode as ReactNode6 } from
2
2
  import { AlertProps, MantineBreakpoint, MantineColorScheme, MantineSize, MantineTheme, ScrollAreaProps } from "@mantine/core";
3
3
  import { Icon, IconProps } from "@tabler/icons-react";
4
4
  import { ImageProps } from "next/image";
5
- import { Dispatch, ReactNode, SetStateAction } from "react";
5
+ import React2, { Dispatch, ReactNode, SetStateAction } from "react";
6
6
  type RemoraidUser = {
7
7
  name: string
8
8
  } | null;
@@ -29,15 +29,16 @@ declare enum NavbarVariant {
29
29
  declare enum FooterVariant {
30
30
  Minimal = "minimal"
31
31
  }
32
- type UserExperience = Record<string, any>;
33
- interface CoreUserExperience extends UserExperience {
32
+ type PrimitiveUserExperience = string | number | boolean;
33
+ type UserExperience = Record<string, any> | PrimitiveUserExperience | PrimitiveUserExperience[];
34
+ interface CoreUserExperience {
34
35
  showWelcomeMessage: boolean;
35
36
  navbar: {
36
37
  hiddenPages: string[]
37
38
  };
38
39
  }
39
40
  type UserExperienceProviderProps<T extends UserExperience> = {
40
- initialValue?: Partial<T>
41
+ initialValue?: T extends PrimitiveUserExperience | PrimitiveUserExperience[] ? T : Partial<T>
41
42
  cookieName?: string
42
43
  };
43
44
  interface UserExperienceContext<T extends UserExperience> {
@@ -129,8 +130,16 @@ declare enum FrameLayoutVariant {
129
130
  Plain = "plain",
130
131
  Sticky = "sticky"
131
132
  }
132
- type FrameLayoutNavbarPosition<T extends NavbarVariant> = T extends NavbarVariant.Minimal ? FrameLayoutSection.Left | FrameLayoutSection.Right : FrameLayoutSection;
133
- type FrameLayoutFooterPosition<T extends FooterVariant> = T extends FooterVariant.Minimal ? FrameLayoutSection.Content | FrameLayoutSection.Bottom : FrameLayoutSection;
133
+ interface ContextCluster<
134
+ Context,
135
+ StaticID extends string = never
136
+ > {
137
+ contexts: Record<string, React2.Context<Context>>;
138
+ defaultValues: Record<string, Context>;
139
+ generalDefaultValue: Context;
140
+ createContext: (id: string, defaultValue?: Context) => React2.Context<Context>;
141
+ useContext: <ID extends string>(id: ID) => ID extends StaticID ? Context : Context | null;
142
+ }
134
143
  interface WidgetsContext {
135
144
  widgets: {
136
145
  [index: string]: {
@@ -223,7 +232,7 @@ interface FooterMinimalProps {
223
232
  };
224
233
  }
225
234
  declare function FooterMinimal({ componentsProps }: FooterMinimalProps): ReactNode8;
226
- import { PropsWithChildren as PropsWithChildren9, ReactNode as ReactNode12 } from "react";
235
+ import { ComponentProps as ComponentProps3, PropsWithChildren as PropsWithChildren9, ReactNode as ReactNode12 } from "react";
227
236
  import { PropsWithChildren as PropsWithChildren6, ReactNode as ReactNode9 } from "react";
228
237
  declare const defaultAppContext: RemoraidAppContext<CustomAppVariables>;
229
238
  declare const useRemoraidApp: () => RemoraidAppContext<CustomAppVariables>;
@@ -231,15 +240,12 @@ interface AppProviderProps<V extends CustomAppVariables = {}> {
231
240
  appContext: AppContextProps<V>;
232
241
  }
233
242
  declare function AppProvider2<V extends CustomAppVariables = {}>({ appContext: appContextProps, children }: PropsWithChildren6<AppProviderProps<V>>): ReactNode9;
234
- import { ReactElement } from "react";
243
+ import { ComponentProps, ElementType, ReactElement } from "react";
244
+ declare const co: <T>(condition: (value: T) => boolean, value: T, fallback: T) => T;
235
245
  type Common<
236
246
  A,
237
247
  B
238
248
  > = Pick<A & B, keyof A & keyof B>;
239
- type OnlyChildrenOf<
240
- T extends (...args: any) => any,
241
- P = any
242
- > = ReactElement<P, T> | ReactElement<P, T>[];
243
249
  type Optional<
244
250
  T,
245
251
  K extends keyof T
@@ -250,8 +256,22 @@ type OptionalIfExtends<
250
256
  V1,
251
257
  V2
252
258
  > = [V1] extends [V2] ? Optional<T, K> : T;
259
+ type ElementOfType<T extends ElementType> = ReactElement<ComponentProps<T>, T>;
260
+ type ChildrenOfType<T extends ElementType> = ElementOfType<T> | undefined | null | ReadonlyArray<ChildrenOfType<T>>;
261
+ type PropsWithChildrenOfType<
262
+ T extends ElementType,
263
+ P = {}
264
+ > = P & {
265
+ children?: ChildrenOfType<T>
266
+ };
267
+ type ElementOrPropsOfType<T extends ElementType> = ElementOfType<T> | ComponentProps<T>;
268
+ declare const isValidElementOfType: <T extends ElementType>(type: T, value: unknown) => value is ElementOfType<T>;
269
+ declare const getElementTypeName: (type: ElementType | ReactElement["type"]) => string;
270
+ declare const asElementOfType: <T extends ElementType>(type: T, element: ReactElement, additionalErrorMessage?: string) => ElementOfType<T>;
271
+ declare const asChildrenOfType: <T extends ElementType>(type: T, children: ChildrenOfType<ElementType>, additionalErrorMessage?: string) => ChildrenOfType<T>;
272
+ declare const asElementOrPropsOfType: <T extends ElementType>(type: T, elementOrProps: ReactElement | ComponentProps<T>, additionalErrorMessage?: string) => ElementOrPropsOfType<T>;
253
273
  import { BoxProps as BoxProps2, GroupProps as GroupProps2, ScrollAreaProps as ScrollAreaProps2, StackProps } from "@mantine/core";
254
- import { PropsWithChildren as PropsWithChildren8, ReactNode as ReactNode11 } from "react";
274
+ import { ComponentProps as ComponentProps2, PropsWithChildren as PropsWithChildren8, ReactNode as ReactNode11 } from "react";
255
275
  import { PropsWithChildren as PropsWithChildren7, ReactNode as ReactNode10 } from "react";
256
276
  import { BoxProps } from "@mantine/core";
257
277
  interface FrameLayoutElementProps {
@@ -285,7 +305,7 @@ interface FrameLayoutPropsWithExplicitVariant<T extends FrameLayoutVariant> {
285
305
  type FrameLayoutProps<T extends FrameLayoutVariant = DefaultFrameLayoutVariant> = T extends DefaultFrameLayoutVariant ? Optional<FrameLayoutPropsWithExplicitVariant<T>, "variant"> : FrameLayoutPropsWithExplicitVariant<T>;
286
306
  declare function FrameLayout<T extends FrameLayoutVariant = DefaultFrameLayoutVariant>({ variant, layoutId, componentsProps, children }: PropsWithChildren8<FrameLayoutProps<T>>): ReactNode11;
287
307
  interface FrameLayout {
288
- <T extends FrameLayoutVariant = DefaultFrameLayoutVariant>(props: PropsWithChildren8<FrameLayoutProps<T>>): ReactNode11;
308
+ <T extends FrameLayoutVariant = DefaultFrameLayoutVariant>(props: ComponentProps2<typeof FrameLayout<T>>): ReactNode11;
289
309
  Element: typeof Element2;
290
310
  }
291
311
  declare const _default: FrameLayout;
@@ -294,6 +314,10 @@ type AppShellNavbarVariant = NavbarVariant | null;
294
314
  type AppShellFooterVariant = FooterVariant | null;
295
315
  type DefaultNavbarVariant = null;
296
316
  type DefaultFooterVariant = null;
317
+ type AppShellNavbarPosition<N extends AppShellNavbarVariant> = N extends NavbarVariant.Minimal ? FrameLayoutSection.Left | FrameLayoutSection.Right : N extends null ? never : FrameLayoutSection;
318
+ type AppShellFooterPosition<F extends AppShellFooterVariant> = F extends FooterVariant.Minimal ? FrameLayoutSection.Content | FrameLayoutSection.Bottom : F extends null ? never : FrameLayoutSection;
319
+ declare const defaultAppShellNavbarPositions: { [N in Exclude<AppShellNavbarVariant, null>] : AppShellNavbarPosition<N> };
320
+ declare const defaultAppShellFooterPositions: { [F in Exclude<AppShellFooterVariant, null>] : AppShellFooterPosition<F> };
297
321
  interface ExplicitAppShellProps<
298
322
  N extends AppShellNavbarVariant,
299
323
  F extends AppShellFooterVariant,
@@ -301,14 +325,17 @@ interface ExplicitAppShellProps<
301
325
  > {
302
326
  navbarVariant: N;
303
327
  footerVariant: F;
304
- navbarPosition: N extends NavbarVariant ? FrameLayoutNavbarPosition<N> : never;
305
- footerPosition: F extends FooterVariant ? FrameLayoutFooterPosition<F> : never;
306
328
  appContext: AppContextProps<V>;
329
+ navbarPosition?: AppShellNavbarPosition<N>;
330
+ footerPosition?: AppShellFooterPosition<F>;
307
331
  componentsProps?: {
332
+ container?: Partial<BoxProps3>
308
333
  navbar?: N extends NavbarVariant.Minimal ? Partial<NavbarMinimalProps> : never
309
334
  footer?: N extends FooterVariant.Minimal ? Partial<FooterMinimalProps> : never
310
335
  layout?: Partial<FrameLayoutProps<FrameLayoutVariant.Sticky>>
311
336
  childrenContainer?: Partial<BoxProps3>
337
+ navbarLayoutElement?: Omit<Partial<FrameLayoutElementProps>, "section">
338
+ footerLayoutElement?: Omit<Partial<FrameLayoutElementProps>, "section">
312
339
  AppProvider?: Partial<AppProviderProps>
313
340
  };
314
341
  }
@@ -327,19 +354,19 @@ interface AppShell {
327
354
  N extends AppShellNavbarVariant = DefaultNavbarVariant,
328
355
  F extends AppShellFooterVariant = DefaultFooterVariant,
329
356
  V extends CustomAppVariables = {}
330
- >(props: PropsWithChildren9<AppShellProps<N, F, V>>): ReactNode12;
357
+ >(props: ComponentProps3<typeof AppShell<N, F, V>>): ReactNode12;
331
358
  NavbarMinimal: typeof NavbarMinimal;
332
359
  FooterMinimal: typeof FooterMinimal;
333
360
  }
334
361
  declare const _default2: AppShell;
335
- import { Context, PropsWithChildren as PropsWithChildren10, ReactNode as ReactNode13 } from "react";
336
- declare const createUserExperienceContext: <T extends UserExperience>(defaultUserExperience: T) => Context<UserExperienceContext<T>>;
362
+ import { Context as Context2, PropsWithChildren as PropsWithChildren10, ReactNode as ReactNode13 } from "react";
363
+ declare const createUserExperienceContext: <T extends UserExperience>(defaultUserExperience: T) => Context2<UserExperienceContext<T>>;
337
364
  interface UserExperienceProviderWrapperProps<T extends UserExperience> {
338
- context: Context<UserExperienceContext<T>>;
365
+ context: Context2<UserExperienceContext<T>>;
339
366
  cookieName: string;
340
367
  defaultUserExperience: T;
341
368
  isValidUserExperience: (x: unknown) => x is T;
342
- initialValue?: Partial<T>;
369
+ initialValue?: T extends PrimitiveUserExperience | PrimitiveUserExperience[] ? never : Partial<T>;
343
370
  }
344
371
  declare function UserExperienceProviderWrapper<T extends UserExperience>({ children, context, cookieName, defaultUserExperience, isValidUserExperience, initialValue }: PropsWithChildren10<UserExperienceProviderWrapperProps<T>>): ReactNode13;
345
372
  declare const defaultUserExperience: CoreUserExperience;
@@ -359,7 +386,7 @@ interface CloseButtonProps {
359
386
  }
360
387
  declare function CloseButton2({ widgetId }: CloseButtonProps): ReactNode16;
361
388
  import { BadgeProps as BadgeProps2, MantineBreakpoint as MantineBreakpoint2, MantineSize as MantineSize3, TooltipProps as TooltipProps2 } from "@mantine/core";
362
- import { ReactNode as ReactNode18 } from "react";
389
+ import { ComponentProps as ComponentProps4, ReactNode as ReactNode18 } from "react";
363
390
  import { BadgeProps, TooltipProps, TransitionProps } from "@mantine/core";
364
391
  import { ReactNode as ReactNode17 } from "react";
365
392
  interface BadgeMinimalProps {
@@ -374,7 +401,7 @@ interface BadgeMinimalProps {
374
401
  }
375
402
  declare function BadgeMinimal(props: BadgeMinimalProps): ReactNode17;
376
403
  interface BadgeGroupProps {
377
- badges: (BadgeMinimalProps | ReactNode18)[];
404
+ badges: (ComponentProps4<typeof BadgeMinimal> | ElementOfType<typeof BadgeMinimal>)[];
378
405
  gap?: MantineSize3 | number;
379
406
  breakpoint?: MantineBreakpoint2;
380
407
  componentsProps?: {
@@ -382,7 +409,7 @@ interface BadgeGroupProps {
382
409
  cumulativeBadge?: Partial<Omit<BadgeProps2, "hiddenFrom" | "circle">>
383
410
  };
384
411
  }
385
- declare function BadgeGroup({ badges, gap, breakpoint, componentsProps }: BadgeGroupProps): ReactNode18;
412
+ declare function BadgeGroup({ badges: badgesProp, gap, breakpoint, componentsProps }: BadgeGroupProps): ReactNode18;
386
413
  import { AlertProps as AlertProps2, MantineSize as MantineSize4, TransitionProps as TransitionProps2 } from "@mantine/core";
387
414
  import { PropsWithChildren as PropsWithChildren12, ReactNode as ReactNode19 } from "react";
388
415
  interface AlertMinimalProps {
@@ -398,7 +425,7 @@ interface AlertMinimalProps {
398
425
  transition?: Omit<TransitionProps2, "mounted">
399
426
  };
400
427
  }
401
- declare function AlertMinimal({ children, title, category, text, onClose, mounted, mt, mb, componentsProps }: PropsWithChildren12<AlertMinimalProps>): ReactNode19;
428
+ declare function AlertMinimal({ title, category, text, onClose, mounted, mt, mb, componentsProps, children }: PropsWithChildren12<AlertMinimalProps>): ReactNode19;
402
429
  import { ActionIconProps, ActionIconVariant, ButtonProps, ButtonVariant, MantineBreakpoint as MantineBreakpoint3, MantineColor, MantineSize as MantineSize5, TooltipProps as TooltipProps3 } from "@mantine/core";
403
430
  import { Icon as Icon3, IconProps as IconProps3 } from "@tabler/icons-react";
404
431
  import { ReactNode as ReactNode20 } from "react";
@@ -439,20 +466,22 @@ interface WidgetWrapper extends React.FC<PropsWithChildren13<WidgetWrapperProps>
439
466
  CloseButton: typeof CloseButton2;
440
467
  }
441
468
  declare const _default3: WidgetWrapper;
442
- import { MantineSize as MantineSize7, LoaderProps } from "@mantine/core";
443
- import { PropsWithChildren as PropsWithChildren14, ReactNode as ReactNode22 } from "react";
469
+ import { MantineSize as MantineSize7, LoaderProps, DividerProps, StackProps as StackProps2 } from "@mantine/core";
470
+ import { ComponentProps as ComponentProps5, PropsWithChildren as PropsWithChildren14, ReactNode as ReactNode22 } from "react";
444
471
  interface WidgetComponentsProps extends WidgetWrapperComponentsProps {
445
472
  wrapper?: Partial<Omit<WidgetWrapperProps, "widgetId">>;
446
473
  loader?: Partial<LoaderProps>;
447
474
  badgeGroup?: Partial<BadgeGroupProps>;
475
+ divider?: Partial<DividerProps>;
476
+ alertsContainer?: Partial<StackProps2>;
448
477
  }
449
478
  interface WidgetProps {
450
479
  id: string;
451
480
  title: string;
452
481
  config?: Partial<Omit<WidgetConfiguration, "widgetId">>;
453
- badges?: (BadgeMinimalProps | ReactNode22)[];
454
- buttons?: (RemoraidButtonProps | ReactNode22)[];
455
- alerts?: (AlertMinimalProps | ReactNode22)[];
482
+ badges?: (ComponentProps5<typeof BadgeMinimal> | ElementOfType<typeof BadgeMinimal>)[];
483
+ buttons?: (ComponentProps5<typeof RemoraidButton> | ElementOfType<typeof RemoraidButton>)[];
484
+ alerts?: (ComponentProps5<typeof AlertMinimal> | ElementOfType<typeof AlertMinimal>)[];
456
485
  gaps?: MantineSize7 | number | {
457
486
  badges?: MantineSize7 | number
458
487
  buttons?: MantineSize7 | number
@@ -462,7 +491,7 @@ interface WidgetProps {
462
491
  mt?: MantineSize7 | number;
463
492
  componentsProps?: WidgetComponentsProps;
464
493
  }
465
- declare function Widget({ children, id, config, title, badges, buttons, alerts, gaps, loading, mt, componentsProps }: PropsWithChildren14<WidgetProps>): ReactNode22;
494
+ declare function Widget({ children, id, config, title, badges: badgesProp, buttons: buttonsProp, alerts: alertsProp, gaps, loading, mt, componentsProps }: PropsWithChildren14<WidgetProps>): ReactNode22;
466
495
  import { ContainerProps, MantineSize as MantineSize8 } from "@mantine/core";
467
496
  import { PropsWithChildren as PropsWithChildren15, ReactNode as ReactNode23 } from "react";
468
497
  declare const usePage: () => PageConfiguration | null;
@@ -530,7 +559,7 @@ interface SettingsWidget extends React.FC<PropsWithChildren19<SettingsWidgetProp
530
559
  SaveButton: typeof SaveButton2;
531
560
  }
532
561
  declare const _default4: SettingsWidget;
533
- import { ReactNode as ReactNode30 } from "react";
562
+ import { ComponentProps as ComponentProps6, ReactNode as ReactNode30 } from "react";
534
563
  import { PropsWithChildren as PropsWithChildren20, ReactNode as ReactNode29 } from "react";
535
564
  interface SettingsTableRowProps {
536
565
  label: string;
@@ -541,25 +570,24 @@ declare const defaultSettingsTableOptions: {
541
570
  };
542
571
  declare const useSettingsTableOptions: () => SettingsTableOptions;
543
572
  interface SettingsTableProps {
544
- children: OnlyChildrenOf<typeof Row2, SettingsTableRowProps>;
545
573
  leftColumnWidth?: string | number;
546
574
  }
547
- declare function SettingsTable({ children, leftColumnWidth }: SettingsTableProps): ReactNode30;
548
- interface SettingsTable extends React.FC<SettingsTableProps> {
575
+ declare function SettingsTable({ leftColumnWidth, children: childrenProp }: PropsWithChildrenOfType<typeof Row2, SettingsTableProps>): ReactNode30;
576
+ interface SettingsTable extends React.FC<ComponentProps6<typeof SettingsTable>> {
549
577
  Row: typeof Row2;
550
578
  }
551
579
  declare const _default5: SettingsTable;
552
- import { ReactElement as ReactElement2, ReactNode as ReactNode31 } from "react";
580
+ import { ComponentProps as ComponentProps7, ReactNode as ReactNode31 } from "react";
553
581
  declare const defaultNavbarSettingsWidgetId = "navbar-settings";
554
582
  interface NavbarSettingsWidgetProps {
555
- additionalRows?: ReactElement2<SettingsTableRowProps, typeof _default5.Row>[];
583
+ additionalRows?: (ComponentProps7<typeof _default5.Row> | ElementOfType<typeof _default5.Row>)[];
556
584
  widgetProps?: Partial<WidgetProps>;
557
585
  componentsProps?: {
558
- table: Partial<Omit<SettingsTableProps, "children">>
586
+ table: Partial<SettingsTableProps>
559
587
  };
560
588
  }
561
589
  declare function NavbarSettingsWidget({ additionalRows, widgetProps, componentsProps }: NavbarSettingsWidgetProps): ReactNode31;
562
- import { Chip, ChipGroupProps, ChipProps, FlexProps, MantineSize as MantineSize11, ScrollAreaProps as ScrollAreaProps3 } from "@mantine/core";
590
+ import { Chip, ChipGroupProps, FlexProps, MantineSize as MantineSize11, ScrollAreaProps as ScrollAreaProps3 } from "@mantine/core";
563
591
  import { ReactNode as ReactNode32 } from "react";
564
592
  interface ScrollbleChipGroupProps {
565
593
  value: string[];
@@ -570,7 +598,22 @@ interface ScrollbleChipGroupProps {
570
598
  scrollArea?: Partial<ScrollAreaProps3>
571
599
  container?: Partial<FlexProps>
572
600
  };
573
- children?: OnlyChildrenOf<typeof Chip, ChipProps>;
574
601
  }
575
- declare function ScrollableChipGroup({ value, onChange, gap, componentsProps, children }: ScrollbleChipGroupProps): ReactNode32;
576
- export { useWidgets, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayout, isFrameLayout, defaultUserExperienceCookieName, defaultUserExperience, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultNavbarSettingsWidgetId, defaultLayoutsContext, defaultFrameLayoutContext, defaultAppShellLayoutId, defaultAppContext, createUserExperienceContext, createRemoraidTheme, WidgetsProviderProps, WidgetWrapperProps, _default3 as WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetConfiguration, Widget, UserExperienceProviderWrapperProps, UserExperienceProviderWrapper, UserExperienceProviderProps, UserExperienceContext, UserExperience, TransitionDuration, ThemeProviderProps, StaticRemoraidAppContext, SettingsWidgetSaveButtonProps, SettingsWidgetProps, SettingsWidgetContext, _default4 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default5 as SettingsTable, ScrollbleChipGroupProps, ScrollableChipGroup, RemoraidUser, RemoraidThemeDependencies, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, RemoraidIconSize, RemoraidButtonProps, RemoraidButton, RemoraidBreakpoint, RemoraidAuthContext, RemoraidAppContext, PageProps, PageContainerProps, PageContainer, PageConfiguration, Page, NotFoundPageProps, NotFoundPage, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarMinimalProps, LayoutsProviderProps, LayoutsContext, LayoutType, Layout, HydrationStatusProviderProps, HydrationStatusProvider, HydrationStatus, FrameLayoutVariant, FrameLayoutSection, FrameLayoutProps, FrameLayoutNavbarPosition, FrameLayoutFooterPosition, FrameLayoutElementProps, FrameLayoutContext, _default as FrameLayout, FooterVariant, FooterMinimalProps, EnvironmentShellProps, EnvironmentShell, DefaultNavbarVariant, DefaultFrameLayoutVariant, DefaultFooterVariant, CustomAppVariables, CoreUserExperience, CloseButtonProps, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellNavbarVariant, AppShellFooterVariant, _default2 as AppShell, AppProviderProps, AppProvider2 as AppProvider, AppLogo, AppContextProps, AlertMinimalProps, AlertMinimal, AlertCategory };
602
+ declare function ScrollableChipGroup({ value, onChange, gap, componentsProps, children }: PropsWithChildrenOfType<typeof Chip, ScrollbleChipGroupProps>): ReactNode32;
603
+ import { PropsWithChildren as PropsWithChildren21, ReactNode as ReactNode33 } from "react";
604
+ declare const createContextCluster: <
605
+ Context,
606
+ StaticID extends string = never
607
+ >(generalDefaultValue: Context, staticIds?: StaticID[]) => ContextCluster<Context, StaticID>;
608
+ interface ContextClusterProviderProps<
609
+ Context,
610
+ StaticID extends string = never
611
+ > {
612
+ cluster: ContextCluster<Context, StaticID>;
613
+ values?: Record<string, Context>;
614
+ }
615
+ declare function ContextClusterProvider<
616
+ Context,
617
+ StaticID extends string = never
618
+ >({ cluster, values, children }: PropsWithChildren21<ContextClusterProviderProps<Context, StaticID>>): ReactNode33;
619
+ export { useWidgets, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayout, isValidElementOfType, isFrameLayout, getElementTypeName, defaultUserExperienceCookieName, defaultUserExperience, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultNavbarSettingsWidgetId, defaultLayoutsContext, defaultFrameLayoutContext, defaultAppShellNavbarPositions, defaultAppShellLayoutId, defaultAppShellFooterPositions, defaultAppContext, createUserExperienceContext, createRemoraidTheme, createContextCluster, co, asElementOrPropsOfType, asElementOfType, asChildrenOfType, WidgetsProviderProps, WidgetWrapperProps, _default3 as WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetConfiguration, Widget, UserExperienceProviderWrapperProps, UserExperienceProviderWrapper, UserExperienceProviderProps, UserExperienceContext, UserExperience, TransitionDuration, ThemeProviderProps, StaticRemoraidAppContext, SettingsWidgetSaveButtonProps, SettingsWidgetProps, SettingsWidgetContext, _default4 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default5 as SettingsTable, ScrollbleChipGroupProps, ScrollableChipGroup, RemoraidUser, RemoraidThemeDependencies, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, RemoraidIconSize, RemoraidButtonProps, RemoraidButton, RemoraidBreakpoint, RemoraidAuthContext, RemoraidAppContext, PropsWithChildrenOfType, PrimitiveUserExperience, PageProps, PageContainerProps, PageContainer, PageConfiguration, Page, OptionalIfExtends, Optional, NotFoundPageProps, NotFoundPage, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarMinimalProps, LayoutsProviderProps, LayoutsContext, LayoutType, Layout, HydrationStatusProviderProps, HydrationStatusProvider, HydrationStatus, FrameLayoutVariant, FrameLayoutSection, FrameLayoutProps, FrameLayoutElementProps, FrameLayoutContext, _default as FrameLayout, FooterVariant, FooterMinimalProps, EnvironmentShellProps, EnvironmentShell, ElementOrPropsOfType, ElementOfType, DefaultNavbarVariant, DefaultFrameLayoutVariant, DefaultFooterVariant, CustomAppVariables, CoreUserExperience, ContextClusterProviderProps, ContextClusterProvider, ContextCluster, Common, CloseButtonProps, ChildrenOfType, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellNavbarVariant, AppShellNavbarPosition, AppShellFooterVariant, AppShellFooterPosition, _default2 as AppShell, AppProviderProps, AppProvider2 as AppProvider, AppLogo, AppContextProps, AlertMinimalProps, AlertMinimal, AlertCategory };