@stacksjs/stx 0.2.150 → 0.2.152
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/browser-composables.d.ts +16 -9
- package/dist/cli.js +503 -503
- package/dist/component-processing.d.ts +16 -0
- package/dist/component-processing.js +4 -1
- package/dist/component-renderer.js +2 -2
- package/dist/composables/use-device-orientation.d.ts +8 -1
- package/dist/composables/use-event-source.d.ts +14 -1
- package/dist/composables/use-eye-dropper.d.ts +10 -1
- package/dist/composables/use-idle.d.ts +21 -3
- package/dist/composables/use-storage.d.ts +8 -2
- package/dist/composables/use-text-selection.d.ts +27 -3
- package/dist/composables/use-wake-lock.d.ts +2 -2
- package/dist/craft.js +265 -265
- package/dist/edge-runtime.d.ts +1 -1
- package/dist/includes.js +2 -0
- package/dist/pwa.js +255 -255
- package/dist/render.d.ts +1 -1
- package/dist/render.js +2 -2
- package/dist/ssg.js +273 -273
- package/dist/ssr.d.ts +17 -1
- package/dist/utils.js +1 -8
- package/dist/variable-extractor.d.ts +8 -0
- package/dist/variable-extractor.js +24 -9
- package/dist/visual-testing.d.ts +26 -3
- package/package.json +5 -5
|
@@ -65,15 +65,7 @@ export declare function useWindowSize(): {
|
|
|
65
65
|
* ```
|
|
66
66
|
*/
|
|
67
67
|
export declare function useMediaQuery(query: string): { readonly value: boolean };
|
|
68
|
-
|
|
69
|
-
* Common breakpoint helpers.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```typescript
|
|
73
|
-
* const { isMobile, isTablet, isDesktop } = useBreakpoints()
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
export declare function useBreakpoints(): void;
|
|
68
|
+
export declare function useBreakpoints(): BreakpointsRef;
|
|
77
69
|
/**
|
|
78
70
|
* Detect dark mode preference.
|
|
79
71
|
*
|
|
@@ -295,6 +287,21 @@ export declare function useAsync<T>(fn: () => Promise<T>, options?: { immediate?
|
|
|
295
287
|
error: { readonly value: Error | null }
|
|
296
288
|
execute: () => Promise<T | null>
|
|
297
289
|
};
|
|
290
|
+
/**
|
|
291
|
+
* Common breakpoint helpers.
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* ```typescript
|
|
295
|
+
* const { isMobile, isTablet, isDesktop } = useBreakpoints()
|
|
296
|
+
* ```
|
|
297
|
+
*/
|
|
298
|
+
/** Handle returned by {@link useBreakpoints}. */
|
|
299
|
+
export declare interface BreakpointsRef {
|
|
300
|
+
isMobile: { readonly value: boolean }
|
|
301
|
+
isTablet: { readonly value: boolean }
|
|
302
|
+
isDesktop: { readonly value: boolean }
|
|
303
|
+
isLargeDesktop: { readonly value: boolean }
|
|
304
|
+
}
|
|
298
305
|
// =============================================================================
|
|
299
306
|
// Async Composables
|
|
300
307
|
// =============================================================================
|