@telnyx/ai-chat-widget 5.0.2 → 5.0.4

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.d.ts CHANGED
@@ -10,10 +10,10 @@ declare type BaseProps = {
10
10
  */
11
11
  chatAPIUrl?: string;
12
12
  /**
13
- * The base URL of the feedback to send
14
- * @required
13
+ * The base URL to send message feedback to.
14
+ * Optional — if omitted, defaults to the internal feedback endpoint.
15
15
  */
16
- feedbackAPIUrl: string;
16
+ feedbackAPIUrl?: string;
17
17
  /**
18
18
  * The user info to send with the feedback
19
19
  * @required
package/dist/index.mjs CHANGED
@@ -10225,6 +10225,10 @@ const AI = {
10225
10225
  --tw-translate-x: calc(calc(1/2 * 100%) * -1);
10226
10226
  translate: var(--tw-translate-x) var(--tw-translate-y);
10227
10227
  }
10228
+ .-translate-x-full {
10229
+ --tw-translate-x: -100%;
10230
+ translate: var(--tw-translate-x) var(--tw-translate-y);
10231
+ }
10228
10232
  .-translate-y-0\\.5 {
10229
10233
  --tw-translate-y: calc(var(--spacing) * -0.5);
10230
10234
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -10262,6 +10266,9 @@ const AI = {
10262
10266
  .animate-shadow-grow {
10263
10267
  animation: var(--animate-shadow-grow);
10264
10268
  }
10269
+ .animate-shimmer {
10270
+ animation: var(--animate-shimmer);
10271
+ }
10265
10272
  .animate-spin {
10266
10273
  animation: var(--animate-spin);
10267
10274
  }
@@ -10391,6 +10398,9 @@ const AI = {
10391
10398
  .rounded-2xl {
10392
10399
  border-radius: var(--radius-2xl);
10393
10400
  }
10401
+ .rounded-\\[7px\\] {
10402
+ border-radius: 7px;
10403
+ }
10394
10404
  .rounded-\\[30px\\] {
10395
10405
  border-radius: 30px;
10396
10406
  }
@@ -10491,9 +10501,6 @@ const AI = {
10491
10501
  .border-widget-text-primary {
10492
10502
  border-color: var(--color-widget-text-primary);
10493
10503
  }
10494
- .bg-\\[\\#fefef8\\] {
10495
- background-color: #fefef8;
10496
- }
10497
10504
  .bg-black {
10498
10505
  background-color: var(--color-black);
10499
10506
  }
@@ -10620,6 +10627,14 @@ const AI = {
10620
10627
  --tw-gradient-from: transparent;
10621
10628
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
10622
10629
  }
10630
+ .via-neutral-600\\/30 {
10631
+ --tw-gradient-via: color-mix(in srgb, oklch(43.9% 0 0) 30%, transparent);
10632
+ @supports (color: color-mix(in lab, red, red)) {
10633
+ --tw-gradient-via: color-mix(in oklab, var(--color-neutral-600) 30%, transparent);
10634
+ }
10635
+ --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
10636
+ --tw-gradient-stops: var(--tw-gradient-via-stops);
10637
+ }
10623
10638
  .via-telnyx-green {
10624
10639
  --tw-gradient-via: var(--color-telnyx-green);
10625
10640
  --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
@@ -10663,6 +10678,9 @@ const AI = {
10663
10678
  .p-6 {
10664
10679
  padding: calc(var(--spacing) * 6);
10665
10680
  }
10681
+ .p-px {
10682
+ padding: 1px;
10683
+ }
10666
10684
  .px-1 {
10667
10685
  padding-inline: calc(var(--spacing) * 1);
10668
10686
  }
@@ -10928,6 +10946,10 @@ const AI = {
10928
10946
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
10929
10947
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
10930
10948
  }
10949
+ .ring {
10950
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
10951
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
10952
+ }
10931
10953
  .ring-0 {
10932
10954
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
10933
10955
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -11599,6 +11621,11 @@ const AI = {
11599
11621
  color: var(--color-white);
11600
11622
  }
11601
11623
  }
11624
+ .motion-reduce\\:animate-none {
11625
+ @media (prefers-reduced-motion: reduce) {
11626
+ animation: none;
11627
+ }
11628
+ }
11602
11629
  .motion-reduce\\:transition-none {
11603
11630
  @media (prefers-reduced-motion: reduce) {
11604
11631
  transition-property: none;
@@ -16927,14 +16954,23 @@ const On = ({
16927
16954
  /* @__PURE__ */ y.jsx(On, { isLoaded: e }),
16928
16955
  /* @__PURE__ */ y.jsxs("div", { className: "flex gap-1 items-center", children: [
16929
16956
  /* @__PURE__ */ y.jsx(On, { className: "duration-100 flex-1", isLoaded: e }),
16930
- /* @__PURE__ */ y.jsx("div", { className: "bg-[#fefef8] px-3 z-10", children: /* @__PURE__ */ y.jsx(
16931
- _O,
16932
- {
16933
- words: t,
16934
- className: "text-gray-700/60 font-medium"
16935
- },
16936
- t
16937
- ) }),
16957
+ /* @__PURE__ */ y.jsxs("div", { className: "relative z-10 overflow-hidden rounded-lg bg-neutral-700/20 p-px", children: [
16958
+ !e && /* @__PURE__ */ y.jsx(
16959
+ "div",
16960
+ {
16961
+ "aria-hidden": "true",
16962
+ className: "pointer-events-none absolute inset-0 -translate-x-full animate-shimmer bg-gradient-to-r from-transparent via-neutral-600/30 to-transparent motion-reduce:animate-none"
16963
+ }
16964
+ ),
16965
+ /* @__PURE__ */ y.jsx("div", { className: "relative rounded-[7px] bg-widget-bg-tertiary px-3 py-1", children: /* @__PURE__ */ y.jsx(
16966
+ _O,
16967
+ {
16968
+ words: t,
16969
+ className: "text-gray-700/60 font-medium"
16970
+ },
16971
+ t
16972
+ ) })
16973
+ ] }),
16938
16974
  /* @__PURE__ */ y.jsx(On, { className: "duration-100 flex-1", isLoaded: e })
16939
16975
  ] }),
16940
16976
  /* @__PURE__ */ y.jsx(On, { isLoaded: e }),