Skip to content

Commit 9ab325e

Browse files
committed
Use named exports
1 parent c5203f3 commit 9ab325e

8 files changed

Lines changed: 12 additions & 8 deletions

__tests__/html2/simple/fatModule/esm.run/supportPolymiddleware.reactDOMRender.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{
1212
"imports": {
1313
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
14+
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
1415
"botframework-webchat/middleware": "/__dist__/packages/bundle/static/botframework-webchat/middleware.js",
1516
"react": "https://cdn.jsdelivr.net/npm/react@18.3.1/+esm",
1617
"react-dom": "https://cdn.jsdelivr.net/npm/react-dom@18.3.1/+esm",
@@ -20,11 +21,11 @@
2021
</script>
2122
<script type="module">
2223
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
24+
import { useStyleOptions } from 'botframework-webchat/hook';
2325
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';
2426
import { createElement } from 'react';
2527
import { render } from 'react-dom';
2628

27-
const { useStyleOptions } = hooks;
2829
const {
2930
testHelpers: { createDirectLineEmulator }
3031
} = window;

__tests__/html2/simple/fatModule/esm.run/supportPolymiddleware.reactDOMRender.withCreateRoot.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{
1212
"imports": {
1313
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
14+
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
1415
"botframework-webchat/middleware": "/__dist__/packages/bundle/static/botframework-webchat/middleware.js",
1516
"react": "https://cdn.jsdelivr.net/npm/react@18.3.1/+esm",
1617
"react-dom": "https://cdn.jsdelivr.net/npm/react-dom@18.3.1/+esm",
@@ -20,11 +21,11 @@
2021
</script>
2122
<script type="module">
2223
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
24+
import { useStyleOptions } from 'botframework-webchat/hook';
2325
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';
2426
import { createElement } from 'react';
2527
import { createRoot } from 'react-dom/client';
2628

27-
const { useStyleOptions } = hooks;
2829
const {
2930
testHelpers: { createDirectLineEmulator }
3031
} = window;

__tests__/html2/simple/fatModule/esm.run/supportPolymiddleware.renderWebChat.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{
1212
"imports": {
1313
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
14+
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
1415
"botframework-webchat/middleware": "/__dist__/packages/bundle/static/botframework-webchat/middleware.js",
1516
"react": "https://cdn.jsdelivr.net/npm/react@18.3.1/+esm",
1617
"react-dom": "https://cdn.jsdelivr.net/npm/react-dom@18.3.1/+esm",
@@ -20,10 +21,10 @@
2021
</script>
2122
<script type="module">
2223
import { createDirectLine, createStoreWithOptions, hooks, renderWebChat } from 'botframework-webchat';
24+
import { useStyleOptions } from 'botframework-webchat/hook';
2325
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';
2426
import { createElement } from 'react';
2527

26-
const { useStyleOptions } = hooks;
2728
const {
2829
testHelpers: { createDirectLineEmulator }
2930
} = window;

__tests__/html2/simple/fatModule/esm.sh/fluentTheme.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
}
5858
});
5959

60-
const { useStyleOptions } = hooks;
6160
const {
6261
testHelpers: { createDirectLineEmulator }
6362
} = window;

__tests__/html2/simple/fatModule/esm.sh/tsx/fluentTheme.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
}
5858
});
5959

60-
const { useStyleOptions } = hooks;
6160
const {
6261
testHelpers: { createDirectLineEmulator }
6362
} = window;

__tests__/html2/simple/fatModule/esm.sh/tsx/supportPolymiddleware.reactDOMRender.withCreateRoot.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{
1212
"imports": {
1313
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
14+
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
1415
"botframework-webchat/middleware": "/__dist__/packages/bundle/static/botframework-webchat/middleware.js",
1516
"react": "https://esm.sh/react@18",
1617
"react-dom": "https://esm.sh/react-dom@18",
@@ -21,11 +22,11 @@
2122
<script src="https://esm.sh/tsx" type="module"></script>
2223
<script type="text/babel">
2324
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
25+
import { useStyleOptions } from 'botframework-webchat/hook';
2426
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';
2527
import { createElement } from 'react';
2628
import { createRoot } from 'react-dom/client';
2729

28-
const { useStyleOptions } = hooks;
2930
const {
3031
testHelpers: { createDirectLineEmulator }
3132
} = window;

__tests__/html2/simple/fatModule/supportPolymiddleware.reactDOMRender.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{
1212
"imports": {
1313
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
14+
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
1415
"botframework-webchat/middleware": "/__dist__/packages/bundle/static/botframework-webchat/middleware.js",
1516
"react": "/__dist__/packages/bundle/static/react.js",
1617
"react-dom": "/__dist__/packages/bundle/static/react-dom.js"
@@ -19,11 +20,11 @@
1920
</script>
2021
<script type="module">
2122
import { createDirectLine, createStoreWithOptions, hooks, ReactWebChat } from 'botframework-webchat';
23+
import { useStyleOptions } from 'botframework-webchat/hook';
2224
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';
2325
import { createElement } from 'react';
2426
import { render } from 'react-dom';
2527

26-
const { useStyleOptions } = hooks;
2728
const {
2829
testHelpers: { createDirectLineEmulator }
2930
} = window;

__tests__/html2/simple/fatModule/supportPolymiddleware.renderWebChat.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{
1212
"imports": {
1313
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
14+
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
1415
"botframework-webchat/middleware": "/__dist__/packages/bundle/static/botframework-webchat/middleware.js",
1516
"react": "/__dist__/packages/bundle/static/react.js",
1617
"react-dom": "/__dist__/packages/bundle/static/react-dom.js"
@@ -19,10 +20,10 @@
1920
</script>
2021
<script type="module">
2122
import { createDirectLine, createStoreWithOptions, hooks, renderWebChat } from 'botframework-webchat';
23+
import { useStyleOptions } from 'botframework-webchat/hook';
2224
import { activityComponent, createActivityPolymiddleware } from 'botframework-webchat/middleware';
2325
import { createElement } from 'react';
2426

25-
const { useStyleOptions } = hooks;
2627
const {
2728
testHelpers: { createDirectLineEmulator }
2829
} = window;

0 commit comments

Comments
 (0)