@triptease/tt-navbar 0.0.36 → 0.0.37

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,4 +1,4 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.36
2
+ * @triptease/tt-navbar v0.0.37
3
3
  */
4
4
  //# sourceMappingURL=global.d.js.map
package/dist/web/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.36
2
+ * @triptease/tt-navbar v0.0.37
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -865,7 +865,7 @@ var i6 = e7(class extends i5 {
865
865
  }
866
866
  });
867
867
 
868
- // node_modules/@triptease/tt-combobox/node_modules/@triptease/icons/dist/src/icons/chevron-down.js
868
+ // ../../node_modules/@triptease/icons/dist/src/icons/chevron-down.js
869
869
  var chevronDown2 = `
870
870
  <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-chevron-down chevron-down"
871
871
  viewBox="0 0 16 16" role="presentation">
@@ -874,12 +874,12 @@ var chevronDown2 = `
874
874
  stroke="currentColor"/>
875
875
  </svg>`;
876
876
 
877
- // node_modules/@triptease/tt-combobox/node_modules/@triptease/icons/dist/src/icons/alert.js
877
+ // ../../node_modules/@triptease/icons/dist/src/icons/alert.js
878
878
  var alert2 = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
879
879
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20ZM9.25 5.75C9.25 5.33579 9.58579 5 10 5C10.4142 5 10.75 5.33579 10.75 5.75V11.25C10.75 11.6642 10.4142 12 10 12C9.58579 12 9.25 11.6642 9.25 11.25V5.75ZM10.75 13.75C10.75 14.1642 10.4142 14.5 10 14.5C9.58579 14.5 9.25 14.1642 9.25 13.75C9.25 13.3358 9.58579 13 10 13C10.4142 13 10.75 13.3358 10.75 13.75Z" fill="#3B353B"/>
880
880
  </svg>`;
881
881
 
882
- // node_modules/@triptease/tt-combobox/dist/src/styles.js
882
+ // ../../node_modules/@triptease/tt-combobox/dist/src/styles.js
883
883
  var styles = i`
884
884
  :host {
885
885
  display: flex;
@@ -1161,7 +1161,7 @@ var styles = i`
1161
1161
  }
1162
1162
  `;
1163
1163
 
1164
- // node_modules/@triptease/tt-combobox/dist/src/TtCombobox.js
1164
+ // ../../node_modules/@triptease/tt-combobox/dist/src/TtCombobox.js
1165
1165
  var TtCombobox = class extends i4 {
1166
1166
  get form() {
1167
1167
  return this.internals.form;
@@ -1604,7 +1604,7 @@ __decorate([
1604
1604
  n4({ type: Array, attribute: "value" })
1605
1605
  ], TtCombobox.prototype, "value", void 0);
1606
1606
 
1607
- // node_modules/@triptease/tt-combobox/dist/src/tt-combobox.js
1607
+ // ../../node_modules/@triptease/tt-combobox/dist/src/tt-combobox.js
1608
1608
  if (typeof window !== "undefined") {
1609
1609
  if (!window.customElements.get("tt-combobox")) {
1610
1610
  window.customElements.define("tt-combobox", TtCombobox);
@@ -2041,7 +2041,16 @@ var NavbarController = class {
2041
2041
  this._isOpen = newState;
2042
2042
  if (window.Clerk) {
2043
2043
  await window.Clerk.user?.update({
2044
- unsafeMetadata: { preferences: { ui: { navigationOpen: newState } } }
2044
+ unsafeMetadata: {
2045
+ ...window.Clerk.user?.unsafeMetadata,
2046
+ preferences: {
2047
+ ...window.Clerk.user?.unsafeMetadata?.preferences,
2048
+ ui: {
2049
+ ...window.Clerk.user?.unsafeMetadata?.preferences?.ui,
2050
+ navigationOpen: newState
2051
+ }
2052
+ }
2053
+ }
2045
2054
  });
2046
2055
  }
2047
2056
  this.host.requestUpdate();