@mindlogic-ai/logician-ui 2.0.0-alpha.18 → 2.0.0-alpha.19
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/index.js +118 -128
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -128
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ErrorFallback/ErrorFallback.tsx +1 -7
package/dist/index.js
CHANGED
|
@@ -2698,143 +2698,133 @@ User Agent: ${errorInfo.userAgent}`;
|
|
|
2698
2698
|
});
|
|
2699
2699
|
});
|
|
2700
2700
|
};
|
|
2701
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2702
|
-
|
|
2701
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { minH: "100vh", align: "center", justify: "center", p: 8, children: /* @__PURE__ */ jsxRuntime.jsx(Container, { disableResponsive: true, maxW: "container.sm", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2702
|
+
chunkT3FWIJ7A_js.Card,
|
|
2703
2703
|
{
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2704
|
+
p: 12,
|
|
2705
|
+
textAlign: "center",
|
|
2706
|
+
w: "full",
|
|
2707
|
+
bgColor: "white",
|
|
2708
|
+
boxShadow: "2xl",
|
|
2709
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 6, align: "center", w: "full", mx: "auto", children: [
|
|
2710
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2711
|
+
react.Box,
|
|
2712
|
+
{
|
|
2713
|
+
position: "relative",
|
|
2714
|
+
p: 4,
|
|
2715
|
+
bg: "danger.lighter",
|
|
2716
|
+
borderRadius: "full",
|
|
2717
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkELL2BUC7_js.MdError, { boxSize: "xl", color: "danger.main" })
|
|
2718
|
+
}
|
|
2719
|
+
),
|
|
2720
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 3, align: "center", w: "full", children: [
|
|
2721
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.H1, { color: "gray.1200", fontSize: "3xl", fontWeight: "bold", children: translate("error_boundary_title") }),
|
|
2722
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Subtitle, { color: "gray.1000", fontSize: "lg", maxW: "md", children: translate("error_boundary_subtitle") })
|
|
2723
|
+
] }),
|
|
2724
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2725
|
+
chunkT3FWIJ7A_js.Card,
|
|
2726
|
+
{
|
|
2727
|
+
bg: "danger.lighter",
|
|
2728
|
+
border: "1px solid",
|
|
2729
|
+
borderColor: "danger.light",
|
|
2730
|
+
p: 4,
|
|
2731
|
+
w: "full",
|
|
2732
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2733
|
+
chunkT3FWIJ7A_js.Text,
|
|
2720
2734
|
{
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkELL2BUC7_js.MdError, { boxSize: "xl", color: "danger.main" })
|
|
2735
|
+
color: "danger.dark",
|
|
2736
|
+
fontFamily: "mono",
|
|
2737
|
+
wordBreak: "break-word",
|
|
2738
|
+
children: error?.message || translate("error_boundary_default_message")
|
|
2726
2739
|
}
|
|
2727
|
-
)
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2740
|
+
)
|
|
2741
|
+
}
|
|
2742
|
+
),
|
|
2743
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Card, { bg: "primary.light", borderColor: "primary.light", p: 6, w: "full", children: [
|
|
2744
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.H4, { color: "primary.dark", mb: 4, textAlign: "center", children: translate("support_information") }),
|
|
2745
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 2, align: "stretch", mb: 4, children: [
|
|
2746
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2747
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2748
|
+
translate("error_id"),
|
|
2749
|
+
":"
|
|
2750
|
+
] }),
|
|
2751
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { fontFamily: "mono", children: errorInfo.errorId })
|
|
2731
2752
|
] }),
|
|
2732
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2733
|
-
chunkT3FWIJ7A_js.
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
border: "1px solid",
|
|
2737
|
-
borderColor: "danger.light",
|
|
2738
|
-
p: 4,
|
|
2739
|
-
w: "full",
|
|
2740
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2741
|
-
chunkT3FWIJ7A_js.Text,
|
|
2742
|
-
{
|
|
2743
|
-
color: "danger.dark",
|
|
2744
|
-
fontFamily: "mono",
|
|
2745
|
-
wordBreak: "break-word",
|
|
2746
|
-
children: error?.message || translate("error_boundary_default_message")
|
|
2747
|
-
}
|
|
2748
|
-
)
|
|
2749
|
-
}
|
|
2750
|
-
),
|
|
2751
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Card, { bg: "primary.light", borderColor: "primary.light", p: 6, w: "full", children: [
|
|
2752
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.H4, { color: "primary.dark", mb: 4, textAlign: "center", children: translate("support_information") }),
|
|
2753
|
-
/* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 2, align: "stretch", mb: 4, children: [
|
|
2754
|
-
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2755
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2756
|
-
translate("error_id"),
|
|
2757
|
-
":"
|
|
2758
|
-
] }),
|
|
2759
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { fontFamily: "mono", children: errorInfo.errorId })
|
|
2760
|
-
] }),
|
|
2761
|
-
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2762
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2763
|
-
translate("time"),
|
|
2764
|
-
":"
|
|
2765
|
-
] }),
|
|
2766
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Subtext, { fontFamily: "mono", children: (/* @__PURE__ */ new Date()).toLocaleString() })
|
|
2767
|
-
] }),
|
|
2768
|
-
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2769
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2770
|
-
translate("component"),
|
|
2771
|
-
":"
|
|
2772
|
-
] }),
|
|
2773
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { fontFamily: "mono", children: componentName || translate("unknown") })
|
|
2774
|
-
] }),
|
|
2775
|
-
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2776
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2777
|
-
translate("user_id"),
|
|
2778
|
-
":"
|
|
2779
|
-
] }),
|
|
2780
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { fontFamily: "mono", children: userId ?? translate("anonymous") })
|
|
2781
|
-
] }),
|
|
2782
|
-
typeof window !== "undefined" && /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2783
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2784
|
-
translate("page"),
|
|
2785
|
-
":"
|
|
2786
|
-
] }),
|
|
2787
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Subtext, { fontFamily: "mono", children: window.location.pathname })
|
|
2788
|
-
] })
|
|
2753
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2754
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2755
|
+
translate("time"),
|
|
2756
|
+
":"
|
|
2789
2757
|
] }),
|
|
2790
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2791
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { textAlign: "left", children: translate("support_help_text") }),
|
|
2792
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2793
|
-
Button,
|
|
2794
|
-
{
|
|
2795
|
-
onClick: copyErrorInfo,
|
|
2796
|
-
size: "sm",
|
|
2797
|
-
minW: "fit-content",
|
|
2798
|
-
variant: "tertiary",
|
|
2799
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkELL2BUC7_js.FaRegCopy, { boxSize: "xs" }),
|
|
2800
|
-
children: translate("copy_error_details")
|
|
2801
|
-
}
|
|
2802
|
-
)
|
|
2803
|
-
] })
|
|
2758
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Subtext, { fontFamily: "mono", children: (/* @__PURE__ */ new Date()).toLocaleString() })
|
|
2804
2759
|
] }),
|
|
2805
|
-
/* @__PURE__ */ jsxRuntime.jsxs(react.
|
|
2806
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
onClick: () => window.location.reload(),
|
|
2826
|
-
size: "sm",
|
|
2827
|
-
variant: "tertiary",
|
|
2828
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkELL2BUC7_js.HiRefresh, {}),
|
|
2829
|
-
children: translate("refresh_page")
|
|
2830
|
-
}
|
|
2831
|
-
)
|
|
2760
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2761
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2762
|
+
translate("component"),
|
|
2763
|
+
":"
|
|
2764
|
+
] }),
|
|
2765
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { fontFamily: "mono", children: componentName || translate("unknown") })
|
|
2766
|
+
] }),
|
|
2767
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2768
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2769
|
+
translate("user_id"),
|
|
2770
|
+
":"
|
|
2771
|
+
] }),
|
|
2772
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { fontFamily: "mono", children: userId ?? translate("anonymous") })
|
|
2773
|
+
] }),
|
|
2774
|
+
typeof window !== "undefined" && /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", children: [
|
|
2775
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkT3FWIJ7A_js.Text, { color: "primary.main", fontWeight: "semibold", children: [
|
|
2776
|
+
translate("page"),
|
|
2777
|
+
":"
|
|
2778
|
+
] }),
|
|
2779
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Subtext, { fontFamily: "mono", children: window.location.pathname })
|
|
2832
2780
|
] })
|
|
2781
|
+
] }),
|
|
2782
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", align: "flex-end", gap: 4, children: [
|
|
2783
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkT3FWIJ7A_js.Text, { textAlign: "left", children: translate("support_help_text") }),
|
|
2784
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2785
|
+
Button,
|
|
2786
|
+
{
|
|
2787
|
+
onClick: copyErrorInfo,
|
|
2788
|
+
size: "sm",
|
|
2789
|
+
minW: "fit-content",
|
|
2790
|
+
variant: "tertiary",
|
|
2791
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkELL2BUC7_js.FaRegCopy, { boxSize: "xs" }),
|
|
2792
|
+
children: translate("copy_error_details")
|
|
2793
|
+
}
|
|
2794
|
+
)
|
|
2833
2795
|
] })
|
|
2834
|
-
}
|
|
2835
|
-
|
|
2796
|
+
] }),
|
|
2797
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.VStack, { spacing: 3, w: "full", align: "center", children: [
|
|
2798
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2799
|
+
Button,
|
|
2800
|
+
{
|
|
2801
|
+
onClick: onErrorReset,
|
|
2802
|
+
size: "lg",
|
|
2803
|
+
variant: "primary",
|
|
2804
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkELL2BUC7_js.HiRefresh, {}),
|
|
2805
|
+
_hover: {
|
|
2806
|
+
transform: "translateY(-1px)",
|
|
2807
|
+
boxShadow: "lg"
|
|
2808
|
+
},
|
|
2809
|
+
w: "full",
|
|
2810
|
+
maxW: "300px",
|
|
2811
|
+
children: translate("try_again")
|
|
2812
|
+
}
|
|
2813
|
+
),
|
|
2814
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2815
|
+
Button,
|
|
2816
|
+
{
|
|
2817
|
+
onClick: () => window.location.reload(),
|
|
2818
|
+
size: "sm",
|
|
2819
|
+
variant: "tertiary",
|
|
2820
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkELL2BUC7_js.HiRefresh, {}),
|
|
2821
|
+
children: translate("refresh_page")
|
|
2822
|
+
}
|
|
2823
|
+
)
|
|
2824
|
+
] })
|
|
2825
|
+
] })
|
|
2836
2826
|
}
|
|
2837
|
-
);
|
|
2827
|
+
) }) });
|
|
2838
2828
|
}
|
|
2839
2829
|
var getTextContent = (node) => {
|
|
2840
2830
|
if (typeof node === "string" || typeof node === "number") {
|