remoraid 2.44.2 → 2.45.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 +10 -3
- package/dist/core/index.d.ts +4 -3
- package/dist/core/index.js +10 -3
- package/dist/jsonforms/index.cjs +7 -1
- package/dist/jsonforms/index.js +7 -1
- package/package.json +1 -1
package/dist/core/index.cjs
CHANGED
|
@@ -6050,7 +6050,12 @@ function UserExperienceProviderWrapper({
|
|
|
6050
6050
|
initialValue
|
|
6051
6051
|
}) {
|
|
6052
6052
|
const [cookies, setCookie] = import_react_cookie.useCookies();
|
|
6053
|
-
const initialUserExperience = import_lodash3.
|
|
6053
|
+
const initialUserExperience = import_lodash3.mergeWith({}, defaultUserExperience, initialValue, (_objValue, srcValue) => {
|
|
6054
|
+
if (Array.isArray(srcValue)) {
|
|
6055
|
+
return [...srcValue];
|
|
6056
|
+
}
|
|
6057
|
+
return;
|
|
6058
|
+
});
|
|
6054
6059
|
const [userExperience, setUserExperience] = import_react5.useState(initialUserExperience);
|
|
6055
6060
|
const [processedCookie, setProcessedCookie] = import_react5.useState(false);
|
|
6056
6061
|
const updateUserExperience = (p) => {
|
|
@@ -7447,7 +7452,7 @@ function Page({
|
|
|
7447
7452
|
}
|
|
7448
7453
|
}, []);
|
|
7449
7454
|
return /* @__PURE__ */ jsx_runtime25.jsx(pageContext.Provider, {
|
|
7450
|
-
value: { name: name ??
|
|
7455
|
+
value: { name: name ?? pageId, pageId, ...config },
|
|
7451
7456
|
children: /* @__PURE__ */ jsx_runtime25.jsx(PageContainer, {
|
|
7452
7457
|
...componentsProps?.PageContainer,
|
|
7453
7458
|
children: /* @__PURE__ */ jsx_runtime25.jsx(import_core14.Stack, {
|
|
@@ -7554,7 +7559,8 @@ function WidgetSelectionHeader({
|
|
|
7554
7559
|
children: title ?? page.name
|
|
7555
7560
|
}),
|
|
7556
7561
|
/* @__PURE__ */ jsx_runtime27.jsx(import_core16.Divider, {
|
|
7557
|
-
orientation: "vertical"
|
|
7562
|
+
orientation: "vertical",
|
|
7563
|
+
...componentsProps?.divider
|
|
7558
7564
|
}),
|
|
7559
7565
|
isPageRegistered(page.pageId) && /* @__PURE__ */ jsx_runtime27.jsx(ScrollableChipGroup, {
|
|
7560
7566
|
value: selectedWidgets,
|
|
@@ -7832,6 +7838,7 @@ function AlertMinimal({
|
|
|
7832
7838
|
icon: Icon4 ? /* @__PURE__ */ jsx_runtime30.jsx(Icon4, {
|
|
7833
7839
|
...import_lodash16.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
7834
7840
|
}) : undefined,
|
|
7841
|
+
...componentsProps?.alert,
|
|
7835
7842
|
style: import_lodash16.merge(transitionStyle, componentsProps?.alert?.style),
|
|
7836
7843
|
children: [
|
|
7837
7844
|
text,
|
package/dist/core/index.d.ts
CHANGED
|
@@ -596,7 +596,7 @@ declare function UserExperienceProviderWrapper<T extends UserExperience>({ child
|
|
|
596
596
|
declare const defaultUserExperience: CoreUserExperience;
|
|
597
597
|
declare const defaultUserExperienceCookieName = "remoraid-core-user-experience";
|
|
598
598
|
declare const useRemoraidUserExperience: () => UserExperienceContext<CoreUserExperience>;
|
|
599
|
-
import { ChipProps, FlexProps as FlexProps2, MenuProps as MenuProps2, TextProps } from "@mantine/core";
|
|
599
|
+
import { ChipProps, DividerProps, FlexProps as FlexProps2, MenuProps as MenuProps2, TextProps } from "@mantine/core";
|
|
600
600
|
import { ReactNode as ReactNode27 } from "react";
|
|
601
601
|
import { ChipGroupProps, FlexProps, MantineSize as MantineSize7, ScrollAreaProps as ScrollAreaProps2 } from "@mantine/core";
|
|
602
602
|
import { PropsWithChildren as PropsWithChildren17, ReactNode as ReactNode26, RefObject as RefObject2 } from "react";
|
|
@@ -621,6 +621,7 @@ interface WidgetSelectionHeaderProps {
|
|
|
621
621
|
container?: Partial<FlexProps2>
|
|
622
622
|
widgetMenu?: Partial<MenuProps2>
|
|
623
623
|
title?: Partial<TextProps>
|
|
624
|
+
divider?: Partial<DividerProps>
|
|
624
625
|
ScrollableChipGroup?: Partial<ScrollableChipGroupProps>
|
|
625
626
|
Chip?: Partial<ChipProps>
|
|
626
627
|
Pinnable?: Partial<PinnableProps>
|
|
@@ -671,7 +672,7 @@ interface WidgetWrapperProps {
|
|
|
671
672
|
};
|
|
672
673
|
}
|
|
673
674
|
declare function WidgetWrapper({ config, mt, withCloseButton, pinnableSection, componentsProps, children }: PropsWithChildren18<WidgetWrapperProps>): ReactNode30;
|
|
674
|
-
import { MantineSize as MantineSize10, LoaderProps, DividerProps, StackProps as StackProps3, TitleProps, ScrollAreaAutosizeProps, TextProps as TextProps2 } from "@mantine/core";
|
|
675
|
+
import { MantineSize as MantineSize10, LoaderProps, DividerProps as DividerProps2, StackProps as StackProps3, TitleProps, ScrollAreaAutosizeProps, TextProps as TextProps2 } from "@mantine/core";
|
|
675
676
|
import { PropsWithChildren as PropsWithChildren19, ReactNode as ReactNode31 } from "react";
|
|
676
677
|
interface WidgetProps {
|
|
677
678
|
id: string;
|
|
@@ -697,7 +698,7 @@ interface WidgetProps {
|
|
|
697
698
|
title?: Partial<TitleProps>
|
|
698
699
|
description?: Partial<TextProps2>
|
|
699
700
|
badgeGroup?: Partial<BadgeGroupProps>
|
|
700
|
-
divider?: Partial<
|
|
701
|
+
divider?: Partial<DividerProps2>
|
|
701
702
|
alertsContainer?: Partial<StackProps3>
|
|
702
703
|
};
|
|
703
704
|
}
|
package/dist/core/index.js
CHANGED
|
@@ -5953,7 +5953,12 @@ function UserExperienceProviderWrapper({
|
|
|
5953
5953
|
initialValue
|
|
5954
5954
|
}) {
|
|
5955
5955
|
const [cookies, setCookie] = useCookies();
|
|
5956
|
-
const initialUserExperience = import_lodash3.
|
|
5956
|
+
const initialUserExperience = import_lodash3.mergeWith({}, defaultUserExperience, initialValue, (_objValue, srcValue) => {
|
|
5957
|
+
if (Array.isArray(srcValue)) {
|
|
5958
|
+
return [...srcValue];
|
|
5959
|
+
}
|
|
5960
|
+
return;
|
|
5961
|
+
});
|
|
5957
5962
|
const [userExperience, setUserExperience] = useState3(initialUserExperience);
|
|
5958
5963
|
const [processedCookie, setProcessedCookie] = useState3(false);
|
|
5959
5964
|
const updateUserExperience = (p) => {
|
|
@@ -7408,7 +7413,7 @@ function Page({
|
|
|
7408
7413
|
}
|
|
7409
7414
|
}, []);
|
|
7410
7415
|
return /* @__PURE__ */ jsx25(pageContext.Provider, {
|
|
7411
|
-
value: { name: name ??
|
|
7416
|
+
value: { name: name ?? pageId, pageId, ...config },
|
|
7412
7417
|
children: /* @__PURE__ */ jsx25(PageContainer, {
|
|
7413
7418
|
...componentsProps?.PageContainer,
|
|
7414
7419
|
children: /* @__PURE__ */ jsx25(Stack3, {
|
|
@@ -7519,7 +7524,8 @@ function WidgetSelectionHeader({
|
|
|
7519
7524
|
children: title ?? page.name
|
|
7520
7525
|
}),
|
|
7521
7526
|
/* @__PURE__ */ jsx27(Divider, {
|
|
7522
|
-
orientation: "vertical"
|
|
7527
|
+
orientation: "vertical",
|
|
7528
|
+
...componentsProps?.divider
|
|
7523
7529
|
}),
|
|
7524
7530
|
isPageRegistered(page.pageId) && /* @__PURE__ */ jsx27(ScrollableChipGroup, {
|
|
7525
7531
|
value: selectedWidgets,
|
|
@@ -7807,6 +7813,7 @@ function AlertMinimal({
|
|
|
7807
7813
|
icon: Icon4 ? /* @__PURE__ */ jsx30(Icon4, {
|
|
7808
7814
|
...import_lodash16.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
7809
7815
|
}) : undefined,
|
|
7816
|
+
...componentsProps?.alert,
|
|
7810
7817
|
style: import_lodash16.merge(transitionStyle, componentsProps?.alert?.style),
|
|
7811
7818
|
children: [
|
|
7812
7819
|
text,
|
package/dist/jsonforms/index.cjs
CHANGED
|
@@ -5664,7 +5664,12 @@ function UserExperienceProviderWrapper({
|
|
|
5664
5664
|
initialValue
|
|
5665
5665
|
}) {
|
|
5666
5666
|
const [cookies, setCookie] = import_react_cookie.useCookies();
|
|
5667
|
-
const initialUserExperience = import_lodash3.
|
|
5667
|
+
const initialUserExperience = import_lodash3.mergeWith({}, defaultUserExperience, initialValue, (_objValue, srcValue) => {
|
|
5668
|
+
if (Array.isArray(srcValue)) {
|
|
5669
|
+
return [...srcValue];
|
|
5670
|
+
}
|
|
5671
|
+
return;
|
|
5672
|
+
});
|
|
5668
5673
|
const [userExperience, setUserExperience] = import_react5.useState(initialUserExperience);
|
|
5669
5674
|
const [processedCookie, setProcessedCookie] = import_react5.useState(false);
|
|
5670
5675
|
const updateUserExperience = (p) => {
|
|
@@ -7100,6 +7105,7 @@ function AlertMinimal({
|
|
|
7100
7105
|
icon: Icon4 ? /* @__PURE__ */ jsx_runtime30.jsx(Icon4, {
|
|
7101
7106
|
...import_lodash16.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
7102
7107
|
}) : undefined,
|
|
7108
|
+
...componentsProps?.alert,
|
|
7103
7109
|
style: import_lodash16.merge(transitionStyle, componentsProps?.alert?.style),
|
|
7104
7110
|
children: [
|
|
7105
7111
|
text,
|
package/dist/jsonforms/index.js
CHANGED
|
@@ -5649,7 +5649,12 @@ function UserExperienceProviderWrapper({
|
|
|
5649
5649
|
initialValue
|
|
5650
5650
|
}) {
|
|
5651
5651
|
const [cookies, setCookie] = useCookies();
|
|
5652
|
-
const initialUserExperience = import_lodash3.
|
|
5652
|
+
const initialUserExperience = import_lodash3.mergeWith({}, defaultUserExperience, initialValue, (_objValue, srcValue) => {
|
|
5653
|
+
if (Array.isArray(srcValue)) {
|
|
5654
|
+
return [...srcValue];
|
|
5655
|
+
}
|
|
5656
|
+
return;
|
|
5657
|
+
});
|
|
5653
5658
|
const [userExperience, setUserExperience] = useState3(initialUserExperience);
|
|
5654
5659
|
const [processedCookie, setProcessedCookie] = useState3(false);
|
|
5655
5660
|
const updateUserExperience = (p) => {
|
|
@@ -7157,6 +7162,7 @@ function AlertMinimal({
|
|
|
7157
7162
|
icon: Icon4 ? /* @__PURE__ */ jsx30(Icon4, {
|
|
7158
7163
|
...import_lodash16.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
7159
7164
|
}) : undefined,
|
|
7165
|
+
...componentsProps?.alert,
|
|
7160
7166
|
style: import_lodash16.merge(transitionStyle, componentsProps?.alert?.style),
|
|
7161
7167
|
children: [
|
|
7162
7168
|
text,
|