@sveltia/ui 0.27.4 → 0.27.6
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.
|
@@ -65,8 +65,12 @@
|
|
|
65
65
|
});
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
|
+
<!--
|
|
69
|
+
In the viewport meta tag, we set the maximum scale to 1 to prevent zooming in on mobile devices.
|
|
70
|
+
@see https://stackoverflow.com/q/2989263
|
|
71
|
+
-->
|
|
68
72
|
<svelte:head>
|
|
69
|
-
<meta name="viewport" content="width=device-width, initial-scale=1
|
|
73
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
70
74
|
<meta name="google" content="notranslate" />
|
|
71
75
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
72
76
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
|
|
@@ -81,12 +81,14 @@
|
|
|
81
81
|
* Style to be applied to the content.
|
|
82
82
|
* @type {Writable<Record<string, any>>}
|
|
83
83
|
*/
|
|
84
|
-
let style =
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
let style = $state(
|
|
85
|
+
writable({
|
|
86
|
+
inset: undefined,
|
|
87
|
+
zIndex: undefined,
|
|
88
|
+
width: undefined,
|
|
89
|
+
height: undefined,
|
|
90
|
+
}),
|
|
91
|
+
);
|
|
90
92
|
|
|
91
93
|
/**
|
|
92
94
|
* @type {{ style: Writable<Record<string, any>>, open: Writable<boolean>, checkPosition:
|
|
@@ -108,9 +110,6 @@
|
|
|
108
110
|
|
|
109
111
|
contentType = anchor?.getAttribute('aria-haspopup') ?? undefined;
|
|
110
112
|
initialized = true;
|
|
111
|
-
|
|
112
|
-
// Work around Svelte 5.35.0 bug where the style is not reactive
|
|
113
|
-
void $style;
|
|
114
113
|
};
|
|
115
114
|
|
|
116
115
|
$effect(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -24,39 +24,39 @@
|
|
|
24
24
|
"check:prettier": "prettier --check .",
|
|
25
25
|
"check:eslint": "eslint .",
|
|
26
26
|
"check:stylelint": "stylelint '**/*.{css,scss,svelte}'",
|
|
27
|
-
"test": "
|
|
28
|
-
"test:
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"test:coverage": "vitest --coverage",
|
|
29
|
+
"test:watch": "vitest"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@lexical/code": "^0.33.
|
|
32
|
-
"@lexical/dragon": "^0.33.
|
|
33
|
-
"@lexical/history": "^0.33.
|
|
34
|
-
"@lexical/link": "^0.33.
|
|
35
|
-
"@lexical/list": "^0.33.
|
|
36
|
-
"@lexical/markdown": "^0.33.
|
|
37
|
-
"@lexical/rich-text": "^0.33.
|
|
38
|
-
"@lexical/selection": "^0.33.
|
|
39
|
-
"@lexical/table": "^0.33.
|
|
40
|
-
"@lexical/utils": "^0.33.
|
|
32
|
+
"@lexical/code": "^0.33.1",
|
|
33
|
+
"@lexical/dragon": "^0.33.1",
|
|
34
|
+
"@lexical/history": "^0.33.1",
|
|
35
|
+
"@lexical/link": "^0.33.1",
|
|
36
|
+
"@lexical/list": "^0.33.1",
|
|
37
|
+
"@lexical/markdown": "^0.33.1",
|
|
38
|
+
"@lexical/rich-text": "^0.33.1",
|
|
39
|
+
"@lexical/selection": "^0.33.1",
|
|
40
|
+
"@lexical/table": "^0.33.1",
|
|
41
|
+
"@lexical/utils": "^0.33.1",
|
|
41
42
|
"@sveltia/utils": "^0.8.0",
|
|
42
|
-
"lexical": "^0.33.
|
|
43
|
+
"lexical": "^0.33.1",
|
|
43
44
|
"prismjs": "^1.30.0"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"svelte": "^5.0.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@playwright/test": "^1.53.2",
|
|
50
50
|
"@sveltejs/adapter-auto": "^6.0.1",
|
|
51
|
-
"@sveltejs/kit": "^2.
|
|
52
|
-
"@sveltejs/package": "^2.
|
|
53
|
-
"@sveltejs/vite-plugin-svelte": "
|
|
54
|
-
"cspell": "^9.1.
|
|
51
|
+
"@sveltejs/kit": "^2.24.0",
|
|
52
|
+
"@sveltejs/package": "^2.4.0",
|
|
53
|
+
"@sveltejs/vite-plugin-svelte": "6.1.0",
|
|
54
|
+
"cspell": "^9.1.5",
|
|
55
55
|
"eslint": "^8.57.1",
|
|
56
56
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
57
57
|
"eslint-config-prettier": "^10.1.5",
|
|
58
58
|
"eslint-plugin-import": "^2.32.0",
|
|
59
|
-
"eslint-plugin-jsdoc": "^51.
|
|
59
|
+
"eslint-plugin-jsdoc": "^51.4.0",
|
|
60
60
|
"eslint-plugin-svelte": "^2.46.1",
|
|
61
61
|
"postcss": "^8.5.6",
|
|
62
62
|
"postcss-html": "^1.8.0",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"stylelint": "^16.21.1",
|
|
67
67
|
"stylelint-config-recommended-scss": "^15.0.1",
|
|
68
68
|
"stylelint-scss": "^6.12.1",
|
|
69
|
-
"svelte": "5.
|
|
69
|
+
"svelte": "5.36.2",
|
|
70
70
|
"svelte-check": "^4.2.2",
|
|
71
71
|
"svelte-i18n": "^4.0.1",
|
|
72
72
|
"svelte-preprocess": "^6.0.3",
|
|
73
73
|
"tslib": "^2.8.1",
|
|
74
|
-
"vite": "^7.0.
|
|
74
|
+
"vite": "^7.0.4",
|
|
75
75
|
"vitest": "^3.2.4"
|
|
76
76
|
},
|
|
77
77
|
"exports": {
|