@industry-theme/principal-view-panels 0.12.110 → 0.12.112
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/panels.bundle.js +11 -78
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +3 -4
package/dist/panels.bundle.js
CHANGED
|
@@ -86784,17 +86784,6 @@ function useNodeBehavior(options) {
|
|
|
86784
86784
|
handleResizeEnd
|
|
86785
86785
|
};
|
|
86786
86786
|
}
|
|
86787
|
-
function hexToLightColor$5(hexColor, lightness = 0.88) {
|
|
86788
|
-
const hex2 = hexColor.replace("#", "");
|
|
86789
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
86790
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
86791
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
86792
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
86793
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
86794
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
86795
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
86796
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
86797
|
-
}
|
|
86798
86787
|
const OtelSpanConventionNode = ({ data, selected: selected2, dragging }) => {
|
|
86799
86788
|
var _a2, _b2, _c, _d;
|
|
86800
86789
|
const { theme: theme2 } = useTheme();
|
|
@@ -86863,7 +86852,7 @@ const OtelSpanConventionNode = ({ data, selected: selected2, dragging }) => {
|
|
|
86863
86852
|
right: hexagonBorderWidth,
|
|
86864
86853
|
bottom: hexagonBorderWidth,
|
|
86865
86854
|
clipPath: hexagonClipPath,
|
|
86866
|
-
backgroundColor:
|
|
86855
|
+
backgroundColor: fillColor,
|
|
86867
86856
|
color: "#000",
|
|
86868
86857
|
display: "flex",
|
|
86869
86858
|
flexDirection: "column",
|
|
@@ -86898,17 +86887,6 @@ const OtelSpanConventionNode = ({ data, selected: selected2, dragging }) => {
|
|
|
86898
86887
|
transition: "box-shadow 0.2s ease"
|
|
86899
86888
|
}, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [jsx(NodeBadges, { shape: "hexagon", status, sourceFiles, references, opacity: nodeOpacity }), jsx("div", { style: hexagonBorderStyle, className: getAnimationClass(), children: jsx("div", { style: hexagonInnerStyle, children: jsx(NodeContent, { displayName, identifier: identifier2, icon, state, stateDefinitions, hasViolations, workflowChips, onWorkflowChipClick, selectedWorkflowId }) }) }), tooltipsEnabled && jsx(NodeTooltip, { description, otel: nodeData.otel, sources: nodeData.sources, references, visible: showTooltip, nodeRef })] }), jsx(Handle, { type: "source", position: Position.Top, id: "top-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Bottom, id: "bottom-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Left, id: "left-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Right, id: "right-out", style: handleStyle })] });
|
|
86900
86889
|
};
|
|
86901
|
-
function hexToLightColor$4(hexColor, lightness = 0.88) {
|
|
86902
|
-
const hex2 = hexColor.replace("#", "");
|
|
86903
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
86904
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
86905
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
86906
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
86907
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
86908
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
86909
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
86910
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
86911
|
-
}
|
|
86912
86890
|
const OtelEventNode = ({ data, selected: selected2, dragging }) => {
|
|
86913
86891
|
var _a2, _b2, _c;
|
|
86914
86892
|
const { theme: theme2 } = useTheme();
|
|
@@ -86918,8 +86896,7 @@ const OtelEventNode = ({ data, selected: selected2, dragging }) => {
|
|
|
86918
86896
|
const nodeOpacity = isHidden ? 0.4 : isActive ? 1 : 0.1;
|
|
86919
86897
|
const scopeColor = nodeData.scopeColor;
|
|
86920
86898
|
const spanColor = nodeData.spanColor;
|
|
86921
|
-
const
|
|
86922
|
-
const baseFillColor = nodeDataColor || scopeColor || typeDefinition.color || "#3b82f6";
|
|
86899
|
+
const baseFillColor = scopeColor || typeDefinition.color || "#3b82f6";
|
|
86923
86900
|
const fillColor = baseFillColor;
|
|
86924
86901
|
const nodeDataStroke = nodeData.stroke;
|
|
86925
86902
|
const strokeColor = nodeDataStroke || spanColor || fillColor;
|
|
@@ -86949,7 +86926,7 @@ const OtelEventNode = ({ data, selected: selected2, dragging }) => {
|
|
|
86949
86926
|
const borderStyle = status === "draft" ? "dotted" : status === "approved" ? "dashed" : "solid";
|
|
86950
86927
|
const rectangleStyle = {
|
|
86951
86928
|
padding: "12px 16px",
|
|
86952
|
-
backgroundColor:
|
|
86929
|
+
backgroundColor: fillColor,
|
|
86953
86930
|
color: "#000",
|
|
86954
86931
|
border: `2px ${borderStyle} ${hasViolations ? "#D0021B" : strokeColor}`,
|
|
86955
86932
|
fontSize: theme2.fontSizes[0],
|
|
@@ -86974,17 +86951,6 @@ const OtelEventNode = ({ data, selected: selected2, dragging }) => {
|
|
|
86974
86951
|
const handleStyle = editable ? { background: fillColor, width: 12, height: 12, border: "2px solid white", boxShadow: "0 0 0 1px " + fillColor } : { background: fillColor, width: 8, height: 8, opacity: 0, pointerEvents: "none" };
|
|
86975
86952
|
return jsxs(Fragment, { children: [editable && jsx(NodeResizer, { color: strokeColor, isVisible: selected2, minWidth: 40, minHeight: 30, onResizeEnd: handleResizeEnd, handleStyle: { width: 8, height: 8, borderRadius: 2, zIndex: 20 }, lineStyle: { borderWidth: 1, zIndex: 20 } }), jsx(Handle, { type: "target", position: Position.Top, id: "top", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Bottom, id: "bottom", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Left, id: "left", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Right, id: "right", style: handleStyle }), jsxs("div", { ref: nodeRef, style: { position: "relative", width: "100%", height: "100%" }, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [jsx(NodeBadges, { shape: "rectangle", status, sourceFiles, references, opacity: nodeOpacity }), jsx("div", { style: rectangleStyle, className: getAnimationClass(), children: jsx(NodeContent, { displayName, identifier: identifier2, icon, state, stateDefinitions, hasViolations }) }), tooltipsEnabled && jsx(NodeTooltip, { description, otel: nodeData.otel, sources: nodeData.sources, references, visible: showTooltip, nodeRef })] }), jsx(Handle, { type: "source", position: Position.Top, id: "top-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Bottom, id: "bottom-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Left, id: "left-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Right, id: "right-out", style: handleStyle })] });
|
|
86976
86953
|
};
|
|
86977
|
-
function hexToLightColor$3(hexColor, lightness = 0.88) {
|
|
86978
|
-
const hex2 = hexColor.replace("#", "");
|
|
86979
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
86980
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
86981
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
86982
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
86983
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
86984
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
86985
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
86986
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
86987
|
-
}
|
|
86988
86954
|
const OtelScopeNode = ({ data, selected: selected2, dragging }) => {
|
|
86989
86955
|
var _a2, _b2;
|
|
86990
86956
|
const { theme: theme2 } = useTheme();
|
|
@@ -87025,7 +86991,7 @@ const OtelScopeNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87025
86991
|
const borderStyle = status === "draft" ? "dotted" : status === "approved" ? "dashed" : "solid";
|
|
87026
86992
|
const circleStyle = {
|
|
87027
86993
|
padding: "8px",
|
|
87028
|
-
backgroundColor:
|
|
86994
|
+
backgroundColor: fillColor,
|
|
87029
86995
|
color: "#000",
|
|
87030
86996
|
border: `2px ${borderStyle} ${hasViolations ? "#D0021B" : strokeColor}`,
|
|
87031
86997
|
fontSize: theme2.fontSizes[0],
|
|
@@ -87045,22 +87011,11 @@ const OtelScopeNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87045
87011
|
transition: "box-shadow 0.2s ease, opacity 0.3s ease",
|
|
87046
87012
|
animationDuration: animationType ? `${animationDuration}ms` : void 0,
|
|
87047
87013
|
boxSizing: "border-box",
|
|
87048
|
-
borderRadius: "
|
|
87014
|
+
borderRadius: "12px"
|
|
87049
87015
|
};
|
|
87050
87016
|
const handleStyle = editable ? { background: fillColor, width: 12, height: 12, border: "2px solid white", boxShadow: "0 0 0 1px " + fillColor } : { background: fillColor, width: 8, height: 8, opacity: 0, pointerEvents: "none" };
|
|
87051
|
-
return jsxs(Fragment, { children: [editable && jsx(NodeResizer, { color: strokeColor, isVisible: selected2, minWidth: 40, minHeight: 40, keepAspectRatio:
|
|
87017
|
+
return jsxs(Fragment, { children: [editable && jsx(NodeResizer, { color: strokeColor, isVisible: selected2, minWidth: 40, minHeight: 40, keepAspectRatio: false, onResizeEnd: handleResizeEnd, handleStyle: { width: 8, height: 8, borderRadius: 2, zIndex: 20 }, lineStyle: { borderWidth: 1, zIndex: 20 } }), jsx(Handle, { type: "target", position: Position.Top, id: "top", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Bottom, id: "bottom", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Left, id: "left", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Right, id: "right", style: handleStyle }), jsxs("div", { ref: nodeRef, style: { position: "relative", width: "100%", height: "100%" }, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [jsx(NodeBadges, { shape: "rectangle", status, sourceFiles, references, opacity: nodeOpacity }), jsx("div", { style: circleStyle, className: getAnimationClass(), children: jsx(NodeContent, { displayName, identifier: identifier2, icon, state, stateDefinitions, hasViolations }) }), tooltipsEnabled && jsx(NodeTooltip, { description, otel: nodeData.otel, sources: nodeData.sources, references, visible: showTooltip, nodeRef })] }), jsx(Handle, { type: "source", position: Position.Top, id: "top-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Bottom, id: "bottom-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Left, id: "left-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Right, id: "right-out", style: handleStyle })] });
|
|
87052
87018
|
};
|
|
87053
|
-
function hexToLightColor$2(hexColor, lightness = 0.88) {
|
|
87054
|
-
const hex2 = hexColor.replace("#", "");
|
|
87055
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
87056
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
87057
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
87058
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
87059
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
87060
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
87061
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
87062
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
87063
|
-
}
|
|
87064
87019
|
const OtelResourceNode = ({ data, selected: selected2, dragging }) => {
|
|
87065
87020
|
var _a2, _b2;
|
|
87066
87021
|
const { theme: theme2 } = useTheme();
|
|
@@ -87127,7 +87082,7 @@ const OtelResourceNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87127
87082
|
right: diamondBorderWidth,
|
|
87128
87083
|
bottom: diamondBorderWidth,
|
|
87129
87084
|
clipPath: diamondClipPath,
|
|
87130
|
-
backgroundColor:
|
|
87085
|
+
backgroundColor: fillColor,
|
|
87131
87086
|
color: "#000",
|
|
87132
87087
|
display: "flex",
|
|
87133
87088
|
flexDirection: "column",
|
|
@@ -87148,17 +87103,6 @@ const OtelResourceNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87148
87103
|
transition: "box-shadow 0.2s ease"
|
|
87149
87104
|
}, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [jsx(NodeBadges, { shape: "diamond", status, sourceFiles, references, opacity: nodeOpacity }), jsx("div", { style: diamondBorderStyle, className: getAnimationClass(), children: jsx("div", { style: diamondInnerStyle, children: jsx(NodeContent, { displayName, identifier: identifier2, icon, state, stateDefinitions, hasViolations }) }) }), tooltipsEnabled && jsx(NodeTooltip, { description, otel: nodeData.otel, sources: nodeData.sources, references, visible: showTooltip, nodeRef })] }), jsx(Handle, { type: "source", position: Position.Top, id: "top-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Bottom, id: "bottom-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Left, id: "left-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Right, id: "right-out", style: handleStyle })] });
|
|
87150
87105
|
};
|
|
87151
|
-
function hexToLightColor$1(hexColor, lightness = 0.88) {
|
|
87152
|
-
const hex2 = hexColor.replace("#", "");
|
|
87153
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
87154
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
87155
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
87156
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
87157
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
87158
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
87159
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
87160
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
87161
|
-
}
|
|
87162
87106
|
const OtelBoundaryNode = ({ data, selected: selected2, dragging }) => {
|
|
87163
87107
|
var _a2, _b2, _c;
|
|
87164
87108
|
const { theme: theme2 } = useTheme();
|
|
@@ -87199,7 +87143,7 @@ const OtelBoundaryNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87199
87143
|
const borderStyle = status === "draft" ? "dotted" : status === "approved" ? "dashed" : "solid";
|
|
87200
87144
|
const boundaryStyle = {
|
|
87201
87145
|
padding: "12px 16px",
|
|
87202
|
-
backgroundColor:
|
|
87146
|
+
backgroundColor: fillColor,
|
|
87203
87147
|
color: "#000",
|
|
87204
87148
|
border: `2px ${borderStyle} ${hasViolations ? "#D0021B" : strokeColor}`,
|
|
87205
87149
|
fontSize: theme2.fontSizes[0],
|
|
@@ -87225,17 +87169,6 @@ const OtelBoundaryNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87225
87169
|
const handleStyle = editable ? { background: fillColor, width: 12, height: 12, border: "2px solid white", boxShadow: "0 0 0 1px " + fillColor } : { background: fillColor, width: 8, height: 8, opacity: 0, pointerEvents: "none" };
|
|
87226
87170
|
return jsxs(Fragment, { children: [editable && jsx(NodeResizer, { color: strokeColor, isVisible: selected2, minWidth: 40, minHeight: 30, onResizeEnd: handleResizeEnd, handleStyle: { width: 8, height: 8, borderRadius: 2, zIndex: 20 }, lineStyle: { borderWidth: 1, zIndex: 20 } }), jsx(Handle, { type: "target", position: Position.Top, id: "top", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Bottom, id: "bottom", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Left, id: "left", style: handleStyle }), jsx(Handle, { type: "target", position: Position.Right, id: "right", style: handleStyle }), jsxs("div", { ref: nodeRef, style: { position: "relative", width: "100%", height: "100%" }, onMouseDown: handleMouseDown, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [jsx(NodeBadges, { shape: "rectangle", status, sourceFiles, references, boundary: boundaryData, opacity: nodeOpacity }), jsx("div", { style: boundaryStyle, className: getAnimationClass(), children: jsx(NodeContent, { displayName, identifier: identifier2, icon, state, stateDefinitions, hasViolations }) }), tooltipsEnabled && jsx(NodeTooltip, { description, otel: nodeData.otel, sources: nodeData.sources, references, visible: showTooltip, nodeRef })] }), jsx(Handle, { type: "source", position: Position.Top, id: "top-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Bottom, id: "bottom-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Left, id: "left-out", style: handleStyle }), jsx(Handle, { type: "source", position: Position.Right, id: "right-out", style: handleStyle })] });
|
|
87227
87171
|
};
|
|
87228
|
-
function hexToLightColor(hexColor, lightness = 0.88) {
|
|
87229
|
-
const hex2 = hexColor.replace("#", "");
|
|
87230
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
87231
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
87232
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
87233
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
87234
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
87235
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
87236
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
87237
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
87238
|
-
}
|
|
87239
87172
|
const CustomNode = (props) => {
|
|
87240
87173
|
var _a2, _b2, _c, _d, _e4, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
87241
87174
|
const { data, selected: selected2, dragging } = props;
|
|
@@ -87561,7 +87494,7 @@ const CustomNode = (props) => {
|
|
|
87561
87494
|
const borderStyle = status === "draft" ? "dotted" : status === "approved" ? "dashed" : "solid";
|
|
87562
87495
|
const baseStyles = {
|
|
87563
87496
|
padding: "12px 16px",
|
|
87564
|
-
backgroundColor: isGroup ? "rgba(255, 255, 255, 0.7)" :
|
|
87497
|
+
backgroundColor: isGroup ? "rgba(255, 255, 255, 0.7)" : fillColor,
|
|
87565
87498
|
color: "#000",
|
|
87566
87499
|
border: `2px ${borderStyle} ${hasViolations ? "#D0021B" : strokeColor}`,
|
|
87567
87500
|
fontSize: theme2.fontSizes[0],
|
|
@@ -87656,7 +87589,7 @@ const CustomNode = (props) => {
|
|
|
87656
87589
|
right: hexagonBorderWidth,
|
|
87657
87590
|
bottom: hexagonBorderWidth,
|
|
87658
87591
|
clipPath: hexagonClipPath,
|
|
87659
|
-
backgroundColor:
|
|
87592
|
+
backgroundColor: fillColor,
|
|
87660
87593
|
color: "#000",
|
|
87661
87594
|
display: "flex",
|
|
87662
87595
|
flexDirection: "column",
|
|
@@ -87690,7 +87623,7 @@ const CustomNode = (props) => {
|
|
|
87690
87623
|
right: diamondBorderWidth,
|
|
87691
87624
|
bottom: diamondBorderWidth,
|
|
87692
87625
|
clipPath: diamondClipPath,
|
|
87693
|
-
backgroundColor:
|
|
87626
|
+
backgroundColor: fillColor,
|
|
87694
87627
|
color: "#000",
|
|
87695
87628
|
display: "flex",
|
|
87696
87629
|
flexDirection: "column",
|