@copilotkit/react-core 2.0.0-rc.14 → 2.0.0-rc.16
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/dist/{MarkdownSurfaces-EGmsCZWN.cjs → MarkdownSurfaces-ChOKawIN.cjs} +52 -43
- package/dist/MarkdownSurfaces-ChOKawIN.cjs.map +1 -0
- package/dist/{MarkdownSurfaces-DKC9Eg_a.mjs → MarkdownSurfaces-DAEqIF5v.mjs} +52 -43
- package/dist/MarkdownSurfaces-DAEqIF5v.mjs.map +1 -0
- package/dist/context.cjs +6 -6
- package/dist/context.cjs.map +1 -1
- package/dist/context.mjs +6 -6
- package/dist/context.mjs.map +1 -1
- package/dist/generative-ui.cjs +6 -4
- package/dist/generative-ui.cjs.map +1 -1
- package/dist/generative-ui.mjs +6 -4
- package/dist/generative-ui.mjs.map +1 -1
- package/dist/headless.cjs +2 -2
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.mjs +2 -2
- package/dist/headless.mjs.map +1 -1
- package/dist/index.cjs +98 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +23 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +98 -40
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +167 -65
- package/dist/index.umd.js.map +1 -1
- package/package.json +9 -9
- package/dist/MarkdownSurfaces-DKC9Eg_a.mjs.map +0 -1
- package/dist/MarkdownSurfaces-EGmsCZWN.cjs.map +0 -1
package/dist/headless.mjs
CHANGED
|
@@ -1118,7 +1118,7 @@ function useInterrupt(config) {
|
|
|
1118
1118
|
try {
|
|
1119
1119
|
maybePromise = handler({
|
|
1120
1120
|
event: legacyEvent,
|
|
1121
|
-
interrupt: pending.kind === "standard" ? pending.interrupts[0] : null,
|
|
1121
|
+
interrupt: pending.kind === "standard" ? pending.interrupts[0] ?? null : null,
|
|
1122
1122
|
interrupts: pending.kind === "standard" ? [...pending.interrupts] : [],
|
|
1123
1123
|
resolve: resolveRef.current,
|
|
1124
1124
|
cancel: cancelRef.current
|
|
@@ -1147,7 +1147,7 @@ function useInterrupt(config) {
|
|
|
1147
1147
|
if (!isEnabled(legacyEvent)) return null;
|
|
1148
1148
|
return renderRef.current({
|
|
1149
1149
|
event: legacyEvent,
|
|
1150
|
-
interrupt: pending.kind === "standard" ? pending.interrupts[0] : null,
|
|
1150
|
+
interrupt: pending.kind === "standard" ? pending.interrupts[0] ?? null : null,
|
|
1151
1151
|
interrupts: pending.kind === "standard" ? [...pending.interrupts] : [],
|
|
1152
1152
|
result: handlerResult,
|
|
1153
1153
|
resolve,
|