Skip to content

Commit d6211fb

Browse files
authored
chore(a2a-core): Renamed package from @microsoft/logicAppsChat to @microsoft/logic-apps-chat (#8634)
Renamed package
1 parent 4ee63aa commit d6211fb

28 files changed

+60
-60
lines changed

apps/iframe-app/CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pnpm run type-check # TypeScript validation
2323
## Architecture
2424

2525
### Core Components
26-
- Uses `@microsoft/logicAppsChat` SDK for A2A protocol
26+
- Uses `@microsoft/logic-apps-chat` SDK for A2A protocol
2727
- Fluent UI v9 for consistent styling
2828
- IndexedDB for message persistence
2929
- React 19 with streaming support
@@ -69,6 +69,6 @@ pnpm run test:multi-session # Test multiple chat sessions
6969

7070
## Dependencies
7171

72-
- `@microsoft/logicAppsChat` - A2A protocol SDK
72+
- `@microsoft/logic-apps-chat` - A2A protocol SDK
7373
- `@fluentui/react-components` - UI framework
7474
- `idb` - IndexedDB wrapper

apps/iframe-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"dependencies": {
2020
"@fluentui/react-components": "9.70.0",
21-
"@microsoft/logicAppsChat": "workspace:*",
21+
"@microsoft/logic-apps-chat": "workspace:*",
2222
"idb": "^8.0.3",
2323
"react": "^19.2.0",
2424
"react-dom": "^19.2.0",

apps/iframe-app/src/components/IframeWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useCallback, useRef, useMemo } from 'react';
2-
import { ChatWidget, type ChatWidgetProps, type StorageConfig } from '@microsoft/logicAppsChat';
2+
import { ChatWidget, type ChatWidgetProps, type StorageConfig } from '@microsoft/logic-apps-chat';
33
import { MultiSessionChat } from './MultiSessionChat/MultiSessionChat';
44
import { LoadingDisplay } from './LoadingDisplay';
55
import { LoginPrompt } from './LoginPrompt';

apps/iframe-app/src/components/MultiSessionChat/MultiSessionChat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback, useEffect, useState, useRef } from 'react';
2-
import type { ChatWidgetProps, StorageConfig, AgentCard } from '@microsoft/logicAppsChat';
3-
import { ChatWidget, ChatThemeProvider, useChatStore, ServerHistoryStorage, isDirectAgentCardUrl } from '@microsoft/logicAppsChat';
2+
import type { ChatWidgetProps, StorageConfig, AgentCard } from '@microsoft/logic-apps-chat';
3+
import { ChatWidget, ChatThemeProvider, useChatStore, ServerHistoryStorage, isDirectAgentCardUrl } from '@microsoft/logic-apps-chat';
44
import { Spinner, mergeClasses } from '@fluentui/react-components';
55
import { useChatSessions } from '../../hooks/useChatSessions';
66
import { useMultiSessionChatStyles } from './MultiSessionChatStyles';

apps/iframe-app/src/components/MultiSessionChat/MultiSessionChatWithAuth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { MultiSessionChat } from './MultiSessionChat';
22
import { SessionExpiredModal } from '../SessionExpiredModal';
33
import { useSessionExpiredHandler } from '../../hooks/useSessionExpiredHandler';
4-
import type { ChatWidgetProps } from '@microsoft/logicAppsChat';
4+
import type { ChatWidgetProps } from '@microsoft/logic-apps-chat';
55

66
interface MultiSessionChatWithAuthProps extends Omit<ChatWidgetProps, 'agentCard'> {
77
apiUrl: string;

apps/iframe-app/src/components/SessionList/SessionItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useCallback, memo } from 'react';
33
import { Button, Card, Text, Caption1, Input, mergeClasses, Tooltip } from '@fluentui/react-components';
44
import { EditRegular, ArchiveRegular, WarningRegular } from '@fluentui/react-icons';
55
import type { SessionMetadata } from '../../hooks/useChatSessions';
6-
import type { ChatTheme } from '@microsoft/logicAppsChat';
6+
import type { ChatTheme } from '@microsoft/logic-apps-chat';
77
import { useSessionListStyles } from './SessionListStyles';
88

99
// Memoized session item component to prevent unnecessary re-renders

apps/iframe-app/src/components/SessionList/SessionList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { useState, useCallback, memo } from 'react';
33
import { Button, Body1, mergeClasses } from '@fluentui/react-components';
44
import { AddFilled } from '@fluentui/react-icons';
55
import type { SessionMetadata } from '../../hooks/useChatSessions';
6-
import type { ChatTheme } from '@microsoft/logicAppsChat';
7-
import { useChatStore } from '@microsoft/logicAppsChat';
6+
import type { ChatTheme } from '@microsoft/logic-apps-chat';
7+
import { useChatStore } from '@microsoft/logic-apps-chat';
88
import { useSessionListStyles } from './SessionListStyles';
99
import SessionItem from './SessionItem';
1010

