@wcstack/state 4.0.0-rc.5 → 4.0.0-rc.7
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 +8 -6
- package/README.md +8 -6
- package/dist/auto.min.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/split/auto.js +1 -1
- package/dist/split/chunks/chunk-27N3IPIZ.js +1 -0
- package/dist/split/chunks/chunk-2EGTC36Y.js +1 -0
- package/dist/split/chunks/chunk-7EWPQMA6.js +1 -0
- package/dist/split/chunks/chunk-ALVA5TQM.js +1 -0
- package/dist/split/chunks/chunk-ARPZVNKL.js +1 -0
- package/dist/split/chunks/chunk-JMPQHCIT.js +1 -0
- package/dist/split/chunks/chunk-LTBR3OV5.js +1 -0
- package/dist/split/chunks/{chunk-ACYOJ3NW.js → chunk-SPWZUBQS.js} +1 -1
- package/dist/split/chunks/{chunk-SA2LYPN7.js → chunk-V34ZHCK5.js} +1 -1
- package/dist/split/chunks/{chunk-C3UYMJRT.js → chunk-W5KT4PQ3.js} +1 -1
- package/dist/split/chunks/{chunk-5MLEMVL3.js → chunk-XF6V6DWR.js} +1 -1
- package/dist/split/core.js +1 -1
- package/dist/split/features/devtools.js +1 -1
- package/dist/split/features/diagnostics.js +1 -1
- package/dist/split/features/formats.js +1 -1
- package/dist/split/features/list-keys.js +1 -1
- package/dist/split/features/native-commands.js +1 -1
- package/dist/split/features/recursion.js +1 -1
- package/dist/split/features/scopes.js +1 -1
- package/dist/split/features/ssr.js +1 -1
- package/dist/split/features/temporal.js +1 -1
- package/package.json +1 -1
- package/dist/split/chunks/chunk-5D34CGCF.js +0 -1
- package/dist/split/chunks/chunk-COJU24UI.js +0 -1
- package/dist/split/chunks/chunk-FVHQWDF4.js +0 -1
- package/dist/split/chunks/chunk-FZJY4CF3.js +0 -1
- package/dist/split/chunks/chunk-HSMALJSW.js +0 -1
- package/dist/split/chunks/chunk-L2BZD5DU.js +0 -1
- package/dist/split/chunks/chunk-VY2XLPFM.js +0 -1
package/README.ja.md
CHANGED
|
@@ -191,9 +191,9 @@
|
|
|
191
191
|
<script type="importmap">
|
|
192
192
|
{
|
|
193
193
|
"imports": {
|
|
194
|
-
"@wcstack/state/core": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
195
|
-
"@wcstack/state/features/temporal": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
196
|
-
"@wcstack/state/features/scopes": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
194
|
+
"@wcstack/state/core": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/core.js",
|
|
195
|
+
"@wcstack/state/features/temporal": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/features/temporal.js",
|
|
196
|
+
"@wcstack/state/features/scopes": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/features/scopes.js"
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
</script>
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
ページが名指したアドオンを、同じビルドから読み込みます。
|
|
254
254
|
|
|
255
255
|
```html
|
|
256
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
256
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/auto.js"></script>
|
|
257
257
|
<wcs-state features="scopes diagnostics">
|
|
258
258
|
<script type="module">
|
|
259
259
|
export default {
|
|
@@ -2636,13 +2636,15 @@ chip.payload = null → element.data = null かつ removeAttribute("dat
|
|
|
2636
2636
|
|
|
2637
2637
|
| 値の型 | ミラーされる属性 |
|
|
2638
2638
|
|---|---|
|
|
2639
|
-
| `string` / `number` / `
|
|
2640
|
-
| `
|
|
2639
|
+
| `string` / `number` / `bigint` | `String(value)` |
|
|
2640
|
+
| `true` | 空の属性(`""`) |
|
|
2641
|
+
| `false` / `null` / `undefined` | 属性を削除 |
|
|
2641
2642
|
| `object` / `array` | `JSON.stringify(value)`(循環参照時は `String(value)` にフォールバック) |
|
|
2642
2643
|
|
|
2643
2644
|
補足:
|
|
2644
2645
|
|
|
2645
2646
|
- `attribute` を**持たない** `inputs` エントリはプロパティのみ —— 値はプロパティに書き込まれるが属性には触れない
|
|
2647
|
+
- boolean は、有無で読む HTML の真偽属性として写す(`<wcs-wakelock active>`)。`false` は属性を外す(3.x は `"false"` と書き、そうした要素はそれを真と読んでいた)。属性が `"off"` でない限り on の入力は、この形では写せない: `attribute` を宣言せず、setter に自分で属性を書かせる(`<wcs-audio>` の `limiter` がそう)
|
|
2646
2648
|
- ミラーはベストエフォート: `setAttribute` の失敗は握りつぶされ、プロパティ書き込みをブロックしない
|
|
2647
2649
|
- ネイティブ HTML 要素は `inputs` を完全に無視する —— ミラーは `static wcBindable` を公開するカスタム要素でのみ有効になる
|
|
2648
2650
|
|
package/README.md
CHANGED
|
@@ -192,9 +192,9 @@ leaves features out, it can compose them instead:
|
|
|
192
192
|
<script type="importmap">
|
|
193
193
|
{
|
|
194
194
|
"imports": {
|
|
195
|
-
"@wcstack/state/core": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
196
|
-
"@wcstack/state/features/temporal": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
197
|
-
"@wcstack/state/features/scopes": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
195
|
+
"@wcstack/state/core": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/core.js",
|
|
196
|
+
"@wcstack/state/features/temporal": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/features/temporal.js",
|
|
197
|
+
"@wcstack/state/features/scopes": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/features/scopes.js"
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
</script>
|
|
@@ -254,7 +254,7 @@ receptacle the owning add-on fills on install).
|
|
|
254
254
|
core, and the add-ons the page names from the same build.
|
|
255
255
|
|
|
256
256
|
```html
|
|
257
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.
|
|
257
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@wcstack/state@4.0.0-rc.7/dist/split/auto.js"></script>
|
|
258
258
|
<wcs-state features="scopes diagnostics">
|
|
259
259
|
<script type="module">
|
|
260
260
|
export default {
|
|
@@ -2646,13 +2646,15 @@ Attribute value encoding:
|
|
|
2646
2646
|
|
|
2647
2647
|
| Value type | Mirrored attribute |
|
|
2648
2648
|
|---|---|
|
|
2649
|
-
| `string` / `number` / `
|
|
2650
|
-
| `
|
|
2649
|
+
| `string` / `number` / `bigint` | `String(value)` |
|
|
2650
|
+
| `true` | the attribute, empty (`""`) |
|
|
2651
|
+
| `false` / `null` / `undefined` | attribute removed |
|
|
2651
2652
|
| `object` / `array` | `JSON.stringify(value)` (falls back to `String(value)` on circular references) |
|
|
2652
2653
|
|
|
2653
2654
|
Notes:
|
|
2654
2655
|
|
|
2655
2656
|
- `inputs` entries **without** `attribute` are property-only — the value is written to the property but no attribute is touched
|
|
2657
|
+
- A boolean is an HTML boolean attribute, read by its presence (`<wcs-wakelock active>`): `false` removes it. (3.x wrote `"false"`, which such an element reads as true.) An input that is on unless an attribute says `"off"` cannot be mirrored this way: leave its `attribute` out and let its setter reflect it, as `<wcs-audio>`'s `limiter` does
|
|
2656
2658
|
- Mirror is best-effort: a `setAttribute` failure is swallowed and does not block the property write
|
|
2657
2659
|
- Native HTML elements ignore `inputs` entirely — the mirror only activates for custom elements that expose `static wcBindable`
|
|
2658
2660
|
|