@anvia/react-ui 1.1.2 → 1.1.4

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.
@@ -1,7 +1,7 @@
1
- import { C as ChatController } from '../chat-tfA570mg.js';
2
- export { a as ChatProvider, b as ChatProviderProps, u as useChatContext } from '../chat-tfA570mg.js';
3
- import { d as ComposerEntity, g as ComposerQuote, h as ComposerTriggerDefinition, l as ComposerTriggerState, i as ComposerTriggerItem } from '../composer-CigccTLT.js';
4
- export { C as ComposerAttachmentInput, a as ComposerAttachmentsUpdate, b as ComposerContextValue, c as ComposerEntitiesUpdate, e as ComposerEntityData, f as ComposerMessageMetadata, j as ComposerTriggerItems, k as ComposerTriggerItemsArgs, m as ComposerTriggerStateUpdate, u as useComposer } from '../composer-CigccTLT.js';
1
+ import { C as ChatController } from '../chat-PSj1Fo4W.js';
2
+ export { a as ChatProvider, b as ChatProviderProps, u as useChatContext } from '../chat-PSj1Fo4W.js';
3
+ import { d as ComposerEntity, g as ComposerQuote, h as ComposerTriggerDefinition, l as ComposerTriggerState, i as ComposerTriggerItem } from '../composer-6iCSIq6L.js';
4
+ export { C as ComposerAttachmentInput, a as ComposerAttachmentsUpdate, b as ComposerContextValue, c as ComposerEntitiesUpdate, e as ComposerEntityData, f as ComposerMessageMetadata, j as ComposerTriggerItems, k as ComposerTriggerItemsArgs, m as ComposerTriggerStateUpdate, u as useComposer } from '../composer-6iCSIq6L.js';
5
5
  export { T as ThreadContextValue, u as useThread } from '../thread-Bz6-1zaJ.js';
6
6
  import * as react from 'react';
7
7
  import { ReactNode } from 'react';
@@ -3,10 +3,12 @@ import { UseChatResult } from '@anvia/react';
3
3
  import { ReactNode, ReactElement } from 'react';
4
4
 
5
5
  type JsonPrimitive = string | number | boolean | null;
6
+ /** Any JSON-compatible value: primitives, objects, or readonly arrays of JSON values. */
6
7
  type JsonValue = JsonPrimitive | JsonObject | readonly JsonValue[];
7
8
  type JsonObject = {
8
9
  [key: string]: JsonValue;
9
10
  };
