@strands.gg/accui 2.9.2 → 2.9.4

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/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, provide, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, renderSlot, Teleport, createCommentVNode, toDisplayString, createTextVNode, unref, normalizeStyle, useSlots, createVNode, Fragment as Fragment$1, withCtx, getCurrentInstance, resolveDynamicComponent, resolveComponent, createSlots, useAttrs, h as h$1, ref, nextTick, withModifiers, renderList, watch, toRefs, withDirectives, vModelSelect, watchEffect, onBeforeUnmount, shallowRef, markRaw, customRef, useCssVars, mergeProps, reactive, createStaticVNode, vModelText, Transition, inject, withKeys, isMemoSame } from "vue";
2
2
  import { u as useStrandsConfig, p as provideStrandsConfig } from "./useStrandsConfig-XmPqJn_B.es.js";
3
3
  import { s } from "./useStrandsConfig-XmPqJn_B.es.js";
4
- import { u as useStrandsAuth } from "./useStrandsAuth-Xz8lnhv7.es.js";
4
+ import { u as useStrandsAuth } from "./useStrandsAuth-Dca-zFQT.es.js";
5
5
  const _hoisted_1$U = { class: "app-content" };
6
6
  const _hoisted_2$L = {
7
7
  key: 0,
@@ -92,7 +92,7 @@ const _hoisted_4$E = {
92
92
  viewBox: "0 0 20 20",
93
93
  "aria-hidden": "true"
94
94
  };
95
- const _hoisted_5$z = ["d"];
95
+ const _hoisted_5$A = ["d"];
96
96
  const _hoisted_6$t = { class: "alert-text-container" };
97
97
  const _hoisted_7$s = {
98
98
  key: 0,
@@ -146,7 +146,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
146
146
  "fill-rule": "evenodd",
147
147
  d: iconPath.value,
148
148
  "clip-rule": "evenodd"
149
- }, null, 8, _hoisted_5$z)
149
+ }, null, 8, _hoisted_5$A)
150
150
  ]))
151
151
  ]),
152
152
  createElementVNode("div", _hoisted_6$t, [
@@ -188,7 +188,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
188
188
  };
189
189
  }
190
190
  });
191
- const StrandsUiAlert = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-1beb49ad"]]);
191
+ const StrandsUiAlert = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-96af8541"]]);
192
192
  const logo = '<svg width="302" height="438" viewBox="0 0 302 438" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M71.5001 96C71.5001 96 132 106 137 61.5C142 17 117.5 3.50005 94.5001 1.50003C71.5001 -0.499996 16.0001 8.5 2.00014 72.5C-6.5 130.5 71.5003 227.5 165 218C258.5 208.5 280.758 148.5 283.5 121C286.242 93.5 277.5 61.5 238.5 61.5C153 61.5 150.501 185 170.5 235C190.5 285 199 279 213 314C227.001 349 217.296 411.458 183 427C129.456 450.65 92 426 78.5 407.5C65 389 68.0003 357 94.5001 344.5C121 332 212.41 393.5 301.5 361" stroke="black"/>\n</svg>\n';
193
193
  const _hoisted_1$S = {
194
194
  key: 0,
@@ -197,7 +197,7 @@ const _hoisted_1$S = {
197
197
  const _hoisted_2$J = ["width", "height"];
198
198
  const _hoisted_3$G = ["d"];
199
199
  const _hoisted_4$D = ["stroke-width"];
200
- const _hoisted_5$y = ["stroke-width"];
200
+ const _hoisted_5$z = ["stroke-width"];
201
201
  const _hoisted_6$s = ["width", "height"];
202
202
  const _hoisted_7$r = {
203
203
  key: 3,
@@ -266,7 +266,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
266
266
  "stroke-linecap": "round",
267
267
  "stroke-linejoin": "round",
268
268
  class: "loader-animated-path"
269
- }, null, 8, _hoisted_5$y)
269
+ }, null, 8, _hoisted_5$z)
270
270
  ], 8, _hoisted_2$J))
