botframework-webchat 4.15.8-main.20230222.b8435f4 → 4.15.8-main.20230227.fe23bb4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/webchat-es5.js +1 -1
  2. package/dist/webchat-minimal.js +1 -1
  3. package/dist/webchat.js +1 -1
  4. package/lib/AddFullBundle.d.ts +1 -1
  5. package/lib/AddFullBundle.d.ts.map +1 -1
  6. package/lib/FullComposer.d.ts +1 -1
  7. package/lib/FullComposer.d.ts.map +1 -1
  8. package/lib/FullReactWebChat.d.ts +1 -1
  9. package/lib/FullReactWebChat.d.ts.map +1 -1
  10. package/lib/adaptiveCards/AdaptiveCardsComposer.d.ts +1 -1
  11. package/lib/adaptiveCards/AdaptiveCardsComposer.d.ts.map +1 -1
  12. package/lib/adaptiveCards/AdaptiveCardsContext.d.ts +1 -1
  13. package/lib/adaptiveCards/AdaptiveCardsContext.d.ts.map +1 -1
  14. package/lib/adaptiveCards/AdaptiveCardsStyleOptions.d.ts +2 -2
  15. package/lib/adaptiveCards/AdaptiveCardsStyleOptions.d.ts.map +1 -1
  16. package/lib/adaptiveCards/AdaptiveCardsStyleSet.d.ts +1 -1
  17. package/lib/adaptiveCards/AdaptiveCardsStyleSet.d.ts.map +1 -1
  18. package/lib/adaptiveCards/Attachment/AdaptiveCardAttachment.d.ts +1 -1
  19. package/lib/adaptiveCards/Attachment/AdaptiveCardAttachment.d.ts.map +1 -1
  20. package/lib/adaptiveCards/Attachment/AdaptiveCardContent.d.ts +1 -1
  21. package/lib/adaptiveCards/Attachment/AdaptiveCardContent.d.ts.map +1 -1
  22. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/useAdaptiveCardModEffect.d.ts +1 -1
  23. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/useAdaptiveCardModEffect.d.ts.map +1 -1
  24. package/lib/adaptiveCards/Attachment/AdaptiveCardHacks/private/useAdaptiveCardModEffect.js +1 -1
  25. package/lib/adaptiveCards/Attachment/AdaptiveCardRenderer.d.ts +1 -1
  26. package/lib/adaptiveCards/Attachment/AdaptiveCardRenderer.d.ts.map +1 -1
  27. package/lib/adaptiveCards/Attachment/AnimationCardContent.d.ts +1 -1
  28. package/lib/adaptiveCards/Attachment/AnimationCardContent.d.ts.map +1 -1
  29. package/lib/adaptiveCards/Attachment/AudioCardContent.d.ts +1 -1
  30. package/lib/adaptiveCards/Attachment/AudioCardContent.d.ts.map +1 -1
  31. package/lib/adaptiveCards/Attachment/HeroCardContent.d.ts +1 -1
  32. package/lib/adaptiveCards/Attachment/HeroCardContent.d.ts.map +1 -1
  33. package/lib/adaptiveCards/Attachment/OAuthCardContent.d.ts +1 -1
  34. package/lib/adaptiveCards/Attachment/OAuthCardContent.d.ts.map +1 -1
  35. package/lib/adaptiveCards/Attachment/ReceiptCardContent.d.ts +1 -1
  36. package/lib/adaptiveCards/Attachment/ReceiptCardContent.d.ts.map +1 -1
  37. package/lib/adaptiveCards/Attachment/SignInCardContent.d.ts +1 -1
  38. package/lib/adaptiveCards/Attachment/SignInCardContent.d.ts.map +1 -1
  39. package/lib/adaptiveCards/Attachment/ThumbnailCardContent.d.ts +1 -1
  40. package/lib/adaptiveCards/Attachment/ThumbnailCardContent.d.ts.map +1 -1
  41. package/lib/adaptiveCards/Attachment/VideoCardContent.d.ts +1 -1
  42. package/lib/adaptiveCards/Attachment/VideoCardContent.d.ts.map +1 -1
  43. package/lib/adaptiveCards/DOMManipulationWithUndo/types/UndoFunction.d.ts +1 -1
  44. package/lib/adaptiveCards/DOMManipulationWithUndo/types/UndoFunction.d.ts.map +1 -1
  45. package/lib/addVersion.js +1 -1
  46. package/lib/createDirectLine.d.ts +1 -1
  47. package/lib/createDirectLine.d.ts.map +1 -1
  48. package/lib/index.d.ts +2 -2
  49. package/lib/index.d.ts.map +1 -1
  50. package/lib/renderMarkdown.js +3 -3
  51. package/lib/speech/CustomAudioInputStream.d.ts +6 -6
  52. package/lib/speech/CustomAudioInputStream.d.ts.map +1 -1
  53. package/lib/speech/createAudioConfig.d.ts +3 -3
  54. package/lib/speech/createAudioConfig.d.ts.map +1 -1
  55. package/lib/types/AdaptiveCardsPackage.d.ts +1 -1
  56. package/lib/types/AdaptiveCardsPackage.d.ts.map +1 -1
  57. package/lib/types/CognitiveServicesAudioOutputFormat.d.ts +1 -1
  58. package/lib/types/CognitiveServicesAudioOutputFormat.d.ts.map +1 -1
  59. package/lib/types/CognitiveServicesCredentials.d.ts +6 -6
  60. package/lib/types/CognitiveServicesCredentials.d.ts.map +1 -1
  61. package/lib/types/CognitiveServicesTextNormalization.d.ts +1 -1
  62. package/lib/types/CognitiveServicesTextNormalization.d.ts.map +1 -1
  63. package/lib/types/FullBundleStyleOptions.d.ts +2 -2
  64. package/lib/types/FullBundleStyleOptions.d.ts.map +1 -1
  65. package/package.json +65 -29
  66. package/src/adaptiveCards/Attachment/AdaptiveCardHacks/private/useAdaptiveCardModEffect.ts +2 -2
  67. package/src/renderMarkdown.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveServicesAudioOutputFormat.d.ts","sourceRoot":"","sources":["../../src/types/CognitiveServicesAudioOutputFormat.ts"],"names":[],"mappings":"AAAA,aAAK,kCAAkC,GACnC,kCAAkC,GAClC,iCAAiC,GACjC,iCAAiC,GACjC,kCAAkC,GAClC,iCAAiC,GACjC,iCAAiC,GACjC,kCAAkC,GAClC,iCAAiC,GACjC,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,0BAA0B,GAC1B,+BAA+B,GAC/B,0BAA0B,GAC1B,+BAA+B,GAC/B,0BAA0B,GAC1B,yBAAyB,GACzB,0BAA0B,GAC1B,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,0BAA0B,GAC1B,2BAA2B,GAC3B,4BAA4B,GAC5B,4BAA4B,CAAC;AAEjC,eAAe,kCAAkC,CAAC"}
