@camunda/copilot-chat 0.0.0-alpha4 → 0.0.0-alpha7

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,11 +1,12 @@
1
1
  export interface CopilotChatProps {
2
2
  readonly onSendMessage: (message: string) => void;
3
+ readonly isBusy?: boolean;
3
4
  readonly workareaSelector?: string;
4
5
  readonly onStopGeneration?: () => void;
5
6
  readonly onResetConversation?: () => void;
6
7
  readonly emptyStateTitle?: string;
7
8
  readonly emptyStateDescription?: string;
8
9
  }
9
- export declare const CopilotChat: ({ onSendMessage, workareaSelector, onStopGeneration, onResetConversation, emptyStateTitle, emptyStateDescription, }: CopilotChatProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CopilotChat: ({ onSendMessage, isBusy, workareaSelector, onStopGeneration, onResetConversation, emptyStateTitle, emptyStateDescription, }: CopilotChatProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export default CopilotChat;
11
12
  //# sourceMappingURL=CopilotChat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChat.d.ts","sourceRoot":"","sources":["../src/CopilotChat.tsx"],"names":[],"mappings":"AAQA,OAAO,0BAA0B,CAAC;AAUlC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CACzC;AAED,eAAO,MAAM,WAAW,GAAI,qHAOzB,gBAAgB,4CAiFlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"CopilotChat.d.ts","sourceRoot":"","sources":["../src/CopilotChat.tsx"],"names":[],"mappings":"AAQA,OAAO,0BAA0B,CAAC;AAUlC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CACzC;AAED,eAAO,MAAM,WAAW,GAAI,6HAQzB,gBAAgB,4CAgFlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,9 +1,9 @@
1
1
  interface ChatInputProps {
2
2
  readonly onSend: (message: string) => void;
3
3
  readonly onStop?: () => void;
4
- readonly isStreaming?: boolean;
4
+ readonly isBusy?: boolean;
5
5
  readonly placeholder?: string;
6
6
  }
7
- export declare const ChatInput: ({ onSend, onStop, isStreaming, placeholder, }: ChatInputProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const ChatInput: ({ onSend, onStop, isBusy, placeholder, }: ChatInputProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=ChatInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAaA,UAAU,cAAc;IACtB,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,SAAS,GAAI,+CAKvB,cAAc,4CA6FhB,CAAC"}
1
+ {"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAaA,UAAU,cAAc;IACtB,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,SAAS,GAAI,0CAKvB,cAAc,4CA6FhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ChatMessage/ChatMessage.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAKlE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,WAAW,GAAI,aAAa,gBAAgB,4CA8BxD,CAAC"}
1
+ {"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ChatMessage/ChatMessage.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAKlE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,WAAW,GAAI,aAAa,gBAAgB,4CAyBxD,CAAC"}
@@ -1,9 +1,9 @@
1
1
  interface ThinkingIndicatorProps {
2
- readonly eventType?: string;
3
- readonly toolName?: string;
2
+ readonly label?: string;
3
+ readonly completedLabel?: string;
4
4
  readonly content?: string;
5
5
  readonly isComplete: boolean;
6
6
  }
7
- export declare const ThinkingIndicator: ({ eventType, toolName, content, isComplete, }: ThinkingIndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export declare const ThinkingIndicator: ({ label, completedLabel, content, isComplete, }: ThinkingIndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
8
8
  export {};
9
9
  //# sourceMappingURL=ThinkingIndicator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThinkingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/ThinkingIndicator/ThinkingIndicator.tsx"],"names":[],"mappings":"AAcA,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;AAoCD,eAAO,MAAM,iBAAiB,GAAI,+CAK/B,sBAAsB,mDAyCxB,CAAC"}
1
+ {"version":3,"file":"ThinkingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/ThinkingIndicator/ThinkingIndicator.tsx"],"names":[],"mappings":"AAaA,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,GAAI,iDAK/B,sBAAsB,mDAiCxB,CAAC"}
@@ -1,4 +1,2 @@
1
1
  export { useCopilotSidecar } from './useCopilotSidecar';
2
- export { useCopilotAgent } from './useCopilotAgent';
3
- export type { UseCopilotAgentOptions, UseCopilotAgentReturn } from './useCopilotAgent';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.css CHANGED
@@ -20818,6 +20818,7 @@ optgroup.cds--select-optgroup:disabled,
20818
20818
  .cds--inline-loading {
20819
20819
  display: flex;
20820
20820
  align-items: center;
20821
+ color: var(--cds-text-secondary, #525252);
20821
20822
  inline-size: 100%;
20822
20823
  min-block-size: 2rem;
20823
20824
  }
@@ -20827,7 +20828,6 @@ optgroup.cds--select-optgroup:disabled,
20827
20828
  font-weight: var(--cds-label-02-font-weight, 400);
20828
20829
  line-height: var(--cds-label-02-line-height, 1.28572);
20829
20830
  letter-spacing: var(--cds-label-02-letter-spacing, 0.16px);
20830
- color: var(--cds-text-secondary, #525252);
20831
20831
  }
20832
20832
 
20833
20833
  .cds--inline-loading__animation {
@@ -29527,7 +29527,7 @@ body[data-copilot-chat-layout='bottom-sheet'] .copilot-chat-wrapper {
29527
29527
  ._renderer_qbz39_1 > *:last-child {
29528
29528
  margin-block-end: 0;
29529
29529
  }
29530
- ._streamingIndicator_sxito_1 {
29530
+ ._streamingIndicator_oudc8_1 {
29531
29531
  display: flex;
29532
29532
  align-items: center;
29533
29533
  gap: 8px;
@@ -29536,14 +29536,19 @@ body[data-copilot-chat-layout='bottom-sheet'] .copilot-chat-wrapper {
29536
29536
  font-size: 12px;
29537
29537
  }
29538
29538
 
29539
- ._collapsibleContainer_sxito_10 {
29539
+ ._processingLabel_oudc8_10 {
29540
+ color: #525252;
29541
+ font-size: 12px;
29542
+ }
29543
+
29544
+ ._collapsibleContainer_oudc8_15 {
29540
29545
  display: flex;
29541
29546
  flex-direction: column;
29542
29547
  gap: 4px;
29543
29548
  padding-block: 4px;
29544
29549
  }
29545
29550
 
29546
- ._collapseToggle_sxito_17 {
29551
+ ._collapseToggle_oudc8_22 {
29547
29552
  display: flex;
29548
29553
  align-items: center;
29549
29554
  gap: 4px;
@@ -29556,20 +29561,20 @@ body[data-copilot-chat-layout='bottom-sheet'] .copilot-chat-wrapper {
29556
29561
  border-radius: 4px;
29557
29562
  }
29558
29563
 
29559
- ._collapseToggle_sxito_17:hover {
29564
+ ._collapseToggle_oudc8_22:hover {
29560
29565
  background-color: rgba(0, 0, 0, 0.06);
29561
29566
  }
29562
29567
 
29563
- ._collapseToggle_sxito_17:focus {
29568
+ ._collapseToggle_oudc8_22:focus {
29564
29569
  outline: 2px solid #0f62fe;
29565
29570
  outline-offset: -2px;
29566
29571
  }
29567
29572
 
29568
- ._completedLabel_sxito_39 {
29573
+ ._completedLabel_oudc8_44 {
29569
29574
  font-weight: 500;
29570
29575
  }
29571
29576
 
29572
- ._collapsedContent_sxito_43 {
29577
+ ._collapsedContent_oudc8_48 {
29573
29578
  padding: 8px 12px;
29574
29579
  margin-inline-start: 20px;
29575
29580
  background-color: #f4f4f4;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export { default as CopilotChat } from './CopilotChat';
2
2
  export type { CopilotChatProps } from './CopilotChat';
3
- export { useChatStore } from './store';
4
- export { AgentEventType, AgentEventStatus } from './types';
3
+ export { useChatStore, useAgentStore, selectIsBusy, selectAgentState, } from './store';
4
+ export type { ChatMessage, MessageStatus } from './types';
5
+ export { AgentState, EventType, EventStatus, ResultType } from './types';
6
+ export type { AgentStateType, EventTypeValue, EventStatusValue, ResultTypeValue, AgentEvent, AgentResult, ToolInvokeResult, FrontendTool, } from './types';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,+BAA+B,CAAC;AACvC,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,+BAA+B,CAAC;AACvC,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EACL,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACzE,YAAY,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,GACb,MAAM,SAAS,CAAC"}