271
271
  ])) : _ctx.variant === "circle" ? (openBlock(), createElementBlock("div", {
272
272
  key: 1,
@@ -1403,7 +1403,7 @@ const _hoisted_4$B = {
1403
1403
  key: 2,
1404
1404
  class: "input-trailing-icon"
1405
1405
  };
1406
- const _hoisted_5$x = {
1406
+ const _hoisted_5$y = {
1407
1407
  key: 3,
1408
1408
  class: "input-trailing-icon"
1409
1409
  };
@@ -1480,7 +1480,6 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1480
1480
  emit("keydown", event);
1481
1481
  };
1482
1482
  const togglePasswordVisibility = () => {
1483
- console.log("Toggle password visibility clicked");
1484
1483
  showPassword.value = !showPassword.value;
1485
1484
  };
1486
1485
  const clearSearchValue = () => {
@@ -1542,14 +1541,14 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1542
1541
  ]),
1543
1542
  _: 1
1544
1543
  })
1545
- ])) : hasTrailingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_5$x, [
1544
+ ])) : hasTrailingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_5$y, [
1546
1545
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
1547
1546
  ])) : createCommentVNode("", true)
1548
1547
  ], 2);
1549
1548
  };
1550
1549
  }
1551
1550
  });
1552
- const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-728dfbde"]]);
1551
+ const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-9bb4478d"]]);
1553
1552
  const _hoisted_1$M = {
1554
1553
  key: 0,
1555
1554
  class: "input-leading-icon"
@@ -1869,7 +1868,7 @@ const _hoisted_4$A = {
1869
1868
  key: 0,
1870
1869
  class: "input-select-text"
1871
1870
  };
1872
- const _hoisted_5$w = {
1871
+ const _hoisted_5$x = {
1873
1872
  key: 1,
1874
1873
  class: "input-select-placeholder"
1875
1874
  };
@@ -2178,7 +2177,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2178
2177
  "aria-controls": dropdownId.value
2179
2178
  }, [
2180
2179
  createElementVNode("div", _hoisted_3$B, [
2181
- displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$A, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$w, toDisplayString(_ctx.placeholder || "Select an option..."), 1))
2180
+ displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$A, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$x, toDisplayString(_ctx.placeholder || "Select an option..."), 1))
2182
2181
  ]),
2183
2182
  createElementVNode("div", {
2184
2183
  class: normalizeClass(["input-select-arrow", { "input-select-arrow-open": dropdownState.value.isOpen }])
@@ -2259,7 +2258,7 @@ const _hoisted_1$K = { class: "input-leading-icon" };
2259
2258
  const _hoisted_2$D = ["src"];
2260
2259
  const _hoisted_3$A = ["id", "accept", "multiple", "disabled", "required"];
2261
2260
  const _hoisted_4$z = { class: "input-file-content" };
2262
- const _hoisted_5$v = {
2261
+ const _hoisted_5$w = {
2263
2262
  key: 0,
2264
2263
  class: "input-file-prompt"
2265
2264
  };
@@ -2495,7 +2494,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2495
2494
  onFocus: handleFocus
2496
2495
  }, null, 40, _hoisted_3$A),
2497
2496
  createElementVNode("div", _hoisted_4$z, [
2498
- selectedFiles.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$v, [
2497
+ selectedFiles.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$w, [
2499
2498
  createElementVNode("div", _hoisted_6$q, toDisplayString(_ctx.dragDropText || "Click to select or drag and drop"), 1),
2500
2499
  _ctx.accept ? (openBlock(), createElementBlock("div", _hoisted_7$p, toDisplayString(_ctx.accept), 1)) : createCommentVNode("", true)
2501
2500
  ])) : (openBlock(), createElementBlock("div", _hoisted_8$n, [
@@ -2541,7 +2540,7 @@ const _hoisted_4$y = {
2541
2540
  key: 1,
2542
2541
  class: "tabs-after"
2543
2542
  };
2544
- const _hoisted_5$u = ["aria-labelledby"];
2543
+ const _hoisted_5$v = ["aria-labelledby"];
2545
2544
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
2546
2545
  __name: "UiTabs",
2547
2546
  props: {
@@ -2926,7 +2925,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2926
2925
  id: "tabpanel"
2927
2926
  }, [
2928
2927
  renderSlot(_ctx.$slots, "content", { activeTab: activeTab.value }, void 0, true)
2929
- ], 10, _hoisted_5$u)) : createCommentVNode("", true)
2928
+ ], 10, _hoisted_5$v)) : createCommentVNode("", true)
2930
2929
  ], 2);
