Skip to content

Commit 8fcd02a

Browse files
compulimCopilot
andauthored
Bump deps (#5813)
* Fix bump scripts * Add local dependencies * Pin react and react-dom * Bump deps * Update PR number * Add ignoreDeprecations * Add ignoreDeprecations * Fix Schema.org schema * Fix stream info coalesce * Fix types and add comment * Add types * Add undefined * Better styleOptions and remove deprecations * Port to TypeScript * Set strict to false * Fix exporting class with private members * Disable strict * Deprecate parseXXX * Readd and deprecate parseXXX * Add available/install Co-authored-by: Copilot <copilot@github.com> * Fix updated OrgSchemaXXX signature * Add lazy * Add ignoreDeprecations * Move ignoreDeprecations * Fix precommit * Remove deprecated tests * StrictStyleOptions as first-class citizen * Fix ESLint on deps * Remove unnecessary ESLint overrides * Fix import * Fix imports * Fix ESLint * Fix new Schema.org "output is always array" * Fix Schema.org typings * Export as HTMLElement * Fix looseObject * Fix Schema.org accessors * Fix marker check * Modern normalizeStyleOptions * Transpile Redux devtools extension * Fix ESLint for deps * Remove console.log * Remove DictateState type * Sort * Clean up * Clean up * Add xxxEntries * Fix tests * Add schema.js export * Suffix static with .js * Clean up * Fix tests * Suffix import path with .js * Fix tests * Fix tests * Fix position logic * Suffix with .js * Fix ESLint * Fix import map * Fix recursive schema * Temporarily don't use freeze * Fix CreativeWork.isBasedOn * Fix currentMessage.abstract * Fix howToStatus * Fix defaultWorkStatus * Clean up * Fix feedback form * Fix actions for feedback * Fix reading disclaimer * Fix action require review check * Fix deprecation message * Add react/* to import map * Fix outgoing type * Fix debug theme bundling * Replace safeParse().success with is() * Fix find and replace * Fix flakiness * Fix ESLint * Remove deprecated test * Use /* in import map * Fix Prettier * Fix test and clean up entries * Remove unneeded test * Move deprecated entrypoint into their barrel file * Moved to /boot/ * Fix paths * Remove ignoreCSS for deprecated * Revert * Patch dtsroll output * Warn on unknown action thing * Fix test * Fix provider * Fix test * Fix Prettier * Fix flakiness * Fix flakiness * Fix flakiness * Add comment * Rename variable * Use parser * Remove needed file * Add comment * Support multiple @type value * Fix typings * Fix tests * Fix typing * Unfreeze and refreeze * Revert * Rename .js.ts to .js * Move to isPlainObject * Check against Object.prototype * Update version number * Rename to `useFirstActivityAuthor` * Add comment * Fix test * Fix ESLint * Fix flakiness --------- Co-authored-by: Copilot <copilot@github.com>
1 parent 2816bd8 commit 8fcd02a

530 files changed

Lines changed: 14041 additions & 5947 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- All optional properties must be `undefined`-able, i.e. use `value?: number | undefined` over `value?: number`
4747
- For functions exported outside of current file, make sure all arguments and return value are typed
4848
- If need to look inside the object to check for types, use `valibot`
49-
- E.g. `if (obj && typeof obj === 'object' && 'value' in obj && typeof obj.value === 'string')` should be replaced with `safeParse(object({ value: string }), obj).success`
49+
- E.g. `if (obj && typeof obj === 'object' && 'value' in obj && typeof obj.value === 'string')` should be replaced with `is(object({ value: string }), obj)`
5050
- Use `{ readonly value: string }` instead of `Readonly<{ value: string }>`
5151
- Use as much `readonly` as possible
5252

CHANGELOG.md

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

__tests__/assets/esm/createRenderHook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BasicWebChat, Composer } from 'botframework-webchat/component';
1+
import { BasicWebChat, Composer } from 'botframework-webchat/component.js';
22
import { createElement } from 'react';
33
import { createRoot } from 'react-dom/client';
44

