@evercam/ui 0.0.63-preview-chatbot-ui-69c4cf2ad → 0.0.63-preview-emarkdown-2fbf3dcc5

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.
@@ -29,6 +29,11 @@
29
29
  "description": "",
30
30
  "default": ""
31
31
  },
32
+ "EAvatar/background-classes": {
33
+ "type": "string",
34
+ "description": "",
35
+ "default": "e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500"
36
+ },
32
37
  "EBadge/text": {
33
38
  "type": "string",
34
39
  "description": "",
@@ -18,5 +18,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
18
18
  badgeText: string;
19
19
  badgeSize: Size;
20
20
  image: string;
21
+ backgroundClasses: string;
21
22
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
22
23
  export default _default;
@@ -74,16 +74,10 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
74
74
  togglePlay(): void;
75
75
  handleKeyDown(e: KeyboardEvent): void;
76
76
  }, {
77
- imgProps: {
78
- id: string;
79
- ref: string;
80
- crossorigin: string;
81
- class: string;
82
- dataTestId: string;
83
- };
77
+ imgProps: Record<string, string>;
84
78
  playerDimensions: {
85
79
  width: string;
86
- height: string | number;
80
+ height: number | string;
87
81
  };
88
82
  isLastFrame: boolean;
89
83
  altText: string;
@@ -10,6 +10,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
10
10
  width: string;
11
11
  height: string;
12
12
  };