2931
2930
  };
2932
2931
  }
@@ -3007,7 +3006,7 @@ const _hoisted_4$x = {
3007
3006
  key: 0,
3008
3007
  class: "datetime-picker-value"
3009
3008
  };
3010
- const _hoisted_5$t = {
3009
+ const _hoisted_5$u = {
3011
3010
  key: 1,
3012
3011
  class: "datetime-picker-placeholder"
3013
3012
  };
@@ -3386,7 +3385,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
3386
3385
  _ctx.type === "date" ? (openBlock(), createBlock(unref(Calendar), { key: 0 })) : _ctx.type === "time" ? (openBlock(), createBlock(unref(Clock), { key: 1 })) : (openBlock(), createBlock(unref(CalendarClock), { key: 2 }))
3387
3386
  ]),
3388
3387
  createElementVNode("div", _hoisted_3$y, [
3389
- displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$x, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$t, toDisplayString(_ctx.placeholder || getDefaultPlaceholder()), 1))
3388
+ displayValue.value ? (openBlock(), createElementBlock("span", _hoisted_4$x, toDisplayString(displayValue.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_5$u, toDisplayString(_ctx.placeholder || getDefaultPlaceholder()), 1))
3390
3389
  ]),
3391
3390
  _ctx.modelValue && !_ctx.disabled && !_ctx.readonly ? (openBlock(), createElementBlock("div", {
3392
3391
  key: 0,
@@ -24729,7 +24728,7 @@ const _hoisted_1$G = { class: "input-richtext-toolbar" };
24729
24728
  const _hoisted_2$A = { class: "input-richtext-group" };
24730
24729
  const _hoisted_3$x = { class: "input-richtext-group" };
24731
24730
  const _hoisted_4$w = { class: "input-richtext-group" };
24732
- const _hoisted_5$s = { class: "input-richtext-group" };
24731
+ const _hoisted_5$t = { class: "input-richtext-group" };
24733
24732
  const _hoisted_6$o = { class: "input-richtext-group" };
24734
24733
  const _hoisted_7$n = { class: "input-richtext-editor-wrapper" };
24735
24734
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
@@ -24974,7 +24973,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
24974
24973
  spacing: "28px",
24975
24974
  margin: "4px"
24976
24975
  }),
24977
- createElementVNode("div", _hoisted_5$s, [
24976
+ createElementVNode("div", _hoisted_5$t, [
24978
24977
  createVNode(StrandsUiButton, {
24979
24978
  color: unref(editor)?.isActive("bulletList") ? "primary" : "secondary",
24980
24979
  size: "sm",
@@ -25104,7 +25103,7 @@ const _hoisted_4$v = {
25104
25103
  key: 1,
25105
25104
  class: "pincode-divider"
25106
25105
  };
25107
- const _hoisted_5$r = {
25106
+ const _hoisted_5$s = {
25108
25107
  key: 1,
25109
25108
  class: "pincode-icon pincode-icon-trailing"
25110
25109
  };
@@ -25319,7 +25318,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25319
25318
  }, dividerProps.value, { class: "pincode-custom-divider" }), null, 16)) : shouldShowDivider(index) ? (openBlock(), createElementBlock("span", _hoisted_4$v, toDisplayString(dividerCharacter.value), 1)) : createCommentVNode("", true)
25320
25319
  ], 64);
25321
25320
  }), 128)),
