@strands.gg/accui 1.3.0 → 1.3.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/dist/nuxt/runtime/composables/useStrandsAuth.cjs.js +1 -1
- package/dist/nuxt/runtime/composables/useStrandsAuth.es.js +1 -1
- package/dist/nuxt/runtime/plugin.client.cjs.js +1 -1
- package/dist/nuxt/runtime/plugin.client.es.js +1 -1
- package/dist/nuxt/runtime/plugin.server.cjs.js +1 -1
- package/dist/nuxt/runtime/plugin.server.es.js +1 -1
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.cjs.js +1 -1
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.es.js +1 -1
- package/dist/nuxt-v4/runtime/plugin.client.cjs.js +1 -1
- package/dist/nuxt-v4/runtime/plugin.client.es.js +1 -1
- package/dist/nuxt-v4/runtime/plugin.server.cjs.js +1 -1
- package/dist/nuxt-v4/runtime/plugin.server.es.js +1 -1
- package/dist/strands-auth-ui.cjs.js +31 -7
- package/dist/strands-auth-ui.cjs.js.map +1 -1
- package/dist/strands-auth-ui.es.js +32 -8
- package/dist/strands-auth-ui.es.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/{useStrandsAuth-DK6bMycB.cjs → useStrandsAuth-BCY250zc.cjs} +4 -4
- package/dist/useStrandsAuth-BCY250zc.cjs.map +1 -0
- package/dist/{useStrandsAuth-DiT3EcHV.js → useStrandsAuth-DCKbUhTa.js} +4 -4
- package/dist/useStrandsAuth-DCKbUhTa.js.map +1 -0
- package/dist/{useStrandsConfig-EVnsLNNn.js → useStrandsConfig-gjVpu8j8.js} +5 -3
- package/dist/useStrandsConfig-gjVpu8j8.js.map +1 -0
- package/dist/{useStrandsConfig-CjQTmiYi.cjs → useStrandsConfig-nSwWMPqi.cjs} +5 -3
- package/dist/useStrandsConfig-nSwWMPqi.cjs.map +1 -0
- package/dist/vue/components/StrandsHardwareKeySetupModal.vue.d.ts.map +1 -1
- package/dist/vue/components/StrandsMfaVerification.vue.d.ts.map +1 -1
- package/dist/vue/composables/useStrandsConfig.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/useStrandsAuth-DK6bMycB.cjs.map +0 -1
- package/dist/useStrandsAuth-DiT3EcHV.js.map +0 -1
- package/dist/useStrandsConfig-CjQTmiYi.cjs.map +0 -1
- package/dist/useStrandsConfig-EVnsLNNn.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const app = require("nuxt/app");
|
|
4
|
-
const useStrandsAuth$1 = require("../../../useStrandsAuth-
|
|
4
|
+
const useStrandsAuth$1 = require("../../../useStrandsAuth-BCY250zc.cjs");
|
|
5
5
|
const useStrandsAuth = () => {
|
|
6
6
|
const config = app.useRuntimeConfig().public["strandsAuth"];
|
|
7
7
|
const vueAuth = useStrandsAuth$1.useStrandsAuth();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRuntimeConfig, navigateTo } from "nuxt/app";
|
|
2
|
-
import { u as useStrandsAuth$1 } from "../../../useStrandsAuth-
|
|
2
|
+
import { u as useStrandsAuth$1 } from "../../../useStrandsAuth-DCKbUhTa.js";
|
|
3
3
|
const useStrandsAuth = () => {
|
|
4
4
|
const config = useRuntimeConfig().public["strandsAuth"];
|
|
5
5
|
const vueAuth = useStrandsAuth$1();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const app = require("nuxt/app");
|
|
3
|
-
const useStrandsConfig = require("../../useStrandsConfig-
|
|
3
|
+
const useStrandsConfig = require("../../useStrandsConfig-nSwWMPqi.cjs");
|
|
4
4
|
const plugin_client = app.defineNuxtPlugin({
|
|
5
5
|
name: "strands-auth-client",
|
|
6
6
|
async setup() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNuxtPlugin, useRuntimeConfig } from "nuxt/app";
|
|
2
|
-
import { p as provideStrandsConfig, S as STRANDS_AUTH_DEFAULTS } from "../../useStrandsConfig-
|
|
2
|
+
import { p as provideStrandsConfig, S as STRANDS_AUTH_DEFAULTS } from "../../useStrandsConfig-gjVpu8j8.js";
|
|
3
3
|
const plugin_client = defineNuxtPlugin({
|
|
4
4
|
name: "strands-auth-client",
|
|
5
5
|
async setup() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const app = require("nuxt/app");
|
|
3
|
-
const useStrandsConfig = require("../../useStrandsConfig-
|
|
3
|
+
const useStrandsConfig = require("../../useStrandsConfig-nSwWMPqi.cjs");
|
|
4
4
|
const plugin_server = app.defineNuxtPlugin({
|
|
5
5
|
name: "strands-auth-server",
|
|
6
6
|
setup() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNuxtPlugin, useRuntimeConfig } from "nuxt/app";
|
|
2
|
-
import { p as provideStrandsConfig, S as STRANDS_AUTH_DEFAULTS } from "../../useStrandsConfig-
|
|
2
|
+
import { p as provideStrandsConfig, S as STRANDS_AUTH_DEFAULTS } from "../../useStrandsConfig-gjVpu8j8.js";
|
|
3
3
|
const plugin_server = defineNuxtPlugin({
|
|
4
4
|
name: "strands-auth-server",
|
|
5
5
|
setup() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const app = require("nuxt/app");
|
|
4
|
-
const useStrandsAuth$1 = require("../../../useStrandsAuth-
|
|
4
|
+
const useStrandsAuth$1 = require("../../../useStrandsAuth-BCY250zc.cjs");
|
|
5
5
|
const useStrandsAuth = () => {
|
|
6
6
|
const config = app.useRuntimeConfig().public["strandsAuth"];
|
|
7
7
|
const vueAuth = useStrandsAuth$1.useStrandsAuth();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRuntimeConfig, navigateTo } from "nuxt/app";
|
|
2
|
-
import { u as useStrandsAuth$1 } from "../../../useStrandsAuth-
|
|
2
|
+
import { u as useStrandsAuth$1 } from "../../../useStrandsAuth-DCKbUhTa.js";
|
|
3
3
|
const useStrandsAuth = () => {
|
|
4
4
|
const config = useRuntimeConfig().public["strandsAuth"];
|
|
5
5
|
const vueAuth = useStrandsAuth$1();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const app = require("nuxt/app");
|
|
3
|
-
const useStrandsConfig = require("../../useStrandsConfig-
|
|
3
|
+
const useStrandsConfig = require("../../useStrandsConfig-nSwWMPqi.cjs");
|
|
4
4
|
const plugin_client = app.defineNuxtPlugin({
|
|
5
5
|
name: "strands-auth-client-v4",
|
|
6
6
|
async setup() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNuxtPlugin, useRuntimeConfig } from "nuxt/app";
|
|
2
|
-
import { p as provideStrandsConfig, S as STRANDS_AUTH_DEFAULTS } from "../../useStrandsConfig-
|
|
2
|
+
import { p as provideStrandsConfig, S as STRANDS_AUTH_DEFAULTS } from "../../useStrandsConfig-gjVpu8j8.js";
|
|
3
3
|
const plugin_client = defineNuxtPlugin({
|
|
4
4
|
name: "strands-auth-client-v4",
|
|
5
5
|
async setup() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const app = require("nuxt/app");
|
|
3
|
-
const useStrandsConfig = require("../../useStrandsConfig-
|
|
3
|
+
const useStrandsConfig = require("../../useStrandsConfig-nSwWMPqi.cjs");
|
|
4
4
|
const plugin_server = app.defineNuxtPlugin({
|
|
5
5
|
name: "strands-auth-server-v4",
|
|
6
6
|
setup() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNuxtPlugin, useRuntimeConfig } from "nuxt/app";
|
|
2
|
-
import { S as STRANDS_AUTH_DEFAULTS, p as provideStrandsConfig } from "../../useStrandsConfig-
|
|
2
|
+
import { S as STRANDS_AUTH_DEFAULTS, p as provideStrandsConfig } from "../../useStrandsConfig-gjVpu8j8.js";
|
|
3
3
|
const plugin_server = defineNuxtPlugin({
|
|
4
4
|
name: "strands-auth-server-v4",
|
|
5
5
|
setup() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const useStrandsConfig = require("./useStrandsConfig-
|
|
5
|
-
const useStrandsAuth = require("./useStrandsAuth-
|
|
4
|
+
const useStrandsConfig = require("./useStrandsConfig-nSwWMPqi.cjs");
|
|
5
|
+
const useStrandsAuth = require("./useStrandsAuth-BCY250zc.cjs");
|
|
6
6
|
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
7
7
|
__name: "UiAlert",
|
|
8
8
|
props: {
|
|
@@ -1327,9 +1327,11 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
|
1327
1327
|
const onBackupCodeInput = (value) => {
|
|
1328
1328
|
let cleaned = value.replace(/[^a-zA-Z0-9-]/g, "").toLowerCase();
|
|
1329
1329
|
if (!/[-]/.test(cleaned) && cleaned.length > 4) {
|
|
1330
|
-
|
|
1330
|
+
const part1 = cleaned.substring(0, 4);
|
|
1331
|
+
const part2 = cleaned.substring(4, 8);
|
|
1332
|
+
cleaned = part2 ? `${part1}-${part2}` : part1;
|
|
1331
1333
|
}
|
|
1332
|
-
if (cleaned.replace(/-/g, "").length <=
|
|
1334
|
+
if (cleaned.replace(/-/g, "").length <= 8) {
|
|
1333
1335
|
backupCode.value = cleaned;
|
|
1334
1336
|
}
|
|
1335
1337
|
backupCodeError.value = "";
|
|
@@ -1847,7 +1849,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1847
1849
|
modelValue: $setup.backupCode,
|
|
1848
1850
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.backupCode = $event),
|
|
1849
1851
|
label: "Backup Code",
|
|
1850
|
-
placeholder: "abcd-
|
|
1852
|
+
placeholder: "abcd-1234",
|
|
1851
1853
|
error: $setup.backupCodeError,
|
|
1852
1854
|
disabled: $setup.loading,
|
|
1853
1855
|
onInput: $setup.onBackupCodeInput,
|
|
@@ -1974,7 +1976,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1974
1976
|
modelValue: $setup.backupCode,
|
|
1975
1977
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.backupCode = $event),
|
|
1976
1978
|
label: "Backup Code",
|
|
1977
|
-
placeholder: "abcd-
|
|
1979
|
+
placeholder: "abcd-1234",
|
|
1978
1980
|
error: $setup.backupCodeError,
|
|
1979
1981
|
disabled: $setup.loading,
|
|
1980
1982
|
onInput: $setup.onBackupCodeInput,
|
|
@@ -7527,6 +7529,28 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
7527
7529
|
const closeModal = () => {
|
|
7528
7530
|
emit("close");
|
|
7529
7531
|
};
|
|
7532
|
+
const getOptimalAuthenticatorSelection = (deviceType) => {
|
|
7533
|
+
if (deviceType === "passkey") {
|
|
7534
|
+
return {
|
|
7535
|
+
authenticatorAttachment: void 0,
|
|
7536
|
+
// Allow both platform and cross-platform for passkeys
|
|
7537
|
+
requireResidentKey: true,
|
|
7538
|
+
// Passkeys are resident credentials
|
|
7539
|
+
residentKey: "required",
|
|
7540
|
+
userVerification: "required"
|
|
7541
|
+
// Passkeys should always verify user
|
|
7542
|
+
};
|
|
7543
|
+
} else {
|
|
7544
|
+
return {
|
|
7545
|
+
authenticatorAttachment: "cross-platform",
|
|
7546
|
+
// Prefer external authenticators like YubiKey
|
|
7547
|
+
requireResidentKey: false,
|
|
7548
|
+
residentKey: "discouraged",
|
|
7549
|
+
userVerification: "discouraged"
|
|
7550
|
+
// YubiKeys work better with discouraged
|
|
7551
|
+
};
|
|
7552
|
+
}
|
|
7553
|
+
};
|
|
7530
7554
|
const createOptimizedWebAuthnChallenge = (challenge, deviceType) => {
|
|
7531
7555
|
const safeBufferConvert = (data) => {
|
|
7532
7556
|
try {
|
|
@@ -7736,7 +7760,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
7736
7760
|
const finish = () => {
|
|
7737
7761
|
emit("success");
|
|
7738
7762
|
};
|
|
7739
|
-
const __returned__ = { props, emit, mfaLoading, registerHardwareKey, completeHardwareKeyRegistration, currentSession, internalLoading, loading: loading2, step, deviceName, deviceNameError, registrationMessage, errorMessage, backupCodes, closeModal, createOptimizedWebAuthnChallenge, startSetup, handleRegisterHardwareKey, copyBackupCodes, finish, get StrandsUiButton() {
|
|
7763
|
+
const __returned__ = { props, emit, mfaLoading, registerHardwareKey, completeHardwareKeyRegistration, currentSession, internalLoading, loading: loading2, step, deviceName, deviceNameError, registrationMessage, errorMessage, backupCodes, closeModal, getOptimalAuthenticatorSelection, createOptimizedWebAuthnChallenge, startSetup, handleRegisterHardwareKey, copyBackupCodes, finish, get StrandsUiButton() {
|
|
7740
7764
|
return StrandsUiButton;
|
|
7741
7765
|
}, get StrandsUiInput() {
|
|
7742
7766
|
return StrandsUiInput;
|