yaxa-svelte 1.13.0 → 1.13.2
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 +2 -2
- package/dist/auth/index.d.ts +5 -1
- package/dist/auth/index.js +2 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -4
- package/dist/site/config.js +13 -16
- package/dist/theme/theme.svelte.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -216,10 +216,10 @@ export const POST = createPolarWebhookHandler();
|
|
|
216
216
|
|
|
217
217
|
| Subpath | Description |
|
|
218
218
|
| :--------------------- | :---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
219
|
-
| `yaxa-svelte` | Core UI Primitives, SEO Components, `<Gate />`, Theme System & Composables (`useGate`, `useUpload`, `
|
|
219
|
+
| `yaxa-svelte` | Core UI Primitives, SEO Components, `<Gate />`, Theme System & Composables (`useGate`, `useUpload`, `useToast`, `useClipboard`, etc.) |
|
|
220
220
|
| `yaxa-svelte/admin` | Drizzle ORM Schema Introspection, `<AdminDashboard />`, `createYaxaAdminHook`, `createDrizzleAdmin`, `<DevSandbox />`, `<RecordDrawer />` |
|
|
221
221
|
| `yaxa-svelte/server` | Universal Server Hooks, SEO endpoints, Drizzle DB drivers, Cloud Storage handlers, and Email dispatch |
|
|
222
|
-
| `yaxa-svelte/auth` | Better-Auth
|
|
222
|
+
| `yaxa-svelte/auth` | Better-Auth client & server integration (`useAuth`, `<AuthCard />`, `<PasskeyUI />`, `<TwoFactorModal />`, `createYaxaAuth`) |
|
|
223
223
|
| `yaxa-svelte/db` | Multi-dialect Drizzle ORM clients & schemas for Neon (PostgreSQL) and Turso (SQLite/LibSQL) |
|
|
224
224
|
| `yaxa-svelte/polar` | Polar.sh billing, customer portal sessions, and webhook synchronization |
|
|
225
225
|
| `yaxa-svelte/email` | Resend transactional email templates with automatic development console fallback |
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export { default as AuthCard } from '../components/saas/AuthCard.svelte';
|
|
2
|
+
export type { AuthCardMode } from '../components/saas/AuthCard.svelte';
|
|
3
|
+
export { default as PasskeyUI, passkeyUiVariants } from '../components/saas/PasskeyUI.svelte';
|
|
4
|
+
export type { PasskeyUiProps } from '../components/saas/PasskeyUI.svelte';
|
|
5
|
+
export { default as TwoFactorModal } from '../components/saas/TwoFactorModal.svelte';
|
|
2
6
|
export { useAuth } from '../composables/useAuth.svelte';
|
|
3
|
-
export type { UseAuthOptions, SocialProvider } from '../composables/useAuth.svelte';
|
|
7
|
+
export type { UseAuthOptions, SocialProvider, PasskeyInfo } from '../composables/useAuth.svelte';
|
package/dist/auth/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
// Yaxa SaaS Auth Suite (Better-Auth integration for Svelte 5 & SvelteKit)
|
|
2
2
|
export { default as AuthCard } from '../components/saas/AuthCard.svelte';
|
|
3
|
+
export { default as PasskeyUI, passkeyUiVariants } from '../components/saas/PasskeyUI.svelte';
|
|
4
|
+
export { default as TwoFactorModal } from '../components/saas/TwoFactorModal.svelte';
|
|
3
5
|
export { useAuth } from '../composables/useAuth.svelte';
|
package/dist/index.d.ts
CHANGED
|
@@ -193,17 +193,10 @@ export type { OrgSwitcherProps, OrgItem } from './components/saas/OrgSwitcher.sv
|
|
|
193
193
|
export { default as PricingCard } from './components/saas/PricingCard.svelte';
|
|
194
194
|
export { default as PricingTable } from './components/saas/PricingTable.svelte';
|
|
195
195
|
export { default as SubscriptionCard } from './components/saas/SubscriptionCard.svelte';
|
|
196
|
-
export { default as AuthCard } from './components/saas/AuthCard.svelte';
|
|
197
|
-
export type { AuthCardMode } from './components/saas/AuthCard.svelte';
|
|
198
|
-
export { default as PasskeyUI, passkeyUiVariants } from './components/saas/PasskeyUI.svelte';
|
|
199
|
-
export type { PasskeyUiProps } from './components/saas/PasskeyUI.svelte';
|
|
200
|
-
export { default as TwoFactorModal } from './components/saas/TwoFactorModal.svelte';
|
|
201
196
|
export { useGate } from './composables/useGate.svelte';
|
|
202
197
|
export type { UseGateOptions } from './composables/useGate.svelte';
|
|
203
198
|
export { useUpload } from './composables/useUpload.svelte';
|
|
204
199
|
export type { UseUploadOptions, UploadResult } from './composables/useUpload.svelte';
|
|
205
|
-
export { useAuth } from './composables/useAuth.svelte';
|
|
206
|
-
export type { UseAuthOptions, SocialProvider, PasskeyInfo } from './composables/useAuth.svelte';
|
|
207
200
|
export { default as Testimonials, testimonialsVariants } from './components/blocks/Testimonials.svelte';
|
|
208
201
|
export type { TestimonialsProps, TestimonialItem } from './components/blocks/Testimonials.svelte';
|
|
209
202
|
export { default as FAQ, faqVariants } from './components/blocks/FAQ.svelte';
|
package/dist/index.js
CHANGED
|
@@ -129,12 +129,8 @@ export { default as OrgSwitcher, orgSwitcherVariants } from './components/saas/O
|
|
|
129
129
|
export { default as PricingCard } from './components/saas/PricingCard.svelte';
|
|
130
130
|
export { default as PricingTable } from './components/saas/PricingTable.svelte';
|
|
131
131
|
export { default as SubscriptionCard } from './components/saas/SubscriptionCard.svelte';
|
|
132
|
-
export { default as AuthCard } from './components/saas/AuthCard.svelte';
|
|
133
|
-
export { default as PasskeyUI, passkeyUiVariants } from './components/saas/PasskeyUI.svelte';
|
|
134
|
-
export { default as TwoFactorModal } from './components/saas/TwoFactorModal.svelte';
|
|
135
132
|
export { useGate } from './composables/useGate.svelte';
|
|
136
133
|
export { useUpload } from './composables/useUpload.svelte';
|
|
137
|
-
export { useAuth } from './composables/useAuth.svelte';
|
|
138
134
|
// Pre-Built SaaS Blocks
|
|
139
135
|
export { default as Testimonials, testimonialsVariants } from './components/blocks/Testimonials.svelte';
|
|
140
136
|
export { default as FAQ, faqVariants } from './components/blocks/FAQ.svelte';
|
package/dist/site/config.js
CHANGED
|
@@ -67,15 +67,17 @@ export function defineSiteConfig(config) {
|
|
|
67
67
|
project: resolvedProject,
|
|
68
68
|
legal: {
|
|
69
69
|
refundDays: 14,
|
|
70
|
-
paymentProcessor: '
|
|
70
|
+
paymentProcessor: 'none',
|
|
71
71
|
morNotice: defaultMorNotice,
|
|
72
72
|
dpoEmail: config.legal?.dpoEmail || primaryEmail,
|
|
73
73
|
...config.legal,
|
|
74
74
|
links: {
|
|
75
75
|
privacy: '/privacy',
|
|
76
76
|
terms: '/terms',
|
|
77
|
-
refunds: '/refunds',
|
|
78
77
|
impressum: '/impressum',
|
|
78
|
+
...(config.legal?.paymentProcessor && config.legal?.paymentProcessor !== 'none'
|
|
79
|
+
? { refunds: '/refunds' }
|
|
80
|
+
: {}),
|
|
79
81
|
...config.legal?.links
|
|
80
82
|
}
|
|
81
83
|
},
|
|
@@ -98,31 +100,26 @@ export function defineSiteConfig(config) {
|
|
|
98
100
|
};
|
|
99
101
|
}
|
|
100
102
|
export const DEFAULT_SITE_CONFIG = defineSiteConfig({
|
|
101
|
-
name: '
|
|
102
|
-
title: '
|
|
103
|
-
description: 'A
|
|
104
|
-
url: '
|
|
105
|
-
email: '
|
|
103
|
+
name: 'App',
|
|
104
|
+
title: 'My Application',
|
|
105
|
+
description: 'A modern web application built with Svelte 5 and Tailwind CSS v4.',
|
|
106
|
+
url: 'http://localhost:5173',
|
|
107
|
+
email: 'contact@example.com',
|
|
106
108
|
logo: '/favicon.svg',
|
|
107
109
|
project: {
|
|
108
110
|
license: 'MIT',
|
|
109
111
|
type: 'open-source',
|
|
110
|
-
pricingModel: '
|
|
111
|
-
repositoryUrl: 'https://github.com/FuntionalFrost/yaxa'
|
|
112
|
+
pricingModel: 'free'
|
|
112
113
|
},
|
|
113
114
|
theme: {
|
|
114
115
|
primaryColor: '#ff3e00',
|
|
115
116
|
neutralColor: '#71717a',
|
|
116
|
-
defaultMode: '
|
|
117
|
+
defaultMode: 'system'
|
|
117
118
|
},
|
|
118
119
|
seo: {
|
|
119
|
-
titleTemplate: '%s ·
|
|
120
|
+
titleTemplate: '%s · App',
|
|
120
121
|
defaultOgImage: '/api/og',
|
|
121
122
|
twitterCard: 'summary_large_image'
|
|
122
123
|
},
|
|
123
|
-
nav: [
|
|
124
|
-
{ label: 'Docs', href: '/docs' },
|
|
125
|
-
{ label: 'Components', href: '/docs/comp-buttons' },
|
|
126
|
-
{ label: 'SEO Suite', href: '/docs/seo-og' }
|
|
127
|
-
]
|
|
124
|
+
nav: []
|
|
128
125
|
});
|
|
@@ -235,7 +235,7 @@ class ThemeStore {
|
|
|
235
235
|
fontFamily = $state('sans');
|
|
236
236
|
radius = $state('default');
|
|
237
237
|
fontSize = $state('base');
|
|
238
|
-
accentScrollbar = $state(
|
|
238
|
+
accentScrollbar = $state(false);
|
|
239
239
|
constructor() {
|
|
240
240
|
if (browser) {
|
|
241
241
|
const storedMode = localStorage.getItem('yaxa-theme');
|
|
@@ -267,7 +267,7 @@ class ThemeStore {
|
|
|
267
267
|
this.accentScrollbar = storedScrollbar === 'true';
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
|
-
this.accentScrollbar =
|
|
270
|
+
this.accentScrollbar = false;
|
|
271
271
|
}
|
|
272
272
|
this.applyAllStyles();
|
|
273
273
|
// Listen for system theme changes
|
|
@@ -365,7 +365,7 @@ class ThemeStore {
|
|
|
365
365
|
this.setFontFamily('sans');
|
|
366
366
|
this.setRadius('default');
|
|
367
367
|
this.setFontSize('base');
|
|
368
|
-
this.setAccentScrollbar(
|
|
368
|
+
this.setAccentScrollbar(false);
|
|
369
369
|
}
|
|
370
370
|
applyAllStyles() {
|
|
371
371
|
this.updateResolvedTheme();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yaxa-svelte",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "The Intuitive Svelte UI Library — Nuxt UI v4 equivalent for SvelteKit 2.7+ & Svelte 5 with automated SEO, dynamic OpenGraph cards, sitemaps, robots.txt, and Tailwind CSS v4.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://yaxa.vercel.app",
|