@strands.gg/accui 2.17.61 → 2.17.62

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/README.md CHANGED
@@ -72,8 +72,8 @@ export default defineConfig({
72
72
  // Auto-import styles (default: true)
73
73
  styles: true,
74
74
 
75
- // Navigation
76
- onSignInUrl: '/dashboard',
75
+ // Navigation (optional - if not set, app handles its own redirects)
76
+ // onSignInUrl: '/dashboard',
77
77
  onSignOutUrl: '/',
78
78
 
79
79
  // Support
@@ -131,8 +131,8 @@ export default defineNuxtConfig({
131
131
  ? 'http://localhost:8000'
132
132
  : 'https://your-api.example.com',
133
133
 
134
- // Navigation
135
- onSignInUrl: '/dashboard',
134
+ // Navigation (optional - if not set, app handles its own redirects)
135
+ // onSignInUrl: '/dashboard',
136
136
  onSignOutUrl: '/',
137
137
 
138
138
  // OAuth2 configuration
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("@nuxt/kit");var n=typeof document<"u"?document.currentScript:null;const h={baseUrl:"https://your-api.example.com",accentColor:"#EA00A8",redirectUrl:"/",onSignInUrl:"/dashboard",onSignOutUrl:"/",autoRefresh:!0,refreshInterval:4,protectedRoutes:[],guestOnlyRoutes:["/auth","/login","/register"],devMode:!1,styles:!0,supportEmail:"",oauth2RedirectUrl:"",theme:"system"},g=o.defineNuxtModule({meta:{name:"@strands.gg/accui/nuxt",configKey:"strandsAuth",compatibility:{nuxt:"^3.0.0 || ^4.0.0"}},defaults:h,async setup(a,t){const s=o.createResolver(typeof document>"u"?require("url").pathToFileURL(__filename).href:n&&n.tagName.toUpperCase()==="SCRIPT"&&n.src||new URL("nuxt/module.cjs.js",document.baseURI).href);t.options.runtimeConfig.public=t.options.runtimeConfig.public||{};const i={...a,styles:a.styles!==!1};if(t.options.runtimeConfig.public.strandsAuth=i,t.options.appConfig&&(t.options.appConfig.strandsAuth=i),a.styles!==!1&&t.options.css.push("@strands.gg/accui/style.css"),a.accentColor&&a.accentColor!=="#EA00A8"){const e=a.accentColor,p=`
1
+ "use strict";const o=require("@nuxt/kit");var n=typeof document<"u"?document.currentScript:null;const h={baseUrl:"https://your-api.example.com",accentColor:"#EA00A8",redirectUrl:"/",onSignOutUrl:"/",autoRefresh:!0,refreshInterval:4,protectedRoutes:[],guestOnlyRoutes:["/auth","/login","/register"],devMode:!1,styles:!0,supportEmail:"",oauth2RedirectUrl:"",theme:"system"},g=o.defineNuxtModule({meta:{name:"@strands.gg/accui/nuxt",configKey:"strandsAuth",compatibility:{nuxt:"^3.0.0 || ^4.0.0"}},defaults:h,async setup(a,t){const s=o.createResolver(typeof document>"u"?require("url").pathToFileURL(__filename).href:n&&n.tagName.toUpperCase()==="SCRIPT"&&n.src||new URL("nuxt/module.cjs.js",document.baseURI).href);t.options.runtimeConfig.public=t.options.runtimeConfig.public||{};const i={...a,styles:a.styles!==!1};if(t.options.runtimeConfig.public.strandsAuth=i,t.options.appConfig&&(t.options.appConfig.strandsAuth=i),a.styles!==!1&&t.options.css.push("@strands.gg/accui/style.css"),a.accentColor&&a.accentColor!=="#EA00A8"){const e=a.accentColor,p=`
2
2
  :root {
3
3
  --strands-custom-accent: ${e};
4
4
  --strands-custom-50: color-mix(in srgb, ${e} 10%, white);
@@ -3,7 +3,6 @@ const A = {
3
3
  baseUrl: "https://your-api.example.com",
4
4
  accentColor: "#EA00A8",
5
5
  redirectUrl: "/",
6
- onSignInUrl: "/dashboard",
7
6
  onSignOutUrl: "/",
8
7
  autoRefresh: !0,
9
8
  refreshInterval: 4,
@@ -52,7 +51,7 @@ const A = {
52
51
  key: "strands-accent-override"
53
52
  });
54
53
  }
55
- const o = "es.js", i = s.resolve(`./runtime/plugin.client.${o}`), u = s.resolve(`./runtime/plugin.server.${o}`), d = s.resolve(`./runtime/middleware/auth.global.${o}`), l = s.resolve(`./runtime/plugins/auth-interceptor.client.${o}`);
54
+ const o = "es.js", i = s.resolve(`./runtime/plugin.client.${o}`), u = s.resolve(`./runtime/plugin.server.${o}`), l = s.resolve(`./runtime/middleware/auth.global.${o}`), d = s.resolve(`./runtime/plugins/auth-interceptor.client.${o}`);
56
55
  a({
57
56
  src: i,
58
57
  mode: "client"
@@ -60,11 +59,11 @@ const A = {
60
59
  src: u,
61
60
  mode: "server"
62
61
  }), a({
63
- src: l,
62
+ src: d,
64
63
  mode: "client"
65
64
  }), g({
66
65
  name: "auth",
67
- path: d,
66
+ path: l,
68
67
  global: !0
69
68
  }), t.hook("pages:extend", () => {
70
69
  }), S([
@@ -105,8 +105,8 @@ export interface StrandsAuthConfig {
105
105
  */
106
106
  redirectUrl?: string;
107
107
  /**
108
- * URL to redirect to after successful sign in
109
- * @default '/dashboard'
108
+ * URL to redirect to after successful sign in.
109
+ * If not set, no automatic redirect occurs - the app handles its own navigation.
110
110
  */
111
111
  onSignInUrl?: string;
112
112
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.17.61",
3
+ "version": "2.17.62",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",