@mp70/react-networks 0.5.0-rc.1 → 0.5.1
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/README.md +48 -0
- package/dist/index.css +11 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +239 -86
- package/dist/index.d.ts +239 -86
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -208,6 +208,54 @@ For new code, prefer the document-model props. The graph props and React Flow es
|
|
|
208
208
|
| `useSmoothstepEdgesForTubes` | `boolean` | `false` | Use smoothstep edges for tube connections |
|
|
209
209
|
| `debug` | `boolean` | `false` | Enable debug mode |
|
|
210
210
|
| `fitViewOptions` | `FitViewOptions` | - | React Flow fitView options |
|
|
211
|
+
| `highlightedNodeIds` | `string[]` | - | Node IDs kept at full opacity when focus dimming is active |
|
|
212
|
+
| `highlightedEdgeIds` | `string[]` | - | Edge IDs kept at full opacity when focus dimming is active |
|
|
213
|
+
| `dimUnhighlighted` | `boolean` | `false` | Dim nodes/edges not in the focus ID lists |
|
|
214
|
+
| `dimOpacity` | `number` | `0.25` | Opacity applied to dimmed elements (0-1) |
|
|
215
|
+
|
|
216
|
+
### Edge highlighting
|
|
217
|
+
|
|
218
|
+
Per-edge emphasis uses `NetworkEdge.data`:
|
|
219
|
+
|
|
220
|
+
```tsx
|
|
221
|
+
{
|
|
222
|
+
id: 'edge-1',
|
|
223
|
+
source: 'switch-1',
|
|
224
|
+
target: 'server-1',
|
|
225
|
+
type: 'fiber',
|
|
226
|
+
data: {
|
|
227
|
+
highlight: true,
|
|
228
|
+
highlightColor: '#dc2626',
|
|
229
|
+
highlightWidth: 5,
|
|
230
|
+
label: 'Cable A',
|
|
231
|
+
},
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Diagram-level focus (trace, DRC row click):
|
|
236
|
+
|
|
237
|
+
```tsx
|
|
238
|
+
<NetworkDiagram
|
|
239
|
+
nodes={nodes}
|
|
240
|
+
edges={edges}
|
|
241
|
+
highlightedEdgeIds={focusedEdgeIds}
|
|
242
|
+
highlightedNodeIds={focusedNodeIds}
|
|
243
|
+
dimUnhighlighted
|
|
244
|
+
/>
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
The library does not define severity enums. Apps pick `highlightColor` hex values. Common conventions:
|
|
248
|
+
|
|
249
|
+
| Meaning | Suggested `highlightColor` |
|
|
250
|
+
|---|---|
|
|
251
|
+
| Error | `#dc2626` |
|
|
252
|
+
| Warning | `#d97706` |
|
|
253
|
+
| Complete | `#16a34a` |
|
|
254
|
+
| Installer power step | `#f97316` |
|
|
255
|
+
| Installer network step | `#ef4444` |
|
|
256
|
+
|
|
257
|
+
Pass `showDeviceImages={false}` on `NetworkDiagram` to hide rack photos; status border colors from
|
|
258
|
+
`getStatusColor(status)` still apply. Use `onPortClick` and `highlightedPortHandles` for port trace UX.
|
|
211
259
|
|
|
212
260
|
### NetworkNode Types
|
|
213
261
|
|
package/dist/index.css
CHANGED
|
@@ -158,6 +158,15 @@
|
|
|
158
158
|
pointer-events: auto;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
.react-flow__handle.rn-port-handle--clickable {
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.react-flow__handle.rn-port-handle--highlighted {
|
|
166
|
+
box-shadow: 0 0 0 2px #f59e0b, 0 0 8px rgba(245, 158, 11, 0.75);
|
|
167
|
+
z-index: 12;
|
|
168
|
+
}
|
|
169
|
+
|
|
161
170
|
|
|
162
171
|
.react-flow__handle-right.tube-fiber-handle {
|
|
163
172
|
right: auto !important;
|
|
@@ -374,7 +383,8 @@
|
|
|
374
383
|
|
|
375
384
|
/* Device node styles */
|
|
376
385
|
.device-node {
|
|
377
|
-
background-color: #1f2937;
|
|
386
|
+
background-color: var(--rn-device-bg-color, #1f2937);
|
|
387
|
+
color: var(--rn-device-text-color, white);
|
|
378
388
|
background-image: var(--rn-device-bg-image, none);
|
|
379
389
|
background-position: var(--rn-device-bg-position, center);
|
|
380
390
|
background-repeat: var(--rn-device-bg-repeat, no-repeat);
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles/index.css"],"sourcesContent":["/* Library styles for react-networks */\n\n/* Edge zIndex styles for dynamic prominence */\n.edge-prominent {\n z-index: 1000 !important;\n opacity: 1 !important;\n}\n\n.edge-dimmed {\n z-index: 500 !important;\n opacity: 0.3 !important;\n}\n\n/* Dynamic zIndex classes */\n.edge-z-1000 {\n z-index: 1000 !important;\n}\n\n.edge-z-500 {\n z-index: 500 !important;\n}\n\n/* React Flow theming */\n.react-flow-dark {\n --react-flow-background: #1a1a1a;\n --react-flow-text: #ffffff;\n --react-flow-border: #404040;\n --react-flow-controls-bg: #2d2d2d;\n --react-flow-controls-border: #404040;\n --react-flow-minimap-bg: #2d2d2d;\n --react-flow-minimap-border: #404040;\n}\n\n.react-flow-light {\n --react-flow-background: #f5f5f5;\n --react-flow-text: #1a1a1a;\n --react-flow-border: #e9ecef;\n --react-flow-controls-bg: #f8f9fa;\n --react-flow-controls-border: #e9ecef;\n --react-flow-minimap-bg: #f8f9fa;\n --react-flow-minimap-border: #e9ecef;\n}\n\n/* Apply ReactFlow theming */\n.react-flow-dark .react-flow__background {\n background-color: var(--react-flow-background);\n}\n\n.react-flow-light .react-flow__background {\n background-color: var(--react-flow-background);\n}\n\n/* Ensure canvas background is always off-white in light mode */\n.react-flow-light .react-flow__viewport {\n background-color: #f5f5f5 !important;\n}\n\n.react-flow-light .react-flow {\n background-color: #f5f5f5;\n}\n\n.react-flow-dark .react-flow__controls {\n background-color: var(--react-flow-controls-bg);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-light .react-flow__controls {\n background-color: var(--react-flow-controls-bg);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-dark .react-flow__minimap {\n background-color: var(--react-flow-minimap-bg);\n border-color: var(--react-flow-minimap-border);\n}\n\n.react-flow-light .react-flow__minimap {\n background-color: var(--react-flow-minimap-bg);\n border-color: var(--react-flow-minimap-border);\n}\n\n.react-flow-dark .react-flow__controls-button {\n background-color: var(--react-flow-controls-bg);\n color: var(--react-flow-text);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-light .react-flow__controls-button {\n background-color: var(--react-flow-controls-bg);\n color: var(--react-flow-text);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-dark .react-flow__controls-button:hover {\n background-color: #4b5563;\n}\n\n.react-flow-light .react-flow__controls-button:hover {\n background-color: #e9ecef;\n}\n\n/* Mobile-friendly control buttons - larger touch targets */\n@media (max-width: 768px) {\n .react-flow__controls-button {\n width: 44px !important;\n height: 44px !important;\n min-width: 44px !important;\n min-height: 44px !important;\n }\n}\n\n/* Override React Flow default handle styles for tube fiber handles */\n/* Use CSS variables set by inline styles to override React Flow defaults */\n.react-flow__handle.tube-fiber-handle {\n border: none !important;\n transform: none !important;\n background-clip: padding-box !important;\n opacity: 1 !important;\n /* Ensure no default React Flow styles interfere */\n box-shadow: none !important;\n /* Don't set background here - let inline styles or specific rules handle it */\n}\n\n/* Tube fiber handles - use fiber color */\n.react-flow__handle.tube-fiber-handle {\n background: var(--fiber-bg-image, var(--fiber-bg)) !important;\n background-color: var(--fiber-bg) !important;\n}\n\n/* Fibre flow map handles */\n.react-flow__handle.fibre-flow-handle {\n border: none !important;\n transform: none !important;\n background-clip: padding-box !important;\n opacity: 1 !important;\n box-shadow: none !important;\n}\n\n.react-flow__handle.fibre-flow-handle {\n background: var(--fiber-bg-image, var(--fiber-bg)) !important;\n background-color: var(--fiber-bg) !important;\n background-image: var(--fiber-bg-image, none) !important;\n}\n\n.react-flow__handle.rn-port-hitbox {\n overflow: visible;\n}\n\n.react-flow__handle.connectionindicator.rn-port-hitbox::before {\n content: '';\n position: absolute;\n top: calc(-1 * var(--rn-hit-expand-top, 0px));\n right: calc(-1 * var(--rn-hit-expand-right, 0px));\n bottom: calc(-1 * var(--rn-hit-expand-bottom, 0px));\n left: calc(-1 * var(--rn-hit-expand-left, 0px));\n border-radius: 4px;\n background: transparent;\n pointer-events: auto;\n}\n\n\n.react-flow__handle-right.tube-fiber-handle {\n right: auto !important;\n}\n\n/* More specific selector to ensure override - target all possible React Flow handle states */\n/* Only apply to non-ribbon handles */\n.react-flow__node .react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle),\n.react-flow__node .react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle)[data-handlepos],\n.react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle)[data-handlepos],\n.react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle)[data-fiber-idx] {\n background: var(--fiber-bg-image, var(--fiber-bg)) !important;\n background-color: var(--fiber-bg) !important;\n background-image: var(--fiber-bg-image, none) !important;\n}\n\n/* Ribbon bundle handles - simple solid color (removed gradient complexity) */\n\n/* Connection animation - pulse effect when edge is first created */\n@keyframes edgeConnectPulse {\n 0% {\n opacity: 0;\n stroke-width: 1;\n }\n 50% {\n opacity: 1;\n stroke-width: 4;\n }\n 100% {\n opacity: 1;\n stroke-width: 2;\n }\n}\n\n.react-flow__edge.edge-connecting path,\n.react-flow__edge.edge-connecting .react-flow__edge-path {\n animation: edgeConnectPulse 1s ease-out;\n}\n\n/* Highlighted edge pulse + dash motion (trace paths) */\n@keyframes rnEdgeHighlightPulse {\n 0%,\n 100% {\n opacity: 0.85;\n stroke-width: var(--rn-edge-highlight-from, 2px);\n }\n 50% {\n opacity: 1;\n stroke-width: var(--rn-edge-highlight-to, 6px);\n }\n}\n\n@keyframes rnEdgeHighlightDash {\n 0% {\n stroke-dashoffset: 0;\n }\n 100% {\n stroke-dashoffset: -48;\n }\n}\n\n.rn-edge-highlight {\n animation: rnEdgeHighlightPulse 2.4s ease-in-out infinite,\n rnEdgeHighlightDash 1.8s linear infinite;\n opacity: 0.9;\n stroke-linecap: round;\n}\n\n/* Splice glow animation - fade in when both handles are connected */\n@keyframes spliceGlowFadeIn {\n 0% {\n opacity: 0;\n transform: translateX(-50%) scaleY(0.3);\n }\n 100% {\n opacity: 1;\n transform: translateX(-50%) scaleY(1);\n }\n}\n\n.splice-glow {\n animation: spliceGlowFadeIn 0.5s ease-out;\n transform-origin: center;\n}\n\n/* Splice text animation - fade in when both handles are connected */\n@keyframes spliceTextFadeIn {\n 0% {\n opacity: 0;\n transform: scale(0.8);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n/* Splice text overlay - blur and opacity for text readability */\n.splice-text-overlay {\n backdrop-filter: blur(2px);\n -webkit-backdrop-filter: blur(2px);\n}\n\n/* Dark mode overlay */\n.react-flow-dark .splice-text-overlay {\n background: rgba(0, 0, 0, 0.6);\n}\n\n/* Light mode overlay */\n.react-flow-light .splice-text-overlay {\n background: rgba(255, 255, 255, 0.7);\n}\n\n/* Splice text label - theme-aware colors */\n.splice-text-label {\n color: #fff;\n text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6);\n}\n\n.splice-text-label.animate-in {\n animation: spliceTextFadeIn 0.5s ease-out;\n transform-origin: center;\n}\n\n/* Light mode text */\n.react-flow-light .splice-text-label {\n color: #1a1a1a;\n text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.7);\n}\n\n/* Remove all borders from splice nodes */\n.react-flow__node[data-type=\"splice\"],\n.react-flow__node[data-type=\"splice\"] > div {\n border: none !important;\n outline: none !important;\n}\n\n.splice-node {\n background: transparent !important;\n border: none !important;\n outline: none !important;\n}\n\n/* Only remove box-shadow when not selected */\n.react-flow__node[data-type=\"splice\"]:not(.selected) > div,\n.splice-node:not(.selected) {\n box-shadow: none !important;\n}\n\n/* React Networks Attribution */\n.react-networks-attribution {\n padding: 0;\n margin: 0;\n z-index: 1000;\n}\n\n.react-networks-attribution-link {\n font-size: 7px;\n color: #9ca3af;\n text-decoration: none;\n font-family: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace;\n transition: color 0.2s ease;\n padding: 1px 4px;\n border-radius: 2px;\n display: inline-block;\n background: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(4px);\n}\n\n.react-networks-attribution-link:hover {\n color: #e5e7eb;\n background: rgba(0, 0, 0, 0.4);\n}\n\n/* Light mode attribution */\n.react-flow-light .react-networks-attribution-link {\n color: #6b7280;\n background: rgba(255, 255, 255, 0.6);\n}\n\n.react-flow-light .react-networks-attribution-link:hover {\n color: #1a1a1a;\n background: rgba(255, 255, 255, 0.8);\n}\n\n/* Coupler node styles */\n.coupler-node {\n transition: box-shadow 0.2s ease;\n}\n\n.coupler-node.selected {\n box-shadow: 0 0 0 2px #3b82f6 !important;\n}\n\n/* Patch panel node styles */\n.patch-panel-node {\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n\n.patch-panel-node.selected {\n box-shadow: 0 0 0 2px #3b82f6 !important;\n border-color: #3b82f6 !important;\n}\n\n/* Closure node styles */\n.closure-node {\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n\n.closure-node.selected {\n box-shadow: 0 0 0 2px #3b82f6 !important;\n border-color: #3b82f6 !important;\n}\n\n/* Device node styles */\n.device-node {\n background-color: #1f2937;\n background-image: var(--rn-device-bg-image, none);\n background-position: var(--rn-device-bg-position, center);\n background-repeat: var(--rn-device-bg-repeat, no-repeat);\n background-size: var(--rn-device-bg-size, cover);\n border: 1px solid var(--rn-device-border-color, #10b981);\n border-radius: 2px;\n box-shadow: var(--rn-device-box-shadow, 0 1px 2px rgba(0, 0, 0, 0.1));\n box-sizing: border-box;\n color: white;\n cursor: grab;\n display: flex;\n flex-direction: column;\n font-family: monospace;\n font-size: 8px;\n height: var(--rn-device-height, 20px);\n justify-content: center;\n left: var(--rn-device-left, auto);\n margin: 0;\n padding: 0;\n position: relative;\n transform: translateY(var(--rn-device-translate-y, 0px));\n width: var(--rn-device-width, 100%);\n}\n\n.device-node__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n padding: 2px;\n text-align: center;\n}\n\n.device-node__image-layer {\n inset: 0;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n z-index: 0;\n}\n\n.device-node__image {\n display: block;\n height: 100%;\n pointer-events: none;\n user-select: none;\n width: 100%;\n}\n\n.device-node__content--image-badge {\n overflow: visible;\n text-align: left;\n}\n\n.device-node__label {\n font-size: 7px;\n font-weight: bold;\n line-height: 1.1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.device-node__label--badge {\n background: rgba(15, 23, 42, 0.88);\n border: 1px solid rgba(148, 163, 184, 0.45);\n border-radius: 2px;\n display: inline-flex;\n max-width: 100%;\n padding: 1px 4px;\n}\n\n.device-node__manufacturer {\n color: #9ca3af;\n font-size: 6px;\n line-height: 1;\n}\n\n.device-node__u-indicator {\n background: #374151;\n border-radius: 1px;\n bottom: 1px;\n color: #9ca3af;\n font-size: 6px;\n line-height: 1;\n padding: 1px 2px;\n position: absolute;\n right: 1px;\n}\n\n.device-node__status-indicator {\n background: var(--rn-device-status-color, #6b7280);\n border-radius: 50%;\n bottom: 1px;\n height: 4px;\n left: 1px;\n position: absolute;\n width: 4px;\n}\n\n.device-node__split-face {\n background-color: #1f2937;\n overflow: hidden;\n position: relative;\n}\n\n.device-node__split-face--front {\n border-left: 1px dashed rgba(156, 163, 175, 0.35);\n}\n\n.device-node__split-face--rear {\n border-right: 1px dashed rgba(156, 163, 175, 0.35);\n}\n\n.device-node__face-bridge {\n position: relative;\n}\n\n.device-node__face-bridge-line {\n background: linear-gradient(180deg, transparent 0%, rgba(156, 163, 175, 0.8) 20%, rgba(156, 163, 175, 0.8) 80%, transparent 100%);\n left: 50%;\n position: absolute;\n top: 1px;\n transform: translateX(-50%);\n width: 1px;\n height: calc(100% - 2px);\n}\n\n.device-node__face-bridge-label {\n background: rgba(17, 24, 39, 0.82);\n border: 1px solid rgba(156, 163, 175, 0.4);\n border-radius: 999px;\n color: #d1d5db;\n font-size: 6px;\n font-weight: 700;\n left: 50%;\n letter-spacing: 0.04em;\n max-width: 120px;\n overflow: hidden;\n padding: 1px 6px;\n position: absolute;\n text-overflow: ellipsis;\n top: 50%;\n transform: translate(-50%, -50%) rotate(-90deg);\n white-space: nowrap;\n}\n\n/* Light mode adjustments */\n.react-flow-light .coupler-node {\n background: #f9fafb;\n color: #1f2937;\n border-color: #d1d5db;\n}\n\n.react-flow-light .patch-panel-node {\n background: transparent !important;\n color: #1f2937;\n border-color: #d1d5db;\n}\n\n.react-flow-light .closure-node {\n background: transparent !important;\n color: #1f2937;\n border-color: #d1d5db;\n}\n\n/* Triangle node styles */\n.react-flow__node[data-type=\"fibre-split\"],\n.react-flow__node.react-flow__node-fibre-split {\n background: transparent !important;\n border: none !important;\n padding: 0 !important;\n}\n\n.react-flow__node[data-type=\"fibre-split\"] > div,\n.react-flow__node.react-flow__node-fibre-split > div {\n background: transparent !important;\n border: none !important;\n padding: 0 !important;\n box-shadow: none !important;\n overflow: visible !important;\n}\n\n.react-flow__node[data-type=\"fibre-split\"] svg,\n.react-flow__node.react-flow__node-fibre-split svg {\n display: block !important;\n visibility: visible !important;\n opacity: 1 !important;\n}\n\n.triangle-node {\n position: relative !important;\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n background: transparent !important;\n border: none !important;\n padding: 0 !important;\n margin: 0 !important;\n box-shadow: none !important;\n overflow: visible !important;\n box-sizing: border-box !important;\n}\n\n\n.triangle-node-text {\n text-align: center;\n position: relative;\n z-index: 2;\n width: 46px;\n height: 46px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n color: #000000;\n font-weight: bold;\n font-size: 12px;\n}\n\n/* Cable node rotation */\n.cable-node-rotated {\n transform-origin: center center !important;\n}\n\n/* Ensure Fibre Flow edges render with full saturation and aren't affected by node overlays */\n.react-flow__edge[data-type=\"fibre-flow\"] path,\n.react-flow__edge[data-type=\"fibre-flow\"] .react-flow__edge-path {\n opacity: 1 !important;\n stroke-opacity: 1 !important;\n mix-blend-mode: normal !important;\n filter: none !important;\n}\n\n.react-flow__edge[data-type=\"fibre-flow-link\"] path,\n.react-flow__edge[data-type=\"fibre-flow-link\"] .react-flow__edge-path {\n opacity: 1 !important;\n stroke-opacity: 1 !important;\n mix-blend-mode: normal !important;\n filter: none !important;\n}\n"],"mappings":"AAGA,CAAC,eACC,QAAS,eACT,QAAS,WACX,CAEA,CAAC,YACC,QAAS,cACT,QAAS,YACX,CAGA,CAAC,YACC,QAAS,cACX,CAEA,CAAC,WACC,QAAS,aACX,CAGA,CAAC,gBACC,yBAAyB,QACzB,mBAAmB,QACnB,qBAAqB,QACrB,0BAA0B,QAC1B,8BAA8B,QAC9B,yBAAyB,QACzB,6BAA6B,OAC/B,CAEA,CAAC,iBACC,yBAAyB,QACzB,mBAAmB,QACnB,qBAAqB,QACrB,0BAA0B,QAC1B,8BAA8B,QAC9B,yBAAyB,QACzB,6BAA6B,OAC/B,CAGA,CArBC,gBAqBgB,CAAC,uBAIlB,CAfC,iBAeiB,CAJA,uBAChB,iBAAkB,IAAI,wBACxB,CAOA,CApBC,iBAoBiB,CAAC,qBACjB,iBAAkB,iBACpB,CAEA,CAxBC,iBAwBiB,CAAC,WACjB,iBAAkB,OACpB,CAEA,CAtCC,gBAsCgB,CAAC,qBAKlB,CAjCC,iBAiCiB,CALA,qBAChB,iBAAkB,IAAI,0BACtB,aAAc,IAAI,6BACpB,CAOA,CAhDC,gBAgDgB,CAAC,oBAKlB,CA3CC,iBA2CiB,CALA,oBAChB,iBAAkB,IAAI,yBACtB,aAAc,IAAI,4BACpB,CAOA,CA1DC,gBA0DgB,CAAC,4BAMlB,CAtDC,iBAsDiB,CANA,4BAChB,iBAAkB,IAAI,0BACtB,MAAO,IAAI,mBACX,aAAc,IAAI,6BACpB,CAQA,CAtEC,gBAsEgB,CAZ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agB,CAAC,2BAA6B,CAlaZ,sBAmajC,QAAS,YACT,eAAgB,YAChB,eAAgB,iBAChB,OAAQ,cACV","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/styles/index.css"],"sourcesContent":["/* Library styles for react-networks */\n\n/* Edge zIndex styles for dynamic prominence */\n.edge-prominent {\n z-index: 1000 !important;\n opacity: 1 !important;\n}\n\n.edge-dimmed {\n z-index: 500 !important;\n opacity: 0.3 !important;\n}\n\n/* Dynamic zIndex classes */\n.edge-z-1000 {\n z-index: 1000 !important;\n}\n\n.edge-z-500 {\n z-index: 500 !important;\n}\n\n/* React Flow theming */\n.react-flow-dark {\n --react-flow-background: #1a1a1a;\n --react-flow-text: #ffffff;\n --react-flow-border: #404040;\n --react-flow-controls-bg: #2d2d2d;\n --react-flow-controls-border: #404040;\n --react-flow-minimap-bg: #2d2d2d;\n --react-flow-minimap-border: #404040;\n}\n\n.react-flow-light {\n --react-flow-background: #f5f5f5;\n --react-flow-text: #1a1a1a;\n --react-flow-border: #e9ecef;\n --react-flow-controls-bg: #f8f9fa;\n --react-flow-controls-border: #e9ecef;\n --react-flow-minimap-bg: #f8f9fa;\n --react-flow-minimap-border: #e9ecef;\n}\n\n/* Apply ReactFlow theming */\n.react-flow-dark .react-flow__background {\n background-color: var(--react-flow-background);\n}\n\n.react-flow-light .react-flow__background {\n background-color: var(--react-flow-background);\n}\n\n/* Ensure canvas background is always off-white in light mode */\n.react-flow-light .react-flow__viewport {\n background-color: #f5f5f5 !important;\n}\n\n.react-flow-light .react-flow {\n background-color: #f5f5f5;\n}\n\n.react-flow-dark .react-flow__controls {\n background-color: var(--react-flow-controls-bg);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-light .react-flow__controls {\n background-color: var(--react-flow-controls-bg);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-dark .react-flow__minimap {\n background-color: var(--react-flow-minimap-bg);\n border-color: var(--react-flow-minimap-border);\n}\n\n.react-flow-light .react-flow__minimap {\n background-color: var(--react-flow-minimap-bg);\n border-color: var(--react-flow-minimap-border);\n}\n\n.react-flow-dark .react-flow__controls-button {\n background-color: var(--react-flow-controls-bg);\n color: var(--react-flow-text);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-light .react-flow__controls-button {\n background-color: var(--react-flow-controls-bg);\n color: var(--react-flow-text);\n border-color: var(--react-flow-controls-border);\n}\n\n.react-flow-dark .react-flow__controls-button:hover {\n background-color: #4b5563;\n}\n\n.react-flow-light .react-flow__controls-button:hover {\n background-color: #e9ecef;\n}\n\n/* Mobile-friendly control buttons - larger touch targets */\n@media (max-width: 768px) {\n .react-flow__controls-button {\n width: 44px !important;\n height: 44px !important;\n min-width: 44px !important;\n min-height: 44px !important;\n }\n}\n\n/* Override React Flow default handle styles for tube fiber handles */\n/* Use CSS variables set by inline styles to override React Flow defaults */\n.react-flow__handle.tube-fiber-handle {\n border: none !important;\n transform: none !important;\n background-clip: padding-box !important;\n opacity: 1 !important;\n /* Ensure no default React Flow styles interfere */\n box-shadow: none !important;\n /* Don't set background here - let inline styles or specific rules handle it */\n}\n\n/* Tube fiber handles - use fiber color */\n.react-flow__handle.tube-fiber-handle {\n background: var(--fiber-bg-image, var(--fiber-bg)) !important;\n background-color: var(--fiber-bg) !important;\n}\n\n/* Fibre flow map handles */\n.react-flow__handle.fibre-flow-handle {\n border: none !important;\n transform: none !important;\n background-clip: padding-box !important;\n opacity: 1 !important;\n box-shadow: none !important;\n}\n\n.react-flow__handle.fibre-flow-handle {\n background: var(--fiber-bg-image, var(--fiber-bg)) !important;\n background-color: var(--fiber-bg) !important;\n background-image: var(--fiber-bg-image, none) !important;\n}\n\n.react-flow__handle.rn-port-hitbox {\n overflow: visible;\n}\n\n.react-flow__handle.connectionindicator.rn-port-hitbox::before {\n content: '';\n position: absolute;\n top: calc(-1 * var(--rn-hit-expand-top, 0px));\n right: calc(-1 * var(--rn-hit-expand-right, 0px));\n bottom: calc(-1 * var(--rn-hit-expand-bottom, 0px));\n left: calc(-1 * var(--rn-hit-expand-left, 0px));\n border-radius: 4px;\n background: transparent;\n pointer-events: auto;\n}\n\n.react-flow__handle.rn-port-handle--clickable {\n cursor: pointer;\n}\n\n.react-flow__handle.rn-port-handle--highlighted {\n box-shadow: 0 0 0 2px #f59e0b, 0 0 8px rgba(245, 158, 11, 0.75);\n z-index: 12;\n}\n\n\n.react-flow__handle-right.tube-fiber-handle {\n right: auto !important;\n}\n\n/* More specific selector to ensure override - target all possible React Flow handle states */\n/* Only apply to non-ribbon handles */\n.react-flow__node .react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle),\n.react-flow__node .react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle)[data-handlepos],\n.react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle)[data-handlepos],\n.react-flow__handle.tube-fiber-handle:not(.ribbon-bundle-handle)[data-fiber-idx] {\n background: var(--fiber-bg-image, var(--fiber-bg)) !important;\n background-color: var(--fiber-bg) !important;\n background-image: var(--fiber-bg-image, none) !important;\n}\n\n/* Ribbon bundle handles - simple solid color (removed gradient complexity) */\n\n/* Connection animation - pulse effect when edge is first created */\n@keyframes edgeConnectPulse {\n 0% {\n opacity: 0;\n stroke-width: 1;\n }\n 50% {\n opacity: 1;\n stroke-width: 4;\n }\n 100% {\n opacity: 1;\n stroke-width: 2;\n }\n}\n\n.react-flow__edge.edge-connecting path,\n.react-flow__edge.edge-connecting .react-flow__edge-path {\n animation: edgeConnectPulse 1s ease-out;\n}\n\n/* Highlighted edge pulse + dash motion (trace paths) */\n@keyframes rnEdgeHighlightPulse {\n 0%,\n 100% {\n opacity: 0.85;\n stroke-width: var(--rn-edge-highlight-from, 2px);\n }\n 50% {\n opacity: 1;\n stroke-width: var(--rn-edge-highlight-to, 6px);\n }\n}\n\n@keyframes rnEdgeHighlightDash {\n 0% {\n stroke-dashoffset: 0;\n }\n 100% {\n stroke-dashoffset: -48;\n }\n}\n\n.rn-edge-highlight {\n animation: rnEdgeHighlightPulse 2.4s ease-in-out infinite,\n rnEdgeHighlightDash 1.8s linear infinite;\n opacity: 0.9;\n stroke-linecap: round;\n}\n\n/* Splice glow animation - fade in when both handles are connected */\n@keyframes spliceGlowFadeIn {\n 0% {\n opacity: 0;\n transform: translateX(-50%) scaleY(0.3);\n }\n 100% {\n opacity: 1;\n transform: translateX(-50%) scaleY(1);\n }\n}\n\n.splice-glow {\n animation: spliceGlowFadeIn 0.5s ease-out;\n transform-origin: center;\n}\n\n/* Splice text animation - fade in when both handles are connected */\n@keyframes spliceTextFadeIn {\n 0% {\n opacity: 0;\n transform: scale(0.8);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n/* Splice text overlay - blur and opacity for text readability */\n.splice-text-overlay {\n backdrop-filter: blur(2px);\n -webkit-backdrop-filter: blur(2px);\n}\n\n/* Dark mode overlay */\n.react-flow-dark .splice-text-overlay {\n background: rgba(0, 0, 0, 0.6);\n}\n\n/* Light mode overlay */\n.react-flow-light .splice-text-overlay {\n background: rgba(255, 255, 255, 0.7);\n}\n\n/* Splice text label - theme-aware colors */\n.splice-text-label {\n color: #fff;\n text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.6);\n}\n\n.splice-text-label.animate-in {\n animation: spliceTextFadeIn 0.5s ease-out;\n transform-origin: center;\n}\n\n/* Light mode text */\n.react-flow-light .splice-text-label {\n color: #1a1a1a;\n text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.7);\n}\n\n/* Remove all borders from splice nodes */\n.react-flow__node[data-type=\"splice\"],\n.react-flow__node[data-type=\"splice\"] > div {\n border: none !important;\n outline: none !important;\n}\n\n.splice-node {\n background: transparent !important;\n border: none !important;\n outline: none !important;\n}\n\n/* Only remove box-shadow when not selected */\n.react-flow__node[data-type=\"splice\"]:not(.selected) > div,\n.splice-node:not(.selected) {\n box-shadow: none !important;\n}\n\n/* React Networks Attribution */\n.react-networks-attribution {\n padding: 0;\n margin: 0;\n z-index: 1000;\n}\n\n.react-networks-attribution-link {\n font-size: 7px;\n color: #9ca3af;\n text-decoration: none;\n font-family: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace;\n transition: color 0.2s ease;\n padding: 1px 4px;\n border-radius: 2px;\n display: inline-block;\n background: rgba(0, 0, 0, 0.3);\n backdrop-filter: blur(4px);\n}\n\n.react-networks-attribution-link:hover {\n color: #e5e7eb;\n background: rgba(0, 0, 0, 0.4);\n}\n\n/* Light mode attribution */\n.react-flow-light .react-networks-attribution-link {\n color: #6b7280;\n background: rgba(255, 255, 255, 0.6);\n}\n\n.react-flow-light .react-networks-attribution-link:hover {\n color: #1a1a1a;\n background: rgba(255, 255, 255, 0.8);\n}\n\n/* Coupler node styles */\n.coupler-node {\n transition: box-shadow 0.2s ease;\n}\n\n.coupler-node.selected {\n box-shadow: 0 0 0 2px #3b82f6 !important;\n}\n\n/* Patch panel node styles */\n.patch-panel-node {\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n\n.patch-panel-node.selected {\n box-shadow: 0 0 0 2px #3b82f6 !important;\n border-color: #3b82f6 !important;\n}\n\n/* Closure node styles */\n.closure-node {\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n\n.closure-node.selected {\n box-shadow: 0 0 0 2px #3b82f6 !important;\n border-color: #3b82f6 !important;\n}\n\n/* Device node styles */\n.device-node {\n background-color: var(--rn-device-bg-color, #1f2937);\n color: var(--rn-device-text-color, white);\n background-image: var(--rn-device-bg-image, none);\n background-position: var(--rn-device-bg-position, center);\n background-repeat: var(--rn-device-bg-repeat, no-repeat);\n background-size: var(--rn-device-bg-size, cover);\n border: 1px solid var(--rn-device-border-color, #10b981);\n border-radius: 2px;\n box-shadow: var(--rn-device-box-shadow, 0 1px 2px rgba(0, 0, 0, 0.1));\n box-sizing: border-box;\n color: white;\n cursor: grab;\n display: flex;\n flex-direction: column;\n font-family: monospace;\n font-size: 8px;\n height: var(--rn-device-height, 20px);\n justify-content: center;\n left: var(--rn-device-left, auto);\n margin: 0;\n padding: 0;\n position: relative;\n transform: translateY(var(--rn-device-translate-y, 0px));\n width: var(--rn-device-width, 100%);\n}\n\n.device-node__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n padding: 2px;\n text-align: center;\n}\n\n.device-node__image-layer {\n inset: 0;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n z-index: 0;\n}\n\n.device-node__image {\n display: block;\n height: 100%;\n pointer-events: none;\n user-select: none;\n width: 100%;\n}\n\n.device-node__content--image-badge {\n overflow: visible;\n text-align: left;\n}\n\n.device-node__label {\n font-size: 7px;\n font-weight: bold;\n line-height: 1.1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.device-node__label--badge {\n background: rgba(15, 23, 42, 0.88);\n border: 1px solid rgba(148, 163, 184, 0.45);\n border-radius: 2px;\n display: inline-flex;\n max-width: 100%;\n padding: 1px 4px;\n}\n\n.device-node__manufacturer {\n color: #9ca3af;\n font-size: 6px;\n line-height: 1;\n}\n\n.device-node__u-indicator {\n background: #374151;\n border-radius: 1px;\n bottom: 1px;\n color: #9ca3af;\n font-size: 6px;\n line-height: 1;\n padding: 1px 2px;\n position: absolute;\n right: 1px;\n}\n\n.device-node__status-indicator {\n background: var(--rn-device-status-color, #6b7280);\n border-radius: 50%;\n bottom: 1px;\n height: 4px;\n left: 1px;\n position: absolute;\n width: 4px;\n}\n\n.device-node__split-face {\n background-color: #1f2937;\n overflow: hidden;\n position: relative;\n}\n\n.device-node__split-face--front {\n border-left: 1px dashed rgba(156, 163, 175, 0.35);\n}\n\n.device-node__split-face--rear {\n border-right: 1px dashed rgba(156, 163, 175, 0.35);\n}\n\n.device-node__face-bridge {\n position: relative;\n}\n\n.device-node__face-bridge-line {\n background: linear-gradient(180deg, transparent 0%, rgba(156, 163, 175, 0.8) 20%, rgba(156, 163, 175, 0.8) 80%, transparent 100%);\n left: 50%;\n position: absolute;\n top: 1px;\n transform: translateX(-50%);\n width: 1px;\n height: calc(100% - 2px);\n}\n\n.device-node__face-bridge-label {\n background: rgba(17, 24, 39, 0.82);\n border: 1px solid rgba(156, 163, 175, 0.4);\n border-radius: 999px;\n color: #d1d5db;\n font-size: 6px;\n font-weight: 700;\n left: 50%;\n letter-spacing: 0.04em;\n max-width: 120px;\n overflow: hidden;\n padding: 1px 6px;\n position: absolute;\n text-overflow: ellipsis;\n top: 50%;\n transform: translate(-50%, -50%) rotate(-90deg);\n white-space: nowrap;\n}\n\n/* Light mode adjustments */\n.react-flow-light .coupler-node {\n background: #f9fafb;\n color: #1f2937;\n border-color: #d1d5db;\n}\n\n.react-flow-light .patch-panel-node {\n background: transparent !important;\n color: #1f2937;\n border-color: #d1d5db;\n}\n\n.react-flow-light .closure-node {\n background: transparent !important;\n color: #1f2937;\n border-color: #d1d5db;\n}\n\n/* Triangle node styles */\n.react-flow__node[data-type=\"fibre-split\"],\n.react-flow__node.react-flow__node-fibre-split {\n background: transparent !important;\n border: none !important;\n padding: 0 !important;\n}\n\n.react-flow__node[data-type=\"fibre-split\"] > div,\n.react-flow__node.react-flow__node-fibre-split > div {\n background: transparent !important;\n border: none !important;\n padding: 0 !important;\n box-shadow: none !important;\n overflow: visible !important;\n}\n\n.react-flow__node[data-type=\"fibre-split\"] svg,\n.react-flow__node.react-flow__node-fibre-split svg {\n display: block !important;\n visibility: visible !important;\n opacity: 1 !important;\n}\n\n.triangle-node {\n position: relative !important;\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n background: transparent !important;\n border: none !important;\n padding: 0 !important;\n margin: 0 !important;\n box-shadow: none !important;\n overflow: visible !important;\n box-sizing: border-box !important;\n}\n\n\n.triangle-node-text {\n text-align: center;\n position: relative;\n z-index: 2;\n width: 46px;\n height: 46px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n color: #000000;\n font-weight: bold;\n font-size: 12px;\n}\n\n/* Cable node rotation */\n.cable-node-rotated {\n transform-origin: center center !important;\n}\n\n/* Ensure Fibre Flow edges render with full saturation and aren't affected by node overlays */\n.react-flow__edge[data-type=\"fibre-flow\"] path,\n.react-flow__edge[data-type=\"fibre-flow\"] .react-flow__edge-path {\n opacity: 1 !important;\n stroke-opacity: 1 !important;\n mix-blend-mode: normal !important;\n filter: none !important;\n}\n\n.react-flow__edge[data-type=\"fibre-flow-link\"] path,\n.react-flow__edge[data-type=\"fibre-flow-link\"] .react-flow__edge-path {\n opacity: 1 !important;\n stroke-opacity: 1 !important;\n mix-blend-mode: normal !important;\n filter: none !important;\n}\n"],"mappings":"AAGA,CAAC,eACC,QAAS,eACT,QAAS,WACX,CAEA,CAAC,YACC,QAAS,cACT,QAAS,YACX,CAGA,CAAC,YACC,QAAS,cACX,CAEA,CAAC,WACC,QAAS,aACX,CAGA,CAAC,gBACC,yBAAyB,QACzB,mBAAmB,QACnB,qBAAqB,QACrB,0BAA0B,QAC1B,8BAA8B,QAC9B,yBAAyB,QACzB,6BAA6B,OAC/B,CAEA,CAAC,iBACC,yBAAyB,QACzB,mBAAmB,QACnB,qBAAqB,QACrB,0BAA0B,QAC1B,8BAA8B,QAC9B,yBAAyB,QACzB,6BAA6B,OAC/B,CAGA,CArBC,gBAqBgB,CAAC,uBAIlB,CAfC,iBAeiB,CAJA,uBAChB,iBAAkB,IAAI,wBACxB,CAOA,CApBC,iBAoBiB,CAAC,qBACjB,iBAAkB,iBACpB,CAEA,CAxBC,iBAwBiB,CAAC,WACjB,iBAAkB,OACpB,CAEA,CAtCC,gBAsCgB,CAAC,qBAKlB,CAjCC,iBAiCiB,CALA,qBAChB,iBAAkB,IAAI,0BACtB,aAAc,IAAI,6BACpB,CAOA,CAhDC,gBAgDgB,CAAC,oBAKlB,CA3CC,iBA2CiB,CALA,oBAChB,iBAAkB,IAAI,yBACtB,aAAc,IAAI,4BACpB,CAOA,CA1DC,gBA0DgB,CAAC,4BAMlB,CAtDC,iBAsDiB,CANA,4BAChB,iBA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0lBU,EACR,MAAO,KACP,YAAa,IACb,UAAW,IACb,CAGA,CAAC,mBACC,iBAAkB,OAAO,gBAC3B,CAGA,CA3ZC,gBA2ZgB,CAAC,sBAAwB,KAC1C,CA5ZC,gBA4ZgB,CAAC,sBAAwB,CA3ZP,sBA4ZjC,QAAS,YACT,eAAgB,YAChB,eAAgB,iBAChB,OAAQ,cACV,CAEA,CAnaC,gBAmagB,CAAC,2BAA6B,KAC/C,CApaC,gBAoagB,CAAC,2BAA6B,CAnaZ,sBAoajC,QAAS,YACT,eAAgB,YAChB,eAAgB,iBAChB,OAAQ,cACV","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React$1, { Component, ReactNode, ErrorInfo } from 'react';
|
|
1
|
+
import React$1, { Component, ReactNode, ErrorInfo, CSSProperties } from 'react';
|
|
2
|
+
import * as reactflow from 'reactflow';
|
|
2
3
|
import { Node, NodeTypes, EdgeTypes, Connection, Edge, ConnectionMode, ReactFlowInstance, Viewport, FitViewOptions, NodeProps, EdgeProps } from 'reactflow';
|
|
3
4
|
|
|
4
5
|
type FibreFlowCableKind = 'simple' | 'tube';
|
|
@@ -240,7 +241,7 @@ declare enum Width {
|
|
|
240
241
|
* Port type enumeration
|
|
241
242
|
* @public
|
|
242
243
|
*/
|
|
243
|
-
type PortType = 'ethernet' | 'fiber' | 'console' | 'mgmt' | 'usb' | 'power_ac' | 'power_c13' | 'power_c19';
|
|
244
|
+
type PortType = 'ethernet' | 'rj45' | 'fiber' | 'console' | 'mgmt' | 'usb' | 'power_ac' | 'power_c13' | 'power_c19';
|
|
244
245
|
/**
|
|
245
246
|
* Cable types used for connected network ports.
|
|
246
247
|
* @public
|
|
@@ -383,6 +384,17 @@ type DeviceStatus = 'active' | 'inactive' | 'maintenance';
|
|
|
383
384
|
* @public
|
|
384
385
|
*/
|
|
385
386
|
type DeviceFace = 'front' | 'rear';
|
|
387
|
+
type DiagramPortHandleRef = {
|
|
388
|
+
nodeId: string;
|
|
389
|
+
handleId: string;
|
|
390
|
+
};
|
|
391
|
+
type DiagramPortClickPayload = {
|
|
392
|
+
nodeId: string;
|
|
393
|
+
handleId: string;
|
|
394
|
+
groupName: string;
|
|
395
|
+
portLabel: string;
|
|
396
|
+
face: DeviceFace;
|
|
397
|
+
};
|
|
386
398
|
/**
|
|
387
399
|
* Rack rendering layout modes.
|
|
388
400
|
* @public
|
|
@@ -413,12 +425,14 @@ interface NetworkNodeDataBase extends DeviceImageOptions {
|
|
|
413
425
|
label: string;
|
|
414
426
|
/** Current status of the node/device */
|
|
415
427
|
status?: DeviceStatus | string;
|
|
416
|
-
/** Simple flat port input. Use `portGroups` / `rearPortGroups` for explicit grouped control. */
|
|
417
|
-
ports?: DevicePort[] | number;
|
|
428
|
+
/** Simple flat port input or grouped port blocks. Use `portGroups` / `rearPortGroups` for explicit grouped control. */
|
|
429
|
+
ports?: DevicePort[] | PortBlock[] | number;
|
|
418
430
|
/** Advanced grouped front port input */
|
|
419
431
|
portGroups?: PortBlock[];
|
|
420
432
|
/** Advanced grouped rear port input */
|
|
421
433
|
rearPortGroups?: PortBlock[];
|
|
434
|
+
/** Grouped rear port blocks (rack JSON alias for `rearPortGroups`) */
|
|
435
|
+
rearPorts?: PortBlock[];
|
|
422
436
|
/** List of connected node IDs */
|
|
423
437
|
connections?: string[];
|
|
424
438
|
/** NetBox integration ID */
|
|
@@ -445,6 +459,11 @@ interface NetworkNodeDataBase extends DeviceImageOptions {
|
|
|
445
459
|
mountMode?: RackMountMode;
|
|
446
460
|
/** Device type specification */
|
|
447
461
|
deviceType?: string;
|
|
462
|
+
/**
|
|
463
|
+
* When false, device elevation renders as a status-colored block without front/rear photos.
|
|
464
|
+
* Defaults to true (show photos when URLs exist).
|
|
465
|
+
*/
|
|
466
|
+
showDeviceImages?: boolean;
|
|
448
467
|
/** Device manufacturer */
|
|
449
468
|
manufacturer?: string;
|
|
450
469
|
/** Device role in network */
|
|
@@ -575,7 +594,7 @@ interface RackNodeData extends NetworkNodeDataBase {
|
|
|
575
594
|
* @public
|
|
576
595
|
*/
|
|
577
596
|
interface DeviceNodeData extends NetworkNodeDataBase {
|
|
578
|
-
ports?: DevicePort[] | number;
|
|
597
|
+
ports?: DevicePort[] | PortBlock[] | number;
|
|
579
598
|
}
|
|
580
599
|
/**
|
|
581
600
|
* Fibre flow cable node data.
|
|
@@ -912,14 +931,16 @@ interface RackDevice extends DeviceImageOptions {
|
|
|
912
931
|
mountMode?: RackMountMode;
|
|
913
932
|
/** Device role in network */
|
|
914
933
|
role?: string;
|
|
915
|
-
/** Recommended simple port input
|
|
916
|
-
ports?: DevicePort[];
|
|
934
|
+
/** Recommended simple port input (flat `DevicePort[]` or grouped `PortBlock[]`). */
|
|
935
|
+
ports?: DevicePort[] | PortBlock[];
|
|
917
936
|
/** Current status of the device */
|
|
918
937
|
status?: DeviceStatus | string;
|
|
919
938
|
/** Advanced grouped front port input */
|
|
920
939
|
portGroups?: PortBlock[];
|
|
921
940
|
/** Advanced grouped rear port input */
|
|
922
941
|
rearPortGroups?: PortBlock[];
|
|
942
|
+
/** Grouped rear port blocks (rack JSON alias for `rearPortGroups`) */
|
|
943
|
+
rearPorts?: PortBlock[];
|
|
923
944
|
/** Power port side for rear face */
|
|
924
945
|
powerSide?: PowerSide;
|
|
925
946
|
/** Connected device IDs */
|
|
@@ -1212,6 +1233,26 @@ interface NetworkDiagramProps {
|
|
|
1212
1233
|
* Defaults to true, matching the library's existing large-diagram behavior.
|
|
1213
1234
|
*/
|
|
1214
1235
|
onlyRenderVisibleElements?: boolean;
|
|
1236
|
+
/** Node IDs to keep at full opacity when diagram focus dimming is enabled */
|
|
1237
|
+
highlightedNodeIds?: string[];
|
|
1238
|
+
/** Edge IDs to keep at full opacity when diagram focus dimming is enabled */
|
|
1239
|
+
highlightedEdgeIds?: string[];
|
|
1240
|
+
/**
|
|
1241
|
+
* When true, non-highlighted nodes and edges are dimmed while focus IDs are set.
|
|
1242
|
+
* Edges connected to highlighted nodes remain in focus unless
|
|
1243
|
+
* `connectEdgesToHighlightedNodes` is false.
|
|
1244
|
+
*/
|
|
1245
|
+
dimUnhighlighted?: boolean;
|
|
1246
|
+
/** Opacity for dimmed nodes/edges (0-1). Defaults to 0.25 */
|
|
1247
|
+
dimOpacity?: number;
|
|
1248
|
+
/** When false, only explicit highlightedEdgeIds stay bright during focus. */
|
|
1249
|
+
connectEdgesToHighlightedNodes?: boolean;
|
|
1250
|
+
/** When false, devices render without rack photos. Status border still uses `getStatusColor`. Default true. */
|
|
1251
|
+
showDeviceImages?: boolean;
|
|
1252
|
+
/** Port handles kept highlighted during diagram trace/focus. */
|
|
1253
|
+
highlightedPortHandles?: DiagramPortHandleRef[];
|
|
1254
|
+
/** Fired when a port handle is clicked (typically in read-only trace mode). */
|
|
1255
|
+
onPortClick?: (payload: DiagramPortClickPayload) => void;
|
|
1215
1256
|
}
|
|
1216
1257
|
|
|
1217
1258
|
declare const NetworkDiagram: React$1.FC<NetworkDiagramProps>;
|
|
@@ -1260,91 +1301,32 @@ interface RackNodeProps extends NodeProps<NetworkNode['data']> {
|
|
|
1260
1301
|
onRackFaceChange?: (rackId: string, face: 'front' | 'rear') => void;
|
|
1261
1302
|
isDragOver?: boolean;
|
|
1262
1303
|
}
|
|
1263
|
-
/**
|
|
1264
|
-
|
|
1265
|
-
*
|
|
1266
|
-
* Displays a 19" rack with configurable height, front/rear face switching,
|
|
1267
|
-
* and support for mounting devices at specific U positions.
|
|
1268
|
-
*
|
|
1269
|
-
* @example
|
|
1270
|
-
* ```tsx
|
|
1271
|
-
* {
|
|
1272
|
-
* id: 'rack-1',
|
|
1273
|
-
* type: 'rack',
|
|
1274
|
-
* position: { x: 100, y: 100 },
|
|
1275
|
-
* data: {
|
|
1276
|
-
* label: 'Main Rack',
|
|
1277
|
-
* uHeight: 42,
|
|
1278
|
-
* status: 'active'
|
|
1279
|
-
* }
|
|
1280
|
-
* }
|
|
1281
|
-
* ```
|
|
1282
|
-
*
|
|
1283
|
-
* @public
|
|
1284
|
-
*/
|
|
1285
|
-
declare const RackNode: React$1.FC<RackNodeProps>;
|
|
1304
|
+
/** Memoized; uses useStoreApi (not useReactFlow) so rack chrome does not re-render on every node move. */
|
|
1305
|
+
declare const RackNode: React$1.NamedExoticComponent<RackNodeProps>;
|
|
1286
1306
|
|
|
1287
1307
|
declare const FiberNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
1288
1308
|
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
* sourceHandle: 'fiber-1',
|
|
1302
|
-
* targetHandle: 'fiber-2',
|
|
1303
|
-
* type: 'fiber',
|
|
1304
|
-
* data: {
|
|
1305
|
-
* kind: 'fiber',
|
|
1306
|
-
* ribbonFiberIds: [1, 2, 3, 4, 5, 6] // For ribbon mode
|
|
1307
|
-
* }
|
|
1308
|
-
* }
|
|
1309
|
-
* ```
|
|
1310
|
-
*
|
|
1311
|
-
* @public
|
|
1312
|
-
*/
|
|
1313
|
-
declare const FiberEdge: React$1.FC<EdgeProps<NetworkEdge['data']> & {
|
|
1309
|
+
declare const FiberEdge: React$1.NamedExoticComponent<Pick<reactflow.Edge<NetworkEdgeData | undefined>, "id" | "data" | "source" | "target" | "style" | "selected" | "animated"> & Pick<reactflow.WrapEdgeProps<any>, "sourcePosition" | "targetPosition" | "interactionWidth" | "sourceX" | "sourceY" | "targetX" | "targetY" | "sourceHandleId" | "targetHandleId"> & {
|
|
1310
|
+
label?: string | React$1.ReactNode;
|
|
1311
|
+
labelStyle?: React$1.CSSProperties;
|
|
1312
|
+
labelShowBg?: boolean;
|
|
1313
|
+
labelBgStyle?: React$1.CSSProperties;
|
|
1314
|
+
labelBgPadding?: [number, number];
|
|
1315
|
+
labelBgBorderRadius?: number;
|
|
1316
|
+
} & {
|
|
1317
|
+
markerStart?: string;
|
|
1318
|
+
markerEnd?: string;
|
|
1319
|
+
pathOptions?: any;
|
|
1320
|
+
} & {
|
|
1314
1321
|
className?: string;
|
|
1315
1322
|
}>;
|
|
1316
1323
|
|
|
1317
|
-
declare const PowerEdge: React$1.
|
|
1324
|
+
declare const PowerEdge: React$1.NamedExoticComponent<EdgeProps>;
|
|
1318
1325
|
|
|
1319
|
-
/**
|
|
1320
|
-
|
|
1321
|
-
*
|
|
1322
|
-
* Represents a device that can be placed in a rack. Supports port configuration,
|
|
1323
|
-
* U positioning, front/rear views, and various device types (servers, switches, routers, etc.).
|
|
1324
|
-
*
|
|
1325
|
-
* @example
|
|
1326
|
-
* ```tsx
|
|
1327
|
-
* {
|
|
1328
|
-
* id: 'server-1',
|
|
1329
|
-
* type: 'device',
|
|
1330
|
-
* position: { x: 120, y: 150 },
|
|
1331
|
-
* parentId: 'rack-1',
|
|
1332
|
-
* data: {
|
|
1333
|
-
* label: 'Web Server',
|
|
1334
|
-
* deviceType: 'server',
|
|
1335
|
-
* uPosition: 1,
|
|
1336
|
-
* ports: [
|
|
1337
|
-
* { id: 'eth0', label: 'eth0', group: 'Network Ports', connected: true, type: 'ethernet' }
|
|
1338
|
-
* ]
|
|
1339
|
-
* }
|
|
1340
|
-
* }
|
|
1341
|
-
* ```
|
|
1342
|
-
*
|
|
1343
|
-
* @public
|
|
1344
|
-
*/
|
|
1345
|
-
declare const DeviceNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
1326
|
+
/** Memoized to avoid re-rendering rack devices when unrelated nodes move (React Flow perf guide). */
|
|
1327
|
+
declare const DeviceNode: React$1.NamedExoticComponent<NodeProps<NetworkNodeDataBase | RackNodeData | DeviceNodeData | FibreFlowCableNodeData | FibreFlowClosureNodeData>>;
|
|
1346
1328
|
|
|
1347
|
-
declare const VerticalPDU: React$1.
|
|
1329
|
+
declare const VerticalPDU: React$1.NamedExoticComponent<NodeProps<NetworkNodeDataBase | RackNodeData | DeviceNodeData | FibreFlowCableNodeData | FibreFlowClosureNodeData>>;
|
|
1348
1330
|
|
|
1349
1331
|
declare const SpliceNode: React$1.FC<NodeProps<NetworkNode['data']>>;
|
|
1350
1332
|
|
|
@@ -2128,7 +2110,10 @@ declare function buildPortBlocksFromPorts(devicePorts: DevicePort[]): {
|
|
|
2128
2110
|
* flat `ports: DevicePort[]` or explicit `portGroups` / `rearPortGroups`.
|
|
2129
2111
|
* @public
|
|
2130
2112
|
*/
|
|
2131
|
-
|
|
2113
|
+
type ResolvedPortBlockInput = Pick<NetworkNode['data'], 'ports' | 'portGroups' | 'rearPortGroups'> & {
|
|
2114
|
+
rearPorts?: PortBlock[];
|
|
2115
|
+
};
|
|
2116
|
+
declare function getResolvedPortBlocks(data: ResolvedPortBlockInput | undefined): {
|
|
2132
2117
|
ports: PortBlock[];
|
|
2133
2118
|
rearPorts: PortBlock[];
|
|
2134
2119
|
};
|
|
@@ -2158,6 +2143,139 @@ declare function hasRearPorts(data: Pick<NetworkNode['data'], 'ports' | 'portGro
|
|
|
2158
2143
|
*/
|
|
2159
2144
|
declare function getDefaultDeviceFace(data: Pick<NetworkNode['data'], 'ports' | 'portGroups' | 'rearPortGroups'> | undefined): DeviceFace;
|
|
2160
2145
|
|
|
2146
|
+
/**
|
|
2147
|
+
* Normalize source/target directional suffixes used for bidirectional handles.
|
|
2148
|
+
* Example: `Rear Ports-1-target` -\> `Rear Ports-1`.
|
|
2149
|
+
*/
|
|
2150
|
+
declare function normalizeDirectionalHandleId(handleId: string | null | undefined): string;
|
|
2151
|
+
/**
|
|
2152
|
+
* Normalize rendered handle ids back to their canonical endpoint id.
|
|
2153
|
+
* This removes both directional suffixes and split-face rear aliases.
|
|
2154
|
+
*/
|
|
2155
|
+
declare function normalizeHandleId(handleId: string | null | undefined): string;
|
|
2156
|
+
/**
|
|
2157
|
+
* Returns true when a port type is considered power-related.
|
|
2158
|
+
*/
|
|
2159
|
+
declare function isPowerPortType(portType: string | undefined): boolean;
|
|
2160
|
+
/**
|
|
2161
|
+
* Build a stable handle id for a port.
|
|
2162
|
+
* Power ports use the label directly to preserve legacy ids.
|
|
2163
|
+
*/
|
|
2164
|
+
declare function buildPortHandleId(portBlockName: string, port: Pick<Port, 'label' | 'id'> & {
|
|
2165
|
+
type?: string;
|
|
2166
|
+
}): string;
|
|
2167
|
+
/**
|
|
2168
|
+
* Heuristic for whether a handle id represents a power endpoint.
|
|
2169
|
+
*/
|
|
2170
|
+
declare function looksLikePowerHandleId(handleId: string): boolean;
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* Resolve the effective device face for a flat port input.
|
|
2174
|
+
* @public
|
|
2175
|
+
*/
|
|
2176
|
+
declare function resolveDevicePortFace(port: Pick<DevicePort, 'face' | 'type'>): DeviceFace;
|
|
2177
|
+
/** @deprecated Use {@link resolveDevicePortFace}. */
|
|
2178
|
+
declare const resolveReactNetworksPortFace: typeof resolveDevicePortFace;
|
|
2179
|
+
/**
|
|
2180
|
+
* Resolve the effective port group name for a flat port input.
|
|
2181
|
+
* @public
|
|
2182
|
+
*/
|
|
2183
|
+
declare function resolveDevicePortGroup(port: Pick<DevicePort, 'face' | 'group' | 'type'>): string;
|
|
2184
|
+
/** @deprecated Use {@link resolveDevicePortGroup}. */
|
|
2185
|
+
declare const resolveReactNetworksPortGroup: typeof resolveDevicePortGroup;
|
|
2186
|
+
/**
|
|
2187
|
+
* Normalize unknown port array input into canonical flat {@link DevicePort} entries.
|
|
2188
|
+
* @public
|
|
2189
|
+
*/
|
|
2190
|
+
declare function normalizeDevicePorts(value: unknown): DevicePort[] | undefined;
|
|
2191
|
+
/** @deprecated Use {@link normalizeDevicePorts}. */
|
|
2192
|
+
declare const normalizeReactNetworksPorts: typeof normalizeDevicePorts;
|
|
2193
|
+
/**
|
|
2194
|
+
* Resolve flat device ports from node data supporting flat or grouped port input.
|
|
2195
|
+
* @public
|
|
2196
|
+
*/
|
|
2197
|
+
declare function resolveNodeDevicePorts(value: unknown): DevicePort[] | undefined;
|
|
2198
|
+
/** @deprecated Use {@link resolveNodeDevicePorts}. */
|
|
2199
|
+
declare const resolveReactNetworksNodePorts: typeof resolveNodeDevicePorts;
|
|
2200
|
+
/**
|
|
2201
|
+
* Flatten grouped port blocks into canonical flat {@link DevicePort} entries.
|
|
2202
|
+
* @public
|
|
2203
|
+
*/
|
|
2204
|
+
declare function flattenDevicePortsFromGroups({ portGroups, rearPortGroups, }: {
|
|
2205
|
+
portGroups?: PortBlock[];
|
|
2206
|
+
rearPortGroups?: PortBlock[];
|
|
2207
|
+
}): DevicePort[];
|
|
2208
|
+
/** @deprecated Use {@link flattenDevicePortsFromGroups}. */
|
|
2209
|
+
declare const flattenReactNetworksPortGroups: typeof flattenDevicePortsFromGroups;
|
|
2210
|
+
/**
|
|
2211
|
+
* Build grouped port blocks from flat device port input.
|
|
2212
|
+
* @public
|
|
2213
|
+
*/
|
|
2214
|
+
declare function buildDevicePortGroupsFromPorts(ports: DevicePort[] | undefined): {
|
|
2215
|
+
portGroups: PortBlock[];
|
|
2216
|
+
rearPortGroups: PortBlock[];
|
|
2217
|
+
};
|
|
2218
|
+
/** @deprecated Use {@link buildDevicePortGroupsFromPorts}. */
|
|
2219
|
+
declare const buildReactNetworksPortGroupsFromPorts: typeof buildDevicePortGroupsFromPorts;
|
|
2220
|
+
interface ListPossiblePortHandleIdsOptions {
|
|
2221
|
+
deviceType?: string;
|
|
2222
|
+
face?: DeviceFace;
|
|
2223
|
+
}
|
|
2224
|
+
/**
|
|
2225
|
+
* List handle ids that may exist on a rendered node for a port.
|
|
2226
|
+
* @public
|
|
2227
|
+
*/
|
|
2228
|
+
declare function listPossiblePortHandleIds(portBlockName: string, port: Pick<Port, 'id' | 'label' | 'type'>, options?: ListPossiblePortHandleIdsOptions): string[];
|
|
2229
|
+
/**
|
|
2230
|
+
* Validate that a handle id exists on node data after grouping resolution.
|
|
2231
|
+
* @public
|
|
2232
|
+
*/
|
|
2233
|
+
declare function validatePortHandleOnNodeData(nodeData: Pick<NetworkNodeDataBase, 'ports' | 'portGroups' | 'rearPortGroups'> | undefined, handle: string, options?: {
|
|
2234
|
+
deviceType?: string;
|
|
2235
|
+
sanitizeHandle?: (value: string) => string;
|
|
2236
|
+
}): boolean;
|
|
2237
|
+
/**
|
|
2238
|
+
* Convert flat ports to grouped blocks using the same rules as renderers.
|
|
2239
|
+
* @public
|
|
2240
|
+
*/
|
|
2241
|
+
declare function resolveDevicePortBlocksFromFlatPorts(ports: DevicePort[]): {
|
|
2242
|
+
portGroups: PortBlock[];
|
|
2243
|
+
rearPortGroups: PortBlock[];
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
declare const parseSemanticPortPosition: (value: string) => PortPosition | undefined;
|
|
2247
|
+
declare const normalizePortPositionInput: (value: unknown) => PortPosition | undefined;
|
|
2248
|
+
|
|
2249
|
+
type PathLayoutDirection = 'horizontal' | 'vertical';
|
|
2250
|
+
interface PathLayoutStepInput {
|
|
2251
|
+
id: string;
|
|
2252
|
+
type?: NetworkNode['type'];
|
|
2253
|
+
data?: NetworkNode['data'];
|
|
2254
|
+
}
|
|
2255
|
+
interface PathLayoutEdgeInput {
|
|
2256
|
+
id: string;
|
|
2257
|
+
source: string;
|
|
2258
|
+
target: string;
|
|
2259
|
+
type?: NetworkEdge['type'];
|
|
2260
|
+
data?: NetworkEdge['data'];
|
|
2261
|
+
}
|
|
2262
|
+
interface BuildPathLayoutOptions {
|
|
2263
|
+
direction?: PathLayoutDirection;
|
|
2264
|
+
spacing?: number;
|
|
2265
|
+
origin?: {
|
|
2266
|
+
x: number;
|
|
2267
|
+
y: number;
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* Lay out a sequential path of nodes and connecting edges with deterministic spacing.
|
|
2272
|
+
* @public
|
|
2273
|
+
*/
|
|
2274
|
+
declare function buildPathLayoutGraph(steps: PathLayoutStepInput[], edges: PathLayoutEdgeInput[], options?: BuildPathLayoutOptions): {
|
|
2275
|
+
nodes: NetworkNode[];
|
|
2276
|
+
edges: NetworkEdge[];
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2161
2279
|
interface NetworkGraphSnapshot {
|
|
2162
2280
|
nodes: NetworkNode[];
|
|
2163
2281
|
edges: NetworkEdge[];
|
|
@@ -2365,6 +2483,41 @@ interface ReplaceEdgeOptions {
|
|
|
2365
2483
|
*/
|
|
2366
2484
|
declare function replaceEdge(options: ReplaceEdgeOptions): Edge[] | null;
|
|
2367
2485
|
|
|
2486
|
+
interface DiagramFocusOptions {
|
|
2487
|
+
highlightedNodeIds?: readonly string[];
|
|
2488
|
+
highlightedEdgeIds?: readonly string[];
|
|
2489
|
+
dimUnhighlighted?: boolean;
|
|
2490
|
+
dimOpacity?: number;
|
|
2491
|
+
/** When false, only explicit highlightedEdgeIds stay bright (not every edge on a highlighted node). */
|
|
2492
|
+
connectEdgesToHighlightedNodes?: boolean;
|
|
2493
|
+
}
|
|
2494
|
+
declare const DEFAULT_DIAGRAM_DIM_OPACITY = 0.25;
|
|
2495
|
+
declare function hasDiagramFocus(options: DiagramFocusOptions): boolean;
|
|
2496
|
+
declare function isNodeInDiagramFocus(nodeId: string, options: DiagramFocusOptions): boolean;
|
|
2497
|
+
declare function isEdgeInDiagramFocus(edgeId: string, edge: Pick<NetworkEdge, 'source' | 'target'>, options: DiagramFocusOptions): boolean;
|
|
2498
|
+
type RuntimeNode = NetworkNode & {
|
|
2499
|
+
style?: CSSProperties;
|
|
2500
|
+
};
|
|
2501
|
+
type RuntimeEdge = NetworkEdge & {
|
|
2502
|
+
style?: CSSProperties;
|
|
2503
|
+
};
|
|
2504
|
+
declare function applyDiagramFocusToNodes<TNode extends RuntimeNode>(nodes: TNode[], options: DiagramFocusOptions): TNode[];
|
|
2505
|
+
declare function applyDiagramFocusToEdges<TEdge extends RuntimeEdge>(edges: TEdge[], options: DiagramFocusOptions): TEdge[];
|
|
2506
|
+
|
|
2507
|
+
declare function isDeviceDiagramNode(node: NetworkNode): boolean;
|
|
2508
|
+
declare function applyDeviceDisplayToNodes(nodes: NetworkNode[], options?: {
|
|
2509
|
+
showDeviceImages?: boolean;
|
|
2510
|
+
}, previousNodes?: NetworkNode[]): NetworkNode[];
|
|
2511
|
+
|
|
2512
|
+
type DiagramPortContextValue = {
|
|
2513
|
+
highlightedPortHandles?: readonly DiagramPortHandleRef[];
|
|
2514
|
+
onPortClick?: (payload: DiagramPortClickPayload) => void;
|
|
2515
|
+
portClickEnabled: boolean;
|
|
2516
|
+
};
|
|
2517
|
+
declare const DiagramPortProvider: React$1.Provider<DiagramPortContextValue>;
|
|
2518
|
+
declare function useDiagramPortInteraction(): DiagramPortContextValue;
|
|
2519
|
+
declare function isDiagramPortHandleHighlighted(highlightedPortHandles: readonly DiagramPortHandleRef[] | undefined, nodeId: string, handleId: string): boolean;
|
|
2520
|
+
|
|
2368
2521
|
/**
|
|
2369
2522
|
* Template Schema V2 — unified device template model.
|
|
2370
2523
|
*
|
|
@@ -2674,4 +2827,4 @@ declare function useNetworkDiagram(store: NetworkDiagramStore): NetworkDiagramSt
|
|
|
2674
2827
|
declare function useNodes(store: NetworkDiagramStore): NetworkNode[];
|
|
2675
2828
|
declare function useEdges(store: NetworkDiagramStore): NetworkEdge[];
|
|
2676
2829
|
|
|
2677
|
-
export { COUPLERS_PER_PANEL, COUPLER_SLOT_HEIGHT_PX, COUPLER_WIDTH_PX, CableNode, ClosureNode, CouplerNode, type DeviceFace, type DeviceImageFit, type DeviceImageOptions, type DeviceImageRepeat, DeviceNode, type DeviceNodeData, DevicePlacementError, type DevicePlacementValidation, type DevicePort, type DeviceStatus, type DeviceTemplateV2, type DiagramDocument, type DiagramEdge, type DiagramEdgeEndpoint, type DiagramEndpoint, DiagramErrorBoundary, type DiagramErrorBoundaryProps, type DiagramErrorBoundaryState, type DiagramExternalRef, type DiagramNode, type DiagramNodeKind, type DiagramNodePlacement, type DiagramNodeRender, type DiagramUiState, type EndpointConnectionKind, type EndpointMetadata, FIBER_COLORS_12, type FiberCable, type FiberCableType, type FiberColorId, FiberEdge, FiberNode, FibreCableWithTubesExpanded, type FibreCableWithTubesExpandedProps, type FibreFlowCable, type FibreFlowCableKind, type FibreFlowCableLayout, type FibreFlowCableNodeData, type FibreFlowCircuit, type FibreFlowClosure, type FibreFlowClosureNodeData, type FibreFlowColorMode, type FibreFlowEndpoint, type FibreFlowLayoutDirection, FibreFlowMap, type FibreFlowMapProps, type FibreFlowRow, type FibreFlowSplice, type FibreFlowTubeLabel, FibreSplitNode, HANDLE_EXTENSION_PX, type InventoryCableDTO, type InventoryDeviceDTO, type InventoryRackDTO, type MountClass, MultiTubeCableNode, type NetBoxCable, type NetBoxDevice, type NetBoxDeviceTransformOptions, type NetBoxInterface, type NetBoxMappedPort, type NetBoxPortPosition, type NetBoxRack, NetworkDiagram, type NetworkDiagramActionPanelOptions, type NetworkDiagramFitViewOptions, type NetworkDiagramFlowMethods, type NetworkDiagramFlowObject, type NetworkDiagramInteractionOptions, type NetworkDiagramOptions, type NetworkDiagramProps, type NetworkDiagramState, type NetworkDiagramStore, type NetworkDiagramStoreApi, type NetworkDiagramStoreState, type NetworkDiagramToImageOptions, type NetworkDiagramValidateConnectionParams, type NetworkDiagramValidationResult, type NetworkEdge, type NetworkEdgeData, type NetworkEdgeType, type NetworkGraphSnapshot, type NetworkNode, type NetworkNodeData, type NetworkNodeDataBase, type NetworkNodeDataByType, type NetworkNodeType, PANEL_BORDER_WIDTH, PANEL_HEADER_HEIGHT, PANEL_HEIGHT_PX, PANEL_PADDING, PANEL_TUBE_TRAY_SPACING, PANEL_WIDTH_PX, POWER_CONNECTORS, PatchPanelNode, type Port, type PortBlock, type PortCableType, type PortPosition, type PortType, type PortVisualDimensions, type PortVisualInput, type PortVisualKind, type PowerConnectorConfig, PowerEdge, type PowerPortStyle, type PowerSide, RACK_HEADER_HEIGHT, RACK_WIDTH_PX, type RackConfig, type RackDevice, type RackDeviceType, type RackLayoutMode, type RackMountMode, type RackMountedNodeType, RackNode, type RackNodeData, type RackNodeProps, type RackSchemaOptions, type RawNetboxTemplate, type RawTemplatePort, type RawTemplatePortBlock, type ReplaceEdgeOptions, type SpliceConfig, SpliceNode, SplicePlacementError, type SplicePlacementValidation, type SpliceSchemaOptions, type SpliceTrayConfig, SpliceTrayNode, TEMPLATE_SCHEMA_VERSION, type TemplateFaceData, type TemplateFrontRearPortLink, type TemplateParseResult, type TemplatePort, type TemplatePortBlock, type TemplateSource, type TemplateValidationIssue, type TemplateValidationReport, type TemplateWidth, TubeNode, type UNumberingDirection, U_HEIGHT_PX, type ValidateConnectionParams, type ValidationResult, VerticalPDU, Width, addDeviceToRack, addSpliceToTray, baseColorFor, buildNodesFromRackConfig, buildNodesFromSpliceConfig, buildPortBlocksFromPorts, calculateClosureDimensions, calculateCouplerRightX, calculateCouplerSlotSpacing, calculateCouplerSpacing, calculateDevicePositionFromU, calculatePanelDimensions, calculateSlotPositionFromY, calculateSplicePositionFromNumber, calculateUPositions, calculateYFromSlotPosition, countTemplateFacePorts, createNetworkDiagramStore, createRackConfigFromNodes, createSpliceConfigFromNodes, diagramDocumentToNetworkGraph, fiberSolidOrStriped, findNearestRack, findNextAvailableHolderPosition, findNextAvailableUPosition, generateLayout, getConnectorConfig, getCouplerDimensions, getDefaultDeviceFace, getDeviceConnectorType, getEndpointMetadata, getFiberColor, getFrontPortBlocks, getInnerContentWidth, getPDUPortType, getPanelHeight, getPanelWidth, getPowerPortStyle, getRackBounds, getRearPortBlocks, getResolvedPortBlocks, getStandardPortVisualDimensions, getStatusColor, getTrayDimensions, getTubeDimensions, hasFrontPorts, hasRearPorts, inventoryCableToNetworkEdge, inventoryDeviceToNetworkNode, inventoryRackToNetworkNode, inventoryToDiagramDocument, inventoryToNetworkDiagram, isHighPowerConnector, isPointInRack, isStriped, isUPositionAvailable, netboxCableToNetworkEdge, netboxDeviceToNetworkNode, netboxRackToNetworkNode, netboxToDiagramDocument, netboxToNetworkDiagram, networkGraphToDiagramDocument, parseNetboxTemplate, removeDeviceFromRack, removeSpliceFromTray, replaceEdge, resolveEndpointCompatibilityKeys, resolvePortVisualKind, snapToCouplerPosition, snapToSplicePosition, snapToUPosition, updateDeviceUPosition$1 as updateDeviceUPosition, updateDeviceUPosition as updateDeviceUPositionInSchema, updateSpliceHolderPosition, useEdges as useDiagramEdges, useNodes as useDiagramNodes, useNetworkDiagram, validateAndSnapDevice, validateRackDevicePlacements, validateRenderFidelity, validateSplicePlacements };
|
|
2830
|
+
export { type BuildPathLayoutOptions, COUPLERS_PER_PANEL, COUPLER_SLOT_HEIGHT_PX, COUPLER_WIDTH_PX, CableNode, ClosureNode, CouplerNode, DEFAULT_DIAGRAM_DIM_OPACITY, type DeviceFace, type DeviceImageFit, type DeviceImageOptions, type DeviceImageRepeat, DeviceNode, type DeviceNodeData, DevicePlacementError, type DevicePlacementValidation, type DevicePort, type DeviceStatus, type DeviceTemplateV2, type DiagramDocument, type DiagramEdge, type DiagramEdgeEndpoint, type DiagramEndpoint, DiagramErrorBoundary, type DiagramErrorBoundaryProps, type DiagramErrorBoundaryState, type DiagramExternalRef, type DiagramFocusOptions, type DiagramNode, type DiagramNodeKind, type DiagramNodePlacement, type DiagramNodeRender, type DiagramPortClickPayload, type DiagramPortContextValue, type DiagramPortHandleRef, DiagramPortProvider, type DiagramUiState, type EndpointConnectionKind, type EndpointMetadata, FIBER_COLORS_12, type FiberCable, type FiberCableType, type FiberColorId, FiberEdge, FiberNode, FibreCableWithTubesExpanded, type FibreCableWithTubesExpandedProps, type FibreFlowCable, type FibreFlowCableKind, type FibreFlowCableLayout, type FibreFlowCableNodeData, type FibreFlowCircuit, type FibreFlowClosure, type FibreFlowClosureNodeData, type FibreFlowColorMode, type FibreFlowEndpoint, type FibreFlowLayoutDirection, FibreFlowMap, type FibreFlowMapProps, type FibreFlowRow, type FibreFlowSplice, type FibreFlowTubeLabel, FibreSplitNode, HANDLE_EXTENSION_PX, type InventoryCableDTO, type InventoryDeviceDTO, type InventoryRackDTO, type ListPossiblePortHandleIdsOptions, type MountClass, MultiTubeCableNode, type NetBoxCable, type NetBoxDevice, type NetBoxDeviceTransformOptions, type NetBoxInterface, type NetBoxMappedPort, type NetBoxPortPosition, type NetBoxRack, NetworkDiagram, type NetworkDiagramActionPanelOptions, type NetworkDiagramFitViewOptions, type NetworkDiagramFlowMethods, type NetworkDiagramFlowObject, type NetworkDiagramInteractionOptions, type NetworkDiagramOptions, type NetworkDiagramProps, type NetworkDiagramState, type NetworkDiagramStore, type NetworkDiagramStoreApi, type NetworkDiagramStoreState, type NetworkDiagramToImageOptions, type NetworkDiagramValidateConnectionParams, type NetworkDiagramValidationResult, type NetworkEdge, type NetworkEdgeData, type NetworkEdgeType, type NetworkGraphSnapshot, type NetworkNode, type NetworkNodeData, type NetworkNodeDataBase, type NetworkNodeDataByType, type NetworkNodeType, PANEL_BORDER_WIDTH, PANEL_HEADER_HEIGHT, PANEL_HEIGHT_PX, PANEL_PADDING, PANEL_TUBE_TRAY_SPACING, PANEL_WIDTH_PX, POWER_CONNECTORS, PatchPanelNode, type PathLayoutDirection, type PathLayoutEdgeInput, type PathLayoutStepInput, type Port, type PortBlock, type PortCableType, type PortPosition, type PortType, type PortVisualDimensions, type PortVisualInput, type PortVisualKind, type PowerConnectorConfig, PowerEdge, type PowerPortStyle, type PowerSide, RACK_HEADER_HEIGHT, RACK_WIDTH_PX, type RackConfig, type RackDevice, type RackDeviceType, type RackLayoutMode, type RackMountMode, type RackMountedNodeType, RackNode, type RackNodeData, type RackNodeProps, type RackSchemaOptions, type RawNetboxTemplate, type RawTemplatePort, type RawTemplatePortBlock, type ReplaceEdgeOptions, type SpliceConfig, SpliceNode, SplicePlacementError, type SplicePlacementValidation, type SpliceSchemaOptions, type SpliceTrayConfig, SpliceTrayNode, TEMPLATE_SCHEMA_VERSION, type TemplateFaceData, type TemplateFrontRearPortLink, type TemplateParseResult, type TemplatePort, type TemplatePortBlock, type TemplateSource, type TemplateValidationIssue, type TemplateValidationReport, type TemplateWidth, TubeNode, type UNumberingDirection, U_HEIGHT_PX, type ValidateConnectionParams, type ValidationResult, VerticalPDU, Width, addDeviceToRack, addSpliceToTray, applyDeviceDisplayToNodes, applyDiagramFocusToEdges, applyDiagramFocusToNodes, baseColorFor, buildDevicePortGroupsFromPorts, buildNodesFromRackConfig, buildNodesFromSpliceConfig, buildPathLayoutGraph, buildPortBlocksFromPorts, buildPortHandleId, buildPortHandleId as buildReactNetworksHandleId, buildReactNetworksPortGroupsFromPorts, calculateClosureDimensions, calculateCouplerRightX, calculateCouplerSlotSpacing, calculateCouplerSpacing, calculateDevicePositionFromU, calculatePanelDimensions, calculateSlotPositionFromY, calculateSplicePositionFromNumber, calculateUPositions, calculateYFromSlotPosition, countTemplateFacePorts, createNetworkDiagramStore, createRackConfigFromNodes, createSpliceConfigFromNodes, diagramDocumentToNetworkGraph, fiberSolidOrStriped, findNearestRack, findNextAvailableHolderPosition, findNextAvailableUPosition, flattenDevicePortsFromGroups, flattenReactNetworksPortGroups, generateLayout, getConnectorConfig, getCouplerDimensions, getDefaultDeviceFace, getDeviceConnectorType, getEndpointMetadata, getFiberColor, getFrontPortBlocks, getInnerContentWidth, getPDUPortType, getPanelHeight, getPanelWidth, getPowerPortStyle, getRackBounds, getRearPortBlocks, getResolvedPortBlocks, getStandardPortVisualDimensions, getStatusColor, getTrayDimensions, getTubeDimensions, hasDiagramFocus, hasFrontPorts, hasRearPorts, inventoryCableToNetworkEdge, inventoryDeviceToNetworkNode, inventoryRackToNetworkNode, inventoryToDiagramDocument, inventoryToNetworkDiagram, isDeviceDiagramNode, isDiagramPortHandleHighlighted, isEdgeInDiagramFocus, isHighPowerConnector, isNodeInDiagramFocus, isPointInRack, isPowerPortType, isStriped, isUPositionAvailable, listPossiblePortHandleIds, looksLikePowerHandleId, netboxCableToNetworkEdge, netboxDeviceToNetworkNode, netboxRackToNetworkNode, netboxToDiagramDocument, netboxToNetworkDiagram, networkGraphToDiagramDocument, normalizeDevicePorts, normalizeDirectionalHandleId, normalizeHandleId, normalizePortPositionInput, normalizeReactNetworksPorts, parseNetboxTemplate, parseSemanticPortPosition, removeDeviceFromRack, removeSpliceFromTray, replaceEdge, resolveDevicePortBlocksFromFlatPorts, resolveDevicePortFace, resolveDevicePortGroup, resolveEndpointCompatibilityKeys, resolveNodeDevicePorts, resolvePortVisualKind, resolveReactNetworksNodePorts, resolveReactNetworksPortFace, resolveReactNetworksPortGroup, snapToCouplerPosition, snapToSplicePosition, snapToUPosition, updateDeviceUPosition$1 as updateDeviceUPosition, updateDeviceUPosition as updateDeviceUPositionInSchema, updateSpliceHolderPosition, useEdges as useDiagramEdges, useNodes as useDiagramNodes, useDiagramPortInteraction, useNetworkDiagram, validateAndSnapDevice, validatePortHandleOnNodeData, validateRackDevicePlacements, validateRenderFidelity, validateSplicePlacements };
|