25322
- _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_5$r, [
25321
+ _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_5$s, [
25323
25322
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25324
25323
  ])) : createCommentVNode("", true)
25325
25324
  ])
@@ -25338,7 +25337,7 @@ const _hoisted_4$u = {
25338
25337
  key: 10,
25339
25338
  class: "input-error-text"
25340
25339
  };
25341
- const _hoisted_5$q = {
25340
+ const _hoisted_5$r = {
25342
25341
  key: 11,
25343
25342
  class: "input-help-text"
25344
25343
  };
@@ -25643,7 +25642,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25643
25642
  key: "1"
25644
25643
  } : void 0
25645
25644
  ]), 1032, ["model-value", "max-length", "variant", "divider", "disabled", "readonly", "input-id", "error", "size"])) : createCommentVNode("", true),
25646
- props.error && props.error !== true ? (openBlock(), createElementBlock("p", _hoisted_4$u, toDisplayString(typeof props.error === "string" ? props.error : props.error?.message || String(props.error)), 1)) : props.helpText ? (openBlock(), createElementBlock("p", _hoisted_5$q, toDisplayString(props.helpText), 1)) : createCommentVNode("", true)
25645
+ props.error && props.error !== true ? (openBlock(), createElementBlock("p", _hoisted_4$u, toDisplayString(typeof props.error === "string" ? props.error : props.error?.message || String(props.error)), 1)) : props.helpText ? (openBlock(), createElementBlock("p", _hoisted_5$r, toDisplayString(props.helpText), 1)) : createCommentVNode("", true)
25647
25646
  ]);
25648
25647
  };
25649
25648
  }
@@ -25815,7 +25814,7 @@ const _hoisted_3$u = {
25815
25814
  class: "editor-container"
25816
25815
  };
25817
25816
  const _hoisted_4$t = { class: "editor-main" };
25818
- const _hoisted_5$p = { class: "canvas-container" };
25817
+ const _hoisted_5$q = { class: "canvas-container" };
25819
25818
  const _hoisted_6$n = ["width", "height"];
25820
25819
  const _hoisted_7$m = { class: "crop-overlay" };
25821
25820
  const _hoisted_8$l = { class: "crop-backdrop" };
@@ -26147,7 +26146,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
26147
26146
  createStaticVNode('<div class="upload-content"><svg class="upload-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg><h3 class="upload-title">Upload your photo</h3><p class="upload-subtitle">Drag and drop or click to browse</p><div class="upload-formats"><span class="format-tag">JPG</span><span class="format-tag">PNG</span><span class="format-tag">GIF</span></div></div>', 1)
