@donotdev/core 0.0.4 → 0.0.5
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/index.d.ts +81 -18
- package/index.js +41 -34
- package/package.json +2 -2
- package/server.d.ts +9 -9
- package/server.js +32 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
],
|
|
53
53
|
"sideEffects": false,
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@donotdev/components": "0.0.
|
|
55
|
+
"@donotdev/components": "0.0.5",
|
|
56
56
|
"@sentry/react": "^10.25.0",
|
|
57
57
|
"lucide-react": "^0.562.0",
|
|
58
58
|
"react": "^19.2.3",
|
package/server.d.ts
CHANGED
|
@@ -8668,7 +8668,7 @@ type ReadCallback = (err: any, data: any) => void;
|
|
|
8668
8668
|
* @since 0.0.1
|
|
8669
8669
|
* @author AMBROISE PARK Consulting
|
|
8670
8670
|
*/
|
|
8671
|
-
type Breakpoint = 'mobile' | 'tablet' | '
|
|
8671
|
+
type Breakpoint = 'mobile' | 'tablet' | 'laptop' | 'desktop';
|
|
8672
8672
|
/**
|
|
8673
8673
|
* Breakpoint pixel values
|
|
8674
8674
|
*
|
|
@@ -8689,8 +8689,8 @@ type Breakpoint = 'mobile' | 'tablet' | 'desktop' | 'wide';
|
|
|
8689
8689
|
declare const BREAKPOINT_THRESHOLDS: {
|
|
8690
8690
|
readonly mobile: 0;
|
|
8691
8691
|
readonly tablet: 768;
|
|
8692
|
-
readonly
|
|
8693
|
-
readonly
|
|
8692
|
+
readonly laptop: 1024;
|
|
8693
|
+
readonly desktop: 1440;
|
|
8694
8694
|
};
|
|
8695
8695
|
/**
|
|
8696
8696
|
* Breakpoint pixel ranges
|
|
@@ -8728,14 +8728,14 @@ interface BreakpointUtils {
|
|
|
8728
8728
|
isMobile: boolean;
|
|
8729
8729
|
/** Whether current viewport is tablet (768-1023px) */
|
|
8730
8730
|
isTablet: boolean;
|
|
8731
|
-
/** Whether current viewport is
|
|
8731
|
+
/** Whether current viewport is laptop (1024-1439px) */
|
|
8732
|
+
isLaptop: boolean;
|
|
8733
|
+
/** Whether current viewport is desktop (1440px+) */
|
|
8732
8734
|
isDesktop: boolean;
|
|
8733
|
-
/** Whether current viewport is
|
|
8734
|
-
isWide: boolean;
|
|
8735
|
-
/** Whether current viewport is mobile OR tablet */
|
|
8735
|
+
/** Whether current viewport is mobile OR tablet (< 1024px) */
|
|
8736
8736
|
isMobileOrTablet: boolean;
|
|
8737
|
-
/** Whether current viewport is
|
|
8738
|
-
|
|
8737
|
+
/** Whether current viewport is laptop OR desktop (>= 1024px) */
|
|
8738
|
+
isLaptopOrDesktop: boolean;
|
|
8739
8739
|
}
|
|
8740
8740
|
/**
|
|
8741
8741
|
* Get breakpoint from window width
|