Skip to content

Commit 0253890

Browse files
instead of core import from webchat internal
1 parent 6f653ea commit 0253890

8 files changed

Lines changed: 16 additions & 10 deletions

File tree

__tests__/html2/activity/message-status.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"botframework-webchat/decorator": "/__dist__/packages/bundle/static/botframework-webchat/decorator.js",
1616
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
1717
"botframework-webchat/internal": "/__dist__/packages/bundle/static/botframework-webchat/internal.js",
18-
"botframework-webchat-core": "/__dist__/packages/bundle/static/botframework-webchat-core.js",
1918
"botframework-webchat-fluent-theme": "/__dist__/packages/fluent-theme/static/botframework-webchat-fluent-theme.js",
2019
"react": "https://esm.sh/react@18",
2120
"react-dom": "https://esm.sh/react-dom@18",

__tests__/html2/simple/fatModule/fluentTheme.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"botframework-webchat/decorator": "/__dist__/packages/bundle/static/botframework-webchat/decorator.js",
2323
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
2424
"botframework-webchat/internal": "/__dist__/packages/bundle/static/botframework-webchat/internal.js",
25-
"botframework-webchat-core": "/__dist__/packages/bundle/static/botframework-webchat-core.js",
2625
"botframework-webchat-fluent-theme": "/__dist__/packages/fluent-theme/static/botframework-webchat-fluent-theme.js",
2726
"react": "/__dist__/packages/bundle/static/react.js",
2827
"react-dom": "/__dist__/packages/bundle/static/react-dom.js",

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bundle/src/boot/actual/internal.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,11 @@ export {
1818
useLiveRegion,
1919
type HighlightCodeFn
2020
} from 'botframework-webchat-component/internal';
21-
export { getOrgSchemaMessage, type DirectLineCardAction, type WebChatActivity } from 'botframework-webchat-core';
21+
export {
22+
getOrgSchemaMessage,
23+
getVoiceActivityRole,
24+
getVoiceActivityText,
25+
isVoiceTranscriptActivity,
26+
type DirectLineCardAction,
27+
type WebChatActivity
28+
} from 'botframework-webchat-core';

packages/fluent-theme/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
},
8686
"dependencies": {
8787
"botframework-webchat": "0.0.0-0",
88-
"botframework-webchat-core": "0.0.0-0",
8988
"classnames": "2.5.1",
9089
"inject-meta-tag": "0.0.1",
9190
"math-random": "2.0.1",

packages/fluent-theme/src/components/activity/PartGroupingDecorator.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';
2-
import { getVoiceActivityRole } from 'botframework-webchat-core';
3-
import { getOrgSchemaMessage, PartGrouping, type WebChatActivity } from 'botframework-webchat/internal';
2+
import {
3+
getOrgSchemaMessage,
4+
getVoiceActivityRole,
5+
PartGrouping,
6+
type WebChatActivity
7+
} from 'botframework-webchat/internal';
48
import cx from 'classnames';
59
import React, { memo, useMemo, type ReactNode } from 'react';
610
import { array, custom, object, optional, pipe, readonly, safeParse } from 'valibot';

packages/fluent-theme/src/components/activityStatus/VoiceTranscriptActivityStatus.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { hooks } from 'botframework-webchat';
22
import { Timestamp } from 'botframework-webchat/component';
3-
import { type WebChatActivity } from 'botframework-webchat/internal';
4-
import { getVoiceActivityRole, getVoiceActivityText } from 'botframework-webchat-core';
3+
import { getVoiceActivityRole, getVoiceActivityText, type WebChatActivity } from 'botframework-webchat/internal';
54
import React, { Fragment, memo } from 'react';
65

76
import { useStyles } from '../../styles';

packages/fluent-theme/src/private/FluentThemeProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import {
99
type DecoratorMiddleware
1010
} from 'botframework-webchat/decorator';
1111
import {
12+
isVoiceTranscriptActivity,
1213
type ActivityMiddleware,
1314
type ActivityStatusMiddleware,
1415
type TypingIndicatorMiddleware
1516
} from 'botframework-webchat/internal';
16-
import { isVoiceTranscriptActivity } from 'botframework-webchat-core';
1717
import React, { memo, useMemo } from 'react';
1818
import { custom, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
1919

0 commit comments

Comments
 (0)