@seedtactics/insight-client 16.4.4 → 16.4.6

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- /* Copyright (c) 2023, John Lenz
2
+ /* Copyright (c) 2025, John Lenz
3
3
 
4
4
  All rights reserved.
5
5
 
@@ -384,18 +384,20 @@ function useGridLayout({ numMatCols, maxNumFaces, horizontal, showMatInCompleted
384
384
  else {
385
385
  cols += " 4.5em";
386
386
  }
387
+ const equalRows = `minmax(calc((100vh - 64px) / ${maxNumFaces}), max-content)`;
387
388
  for (let i = 0; i < maxNumFaces; i++) {
388
- rows += `"${colNames} palface${i} completed" 1fr\n`;
389
+ const rowSize = i === maxNumFaces - 1 ? `1fr` : equalRows;
390
+ rows += `"${colNames} palface${i} completed" ${rowSize}\n`;
389
391
  }
390
392
  }
391
393
  else {
392
394
  cols = "1fr";
393
- for (let i = 0; i < numMatCols; i++) {
394
- rows += `"mat${i}" minmax(134px, max-content)\n`;
395
- }
396
395
  for (let i = 0; i < maxNumFaces; i++) {
397
396
  rows += `"palface${i}" minmax(134px, max-content)\n`;
398
397
  }
398
+ for (let i = 0; i < numMatCols; i++) {
399
+ rows += `"mat${i}" minmax(134px, max-content)\n`;
400
+ }
399
401
  rows += '"completed" minmax(134px, max-content)\n';
400
402
  }
401
403
  return `${rows} / ${cols}`;
@@ -430,9 +432,8 @@ export function LoadStation(props) {
430
432
  horizontal: fillViewPort,
431
433
  showMatInCompleted: props.completed,
432
434
  });
433
- return (_jsx(MoveMaterialArrowContainer, { hideArrows: !fillViewPort, children: _jsxs(Box, { component: "main", sx: {
435
+ return (_jsx(MoveMaterialArrowContainer, { hideArrows: !fillViewPort, whiteBackground: props.whiteBackground, children: _jsxs(Box, { component: "main", sx: {
434
436
  width: "100%",
435
- bgcolor: props.whiteBackground ? "white" : "#F8F8F8",
436
437
  display: "grid",
437
438
  gridTemplate: grid,
438
439
  minHeight: {
@@ -86,7 +86,15 @@ const MatCardHeader = styled("div", { shouldForwardProp: (prop) => prop !== "fsi
86
86
  return { fontSize: "1.25rem" };
87
87
  switch (fsize) {
88
88
  case "normal":
89
- return { fontSize: "1.5rem" };
89
+ return {
90
+ fontSize: "1rem",
91
+ [theme.breakpoints.up("md")]: {
92
+ fontSize: "1.25rem",
93
+ },
94
+ [theme.breakpoints.up("lg")]: {
95
+ fontSize: "1.5rem",
96
+ },
97
+ };
90
98
  case "large":
91
99
  return {
92
100
  fontSize: "1.5rem",
@@ -117,7 +125,12 @@ const MatCardDetail = styled("div", { shouldForwardProp: (prop) => prop !== "fsi
117
125
  return { fontSize: "0.75rem" };
118
126
  switch (fsize) {
119
127
  case "normal":
120
- return { fontSize: "1rem" };
128
+ return {
129
+ fontSize: "0.75rem",
130
+ [theme.breakpoints.up("md")]: {
131
+ fontSize: "1rem",
132
+ },
133
+ };
121
134
  case "large":
122
135
  return {
123
136
  fontSize: "1rem",
@@ -3,6 +3,7 @@ import { MoveMaterialNodeKind } from "../../data/move-arrows.js";
3
3
  export declare const MoveMaterialArrowContainer: import("react").NamedExoticComponent<{
4
4
  children?: ReactNode;
5
5
  hideArrows?: boolean;
6
+ whiteBackground?: boolean;
6
7
  }>;
7
8
  export declare function useMoveMaterialArrowRef(kind: MoveMaterialNodeKind): RefObject<HTMLDivElement | null>;
8
9
  export declare function MoveMaterialArrowNode({ kind, children, }: {
@@ -72,7 +72,7 @@ const MoveMaterialArrows = memo(function MoveMaterialArrows({ container, arrowsW
72
72
  return (_jsx("g", { children: arrows.map((arr, idx) => (_jsx("path", { style: { fill: "none", stroke: "rgba(0,0,0,0.15)", strokeWidth: 2 }, d: arrowToPath(arr), markerEnd: `url(#arrow)` }, idx))) }));
73
73
  });
74
74
  const MoveMaterialArrowCtx = createContext(undefined);
75
- export const MoveMaterialArrowContainer = memo(function MoveMaterialArrowContainer({ children, hideArrows, }) {
75
+ export const MoveMaterialArrowContainer = memo(function MoveMaterialArrowContainer({ children, hideArrows, whiteBackground, }) {
76
76
  const container = useRef(null);
77
77
  const [nodes, setNodes] = useState(HashMap.empty());
78
78
  const ctx = useMemo(() => {
@@ -94,6 +94,8 @@ export const MoveMaterialArrowContainer = memo(function MoveMaterialArrowContain
94
94
  height: "100%",
95
95
  top: 0,
96
96
  right: 0,
97
+ zIndex: -1,
98
+ backgroundColor: whiteBackground ? "white" : "#F8F8F8",
97
99
  }, children: [_jsx("defs", { children: _jsx("marker", { id: "arrow", markerWidth: 6, markerHeight: 10, refX: "0", refY: "3", orient: "auto", markerUnits: "strokeWidth", children: _jsx("path", { d: "M0,0 L0,6 L5,3 z", fill: "rgba(0,0,0,0.15)" }) }) }), !hideArrows ? _jsx(MoveMaterialArrows, { container: container, arrowsWithRefs: nodes }) : undefined] }), _jsx("div", { ref: container, children: _jsx(MoveMaterialArrowCtx.Provider, { value: ctx, children: children }) })] }));
98
100
  });
99
101
  export function useMoveMaterialArrowRef(kind) {
package/dist/index.html CHANGED
@@ -44,7 +44,7 @@
44
44
  }
45
45
  }
46
46
  </style>
47
- <script type="module" crossorigin src="/assets/index-CjYmi4M2.js"></script>
47
+ <script type="module" crossorigin src="/assets/index-DXzPgX0Q.js"></script>
48
48
  <link rel="stylesheet" crossorigin href="/assets/index-ZBfg6YlO.css">
49
49
  </head>
50
50
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedtactics/insight-client",
3
- "version": "16.4.4",
3
+ "version": "16.4.6",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "repository": {
@@ -41,14 +41,14 @@
41
41
  "date-fns": "^4.1.0",
42
42
  "highlight.js": "^11.11.1",
43
43
  "jdenticon": "^3.3.0",
44
- "jotai": "^2.16.0",
44
+ "jotai": "^2.16.1",
45
45
  "jotai-family": "^1.0.1",
46
46
  "jsbarcode": "^3.12.1",
47
47
  "oidc-client-ts": "^3.4.1",
48
48
  "react": "^19.2.3",
49
49
  "react-calendar": "^6.0.0",
50
50
  "react-dom": "^19.2.3",
51
- "react-error-boundary": "^6.0.0",
51
+ "react-error-boundary": "^6.0.1",
52
52
  "react-resize-detector": "^12.3.0",
53
53
  "react-timeago": "^8.3.0",
54
54
  "react-to-print": "^3.2.0",
@@ -70,11 +70,11 @@
70
70
  "eslint-plugin-react": "^7.37.5",
71
71
  "eslint-plugin-react-hooks": "^7.0.1",
72
72
  "eslint-plugin-react-refresh": "^0.4.26",
73
- "jsdom": "^27.3.0",
73
+ "jsdom": "^27.4.0",
74
74
  "nswag": "^14.6.3",
75
75
  "prettier": "^3.7.4",
76
76
  "typescript": "^5.9.3",
77
- "typescript-eslint": "^8.50.0",
77
+ "typescript-eslint": "^8.51.0",
78
78
  "vite": "^7.3.0",
79
79
  "vitest": "^4.0.16"
80
80
  },