@assistant-ui/react 0.15.34 → 0.15.35
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/primitives/actionBar/ActionBarResume.d.ts +7 -4
- package/dist/primitives/actionBar/ActionBarResume.d.ts.map +1 -1
- package/dist/primitives/actionBar/ActionBarResume.js +7 -4
- package/dist/primitives/actionBar/ActionBarResume.js.map +1 -1
- package/package.json +2 -2
- package/src/primitives/actionBar/ActionBarResume.ts +7 -4
|
@@ -6,10 +6,13 @@ export declare namespace ActionBarPrimitiveResume {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* A button that answers again in place of an assistant message whose run
|
|
9
|
-
* stopped before it
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* stopped before it wrote anything (its tab closed or lost its connection).
|
|
10
|
+
* It deletes the empty reply and its stored row, then runs again from the
|
|
11
|
+
* reply's parent, so no branch is left beside it; a runtime that cannot
|
|
12
|
+
* delete messages starts a new branch instead. It renders disabled unless the
|
|
13
|
+
* message is the last one on its branch and its run went `staleAfter`
|
|
14
|
+
* without a heartbeat. A reply that wrote content before its run stopped is a
|
|
15
|
+
* regular error, answered again with Regenerate.
|
|
13
16
|
*
|
|
14
17
|
* @example
|
|
15
18
|
* ```tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarResume.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarResume.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEvB,0CAAuC;AAGxC,QAAA,MAAM,kBAAkB,2BAIvB,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAClE;AAED
|
|
1
|
+
{"version":3,"file":"ActionBarResume.d.ts","sourceRoot":"","sources":["../../../src/primitives/actionBar/ActionBarResume.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEvB,0CAAuC;AAGxC,QAAA,MAAM,kBAAkB,2BAIvB,CAAC;AAEF,yBAAiB,wBAAwB,CAAC;IACxC,KAAY,OAAO,GAAG,mBAAmB,CAAC;IAC1C,KAAY,KAAK,GAAG,iBAAiB,CAAC,OAAO,kBAAkB,CAAC,CAAC;CAClE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB;;;;gHAGpC,CAAC"}
|
|
@@ -9,10 +9,13 @@ const useActionBarResume$1 = () => {
|
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* A button that answers again in place of an assistant message whose run
|
|
12
|
-
* stopped before it
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* stopped before it wrote anything (its tab closed or lost its connection).
|
|
13
|
+
* It deletes the empty reply and its stored row, then runs again from the
|
|
14
|
+
* reply's parent, so no branch is left beside it; a runtime that cannot
|
|
15
|
+
* delete messages starts a new branch instead. It renders disabled unless the
|
|
16
|
+
* message is the last one on its branch and its run went `staleAfter`
|
|
17
|
+
* without a heartbeat. A reply that wrote content before its run stopped is a
|
|
18
|
+
* regular error, answered again with Regenerate.
|
|
16
19
|
*
|
|
17
20
|
* @example
|
|
18
21
|
* ```tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBarResume.js","names":["ActionButtonElement","ActionButtonProps","createActionButton","useActionBarResume","useActionBarResumeBehavior","disabled","resume","ActionBarPrimitiveResume","Element","Props","useActionBarResume","useActionBarResumeBehavior"],"sources":["../../../src/primitives/actionBar/ActionBarResume.ts"],"sourcesContent":["\"use client\";\n\nimport {\n type ActionButtonElement,\n type ActionButtonProps,\n createActionButton,\n} from \"../../utils/createActionButton\";\nimport { useActionBarResume as useActionBarResumeBehavior } from \"@assistant-ui/core/react\";\n\nconst useActionBarResume = () => {\n const { disabled, resume } = useActionBarResumeBehavior();\n if (disabled) return null;\n return resume;\n};\n\nexport namespace ActionBarPrimitiveResume {\n export type Element = ActionButtonElement;\n export type Props = ActionButtonProps<typeof useActionBarResume>;\n}\n\n/**\n * A button that answers again in place of an assistant message whose run\n * stopped before it
|
|
1
|
+
{"version":3,"file":"ActionBarResume.js","names":["ActionButtonElement","ActionButtonProps","createActionButton","useActionBarResume","useActionBarResumeBehavior","disabled","resume","ActionBarPrimitiveResume","Element","Props","useActionBarResume","useActionBarResumeBehavior"],"sources":["../../../src/primitives/actionBar/ActionBarResume.ts"],"sourcesContent":["\"use client\";\n\nimport {\n type ActionButtonElement,\n type ActionButtonProps,\n createActionButton,\n} from \"../../utils/createActionButton\";\nimport { useActionBarResume as useActionBarResumeBehavior } from \"@assistant-ui/core/react\";\n\nconst useActionBarResume = () => {\n const { disabled, resume } = useActionBarResumeBehavior();\n if (disabled) return null;\n return resume;\n};\n\nexport namespace ActionBarPrimitiveResume {\n export type Element = ActionButtonElement;\n export type Props = ActionButtonProps<typeof useActionBarResume>;\n}\n\n/**\n * A button that answers again in place of an assistant message whose run\n * stopped before it wrote anything (its tab closed or lost its connection).\n * It deletes the empty reply and its stored row, then runs again from the\n * reply's parent, so no branch is left beside it; a runtime that cannot\n * delete messages starts a new branch instead. It renders disabled unless the\n * message is the last one on its branch and its run went `staleAfter`\n * without a heartbeat. A reply that wrote content before its run stopped is a\n * regular error, answered again with Regenerate.\n *\n * @example\n * ```tsx\n * <MessagePrimitive.Error>\n * <ErrorPrimitive.Root>\n * <ErrorPrimitive.Message />\n * <ActionBarPrimitive.Resume>Resume</ActionBarPrimitive.Resume>\n * </ErrorPrimitive.Root>\n * </MessagePrimitive.Error>\n * ```\n */\nexport const ActionBarPrimitiveResume = createActionButton(\n \"ActionBarPrimitive.Resume\",\n useActionBarResume,\n);\n"],"mappings":";;;;AASA,MAAMG,6BAAqB;CACzB,MAAA,EAAAE,UAAAC,WAA6BF,mBAA2B;CACxD,IAAIC,UAAQ,OAAS;CAAK,OACnBC;AAAM;;;;;;;;;;;;;;;;;;;;;AA4Bf,MAAaC,2BAA2BL,mBACtC,6BACAC,oBACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assistant-ui/react",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.35",
|
|
4
4
|
"description": "Open-source TypeScript/React library for building production-grade AI chat experiences",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
],
|
|
56
56
|
"sideEffects": false,
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@assistant-ui/core": "^0.3.
|
|
58
|
+
"@assistant-ui/core": "^0.3.35",
|
|
59
59
|
"@assistant-ui/store": "^0.3.23",
|
|
60
60
|
"@assistant-ui/tap": "^0.9.25",
|
|
61
61
|
"assistant-cloud": "^0.2.11",
|
|
@@ -20,10 +20,13 @@ export namespace ActionBarPrimitiveResume {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* A button that answers again in place of an assistant message whose run
|
|
23
|
-
* stopped before it
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* stopped before it wrote anything (its tab closed or lost its connection).
|
|
24
|
+
* It deletes the empty reply and its stored row, then runs again from the
|
|
25
|
+
* reply's parent, so no branch is left beside it; a runtime that cannot
|
|
26
|
+
* delete messages starts a new branch instead. It renders disabled unless the
|
|
27
|
+
* message is the last one on its branch and its run went `staleAfter`
|
|
28
|
+
* without a heartbeat. A reply that wrote content before its run stopped is a
|
|
29
|
+
* regular error, answered again with Regenerate.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* ```tsx
|