remoraid 2.20.2 → 2.26.4
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 +775 -534
- package/dist/core/index.d.ts +142 -124
- package/dist/core/index.js +820 -568
- package/dist/core/styles.css +18 -1
- package/dist/jsonforms/index.cjs +7290 -196
- package/dist/jsonforms/index.d.ts +2 -0
- package/dist/jsonforms/index.js +7378 -164
- package/dist/server/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren as PropsWithChildren6, ReactNode as ReactNode7 } from "react";
|
|
2
|
-
import { HoverCardProps, MantineBreakpoint, MantineColorScheme, MantineSize, MantineTheme, ScrollAreaProps, TooltipProps } from "@mantine/core";
|
|
2
|
+
import { HoverCardProps, MantineBreakpoint, MantineColorScheme, MantineSize, MantineTheme, MenuProps, ScrollAreaProps, TooltipProps } from "@mantine/core";
|
|
3
3
|
import { Icon as Icon2, IconProps as IconProps2 } from "@tabler/icons-react";
|
|
4
4
|
import { ImageProps } from "next/image";
|
|
5
5
|
import React2, { Dispatch, ReactNode as ReactNode2, SetStateAction } from "react";
|
|
@@ -70,6 +70,7 @@ interface UserExperienceContext<T extends UserExperience> {
|
|
|
70
70
|
interface WidgetContext {
|
|
71
71
|
name: string;
|
|
72
72
|
selected: boolean;
|
|
73
|
+
hidden: boolean;
|
|
73
74
|
}
|
|
74
75
|
interface WidgetsContext {
|
|
75
76
|
widgets: Partial<Record<string, Partial<Record<string, WidgetContext>>>>;
|
|
@@ -82,6 +83,7 @@ interface WidgetsContext {
|
|
|
82
83
|
updateWidgetSelection: (pageId: string, widgetId: string, value: boolean) => void;
|
|
83
84
|
updateWidgetSelectionBulk: (pageId: string, selectedWidgetIds: string[]) => void;
|
|
84
85
|
isWidgetSelected: (pageId: string, widgetId: string) => boolean;
|
|
86
|
+
hideWidget: (pageId: string, widgetId: string) => void;
|
|
85
87
|
}
|
|
86
88
|
declare enum AlertCategory {
|
|
87
89
|
Negative = "negative",
|
|
@@ -103,6 +105,7 @@ declare enum RemoraidIconSize {
|
|
|
103
105
|
Medium = "medium"
|
|
104
106
|
}
|
|
105
107
|
interface RemoraidTheme {
|
|
108
|
+
bodyColor: string;
|
|
106
109
|
containerSize: MantineSize | number;
|
|
107
110
|
jsonStringifySpace: string | number;
|
|
108
111
|
primaryGutter: MantineSize | number;
|
|
@@ -116,6 +119,7 @@ interface RemoraidTheme {
|
|
|
116
119
|
ScrollArea: Partial<ScrollAreaProps>
|
|
117
120
|
HoverCard: Partial<HoverCardProps>
|
|
118
121
|
Tooltip: Partial<TooltipProps>
|
|
122
|
+
Menu: Partial<MenuProps>
|
|
119
123
|
};
|
|
120
124
|
}
|
|
121
125
|
interface RemoraidThemeDependencies {
|
|
@@ -125,7 +129,7 @@ interface RemoraidThemeDependencies {
|
|
|
125
129
|
type RemoraidThemeCallback = (dependencies: Partial<RemoraidThemeDependencies>) => PartialDeep<RemoraidTheme>;
|
|
126
130
|
interface WidgetConfiguration {
|
|
127
131
|
widgetId: string;
|
|
128
|
-
initialValues?: PartialDeep<WidgetContext
|
|
132
|
+
initialValues?: PartialDeep<Omit<WidgetContext, "hidden">>;
|
|
129
133
|
allowUnregisteredPageUsage?: boolean;
|
|
130
134
|
}
|
|
131
135
|
interface PageConfiguration {
|
|
@@ -180,6 +184,7 @@ declare const useWidget: (pageId: string, widgetId: string) => WidgetContext | n
|
|
|
180
184
|
interface WidgetsProviderProps {}
|
|
181
185
|
import { PartialDeep as PartialDeep2 } from "type-fest";
|
|
182
186
|
declare const createRemoraidTheme: (customTheme?: PartialDeep2<RemoraidTheme>, dependencies?: Partial<RemoraidThemeDependencies>) => RemoraidTheme;
|
|
187
|
+
declare const getCssVars: (theme: RemoraidTheme) => Record<string, string>;
|
|
183
188
|
declare const useRemoraidTheme: () => RemoraidTheme;
|
|
184
189
|
interface ThemeProviderProps {
|
|
185
190
|
theme?: PartialDeep2<RemoraidTheme> | RemoraidThemeCallback;
|
|
@@ -296,6 +301,7 @@ declare const asElementOrPropsOfType: <
|
|
|
296
301
|
P = ComponentProps<T>
|
|
297
302
|
>(type: T, elementOrProps: ReactElement | P, additionalErrorMessage?: string) => ElementOrPropsOfType<T, P>;
|
|
298
303
|
declare const getDefaultButtonIconSize: (buttonSize: MantineSize2) => RemoraidIconSize;
|
|
304
|
+
declare const scrollToWidget: (widgetId: string) => void;
|
|
299
305
|
import { GroupProps as GroupProps2, MantineSize as MantineSize4, ScrollAreaProps as ScrollAreaProps2, StackProps } from "@mantine/core";
|
|
300
306
|
import { ComponentProps as ComponentProps2, PropsWithChildren as PropsWithChildren10, ReactNode as ReactNode13 } from "react";
|
|
301
307
|
import { PropsWithChildren as PropsWithChildren9, ReactNode as ReactNode12 } from "react";
|
|
@@ -409,112 +415,62 @@ declare function UserExperienceProviderWrapper<T extends UserExperience>({ child
|
|
|
409
415
|
declare const defaultUserExperience: CoreUserExperience;
|
|
410
416
|
declare const defaultUserExperienceCookieName = "remoraid-core-user-experience";
|
|
411
417
|
declare const useRemoraidUserExperience: () => UserExperienceContext<CoreUserExperience>;
|
|
412
|
-
import {
|
|
413
|
-
import { ReactNode as
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
import { ReactNode as ReactNode19 } from "react";
|
|
422
|
-
import { BadgeProps, TooltipProps as TooltipProps2, TransitionProps as TransitionProps2 } from "@mantine/core";
|
|
423
|
-
import { ReactNode as ReactNode18 } from "react";
|
|
424
|
-
interface BadgeMinimalProps {
|
|
425
|
-
label: string;
|
|
426
|
-
tooltip?: string;
|
|
427
|
-
mounted?: TransitionProps2["mounted"];
|
|
428
|
-
componentsProps?: {
|
|
429
|
-
badge?: BadgeProps
|
|
430
|
-
transition?: Partial<Omit<TransitionProps2, "mounted">>
|
|
431
|
-
tooltip?: TooltipProps2
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
declare function BadgeMinimal({ label, tooltip, mounted, componentsProps }: BadgeMinimalProps): ReactNode18;
|
|
435
|
-
interface BadgeGroupProps {
|
|
436
|
-
badges: ElementOrPropsOfType<typeof BadgeMinimal>[];
|
|
437
|
-
gap?: MantineSize6 | number;
|
|
438
|
-
breakpoint?: MantineBreakpoint2;
|
|
418
|
+
import { ChipProps, FlexProps as FlexProps2, MenuProps as MenuProps2, TextProps } from "@mantine/core";
|
|
419
|
+
import { ReactNode as ReactNode21 } from "react";
|
|
420
|
+
import { ChipGroupProps, FlexProps, MantineSize as MantineSize5, ScrollAreaProps as ScrollAreaProps3 } from "@mantine/core";
|
|
421
|
+
import { PropsWithChildren as PropsWithChildren14, ReactNode as ReactNode17, RefObject } from "react";
|
|
422
|
+
interface ScrollableChipGroupProps {
|
|
423
|
+
value: string[];
|
|
424
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
425
|
+
onChange?: (value: string[]) => void;
|
|
426
|
+
gap?: MantineSize5 | number;
|
|
439
427
|
componentsProps?: {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
cumulativeBadge?: Partial<Omit<BadgeProps2, "hiddenFrom">>
|
|
444
|
-
cumulativeBadgeTransition?: Partial<TransitionProps3>
|
|
428
|
+
chipGroup?: Partial<ChipGroupProps<true>>
|
|
429
|
+
container?: Partial<FlexProps>
|
|
430
|
+
ScrollArea?: Partial<ScrollAreaProps3>
|
|
445
431
|
};
|
|
446
432
|
}
|
|
447
|
-
declare function
|
|
448
|
-
import {
|
|
433
|
+
declare function ScrollableChipGroup2({ value, ref, onChange, gap, componentsProps, children }: PropsWithChildren14<ScrollableChipGroupProps>): ReactNode17;
|
|
434
|
+
import { ComponentProps as ComponentProps5, PropsWithChildren as PropsWithChildren15, ReactNode as ReactNode20 } from "react";
|
|
435
|
+
import { Box } from "@mantine/core";
|
|
436
|
+
import { ActionIcon as ActionIcon2, ActionIconProps, TooltipProps as TooltipProps2, TransitionProps as TransitionProps2 } from "@mantine/core";
|
|
449
437
|
import { Icon as Icon4, IconProps as IconProps4 } from "@tabler/icons-react";
|
|
450
|
-
import { ReactNode as
|
|
451
|
-
type RemoraidButtonDefaultResponsivity = true;
|
|
452
|
-
interface ExplicitRemoraidButtonProps<Responsive extends boolean> {
|
|
453
|
-
responsive: Responsive;
|
|
454
|
-
label: string;
|
|
455
|
-
size?: MantineSize7;
|
|
456
|
-
color?: MantineColor;
|
|
457
|
-
breakpoint?: true extends Responsive ? MantineBreakpoint3 : never;
|
|
458
|
-
collapsed?: false extends Responsive ? boolean : never;
|
|
459
|
-
icon?: Icon4;
|
|
460
|
-
iconSize?: RemoraidIconSize;
|
|
461
|
-
onClick?: () => void;
|
|
462
|
-
loading?: boolean;
|
|
463
|
-
variant?: Extract<ButtonVariant, ActionIconVariant>;
|
|
464
|
-
mounted?: TransitionProps4["mounted"];
|
|
465
|
-
componentsProps?: {
|
|
466
|
-
tooltip?: Partial<TooltipProps3>
|
|
467
|
-
icon?: Partial<IconProps4>
|
|
468
|
-
button?: Omit<Partial<Common<ButtonProps, ActionIconProps>>, "variant" | "onClick" | "size" | "color" | "loading">
|
|
469
|
-
transition?: Partial<Omit<TransitionProps4, "mounted">>
|
|
470
|
-
Button?: Partial<ButtonProps>
|
|
471
|
-
ActionIcon?: Partial<ActionIconProps>
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
type RemoraidButtonProps<Responsive extends boolean = RemoraidButtonDefaultResponsivity> = OptionalIfExtends<ExplicitRemoraidButtonProps<Responsive>, "responsive", true, Responsive>;
|
|
475
|
-
declare function RemoraidButton<Responsive extends boolean = RemoraidButtonDefaultResponsivity>({ label, responsive: ResponsiveProp, breakpoint: breakpointProp, collapsed: collapsedProp, size, color, onClick, loading, variant, mounted, icon: iconProp, iconSize: iconSizeProp, componentsProps }: RemoraidButtonProps<Responsive>): ReactNode20;
|
|
476
|
-
import { ActionIcon as ActionIcon2, ActionIconProps as ActionIconProps2, TooltipProps as TooltipProps4, TransitionProps as TransitionProps5 } from "@mantine/core";
|
|
477
|
-
import { Icon as Icon5, IconProps as IconProps5 } from "@tabler/icons-react";
|
|
478
|
-
import { ComponentProps as ComponentProps4, ReactNode as ReactNode21 } from "react";
|
|
438
|
+
import { ComponentProps as ComponentProps4, ReactNode as ReactNode18 } from "react";
|
|
479
439
|
interface ControlButtonProps {
|
|
480
|
-
icon:
|
|
440
|
+
icon: Icon4;
|
|
481
441
|
mounted?: boolean;
|
|
482
442
|
tooltip?: string;
|
|
483
|
-
size?:
|
|
443
|
+
size?: ActionIconProps["size"];
|
|
484
444
|
iconSize?: RemoraidIconSize;
|
|
485
|
-
color?:
|
|
445
|
+
color?: ActionIconProps["color"];
|
|
486
446
|
onClick?: ComponentProps4<typeof ActionIcon2<"button">>["onClick"];
|
|
487
447
|
order?: number;
|
|
488
448
|
componentsProps?: {
|
|
489
|
-
transition?: Partial<
|
|
490
|
-
tooltip?: Partial<
|
|
491
|
-
button?: Partial<
|
|
492
|
-
icon?: Partial<
|
|
449
|
+
transition?: Partial<TransitionProps2>
|
|
450
|
+
tooltip?: Partial<TooltipProps2>
|
|
451
|
+
button?: Partial<ActionIconProps>
|
|
452
|
+
icon?: Partial<IconProps4>
|
|
493
453
|
};
|
|
494
454
|
}
|
|
495
|
-
declare function ControlButton({ icon:
|
|
496
|
-
import { ReactNode as
|
|
497
|
-
import { GroupProps as
|
|
498
|
-
import { IconProps as
|
|
455
|
+
declare function ControlButton({ icon: Icon4, mounted, size, iconSize, onClick, order, color, tooltip, componentsProps }: ControlButtonProps): ReactNode18;
|
|
456
|
+
import { ReactNode as ReactNode19, Ref, RefObject as RefObject2 } from "react";
|
|
457
|
+
import { GroupProps as GroupProps3, MantineSize as MantineSize6, PaperProps as PaperProps2, TransitionProps as TransitionProps3 } from "@mantine/core";
|
|
458
|
+
import { IconProps as IconProps5 } from "@tabler/icons-react";
|
|
499
459
|
interface ControlsProps {
|
|
500
|
-
dragContainerRef:
|
|
460
|
+
dragContainerRef: RefObject2<HTMLDivElement | null>;
|
|
501
461
|
mounted?: boolean;
|
|
502
462
|
groupRef?: Ref<HTMLDivElement>;
|
|
503
|
-
gutter?:
|
|
463
|
+
gutter?: MantineSize6 | number;
|
|
504
464
|
iconSize?: RemoraidIconSize;
|
|
505
465
|
additionalButtons?: ElementOrPropsOfType<typeof ControlButton>[];
|
|
506
466
|
componentsProps?: {
|
|
507
|
-
group?: Partial<
|
|
467
|
+
group?: Partial<GroupProps3>
|
|
508
468
|
container?: Partial<PaperProps2>
|
|
509
|
-
transition?: Partial<
|
|
510
|
-
gripIcon?: Partial<
|
|
469
|
+
transition?: Partial<TransitionProps3>
|
|
470
|
+
gripIcon?: Partial<IconProps5>
|
|
511
471
|
};
|
|
512
472
|
}
|
|
513
|
-
declare function Controls({ groupRef, mounted, dragContainerRef, gutter, iconSize, additionalButtons: additionalButtonsProp, componentsProps, children: childrenProp }: PropsWithChildrenOfType<typeof ControlButton, ControlsProps>):
|
|
514
|
-
import { MantineSize as MantineSize9, Paper, TransitionProps as TransitionProps7 } from "@mantine/core";
|
|
515
|
-
import { ComponentProps as ComponentProps6, PropsWithChildren as PropsWithChildren15, ReactNode as ReactNode24 } from "react";
|
|
516
|
-
import { ComponentProps as ComponentProps5, PropsWithChildren as PropsWithChildren14, ReactNode as ReactNode23 } from "react";
|
|
517
|
-
import { Box } from "@mantine/core";
|
|
473
|
+
declare function Controls({ groupRef, mounted, dragContainerRef, gutter, iconSize, additionalButtons: additionalButtonsProp, componentsProps, children: childrenProp }: PropsWithChildrenOfType<typeof ControlButton, ControlsProps>): ReactNode19;
|
|
518
474
|
type PinnableDefaultLayoutType = LayoutType.Frame;
|
|
519
475
|
interface ExplicitPinnableProps<T extends LayoutType> {
|
|
520
476
|
layoutType: T;
|
|
@@ -531,7 +487,80 @@ interface ExplicitPinnableProps<T extends LayoutType> {
|
|
|
531
487
|
};
|
|
532
488
|
}
|
|
533
489
|
type PinnableProps<T extends LayoutType = PinnableDefaultLayoutType> = OptionalIfExtends<ExplicitPinnableProps<T>, "layoutType", PinnableDefaultLayoutType, T>;
|
|
534
|
-
declare function Pinnable2<T extends LayoutType = PinnableDefaultLayoutType>({ layoutType: layoutTypeProp, section, initialValue, layoutId, controlsContainer, hidden, componentsProps, children }:
|
|
490
|
+
declare function Pinnable2<T extends LayoutType = PinnableDefaultLayoutType>({ layoutType: layoutTypeProp, section, initialValue, layoutId, controlsContainer, hidden, componentsProps, children }: PropsWithChildren15<PinnableProps<T>>): ReactNode20;
|
|
491
|
+
interface WidgetSelectionHeaderProps {
|
|
492
|
+
title?: string;
|
|
493
|
+
pinnableSection?: FrameLayoutSection.Top | FrameLayoutSection.Bottom | null;
|
|
494
|
+
initiallyPinned?: boolean;
|
|
495
|
+
disabledWidgets?: string[];
|
|
496
|
+
componentsProps?: {
|
|
497
|
+
container?: Partial<FlexProps2>
|
|
498
|
+
widgetMenu?: Partial<MenuProps2>
|
|
499
|
+
title?: Partial<TextProps>
|
|
500
|
+
ScrollableChipGroup?: Partial<ScrollableChipGroupProps>
|
|
501
|
+
Chip?: Partial<ChipProps>
|
|
502
|
+
Pinnable?: Partial<PinnableProps>
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
declare function WidgetSelectionHeader({ title, pinnableSection, initiallyPinned, disabledWidgets, componentsProps }: WidgetSelectionHeaderProps): ReactNode21;
|
|
506
|
+
import { BadgeProps as BadgeProps2, GroupProps as GroupProps4, HoverCardProps as HoverCardProps2, MantineBreakpoint as MantineBreakpoint2, MantineSize as MantineSize7, StackProps as StackProps2, TransitionProps as TransitionProps5 } from "@mantine/core";
|
|
507
|
+
import { ReactNode as ReactNode23 } from "react";
|
|
508
|
+
import { BadgeProps, TooltipProps as TooltipProps3, TransitionProps as TransitionProps4 } from "@mantine/core";
|
|
509
|
+
import { ReactNode as ReactNode22 } from "react";
|
|
510
|
+
interface BadgeMinimalProps {
|
|
511
|
+
label: string;
|
|
512
|
+
tooltip?: string;
|
|
513
|
+
mounted?: TransitionProps4["mounted"];
|
|
514
|
+
componentsProps?: {
|
|
515
|
+
badge?: BadgeProps
|
|
516
|
+
transition?: Partial<Omit<TransitionProps4, "mounted">>
|
|
517
|
+
tooltip?: TooltipProps3
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
declare function BadgeMinimal({ label, tooltip, mounted, componentsProps }: BadgeMinimalProps): ReactNode22;
|
|
521
|
+
interface BadgeGroupProps {
|
|
522
|
+
badges: ElementOrPropsOfType<typeof BadgeMinimal>[];
|
|
523
|
+
gap?: MantineSize7 | number;
|
|
524
|
+
breakpoint?: MantineBreakpoint2;
|
|
525
|
+
componentsProps?: {
|
|
526
|
+
container?: Partial<Omit<GroupProps4, "visibleFrom">>
|
|
527
|
+
HoverCard?: Partial<HoverCardProps2>
|
|
528
|
+
hoverContainer?: Partial<StackProps2>
|
|
529
|
+
cumulativeBadge?: Partial<Omit<BadgeProps2, "hiddenFrom">>
|
|
530
|
+
cumulativeBadgeTransition?: Partial<TransitionProps5>
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
declare function BadgeGroup({ badges: badgesProp, gap, breakpoint: breakpointProp, componentsProps }: BadgeGroupProps): ReactNode23;
|
|
534
|
+
import { ActionIconProps as ActionIconProps2, ActionIconVariant, ButtonProps, ButtonVariant, MantineBreakpoint as MantineBreakpoint3, MantineColor, MantineSize as MantineSize8, TooltipProps as TooltipProps4, TransitionProps as TransitionProps6 } from "@mantine/core";
|
|
535
|
+
import { Icon as Icon5, IconProps as IconProps6 } from "@tabler/icons-react";
|
|
536
|
+
import { ReactNode as ReactNode24 } from "react";
|
|
537
|
+
type RemoraidButtonDefaultResponsivity = true;
|
|
538
|
+
interface ExplicitRemoraidButtonProps<Responsive extends boolean> {
|
|
539
|
+
responsive: Responsive;
|
|
540
|
+
label: string;
|
|
541
|
+
size?: MantineSize8;
|
|
542
|
+
color?: MantineColor;
|
|
543
|
+
breakpoint?: true extends Responsive ? MantineBreakpoint3 : never;
|
|
544
|
+
collapsed?: false extends Responsive ? boolean : never;
|
|
545
|
+
icon?: Icon5;
|
|
546
|
+
iconSize?: RemoraidIconSize;
|
|
547
|
+
onClick?: () => void;
|
|
548
|
+
loading?: boolean;
|
|
549
|
+
variant?: Extract<ButtonVariant, ActionIconVariant>;
|
|
550
|
+
mounted?: TransitionProps6["mounted"];
|
|
551
|
+
componentsProps?: {
|
|
552
|
+
tooltip?: Partial<TooltipProps4>
|
|
553
|
+
icon?: Partial<IconProps6>
|
|
554
|
+
button?: Omit<Partial<Common<ButtonProps, ActionIconProps2>>, "variant" | "onClick" | "size" | "color" | "loading">
|
|
555
|
+
transition?: Partial<Omit<TransitionProps6, "mounted">>
|
|
556
|
+
Button?: Partial<ButtonProps>
|
|
557
|
+
ActionIcon?: Partial<ActionIconProps2>
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
type RemoraidButtonProps<Responsive extends boolean = RemoraidButtonDefaultResponsivity> = OptionalIfExtends<ExplicitRemoraidButtonProps<Responsive>, "responsive", true, Responsive>;
|
|
561
|
+
declare function RemoraidButton<Responsive extends boolean = RemoraidButtonDefaultResponsivity>({ label, responsive: ResponsiveProp, breakpoint: breakpointProp, collapsed: collapsedProp, size, color, onClick, loading, variant, mounted, icon: iconProp, iconSize: iconSizeProp, componentsProps }: RemoraidButtonProps<Responsive>): ReactNode24;
|
|
562
|
+
import { MantineSize as MantineSize9, Paper, TransitionProps as TransitionProps7 } from "@mantine/core";
|
|
563
|
+
import { ComponentProps as ComponentProps6, PropsWithChildren as PropsWithChildren16, ReactNode as ReactNode25 } from "react";
|
|
535
564
|
interface WidgetWrapperProps {
|
|
536
565
|
config: WidgetConfiguration;
|
|
537
566
|
mt?: MantineSize9 | number;
|
|
@@ -545,9 +574,9 @@ interface WidgetWrapperProps {
|
|
|
545
574
|
Pinnable?: Partial<PinnableProps>
|
|
546
575
|
};
|
|
547
576
|
}
|
|
548
|
-
declare function WidgetWrapper({ config, mt, withCloseButton, pinnableSection, componentsProps, children }:
|
|
549
|
-
import { MantineSize as MantineSize10, LoaderProps, DividerProps, StackProps as StackProps3, TitleProps } from "@mantine/core";
|
|
550
|
-
import { PropsWithChildren as
|
|
577
|
+
declare function WidgetWrapper({ config, mt, withCloseButton, pinnableSection, componentsProps, children }: PropsWithChildren16<WidgetWrapperProps>): ReactNode25;
|
|
578
|
+
import { MantineSize as MantineSize10, LoaderProps, DividerProps, StackProps as StackProps3, TitleProps, ScrollAreaAutosizeProps } from "@mantine/core";
|
|
579
|
+
import { PropsWithChildren as PropsWithChildren17, ReactNode as ReactNode26 } from "react";
|
|
551
580
|
interface WidgetProps {
|
|
552
581
|
id: string;
|
|
553
582
|
title?: string;
|
|
@@ -565,6 +594,8 @@ interface WidgetProps {
|
|
|
565
594
|
pinnableSection?: WidgetWrapperProps["pinnableSection"];
|
|
566
595
|
componentsProps?: {
|
|
567
596
|
wrapper?: Partial<Omit<WidgetWrapperProps, "config">>
|
|
597
|
+
contentContainer?: Partial<StackProps3>
|
|
598
|
+
childrenContainer?: Partial<ScrollAreaAutosizeProps>
|
|
568
599
|
loader?: Partial<LoaderProps>
|
|
569
600
|
title?: Partial<TitleProps>
|
|
570
601
|
badgeGroup?: Partial<BadgeGroupProps>
|
|
@@ -572,9 +603,9 @@ interface WidgetProps {
|
|
|
572
603
|
alertsContainer?: Partial<StackProps3>
|
|
573
604
|
};
|
|
574
605
|
}
|
|
575
|
-
declare function Widget({ id, title, config, badges: badgesProp, buttons: buttonsProp, alerts: alertsProp, gaps, loading, mt, pinnableSection, componentsProps, children }:
|
|
606
|
+
declare function Widget({ id, title, config, badges: badgesProp, buttons: buttonsProp, alerts: alertsProp, gaps, loading, mt, pinnableSection, componentsProps, children }: PropsWithChildren17<WidgetProps>): ReactNode26;
|
|
576
607
|
import { ContainerProps as ContainerProps2, StackProps as StackProps4 } from "@mantine/core";
|
|
577
|
-
import { PropsWithChildren as
|
|
608
|
+
import { PropsWithChildren as PropsWithChildren18, ReactNode as ReactNode27 } from "react";
|
|
578
609
|
declare const usePage: () => PageConfiguration | null;
|
|
579
610
|
interface PageProps {
|
|
580
611
|
name?: string;
|
|
@@ -586,16 +617,16 @@ interface PageProps {
|
|
|
586
617
|
Stack?: Partial<StackProps4>
|
|
587
618
|
};
|
|
588
619
|
}
|
|
589
|
-
declare function Page({ children, name, config, gap, componentsProps }:
|
|
590
|
-
import { PropsWithChildren as
|
|
620
|
+
declare function Page({ children, name, config, gap, componentsProps }: PropsWithChildren18<PageProps>): ReactNode27;
|
|
621
|
+
import { PropsWithChildren as PropsWithChildren19, ReactNode as ReactNode28 } from "react";
|
|
591
622
|
interface NotFoundPageProps {
|
|
592
623
|
message?: string;
|
|
593
624
|
componentsProps?: {
|
|
594
625
|
page?: PageProps
|
|
595
626
|
};
|
|
596
627
|
}
|
|
597
|
-
declare function NotFoundPage({ children, message, componentsProps }:
|
|
598
|
-
import { PropsWithChildren as
|
|
628
|
+
declare function NotFoundPage({ children, message, componentsProps }: PropsWithChildren19<NotFoundPageProps>): ReactNode28;
|
|
629
|
+
import { PropsWithChildren as PropsWithChildren20, ReactNode as ReactNode29 } from "react";
|
|
599
630
|
declare enum EnvironmentShellVariant {
|
|
600
631
|
Alert = "alert",
|
|
601
632
|
Error = "error",
|
|
@@ -611,9 +642,9 @@ interface EnvironmentShellProps {
|
|
|
611
642
|
alertContainer: Partial<PageContainerProps>
|
|
612
643
|
};
|
|
613
644
|
}
|
|
614
|
-
declare function EnvironmentShell({ environment, variant, message, includeAlertContainer, componentsProps, children }:
|
|
615
|
-
import { PropsWithChildren as
|
|
616
|
-
import { ReactNode as
|
|
645
|
+
declare function EnvironmentShell({ environment, variant, message, includeAlertContainer, componentsProps, children }: PropsWithChildren20<EnvironmentShellProps>): ReactNode29;
|
|
646
|
+
import { PropsWithChildren as PropsWithChildren21, ReactNode as ReactNode31 } from "react";
|
|
647
|
+
import { ReactNode as ReactNode30 } from "react";
|
|
617
648
|
import { GroupProps as GroupProps5 } from "@mantine/core";
|
|
618
649
|
interface SettingsWidgetSaveButtonProps {
|
|
619
650
|
onSaveChanges: () => void;
|
|
@@ -623,7 +654,7 @@ interface SettingsWidgetSaveButtonProps {
|
|
|
623
654
|
button?: Partial<RemoraidButtonProps>
|
|
624
655
|
};
|
|
625
656
|
}
|
|
626
|
-
declare function SaveButton2({ onSaveChanges, insideContainer, componentsProps }: SettingsWidgetSaveButtonProps):
|
|
657
|
+
declare function SaveButton2({ onSaveChanges, insideContainer, componentsProps }: SettingsWidgetSaveButtonProps): ReactNode30;
|
|
627
658
|
declare const defaultSettingsWidgetContext: {};
|
|
628
659
|
declare const useSettingsWidgetContext: () => SettingsWidgetContext;
|
|
629
660
|
interface SettingsWidgetProps {
|
|
@@ -632,17 +663,17 @@ interface SettingsWidgetProps {
|
|
|
632
663
|
custom?: boolean;
|
|
633
664
|
widgetProps?: Partial<WidgetProps>;
|
|
634
665
|
}
|
|
635
|
-
declare function SettingsWidget({ children, onRestoreDefaultValues, unsavedChanges, custom, widgetProps }:
|
|
636
|
-
interface SettingsWidget extends React.FC<
|
|
666
|
+
declare function SettingsWidget({ children, onRestoreDefaultValues, unsavedChanges, custom, widgetProps }: PropsWithChildren21<SettingsWidgetProps>): ReactNode31;
|
|
667
|
+
interface SettingsWidget extends React.FC<PropsWithChildren21<SettingsWidgetProps>> {
|
|
637
668
|
SaveButton: typeof SaveButton2;
|
|
638
669
|
}
|
|
639
670
|
declare const _default3: SettingsWidget;
|
|
640
|
-
import { ComponentProps as ComponentProps7, ReactNode as
|
|
641
|
-
import { PropsWithChildren as
|
|
671
|
+
import { ComponentProps as ComponentProps7, ReactNode as ReactNode33 } from "react";
|
|
672
|
+
import { PropsWithChildren as PropsWithChildren22, ReactNode as ReactNode32 } from "react";
|
|
642
673
|
interface SettingsTableRowProps {
|
|
643
674
|
label: string;
|
|
644
675
|
}
|
|
645
|
-
declare function Row2({ children, label }:
|
|
676
|
+
declare function Row2({ children, label }: PropsWithChildren22<SettingsTableRowProps>): ReactNode32;
|
|
646
677
|
declare const defaultSettingsTableOptions: {
|
|
647
678
|
leftColumnWidth: string
|
|
648
679
|
};
|
|
@@ -650,12 +681,12 @@ declare const useSettingsTableOptions: () => SettingsTableOptions;
|
|
|
650
681
|
interface SettingsTableProps {
|
|
651
682
|
leftColumnWidth?: string | number;
|
|
652
683
|
}
|
|
653
|
-
declare function SettingsTable({ leftColumnWidth, children: childrenProp }: PropsWithChildrenOfType<typeof Row2, SettingsTableProps>):
|
|
684
|
+
declare function SettingsTable({ leftColumnWidth, children: childrenProp }: PropsWithChildrenOfType<typeof Row2, SettingsTableProps>): ReactNode33;
|
|
654
685
|
interface SettingsTable extends React.FC<ComponentProps7<typeof SettingsTable>> {
|
|
655
686
|
Row: typeof Row2;
|
|
656
687
|
}
|
|
657
688
|
declare const _default4: SettingsTable;
|
|
658
|
-
import { ComponentProps as ComponentProps8, ReactNode as
|
|
689
|
+
import { ComponentProps as ComponentProps8, ReactNode as ReactNode34 } from "react";
|
|
659
690
|
declare const defaultNavbarSettingsWidgetId = "navbar-settings";
|
|
660
691
|
interface NavbarSettingsWidgetProps {
|
|
661
692
|
additionalRows?: (ComponentProps8<typeof _default4.Row> | ElementOfType<typeof _default4.Row>)[];
|
|
@@ -664,21 +695,8 @@ interface NavbarSettingsWidgetProps {
|
|
|
664
695
|
table: Partial<SettingsTableProps>
|
|
665
696
|
};
|
|
666
697
|
}
|
|
667
|
-
declare function NavbarSettingsWidget({ additionalRows: additionalRowsProp, widgetProps, componentsProps }: NavbarSettingsWidgetProps):
|
|
668
|
-
import {
|
|
669
|
-
import { ReactNode as ReactNode34 } from "react";
|
|
670
|
-
interface ScrollbleChipGroupProps {
|
|
671
|
-
value: string[];
|
|
672
|
-
onChange?: (value: string[]) => void;
|
|
673
|
-
gap?: MantineSize11 | number;
|
|
674
|
-
componentsProps?: {
|
|
675
|
-
chipGroup?: Partial<ChipGroupProps<true>>
|
|
676
|
-
container?: Partial<FlexProps>
|
|
677
|
-
ScrollArea?: Partial<ScrollAreaProps3>
|
|
678
|
-
};
|
|
679
|
-
}
|
|
680
|
-
declare function ScrollableChipGroup({ value, onChange, gap, componentsProps, children: childrenProp }: PropsWithChildrenOfType<typeof Chip, ScrollbleChipGroupProps>): ReactNode34;
|
|
681
|
-
import { PropsWithChildren as PropsWithChildren22, ReactNode as ReactNode35 } from "react";
|
|
698
|
+
declare function NavbarSettingsWidget({ additionalRows: additionalRowsProp, widgetProps, componentsProps }: NavbarSettingsWidgetProps): ReactNode34;
|
|
699
|
+
import { PropsWithChildren as PropsWithChildren23, ReactNode as ReactNode35 } from "react";
|
|
682
700
|
declare const createContextCluster: <
|
|
683
701
|
Context,
|
|
684
702
|
StaticID extends string = never
|
|
@@ -693,5 +711,5 @@ interface ContextClusterProviderProps<
|
|
|
693
711
|
declare function ContextClusterProvider<
|
|
694
712
|
Context,
|
|
695
713
|
StaticID extends string = never
|
|
696
|
-
>({ cluster, values, children }:
|
|
697
|
-
export { useWidgets, useWidget, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayout, remoraidAppShellLayoutId, isValidElementOfType, getElementTypeName, getDefaultWidgetContext, getDefaultButtonIconSize, defaultUserExperienceCookieName, defaultUserExperience, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultNavbarSettingsWidgetId, defaultLayoutsContext, defaultAppShellNavbarPositions, defaultAppShellFooterPositions, 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, _default3 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default4 as SettingsTable, ScrollbleChipGroupProps, ScrollableChipGroup, 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, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarMinimalProps, LayoutsProviderProps, LayoutsContext, LayoutType, LayoutSection, LayoutContext, HydrationStatusProviderProps, HydrationStatusProvider, HydrationStatus, FrameLayoutSection, FrameLayoutProps, FrameLayoutElementProps, _default as FrameLayout, FooterVariant, FooterMinimalProps, EnvironmentShellVariant, EnvironmentShellProps, EnvironmentShell, ElementOrPropsOfType, ElementOfType, DefaultNavbarVariant, DefaultFooterVariant, CustomAppVariables, CoreUserExperience, ControlsProps, Controls, ControlButtonProps, ControlButton, ContextClusterProviderProps, ContextClusterProvider, ContextCluster, Common, ChildrenOfType, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellNavbarVariant, AppShellNavbarPosition, AppShellFooterVariant, AppShellFooterPosition, _default2 as AppShell, AppProviderProps, AppProvider2 as AppProvider, AppLogo, AppContextProps, AlertMinimalProps, AlertMinimal, AlertCategory };
|
|
714
|
+
>({ cluster, values, children }: PropsWithChildren23<ContextClusterProviderProps<Context, StaticID>>): ReactNode35;
|
|
715
|
+
export { useWidgets, useWidget, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidApp, usePage, useLayouts, useHydrationStatus, useHydratedMantineColorScheme, useFrameLayout, scrollToWidget, remoraidAppShellLayoutId, isValidElementOfType, getElementTypeName, getDefaultWidgetContext, getDefaultButtonIconSize, getCssVars, defaultUserExperienceCookieName, defaultUserExperience, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultNavbarSettingsWidgetId, defaultLayoutsContext, defaultAppShellNavbarPositions, defaultAppShellFooterPositions, 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, _default3 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default4 as SettingsTable, ScrollableChipGroupProps as ScrollbleChipGroupProps, ScrollableChipGroup2 as ScrollableChipGroup, 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, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarMinimalProps, LayoutsProviderProps, LayoutsContext, LayoutType, LayoutSection, LayoutContext, HydrationStatusProviderProps, HydrationStatusProvider, HydrationStatus, FrameLayoutSection, FrameLayoutProps, FrameLayoutElementProps, _default as FrameLayout, FooterVariant, FooterMinimalProps, EnvironmentShellVariant, EnvironmentShellProps, EnvironmentShell, ElementOrPropsOfType, ElementOfType, DefaultNavbarVariant, DefaultFooterVariant, CustomAppVariables, CoreUserExperience, ControlsProps, Controls, ControlButtonProps, ControlButton, ContextClusterProviderProps, ContextClusterProvider, ContextCluster, Common, ChildrenOfType, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellNavbarVariant, AppShellNavbarPosition, AppShellFooterVariant, AppShellFooterPosition, _default2 as AppShell, AppProviderProps, AppProvider2 as AppProvider, AppLogo, AppContextProps, AlertMinimalProps, AlertMinimal, AlertCategory };
|