@eshal-bot/chat-widget 0.1.19 → 0.1.21

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.
@@ -1,4 +1,4 @@
1
- (function (utils) {
1
+ (function () {
2
2
  'use strict';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -3017,7 +3017,7 @@
3017
3017
  */
3018
3018
 
3019
3019
 
3020
- const __iconNode$b = [
3020
+ const __iconNode$a = [
3021
3021
  ["path", { d: "M2 10v3", key: "1fnikh" }],
3022
3022
  ["path", { d: "M6 6v11", key: "11sgs0" }],
3023
3023
  ["path", { d: "M10 3v18", key: "yhl04a" }],
@@ -3025,7 +3025,7 @@
3025
3025
  ["path", { d: "M18 5v13", key: "123xd1" }],
3026
3026
  ["path", { d: "M22 10v3", key: "154ddg" }]
3027
3027
  ];
3028
- const AudioLines = createLucideIcon("audio-lines", __iconNode$b);
3028
+ const AudioLines = createLucideIcon("audio-lines", __iconNode$a);
3029
3029
 
3030
3030
  /**
3031
3031
  * @license lucide-react v0.575.0 - ISC
@@ -3035,12 +3035,12 @@
3035
3035
  */
3036
3036
 
3037
3037
 
3038
- const __iconNode$a = [
3038
+ const __iconNode$9 = [
3039
3039
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
3040
3040
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
3041
3041
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
3042
3042
  ];
3043
- const Download = createLucideIcon("download", __iconNode$a);
3043
+ const Download = createLucideIcon("download", __iconNode$9);
3044
3044
 
3045
3045
  /**
3046
3046
  * @license lucide-react v0.575.0 - ISC
@@ -3050,12 +3050,12 @@
3050
3050
  */
3051
3051
 
3052
3052
 
3053
- const __iconNode$9 = [
3053
+ const __iconNode$8 = [
3054
3054
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
3055
3055
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
3056
3056
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
3057
3057
  ];
3058
- const ExternalLink = createLucideIcon("external-link", __iconNode$9);
3058
+ const ExternalLink = createLucideIcon("external-link", __iconNode$8);
3059
3059
 
3060
3060
  /**
3061
3061
  * @license lucide-react v0.575.0 - ISC
@@ -3065,7 +3065,7 @@
3065
3065
  */
3066
3066
 
3067
3067
 
3068
- const __iconNode$8 = [
3068
+ const __iconNode$7 = [
3069
3069
  [
3070
3070
  "path",
3071
3071
  {
@@ -3078,7 +3078,7 @@
3078
3078
  ["path", { d: "M16 13H8", key: "t4e002" }],
3079
3079
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
3080
3080
  ];
3081
- const FileText = createLucideIcon("file-text", __iconNode$8);
3081
+ const FileText = createLucideIcon("file-text", __iconNode$7);
3082
3082
 
3083
3083
  /**
3084
3084
  * @license lucide-react v0.575.0 - ISC
@@ -3088,12 +3088,12 @@
3088
3088
  */
3089
3089
 
3090
3090
 
3091
- const __iconNode$7 = [
3091
+ const __iconNode$6 = [
3092
3092
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
3093
3093
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
3094
3094
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
3095
3095
  ];
3096
- const Globe = createLucideIcon("globe", __iconNode$7);
3096
+ const Globe = createLucideIcon("globe", __iconNode$6);
3097
3097
 
3098
3098
  /**
3099
3099
  * @license lucide-react v0.575.0 - ISC
@@ -3103,8 +3103,8 @@
3103
3103
  */
3104
3104
 
3105
3105
 
3106
- const __iconNode$6 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
3107
- const LoaderCircle = createLucideIcon("loader-circle", __iconNode$6);
3106
+ const __iconNode$5 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
3107
+ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$5);
3108
3108
 
3109
3109
  /**
3110
3110
  * @license lucide-react v0.575.0 - ISC
@@ -3114,7 +3114,7 @@
3114
3114
  */
3115
3115
 
3116
3116
 
3117
- const __iconNode$5 = [
3117
+ const __iconNode$4 = [
3118
3118
  [
3119
3119
  "path",
3120
3120
  {
@@ -3123,7 +3123,7 @@
3123
3123
  }
3124
3124
  ]
3125
3125
  ];
3126
- const MessageCircle = createLucideIcon("message-circle", __iconNode$5);
3126
+ const MessageCircle = createLucideIcon("message-circle", __iconNode$4);
3127
3127
 
3128
3128
  /**
3129
3129
  * @license lucide-react v0.575.0 - ISC
@@ -3133,7 +3133,7 @@
3133
3133
  */
3134
3134
 
3135
3135
 
3136
- const __iconNode$4 = [
3136
+ const __iconNode$3 = [
3137
3137
  [
3138
3138
  "path",
3139
3139
  {
@@ -3143,7 +3143,7 @@
3143
3143
  ],
3144
3144
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
3145
3145
  ];
3146
- const Send = createLucideIcon("send", __iconNode$4);
3146
+ const Send = createLucideIcon("send", __iconNode$3);
3147
3147
 
3148
3148
  /**
3149
3149
  * @license lucide-react v0.575.0 - ISC
@@ -3153,7 +3153,7 @@
3153
3153
  */
3154
3154
 
3155
3155
 
3156
- const __iconNode$3 = [
3156
+ const __iconNode$2 = [
3157
3157
  ["path", { d: "M12 2v2", key: "tus03m" }],
3158
3158
  [
3159
3159
  "path",
@@ -3166,7 +3166,7 @@
3166
3166
  ["path", { d: "m19 5-1.256 1.256", key: "1yg6a6" }],
3167
3167
  ["path", { d: "M20 12h2", key: "1q8mjw" }]
3168
3168
  ];
3169
- const SunMoon = createLucideIcon("sun-moon", __iconNode$3);
3169
+ const SunMoon = createLucideIcon("sun-moon", __iconNode$2);
3170
3170
 
3171
3171
  /**
3172
3172
  * @license lucide-react v0.575.0 - ISC
@@ -3176,7 +3176,7 @@
3176
3176
  */
3177
3177
 
3178
3178
 
3179
- const __iconNode$2 = [
3179
+ const __iconNode$1 = [
3180
3180
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
3181
3181
  ["path", { d: "M12 2v2", key: "tus03m" }],
3182
3182
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -3187,21 +3187,7 @@
3187
3187
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
3188
3188
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
3189
3189
  ];
3190
- const Sun = createLucideIcon("sun", __iconNode$2);
3191
-
3192
- /**
3193
- * @license lucide-react v0.575.0 - ISC
3194
- *
3195
- * This source code is licensed under the ISC license.
3196
- * See the LICENSE file in the root directory of this source tree.
3197
- */
3198
-
3199
-
3200
- const __iconNode$1 = [
3201
- ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3202
- ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3203
- ];
3204
- const User = createLucideIcon("user", __iconNode$1);
3190
+ const Sun = createLucideIcon("sun", __iconNode$1);
3205
3191
 
3206
3192
  /**
3207
3193
  * @license lucide-react v0.575.0 - ISC
@@ -57678,17 +57664,9 @@
57678
57664
  const messageFontFamily = userMessageBubbleFontFamily !== undefined && userMessageBubbleFontFamily !== null ? userMessageBubbleFontFamily : fontFamily !== undefined && fontFamily !== null ? fontFamily : "Inter";
57679
57665
  const messageFontSize = userMessageBubbleFontSize !== undefined && userMessageBubbleFontSize !== null ? userMessageBubbleFontSize : fontSize !== undefined && fontSize !== null ? fontSize : "14px";
57680
57666
  useGoogleFont(messageFontFamily);
57681
- return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
57667
+ return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
57682
57668
  className: "flex gap-3 flex-row-reverse animate-in",
57683
- children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
57684
- className: "flex-shrink-0 mt-1",
57685
- children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
57686
- className: "w-8 h-8 rounded-full flex items-center justify-center ".concat(isDark ? "bg-gray-700" : "bg-gray-200"),
57687
- children: /*#__PURE__*/jsxRuntimeExports.jsx(User, {
57688
- className: "w-4 h-4 text-gray-500"
57689
- })
57690
- })
57691
- }), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
57669
+ children: /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
57692
57670
  className: "flex flex-col items-end max-w-[75%]",
57693
57671
  children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
57694
57672
  className: "rounded-2xl px-4 py-2.5 shadow-lg ".concat(isRtl ? "rounded-tl-sm" : "rounded-tr-sm"),
@@ -57717,7 +57695,7 @@
57717
57695
  dir: "auto",
57718
57696
  children: formatTime(message.timestamp)
57719
57697
  })]
57720
- })]
57698
+ })
57721
57699
  });
57722
57700
  };
57723
57701
  const MessageBubble = _ref19 => {
@@ -58458,7 +58436,7 @@
58458
58436
  };
58459
58437
  }, [active, processing, sensitivity, updateRate, historySize, barWidth, baseBarHeight, barGap, barRadius, barColor, fadeEdges, fadeWidth, mode]);
58460
58438
  return /*#__PURE__*/jsxRuntimeExports.jsxs("div", _objectSpread2(_objectSpread2({
58461
- className: utils.cn("relative h-full w-full", className),
58439
+ className: cn("relative h-full w-full", className),
58462
58440
  ref: containerRef,
58463
58441
  style: {
58464
58442
  height: heightStyle
@@ -60750,4 +60728,4 @@
60750
60728
  default: webfontloaderExports
60751
60729
  }, [webfontloaderExports]);
60752
60730
 
60753
- })(utils);
60731
+ })();