13
+ mainHeight: string;
13
14
  }, {
14
15
  onResize(): void;
15
16
  onOverlayClick(e: Event): void;
package/dist/index.d.ts CHANGED
@@ -46,6 +46,7 @@ export declare const components: {
46
46
  badgeText: string;
47
47
  badgeSize: import('./types').Size;
48
48
  image: string;
49
+ backgroundClasses: string;
49
50
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
50
51
  EBadge: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {
51
52
  colors: {
@@ -862,13 +863,7 @@ export declare const components: {
862
863
  togglePlay(): void;
863
864
  handleKeyDown(e: KeyboardEvent): void;
864
865
  }, {
865
- imgProps: {
866
- id: string;
867
- ref: string;
868
- crossorigin: string;
869
- class: string;
870
- dataTestId: string;
871
- };
866
+ imgProps: Record<string, string>;
872
867
  playerDimensions: {
873
868
  width: string;
874
869
  height: string | number;
@@ -1097,6 +1092,7 @@ export declare const components: {
1097
1092
  width: string;
1098
1093
  height: string;
1099
1094
  };
1095
+ mainHeight: string;
1100
1096
  }, {
1101
1097
  onResize(): void;
1102
1098
  onOverlayClick(e: Event): void;
package/dist/index.mjs CHANGED
@@ -140,6 +140,10 @@ const bn = D1.exports, z1 = Q.extend({
140
140
  image: {
141
141
  type: String,
142
142
  default: ""
143
+ },
144
+ backgroundClasses: {
145
+ type: String,
146
+ default: "e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500"
143
147
  }
144
148
  },
145
149
  data() {
@@ -157,8 +161,9 @@ const bn = D1.exports, z1 = Q.extend({
157
161
  computed: {
158
162
  avatarClasses() {
159
163
  return [
160
- "e-flex e-items-center e-justify-center e-rounded-full e-bg-gradient-to-r e-from-purple-500 e-to-indigo-500 e-text-white e-font-medium",
161
- this.sizes[this.size] || this.sizes[X.xs]
164
+ "e-flex e-items-center e-justify-center e-rounded-full e-text-white e-font-medium",
165
+ this.sizes[this.size] || this.sizes[X.xs],
166
+ this.backgroundClasses
162
167
  ];
163
168
  }
164
169
  }
@@ -9020,6 +9025,9 @@ function V6(t, e = 0, r = 0, n = t.naturalWidth, o = t.naturalHeight) {
9020
9025
  const p = c.toDataURL();
9021
9026
  return c.remove(), p;
9022
9027
  }
9028
+ function X6(t) {
9029
+ return !!(t != null && t.length && !isNaN(new Date(t).getTime()));
9030
+ }
9023
9031
  const Oa = Q.extend({
9024
9032
  name: "EZoomable",
9025
9033
  props: {
@@ -15002,7 +15010,7 @@ const wi = $6.exports, E6 = Q.extend({
15002
15010
  playerDimensions() {
15003
15011
  return {
15004
15012
  width: "100%",
15005
- height: this.isFullscreen ? this.screenHeight : this.height
15013
+ height: this.height
15006
15014
  };
15007
15015
  },
15008
15016
  isLastFrame() {
@@ -15016,8 +15024,8 @@ const wi = $6.exports, E6 = Q.extend({
15016
15024
  return this.isLastFrame ? 100 : Math.abs(this.frameIndex / this.frames.length * 100);
15017
15025
  },
15018
15026
  mouseToWidthRatio() {
15019
- var t, e;
15020
- return this.mousePosition.x / ((e = (t = this.progressBar) == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : e.width);
15027
+ var t, e, r;
15028
+ return this.mousePosition.x / ((r = (e = (t = this.progressBar) == null ? void 0 : t.getBoundingClientRect()) == null ? void 0 : e.width) != null ? r : 1);
15021
15029
  },
15022
15030
  hoverBarStyle() {
15023
15031
  return {
@@ -15319,7 +15327,7 @@ const wi = $6.exports, E6 = Q.extend({
15319
15327
  var k6 = function() {
15320
15328
  var n, o;
15321
15329
  var e = this, r = e._self._c;
15322
- return r("div", { staticClass: "player e-h-full e-w-full", style: e.playerDimensions, attrs: { id: "imagePlayer" } }, [r("div", { staticClass: "player__frames player-container", style: e.playerDimensions, attrs: { id: "img-container" }, on: { pointerdown: e.onFrameMouseDown, pointerup: e.onFrameMouseUp } }, [r("div", { staticClass: "e-h-full e-w-full e-shrink-0 e-relative" }, [r("img", { staticClass: "e-absolute e-block e-w-full e-h-full background-fade", attrs: { src: e.src || ((n = e.frames[e.frameIndex]) == null ? void 0 : n.src) || "", alt: "background-image" } }), r("EZoomableImg", e._g({ directives: [{ name: "show", rawName: "v-show", value: e.imageLoaded && e.src || e.placeholderImage, expression: "(imageLoaded && src) || placeholderImage" }], ref: "zoomableImage", attrs: { "img-props": { imgProps: e.imgProps }, "overlay-style": { zIndex: 1 }, src: e.src || ((o = e.frames[e.frameIndex]) == null ? void 0 : o.src) || e.placeholderImage || "", alt: e.altText, "hide-content-on-blur": !1, height: e.isFullscreen ? e.screenHeight : Number(e.height), "placeholder-image": e.placeholderImage, slider: !1, "is-mobile": e.isMobile, disabled: !e.isZoomable, "is-annotation-active": e.isAnnotationActive, "blur-background": "" }, on: { load: e.onLoad, error: e.onError, change: e.onChange, "hook:beforeUpdate": e.onBeforeUpdate, "hook:beforeDestroy": e.onBeforeDestroy }, scopedSlots: e._u([{ key: "imageOverlay", fn: function() {
15330
+ return r("div", { staticClass: "player e-h-full e-w-full", style: e.playerDimensions, attrs: { id: "imagePlayer" } }, [r("div", { staticClass: "player__frames player-container", style: e.playerDimensions, attrs: { id: "img-container" }, on: { pointerdown: e.onFrameMouseDown, pointerup: e.onFrameMouseUp } }, [r("div", { staticClass: "e-h-full e-w-full e-shrink-0 e-relative" }, [r("img", { staticClass: "e-absolute e-block e-w-full e-h-full background-fade", attrs: { src: e.src || ((n = e.frames[e.frameIndex]) == null ? void 0 : n.src) || "", alt: "background-image" } }), r("EZoomableImg", e._g({ directives: [{ name: "show", rawName: "v-show", value: e.imageLoaded && e.src || e.placeholderImage, expression: "(imageLoaded && src) || placeholderImage" }], ref: "zoomableImage", attrs: { "img-props": { imgProps: e.imgProps }, "overlay-style": { zIndex: 1 }, src: e.src || ((o = e.frames[e.frameIndex]) == null ? void 0 : o.src) || e.placeholderImage || "", alt: e.altText, "hide-content-on-blur": !1, height: e.height.split("px")[0], "placeholder-image": e.placeholderImage, slider: !1, "is-mobile": e.isMobile, disabled: !e.isZoomable, "is-annotation-active": e.isAnnotationActive, "blur-background": "" }, on: { load: e.onLoad, error: e.onError, change: e.onChange, "hook:beforeUpdate": e.onBeforeUpdate, "hook:beforeDestroy": e.onBeforeDestroy }, scopedSlots: e._u([{ key: "imageOverlay", fn: function() {
15323
15331
  return [e.playPauseAnimation ? r("div", { staticClass: "image-player-overlay e-flex e-items-center e-justify-center" }, [r("div", { staticClass: "image-player-overlay__wrapper" }, [e.playing ? r("svg", { attrs: { height: "100%", viewBox: "-1 0 36 36", width: "100%" } }, [r("path", { attrs: { d: "M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z" } })]) : r("svg", { attrs: { height: "100%", viewBox: "0.5 0 36 36", width: "100%" } }, [r("path", { attrs: { d: "M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z" } })])])]) : e._e(), e._t("default"), e._t("imageOverlay")];
15324
15332
  }, proxy: !0 }], null, !0) }, e.$listeners), [e._t("playerContainerOverlay")], 2), e._t("imagePlayerOverlay")], 2)]), e._t("controls", function() {
15325
15333
  return [e.withControls ? r("div", { staticClass: "e-absolute e-bottom-0 e-w-[97%] e-p-4 e-pt-8 e-z-50 e-space-y-4 e-bg-gradient-to-t e-from-[#363434] e-to-transparent" }, [r("div", { staticClass: "e-font-semibold e-text-white" }, [e._v(" " + e._s(e.frames[e.frameIndex].label) + " - " + e._s(e.frameIndex) + " / " + e._s(e.frames.length - 1) + " ")]), r("div", { staticClass: "e-flex e-justify-start e-gap-2 e-items-center" }, [r("button", { staticClass: "e-text-white e-bg-transparent e-border-none e-cursor-pointer action-btn__first-vertical e-rounded-md", on: { click: e.togglePlay } }, [r("i", { staticClass: "fas fa-2x", class: {
@@ -15371,7 +15379,8 @@ const D6 = O6.exports, z6 = Q.extend({
15371
15379
  mainStyle: {
15372
15380
  width: "100%",
15373
15381
  height: "100%"
15374
- }
15382
+ },
15383
+ mainHeight: "100%"
15375
15384
  };
15376
15385
  },
15377
15386
  computed: {
@@ -15381,6 +15390,11 @@ const D6 = O6.exports, z6 = Q.extend({
15381
15390
  };
15382
15391
  }
15383
15392
  },
15393
+ watch: {
15394
+ mainHeight() {
15395
+ this.onResize();
15396
+ }
15397
+ },
15384
15398
  mounted() {
15385
15399
  this.setOverlayFooterHeight(), this.setFooterHeight();
15386
15400
  },
@@ -15401,9 +15415,10 @@ const D6 = O6.exports, z6 = Q.extend({
15401
15415
  const t = this.$refs.footer;
15402
15416
  t || this.$setTimeout(() => {
15403
15417
  this.setFooterHeight();
15404
- }), this.footerHeight = t == null ? void 0 : t.clientHeight, this.mainStyle = {
15418
+ }), this.footerHeight = t == null ? void 0 : t.clientHeight, this.$attrs.isFullscreen ? this.mainHeight = `${screen.height}px` : this.mainHeight = `${// @ts-expect-error
15419
+ this.height ? this.height.split("px")[0] - this.footerHeight : "100"}px`, this.mainStyle = {
15405
15420
  width: "100%",
15406
- height: `${this.height ? this.height.split("px")[0] - this.footerHeight : "100"}px`
15421
+ height: this.mainHeight
15407
15422
  };
15408
15423
  }
15409
15424
  }
@@ -15412,7 +15427,7 @@ var I6 = function() {
15412
15427
  var e = this, r = e._self._c;
15413
15428
  return r("div", e._b({ directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: e.onResize, expression: "onResize" }], ref: "globalLayout", staticClass: "e-layout e-w-full e-h-full e-relative", style: {
15414
15429
  width: "100%",
15415
- height: e.height ? `${e.height}px` : "100%"
15430
+ height: e.mainHeight
15416
15431
  }, attrs: { id: "globalLayout" } }, "div", e.$attrs, !1), [r("div", { staticClass: "e-layout__container e-relative", style: e.mainStyle }, [r("div", { staticClass: "e-layout__main e-w-full e-h-full e-absolute e-inset-0 e-z-0", style: e.mainStyle }, [e._t("main", null, { size: { ...e.mainStyle } })], 2), e.withOverlay ? r("div", { staticClass: "e-layout__overlay e-w-full e-h-full e-absolute e-inset-0 e-z-[1]", style: e.mainStyle, on: { click: e.onOverlayClick } }, [e._t("overlay", null, { size: { ...e.mainStyle } })], 2) : e._e(), r("div", { staticClass: "e-layout__top-left e-absolute e-left-0 e-top-0 e-z-[2]" }, [e._t("top-left")], 2), r("div", { staticClass: "e-absolute e-right-0 e-top-0 e-layout__top-right e-z-[2]" }, [e._t("top-right")], 2), r("div", { staticClass: "e-absolute e-right-0 e-bottom-10 e-layout__bottom-right e-z-[2]", style: e.bottomStyle }, [e._t("bottom-right")], 2), r("div", { staticClass: "e-absolute e-left-0 e-bottom-10 e-layout__bottom-left e-z-[2]", style: e.bottomStyle }, [e._t("bottom-left")], 2), r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: e.setOverlayFooterHeight, expression: "setOverlayFooterHeight" }], ref: "overlayFooter", staticClass: "e-absolute e-bottom-0 e-left-0 e-right-0 e-layout__overlay-footer e-z-[2]" }, [e._t("overlay-footer")], 2)]), r("div", { directives: [{ name: "resize-observer", rawName: "v-resize-observer", value: e.setFooterHeight, expression: "setFooterHeight" }], ref: "footer", staticClass: "e-layout__footer e-relative e-z-[2]" }, [e._t("footer")], 2)]);
15417
15432
  }, B6 = [], F6 = /* @__PURE__ */ K(
15418
15433
  z6,
@@ -15453,7 +15468,7 @@ const A6 = F6.exports, dn = {
15453
15468
  EActionButton: bi,
15454
15469
  ETooltip: yi,
15455
15470
  ELayout: A6
15456
- }, X6 = {
15471
+ }, Q6 = {
15457
15472
  install(t) {
15458
15473
  Object.keys(dn).forEach((e) => {
15459
15474
  t.component(e, dn[e]);
@@ -15469,6 +15484,7 @@ export {
15469
15484
  Z6 as BadgeColors,
15470
15485
  W6 as BadgeSizes,
15471
15486
  ce as BaseColor,
15487
+ E1 as ChatMessageRole,
15472
15488
  da as Colors,
15473
15489
  Ga as DirectivesMap,
15474
15490
  bi as EActionButton,
@@ -15504,7 +15520,6 @@ export {
15504
15520
  $1 as ImageQuality,
15505
15521
  De as Position,
15506
15522
  tt as ResizeObserverDirective,
15507
- E1 as Role,
15508
15523
  X as Size,
15509
15524
  ua as TextSizes,
15510
15525
  wt as TimelineAxis,
@@ -15515,7 +15530,7 @@ export {
15515
15530
  q6 as TooltipPositions,
15516
15531
  dn as components,
15517
15532
  Pa as debounce,
15518
- X6 as default,
15533
+ Q6 as default,
15519
15534
  ot as eventListeners,
15520
15535
  gi as exitFullScreen,
15521
15536
  hi as fullConfig,
@@ -15523,6 +15538,7 @@ export {
15523
15538
  xt as getRandomChars,
15524
15539
  r6 as inactivityListener,
15525
15540
  pi as isFullScreen,
15541
+ X6 as isValidDate,
15526
15542
  mi as makeFullScreen,
15527
15543
  rt as timeouts
15528
15544
  };