@dialpad/dialtone-vue 2.74.2 → 2.74.4-beta.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [2.74.4-beta.1](https://github.com/dialpad/dialtone-vue/compare/v2.74.3...v2.74.4-beta.1) (2023-03-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * tempfix ([ecdab8f](https://github.com/dialpad/dialtone-vue/commit/ecdab8f56451fb9578bacac85b170cdd9ff949e6))
7
+
8
+ ## [2.74.3](https://github.com/dialpad/dialtone-vue/compare/v2.74.2...v2.74.3) (2023-03-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **Avatar:** null protect firstElementChild ([8cc0b40](https://github.com/dialpad/dialtone-vue/commit/8cc0b409fa2347fba70cdabe9afd47d7cd0c108f))
14
+
1
15
  ## [2.74.2](https://github.com/dialpad/dialtone-vue/compare/v2.74.1...v2.74.2) (2023-03-31)
2
16
 
3
17
 
@@ -2378,7 +2378,7 @@ if (typeof window !== 'undefined') {
2378
2378
  // Indicate to webpack that this file can be concatenated
2379
2379
  /* harmony default export */ const setPublicPath = (null);
2380
2380
 
2381
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=327f7469&
2381
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=1c525df0&
2382
2382
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.avatarClasses,style:(_vm.initialKindStyle),attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_c('div',{ref:"canvas",class:[_vm.canvasClass, 'd-avatar__canvas']},[(_vm.showDefaultSlot)?_vm._t("default"):_vm._e(),(_vm.showInitials)?_c('span',{staticClass:"d-ps-absolute d-zi-base",class:_vm.AVATAR_KIND_MODIFIERS.initials},[_vm._v(" "+_vm._s(_vm.formattedInitials)+" ")]):_vm._e()],2),(_vm.showGroup)?_c('span',{staticClass:"d-avatar__count d-zi-base1",attrs:{"data-qa":"dt-avatar-count"}},[_vm._v(_vm._s(_vm.formattedGroup))]):_vm._e(),(_vm.presence && !_vm.showGroup)?_c('dt-presence',_vm._b({staticClass:"d-zi-base1",class:[
2383
2383
  'd-avatar__presence',
2384
2384
  _vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
@@ -3109,13 +3109,19 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3109
3109
 
3110
3110
  methods: {
3111
3111
  async init() {
3112
+ var _this$$refs$canvas;
3113
+
3112
3114
  if (this.initializing) return;
3113
3115
  this.kind = null;
3114
3116
  await this.$nextTick();
3115
- const firstChild = this.$refs.canvas.firstElementChild || this.$refs.canvas;
3117
+ const firstChild = ((_this$$refs$canvas = this.$refs.canvas) === null || _this$$refs$canvas === void 0 ? void 0 : _this$$refs$canvas.firstElementChild) || this.$refs.canvas;
3116
3118
  this.formatInitials(this.initials);
3117
- this.setKind(firstChild);
3118
- this.kindHandler(firstChild);
3119
+
3120
+ if (firstChild) {
3121
+ this.setKind(firstChild);
3122
+ this.kindHandler(firstChild);
3123
+ }
3124
+
3119
3125
  this.initializing = true;
3120
3126
  await this.$nextTick();
3121
3127
  this.initializing = false;
@@ -2388,7 +2388,7 @@ if (typeof window !== 'undefined') {
2388
2388
  // Indicate to webpack that this file can be concatenated
2389
2389
  /* harmony default export */ const setPublicPath = (null);
2390
2390
 
2391
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=327f7469&
2391
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=1c525df0&
2392
2392
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.avatarClasses,style:(_vm.initialKindStyle),attrs:{"id":_vm.id,"data-qa":"dt-avatar"}},[_c('div',{ref:"canvas",class:[_vm.canvasClass, 'd-avatar__canvas']},[(_vm.showDefaultSlot)?_vm._t("default"):_vm._e(),(_vm.showInitials)?_c('span',{staticClass:"d-ps-absolute d-zi-base",class:_vm.AVATAR_KIND_MODIFIERS.initials},[_vm._v(" "+_vm._s(_vm.formattedInitials)+" ")]):_vm._e()],2),(_vm.showGroup)?_c('span',{staticClass:"d-avatar__count d-zi-base1",attrs:{"data-qa":"dt-avatar-count"}},[_vm._v(_vm._s(_vm.formattedGroup))]):_vm._e(),(_vm.presence && !_vm.showGroup)?_c('dt-presence',_vm._b({staticClass:"d-zi-base1",class:[
2393
2393
  'd-avatar__presence',
2394
2394
  _vm.AVATAR_PRESENCE_SIZE_MODIFIERS[_vm.size] ],attrs:{"presence":_vm.presence,"data-qa":"dt-presence"}},'dt-presence',_vm.presenceProps,false)):_vm._e()],1)}
@@ -3119,13 +3119,19 @@ const AVATAR_GROUP_VALIDATOR = group => group > 1;
3119
3119
 
3120
3120
  methods: {
3121
3121
  async init() {
3122
+ var _this$$refs$canvas;
3123
+
3122
3124
  if (this.initializing) return;
3123
3125
  this.kind = null;
3124
3126
  await this.$nextTick();
3125
- const firstChild = this.$refs.canvas.firstElementChild || this.$refs.canvas;
3127
+ const firstChild = ((_this$$refs$canvas = this.$refs.canvas) === null || _this$$refs$canvas === void 0 ? void 0 : _this$$refs$canvas.firstElementChild) || this.$refs.canvas;
3126
3128
  this.formatInitials(this.initials);
3127
- this.setKind(firstChild);
3128
- this.kindHandler(firstChild);
3129
+
3130
+ if (firstChild) {
3131
+ this.setKind(firstChild);
3132
+ this.kindHandler(firstChild);
3133
+ }
3134
+
3129
3135
  this.initializing = true;
3130
3136
  await this.$nextTick();
3131
3137
  this.initializing = false;