@botpress/webchat 1.3.6 → 1.3.7
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/.turbo/turbo-build.log +10 -8
- package/dist/components/Header.d.ts +3 -3
- package/dist/contexts/WebchatContext.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAutosizeTextArea.d.ts +1 -0
- package/dist/index-5666ba1d.js +40718 -0
- package/dist/index-ebf49348.js +3240 -0
- package/dist/index.js +37 -46280
- package/dist/index.umd.cjs +189 -237
- package/dist/schemas/init.d.ts +500 -0
- package/dist/schemas/theme.d.ts +224 -0
- package/package.json +2 -1
package/dist/schemas/theme.d.ts
CHANGED
|
@@ -1412,6 +1412,16 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1412
1412
|
className?: string | undefined;
|
|
1413
1413
|
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1414
1414
|
}>>;
|
|
1415
|
+
poweredBy: z.ZodOptional<z.ZodObject<{
|
|
1416
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1417
|
+
style: z.ZodOptional<z.ZodEffects<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, CSSProperties, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1418
|
+
}, "strip", z.ZodTypeAny, {
|
|
1419
|
+
className?: string | undefined;
|
|
1420
|
+
style?: CSSProperties | undefined;
|
|
1421
|
+
}, {
|
|
1422
|
+
className?: string | undefined;
|
|
1423
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1424
|
+
}>>;
|
|
1415
1425
|
}, "strip", z.ZodTypeAny, {
|
|
1416
1426
|
container?: {
|
|
1417
1427
|
className?: string | undefined;
|
|
@@ -1429,6 +1439,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1429
1439
|
className?: string | undefined;
|
|
1430
1440
|
style?: CSSProperties | undefined;
|
|
1431
1441
|
} | undefined;
|
|
1442
|
+
poweredBy?: {
|
|
1443
|
+
className?: string | undefined;
|
|
1444
|
+
style?: CSSProperties | undefined;
|
|
1445
|
+
} | undefined;
|
|
1432
1446
|
}, {
|
|
1433
1447
|
container?: {
|
|
1434
1448
|
className?: string | undefined;
|
|
@@ -1446,6 +1460,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1446
1460
|
className?: string | undefined;
|
|
1447
1461
|
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1448
1462
|
} | undefined;
|
|
1463
|
+
poweredBy?: {
|
|
1464
|
+
className?: string | undefined;
|
|
1465
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1466
|
+
} | undefined;
|
|
1449
1467
|
}>>;
|
|
1450
1468
|
}, "strip", z.ZodTypeAny, {
|
|
1451
1469
|
container?: {
|
|
@@ -1469,6 +1487,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1469
1487
|
className?: string | undefined;
|
|
1470
1488
|
style?: CSSProperties | undefined;
|
|
1471
1489
|
} | undefined;
|
|
1490
|
+
poweredBy?: {
|
|
1491
|
+
className?: string | undefined;
|
|
1492
|
+
style?: CSSProperties | undefined;
|
|
1493
|
+
} | undefined;
|
|
1472
1494
|
} | undefined;
|
|
1473
1495
|
}, {
|
|
1474
1496
|
container?: {
|
|
@@ -1492,6 +1514,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1492
1514
|
className?: string | undefined;
|
|
1493
1515
|
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1494
1516
|
} | undefined;
|
|
1517
|
+
poweredBy?: {
|
|
1518
|
+
className?: string | undefined;
|
|
1519
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1520
|
+
} | undefined;
|
|
1495
1521
|
} | undefined;
|
|
1496
1522
|
}>>;
|
|
1497
1523
|
description: z.ZodOptional<z.ZodObject<{
|
|
@@ -1627,6 +1653,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1627
1653
|
className?: string | undefined;
|
|
1628
1654
|
style?: CSSProperties | undefined;
|
|
1629
1655
|
} | undefined;
|
|
1656
|
+
poweredBy?: {
|
|
1657
|
+
className?: string | undefined;
|
|
1658
|
+
style?: CSSProperties | undefined;
|
|
1659
|
+
} | undefined;
|
|
1630
1660
|
} | undefined;
|
|
1631
1661
|
} | undefined;
|
|
1632
1662
|
description?: {
|
|
@@ -1712,6 +1742,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1712
1742
|
className?: string | undefined;
|
|
1713
1743
|
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1714
1744
|
} | undefined;
|
|
1745
|
+
poweredBy?: {
|
|
1746
|
+
className?: string | undefined;
|
|
1747
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1748
|
+
} | undefined;
|
|
1715
1749
|
} | undefined;
|
|
1716
1750
|
} | undefined;
|
|
1717
1751
|
description?: {
|
|
@@ -1874,6 +1908,100 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
1874
1908
|
} | undefined;
|
|
1875
1909
|
}>>;
|
|
1876
1910
|
messageList: z.ZodOptional<z.ZodObject<{
|
|
1911
|
+
scrollbar: z.ZodOptional<z.ZodObject<{
|
|
1912
|
+
container: z.ZodOptional<z.ZodObject<{
|
|
1913
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1914
|
+
style: z.ZodOptional<z.ZodEffects<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, CSSProperties, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1915
|
+
}, "strip", z.ZodTypeAny, {
|
|
1916
|
+
className?: string | undefined;
|
|
1917
|
+
style?: CSSProperties | undefined;
|
|
1918
|
+
}, {
|
|
1919
|
+
className?: string | undefined;
|
|
1920
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1921
|
+
}>>;
|
|
1922
|
+
viewport: z.ZodOptional<z.ZodObject<{
|
|
1923
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1924
|
+
style: z.ZodOptional<z.ZodEffects<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, CSSProperties, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1925
|
+
}, "strip", z.ZodTypeAny, {
|
|
1926
|
+
className?: string | undefined;
|
|
1927
|
+
style?: CSSProperties | undefined;
|
|
1928
|
+
}, {
|
|
1929
|
+
className?: string | undefined;
|
|
1930
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1931
|
+
}>>;
|
|
1932
|
+
thumb: z.ZodOptional<z.ZodObject<{
|
|
1933
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1934
|
+
style: z.ZodOptional<z.ZodEffects<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, CSSProperties, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1935
|
+
}, "strip", z.ZodTypeAny, {
|
|
1936
|
+
className?: string | undefined;
|
|
1937
|
+
style?: CSSProperties | undefined;
|
|
1938
|
+
}, {
|
|
1939
|
+
className?: string | undefined;
|
|
1940
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1941
|
+
}>>;
|
|
1942
|
+
corner: z.ZodOptional<z.ZodObject<{
|
|
1943
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1944
|
+
style: z.ZodOptional<z.ZodEffects<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, CSSProperties, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1945
|
+
}, "strip", z.ZodTypeAny, {
|
|
1946
|
+
className?: string | undefined;
|
|
1947
|
+
style?: CSSProperties | undefined;
|
|
1948
|
+
}, {
|
|
1949
|
+
className?: string | undefined;
|
|
1950
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1951
|
+
}>>;
|
|
1952
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
1953
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
style: z.ZodOptional<z.ZodEffects<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, CSSProperties, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
1955
|
+
}, "strip", z.ZodTypeAny, {
|
|
1956
|
+
className?: string | undefined;
|
|
1957
|
+
style?: CSSProperties | undefined;
|
|
1958
|
+
}, {
|
|
1959
|
+
className?: string | undefined;
|
|
1960
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1961
|
+
}>>;
|
|
1962
|
+
}, "strip", z.ZodTypeAny, {
|
|
1963
|
+
container?: {
|
|
1964
|
+
className?: string | undefined;
|
|
1965
|
+
style?: CSSProperties | undefined;
|
|
1966
|
+
} | undefined;
|
|
1967
|
+
viewport?: {
|
|
1968
|
+
className?: string | undefined;
|
|
1969
|
+
style?: CSSProperties | undefined;
|
|
1970
|
+
} | undefined;
|
|
1971
|
+
thumb?: {
|
|
1972
|
+
className?: string | undefined;
|
|
1973
|
+
style?: CSSProperties | undefined;
|
|
1974
|
+
} | undefined;
|
|
1975
|
+
corner?: {
|
|
1976
|
+
className?: string | undefined;
|
|
1977
|
+
style?: CSSProperties | undefined;
|
|
1978
|
+
} | undefined;
|
|
1979
|
+
background?: {
|
|
1980
|
+
className?: string | undefined;
|
|
1981
|
+
style?: CSSProperties | undefined;
|
|
1982
|
+
} | undefined;
|
|
1983
|
+
}, {
|
|
1984
|
+
container?: {
|
|
1985
|
+
className?: string | undefined;
|
|
1986
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1987
|
+
} | undefined;
|
|
1988
|
+
viewport?: {
|
|
1989
|
+
className?: string | undefined;
|
|
1990
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1991
|
+
} | undefined;
|
|
1992
|
+
thumb?: {
|
|
1993
|
+
className?: string | undefined;
|
|
1994
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1995
|
+
} | undefined;
|
|
1996
|
+
corner?: {
|
|
1997
|
+
className?: string | undefined;
|
|
1998
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1999
|
+
} | undefined;
|
|
2000
|
+
background?: {
|
|
2001
|
+
className?: string | undefined;
|
|
2002
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2003
|
+
} | undefined;
|
|
2004
|
+
}>>;
|
|
1877
2005
|
container: z.ZodOptional<z.ZodObject<{
|
|
1878
2006
|
className: z.ZodOptional<z.ZodString>;
|
|
1879
2007
|
style: z.ZodOptional<z.ZodEffects<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, CSSProperties, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -2105,6 +2233,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
2105
2233
|
} | undefined;
|
|
2106
2234
|
}>>;
|
|
2107
2235
|
}, "strip", z.ZodTypeAny, {
|
|
2236
|
+
scrollbar?: {
|
|
2237
|
+
container?: {
|
|
2238
|
+
className?: string | undefined;
|
|
2239
|
+
style?: CSSProperties | undefined;
|
|
2240
|
+
} | undefined;
|
|
2241
|
+
viewport?: {
|
|
2242
|
+
className?: string | undefined;
|
|
2243
|
+
style?: CSSProperties | undefined;
|
|
2244
|
+
} | undefined;
|
|
2245
|
+
thumb?: {
|
|
2246
|
+
className?: string | undefined;
|
|
2247
|
+
style?: CSSProperties | undefined;
|
|
2248
|
+
} | undefined;
|
|
2249
|
+
corner?: {
|
|
2250
|
+
className?: string | undefined;
|
|
2251
|
+
style?: CSSProperties | undefined;
|
|
2252
|
+
} | undefined;
|
|
2253
|
+
background?: {
|
|
2254
|
+
className?: string | undefined;
|
|
2255
|
+
style?: CSSProperties | undefined;
|
|
2256
|
+
} | undefined;
|
|
2257
|
+
} | undefined;
|
|
2108
2258
|
container?: {
|
|
2109
2259
|
className?: string | undefined;
|
|
2110
2260
|
style?: CSSProperties | undefined;
|
|
@@ -2156,6 +2306,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
2156
2306
|
} | undefined;
|
|
2157
2307
|
} | undefined;
|
|
2158
2308
|
}, {
|
|
2309
|
+
scrollbar?: {
|
|
2310
|
+
container?: {
|
|
2311
|
+
className?: string | undefined;
|
|
2312
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2313
|
+
} | undefined;
|
|
2314
|
+
viewport?: {
|
|
2315
|
+
className?: string | undefined;
|
|
2316
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2317
|
+
} | undefined;
|
|
2318
|
+
thumb?: {
|
|
2319
|
+
className?: string | undefined;
|
|
2320
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2321
|
+
} | undefined;
|
|
2322
|
+
corner?: {
|
|
2323
|
+
className?: string | undefined;
|
|
2324
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2325
|
+
} | undefined;
|
|
2326
|
+
background?: {
|
|
2327
|
+
className?: string | undefined;
|
|
2328
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2329
|
+
} | undefined;
|
|
2330
|
+
} | undefined;
|
|
2159
2331
|
container?: {
|
|
2160
2332
|
className?: string | undefined;
|
|
2161
2333
|
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
@@ -3391,6 +3563,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
3391
3563
|
className?: string | undefined;
|
|
3392
3564
|
style?: CSSProperties | undefined;
|
|
3393
3565
|
} | undefined;
|
|
3566
|
+
poweredBy?: {
|
|
3567
|
+
className?: string | undefined;
|
|
3568
|
+
style?: CSSProperties | undefined;
|
|
3569
|
+
} | undefined;
|
|
3394
3570
|
} | undefined;
|
|
3395
3571
|
} | undefined;
|
|
3396
3572
|
description?: {
|
|
@@ -3443,6 +3619,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
3443
3619
|
} | undefined;
|
|
3444
3620
|
} | undefined;
|
|
3445
3621
|
messageList?: {
|
|
3622
|
+
scrollbar?: {
|
|
3623
|
+
container?: {
|
|
3624
|
+
className?: string | undefined;
|
|
3625
|
+
style?: CSSProperties | undefined;
|
|
3626
|
+
} | undefined;
|
|
3627
|
+
viewport?: {
|
|
3628
|
+
className?: string | undefined;
|
|
3629
|
+
style?: CSSProperties | undefined;
|
|
3630
|
+
} | undefined;
|
|
3631
|
+
thumb?: {
|
|
3632
|
+
className?: string | undefined;
|
|
3633
|
+
style?: CSSProperties | undefined;
|
|
3634
|
+
} | undefined;
|
|
3635
|
+
corner?: {
|
|
3636
|
+
className?: string | undefined;
|
|
3637
|
+
style?: CSSProperties | undefined;
|
|
3638
|
+
} | undefined;
|
|
3639
|
+
background?: {
|
|
3640
|
+
className?: string | undefined;
|
|
3641
|
+
style?: CSSProperties | undefined;
|
|
3642
|
+
} | undefined;
|
|
3643
|
+
} | undefined;
|
|
3446
3644
|
container?: {
|
|
3447
3645
|
className?: string | undefined;
|
|
3448
3646
|
style?: CSSProperties | undefined;
|
|
@@ -3772,6 +3970,10 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
3772
3970
|
className?: string | undefined;
|
|
3773
3971
|
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3774
3972
|
} | undefined;
|
|
3973
|
+
poweredBy?: {
|
|
3974
|
+
className?: string | undefined;
|
|
3975
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
3976
|
+
} | undefined;
|
|
3775
3977
|
} | undefined;
|
|
3776
3978
|
} | undefined;
|
|
3777
3979
|
description?: {
|
|
@@ -3824,6 +4026,28 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
3824
4026
|
} | undefined;
|
|
3825
4027
|
} | undefined;
|
|
3826
4028
|
messageList?: {
|
|
4029
|
+
scrollbar?: {
|
|
4030
|
+
container?: {
|
|
4031
|
+
className?: string | undefined;
|
|
4032
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4033
|
+
} | undefined;
|
|
4034
|
+
viewport?: {
|
|
4035
|
+
className?: string | undefined;
|
|
4036
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4037
|
+
} | undefined;
|
|
4038
|
+
thumb?: {
|
|
4039
|
+
className?: string | undefined;
|
|
4040
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4041
|
+
} | undefined;
|
|
4042
|
+
corner?: {
|
|
4043
|
+
className?: string | undefined;
|
|
4044
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4045
|
+
} | undefined;
|
|
4046
|
+
background?: {
|
|
4047
|
+
className?: string | undefined;
|
|
4048
|
+
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4049
|
+
} | undefined;
|
|
4050
|
+
} | undefined;
|
|
3827
4051
|
container?: {
|
|
3828
4052
|
className?: string | undefined;
|
|
3829
4053
|
style?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/webchat",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.umd.cjs",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@radix-ui/react-avatar": "^1.0.3",
|
|
27
27
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
28
28
|
"@radix-ui/react-dialog": "^1.0.4",
|
|
29
|
+
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
29
30
|
"@types/qs": "^6.9.8",
|
|
30
31
|
"axios": "1.2.5",
|
|
31
32
|
"clsx": "^2.0.0",
|