@visma-swno/vsn-navigation 1.1.0-beta.13 → 1.1.0-beta.14

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.
@@ -2352,10 +2352,13 @@ var J = class extends e {
2352
2352
  super.disconnectedCallback(), this._mqMobile.removeEventListener("change", this._handleMediaChange);
2353
2353
  }
2354
2354
  _handleClick() {
2355
- this.dispatchEvent(new CustomEvent("vsn-feedback", {
2355
+ if (this.dispatchEvent(new CustomEvent("vsn-feedback", {
2356
2356
  bubbles: !0,
2357
2357
  composed: !0
2358
- })), this.feedback?.surveyId && window._sva?.invokeEvent(ct);
2358
+ })), this.feedback?.surveyId) {
2359
+ let e = {};
2360
+ this.auth?.user.userEmail && (e.email = this.auth.user.userEmail), Object.keys(e).length > 0 && window._sva?.setVisitorTraits?.(e), window._sva?.invokeEvent(ct);
2361
+ }
2359
2362
  }
2360
2363
  render() {
2361
2364
  return this._compact ? n`
@@ -2369,7 +2372,7 @@ var J = class extends e {
2369
2372
  `;
2370
2373
  }
2371
2374
  };
2372
- x([l()], J.prototype, "_compact", void 0), x([s({ attribute: !1 })], J.prototype, "feedback", void 0), J = x([D(), o("vsn-feedback")], J);
2375
+ x([l()], J.prototype, "_compact", void 0), x([s({ attribute: !1 })], J.prototype, "feedback", void 0), x([s({ attribute: !1 })], J.prototype, "auth", void 0), J = x([D(), o("vsn-feedback")], J);
2373
2376
  //#endregion
2374
2377
  //#region src/components/vsn-top-bar/vsn-home.ts
2375
2378
  var Y = class extends e {
@@ -2574,7 +2577,7 @@ var Q = class extends e {
2574
2577
  </div>
2575
2578
  <div class="ga-page-header__header-actions">
2576
2579
  <slot name="context-selector"></slot>
2577
- <vsn-feedback .feedback=${this.feedback}></vsn-feedback>
2580
+ <vsn-feedback .feedback=${this.feedback} .auth=${this.auth}></vsn-feedback>
2578
2581
  <vsn-ai-assistant></vsn-ai-assistant>
2579
2582
  ${this.showHelp ? n`<vsn-help help-url=${this.helpUrl ?? ""}></vsn-help>` : r}
2580
2583
  ${this.showNotification ? n`<vsn-notifications ?notification-active=${this.notificationActive}></vsn-notifications>` : r}
@@ -2584,7 +2587,7 @@ var Q = class extends e {
2584
2587
  `;
2585
2588
  }
2586
2589
  };
2587
- x([s({ attribute: !1 })], Q.prototype, "tree", void 0), x([s({ type: Array })], Q.prototype, "modules", void 0), x([s({ attribute: "landing-page-url" })], Q.prototype, "landingPageUrl", void 0), x([s({ attribute: !1 })], Q.prototype, "feedback", void 0), x([s({
2590
+ x([s({ attribute: !1 })], Q.prototype, "tree", void 0), x([s({ type: Array })], Q.prototype, "modules", void 0), x([s({ attribute: "landing-page-url" })], Q.prototype, "landingPageUrl", void 0), x([s({ attribute: !1 })], Q.prototype, "feedback", void 0), x([s({ attribute: !1 })], Q.prototype, "auth", void 0), x([s({
2588
2591
  type: Boolean,
2589
2592
  attribute: "show-help"
2590
2593
  })], Q.prototype, "showHelp", void 0), x([s({ attribute: "help-url" })], Q.prototype, "helpUrl", void 0), x([s({
@@ -2677,6 +2680,7 @@ var $ = class extends e {
2677
2680
  ?show-help=${this.showHelp}
2678
2681
  help-url=${this.helpUrl ?? ""}
2679
2682
  .feedback=${this.feedback}
2683
+ .auth=${this.auth}
2680
2684
  ?show-notification=${this.showNotification}
2681
2685
  ?notification-active=${this.notificationActive}
2682
2686
  @toggle-side-bar=${this._onToggleSideBar}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visma-swno/vsn-navigation",
3
- "version": "1.1.0-beta.13",
3
+ "version": "1.1.0-beta.14",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {