botframework-webchat 4.15.3-main.20220616.9fa8d2b → 4.15.3-main.20220621.df1b3d6

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.
package/lib/addVersion.js CHANGED
@@ -28,7 +28,7 @@ function setMetaTag(name, content) {
28
28
 
29
29
  function addVersion(variant) {
30
30
  setMetaTag('botframework-webchat:bundle:variant', variant);
31
- setMetaTag('botframework-webchat:bundle:version', "4.15.3-main.20220616.9fa8d2b");
31
+ setMetaTag('botframework-webchat:bundle:version', "4.15.3-main.20220621.df1b3d6");
32
32
  setMetaTag('botframework-webchat:core:version', _botframeworkWebchatCore.version);
33
33
  setMetaTag('botframework-webchat:ui:version', _botframeworkWebchatComponent.version);
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botframework-webchat",
3
- "version": "4.15.3-main.20220616.9fa8d2b",
3
+ "version": "4.15.3-main.20220621.df1b3d6",
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",
@@ -17,6 +17,12 @@
17
17
  "url": "https://github.com/microsoft/BotFramework-WebChat/issues"
18
18
  },
19
19
  "homepage": "https://github.com/microsoft/BotFramework-WebChat/#readme",
20
+ "files": [
21
+ "dist/**/*.js",
22
+ "dist/**/*.map",
23
+ "lib/**/*",
24
+ "src/**/*"
25
+ ],
20
26
  "scripts": {
21
27
  "build": "npm run build:typescript && npm run build:babel && npm run build:webpack",
22
28
  "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",
@@ -42,10 +48,10 @@
42
48
  "@babel/runtime": "7.17.2",
43
49
  "adaptivecards": "2.10.0",
44
50
  "botframework-directlinejs": "0.15.1",
45
- "botframework-directlinespeech-sdk": "4.15.3-main.20220616.9fa8d2b",
46
- "botframework-webchat-api": "4.15.3-main.20220616.9fa8d2b",
47
- "botframework-webchat-component": "4.15.3-main.20220616.9fa8d2b",
48
- "botframework-webchat-core": "4.15.3-main.20220616.9fa8d2b",
51
+ "botframework-directlinespeech-sdk": "4.15.3-main.20220621.df1b3d6",
52
+ "botframework-webchat-api": "4.15.3-main.20220621.df1b3d6",
53
+ "botframework-webchat-component": "4.15.3-main.20220621.df1b3d6",
54
+ "botframework-webchat-core": "4.15.3-main.20220621.df1b3d6",
49
55
  "classnames": "2.3.1",
50
56
  "core-js": "3.21.1",
51
57
  "markdown-it": "12.3.2",
@@ -77,8 +83,8 @@
77
83
  "babel-plugin-istanbul": "^6.1.1",
78
84
  "babel-plugin-transform-inline-environment-variables": "^0.4.3",
79
85
  "concurrently": "^7.0.0",
80
- "isomorphic-react": "4.15.3-main.20220616.9fa8d2b",
81
- "isomorphic-react-dom": "4.15.3-main.20220616.9fa8d2b",
86
+ "isomorphic-react": "4.15.3-main.20220621.df1b3d6",
87
+ "isomorphic-react-dom": "4.15.3-main.20220621.df1b3d6",
82
88
  "source-map-loader": "^3.0.1",
83
89
  "terser-webpack-plugin": "^5.3.1",
84
90
  "typescript": "^4.6.2",
package/.eslintrc.yml DELETED
@@ -1,7 +0,0 @@
1
- extends:
2
- - ../../.eslintrc.react.yml
3
-
4
- # This package is expected to run inside a web browser.
5
- # When React Native work land, this package will be consumed by both web browser and React Native, via entrypoints.
6
- env:
7
- browser: true
package/.prettierrc.yml DELETED
@@ -1,11 +0,0 @@
1
- arrowParens: avoid
2
- bracketSameLine: false
3
- bracketSpacing: true
4
- endOfLine: auto
5
- printWidth: 120
6
- proseWrap: preserve
7
- quoteProps: as-needed
8
- semi: true
9
- singleQuote: true
10
- tabWidth: 2
11
- trailingComma: none
package/babel.config.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "env": {
3
- "test": {
4
- "plugins": ["babel-plugin-istanbul"]
5
- }
6
- },
7
- "ignore": ["src/index.tsx", "src/index-es5.tsx", "src/index-minimal.tsx"],
8
- "plugins": [
9
- "@babel/plugin-proposal-class-properties",
10
- "@babel/plugin-proposal-object-rest-spread",
11
- "@babel/plugin-transform-runtime",
12
- [
13
- "babel-plugin-transform-inline-environment-variables",
14
- {
15
- "include": ["NODE_ENV", "node_env", "npm_package_version"]
16
- }
17
- ]
18
- ],
19
- "presets": [
20
- "@babel/preset-typescript",
21
- [
22
- "@babel/preset-env",
23
- {
24
- "targets": {
25
- "browsers": ["last 2 versions"]
26
- },
27
- "modules": "commonjs"
28
- }
29
- ],
30
- "@babel/react"
31
- ],
32
- "sourceMaps": "inline",
33
- "sourceRoot": "bundle:///"
34
- }
@@ -1,10 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "modules": "commonjs"
7
- }
8
- ]
9
- ]
10
- }
package/webpack.config.js DELETED
@@ -1,140 +0,0 @@
1
- /* eslint @typescript-eslint/no-var-requires: "off" */
2
- /* eslint no-magic-numbers: ["error", { "ignore": [2] }] */
3
- /* global __dirname, module, process */
4
-
5
- const { join } = require('path');
6
- const { resolve } = require('path');
7
- const { StatsWriterPlugin } = require('webpack-stats-plugin');
8
- const TerserPlugin = require('terser-webpack-plugin');
9
-
10
- let config = {
11
- entry: {
12
- webchat: './lib/index.js',
13
- 'webchat-es5': './lib/index-es5.js',
14
- 'webchat-minimal': './lib/index-minimal.js'
15
- },
16
- mode: 'production',
17
- module: {
18
- rules: [
19
- {
20
- // To speed up bundling, we are limiting Babel to a number of packages which does not publish ES5 bits.
21
- test: /\/node_modules\/(botframework-streaming|buffer|nanoid|postcss|punycode|sanitize-html)\//iu,
22
- use: {
23
- loader: 'babel-loader',
24
- options: {
25
- presets: [
26
- [
27
- '@babel/preset-env',
28
- {
29
- modules: 'commonjs'
30
- }
31
- ]
32
- ]
33
- }
34
- }
35
- }
36
- ]
37
- },
38
- optimization: {
39
- minimizer: [
40
- // Webpack use terser for minification
41
- // https://webpack.js.org/configuration/mode#usage
42
- // https://webpack.js.org/plugins/terser-webpack-plugin/#terseroptions
43
- new TerserPlugin({
44
- terserOptions: {
45
- // https://github.com/terser-js/terser#minify-options
46
- output: {
47
- ascii_only: true
48
- }
49
- }
50
- })
51
- ]
52
- },
53
- output: {
54
- libraryTarget: 'umd'
55
- },
56
- plugins: [
57
- new StatsWriterPlugin({
58
- filename: 'stats.json',
59
- transform: (_, opts) => JSON.stringify(opts.compiler.getStats().toJson({ chunkModules: true }), null, 2)
60
- })
61
- ],
62
- resolve: {
63
- alias: {
64
- // TODO: [P1] #3914 It is smaller to use /lib/ instead of /es2015/ with Webpack.
65
- // Verifies if /es2015/ is better when moving to esbuild.
66
- 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports': resolve(
67
- __dirname,
68
- 'node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.browser/Exports.js'
69
- ),
70
- 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports': resolve(
71
- __dirname,
72
- 'node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common.speech/Exports.js'
73
- ),
74
- 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports': resolve(
75
- __dirname,
76
- 'node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Exports.js'
77
- ),
78
- 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat': resolve(
79
- __dirname,
80
- 'node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/AudioStreamFormat.js'
81
- ),
82
- 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports': resolve(
83
- __dirname,
84
- 'node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Exports.js'
85
- ),
86
- 'microsoft-cognitiveservices-speech-sdk/distrib/lib/microsoft.cognitiveservices.speech.sdk': resolve(
87
- __dirname,
88
- 'node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/microsoft.cognitiveservices.speech.sdk.js'
89
- ),
90
-
91
- // This line must be placed after other specific imports.
92
- 'microsoft-cognitiveservices-speech-sdk': resolve(
93
- __dirname,
94
- 'node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/microsoft.cognitiveservices.speech.sdk.js'
95
- ),
96
- react: resolve(__dirname, 'node_modules/isomorphic-react/dist/react.js'),
97
- 'react-dom': resolve(__dirname, 'node_modules/isomorphic-react-dom/dist/react-dom.js')
98
- }
99
- },
100
- target: ['web', 'es5']
101
- };
102
-
103
- // VSTS always emits uppercase environment variables.
104
- const node_env = process.env.node_env || process.env.NODE_ENV;
105
-
106
- // Source maps are only added to development bits because of being slow to load in the browser.
107
- // - "eval-source-map" took 1.6s to load in browser, 1.5s to rebuild
108
- // - "source-map" took 500ms to load, 5s to rebuild
109
- // - No source map took 300ms to load
110
- // "Cheap modules" does not have column information, thus, breakpoint does not work correctly.
111
- if (node_env !== 'production' && node_env !== 'test') {
112
- config = {
113
- ...config,
114
- devtool: 'eval-source-map',
115
- mode: 'development',
116
- module: {
117
- ...config.module,
118
- rules: [
119
- ...((config.module || {}).rules || []),
120
- {
121
- enforce: 'pre',
122
- include: [
123
- join(__dirname, './lib'),
124
- join(__dirname, '../component/lib'),
125
- join(__dirname, '../core/lib'),
126
- join(__dirname, '../directlinespeech/lib')
127
- ],
128
- test: /\.js$/iu,
129
- use: ['source-map-loader']
130
- }
131
- ]
132
- },
133
- output: {
134
- ...config.output,
135
- devtoolNamespace: 'botframework-webchat'
136
- }
137
- };
138
- }
139
-
140
- module.exports = config;