@websolutespa/bom-llm 0.0.57 → 0.0.59

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,17 @@
1
1
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.59
4
+
5
+ ### Patch Changes
6
+
7
+ - fb1caf0: Add feedback functionality
8
+
9
+ ## 0.0.58
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixing: chunksToChunkItems first chunk
14
+
3
15
  ## 0.0.57
4
16
 
5
17
  ### Patch Changes
@@ -511,11 +511,14 @@ llm-embed {
511
511
  margin: 0;
512
512
  padding: 0;
513
513
  border: none;
514
+ border-radius: 0;
514
515
  text-decoration: none;
515
516
  background: none;
517
+ color: inherit;
516
518
  appearance: none;
517
519
  font-family: inherit;
518
520
  font-style: inherit;
521
+ font-size: inherit;
519
522
  font-variant-ligatures: inherit;
520
523
  font-variant-caps: inherit;
521
524
  font-variant-numeric: inherit;
@@ -628,11 +631,14 @@ llm-embed {
628
631
  margin: 0;
629
632
  padding: 0;
630
633
  border: none;
634
+ border-radius: 0;
631
635
  text-decoration: none;
632
636
  background: none;
637
+ color: inherit;
633
638
  appearance: none;
634
639
  font-family: inherit;
635
640
  font-style: inherit;
641
+ font-size: inherit;
636
642
  font-variant-ligatures: inherit;
637
643
  font-variant-caps: inherit;
638
644
  font-variant-numeric: inherit;
@@ -995,11 +1001,14 @@ llm-embed {
995
1001
  margin: 0;
996
1002
  padding: 0;
997
1003
  border: none;
1004
+ border-radius: 0;
998
1005
  text-decoration: none;
999
1006
  background: none;
1007
+ color: inherit;
1000
1008
  appearance: none;
1001
1009
  font-family: inherit;
1002
1010
  font-style: inherit;
1011
+ font-size: inherit;
1003
1012
  font-variant-ligatures: inherit;
1004
1013
  font-variant-caps: inherit;
1005
1014
  font-variant-numeric: inherit;
@@ -1064,11 +1073,14 @@ llm-embed {
1064
1073
  margin: 0;
1065
1074
  padding: 0;
1066
1075
  border: none;
1076
+ border-radius: 0;
1067
1077
  text-decoration: none;
1068
1078
  background: none;
1079
+ color: inherit;
1069
1080
  appearance: none;
1070
1081
  font-family: inherit;
1071
1082
  font-style: inherit;
1083
+ font-size: inherit;
1072
1084
  font-variant-ligatures: inherit;
1073
1085
  font-variant-caps: inherit;
1074
1086
  font-variant-numeric: inherit;
@@ -1138,11 +1150,14 @@ llm-embed {
1138
1150
  margin: 0;
1139
1151
  padding: 0;
1140
1152
  border: none;
1153
+ border-radius: 0;
1141
1154
  text-decoration: none;
1142
1155
  background: none;
1156
+ color: inherit;
1143
1157
  appearance: none;
1144
1158
  font-family: inherit;
1145
1159
  font-style: inherit;
1160
+ font-size: inherit;
1146
1161
  font-variant-ligatures: inherit;
1147
1162
  font-variant-caps: inherit;
1148
1163
  font-variant-numeric: inherit;
@@ -1311,11 +1326,14 @@ llm-embed {
1311
1326
  margin: 0;
1312
1327
  padding: 0;
1313
1328
  border: none;
1329
+ border-radius: 0;
1314
1330
  text-decoration: none;
1315
1331
  background: none;
1332
+ color: inherit;
1316
1333
  appearance: none;
1317
1334
  font-family: inherit;
1318
1335
  font-style: inherit;
1336
+ font-size: inherit;
1319
1337
  font-variant-ligatures: inherit;
1320
1338
  font-variant-caps: inherit;
1321
1339
  font-variant-numeric: inherit;
@@ -1368,6 +1386,7 @@ llm-embed {
1368
1386
  color: var(--llm-hint-title-color, inherit);
1369
1387
  }
1370
1388
  .llm .llm__hint-title.row {
1389
+ width: 100%;
1371
1390
  flex-direction: row;
1372
1391
  align-items: center;
1373
1392
  }
@@ -1498,11 +1517,14 @@ llm-embed {
1498
1517
  margin: 0;
1499
1518
  padding: 0;
1500
1519
  border: none;
1520
+ border-radius: 0;
1501
1521
  text-decoration: none;
1502
1522
  background: none;
1523
+ color: inherit;
1503
1524
  appearance: none;
1504
1525
  font-family: inherit;
1505
1526
  font-style: inherit;
1527
+ font-size: inherit;
1506
1528
  font-variant-ligatures: inherit;
1507
1529
  font-variant-caps: inherit;
1508
1530
  font-variant-numeric: inherit;
@@ -1593,11 +1615,14 @@ llm-embed {
1593
1615
  margin: 0;
1594
1616
  padding: 0;
1595
1617
  border: none;
1618
+ border-radius: 0;
1596
1619
  text-decoration: none;
1597
1620
  background: none;
1621
+ color: inherit;
1598
1622
  appearance: none;
1599
1623
  font-family: inherit;
1600
1624
  font-style: inherit;
1625
+ font-size: inherit;
1601
1626
  font-variant-ligatures: inherit;
1602
1627
  font-variant-caps: inherit;
1603
1628
  font-variant-numeric: inherit;
@@ -1644,11 +1669,14 @@ llm-embed {
1644
1669
  margin: 0;
1645
1670
  padding: 0;
1646
1671
  border: none;
1672
+ border-radius: 0;
1647
1673
  text-decoration: none;
1648
1674
  background: none;
1675
+ color: inherit;
1649
1676
  appearance: none;
1650
1677
  font-family: inherit;
1651
1678
  font-style: inherit;
1679
+ font-size: inherit;
1652
1680
  font-variant-ligatures: inherit;
1653
1681
  font-variant-caps: inherit;
1654
1682
  font-variant-numeric: inherit;
@@ -1724,11 +1752,14 @@ llm-embed {
1724
1752
  margin: 0;
1725
1753
  padding: 0;
1726
1754
  border: none;
1755
+ border-radius: 0;
1727
1756
  text-decoration: none;
1728
1757
  background: none;
1758
+ color: inherit;
1729
1759
  appearance: none;
1730
1760
  font-family: inherit;
1731
1761
  font-style: inherit;
1762
+ font-size: inherit;
1732
1763
  font-variant-ligatures: inherit;
1733
1764
  font-variant-caps: inherit;
1734
1765
  font-variant-numeric: inherit;
@@ -1855,11 +1886,14 @@ llm-embed {
1855
1886
  margin: 0;
1856
1887
  padding: 0;
1857
1888
  border: none;
1889
+ border-radius: 0;
1858
1890
  text-decoration: none;
1859
1891
  background: none;
1892
+ color: inherit;
1860
1893
  appearance: none;
1861
1894
  font-family: inherit;
1862
1895
  font-style: inherit;
1896
+ font-size: inherit;
1863
1897
  font-variant-ligatures: inherit;
1864
1898
  font-variant-caps: inherit;
1865
1899
  font-variant-numeric: inherit;
@@ -1926,11 +1960,14 @@ llm-embed {
1926
1960
  margin: 0;
1927
1961
  padding: 0;
1928
1962
  border: none;
1963
+ border-radius: 0;
1929
1964
  text-decoration: none;
1930
1965
  background: none;
1966
+ color: inherit;
1931
1967
  appearance: none;
1932
1968
  font-family: inherit;
1933
1969
  font-style: inherit;
1970
+ font-size: inherit;
1934
1971
  font-variant-ligatures: inherit;
1935
1972
  font-variant-caps: inherit;
1936
1973
  font-variant-numeric: inherit;
@@ -1989,11 +2026,14 @@ llm-embed {
1989
2026
  margin: 0;
1990
2027
  padding: 0;
1991
2028
  border: none;
2029
+ border-radius: 0;
1992
2030
  text-decoration: none;
1993
2031
  background: none;
2032
+ color: inherit;
1994
2033
  appearance: none;
1995
2034
  font-family: inherit;
1996
2035
  font-style: inherit;
2036
+ font-size: inherit;
1997
2037
  font-variant-ligatures: inherit;
1998
2038
  font-variant-caps: inherit;
1999
2039
  font-variant-numeric: inherit;
@@ -4408,6 +4448,175 @@ llm-embed {
4408
4448
  margin-top: auto;
4409
4449
  }
4410
4450
 
4451
+ .llm .llm__feedback {
4452
+ --size: var(--llm-feedback-size, 1rem);
4453
+ }
4454
+ .llm .llm__feedback--stars, .llm .llm__feedback--faces {
4455
+ --unchecked: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" fill="white" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 24 24" %3e%3cpath d="m11.322 2.923c.126-.259.39-.423.678-.423.289 0 .552.164.678.423.974 1.998 2.65 5.44 2.65 5.44s3.811.524 6.022.829c.403.055.65.396.65.747 0 .19-.072.383-.231.536-1.61 1.538-4.382 4.191-4.382 4.191s.677 3.767 1.069 5.952c.083.462-.275.882-.742.882-.122 0-.244-.029-.355-.089-1.968-1.048-5.359-2.851-5.359-2.851s-3.391 1.803-5.359 2.851c-.111.06-.234.089-.356.089-.465 0-.825-.421-.741-.882.393-2.185 1.07-5.952 1.07-5.952s-2.773-2.653-4.382-4.191c-.16-.153-.232-.346-.232-.535 0-.352.249-.694.651-.748 2.211-.305 6.021-.829 6.021-.829s1.677-3.442 2.65-5.44zm.678 2.033-2.361 4.792-5.246.719 3.848 3.643-.948 5.255 4.707-2.505 4.707 2.505-.951-5.236 3.851-3.662-5.314-.756z" fill-rule="nonzero" /%3e%3c/svg%3e');
4456
+ --checked: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" fill="orange" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 24 24" %3e%3cpath d="m11.322 2.923c.126-.259.39-.423.678-.423.289 0 .552.164.678.423.974 1.998 2.65 5.44 2.65 5.44s3.811.524 6.022.829c.403.055.65.396.65.747 0 .19-.072.383-.231.536-1.61 1.538-4.382 4.191-4.382 4.191s.677 3.767 1.069 5.952c.083.462-.275.882-.742.882-.122 0-.244-.029-.355-.089-1.968-1.048-5.359-2.851-5.359-2.851s-3.391 1.803-5.359 2.851c-.111.06-.234.089-.356.089-.465 0-.825-.421-.741-.882.393-2.185 1.07-5.952 1.07-5.952s-2.773-2.653-4.382-4.191c-.16-.153-.232-.346-.232-.535 0-.352.249-.694.651-.748 2.211-.305 6.021-.829 6.021-.829s1.677-3.442 2.65-5.44z" fill-rule="nonzero" /%3e%3c/svg%3e');
4457
+ --hover: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" fill="orange" fill-rule="evenodd" stroke="black" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 24 24" %3e%3cpath d="m11.322 2.923c.126-.259.39-.423.678-.423.289 0 .552.164.678.423.974 1.998 2.65 5.44 2.65 5.44s3.811.524 6.022.829c.403.055.65.396.65.747 0 .19-.072.383-.231.536-1.61 1.538-4.382 4.191-4.382 4.191s.677 3.767 1.069 5.952c.083.462-.275.882-.742.882-.122 0-.244-.029-.355-.089-1.968-1.048-5.359-2.851-5.359-2.851s-3.391 1.803-5.359 2.851c-.111.06-.234.089-.356.089-.465 0-.825-.421-.741-.882.393-2.185 1.07-5.952 1.07-5.952s-2.773-2.653-4.382-4.191c-.16-.153-.232-.346-.232-.535 0-.352.249-.694.651-.748 2.211-.305 6.021-.829 6.021-.829s1.677-3.442 2.65-5.44z" fill-rule="nonzero" /%3e%3c/svg%3e');
4458
+ --count: 5;
4459
+ }
4460
+ .llm .llm__feedback__group {
4461
+ margin-top: var(--llm-feedback-padding);
4462
+ padding-top: var(--llm-feedback-padding);
4463
+ background: transparent;
4464
+ color: white;
4465
+ padding: 0.5rem 1rem;
4466
+ border-radius: 8px;
4467
+ border: var(--llm-feedback-border);
4468
+ background: transparent;
4469
+ backdrop-filter: blur(20px);
4470
+ }
4471
+ .llm .llm__feedback__title {
4472
+ font-size: 16px;
4473
+ font-weight: 500;
4474
+ }
4475
+ .llm .llm__feedback__form {
4476
+ display: flex;
4477
+ flex-direction: column;
4478
+ gap: var(--llm-feedback-gap);
4479
+ margin-top: 0.5em;
4480
+ }
4481
+ @media (min-width: 768px) {
4482
+ .llm .llm__feedback__form {
4483
+ flex-direction: row;
4484
+ align-items: center;
4485
+ justify-content: space-between;
4486
+ }
4487
+ }
4488
+ .llm .llm__feedback__rating, .llm .llm__feedback__message, .llm .llm__feedback__cta {
4489
+ appearance: none;
4490
+ display: flex;
4491
+ border: none;
4492
+ padding: 0;
4493
+ margin: 0;
4494
+ }
4495
+ .llm .llm__feedback__rating legend, .llm .llm__feedback__message legend, .llm .llm__feedback__cta legend {
4496
+ font-size: 0;
4497
+ line-height: 0;
4498
+ }
4499
+ .llm .llm__feedback__message {
4500
+ width: 100%;
4501
+ }
4502
+ .llm .llm__feedback__message input {
4503
+ box-sizing: border-box;
4504
+ width: 100%;
4505
+ height: auto;
4506
+ padding: 0.3em 0.5em;
4507
+ border-radius: 4px;
4508
+ border: none;
4509
+ font-size: 16px;
4510
+ line-height: 1.25;
4511
+ background: rgba(0, 0, 0, 0.1);
4512
+ }
4513
+ .llm .llm__feedback__message input::placeholder {
4514
+ color: white;
4515
+ opacity: 0.5;
4516
+ }
4517
+ @media (min-width: 768px) {
4518
+ .llm .llm__feedback__message {
4519
+ flex-grow: 1;
4520
+ width: auto;
4521
+ }
4522
+ }
4523
+ .llm .llm__feedback__stars {
4524
+ position: relative;
4525
+ height: var(--size);
4526
+ width: calc(var(--size) * var(--count));
4527
+ background-image: var(--unchecked);
4528
+ background-size: var(--size) var(--size);
4529
+ }
4530
+ .llm .llm__feedback__stars label {
4531
+ position: absolute;
4532
+ height: 100%;
4533
+ background-size: var(--size) var(--size);
4534
+ cursor: pointer;
4535
+ }
4536
+ .llm .llm__feedback__stars label:nth-of-type(1) {
4537
+ z-index: 10;
4538
+ width: var(--size);
4539
+ }
4540
+ .llm .llm__feedback__stars label:nth-of-type(2) {
4541
+ z-index: 9;
4542
+ width: calc(var(--size) * 2);
4543
+ }
4544
+ .llm .llm__feedback__stars label:nth-of-type(3) {
4545
+ z-index: 8;
4546
+ width: calc(var(--size) * 3);
4547
+ }
4548
+ .llm .llm__feedback__stars label:nth-of-type(4) {
4549
+ z-index: 7;
4550
+ width: calc(var(--size) * 4);
4551
+ }
4552
+ .llm .llm__feedback__stars label:nth-of-type(5) {
4553
+ z-index: 6;
4554
+ width: calc(var(--size) * 5);
4555
+ }
4556
+ .llm .llm__feedback__stars label:nth-of-type(6) {
4557
+ z-index: 5;
4558
+ width: calc(var(--size) * 6);
4559
+ }
4560
+ .llm .llm__feedback__stars label:nth-of-type(7) {
4561
+ z-index: 4;
4562
+ width: calc(var(--size) * 7);
4563
+ }
4564
+ .llm .llm__feedback__stars label:nth-of-type(8) {
4565
+ z-index: 3;
4566
+ width: calc(var(--size) * 8);
4567
+ }
4568
+ .llm .llm__feedback__stars label:nth-of-type(9) {
4569
+ z-index: 2;
4570
+ width: calc(var(--size) * 9);
4571
+ }
4572
+ .llm .llm__feedback__stars label:nth-of-type(10) {
4573
+ z-index: 1;
4574
+ width: calc(var(--size) * 10);
4575
+ }
4576
+ .llm .llm__feedback__stars input:checked + label, .llm .llm__feedback__stars input:focus + label {
4577
+ background-image: var(--checked);
4578
+ }
4579
+ .llm .llm__feedback__stars input:checked + label:hover, .llm .llm__feedback__stars label:hover {
4580
+ background-image: var(--hover);
4581
+ }
4582
+ .llm .llm__feedback__stars input:focus + label {
4583
+ outline: var(--llm-feedback-border);
4584
+ }
4585
+ .llm .llm__feedback__stars input, .llm .llm__feedback__stars label > span {
4586
+ border: 0;
4587
+ padding: 0;
4588
+ margin: 0;
4589
+ position: absolute !important;
4590
+ height: 1px;
4591
+ width: 1px;
4592
+ overflow: hidden;
4593
+ clip: rect(1px 1px 1px 1px);
4594
+ /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */
4595
+ clip: rect(1px, 1px, 1px, 1px);
4596
+ /*maybe deprecated but we need to support legacy browsers */
4597
+ clip-path: inset(50%);
4598
+ /*modern browsers, clip-path works inwards from each corner*/
4599
+ white-space: nowrap;
4600
+ /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */
4601
+ }
4602
+ .llm .llm__feedback__cta button {
4603
+ padding: 0.3em 1em;
4604
+ border: var(--llm-feedback-border);
4605
+ border-radius: 4px;
4606
+ font-size: 14px;
4607
+ font-weight: 500;
4608
+ text-transform: lowercase;
4609
+ cursor: pointer;
4610
+ transition: background-color ease-in-out 250ms;
4611
+ }
4612
+ .llm .llm__feedback__cta button:hover {
4613
+ background: rgba(255, 255, 255, 0.2);
4614
+ }
4615
+ .llm .llm__feedback__cta button[disabled] {
4616
+ pointer-events: none;
4617
+ opacity: 0.5;
4618
+ }
4619
+
4411
4620
  /**
4412
4621
  * Swiper 8.4.7
4413
4622
  * Most modern mobile touch slider and framework with hardware accelerated transitions