@strands.gg/accui 2.9.1 → 2.9.3

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,4 +1,4 @@
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, resolveComponent, resolveDynamicComponent, createSlots, useAttrs, h as h$1, ref, nextTick, withModifiers, renderList, watch, toRefs, withDirectives, vModelSelect, getCurrentInstance, watchEffect, onBeforeUnmount, shallowRef, markRaw, customRef, useCssVars, mergeProps, reactive, createStaticVNode, vModelText, Transition, inject, withKeys, isMemoSame } from "vue";
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
4
  import { u as useStrandsAuth } from "./useStrandsAuth-Xz8lnhv7.es.js";
@@ -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,
@@ -471,13 +471,17 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
471
471
  },
472
472
  emits: ["click"],
473
473
  setup(__props, { emit: __emit }) {
474
+ const instance = getCurrentInstance();
474
475
  const NuxtLinkComponent = computed(() => {
475
- try {
476
- const component = resolveComponent("NuxtLink");
477
- return typeof component === "string" ? "a" : component;
478
- } catch (error) {
479
- return "a";
476
+ const nuxtLinkComponent = instance?.appContext.app.component("NuxtLink");
477
+ if (nuxtLinkComponent) {
478
+ return "NuxtLink";
479
+ }
480
+ const routerLinkComponent = instance?.appContext.app.component("RouterLink");
481
+ if (routerLinkComponent) {
482
+ return "RouterLink";
480
483
  }
484
+ return "a";
481
485
  });
482
486
  const props = __props;
483
487
  const emit = __emit;
@@ -490,7 +494,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
490
494
  };
491
495
  return (_ctx, _cache) => {
492
496
  return openBlock(), createBlock(resolveDynamicComponent(NuxtLinkComponent.value), {
493
- to: NuxtLinkComponent.value === "a" ? void 0 : _ctx.to,
497
+ to: NuxtLinkComponent.value !== "a" ? _ctx.to : void 0,
494
498
  href: NuxtLinkComponent.value === "a" ? typeof _ctx.to === "string" ? _ctx.to : "/" : void 0,
495
499
  class: normalizeClass(_ctx.buttonClasses),
496
500
  style: normalizeStyle(_ctx.buttonStyles),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",