@telia-ace/widget-conversation-flamingo 1.0.3 → 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.
- package/dist/components/conversation/conversation.d.ts.map +1 -1
- package/dist/{conversation-e1b55f28.js → conversation-d8f60ca8.js} +32 -22
- package/dist/{conversation-e1b55f28.js.map → conversation-d8f60ca8.js.map} +1 -1
- package/dist/{index-246b0d35.js → index-b38e12e1.js} +133 -133
- package/dist/{index-246b0d35.js.map → index-b38e12e1.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -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,
|
|
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,
|
|
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
|
-
|
|
2163
|
+
<div class="conversation-content-inner">
|
|
2164
|
+
${(this.properties.messages || []).map(
|
|
2164
2165
|
(s) => f`<div class="conversation-entry" tabindex="-1">
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
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
|
-
|
|
2176
|
-
|
|
2175
|
+
>
|
|
2176
|
+
</conversation-component-message>
|
|
2177
|
+
</div>`
|
|
2177
2178
|
)}
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
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
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
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">
|
|
@@ -2213,6 +2215,7 @@ H.styles = z`
|
|
|
2213
2215
|
box-sizing: border-box;
|
|
2214
2216
|
font-family: var(--font-family);
|
|
2215
2217
|
--send-icon-color: var(--gray-dark-color, #a6a6a6);
|
|
2218
|
+
--conversation-bg: #fafafa;
|
|
2216
2219
|
|
|
2217
2220
|
scrollbar-width: thin; /* Firefox */
|
|
2218
2221
|
scrollbar-color: #7f7f7f transparent; /* Firefox */
|
|
@@ -2234,8 +2237,10 @@ H.styles = z`
|
|
|
2234
2237
|
}
|
|
2235
2238
|
|
|
2236
2239
|
.conversation {
|
|
2237
|
-
display:
|
|
2238
|
-
|
|
2240
|
+
display: grid;
|
|
2241
|
+
grid-template-rows: 1fr auto;
|
|
2242
|
+
height: 100%;
|
|
2243
|
+
background-color: var(--conversation-bg);
|
|
2239
2244
|
}
|
|
2240
2245
|
|
|
2241
2246
|
.conversation.input-has-text {
|
|
@@ -2243,13 +2248,18 @@ H.styles = z`
|
|
|
2243
2248
|
}
|
|
2244
2249
|
|
|
2245
2250
|
.conversation-content {
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
flex-direction: column;
|
|
2251
|
+
flex: 1;
|
|
2252
|
+
|
|
2249
2253
|
padding: var(--spacing-md);
|
|
2250
2254
|
overflow-y: auto;
|
|
2251
2255
|
overflow-x: hidden;
|
|
2252
2256
|
}
|
|
2257
|
+
.conversation-content-inner {
|
|
2258
|
+
display: flex;
|
|
2259
|
+
flex-direction: column;
|
|
2260
|
+
justify-content: end;
|
|
2261
|
+
min-height: 100%;
|
|
2262
|
+
}
|
|
2253
2263
|
.conversation-bottom {
|
|
2254
2264
|
border-top: 1px solid var(--gray-color);
|
|
2255
2265
|
background-color: #fff;
|
|
@@ -2344,4 +2354,4 @@ export {
|
|
|
2344
2354
|
H as ConversationComponent,
|
|
2345
2355
|
pn as default
|
|
2346
2356
|
};
|
|
2347
|
-
//# sourceMappingURL=conversation-
|
|
2357
|
+
//# sourceMappingURL=conversation-d8f60ca8.js.map
|