@telia-ace/widget-conversation-flamingo 1.0.4 → 1.0.5

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 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAsB,MAAM,KAAK,CAAC;AAEvE,OAAO,EAAa,GAAG,EAAO,MAAM,uBAAuB,CAAC;AAM5D,OAAO,gDAAgD,CAAC;AAQxD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAE3B,oBAAoB;AACpB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,2CAA2C,CAAC;AACnD,OAAO,2CAA2C,CAAC;AAGnD,qBACa,qBAAsB,SAAQ,UAAU;IACnD,OAAgB,MAAM,0BAsHpB;IAIK,SAAS,CAAC,EAAE,SAAS,CAAC;IAItB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAE5C,OAAO,CAAC,QAAQ,CAA+B;IAEzC,QAAQ,CAAC,CAAC,EAAE,KAAK;IAKjB,cAAc,CAAC,CAAC,EAAE,KAAK;IAO7B,aAAa,CAAC,CAAC,EAAE,GAAG;IAIpB,cAAc,CACZ,CAAC,EAAE,WAAW,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAA;KAAE,CAAC;IAM9E,OAAO,EAAE,MAAM,CAAM;IAErB,sBAAsB,EAAE,GAAG,CAAC,cAAc,CAAC,CAAe;IAEjD,OAAO,CACd,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,GACnE,IAAI;IAcE,MAAM;CA2DhB;AAED,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAsB,MAAM,KAAK,CAAC;AAEvE,OAAO,EAAa,GAAG,EAAO,MAAM,uBAAuB,CAAC;AAM5D,OAAO,gDAAgD,CAAC;AAQxD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAE3B,oBAAoB;AACpB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,2CAA2C,CAAC;AACnD,OAAO,2CAA2C,CAAC;AAGnD,qBACa,qBAAsB,SAAQ,UAAU;IACnD,OAAgB,MAAM,0BA4HpB;IAIK,SAAS,CAAC,EAAE,SAAS,CAAC;IAItB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAE5C,OAAO,CAAC,QAAQ,CAA+B;IAEzC,QAAQ,CAAC,CAAC,EAAE,KAAK;IAKjB,cAAc,CAAC,CAAC,EAAE,KAAK;IAO7B,aAAa,CAAC,CAAC,EAAE,GAAG;IAIpB,cAAc,CACZ,CAAC,EAAE,WAAW,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAA;KAAE,CAAC;IAM9E,OAAO,EAAE,MAAM,CAAM;IAErB,sBAAsB,EAAE,GAAG,CAAC,cAAc,CAAC,CAAe;IAEjD,OAAO,CACd,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,GACnE,IAAI;IAcE,MAAM;CA6DhB;AAED,eAAe,qBAAqB,CAAC"}
@@ -26,7 +26,7 @@ var b = (s, t, e) => new Promise((i, n) => {
26
26
  }, l = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(o, r);
27
27
  l((e = e.apply(s, t)).next());
28
28
  });
29
- import { C as mt, m as cs, V as ds, f as hs } from "./index-87a5d014.js";
29
+ import { C as mt, m as cs, V as ds, f as hs } from "./index-b38e12e1.js";
30
30
  /**
31
31
  * @license
32
32
  * Copyright 2019 Google LLC
@@ -2160,33 +2160,35 @@ let H = class extends _ {
2160
2160
  })}
2161
2161
  >
2162
2162
  <div class="conversation-content" ${Rs(this.conversationContentRef)}>
2163
- ${(this.properties.messages || []).map(
2163
+ <div class="conversation-content-inner">
2164
+ ${(this.properties.messages || []).map(
2164
2165
  (s) => f`<div class="conversation-entry" tabindex="-1">
2165
- <conversation-component-message
2166
- .message=${s}
2167
- ${ue({
2166
+ <conversation-component-message
2167
+ .message=${s}
2168
+ ${ue({
2168
2169
  keyframeOptions: {},
2169
2170
  in: ae,
2170
2171
  out: le,
2171
2172
  stabilizeOut: !0,
2172
2173
  skipInitial: !1
2173
2174
  })}
2174
- >
2175
- </conversation-component-message>
2176
- </div>`
2175
+ >
2176
+ </conversation-component-message>
2177
+ </div>`
2177
2178
  )}
2178
- ${this.properties.loading ? f`<div
2179
- class="loader"
2180
- ${ue({
2179
+ ${this.properties.loading ? f`<div
2180
+ class="loader"
2181
+ ${ue({
2181
2182
  in: ae,
2182
2183
  out: le,
2183
2184
  skipInitial: !1
2184
2185
  })}
2185
- >
2186
- <div></div>
2187
- <div></div>
2188
- <div></div>
2189
- </div>` : p}
2186
+ >
2187
+ <div></div>
2188
+ <div></div>
2189
+ <div></div>
2190
+ </div>` : p}
2191
+ </div>
2190
2192
  </div>
2191
2193
  <form class="conversation-bottom" @submit=${this._onSendMessage}>
2192
2194
  <div class="conversation-bottom-left">
@@ -2235,8 +2237,10 @@ H.styles = z`
2235
2237
  }
2236
2238
 
2237
2239
  .conversation {
2238
- display: flex;
2239
- flex-direction: column;
2240
+ display: grid;
2241
+ grid-template-rows: 1fr auto;
2242
+ height: 100%;
2243
+ background-color: var(--conversation-bg);
2240
2244
  }
2241
2245
 
2242
2246
  .conversation.input-has-text {
@@ -2244,14 +2248,18 @@ H.styles = z`
2244
2248
  }
2245
2249
 
2246
2250
  .conversation-content {
2247
- background-color: var(--conversation-bg);
2248
- height: 400px;
2249
- display: flex;
2250
- flex-direction: column;
2251
+ flex: 1;
2252
+
2251
2253
  padding: var(--spacing-md);
2252
2254
  overflow-y: auto;
2253
2255
  overflow-x: hidden;
2254
2256
  }
2257
+ .conversation-content-inner {
2258
+ display: flex;
2259
+ flex-direction: column;
2260
+ justify-content: end;
2261
+ min-height: 100%;
2262
+ }
2255
2263
  .conversation-bottom {
2256
2264
  border-top: 1px solid var(--gray-color);
2257
2265
  background-color: #fff;
@@ -2346,4 +2354,4 @@ export {
2346
2354
  H as ConversationComponent,
2347
2355
  pn as default
2348
2356
  };
2349
- //# sourceMappingURL=conversation-d7cd0ee9.js.map
2357
+ //# sourceMappingURL=conversation-d8f60ca8.js.map