@pensar/apex 0.0.47 → 0.0.48-canary.60f4d950

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/build/index.js CHANGED
@@ -147908,9 +147908,9 @@ function PetriAnimation({
147908
147908
  return Math.floor(dimensions.width * width);
147909
147909
  }
147910
147910
  if (width === "100%") {
147911
- return dimensions.width - 8;
147911
+ return dimensions.width;
147912
147912
  }
147913
- return typeof width === "number" ? width : dimensions.width - 8;
147913
+ return typeof width === "number" ? width : dimensions.width;
147914
147914
  }, [width, dimensions.width]);
147915
147915
  import_react48.useEffect(() => {
147916
147916
  if (actualWidth <= 0 || actualHeight <= 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pensar/apex",
3
- "version": "0.0.47",
3
+ "version": "0.0.48-canary.60f4d950",
4
4
  "description": "AI-powered penetration testing CLI tool with terminal UI",
5
5
  "module": "src/tui/index.tsx",
6
6
  "main": "build/index.js",
@@ -50,7 +50,7 @@ function useGlobalTick() {
50
50
 
51
51
  // Green color gradient
52
52
  const greenColors = [
53
- RGBA.fromInts(0, 60, 30, 255), // Darkest
53
+ RGBA.fromInts(0, 60, 30, 255), // Darkest
54
54
  RGBA.fromInts(0, 90, 45, 255),
55
55
  RGBA.fromInts(0, 120, 60, 255),
56
56
  RGBA.fromInts(0, 150, 75, 255),
@@ -58,7 +58,7 @@ const greenColors = [
58
58
  RGBA.fromInts(40, 200, 100, 255),
59
59
  RGBA.fromInts(60, 220, 110, 255),
60
60
  RGBA.fromInts(80, 240, 120, 255),
61
- RGBA.fromInts(100, 255, 130, 255), // Brightest
61
+ RGBA.fromInts(100, 255, 130, 255), // Brightest
62
62
  ];
63
63
 
64
64
  interface PetriAnimationProps {
@@ -82,7 +82,9 @@ export function PetriAnimation({
82
82
  if (typeof height === "number" && height <= 1) {
83
83
  return Math.floor(dimensions.height * height);
84
84
  }
85
- return typeof height === "number" ? height : Math.floor(dimensions.height * 0.4);
85
+ return typeof height === "number"
86
+ ? height
87
+ : Math.floor(dimensions.height * 0.4);
86
88
  }, [height, dimensions.height]);
87
89
 
88
90
  const actualWidth = useMemo(() => {
@@ -90,9 +92,9 @@ export function PetriAnimation({
90
92
  return Math.floor(dimensions.width * width);
91
93
  }
92
94
  if (width === "100%") {
93
- return dimensions.width - 8; // Account for padding
95
+ return dimensions.width;
94
96
  }
95
- return typeof width === "number" ? width : dimensions.width - 8;
97
+ return typeof width === "number" ? width : dimensions.width;
96
98
  }, [width, dimensions.width]);
97
99
 
98
100
  // Initialize or resize simulation
@@ -122,17 +124,9 @@ export function PetriAnimation({
122
124
  }
123
125
 
124
126
  return (
125
- <box
126
- flexDirection="column"
127
- width={actualWidth}
128
- height={actualHeight}
129
- >
127
+ <box flexDirection="column" width={actualWidth} height={actualHeight}>
130
128
  {frame.map((row, idx) => (
131
- <text
132
- key={idx}
133
- fg={getRowColor(idx, actualHeight)}
134
- content={row}
135
- />
129
+ <text key={idx} fg={getRowColor(idx, actualHeight)} content={row} />
136
130
  ))}
137
131
  </box>
138
132
  );