svelte-ag 1.0.61 → 1.0.63

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.
@@ -1,4 +1,4 @@
1
- import { IsMobile } from '$shadcn/hooks/is-mobile.svelte.js';
1
+ import { IsMobile } from './is-mobile.svelte.js';
2
2
  import { getContext, setContext } from 'svelte';
3
3
  import { SIDEBAR_KEYBOARD_SHORTCUT } from './constants.js';
4
4
  class SidebarState {
@@ -0,0 +1,5 @@
1
+ import { MediaQuery } from 'svelte/reactivity';
2
+ export declare class IsMobile extends MediaQuery {
3
+ constructor();
4
+ }
5
+ //# sourceMappingURL=is-mobile.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-mobile.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/sidebar/is-mobile.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,qBAAa,QAAS,SAAQ,UAAU;;CAIvC"}
@@ -0,0 +1,7 @@
1
+ import { MediaQuery } from 'svelte/reactivity';
2
+ const MOBILE_BREAKPOINT = 768;
3
+ export class IsMobile extends MediaQuery {
4
+ constructor() {
5
+ super(`max-width: ${MOBILE_BREAKPOINT - 1}px`);
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-ag",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Useful svelte components",
5
5
  "bugs": "https://github.com/ageorgeh/svelte-ag/issues",
6
6
  "repository": {
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@dnd-kit-svelte/svelte": "^0.1.6",
49
49
  "@floating-ui/dom": "^1.7.6",
50
- "bits-ui": "^2.16.4",
50
+ "bits-ui": "^2.16.5",
51
51
  "clsx": "^2.1.1",
52
52
  "dequal": "^2.0.3",
53
53
  "devalue": "^5.6.4",
@@ -65,7 +65,7 @@
65
65
  "devDependencies": {
66
66
  "@actions/languageserver": "^0.3.49",
67
67
  "@eslint/js": "^10.0.1",
68
- "@iconify/json": "^2.2.456",
68
+ "@iconify/json": "^2.2.458",
69
69
  "@iconify/tailwind4": "^1.2.3",
70
70
  "@iconify/types": "^2.0.0",
71
71
  "@internationalized/date": "^3.12.0",
@@ -77,7 +77,7 @@
77
77
  "@tailwindcss/typography": "^0.5.19",
78
78
  "@tailwindcss/vite": "^4.2.2",
79
79
  "@types/node": "^24.12.0",
80
- "@typescript/native-preview": "7.0.0-dev.20260328.1",
80
+ "@typescript/native-preview": "7.0.0-dev.20260330.1",
81
81
  "eslint": "^10.1.0",
82
82
  "eslint-plugin-better-tailwindcss": "^4.3.2",
83
83
  "eslint-plugin-svelte": "^3.16.0",
@@ -88,12 +88,12 @@
88
88
  "prettier-plugin-packagejson": "^3.0.1",
89
89
  "prettier-plugin-svelte": "^3.5.1",
90
90
  "semantic-release": "^25.0.3",
91
- "svelte": "^5.55.0",
92
- "svelte-check": "^4.4.5",
91
+ "svelte": "^5.55.1",
92
+ "svelte-check": "^4.4.6",
93
93
  "tailwindcss": "4.2.2",
94
94
  "tw-animate-css": "^1.4.0",
95
95
  "typescript": "^5.9.3",
96
- "typescript-eslint": "^8.57.2",
96
+ "typescript-eslint": "^8.58.0",
97
97
  "typescript-svelte-plugin": "^0.3.50",
98
98
  "vite": "^8.0.3",
99
99
  "vitest": "^4.1.2"
@@ -1,4 +1,4 @@
1
- import { IsMobile } from '$shadcn/hooks/is-mobile.svelte.js';
1
+ import { IsMobile } from './is-mobile.svelte.js';
2
2
  import { getContext, setContext } from 'svelte';
3
3
  import { SIDEBAR_KEYBOARD_SHORTCUT } from './constants.js';
4
4
  import type { WritableBox } from 'svelte-toolbelt';
@@ -0,0 +1,9 @@
1
+ import { MediaQuery } from 'svelte/reactivity';
2
+
3
+ const MOBILE_BREAKPOINT = 768;
4
+
5
+ export class IsMobile extends MediaQuery {
6
+ constructor() {
7
+ super(`max-width: ${MOBILE_BREAKPOINT - 1}px`);
8
+ }
9
+ }