Skip to content

Commit ddea14f

Browse files
committed
Revert "Fold actual layer into exports"
This reverts commit 26227ef.
1 parent c5fbcd0 commit ddea14f

16 files changed

Lines changed: 59 additions & 52 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// We should review exports in this file to make sure 1P = 3P.
2+
export { type ActivityMiddleware, type TypingIndicatorMiddleware } from 'botframework-webchat-api';
3+
export {
4+
createActivityBorderMiddleware,
5+
createActivityGroupingMiddleware,
6+
DecoratorComposer,
7+
type DecoratorMiddleware
8+
} from 'botframework-webchat-api/decorator';
9+
export { WebChatDecorator } from 'botframework-webchat-component/decorator';
10+
export { createIconComponent, PartGrouping, useLiveRegion } from 'botframework-webchat-component/internal';
11+
export { getOrgSchemaMessage, type DirectLineCardAction, type WebChatActivity } from 'botframework-webchat-core';
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
export {
2+
activityComponent,
3+
ActivityPolymiddlewareProxy,
4+
createActivityPolymiddleware,
5+
useBuildRenderActivityCallback,
6+
type ActivityPolymiddleware,
7+
type ActivityPolymiddlewareHandler,
8+
type ActivityPolymiddlewareHandlerResult,
9+
type ActivityPolymiddlewareProps,
10+
type ActivityPolymiddlewareProxyProps,
11+
type ActivityPolymiddlewareRenderer,
12+
type ActivityPolymiddlewareRequest,
13+
type Polymiddleware
14+
} from 'botframework-webchat-api/middleware';
15+
16+
export {
17+
createErrorBoxPolymiddleware,
18+
errorBoxComponent,
19+
ErrorBoxPolymiddlewareProxy,
20+
useBuildRenderErrorBoxCallback,
21+
type ErrorBoxPolymiddleware,
22+
type ErrorBoxPolymiddlewareHandler,
23+
type ErrorBoxPolymiddlewareHandlerResult,
24+
type ErrorBoxPolymiddlewareProps,
25+
type ErrorBoxPolymiddlewareProxyProps,
26+
type ErrorBoxPolymiddlewareRenderer,
27+
type ErrorBoxPolymiddlewareRequest
28+
} from 'botframework-webchat-api/middleware';
29+
30+
export { createActivityPolymiddlewareFromLegacy } from 'botframework-webchat-api/middleware';
File renamed without changes.

packages/bundle/src/boot/exports/private/createDirectLine.ts renamed to packages/bundle/src/boot/actual/private/createDirectLine.ts

File renamed without changes.

packages/bundle/src/boot/exports/private/createDirectLineAppServiceExtension.ts renamed to packages/bundle/src/boot/actual/private/createDirectLineAppServiceExtension.ts

File renamed without changes.

packages/bundle/src/boot/exports/private/getBotAgent.ts renamed to packages/bundle/src/boot/actual/private/getBotAgent.ts

File renamed without changes.
File renamed without changes.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import './polyfill/modern';
22

33
import buildInfo from '../../buildInfo';
4-
import * as full from '../exports/full';
5-
import * as internal from '../exports/internal';
6-
import * as middleware from '../exports/middleware';
4+
import * as actual from '../actual/full';
5+
import * as internal from '../actual/internal';
6+
import * as middleware from '../actual/middleware';
77

88
// Until we have a development-specific bundle, we are not shipping createStoreWithDevTools in bundle.
9-
const { createStoreWithDevTools: _createStoreWithDevTools, ...exports } = full;
9+
const { createStoreWithDevTools: _createStoreWithDevTools, ...exports } = actual;
1010

1111
window['WebChat'] = Object.freeze({
1212
...window['WebChat'],

packages/bundle/src/boot/iife/minimal.ts renamed to packages/bundle/src/boot/bundle/minimal.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import buildInfo from '../../buildInfo';
2-
import * as internal from '../exports/internal';
3-
import * as middleware from '../exports/middleware';
4-
import * as minimal from '../exports/minimal.js';
2+
import * as internal from '../actual/internal';
3+
import * as middleware from '../actual/middleware';
4+
import * as actual from '../actual/minimal.js';
55

66
// Until we have a development-specific bundle, we are not shipping createStoreWithDevTools in bundle.
7-
const { createStoreWithDevTools: _createStoreWithDevTools, ...exports } = minimal;
7+
const { createStoreWithDevTools: _createStoreWithDevTools, ...exports } = actual;
88

99
window['WebChat'] = Object.freeze({
1010
...window['WebChat'],

0 commit comments

Comments
 (0)