@molin.ai/shop-ai 0.6.42 → 0.6.44

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.
@@ -139,7 +139,7 @@ var ep=Object.defineProperty;var ha=n=>{throw TypeError(n)};var tp=(n,e,t)=>e in
139
139
  <!-- render status (if any) -->
140
140
  ${this.status==="sent"?D`
141
141
  <!-- tick mark -->
142
- <svg class="ml-auto h-3 w-3 text-gray-300" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
142
+ <svg class="ml-auto h-3 w-3 text-gray-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
143
143
  <path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" />
144
144
  </svg>
145
145
  `:N}
@@ -202,8 +202,9 @@ var ep=Object.defineProperty;var ha=n=>{throw TypeError(n)};var tp=(n,e,t)=>e in
202
202
  <div class="flex p-1"></div>
203
203
  `}
204
204
 
205
+ <!-- the padding at the top makes empty room at the top when scrolling and content is hidden behind header -->
205
206
  <!-- this is the 2nd (inner) div that will natively stick/scroll to bottom -->
206
- <div>
207
+ <div class="${this.messages.length>0?"pt-20":""}">
207
208
  ${ti(Array.from(t),([i])=>i,([i,r])=>D`
208
209
  <div class="my-2 text-center text-xs text-gray-500">${Nl(new Date(Number(i)),window.navigator.language)}</div>
209
210
  ${ti(r??[],s=>s.id,(s,o)=>{let l=r[o+1]?.role===s.role,c=(o>0?r[o-1]:void 0)?.role===s.role,f=(r.length>0?r[r.length-1]:void 0)?.id===s.id;switch(!0){case(f&&!c&&!l):S(this,ot,"single-current");break;case(!c&&!l):S(this,ot,"single");break;case(!c&&l):S(this,ot,"first");break;case(f&&c&&!l):S(this,ot,"last-current");break;case(c&&!l):S(this,ot,"last");break;case(c&&l):S(this,ot,"middle");break;default:S(this,ot,"single")}let d=h(this,ae).isLiveMode&&s.role==="user"&&s.id===h(this,ae).lastMsg?.id?"sent":"";return D`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molin.ai/shop-ai",
3
- "version": "0.6.42",
3
+ "version": "0.6.44",
4
4
  "description": "Molin Shop AI",
5
5
  "keywords": [
6
6
  "molin",