remoraid 3.3.2 → 3.6.0
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/core/index.cjs +524 -474
- package/dist/core/index.d.ts +48 -15
- package/dist/core/index.js +525 -475
- package/dist/data-visualization/index.cjs +65 -44
- package/dist/data-visualization/index.d.ts +8 -3
- package/dist/data-visualization/index.js +65 -44
- package/package.json +1 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -30,10 +30,12 @@ interface RemoraidAuthContext {
|
|
|
30
30
|
onLogout?: () => void;
|
|
31
31
|
}
|
|
32
32
|
declare enum NavbarVariant {
|
|
33
|
-
Minimal = "minimal"
|
|
33
|
+
Minimal = "minimal",
|
|
34
|
+
Custom = "custom"
|
|
34
35
|
}
|
|
35
36
|
declare enum FooterVariant {
|
|
36
|
-
Minimal = "minimal"
|
|
37
|
+
Minimal = "minimal",
|
|
38
|
+
Custom = "custom"
|
|
37
39
|
}
|
|
38
40
|
declare enum NavbarMode {
|
|
39
41
|
Responsive = "responsive",
|
|
@@ -62,18 +64,36 @@ interface NavigationElementButton extends NavigationElementBase {
|
|
|
62
64
|
}
|
|
63
65
|
type NavigationElement = NavigationElementButton | NavigationElementAnchor;
|
|
64
66
|
type NavbarMobileVariant = null;
|
|
65
|
-
type AppShellFooterVariant = FooterVariant | null;
|
|
66
|
-
type AppShellNavbarVariant = NavbarVariant | null;
|
|
67
67
|
type AppShellNavbarMobileVariant = NavbarMobileVariant | null;
|
|
68
|
-
interface
|
|
68
|
+
interface NavbarMetadata {
|
|
69
|
+
defaultPosition: NavbarPosition;
|
|
70
|
+
supportedModes: NavbarMode[];
|
|
71
|
+
supportedPositions: NavbarPosition[];
|
|
72
|
+
}
|
|
73
|
+
interface FooterMetadata {
|
|
74
|
+
defaultPosition: FooterPosition;
|
|
75
|
+
supportedPositions: FooterPosition[];
|
|
76
|
+
}
|
|
77
|
+
interface StaticRemoraidAppContextBase {
|
|
69
78
|
name: string;
|
|
70
79
|
nav: NavigationElement[];
|
|
71
|
-
navbarVariant: AppShellNavbarVariant;
|
|
72
80
|
navbarMobileVariant: AppShellNavbarMobileVariant;
|
|
73
|
-
footerVariant: AppShellFooterVariant;
|
|
74
81
|
logo?: Icon2 | ReactElement;
|
|
75
82
|
auth?: RemoraidAuthContext;
|
|
76
83
|
}
|
|
84
|
+
type StaticRemoraidAppContext = StaticRemoraidAppContextBase & ({
|
|
85
|
+
navbarVariant: null
|
|
86
|
+
navbarMetadata?: never
|
|
87
|
+
} | {
|
|
88
|
+
navbarVariant: NavbarVariant
|
|
89
|
+
navbarMetadata: NavbarMetadata
|
|
90
|
+
}) & ({
|
|
91
|
+
footerVariant: null
|
|
92
|
+
footerMetadata?: never
|
|
93
|
+
} | {
|
|
94
|
+
footerVariant: FooterVariant
|
|
95
|
+
footerMetadata: FooterMetadata
|
|
96
|
+
});
|
|
77
97
|
type CustomAppVariables = { [K in Exclude<string, keyof StaticRemoraidAppContext>] : any };
|
|
78
98
|
type RemoraidAppContext<V extends CustomAppVariables> = StaticRemoraidAppContext & V;
|
|
79
99
|
declare enum NavbarOrientation {
|
|
@@ -298,11 +318,24 @@ declare function RemoraidProvider({ children, theme, initialUserExperience, rout
|
|
|
298
318
|
import { BoxProps as BoxProps3 } from "@mantine/core";
|
|
299
319
|
import { ComponentProps as ComponentProps7, PropsWithChildren as PropsWithChildren13, ReactNode as ReactNode22 } from "react";
|
|
300
320
|
import { PropsWithChildren as PropsWithChildren8, ReactNode as ReactNode8 } from "react";
|
|
301
|
-
import { SetOptional } from "type-fest";
|
|
302
321
|
declare const defaultAppContext: RemoraidAppContext<CustomAppVariables>;
|
|
303
322
|
declare const useRemoraidApp: () => RemoraidAppContext<CustomAppVariables>;
|
|
304
323
|
interface AppProviderProps<V extends CustomAppVariables> {
|
|
305
|
-
appContext:
|
|
324
|
+
appContext: Omit<RemoraidAppContext<V>, "navbarVariant" | "navbarMetadata" | "footerVariant" | "footerMetadata" | "navbarMobileVariant"> & ({
|
|
325
|
+
navbarVariant?: Exclude<NavbarVariant | null, NavbarVariant.Custom>
|
|
326
|
+
navbarMetadata?: never
|
|
327
|
+
} | {
|
|
328
|
+
navbarVariant: NavbarVariant.Custom
|
|
329
|
+
navbarMetadata: NavbarMetadata
|
|
330
|
+
}) & ({
|
|
331
|
+
footerVariant?: Exclude<FooterVariant | null, FooterVariant.Custom>
|
|
332
|
+
footerMetadata?: never
|
|
333
|
+
} | {
|
|
334
|
+
footerVariant: FooterVariant.Custom
|
|
335
|
+
footerMetadata: FooterMetadata
|
|
336
|
+
}) & {
|
|
337
|
+
navbarMobileVariant?: AppShellNavbarMobileVariant
|
|
338
|
+
};
|
|
306
339
|
}
|
|
307
340
|
declare function AppProvider2<V extends CustomAppVariables>({ appContext: appContextProp, children }: PropsWithChildren8<AppProviderProps<V>>): ReactNode8;
|
|
308
341
|
import { ComponentProps as ComponentProps4, ReactNode as ReactNode18 } from "react";
|
|
@@ -368,6 +401,8 @@ declare const asElementOrPropsOfType: <
|
|
|
368
401
|
declare const getDefaultButtonIconSize: (buttonSize: MantineSize2) => RemoraidIconSize;
|
|
369
402
|
declare const scrollToWidget: (widgetId: string) => void;
|
|
370
403
|
declare const isIcon: (value: unknown) => value is Icon3;
|
|
404
|
+
declare const navbarMetadata: Record<Exclude<NavbarVariant, NavbarVariant.Custom>, NavbarMetadata>;
|
|
405
|
+
declare const footerMetadata: Record<Exclude<FooterVariant, FooterVariant.Custom>, FooterMetadata>;
|
|
371
406
|
declare const defaultRemoraidButtonSize = "sm";
|
|
372
407
|
type RemoraidButtonDefaultResponsivity = true;
|
|
373
408
|
interface ExplicitRemoraidButtonProps<Responsive extends boolean> {
|
|
@@ -399,6 +434,7 @@ interface NavbarMinimalContentProps {
|
|
|
399
434
|
orientation: NavbarOrientation;
|
|
400
435
|
maxElements?: number;
|
|
401
436
|
collapseStaticElementsBreakpoint?: MantineBreakpoint3;
|
|
437
|
+
includeDefaultNavigationElements?: boolean;
|
|
402
438
|
componentsProps?: {
|
|
403
439
|
container?: Partial<PaperProps>
|
|
404
440
|
button?: Partial<RemoraidButtonProps<true>> | Partial<RemoraidButtonProps<false>>
|
|
@@ -491,6 +527,7 @@ type PinnableProps<T extends LayoutType = PinnableDefaultLayoutType> = OptionalI
|
|
|
491
527
|
declare function Pinnable2<T extends LayoutType = PinnableDefaultLayoutType>({ layoutType: layoutTypeProp, section, initialValue, layoutId, controlsContainer, hidden, onPinnedValueChange, componentsProps, children }: PropsWithChildren11<PinnableProps<T>>): ReactNode16;
|
|
492
528
|
interface NavbarMinimalProps {
|
|
493
529
|
pinnable?: boolean;
|
|
530
|
+
includeDefaultNavigationElements?: boolean;
|
|
494
531
|
componentsProps?: {
|
|
495
532
|
container?: Partial<PageContainerProps>
|
|
496
533
|
content?: Partial<NavbarMinimalContentProps>
|
|
@@ -498,9 +535,7 @@ interface NavbarMinimalProps {
|
|
|
498
535
|
Pinnable?: Partial<PinnableProps>
|
|
499
536
|
};
|
|
500
537
|
}
|
|
501
|
-
declare function NavbarMinimal({ pinnable, componentsProps }: NavbarMinimalProps): ReactNode17;
|
|
502
|
-
declare const supportedNavbarPositions: Record<Exclude<AppShellNavbarVariant, null>, NavbarPosition[]>;
|
|
503
|
-
declare const defaultNavbarPositions: Record<Exclude<AppShellNavbarVariant, null>, NavbarPosition>;
|
|
538
|
+
declare function NavbarMinimal({ pinnable, includeDefaultNavigationElements, componentsProps }: NavbarMinimalProps): ReactNode17;
|
|
504
539
|
declare const getDefaultNavigationElements: ({ colorScheme, setColorScheme, auth }: Partial<DefaultNavigationElementsDependencies>) => NavigationElement[];
|
|
505
540
|
interface NavbarProps {
|
|
506
541
|
componentsProps?: {
|
|
@@ -524,8 +559,6 @@ interface FooterMinimalProps {
|
|
|
524
559
|
};
|
|
525
560
|
}
|
|
526
561
|
declare function FooterMinimal({ icon: Icon6, componentsProps }: FooterMinimalProps): ReactNode19;
|
|
527
|
-
declare const supportedFooterPositions: Record<Exclude<AppShellFooterVariant, null>, FooterPosition[]>;
|
|
528
|
-
declare const defaultFooterPositions: Record<Exclude<AppShellFooterVariant, null>, FooterPosition>;
|
|
529
562
|
interface FooterProps {
|
|
530
563
|
componentsProps?: {
|
|
531
564
|
FooterMinimal?: Partial<FooterMinimalProps>
|
|
@@ -838,4 +871,4 @@ interface InputWrapperScrollAreaProps {
|
|
|
838
871
|
};
|
|
839
872
|
}
|
|
840
873
|
declare function InputWrapperScrollArea({ children, label, mah, description, error, required, componentsProps }: PropsWithChildren26<InputWrapperScrollAreaProps>): ReactNode42;
|
|
841
|
-
export { useWidgets, useWidget, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidRouter, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayoutElement, useFrameLayout, useAppShellUserExperience,
|
|
874
|
+
export { useWidgets, useWidget, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidRouter, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayoutElement, useFrameLayout, useAppShellUserExperience, scrollToWidget, remoraidAppShellLayoutId, navbarMetadata, isValidElementOfType, isIcon, getElementTypeName, getDefaultWidgetContext, getDefaultNavigationElements, getDefaultButtonIconSize, getCssVars, footerMetadata, defaultUserExperienceCookieName, defaultUserExperience, defaultTransitionDurations, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultRemoraidButtonSize, defaultNavbarSettingsWidgetId, defaultLayoutsContext, defaultFooterSettingsWidgetId, defaultAppShellUserExperienceCookieName, defaultAppShellUserExperience, defaultAppContext, createUserExperienceContext, createRemoraidTheme, createContextCluster, co, asElementOrPropsOfType, asElementOfType, asChildrenOfType, WidgetsProviderProps, WidgetsContext, WidgetWrapperProps, WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetContext, WidgetConfiguration, Widget, UserExperienceProviderWrapperProps, UserExperienceProviderWrapper, UserExperienceProviderProps, UserExperienceContext, UserExperience, TransitionDuration, ThemeProviderProps, StaticRemoraidAppContext, SettingsWidgetSaveButtonProps, SettingsWidgetProps, SettingsWidgetContext, _default5 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default6 as SettingsTable, ScrollableChipGroupProps, ScrollableChipGroup2 as ScrollableChipGroup, RouterProviderProps, RouterProvider2 as RouterProvider, RouterAdapter, RemoraidUser, RemoraidThemeDependencies, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, RemoraidIconSize, RemoraidButtonProps, RemoraidButtonDefaultResponsivity, RemoraidButton, RemoraidBreakpoint, RemoraidAuthContext, RemoraidAppContext, PropsWithChildrenOfType, PrimitiveUserExperience, PinnableProps, PinnableDefaultLayoutType, Pinnable2 as Pinnable, PageProps, PageContainerProps, PageContainer2 as PageContainer, PageConfiguration, Page, OptionalIfExtends, Optional, NotFoundPageProps, NotFoundPage, NavigationMenuProps, NavigationElementType, NavigationElementButton, NavigationElementBase, NavigationElementAnchor, NavigationElement, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarProps, NavbarPosition, NavbarOrientation, NavbarMode, NavbarMobileVariant, NavbarMobilePosition, NavbarMinimalProps, NavbarMinimalContentProps, NavbarMetadata, _default as Navbar, LayoutsProviderProps, LayoutsContext, LayoutType, LayoutSection, LayoutElementContext, LayoutContext, InputWrapperScrollAreaProps, InputWrapperScrollArea, HydrationStatusProviderProps, HydrationStatusProvider, HydrationStatus, FrameLayoutSection, FrameLayoutProps, FrameLayoutElementProps, _default3 as FrameLayout, FooterVariant, FooterSettingsWidgetProps, FooterSettingsWidget, FooterProps, FooterPosition, FooterMinimalProps, FooterMetadata, _default2 as Footer, EnvironmentShellVariant, EnvironmentShellProps, EnvironmentShell, ElementOrPropsOfType, ElementOfType, DefaultNavigationElementsDependencies, CustomAppVariables, CoreUserExperience, ControlsProps, Controls, ControlButtonProps, ControlButton, ContextClusterProviderProps, ContextClusterProvider, ContextCluster, Common, ClickTransformation, ChildrenOfType, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellUserExperience, AppShellProps, AppShellNavbarMobileVariant, _default4 as AppShell, AppProviderProps, AppProvider2 as AppProvider, AlertMinimalProps, AlertMinimal, AlertCategory };
|