@websolutespa/bom-llm 0.0.29 → 0.0.30

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 8024a99: Added: useFocusTrap, regExpMapper, a11y
8
+
3
9
  ## 0.0.29
4
10
 
5
11
  ### Patch Changes
@@ -997,6 +997,32 @@ llm-embed {
997
997
  cursor: pointer;
998
998
  }
999
999
  .llm .llm__trigger-btn {
1000
+ margin: 0;
1001
+ padding: 0;
1002
+ border: none;
1003
+ text-decoration: none;
1004
+ background: none;
1005
+ appearance: none;
1006
+ font-family: inherit;
1007
+ font-style: inherit;
1008
+ font-variant-ligatures: inherit;
1009
+ font-variant-caps: inherit;
1010
+ font-variant-numeric: inherit;
1011
+ font-variant-east-asian: inherit;
1012
+ font-weight: inherit;
1013
+ font-stretch: inherit;
1014
+ text-rendering: inherit;
1015
+ letter-spacing: inherit;
1016
+ word-spacing: inherit;
1017
+ line-height: inherit;
1018
+ text-transform: none;
1019
+ text-indent: inherit;
1020
+ text-shadow: none;
1021
+ text-align: inherit;
1022
+ pointer-events: auto;
1023
+ cursor: pointer;
1024
+ outline: 2px solid transparent;
1025
+ outline-offset: 2px;
1000
1026
  position: relative;
1001
1027
  width: var(--llm-trigger-size);
1002
1028
  height: var(--llm-trigger-size);
@@ -1007,8 +1033,9 @@ llm-embed {
1007
1033
  will-change: transform;
1008
1034
  transition: 0.4s;
1009
1035
  box-shadow: var(--llm-trigger-box-shadow);
1010
- pointer-events: auto;
1011
- cursor: pointer;
1036
+ }
1037
+ .llm .llm__trigger-btn:focus {
1038
+ outline-color: currentColor;
1012
1039
  }
1013
1040
  .llm .llm__trigger-btn > span {
1014
1041
  line-height: 1;
@@ -1308,15 +1335,93 @@ llm-embed {
1308
1335
  .llm .llm__header-logo-mini > img {
1309
1336
  object-fit: contain;
1310
1337
  }
1338
+ .llm .llm__header-skip {
1339
+ margin: 0;
1340
+ padding: 0;
1341
+ border: none;
1342
+ text-decoration: none;
1343
+ background: none;
1344
+ appearance: none;
1345
+ font-family: inherit;
1346
+ font-style: inherit;
1347
+ font-variant-ligatures: inherit;
1348
+ font-variant-caps: inherit;
1349
+ font-variant-numeric: inherit;
1350
+ font-variant-east-asian: inherit;
1351
+ font-weight: inherit;
1352
+ font-stretch: inherit;
1353
+ text-rendering: inherit;
1354
+ letter-spacing: inherit;
1355
+ word-spacing: inherit;
1356
+ line-height: inherit;
1357
+ text-transform: none;
1358
+ text-indent: inherit;
1359
+ text-shadow: none;
1360
+ text-align: inherit;
1361
+ pointer-events: auto;
1362
+ cursor: pointer;
1363
+ outline: 2px solid transparent;
1364
+ outline-offset: 2px;
1365
+ background-color: var(--llm-color-background);
1366
+ border: 0 !important;
1367
+ clip: rect(1px, 1px, 1px, 1px) !important;
1368
+ clip-path: inset(50%) !important;
1369
+ height: 1px !important;
1370
+ margin: -1px !important;
1371
+ overflow: hidden !important;
1372
+ padding: 0 !important;
1373
+ position: absolute !important;
1374
+ width: 1px !important;
1375
+ white-space: nowrap !important;
1376
+ }
1377
+ .llm .llm__header-skip:focus {
1378
+ outline-color: currentColor;
1379
+ }
1380
+ .llm .llm__header-skip:focus, .llm .llm__header-skip:active {
1381
+ clip: auto !important;
1382
+ clip-path: none !important;
1383
+ height: auto !important;
1384
+ margin: auto !important;
1385
+ overflow: visible !important;
1386
+ width: auto !important;
1387
+ white-space: normal !important;
1388
+ }
1311
1389
  .llm .llm__header-back {
1390
+ margin: 0;
1391
+ padding: 0;
1392
+ border: none;
1393
+ text-decoration: none;
1394
+ background: none;
1395
+ appearance: none;
1396
+ font-family: inherit;
1397
+ font-style: inherit;
1398
+ font-variant-ligatures: inherit;
1399
+ font-variant-caps: inherit;
1400
+ font-variant-numeric: inherit;
1401
+ font-variant-east-asian: inherit;
1402
+ font-weight: inherit;
1403
+ font-stretch: inherit;
1404
+ text-rendering: inherit;
1405
+ letter-spacing: inherit;
1406
+ word-spacing: inherit;
1407
+ line-height: inherit;
1408
+ text-transform: none;
1409
+ text-indent: inherit;
1410
+ text-shadow: none;
1411
+ text-align: inherit;
1412
+ pointer-events: auto;
1413
+ cursor: pointer;
1414
+ outline: 2px solid transparent;
1415
+ outline-offset: 2px;
1312
1416
  display: inline-flex;
1313
1417
  align-items: center;
1314
1418
  gap: clamp(8px, 8px + (100vw - 375px) / 1545 * 0, 8px);
1315
1419
  text-transform: uppercase;
1316
1420
  user-select: none;
1317
1421
  color: var(--llm-color-title-foreground);
1318
- pointer-events: auto;
1319
- cursor: pointer;
1422
+ }
1423
+ .llm .llm__header-back:focus {
1424
+ outline-color: currentColor;
1320
1425
  }
1321
1426
 
1322
1427
  .llm .llm__scroller {
@@ -1432,6 +1537,32 @@ llm-embed {
1432
1537
  height: auto;
1433
1538
  }
1434
1539
  .llm .llm__hint {
1540
+ margin: 0;
1541
+ padding: 0;
1542
+ border: none;
1543
+ text-decoration: none;
1544
+ background: none;
1545
+ appearance: none;
1546
+ font-family: inherit;
1547
+ font-style: inherit;
1548
+ font-variant-ligatures: inherit;
1549
+ font-variant-caps: inherit;
1550
+ font-variant-numeric: inherit;
1551
+ font-variant-east-asian: inherit;
1552
+ font-weight: inherit;
1553
+ font-stretch: inherit;
1554
+ text-rendering: inherit;
1555
+ letter-spacing: inherit;
1556
+ word-spacing: inherit;
1557
+ line-height: inherit;
1558
+ text-transform: none;
1559
+ text-indent: inherit;
1560
+ text-shadow: none;
1561
+ text-align: inherit;
1562
+ pointer-events: auto;
1563
+ cursor: pointer;
1564
+ outline: 2px solid transparent;
1565
+ outline-offset: 2px;
1435
1566
  display: flex;
1436
1567
  flex-direction: column;
1437
1568
  gap: clamp(8px, 8px + (100vw - 375px) / 1545 * 8, 16px);
@@ -1443,8 +1574,9 @@ llm-embed {
1443
1574
  border: var(--llm-hint-border);
1444
1575
  font-family: var(--llm-hint-font-family);
1445
1576
  backdrop-filter: blur(20px);
1446
- pointer-events: auto;
1447
- cursor: pointer;
1577
+ }
1578
+ .llm .llm__hint:focus {
1579
+ outline-color: currentColor;
1448
1580
  }
1449
1581
  @media (min-width: 768px) {
1450
1582
  .llm .llm__hint:first-child {
@@ -1482,7 +1614,7 @@ llm-embed {
1482
1614
  position: relative;
1483
1615
  box-shadow: -4px 4px 50px 0px rgba(8, 20, 62, 0.08);
1484
1616
  border-radius: 8px;
1485
- overflow: hidden;
1617
+ overflow: visible;
1486
1618
  background: var(--llm-input-background);
1487
1619
  width: 100%;
1488
1620
  }
@@ -1494,6 +1626,18 @@ llm-embed {
1494
1626
  padding: 18px 40px;
1495
1627
  }
1496
1628
  }
1629
+ .llm .llm__prompt-label {
1630
+ border: 0 !important;
1631
+ clip: rect(1px, 1px, 1px, 1px) !important;
1632
+ clip-path: inset(50%) !important;
1633
+ height: 1px !important;
1634
+ margin: -1px !important;
1635
+ overflow: hidden !important;
1636
+ padding: 0 !important;
1637
+ position: absolute !important;
1638
+ width: 1px !important;
1639
+ white-space: nowrap !important;
1640
+ }
1497
1641
  .llm .llm__prompt-textarea {
1498
1642
  appearance: none;
1499
1643
  display: block;
@@ -1502,7 +1646,6 @@ llm-embed {
1502
1646
  width: 100%;
1503
1647
  max-height: 120px;
1504
1648
  min-height: 45px;
1505
- outline: none;
1506
1649
  border: none;
1507
1650
  resize: none;
1508
1651
  border-radius: 0;
@@ -1515,8 +1658,16 @@ llm-embed {
1515
1658
  font-family: var(--llm-input-font-family);
1516
1659
  font-size: 16px;
1517
1660
  line-height: 1.3;
1661
+ border-radius: 8px;
1518
1662
  background: transparent;
1519
1663
  color: var(--llm-input-foreground);
1664
+ pointer-events: auto;
1665
+ cursor: pointer;
1666
+ outline: 2px solid transparent;
1667
+ outline-offset: 2px;
1668
+ }
1669
+ .llm .llm__prompt-textarea:focus {
1670
+ outline-color: currentColor;
1520
1671
  }
1521
1672
  .llm .llm__prompt-textarea::placeholder {
1522
1673
  font-family: var(--llm-input-font-family);
@@ -1532,6 +1683,32 @@ llm-embed {
1532
1683
  }
1533
1684
  }
1534
1685
  .llm .llm__prompt-speak, .llm .llm__prompt-microphone {
1686
+ margin: 0;
1687
+ padding: 0;
1688
+ border: none;
1689
+ text-decoration: none;
1690
+ background: none;
1691
+ appearance: none;
1692
+ font-family: inherit;
1693
+ font-style: inherit;
1694
+ font-variant-ligatures: inherit;
1695
+ font-variant-caps: inherit;
1696
+ font-variant-numeric: inherit;
1697
+ font-variant-east-asian: inherit;
1698
+ font-weight: inherit;
1699
+ font-stretch: inherit;
1700
+ text-rendering: inherit;
1701
+ letter-spacing: inherit;
1702
+ word-spacing: inherit;
1703
+ line-height: inherit;
1704
+ text-transform: none;
1705
+ text-indent: inherit;
1706
+ text-shadow: none;
1707
+ text-align: inherit;
1708
+ pointer-events: auto;
1709
+ cursor: pointer;
1710
+ outline: 2px solid transparent;
1711
+ outline-offset: 2px;
1535
1712
  position: absolute;
1536
1713
  display: flex;
1537
1714
  align-items: center;
@@ -1543,8 +1720,9 @@ llm-embed {
1543
1720
  border-radius: 50%;
1544
1721
  font-size: 16px;
1545
1722
  color: var(--llm-input-accent);
1546
- pointer-events: auto;
1547
- cursor: pointer;
1723
+ }
1724
+ .llm .llm__prompt-speak:focus, .llm .llm__prompt-microphone:focus {
1725
+ outline-color: currentColor;
1548
1726
  }
1549
1727
  .llm .llm__prompt-speak svg, .llm .llm__prompt-microphone svg {
1550
1728
  width: 18px;
@@ -1561,6 +1739,32 @@ llm-embed {
1561
1739
  outline: 2px solid var(--llm-color-base-100);
1562
1740
  }
1563
1741
  .llm .llm__prompt-submit, .llm .llm__prompt-stop {
1742
+ margin: 0;
1743
+ padding: 0;
1744
+ border: none;
1745
+ text-decoration: none;
1746
+ background: none;
1747
+ appearance: none;
1748
+ font-family: inherit;
1749
+ font-style: inherit;
1750
+ font-variant-ligatures: inherit;
1751
+ font-variant-caps: inherit;
1752
+ font-variant-numeric: inherit;
1753
+ font-variant-east-asian: inherit;
1754
+ font-weight: inherit;
1755
+ font-stretch: inherit;
1756
+ text-rendering: inherit;
1757
+ letter-spacing: inherit;
1758
+ word-spacing: inherit;
1759
+ line-height: inherit;
1760
+ text-transform: none;
1761
+ text-indent: inherit;
1762
+ text-shadow: none;
1763
+ text-align: inherit;
1764
+ pointer-events: auto;
1765
+ cursor: pointer;
1766
+ outline: 2px solid transparent;
1767
+ outline-offset: 2px;
1564
1768
  flex-shrink: 0;
1565
1769
  width: 45px;
1566
1770
  height: 45px;
@@ -1571,8 +1775,9 @@ llm-embed {
1571
1775
  background: var(--llm-trigger-background);
1572
1776
  color: var(--llm-trigger-foreground);
1573
1777
  border-radius: 50%;
1574
- pointer-events: auto;
1575
- cursor: pointer;
1778
+ }
1779
+ .llm .llm__prompt-submit:focus, .llm .llm__prompt-stop:focus {
1780
+ outline-color: currentColor;
1576
1781
  }
1577
1782
  @media (min-width: 1024px) {
1578
1783
  .llm .llm__prompt-submit, .llm .llm__prompt-stop {
@@ -1615,10 +1820,39 @@ llm-embed {
1615
1820
  .llm .llm__prompt-suggestions .llm__suggestions {
1616
1821
  margin: 0 calc(clamp(20px, 20px + (100vw - 375px) / 1545 * 90, 110px) * -1);
1617
1822
  }
1823
+ .llm .llm__prompt-suggestions .swiper {
1824
+ overflow: visible;
1825
+ }
1618
1826
  .llm .llm__prompt-suggestions .swiper-slide {
1619
1827
  width: auto;
1620
1828
  }
1621
1829
  .llm .llm__pill {
1830
+ margin: 0;
1831
+ padding: 0;
1832
+ border: none;
1833
+ text-decoration: none;
1834
+ background: none;
1835
+ appearance: none;
1836
+ font-family: inherit;
1837
+ font-style: inherit;
1838
+ font-variant-ligatures: inherit;
1839
+ font-variant-caps: inherit;
1840
+ font-variant-numeric: inherit;
1841
+ font-variant-east-asian: inherit;
1842
+ font-weight: inherit;
1843
+ font-stretch: inherit;
1844
+ text-rendering: inherit;
1845
+ letter-spacing: inherit;
1846
+ word-spacing: inherit;
1847
+ line-height: inherit;
1848
+ text-transform: none;
1849
+ text-indent: inherit;
1850
+ text-shadow: none;
1851
+ text-align: inherit;
1852
+ pointer-events: auto;
1853
+ cursor: pointer;
1854
+ outline: 2px solid transparent;
1855
+ outline-offset: 2px;
1622
1856
  line-height: 1;
1623
1857
  font-family: var(--llm-font-primary);
1624
1858
  font-weight: var(--llm-typography-cta2-font-weight);
@@ -1632,28 +1866,66 @@ llm-embed {
1632
1866
  color: var(--llm-pill-foreground);
1633
1867
  font-family: var(--llm-pill-font-family);
1634
1868
  backdrop-filter: blur(20px);
1635
- pointer-events: auto;
1636
- cursor: pointer;
1637
1869
  }
1638
- .llm .llm__prompt-powered-by {
1870
+ .llm .llm__pill:focus {
1871
+ outline-color: currentColor;
1872
+ }
1873
+ .llm .llm__prompt-footer {
1639
1874
  position: absolute;
1640
1875
  display: flex;
1641
1876
  justify-content: center;
1642
1877
  align-items: center;
1643
- column-gap: 4px;
1644
1878
  right: 0;
1645
1879
  left: 0;
1880
+ padding: 4px 0 0 0;
1881
+ }
1882
+ @media (min-width: 1024px) {
1883
+ .llm .llm__prompt-footer {
1884
+ padding: 6px 0;
1885
+ }
1886
+ }
1887
+ .llm .llm__prompt-powered-by {
1888
+ margin: 0;
1889
+ padding: 0;
1890
+ border: none;
1891
+ text-decoration: none;
1892
+ background: none;
1893
+ appearance: none;
1894
+ font-family: inherit;
1895
+ font-style: inherit;
1896
+ font-variant-ligatures: inherit;
1897
+ font-variant-caps: inherit;
1898
+ font-variant-numeric: inherit;
1899
+ font-variant-east-asian: inherit;
1900
+ font-weight: inherit;
1901
+ font-stretch: inherit;
1902
+ text-rendering: inherit;
1903
+ letter-spacing: inherit;
1904
+ word-spacing: inherit;
1905
+ line-height: inherit;
1906
+ text-transform: none;
1907
+ text-indent: inherit;
1908
+ text-shadow: none;
1909
+ text-align: inherit;
1910
+ pointer-events: auto;
1911
+ cursor: pointer;
1912
+ outline: 2px solid transparent;
1913
+ outline-offset: 2px;
1914
+ display: flex;
1915
+ justify-content: center;
1916
+ align-items: center;
1917
+ column-gap: 4px;
1646
1918
  color: var(--llm-color-foreground);
1647
1919
  opacity: 0.4;
1648
1920
  transition: opacity ease-in-out 250ms;
1649
- pointer-events: auto;
1650
- cursor: pointer;
1651
- padding: 4px 0 0 0;
1652
1921
  font-size: 11px;
1922
+ padding: 0 0.3em;
1923
+ }
1924
+ .llm .llm__prompt-powered-by:focus {
1925
+ outline-color: currentColor;
1653
1926
  }
1654
1927
  @media (min-width: 1024px) {
1655
1928
  .llm .llm__prompt-powered-by {
1656
- padding: 6px 0;
1657
1929
  font-size: 12px;
1658
1930
  }
1659
1931
  }
@@ -1675,13 +1947,14 @@ llm-embed {
1675
1947
  border-radius: 12px;
1676
1948
  padding: clamp(16px, 16px + (100vw - 375px) / 1545 * 8, 24px) clamp(24px, 24px + (100vw - 375px) / 1545 * 8, 32px);
1677
1949
  }
1678
- .llm .llm__message--assistant .llm__inner--string:first-child .llm__text .llm__text-body {
1950
+ .llm .llm__message--assistant .llm__inner--string:first-child .llm__text .llm__text-body, .llm .llm__message--assistant .llm__inner--string:first-child .llm__text .llm__text-body > p, .llm .llm__message--assistant .llm__inner--string:first-child .llm__text .llm__text-body > h2 {
1679
1951
  line-height: 1;
1680
1952
  font-family: var(--llm-font-primary);
1681
1953
  font-weight: var(--llm-typography-display3-font-weight);
1682
1954
  line-height: var(--llm-typography-display3-line-height);
1683
1955
  letter-spacing: var(--llm-typography-display3-letter-spacing);
1684
1956
  font-size: clamp(var(--llm-typography-display3-font-size-min) * 1px, var(--llm-typography-display3-font-size-min) * 1px + (100vw - 375px) / 1545 * (var(--llm-typography-display3-font-size-max) - var(--llm-typography-display3-font-size-min)), var(--llm-typography-display3-font-size-max) * 1px);
1957
+ margin: 0;
1685
1958
  }
1686
1959
  .llm .llm__message--assistant .llm__inner--string:not(:first-child) .llm__text .llm__text-body {
1687
1960
  line-height: 1;