__tests__/html2/accessibility/sendBox/ariaLabel.fluent.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"imports": {
1919
"@fluentui/react-components": "https://esm.sh/@fluentui/react-components?deps=react@18.3.1,react-dom@18.3.1&exports=FluentProvider,createDarkTheme,webLightTheme",
2020
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
21-
"botframework-webchat/component": "/__dist__/packages/bundle/static/botframework-webchat/component.js",
22-
"botframework-webchat/decorator": "/__dist__/packages/bundle/static/botframework-webchat/decorator.js",
23-
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
24-
"botframework-webchat/internal": "/__dist__/packages/bundle/static/botframework-webchat/internal.js",
21+
"botframework-webchat/": "/__dist__/packages/bundle/static/botframework-webchat/",
2522
"botframework-webchat-fluent-theme": "/__dist__/packages/fluent-theme/static/botframework-webchat-fluent-theme.js",
2623
"react": "/__dist__/packages/bundle/static/react.js",
2724
"react-dom": "/__dist__/packages/bundle/static/react-dom.js",

__tests__/html2/activity/message-status.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
"@fluentui/tokens": "/__dist__/packages/test/test-assets/out/@fluentui/tokens.js",
1212
"@testduet/wait-for": "https://unpkg.com/@testduet/wait-for@main/dist/wait-for.mjs",
1313
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
14-
"botframework-webchat/component": "/__dist__/packages/bundle/static/botframework-webchat/component.js",
15-
"botframework-webchat/decorator": "/__dist__/packages/bundle/static/botframework-webchat/decorator.js",
16-
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
17-
"botframework-webchat/internal": "/__dist__/packages/bundle/static/botframework-webchat/internal.js",
14+
"botframework-webchat/": "/__dist__/packages/bundle/static/botframework-webchat/",
1815
"botframework-webchat-fluent-theme": "/__dist__/packages/fluent-theme/static/botframework-webchat-fluent-theme.js",
1916
"react": "https://esm.sh/react@18",
2017
"react-dom": "https://esm.sh/react-dom@18",

__tests__/html2/attachment/adaptiveCard/custom.skip.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
"@testduet/wait-for": "https://unpkg.com/@testduet/wait-for@main/dist/wait-for.mjs",
1414
"bot-bundle-chat-adapter": "https://cdn.jsdelivr.net/gh/compulim/experiment-mockbot@v0.0.4/esm/bot-bundle-chat-adapter.js",
1515
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
16-
"botframework-webchat/component": "/__dist__/packages/bundle/static/botframework-webchat/component.js",
17-
"botframework-webchat/decorator": "/__dist__/packages/bundle/static/botframework-webchat/decorator.js",
18-
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
19-
"botframework-webchat/internal": "/__dist__/packages/bundle/static/botframework-webchat/internal.js",
16+
"botframework-webchat/": "/__dist__/packages/bundle/static/botframework-webchat/",
2017
"botframework-webchat-fluent-theme": "/__dist__/packages/fluent-theme/static/botframework-webchat-fluent-theme.js",
2118
"react": "/__dist__/packages/test/test-assets/out/react.js",
2219
"react-dom": "/__dist__/packages/test/test-assets/out/react-dom.js",
@@ -116,7 +113,7 @@
116113
conversationStartProperties: { locale: navigator.language }
117114
});
118115

119-
116+
120117
run(async () => {
121118
await host.windowSize(800, 800, document.body);
122119

@@ -183,4 +180,4 @@
183180
});
184181
</script>
185182

186-
</html>
183+
</html>

__tests__/html2/boot/deprecation/components.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// THEN: Should show deprecation note.
3737
expect(console.warn).toHaveBeenCalledTimes(1);
3838
expect(console.warn).toHaveBeenLastCalledWith(
39-
"botframework-webchat: `import { Components } from 'botframework-webchat'` has been deprecated, use `import { %s } from 'botframework-webchat/component'` instead.",
39+
"botframework-webchat: `import { Components } from 'botframework-webchat'` has been deprecated, use `import { %s } from 'botframework-webchat/component.js'` instead.",
4040
'BasicWebChat'
4141
);
4242

__tests__/html2/boot/deprecation/components.new.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
"imports": {
1111
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
12-
"botframework-webchat/component": "/__dist__/packages/bundle/static/botframework-webchat/component.js",
12+
"botframework-webchat/": "/__dist__/packages/bundle/static/botframework-webchat/",
1313
"jest-mock": "https://esm.sh/jest-mock",
1414
"react": "/__dist__/packages/bundle/static/react.js",
1515
"react-dom": "/__dist__/packages/bundle/static/react-dom.js"
@@ -26,7 +26,7 @@
2626
import '/test-page-object.mjs';
2727

2828
import { createDirectLine, createStoreWithOptions, renderWebChat } from 'botframework-webchat';
29-
import * as Components from 'botframework-webchat/component';
29+
import * as Components from 'botframework-webchat/component.js';
3030
import { version } from 'react';
3131

3232
run(async function () {

__tests__/html2/boot/deprecation/hooks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// THEN: Should show deprecation note.
3737
expect(console.warn).toHaveBeenCalledTimes(1);
3838
expect(console.warn).toHaveBeenLastCalledWith(
39-
"botframework-webchat: `import { hooks } from 'botframework-webchat'` has been deprecated, use `import { %s } from 'botframework-webchat/hook'` instead.",
39+
"botframework-webchat: `import { hooks } from 'botframework-webchat'` has been deprecated, use `import { %s } from 'botframework-webchat/hook.js'` instead.",
4040
'useStyleOptions'
4141
);
4242

__tests__/html2/boot/deprecation/hooks.new.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
"imports": {
1111
"botframework-webchat": "/__dist__/packages/bundle/static/botframework-webchat.js",
12-
"botframework-webchat/hook": "/__dist__/packages/bundle/static/botframework-webchat/hook.js",
12+
"botframework-webchat/": "/__dist__/packages/bundle/static/botframework-webchat/",
1313
"jest-mock": "https://esm.sh/jest-mock",
1414
"react": "/__dist__/packages/bundle/static/react.js",
1515
"react-dom": "/__dist__/packages/bundle/static/react-dom.js"
@@ -26,7 +26,7 @@
2626
import '/test-page-object.mjs';
2727

2828
import { createDirectLine, createStoreWithOptions, renderWebChat } from 'botframework-webchat';
29-
import * as hooks from 'botframework-webchat/hook';
29+
import * as hooks from 'botframework-webchat/hook.js';
3030
import { version } from 'react';
3131

3232
run(async function () {

0 commit comments

Comments
 (0)