11
+ /** Answer to one question asked by a tool suspended on a human interaction. */
10
12
  type ToolQuestionAnswer = Readonly<{
11
13
  questionId: string;
12
14
  value: string;
@@ -1,6 +1,6 @@
1
1
  import { CreateUIAttachment, UIAttachment, ClientMetadata } from '@anvia/client';
2
2
  import { ReactNode } from 'react';
3
- import { C as ChatController } from './chat-tfA570mg.js';
3
+ import { C as ChatController } from './chat-PSj1Fo4W.js';
4
4
 
5
5
  type ComposerEntityData = string | number | boolean | null | readonly ComposerEntityData[] | {
6
6
  [key: string]: ComposerEntityData;
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { d as ApprovalInteraction, e as QuestionInteraction } from '../human-input-D7jgYsfM.js';
4
- export { A as ApprovalContextValue, Q as QuestionContextValue, a as QuestionPromptContextValue, u as useApproval, b as useQuestion, c as useQuestionPrompt } from '../human-input-D7jgYsfM.js';
5
- import { c as useHumanInput } from '../chat-tfA570mg.js';
6
- export { u as useChatContext } from '../chat-tfA570mg.js';
3
+ import { d as ApprovalInteraction, e as QuestionInteraction } from '../human-input-CkLrZ8IC.js';
4
+ export { A as ApprovalContextValue, Q as QuestionContextValue, a as QuestionPromptContextValue, u as useApproval, b as useQuestion, c as useQuestionPrompt } from '../human-input-CkLrZ8IC.js';
5
+ import { c as useHumanInput } from '../chat-PSj1Fo4W.js';
6
+ export { u as useChatContext } from '../chat-PSj1Fo4W.js';
7
7
  import { P as PrimitiveProps } from '../render-CRKWam2v.js';
8
8
  import '@anvia/client';
9
9
  import '@anvia/react';
@@ -1,5 +1,5 @@
1
1
  import { ClientInteraction } from '@anvia/client';
2
- import { A as AgentToolApprovalRequest, d as AgentToolQuestionRequest, e as AgentQuestionAnswer, f as AgentQuestionPrompt } from './chat-tfA570mg.js';
2
+ import { A as AgentToolApprovalRequest, d as AgentToolQuestionRequest, e as AgentQuestionAnswer, f as AgentQuestionPrompt } from './chat-PSj1Fo4W.js';
3
3
 
4
4
  type ApprovalContextValue = {
5
5
  approval: ApprovalInteraction;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export { AttachmentPrimitive } from './attachment/index.js';
2
2
  export { A as AttachmentContextValue, u as useAttachment } from './attachment-mbjsroli.js';
3
- export { C as ChatController, a as ChatProvider, b as ChatProviderProps, u as useChatContext, c as useHumanInput } from './chat-tfA570mg.js';
3
+ export { C as ChatController, a as ChatProvider, b as ChatProviderProps, u as useChatContext, c as useHumanInput } from './chat-PSj1Fo4W.js';
4
4
  export { C as CompletionController, a as CompletionInputContextValue, b as CompletionProvider, c as CompletionProviderProps, u as useCompletionContext, d as useCompletionInput } from './completion-input-DHlwrhxB.js';
5
- export { C as ComposerAttachmentInput, a as ComposerAttachmentsUpdate, b as ComposerContextValue, c as ComposerEntitiesUpdate, d as ComposerEntity, e as ComposerEntityData, f as ComposerMessageMetadata, g as ComposerQuote, h as ComposerTriggerDefinition, i as ComposerTriggerItem, j as ComposerTriggerItems, k as ComposerTriggerItemsArgs, l as ComposerTriggerState, m as ComposerTriggerStateUpdate, u as useComposer } from './composer-CigccTLT.js';
6
- export { A as ApprovalContextValue, Q as QuestionContextValue, a as QuestionPromptContextValue, u as useApproval, b as useQuestion, c as useQuestionPrompt } from './human-input-D7jgYsfM.js';
5
+ export { C as ComposerAttachmentInput, a as ComposerAttachmentsUpdate, b as ComposerContextValue, c as ComposerEntitiesUpdate, d as ComposerEntity, e as ComposerEntityData, f as ComposerMessageMetadata, g as ComposerQuote, h as ComposerTriggerDefinition, i as ComposerTriggerItem, j as ComposerTriggerItems, k as ComposerTriggerItemsArgs, l as ComposerTriggerState, m as ComposerTriggerStateUpdate, u as useComposer } from './composer-6iCSIq6L.js';
6
+ export { A as ApprovalContextValue, Q as QuestionContextValue, a as QuestionPromptContextValue, u as useApproval, b as useQuestion, c as useQuestionPrompt } from './human-input-CkLrZ8IC.js';
7
7
  export { I as ImageContextValue, u as useImage } from './image-VZv6Ddsn.js';
8
8
  export { M as MessageContextValue, a as MessagePartContextValue, u as useMessage, b as useMessagePart } from './message-CNRnZQwU.js';
9
9
  export { S as SelectionToolbarContextValue, a as SelectionToolbarSelection, u as useSelectionToolbar } from './selection-toolbar-Cwjbuv5S.js';
@@ -4,8 +4,8 @@ import { UIMessagePart } from '@anvia/client';
4
4
  import { StreamSmoothingLifecycle } from '@anvia/react';
5
5
  import * as react from 'react';
6
6
  import { HTMLAttributes } from 'react';
7
- export { u as useChatContext } from '../chat-tfA570mg.js';
8
- import { d as ComposerEntity } from '../composer-CigccTLT.js';
7
+ export { u as useChatContext } from '../chat-PSj1Fo4W.js';
8
+ import { d as ComposerEntity } from '../composer-6iCSIq6L.js';
9
9
  export { M as MessageContextValue, a as MessagePartContextValue, u as useMessage, b as useMessagePart } from '../message-CNRnZQwU.js';
10
10
  import { P as PrimitiveProps } from '../render-CRKWam2v.js';
11
11
 
package/dist/shared.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { A as AttachmentContextValue, u as useAttachment } from './attachment-mbjsroli.js';
2
- export { C as ChatController, a as ChatProvider, b as ChatProviderProps, u as useChatContext, c as useHumanInput } from './chat-tfA570mg.js';
2
+ export { C as ChatController, a as ChatProvider, b as ChatProviderProps, u as useChatContext, c as useHumanInput } from './chat-PSj1Fo4W.js';
3
3
  export { C as CompletionController, a as CompletionInputContextValue, b as CompletionProvider, c as CompletionProviderProps, u as useCompletionContext, d as useCompletionInput } from './completion-input-DHlwrhxB.js';
4
- export { C as ComposerAttachmentInput, a as ComposerAttachmentsUpdate, b as ComposerContextValue, c as ComposerEntitiesUpdate, d as ComposerEntity, e as ComposerEntityData, f as ComposerMessageMetadata, g as ComposerQuote, h as ComposerTriggerDefinition, i as ComposerTriggerItem, j as ComposerTriggerItems, k as ComposerTriggerItemsArgs, l as ComposerTriggerState, m as ComposerTriggerStateUpdate, u as useComposer } from './composer-CigccTLT.js';
5
- export { A as ApprovalContextValue, Q as QuestionContextValue, a as QuestionPromptContextValue, u as useApproval, b as useQuestion, c as useQuestionPrompt } from './human-input-D7jgYsfM.js';
4
+ export { C as ComposerAttachmentInput, a as ComposerAttachmentsUpdate, b as ComposerContextValue, c as ComposerEntitiesUpdate, d as ComposerEntity, e as ComposerEntityData, f as ComposerMessageMetadata, g as ComposerQuote, h as ComposerTriggerDefinition, i as ComposerTriggerItem, j as ComposerTriggerItems, k as ComposerTriggerItemsArgs, l as ComposerTriggerState, m as ComposerTriggerStateUpdate, u as useComposer } from './composer-6iCSIq6L.js';
5
+ export { A as ApprovalContextValue, Q as QuestionContextValue, a as QuestionPromptContextValue, u as useApproval, b as useQuestion, c as useQuestionPrompt } from './human-input-CkLrZ8IC.js';
6
6
  export { I as ImageContextValue, u as useImage } from './image-VZv6Ddsn.js';
7
7
  export { M as MessageContextValue, a as MessagePartContextValue, u as useMessage, b as useMessagePart } from './message-CNRnZQwU.js';
8
8
  export { S as SelectionToolbarContextValue, a as SelectionToolbarSelection, u as useSelectionToolbar } from './selection-toolbar-Cwjbuv5S.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvia/react-ui",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Composable, headless React UI primitives for Anvia applications.",
5
5
  "author": "anvia",
6
6
  "license": "MIT",
@@ -80,16 +80,16 @@
80
80
  "@tiptap/pm": "^3.31.3",
81
81
  "@tiptap/react": "^3.31.3",
82
82
  "@tiptap/suggestion": "^3.31.3",
83
- "marked": "^18.0.11",
83
+ "marked": "^18.0.13",
84
84
  "react-markdown": "^10.1.0",
85
85
  "remark-gfm": "^4.0.1"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "react": ">=18",
89
89
  "react-dom": ">=18",
90
- "@anvia/client": "1.1.2",
91
- "@anvia/react": "1.1.2",
92
- "@anvia/graph": "1.1.2"
90
+ "@anvia/client": "^1.2.0",
91
+ "@anvia/graph": "^1.1.4",
92
+ "@anvia/react": "^1.1.3"
93
93
  },
94
94
  "peerDependenciesMeta": {
95
95
  "@anvia/graph": {
@@ -103,14 +103,14 @@
103
103
  "@types/react-dom": "^19.2.3",
104
104
  "@vitest/coverage-v8": "4.1.5",
105
105
  "happy-dom": "20.9.0",
106
- "react": "19.2.6",
107
- "react-dom": "19.2.6",
106
+ "react": "19.3.0",
107
+ "react-dom": "19.3.0",
108
108
  "tsup": "^8.5.0",
109
109
  "typescript": "^5.9.3",
110
110
  "vitest": "^4.0.8",
111
- "@anvia/client": "1.1.2",
112
- "@anvia/react": "1.1.2",
113
- "@anvia/graph": "1.1.2"
111
+ "@anvia/graph": "1.1.4",
112
+ "@anvia/client": "1.2.0",
113
+ "@anvia/react": "1.1.3"
114
114
  },
115
115
  "scripts": {
116
116
  "build": "tsup src/index.ts src/attachment/index.ts src/chat/index.ts src/completion/index.ts src/graph-explorer/index.ts src/human-input/index.ts src/image/index.ts src/message/index.ts src/selection-toolbar/index.ts src/shared.ts src/stream/index.ts src/thread-list/index.ts --format esm --dts --sourcemap --clean --external react --external react-dom",