reachat 2.1.0-alpha.14 → 2.1.0-alpha.16
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/dist/{CSVFileRenderer-DSWdpf53.js → CSVFileRenderer-CvCBNO7D.js} +2 -2
- package/dist/{CSVFileRenderer-DSWdpf53.js.map → CSVFileRenderer-CvCBNO7D.js.map} +1 -1
- package/dist/ChatInput/ChatInput.d.ts +4 -0
- package/dist/ChatInput/FileInput.d.ts +4 -0
- package/dist/{DefaultFileRenderer-C39_R2nb.js → DefaultFileRenderer-CAAIg0Bh.js} +2 -2
- package/dist/{DefaultFileRenderer-C39_R2nb.js.map → DefaultFileRenderer-CAAIg0Bh.js.map} +1 -1
- package/dist/Markdown/plugins/remarkCve.d.ts +2 -1
- package/dist/docs.json +40 -0
- package/dist/{index--Kv_qij4.js → index-VGGsv6w4.js} +25 -16
- package/dist/index-VGGsv6w4.js.map +1 -0
- package/dist/index.css +93 -93
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +22 -13
- package/dist/index.umd.cjs.map +1 -1
- package/dist/stories/Markdown.stories.tsx +147 -0
- package/package.json +1 -1
- package/dist/index--Kv_qij4.js.map +0 -1
package/dist/index.css
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
--color-white: var(--color-neutrals-pure-white-dnt-1000);
|
|
11
11
|
--spacing: 0.25rem;
|
|
12
12
|
--container-sm: 24rem;
|
|
13
|
+
--container-4xl: 56rem;
|
|
13
14
|
--text-xs: 0.75rem;
|
|
14
15
|
--text-xs--line-height: 0.875rem;
|
|
15
16
|
--text-sm: 0.875rem;
|
|
@@ -44,7 +45,6 @@
|
|
|
44
45
|
--radius-xs: 0.125rem;
|
|
45
46
|
--radius-md: 0.375rem;
|
|
46
47
|
--radius-xl: 0.75rem;
|
|
47
|
-
--radius-2xl: 1rem;
|
|
48
48
|
--radius-3xl: 1.5rem;
|
|
49
49
|
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
50
50
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -831,6 +831,9 @@
|
|
|
831
831
|
.relative {
|
|
832
832
|
position: relative;
|
|
833
833
|
}
|
|
834
|
+
.static {
|
|
835
|
+
position: static;
|
|
836
|
+
}
|
|
834
837
|
.sticky {
|
|
835
838
|
position: sticky;
|
|
836
839
|
}
|
|
@@ -882,6 +885,9 @@
|
|
|
882
885
|
.bottom-0 {
|
|
883
886
|
bottom: calc(var(--spacing) * 0);
|
|
884
887
|
}
|
|
888
|
+
.bottom-1 {
|
|
889
|
+
bottom: calc(var(--spacing) * 1);
|
|
890
|
+
}
|
|
885
891
|
.bottom-5 {
|
|
886
892
|
bottom: calc(var(--spacing) * 5);
|
|
887
893
|
}
|
|
@@ -1387,9 +1393,6 @@
|
|
|
1387
1393
|
.h-11 {
|
|
1388
1394
|
height: calc(var(--spacing) * 11);
|
|
1389
1395
|
}
|
|
1390
|
-
.h-24 {
|
|
1391
|
-
height: calc(var(--spacing) * 24);
|
|
1392
|
-
}
|
|
1393
1396
|
.h-46 {
|
|
1394
1397
|
height: calc(var(--spacing) * 46);
|
|
1395
1398
|
}
|
|
@@ -1423,9 +1426,6 @@
|
|
|
1423
1426
|
.h-\[60px\] {
|
|
1424
1427
|
height: 60px;
|
|
1425
1428
|
}
|
|
1426
|
-
.h-\[100px\] {
|
|
1427
|
-
height: 100px;
|
|
1428
|
-
}
|
|
1429
1429
|
.h-\[300px\] {
|
|
1430
1430
|
height: 300px;
|
|
1431
1431
|
}
|
|
@@ -1546,9 +1546,6 @@
|
|
|
1546
1546
|
.w-3\.5 {
|
|
1547
1547
|
width: calc(var(--spacing) * 3.5);
|
|
1548
1548
|
}
|
|
1549
|
-
.w-3\/4 {
|
|
1550
|
-
width: calc(3/4 * 100%);
|
|
1551
|
-
}
|
|
1552
1549
|
.w-3\/5 {
|
|
1553
1550
|
width: calc(3/5 * 100%);
|
|
1554
1551
|
}
|
|
@@ -1558,9 +1555,6 @@
|
|
|
1558
1555
|
.w-5 {
|
|
1559
1556
|
width: calc(var(--spacing) * 5);
|
|
1560
1557
|
}
|
|
1561
|
-
.w-5\/6 {
|
|
1562
|
-
width: calc(5/6 * 100%);
|
|
1563
|
-
}
|
|
1564
1558
|
.w-6 {
|
|
1565
1559
|
width: calc(var(--spacing) * 6);
|
|
1566
1560
|
}
|
|
@@ -1579,9 +1573,6 @@
|
|
|
1579
1573
|
.w-16 {
|
|
1580
1574
|
width: calc(var(--spacing) * 16);
|
|
1581
1575
|
}
|
|
1582
|
-
.w-24 {
|
|
1583
|
-
width: calc(var(--spacing) * 24);
|
|
1584
|
-
}
|
|
1585
1576
|
.w-\[9px\] {
|
|
1586
1577
|
width: 9px;
|
|
1587
1578
|
}
|
|
@@ -1594,27 +1585,12 @@
|
|
|
1594
1585
|
.w-\[50px\] {
|
|
1595
1586
|
width: 50px;
|
|
1596
1587
|
}
|
|
1597
|
-
.w-\[60\%\] {
|
|
1598
|
-
width: 60%;
|
|
1599
|
-
}
|
|
1600
1588
|
.w-\[60px\] {
|
|
1601
1589
|
width: 60px;
|
|
1602
1590
|
}
|
|
1603
|
-
.w-\[70\%\] {
|
|
1604
|
-
width: 70%;
|
|
1605
|
-
}
|
|
1606
1591
|
.w-\[80\%\] {
|
|
1607
1592
|
width: 80%;
|
|
1608
1593
|
}
|
|
1609
|
-
.w-\[90\%\] {
|
|
1610
|
-
width: 90%;
|
|
1611
|
-
}
|
|
1612
|
-
.w-\[100px\] {
|
|
1613
|
-
width: 100px;
|
|
1614
|
-
}
|
|
1615
|
-
.w-\[200px\] {
|
|
1616
|
-
width: 200px;
|
|
1617
|
-
}
|
|
1618
1594
|
.w-\[250px\] {
|
|
1619
1595
|
width: 250px;
|
|
1620
1596
|
}
|
|
@@ -1642,6 +1618,9 @@
|
|
|
1642
1618
|
.w-px {
|
|
1643
1619
|
width: 1px;
|
|
1644
1620
|
}
|
|
1621
|
+
.max-w-4xl {
|
|
1622
|
+
max-width: var(--container-4xl);
|
|
1623
|
+
}
|
|
1645
1624
|
.max-w-10 {
|
|
1646
1625
|
max-width: calc(var(--spacing) * 10);
|
|
1647
1626
|
}
|
|
@@ -1787,8 +1766,8 @@
|
|
|
1787
1766
|
.rotate-180 {
|
|
1788
1767
|
rotate: 180deg;
|
|
1789
1768
|
}
|
|
1790
|
-
.
|
|
1791
|
-
|
|
1769
|
+
.transform {
|
|
1770
|
+
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
1792
1771
|
}
|
|
1793
1772
|
.cursor-\[initial\] {
|
|
1794
1773
|
cursor: initial;
|
|
@@ -2035,6 +2014,9 @@
|
|
|
2035
2014
|
.overflow-hidden {
|
|
2036
2015
|
overflow: hidden;
|
|
2037
2016
|
}
|
|
2017
|
+
.overflow-x-auto {
|
|
2018
|
+
overflow-x: auto;
|
|
2019
|
+
}
|
|
2038
2020
|
.overflow-x-hidden {
|
|
2039
2021
|
overflow-x: hidden;
|
|
2040
2022
|
}
|
|
@@ -2074,9 +2056,6 @@
|
|
|
2074
2056
|
.rounded-\(--tags-details-corner-radius-base\) {
|
|
2075
2057
|
border-radius: var(--tags-details-corner-radius-base);
|
|
2076
2058
|
}
|
|
2077
|
-
.rounded-2xl {
|
|
2078
|
-
border-radius: var(--radius-2xl);
|
|
2079
|
-
}
|
|
2080
2059
|
.rounded-3xl {
|
|
2081
2060
|
border-radius: var(--radius-3xl);
|
|
2082
2061
|
}
|
|
@@ -2578,9 +2557,6 @@
|
|
|
2578
2557
|
.bg-background-neutral-raised-3 {
|
|
2579
2558
|
background-color: var(--background-neutral-raised-3);
|
|
2580
2559
|
}
|
|
2581
|
-
.bg-background-neutral-raised-4 {
|
|
2582
|
-
background-color: var(--background-neutral-raised-4);
|
|
2583
|
-
}
|
|
2584
2560
|
.bg-background-neutral-raised-5 {
|
|
2585
2561
|
background-color: var(--background-neutral-raised-5);
|
|
2586
2562
|
}
|
|
@@ -3061,10 +3037,6 @@
|
|
|
3061
3037
|
}
|
|
3062
3038
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
3063
3039
|
}
|
|
3064
|
-
.bg-gradient-to-r {
|
|
3065
|
-
--tw-gradient-position: to right in oklab;
|
|
3066
|
-
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
3067
|
-
}
|
|
3068
3040
|
.\[background-image\:linear-gradient\(-126\.85deg\,_rgba\(30\,_30\,_46\,_0\)_63\.1678\%\,_\#2F6AFF_88\.9438\%\)\] {
|
|
3069
3041
|
background-image: linear-gradient(-126.85deg, rgba(30, 30, 46, 0) 63.1678%, #2F6AFF 88.9438%);
|
|
3070
3042
|
}
|
|
@@ -3074,10 +3046,6 @@
|
|
|
3074
3046
|
.bg-none {
|
|
3075
3047
|
background-image: none;
|
|
3076
3048
|
}
|
|
3077
|
-
.from-background-neutral-raised-3 {
|
|
3078
|
-
--tw-gradient-from: var(--background-neutral-raised-3);
|
|
3079
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3080
|
-
}
|
|
3081
3049
|
.from-blue-skybolt-a-500 {
|
|
3082
3050
|
--tw-gradient-from: var(--color-blue-skybolt-a-500);
|
|
3083
3051
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
@@ -3090,19 +3058,10 @@
|
|
|
3090
3058
|
--tw-gradient-from: transparent;
|
|
3091
3059
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3092
3060
|
}
|
|
3093
|
-
.via-background-neutral-raised-4 {
|
|
3094
|
-
--tw-gradient-via: var(--background-neutral-raised-4);
|
|
3095
|
-
--tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
|
|
3096
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops);
|
|
3097
|
-
}
|
|
3098
3061
|
.to-background-brand-base {
|
|
3099
3062
|
--tw-gradient-to: var(--background-brand-base);
|
|
3100
3063
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3101
3064
|
}
|
|
3102
|
-
.to-background-neutral-raised-3 {
|
|
3103
|
-
--tw-gradient-to: var(--background-neutral-raised-3);
|
|
3104
|
-
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3105
|
-
}
|
|
3106
3065
|
.to-blue-hyperstream-500 {
|
|
3107
3066
|
--tw-gradient-to: var(--color-blue-hyperstream-500);
|
|
3108
3067
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
@@ -3119,9 +3078,6 @@
|
|
|
3119
3078
|
--tw-gradient-to: transparent;
|
|
3120
3079
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
3121
3080
|
}
|
|
3122
|
-
.bg-\[length\:200\%_100\%\] {
|
|
3123
|
-
background-size: 200% 100%;
|
|
3124
|
-
}
|
|
3125
3081
|
.bg-cover {
|
|
3126
3082
|
background-size: cover;
|
|
3127
3083
|
}
|
|
@@ -4223,12 +4179,19 @@
|
|
|
4223
4179
|
.capitalize {
|
|
4224
4180
|
text-transform: capitalize;
|
|
4225
4181
|
}
|
|
4182
|
+
.lowercase {
|
|
4183
|
+
text-transform: lowercase;
|
|
4184
|
+
}
|
|
4226
4185
|
.uppercase {
|
|
4227
4186
|
text-transform: uppercase;
|
|
4228
4187
|
}
|
|
4229
4188
|
.italic {
|
|
4230
4189
|
font-style: italic;
|
|
4231
4190
|
}
|
|
4191
|
+
.ordinal {
|
|
4192
|
+
--tw-ordinal: ordinal;
|
|
4193
|
+
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
4194
|
+
}
|
|
4232
4195
|
.underline {
|
|
4233
4196
|
text-decoration-line: underline;
|
|
4234
4197
|
}
|
|
@@ -4241,9 +4204,6 @@
|
|
|
4241
4204
|
.opacity-10 {
|
|
4242
4205
|
opacity: 10%;
|
|
4243
4206
|
}
|
|
4244
|
-
.opacity-30 {
|
|
4245
|
-
opacity: 30%;
|
|
4246
|
-
}
|
|
4247
4207
|
.opacity-40 {
|
|
4248
4208
|
opacity: 40%;
|
|
4249
4209
|
}
|
|
@@ -4268,6 +4228,10 @@
|
|
|
4268
4228
|
.opacity-100 {
|
|
4269
4229
|
opacity: 100%;
|
|
4270
4230
|
}
|
|
4231
|
+
.shadow {
|
|
4232
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
4233
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4234
|
+
}
|
|
4271
4235
|
.shadow-2xl {
|
|
4272
4236
|
--tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
|
|
4273
4237
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -4569,15 +4533,6 @@
|
|
|
4569
4533
|
}
|
|
4570
4534
|
}
|
|
4571
4535
|
}
|
|
4572
|
-
.group-hover\:stroke-selectors-colors-checkbox-selected-assets-hover {
|
|
4573
|
-
&:is(:where(.group):hover *) {
|
|
4574
|
-
@media (hover: hover) {
|
|
4575
|
-
stroke: var(
|
|
4576
|
-
--content-assets-on-color-light-light
|
|
4577
|
-
);
|
|
4578
|
-
}
|
|
4579
|
-
}
|
|
4580
|
-
}
|
|
4581
4536
|
.group-hover\:text-buttons-colors-core-icon-ghost-text-hover {
|
|
4582
4537
|
&:is(:where(.group):hover *) {
|
|
4583
4538
|
@media (hover: hover) {
|
|
@@ -6478,6 +6433,23 @@
|
|
|
6478
6433
|
}
|
|
6479
6434
|
}
|
|
6480
6435
|
}
|
|
6436
|
+
.focus-visible\:outline-1 {
|
|
6437
|
+
&:focus-visible {
|
|
6438
|
+
outline-style: var(--tw-outline-style);
|
|
6439
|
+
outline-width: 1px;
|
|
6440
|
+
}
|
|
6441
|
+
}
|
|
6442
|
+
.focus-visible\:outline-offset-2 {
|
|
6443
|
+
&:focus-visible {
|
|
6444
|
+
outline-offset: 2px;
|
|
6445
|
+
}
|
|
6446
|
+
}
|
|
6447
|
+
.focus-visible\:outline-dashed {
|
|
6448
|
+
&:focus-visible {
|
|
6449
|
+
--tw-outline-style: dashed;
|
|
6450
|
+
outline-style: dashed;
|
|
6451
|
+
}
|
|
6452
|
+
}
|
|
6481
6453
|
.focus-visible\:outline-none {
|
|
6482
6454
|
&:focus-visible {
|
|
6483
6455
|
--tw-outline-style: none;
|
|
@@ -6864,12 +6836,6 @@
|
|
|
6864
6836
|
background-color: var(--background-neutral-raised-4);
|
|
6865
6837
|
}
|
|
6866
6838
|
}
|
|
6867
|
-
.dark\:bg-gradient-to-r {
|
|
6868
|
-
&:where(.theme-dark, .theme-dark *, [data-theme=dark], [data-theme=dark] *) {
|
|
6869
|
-
--tw-gradient-position: to right in oklab;
|
|
6870
|
-
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
6871
|
-
}
|
|
6872
|
-
}
|
|
6873
6839
|
.dark\:bg-\[radial-gradient\(circle\,rgba\(36\,36\,66\,0\.3\)_2\%\,rgba\(2\,2\,15\,1\)_80\%\)\] {
|
|
6874
6840
|
&:where(.theme-dark, .theme-dark *, [data-theme=dark], [data-theme=dark] *) {
|
|
6875
6841
|
background-image: radial-gradient(circle,rgba(36,36,66,0.3) 2%,rgba(2,2,15,1) 80%);
|
|
@@ -6923,12 +6889,6 @@
|
|
|
6923
6889
|
background-color: var(--color-neutrals-pure-white-dnt-1000);
|
|
6924
6890
|
}
|
|
6925
6891
|
}
|
|
6926
|
-
.light\:bg-gradient-to-r {
|
|
6927
|
-
&:where(.theme-light, .theme-light *, [data-theme=light], [data-theme=light] *) {
|
|
6928
|
-
--tw-gradient-position: to right in oklab;
|
|
6929
|
-
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
6930
|
-
}
|
|
6931
|
-
}
|
|
6932
6892
|
.light\:bg-\[radial-gradient\(circle\,rgba\(224\,224\,232\,0\.3\)_2\%\,rgba\(247\,247\,250\,1\)_80\%\)\] {
|
|
6933
6893
|
&:where(.theme-light, .theme-light *, [data-theme=light], [data-theme=light] *) {
|
|
6934
6894
|
background-image: radial-gradient(circle,rgba(224,224,232,0.3) 2%,rgba(247,247,250,1) 80%);
|
|
@@ -9764,6 +9724,26 @@ body {
|
|
|
9764
9724
|
inherits: false;
|
|
9765
9725
|
initial-value: 0;
|
|
9766
9726
|
}
|
|
9727
|
+
@property --tw-rotate-x {
|
|
9728
|
+
syntax: "*";
|
|
9729
|
+
inherits: false;
|
|
9730
|
+
}
|
|
9731
|
+
@property --tw-rotate-y {
|
|
9732
|
+
syntax: "*";
|
|
9733
|
+
inherits: false;
|
|
9734
|
+
}
|
|
9735
|
+
@property --tw-rotate-z {
|
|
9736
|
+
syntax: "*";
|
|
9737
|
+
inherits: false;
|
|
9738
|
+
}
|
|
9739
|
+
@property --tw-skew-x {
|
|
9740
|
+
syntax: "*";
|
|
9741
|
+
inherits: false;
|
|
9742
|
+
}
|
|
9743
|
+
@property --tw-skew-y {
|
|
9744
|
+
syntax: "*";
|
|
9745
|
+
inherits: false;
|
|
9746
|
+
}
|
|
9767
9747
|
@property --tw-pan-x {
|
|
9768
9748
|
syntax: "*";
|
|
9769
9749
|
inherits: false;
|
|
@@ -9841,6 +9821,26 @@ body {
|
|
|
9841
9821
|
syntax: "*";
|
|
9842
9822
|
inherits: false;
|
|
9843
9823
|
}
|
|
9824
|
+
@property --tw-ordinal {
|
|
9825
|
+
syntax: "*";
|
|
9826
|
+
inherits: false;
|
|
9827
|
+
}
|
|
9828
|
+
@property --tw-slashed-zero {
|
|
9829
|
+
syntax: "*";
|
|
9830
|
+
inherits: false;
|
|
9831
|
+
}
|
|
9832
|
+
@property --tw-numeric-figure {
|
|
9833
|
+
syntax: "*";
|
|
9834
|
+
inherits: false;
|
|
9835
|
+
}
|
|
9836
|
+
@property --tw-numeric-spacing {
|
|
9837
|
+
syntax: "*";
|
|
9838
|
+
inherits: false;
|
|
9839
|
+
}
|
|
9840
|
+
@property --tw-numeric-fraction {
|
|
9841
|
+
syntax: "*";
|
|
9842
|
+
inherits: false;
|
|
9843
|
+
}
|
|
9844
9844
|
@property --tw-shadow {
|
|
9845
9845
|
syntax: "*";
|
|
9846
9846
|
inherits: false;
|
|
@@ -10028,22 +10028,17 @@ body {
|
|
|
10028
10028
|
inherits: false;
|
|
10029
10029
|
initial-value: 1;
|
|
10030
10030
|
}
|
|
10031
|
-
@keyframes pulse {
|
|
10032
|
-
50% {
|
|
10033
|
-
opacity: 0.5;
|
|
10034
|
-
}
|
|
10035
|
-
}
|
|
10036
|
-
@keyframes pulse {
|
|
10037
|
-
50% {
|
|
10038
|
-
opacity: 0.5;
|
|
10039
|
-
}
|
|
10040
|
-
}
|
|
10041
10031
|
@layer properties {
|
|
10042
10032
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
10043
10033
|
*, ::before, ::after, ::backdrop {
|
|
10044
10034
|
--tw-translate-x: 0;
|
|
10045
10035
|
--tw-translate-y: 0;
|
|
10046
10036
|
--tw-translate-z: 0;
|
|
10037
|
+
--tw-rotate-x: initial;
|
|
10038
|
+
--tw-rotate-y: initial;
|
|
10039
|
+
--tw-rotate-z: initial;
|
|
10040
|
+
--tw-skew-x: initial;
|
|
10041
|
+
--tw-skew-y: initial;
|
|
10047
10042
|
--tw-pan-x: initial;
|
|
10048
10043
|
--tw-pan-y: initial;
|
|
10049
10044
|
--tw-pinch-zoom: initial;
|
|
@@ -10061,6 +10056,11 @@ body {
|
|
|
10061
10056
|
--tw-gradient-to-position: 100%;
|
|
10062
10057
|
--tw-leading: initial;
|
|
10063
10058
|
--tw-font-weight: initial;
|
|
10059
|
+
--tw-ordinal: initial;
|
|
10060
|
+
--tw-slashed-zero: initial;
|
|
10061
|
+
--tw-numeric-figure: initial;
|
|
10062
|
+
--tw-numeric-spacing: initial;
|
|
10063
|
+
--tw-numeric-fraction: initial;
|
|
10064
10064
|
--tw-shadow: 0 0 #0000;
|
|
10065
10065
|
--tw-shadow-color: initial;
|
|
10066
10066
|
--tw-shadow-alpha: 100%;
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
import { A, b, c, C, d, e, F, M, j, k, m, n, o, p, q, N, i, w, x, s, t, u, v, y, z, T, g, f, B, h, D, l, r } from "./index
|
|
13
|
+
import { A, b, c, C, d, e, F, M, j, k, m, n, o, p, q, N, i, w, x, s, t, u, v, y, z, T, g, f, B, h, D, l, r } from "./index-VGGsv6w4.js";
|
|
14
14
|
import "react/jsx-runtime";
|
|
15
15
|
import "motion/react";
|
|
16
16
|
import "reablocks";
|
package/dist/index.umd.cjs
CHANGED
|
@@ -310,6 +310,7 @@
|
|
|
310
310
|
const SvgPaperclip = (props) => /* @__PURE__ */ React__namespace.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: "24px", height: "24px", ...props }, /* @__PURE__ */ React__namespace.createElement("path", { d: "M25.3,56.007c-3.409,0-6.818-1.297-9.414-3.893c-2.595-2.596-3.893-6.005-3.893-9.415c0-3.409,1.298-6.819,3.893-9.414 l20.4-20.4c1.847-1.847,4.302-2.864,6.914-2.864c2.611,0,5.067,1.017,6.914,2.864c3.812,3.813,3.812,10.016,0,13.829l-20.4,20.4 c-2.438,2.439-6.385,2.441-8.828,0c-2.434-2.435-2.434-6.395,0-8.829l13.7-13.7c0.781-0.781,2.047-0.781,2.828,0 c0.781,0.781,0.781,2.047,0,2.828l-13.7,13.7c-0.874,0.875-0.874,2.297,0.001,3.172c0.847,0.846,2.324,0.846,3.171,0l20.4-20.4 c2.252-2.253,2.252-5.919,0-8.172c-1.092-1.091-2.543-1.692-4.086-1.692c-1.544,0-2.994,0.601-4.086,1.692l-20.4,20.4 c-1.815,1.816-2.723,4.201-2.723,6.586c0,2.385,0.908,4.77,2.723,6.586c1.816,1.815,4.201,2.723,6.586,2.723 c2.385,0,4.771-0.907,6.586-2.723l12.7-12.7c0.781-0.781,2.047-0.781,2.828,0c0.781,0.781,0.781,2.047,0,2.828l-12.7,12.7 C32.119,54.709,28.71,56.007,25.3,56.007z", fill: "currentColor" }));
|
|
311
311
|
const FileInput = ({
|
|
312
312
|
allowedFiles,
|
|
313
|
+
multiple,
|
|
313
314
|
onFileUpload,
|
|
314
315
|
isLoading,
|
|
315
316
|
disabled,
|
|
@@ -325,6 +326,7 @@
|
|
|
325
326
|
ref: fileInputRef,
|
|
326
327
|
className: "hidden",
|
|
327
328
|
accept: allowedFiles.join(","),
|
|
329
|
+
multiple,
|
|
328
330
|
onChange: (e) => {
|
|
329
331
|
onFileUpload(e);
|
|
330
332
|
if (fileInputRef.current) {
|
|
@@ -349,6 +351,7 @@
|
|
|
349
351
|
const ChatInput = React.forwardRef(
|
|
350
352
|
({
|
|
351
353
|
allowedFiles,
|
|
354
|
+
allowMultipleFiles = false,
|
|
352
355
|
placeholder,
|
|
353
356
|
defaultValue,
|
|
354
357
|
className,
|
|
@@ -405,9 +408,16 @@
|
|
|
405
408
|
}
|
|
406
409
|
};
|
|
407
410
|
const handleFileUpload = (event) => {
|
|
408
|
-
const
|
|
409
|
-
if (
|
|
410
|
-
|
|
411
|
+
const files = event.target.files;
|
|
412
|
+
if (files && fileUpload) {
|
|
413
|
+
if (allowMultipleFiles) {
|
|
414
|
+
Array.from(files).forEach((file) => fileUpload(file));
|
|
415
|
+
} else {
|
|
416
|
+
const file = files[0];
|
|
417
|
+
if (file) {
|
|
418
|
+
fileUpload(file);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
411
421
|
}
|
|
412
422
|
};
|
|
413
423
|
const handleMessageChange = React.useCallback(
|
|
@@ -438,6 +448,7 @@
|
|
|
438
448
|
FileInput,
|
|
439
449
|
{
|
|
440
450
|
allowedFiles,
|
|
451
|
+
multiple: allowMultipleFiles,
|
|
441
452
|
onFileUpload: handleFileUpload,
|
|
442
453
|
isLoading,
|
|
443
454
|
disabled,
|
|
@@ -1569,17 +1580,15 @@
|
|
|
1569
1580
|
function remarkCve() {
|
|
1570
1581
|
return (tree) => {
|
|
1571
1582
|
mdastUtilFindAndReplace.findAndReplace(tree, [[CVE_REGEX, replaceCve]], {
|
|
1572
|
-
ignore: ["link"]
|
|
1583
|
+
ignore: ["link", "linkReference"]
|
|
1573
1584
|
});
|
|
1574
1585
|
};
|
|
1575
|
-
function replaceCve(value
|
|
1576
|
-
return
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
}
|
|
1582
|
-
];
|
|
1586
|
+
function replaceCve(value) {
|
|
1587
|
+
return {
|
|
1588
|
+
type: "link",
|
|
1589
|
+
url: `https://cve.mitre.org/cgi-bin/cvename.cgi?name=${value}`,
|
|
1590
|
+
children: [{ type: "text", value: value.trim() }]
|
|
1591
|
+
};
|
|
1583
1592
|
}
|
|
1584
1593
|
}
|
|
1585
1594
|
const SessionEmpty = ({ children }) => {
|
|
@@ -1865,7 +1874,7 @@ ${response}`),
|
|
|
1865
1874
|
}
|
|
1866
1875
|
const { imageFiles, otherFiles } = files.reduce(
|
|
1867
1876
|
(acc, file) => {
|
|
1868
|
-
if (file.type
|
|
1877
|
+
if (file.type?.startsWith("image/")) {
|
|
1869
1878
|
acc.imageFiles.push(file);
|
|
1870
1879
|
} else {
|
|
1871
1880
|
acc.otherFiles.push(file);
|