apps/iframe-app/src/components/__tests__/IframeWrapper.contextId.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { IframeWrapper } from '../IframeWrapper';
44
import type { IframeConfig } from '../../lib/utils/config-parser';
55

66
// Mock the dependencies
7-
vi.mock('@microsoft/logicAppsChat', () => ({
7+
vi.mock('@microsoft/logic-apps-chat', () => ({
88
ChatWidget: vi.fn(({ sessionKey }) => <div data-testid="chat-widget">ChatWidget (sessionKey: {sessionKey})</div>),
99
}));
1010

@@ -57,7 +57,7 @@ describe('IframeWrapper - contextId support', () => {
5757
});
5858

5959
it('should pass initialContextId to ChatWidget for single-session mode', async () => {
60-
const { ChatWidget } = vi.mocked(await import('@microsoft/logicAppsChat'));
60+
const { ChatWidget } = vi.mocked(await import('@microsoft/logic-apps-chat'));
6161

6262
const configWithContextId: IframeConfig = {
6363
...defaultConfig,
@@ -89,7 +89,7 @@ describe('IframeWrapper - contextId support', () => {
8989
});
9090

9191
it('should pass sessionKey to ChatWidget', async () => {
92-
const { ChatWidget } = vi.mocked(await import('@microsoft/logicAppsChat'));
92+
const { ChatWidget } = vi.mocked(await import('@microsoft/logic-apps-chat'));
9393

9494
const configWithSessionKey: IframeConfig = {
9595
...defaultConfig,
@@ -112,7 +112,7 @@ describe('IframeWrapper - contextId support', () => {
112112
});
113113

114114
it('should handle missing contextId gracefully', async () => {
115-
const { ChatWidget } = vi.mocked(await import('@microsoft/logicAppsChat'));
115+
const { ChatWidget } = vi.mocked(await import('@microsoft/logic-apps-chat'));
116116

117117
const configWithoutContextId: IframeConfig = {
118118
...defaultConfig,
@@ -134,7 +134,7 @@ describe('IframeWrapper - contextId support', () => {
134134
});
135135

136136
it('should pass contextId with custom sessionKey', async () => {
137-
const { ChatWidget } = vi.mocked(await import('@microsoft/logicAppsChat'));
137+
const { ChatWidget } = vi.mocked(await import('@microsoft/logic-apps-chat'));
138138

139139
const configWithSessionKey: IframeConfig = {
140140
...defaultConfig,

apps/iframe-app/src/components/__tests__/IframeWrapper.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { IframeWrapper } from '../IframeWrapper';
44
import type { IframeConfig } from '../../lib/utils/config-parser';
55

66
// Mock the dependencies
7-
vi.mock('@microsoft/logicAppsChat', () => ({
7+
vi.mock('@microsoft/logic-apps-chat', () => ({
88
ChatWidget: vi.fn(({ mode }) => <div data-testid="chat-widget">ChatWidget (mode: {mode})</div>),
99
}));
1010

@@ -185,7 +185,7 @@ describe('IframeWrapper', () => {
185185

186186
it('should handle auth token from Frame Blade', async () => {
187187
const { useFrameBlade } = await import('../../lib/hooks/useFrameBlade');
188-
const { ChatWidget } = await import('@microsoft/logicAppsChat');
188+
const { ChatWidget } = await import('@microsoft/logic-apps-chat');
189189

190190
let capturedAuthCallback: ((token: string) => void) | undefined;
191191

@@ -275,7 +275,7 @@ describe('IframeWrapper', () => {
275275
});
276276

277277
it('should pass contextId from URL config to ChatWidget', async () => {
278-
const { ChatWidget } = vi.mocked(await import('@microsoft/logicAppsChat'));
278+
const { ChatWidget } = vi.mocked(await import('@microsoft/logic-apps-chat'));
279279

280280
const configWithContextId: IframeConfig = {
281281
...defaultConfig,

apps/iframe-app/src/hooks/useChatSessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect, useCallback } from 'react';
2-
import { useChatStore } from '@microsoft/logicAppsChat';
2+
import { useChatStore } from '@microsoft/logic-apps-chat';
33

44
// Local type definitions for session metadata
55
export interface SessionMetadata {

0 commit comments

Comments
 (0)