@industry-theme/principal-view-panels 0.12.111 → 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 +6 -50
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +3 -3
package/dist/panels.bundle.js
CHANGED
|
@@ -86784,17 +86784,6 @@ function useNodeBehavior(options) {
|
|
|
86784
86784
|
handleResizeEnd
|
|
86785
86785
|
};
|
|
86786
86786
|
}
|
|
86787
|
-
function hexToLightColor$3(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",
|
|
@@ -86962,17 +86951,6 @@ const OtelEventNode = ({ data, selected: selected2, dragging }) => {
|
|
|
86962
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" };
|
|
86963
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 })] });
|
|
86964
86953
|
};
|
|
86965
|
-
function hexToLightColor$2(hexColor, lightness = 0.88) {
|
|
86966
|
-
const hex2 = hexColor.replace("#", "");
|
|
86967
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
86968
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
86969
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
86970
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
86971
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
86972
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
86973
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
86974
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
86975
|
-
}
|
|
86976
86954
|
const OtelScopeNode = ({ data, selected: selected2, dragging }) => {
|
|
86977
86955
|
var _a2, _b2;
|
|
86978
86956
|
const { theme: theme2 } = useTheme();
|
|
@@ -87013,7 +86991,7 @@ const OtelScopeNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87013
86991
|
const borderStyle = status === "draft" ? "dotted" : status === "approved" ? "dashed" : "solid";
|
|
87014
86992
|
const circleStyle = {
|
|
87015
86993
|
padding: "8px",
|
|
87016
|
-
backgroundColor:
|
|
86994
|
+
backgroundColor: fillColor,
|
|
87017
86995
|
color: "#000",
|
|
87018
86996
|
border: `2px ${borderStyle} ${hasViolations ? "#D0021B" : strokeColor}`,
|
|
87019
86997
|
fontSize: theme2.fontSizes[0],
|
|
@@ -87033,22 +87011,11 @@ const OtelScopeNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87033
87011
|
transition: "box-shadow 0.2s ease, opacity 0.3s ease",
|
|
87034
87012
|
animationDuration: animationType ? `${animationDuration}ms` : void 0,
|
|
87035
87013
|
boxSizing: "border-box",
|
|
87036
|
-
borderRadius: "
|
|
87014
|
+
borderRadius: "12px"
|
|
87037
87015
|
};
|
|
87038
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" };
|
|
87039
|
-
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 })] });
|
|
87040
87018
|
};
|
|
87041
|
-
function hexToLightColor$1(hexColor, lightness = 0.88) {
|
|
87042
|
-
const hex2 = hexColor.replace("#", "");
|
|
87043
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
87044
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
87045
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
87046
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
87047
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
87048
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
87049
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
87050
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
87051
|
-
}
|
|
87052
87019
|
const OtelResourceNode = ({ data, selected: selected2, dragging }) => {
|
|
87053
87020
|
var _a2, _b2;
|
|
87054
87021
|
const { theme: theme2 } = useTheme();
|
|
@@ -87115,7 +87082,7 @@ const OtelResourceNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87115
87082
|
right: diamondBorderWidth,
|
|
87116
87083
|
bottom: diamondBorderWidth,
|
|
87117
87084
|
clipPath: diamondClipPath,
|
|
87118
|
-
backgroundColor:
|
|
87085
|
+
backgroundColor: fillColor,
|
|
87119
87086
|
color: "#000",
|
|
87120
87087
|
display: "flex",
|
|
87121
87088
|
flexDirection: "column",
|
|
@@ -87136,17 +87103,6 @@ const OtelResourceNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87136
87103
|
transition: "box-shadow 0.2s ease"
|
|
87137
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 })] });
|
|
87138
87105
|
};
|
|
87139
|
-
function hexToLightColor(hexColor, lightness = 0.88) {
|
|
87140
|
-
const hex2 = hexColor.replace("#", "");
|
|
87141
|
-
const r2 = parseInt(hex2.substring(0, 2), 16);
|
|
87142
|
-
const g = parseInt(hex2.substring(2, 4), 16);
|
|
87143
|
-
const b = parseInt(hex2.substring(4, 6), 16);
|
|
87144
|
-
const newR = Math.round(r2 + (255 - r2) * lightness);
|
|
87145
|
-
const newG = Math.round(g + (255 - g) * lightness);
|
|
87146
|
-
const newB = Math.round(b + (255 - b) * lightness);
|
|
87147
|
-
const toHex = (n) => n.toString(16).padStart(2, "0");
|
|
87148
|
-
return `#${toHex(newR)}${toHex(newG)}${toHex(newB)}`;
|
|
87149
|
-
}
|
|
87150
87106
|
const OtelBoundaryNode = ({ data, selected: selected2, dragging }) => {
|
|
87151
87107
|
var _a2, _b2, _c;
|
|
87152
87108
|
const { theme: theme2 } = useTheme();
|
|
@@ -87187,7 +87143,7 @@ const OtelBoundaryNode = ({ data, selected: selected2, dragging }) => {
|
|
|
87187
87143
|
const borderStyle = status === "draft" ? "dotted" : status === "approved" ? "dashed" : "solid";
|
|
87188
87144
|
const boundaryStyle = {
|
|
87189
87145
|
padding: "12px 16px",
|
|
87190
|
-
backgroundColor:
|
|
87146
|
+
backgroundColor: fillColor,
|
|
87191
87147
|
color: "#000",
|
|
87192
87148
|
border: `2px ${borderStyle} ${hasViolations ? "#D0021B" : strokeColor}`,
|
|
87193
87149
|
fontSize: theme2.fontSizes[0],
|