1
+ {"version":3,"file":"CognitiveServicesAudioOutputFormat.d.ts","sourceRoot":"","sources":["../../src/types/CognitiveServicesAudioOutputFormat.ts"],"names":[],"mappings":"AAAA,KAAK,kCAAkC,GACnC,kCAAkC,GAClC,iCAAiC,GACjC,iCAAiC,GACjC,kCAAkC,GAClC,iCAAiC,GACjC,iCAAiC,GACjC,kCAAkC,GAClC,iCAAiC,GACjC,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,0BAA0B,GAC1B,+BAA+B,GAC/B,0BAA0B,GAC1B,+BAA+B,GAC/B,0BAA0B,GAC1B,yBAAyB,GACzB,0BAA0B,GAC1B,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,0BAA0B,GAC1B,2BAA2B,GAC3B,4BAA4B,GAC5B,4BAA4B,CAAC;AAEjC,eAAe,kCAAkC,CAAC"}
@@ -1,18 +1,18 @@
1
- declare type CognitiveServicesAuthorizationToken = {
1
+ type CognitiveServicesAuthorizationToken = {
2
2
  authorizationToken: string;
3
3
  };
4
- declare type CognitiveServicesSubscriptionKey = {
4
+ type CognitiveServicesSubscriptionKey = {
5
5
  subscriptionKey: string;
6
6
  };
7
- declare type CognitiveServicesRegion = {
7
+ type CognitiveServicesRegion = {
8
8
  region: string;
9
9
  };
10
- declare type CognitiveServicesSovereignCloud = {
10
+ type CognitiveServicesSovereignCloud = {
11
11
  customVoiceHostname: string;
12
12
  speechRecognitionHostname: string;
13
13
  speechSynthesisHostname: string;
14
14
  };
15
- declare type CognitiveServicesBaseCredentials = (CognitiveServicesAuthorizationToken | CognitiveServicesSubscriptionKey) & (CognitiveServicesRegion | CognitiveServicesSovereignCloud);
16
- declare type CognitiveServicesCredentials = CognitiveServicesBaseCredentials | Promise<CognitiveServicesBaseCredentials> | (() => CognitiveServicesBaseCredentials) | (() => Promise<CognitiveServicesBaseCredentials>);
15
+ type CognitiveServicesBaseCredentials = (CognitiveServicesAuthorizationToken | CognitiveServicesSubscriptionKey) & (CognitiveServicesRegion | CognitiveServicesSovereignCloud);
16
+ type CognitiveServicesCredentials = CognitiveServicesBaseCredentials | Promise<CognitiveServicesBaseCredentials> | (() => CognitiveServicesBaseCredentials) | (() => Promise<CognitiveServicesBaseCredentials>);
17
17
  export default CognitiveServicesCredentials;
18
18
  //# sourceMappingURL=CognitiveServicesCredentials.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveServicesCredentials.d.ts","sourceRoot":"","sources":["../../src/types/CognitiveServicesCredentials.ts"],"names":[],"mappings":"AAAA,aAAK,mCAAmC,GAAG;IACzC,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,aAAK,gCAAgC,GAAG;IACtC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,aAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,aAAK,+BAA+B,GAAG;IACrC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB,EAAE,MAAM,CAAC;IAClC,uBAAuB,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,aAAK,gCAAgC,GAAG,CAAC,mCAAmC,GAAG,gCAAgC,CAAC,GAC9G,CAAC,uBAAuB,GAAG,+BAA+B,CAAC,CAAC;AAE9D,aAAK,4BAA4B,GAC7B,gCAAgC,GAChC,OAAO,CAAC,gCAAgC,CAAC,GACzC,CAAC,MAAM,gCAAgC,CAAC,GACxC,CAAC,MAAM,OAAO,CAAC,gCAAgC,CAAC,CAAC,CAAC;AAEtD,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"CognitiveServicesCredentials.d.ts","sourceRoot":"","sources":["../../src/types/CognitiveServicesCredentials.ts"],"names":[],"mappings":"AAAA,KAAK,mCAAmC,GAAG;IACzC,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,KAAK,gCAAgC,GAAG;IACtC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACrC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yBAAyB,EAAE,MAAM,CAAC;IAClC,uBAAuB,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,KAAK,gCAAgC,GAAG,CAAC,mCAAmC,GAAG,gCAAgC,CAAC,GAC9G,CAAC,uBAAuB,GAAG,+BAA+B,CAAC,CAAC;AAE9D,KAAK,4BAA4B,GAC7B,gCAAgC,GAChC,OAAO,CAAC,gCAAgC,CAAC,GACzC,CAAC,MAAM,gCAAgC,CAAC,GACxC,CAAC,MAAM,OAAO,CAAC,gCAAgC,CAAC,CAAC,CAAC;AAEtD,eAAe,4BAA4B,CAAC"}
@@ -1,3 +1,3 @@
1
- declare type CognitiveServicesTextNormalization = 'display' | 'itn' | 'lexical' | 'maskeditn';
1
+ type CognitiveServicesTextNormalization = 'display' | 'itn' | 'lexical' | 'maskeditn';
2
2
  export default CognitiveServicesTextNormalization;
3
3
  //# sourceMappingURL=CognitiveServicesTextNormalization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveServicesTextNormalization.d.ts","sourceRoot":"","sources":["../../src/types/CognitiveServicesTextNormalization.ts"],"names":[],"mappings":"AAAA,aAAK,kCAAkC,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,WAAW,CAAC;AAEtF,eAAe,kCAAkC,CAAC"}
1
+ {"version":3,"file":"CognitiveServicesTextNormalization.d.ts","sourceRoot":"","sources":["../../src/types/CognitiveServicesTextNormalization.ts"],"names":[],"mappings":"AAAA,KAAK,kCAAkC,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,WAAW,CAAC;AAEtF,eAAe,kCAAkC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { StrictStyleOptions, StyleOptions } from 'botframework-webchat-api';
2
2
  import AdaptiveCardStyleOptions, { StrictAdaptiveCardsStyleOptions } from '../adaptiveCards/AdaptiveCardsStyleOptions';
3
- declare type FullBundleStyleOptions = StyleOptions & AdaptiveCardStyleOptions;
4
- declare type StrictFullBundleStyleOptions = StrictStyleOptions & StrictAdaptiveCardsStyleOptions;
3
+ type FullBundleStyleOptions = StyleOptions & AdaptiveCardStyleOptions;
4
+ type StrictFullBundleStyleOptions = StrictStyleOptions & StrictAdaptiveCardsStyleOptions;
5
5
  export default FullBundleStyleOptions;
6
6
  export { StrictFullBundleStyleOptions };
7
7
  //# sourceMappingURL=FullBundleStyleOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullBundleStyleOptions.d.ts","sourceRoot":"","sources":["../../src/types/FullBundleStyleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE5E,OAAO,wBAAwB,EAAE,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAEvH,aAAK,sBAAsB,GAAG,YAAY,GAAG,wBAAwB,CAAC;AACtE,aAAK,4BAA4B,GAAG,kBAAkB,GAAG,+BAA+B,CAAC;AAEzF,eAAe,sBAAsB,CAAC;AACtC,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
1
+ {"version":3,"file":"FullBundleStyleOptions.d.ts","sourceRoot":"","sources":["../../src/types/FullBundleStyleOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE5E,OAAO,wBAAwB,EAAE,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAEvH,KAAK,sBAAsB,GAAG,YAAY,GAAG,wBAAwB,CAAC;AACtE,KAAK,4BAA4B,GAAG,kBAAkB,GAAG,+BAA+B,CAAC;AAEzF,eAAe,sBAAsB,CAAC;AACtC,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botframework-webchat",
3
- "version": "4.15.8-main.20230222.b8435f4",
3
+ "version": "4.15.8-main.20230227.fe23bb4",
4
4
  "description": "A highly-customizable web-based chat client for Azure Bot Services.",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -29,9 +29,10 @@
29
29
  "build:babel": "babel src --extensions .js,.ts,.tsx --ignore **/*.spec.js,**/*.spec.ts,**/*.spec.tsx,**/*.test.js,**/*.test.ts,**/*.test.tsx,__tests__/**/*.js,__tests__/**/*.ts,__tests__/**/*.tsx --out-dir lib --verbose",
30
30
  "build:typescript": "tsc --project src/tsconfig.json",
31
31
  "build:webpack": "webpack-cli",
32
- "bump": "npm run bump:prod && npm run bump:dev",
33
- "bump:dev": "npm install --legacy-peer-deps $(cat package.json | jq -r '(.devDependencies | keys) - ((.skipBump // {}) | keys) | .[]' | awk '{print $1 \"@latest\"}')",
34
- "bump:prod": "npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.dependencies | keys) - ((.skipBump // {}) | keys) | .[]' | awk '{print $1 \"@latest\"}')",
32
+ "bump": "npm run bump:prod && npm run bump:dev && npm run bump:auditfix",
33
+ "bump:auditfix": "npm audit fix --legacy-peer-deps || exit 0",
34
+ "bump:dev": "if [ `cat package.json | jq -r '.devDependencies | length'` -ne 0 ]; then npm install --legacy-peer-deps $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.devDependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
35
+ "bump:prod": "if [ `cat package.json | jq -r '.dependencies | length'` -ne 0 ]; then npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.dependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
35
36
  "eslint": "npm run precommit",
36
37
  "postauditfix": "npm run postbump",
37
38
  "postbump": "cat package.json | jq '. + (.dependencies = ((.dependencies + (.localPeerDependencies // {})) | to_entries | sort_by(.key) | from_entries)) | (.devDependencies = ((.devDependencies + (.localPeerDevDependencies // {})) | to_entries | sort_by(.key) | from_entries))' > package-temp.json && mv package-temp.json package.json",
@@ -45,30 +46,67 @@
45
46
  "start:devserver": "node ./scripts/devServer.mjs",
46
47
  "start:typescript": "npm run build:typescript -- --watch"
47
48
  },
48
- "skipBump": {
49
- "adaptivecards": "needs to bump manually",
50
- "microsoft-cognitiveservices-speech-sdk": "needs to bump manually",
51
- "uuid": "uuid@9 emit non-ES5 build because of default parameters"
49
+ "pinDependencies": {
50
+ "@babel/cli": [
51
+ "7.18.10",
52
+ "@babel/*@7.21 is causing out-of-memory (OOM) issues"
53
+ ],
54
+ "@babel/core": [
55
+ "7.19.1",
56
+ "@babel/*@7.21 is causing out-of-memory (OOM) issues"
57
+ ],
58
+ "@babel/plugin-transform-runtime": [
59
+ "7.19.1",
60
+ "@babel/*@7.21 is causing out-of-memory (OOM) issues"
61
+ ],
62
+ "@babel/preset-env": [
63
+ "7.19.1",
64
+ "@babel/*@7.21 is causing out-of-memory (OOM) issues"
65
+ ],
66
+ "@babel/preset-react": [
67
+ "7.18.6",
68
+ "@babel/*@7.21 is causing out-of-memory (OOM) issues"
69
+ ],
70
+ "@babel/preset-typescript": [
71
+ "7.18.6",
72
+ "@babel/*@7.21 is causing out-of-memory (OOM) issues"
73
+ ],
74
+ "@babel/runtime": [
75
+ "7.19.0",
76
+ "@babel/*@7.21 is causing out-of-memory (OOM) issues"
77
+ ],
78
+ "adaptivecards": [
79
+ "2.11.1",
80
+ "needs to bump manually"
81
+ ],
82
+ "microsoft-cognitiveservices-speech-sdk": [
83
+ "1.17.0",
84
+ "needs to bump manually"
85
+ ],
86
+ "uuid": [
87
+ "8",
88
+ "uuid@9 emit non-ES5 build because of default parameters"
89
+ ]
52
90
  },
53
91
  "dependencies": {
54
92
  "@babel/runtime": "7.19.0",
55
93
  "adaptivecards": "2.11.1",
56
94
  "botframework-directlinejs": "0.15.1",
57
- "botframework-directlinespeech-sdk": "4.15.8-main.20230222.b8435f4",
58
- "botframework-webchat-api": "4.15.8-main.20230222.b8435f4",
59
- "botframework-webchat-component": "4.15.8-main.20230222.b8435f4",
60
- "botframework-webchat-core": "4.15.8-main.20230222.b8435f4",
95
+ "botframework-directlinespeech-sdk": "4.15.8-main.20230227.fe23bb4",
96
+ "botframework-webchat-api": "4.15.8-main.20230227.fe23bb4",
97
+ "botframework-webchat-component": "4.15.8-main.20230227.fe23bb4",
98
+ "botframework-webchat-core": "4.15.8-main.20230227.fe23bb4",
61
99
  "classnames": "2.3.2",
62
- "core-js": "3.25.3",
100
+ "core-js": "3.28.0",
63
101
  "markdown-it": "13.0.1",
64
- "markdown-it-attrs": "4.1.4",
102
+ "markdown-it-attrs": "4.1.6",
65
103
  "markdown-it-attrs-es5": "2.0.2",
66
104
  "markdown-it-for-inline": "0.1.1",
67
105
  "math-random": "2.0.1",
68
106
  "memoize-one": "6.0.0",
69
107
  "microsoft-cognitiveservices-speech-sdk": "1.17.0",
70
108
  "prop-types": "15.8.1",
71
- "sanitize-html": "2.7.2",
109
+ "sanitize-html": "2.10.0",
72
110
  "url-search-params-polyfill": "8.1.1",
73
111
  "uuid": "8.3.2",
74
112
  "web-speech-cognitive-services": "7.1.3",
@@ -77,27 +115,25 @@
77
115
  "devDependencies": {
78
116
  "@babel/cli": "^7.18.10",
79
117
  "@babel/core": "^7.19.1",
80
- "@babel/plugin-proposal-class-properties": "^7.18.6",
81
- "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
82
118
  "@babel/plugin-transform-runtime": "^7.19.1",
83
119
  "@babel/preset-env": "^7.19.1",
84
120
  "@babel/preset-react": "^7.18.6",
85
121
  "@babel/preset-typescript": "^7.18.6",
86
- "@types/node": "^18.7.22",
87
- "@types/react": "^18.0.21",
88
- "babel-loader": "^8.2.5",
122
+ "@types/node": "^18.14.1",
123
+ "@types/react": "^18.0.28",
124
+ "babel-loader": "^9.1.2",
89
125
  "babel-plugin-istanbul": "^6.1.1",
90
126
  "babel-plugin-transform-inline-environment-variables": "^0.4.4",
91
- "concurrently": "^7.4.0",
92
- "esbuild": "^0.15.9",
93
- "isomorphic-react": "4.15.8-main.20230222.b8435f4",
94
- "isomorphic-react-dom": "4.15.8-main.20230222.b8435f4",
95
- "source-map-loader": "^4.0.0",
127
+ "concurrently": "^7.6.0",
128
+ "esbuild": "^0.17.10",
129
+ "isomorphic-react": "4.15.8-main.20230227.fe23bb4",
130
+ "isomorphic-react-dom": "4.15.8-main.20230227.fe23bb4",
131
+ "source-map-loader": "^4.0.1",
96
132
  "terser-webpack-plugin": "^5.3.6",
97
- "typescript": "^4.8.3",
98
- "webpack": "^5.74.0",
99
- "webpack-cli": "^4.10.0",
100
- "webpack-stats-plugin": "^1.1.0"
133
+ "typescript": "^4.9.5",
134
+ "webpack": "^5.75.0",
135
+ "webpack-cli": "^5.0.1",
136
+ "webpack-stats-plugin": "^1.1.1"
101
137
  },
102
138
  "peerDependencies": {
103
139
  "react": ">= 16.8.6",
@@ -45,7 +45,7 @@ class Mod<TArgs extends unknown[]> {
45
45
  export default function useAdaptiveCardModEffect<TArgs extends unknown[]>(
46
46
  modder: (adaptiveCard: AdaptiveCard, cardElement: HTMLElement, ...args: TArgs) => () => void,
47
47
  adaptiveCard: AdaptiveCard
48
- ): readonly [(cardElement: HTMLElement) => void, () => void] {
48
+ ): readonly [(cardElement: HTMLElement, ...args: TArgs) => void, () => void] {
49
49
  const adaptiveCardRef = useValueRef(adaptiveCard);
50
50
  const mod = useMemo(() => new Mod<TArgs>(modder), [modder]);
51
51
  const reapplyRef = useRef<() => void>();
@@ -87,7 +87,7 @@ export default function useAdaptiveCardModEffect<TArgs extends unknown[]>(
87
87
  }, [mod, reapplyRef]);
88
88
 
89
89
  return useMemo(
90
- () => Object.freeze([handleApply, handleUndo]) as readonly [(cardElement: HTMLElement) => void, () => void],
90
+ () => Object.freeze([handleApply, handleUndo]) as readonly [typeof handleApply, typeof handleUndo],
91
91
  [handleApply, handleUndo]
92
92
  );
93
93
  }
@@ -60,13 +60,13 @@ const internalMarkdownIt = new MarkdownIt();
60
60
  const MARKDOWN_ATTRS_LEFT_DELIMITER = '⟬';
61
61
  // Make sure the delimiter is free from any RegExp characters, such as *, ?, etc.
62
62
  // IE11 does not support "u" flag and Babel could not remove it. We intentionally omitting the "u" flag here.
63
- // eslint-disable-next-line security/detect-non-literal-regexp, require-unicode-regexp
63
+ // eslint-disable-next-line require-unicode-regexp
64
64
  const MARKDOWN_ATTRS_LEFT_DELIMITER_PATTERN = new RegExp(MARKDOWN_ATTRS_LEFT_DELIMITER, 'g');
65
65
 
66
66
  const MARKDOWN_ATTRS_RIGHT_DELIMITER = '⟭';
67
67
  // Make sure the delimiter is free from any RegExp characters, such as *, ?, etc.
68
68
  // IE11 does not support "u" flag and Babel could not remove it. We intentionally omitting the "u" flag here.
69
- // eslint-disable-next-line security/detect-non-literal-regexp, require-unicode-regexp
69
+ // eslint-disable-next-line require-unicode-regexp
70
70
  const MARKDOWN_ATTRS_RIGHT_DELIMITER_PATTERN = new RegExp(MARKDOWN_ATTRS_RIGHT_DELIMITER, 'g');
71
71
 
72
72
  export default function render(