@botpress/webchat 4.2.2 → 4.4.0
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/main.ts +10 -27
- package/.storybook/preview.tsx +2 -2
- package/.turbo/turbo-build.log +8 -8
- package/ARCHITECTURE.md +737 -0
- package/dist/index.d.ts +333 -142
- package/dist/index.js +15376 -9451
- package/dist/index.umd.cjs +122 -113
- package/dist/style.css +1 -1
- package/package.json +14 -15
package/.storybook/main.ts
CHANGED
|
@@ -1,30 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function getAbsolutePath(value) {
|
|
8
|
-
return dirname(require.resolve(join(value, 'package.json')))
|
|
1
|
+
import { defineMain } from '@storybook/react-vite/node'
|
|
2
|
+
import { fileURLToPath } from 'node:url'
|
|
3
|
+
import { dirname } from 'node:path'
|
|
4
|
+
|
|
5
|
+
function getAbsolutePath(value: string): any {
|
|
6
|
+
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)))
|
|
9
7
|
}
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
const config = {
|
|
9
|
+
export default defineMain({
|
|
13
10
|
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getAbsolutePath('@chromatic-com/storybook'),
|
|
18
|
-
getAbsolutePath('@storybook/addon-interactions'),
|
|
19
|
-
],
|
|
20
|
-
framework: {
|
|
21
|
-
name: getAbsolutePath('@storybook/react-vite'),
|
|
22
|
-
options: {},
|
|
23
|
-
},
|
|
24
|
-
async viteFinal(config) {
|
|
25
|
-
config.plugins = await withoutVitePlugins(config.plugins, ['vite:dts'])
|
|
26
|
-
|
|
27
|
-
return config
|
|
28
|
-
},
|
|
29
|
-
}
|
|
30
|
-
export default config
|
|
11
|
+
framework: getAbsolutePath('@storybook/react-vite'),
|
|
12
|
+
addons: ['@storybook/addon-onboarding', '@storybook/addon-docs'],
|
|
13
|
+
})
|
package/.storybook/preview.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import '../src/index.css' // This has to be imported as early as possible
|
|
2
|
-
import { type Preview } from '@storybook/react'
|
|
2
|
+
import { type Preview } from '@storybook/react-vite'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
import { Container } from '../src/components'
|
|
5
5
|
import { StylesheetProvider } from '../src/providers'
|
|
@@ -31,7 +31,7 @@ const colorMap = {
|
|
|
31
31
|
pink: '#ec4899',
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/** @type { import('@storybook/react').Preview } */
|
|
34
|
+
/** @type { import('@storybook/react-vite').Preview } */
|
|
35
35
|
const preview: Preview = {
|
|
36
36
|
initialGlobals: {
|
|
37
37
|
themeMode: 'light',
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@4.
|
|
2
|
+
> @botpress/webchat@4.4.0 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 2411 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
9
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
13
|
-
[2mdist/[22m[36mindex.js [39m[1m[
|
|
12
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 57.08 kB[22m[1m[22m[2m │ gzip: 9.49 kB[22m
|
|
13
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m876.84 kB[39m[22m[2m │ gzip: 231.52 kB[22m
|
|
14
14
|
[vite:dts] Start rollup declaration files...
|
|
15
15
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
16
16
|
*** 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
|
|
17
|
+
[vite:dts] Declaration files built in 21112ms.
|
|
18
18
|
|
|
19
|
-
[2mdist/[22m[35mstyle.css [39m[1m[2m
|
|
20
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[
|
|
21
|
-
[32m✓ built in
|
|
19
|
+
[2mdist/[22m[35mstyle.css [39m[1m[2m 57.08 kB[22m[1m[22m[2m │ gzip: 9.49 kB[22m
|
|
20
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m537.49 kB[39m[22m[2m │ gzip: 176.29 kB[22m
|
|
21
|
+
[32m✓ built in 26.72s[39m
|