@adcops/autocore-react 3.1.1 → 3.3.5
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/additional-docs/react_performance_notes.md +94 -0
- package/dist/components/AutoCoreDevPanel.d.ts.map +1 -1
- package/dist/components/AutoCoreDevPanel.js +1 -1
- package/dist/components/FileList.d.ts.map +1 -1
- package/dist/components/FileList.js +1 -1
- package/dist/components/FileSelect.d.ts.map +1 -1
- package/dist/components/FileSelect.js +1 -1
- package/dist/core/AutoCoreTagContext.d.ts +59 -185
- package/dist/core/AutoCoreTagContext.d.ts.map +1 -1
- package/dist/core/AutoCoreTagContext.js +1 -1
- package/dist/core/AutoCoreTagTypes.d.ts +127 -6
- package/dist/core/AutoCoreTagTypes.d.ts.map +1 -1
- package/dist/core/CoreStreamTypes.d.ts +345 -0
- package/dist/core/CoreStreamTypes.d.ts.map +1 -0
- package/dist/core/CoreStreamTypes.js +1 -0
- package/dist/core/EventEmitterContext.d.ts +91 -473
- package/dist/core/EventEmitterContext.d.ts.map +1 -1
- package/dist/core/EventEmitterContext.js +1 -1
- package/dist/hooks/adsHooks.d.ts.map +1 -1
- package/dist/hooks/adsHooks.js +1 -1
- package/dist/hooks/commandHooks.d.ts +3 -3
- package/dist/hooks/commandHooks.d.ts.map +1 -1
- package/dist/hooks/commandHooks.js +1 -1
- package/dist/hooks/useAutoCoreTag.js +1 -1
- package/dist/hub/CommandMessage.d.ts +18 -9
- package/dist/hub/CommandMessage.d.ts.map +1 -1
- package/dist/hub/CommandMessage.js +1 -1
- package/dist/hub/DebugPanel.d.ts +31 -0
- package/dist/hub/DebugPanel.d.ts.map +1 -0
- package/dist/hub/DebugPanel.js +1 -0
- package/dist/hub/HubBase.d.ts +83 -129
- package/dist/hub/HubBase.d.ts.map +1 -1
- package/dist/hub/HubBase.js +1 -1
- package/dist/hub/HubSimulate.d.ts +41 -8
- package/dist/hub/HubSimulate.d.ts.map +1 -1
- package/dist/hub/HubSimulate.js +1 -1
- package/dist/hub/HubTauri.d.ts +24 -60
- package/dist/hub/HubTauri.d.ts.map +1 -1
- package/dist/hub/HubTauri.js +1 -1
- package/dist/hub/HubWebSocket.d.ts +33 -17
- package/dist/hub/HubWebSocket.d.ts.map +1 -1
- package/dist/hub/HubWebSocket.js +1 -1
- package/dist/hub/debug.d.ts +23 -0
- package/dist/hub/debug.d.ts.map +1 -0
- package/dist/hub/debug.js +1 -0
- package/dist/hub/index.d.ts +19 -4
- package/dist/hub/index.d.ts.map +1 -1
- package/dist/hub/index.js +1 -1
- package/package.json +8 -4
- package/src/components/AutoCoreDevPanel.tsx +14 -11
- package/src/components/FileList.tsx +5 -4
- package/src/components/FileSelect.tsx +2 -1
- package/src/core/ActionMode.ts +1 -1
- package/src/core/AutoCoreTagContext.tsx +247 -330
- package/src/core/AutoCoreTagTypes.ts +236 -104
- package/src/core/CoreStreamTypes.ts +512 -0
- package/src/core/EventEmitterContext.tsx +182 -520
- package/src/core/IndicatorButtonState.ts +1 -1
- package/src/core/hoc.tsx +1 -1
- package/src/hooks/adsHooks.tsx +21 -22
- package/src/hooks/commandHooks.tsx +23 -19
- package/src/hooks/index.ts +1 -1
- package/src/hooks/useAutoCoreTag.ts +2 -2
- package/src/hooks/useScaledValue.tsx +1 -1
- package/src/hub/CommandMessage.ts +71 -19
- package/src/hub/DebugPanel.ts +280 -0
- package/src/hub/HubBase.ts +147 -223
- package/src/hub/HubSimulate.ts +93 -24
- package/src/hub/HubTauri.ts +87 -96
- package/src/hub/HubWebSocket.ts +118 -140
- package/src/hub/debug.ts +211 -0
- package/src/hub/index.ts +49 -39
- package/docs/.nojekyll +0 -1
- package/docs/assets/hierarchy.js +0 -1
- package/docs/assets/highlight.css +0 -134
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1633
- package/docs/classes/components_CodeEditor.CodeEditor.html +0 -135
- package/docs/classes/components_Indicator.Indicator.html +0 -122
- package/docs/classes/components_IndicatorRect.IndicatorRect.html +0 -121
- package/docs/classes/components_JogPanel.JogPanel.html +0 -136
- package/docs/classes/components_Lamp.Lamp.html +0 -122
- package/docs/classes/components_OskDialog.OskDialog.html +0 -125
- package/docs/classes/components_TextInput.TextInput.html +0 -125
- package/docs/classes/components_ValueDisplay.ValueDisplay.html +0 -148
- package/docs/classes/components_ValueIndicator.ValueIndicator.html +0 -126
- package/docs/classes/core_ValueSimulator.ValueSimulator.html +0 -51
- package/docs/classes/hub_HubBase.HubBase.html +0 -106
- package/docs/classes/hub_HubSimulate.HubSimulate.html +0 -75
- package/docs/classes/hub_HubTauri.HubTauri.html +0 -93
- package/docs/classes/hub_HubWebSocket.HubWebSocket.html +0 -112
- package/docs/documents/core_AutoCoreTagContext.AutoCoreTagContext.html +0 -148
- package/docs/enums/components_JogPanel.JogDistanceAction.html +0 -5
- package/docs/enums/components_JogPanel.JogPanelAction.html +0 -18
- package/docs/enums/components_JogPanel.JogSpeedAction.html +0 -5
- package/docs/enums/core_ActionMode.ActionMode.html +0 -6
- package/docs/enums/core_IndicatorColor.IndicatorColor.html +0 -23
- package/docs/functions/assets.BlocklyLogo.html +0 -1
- package/docs/functions/assets.Distance.html +0 -1
- package/docs/functions/assets.JogLong.html +0 -1
- package/docs/functions/assets.JogMedium.html +0 -1
- package/docs/functions/assets.JogShort.html +0 -1
- package/docs/functions/assets.PythonLogo.html +0 -1
- package/docs/functions/assets.Rotation3D.html +0 -1
- package/docs/functions/assets.RotationCcw.html +0 -1
- package/docs/functions/assets.RotationCcwA.html +0 -1
- package/docs/functions/assets.RotationCcwB.html +0 -1
- package/docs/functions/assets.RotationCcwC.html +0 -1
- package/docs/functions/assets.RotationCw.html +0 -1
- package/docs/functions/assets.RotationCwA.html +0 -1
- package/docs/functions/assets.RotationCwB.html +0 -1
- package/docs/functions/assets.RotationCwC.html +0 -1
- package/docs/functions/assets.Run.html +0 -1
- package/docs/functions/assets.Speed.html +0 -1
- package/docs/functions/assets.SpeedFast.html +0 -1
- package/docs/functions/assets.SpeedMedium.html +0 -1
- package/docs/functions/assets.SpeedNone.html +0 -1
- package/docs/functions/assets.SpeedSlow.html +0 -1
- package/docs/functions/assets.Walk.html +0 -1
- package/docs/functions/components_BlocklyEditor.createCustomToolbox.html +0 -6
- package/docs/functions/core_UniqueId.UniqueId.html +0 -9
- package/docs/functions/core_hoc.hocAddSubscription.html +0 -6
- package/docs/functions/hooks_adsHooks.useAdsRegisterSymbols.html +0 -16
- package/docs/functions/hooks_adsHooks.useAdsTapValue.html +0 -8
- package/docs/functions/hooks_adsHooks.useAdsWriteScaledValue.html +0 -18
- package/docs/functions/hooks_adsHooks.useAdsWriteValue.html +0 -9
- package/docs/functions/hooks_commandHooks.useRegisterSymbols.html +0 -16
- package/docs/functions/hooks_commandHooks.useTapValue.html +0 -10
- package/docs/functions/hooks_commandHooks.useWriteScaledValue.html +0 -18
- package/docs/functions/hooks_commandHooks.useWriteValue.html +0 -11
- package/docs/functions/hooks_useAutoCoreTag.ts.makeAutoCoreTagHooks.html +0 -12
- package/docs/functions/hooks_useScaledValue.useScaledValue.html +0 -18
- package/docs/functions/hub.createHub.html +0 -3
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -148
- package/docs/interfaces/components_IndicatorButton.IndicatorButtonProps.html +0 -654
- package/docs/interfaces/components_IndicatorRect.IndicatorRectProps.html +0 -37
- package/docs/interfaces/components_JogPanel.JogPanelButtonDefinition.html +0 -5
- package/docs/interfaces/components_ToggleGroup.ToggleGroupProps.html +0 -644
- package/docs/interfaces/core_AutoCoreTagTypes.BaseContextValue.html +0 -12
- package/docs/interfaces/core_AutoCoreTagTypes.ScaleConfig.html +0 -13
- package/docs/interfaces/core_EventEmitterContext.Action.html +0 -8
- package/docs/interfaces/core_EventEmitterContext.EventEmitterContextType.html +0 -33
- package/docs/interfaces/core_EventEmitterContext.State.html +0 -8
- package/docs/interfaces/core_EventEmitterContext.Subscription.html +0 -6
- package/docs/interfaces/core_IndicatorButtonState.IndicatorButtonState.html +0 -10
- package/docs/interfaces/core_PositionContext.IPositionContext.html +0 -17
- package/docs/interfaces/hub_CommandMessage.CommandMessage.html +0 -6
- package/docs/interfaces/hub_CommandMessage.CommandMessageResult.html +0 -4
- package/docs/modules/assets.html +0 -1
- package/docs/modules/assets_BlocklyLogo.html +0 -1
- package/docs/modules/assets_Distance.html +0 -1
- package/docs/modules/assets_JogLong.html +0 -1
- package/docs/modules/assets_JogMedium.html +0 -1
- package/docs/modules/assets_JogShort.html +0 -1
- package/docs/modules/assets_PythonLogo.html +0 -1
- package/docs/modules/assets_Rotation3D.html +0 -1
- package/docs/modules/assets_RotationCcw.html +0 -1
- package/docs/modules/assets_RotationCcwA.html +0 -1
- package/docs/modules/assets_RotationCcwB.html +0 -1
- package/docs/modules/assets_RotationCcwC.html +0 -1
- package/docs/modules/assets_RotationCw.html +0 -1
- package/docs/modules/assets_RotationCwA.html +0 -1
- package/docs/modules/assets_RotationCwB.html +0 -1
- package/docs/modules/assets_RotationCwC.html +0 -1
- package/docs/modules/assets_Run.html +0 -1
- package/docs/modules/assets_Speed.html +0 -1
- package/docs/modules/assets_SpeedFast.html +0 -1
- package/docs/modules/assets_SpeedMedium.html +0 -1
- package/docs/modules/assets_SpeedNone.html +0 -1
- package/docs/modules/assets_SpeedSlow.html +0 -1
- package/docs/modules/assets_Walk.html +0 -1
- package/docs/modules/components_AutoCoreDevPanel.html +0 -20
- package/docs/modules/components_BlocklyEditor.html +0 -1
- package/docs/modules/components_CodeEditor.html +0 -1
- package/docs/modules/components_FileList.html +0 -1
- package/docs/modules/components_FileSelect.html +0 -1
- package/docs/modules/components_FitText.html +0 -1
- package/docs/modules/components_Indicator.html +0 -1
- package/docs/modules/components_IndicatorButton.html +0 -1
- package/docs/modules/components_IndicatorRect.html +0 -1
- package/docs/modules/components_JogPanel.html +0 -1
- package/docs/modules/components_Lamp.html +0 -1
- package/docs/modules/components_Osk.html +0 -1
- package/docs/modules/components_OskDialog.html +0 -1
- package/docs/modules/components_ProgressBarWithValue.html +0 -1
- package/docs/modules/components_TextInput.html +0 -1
- package/docs/modules/components_ToggleGroup.html +0 -1
- package/docs/modules/components_ValueDisplay.html +0 -1
- package/docs/modules/components_ValueIndicator.html +0 -1
- package/docs/modules/components_ValueInput.html +0 -1
- package/docs/modules/core_ActionMode.html +0 -1
- package/docs/modules/core_AutoCoreTagContext.html +0 -11
- package/docs/modules/core_AutoCoreTagTypes.html +0 -1
- package/docs/modules/core_EventEmitterContext.html +0 -53
- package/docs/modules/core_IndicatorButtonState.html +0 -1
- package/docs/modules/core_IndicatorColor.html +0 -1
- package/docs/modules/core_MaskPatterns.html +0 -1
- package/docs/modules/core_NumerableTypes.html +0 -1
- package/docs/modules/core_PositionContext.html +0 -1
- package/docs/modules/core_UniqueId.html +0 -1
- package/docs/modules/core_ValueSimulator.html +0 -1
- package/docs/modules/core_hoc.html +0 -1
- package/docs/modules/hooks.html +0 -1
- package/docs/modules/hooks_adsHooks.html +0 -1
- package/docs/modules/hooks_commandHooks.html +0 -1
- package/docs/modules/hooks_useAutoCoreTag.ts.html +0 -52
- package/docs/modules/hooks_useScaledValue.html +0 -1
- package/docs/modules/hub.html +0 -1
- package/docs/modules/hub_CommandMessage.html +0 -1
- package/docs/modules/hub_HubBase.html +0 -1
- package/docs/modules/hub_HubSimulate.html +0 -1
- package/docs/modules/hub_HubTauri.html +0 -1
- package/docs/modules/hub_HubWebSocket.html +0 -1
- package/docs/modules.html +0 -23
- package/docs/types/components_IndicatorButton.IndicatorButtonOptionsType.html +0 -1
- package/docs/types/core_AutoCoreTagTypes.ExtractByTag.html +0 -2
- package/docs/types/core_AutoCoreTagTypes.PrimitiveKind.html +0 -1
- package/docs/types/core_AutoCoreTagTypes.TagConfig.html +0 -16
- package/docs/types/core_AutoCoreTagTypes.TagValueMap.html +0 -1
- package/docs/types/core_AutoCoreTagTypes.TagValueOf.html +0 -1
- package/docs/types/core_EventEmitterContext.EmitterDispatchFunction.html +0 -3
- package/docs/types/core_EventEmitterContext.EmitterSubscribeFunction.html +0 -3
- package/docs/types/core_EventEmitterContext.EmitterUnsubscribeFunction.html +0 -3
- package/docs/types/core_NumerableTypes.NumerableFormatOptions.html +0 -4
- package/docs/types/core_hoc.HocAddSubscriptionProps.html +0 -6
- package/docs/variables/components_AutoCoreDevPanel.AutoCoreDevPanel.html +0 -43
- package/docs/variables/components_BlocklyEditor.BlocklyEditor.html +0 -13
- package/docs/variables/components_BlocklyEditor.StandardToolbox.html +0 -1
- package/docs/variables/components_FileList.FileList.html +0 -23
- package/docs/variables/components_FileSelect.FileSelect.html +0 -1
- package/docs/variables/components_FitText.FitText.html +0 -4
- package/docs/variables/components_IndicatorButton.IndicatorButton.html +0 -1
- package/docs/variables/components_JogPanel.DefaultLinearJogButtons.html +0 -2
- package/docs/variables/components_JogPanel.DefaultRotationJogButtons.html +0 -2
- package/docs/variables/components_Osk.Osk.html +0 -1
- package/docs/variables/components_ProgressBarWithValue.ProgressBarWithValue.html +0 -1
- package/docs/variables/components_ToggleGroup.ToggleGroup.html +0 -1
- package/docs/variables/components_ValueInput.ValueInput.html +0 -4
- package/docs/variables/core_AutoCoreTagContext.AutoCoreTagContext.html +0 -1
- package/docs/variables/core_AutoCoreTagContext.AutoCoreTagProvider.html +0 -7
- package/docs/variables/core_EventEmitterContext.EventEmitterContext.html +0 -64
- package/docs/variables/core_EventEmitterContext.EventEmitterProvider.html +0 -10
- package/docs/variables/core_MaskPatterns.PrimeReactMaskPatterns.html +0 -14
- package/docs/variables/core_MaskPatterns.RegExMaskPatterns.html +0 -15
- package/docs/variables/core_PositionContext.DimensionsContext.html +0 -6
- package/docs/variables/hooks_useScaledValue.kMillimeters2Inches.html +0 -2
- package/docs/variables/hooks_useScaledValue.kNewtons2Pounds.html +0 -2
package/src/hub/debug.ts
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2026 Automated Design Corp. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Debug Logging Utility for CoreStream/Hub Communication
|
|
5
|
+
*
|
|
6
|
+
* This utility provides debug logging that won't be stripped by production builds.
|
|
7
|
+
* It uses console.warn/console.error which are typically preserved, and stores
|
|
8
|
+
* logs in a buffer that can be inspected from the browser console.
|
|
9
|
+
*
|
|
10
|
+
* Usage in browser console:
|
|
11
|
+
* window.__AUTOCORE_DEBUG__.enable() - Enable debug logging
|
|
12
|
+
* window.__AUTOCORE_DEBUG__.disable() - Disable debug logging
|
|
13
|
+
* window.__AUTOCORE_DEBUG__.logs - View all logged messages
|
|
14
|
+
* window.__AUTOCORE_DEBUG__.clear() - Clear log buffer
|
|
15
|
+
* window.__AUTOCORE_DEBUG__.dump() - Dump all logs to console
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export interface DebugLogEntry {
|
|
19
|
+
timestamp: number;
|
|
20
|
+
source: string;
|
|
21
|
+
level: "info" | "warn" | "error" | "send" | "recv";
|
|
22
|
+
message: string;
|
|
23
|
+
data?: unknown;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface DebugState {
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
logs: DebugLogEntry[];
|
|
29
|
+
maxLogs: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Global state - attached to window for browser console access
|
|
33
|
+
const state: DebugState = {
|
|
34
|
+
enabled: true, // Start enabled for debugging
|
|
35
|
+
logs: [],
|
|
36
|
+
maxLogs: 1000,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// Format timestamp as HH:MM:SS.mmm
|
|
40
|
+
function formatTime(ts: number): string {
|
|
41
|
+
const d = new Date(ts);
|
|
42
|
+
return d.toTimeString().slice(0, 8) + "." + String(d.getMilliseconds()).padStart(3, "0");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Format log entry for console output
|
|
46
|
+
function formatEntry(entry: DebugLogEntry): string {
|
|
47
|
+
return `[${formatTime(entry.timestamp)}] [${entry.source}] ${entry.message}`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Add a log entry
|
|
51
|
+
function addLog(
|
|
52
|
+
source: string,
|
|
53
|
+
level: DebugLogEntry["level"],
|
|
54
|
+
message: string,
|
|
55
|
+
data?: unknown
|
|
56
|
+
): void {
|
|
57
|
+
const entry: DebugLogEntry = {
|
|
58
|
+
timestamp: Date.now(),
|
|
59
|
+
source,
|
|
60
|
+
level,
|
|
61
|
+
message,
|
|
62
|
+
data,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// Add to buffer (with size limit)
|
|
66
|
+
state.logs.push(entry);
|
|
67
|
+
if (state.logs.length > state.maxLogs) {
|
|
68
|
+
state.logs.shift();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Output to console if enabled
|
|
72
|
+
if (state.enabled) {
|
|
73
|
+
const formatted = formatEntry(entry);
|
|
74
|
+
const style = getLogStyle(level);
|
|
75
|
+
|
|
76
|
+
switch (level) {
|
|
77
|
+
case "error":
|
|
78
|
+
console.error(`%c${formatted}`, style, data !== undefined ? data : "");
|
|
79
|
+
break;
|
|
80
|
+
case "warn":
|
|
81
|
+
console.warn(`%c${formatted}`, style, data !== undefined ? data : "");
|
|
82
|
+
break;
|
|
83
|
+
case "send":
|
|
84
|
+
console.warn(`%c>>> ${formatted}`, style, data !== undefined ? data : "");
|
|
85
|
+
break;
|
|
86
|
+
case "recv":
|
|
87
|
+
console.warn(`%c<<< ${formatted}`, style, data !== undefined ? data : "");
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
console.warn(`%c${formatted}`, style, data !== undefined ? data : "");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Get console style for log level
|
|
96
|
+
function getLogStyle(level: DebugLogEntry["level"]): string {
|
|
97
|
+
switch (level) {
|
|
98
|
+
case "error":
|
|
99
|
+
return "color: #ff4444; font-weight: bold;";
|
|
100
|
+
case "warn":
|
|
101
|
+
return "color: #ffaa00;";
|
|
102
|
+
case "send":
|
|
103
|
+
return "color: #44ff44;"; // Green for outgoing
|
|
104
|
+
case "recv":
|
|
105
|
+
return "color: #4444ff;"; // Blue for incoming
|
|
106
|
+
default:
|
|
107
|
+
return "color: #888888;";
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Public debug API
|
|
112
|
+
export const debug = {
|
|
113
|
+
/** Log an info message */
|
|
114
|
+
info(source: string, message: string, data?: unknown): void {
|
|
115
|
+
addLog(source, "info", message, data);
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
/** Log a warning message */
|
|
119
|
+
warn(source: string, message: string, data?: unknown): void {
|
|
120
|
+
addLog(source, "warn", message, data);
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
/** Log an error message */
|
|
124
|
+
error(source: string, message: string, data?: unknown): void {
|
|
125
|
+
addLog(source, "error", message, data);
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
/** Log an outgoing message (to server) */
|
|
129
|
+
send(source: string, message: string, data?: unknown): void {
|
|
130
|
+
addLog(source, "send", message, data);
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
/** Log an incoming message (from server) */
|
|
134
|
+
recv(source: string, message: string, data?: unknown): void {
|
|
135
|
+
addLog(source, "recv", message, data);
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
/** Check if debug is enabled */
|
|
139
|
+
isEnabled(): boolean {
|
|
140
|
+
return state.enabled;
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// Browser console API
|
|
145
|
+
const consoleAPI = {
|
|
146
|
+
enable(): void {
|
|
147
|
+
state.enabled = true;
|
|
148
|
+
console.warn("%c[AutoCore Debug] Logging ENABLED", "color: #44ff44; font-weight: bold;");
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
disable(): void {
|
|
152
|
+
state.enabled = false;
|
|
153
|
+
console.warn("%c[AutoCore Debug] Logging DISABLED", "color: #ff4444; font-weight: bold;");
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
get logs(): DebugLogEntry[] {
|
|
157
|
+
return [...state.logs];
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
clear(): void {
|
|
161
|
+
state.logs = [];
|
|
162
|
+
console.warn("%c[AutoCore Debug] Logs cleared", "color: #ffaa00;");
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
dump(): void {
|
|
166
|
+
console.group("[AutoCore Debug] Full Log Dump");
|
|
167
|
+
for (const entry of state.logs) {
|
|
168
|
+
const formatted = formatEntry(entry);
|
|
169
|
+
switch (entry.level) {
|
|
170
|
+
case "send":
|
|
171
|
+
console.log(`%c>>> ${formatted}`, "color: #44ff44;", entry.data);
|
|
172
|
+
break;
|
|
173
|
+
case "recv":
|
|
174
|
+
console.log(`%c<<< ${formatted}`, "color: #4444ff;", entry.data);
|
|
175
|
+
break;
|
|
176
|
+
case "error":
|
|
177
|
+
console.log(`%c${formatted}`, "color: #ff4444;", entry.data);
|
|
178
|
+
break;
|
|
179
|
+
default:
|
|
180
|
+
console.log(formatted, entry.data);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
console.groupEnd();
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
/** Filter logs by source */
|
|
187
|
+
filterBySource(source: string): DebugLogEntry[] {
|
|
188
|
+
return state.logs.filter((e) => e.source.includes(source));
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
/** Filter logs by level */
|
|
192
|
+
filterByLevel(level: DebugLogEntry["level"]): DebugLogEntry[] {
|
|
193
|
+
return state.logs.filter((e) => e.level === level);
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
/** Get only send/recv messages */
|
|
197
|
+
getMessages(): DebugLogEntry[] {
|
|
198
|
+
return state.logs.filter((e) => e.level === "send" || e.level === "recv");
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
// Attach to window for browser console access
|
|
203
|
+
if (typeof window !== "undefined") {
|
|
204
|
+
(window as unknown as { __AUTOCORE_DEBUG__: typeof consoleAPI }).__AUTOCORE_DEBUG__ = consoleAPI;
|
|
205
|
+
console.warn(
|
|
206
|
+
"%c[AutoCore Debug] Debug utility loaded. Access via window.__AUTOCORE_DEBUG__",
|
|
207
|
+
"color: #44ff44; font-weight: bold;"
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export default debug;
|
package/src/hub/index.ts
CHANGED
|
@@ -2,68 +2,78 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-01-16 21:07:29
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2026-01-29 09:34:39
|
|
6
6
|
* Modified By: ADC
|
|
7
7
|
* -----
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
console.log("[hub/index.ts] Module loading...");
|
|
12
|
+
|
|
11
13
|
import { HubBase as Hub } from './HubBase';
|
|
12
14
|
import { HubTauri } from './HubTauri';
|
|
13
15
|
import { HubWebSocket } from "./HubWebSocket";
|
|
14
|
-
import {HubSimulate} from "./HubSimulate"
|
|
15
|
-
import
|
|
16
|
+
import { HubSimulate } from "./HubSimulate";
|
|
17
|
+
import { getDebugPanel } from "./DebugPanel";
|
|
16
18
|
|
|
19
|
+
console.log("[hub/index.ts] Imports complete");
|
|
17
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Singleton hub instance.
|
|
23
|
+
* This ensures all components share the same connection to the backend.
|
|
24
|
+
*/
|
|
18
25
|
let hubInstance: Hub | null = null;
|
|
19
26
|
|
|
20
27
|
/**
|
|
21
|
-
* Creates
|
|
22
|
-
*
|
|
28
|
+
* Creates or returns the singleton Hub connection to the backend.
|
|
29
|
+
*
|
|
30
|
+
* The hub type is determined automatically:
|
|
31
|
+
* - If running in Tauri: HubTauri (direct Rust IPC)
|
|
32
|
+
* - Otherwise: HubWebSocket (WebSocket to autocore-server)
|
|
33
|
+
*
|
|
34
|
+
* @returns Hub The singleton hub instance
|
|
23
35
|
*/
|
|
24
36
|
export function createHub(): Hub {
|
|
37
|
+
console.log("[HUB] createHub() called");
|
|
38
|
+
const panel = getDebugPanel();
|
|
39
|
+
panel.log("info", "createHub", `called (hasInstance: ${!!hubInstance})`);
|
|
25
40
|
|
|
26
41
|
if (!hubInstance) {
|
|
27
|
-
if (window.__TAURI__ !== undefined && window.__TAURI__ !== null) {
|
|
28
|
-
|
|
42
|
+
if (typeof window !== 'undefined' && (window as any).__TAURI__ !== undefined && (window as any).__TAURI__ !== null) {
|
|
43
|
+
panel.log("info", "createHub", "Creating HubTauri instance");
|
|
29
44
|
hubInstance = new HubTauri();
|
|
30
45
|
} else {
|
|
31
|
-
|
|
46
|
+
panel.log("info", "createHub", "Creating HubWebSocket instance");
|
|
32
47
|
hubInstance = new HubWebSocket();
|
|
33
48
|
}
|
|
49
|
+
} else {
|
|
50
|
+
panel.log("info", "createHub", "Returning existing hub instance");
|
|
34
51
|
}
|
|
35
52
|
return hubInstance;
|
|
36
|
-
|
|
37
|
-
// if (window.__TAURI__ !== undefined && window.__TAURI__ !== null) {
|
|
38
|
-
// // Standalone Tauri application
|
|
39
|
-
// console.log("HUB: Starting link to Tauri backend.");
|
|
40
|
-
// return new HubTauri();
|
|
41
|
-
// }
|
|
42
|
-
// // else if (
|
|
43
|
-
// // window.location.port !== undefined
|
|
44
|
-
// // && window.location.port.length > 0
|
|
45
|
-
// // && window.location.port !== '80'
|
|
46
|
-
// // && window.location.port !== '8080'
|
|
47
|
-
// // && window.location.port !== '443'
|
|
48
|
-
// // ) {
|
|
49
|
-
|
|
50
|
-
// // // We're loaded in some development environment
|
|
51
|
-
// // console.log("HUB: Starting HUB SIMULATOR.");
|
|
52
|
-
// // return new HubSimulate();
|
|
53
|
+
}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Returns the current hub instance, or null if not yet created.
|
|
57
|
+
* Useful for checking if a hub exists without creating one.
|
|
58
|
+
*/
|
|
59
|
+
export function getHubInstance(): Hub | null {
|
|
60
|
+
return hubInstance;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Resets the singleton hub instance.
|
|
65
|
+
* This should only be used for testing or when intentionally reconnecting.
|
|
66
|
+
*/
|
|
67
|
+
export function resetHub(): void {
|
|
68
|
+
hubInstance = null;
|
|
60
69
|
}
|
|
61
70
|
|
|
71
|
+
// Export HubBase for convenience to save importing throughout the application.
|
|
72
|
+
export { HubBase as Hub } from './HubBase';
|
|
73
|
+
export { HubTauri };
|
|
74
|
+
export { HubWebSocket };
|
|
75
|
+
export { HubSimulate };
|
|
62
76
|
|
|
63
|
-
// Export
|
|
64
|
-
|
|
65
|
-
export {
|
|
66
|
-
export {HubTauri}
|
|
67
|
-
export {HubWebSocket}
|
|
68
|
-
export {HubSimulate}
|
|
69
|
-
export type {CommandMessage, CommandMessageResult}
|
|
77
|
+
// Export CommandMessage types
|
|
78
|
+
export type { CommandMessage } from './CommandMessage';
|
|
79
|
+
export { MessageType } from './CommandMessage';
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/assets/hierarchy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.hierarchyData = "eJyNjz0PgjAURf/LnSsKioGOTu6YOBhiCtTQUCDpx0T476YgRByE6b3enObc10G1rdGgDz86nlMCxV+S50a0jQbt4FI3G1ZzUFxtdmGag6ASTQHqBxGBVRIUuWRac70vbfb8YN40S1NLkBEBhdHFzv3fjQFBXgpZKN4MNeKQ+HEYkuDgn9KewCXLComorWRmS40J9b73/3WcMg5/lDdmldjgGzhvXlZN7sil6c6zpM0rbjbYZtZbPFasff8GFayj4g=="
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-hl-0: #001080;
|
|
3
|
-
--dark-hl-0: #9CDCFE;
|
|
4
|
-
--light-hl-1: #000000;
|
|
5
|
-
--dark-hl-1: #D4D4D4;
|
|
6
|
-
--light-hl-2: #AF00DB;
|
|
7
|
-
--dark-hl-2: #C586C0;
|
|
8
|
-
--light-hl-3: #A31515;
|
|
9
|
-
--dark-hl-3: #CE9178;
|
|
10
|
-
--light-hl-4: #0000FF;
|
|
11
|
-
--dark-hl-4: #569CD6;
|
|
12
|
-
--light-hl-5: #0070C1;
|
|
13
|
-
--dark-hl-5: #4FC1FF;
|
|
14
|
-
--light-hl-6: #098658;
|
|
15
|
-
--dark-hl-6: #B5CEA8;
|
|
16
|
-
--light-hl-7: #267F99;
|
|
17
|
-
--dark-hl-7: #4EC9B0;
|
|
18
|
-
--light-hl-8: #795E26;
|
|
19
|
-
--dark-hl-8: #DCDCAA;
|
|
20
|
-
--light-hl-9: #008000;
|
|
21
|
-
--dark-hl-9: #6A9955;
|
|
22
|
-
--light-hl-10: #800000;
|
|
23
|
-
--dark-hl-10: #808080;
|
|
24
|
-
--light-hl-11: #800000;
|
|
25
|
-
--dark-hl-11: #569CD6;
|
|
26
|
-
--light-hl-12: #000000FF;
|
|
27
|
-
--dark-hl-12: #D4D4D4;
|
|
28
|
-
--light-hl-13: #E50000;
|
|
29
|
-
--dark-hl-13: #9CDCFE;
|
|
30
|
-
--light-hl-14: #000000;
|
|
31
|
-
--dark-hl-14: #C8C8C8;
|
|
32
|
-
--light-hl-15: #CD3131;
|
|
33
|
-
--dark-hl-15: #F44747;
|
|
34
|
-
--light-code-background: #FFFFFF;
|
|
35
|
-
--dark-code-background: #1E1E1E;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@media (prefers-color-scheme: light) { :root {
|
|
39
|
-
--hl-0: var(--light-hl-0);
|
|
40
|
-
--hl-1: var(--light-hl-1);
|
|
41
|
-
--hl-2: var(--light-hl-2);
|
|
42
|
-
--hl-3: var(--light-hl-3);
|
|
43
|
-
--hl-4: var(--light-hl-4);
|
|
44
|
-
--hl-5: var(--light-hl-5);
|
|
45
|
-
--hl-6: var(--light-hl-6);
|
|
46
|
-
--hl-7: var(--light-hl-7);
|
|
47
|
-
--hl-8: var(--light-hl-8);
|
|
48
|
-
--hl-9: var(--light-hl-9);
|
|
49
|
-
--hl-10: var(--light-hl-10);
|
|
50
|
-
--hl-11: var(--light-hl-11);
|
|
51
|
-
--hl-12: var(--light-hl-12);
|
|
52
|
-
--hl-13: var(--light-hl-13);
|
|
53
|
-
--hl-14: var(--light-hl-14);
|
|
54
|
-
--hl-15: var(--light-hl-15);
|
|
55
|
-
--code-background: var(--light-code-background);
|
|
56
|
-
} }
|
|
57
|
-
|
|
58
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
59
|
-
--hl-0: var(--dark-hl-0);
|
|
60
|
-
--hl-1: var(--dark-hl-1);
|
|
61
|
-
--hl-2: var(--dark-hl-2);
|
|
62
|
-
--hl-3: var(--dark-hl-3);
|
|
63
|
-
--hl-4: var(--dark-hl-4);
|
|
64
|
-
--hl-5: var(--dark-hl-5);
|
|
65
|
-
--hl-6: var(--dark-hl-6);
|
|
66
|
-
--hl-7: var(--dark-hl-7);
|
|
67
|
-
--hl-8: var(--dark-hl-8);
|
|
68
|
-
--hl-9: var(--dark-hl-9);
|
|
69
|
-
--hl-10: var(--dark-hl-10);
|
|
70
|
-
--hl-11: var(--dark-hl-11);
|
|
71
|
-
--hl-12: var(--dark-hl-12);
|
|
72
|
-
--hl-13: var(--dark-hl-13);
|
|
73
|
-
--hl-14: var(--dark-hl-14);
|
|
74
|
-
--hl-15: var(--dark-hl-15);
|
|
75
|
-
--code-background: var(--dark-code-background);
|
|
76
|
-
} }
|
|
77
|
-
|
|
78
|
-
:root[data-theme='light'] {
|
|
79
|
-
--hl-0: var(--light-hl-0);
|
|
80
|
-
--hl-1: var(--light-hl-1);
|
|
81
|
-
--hl-2: var(--light-hl-2);
|
|
82
|
-
--hl-3: var(--light-hl-3);
|
|
83
|
-
--hl-4: var(--light-hl-4);
|
|
84
|
-
--hl-5: var(--light-hl-5);
|
|
85
|
-
--hl-6: var(--light-hl-6);
|
|
86
|
-
--hl-7: var(--light-hl-7);
|
|
87
|
-
--hl-8: var(--light-hl-8);
|
|
88
|
-
--hl-9: var(--light-hl-9);
|
|
89
|
-
--hl-10: var(--light-hl-10);
|
|
90
|
-
--hl-11: var(--light-hl-11);
|
|
91
|
-
--hl-12: var(--light-hl-12);
|
|
92
|
-
--hl-13: var(--light-hl-13);
|
|
93
|
-
--hl-14: var(--light-hl-14);
|
|
94
|
-
--hl-15: var(--light-hl-15);
|
|
95
|
-
--code-background: var(--light-code-background);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
:root[data-theme='dark'] {
|
|
99
|
-
--hl-0: var(--dark-hl-0);
|
|
100
|
-
--hl-1: var(--dark-hl-1);
|
|
101
|
-
--hl-2: var(--dark-hl-2);
|
|
102
|
-
--hl-3: var(--dark-hl-3);
|
|
103
|
-
--hl-4: var(--dark-hl-4);
|
|
104
|
-
--hl-5: var(--dark-hl-5);
|
|
105
|
-
--hl-6: var(--dark-hl-6);
|
|
106
|
-
--hl-7: var(--dark-hl-7);
|
|
107
|
-
--hl-8: var(--dark-hl-8);
|
|
108
|
-
--hl-9: var(--dark-hl-9);
|
|
109
|
-
--hl-10: var(--dark-hl-10);
|
|
110
|
-
--hl-11: var(--dark-hl-11);
|
|
111
|
-
--hl-12: var(--dark-hl-12);
|
|
112
|
-
--hl-13: var(--dark-hl-13);
|
|
113
|
-
--hl-14: var(--dark-hl-14);
|
|
114
|
-
--hl-15: var(--dark-hl-15);
|
|
115
|
-
--code-background: var(--dark-code-background);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.hl-0 { color: var(--hl-0); }
|
|
119
|
-
.hl-1 { color: var(--hl-1); }
|
|
120
|
-
.hl-2 { color: var(--hl-2); }
|
|
121
|
-
.hl-3 { color: var(--hl-3); }
|
|
122
|
-
.hl-4 { color: var(--hl-4); }
|
|
123
|
-
.hl-5 { color: var(--hl-5); }
|
|
124
|
-
.hl-6 { color: var(--hl-6); }
|
|
125
|
-
.hl-7 { color: var(--hl-7); }
|
|
126
|
-
.hl-8 { color: var(--hl-8); }
|
|
127
|
-
.hl-9 { color: var(--hl-9); }
|
|
128
|
-
.hl-10 { color: var(--hl-10); }
|
|
129
|
-
.hl-11 { color: var(--hl-11); }
|
|
130
|
-
.hl-12 { color: var(--hl-12); }
|
|
131
|
-
.hl-13 { color: var(--hl-13); }
|
|
132
|
-
.hl-14 { color: var(--hl-14); }
|
|
133
|
-
.hl-15 { color: var(--hl-15); }
|
|
134
|
-
pre, code { background: var(--code-background); }
|
package/docs/assets/icons.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(function() {
|
|
2
|
-
addIcons();
|
|
3
|
-
function addIcons() {
|
|
4
|
-
if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
|
|
5
|
-
const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
|
|
6
|
-
svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g>`;
|
|
7
|
-
svg.style.display = "none";
|
|
8
|
-
if (location.protocol === "file:") updateUseElements();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function updateUseElements() {
|
|
12
|
-
document.querySelectorAll("use").forEach(el => {
|
|
13
|
-
if (el.getAttribute("href").includes("#icon-")) {
|
|
14
|
-
el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
})()
|
package/docs/assets/icons.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g></svg>
|