@inkeep/agents-ui 0.0.0-dev-20260402200940 → 0.0.0-dev-20260403205747
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/index.cjs +1 -1
- package/dist/index.js +165 -174
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +2 -6
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +232 -227
- package/dist/primitives/components/embedded-chat.cjs +5 -5
- package/dist/primitives/components/embedded-chat.d.ts +2 -112
- package/dist/primitives/components/embedded-chat.js +1082 -1511
- package/dist/primitives/hooks/use-initial-conversation.cjs +1 -0
- package/dist/primitives/hooks/use-initial-conversation.d.ts +16 -0
- package/dist/primitives/hooks/use-initial-conversation.js +31 -0
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +146 -155
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/providers/feedback-provider.cjs +1 -1
- package/dist/primitives/providers/feedback-provider.js +37 -38
- package/dist/primitives/providers/index.cjs +1 -1
- package/dist/primitives/providers/index.d.ts +0 -3
- package/dist/primitives/providers/index.js +54 -63
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +0 -98
- package/dist/primitives/utils/component-ids.js +7 -56
- package/dist/primitives/utils/default-settings.cjs +1 -1
- package/dist/primitives/utils/default-settings.d.ts +0 -2
- package/dist/primitives/utils/default-settings.js +6 -8
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +261 -310
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +165 -174
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +2 -50
- package/dist/styled/components/embedded-chat.js +568 -1041
- package/dist/styled/components/ui/recipes/citation.d.ts +1 -1
- package/dist/styled/components/ui/recipes/index.cjs +1 -1
- package/dist/styled/components/ui/recipes/index.d.ts +0 -1
- package/dist/styled/components/ui/recipes/index.js +31 -33
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +150 -159
- package/dist/styled/inkeep.css.cjs +0 -66
- package/dist/styled/inkeep.css.js +0 -66
- package/dist/types/config/ai.d.ts +8 -10
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/primitives/providers/attachment-item-provider.cjs +0 -1
- package/dist/primitives/providers/attachment-item-provider.d.ts +0 -9
- package/dist/primitives/providers/attachment-item-provider.js +0 -13
- package/dist/primitives/providers/attachments-bar-provider.cjs +0 -1
- package/dist/primitives/providers/attachments-bar-provider.d.ts +0 -30
- package/dist/primitives/providers/attachments-bar-provider.js +0 -57
- package/dist/primitives/providers/message-attachments-provider.cjs +0 -1
- package/dist/primitives/providers/message-attachments-provider.d.ts +0 -13
- package/dist/primitives/providers/message-attachments-provider.js +0 -27
- package/dist/primitives/utils/get-message-metadata.d.ts +0 -8
- package/dist/styled/components/ui/recipes/attachment.cjs +0 -1
- package/dist/styled/components/ui/recipes/attachment.d.ts +0 -4
- package/dist/styled/components/ui/recipes/attachment.js +0 -28
- package/dist/types/config/settings/workflow.d.ts +0 -86
|
@@ -773,9 +773,6 @@ video {
|
|
|
773
773
|
.mr-2 {
|
|
774
774
|
margin-right: 0.5rem;
|
|
775
775
|
}
|
|
776
|
-
.mr-\\[0\\.5em\\] {
|
|
777
|
-
margin-right: 0.5em;
|
|
778
|
-
}
|
|
779
776
|
.mr-\\[var\\(--removed-body-scroll-bar-size\\)\\] {
|
|
780
777
|
margin-right: var(--removed-body-scroll-bar-size);
|
|
781
778
|
}
|
|
@@ -1085,9 +1082,6 @@ video {
|
|
|
1085
1082
|
.min-w-\\[var\\(--reference-width\\2c 8rem\\)\\] {
|
|
1086
1083
|
min-width: var(--reference-width,8rem);
|
|
1087
1084
|
}
|
|
1088
|
-
.max-w-2xl {
|
|
1089
|
-
max-width: 42rem;
|
|
1090
|
-
}
|
|
1091
1085
|
.max-w-\\[100vw\\] {
|
|
1092
1086
|
max-width: 100vw;
|
|
1093
1087
|
}
|
|
@@ -1388,9 +1382,6 @@ video {
|
|
|
1388
1382
|
.gap-y-1 {
|
|
1389
1383
|
row-gap: 0.25rem;
|
|
1390
1384
|
}
|
|
1391
|
-
.gap-y-2 {
|
|
1392
|
-
row-gap: 0.5rem;
|
|
1393
|
-
}
|
|
1394
1385
|
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1395
1386
|
--tw-space-x-reverse: 0;
|
|
1396
1387
|
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
@@ -1542,9 +1533,6 @@ video {
|
|
|
1542
1533
|
.border-inherit {
|
|
1543
1534
|
border-color: inherit;
|
|
1544
1535
|
}
|
|
1545
|
-
.border-inkeep-expanded-primary-200 {
|
|
1546
|
-
border-color: var(--ikp-color-inkeep-expanded-primary-200);
|
|
1547
|
-
}
|
|
1548
1536
|
.border-inkeep-expanded-primary-500 {
|
|
1549
1537
|
border-color: var(--ikp-color-inkeep-expanded-primary-500);
|
|
1550
1538
|
}
|
|
@@ -1726,9 +1714,6 @@ video {
|
|
|
1726
1714
|
padding-top: 1px;
|
|
1727
1715
|
padding-bottom: 1px;
|
|
1728
1716
|
}
|
|
1729
|
-
.pb-1 {
|
|
1730
|
-
padding-bottom: 0.25rem;
|
|
1731
|
-
}
|
|
1732
1717
|
.pb-1\\.5 {
|
|
1733
1718
|
padding-bottom: 0.375rem;
|
|
1734
1719
|
}
|
|
@@ -1774,9 +1759,6 @@ video {
|
|
|
1774
1759
|
.pt-1 {
|
|
1775
1760
|
padding-top: 0.25rem;
|
|
1776
1761
|
}
|
|
1777
|
-
.pt-2 {
|
|
1778
|
-
padding-top: 0.5rem;
|
|
1779
|
-
}
|
|
1780
1762
|
.pt-3 {
|
|
1781
1763
|
padding-top: 0.75rem;
|
|
1782
1764
|
}
|
|
@@ -1922,9 +1904,6 @@ video {
|
|
|
1922
1904
|
.text-inkeep-primary-medium-subtle {
|
|
1923
1905
|
color: var(--ikp-color-inkeep-primary-medium-subtle);
|
|
1924
1906
|
}
|
|
1925
|
-
.text-inkeep-primary-strong {
|
|
1926
|
-
color: var(--ikp-color-inkeep-primary-strong);
|
|
1927
|
-
}
|
|
1928
1907
|
.text-inkeep-primary-stronger {
|
|
1929
1908
|
color: var(--ikp-color-inkeep-primary-stronger);
|
|
1930
1909
|
}
|
|
@@ -1977,11 +1956,6 @@ video {
|
|
|
1977
1956
|
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
|
1978
1957
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1979
1958
|
}
|
|
1980
|
-
.shadow-\\[0_0_0_2px_var\\(--shadow-color\\)\\] {
|
|
1981
|
-
--tw-shadow: 0 0 0 2px var(--shadow-color);
|
|
1982
|
-
--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);
|
|
1983
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1984
|
-
}
|
|
1985
1959
|
.shadow-\\[0_25px_50px_-12px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)\\] {
|
|
1986
1960
|
--tw-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
|
|
1987
1961
|
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
|
@@ -2639,10 +2613,6 @@ slot {
|
|
|
2639
2613
|
outline-color: var(--ikp-color-inkeep-expanded-primary-700);
|
|
2640
2614
|
}
|
|
2641
2615
|
|
|
2642
|
-
.focus\\:\\[--shadow-color\\:theme\\(colors\\.blue\\.500\\)\\]:focus {
|
|
2643
|
-
--shadow-color: #3b82f6;
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
2616
|
.focus-visible\\:rounded:focus-visible {
|
|
2647
2617
|
border-radius: 0.25rem;
|
|
2648
2618
|
}
|
|
@@ -3247,10 +3217,6 @@ slot {
|
|
|
3247
3217
|
--input-height: 5rem;
|
|
3248
3218
|
}
|
|
3249
3219
|
|
|
3250
|
-
.data-\\[invalid\\]\\:\\[--shadow-color\\:theme\\(colors\\.red\\.500\\)\\][data-invalid] {
|
|
3251
|
-
--shadow-color: #ef4444;
|
|
3252
|
-
}
|
|
3253
|
-
|
|
3254
3220
|
.data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-role="assistant"][data-type="icon"] {
|
|
3255
3221
|
--start-color: var(--ikp-color-inkeep-expanded-primary-300);
|
|
3256
3222
|
}
|
|
@@ -3454,10 +3420,6 @@ slot {
|
|
|
3454
3420
|
opacity: 1;
|
|
3455
3421
|
}
|
|
3456
3422
|
|
|
3457
|
-
:not(.dark) .light\\:text-gray-700 {
|
|
3458
|
-
color: var(--ikp-color-gray-700);
|
|
3459
|
-
}
|
|
3460
|
-
|
|
3461
3423
|
[data-widget-md] .ikp-md\\:mb-0 {
|
|
3462
3424
|
margin-bottom: 0px;
|
|
3463
3425
|
}
|
|
@@ -3533,14 +3495,6 @@ slot {
|
|
|
3533
3495
|
background-color: var(--ikp-color-inkeep-expanded-primary-700);
|
|
3534
3496
|
}
|
|
3535
3497
|
|
|
3536
|
-
.hover\\:bg-inkeep-primary-light-subtle:hover:not(:disabled) {
|
|
3537
|
-
background-color: var(--ikp-color-inkeep-primary-light-subtle);
|
|
3538
|
-
}
|
|
3539
|
-
|
|
3540
|
-
.hover\\:bg-transparent:hover:not(:disabled) {
|
|
3541
|
-
background-color: transparent;
|
|
3542
|
-
}
|
|
3543
|
-
|
|
3544
3498
|
.hover\\:bg-white-alpha-100:hover:not(:disabled) {
|
|
3545
3499
|
background-color: var(--ikp-color-white-alpha-100);
|
|
3546
3500
|
}
|
|
@@ -3755,10 +3709,6 @@ slot {
|
|
|
3755
3709
|
border-color: var(--ikp-color-gray-dark-700);
|
|
3756
3710
|
}
|
|
3757
3711
|
|
|
3758
|
-
.dark\\:border-inkeep-expanded-primary-200:is([data-theme="dark"] *) {
|
|
3759
|
-
border-color: var(--ikp-color-inkeep-expanded-primary-200);
|
|
3760
|
-
}
|
|
3761
|
-
|
|
3762
3712
|
.dark\\:border-inkeep-expanded-primary-400:is([data-theme="dark"] *) {
|
|
3763
3713
|
border-color: var(--ikp-color-inkeep-expanded-primary-400);
|
|
3764
3714
|
}
|
|
@@ -3855,10 +3805,6 @@ slot {
|
|
|
3855
3805
|
color: var(--ikp-color-inkeep-expanded-primary-100);
|
|
3856
3806
|
}
|
|
3857
3807
|
|
|
3858
|
-
.dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *) {
|
|
3859
|
-
color: var(--ikp-color-inkeep-expanded-primary-300);
|
|
3860
|
-
}
|
|
3861
|
-
|
|
3862
3808
|
.dark\\:text-inkeep-expanded-primary-500:is([data-theme="dark"] *) {
|
|
3863
3809
|
color: var(--ikp-color-inkeep-expanded-primary-500);
|
|
3864
3810
|
}
|
|
@@ -4205,10 +4151,6 @@ slot {
|
|
|
4205
4151
|
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
4206
4152
|
}
|
|
4207
4153
|
|
|
4208
|
-
.dark\\:hover\\:text-white-alpha-500:hover:not(:disabled):is([data-theme="dark"] *) {
|
|
4209
|
-
color: var(--ikp-color-white-alpha-500);
|
|
4210
|
-
}
|
|
4211
|
-
|
|
4212
4154
|
.dark\\:hover\\:text-white-alpha-700:hover:not(:disabled):is([data-theme="dark"] *) {
|
|
4213
4155
|
color: var(--ikp-color-white-alpha-700);
|
|
4214
4156
|
}
|
|
@@ -4694,14 +4636,6 @@ slot {
|
|
|
4694
4636
|
margin-bottom: 0.25rem;
|
|
4695
4637
|
}
|
|
4696
4638
|
|
|
4697
|
-
.\\[\\&_svg\\]\\:h-4 svg {
|
|
4698
|
-
height: 1rem;
|
|
4699
|
-
}
|
|
4700
|
-
|
|
4701
|
-
.\\[\\&_svg\\]\\:w-4 svg {
|
|
4702
|
-
width: 1rem;
|
|
4703
|
-
}
|
|
4704
|
-
|
|
4705
4639
|
@media(hover:none) {
|
|
4706
4640
|
|
|
4707
4641
|
.\\[\\@media\\(hover\\:none\\)\\]\\:opacity-100 {
|
|
@@ -774,9 +774,6 @@ video {
|
|
|
774
774
|
.mr-2 {
|
|
775
775
|
margin-right: 0.5rem;
|
|
776
776
|
}
|
|
777
|
-
.mr-\\[0\\.5em\\] {
|
|
778
|
-
margin-right: 0.5em;
|
|
779
|
-
}
|
|
780
777
|
.mr-\\[var\\(--removed-body-scroll-bar-size\\)\\] {
|
|
781
778
|
margin-right: var(--removed-body-scroll-bar-size);
|
|
782
779
|
}
|
|
@@ -1086,9 +1083,6 @@ video {
|
|
|
1086
1083
|
.min-w-\\[var\\(--reference-width\\2c 8rem\\)\\] {
|
|
1087
1084
|
min-width: var(--reference-width,8rem);
|
|
1088
1085
|
}
|
|
1089
|
-
.max-w-2xl {
|
|
1090
|
-
max-width: 42rem;
|
|
1091
|
-
}
|
|
1092
1086
|
.max-w-\\[100vw\\] {
|
|
1093
1087
|
max-width: 100vw;
|
|
1094
1088
|
}
|
|
@@ -1389,9 +1383,6 @@ video {
|
|
|
1389
1383
|
.gap-y-1 {
|
|
1390
1384
|
row-gap: 0.25rem;
|
|
1391
1385
|
}
|
|
1392
|
-
.gap-y-2 {
|
|
1393
|
-
row-gap: 0.5rem;
|
|
1394
|
-
}
|
|
1395
1386
|
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1396
1387
|
--tw-space-x-reverse: 0;
|
|
1397
1388
|
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
|
@@ -1543,9 +1534,6 @@ video {
|
|
|
1543
1534
|
.border-inherit {
|
|
1544
1535
|
border-color: inherit;
|
|
1545
1536
|
}
|
|
1546
|
-
.border-inkeep-expanded-primary-200 {
|
|
1547
|
-
border-color: var(--ikp-color-inkeep-expanded-primary-200);
|
|
1548
|
-
}
|
|
1549
1537
|
.border-inkeep-expanded-primary-500 {
|
|
1550
1538
|
border-color: var(--ikp-color-inkeep-expanded-primary-500);
|
|
1551
1539
|
}
|
|
@@ -1727,9 +1715,6 @@ video {
|
|
|
1727
1715
|
padding-top: 1px;
|
|
1728
1716
|
padding-bottom: 1px;
|
|
1729
1717
|
}
|
|
1730
|
-
.pb-1 {
|
|
1731
|
-
padding-bottom: 0.25rem;
|
|
1732
|
-
}
|
|
1733
1718
|
.pb-1\\.5 {
|
|
1734
1719
|
padding-bottom: 0.375rem;
|
|
1735
1720
|
}
|
|
@@ -1775,9 +1760,6 @@ video {
|
|
|
1775
1760
|
.pt-1 {
|
|
1776
1761
|
padding-top: 0.25rem;
|
|
1777
1762
|
}
|
|
1778
|
-
.pt-2 {
|
|
1779
|
-
padding-top: 0.5rem;
|
|
1780
|
-
}
|
|
1781
1763
|
.pt-3 {
|
|
1782
1764
|
padding-top: 0.75rem;
|
|
1783
1765
|
}
|
|
@@ -1923,9 +1905,6 @@ video {
|
|
|
1923
1905
|
.text-inkeep-primary-medium-subtle {
|
|
1924
1906
|
color: var(--ikp-color-inkeep-primary-medium-subtle);
|
|
1925
1907
|
}
|
|
1926
|
-
.text-inkeep-primary-strong {
|
|
1927
|
-
color: var(--ikp-color-inkeep-primary-strong);
|
|
1928
|
-
}
|
|
1929
1908
|
.text-inkeep-primary-stronger {
|
|
1930
1909
|
color: var(--ikp-color-inkeep-primary-stronger);
|
|
1931
1910
|
}
|
|
@@ -1978,11 +1957,6 @@ video {
|
|
|
1978
1957
|
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
|
1979
1958
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1980
1959
|
}
|
|
1981
|
-
.shadow-\\[0_0_0_2px_var\\(--shadow-color\\)\\] {
|
|
1982
|
-
--tw-shadow: 0 0 0 2px var(--shadow-color);
|
|
1983
|
-
--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);
|
|
1984
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1985
|
-
}
|
|
1986
1960
|
.shadow-\\[0_25px_50px_-12px_rgba\\(0\\2c 0\\2c 0\\2c 0\\.25\\)\\] {
|
|
1987
1961
|
--tw-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
|
|
1988
1962
|
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
|
@@ -2640,10 +2614,6 @@ slot {
|
|
|
2640
2614
|
outline-color: var(--ikp-color-inkeep-expanded-primary-700);
|
|
2641
2615
|
}
|
|
2642
2616
|
|
|
2643
|
-
.focus\\:\\[--shadow-color\\:theme\\(colors\\.blue\\.500\\)\\]:focus {
|
|
2644
|
-
--shadow-color: #3b82f6;
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
2617
|
.focus-visible\\:rounded:focus-visible {
|
|
2648
2618
|
border-radius: 0.25rem;
|
|
2649
2619
|
}
|
|
@@ -3248,10 +3218,6 @@ slot {
|
|
|
3248
3218
|
--input-height: 5rem;
|
|
3249
3219
|
}
|
|
3250
3220
|
|
|
3251
|
-
.data-\\[invalid\\]\\:\\[--shadow-color\\:theme\\(colors\\.red\\.500\\)\\][data-invalid] {
|
|
3252
|
-
--shadow-color: #ef4444;
|
|
3253
|
-
}
|
|
3254
|
-
|
|
3255
3221
|
.data-\\[type\\=icon\\]\\:data-\\[role\\=assistant\\]\\:\\[--start-color\\:theme\\(colors\\.inkeep-expanded-primary\\.300\\)\\][data-role="assistant"][data-type="icon"] {
|
|
3256
3222
|
--start-color: var(--ikp-color-inkeep-expanded-primary-300);
|
|
3257
3223
|
}
|
|
@@ -3455,10 +3421,6 @@ slot {
|
|
|
3455
3421
|
opacity: 1;
|
|
3456
3422
|
}
|
|
3457
3423
|
|
|
3458
|
-
:not(.dark) .light\\:text-gray-700 {
|
|
3459
|
-
color: var(--ikp-color-gray-700);
|
|
3460
|
-
}
|
|
3461
|
-
|
|
3462
3424
|
[data-widget-md] .ikp-md\\:mb-0 {
|
|
3463
3425
|
margin-bottom: 0px;
|
|
3464
3426
|
}
|
|
@@ -3534,14 +3496,6 @@ slot {
|
|
|
3534
3496
|
background-color: var(--ikp-color-inkeep-expanded-primary-700);
|
|
3535
3497
|
}
|
|
3536
3498
|
|
|
3537
|
-
.hover\\:bg-inkeep-primary-light-subtle:hover:not(:disabled) {
|
|
3538
|
-
background-color: var(--ikp-color-inkeep-primary-light-subtle);
|
|
3539
|
-
}
|
|
3540
|
-
|
|
3541
|
-
.hover\\:bg-transparent:hover:not(:disabled) {
|
|
3542
|
-
background-color: transparent;
|
|
3543
|
-
}
|
|
3544
|
-
|
|
3545
3499
|
.hover\\:bg-white-alpha-100:hover:not(:disabled) {
|
|
3546
3500
|
background-color: var(--ikp-color-white-alpha-100);
|
|
3547
3501
|
}
|
|
@@ -3756,10 +3710,6 @@ slot {
|
|
|
3756
3710
|
border-color: var(--ikp-color-gray-dark-700);
|
|
3757
3711
|
}
|
|
3758
3712
|
|
|
3759
|
-
.dark\\:border-inkeep-expanded-primary-200:is([data-theme="dark"] *) {
|
|
3760
|
-
border-color: var(--ikp-color-inkeep-expanded-primary-200);
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3763
3713
|
.dark\\:border-inkeep-expanded-primary-400:is([data-theme="dark"] *) {
|
|
3764
3714
|
border-color: var(--ikp-color-inkeep-expanded-primary-400);
|
|
3765
3715
|
}
|
|
@@ -3856,10 +3806,6 @@ slot {
|
|
|
3856
3806
|
color: var(--ikp-color-inkeep-expanded-primary-100);
|
|
3857
3807
|
}
|
|
3858
3808
|
|
|
3859
|
-
.dark\\:text-inkeep-expanded-primary-300:is([data-theme="dark"] *) {
|
|
3860
|
-
color: var(--ikp-color-inkeep-expanded-primary-300);
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
3809
|
.dark\\:text-inkeep-expanded-primary-500:is([data-theme="dark"] *) {
|
|
3864
3810
|
color: var(--ikp-color-inkeep-expanded-primary-500);
|
|
3865
3811
|
}
|
|
@@ -4206,10 +4152,6 @@ slot {
|
|
|
4206
4152
|
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
4207
4153
|
}
|
|
4208
4154
|
|
|
4209
|
-
.dark\\:hover\\:text-white-alpha-500:hover:not(:disabled):is([data-theme="dark"] *) {
|
|
4210
|
-
color: var(--ikp-color-white-alpha-500);
|
|
4211
|
-
}
|
|
4212
|
-
|
|
4213
4155
|
.dark\\:hover\\:text-white-alpha-700:hover:not(:disabled):is([data-theme="dark"] *) {
|
|
4214
4156
|
color: var(--ikp-color-white-alpha-700);
|
|
4215
4157
|
}
|
|
@@ -4695,14 +4637,6 @@ slot {
|
|
|
4695
4637
|
margin-bottom: 0.25rem;
|
|
4696
4638
|
}
|
|
4697
4639
|
|
|
4698
|
-
.\\[\\&_svg\\]\\:h-4 svg {
|
|
4699
|
-
height: 1rem;
|
|
4700
|
-
}
|
|
4701
|
-
|
|
4702
|
-
.\\[\\&_svg\\]\\:w-4 svg {
|
|
4703
|
-
width: 1rem;
|
|
4704
|
-
}
|
|
4705
|
-
|
|
4706
4640
|
@media(hover:none) {
|
|
4707
4641
|
|
|
4708
4642
|
.\\[\\@media\\(hover\\:none\\)\\]\\:opacity-100 {
|
|
@@ -130,8 +130,15 @@ export interface InkeepAIChatSettings {
|
|
|
130
130
|
/**
|
|
131
131
|
* Unique identifier for loading a specific conversation.
|
|
132
132
|
* Use this to restore a previous conversation state.
|
|
133
|
+
* If the conversation is not found, a new conversation is started.
|
|
133
134
|
*/
|
|
134
135
|
conversationId?: string;
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated Internal use only. Bypasses conversation loading and sets the
|
|
138
|
+
* conversation ID directly without fetching. Use `conversationId` instead to
|
|
139
|
+
* restore a previous conversation state.
|
|
140
|
+
*/
|
|
141
|
+
conversationIdOverride?: string;
|
|
135
142
|
/**
|
|
136
143
|
* When enabled, prevents users from sending new messages.
|
|
137
144
|
* Useful for displaying archived or shared chat sessions.
|
|
@@ -174,15 +181,6 @@ export interface InkeepAIChatSettings {
|
|
|
174
181
|
* Array of actions available rendered after each message.
|
|
175
182
|
*/
|
|
176
183
|
messageActions?: CustomMessageAction[];
|
|
177
|
-
/**
|
|
178
|
-
* Custom heading text for the workflows section.
|
|
179
|
-
* Use this to describe available automated processes or guided flows.
|
|
180
|
-
*/
|
|
181
|
-
workflowsHeader?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Collection of interactive workflows that can be triggered during chat.
|
|
184
|
-
* These can guide users through complex processes or data collection.
|
|
185
|
-
*/
|
|
186
184
|
/**
|
|
187
185
|
* Custom labels for the chat interface's action buttons.
|
|
188
186
|
* Use this for internationalization or to better match your application's terminology.
|
|
@@ -232,7 +230,7 @@ export interface AIChatFunctions {
|
|
|
232
230
|
updateInputMessage: (message: string) => void;
|
|
233
231
|
/**
|
|
234
232
|
* Resets the chat to its initial state.
|
|
235
|
-
* Removes all messages and resets
|
|
233
|
+
* Removes all messages and resets the chat.
|
|
236
234
|
*/
|
|
237
235
|
clearChat: () => void;
|
|
238
236
|
/**
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),e=require("react"),n=e.createContext(void 0),c=({children:t,attachment:r})=>o.jsx(n.Provider,{value:{attachment:r},children:t}),m=()=>{const t=e.useContext(n);if(!t)throw new Error("useAttachmentItem must be used within a AttachmentItemProvider");return t};exports.AttachmentItemProvider=c;exports.useAttachmentItem=m;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MessageAttachment } from '../../types/index.ts';
|
|
2
|
-
export type AttachmentItemContextValue = {
|
|
3
|
-
attachment: MessageAttachment;
|
|
4
|
-
};
|
|
5
|
-
export declare const AttachmentItemProvider: React.FC<{
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
attachment: MessageAttachment;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const useAttachmentItem: () => AttachmentItemContextValue;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as n, useContext as m } from "react";
|
|
4
|
-
const e = n(void 0), i = ({ children: t, attachment: r }) => /* @__PURE__ */ o(e.Provider, { value: { attachment: r }, children: t }), u = () => {
|
|
5
|
-
const t = m(e);
|
|
6
|
-
if (!t)
|
|
7
|
-
throw new Error("useAttachmentItem must be used within a AttachmentItemProvider");
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
i as AttachmentItemProvider,
|
|
12
|
-
u as useAttachmentItem
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),n=require("react"),b=require("../hooks/use-boolean.cjs"),d=n.createContext(void 0);function B(){const[t,s]=n.useState(null),{value:m,setTrue:v,setFalse:c}=b.useBoolean(!1),[a,u]=n.useState({title:"",content:""}),[f,l]=n.useState({title:void 0,content:void 0}),o={data:a,errors:f,labels:{title:t?.workflowModalProps?.titleInputLabel||"Title",content:t?.contentType.contentInputLabel||"Content"},validate(){const e={};return a.title.trim()||(e.title=`${o.labels.title} is required`),a.content.trim()||(e.content=`${o.labels.content} is required`),e},onChange(e){const{name:r,value:i}=e.target;u(h=>({...h,[r]:i}))},onSubmit(e){if(e.preventDefault(),!t?.contentType)return;const r=o.validate();if(Object.values(r).some(i=>!!i)){l(r);return}c(),u({title:"",content:""}),l({title:void 0,content:void 0})}};return{selectedInput:t,selectInput:s,isOpen:m,onOpen:v,onClose:c,form:o}}function A({children:t}){const s=B();return p.jsx(d.Provider,{value:s,children:t})}const w=()=>{const t=n.useContext(d);if(!t)throw new Error("useAttachmentsBar must be used within a AttachmentsBarProvider");return t};exports.AttachmentsBarProvider=A;exports.useAttachmentsBar=w;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { WorkflowModalSingleInput } from '../../types/index.ts';
|
|
2
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
export type AttachmentsBarContextValue = ReturnType<typeof useChatAttachmentsBar>;
|
|
4
|
-
type FormErrors = Record<'title' | 'content', string | undefined>;
|
|
5
|
-
declare function useChatAttachmentsBar(): {
|
|
6
|
-
selectedInput: WorkflowModalSingleInput | null;
|
|
7
|
-
selectInput: Dispatch<SetStateAction<WorkflowModalSingleInput | null>>;
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
onOpen: () => void;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
form: {
|
|
12
|
-
data: {
|
|
13
|
-
title: string;
|
|
14
|
-
content: string;
|
|
15
|
-
};
|
|
16
|
-
errors: FormErrors;
|
|
17
|
-
labels: {
|
|
18
|
-
title: string;
|
|
19
|
-
content: string;
|
|
20
|
-
};
|
|
21
|
-
validate(): FormErrors;
|
|
22
|
-
onChange(event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>): void;
|
|
23
|
-
onSubmit(e: React.FormEvent<HTMLFormElement>): void;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare function AttachmentsBarProvider({ children }: {
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export declare const useAttachmentsBar: () => AttachmentsBarContextValue;
|
|
30
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as h } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as b, useContext as w, useState as i } from "react";
|
|
4
|
-
import { useBoolean as B } from "../hooks/use-boolean.js";
|
|
5
|
-
const m = b(void 0);
|
|
6
|
-
function C() {
|
|
7
|
-
const [t, r] = i(null), { value: d, setTrue: f, setFalse: c } = B(!1), [s, l] = i({ title: "", content: "" }), [v, u] = i({
|
|
8
|
-
title: void 0,
|
|
9
|
-
content: void 0
|
|
10
|
-
}), n = {
|
|
11
|
-
data: s,
|
|
12
|
-
errors: v,
|
|
13
|
-
labels: {
|
|
14
|
-
title: t?.workflowModalProps?.titleInputLabel || "Title",
|
|
15
|
-
content: t?.contentType.contentInputLabel || "Content"
|
|
16
|
-
},
|
|
17
|
-
validate() {
|
|
18
|
-
const e = {};
|
|
19
|
-
return s.title.trim() || (e.title = `${n.labels.title} is required`), s.content.trim() || (e.content = `${n.labels.content} is required`), e;
|
|
20
|
-
},
|
|
21
|
-
onChange(e) {
|
|
22
|
-
const { name: o, value: a } = e.target;
|
|
23
|
-
l((p) => ({ ...p, [o]: a }));
|
|
24
|
-
},
|
|
25
|
-
onSubmit(e) {
|
|
26
|
-
if (e.preventDefault(), !t?.contentType) return;
|
|
27
|
-
const o = n.validate();
|
|
28
|
-
if (Object.values(o).some((a) => !!a)) {
|
|
29
|
-
u(o);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
c(), l({ title: "", content: "" }), u({ title: void 0, content: void 0 });
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
selectedInput: t,
|
|
37
|
-
selectInput: r,
|
|
38
|
-
isOpen: d,
|
|
39
|
-
onOpen: f,
|
|
40
|
-
onClose: c,
|
|
41
|
-
form: n
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function I({ children: t }) {
|
|
45
|
-
const r = C();
|
|
46
|
-
return /* @__PURE__ */ h(m.Provider, { value: r, children: t });
|
|
47
|
-
}
|
|
48
|
-
const P = () => {
|
|
49
|
-
const t = w(m);
|
|
50
|
-
if (!t)
|
|
51
|
-
throw new Error("useAttachmentsBar must be used within a AttachmentsBarProvider");
|
|
52
|
-
return t;
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
I as AttachmentsBarProvider,
|
|
56
|
-
P as useAttachmentsBar
|
|
57
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),t=require("react"),i=require("../hooks/use-boolean.cjs"),s=t.createContext(void 0);function l({children:e}){const[n,o]=t.useState(null),{value:r,setTrue:a,setFalse:c}=i.useBoolean(!1);return u.jsx(s.Provider,{value:{selectedItem:n,selectItem:o,isOpen:r,onOpen:a,onClose:c},children:e})}const m=()=>{const e=t.useContext(s);if(!e)throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");return e};exports.MessageAttachmentsProvider=l;exports.useMessageAttachments=m;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { MessageAttachment } from '../../types/index.ts';
|
|
3
|
-
export type MessageAttachmentsContextValue = {
|
|
4
|
-
selectedItem: MessageAttachment | null;
|
|
5
|
-
selectItem: (input: MessageAttachmentsContextValue['selectedItem']) => void;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
onOpen: () => void;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
};
|
|
10
|
-
export declare function MessageAttachmentsProvider({ children }: {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare const useMessageAttachments: () => MessageAttachmentsContextValue;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
3
|
-
import u, { createContext as m, useContext as i } from "react";
|
|
4
|
-
import { useBoolean as l } from "../hooks/use-boolean.js";
|
|
5
|
-
const t = m(
|
|
6
|
-
void 0
|
|
7
|
-
);
|
|
8
|
-
function p({ children: e }) {
|
|
9
|
-
const [s, o] = u.useState(null), { value: n, setTrue: r, setFalse: a } = l(!1);
|
|
10
|
-
return /* @__PURE__ */ c(
|
|
11
|
-
t.Provider,
|
|
12
|
-
{
|
|
13
|
-
value: { selectedItem: s, selectItem: o, isOpen: n, onOpen: r, onClose: a },
|
|
14
|
-
children: e
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
const v = () => {
|
|
19
|
-
const e = i(t);
|
|
20
|
-
if (!e)
|
|
21
|
-
throw new Error("useMessageAttachments must be used within a MessageAttachmentsProvider");
|
|
22
|
-
return e;
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
p as MessageAttachmentsProvider,
|
|
26
|
-
v as useMessageAttachments
|
|
27
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MessageAttachment, MessageAttributes, Workflow } from '../../types/index.ts';
|
|
2
|
-
export declare function getMessageMetadata(workflow: Workflow | null, attachments: MessageAttachment[], isNewChat: boolean): {
|
|
3
|
-
context: string | undefined;
|
|
4
|
-
attributes: MessageAttributes;
|
|
5
|
-
} | undefined;
|
|
6
|
-
export declare function serializeWorkflow(workflow: Workflow): string | undefined;
|
|
7
|
-
export declare function stringifyAttachments(attachments: MessageAttachment[] | undefined): string | undefined;
|
|
8
|
-
export declare function serializeAttachments(_attachments: MessageAttachment[]): string | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("class-variance-authority"),e=require("./button.cjs"),a=t.cva("",{variants:{slot:{root:["flex items-center pl-2","text-xs rounded-md h-6","bg-gray-300 dark:bg-white-alpha-200","min-w-0 w-fit"],icon:["mr-[0.5em]","text-gray-600 dark:text-white-alpha-600"],title:["overflow-hidden whitespace-nowrap text-ellipsis inline-block"],delete:[e.button({variant:"iconButton",size:"md"}),"h-4 px-1 min-w-[unset]","text-gray-600 dark:text-white-alpha-600","hover:bg-transparent hover:text-gray-700","dark:hover:text-white-alpha-500","[&_svg]:w-4 [&_svg]:h-4"]}}});exports.attachment=a;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { cva as t } from "class-variance-authority";
|
|
3
|
-
import { button as e } from "./button.js";
|
|
4
|
-
const i = t("", {
|
|
5
|
-
variants: {
|
|
6
|
-
slot: {
|
|
7
|
-
root: [
|
|
8
|
-
"flex items-center pl-2",
|
|
9
|
-
"text-xs rounded-md h-6",
|
|
10
|
-
"bg-gray-300 dark:bg-white-alpha-200",
|
|
11
|
-
"min-w-0 w-fit"
|
|
12
|
-
],
|
|
13
|
-
icon: ["mr-[0.5em]", "text-gray-600 dark:text-white-alpha-600"],
|
|
14
|
-
title: ["overflow-hidden whitespace-nowrap text-ellipsis inline-block"],
|
|
15
|
-
delete: [
|
|
16
|
-
e({ variant: "iconButton", size: "md" }),
|
|
17
|
-
"h-4 px-1 min-w-[unset]",
|
|
18
|
-
"text-gray-600 dark:text-white-alpha-600",
|
|
19
|
-
"hover:bg-transparent hover:text-gray-700",
|
|
20
|
-
"dark:hover:text-white-alpha-500",
|
|
21
|
-
"[&_svg]:w-4 [&_svg]:h-4"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
export {
|
|
27
|
-
i as attachment
|
|
28
|
-
};
|