@copilotkit/react-textarea 0.0.0-main-20260220223427 → 0.0.0-main-20260402184302
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 +352 -4
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -5
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +22 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +44 -45
- package/src/components/base-copilot-textarea/base-copilot-textarea.css +5 -6
- package/src/components/copilot-textarea/copilot-textarea.tsx +3 -3
- package/src/components/hovering-toolbar/hovering-toolbar-components.tsx +3 -7
- package/src/components/hovering-toolbar/hovering-toolbar.tsx +31 -1
- package/src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.tsx +3 -0
- package/src/esm-compat.test.ts +44 -0
- package/tsconfig.json +3 -3
- /package/{postcss.config.js → postcss.config.cjs} +0 -0
- /package/{tailwind.config.js → tailwind.config.cjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,357 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
-
## 0.0.0-main-
|
|
3
|
+
## 0.0.0-main-20260402184302
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1ceb963: refactor: consolidate V1/V2 packages into flat @copilotkit/\* structure
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [1ceb963]
|
|
12
|
+
- Updated dependencies [0f6a61c]
|
|
13
|
+
- Updated dependencies [1ceb963]
|
|
14
|
+
- Updated dependencies [1ceb963]
|
|
15
|
+
- Updated dependencies [1ceb963]
|
|
16
|
+
- Updated dependencies [53e5669]
|
|
17
|
+
- Updated dependencies [c341ed2]
|
|
18
|
+
- @copilotkit/react-core@0.0.0-main-20260402184302
|
|
19
|
+
- @copilotkit/runtime-client-gql@0.0.0-main-20260402184302
|
|
20
|
+
- @copilotkit/shared@0.0.0-main-20260402184302
|
|
21
|
+
|
|
22
|
+
## 1.55.0-next.8
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [0f6a61c]
|
|
27
|
+
- Updated dependencies [53e5669]
|
|
28
|
+
- @copilotkit/react-core@1.55.0-next.8
|
|
29
|
+
- @copilotkit/runtime-client-gql@1.55.0-next.8
|
|
30
|
+
- @copilotkit/shared@1.55.0-next.8
|
|
31
|
+
|
|
32
|
+
## 1.55.0-next.7
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- 1ceb963: refactor: consolidate V1/V2 packages into flat @copilotkit/\* structure
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [1ceb963]
|
|
41
|
+
- @copilotkit/react-core@1.55.0-next.7
|
|
42
|
+
- @copilotkit/runtime-client-gql@1.55.0-next.7
|
|
43
|
+
- @copilotkit/shared@1.55.0-next.7
|
|
44
|
+
|
|
45
|
+
## 1.54.1-next.6
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- @copilotkit/react-core@1.54.1-next.6
|
|
50
|
+
- @copilotkit/runtime-client-gql@1.54.1-next.6
|
|
51
|
+
- @copilotkit/shared@1.54.1-next.6
|
|
52
|
+
|
|
53
|
+
## 1.54.1-next.5
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- @copilotkit/react-core@1.54.1-next.5
|
|
58
|
+
- @copilotkit/runtime-client-gql@1.54.1-next.5
|
|
59
|
+
- @copilotkit/shared@1.54.1-next.5
|
|
60
|
+
|
|
61
|
+
## 1.54.1-next.4
|
|
62
|
+
|
|
63
|
+
### Patch Changes
|
|
64
|
+
|
|
65
|
+
- Updated dependencies [8113dba]
|
|
66
|
+
- @copilotkit/react-core@1.54.1-next.4
|
|
67
|
+
- @copilotkit/runtime-client-gql@1.54.1-next.4
|
|
68
|
+
- @copilotkit/shared@1.54.1-next.4
|
|
69
|
+
|
|
70
|
+
## 1.54.1-next.3
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- @copilotkit/react-core@1.54.1-next.3
|
|
75
|
+
- @copilotkit/runtime-client-gql@1.54.1-next.3
|
|
76
|
+
- @copilotkit/shared@1.54.1-next.3
|
|
77
|
+
|
|
78
|
+
## 1.54.1-next.2
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- @copilotkit/react-core@1.54.1-next.2
|
|
83
|
+
- @copilotkit/runtime-client-gql@1.54.1-next.2
|
|
84
|
+
- @copilotkit/shared@1.54.1-next.2
|
|
85
|
+
|
|
86
|
+
## 1.54.1-next.1
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- @copilotkit/react-core@1.54.1-next.1
|
|
91
|
+
- @copilotkit/runtime-client-gql@1.54.1-next.1
|
|
92
|
+
- @copilotkit/shared@1.54.1-next.1
|
|
93
|
+
|
|
94
|
+
## 1.54.1-next.0
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- @copilotkit/react-core@1.54.1-next.0
|
|
99
|
+
- @copilotkit/runtime-client-gql@1.54.1-next.0
|
|
100
|
+
- @copilotkit/shared@1.54.1-next.0
|
|
101
|
+
|
|
102
|
+
## 1.54.0
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- 40c22a0: fix: restore focus to textarea when hitting Escape in CMD+K popup
|
|
107
|
+
- Updated dependencies [fa0d1cd]
|
|
108
|
+
- Updated dependencies [c80498e]
|
|
109
|
+
- Updated dependencies [af11b1e]
|
|
110
|
+
- @copilotkit/react-core@1.54.0
|
|
111
|
+
- @copilotkit/runtime-client-gql@1.54.0
|
|
112
|
+
- @copilotkit/shared@1.54.0
|
|
113
|
+
|
|
114
|
+
## 1.54.0-next.9
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- @copilotkit/react-core@1.54.0-next.9
|
|
119
|
+
- @copilotkit/runtime-client-gql@1.54.0-next.9
|
|
120
|
+
- @copilotkit/shared@1.54.0-next.9
|
|
121
|
+
|
|
122
|
+
## 1.54.0-next.8
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- @copilotkit/react-core@1.54.0-next.8
|
|
127
|
+
- @copilotkit/runtime-client-gql@1.54.0-next.8
|
|
128
|
+
- @copilotkit/shared@1.54.0-next.8
|
|
129
|
+
|
|
130
|
+
## 1.54.0-next.7
|
|
131
|
+
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- @copilotkit/react-core@1.54.0-next.7
|
|
135
|
+
- @copilotkit/runtime-client-gql@1.54.0-next.7
|
|
136
|
+
- @copilotkit/shared@1.54.0-next.7
|
|
137
|
+
|
|
138
|
+
## 1.54.0-next.6
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- Updated dependencies [c80498e]
|
|
143
|
+
- @copilotkit/react-core@1.54.0-next.6
|
|
144
|
+
- @copilotkit/runtime-client-gql@1.54.0-next.6
|
|
145
|
+
- @copilotkit/shared@1.54.0-next.6
|
|
146
|
+
|
|
147
|
+
## 1.54.0-next.5
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- @copilotkit/react-core@1.54.0-next.5
|
|
152
|
+
- @copilotkit/runtime-client-gql@1.54.0-next.5
|
|
153
|
+
- @copilotkit/shared@1.54.0-next.5
|
|
154
|
+
|
|
155
|
+
## 1.54.0-next.4
|
|
4
156
|
|
|
5
157
|
### Patch Changes
|
|
6
158
|
|
|
159
|
+
- Updated dependencies [af11b1e]
|
|
160
|
+
- @copilotkit/react-core@1.54.0-next.4
|
|
161
|
+
- @copilotkit/runtime-client-gql@1.54.0-next.4
|
|
162
|
+
- @copilotkit/shared@1.54.0-next.4
|
|
163
|
+
|
|
164
|
+
## 1.54.0-next.3
|
|
165
|
+
|
|
166
|
+
### Patch Changes
|
|
167
|
+
|
|
168
|
+
- Updated dependencies [fa0d1cd]
|
|
169
|
+
- @copilotkit/react-core@1.54.0-next.3
|
|
170
|
+
- @copilotkit/runtime-client-gql@1.54.0-next.3
|
|
171
|
+
- @copilotkit/shared@1.54.0-next.3
|
|
172
|
+
|
|
173
|
+
## 1.53.1-next.2
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- @copilotkit/react-core@1.53.1-next.2
|
|
178
|
+
- @copilotkit/runtime-client-gql@1.53.1-next.2
|
|
179
|
+
- @copilotkit/shared@1.53.1-next.2
|
|
180
|
+
|
|
181
|
+
## 1.53.1-next.1
|
|
182
|
+
|
|
183
|
+
### Patch Changes
|
|
184
|
+
|
|
185
|
+
- 40c22a0: fix: restore focus to textarea when hitting Escape in CMD+K popup
|
|
186
|
+
- @copilotkit/react-core@1.53.1-next.1
|
|
187
|
+
- @copilotkit/runtime-client-gql@1.53.1-next.1
|
|
188
|
+
- @copilotkit/shared@1.53.1-next.1
|
|
189
|
+
|
|
190
|
+
## 1.53.1-next.0
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- @copilotkit/react-core@1.53.1-next.0
|
|
195
|
+
- @copilotkit/runtime-client-gql@1.53.1-next.0
|
|
196
|
+
- @copilotkit/shared@1.53.1-next.0
|
|
197
|
+
|
|
198
|
+
## 1.53.0
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- Updated dependencies [1510f64]
|
|
203
|
+
- Updated dependencies [f1eaa4c]
|
|
204
|
+
- Updated dependencies [bf1fc6f]
|
|
205
|
+
- Updated dependencies [ac31331]
|
|
206
|
+
- @copilotkit/react-core@1.53.0
|
|
207
|
+
- @copilotkit/shared@1.53.0
|
|
208
|
+
- @copilotkit/runtime-client-gql@1.53.0
|
|
209
|
+
|
|
210
|
+
## 1.53.0-next.6
|
|
211
|
+
|
|
212
|
+
### Patch Changes
|
|
213
|
+
|
|
214
|
+
- @copilotkit/react-core@1.53.0-next.6
|
|
215
|
+
- @copilotkit/runtime-client-gql@1.53.0-next.6
|
|
216
|
+
- @copilotkit/shared@1.53.0-next.6
|
|
217
|
+
|
|
218
|
+
## 1.53.0-next.5
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- @copilotkit/react-core@1.53.0-next.5
|
|
223
|
+
- @copilotkit/runtime-client-gql@1.53.0-next.5
|
|
224
|
+
- @copilotkit/shared@1.53.0-next.5
|
|
225
|
+
|
|
226
|
+
## 1.52.2-next.4
|
|
227
|
+
|
|
228
|
+
### Patch Changes
|
|
229
|
+
|
|
230
|
+
- Updated dependencies [ac31331]
|
|
231
|
+
- @copilotkit/react-core@1.52.2-next.4
|
|
232
|
+
- @copilotkit/runtime-client-gql@1.52.2-next.4
|
|
233
|
+
- @copilotkit/shared@1.52.2-next.4
|
|
234
|
+
|
|
235
|
+
## 1.52.2-next.3
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [1510f64]
|
|
240
|
+
- @copilotkit/react-core@1.52.2-next.3
|
|
241
|
+
- @copilotkit/shared@1.52.2-next.3
|
|
242
|
+
- @copilotkit/runtime-client-gql@1.52.2-next.3
|
|
243
|
+
|
|
244
|
+
## 1.52.2-next.2
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- @copilotkit/runtime-client-gql@1.52.2-next.2
|
|
249
|
+
- @copilotkit/react-core@1.52.2-next.2
|
|
250
|
+
- @copilotkit/shared@1.52.2-next.2
|
|
251
|
+
|
|
252
|
+
## 1.52.2-next.1
|
|
253
|
+
|
|
254
|
+
### Patch Changes
|
|
255
|
+
|
|
256
|
+
- Updated dependencies [bf1fc6f]
|
|
257
|
+
- @copilotkit/shared@1.52.2-next.1
|
|
258
|
+
- @copilotkit/runtime-client-gql@1.52.2-next.1
|
|
259
|
+
- @copilotkit/react-core@1.52.2-next.1
|
|
260
|
+
|
|
261
|
+
## 1.52.2-next.0
|
|
262
|
+
|
|
263
|
+
### Patch Changes
|
|
264
|
+
|
|
265
|
+
- Updated dependencies [f1eaa4c]
|
|
266
|
+
- @copilotkit/react-core@1.52.2-next.0
|
|
267
|
+
- @copilotkit/runtime-client-gql@1.52.2-next.0
|
|
268
|
+
- @copilotkit/shared@1.52.2-next.0
|
|
269
|
+
|
|
270
|
+
## 1.52.1
|
|
271
|
+
|
|
272
|
+
### Patch Changes
|
|
273
|
+
|
|
274
|
+
- bbdf67d: fix(css): address imcompat with CJS
|
|
275
|
+
- Updated dependencies [b555ac4]
|
|
276
|
+
- @copilotkit/react-core@1.52.1
|
|
277
|
+
- @copilotkit/runtime-client-gql@1.52.1
|
|
278
|
+
- @copilotkit/shared@1.52.1
|
|
279
|
+
|
|
280
|
+
## 1.52.1-next.1
|
|
281
|
+
|
|
282
|
+
### Patch Changes
|
|
283
|
+
|
|
284
|
+
- Updated dependencies [b555ac4]
|
|
285
|
+
- @copilotkit/react-core@1.52.1-next.1
|
|
286
|
+
- @copilotkit/runtime-client-gql@1.52.1-next.1
|
|
287
|
+
- @copilotkit/shared@1.52.1-next.1
|
|
288
|
+
|
|
289
|
+
## 1.52.1-next.0
|
|
290
|
+
|
|
291
|
+
### Patch Changes
|
|
292
|
+
|
|
293
|
+
- bbdf67d: fix(css): address imcompat with CJS
|
|
294
|
+
- @copilotkit/react-core@1.52.1-next.0
|
|
295
|
+
- @copilotkit/runtime-client-gql@1.52.1-next.0
|
|
296
|
+
- @copilotkit/shared@1.52.1-next.0
|
|
297
|
+
|
|
298
|
+
## 1.52.0
|
|
299
|
+
|
|
300
|
+
### Patch Changes
|
|
301
|
+
|
|
302
|
+
- Updated dependencies [6dd6c84]
|
|
303
|
+
- Updated dependencies [d77f347]
|
|
304
|
+
- Updated dependencies [2007f8b]
|
|
7
305
|
- Updated dependencies [ef0f539]
|
|
8
306
|
- Updated dependencies [412965a]
|
|
9
|
-
|
|
10
|
-
- @copilotkit/
|
|
11
|
-
- @copilotkit/
|
|
307
|
+
- Updated dependencies [5f941db]
|
|
308
|
+
- @copilotkit/react-core@1.52.0
|
|
309
|
+
- @copilotkit/shared@1.52.0
|
|
310
|
+
- @copilotkit/runtime-client-gql@1.52.0
|
|
311
|
+
|
|
312
|
+
## 1.52.0-next.8
|
|
313
|
+
|
|
314
|
+
### Patch Changes
|
|
315
|
+
|
|
316
|
+
- @copilotkit/react-core@1.52.0-next.8
|
|
317
|
+
- @copilotkit/runtime-client-gql@1.52.0-next.8
|
|
318
|
+
- @copilotkit/shared@1.52.0-next.8
|
|
319
|
+
|
|
320
|
+
## 1.52.0-next.7
|
|
321
|
+
|
|
322
|
+
### Patch Changes
|
|
323
|
+
|
|
324
|
+
- Updated dependencies [d77f347]
|
|
325
|
+
- @copilotkit/react-core@1.52.0-next.7
|
|
326
|
+
- @copilotkit/runtime-client-gql@1.52.0-next.7
|
|
327
|
+
- @copilotkit/shared@1.52.0-next.7
|
|
328
|
+
|
|
329
|
+
## 1.52.0-next.6
|
|
330
|
+
|
|
331
|
+
### Patch Changes
|
|
332
|
+
|
|
333
|
+
- Updated dependencies [2007f8b]
|
|
334
|
+
- Updated dependencies [5f941db]
|
|
335
|
+
- @copilotkit/react-core@1.52.0-next.6
|
|
336
|
+
- @copilotkit/runtime-client-gql@1.52.0-next.6
|
|
337
|
+
- @copilotkit/shared@1.52.0-next.6
|
|
338
|
+
|
|
339
|
+
## 1.52.0-next.5
|
|
340
|
+
|
|
341
|
+
### Patch Changes
|
|
342
|
+
|
|
343
|
+
- Updated dependencies [6dd6c84]
|
|
344
|
+
- @copilotkit/react-core@1.52.0-next.5
|
|
345
|
+
- @copilotkit/runtime-client-gql@1.52.0-next.5
|
|
346
|
+
- @copilotkit/shared@1.52.0-next.5
|
|
347
|
+
|
|
348
|
+
## 1.51.5-next.4
|
|
349
|
+
|
|
350
|
+
### Patch Changes
|
|
351
|
+
|
|
352
|
+
- @copilotkit/react-core@1.51.5-next.4
|
|
353
|
+
- @copilotkit/runtime-client-gql@1.51.5-next.4
|
|
354
|
+
- @copilotkit/shared@1.51.5-next.4
|
|
12
355
|
|
|
13
356
|
## 1.51.5-next.3
|
|
14
357
|
|
|
@@ -2997,6 +3340,7 @@
|
|
|
2997
3340
|
- e16d95e: New prerelease
|
|
2998
3341
|
- 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
|
|
2999
3342
|
- CopilotKit Core:
|
|
3343
|
+
|
|
3000
3344
|
- Improved error messages and overall logs
|
|
3001
3345
|
- `useCopilotAction.renderAndAwait` renamed to `.renderAndAwaitForResponse` (backwards compatible, will be deprecated in the future)
|
|
3002
3346
|
- Improved scrolling behavior. It is now possible to scroll up during LLM response generation
|
|
@@ -3004,6 +3348,7 @@
|
|
|
3004
3348
|
- Updated interfaces for better developer ergonomics
|
|
3005
3349
|
|
|
3006
3350
|
CoAgents:
|
|
3351
|
+
|
|
3007
3352
|
- Renamed `remoteActions` to `remoteEndpoints` (backwards compatible, will be deprecated in the future)
|
|
3008
3353
|
- Support for LangGraph Platform in Remote Endpoints
|
|
3009
3354
|
- LangGraph JS Support for CoAgents (locally via `langgraph dev`, `langgraph up` or deployed to LangGraph Platform)
|
|
@@ -3011,6 +3356,7 @@
|
|
|
3011
3356
|
- Enhanced state management and message handling
|
|
3012
3357
|
|
|
3013
3358
|
CopilotKid Back-end SDK:
|
|
3359
|
+
|
|
3014
3360
|
- Released a whole-new `@copilotkit/sdk-js` for building agents with LangGraph JS Support
|
|
3015
3361
|
|
|
3016
3362
|
- 8d0144f: bump
|
|
@@ -3413,6 +3759,7 @@ CopilotKid Back-end SDK:
|
|
|
3413
3759
|
### Patch Changes
|
|
3414
3760
|
|
|
3415
3761
|
- inject minified css in bundle
|
|
3762
|
+
|
|
3416
3763
|
- removes the need to import `styles.css` manually
|
|
3417
3764
|
- empty `styles.css` included in the build for backwards compatibility
|
|
3418
3765
|
- uses tsup's `injectStyles` with `postcss` to bundle and minify the CSS, then inject it as a style tag
|
|
@@ -3577,6 +3924,7 @@ CopilotKid Back-end SDK:
|
|
|
3577
3924
|
### Major Changes
|
|
3578
3925
|
|
|
3579
3926
|
- b6a4b6eb: V1.0 Release Candidate
|
|
3927
|
+
|
|
3580
3928
|
- A robust new protocol between the frontend and the Copilot Runtime
|
|
3581
3929
|
- Support for Copilot Cloud
|
|
3582
3930
|
- Generative UI
|
package/dist/index.cjs
CHANGED
|
@@ -895,6 +895,9 @@ const HoveringInsertionPromptBoxCore = ({ performInsertion, state, insertionOrEd
|
|
|
895
895
|
} else if (e.key === "Enter") {
|
|
896
896
|
e.preventDefault();
|
|
897
897
|
beginGeneratingAdjustment();
|
|
898
|
+
} else if (e.key === "Escape") {
|
|
899
|
+
e.preventDefault();
|
|
900
|
+
setIsDisplayed(false);
|
|
898
901
|
}
|
|
899
902
|
},
|
|
900
903
|
placeholder,
|
|
@@ -1041,6 +1044,25 @@ const HoveringToolbar = (props) => {
|
|
|
1041
1044
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
1042
1045
|
};
|
|
1043
1046
|
}, [ref, setIsDisplayed]);
|
|
1047
|
+
(0, react.useEffect)(() => {
|
|
1048
|
+
const handleEscapeKey = (event) => {
|
|
1049
|
+
if (event.key === "Escape") {
|
|
1050
|
+
event.preventDefault();
|
|
1051
|
+
setIsDisplayed(false);
|
|
1052
|
+
try {
|
|
1053
|
+
slate_react.ReactEditor.focus(editor);
|
|
1054
|
+
} catch {}
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
if (isDisplayed) document.addEventListener("keydown", handleEscapeKey);
|
|
1058
|
+
return () => {
|
|
1059
|
+
document.removeEventListener("keydown", handleEscapeKey);
|
|
1060
|
+
};
|
|
1061
|
+
}, [
|
|
1062
|
+
isDisplayed,
|
|
1063
|
+
setIsDisplayed,
|
|
1064
|
+
editor
|
|
1065
|
+
]);
|
|
1044
1066
|
if (!isShown) return null;
|
|
1045
1067
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Portal, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
1046
1068
|
ref,
|