@botpress/webchat 4.5.1 → 5.3.2
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/.storybook/preview.tsx +7 -0
- package/.turbo/turbo-build.log +6 -8
- package/check-bundle-size.js +6 -2
- package/dist/index.d.ts +550 -830
- package/dist/index.js +65586 -17580
- package/dist/index.umd.cjs +1074 -191
- package/package.json +13 -8
- package/dist/style.css +0 -1
package/.storybook/preview.tsx
CHANGED
|
@@ -83,6 +83,13 @@ const preview: Preview = {
|
|
|
83
83
|
},
|
|
84
84
|
decorators: [
|
|
85
85
|
(Story, context) => {
|
|
86
|
+
// Full-surface stories (e.g. the whole Chat) render their own Container +
|
|
87
|
+
// providers, so the sub-component wrapper below would double-nest them
|
|
88
|
+
// (two Containers / LazyMotion / ModalProvider) and break rendering. Let
|
|
89
|
+
// those stories opt out and supply their own frame.
|
|
90
|
+
if (context.parameters?.fullSurface) {
|
|
91
|
+
return <Story />
|
|
92
|
+
}
|
|
86
93
|
const { themeMode, variant, radius, color } = context.globals
|
|
87
94
|
return (
|
|
88
95
|
// TODO: These css hacks should not be required
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@
|
|
2
|
+
> @botpress/webchat@5.3.2 build /home/runner/work/genisys/genisys/packages/webchat-components
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v5.4.8 [32mbuilding for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
|
-
[32m✓[39m
|
|
7
|
+
[32m✓[39m 2812 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
9
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
|
-
[2mdist/[22m[
|
|
13
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m890.92 kB[39m[22m[2m │ gzip: 235.63 kB[22m
|
|
12
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m1,887.30 kB[39m[22m[2m │ gzip: 421.05 kB[22m
|
|
14
13
|
[vite:dts] Start rollup declaration files...
|
|
15
14
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
16
15
|
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
17
|
-
[vite:dts] Declaration files built in
|
|
16
|
+
[vite:dts] Declaration files built in 27349ms.
|
|
18
17
|
|
|
19
|
-
[2mdist/[22m[
|
|
20
|
-
[
|
|
21
|
-
[32m✓ built in 25.58s[39m
|
|
18
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m1,202.73 kB[39m[22m[2m │ gzip: 346.52 kB[22m
|
|
19
|
+
[32m✓ built in 34.20s[39m
|
package/check-bundle-size.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import zlib from 'node:zlib'
|
|
2
2
|
import fs from 'node:fs'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// v5 raises these limits: the redesign adds motion (Framer Motion) + @emoji-mart
|
|
5
|
+
// + use-stick-to-bottom. As of v5.0.0 the gzipped bundle is ~399kB (ESM) / ~328kB
|
|
6
|
+
// (CJS); @emoji-mart/data (the emoji dataset) is the largest single contributor and
|
|
7
|
+
// is the prime candidate for lazy-loading / code-splitting to bring these back down.
|
|
8
|
+
const ESM_BUNDLE_SIZE_LIMIT = 430000
|
|
9
|
+
const CJS_BUNDLE_SIZE_LIMIT = 355000
|
|
6
10
|
|
|
7
11
|
class BundleSizeExceededError extends Error {
|
|
8
12
|
constructor(filePath, maxSize, actualSize) {
|