@websolutespa/bom-llm 0.0.4 → 0.0.6

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,19 @@
1
1
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixing: threads
8
+ - Modified: MessageService, FormRecap, useLlm
9
+
10
+ ## 0.0.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Added: declarations
15
+ - Modified: FormRecap, QuickLinks
16
+
3
17
  ## 0.0.4
4
18
 
5
19
  ### Patch Changes
@@ -0,0 +1,17 @@
1
+ type LlmItem = Record<string, any> & {
2
+ type: string;
3
+ };
4
+ type LlmDecorateUrl = (item: LlmItem) => (string | void) | Promise<string | void>;
5
+ type LlmOptions = {
6
+ apiKey: string;
7
+ appKey: string;
8
+ decorateUrl?: LlmDecorateUrl;
9
+ locale?: string;
10
+ market?: string;
11
+ test?: boolean;
12
+ threadId?: string;
13
+ };
14
+
15
+ declare function bomLlm(props: LlmOptions): void;
16
+
17
+ export { bomLlm };
@@ -705,7 +705,7 @@
705
705
  }
706
706
  }
707
707
 
708
- .llm-span-md-8, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string {
708
+ .llm-span-md-8, .llm .llm__inner--formRecapError, .llm .llm__inner--formRecapSuccess, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string {
709
709
  padding-left: clamp(10px,
710
710
  calc(10px + (100vw - 375px) / (1920 - 375) * (2)),
711
711
  12px);
@@ -714,7 +714,7 @@
714
714
  12px);
715
715
  }
716
716
  @media (min-width: 1024px) {
717
- .llm-span-md-8, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string {
717
+ .llm-span-md-8, .llm .llm__inner--formRecapError, .llm .llm__inner--formRecapSuccess, .llm .llm__inner--formRequest, .llm .llm__message--assistant .llm__inner--string, .llm .llm__message--user .llm__inner--string {
718
718
  width: auto;
719
719
  max-width: calc(8/ 12 * 100%);
720
720
  }
@@ -1765,7 +1765,12 @@
1765
1765
  }
1766
1766
  .llm .llm__message--assistant .llm__inner--string:not(:first-child) .llm__text .llm__text-body ol,
1767
1767
  .llm .llm__message--assistant .llm__inner--string:not(:first-child) .llm__text .llm__text-body ul {
1768
- margin-left: 2em;
1768
+ display: flex;
1769
+ flex-direction: column;
1770
+ gap: clamp(24px,
1771
+ calc(24px + (100vw - 375px) / (1920 - 375) * (8)),
1772
+ 32px);
1773
+ margin-left: 1em;
1769
1774
  }
1770
1775
  .llm .llm__message--assistant .llm__inner--string:not(:first-child) .llm__text .llm__text-body ul {
1771
1776
  list-style: disc;
@@ -2514,6 +2519,26 @@
2514
2519
  opacity: 0.6;
2515
2520
  }
2516
2521
 
2522
+ .llm .llm__inner--formRequest:not(:first-child) .llm__text-body {
2523
+ line-height: 1;
2524
+ font-family: var(--llm-font-primary);
2525
+ font-weight: 500;
2526
+ line-height: 1.3;
2527
+ letter-spacing: 0.02em;
2528
+ font-size: clamp(16px, calc(16px + (100vw - 375px) / (1920 - 375) * (16)), 32px);
2529
+ }
2530
+ .llm .llm__ctas {
2531
+ display: flex;
2532
+ flex-wrap: wrap;
2533
+ align-items: center;
2534
+ gap: clamp(8px,
2535
+ calc(8px + (100vw - 375px) / (1920 - 375) * (8)),
2536
+ 16px);
2537
+ margin-top: clamp(8px,
2538
+ calc(8px + (100vw - 375px) / (1920 - 375) * (8)),
2539
+ 16px);
2540
+ }
2541
+
2517
2542
  .llm .llm__subscribe-title {
2518
2543
  line-height: 1;
2519
2544
  font-family: var(--llm-font-primary);
@@ -2624,7 +2649,7 @@
2624
2649
  display: block;
2625
2650
  }
2626
2651
 
2627
- .llm .llm__inner--formRequest:not(:first-child) .llm__text-body {
2652
+ .llm .llm__inner--formRecapSuccess .llm__text-body {
2628
2653
  line-height: 1;
2629
2654
  font-family: var(--llm-font-primary);
2630
2655
  font-weight: 500;
@@ -2632,16 +2657,14 @@
2632
2657
  letter-spacing: 0.02em;
2633
2658
  font-size: clamp(16px, calc(16px + (100vw - 375px) / (1920 - 375) * (16)), 32px);
2634
2659
  }
2635
- .llm .llm__ctas {
2636
- display: flex;
2637
- flex-wrap: wrap;
2638
- align-items: center;
2639
- gap: clamp(8px,
2640
- calc(8px + (100vw - 375px) / (1920 - 375) * (8)),
2641
- 16px);
2642
- margin-top: clamp(8px,
2643
- calc(8px + (100vw - 375px) / (1920 - 375) * (8)),
2644
- 16px);
2660
+
2661
+ .llm .llm__inner--formRecapError .llm__text-body {
2662
+ line-height: 1;
2663
+ font-family: var(--llm-font-primary);
2664
+ font-weight: 500;
2665
+ line-height: 1.3;
2666
+ letter-spacing: 0.02em;
2667
+ font-size: clamp(16px, calc(16px + (100vw - 375px) / (1920 - 375) * (16)), 32px);
2645
2668
  }
2646
2669
 
2647
2670
  @keyframes llmBouncing {