|
| 1 | +// TODO: Move the pattern to re-export. |
1 | 2 | import StyleOptions, { StrictStyleOptions } from './StyleOptions'; |
2 | 3 | import defaultStyleOptions from './defaultStyleOptions'; |
3 | 4 | import Composer, { ComposerProps } from './hooks/Composer'; |
4 | 5 | import * as hooks from './hooks/index'; |
5 | | -import { |
6 | | - SendBoxMiddlewareProxy, |
7 | | - initSendBoxMiddleware, |
8 | | - type SendBoxMiddleware, |
9 | | - type SendBoxMiddlewareProps, |
10 | | - type SendBoxMiddlewareRequest |
11 | | -} from './hooks/internal/SendBoxMiddleware'; |
12 | | -import { |
13 | | - SendBoxToolbarMiddlewareProxy, |
14 | | - initSendBoxToolbarMiddleware, |
15 | | - type SendBoxToolbarMiddleware, |
16 | | - type SendBoxToolbarMiddlewareProps, |
17 | | - type SendBoxToolbarMiddlewareRequest |
18 | | -} from './hooks/internal/SendBoxToolbarMiddleware'; |
19 | 6 | import concatMiddleware from './hooks/middleware/concatMiddleware'; |
20 | 7 | import { type ActivityStatusRenderer } from './hooks/useCreateActivityStatusRenderer'; // TODO: [P1] This line should export the one from the version from "middleware rework" workstream. |
21 | 8 | import { type DebouncedNotification, type DebouncedNotifications } from './hooks/useDebouncedNotifications'; |
@@ -43,26 +30,31 @@ import TypingIndicatorMiddleware, { type RenderTypingIndicator } from './types/T |
43 | 30 | import { type WebSpeechPonyfill } from './types/WebSpeechPonyfill'; |
44 | 31 | import { type WebSpeechPonyfillFactory } from './types/WebSpeechPonyfillFactory'; |
45 | 32 |
|
| 33 | +// #region Re-export |
| 34 | +export { |
| 35 | + extractSendBoxMiddleware, |
| 36 | + SendBoxMiddlewareProxy, |
| 37 | + type SendBoxMiddleware, |
| 38 | + type SendBoxMiddlewareProps, |
| 39 | + type SendBoxMiddlewareRequest |
| 40 | +} from './middleware/SendBoxMiddleware'; |
| 41 | + |
| 42 | +export { |
| 43 | + extractSendBoxToolbarMiddleware, |
| 44 | + SendBoxToolbarMiddlewareProxy, |
| 45 | + type SendBoxToolbarMiddleware, |
| 46 | + type SendBoxToolbarMiddlewareProps, |
| 47 | + type SendBoxToolbarMiddlewareRequest |
| 48 | +} from './middleware/SendBoxToolbarMiddleware'; |
| 49 | +// #endregion |
| 50 | + |
46 | 51 | const buildTool = process.env.build_tool; |
47 | 52 | const moduleFormat = process.env.module_format; |
48 | 53 | const version = process.env.npm_package_version; |
49 | 54 |
|
50 | 55 | const buildInfo = { buildTool, moduleFormat, version }; |
51 | 56 |
|
52 | | -export { |
53 | | - Composer, |
54 | | - SendBoxMiddlewareProxy, |
55 | | - SendBoxToolbarMiddlewareProxy, |
56 | | - buildInfo, |
57 | | - concatMiddleware, |
58 | | - defaultStyleOptions, |
59 | | - hooks, |
60 | | - initSendBoxMiddleware, |
61 | | - initSendBoxToolbarMiddleware, |
62 | | - localize, |
63 | | - normalizeStyleOptions, |
64 | | - version |
65 | | -}; |
| 57 | +export { buildInfo, Composer, concatMiddleware, defaultStyleOptions, hooks, localize, normalizeStyleOptions, version }; |
66 | 58 |
|
67 | 59 | export type { |
68 | 60 | ActivityComponentFactory, |
@@ -90,12 +82,6 @@ export type { |
90 | 82 | RenderTypingIndicator, |
91 | 83 | ScrollToEndButtonComponentFactory, |
92 | 84 | ScrollToEndButtonMiddleware, |
93 | | - SendBoxMiddleware, |
94 | | - SendBoxMiddlewareProps, |
95 | | - SendBoxMiddlewareRequest, |
96 | | - SendBoxToolbarMiddleware, |
97 | | - SendBoxToolbarMiddlewareProps, |
98 | | - SendBoxToolbarMiddlewareRequest, |
99 | 85 | SendStatus, |
100 | 86 | StrictStyleOptions, |
101 | 87 | StyleOptions, |
|
0 commit comments