Skip to content

Commit e1effac

Browse files
committed
Bump to latest
1 parent 138146b commit e1effac

File tree

17 files changed

+97
-57
lines changed

17 files changed

+97
-57
lines changed

package-lock.json

Lines changed: 68 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/src/hooks/Composer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { type ActivityMiddleware, type AttachmentMiddleware } from '@msinternal/botframework-webchat-middleware/legacy';
12
import { ReduxStoreComposer } from '@msinternal/botframework-webchat-redux-store';
23
import {
34
clearSuggestedActions,
@@ -32,8 +33,6 @@ import {
3233
type OneOrMany,
3334
type WebChatActivity
3435
} from 'botframework-webchat-core';
35-
import { type ActivityMiddleware, type AttachmentMiddleware } from 'botframework-webchat-middleware/legacy';
36-
import { ReduxStoreComposer } from 'botframework-webchat-redux-store';
3736
import PropTypes from 'prop-types';
3837
import React, { useCallback, useEffect, useMemo, useRef, useState, type ComponentType, type ReactNode } from 'react';
3938
import { Provider } from 'react-redux';

packages/api/src/hooks/internal/WebChatAPIContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { type LegacyActivityRenderer, type RenderAttachment } from '@msinternal/botframework-webchat-middleware/legacy';
12
import {
23
type DirectLineJSBotConnection,
34
type Observable,
@@ -6,7 +7,6 @@ import {
67
type sendMessage,
78
type setSendBoxAttachments
89
} from 'botframework-webchat-core';
9-
import { type LegacyActivityRenderer, type RenderAttachment } from 'botframework-webchat-middleware/legacy';
1010
import { createContext, type ComponentType } from 'react';
1111

1212
import { StrictStyleOptions } from '../../StyleOptions';

packages/api/src/hooks/internal/useCreateActivityRendererInternal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import {
2+
type ActivityComponentFactory,
3+
type RenderAttachment
4+
} from '@msinternal/botframework-webchat-middleware/legacy';
15
import { isValidElement, useMemo } from 'react';
2-
import { type ActivityComponentFactory, type RenderAttachment } from 'botframework-webchat-middleware/legacy';
36

47
import useRenderAttachment from '../useRenderAttachment';
58
import useWebChatAPIContext from './useWebChatAPIContext';

packages/api/src/hooks/useCreateActivityRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type ActivityComponentFactory } from 'botframework-webchat-middleware/legacy';
1+
import { type ActivityComponentFactory } from '@msinternal/botframework-webchat-middleware/legacy';
22
import useCreateActivityRendererInternal from './internal/useCreateActivityRendererInternal';
33

44
// The newer useCreateActivityRenderer() hook does not support override renderAttachment().

packages/api/src/hooks/useRenderAttachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type RenderAttachment } from 'botframework-webchat-middleware/legacy';
1+
import { type RenderAttachment } from '@msinternal/botframework-webchat-middleware/legacy';
22
import useWebChatAPIContext from './internal/useWebChatAPIContext';
33

44
export default function useRenderAttachment(): RenderAttachment | undefined {

packages/api/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
type ActivityMiddleware,
55
type AttachmentMiddleware,
66
type RenderAttachment
7-
} from 'botframework-webchat-middleware/legacy';
7+
} from '@msinternal/botframework-webchat-middleware/legacy';
88
import StyleOptions, { StrictStyleOptions } from './StyleOptions';
99
import defaultStyleOptions from './defaultStyleOptions';
1010
import Composer, { ComposerProps } from './hooks/Composer';

packages/component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"merge-refs": "2.0.0",
136136
"prop-types": "15.8.1",
137137
"punycode": "2.3.1",
138-
"react-chain-of-responsibility": "0.3.0",
138+
"react-chain-of-responsibility": "^0.4.0-main.5f5cc2f",
139139
"react-dictate-button": "4.0.0",
140140
"react-film": "4.0.0",
141141
"react-redux": "7.2.9",

packages/component/src/Composer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import {
2+
createActivityPolyMiddlewareFromLegacy,
3+
PolyMiddlewareComposer,
4+
type PolyMiddleware
5+
} from '@msinternal/botframework-webchat-middleware';
16
import type {
27
ComposerProps as APIComposerProps,
38
SendBoxMiddleware,
@@ -12,11 +17,6 @@ import {
1217
} from 'botframework-webchat-api';
1318
import { DecoratorComposer, type DecoratorMiddleware } from 'botframework-webchat-api/decorator';
1419
import { singleToArray } from 'botframework-webchat-core';
15-
import {
16-
createActivityPolyMiddlewareFromLegacy,
17-
PolyMiddlewareComposer,
18-
type PolyMiddleware
19-
} from 'botframework-webchat-middleware';
2020
import classNames from 'classnames';
2121
import MarkdownIt from 'markdown-it';
2222
import PropTypes from 'prop-types';

packages/component/src/Middleware/Activity/private/LegacyActivityBridge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { bridgeComponentPropsSchema, type BridgeComponentProps } from '@msinternal/botframework-webchat-middleware';
2+
import { validateProps } from '@msinternal/botframework-webchat-react-valibot';
13
import { hooks } from 'botframework-webchat-api';
2-
import { bridgeComponentPropsSchema, type BridgeComponentProps } from 'botframework-webchat-middleware';
3-
import { validateProps } from 'botframework-webchat-react-valibot';
44
import React, { memo, useCallback, useMemo } from 'react';
55

66
import useActivityElementMapRef from '../../../providers/ChatHistoryDOM/useActivityElementRef';

0 commit comments

Comments
 (0)