aura-glass 2.0.12 → 2.0.13

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.
@@ -6,15 +6,15 @@ export declare const AIConfigSchema: z.ZodObject<{
6
6
  maxTokens: z.ZodDefault<z.ZodNumber>;
7
7
  temperature: z.ZodDefault<z.ZodNumber>;
8
8
  }, "strip", z.ZodTypeAny, {
9
+ apiKey: string;
9
10
  model: "gpt-4" | "gpt-4-turbo" | "gpt-3.5-turbo";
10
- temperature: number;
11
11
  maxTokens: number;
12
- apiKey: string;
12
+ temperature: number;
13
13
  }, {
14
14
  apiKey: string;
15
15
  model?: "gpt-4" | "gpt-4-turbo" | "gpt-3.5-turbo" | undefined;
16
- temperature?: number | undefined;
17
16
  maxTokens?: number | undefined;
17
+ temperature?: number | undefined;
18
18
  }>;
19
19
  googleCloud: z.ZodObject<{
20
20
  projectId: z.ZodOptional<z.ZodString>;
@@ -87,10 +87,10 @@ export declare const AIConfigSchema: z.ZodObject<{
87
87
  }>;
88
88
  }, "strip", z.ZodTypeAny, {
89
89
  openai: {
90
+ apiKey: string;
90
91
  model: "gpt-4" | "gpt-4-turbo" | "gpt-3.5-turbo";
91
- temperature: number;
92
92
  maxTokens: number;
93
- apiKey: string;
93
+ temperature: number;
94
94
  };
95
95
  googleCloud: {
96
96
  apiKey?: string | undefined;
@@ -123,8 +123,8 @@ export declare const AIConfigSchema: z.ZodObject<{
123
123
  openai: {
124
124
  apiKey: string;
125
125
  model?: "gpt-4" | "gpt-4-turbo" | "gpt-3.5-turbo" | undefined;
126
- temperature?: number | undefined;
127
126
  maxTokens?: number | undefined;
127
+ temperature?: number | undefined;
128
128
  };
129
129
  googleCloud: {
130
130
  apiKey?: string | undefined;
@@ -0,0 +1,91 @@
1
+ /**
2
+ * SSR StyleSheetManager for Styled Components
3
+ *
4
+ * Provides a consistent styled-components stylesheet instance to prevent
5
+ * hydration mismatches between server and client.
6
+ *
7
+ * Usage in Next.js pages/_app.tsx:
8
+ *
9
+ * ```tsx
10
+ * import { AuraGlassSSRProvider } from 'aura-glass/ssr';
11
+ *
12
+ * function MyApp({ Component, pageProps }) {
13
+ * return (
14
+ * <AuraGlassSSRProvider>
15
+ * <Component {...pageProps} />
16
+ * </AuraGlassSSRProvider>
17
+ * );
18
+ * }
19
+ * ```
20
+ *
21
+ * Usage in Next.js pages/_document.tsx:
22
+ *
23
+ * ```tsx
24
+ * import Document, { DocumentContext } from 'next/document';
25
+ * import { collectStyles } from 'aura-glass/ssr';
26
+ *
27
+ * class MyDocument extends Document {
28
+ * static async getInitialProps(ctx: DocumentContext) {
29
+ * const sheet = collectStyles();
30
+ * const originalRenderPage = ctx.renderPage;
31
+ *
32
+ * try {
33
+ * ctx.renderPage = () =>
34
+ * originalRenderPage({
35
+ * enhanceApp: (App) => (props) =>
36
+ * sheet.collectStyles(<App {...props} />),
37
+ * });
38
+ *
39
+ * const initialProps = await Document.getInitialProps(ctx);
40
+ * return {
41
+ * ...initialProps,
42
+ * styles: (
43
+ * <>
44
+ * {initialProps.styles}
45
+ * {sheet.getStyleElement()}
46
+ * </>
47
+ * ),
48
+ * };
49
+ * } finally {
50
+ * sheet.seal();
51
+ * }
52
+ * }
53
+ * }
54
+ * ```
55
+ */
56
+ import React from "react";
57
+ export interface StyleSheet {
58
+ collectStyles: (children: React.ReactNode) => React.ReactElement;
59
+ getStyleElement: () => React.ReactElement[];
60
+ getStyleTags: () => string;
61
+ seal: () => void;
62
+ instance: any;
63
+ }
64
+ /**
65
+ * Create a new ServerStyleSheet instance
66
+ * Only available during SSR - returns null in browser
67
+ */
68
+ export declare function createStyleSheet(): StyleSheet | null;
69
+ /**
70
+ * Collect styles from a React tree during SSR
71
+ * This is a convenience wrapper for createStyleSheet
72
+ */
73
+ export declare function collectStyles(): StyleSheet;
74
+ /**
75
+ * AuraGlass SSR Provider
76
+ *
77
+ * Wraps your app to provide consistent styled-components behavior
78
+ * Automatically handles StyleSheetManager setup for SSR
79
+ */
80
+ export declare const AuraGlassSSRProvider: React.FC<{
81
+ children: React.ReactNode;
82
+ }>;
83
+ /**
84
+ * Check if styled-components is properly configured for SSR
85
+ */
86
+ export declare function isStyledComponentsSSRReady(): boolean;
87
+ /**
88
+ * Get styled-components version if available
89
+ */
90
+ export declare function getStyledComponentsVersion(): string | null;
91
+ //# sourceMappingURL=StyleSheetManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyleSheetManager.d.ts","sourceRoot":"","sources":["../../src/ssr/StyleSheetManager.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,UAAU;IACzB,aAAa,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;IACjE,eAAe,EAAE,MAAM,KAAK,CAAC,YAAY,EAAE,CAAC;IAC5C,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,GAAG,IAAI,CAsBpD;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAa1C;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAuBxE,CAAC;AAEF;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,OAAO,CASpD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,GAAG,IAAI,CAO1D"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * SSR (Server-Side Rendering) Module
3
+ *
4
+ * Utilities and helpers for using AuraGlass with server-side rendering frameworks
5
+ * like Next.js, Remix, Gatsby, etc.
6
+ */
7
+ export * from "./StyleSheetManager";
8
+ export { isBrowser, isServer, canUseDOM, safeWindow, safeDocument, safeNavigator, safeBrowserExec, getBrowserValue, getUserAgent, isTouchDevice, getViewportSize, getDevicePixelRatio, isWebGLSupported, isLocalStorageAvailable, addBrowserEventListener, safeRequestAnimationFrame, safeCancelAnimationFrame, createBrowserRefCallback, getConnectionInfo, isDevelopment, isProduction, } from "../utils/ssr";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ssr/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,eAAe,EACf,eAAe,EACf,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,YAAY,GACb,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"performanceOptimizations.d.ts","sourceRoot":"","sources":["../../src/utils/performanceOptimizations.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,OAAO,CAAC;IAChC,uBAA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AC,GAAG,EAAE,MAAM,CAAA;KAAE;IAMjD,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAGlC;AAGD,qBAAa,eAAe;IAC1B,OAAO,CAAC,YAAY,CAAO;IAC3B,OAAO,CAAC,OAAO,CAAqB;gBAExB,OAAO,EAAE,kBAAkB;IAIvC,aAAa,IAAI,MAAM;IAgBvB,kBAAkB,IAAI;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,OAAO,CAAC;KACvB;CAQF;AAGD,eAAO,MAAM,gBAAgB;;;+BAGA,kBAAkB;;CAE9C,CAAC"}
1
+ {"version":3,"file":"performanceOptimizations.d.ts","sourceRoot":"","sources":["../../src/utils/performanceOptimizations.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,OAAO,CAAC;IAChC,uBAAuB,EAAE,OAAO,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAGD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAA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,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,OAAO,CAAC;KACvB;CAQF;AAGD,eAAO,MAAM,gBAAgB;;;+BAGA,kBAAkB;;CAG9C,CAAC"}
@@ -0,0 +1,109 @@
1
+ /**
2
+ * SSR (Server-Side Rendering) Utilities
3
+ *
4
+ * Shared helpers for safe browser API access across all components.
5
+ * Prevents hydration mismatches and runtime errors during SSR.
6
+ */
7
+ export { isBrowser, isServer } from "./env";
8
+ /**
9
+ * Check if DOM is available (alias for isBrowser)
10
+ * React convention name
11
+ */
12
+ export declare const canUseDOM: boolean;
13
+ /**
14
+ * Safely access window, returns undefined during SSR
15
+ */
16
+ export declare const safeWindow: (Window & typeof globalThis) | undefined;
17
+ /**
18
+ * Safely access document, returns undefined during SSR
19
+ */
20
+ export declare const safeDocument: Document | undefined;
21
+ /**
22
+ * Safely access navigator, returns undefined during SSR
23
+ */
24
+ export declare const safeNavigator: Navigator | undefined;
25
+ /**
26
+ * Safe wrapper for code that requires browser APIs
27
+ * Returns undefined during SSR, executes callback in browser
28
+ *
29
+ * @example
30
+ * const userAgent = safeBrowserExec(() => navigator.userAgent);
31
+ */
32
+ export declare function safeBrowserExec<T>(callback: () => T): T | undefined;
33
+ /**
34
+ * Get a browser API value with a fallback for SSR
35
+ *
36
+ * @example
37
+ * const width = getBrowserValue(() => window.innerWidth, 1024);
38
+ */
39
+ export declare function getBrowserValue<T>(getter: () => T, fallback: T): T;
40
+ /**
41
+ * Get user agent string safely
42
+ * Returns empty string during SSR
43
+ */
44
+ export declare function getUserAgent(): string;
45
+ /**
46
+ * Check if touch is supported
47
+ * Returns false during SSR
48
+ */
49
+ export declare function isTouchDevice(): boolean;
50
+ /**
51
+ * Get viewport dimensions
52
+ * Returns default dimensions during SSR
53
+ */
54
+ export declare function getViewportSize(): {
55
+ width: number;
56
+ height: number;
57
+ };
58
+ /**
59
+ * Get device pixel ratio
60
+ * Returns 1 during SSR
61
+ */
62
+ export declare function getDevicePixelRatio(): number;
63
+ /**
64
+ * Check if WebGL is supported
65
+ * Returns false during SSR
66
+ */
67
+ export declare function isWebGLSupported(): boolean;
68
+ /**
69
+ * Check if localStorage is available
70
+ * Returns false during SSR and in privacy mode
71
+ */
72
+ export declare function isLocalStorageAvailable(): boolean;
73
+ /**
74
+ * SSR-safe event listener helper
75
+ * No-op during SSR, works normally in browser
76
+ */
77
+ export declare function addBrowserEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): () => void;
78
+ /**
79
+ * SSR-safe requestAnimationFrame
80
+ * Uses setTimeout fallback during SSR
81
+ */
82
+ export declare function safeRequestAnimationFrame(callback: FrameRequestCallback): number;
83
+ /**
84
+ * SSR-safe cancelAnimationFrame
85
+ */
86
+ export declare function safeCancelAnimationFrame(handle: number): void;
87
+ /**
88
+ * Create an SSR-safe ref callback that only runs in browser
89
+ */
90
+ export declare function createBrowserRefCallback<T extends HTMLElement>(callback: (element: T) => void | (() => void)): (element: T | null) => void;
91
+ /**
92
+ * Get connection information safely
93
+ * Returns default values during SSR
94
+ */
95
+ export declare function getConnectionInfo(): {
96
+ effectiveType: string;
97
+ downlink: number;
98
+ rtt: number;
99
+ saveData: boolean;
100
+ };
101
+ /**
102
+ * Check if running in development mode
103
+ */
104
+ export declare const isDevelopment: boolean;
105
+ /**
106
+ * Check if running in production mode
107
+ */
108
+ export declare const isProduction: boolean;
109
+ //# sourceMappingURL=ssr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ssr.d.ts","sourceRoot":"","sources":["../../src/utils/ssr.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,SAAS,SAC4C,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,UAAU,0CAAiC,CAAC;AAEzD;;GAEG;AACH,eAA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C,MAAM,IAAI,CAAC,GAC5C,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,CAc7B;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;CACnB,CAkBA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,SAAyC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAwC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aura-glass",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "A comprehensive glassmorphism design system for React applications with 142+ production-ready components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",