@copilotkit/react-core 0.0.0-fix-surface-agui-stream-errors-20250730142248 → 0.0.0-fix-runtime-reorder-and-validate-tool-20250812201140
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/CHANGELOG.md +132 -3
- package/dist/{chunk-AWFAFFO5.mjs → chunk-6ZLPNY7X.mjs} +7 -3
- package/dist/chunk-6ZLPNY7X.mjs.map +1 -0
- package/dist/chunk-A2ORBLCP.mjs +759 -0
- package/dist/chunk-A2ORBLCP.mjs.map +1 -0
- package/dist/{chunk-VSH4JSN3.mjs → chunk-ACHZJNZF.mjs} +13 -7
- package/dist/chunk-ACHZJNZF.mjs.map +1 -0
- package/dist/{chunk-VH45SC6Z.mjs → chunk-AEAS6ZRO.mjs} +2 -2
- package/dist/{chunk-GRCHDHC4.mjs → chunk-HD2TFFAT.mjs} +25 -6
- package/dist/chunk-HD2TFFAT.mjs.map +1 -0
- package/dist/{chunk-KH27ZS4Y.mjs → chunk-HD3F6XVZ.mjs} +6 -5
- package/dist/chunk-HD3F6XVZ.mjs.map +1 -0
- package/dist/{chunk-FTP6FDYS.mjs → chunk-KDE2GWEU.mjs} +2 -2
- package/dist/{chunk-TTI4Z6GK.mjs → chunk-ME7RQK67.mjs} +7 -7
- package/dist/chunk-ME7RQK67.mjs.map +1 -0
- package/dist/{chunk-ZTZJIDRJ.mjs → chunk-N4VN2B5S.mjs} +2 -2
- package/dist/chunk-PIF5KJYI.mjs +103 -0
- package/dist/chunk-PIF5KJYI.mjs.map +1 -0
- package/dist/chunk-QE7Z6LQR.mjs +170 -0
- package/dist/chunk-QE7Z6LQR.mjs.map +1 -0
- package/dist/{chunk-PHIMGB3K.mjs → chunk-WNMN2UNU.mjs} +25 -19
- package/dist/chunk-WNMN2UNU.mjs.map +1 -0
- package/dist/chunk-ZJYEXP6T.mjs +34 -0
- package/dist/chunk-ZJYEXP6T.mjs.map +1 -0
- package/dist/components/copilot-provider/copilotkit-props.d.ts +10 -2
- package/dist/components/copilot-provider/copilotkit-props.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.js +1052 -72
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +6 -3
- package/dist/components/copilot-provider/index.js +1052 -72
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +6 -3
- package/dist/components/dev-console/console-trigger.d.ts +8 -0
- package/dist/components/dev-console/console-trigger.js +1131 -0
- package/dist/components/dev-console/console-trigger.js.map +1 -0
- package/dist/components/dev-console/console-trigger.mjs +13 -0
- package/dist/components/dev-console/developer-console-modal.d.ts +10 -0
- package/dist/components/dev-console/developer-console-modal.js +977 -0
- package/dist/components/dev-console/developer-console-modal.js.map +1 -0
- package/dist/components/dev-console/developer-console-modal.mjs +12 -0
- package/dist/components/dev-console/developer-console-modal.mjs.map +1 -0
- package/dist/components/dev-console/icons.d.ts +9 -0
- package/dist/components/dev-console/icons.js +131 -0
- package/dist/components/dev-console/icons.js.map +1 -0
- package/dist/components/dev-console/icons.mjs +16 -0
- package/dist/components/dev-console/icons.mjs.map +1 -0
- package/dist/components/error-boundary/error-boundary.js +6 -2
- package/dist/components/error-boundary/error-boundary.js.map +1 -1
- package/dist/components/error-boundary/error-boundary.mjs +2 -2
- package/dist/components/index.js +1052 -72
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -3
- package/dist/components/usage-banner.d.ts +2 -1
- package/dist/components/usage-banner.js +6 -2
- package/dist/components/usage-banner.js.map +1 -1
- package/dist/components/usage-banner.mjs +1 -1
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.js +65 -31
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +14 -11
- package/dist/hooks/use-chat.d.ts +1 -0
- package/dist/hooks/use-chat.js +5 -4
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +1 -1
- package/dist/hooks/use-coagent.d.ts +1 -1
- package/dist/hooks/use-coagent.js +25 -11
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +9 -6
- package/dist/hooks/use-copilot-chat-headless_c.d.ts +33 -0
- package/dist/hooks/{use-copilot-chat-light.js → use-copilot-chat-headless_c.js} +95 -24
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -0
- package/dist/hooks/{use-copilot-chat-light.mjs → use-copilot-chat-headless_c.mjs} +15 -9
- package/dist/hooks/use-copilot-chat-headless_c.mjs.map +1 -0
- package/dist/hooks/use-copilot-chat.d.ts +85 -4
- package/dist/hooks/use-copilot-chat.js +45 -66
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +9 -9
- package/dist/hooks/use-copilot-chat_internal.d.ts +102 -12
- package/dist/hooks/use-copilot-chat_internal.js +20 -6
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +8 -5
- package/dist/hooks/use-langgraph-interrupt.js +20 -6
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +9 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1210 -205
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -12
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +7 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +7 -4
- package/dist/utils/extract.js.map +1 -1
- package/dist/utils/extract.mjs +6 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +6 -3
- package/dist/utils/suggestions.js.map +1 -1
- package/dist/utils/suggestions.mjs +6 -3
- package/package.json +5 -5
- package/src/components/copilot-provider/copilotkit-props.tsx +11 -2
- package/src/components/copilot-provider/copilotkit.tsx +25 -16
- package/src/components/dev-console/console-trigger.tsx +190 -0
- package/src/components/dev-console/developer-console-modal.tsx +866 -0
- package/src/components/dev-console/icons.tsx +101 -0
- package/src/components/usage-banner.tsx +8 -3
- package/src/hooks/index.ts +6 -7
- package/src/hooks/use-chat.ts +7 -3
- package/src/hooks/use-coagent.ts +6 -11
- package/src/hooks/use-copilot-chat-headless_c.ts +257 -0
- package/src/hooks/use-copilot-chat.ts +103 -154
- package/src/hooks/use-copilot-chat_internal.ts +128 -15
- package/dist/chunk-AWFAFFO5.mjs.map +0 -1
- package/dist/chunk-GRCHDHC4.mjs.map +0 -1
- package/dist/chunk-KH27ZS4Y.mjs.map +0 -1
- package/dist/chunk-MWHILKQH.mjs +0 -18
- package/dist/chunk-MWHILKQH.mjs.map +0 -1
- package/dist/chunk-PHIMGB3K.mjs.map +0 -1
- package/dist/chunk-TTI4Z6GK.mjs.map +0 -1
- package/dist/chunk-VSH4JSN3.mjs.map +0 -1
- package/dist/hooks/use-copilot-chat-light.d.ts +0 -211
- package/dist/hooks/use-copilot-chat-light.js.map +0 -1
- package/src/hooks/use-copilot-chat-light.ts +0 -219
- /package/dist/{chunk-VH45SC6Z.mjs.map → chunk-AEAS6ZRO.mjs.map} +0 -0
- /package/dist/{chunk-FTP6FDYS.mjs.map → chunk-KDE2GWEU.mjs.map} +0 -0
- /package/dist/{chunk-ZTZJIDRJ.mjs.map → chunk-N4VN2B5S.mjs.map} +0 -0
- /package/dist/{hooks/use-copilot-chat-light.mjs.map → components/dev-console/console-trigger.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
-
## 0.0.0-fix-
|
|
3
|
+
## 0.0.0-fix-runtime-reorder-and-validate-tool-20250812201140
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- db5bbda: - fix: allow disabling of default cpk system message
|
|
8
|
+
- chore: set up direct fastapi usage on coagents starter poetry demo
|
|
9
|
+
- @copilotkit/runtime-client-gql@0.0.0-fix-runtime-reorder-and-validate-tool-20250812201140
|
|
10
|
+
- @copilotkit/shared@0.0.0-fix-runtime-reorder-and-validate-tool-20250812201140
|
|
11
|
+
|
|
12
|
+
## 1.10.2-next.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- db5bbda: - fix: allow disabling of default cpk system message
|
|
17
|
+
- chore: set up direct fastapi usage on coagents starter poetry demo
|
|
18
|
+
- @copilotkit/runtime-client-gql@1.10.2-next.0
|
|
19
|
+
- @copilotkit/shared@1.10.2-next.0
|
|
20
|
+
|
|
21
|
+
## 1.10.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [76e2603]
|
|
26
|
+
- Updated dependencies [7bf9dfa]
|
|
27
|
+
- @copilotkit/runtime-client-gql@1.10.1
|
|
28
|
+
- @copilotkit/shared@1.10.1
|
|
29
|
+
|
|
30
|
+
## 1.10.1-next.2
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- @copilotkit/runtime-client-gql@1.10.1-next.2
|
|
35
|
+
- @copilotkit/shared@1.10.1-next.2
|
|
36
|
+
|
|
37
|
+
## 1.10.1-next.1
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [76e2603]
|
|
42
|
+
- @copilotkit/runtime-client-gql@1.10.1-next.1
|
|
43
|
+
- @copilotkit/shared@1.10.1-next.1
|
|
44
|
+
|
|
45
|
+
## 1.10.1-next.0
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [7bf9dfa]
|
|
50
|
+
- @copilotkit/runtime-client-gql@1.10.1-next.0
|
|
51
|
+
- @copilotkit/shared@1.10.1-next.0
|
|
52
|
+
|
|
53
|
+
## 1.10.0
|
|
4
54
|
|
|
5
55
|
### Minor Changes
|
|
6
56
|
|
|
@@ -26,11 +76,90 @@
|
|
|
26
76
|
### Patch Changes
|
|
27
77
|
|
|
28
78
|
- 967d0ab: - refactor(chat): separate useCopilotChat into internal implementation and public API
|
|
79
|
+
- 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
|
|
80
|
+
|
|
81
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
82
|
+
|
|
83
|
+
- fix: more fixes addressing breaking changes in new Headless UI
|
|
84
|
+
|
|
85
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
86
|
+
|
|
87
|
+
- chore: address linting issues
|
|
88
|
+
|
|
89
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
90
|
+
|
|
91
|
+
- chore: fixing branding and docs
|
|
92
|
+
|
|
93
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
94
|
+
|
|
95
|
+
- chore: more docs fixing
|
|
96
|
+
|
|
97
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
98
|
+
|
|
29
99
|
- 6de24ce: - fix rerender issues by moving suggestions to the messages context
|
|
100
|
+
- b64555d: - feat: adds dev console
|
|
30
101
|
- Updated dependencies [a8c0263]
|
|
31
102
|
- Updated dependencies [8674da1]
|
|
32
|
-
|
|
33
|
-
- @copilotkit/
|
|
103
|
+
- Updated dependencies [6d1de58]
|
|
104
|
+
- @copilotkit/shared@1.10.0
|
|
105
|
+
- @copilotkit/runtime-client-gql@1.10.0
|
|
106
|
+
|
|
107
|
+
## 1.10.0-next.13
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- @copilotkit/runtime-client-gql@1.10.0-next.13
|
|
112
|
+
- @copilotkit/shared@1.10.0-next.13
|
|
113
|
+
|
|
114
|
+
## 1.10.0-next.12
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- b64555d: - feat: adds dev console
|
|
119
|
+
- @copilotkit/runtime-client-gql@1.10.0-next.12
|
|
120
|
+
- @copilotkit/shared@1.10.0-next.12
|
|
121
|
+
|
|
122
|
+
## 1.10.0-next.11
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- @copilotkit/runtime-client-gql@1.10.0-next.11
|
|
127
|
+
- @copilotkit/shared@1.10.0-next.11
|
|
128
|
+
|
|
129
|
+
## 1.10.0-next.10
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
|
|
134
|
+
|
|
135
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
136
|
+
|
|
137
|
+
- fix: more fixes addressing breaking changes in new Headless UI
|
|
138
|
+
|
|
139
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
140
|
+
|
|
141
|
+
- chore: address linting issues
|
|
142
|
+
|
|
143
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
144
|
+
|
|
145
|
+
- chore: fixing branding and docs
|
|
146
|
+
|
|
147
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
148
|
+
|
|
149
|
+
- chore: more docs fixing
|
|
150
|
+
|
|
151
|
+
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
|
|
152
|
+
|
|
153
|
+
- Updated dependencies [6d1de58]
|
|
154
|
+
- @copilotkit/shared@1.10.0-next.10
|
|
155
|
+
- @copilotkit/runtime-client-gql@1.10.0-next.10
|
|
156
|
+
|
|
157
|
+
## 1.10.0-next.9
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- @copilotkit/runtime-client-gql@1.10.0-next.9
|
|
162
|
+
- @copilotkit/shared@1.10.0-next.9
|
|
34
163
|
|
|
35
164
|
## 1.10.0-next.8
|
|
36
165
|
|
|
@@ -183,8 +183,12 @@ var getErrorActions = (error) => {
|
|
|
183
183
|
case CopilotKitErrorCode.MISSING_PUBLIC_API_KEY_ERROR:
|
|
184
184
|
return {
|
|
185
185
|
primary: {
|
|
186
|
-
label: "
|
|
187
|
-
onClick: () => window.open(
|
|
186
|
+
label: "Show me how",
|
|
187
|
+
onClick: () => window.open(
|
|
188
|
+
"https://docs.copilotkit.ai/premium#how-do-i-get-access-to-premium-features",
|
|
189
|
+
"_blank",
|
|
190
|
+
"noopener,noreferrer"
|
|
191
|
+
)
|
|
188
192
|
}
|
|
189
193
|
};
|
|
190
194
|
case CopilotKitErrorCode.UPGRADE_REQUIRED_ERROR:
|
|
@@ -218,4 +222,4 @@ export {
|
|
|
218
222
|
getErrorActions,
|
|
219
223
|
renderCopilotKitUsage
|
|
220
224
|
};
|
|
221
|
-
//# sourceMappingURL=chunk-
|
|
225
|
+
//# sourceMappingURL=chunk-6ZLPNY7X.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/usage-banner.tsx"],"sourcesContent":["import {\n Severity,\n CopilotKitError,\n ErrorVisibility,\n CopilotKitErrorCode,\n} from \"@copilotkit/shared\";\nimport React from \"react\";\n\ninterface UsageBannerProps {\n severity?: Severity;\n message?: string | React.ReactNode;\n onClose?: () => void;\n actions?: {\n primary?: {\n label: string;\n onClick: () => void;\n };\n secondary?: {\n label: string;\n onClick: () => void;\n };\n };\n}\n\nexport function UsageBanner({\n severity = Severity.CRITICAL,\n message = \"\",\n onClose,\n actions,\n}: UsageBannerProps) {\n if (!message || !severity) {\n return null;\n }\n\n const themes = {\n [Severity.INFO]: {\n bg: \"#f8fafc\",\n border: \"#e2e8f0\",\n text: \"#475569\",\n accent: \"#3b82f6\",\n },\n [Severity.WARNING]: {\n bg: \"#fffbeb\",\n border: \"#fbbf24\",\n text: \"#92400e\",\n accent: \"#f59e0b\",\n },\n [Severity.CRITICAL]: {\n bg: \"#fef2f2\",\n border: \"#fecaca\",\n text: \"#dc2626\",\n accent: \"#ef4444\",\n },\n };\n\n const theme = themes[severity];\n\n return (\n <>\n <style>\n {`\n @keyframes slideUp {\n from { opacity: 0; transform: translateX(-50%) translateY(8px); }\n to { opacity: 1; transform: translateX(-50%) translateY(0); }\n }\n \n .usage-banner {\n position: fixed;\n bottom: 24px;\n left: 50%;\n transform: translateX(-50%);\n width: min(600px, calc(100vw - 32px));\n z-index: 10000;\n animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);\n }\n \n .banner-content {\n background: linear-gradient(135deg, ${theme.bg} 0%, ${theme.bg}f5 100%);\n border: 1px solid ${theme.border};\n border-radius: 12px;\n padding: 18px 20px;\n box-shadow: \n 0 4px 24px rgba(0, 0, 0, 0.08),\n 0 2px 8px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.7);\n display: flex;\n align-items: center;\n gap: 16px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;\n backdrop-filter: blur(12px);\n position: relative;\n overflow: hidden;\n }\n \n .banner-content::before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 1px;\n background: linear-gradient(90deg, transparent, ${theme.accent}40, transparent);\n }\n \n .banner-message {\n color: ${theme.text};\n font-size: 14px;\n line-height: 1.5;\n font-weight: 500;\n flex: 1;\n letter-spacing: -0.01em;\n }\n \n .close-btn {\n background: rgba(0, 0, 0, 0.05);\n border: none;\n color: ${theme.text};\n cursor: pointer;\n padding: 0;\n border-radius: 6px;\n opacity: 0.6;\n transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);\n font-size: 14px;\n line-height: 1;\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .close-btn:hover {\n opacity: 1;\n background: rgba(0, 0, 0, 0.08);\n transform: scale(1.05);\n }\n \n .btn-primary {\n background: linear-gradient(135deg, ${theme.accent} 0%, ${theme.accent}e6 100%);\n color: white;\n border: none;\n border-radius: 8px;\n padding: 10px 18px;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);\n font-family: inherit;\n flex-shrink: 0;\n box-shadow: \n 0 2px 8px ${theme.accent}30,\n inset 0 1px 0 rgba(255, 255, 255, 0.2);\n letter-spacing: -0.01em;\n }\n \n .btn-primary:hover {\n transform: translateY(-1px) scale(1.02);\n box-shadow: \n 0 4px 12px ${theme.accent}40,\n inset 0 1px 0 rgba(255, 255, 255, 0.25);\n }\n \n .btn-primary:active {\n transform: translateY(0) scale(0.98);\n transition: all 0.08s cubic-bezier(0.16, 1, 0.3, 1);\n }\n \n @media (max-width: 640px) {\n .usage-banner {\n width: calc(100vw - 24px);\n }\n \n .banner-content {\n padding: 16px;\n gap: 12px;\n }\n \n .banner-message {\n font-size: 13px;\n line-height: 1.45;\n }\n \n .btn-primary {\n padding: 8px 14px;\n font-size: 12px;\n }\n \n .close-btn {\n width: 22px;\n height: 22px;\n font-size: 12px;\n }\n }\n `}\n </style>\n\n <div className=\"usage-banner\">\n <div className=\"banner-content\">\n <div className=\"banner-message\">{message}</div>\n {actions?.primary && (\n <button className=\"btn-primary\" onClick={actions.primary.onClick}>\n {actions.primary.label}\n </button>\n )}\n {onClose && (\n <button className=\"close-btn\" onClick={onClose} title=\"Close\">\n ×\n </button>\n )}\n </div>\n </div>\n </>\n );\n}\n\n// Get action button based on error type\nexport const getErrorActions = (error: CopilotKitError) => {\n switch (error.code) {\n case CopilotKitErrorCode.MISSING_PUBLIC_API_KEY_ERROR:\n return {\n primary: {\n label: \"Show me how\",\n onClick: () =>\n window.open(\n \"https://docs.copilotkit.ai/premium#how-do-i-get-access-to-premium-features\",\n \"_blank\",\n \"noopener,noreferrer\",\n ),\n },\n };\n case CopilotKitErrorCode.UPGRADE_REQUIRED_ERROR:\n return {\n primary: {\n label: \"Upgrade\",\n onClick: () =>\n window.open(\"https://cloud.copilotkit.ai\", \"_blank\", \"noopener,noreferrer\"),\n },\n };\n default:\n return undefined;\n }\n};\n\nexport function renderCopilotKitUsage(error: CopilotKitError, onClose?: () => void) {\n // Route based on error visibility level\n if (error.visibility !== ErrorVisibility.BANNER) {\n return null;\n }\n\n return (\n <UsageBanner\n severity={error.severity || Severity.CRITICAL}\n message={error.message}\n onClose={onClose}\n actions={getErrorActions(error)}\n />\n );\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,OACK;AAqDH,mBACE,KA2IE,YA5IJ;AAlCG,SAAS,YAAY;AAAA,EAC1B,WAAW,SAAS;AAAA,EACpB,UAAU;AAAA,EACV;AAAA,EACA;AACF,GAAqB;AACnB,MAAI,CAAC,WAAW,CAAC,UAAU;AACzB,WAAO;AAAA,EACT;AAEA,QAAM,SAAS;AAAA,IACb,CAAC,SAAS,IAAI,GAAG;AAAA,MACf,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,CAAC,SAAS,OAAO,GAAG;AAAA,MAClB,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,IACA,CAAC,SAAS,QAAQ,GAAG;AAAA,MACnB,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,QAAQ;AAAA,IACV;AAAA,EACF;AAEA,QAAM,QAAQ,OAAO,QAAQ;AAE7B,SACE,iCACE;AAAA,wBAAC,WACE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kDAiByC,MAAM,UAAU,MAAM;AAAA,gCACxC,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8DAuBwB,MAAM;AAAA;AAAA;AAAA;AAAA,qBAI/C,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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