@botpress/webchat 4.5.2 → 5.5.1

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.
@@ -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
@@ -1,21 +1,19 @@
1
1
 
2
- > @botpress/webchat@4.5.2 build /home/runner/work/genisys/genisys/packages/webchat-components
2
+ > @botpress/webchat@5.5.1 build /home/runner/work/genisys/genisys/packages/webchat-components
3
3
  > vite build
4
4
 
5
5
  vite v5.4.8 building for production...
6
6
  transforming...
7
- ✓ 2420 modules transformed.
7
+ ✓ 2814 modules transformed.
8
8
  rendering chunks...
9
9
 
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- dist/style.css  56.97 kB │ gzip: 9.47 kB
13
- dist/index.js 891.25 kB │ gzip: 235.74 kB
12
+ dist/index.js 1,902.43 kB │ gzip: 424.83 kB
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 20648ms.
16
+ [vite:dts] Declaration files built in 27958ms.
18
17
 
19
- dist/style.css  56.97 kB │ gzip: 9.47 kB
20
- dist/index.umd.cjs 551.88 kB │ gzip: 180.62 kB
21
- ✓ built in 26.00s
18
+ dist/index.umd.cjs 1,213.64 kB │ gzip: 350.13 kB
19
+ ✓ built in 35.66s
@@ -1,8 +1,12 @@
1
1
  import zlib from 'node:zlib'
2
2
  import fs from 'node:fs'
3
3
 
4
- const ESM_BUNDLE_SIZE_LIMIT = 250000
5
- const CJS_BUNDLE_SIZE_LIMIT = 200000
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) {