@cccsaurora/clue-ui 1.0.4 → 1.1.0-dev.100

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.
Files changed (201) hide show
  1. package/ActionForm-ByeOzpc4.js +555 -0
  2. package/AnnotationDetails-DknbKDyl.js +175 -0
  3. package/AnnotationPreview-CQwKs8se.js +188 -0
  4. package/ClueEnrichContext-6NJfXpUB.js +536 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_Map-kgDsDYxq.js +64 -0
  7. package/_MapCache-DabaaWfq.js +161 -0
  8. package/_Uint8Array-BlVVH1tp.js +129 -0
  9. package/_baseAssignValue-CNbcU6Nb.js +25 -0
  10. package/_baseClone-D3a8Pa4T.js +284 -0
  11. package/_baseExtremum-B1o1zHjR.js +33 -0
  12. package/_baseFlatten-D4huXoEI.js +92 -0
  13. package/_baseGet-BSK_nnoz.js +109 -0
  14. package/_baseIsEqual-B5xLoweL.js +238 -0
  15. package/_baseIteratee-p6Nj07-n.js +126 -0
  16. package/_baseSlice-GAv_YFTT.js +20 -0
  17. package/_baseSum-D0WC1dN0.js +13 -0
  18. package/_baseUniq-CpupKWcL.js +89 -0
  19. package/_commonjsHelpers-DWwsNxpa.js +8 -0
  20. package/_createAggregator-BpVy5xMi.js +63 -0
  21. package/_getPrototype-D1LAdQKO.js +5 -0
  22. package/_getTag-D3ToyefI.js +126 -0
  23. package/api/lookup/index.d.ts +1 -1
  24. package/api/lookup/types.d.ts +2 -2
  25. package/api/lookup/types_detection.d.ts +2 -2
  26. package/cloneDeep-CjP5k9zW.js +8 -0
  27. package/components/AnnotationBody.js +49 -34
  28. package/components/AnnotationDetailPopover.js +36 -30
  29. package/components/AnnotationDetails.js +6 -6
  30. package/components/AnnotationEntry.js +50 -47
  31. package/components/AnnotationPreview.js +5 -5
  32. package/components/ClassificationChip.d.ts +2 -1
  33. package/components/ClassificationChip.js +44 -23
  34. package/components/CountBadge.js +31 -26
  35. package/components/EnrichedCard.js +110 -92
  36. package/components/EnrichedChip.js +130 -111
  37. package/components/EnrichedTypography.d.ts +1 -1
  38. package/components/EnrichedTypography.js +133 -112
  39. package/components/ErrorBoundary.js +28 -24
  40. package/components/RetryFailedEnrichments.js +10 -9
  41. package/components/SourcePicker.js +57 -49
  42. package/components/actions/ActionForm.js +4 -4
  43. package/components/actions/ExecutePopover.js +64 -50
  44. package/components/actions/ResultModal.js +12 -41
  45. package/components/actions/form/schemaAdapter.js +40 -20
  46. package/components/display/graph/ExpandMoreButton.js +10 -10
  47. package/components/display/graph/elements/NodeCard.js +114 -76
  48. package/components/display/graph/elements/NodeTag.js +15 -13
  49. package/components/display/graph/index.js +267 -210
  50. package/components/display/graph/visualizations/Leaf.js +88 -69
  51. package/components/display/graph/visualizations/cloud/index.js +98 -81
  52. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  53. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  54. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  55. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  56. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  57. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  58. package/components/display/graph/visualizations/icons/index.js +14 -13
  59. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  60. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  61. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  62. package/components/display/graph/visualizations/tree/index.js +407 -305
  63. package/components/display/icons/Iconified.js +27 -12
  64. package/components/display/json/index.js +4 -4
  65. package/components/display/markdown/index.js +8696 -5668
  66. package/components/enrichment/EnrichPopover.js +55 -47
  67. package/components/fetchers/Fetcher.js +123 -95
  68. package/components/fetchers/PreviewModal.js +20 -17
  69. package/components/fetchers/StatusChip.js +21 -18
  70. package/components/group/Entry.js +13 -11
  71. package/components/group/Group.js +13 -10
  72. package/components/group/GroupControl.js +78 -66
  73. package/components/stats/QueryStatus.js +44 -31
  74. package/countBy-C69WslUA.js +14 -0
  75. package/data/event.js +6 -4
  76. package/database/index.js +2 -2
  77. package/debounce-bV0h5FC5.js +92 -0
  78. package/en/translation.json +39 -59
  79. package/fr/translation.json +37 -56
  80. package/get-D3C3lEU3.js +8 -0
  81. package/groupBy-DC2oOuBN.js +14 -0
  82. package/hooks/ClueActionContext.d.ts +26 -0
  83. package/hooks/ClueActionContext.js +8 -7
  84. package/hooks/ClueComponentContext.js +29 -23
  85. package/hooks/ClueConfigProvider.js +14 -12
  86. package/hooks/ClueDatabaseContext.js +19 -13
  87. package/hooks/ClueEnrichContext.js +8 -8
  88. package/hooks/ClueEnrichProps.d.ts +3 -1
  89. package/hooks/ClueFetcherContext.js +74 -46
  90. package/hooks/ClueGroupContext.js +17 -14
  91. package/hooks/CluePopupContext.js +5 -5
  92. package/hooks/ClueProvider.js +12 -10
  93. package/hooks/selectors.d.ts +4 -5
  94. package/hooks/selectors.js +21 -11
  95. package/hooks/useActionResult.d.ts +14 -0
  96. package/hooks/useActionResult.js +5 -0
  97. package/hooks/useAnnotations.js +45 -29
  98. package/hooks/useClue.js +6 -4
  99. package/hooks/useClueActions.d.ts +1 -1
  100. package/hooks/useClueActions.js +3 -3
  101. package/hooks/useClueConfig.d.ts +2 -1
  102. package/hooks/useClueConfig.js +6 -6
  103. package/hooks/useClueTypeConfig.js +3 -3
  104. package/hooks/useComparator.js +722 -435
  105. package/hooks/useErrors.js +22 -18
  106. package/hooks/useMyHighlights.js +66 -36
  107. package/hooks/useMyLocalStorage.d.ts +4 -3
  108. package/hooks/useMyLocalStorage.js +66 -46
  109. package/iconify-CXMreGTg.js +1782 -0
  110. package/icons/Action.js +66 -49
  111. package/icons/Assessment.js +84 -68
  112. package/icons/Context.js +78 -61
  113. package/icons/Opinion.js +77 -65
  114. package/icons/iconMap.js +2 -2
  115. package/identity-CPGTqrE4.js +6 -0
  116. package/index-BDVjGvMI.js +696 -0
  117. package/index-BbPn6-Mw.js +15750 -0
  118. package/index-Bi21Wb23.js +465 -0
  119. package/index-C3lkTD69.js +1172 -0
  120. package/index-CC12Ux-9.js +17654 -0
  121. package/isEmpty-BQkZubqU.js +29 -0
  122. package/isNil-CIubwp4T.js +6 -0
  123. package/isObject-FTY-5JQX.js +7 -0
  124. package/isObjectLike-OAgjjZye.js +48 -0
  125. package/isSymbol-Xd2FsJyp.js +8 -0
  126. package/last-CUCl67Im.js +7 -0
  127. package/main.js +62 -62
  128. package/package.json +3 -3
  129. package/sortBy-B-UKp4GT.js +100 -0
  130. package/sumBy-MYkDPHZL.js +8 -0
  131. package/text/Frequency.js +42 -23
  132. package/toFinite-Bc55msYj.js +16 -0
  133. package/toNumber-DPxy1FBy.js +39 -0
  134. package/types/RunningActionData.d.ts +4 -3
  135. package/types/action.d.ts +10 -1
  136. package/useClueTypeConfig-XvGvIw2S.js +3201 -0
  137. package/utils/chain.js +91 -64
  138. package/utils/classificationParser.js +519 -256
  139. package/utils/constants.js +35 -10
  140. package/utils/graph.js +72 -45
  141. package/utils/hashUtil.js +7 -7
  142. package/utils/line.js +131 -81
  143. package/utils/loggerUtil.d.ts +1 -1
  144. package/utils/loggerUtil.js +6 -4
  145. package/utils/sessionStorage.js +41 -29
  146. package/utils/time.d.ts +3 -0
  147. package/utils/time.js +536 -0
  148. package/utils/utils.js +10 -9
  149. package/utils/window.js +21 -10
  150. package/utils-7OtvGnmf.js +200 -0
  151. package/ActionForm-Sw7D-KOE.js +0 -340
  152. package/AnnotationDetails-BoX61_IF.js +0 -160
  153. package/AnnotationPreview-dYinoSA9.js +0 -140
  154. package/ClueEnrichContext-CvCIPOMC.js +0 -412
  155. package/FlexOne-BXWFOd1T.js +0 -6
  156. package/_Map-DXNg_Z-q.js +0 -54
  157. package/_MapCache-Cu25RRDU.js +0 -129
  158. package/_Uint8Array-DlJCtTvG.js +0 -102
  159. package/_baseAssignValue-CUmzp727.js +0 -20
  160. package/_baseClone-BlMmRXeX.js +0 -208
  161. package/_baseExtremum-P_0akmCi.js +0 -27
  162. package/_baseFlatten-CN7vDNEQ.js +0 -72
  163. package/_baseGet-Dgf6_xCm.js +0 -80
  164. package/_baseIsEqual-Cpjtfb3Q.js +0 -173
  165. package/_baseIteratee-CP1bocOX.js +0 -95
  166. package/_baseSlice-M5RKzt1A.js +0 -10
  167. package/_baseSum-wEbgNeUs.js +0 -10
  168. package/_baseUniq-tMFmk80M.js +0 -61
  169. package/_commonjsHelpers-C6fGbg64.js +0 -6
  170. package/_createAggregator-B4Cav8ZM.js +0 -53
  171. package/_getPrototype-CHAFQYL_.js +0 -5
  172. package/_getTag-BV_UoLYG.js +0 -90
  173. package/cloneDeep-BPVpFBzJ.js +0 -8
  174. package/components/display/markdown/DynamicTabs.d.ts +0 -8
  175. package/components/display/markdown/DynamicTabs.js +0 -21
  176. package/components/display/markdown/markdownPlugins/tabs.d.ts +0 -3
  177. package/components/display/markdown/markdownPlugins/tabs.js +0 -4
  178. package/countBy-DOutsa_w.js +0 -8
  179. package/debounce-DryYcbJ4.js +0 -56
  180. package/get-Bow1vKwx.js +0 -8
  181. package/groupBy-BheQYl6f.js +0 -8
  182. package/iconify-BBckr5AQ.js +0 -1263
  183. package/identity-ByMq8VxU.js +0 -6
  184. package/index-CnaCBNrd.js +0 -358
  185. package/index-E7g8cRyW.js +0 -568
  186. package/index-V7wwd05F.js +0 -975
  187. package/index-p5_wX7q1.js +0 -11729
  188. package/index-pQg5VUAZ.js +0 -12734
  189. package/isEmpty-g47Qir2A.js +0 -21
  190. package/isNil-CjWwlQS3.js +0 -6
  191. package/isObject-B53jY8Qg.js +0 -7
  192. package/isObjectLike-BatpeCIi.js +0 -29
  193. package/isSymbol-C3_SC0Qp.js +0 -8
  194. package/last-7CdUxN0r.js +0 -7
  195. package/sortBy-ITdmD17L.js +0 -79
  196. package/sumBy-DxJUU2E8.js +0 -8
  197. package/tabs-CgADNA57.js +0 -195
  198. package/toFinite-BMy6GObD.js +0 -14
  199. package/toNumber-YVhnnJv4.js +0 -31
  200. package/useClueTypeConfig-CneP98N_.js +0 -2260
  201. package/utils-CD0rFIFU.js +0 -2704
