@camunda/copilot-chat 0.8.1-alpha.5 → 0.8.1-alpha.7

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/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare interface ApplyDraftInput {
15
15
  readonly conversationId: string;
16
16
  readonly draftId: string;
17
17
  readonly reviewedGeneration: number;
18
- readonly confirmedLive: ReadonlyArray<{
18
+ readonly confirmedLive?: ReadonlyArray<{
19
19
  readonly artifactKey: string;
20
20
  readonly liveFingerprint: string;
21
21
  }>;
@@ -223,6 +223,7 @@ export declare interface CopilotClient {
223
223
  readonly submissionId: string;
224
224
  }): Promise<PostMessageResult>;
225
225
  undoApply(conversationId: string, applyId: string): Promise<void>;
226
+ getRestoreEligibility?(conversationId: string, applyIds: readonly string[]): Promise<Record<string, boolean>>;
226
227
  }
227
228
 
228
229
  export declare const CopilotConversationPanel: ({ client, conversationId, onConversationStarted, onSelectConversation, projectName, projectNameUnavailable, readOnlyReason, onOpenProject, onClose, openDraftReview, renderElementReference, artifacts, suggestions, selectionContext, }: CopilotConversationPanelProps) => JSX.Element;
@@ -494,6 +495,7 @@ declare type RevisionedConversationEvent = {
494
495
  } | {
495
496
  readonly type: 'apply_undone';
496
497
  readonly applyId: string;
498
+ readonly recoveryApplyId?: string;
497
499
  readonly artifacts: ReadonlyArray<ArtifactRef>;
498
500
  } | {
499
501
  readonly type: 'text';
@@ -545,6 +547,7 @@ export declare type TranscriptEvent = {
545
547
  readonly applyId: string;
546
548
  readonly generation: number;
547
549
  readonly artifacts: ReadonlyArray<ArtifactRef>;
550
+ readonly undoable?: boolean;
548
551
  } | {
549
552
  readonly type: 'draft_discarded';
550
553
  readonly draftId: string;
@@ -560,6 +563,7 @@ export declare type TranscriptEvent = {
560
563
  } | {
561
564
  readonly type: 'apply_undone';
562
565
  readonly applyId: string;
566
+ readonly recoveryApplyId?: string;
563
567
  readonly artifacts: ReadonlyArray<ArtifactRef>;
564
568
  } | {
565
569
  readonly type: 'continued_from';
@@ -585,6 +589,7 @@ export declare const useCopilotConversation: ({ client, conversationId, }: UseCo
585
589
  readonly undoable: boolean;
586
590
  readonly artifacts: ReadonlyArray<ArtifactRef>;
587
591
  } | null | undefined;
592
+ restoreEligibility: ReadonlyMap<string, boolean> | undefined;
588
593
  context: readonly ContextRef[];
589
594
  pendingQuestion: ConversationQuestion | undefined;
590
595
  answerQuestion: (input: AnswerQuestionInput) => Promise<void>;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as o, a as s, b as t, c as i, d as n, e as r, f as c, g as l, o as p, h as C, t as d, u as S, i as m, j as u } from "./index-CNP5V04Z.js";
1
+ import { C as o, a as s, b as t, c as i, d as n, e as r, f as c, g as l, o as p, h as C, t as d, u as S, i as m, j as u } from "./index-BdxrWv_q.js";
2
2
  export {
3
3
  o as CONVERSATION_NAME_MAX_LENGTH,
4
4
  s as CopilotBadge,
@@ -0,0 +1,4 @@
1
+ import { p } from "./index-BdxrWv_q.js";
2
+ export {
3
+ p as Mermaid
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/copilot-chat",
3
- "version": "0.8.1-alpha.5",
3
+ "version": "0.8.1-alpha.7",
4
4
  "description": "Camunda Copilot Client Library - React components and utilities for Camunda Platform 8",
5
5
  "license": "Camunda License 1.0",
6
6
  "type": "module",
@@ -1,4 +0,0 @@
1
- import { p } from "./index-CNP5V04Z.js";
2
- export {
3
- p as Mermaid
4
- };