@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 +4 -4
- package/dist/nuxt/module.cjs.js +1 -1
- package/dist/nuxt/module.es.js +3 -4
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
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
|
package/dist/nuxt/module.cjs.js
CHANGED
|
@@ -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:"/",
|
|
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);
|
package/dist/nuxt/module.es.js
CHANGED
|
@@ -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}`),
|
|
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:
|
|
62
|
+
src: d,
|
|
64
63
|
mode: "client"
|
|
65
64
|
}), g({
|
|
66
65
|
name: "auth",
|
|
67
|
-
path:
|
|
66
|
+
path: l,
|
|
68
67
|
global: !0
|
|
69
68
|
}), t.hook("pages:extend", () => {
|
|
70
69
|
}), S([
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
/**
|