26148
26147
  ])], 32)) : (openBlock(), createElementBlock("div", _hoisted_3$u, [
26149
26148
  createElementVNode("div", _hoisted_4$t, [
26150
- createElementVNode("div", _hoisted_5$p, [
26149
+ createElementVNode("div", _hoisted_5$q, [
26151
26150
  createElementVNode("canvas", {
26152
26151
  ref_key: "canvas",
26153
26152
  ref: canvas,
@@ -26616,7 +26615,7 @@ const _hoisted_1$A = { class: "level-progress-container" };
26616
26615
  const _hoisted_2$v = ["width", "height", "viewBox"];
26617
26616
  const _hoisted_3$t = { key: 0 };
26618
26617
  const _hoisted_4$s = ["r"];
26619
- const _hoisted_5$o = ["y"];
26618
+ const _hoisted_5$p = ["y"];
26620
26619
  const _hoisted_6$m = ["d", "stroke-width"];
26621
26620
  const _hoisted_7$l = ["d", "stroke", "stroke-width"];
26622
26621
  const _hoisted_8$k = ["d"];
@@ -26820,7 +26819,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
26820
26819
  "font-weight": "bold",
26821
26820
  fill: "#fff",
26822
26821
  style: { "font-family": "'Montserrat', sans-serif" }
26823
- }, "Level Up", 8, _hoisted_5$o)
26822
+ }, "Level Up", 8, _hoisted_5$p)
26824
26823
  ])) : createCommentVNode("", true),
26825
26824
  animatedValue.value >= 0 && animatedValue.value < props.max ? (openBlock(), createElementBlock("path", {
26826
26825
  key: 1,
@@ -27107,6 +27106,7 @@ const _hoisted_1$z = {
27107
27106
  const _hoisted_2$u = { class: "ui-modal-header-content" };
27108
27107
  const _hoisted_3$s = { class: "ui-modal-title" };
27109
27108
  const _hoisted_4$r = { key: 0 };
27109
+ const _hoisted_5$o = { class: "ui-modal-body-content" };
27110
27110
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
27111
27111
  __name: "UiModal",
27112
27112
  props: {
@@ -27151,7 +27151,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
27151
27151
  "4xl": "ui-modal-size-4xl",
27152
27152
  "5xl": "ui-modal-size-5xl",
27153
27153
  "6xl": "ui-modal-size-6xl",
27154
- full: "ui-modal-size-full"
27154
+ full: "ui-modal-size-full",
27155
+ auto: "ui-modal-size-auto"
27155
27156
  };
27156
27157
  return sizeMap[props.size];
27157
27158
  });
@@ -27305,7 +27306,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
27305
27306
  ])
27306
27307
  ]),
27307
27308
  default: withCtx(() => [
27308
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
27309
+ createElementVNode("div", _hoisted_5$o, [
27310
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
27311
+ ])
27309
27312
  ]),
27310
27313
  _: 2
27311
27314
  }, [
@@ -27331,7 +27334,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
27331
27334
  };
27332
27335
  }
27333
27336
  });
27334
- const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-dece6264"]]);
27337
+ const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-b5e7aae1"]]);
27335
27338
  const tailwindColors = {
27336
27339
  "#000000": {
27337
27340
  label: "Black"
@@ -39539,7 +39542,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
39539
39542
  const dropdownRef = ref();
39540
39543
  const triggerElement = computed(() => {
39541
39544
  const element = triggerRef.value?.$el;
39542
- console.log("Trigger element:", element);
39543
39545
  return element;
39544
39546
  });
39545
39547
  const { floatingStyle, updatePosition } = useFloatingPosition({
@@ -39574,12 +39576,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
39574
39576
  });
39575
39577
  const toggleDropdown = () => {
39576
39578
  showDropdown.value = !showDropdown.value;
39577
- console.log("Dropdown visible:", showDropdown.value);
39578
- console.log("Trigger element when toggling:", triggerElement.value);
39579
39579
  if (showDropdown.value) {
39580
39580
  nextTick(() => {
39581
39581
  updatePosition();
39582
- console.log("Floating style after update:", floatingStyle.value);
39583
39582
  });
39584
39583
  }
39585
39584
  };
@@ -39848,7 +39847,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
39848
39847
  };
39849
39848
  }
39850
39849
  });
39851
- const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-c4df5354"]]);
39850
+ const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-eb787256"]]);
39852
39851
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
39853
39852
  __name: "StrandsNav",
