@tagit/ai-client-react 1.7.0-beta.53.1 → 1.7.0-beta.56.2
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/README.md +131 -14
- package/dist/chat-conversation.d.ts.map +1 -1
- package/dist/chat-conversation.js +72 -22
- package/dist/chat-conversation.js.map +1 -1
- package/dist/chat-history.d.ts.map +1 -1
- package/dist/chat-history.js +43 -8
- package/dist/chat-history.js.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +25 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +149 -2
- package/dist/provider.js.map +1 -1
- package/package.json +2 -2
- package/src/chat-widget.css +291 -6
package/src/chat-widget.css
CHANGED
|
@@ -971,7 +971,8 @@
|
|
|
971
971
|
|
|
972
972
|
.tagIt-chat-overlay-header-actions,
|
|
973
973
|
.tagIt-chat-history-row-actions,
|
|
974
|
-
.tagIt-chat-history-rename
|
|
974
|
+
.tagIt-chat-history-rename,
|
|
975
|
+
.tagIt-chat-history-delete-confirm {
|
|
975
976
|
display: inline-flex;
|
|
976
977
|
align-items: center;
|
|
977
978
|
gap: 6px;
|
|
@@ -979,7 +980,8 @@
|
|
|
979
980
|
|
|
980
981
|
.tagIt-chat-overlay-header-actions button,
|
|
981
982
|
.tagIt-chat-history-row-actions button,
|
|
982
|
-
.tagIt-chat-history-rename button
|
|
983
|
+
.tagIt-chat-history-rename button,
|
|
984
|
+
.tagIt-chat-history-delete-confirm button {
|
|
983
985
|
width: 32px;
|
|
984
986
|
height: 32px;
|
|
985
987
|
border-radius: 8px;
|
|
@@ -995,11 +997,43 @@
|
|
|
995
997
|
|
|
996
998
|
.tagIt-chat-overlay-header-actions button:hover,
|
|
997
999
|
.tagIt-chat-history-row-actions button:hover,
|
|
998
|
-
.tagIt-chat-history-rename button:hover
|
|
1000
|
+
.tagIt-chat-history-rename button:hover,
|
|
1001
|
+
.tagIt-chat-history-delete-confirm button:hover {
|
|
999
1002
|
color: var(--tagIt-chat-text);
|
|
1000
1003
|
background: color-mix(in srgb, var(--tagIt-chat-border) 48%, transparent);
|
|
1001
1004
|
}
|
|
1002
1005
|
|
|
1006
|
+
.tagIt-chat-history-tabs {
|
|
1007
|
+
padding: 12px 12px 0;
|
|
1008
|
+
display: grid;
|
|
1009
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1010
|
+
gap: 4px;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.tagIt-chat-history-tabs button {
|
|
1014
|
+
min-width: 0;
|
|
1015
|
+
height: 34px;
|
|
1016
|
+
border: 1px solid transparent;
|
|
1017
|
+
border-radius: 8px;
|
|
1018
|
+
background: transparent;
|
|
1019
|
+
color: var(--tagIt-chat-muted);
|
|
1020
|
+
font: inherit;
|
|
1021
|
+
font-size: 12px;
|
|
1022
|
+
font-weight: 700;
|
|
1023
|
+
cursor: pointer;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.tagIt-chat-history-tabs button:hover {
|
|
1027
|
+
color: var(--tagIt-chat-text);
|
|
1028
|
+
background: color-mix(in srgb, var(--tagIt-chat-border) 34%, transparent);
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.tagIt-chat-history-tabs button[aria-selected='true'] {
|
|
1032
|
+
border-color: color-mix(in srgb, var(--tagIt-chat-primary) 44%, var(--tagIt-chat-border));
|
|
1033
|
+
background: color-mix(in srgb, var(--tagIt-chat-primary) 12%, var(--tagIt-chat-surface));
|
|
1034
|
+
color: var(--tagIt-chat-primary);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1003
1037
|
.tagIt-chat-history-list {
|
|
1004
1038
|
flex: 1;
|
|
1005
1039
|
min-height: 0;
|
|
@@ -1173,6 +1207,18 @@
|
|
|
1173
1207
|
grid-column: 1 / -1;
|
|
1174
1208
|
}
|
|
1175
1209
|
|
|
1210
|
+
.tagIt-chat-history-delete-confirm {
|
|
1211
|
+
grid-column: 1 / -1;
|
|
1212
|
+
justify-content: flex-end;
|
|
1213
|
+
color: var(--tagIt-chat-muted);
|
|
1214
|
+
font-size: 12px;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.tagIt-chat-history-delete-confirm .tagIt-chat-history-danger {
|
|
1218
|
+
border-color: color-mix(in srgb, #ef4444 45%, var(--tagIt-chat-border));
|
|
1219
|
+
color: #ef4444;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1176
1222
|
.tagIt-chat-history-rename input {
|
|
1177
1223
|
min-width: 0;
|
|
1178
1224
|
flex: 1;
|
|
@@ -1550,11 +1596,249 @@
|
|
|
1550
1596
|
.tagIt-chat-input-form {
|
|
1551
1597
|
padding: 10px 12px;
|
|
1552
1598
|
padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
|
|
1553
|
-
border-top:
|
|
1554
|
-
background:
|
|
1599
|
+
border-top: 0;
|
|
1600
|
+
background: transparent;
|
|
1555
1601
|
flex-shrink: 0;
|
|
1556
1602
|
}
|
|
1557
1603
|
|
|
1604
|
+
.tagIt-chat-resource-file-input {
|
|
1605
|
+
display: none;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
.tagIt-chat-resource-chips,
|
|
1609
|
+
.tagIt-chat-message-resources {
|
|
1610
|
+
display: flex;
|
|
1611
|
+
flex-wrap: wrap;
|
|
1612
|
+
gap: 6px;
|
|
1613
|
+
margin: 0 0 8px;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.tagIt-chat-message-resources {
|
|
1617
|
+
justify-content: flex-end;
|
|
1618
|
+
margin-top: 6px;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
.tagIt-chat-resource-chip,
|
|
1622
|
+
.tagIt-chat-message-resource {
|
|
1623
|
+
display: inline-flex;
|
|
1624
|
+
align-items: center;
|
|
1625
|
+
gap: 6px;
|
|
1626
|
+
min-width: 0;
|
|
1627
|
+
max-width: 100%;
|
|
1628
|
+
padding: 6px 8px;
|
|
1629
|
+
border: 1px solid var(--tagIt-chat-border);
|
|
1630
|
+
border-radius: 7px;
|
|
1631
|
+
background: var(--tagIt-chat-panel-footer-prompt-bg);
|
|
1632
|
+
color: var(--tagIt-chat-text);
|
|
1633
|
+
font-size: 12px;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
.tagIt-chat-resource-chip > span,
|
|
1637
|
+
.tagIt-chat-message-resource > span {
|
|
1638
|
+
overflow: hidden;
|
|
1639
|
+
text-overflow: ellipsis;
|
|
1640
|
+
white-space: nowrap;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
.tagIt-chat-resource-chip button {
|
|
1644
|
+
display: inline-flex;
|
|
1645
|
+
align-items: center;
|
|
1646
|
+
justify-content: center;
|
|
1647
|
+
width: 20px;
|
|
1648
|
+
height: 20px;
|
|
1649
|
+
padding: 0;
|
|
1650
|
+
border: 0;
|
|
1651
|
+
background: transparent;
|
|
1652
|
+
color: var(--tagIt-chat-muted);
|
|
1653
|
+
cursor: pointer;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
.tagIt-chat-resource-picker {
|
|
1657
|
+
margin: 0 0 8px;
|
|
1658
|
+
border: 1px solid var(--tagIt-chat-border);
|
|
1659
|
+
border-radius: 8px;
|
|
1660
|
+
background: var(--tagIt-chat-bg);
|
|
1661
|
+
box-shadow: 0 8px 24px color-mix(in srgb, var(--tagIt-chat-text) 14%, transparent);
|
|
1662
|
+
overflow: hidden;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
.tagIt-chat-resource-sidecar {
|
|
1666
|
+
position: fixed;
|
|
1667
|
+
top: 0;
|
|
1668
|
+
bottom: 0;
|
|
1669
|
+
z-index: 94;
|
|
1670
|
+
width: min(360px, calc(100vw - min(100vw, var(--tagIt-chat-panel-width))));
|
|
1671
|
+
min-width: 280px;
|
|
1672
|
+
background: var(--tagIt-chat-bg);
|
|
1673
|
+
color: var(--tagIt-chat-text);
|
|
1674
|
+
box-shadow: 0 0 28px color-mix(in srgb, var(--tagIt-chat-text) 16%, transparent);
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
.tagIt-chat-side-right > .tagIt-chat-resource-sidecar {
|
|
1678
|
+
right: min(100vw, var(--tagIt-chat-panel-width));
|
|
1679
|
+
border-left: 1px solid var(--tagIt-chat-border);
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.tagIt-chat-side-left > .tagIt-chat-resource-sidecar {
|
|
1683
|
+
left: min(100vw, var(--tagIt-chat-panel-width));
|
|
1684
|
+
border-right: 1px solid var(--tagIt-chat-border);
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
.tagIt-chat-widget-closed > .tagIt-chat-resource-sidecar {
|
|
1688
|
+
display: none;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
.tagIt-chat-resource-sidecar .tagIt-chat-resource-picker {
|
|
1692
|
+
display: flex;
|
|
1693
|
+
height: 100%;
|
|
1694
|
+
margin: 0;
|
|
1695
|
+
flex-direction: column;
|
|
1696
|
+
border: 0;
|
|
1697
|
+
border-radius: 0;
|
|
1698
|
+
box-shadow: none;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
.tagIt-chat-resource-sidecar .tagIt-chat-resource-picker-header {
|
|
1702
|
+
min-height: 56px;
|
|
1703
|
+
box-sizing: border-box;
|
|
1704
|
+
background: var(--tagIt-chat-panel-header-bg);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.tagIt-chat-resource-sidecar .tagIt-chat-resource-list {
|
|
1708
|
+
flex: 1;
|
|
1709
|
+
max-height: none;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
.tagIt-chat-resource-picker-header {
|
|
1713
|
+
display: flex;
|
|
1714
|
+
align-items: center;
|
|
1715
|
+
justify-content: space-between;
|
|
1716
|
+
gap: 12px;
|
|
1717
|
+
padding: 10px 12px;
|
|
1718
|
+
border-bottom: 1px solid var(--tagIt-chat-border);
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
.tagIt-chat-resource-picker-header > div:first-child {
|
|
1722
|
+
display: grid;
|
|
1723
|
+
gap: 2px;
|
|
1724
|
+
min-width: 0;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
.tagIt-chat-resource-picker-header strong {
|
|
1728
|
+
font-size: 13px;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.tagIt-chat-resource-picker-header span,
|
|
1732
|
+
.tagIt-chat-resource-option small {
|
|
1733
|
+
color: var(--tagIt-chat-muted);
|
|
1734
|
+
font-size: 11px;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.tagIt-chat-resource-picker-actions {
|
|
1738
|
+
display: flex;
|
|
1739
|
+
gap: 4px;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
.tagIt-chat-resource-picker-actions button,
|
|
1743
|
+
.tagIt-chat-resource-button {
|
|
1744
|
+
display: inline-flex;
|
|
1745
|
+
align-items: center;
|
|
1746
|
+
justify-content: center;
|
|
1747
|
+
width: 32px;
|
|
1748
|
+
height: 32px;
|
|
1749
|
+
padding: 0;
|
|
1750
|
+
border: 1px solid transparent;
|
|
1751
|
+
border-radius: 6px;
|
|
1752
|
+
background: transparent;
|
|
1753
|
+
color: var(--tagIt-chat-muted);
|
|
1754
|
+
cursor: pointer;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.tagIt-chat-resource-picker-actions button:hover,
|
|
1758
|
+
.tagIt-chat-resource-button:hover,
|
|
1759
|
+
.tagIt-chat-resource-button[data-active] {
|
|
1760
|
+
border-color: var(--tagIt-chat-border);
|
|
1761
|
+
background: color-mix(in srgb, var(--tagIt-chat-primary) 9%, transparent);
|
|
1762
|
+
color: var(--tagIt-chat-primary);
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
.tagIt-chat-resource-button {
|
|
1766
|
+
position: relative;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
.tagIt-chat-resource-button > span {
|
|
1770
|
+
position: absolute;
|
|
1771
|
+
top: -3px;
|
|
1772
|
+
right: -3px;
|
|
1773
|
+
min-width: 16px;
|
|
1774
|
+
height: 16px;
|
|
1775
|
+
padding: 0 4px;
|
|
1776
|
+
border-radius: 8px;
|
|
1777
|
+
background: var(--tagIt-chat-primary);
|
|
1778
|
+
color: var(--tagIt-chat-primary-contrast);
|
|
1779
|
+
font-size: 10px;
|
|
1780
|
+
line-height: 16px;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
.tagIt-chat-resource-list {
|
|
1784
|
+
max-height: 220px;
|
|
1785
|
+
overflow-y: auto;
|
|
1786
|
+
padding: 6px;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
.tagIt-chat-resource-option {
|
|
1790
|
+
display: grid;
|
|
1791
|
+
grid-template-columns: 20px minmax(0, 1fr) 18px;
|
|
1792
|
+
align-items: center;
|
|
1793
|
+
gap: 8px;
|
|
1794
|
+
width: 100%;
|
|
1795
|
+
min-height: 48px;
|
|
1796
|
+
padding: 7px 8px;
|
|
1797
|
+
border: 0;
|
|
1798
|
+
border-radius: 6px;
|
|
1799
|
+
background: transparent;
|
|
1800
|
+
color: var(--tagIt-chat-text);
|
|
1801
|
+
text-align: left;
|
|
1802
|
+
cursor: pointer;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
.tagIt-chat-resource-option:hover,
|
|
1806
|
+
.tagIt-chat-resource-option[data-selected] {
|
|
1807
|
+
background: color-mix(in srgb, var(--tagIt-chat-primary) 9%, transparent);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
.tagIt-chat-resource-option > span {
|
|
1811
|
+
display: grid;
|
|
1812
|
+
gap: 2px;
|
|
1813
|
+
min-width: 0;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.tagIt-chat-resource-option strong,
|
|
1817
|
+
.tagIt-chat-resource-option small {
|
|
1818
|
+
overflow: hidden;
|
|
1819
|
+
text-overflow: ellipsis;
|
|
1820
|
+
white-space: nowrap;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.tagIt-chat-resource-empty,
|
|
1824
|
+
.tagIt-chat-resource-error {
|
|
1825
|
+
padding: 12px;
|
|
1826
|
+
color: var(--tagIt-chat-muted);
|
|
1827
|
+
font-size: 12px;
|
|
1828
|
+
text-align: center;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
.tagIt-chat-resource-error {
|
|
1832
|
+
color: #dc2626;
|
|
1833
|
+
text-align: left;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
@media (max-width: 899px) {
|
|
1837
|
+
.tagIt-chat-resource-sidecar {
|
|
1838
|
+
display: none;
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1558
1842
|
.tagIt-chat-checkpoint-prompt {
|
|
1559
1843
|
margin: 0 0 10px;
|
|
1560
1844
|
padding: 10px 12px;
|
|
@@ -1613,7 +1897,8 @@
|
|
|
1613
1897
|
|
|
1614
1898
|
.tagIt-chat-input-actions {
|
|
1615
1899
|
display: flex;
|
|
1616
|
-
justify-content:
|
|
1900
|
+
justify-content: space-between;
|
|
1901
|
+
align-items: center;
|
|
1617
1902
|
padding: 6px 8px;
|
|
1618
1903
|
}
|
|
1619
1904
|
|