@@ -1,73 +1,111 @@
1
- import { jsxs as l, jsx as r, Fragment as b } from "react/jsx-runtime";
2
- import { Stack as m, Typography as u, Card as v, CardContent as k, Divider as d, Collapse as w } from "@mui/material";
3
- import { a as y, f as S } from "../../../../utils-CD0rFIFU.js";
4
- import { cssImportant as f } from "../../../../utils/graph.js";
5
- import { b as A, c as h, t as I, a as L } from "../../../../_baseGet-Dgf6_xCm.js";
6
- import { c as F, g as O, b as N } from "../../../../_baseClone-BlMmRXeX.js";
7
- import { l as _ } from "../../../../last-7CdUxN0r.js";
8
- import { b as D } from "../../../../_baseSlice-M5RKzt1A.js";
9
- import { b as M, s as G, o as T } from "../../../../_baseFlatten-CN7vDNEQ.js";
10
- import { useState as g, useEffect as z, useCallback as B, Fragment as P } from "react";
11
- import J from "../../icons/Iconified.js";
12
- import { J as K } from "../../../../index-CnaCBNrd.js";
13
- import R from "../../markdown/index.js";
14
- import $ from "../ExpandMoreButton.js";
15
- import x from "./NodeTag.js";
16
- function U(e) {
17
- var t = e == null ? 0 : e.length;
18
- return t ? M(e) : [];
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { Stack, Typography, Card, CardContent, Divider, Collapse } from "@mui/material";
3
+ import { a as isPlainObject, f as flatten$1 } from "../../../../utils-7OtvGnmf.js";
4
+ import { cssImportant } from "../../../../utils/graph.js";
5
+ import { b as baseGet, c as castPath, t as toKey, a as arrayMap } from "../../../../_baseGet-BSK_nnoz.js";
6
+ import { c as copyObject, g as getAllKeysIn, b as baseClone } from "../../../../_baseClone-D3a8Pa4T.js";
7
+ import { l as last } from "../../../../last-CUCl67Im.js";
8
+ import { b as baseSlice } from "../../../../_baseSlice-GAv_YFTT.js";
9
+ import { b as baseFlatten, s as setToString, o as overRest } from "../../../../_baseFlatten-D4huXoEI.js";
10
+ import { useState, useEffect, useCallback, Fragment as Fragment$1 } from "react";
11
+ import Iconified from "../../icons/Iconified.js";
12
+ import { J as JSONViewer } from "../../../../index-Bi21Wb23.js";
13
+ import Markdown from "../../markdown/index.js";
14
+ import ExpandMoreButton from "../ExpandMoreButton.js";
15
+ import NodeTag from "./NodeTag.js";
16
+ function flatten(array) {
17
+ var length = array == null ? 0 : array.length;
18
+ return length ? baseFlatten(array) : [];
19
19
  }
20
- function V(e) {
21
- return G(T(e, void 0, U), e + "");
20
+ function flatRest(func) {
21
+ return setToString(overRest(func, void 0, flatten), func + "");
22
22
  }
23
- function Y(e, t) {
24
- return t.length < 2 ? e : A(e, D(t, 0, -1));
23
+ function parent(object, path) {
24
+ return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
25
25
  }
26
- function q(e, t) {
27
- return t = h(t, e), e = Y(e, t), e == null || delete e[I(_(t))];
26
+ var objectProto = Object.prototype;
27
+ var hasOwnProperty = objectProto.hasOwnProperty;
28
+ function baseUnset(object, path) {
29
+ path = castPath(path, object);
30
+ var index = -1, length = path.length;
31
+ if (!length) {
32
+ return true;
33
+ }
34
+ var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
35
+ while (++index < length) {
36
+ var key = path[index];
37
+ if (typeof key !== "string") {
38
+ continue;
39
+ }
40
+ if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
41
+ return false;
42
+ }
43
+ if (key === "constructor" && index + 1 < length && typeof path[index + 1] === "string" && path[index + 1] === "prototype") {
44
+ if (isRootPrimitive && index === 0) {
45
+ continue;
46
+ }
47
+ return false;
48
+ }
49
+ }
50
+ var obj = parent(object, path);
51
+ return obj == null || delete obj[toKey(last(path))];
28
52
  }
29
- function H(e) {
30
- return y(e) ? void 0 : e;
53
+ function customOmitClone(value) {
54
+ return isPlainObject(value) ? void 0 : value;
31
55
  }
32
- var Q = 1, W = 2, X = 4, Z = V(function(e, t) {
33
- var a = {};
34
- if (e == null)
35
- return a;
36
- var i = !1;
37
- t = L(t, function(n) {
38
- return n = h(n, e), i || (i = n.length > 1), n;
39
- }), F(e, O(e), a), i && (a = N(a, Q | W | X, H));
40
- for (var s = t.length; s--; )
41
- q(a, t[s]);
42
- return a;
56
+ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
57
+ var omit = flatRest(function(object, paths) {
58
+ var result = {};
59
+ if (object == null) {
60
+ return result;
61
+ }
62
+ var isDeep = false;
63
+ paths = arrayMap(paths, function(path) {
64
+ path = castPath(path, object);
65
+ isDeep || (isDeep = path.length > 1);
66
+ return path;
67
+ });
68
+ copyObject(object, getAllKeysIn(object), result);
69
+ if (isDeep) {
70
+ result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
71
+ }
72
+ var length = paths.length;
73
+ while (length--) {
74
+ baseUnset(result, paths[length]);
75
+ }
76
+ return result;
43
77
  });
44
- const ue = ({ node: e, sx: t = {} }) => {
45
- var c;
46
- const [a, i] = g(!1), [s, n] = g(), C = () => {
47
- i(!a);
78
+ const NodeCard = ({ node, sx = {} }) => {
79
+ var _a;
80
+ const [expanded, setExpanded] = useState(false);
81
+ const [nodeExtraData, setNodeExtraData] = useState();
82
+ const handleExpandClick = () => {
83
+ setExpanded(!expanded);
48
84
  };
49
- z(() => {
50
- n(Z(e, ["id", "edges"]));
51
- }, [e]);
52
- const E = B((o) => /* @__PURE__ */ l(m, { alignSelf: "stretch", children: [
53
- /* @__PURE__ */ r(u, { textAlign: "left", variant: "body2", color: "text.secondary", children: "Edges" }),
54
- /* @__PURE__ */ r(m, { spacing: 0.25, children: o.map((p) => /* @__PURE__ */ r(x, { nodeId: p }, p)) })
55
- ] }), []);
56
- return /* @__PURE__ */ r(
57
- v,
85
+ useEffect(() => {
86
+ setNodeExtraData(omit(node, ["id", "edges"]));
87
+ }, [node]);
88
+ const renderEdgeList = useCallback((edgeIds) => {
89
+ return /* @__PURE__ */ jsxs(Stack, { alignSelf: "stretch", children: [
90
+ /* @__PURE__ */ jsx(Typography, { textAlign: "left", variant: "body2", color: "text.secondary", children: "Edges" }),
91
+ /* @__PURE__ */ jsx(Stack, { spacing: 0.25, children: edgeIds.map((edgeId) => /* @__PURE__ */ jsx(NodeTag, { nodeId: edgeId }, edgeId)) })
92
+ ] });
93
+ }, []);
94
+ return /* @__PURE__ */ jsx(
95
+ Card,
58
96
  {
59
97
  variant: "outlined",
60
98
  sx: {
61
99
  position: "relative",
62
100
  overflow: "auto",
63
- zIndex: a ? 100 : "initial",
101
+ zIndex: expanded ? 100 : "initial",
64
102
  "& *": {
65
103
  opacity: 1
66
104
  },
67
- ...t
105
+ ...sx
68
106
  },
69
- children: /* @__PURE__ */ r(k, { sx: { p: 1 }, children: /* @__PURE__ */ l(
70
- m,
107
+ children: /* @__PURE__ */ jsx(CardContent, { sx: { p: 1 }, children: /* @__PURE__ */ jsxs(
108
+ Stack,
71
109
  {
72
110
  spacing: 1,
73
111
  sx: {
@@ -78,44 +116,44 @@ const ue = ({ node: e, sx: t = {} }) => {
78
116
  }
79
117
  },
80
118
  children: [
81
- /* @__PURE__ */ r(x, { nodeId: e.id, label: e.id, type: "header", children: /* @__PURE__ */ r(
82
- $,
119
+ /* @__PURE__ */ jsx(NodeTag, { nodeId: node.id, label: node.id, type: "header", children: /* @__PURE__ */ jsx(
120
+ ExpandMoreButton,
83
121
  {
84
- expand: a,
85
- onClick: C,
86
- "aria-expanded": a,
122
+ expand: expanded,
123
+ onClick: handleExpandClick,
124
+ "aria-expanded": expanded,
87
125
  "aria-label": "show more",
88
126
  size: "small",
89
- children: /* @__PURE__ */ r(J, { icon: "ic:baseline-expand-more", fontSize: "medium" })
127
+ children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-expand-more", fontSize: "medium" })
90
128
  }
91
129
  ) }),
92
- e.markdown && /* @__PURE__ */ l(b, { children: [
93
- /* @__PURE__ */ r(d, { flexItem: !0 }),
94
- /* @__PURE__ */ r(R, { md: e.markdown, components: S(e) })
130
+ node.markdown && /* @__PURE__ */ jsxs(Fragment, { children: [
131
+ /* @__PURE__ */ jsx(Divider, { flexItem: true }),
132
+ /* @__PURE__ */ jsx(Markdown, { md: node.markdown, components: flatten$1(node) })
95
133
  ] }),
96
- !!((c = e == null ? void 0 : e.edges) != null && c.length) && /* @__PURE__ */ l(P, { children: [
97
- /* @__PURE__ */ r(d, { flexItem: !0 }),
98
- E(e == null ? void 0 : e.edges)
134
+ !!((_a = node == null ? void 0 : node.edges) == null ? void 0 : _a.length) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
135
+ /* @__PURE__ */ jsx(Divider, { flexItem: true }),
136
+ renderEdgeList(node == null ? void 0 : node.edges)
99
137
  ] }),
100
- /* @__PURE__ */ r(w, { in: a, timeout: "auto", children: /* @__PURE__ */ l(
101
- m,
138
+ /* @__PURE__ */ jsx(Collapse, { in: expanded, timeout: "auto", children: /* @__PURE__ */ jsxs(
139
+ Stack,
102
140
  {
103
141
  justifyContent: "start",
104
142
  alignItems: "start",
105
143
  spacing: 1,
106
- sx: (o) => ({
144
+ sx: (theme) => ({
107
145
  "& > ul": {
108
146
  width: "100%",
109
147
  textAlign: "left",
110
- p: f(o.spacing(1)),
111
- mx: f("0"),
112
- backgroundColor: f(o.palette.background.paper)
148
+ p: cssImportant(theme.spacing(1)),
149
+ mx: cssImportant("0"),
150
+ backgroundColor: cssImportant(theme.palette.background.paper)
113
151
  }
114
152
  }),
115
153
  children: [
116
- /* @__PURE__ */ r(d, { flexItem: !0 }),
117
- /* @__PURE__ */ r(u, { textAlign: "left", variant: "body1", children: "Metadata:" }),
118
- /* @__PURE__ */ r(K, { data: s })
154
+ /* @__PURE__ */ jsx(Divider, { flexItem: true }),
155
+ /* @__PURE__ */ jsx(Typography, { textAlign: "left", variant: "body1", children: "Metadata:" }),
156
+ /* @__PURE__ */ jsx(JSONViewer, { data: nodeExtraData })
119
157
  ]
120
158
  }
121
159
  ) })
@@ -126,5 +164,5 @@ const ue = ({ node: e, sx: t = {} }) => {
126
164
  );
127
165
  };
128
166
  export {
129
- ue as default
167
+ NodeCard as default
130
168
  };
@@ -1,15 +1,17 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { Stack as t, Typography as a, Tooltip as d } from "@mui/material";
3
- import { F as s } from "../../../../FlexOne-BXWFOd1T.js";
4
- import l from "../../icons/Iconified.js";
5
- const T = ({ nodeId: n, label: r = n, type: o = "content", children: c }) => /* @__PURE__ */ i(t, { direction: "row", spacing: 1, alignItems: "center", pr: 1, children: [
6
- o === "header" ? /* @__PURE__ */ i(t, { direction: "row", spacing: 1, alignItems: "center", sx: { overflow: "hidden" }, children: [
7
- /* @__PURE__ */ e(a, { variant: "body1", sx: { wordWrap: "break-all" }, children: r.replace(" (TRUNCATED)", "") }),
8
- r.includes("TRUNCATED") && /* @__PURE__ */ e(d, { title: "Field is truncated.", children: /* @__PURE__ */ e(l, { icon: "ic:baseline-content-cut", fontSize: "small", style: { fontSize: "0.9em" } }) })
9
- ] }) : r,
10
- /* @__PURE__ */ e(s, {}),
11
- c
12
- ] });
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Stack, Typography, Tooltip } from "@mui/material";
3
+ import { F as FlexOne } from "../../../../FlexOne-BSYAhhtG.js";
4
+ import Iconified from "../../icons/Iconified.js";
5
+ const NodeTag = ({ nodeId, label = nodeId, type = "content", children }) => {
6
+ return /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", pr: 1, children: [
7
+ type === "header" ? /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", sx: { overflow: "hidden" }, children: [
8
+ /* @__PURE__ */ jsx(Typography, { variant: "body1", sx: { wordWrap: "break-all" }, children: label.replace(" (TRUNCATED)", "") }),
9
+ label.includes("TRUNCATED") && /* @__PURE__ */ jsx(Tooltip, { title: "Field is truncated.", children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-content-cut", fontSize: "small", style: { fontSize: "0.9em" } }) })
10
+ ] }) : label,
11
+ /* @__PURE__ */ jsx(FlexOne, {}),
12
+ children
13
+ ] });
14
+ };
13
15
  export {
14
- T as default
16
+ NodeTag as default
15
17
  };