39854
39853
  props: {
@@ -40566,7 +40565,6 @@ function useAuthenticatedFetch() {
40566
40565
  };
40567
40566
  let response = await fetch(fullUrl, enhancedOptions);
40568
40567
  if (response.status === 401 && autoRefresh && currentSession.value?.refreshToken) {
40569
- console.log("[Strands Auth] Request failed with 401, attempting token refresh...");
40570
40568
  try {
40571
40569
  const refreshed = await refreshToken();
40572
40570
  if (refreshed && currentSession.value?.accessToken) {
@@ -40574,7 +40572,6 @@ function useAuthenticatedFetch() {
40574
40572
  Object.entries(newAuthHeaders).forEach(([key, value]) => {
40575
40573
  headers.set(key, value);
40576
40574
  });
40577
- console.log("[Strands Auth] Retrying request with refreshed token");
40578
40575
  response = await fetch(fullUrl, { ...enhancedOptions, headers });
40579
40576
  }
40580
40577
  } catch (refreshError) {
@@ -38,7 +38,6 @@ function useAuthenticatedFetch() {
38
38
  };
39
39
  let response = await fetch(fullUrl, enhancedOptions);
40
40
  if (response.status === 401 && autoRefresh && currentSession.value?.refreshToken) {
41
- console.log("[Strands Auth] Request failed with 401, attempting token refresh...");
42
41
  try {
43
42
  const refreshed = await refreshToken();
44
43
  if (refreshed && currentSession.value?.accessToken) {
@@ -46,7 +45,6 @@ function useAuthenticatedFetch() {
46
45
  Object.entries(newAuthHeaders).forEach(([key, value]) => {
47
46
  headers.set(key, value);
48
47
  });
49
- console.log("[Strands Auth] Retrying request with refreshed token");
50
48
  response = await fetch(fullUrl, { ...enhancedOptions, headers });
51
49
  }
52
50
  } catch (refreshError) {
@@ -1,5 +1,5 @@
1
1
  import { useRuntimeConfig, navigateTo } from "nuxt/app";
2
- import { u as useStrandsAuth$1 } from "../../../useStrandsAuth-Xz8lnhv7.es.js";
2
+ import { u as useStrandsAuth$1 } from "../../../useStrandsAuth-Dca-zFQT.es.js";
3
3
  const useStrandsAuth = () => {
4
4
  const config = useRuntimeConfig().public["strandsAuth"];
5
5
  const vueAuth = useStrandsAuth$1();
@@ -24,10 +24,8 @@ const auth_global = defineNuxtRouteMiddleware((to) => {
24
24
  return currentPath === route || currentPath.startsWith(route + "/");
25
25
  });
26
26
  if (isProtectedRoute && !isAuthenticated.value) {
27
- console.log("[Strands Auth] Protected route accessed without authentication, redirecting to auth");
28
27
  const authUrl = config.onSignOutUrl || "/auth";
29
28
  const redirectUrl = authUrl.includes("?") ? `${authUrl}&redirect=${encodeURIComponent(currentPath)}` : `${authUrl}?redirect=${encodeURIComponent(currentPath)}`;
30
- console.log("[Strands Auth] Redirecting to:", redirectUrl);
31
29
  try {
32
30
  return navigateTo(redirectUrl);
33
31
  } catch (error) {
@@ -40,7 +38,6 @@ const auth_global = defineNuxtRouteMiddleware((to) => {
40
38
  }
41
39
  }
42
40
  if (isGuestOnlyRoute && isAuthenticated.value) {
43
- console.log("[Strands Auth] Guest-only route accessed while authenticated, redirecting");
44
41
  return navigateTo(config.onSignInUrl || "/dashboard");
45
42
  }
46
43
  resolve();
@@ -28,7 +28,6 @@ const authInterceptor_client = defineNuxtPlugin({
28
28
  ...init,
29
29
  headers
30
30
  };
31
- console.log("[Strands Auth] Injecting auth headers for request:", url);
32
31
  return originalFetch(input, enhancedInit);
33
32
  } catch (error) {
34
33
  console.warn("[Strands Auth] Failed to inject auth headers:", error);
@@ -329,7 +329,6 @@ function useStrandsAuth() {
329
329
  return false;
330
330
  }
331
331
  if (refreshPromise) {
332
- console.log("Token refresh already in progress, waiting for completion...");
333
332
  return await refreshPromise;
334
333
  }
335
334
  refreshPromise = (async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.9.2",
3
+ "version": "2.9.4",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",