@wcstack/media-query 4.0.4 → 4.1.0
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/README.ja.md +2 -2
- package/README.md +2 -2
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
npm install @wcstack/media-query
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
CDN(バージョン固定): `https://esm.run/@wcstack/media-query@4.0
|
|
37
|
+
CDN(バージョン固定): `https://esm.run/@wcstack/media-query@4.1.0/auto`
|
|
38
38
|
|
|
39
39
|
## クイックスタート
|
|
40
40
|
|
|
41
41
|
### 1. テーマのダークモード既定値
|
|
42
42
|
|
|
43
43
|
```html
|
|
44
|
-
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
45
44
|
<script type="module" src="https://esm.run/@wcstack/media-query/auto"></script>
|
|
45
|
+
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
46
46
|
|
|
47
47
|
<wcs-state>
|
|
48
48
|
<script type="module">
|
package/README.md
CHANGED
|
@@ -34,15 +34,15 @@ A media query that only changes *styling* belongs in a stylesheet. This node is
|
|
|
34
34
|
npm install @wcstack/media-query
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
CDN (pinned): `https://esm.run/@wcstack/media-query@4.0
|
|
37
|
+
CDN (pinned): `https://esm.run/@wcstack/media-query@4.1.0/auto`
|
|
38
38
|
|
|
39
39
|
## Quick Start
|
|
40
40
|
|
|
41
41
|
### 1. Dark-mode default for a theme
|
|
42
42
|
|
|
43
43
|
```html
|
|
44
|
-
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
45
44
|
<script type="module" src="https://esm.run/@wcstack/media-query/auto"></script>
|
|
45
|
+
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
46
46
|
|
|
47
47
|
<wcs-state>
|
|
48
48
|
<script type="module">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wcstack/media-query",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Declarative matchMedia component for Web Components. Framework-agnostic media-query monitor (prefers-color-scheme, prefers-reduced-motion, viewport width) via wc-bindable-protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.esm.js",
|