@wcstack/lint 4.33.0 → 4.34.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 +1 -0
- package/README.md +1 -0
- package/dist/cli.cjs +126 -23
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -229,6 +229,7 @@ nothing to check: index.html — no data-wcs binding, <wcs-*> tag or wcstack scr
|
|
|
229
229
|
|
|
230
230
|
- **`wcs/stream-declaration`**(error) — オブジェクトリテラルで書いた `$stream` のエントリに、`fold` があって `initial` が無い(`answer: { args, source, fold: foldAnswer }`)か、`source` が無い。ランタイムは state を取り込むときに拒みます(`$stream entry "answer": fold needs an initial value.`): ページは初期化に失敗し、コンソールのすべてのルートが死んでいました。`initial: undefined` も、ランタイムと同じく初期値です。確かなものだけ: 名前や呼び出しのエントリ・spread か計算されたキーのあるエントリ・後に書いた spread が置き換えうるエントリには言いません。ボリューム(`wcs/volume-declaration` が言う)と `bind-component` の state も見ません。`src=` のファイルの state はそのファイルに報告します。
|
|
231
231
|
- **`wcs/html-sink-input`**(warning) — HTML の書き込み先(`html:`・`innerHTML:`・`outerHTML:`・`srcdoc:`)に、ページのフォームの部品が双方向の `value:` で書き戻すパスを束ねた — `<textarea data-wcs="value: question">` と `<p data-wcs="html: question">`。利用者が打った文字がマークアップとしてページに入ります: `<b>` は太字になり、`<img src=x onerror=…>` は走ります — フィルタが消毒するのでなければ。なので書き込み先のフィルタでは黙りません。テキストとして束ねてください(`textContent:`)。パスは state のパスとして比べます: `for: turns` の行の `.q` は `turns.*.q`。別のパスを通って届く文字(打った質問をメソッドが表示する一覧へ写す — 継ぎ目アプリ自身の形)は辿りません。書き込み先の束縛ごとに 1 回。
|
|
232
|
+
- **`wcs/v5-migration`**(info。4.34 から) — 5.0 で変わるもののうち、マークアップとスクリプトから読めるもの: リテラルのパスに `*` を含む `$postUpdate`(4.x は呼んだ側の行、5.0 はすべての行)、`<wcs-storage key="…">` とその `key:` の束縛(5.0 は `storage-key` / `storageKey:` だけ)、`attr.on*:`(5.0 は文字列で書いたハンドラを拒む)、同じ要素のほかの入力より前に書いた `trigger:`(5.0 は入力を先に当てる)、`$behavior` の `sameValueGuard: false` / `enableDirectionalInitialSync: false`(5.0 で無くなる)。どの文面も、4.x と 5.0 のどちらでも動く書き方と、[5.0 への準備](https://github.com/wcstack/wcstack/blob/main/docs/migration-v5.ja.md) の節を言います。走らせないと分からないもの — 同じ id で取り直した一覧、最初の同期が上書きする保存値、ブラウザが送ったフォーム — は、`@wcstack/state` の `v5-migration` add-on が実行時に `[wcs/v5-migration]` で言います。5.0 が設計で消す罠をすでに名指している規則(`wcs/submit-without-prevent`・`wcs/storage-seed-clobber`・`wcs/storage-init-seed`・`wcs/trigger-seeded-truthy`・`wcs/number-written-as-string`・`wcs/radio-before-value`・`wcs/command-event-argument`・`wcs/handle-bound-as-value`・`wcs/delegated-current-target`・`wcs/base-href-missing`)は、文面で 5.0 がどうするかを言います。
|
|
232
233
|
- **`wcs/signals-dual-entry`**(error)は、ページが走らせるローカルの module を読み、それぞれの URL が何を運ぶかで判断するようになりました: それぞれがリアクティブなコアを持つ `@wcstack/signals` の 2 つの読み込み — 2 つのエントリ(`.` と `./dom`)で、片方がエントリごとに束ねる CDN(`esm.run`・jsDelivr の `…/+esm`・`esm.sh`)から来るか、両方がビルドの違う `dist` のファイル(`.esm.js` と `.esm.min.js` はコアのチャンクが別)。または、どこからでも 2 つの版。呼び出し表示は、ページが読む module で `signal` を `…/@wcstack/signals@4.32.0/+esm` から、残りを `…/dist/dom.esm.min.js` から import していました: 時計を描く effect はその signal を追わず、時計は動きませんでした。1 つのビルドのファイルとして配る 2 つのエントリは 1 つのコアを共有するので通ります。裸の名前は import map を通して読みます(どのエントリも与えない名前はバンドラのもので、通ります)。module の中の所見は、その module のその行に報告します。すべての名前を `@wcstack/signals/dom` から import してください。
|
|
233
234
|
- **ローカルの module が `@wcstack/signals` を読み込むか wcstack の版を固定するページは検査され**、`nothing to check:` には載りません — `wcs/signals-dual-entry` と `wcs/lint-version-behind` が読みます。`wcs/lint-version-behind` は、それらの module の固定も読みます。`/` から始まる module は `--root=<dir>` があるときだけ読みます。
|
|
234
235
|
- **`wcs/event-before-binding`**(warning) — リテラルの `url` を持つ `<wcs-sse>` / `<wcs-ws>`、リテラルの `name` を持つ `<wcs-broadcast>` の `eventToken.message:`(要素の契約が `semantics: "event"` と宣言する出力)。要素はパッケージが定義した時点で接続し、state のファイルが読み込まれてトークンを束ねるより前です: ストリームの最初のイベント — 待ち行列のスナップショット — は誰にも届かず、8 人待ちで 0 人と出ていました。`url` を state から与える(`url: streamUrl`)とページを束ねてから始まります。または出力をプロパティとしても束ねてください(`message: lastEvent`、または spread)。要素の値で state に種を入れます。`manual`・`<template>` の中(挿入と同時に束ねる)・`<wcs-state>` の無いファイルでは言いません。ランタイムの同じ code の警告の静的な対です。
|
package/README.md
CHANGED
|
@@ -229,6 +229,7 @@ Since 4.33, from the counter-assist seam app — an answer console that streams
|
|
|
229
229
|
|
|
230
230
|
- **`wcs/stream-declaration`** (error) — a `$stream` entry written as an object literal with a `fold` and no `initial` (`answer: { args, source, fold: foldAnswer }`), or with no `source`. The runtime refuses the state when it takes it in (`$stream entry "answer": fold needs an initial value.`): the page fails to initialize, and every route of the console was dead. `initial: undefined` is an initial value, as at runtime. Only what is certain: not an entry that is a name or a call, has a spread or a computed key, or may be replaced by a spread written after it; not in a volume (`wcs/volume-declaration` says so) or a `bind-component` state. A `src=` file's state is reported in the file.
|
|
231
231
|
- **`wcs/html-sink-input`** (warning) — an HTML sink (`html:`, `innerHTML:`, `outerHTML:`, `srcdoc:`) bound to the path a form control on the page writes back through a two-way `value:` — `<textarea data-wcs="value: question">` with `<p data-wcs="html: question">`. What the user types goes onto the page as markup: `<b>` turns bold, `<img src=x onerror=…>` runs — unless a filter sanitizes it, so a filter on the sink does not silence it. Bind it as text (`textContent:`). Paths are compared as state paths: `.q` in a `for: turns` row is `turns.*.q`. Text that reaches the sink through another path (a method that copies the question into the list the page shows — the seam app's own shape) is not followed. Once per sink binding.
|
|
232
|
+
- **`wcs/v5-migration`** (info; since 4.34) — what 5.0 changes, as far as the markup and the scripts show it: a `$postUpdate` whose literal path has a `*` (the caller's row in 4.x, every row in 5.0), `<wcs-storage key="…">` and `key:` bound on one (5.0 takes `storage-key` / `storageKey:` only), `attr.on*:` (5.0 refuses a handler written as a string), `trigger:` written before another input of the same element (5.0 applies the inputs first), and `$behavior`'s `sameValueGuard: false` / `enableDirectionalInitialSync: false` (5.0 removes both). Each message gives the form that works on 4.x and on 5.0, and the section of [Preparing for 5.0](https://github.com/wcstack/wcstack/blob/main/docs/migration-v5.md). What only a running page shows — a list fetched again with the same ids, a stored value the first sync writes over, a form the browser sent — is said at run time by `@wcstack/state`'s `v5-migration` add-on, as `[wcs/v5-migration]`. The rules that already name a trap 5.0 designs out (`wcs/submit-without-prevent`, `wcs/storage-seed-clobber`, `wcs/storage-init-seed`, `wcs/trigger-seeded-truthy`, `wcs/number-written-as-string`, `wcs/radio-before-value`, `wcs/command-event-argument`, `wcs/handle-bound-as-value`, `wcs/delegated-current-target`, `wcs/base-href-missing`) say in their message what 5.0 does.
|
|
232
233
|
- **`wcs/signals-dual-entry`** (error) now reads the local modules a page runs, and judges by what each URL carries: two loads of `@wcstack/signals` that each have their own reactive core — the two entries (`.` and `./dom`) where one comes from a CDN that bundles each entry (`esm.run`, jsDelivr's `…/+esm`, `esm.sh`) or both are `dist` files of two builds (`.esm.js` and `.esm.min.js` have separate core chunks), or two versions from any source. The display imported `signal` from `…/@wcstack/signals@4.32.0/+esm` and the rest from `…/dist/dom.esm.min.js` in a module its page loads: the effect that drew the clock never saw its signal, and the clock never moved. Two entries served as files of one build share one core and pass; a bare name is read through the import map (one no entry gives is a bundler's, and passes). A finding in a module is reported in the module, at its line. Import every name from `@wcstack/signals/dom`.
|
|
233
234
|
- **A page whose local modules load `@wcstack/signals` or pin a wcstack version is checked**, not listed under `nothing to check:` — `wcs/signals-dual-entry` and `wcs/lint-version-behind` read it. `wcs/lint-version-behind` also reads the pins in those modules. A module from `/` is read only with `--root=<dir>`.
|
|
234
235
|
- **`wcs/event-before-binding`** (warning) — `eventToken.message:` on a `<wcs-sse>` / `<wcs-ws>` with a literal `url`, or a `<wcs-broadcast>` with a literal `name` (an output the element's contract declares `semantics: "event"`). The element connects as soon as its package defines it, before the state's file has loaded and bound the token: the stream's first event — the queue's snapshot — was dispatched to nobody, and the page showed 0 waiting with 8 waiting. Give it the `url` from the state (`url: streamUrl`) so it starts once the page is bound, or bind the output as a property too (`message: lastEvent`, or a spread), which seeds the state from the element. Not with `manual`, nor inside a `<template>` (bound as it is inserted), nor in a file without a `<wcs-state>`. The static twin of the runtime warning of the same code.
|
package/dist/cli.cjs
CHANGED
|
@@ -638,7 +638,15 @@ var WcsDiagnosticCode = {
|
|
|
638
638
|
DccAttribute: "wcs/dcc-attribute",
|
|
639
639
|
// `<wcs-state mount="...">` の値が runtime の validateVolumeMountPath で raise する形
|
|
640
640
|
// (空・空セグメント・ワイルドカード・予約文字 $ # @)。runtime と同条件・同文言(v2)。
|
|
641
|
-
MountPathInvalid: "wcs/mount-path-invalid"
|
|
641
|
+
MountPathInvalid: "wcs/mount-path-invalid",
|
|
642
|
+
// --- 5.0 の予告(4.x の最後の minor。docs/v5-direction-2026-11.md §4.1、docs/migration-v5.md) ---
|
|
643
|
+
// 5.0 で既定が変わるものを、マークアップとスクリプトから読める範囲で知らせる(service/v5MigrationValidator.ts):
|
|
644
|
+
// リテラルの `*` を含む `$postUpdate`(4.x は呼んだ側の行、5.0 はすべての行)、`<wcs-storage>` の `key`(5.0 は
|
|
645
|
+
// `storage-key` だけ)、`attr.on*:`(5.0 は拒む)、要素のほかの入力より前に書いた `trigger:`(5.0 は入力を先に当てる)、
|
|
646
|
+
// `$behavior` の `sameValueGuard: false` / `enableDirectionalInitialSync: false`(5.0 で無くなる)。走らせないと
|
|
647
|
+
// 分からないもの(同じ id の取り直し、保存値の上書き、防がれなかった送信)は、@wcstack/state の v5-migration の後付けが
|
|
648
|
+
// 同じ code で実行時に言う。3.5 の lint が 4.0 を `wcs/v4-migration` で予告したのと同じ形。info。
|
|
649
|
+
V5Migration: "wcs/v5-migration"
|
|
642
650
|
};
|
|
643
651
|
function sortDiagnostics(diagnostics) {
|
|
644
652
|
const severityRank = { error: 0, warning: 1, info: 2 };
|
|
@@ -2143,7 +2151,7 @@ var config = {
|
|
|
2143
2151
|
locale: typeof document !== "undefined" ? document.documentElement?.lang || "en" : "en",
|
|
2144
2152
|
enableContractAnalyzer: false
|
|
2145
2153
|
};
|
|
2146
|
-
var FEATURE_NAMES = ["formats", "diagnostics", "temporal", "list-keys", "scopes", "recursion", "ssr", "devtools", "native-commands", "release", "forms"];
|
|
2154
|
+
var FEATURE_NAMES = ["formats", "diagnostics", "temporal", "list-keys", "scopes", "recursion", "ssr", "devtools", "native-commands", "release", "forms", "v5-migration"];
|
|
2147
2155
|
var NATIVE_COMMANDS = {
|
|
2148
2156
|
"*": ["focus", "blur", "click", "scrollIntoView", "showPopover", "hidePopover", "togglePopover"],
|
|
2149
2157
|
"dialog": ["show", "showModal", "close", "requestClose"],
|
|
@@ -2710,7 +2718,7 @@ function getWcsManifest() {
|
|
|
2710
2718
|
}
|
|
2711
2719
|
|
|
2712
2720
|
// ../state/package.json
|
|
2713
|
-
var version = "4.
|
|
2721
|
+
var version = "4.34.0";
|
|
2714
2722
|
|
|
2715
2723
|
// src/service/wcsManifest.ts
|
|
2716
2724
|
var ENGINE_VERSION = version;
|
|
@@ -13563,7 +13571,7 @@ var ja = {
|
|
|
13563
13571
|
wildcardOtherList: (p, over, loop) => `"${p}" \u306E "*" \u306F "${over}" \u306E\u884C\u3092\u6307\u3057\u307E\u3059\u304C\u3001\u305D\u306E\u6BB5\u3067\u56F2\u3080 for \u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u304C\u63CF\u304F\u306E\u306F "${loop}" \u3067\u3059\uFF084.0 \u306F\u30D0\u30A4\u30F3\u30C9\u78BA\u7ACB\u6642\u306B throw \u3057\u307E\u3059\uFF09\u3002\u675F\u7E1B\u306E "*" \u306F\u56F2\u3080\u30EB\u30FC\u30D7\u306E\u884C\u3067\u3059 \u2014 \u5225\u306E\u30EA\u30B9\u30C8\u306E\u884C\u306F getter \u306E\u4E2D\u3067 $resolve(path, indexes) \u3067\u8AAD\u3093\u3067\u304F\u3060\u3055\u3044`,
|
|
13564
13572
|
outerInTemplate: (prop) => `"${prop}:" \u306F\u8981\u7D20\u305D\u306E\u3082\u306E\u3092\u7F6E\u304D\u63DB\u3048\u308B\u306E\u3067\u3001for / if \u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4E2D\u3067\u306F\u4F7F\u3048\u307E\u305B\u3093\uFF08\u884C\u3084\u679D\u306F\u30CE\u30FC\u30C9\u3092\u4F4D\u7F6E\u3067\u6301\u3064\u305F\u3081\u30024.0 \u306F\u521D\u671F\u5316\u3067 throw \u3057\u307E\u3059\uFF09\u3002\u5305\u3080\u8981\u7D20\u306B innerHTML: \u3092\u675F\u7E1B\u3057\u3066\u304F\u3060\u3055\u3044`,
|
|
13565
13573
|
directNotEvent: (prop) => `\u4FEE\u98FE\u5B50 #direct \u306F\u30A4\u30D9\u30F3\u30C8\u675F\u7E1B\uFF08on*:\uFF09\u3060\u3051\u306B\u52B9\u304D\u307E\u3059\u3002"${prop}" \u3067\u306F\u7121\u8996\u3055\u308C\u307E\u3059`,
|
|
13566
|
-
delegatedCurrentTarget: (suggested, eventName, handler) => `"${eventName}" \u30A4\u30D9\u30F3\u30C8\u306E\u675F\u7E1B\u306F root \u3078\u59D4\u8B72\u3055\u308C\u308B\u306E\u3067\u3001"${handler}" \u306E\u4E2D\u306E event.currentTarget \u306F\u3053\u306E\u8981\u7D20\u3067\u306F\u306A\u304F root \u306B\u306A\u308A\u307E\u3059\u3002\u8981\u7D20\u306B\u30EA\u30B9\u30CA\u30FC\u3092\u4ED8\u3051\u308B\u306B\u306F "${suggested}:" \u3068\u66F8\u304F\u304B\u3001event.target.closest(...) \u3067\u8981\u7D20\u3092\u63A2\u3057\u3066\u304F\u3060\u3055\u3044`,
|
|
13574
|
+
delegatedCurrentTarget: (suggested, eventName, handler) => `"${eventName}" \u30A4\u30D9\u30F3\u30C8\u306E\u675F\u7E1B\u306F root \u3078\u59D4\u8B72\u3055\u308C\u308B\u306E\u3067\u3001"${handler}" \u306E\u4E2D\u306E event.currentTarget \u306F\u3053\u306E\u8981\u7D20\u3067\u306F\u306A\u304F root \u306B\u306A\u308A\u307E\u3059\u3002\u8981\u7D20\u306B\u30EA\u30B9\u30CA\u30FC\u3092\u4ED8\u3051\u308B\u306B\u306F "${suggested}:" \u3068\u66F8\u304F\u304B\u3001event.target.closest(...) \u3067\u8981\u7D20\u3092\u63A2\u3057\u3066\u304F\u3060\u3055\u3044\u30025.0 \u306F\u65E2\u5B9A\u3067\u30EA\u30B9\u30CA\u30FC\u3092\u8981\u7D20\u306B\u4ED8\u3051\u307E\u3059\uFF08docs/migration-v5.ja.md#event-delegation\uFF09`,
|
|
13567
13575
|
getterCycle: (cycle) => `\u30D1\u30B9 getter \u304C\u5FAA\u74B0\u53C2\u7167\u3057\u3066\u3044\u307E\u3059: ${cycle}`,
|
|
13568
13576
|
updatedCallbackUnbound: (p) => `$renderedCallback \u306F binding \u99C6\u52D5\u3067\u3059\u3002"${p}" \u306F\u3053\u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306E\u3069\u306E\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u306B\u3082\u73FE\u308C\u306A\u3044\u305F\u3081\u3001\u3053\u306E\u5206\u5C90\u306F\u4E00\u5EA6\u3082\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002\u63CF\u753B\u306B\u4F9D\u5B58\u305B\u305A\u53CD\u5FDC\u3059\u308B\u306A\u3089 $watch \u3092\u4F7F\u3063\u3066\u304F\u3060\u3055\u3044`,
|
|
13569
13577
|
onHandlerThis: (name) => `$on \u306E\u30CF\u30F3\u30C9\u30E9 "${name}" \u304C this \u3092\u4F7F\u3063\u3066\u3044\u307E\u3059\u3002$on \u306E\u30CF\u30F3\u30C9\u30E9\u306F state \u3092\u7B2C 1 \u5F15\u6570\u3067\u53D7\u3051\u53D6\u308A\uFF08\`${name}(state, event) { state.x = \u2026 }\`\uFF09\u3001this \u306F undefined \u306A\u306E\u3067\u3001this.\u2026 \u306F\u547C\u3070\u308C\u305F\u3068\u304D\u306B\u4F8B\u5916\u306B\u306A\u308A\u307E\u3059\u3002$watch \u3084\u30E1\u30BD\u30C3\u30C9\u3068\u9055\u3046\u70B9\u306B\u6CE8\u610F`,
|
|
@@ -13611,7 +13619,7 @@ var ja = {
|
|
|
13611
13619
|
pathDynamicUnknownObjectSpread: (path, n, sp, from) => `${sp}${from === void 0 ? "" : `\uFF08"${from}" \u304B\u3089 import\uFF09`}\u304C "${path}" \u306B\u6301\u3061\u8FBC\u3080\u30AD\u30FC\u306F\u9759\u7684\u306B\u8AAD\u3081\u306A\u3044\u306E\u3067\u3001\u305D\u306E\u4E0B\u306B\u675F\u306D\u305F\u30D1\u30B9\uFF08${n} \u4EF6\uFF09\u306F\u691C\u67FB\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u30EA\u30C6\u30E9\u30EB\u3092\u675F\u7E1B\u3059\u308B\u30E2\u30B8\u30E5\u30FC\u30EB\u306E const \u3092 spread \u3059\u308B\u304B\u3001\u30AD\u30FC\u306B\u5F62\u3092\u8868\u3059 JSDoc \u306E @type \u3092\u4ED8\u3051\u308B\u304B\u3001wcstack.manifest.json \u306E stateSchema \u306B\u5BA3\u8A00\u3059\u308B\u3068\u691C\u67FB\u3055\u308C\u307E\u3059`,
|
|
13612
13620
|
pathReadonlyTwoWay: (p, prop) => `"${p}" \u306F setter \u306E\u7121\u3044 getter \u3067\u3059\u304C\u3001${prop}: \u306F\u8AAD\u8005\u306E\u5165\u529B\u3092\u66F8\u304D\u623B\u3059\u306E\u3067\u3001\u5165\u529B\u306E\u305F\u3073\u306B\u66F8\u304D\u8FBC\u307F\u304C\u5931\u6557\u3057\u307E\u3059\uFF08"${p}" is a getter without a setter\uFF09\u3002setter \u3092\u8DB3\u3059\uFF08set "${p}"(v) { \u2026 }\uFF09\u304B\u3001#ro \u3067\u4E00\u65B9\u5411\u306B\u3057\u3066\u304F\u3060\u3055\u3044\uFF08${prop}#ro: ${p}\uFF09`,
|
|
13613
13621
|
pathReadonlyOutput: (p, tag, member, atInit, twoWay, spread) => `"${p}" \u306F setter \u306E\u7121\u3044 getter \u3067\u3059\u304C\u3001${spread === void 0 ? "" : `"${spread}" \u304C\u675F\u306D\u308B `}"${member}" \u306F <${tag}> \u304C\u66F8\u304F\u30E1\u30F3\u30D0\u30FC\uFF08${twoWay ? "\u5165\u529B\u3067\u3082\u3042\u308B\u51FA\u529B" : "\u51FA\u529B"}\uFF09\u3067\u3059\u3002\u8981\u7D20\u306F\u305D\u306E\u5024\u3092 "${p}" \u306B\u66F8\u304F\u306E\u3067\u3001${atInit ? "\u675F\u306D\u305F\u6642\u70B9\u306E\u66F8\u304D\u8FBC\u307F\u304C\u5931\u6557\u3057\u3001state \u306E\u521D\u671F\u5316\u304C\u5931\u6557\u3057\u307E\u3059" : "\u8981\u7D20\u304C\u5024\u3092\u77E5\u3089\u305B\u308B\u305F\u3073\u306B\u66F8\u304D\u8FBC\u307F\u304C\u5931\u6557\u3057\u307E\u3059"}\uFF08"${p}" is a getter without a setter\uFF09\u3002${spread !== void 0 ? `setter \u3092\u8DB3\u3059\uFF08set "${p}"(v) { \u2026 }\uFF09\u304B\u3001spread \u306E\u5F8C\u308D\u3067 "${member}" \u3092\u30C7\u30FC\u30BF\u306E\u30D1\u30B9\u306B\u675F\u306D\u3066\u304F\u3060\u3055\u3044\uFF08${spread}; ${member}: <\u30C7\u30FC\u30BF\u306E\u30AD\u30FC>\uFF09` : !twoWay ? `\u30C7\u30FC\u30BF\u306E\u30D1\u30B9\u3092\u675F\u306D\u3066\u305D\u308C\u3092 getter \u304B\u3089\u8AAD\u3080\uFF08${member}: <\u30C7\u30FC\u30BF\u306E\u30AD\u30FC>\uFF09\u304B\u3001setter \u3092\u8DB3\u3057\u3066\u304F\u3060\u3055\u3044\uFF08set "${p}"(v) { \u2026 }\uFF09` : atInit ? `setter \u3092\u8DB3\u3059\uFF08set "${p}"(v) { \u2026 }\uFF09\u304B\u3001\u6700\u521D\u306E\u5024\u3092 state \u304B\u3089\u53D6\u3063\u3066\u304F\u3060\u3055\u3044\uFF08#init=element \u3092\u5916\u3059\uFF09` : `setter \u3092\u8DB3\u3059\uFF08set "${p}"(v) { \u2026 }\uFF09\u304B\u3001#ro \u3067\u4E00\u65B9\u5411\u306B\u3057\u3066\u304F\u3060\u3055\u3044\uFF08${member}#ro: ${p} \u2014 state \u304B\u3089\u8981\u7D20\u3078\u306F\u4ECA\u307E\u3067\u3069\u304A\u308A\u66F8\u304B\u308C\u307E\u3059\uFF09`}`,
|
|
13614
|
-
submitWithoutPrevent: (h) => `onsubmit \u306B #prevent \u304C\u7121\u304F\u3001"${h}" \u3082 preventDefault \u3092\u547C\u3073\u307E\u305B\u3093\u3002\u30D6\u30E9\u30A6\u30B6\u306F\u30D5\u30A9\u30FC\u30E0\u3082\u9001\u308B\u306E\u3067\u3001\u30DA\u30FC\u30B8\u304C\u8AAD\u307F\u76F4\u3055\u308C\u308B\u304B\u3001router \u304C\u3042\u308C\u3070 GET \u304C\u6B04\u306E\u5024\uFF08\u30D1\u30B9\u30EF\u30FC\u30C9\u3082\uFF09\u3092 URL \u3068\u5C65\u6B74\u306B\u8F09\u305B\u307E\u3059\u3002onsubmit#prevent: ${h} \u3068\u66F8\u304F\u304B\u3001\u30CF\u30F3\u30C9\u30E9\u3067 event.preventDefault() \u3092\u547C\u3093\u3067\u304F\u3060\u3055\u3044`,
|
|
13622
|
+
submitWithoutPrevent: (h) => `onsubmit \u306B #prevent \u304C\u7121\u304F\u3001"${h}" \u3082 preventDefault \u3092\u547C\u3073\u307E\u305B\u3093\u3002\u30D6\u30E9\u30A6\u30B6\u306F\u30D5\u30A9\u30FC\u30E0\u3082\u9001\u308B\u306E\u3067\u3001\u30DA\u30FC\u30B8\u304C\u8AAD\u307F\u76F4\u3055\u308C\u308B\u304B\u3001router \u304C\u3042\u308C\u3070 GET \u304C\u6B04\u306E\u5024\uFF08\u30D1\u30B9\u30EF\u30FC\u30C9\u3082\uFF09\u3092 URL \u3068\u5C65\u6B74\u306B\u8F09\u305B\u307E\u3059\u3002onsubmit#prevent: ${h} \u3068\u66F8\u304F\u304B\u3001\u30CF\u30F3\u30C9\u30E9\u3067 event.preventDefault() \u3092\u547C\u3093\u3067\u304F\u3060\u3055\u3044\u30025.0 \u306F\u3001action \u3082 method \u3082\u7121\u3044\u30D5\u30A9\u30FC\u30E0\u306E\u9001\u4FE1\u3092\u65E2\u5B9A\u3067\u6B62\u3081\u307E\u3059\uFF08docs/migration-v5.ja.md#submit-default\uFF09`,
|
|
13615
13623
|
guardReadsAtModuleTop: (r) => `\u30AC\u30FC\u30C9\u306E\u30E2\u30B8\u30E5\u30FC\u30EB\u304C\u3001export \u3059\u308B\u95A2\u6570\u306E\u5916\uFF08\u30C8\u30C3\u30D7\u30EC\u30D9\u30EB\uFF09\u3067 ${r} \u3092\u8AAD\u3093\u3067\u3044\u307E\u3059\u3002\u30E2\u30B8\u30E5\u30FC\u30EB\u306F\u30DA\u30FC\u30B8\u306E\u8AAD\u307F\u8FBC\u307F\u3067 1 \u56DE\u3060\u3051\u8A55\u4FA1\u3055\u308C\u308B\u306E\u3067\u3001\u30AC\u30FC\u30C9\u306F\u305D\u306E\u3068\u304D\u8AAD\u3093\u3060\u5024\u3092\u6301\u3061\u7D9A\u3051\u3001\u9077\u79FB\u306E\u305F\u3073\u306B\u305D\u306E\u5024\u3067\u6C7A\u3081\u307E\u3059\uFF08\u30ED\u30B0\u30A4\u30F3\u3057\u305F\u5F8C\u3082\u30BB\u30C3\u30B7\u30E7\u30F3\u304C\u7121\u3044\u307E\u307E\uFF09\u3002\u9077\u79FB\u306E\u305F\u3073\u306B\u8D70\u308B\u3001export \u3057\u305F\u95A2\u6570\u306E\u4E2D\u3067\u8AAD\u3093\u3067\u304F\u3060\u3055\u3044`,
|
|
13616
13624
|
stateReadsAtModuleTop: (r) => `state \u306E\u30E2\u30B8\u30E5\u30FC\u30EB\u304C\u30C8\u30C3\u30D7\u30EC\u30D9\u30EB\u3067 ${r} \u3092\u8AAD\u3093\u3067\u3044\u307E\u3059\u3002\u30E2\u30B8\u30E5\u30FC\u30EB\u306F <wcs-state> \u3054\u3068\u306B 1 \u56DE\u3060\u3051\u8A55\u4FA1\u3055\u308C\u308B\u306E\u3067\u3001state \u306F\u30DA\u30FC\u30B8\u306E\u8AAD\u307F\u8FBC\u307F\u306E\u6642\u70B9\u306E\u5024\u3092\u6301\u3061\u7D9A\u3051\u307E\u3059\uFF08\u5F8C\u3067\u5909\u308F\u308B\u30C8\u30FC\u30AF\u30F3\u3084\u30BB\u30C3\u30B7\u30E7\u30F3\u306F\u898B\u3048\u307E\u305B\u3093\uFF09\u3002\u5024\u3092 state \u306B\u7F6E\u304F\uFF08<wcs-storage> \u306B\u675F\u306D\u308B\uFF09\u304B\u3001\u4F7F\u3046\u30E1\u30BD\u30C3\u30C9\u306E\u4E2D\u3067\u8AAD\u3093\u3067\u304F\u3060\u3055\u3044`,
|
|
13617
13625
|
eventTokenUnbound: (t, handler) => `\u30A4\u30D9\u30F3\u30C8\u30C8\u30FC\u30AF\u30F3 "${t}" \u3092 $eventTokens \u306B\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u3053\u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u306B\u305D\u308C\u3092\u51FA\u3059 eventToken.<\u30E1\u30F3\u30D0\u30FC>: ${t} \u306E\u675F\u7E1B\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u3069\u306E\u8981\u7D20\u3082\u767A\u706B\u3055\u305B\u306A\u3044\u306E\u3067\u3001${handler ? "$on \u306E\u30CF\u30F3\u30C9\u30E9\u306F\u4E00\u5EA6\u3082\u8D70\u308A\u307E\u305B\u3093" : "\u3053\u306E\u30C8\u30FC\u30AF\u30F3\u306F\u4E00\u5EA6\u3082\u767A\u706B\u3057\u307E\u305B\u3093"}\u3002\u767A\u706B\u3055\u305B\u308B\u8981\u7D20\u306B\u675F\u306D\u308B\uFF08eventToken.<\u30E1\u30F3\u30D0\u30FC>: ${t} \u2014 <\u30E1\u30F3\u30D0\u30FC> \u306F\u305D\u306E\u8981\u7D20\u306E wcBindable \u306E\u30D7\u30ED\u30D1\u30C6\u30A3\uFF09\u304B\u3001$eventTokens \u304B\u3089\u5916\u3057\u3066\u304F\u3060\u3055\u3044`,
|
|
@@ -13623,7 +13631,7 @@ var ja = {
|
|
|
13623
13631
|
typeExpectation: (label, expected, resultType) => `"${label}" \u306B\u306F${JA_EXPECTED_LABEL[expected]}\u304C\u5FC5\u8981\u3067\u3059\uFF08\u73FE\u5728\u306E\u578B: ${resultType}\uFF09`,
|
|
13624
13632
|
attrBooleanPresence: (a, p, rhs) => `"attr.${a}" \u306B boolean \u3092\u675F\u306D\u3066\u3044\u307E\u3059\u3002attr.* \u306F String(value) \u3092\u66F8\u304F\u306E\u3067\u3001false \u306E\u3068\u304D ${a}="false" \u306B\u306A\u308A\u307E\u3059\u3002\u8AD6\u7406\u5C5E\u6027\u306F\u5024\u306B\u95A2\u4FC2\u306A\u304F\u3001\u5728\u308B\u3060\u3051\u3067\u52B9\u304D\u307E\u3059: ${a}="false" \u3067\u3082 ${a} \u306E\u307E\u307E\u3067\u3059\uFF08\u5C5E\u6027\u3092\u5916\u3059\u306E\u306F null / undefined \u3060\u3051\uFF09\u3002\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044: ${p}: ${rhs}`,
|
|
13625
13633
|
attrBooleanText: (a, rhs) => `"attr.${a}" \u306B boolean \u3092\u675F\u306D\u3066\u3044\u307E\u3059\u3002attr.* \u306F String(value) \u3092\u66F8\u304F\u306E\u3067\u3001\u5C5E\u6027\u306F "true" \u304B "false" \u306B\u306A\u308A\u3001\u5916\u308C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\uFF08\u5916\u3059\u306E\u306F null / undefined \u3060\u3051\uFF09\u3002\u5C5E\u6027\u306E\u6709\u7121\u3092\u898B\u308B\u5074\uFF08CSS \u306E [${a}]\u30FBhasAttribute()\uFF09\u306B\u306F\u3001\u3069\u3061\u3089\u3067\u3082\u5728\u308A\u307E\u3059\u3002false \u306E\u9593\u306F\u5916\u3059\u306A\u3089 attr.${a}: ${rhs}|defaults(null)\u3001\u6587\u5B57\u306E "true" / "false" \u304C\u610F\u56F3\u306A\u3089 attr.${a}: ${rhs}|string \u3068\u66F8\u3044\u3066\u304F\u3060\u3055\u3044`,
|
|
13626
|
-
radioBeforeValue: (binding, value, checkbox, fix) => `\u300C${binding}:\u300D\u304C\u3001\u3053\u306E${checkbox ? "\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9" : "\u30E9\u30B8\u30AA"}\u306B\u5024\u3092\u4E0E\u3048\u308B\u300C${value}:\u300D\u3088\u308A\u524D\u306B\u66F8\u304B\u308C\u3066\u3044\u307E\u3059\u3002\u675F\u7E1B\u306F\u66F8\u3044\u305F\u9806\u306B\u5F53\u305F\u308B\u306E\u3067\u3001\u5024\u304C\u307E\u3060\u30D6\u30E9\u30A6\u30B6\u306E\u65E2\u5B9A\u306E "on" \u306E\u3046\u3061\u306B\u6BD4\u3079\u3089\u308C\u3001\u6700\u521D\u306E\u63CF\u753B\u3067\u306F\u4F55\u3082\u30C1\u30A7\u30C3\u30AF\u3055\u308C\u307E\u305B\u3093\uFF08\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\u3002\u5F8C\u304B\u3089 state \u306B\u66F8\u304F\u3068\u6B63\u3057\u3044\u3082\u306E\u304C\u30C1\u30A7\u30C3\u30AF\u3055\u308C\u307E\u3059\uFF09\u3002\u5024\u3092\u5148\u306B\u66F8\u3044\u3066\u304F\u3060\u3055\u3044: ${fix}`,
|
|
13634
|
+
radioBeforeValue: (binding, value, checkbox, fix) => `\u300C${binding}:\u300D\u304C\u3001\u3053\u306E${checkbox ? "\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9" : "\u30E9\u30B8\u30AA"}\u306B\u5024\u3092\u4E0E\u3048\u308B\u300C${value}:\u300D\u3088\u308A\u524D\u306B\u66F8\u304B\u308C\u3066\u3044\u307E\u3059\u3002\u675F\u7E1B\u306F\u66F8\u3044\u305F\u9806\u306B\u5F53\u305F\u308B\u306E\u3067\u3001\u5024\u304C\u307E\u3060\u30D6\u30E9\u30A6\u30B6\u306E\u65E2\u5B9A\u306E "on" \u306E\u3046\u3061\u306B\u6BD4\u3079\u3089\u308C\u3001\u6700\u521D\u306E\u63CF\u753B\u3067\u306F\u4F55\u3082\u30C1\u30A7\u30C3\u30AF\u3055\u308C\u307E\u305B\u3093\uFF08\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\u3002\u5F8C\u304B\u3089 state \u306B\u66F8\u304F\u3068\u6B63\u3057\u3044\u3082\u306E\u304C\u30C1\u30A7\u30C3\u30AF\u3055\u308C\u307E\u3059\uFF09\u3002\u5024\u3092\u5148\u306B\u66F8\u3044\u3066\u304F\u3060\u3055\u3044: ${fix}\u30025.0 \u306F\u8981\u7D20\u306E\u5165\u529B\u3092 radio: / checkbox: \u3088\u308A\u5148\u306B\u5F53\u3066\u307E\u3059\uFF08docs/migration-v5.ja.md#inputs-before-commands\uFF09`,
|
|
13627
13635
|
bindingExpression: (expression, fix) => `\u675F\u7E1B\u306E\u53F3\u8FBA\u306F\u30D1\u30B9\u3068\u30D5\u30A3\u30EB\u30BF\u3067\u3001\u5F0F\u3067\u306F\u3042\u308A\u307E\u305B\u3093: "${expression}" \u306F\u8A55\u4FA1\u3055\u308C\u305A\u3001\u305D\u306E\u540D\u524D\u306E\u30D1\u30B9\u3068\u3057\u3066\u5F15\u304B\u308C\u307E\u3059\u3002${fix !== null ? `${fix} \u3068\u66F8\u3044\u3066\u304F\u3060\u3055\u3044` : "\u305D\u306E\u5024\u3092\u8A08\u7B97\u3059\u308B getter \u3092 state \u306B\u66F8\u304D\u3001getter \u306E\u540D\u524D\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044"}`,
|
|
13628
13636
|
handlerExpression: (property, expression, method) => `\u30A4\u30D9\u30F3\u30C8\u306E\u675F\u7E1B\u306E\u53F3\u8FBA\u306F\u30E1\u30BD\u30C3\u30C9\u306E\u540D\u524D\u3067\u3001\u547C\u3073\u51FA\u3057\u3084\u95A2\u6570\u3067\u306F\u3042\u308A\u307E\u305B\u3093: "${expression}" \u306F\u8A55\u4FA1\u3055\u308C\u307E\u305B\u3093\u3002${method !== null ? `"${property}: ${method}" \u3068\u66F8\u3044\u3066\u304F\u3060\u3055\u3044` : "\u30E1\u30BD\u30C3\u30C9\u306E\u540D\u524D\u3092\u66F8\u3044\u3066\u304F\u3060\u3055\u3044"}\u3002\u30CF\u30F3\u30C9\u30E9\u306F (event, ...\u30EB\u30FC\u30D7\u306E\u6DFB\u5B57) \u3067\u547C\u3070\u308C\u308B\u306E\u3067\u3001\u884C\u306E\u5024\u306F\u30E1\u30BD\u30C3\u30C9\u306E\u4E2D\u3067\u6DFB\u5B57\u304B\u3089\u8AAD\u3093\u3067\u304F\u3060\u3055\u3044`,
|
|
13629
13637
|
attributeMustache: (name) => `{{ }} \u306F\u30C6\u30AD\u30B9\u30C8\u306E\u4E2D\u3067\u3057\u304B\u8AAD\u307E\u308C\u307E\u305B\u3093\u3002\u5C5E\u6027 "${name}" \u306E\u4E2D\u3067\u306F\u66F8\u3044\u305F\u307E\u307E\u6B8B\u308A\u307E\u3059\u3002\u5C5E\u6027\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044\uFF08attr.${name}: <\u30D1\u30B9>\u3002\u6587\u5B57\u5217\u3092\u7D44\u307F\u7ACB\u3066\u308B getter \u3092\u66F8\u3044\u3066\uFF09\u3002\u30DA\u30FC\u30B8\u3092\u8FD4\u3059\u524D\u306B\u30B5\u30FC\u30D0\u30FC\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u304C\u57CB\u3081\u308B\u306E\u306A\u3089\u3001\u3053\u306E\u307E\u307E\u3067\u6B63\u3057\u3044\u66F8\u304D\u65B9\u3067\u3059`,
|
|
@@ -13635,10 +13643,16 @@ var ja = {
|
|
|
13635
13643
|
keyBinding: () => `"key:" \u306F "key" \u3068\u3044\u3046\u540D\u524D\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u66F8\u304F\u3060\u3051\u3067\u3001\u307B\u304B\u306B\u4F55\u3082\u3057\u307E\u305B\u3093\u3002key \u306F\u8981\u308A\u307E\u305B\u3093 \u2014 \u884C\u306F\u884C\u306E\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3067\u7A81\u304D\u5408\u308F\u3055\u308C\u3001\u53D6\u308A\u76F4\u3057\u305F\u30C7\u30FC\u30BF\u3067\u884C\u3092\u4FDD\u3064\u306E\u306F $listKeys \u3067\u3059`,
|
|
13636
13644
|
streamSourceMissing: (name) => `$stream \u306E\u30A8\u30F3\u30C8\u30EA "${name}" \u306B source\uFF08\u95A2\u6570\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u30E9\u30F3\u30BF\u30A4\u30E0\u306F state \u3092\u53D6\u308A\u8FBC\u3080\u3068\u304D\u306B\u62D2\u3080\uFF08$stream entry "${name}" needs a source function.\uFF09\u306E\u3067\u3001\u30DA\u30FC\u30B8\u306F\u521D\u671F\u5316\u306B\u5931\u6557\u3057\u3001\u4F55\u3082\u675F\u306D\u3089\u308C\u307E\u305B\u3093\u3002source: (args, signal) => \u2026 \u3092\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\uFF08async iterable \u304B ReadableStream \u3092\u8FD4\u3059\uFF09`,
|
|
13637
13645
|
streamFoldWithoutInitial: (name) => `$stream \u306E\u30A8\u30F3\u30C8\u30EA "${name}" \u306F fold \u304C\u3042\u3063\u3066 initial \u304C\u3042\u308A\u307E\u305B\u3093\u3002\u30E9\u30F3\u30BF\u30A4\u30E0\u306F state \u3092\u53D6\u308A\u8FBC\u3080\u3068\u304D\u306B\u62D2\u3080\uFF08$stream entry "${name}": fold needs an initial value.\uFF09\u306E\u3067\u3001\u30DA\u30FC\u30B8\u306F\u521D\u671F\u5316\u306B\u5931\u6557\u3057\u3001\u4F55\u3082\u675F\u306D\u3089\u308C\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u30C1\u30E3\u30F3\u30AF\u3092\u7573\u307F\u8FBC\u3080\u5024\u3092 initial \u306B\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\uFF08initial: "" / [] / {} / 0\uFF09`,
|
|
13646
|
+
v5PostUpdateWildcard: (path, list) => `$postUpdate("${path}"): 4.x \u3067\u306F * \u306F\u547C\u3093\u3060\u5074\u306E\u3044\u308B\u884C\u3067\u3059\uFF08\u884C\u306E\u5916\u3067\u306F\u4F55\u3082\u66F4\u65B0\u3055\u308C\u307E\u305B\u3093\uFF09\u30025.0 \u3067\u306F\u3059\u3079\u3066\u306E\u884C\u306B\u306A\u308A\u307E\u3059\u3002\u3069\u3061\u3089\u3067\u3082 1 \u884C\u3060\u3051\u306B\u3059\u308B\u306B\u306F\u6DFB\u5B57\u3092\u66F8\u304D\uFF08$postUpdate(\`${list}.\${index}\u2026\`)\uFF09\u3001\u3069\u3061\u3089\u3067\u3082\u3059\u3079\u3066\u306E\u884C\u306B\u3059\u308B\u306B\u306F\u4E00\u89A7\u3092\u540D\u6307\u3057\u307E\u3059\uFF08$postUpdate("${list}")\uFF09\u3002\uFF08docs/migration-v5.ja.md#post-update-wildcard\uFF09`,
|
|
13647
|
+
v5StorageKey: (value) => `<wcs-storage key="${value}">: 5.0 \u3067\u306F\u3001\u30AD\u30FC\u306F storage-key \u3060\u3051\u306B\u306A\u308A\u307E\u3059\uFF08React \u3068 Vue \u306F key \u3092\u81EA\u5206\u306E\u3082\u306E\u306B\u3057\u307E\u3059\uFF09\u3002storage-key="${value}" \u3068\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\u3002\uFF08docs/migration-v5.ja.md#storage-key\uFF09`,
|
|
13648
|
+
v5StorageKeyBinding: () => `<wcs-storage> \u306E key: \u2014 5.0 \u3067\u306F\u3001\u30AD\u30FC\u306F storageKey \u3060\u3051\u306B\u306A\u308A\u307E\u3059\u3002\u540C\u3058\u30D1\u30B9\u3067 storageKey: \u3068\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\u3002\uFF08docs/migration-v5.ja.md#storage-key\uFF09`,
|
|
13649
|
+
v5AttrOn: (name) => `attr.${name}: \u306F\u30CF\u30F3\u30C9\u30E9\u3092\u6587\u5B57\u5217\u3067\u66F8\u304D\u3001\u30D6\u30E9\u30A6\u30B6\u304C\u305D\u308C\u3092\u30B3\u30FC\u30C9\u3068\u3057\u3066\u5B9F\u884C\u3057\u307E\u3059\u30025.0 \u306F attr.on*: \u3092\u62D2\u307F\u307E\u3059\u3002\u30A4\u30D9\u30F3\u30C8\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044: ${name}: \u306B state \u306E\u30E1\u30BD\u30C3\u30C9\u3002\uFF08docs/migration-v5.ja.md#attr-on\uFF09`,
|
|
13650
|
+
v5TriggerBeforeInput: (input) => `trigger: \u304C ${input}: \u3088\u308A\u524D\u306B\u66F8\u304B\u308C\u3066\u3044\u307E\u3059\u3002\u675F\u7E1B\u306F\u66F8\u3044\u305F\u9806\u306B\u5F53\u305F\u308B\u306E\u3067\u30014.x \u3067\u306F\u771F\u306E trigger \u304C ${input} \u306E\u5C4A\u304F\u524D\u306B\u767A\u706B\u3057\u307E\u3059\u30025.0 \u306F\u8981\u7D20\u306E\u5165\u529B\u3092\u5148\u306B\u5F53\u3066\u307E\u3059\u3002\u3069\u3061\u3089\u3067\u3082\u52D5\u304F\u3088\u3046\u306B\u3001trigger: \u3092\u6700\u5F8C\u306B\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\u3002\uFF08docs/migration-v5.ja.md#inputs-before-commands\uFF09`,
|
|
13651
|
+
v5BehaviorRemoved: (name) => `$behavior \u306E ${name}: false \u2014 5.0 \u3067\u3053\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u306F\u7121\u304F\u306A\u308A\u307E\u3059\uFF08\u5E38\u306B\u6709\u52B9\u306B\u306A\u308A\u307E\u3059\uFF09\u3002\u5916\u3057\u3066\u3001\u30DA\u30FC\u30B8\u3092\u78BA\u304B\u3081\u3066\u304F\u3060\u3055\u3044\u3002\uFF08docs/migration-v5.ja.md#behavior-removed\uFF09`,
|
|
13638
13652
|
htmlSinkInput: (binding, control, path) => `"${binding}" \u306F\u3001\u5229\u7528\u8005\u304C <${control}> \u306B\u6253\u3063\u305F\u6587\u5B57\uFF08\u305D\u306E value: \u304C\u540C\u3058\u30D1\u30B9\u306B\u66F8\u304D\u623B\u3057\u307E\u3059\uFF09\u3092\u30DE\u30FC\u30AF\u30A2\u30C3\u30D7\u3068\u3057\u3066\u30DA\u30FC\u30B8\u306B\u5165\u308C\u307E\u3059: <b> \u306F\u592A\u5B57\u306B\u306A\u308A\u3001<img src=x onerror=\u2026> \u306F\u30B9\u30AF\u30EA\u30D7\u30C8\u3092\u8D70\u3089\u305B\u3001\u6253\u3063\u305F\u3082\u306E\u3068\u306F\u9055\u3046\u3082\u306E\u304C\u8868\u793A\u3055\u308C\u307E\u3059 \u2014 \u30D5\u30A3\u30EB\u30BF\u304C\u6D88\u6BD2\u3059\u308B\u306E\u3067\u306A\u3051\u308C\u3070\u3002\u30C6\u30AD\u30B9\u30C8\u3068\u3057\u3066\u675F\u306D\u3066\u304F\u3060\u3055\u3044\uFF08textContent: ${path}\uFF09`,
|
|
13639
13653
|
eventBeforeBinding: (tag, output, attribute) => `<${tag}> \u306F ${attribute}="\u2026" \u5C5E\u6027\u304B\u3089\u81EA\u5206\u3067\u59CB\u307E\u308B\u306E\u3067\u3001state \u306E\u30D5\u30A1\u30A4\u30EB\u304C\u8AAD\u307F\u8FBC\u307E\u308C\u3066 "eventToken.${output}:" \u3092\u675F\u306D\u308B\u3088\u308A\u524D\u306B\u63A5\u7D9A\u3057\u307E\u3059: \u6700\u521D\u306E ${output}${tag === "wcs-sse" ? "\uFF08\u30B9\u30C8\u30EA\u30FC\u30E0\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306A\u3069\uFF09" : " "}\u306F\u30C8\u30FC\u30AF\u30F3\u304C\u4ED8\u304F\u524D\u306B\u9001\u3089\u308C\u3066\u5931\u308F\u308C\u3001\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\u3002${attribute} \u3092 state \u304B\u3089\u4E0E\u3048\u3066\u304F\u3060\u3055\u3044\uFF08${attribute}: <\u30D1\u30B9> \u2014 \u30DA\u30FC\u30B8\u3092\u675F\u306D\u3066\u304B\u3089\u59CB\u307E\u308A\u307E\u3059\uFF09\u3002\u307E\u305F\u306F\u51FA\u529B\u3092\u30D7\u30ED\u30D1\u30C6\u30A3\u3068\u3057\u3066\u3082\u675F\u306D\u3066\u304F\u3060\u3055\u3044\uFF08${output}: <\u30D1\u30B9> \u306F\u8981\u7D20\u306E\u5024\u3092 state \u306B\u5165\u308C\u307E\u3059\uFF09`,
|
|
13640
13654
|
radioNameShared: (name, binding) => `\u884C\u3054\u3068\u306E\u30E9\u30B8\u30AA\u304C\u3059\u3079\u3066 name="${name}" \u306B\u306A\u308B\u306E\u3067\u3001\u30D6\u30E9\u30A6\u30B6\u306F\u5168\u90E8\u306E\u884C\u306E\u30E9\u30B8\u30AA\u3092 1 \u3064\u306E\u30B0\u30EB\u30FC\u30D7\u306B\u3057\u307E\u3059\u3002\u30DA\u30FC\u30B8\u5168\u4F53\u3067 1 \u3064\u3057\u304B\u9078\u3070\u308C\u305F\u72B6\u614B\u306B\u306A\u3089\u305A\u3001\u8868\u793A\u306F\u6700\u521D\u306E\u63CF\u753B\u304B\u3089\u884C\u3054\u3068\u306E\u5024\u3068\u98DF\u3044\u9055\u3044\u307E\u3059\uFF08\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\uFF09\u3002${binding === "radio" ? "\u884C\u3054\u3068\u306B\u9055\u3046 name \u3092\u675F\u306D\u308B\uFF08attr.name: .<\u884C\u3054\u3068\u306B\u9055\u3046\u30D5\u30A3\u30FC\u30EB\u30C9>\uFF09\u304B\u3001name \u3092\u5916\u3057\u3066\u304F\u3060\u3055\u3044\uFF08radio: \u306F name \u304C\u7121\u304F\u3066\u3082\u3001\u540C\u3058\u30D1\u30B9\u306B\u675F\u306D\u305F\u30E9\u30B8\u30AA\u3092\u9078\u629E\u306B\u5408\u308F\u305B\u307E\u3059\uFF09" : "\u884C\u3054\u3068\u306B\u9055\u3046 name \u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044\uFF08attr.name: .<\u884C\u3054\u3068\u306B\u9055\u3046\u30D5\u30A3\u30FC\u30EB\u30C9>\uFF09\u3002\u884C\u3092\u307E\u305F\u3044\u3067 1 \u3064\u3092\u9078\u3070\u305B\u308B\u306A\u3089\u3001\u5168\u90E8\u3092 1 \u3064\u306E\u30D1\u30B9\u306B\u675F\u306D\u307E\u3059\uFF08value: .<\u884C\u306E id>; radio: <\u30D1\u30B9>\uFF09"}`,
|
|
13641
|
-
numberWrittenAsString: (path, left, asNumber) => `"${path}" \u306F state \u3067\u306F\u6570\u5024\u3067\u3059\u304C\u3001value: \u304C\u66F8\u304D\u623B\u3059\u306E\u306F\u8981\u7D20\u306E\u6301\u3064\u6587\u5B57\u5217\u3067\u3059\u30025 \u3068\u5165\u529B\u3057\u305F\u5F8C\u306E state \u306F "5" \u3067\u3001"5" + 1 \u306F "51" \u306B\u306A\u308A\u307E\u3059\uFF08\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\uFF09\u3002\u66F8\u304D\u623B\u3059\u3068\u304D\u306B\u6570\u5024\u306B\u3057\u3066\u304F\u3060\u3055\u3044: ${asNumber ? `valueAsNumber: ${path}\u3001\u307E\u305F\u306F` : ""}\u5DE6\u8FBA\u306E\u5165\u529B\u30D5\u30A3\u30EB\u30BF ${left}|number: ${path}\uFF08|int\u30FB|float \u3082\uFF09`,
|
|
13655
|
+
numberWrittenAsString: (path, left, asNumber) => `"${path}" \u306F state \u3067\u306F\u6570\u5024\u3067\u3059\u304C\u3001value: \u304C\u66F8\u304D\u623B\u3059\u306E\u306F\u8981\u7D20\u306E\u6301\u3064\u6587\u5B57\u5217\u3067\u3059\u30025 \u3068\u5165\u529B\u3057\u305F\u5F8C\u306E state \u306F "5" \u3067\u3001"5" + 1 \u306F "51" \u306B\u306A\u308A\u307E\u3059\uFF08\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\uFF09\u3002\u66F8\u304D\u623B\u3059\u3068\u304D\u306B\u6570\u5024\u306B\u3057\u3066\u304F\u3060\u3055\u3044: ${asNumber ? `valueAsNumber: ${path}\u3001\u307E\u305F\u306F` : ""}\u5DE6\u8FBA\u306E\u5165\u529B\u30D5\u30A3\u30EB\u30BF ${left}|number: ${path}\uFF08|int\u30FB|float \u3082\uFF09\u30025.0 \u306F\u3001\u6570\u5024\u306E\u5165\u529B\u306E\u53CC\u65B9\u5411\u306E value: \u306B\u6570\u5024\u3092\u66F8\u304B\u305B\u307E\u3059\uFF08docs/migration-v5.ja.md#number-input\uFF09`,
|
|
13642
13656
|
twoWayOutputFilter: (prop, filters, left, rhs, keystroke) => keystroke ? `${prop}: \u306F\u53CC\u65B9\u5411\u3067 1 \u6253\u9375\u3054\u3068\u306B\u66F8\u304D\u623B\u3057\u3001\u51FA\u529B\u30D5\u30A3\u30EB\u30BF "${filters}" \u306F\u305D\u306E\u305F\u3073\u306B state \u306E\u5024\u3092\u6574\u5F62\u3057\u3066\u6B04\u3078\u66F8\u304D\u76F4\u3057\u307E\u3059\u3002\u5165\u529B\u4E2D\u306E\u6B04\u304C\u66F8\u304D\u63DB\u308F\u308A\uFF08\u30AD\u30E3\u30EC\u30C3\u30C8\u306F\u672B\u5C3E\u3078\u98DB\u3073\u3001IME \u306E\u5909\u63DB\u306F\u9014\u5207\u308C\u307E\u3059\uFF09\u3001state \u304C\u53D7\u3051\u53D6\u308B\u306E\u3082\u6B04\u306E\u6574\u5F62\u6E08\u307F\u306E\u6587\u5B57\u3067\u3059\uFF08\u51FA\u529B\u30D5\u30A3\u30EB\u30BF\u306F\u66F8\u304D\u623B\u3057\u3067\u5143\u306B\u623B\u308A\u307E\u305B\u3093\uFF09\u3002\u6574\u5F62\u3057\u305F\u6587\u5B57\u306F\u5225\u306E\u8981\u7D20\u306B\u8868\u793A\u3059\u308B\u3001\u6B04\u306E\u78BA\u5B9A\u3067\u66F8\u304D\u623B\u3057\u3066 setter \u3067\u6574\u5F62\u3059\u308B\uFF08${prop}#onchange:\uFF09\u3001\u307E\u305F\u306F\u4E00\u65B9\u5411\u306B\u3057\u3066\u304F\u3060\u3055\u3044\uFF08${prop}#ro: ${rhs}\uFF09` : `${prop}: \u306F\u53CC\u65B9\u5411\u3067\u3059\u304C\u3001\u51FA\u529B\u30D5\u30A3\u30EB\u30BF "${filters}" \u306F\u66F8\u304D\u623B\u3057\u3067\u5143\u306B\u623B\u308A\u307E\u305B\u3093\u3002\u8981\u7D20\u304C\u66F8\u304D\u623B\u3059\u306E\u306F\u8868\u793A\u3057\u3066\u3044\u308B\u6574\u5F62\u6E08\u307F\u306E\u5024\u3067\u3001\u6B21\u306F\u305D\u306E\u5024\u306B\u30D5\u30A3\u30EB\u30BF\u304C\u639B\u304B\u308A\u307E\u3059\u3002\u5DE6\u8FBA\u306E\u5165\u529B\u30D5\u30A3\u30EB\u30BF\u3067\u5143\u306B\u623B\u3059\uFF08${left}|<\u30D5\u30A3\u30EB\u30BF>: \u2026\uFF09\u3001\u6574\u5F62\u3057\u305F\u5024\u306F\u5225\u306E\u8981\u7D20\u306B\u8868\u793A\u3059\u308B\u3001\u307E\u305F\u306F\u4E00\u65B9\u5411\u306B\u3057\u3066\u304F\u3060\u3055\u3044\uFF08${prop}#ro: ${rhs}\uFF09`,
|
|
13643
13657
|
bodyBinding: (tag, attribute) => `<${tag}> \u306E ${attribute} \u306F\u675F\u7E1B\u3055\u308C\u307E\u305B\u3093\u3002<wcs-state> \u304C\u675F\u306D\u308B\u306E\u306F <body> \u306E\u4E2D\u3067\u3001<body> \u3068 <html> \u305D\u306E\u3082\u306E\u306F\u675F\u306D\u306A\u3044\u306E\u3067\u3001\u3053\u3053\u306B\u66F8\u3044\u305F\u675F\u7E1B\u306F\u4F55\u3082\u3057\u307E\u305B\u3093\uFF08\u30A4\u30D9\u30F3\u30C8\u306E\u30CF\u30F3\u30C9\u30E9\u306F\u8D70\u3089\u305A\u3001class. / attr. \u306A\u3069\u306F\u66F8\u304B\u308C\u307E\u305B\u3093\uFF09\u3002\u675F\u7E1B\u3092 <body> \u306E\u4E2D\u306E\u8981\u7D20\uFF08\u5305\u3080\u8981\u7D20\u30FB<main>\uFF09\u3078\u79FB\u3059\u304B\u3001\u5024\u3092 $connectedCallback \u3084 $watch \u306E\u30CF\u30F3\u30C9\u30E9\u304B\u3089\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\uFF08document.documentElement.lang = \u2026\uFF09`,
|
|
13644
13658
|
linkHandler: (property, handler) => `<wcs-link> \u306E "${property}:" \u306F "${handler}" \u3092\u547C\u3073\u307E\u305B\u3093\u3002<wcs-link> \u81EA\u8EAB\u306F display: none \u3067\u3001\u5229\u7528\u8005\u304C\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u306E\u306F\u30EA\u30F3\u30AF\u304C\u81EA\u5206\u306E\u96A3\u306B\u4F5C\u308B <a> \u306A\u306E\u3067\u3001\u30A4\u30D9\u30F3\u30C8\u306F\u30DB\u30B9\u30C8\u306B\u5C4A\u304D\u307E\u305B\u3093\u3002\u30CF\u30F3\u30C9\u30E9\u306F\u3001\u30EA\u30F3\u30AF\u306E\u4E2D\u306E\u8981\u7D20\uFF08\u5B50\u306F <a> \u306E\u4E2D\u3078\u79FB\u308A\u307E\u3059\uFF09\u304B\u3001\u30EA\u30F3\u30AF\u3092\u56F2\u3080\u8981\u7D20\u306B\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\u3002\u30CF\u30F3\u30C9\u30E9\u304B\u3089\u9077\u79FB\u3059\u308B\u306A\u3089\u3001router \u306E navigateUrl \u306B\u66F8\u304D\u307E\u3059\uFF08<wcs-router> \u306E data-wcs="navigateUrl: \u2026"\uFF09`,
|
|
@@ -13649,7 +13663,7 @@ var ja = {
|
|
|
13649
13663
|
},
|
|
13650
13664
|
frequencyInvalid: (tag, value, suggested) => `frequency="${value}" \u306F\u6B63\u306E\u6570\u5024\u3067\u306F\u306A\u3044\u306E\u3067\u3001<${tag}> \u306F\u3053\u308C\u3092\u300C\u6307\u5B9A\u306A\u3057\u300D\u3068\u3057\u3066\u8AAD\u307F\u3001\u30BB\u30F3\u30B5\u30FC\u306F\u30D6\u30E9\u30A6\u30B6\u306E\u65E2\u5B9A\u306E\u983B\u5EA6\u3067\u52D5\u304D\u307E\u3059\uFF08\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\uFF09\u3002${suggested === null ? "\u6B63\u306E\u6570\u5024\uFF08Hz\uFF09\u3092\u66F8\u304F\u304B\u3001\u65E2\u5B9A\u306E\u983B\u5EA6\u3067\u3088\u3051\u308C\u3070\u5C5E\u6027\u3092\u5916\u3057\u3066\u304F\u3060\u3055\u3044" : `\u6570\u5024\u3060\u3051\u3092\u66F8\u3044\u3066\u304F\u3060\u3055\u3044: frequency="${suggested}"`}`,
|
|
13651
13665
|
targetSelector: (tag, value) => `<${tag}> \u306E target \u306F CSS \u30BB\u30EC\u30AF\u30BF\u3067\u3059\u3002target="${value}" \u306F <${value}> \u8981\u7D20\u3092\u9078\u3073\u307E\u3059\u304C\u3001\u3053\u306E\u6587\u66F8\u306B\u305D\u306E\u8981\u7D20\u306F\u7121\u304F\u3001id="${value}" \u306E\u8981\u7D20\u304C\u3042\u308A\u307E\u3059\u3002\u5BFE\u8C61\u304C\u898B\u3064\u304B\u3089\u306A\u3044\u306E\u3067\u3001${TARGET_EFFECT_JA[tag] ?? "\u8981\u7D20\u306F\u4F55\u3082\u3057\u307E\u305B\u3093"}\u3002id \u3092\u6307\u3059\u306A\u3089 target="#${value}" \u3068\u66F8\u3044\u3066\u304F\u3060\u3055\u3044`,
|
|
13652
|
-
commandEventArgument: (property, token, tag, method, more) => `"${property}: ${token}" \u306F\u30C8\u30FC\u30AF\u30F3\u3092\u30A4\u30D9\u30F3\u30C8\u304B\u3089\u76F4\u63A5 emit \u3059\u308B\u306E\u3067\u3001\u53D7\u3051\u5074\u306E\u30B3\u30DE\u30F3\u30C9\u306F\u30A4\u30D9\u30F3\u30C8\u3092\u7B2C 1 \u5F15\u6570\u3068\u3057\u3066\u547C\u3070\u308C\u307E\u3059\u3002<${tag}> \u306E ${method}() \u306F\u5F15\u6570\u3092\u53D6\u308B\u30B3\u30DE\u30F3\u30C9\u3067\u3001${method}(event) \u306B\u306A\u308A\u307E\u3059${more > 0 ? `\uFF08\u307B\u304B\u306B ${more} \u4EF6\u306E\u53D7\u3051\u5074\u3082\u540C\u3058\u3067\u3059\uFF09` : ""}\u3002state \u306E\u30E1\u30BD\u30C3\u30C9\u304B\u3089 emit \u3057\u3066\u304F\u3060\u3055\u3044 \u2014 ${property}: <\u30E1\u30BD\u30C3\u30C9> \u3068\u66F8\u304D\u3001<\u30E1\u30BD\u30C3\u30C9>() { this.${token}.emit(\u2026) } \u3067 ${method}() \u304C\u53D7\u3051\u53D6\u308B\u5024\u3092\u6E21\u3057\u307E\u3059\uFF08\u6E21\u3059\u5024\u304C\u7121\u3051\u308C\u3070\u5F15\u6570\u306A\u3057\u3067 emit \u3057\u307E\u3059\uFF09`,
|
|
13666
|
+
commandEventArgument: (property, token, tag, method, more) => `"${property}: ${token}" \u306F\u30C8\u30FC\u30AF\u30F3\u3092\u30A4\u30D9\u30F3\u30C8\u304B\u3089\u76F4\u63A5 emit \u3059\u308B\u306E\u3067\u3001\u53D7\u3051\u5074\u306E\u30B3\u30DE\u30F3\u30C9\u306F\u30A4\u30D9\u30F3\u30C8\u3092\u7B2C 1 \u5F15\u6570\u3068\u3057\u3066\u547C\u3070\u308C\u307E\u3059\u3002<${tag}> \u306E ${method}() \u306F\u5F15\u6570\u3092\u53D6\u308B\u30B3\u30DE\u30F3\u30C9\u3067\u3001${method}(event) \u306B\u306A\u308A\u307E\u3059${more > 0 ? `\uFF08\u307B\u304B\u306B ${more} \u4EF6\u306E\u53D7\u3051\u5074\u3082\u540C\u3058\u3067\u3059\uFF09` : ""}\u3002state \u306E\u30E1\u30BD\u30C3\u30C9\u304B\u3089 emit \u3057\u3066\u304F\u3060\u3055\u3044 \u2014 ${property}: <\u30E1\u30BD\u30C3\u30C9> \u3068\u66F8\u304D\u3001<\u30E1\u30BD\u30C3\u30C9>() { this.${token}.emit(\u2026) } \u3067 ${method}() \u304C\u53D7\u3051\u53D6\u308B\u5024\u3092\u6E21\u3057\u307E\u3059\uFF08\u6E21\u3059\u5024\u304C\u7121\u3051\u308C\u3070\u5F15\u6570\u306A\u3057\u3067 emit \u3057\u307E\u3059\uFF09\u30025.0 \u306F\u3001\u3053\u306E\u76F4\u7D50\u306E\u5F62\u3092\u5F15\u6570\u306A\u3057\u3067 emit \u3057\u307E\u3059\uFF08docs/migration-v5.ja.md#command-event-argument\uFF09`,
|
|
13653
13667
|
outputPathWritten: (path, tag, member, commands) => `"${path}" \u306F <${tag}> \u306E\u51FA\u529B "${member}" \u306B\u675F\u306D\u3066\u3042\u308A\u307E\u3059\u3002\u51FA\u529B\u306F\u8981\u7D20\u304C\u66F8\u304F\u3082\u306E\u3067\u3001\u30B9\u30AF\u30EA\u30D7\u30C8\u306E\u66F8\u304D\u8FBC\u307F\u306F\u8981\u7D20\u306B\u5C4A\u304D\u307E\u305B\u3093\u3002true \u3092\u4EE3\u5165\u3057\u3066\u3082\u8981\u7D20\u306F\u4F55\u3082\u305B\u305A\u3001\u30DA\u30FC\u30B8\u3060\u3051\u304C\u305D\u3046\u306A\u3063\u305F\u3053\u3068\u306B\u3057\u307E\u3059\u3002${commands.length === 0 ? `<${tag}> \u306B\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u304F\u3001\u3053\u306E\u5024\u306F\u8981\u7D20\u304C\u77E5\u3089\u305B\u308B\u3082\u306E\u3067\u3059\u3002\u4EE3\u5165\u3092\u5916\u3057\u3066\u304F\u3060\u3055\u3044` : `\u8981\u7D20\u306B\u306F\u30B3\u30DE\u30F3\u30C9\u3067\u983C\u3093\u3067\u304F\u3060\u3055\u3044\uFF08${commands.join("\u30FB")} \u2014 command.<\u30E1\u30BD\u30C3\u30C9>: $command.<\u540D\u524D> \u3092\u675F\u306D\u3001\u3053\u3053\u3067 this.$command.<\u540D\u524D>.emit() \u3092\u547C\u3076\uFF09\u3002"${path}" \u306F\u8981\u7D20\u304C\u66F8\u304D\u307E\u3059`}`,
|
|
13654
13668
|
filterUnknown: (n) => `\u30D5\u30A3\u30EB\u30BF "${n}" \u306F\u7D44\u307F\u8FBC\u307F\u30D5\u30A3\u30EB\u30BF\u306B\u5B58\u5728\u3057\u307E\u305B\u3093`,
|
|
13655
13669
|
filterRemoved: (n, c) => `\u30D5\u30A3\u30EB\u30BF "${n}" \u306F 4.0 \u3067\u5916\u308C\u307E\u3057\u305F\uFF08"${c}" \u306E 3.x \u306E\u65E7\u540D\uFF09\u3002"${c}" \u3068\u66F8\u3044\u3066\u304F\u3060\u3055\u3044`,
|
|
@@ -13710,19 +13724,19 @@ var ja = {
|
|
|
13710
13724
|
nativeCommandUnknown: (method, tag, allowed) => `"${method}" \u306F\u30CD\u30A4\u30C6\u30A3\u30D6\u306E <${tag}> \u306B command \u3067\u547C\u3079\u308B\u30E1\u30BD\u30C3\u30C9\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF08\u547C\u3079\u308B\u306E\u306F ${allowed}\u3002\u30E9\u30F3\u30BF\u30A4\u30E0\u306F\u521D\u671F\u5316\u3067 wcs/token-misconfigured \u3092\u6295\u3052\u307E\u3059\uFF09`,
|
|
13711
13725
|
spreadNoBindable: (tag) => `'...'\uFF08spread\uFF09\u306F <${tag}> \u306B\u6709\u52B9\u306A wcBindable \u5BA3\u8A00\u304C\u5FC5\u8981\u3067\u3059 \u2014 \u3053\u306E\u30BF\u30B0\u306F\u5BA3\u8A00\u3092\u6301\u305F\u306A\u3044\u305F\u3081\u3001\u30E9\u30F3\u30BF\u30A4\u30E0\u306F\u30A8\u30E9\u30FC\u3092\u9001\u51FA\u3057\u307E\u3059`,
|
|
13712
13726
|
tagEventTokenKeyUnknown: (name, tag, declared) => `eventToken \u306E\u30AD\u30FC "${name}" \u306F <${tag}> \u306E wcBindable \u30D7\u30ED\u30D1\u30C6\u30A3\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u751F DOM \u30A4\u30D9\u30F3\u30C8\u540D\u306F\u767A\u706B\u3057\u307E\u305B\u3093 \u2014 \u30D7\u30ED\u30D1\u30C6\u30A3\u540D\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\uFF08\u5BA3\u8A00\u6E08\u307F: ${declared}\uFF09`,
|
|
13713
|
-
handleBoundAsValue: (name, tag) => `<${tag}> \u306E "${name}" \u306F\u751F\u304D\u305F\u30EA\u30BD\u30FC\u30B9\uFF08\u30CF\u30F3\u30C9\u30EB\uFF09\u3067\u3001\u5024\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002state \u306E\u30D1\u30B9\u306B\u675F\u306D\u308B\u3068\u3001\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3084 SSR \u306B\u8F09\u3089\u306A\u3044\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u304C state \u306B\u5165\u308A\u307E\u3059 \u2014 eventToken.${name}: \u3067\u53D7\u3051\u3001\u30B3\u30DE\u30F3\u30C9\u306E\u5F15\u6570\u3068\u3057\u3066\u6B21\u306E\u8981\u7D20\u3078\u76F4\u63A5\u6E21\u3057\u3066\u304F\u3060\u3055\u3044`,
|
|
13727
|
+
handleBoundAsValue: (name, tag) => `<${tag}> \u306E "${name}" \u306F\u751F\u304D\u305F\u30EA\u30BD\u30FC\u30B9\uFF08\u30CF\u30F3\u30C9\u30EB\uFF09\u3067\u3001\u5024\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002state \u306E\u30D1\u30B9\u306B\u675F\u306D\u308B\u3068\u3001\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3084 SSR \u306B\u8F09\u3089\u306A\u3044\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u304C state \u306B\u5165\u308A\u307E\u3059 \u2014 eventToken.${name}: \u3067\u53D7\u3051\u3001\u30B3\u30DE\u30F3\u30C9\u306E\u5F15\u6570\u3068\u3057\u3066\u6B21\u306E\u8981\u7D20\u3078\u76F4\u63A5\u6E21\u3057\u3066\u304F\u3060\u3055\u3044\u30025.0 \u306F\u3001\u30D1\u30B9\u306B\u675F\u306D\u305F handle \u3092\u62D2\u307F\u307E\u3059\uFF08docs/migration-v5.ja.md#handle-as-value\uFF09`,
|
|
13714
13728
|
ariaAttrUnknown: (name) => `"${name}" \u306F WAI-ARIA \u306E\u5C5E\u6027\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002setAttribute \u306F\u305D\u306E\u307E\u307E\u66F8\u304D\u8FBC\u307F\u307E\u3059\u304C\u3001\u652F\u63F4\u6280\u8853\u306B\u306F\u9ED9\u3063\u3066\u7121\u8996\u3055\u308C\u307E\u3059`,
|
|
13715
13729
|
liveRegionInserted: (attribute, by, condition) => `\u3053\u306E\u30E9\u30A4\u30D6\u30EA\u30FC\u30B8\u30E7\u30F3\uFF08${attribute}\uFF09\u306F\u3001${by === "route" ? "<wcs-route> \u306B\u5165\u3063\u305F\u3068\u304D" : by === "for" ? "for: \u306E\u884C\u304C\u8DB3\u3055\u308C\u305F\u3068\u304D" : "\u679D\u304C\u73FE\u308C\u305F\u3068\u304D"}\u306B\u6587\u3054\u3068\u633F\u5165\u3055\u308C\u307E\u3059\uFF08${condition === null ? "\u6587\u3092\u66F8\u3044\u3066\u6301\u3063\u3066\u3044\u307E\u3059" : `\u6587\u306F\u6761\u4EF6 "${condition}" \u304C\u8AAD\u3080\u3082\u306E\u306B\u675F\u306D\u3066\u3042\u308A\u3001\u679D\u306F\u305D\u306E\u6587\u3068\u4E00\u7DD2\u306B\u73FE\u308C\u307E\u3059`}\uFF09\u3002\u30B9\u30AF\u30EA\u30FC\u30F3\u30EA\u30FC\u30C0\u30FC\u304C\u8AAD\u307F\u4E0A\u3052\u308B\u306E\u306F\u30DA\u30FC\u30B8\u306B\u3042\u308B\u30EA\u30FC\u30B8\u30E7\u30F3\u306E\u6587\u304C\u5909\u308F\u3063\u305F\u3068\u304D\u306A\u306E\u3067\u3001\u3053\u306E\u6587\u306F\u8AAD\u307F\u4E0A\u3052\u3089\u308C\u307E\u305B\u3093\uFF08\u633F\u5165\u3057\u305F\u3068\u304D\u306B\u8AAD\u307F\u4E0A\u3052\u3089\u308C\u308B\u306E\u306F role="alert" \u3060\u3051\u3067\u3059\uFF09\u2014 \u805E\u304B\u305B\u305F\u3044\u77E5\u3089\u305B\u306F\u3001\u5E38\u306B\u30DA\u30FC\u30B8\u306B\u3042\u308B\u30EA\u30FC\u30B8\u30E7\u30F3\u306B\u7F6E\u3044\u3066\u304F\u3060\u3055\u3044: \u30EA\u30FC\u30B8\u30E7\u30F3\u306F${by === "route" ? "\u30EB\u30FC\u30C8" : " template "}\u306E\u5916\u306B\u7F6E\u304D\u3001textContent: \u3092\u77E5\u3089\u305B\u308B\u6587\u306B\u675F\u306D\u3001\u77E5\u3089\u305B\u308B\u3053\u3068\u304C\u7121\u3044\u3068\u304D\u306F\u7A7A\u306B\u3059\u308B`,
|
|
13716
13730
|
didYouMean: (c) => `\u3002\u3082\u3057\u304B\u3057\u3066: "${c}"`,
|
|
13717
13731
|
none: () => `\u306A\u3057`,
|
|
13718
|
-
triggerSeededTruthy: (path) => `trigger \u30D0\u30A4\u30F3\u30C9\u5148 "${path}" \u304C true \u3067\u30B7\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u3059\u3002trigger \u306F\u30A8\u30C3\u30B8\u691C\u51FA\u306A\u3057\uFF08truthy \u66F8\u304D\u8FBC\u307F\u3067\u5373\u767A\u706B\u30FBmanual \u3082\u30D0\u30A4\u30D1\u30B9\uFF09\u306E\u305F\u3081\u3001\u30D0\u30A4\u30F3\u30C9\u6642\u306B\u5373\u767A\u706B\u3057\u307E\u3059\u3002false \u3067\u30B7\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044`,
|
|
13719
|
-
storageSeedClobber: (path, raw) => `<wcs-storage> \u306E value \u30D0\u30A4\u30F3\u30C9\u5148 "${path}" \u304C ${shortSeed(raw)} \u3067\u30B7\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u8AAD\u307F\u8FBC\u307F\u306E\u305F\u3073\u306B\u521D\u671F\u66F8\u304D\u623B\u3057\u304C\u4FDD\u5B58\u5024\u3092\u4E0A\u66F8\u304D\u3057\u307E\u3059 \u2014 \u30D0\u30A4\u30F3\u30C9\u306B #init=element \u3092\u4ED8\u3051\u3066\uFF08\`value#init=element: ${path}\`\uFF09\u4FDD\u5B58\u5024\u3092\u52DD\u305F\u305B\u3001\u30B9\u30ED\u30C3\u30C8\u306F null\uFF08\u7A7A\u306E\u30AD\u30FC\u304C\u8AAD\u3080\u5024\uFF09\u3067\u30B7\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044`,
|
|
13720
|
-
storageInitSeed: (path, raw) => `<wcs-storage> \u306E value \u30D0\u30A4\u30F3\u30C9\u5148 "${path}" \u304C ${shortSeed(raw)} \u3067\u30B7\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u3059\u304C\u3001#init=element \u306F\u8981\u7D20\u306E\u5024\u3092\u3053\u306E\u30B9\u30ED\u30C3\u30C8\u3078\u5F15\u304D\u8FBC\u307F\u307E\u3059\u3002\u521D\u56DE\uFF08\u7A7A\u306E\u30AD\u30FC\uFF09\u306F null \u306A\u306E\u3067\u3001\u30B7\u30FC\u30C9\u306F null \u306B\u7F6E\u304D\u63DB\u308F\u308A\u307E\u3059 \u2014 null \u3067\u30B7\u30FC\u30C9\u3057\u3066\u8AAD\u3080\u5074\u3067\u65E2\u5B9A\u5024\u3092\u88DC\u3046\uFF08\`this.${path} ?? \u2026\`\uFF09\u304B\u3001null \u3092\u7121\u8996\u3059\u308B setter \u3092\u6301\u3064\u30A2\u30AF\u30BB\u30B5\u30DA\u30A2\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044`,
|
|
13732
|
+
triggerSeededTruthy: (path) => `trigger \u30D0\u30A4\u30F3\u30C9\u5148 "${path}" \u304C true \u3067\u30B7\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u3059\u3002trigger \u306F\u30A8\u30C3\u30B8\u691C\u51FA\u306A\u3057\uFF08truthy \u66F8\u304D\u8FBC\u307F\u3067\u5373\u767A\u706B\u30FBmanual \u3082\u30D0\u30A4\u30D1\u30B9\uFF09\u306E\u305F\u3081\u3001\u30D0\u30A4\u30F3\u30C9\u6642\u306B\u5373\u767A\u706B\u3057\u307E\u3059\u3002false \u3067\u30B7\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u30025.0 \u3067\u306F trigger \u306E\u6700\u521D\u306E\u540C\u671F\u306F\u8981\u7D20\u304C\u52DD\u3061\u3001\u4F55\u3082\u767A\u706B\u305B\u305A\u3001\u30B9\u30ED\u30C3\u30C8\u306F false \u306B\u306A\u308A\u307E\u3059\uFF08docs/migration-v5.ja.md#trigger-first-sync\uFF09`,
|
|
13733
|
+
storageSeedClobber: (path, raw) => `<wcs-storage> \u306E value \u30D0\u30A4\u30F3\u30C9\u5148 "${path}" \u304C ${shortSeed(raw)} \u3067\u30B7\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u8AAD\u307F\u8FBC\u307F\u306E\u305F\u3073\u306B\u521D\u671F\u66F8\u304D\u623B\u3057\u304C\u4FDD\u5B58\u5024\u3092\u4E0A\u66F8\u304D\u3057\u307E\u3059 \u2014 \u30D0\u30A4\u30F3\u30C9\u306B #init=element \u3092\u4ED8\u3051\u3066\uFF08\`value#init=element: ${path}\`\uFF09\u4FDD\u5B58\u5024\u3092\u52DD\u305F\u305B\u3001\u30B9\u30ED\u30C3\u30C8\u306F null\uFF08\u7A7A\u306E\u30AD\u30FC\u304C\u8AAD\u3080\u5024\uFF09\u3067\u30B7\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\u30025.0 \u3067\u306F\u3001\u6700\u521D\u306E\u540C\u671F\u306F\u4FDD\u5B58\u5024\u304C\u52DD\u3061\u307E\u3059\uFF08docs/migration-v5.ja.md#storage-first-sync\uFF09`,
|
|
13734
|
+
storageInitSeed: (path, raw) => `<wcs-storage> \u306E value \u30D0\u30A4\u30F3\u30C9\u5148 "${path}" \u304C ${shortSeed(raw)} \u3067\u30B7\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u3059\u304C\u3001#init=element \u306F\u8981\u7D20\u306E\u5024\u3092\u3053\u306E\u30B9\u30ED\u30C3\u30C8\u3078\u5F15\u304D\u8FBC\u307F\u307E\u3059\u3002\u521D\u56DE\uFF08\u7A7A\u306E\u30AD\u30FC\uFF09\u306F null \u306A\u306E\u3067\u3001\u30B7\u30FC\u30C9\u306F null \u306B\u7F6E\u304D\u63DB\u308F\u308A\u307E\u3059 \u2014 null \u3067\u30B7\u30FC\u30C9\u3057\u3066\u8AAD\u3080\u5074\u3067\u65E2\u5B9A\u5024\u3092\u88DC\u3046\uFF08\`this.${path} ?? \u2026\`\uFF09\u304B\u3001null \u3092\u7121\u8996\u3059\u308B setter \u3092\u6301\u3064\u30A2\u30AF\u30BB\u30B5\u30DA\u30A2\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044\u30025.0 \u3067\u306F\u3001\u4FDD\u5B58\u306E\u7121\u3044\u30AD\u30FC\u306F\u7A2E\u3092\u6B8B\u3057\u307E\u3059\uFF08docs/migration-v5.ja.md#storage-missing-key\uFF09`,
|
|
13721
13735
|
storagePairClobber: (path) => `<wcs-storage> \u306E value \u3092 #init=element \u306A\u3057\u3067\u30A2\u30AF\u30BB\u30B5\u30DA\u30A2 "${path}" \u306B\u675F\u306D\u3066\u3044\u307E\u3059\u3002state \u306E\u5074\u304C\u5148\u306B\u66F8\u304F\u306E\u3067\u3001\u8AAD\u307F\u8FBC\u307F\u306E\u305F\u3073\u306B getter \u306E\u6700\u521D\u306E\u5024\u304C\u4FDD\u5B58\u5024\u306E\u4E0A\u306B\u4FDD\u5B58\u3055\u308C\u3001setter \u306F\u4FDD\u5B58\u5024\u3092\u53D7\u3051\u53D6\u308C\u307E\u305B\u3093 \u2014 #init=element \u3092\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\uFF08\`value#init=element: ${path}\`\uFF09`,
|
|
13722
13736
|
inputNestedWrite: (tag, input, path, example) => `<${tag}> \u306E\u5165\u529B "${input}" \u306B "${path}" \u3092\u675F\u306D\u3066\u3044\u307E\u3059\u304C\u3001\u30DA\u30FC\u30B8\u306F\u305D\u306E\u4E0B\uFF08"${example}"\uFF09\u3078\u66F8\u304D\u8FBC\u3093\u3067\u3044\u307E\u3059\u3002\u675F\u7E1B\u306F "${path}" \u81EA\u8EAB\u3078\u306E\u4EE3\u5165\u3067\u3057\u304B\u5F53\u3066\u76F4\u3055\u308C\u306A\u3044\u306E\u3067\u3001\u4E0B\u3078\u306E\u66F8\u304D\u8FBC\u307F\u306F <${tag}> \u306B\u5C4A\u304D\u307E\u305B\u3093 \u2014 \u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u30D1\u30B9\u3067\u8AAD\u3093\u3067\u65B0\u3057\u3044\u5024\u3092\u8FD4\u3059 getter\uFF08\`this["${example}"]\`\u30FB\`$getAll\`\uFF09\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044: \u8981\u7D20\u306E\u5024\u3082\u53D7\u3051\u53D6\u308B\u306A\u3089\u3001setter \u3092\u6DFB\u3048\u305F\u30A2\u30AF\u30BB\u30B5\u30DA\u30A2\u3092 ${input}#init=element: <getter> \u3067\u3002\u8981\u7D20\u306E\u5024\u3092\u53D7\u3051\u53D6\u3089\u306A\u3044\u306A\u3089\u3001\u4E00\u65B9\u5411\u306B ${input}#ro: <getter> \u3067\uFF08setter \u3082 #ro \u3082\u7121\u3044\u3068\u3001\u8981\u7D20\u304C\u77E5\u3089\u305B\u308B\u5024\u306E\u66F8\u304D\u623B\u3057\u304C getter \u306B\u62D2\u307E\u308C\u307E\u3059 \u2014 wcs/path-readonly\uFF09\u3002\u307E\u305F\u306F\u3001\u4E0B\u3078\u66F8\u304B\u305A\u306B "${path}" \u3092\u5DEE\u3057\u66FF\u3048\u308B\u304B\u3001<${tag}> \u306B\u306F\u5225\u306E\u30AD\u30FC\u3092\u675F\u306D\u3066\u3001\u6E21\u3057\u305F\u3044\u3068\u304D\u306B\u305D\u306E\u30AD\u30FC\u3078\u30B3\u30D4\u30FC\u3092\u4EE3\u5165\u3057\u3066\u304F\u3060\u3055\u3044\uFF08getter \u306F "${path}" \u306E\u4E0B\u3078\u306E\u66F8\u304D\u8FBC\u307F\u306E\u305F\u3073\u306B\u8AAD\u307F\u76F4\u3055\u308C\u308B\u306E\u3067\u3001<wcs-storage> \u306F\u305D\u306E\u305F\u3073\u306B\u4FDD\u5B58\u3057\u307E\u3059\uFF09`,
|
|
13723
13737
|
inputNestedWriteOneShot: (tag, input, path, example) => `<${tag}> \u306E\u5165\u529B "${input}" \u306B "${path}" \u3092\u675F\u306D\u3066\u3044\u307E\u3059\u304C\u3001\u30DA\u30FC\u30B8\u306F\u305D\u306E\u4E0B\uFF08"${example}"\uFF09\u3078\u66F8\u304D\u8FBC\u3093\u3067\u3044\u307E\u3059\u3002\u675F\u7E1B\u306F "${path}" \u81EA\u8EAB\u3078\u306E\u4EE3\u5165\u3067\u3057\u304B\u5F53\u3066\u76F4\u3055\u308C\u305A\u3001<${tag}> \u306F\u8981\u6C42\u306E\u305F\u3073\u306B "${input}" \u3092 null \u306B\u623B\u3059\u306E\u3067\u3001\u6B21\u306E\u8981\u6C42\u306F "${input}" \u306A\u3057\u3067\u9001\u3089\u308C\u307E\u3059 \u2014 \u8981\u6C42\u3092\u59CB\u3081\u308B\u30CF\u30F3\u30C9\u30E9\u3067\u65B0\u3057\u3044\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u3063\u3066\u4EE3\u5165\u3057\uFF08\`this.submitBody = { \u2026 }\`\uFF09\u3001\u305D\u308C\u3092\u675F\u306D\u3066\u304F\u3060\u3055\u3044`,
|
|
13724
13738
|
devtoolsAfterState: () => `@wcstack/devtools/auto \u306F @wcstack/state/auto \u3088\u308A\u5148\u306B\u8AAD\u307F\u8FBC\u3093\u3067\u304F\u3060\u3055\u3044\uFF08\u5F8C\u304B\u3089\u3060\u3068\u3001DevTools \u306E\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3\u306F\u4ED8\u3044\u305F\u6642\u70B9\u304B\u3089\u59CB\u307E\u308A\u307E\u3059\u3002\u65E2\u306B\u3042\u308B\u914D\u7DDA\u306F 4.0 \u304C\u9001\u308A\u76F4\u3057\u307E\u3059\uFF09`,
|
|
13725
|
-
baseHrefMissing: () => `@wcstack/router \u3092\u4F7F\u3046 SPA \u306B\u306F <head> \u5185\u306E <base href="/">\uFF08\u307E\u305F\u306F\u305D\u308C\u3092\u4F5C\u308B <head> \u306E\u540C\u671F\u30B9\u30AF\u30EA\u30D7\u30C8 \u2014 basename \u306B\u30ED\u30B1\u30FC\u30EB\u3092\u7F6E\u304F\u5F62\uFF09\u304C\u5FC5\u8981\u3067\u3059\uFF08\u7121\u3044\u3068\u30C7\u30A3\u30FC\u30D7\u30EA\u30F3\u30AF\u3067 basename \u304C\u8AA4\u5C0E\u51FA\u3055\u308C\u307E\u3059\uFF09`,
|
|
13739
|
+
baseHrefMissing: () => `@wcstack/router \u3092\u4F7F\u3046 SPA \u306B\u306F <head> \u5185\u306E <base href="/">\uFF08\u307E\u305F\u306F\u305D\u308C\u3092\u4F5C\u308B <head> \u306E\u540C\u671F\u30B9\u30AF\u30EA\u30D7\u30C8 \u2014 basename \u306B\u30ED\u30B1\u30FC\u30EB\u3092\u7F6E\u304F\u5F62\uFF09\u304C\u5FC5\u8981\u3067\u3059\uFF08\u7121\u3044\u3068\u30C7\u30A3\u30FC\u30D7\u30EA\u30F3\u30AF\u3067 basename \u304C\u8AA4\u5C0E\u51FA\u3055\u308C\u307E\u3059\uFF09\u30025.0 \u306F basename \u3092\u5C0E\u304D\u307E\u305B\u3093\uFF08docs/migration-v5.ja.md#base-href\uFF09`,
|
|
13726
13740
|
routerOutletMisplaced: () => `\u3053\u306E <wcs-outlet> \u306F <wcs-router> \u306E\u76F4\u5F8C\u306B\u7121\u3044\u306E\u3067\u3001\u3069\u306E router \u3082\u4F7F\u3044\u307E\u305B\u3093\u3002router \u306F\u81EA\u5206\u306E\u76F4\u5F8C\u306E\u8981\u7D20\u3060\u3051\u3092 outlet \u3068\u3057\u3066\u4F7F\u3044\u3001\u305D\u3053\u306B <wcs-outlet> \u304C\u7121\u3051\u308C\u3070\u81EA\u524D\u306E outlet \u3092\u4F5C\u308A\u307E\u3059\u3002\u30EB\u30FC\u30C8\u306F router \u306E\u76F4\u5F8C\u306B\u63CF\u304B\u308C\u3001\u3053\u306E outlet \u306F\u7A7A\u306E\u307E\u307E\u3067\u3059 \u2014 <wcs-router> \u306E\u76F4\u5F8C\u3078\u79FB\u3057\u3066\u304F\u3060\u3055\u3044`,
|
|
13727
13741
|
linkQueryKeyIgnored: (toKeys, named) => `\u3053\u306E <wcs-link> \u306E to \u304C\u4ED8\u3051\u308B\u30AD\u30FC\uFF08${toKeys}\uFF09\u306F\u3001\u3069\u308C\u3082 query-keys\uFF08${named}\uFF09\u306B\u3042\u308A\u307E\u305B\u3093\u3002query-keys \u306E\u3042\u308B\u30EA\u30F3\u30AF\u306F\u540D\u6307\u3057\u305F\u30AD\u30FC\u3060\u3051\u3092\u6BD4\u3079\u308B\u306E\u3067\u3001\u30EA\u30F3\u30AF\u81EA\u8EAB\u306E\u30AF\u30A8\u30EA\u306F\u5224\u5B9A\u306B\u52B9\u304B\u305A\u3001${named} \u304C\u5408\u3048\u3070 ${toKeys} \u304C\u4F55\u3067\u3082\u73FE\u5728\u306E\u30EA\u30F3\u30AF\u306B\u306A\u308A\u307E\u3059 \u2014 \u3053\u3046\u66F8\u3044\u305F\u30BF\u30D6\u306F\u540C\u6642\u306B\u3059\u3079\u3066\u73FE\u5728\u306B\u306A\u308A\u307E\u3059\u3002\u30EA\u30F3\u30AF\u304C\u8868\u3059\u30AD\u30FC\u3092\u540D\u6307\u3057\u3066\u304F\u3060\u3055\u3044\uFF08query-keys="${toKeys}"\uFF09`,
|
|
13728
13742
|
signalsDualEntry: (later, earlier, versions) => versions !== null ? `"${later}" \u3068 "${earlier}" \u306F @wcstack/signals \u306E 2 \u3064\u306E\u7248\uFF08${versions[0]} \u3068 ${versions[1]}\uFF09\u3092\u8AAD\u307F\u8FBC\u307F\u3001\u305D\u308C\u305E\u308C\u304C\u30EA\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30B3\u30A2\u3092\u6301\u3061\u307E\u3059\u3002\u7247\u65B9\u306E signal \u3092\u3082\u3046\u7247\u65B9\u306E effect \u306F\u8FFD\u308F\u306A\u3044\u306E\u3067\u3001\u305D\u306E\u9593\u3067\u753B\u9762\u304C\u66F4\u65B0\u3055\u308C\u306A\u304F\u306A\u308A\u3001\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\u30021 \u3064\u306E\u7248\u3092\u8AAD\u307F\u8FBC\u307F\u3001\u3059\u3079\u3066\u306E\u540D\u524D\u3092 1 \u3064\u306E\u30A8\u30F3\u30C8\u30EA\u304B\u3089 import \u3057\u3066\u304F\u3060\u3055\u3044 \u2014 @wcstack/signals/dom \u304C\u3059\u3079\u3066\u3092\u6301\u3061\u307E\u3059` : `"${later}" \u3068 "${earlier}" \u306F @wcstack/signals \u306E 2 \u3064\u306E\u30A8\u30F3\u30C8\u30EA\u3067\u3001\u3053\u3053\u3067\u306F\u305D\u308C\u305E\u308C\u304C\u30EA\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30B3\u30A2\u3092\u6301\u3061\u307E\u3059\uFF08\u30A8\u30F3\u30C8\u30EA\u3054\u3068\u306B\u675F\u306D\u308B CDN \u2014 esm.run\u30FBjsDelivr \u306E +esm\u30FBesm.sh \u2014 \u304B\u3001\u30D3\u30EB\u30C9\u306E\u9055\u3046\u30D5\u30A1\u30A4\u30EB\uFF09\u3002\u7247\u65B9\u306E signal \u3092\u3082\u3046\u7247\u65B9\u306E effect \u306F\u8FFD\u308F\u306A\u3044\u306E\u3067\u3001\u305D\u306E\u9593\u3067\u753B\u9762\u304C\u66F4\u65B0\u3055\u308C\u306A\u304F\u306A\u308A\u3001\u4F55\u3082\u77E5\u3089\u305B\u307E\u305B\u3093\u3002\u3059\u3079\u3066\u306E\u540D\u524D\u3092 1 \u3064\u306E\u30A8\u30F3\u30C8\u30EA\u304B\u3089 import \u3057\u3066\u304F\u3060\u3055\u3044 \u2014 @wcstack/signals/dom \u304C\u3059\u3079\u3066\u3092\u6301\u3061\u307E\u3059`,
|
|
@@ -13868,7 +13882,7 @@ var en = {
|
|
|
13868
13882
|
wildcardOtherList: (p, over, loop) => `"${p}" ranges over the rows of "${over}", but the enclosing "for" template at that level renders "${loop}" (4.0 throws when the binding is established). A "*" in a binding is the row of the loop around it \u2014 read a row of another list in a getter, with $resolve(path, indexes)`,
|
|
13869
13883
|
outerInTemplate: (prop) => `"${prop}:" replaces its element, so it cannot be used inside a "for" / "if" template (a row or branch keeps its nodes by position; 4.0 throws at init). Bind innerHTML: on a wrapper element instead`,
|
|
13870
13884
|
directNotEvent: (prop) => `The #direct modifier applies only to event bindings (on*:); it is ignored on "${prop}"`,
|
|
13871
|
-
delegatedCurrentTarget: (suggested, eventName, handler) => `"${eventName}" bindings are delegated to the root, so event.currentTarget in "${handler}" is the root, not this element. Write "${suggested}:" to keep the listener on the element, or find the element with event.target.closest(...)`,
|
|
13885
|
+
delegatedCurrentTarget: (suggested, eventName, handler) => `"${eventName}" bindings are delegated to the root, so event.currentTarget in "${handler}" is the root, not this element. Write "${suggested}:" to keep the listener on the element, or find the element with event.target.closest(...). 5.0 puts the listener on the element by default (docs/migration-v5.md#event-delegation)`,
|
|
13872
13886
|
getterCycle: (cycle) => `Path getters form a dependency cycle: ${cycle}`,
|
|
13873
13887
|
updatedCallbackUnbound: (p) => `$renderedCallback is binding-driven. "${p}" is not bound anywhere in this document, so this branch never runs. Use $watch to react without depending on what is rendered`,
|
|
13874
13888
|
onHandlerThis: (name) => `The $on handler "${name}" uses this. A $on handler receives the state as its first argument (\`${name}(state, event) { state.x = \u2026 }\`) and this is undefined, so this.\u2026 throws when it is called \u2014 unlike $watch handlers and methods`,
|
|
@@ -13916,7 +13930,7 @@ var en = {
|
|
|
13916
13930
|
pathDynamicUnknownObjectSpread: (path, n, sp, from) => `The keys ${sp}${from === void 0 ? "" : ` (imported from "${from}")`} brings into "${path}" cannot be read statically, so the ${n === 1 ? "path" : `${n} paths`} bound under it ${n === 1 ? "is" : "are"} not checked. Spread a const of the module bound to an object literal, give the key a JSDoc @type with its shape, or declare it in the stateSchema of wcstack.manifest.json to have them checked`,
|
|
13917
13931
|
pathReadonlyTwoWay: (p, prop) => `"${p}" is a getter without a setter, and ${prop}: writes back what the reader enters, so every edit fails ("${p}" is a getter without a setter). Add a setter (set "${p}"(v) { \u2026 }), or bind it one way with #ro (${prop}#ro: ${p})`,
|
|
13918
13932
|
pathReadonlyOutput: (p, tag, member, atInit, twoWay, spread) => `"${p}" is a getter without a setter, but "${member}"${spread === void 0 ? "" : `, which "${spread}" binds,`} is ${twoWay ? "a member <" + tag + "> writes too (an output as well as an input)" : "an output of <" + tag + ">"}: the element writes its value to "${p}", and ${atInit ? "the write made when it is bound fails, so the state fails to initialize" : "that write fails each time the element reports a value"} ("${p}" is a getter without a setter). ${spread !== void 0 ? `Add a setter (set "${p}"(v) { \u2026 }), or bind "${member}" to a data path after the spread (${spread}; ${member}: <a data key>)` : !twoWay ? `Bind a data path and read it in the getter (${member}: <a data key>), or add a setter (set "${p}"(v) { \u2026 })` : atInit ? `Add a setter (set "${p}"(v) { \u2026 }), or take the first value from the state (remove #init=element)` : `Add a setter (set "${p}"(v) { \u2026 }), or bind it one way with #ro (${member}#ro: ${p} \u2014 the state still writes the element)`}`,
|
|
13919
|
-
submitWithoutPrevent: (h) => `onsubmit has no #prevent and "${h}" does not call preventDefault, so the browser submits the form too: the page reloads, or with the router a GET puts the fields (a password too) in the URL and the history. Write onsubmit#prevent: ${h}, or call event.preventDefault() in the handler`,
|
|
13933
|
+
submitWithoutPrevent: (h) => `onsubmit has no #prevent and "${h}" does not call preventDefault, so the browser submits the form too: the page reloads, or with the router a GET puts the fields (a password too) in the URL and the history. Write onsubmit#prevent: ${h}, or call event.preventDefault() in the handler. 5.0 prevents the submission by default on a form with neither action nor method (docs/migration-v5.md#submit-default)`,
|
|
13920
13934
|
guardReadsAtModuleTop: (r) => `The guard's module reads ${r} at its top level, outside the function it exports. The module is evaluated once, when the page loads, so the guard keeps the value it read then and decides every navigation with it (after a login, the session is still not there). Read it inside the exported function, which runs on every navigation`,
|
|
13921
13935
|
stateReadsAtModuleTop: (r) => `The state's module reads ${r} at its top level. The module is evaluated once per <wcs-state>, so the state keeps the value it read when the page loaded (a token or a session that changes later is not seen). Keep the value in state (bind it with <wcs-storage>), or read it inside the method that uses it`,
|
|
13922
13936
|
eventTokenUnbound: (t, handler) => `The event token "${t}" is declared in $eventTokens, but no eventToken.<member>: ${t} binding in this document emits it: no element fires it, so ${handler ? "its $on handler never runs" : "it never fires"}. Bind it on the element whose event should fire it (eventToken.<member>: ${t}, with <member> a wcBindable property of that element), or remove it from $eventTokens`,
|
|
@@ -13928,7 +13942,7 @@ var en = {
|
|
|
13928
13942
|
typeExpectation: (label, expected, resultType) => `"${label}" requires ${EN_EXPECTED_LABEL[expected]} (current type: ${resultType})`,
|
|
13929
13943
|
attrBooleanPresence: (a, p, rhs) => `"attr.${a}" is given a boolean. attr.* writes String(value), so false is written as ${a}="false" \u2014 and a boolean attribute is on whenever it is present, whatever its value: ${a}="false" still means ${a} (only null / undefined remove an attribute). Bind the property instead: ${p}: ${rhs}`,
|
|
13930
13944
|
attrBooleanText: (a, rhs) => `"attr.${a}" is given a boolean. attr.* writes String(value), so the attribute is "true" or "false" and is never removed (only null / undefined remove it): whatever tests its presence \u2014 [${a}] in CSS, hasAttribute() \u2014 finds it either way. To remove it while false, write attr.${a}: ${rhs}|defaults(null); if the text "true" / "false" is what is meant, say so: attr.${a}: ${rhs}|string`,
|
|
13931
|
-
radioBeforeValue: (binding, value, checkbox, fix) => `"${binding}:" is written before "${value}:", which gives this ${checkbox ? "checkbox" : "radio"} its value. Bindings are applied in the order written, so it is compared while its value is still the browser's default "on": nothing is checked at the first render \u2014 nothing says so, and a later write of the state checks the right one. Write the value first: ${fix}`,
|
|
13945
|
+
radioBeforeValue: (binding, value, checkbox, fix) => `"${binding}:" is written before "${value}:", which gives this ${checkbox ? "checkbox" : "radio"} its value. Bindings are applied in the order written, so it is compared while its value is still the browser's default "on": nothing is checked at the first render \u2014 nothing says so, and a later write of the state checks the right one. Write the value first: ${fix}. 5.0 applies an element's inputs before its radio: / checkbox: (docs/migration-v5.md#inputs-before-commands)`,
|
|
13932
13946
|
bindingExpression: (expression, fix) => `A binding takes a path and filters, not an expression: "${expression}" is not evaluated, it is looked up as a path of that name. ${fix !== null ? `Write ${fix}` : "Write a getter in the state that computes the value, and bind the getter's name"}`,
|
|
13933
13947
|
handlerExpression: (property, expression, method) => `An event binding names a method, not a call or a function: "${expression}" is not evaluated. ${method !== null ? `Write "${property}: ${method}"` : "Write the method's name"}; the handler is called with (event, ...loopIndexes), so read the row's values in the method through the loop index`,
|
|
13934
13948
|
attributeMustache: (name) => `{{ }} is read in text only: in the attribute "${name}" it stays as written. Bind the attribute (attr.${name}: <path>, with a getter that builds the string) \u2014 a server-side template that fills it before the page is served is fine`,
|
|
@@ -13940,10 +13954,16 @@ var en = {
|
|
|
13940
13954
|
keyBinding: () => `"key:" sets a property named "key" and does nothing else. No key is needed: rows are matched by the row object, and $listKeys keeps rows across refetched data`,
|
|
13941
13955
|
streamSourceMissing: (name) => `$stream entry "${name}" has no source function: the runtime refuses the state when it takes it in ($stream entry "${name}" needs a source function.), so the page fails to initialize and nothing on it is bound. Write source: (args, signal) => \u2026, returning an async iterable or a ReadableStream`,
|
|
13942
13956
|
streamFoldWithoutInitial: (name) => `$stream entry "${name}" has a fold and no initial: the runtime refuses the state when it takes it in ($stream entry "${name}": fold needs an initial value.), so the page fails to initialize and nothing on it is bound. Give the value the first chunk is folded onto: initial: "" (or [], {}, 0)`,
|
|
13957
|
+
v5PostUpdateWildcard: (path, list) => `$postUpdate("${path}"): in 4.x the * is the caller's row (outside a row, nothing is updated); in 5.0 it is every row. For one row in both, write its index ($postUpdate(\`${list}.\${index}\u2026\`)); for every row in both, name the list ($postUpdate("${list}")). (docs/migration-v5.md#post-update-wildcard)`,
|
|
13958
|
+
v5StorageKey: (value) => `<wcs-storage key="${value}">: 5.0 takes the key as storage-key only (React and Vue keep key for themselves). Write storage-key="${value}". (docs/migration-v5.md#storage-key)`,
|
|
13959
|
+
v5StorageKeyBinding: () => `key: on a <wcs-storage> \u2014 5.0 takes the key as storageKey only. Write storageKey: with the same path. (docs/migration-v5.md#storage-key)`,
|
|
13960
|
+
v5AttrOn: (name) => `attr.${name}: writes a handler as a string, which the browser runs as code. 5.0 refuses attr.on*:. Bind the event: ${name}: with a method of the state. (docs/migration-v5.md#attr-on)`,
|
|
13961
|
+
v5TriggerBeforeInput: (input) => `trigger: is written before ${input}:. Bindings apply in the order written, so in 4.x a trigger that is true fires before ${input} is there; 5.0 applies an element's inputs first. For both, write trigger: last. (docs/migration-v5.md#inputs-before-commands)`,
|
|
13962
|
+
v5BehaviorRemoved: (name) => `$behavior's ${name}: false \u2014 5.0 removes this option (it is always on). Take it out and check the page. (docs/migration-v5.md#behavior-removed)`,
|
|
13943
13963
|
htmlSinkInput: (binding, control, path) => `"${binding}" puts what the user types into a <${control}> (its value: writes back to the same path) onto the page as markup: <b> turns bold, <img src=x onerror=\u2026> runs script, and what is shown is not what was typed \u2014 unless a filter sanitizes it. Bind it as text: textContent: ${path}`,
|
|
13944
13964
|
eventBeforeBinding: (tag, output, attribute) => `<${tag}> starts on its own from its ${attribute}="\u2026" attribute, before the state's file has loaded and bound "eventToken.${output}:": the first ${output} events${tag === "wcs-sse" ? " (the stream's snapshot)" : ""} are dispatched before the token is attached and are lost, without a word. Give it the ${attribute} from the state (${attribute}: <path>) so it starts once the page is bound, or bind the output as a property too (${output}: <path> seeds the state from the element)`,
|
|
13945
13965
|
radioNameShared: (name, binding) => `Every row's radios get name="${name}", so the browser makes one group of all the rows: only one radio on the whole page stays checked, and the page disagrees with the rows' values from the first render \u2014 nothing says so. ${binding === "radio" ? "Bind a name that differs per row (attr.name: .<a row field>), or drop the name: radio: keeps the radios bound to one path in step without it" : "Bind a name that differs per row (attr.name: .<a row field>) \u2014 or, for one choice over all the rows, bind them all to one path: value: .<the row's id>; radio: <path>"}`,
|
|
13946
|
-
numberWrittenAsString: (path, left, asNumber) => `"${path}" is a number in the state, but value: writes back what the element holds, a string: after the user enters 5 the state has "5", and "5" + 1 is "51" \u2014 nothing says so. Convert it on the way in: ${asNumber ? `valueAsNumber: ${path}, or ` : ""}an input filter on the left side, ${left}|number: ${path} (also |int, |float)`,
|
|
13966
|
+
numberWrittenAsString: (path, left, asNumber) => `"${path}" is a number in the state, but value: writes back what the element holds, a string: after the user enters 5 the state has "5", and "5" + 1 is "51" \u2014 nothing says so. Convert it on the way in: ${asNumber ? `valueAsNumber: ${path}, or ` : ""}an input filter on the left side, ${left}|number: ${path} (also |int, |float). 5.0 writes a number from a two-way value: on a number input (docs/migration-v5.md#number-input)`,
|
|
13947
13967
|
twoWayOutputFilter: (prop, filters, left, rhs, keystroke) => keystroke ? `${prop}: is two-way and writes back on every keystroke, and the output filter "${filters}" formats what the state holds each time: the field is rewritten while the user types \u2014 the caret jumps to the end, an IME composition is cut \u2014 and what the state receives is the field's formatted text (an output filter is not undone on the way back). Show the formatted text in another element, write back when the field is committed and format in a setter (${prop}#onchange:), or make the binding one-way: ${prop}#ro: ${rhs}` : `${prop}: is two-way, and nothing undoes the output filter "${filters}" on the way back: the element writes back the formatted value it shows, and the filter is then applied to that. Undo it with an input filter on the left side (${left}|<filter>: \u2026), show the formatted value in another element, or make the binding one-way: ${prop}#ro: ${rhs}`,
|
|
13948
13968
|
bodyBinding: (tag, attribute) => `${attribute} on <${tag}> is never bound: <wcs-state> binds what is inside <body>, not <body> or <html> themselves, so the bindings written here do nothing (an event handler never runs; class., attr. and the rest are never written). Move the binding to an element inside <body> (a wrapper, <main>), or write the value from $connectedCallback or a $watch handler (document.documentElement.lang = \u2026)`,
|
|
13949
13969
|
linkHandler: (property, handler) => `"${property}:" on <wcs-link> never runs "${handler}": the <wcs-link> itself is display: none, and what the user clicks is the <a> it generates beside itself, so no event reaches the host. Put the handler on an element inside the link (its children move into the <a>) or on an element around it; to navigate from a handler, write the router's navigateUrl (data-wcs="navigateUrl: \u2026" on <wcs-router>)`,
|
|
@@ -13954,7 +13974,7 @@ var en = {
|
|
|
13954
13974
|
},
|
|
13955
13975
|
frequencyInvalid: (tag, value, suggested) => `frequency="${value}" is not a positive number, so <${tag}> reads it as "none" and the sensor runs at the browser's default rate, without a word. ${suggested === null ? "Write a positive number (Hz), or remove the attribute for the default rate" : `Write the number alone: frequency="${suggested}"`}`,
|
|
13956
13976
|
targetSelector: (tag, value) => `The target of <${tag}> is a CSS selector: target="${value}" selects <${value}> elements, and this document has none \u2014 it has an element with id="${value}". No target is found, so ${TARGET_EFFECT_EN[tag] ?? "the element does nothing"}. To name the id, write target="#${value}"`,
|
|
13957
|
-
commandEventArgument: (property, token, tag, method, more) => `"${property}: ${token}" emits the token straight from the event, so the commands that receive it are called with the event as their first argument. ${method}() of <${tag}> takes an argument there, and gets the event: ${method}(event)${more > 0 ? ` (and ${more} more such ${more === 1 ? "receiver" : "receivers"})` : ""}. Emit from a state method instead \u2014 write ${property}: <method>, with <method>() { this.${token}.emit(\u2026) } passing what ${method}() takes (emit with no argument when there is nothing to pass)`,
|
|
13977
|
+
commandEventArgument: (property, token, tag, method, more) => `"${property}: ${token}" emits the token straight from the event, so the commands that receive it are called with the event as their first argument. ${method}() of <${tag}> takes an argument there, and gets the event: ${method}(event)${more > 0 ? ` (and ${more} more such ${more === 1 ? "receiver" : "receivers"})` : ""}. Emit from a state method instead \u2014 write ${property}: <method>, with <method>() { this.${token}.emit(\u2026) } passing what ${method}() takes (emit with no argument when there is nothing to pass). 5.0 emits with no arguments from this form (docs/migration-v5.md#command-event-argument)`,
|
|
13958
13978
|
outputPathWritten: (path, tag, member, commands) => `"${path}" is bound to "${member}" of <${tag}>, an output: the element writes it, and a write from a script does not reach the element. Assigning true makes the element do nothing \u2014 only the page now says so. ${commands.length === 0 ? `<${tag}> has no command: the value is the element's to report. Remove the assignment` : `Ask the element with a command (${commands.join(", ")} \u2014 bind command.<method>: $command.<name> and call this.$command.<name>.emit() here), and let the element write "${path}"`}`,
|
|
13959
13979
|
filterUnknown: (n) => `Filter "${n}" is not a built-in filter`,
|
|
13960
13980
|
filterRemoved: (n, c) => `Filter "${n}" was removed in 4.0 (it was the 3.x old name of "${c}") \u2014 write "${c}"`,
|
|
@@ -14015,19 +14035,19 @@ var en = {
|
|
|
14015
14035
|
nativeCommandUnknown: (method, tag, allowed) => `"${method}" is not a command of a native <${tag}> (its commands: ${allowed}; the runtime throws wcs/token-misconfigured at initialization)`,
|
|
14016
14036
|
spreadNoBindable: (tag) => `'...' (spread) requires <${tag}> to expose a valid wcBindable declaration \u2014 this tag declares none, so the runtime raises an error`,
|
|
14017
14037
|
tagEventTokenKeyUnknown: (name, tag, declared) => `eventToken key "${name}" is not a wcBindable property of <${tag}>. Raw DOM event names never fire \u2014 use the property name (declared: ${declared})`,
|
|
14018
|
-
handleBoundAsValue: (name, tag) => `"${name}" of <${tag}> is a live resource (a handle), not a value. Bound to a state path, it puts an object no snapshot or SSR can carry into the state \u2014 receive it with eventToken.${name}: and hand it to the next element as a command argument`,
|
|
14038
|
+
handleBoundAsValue: (name, tag) => `"${name}" of <${tag}> is a live resource (a handle), not a value. Bound to a state path, it puts an object no snapshot or SSR can carry into the state \u2014 receive it with eventToken.${name}: and hand it to the next element as a command argument. 5.0 refuses a handle bound to a path (docs/migration-v5.md#handle-as-value)`,
|
|
14019
14039
|
ariaAttrUnknown: (name) => `"${name}" is not a WAI-ARIA attribute. setAttribute writes it anyway, and assistive technology silently ignores it`,
|
|
14020
14040
|
liveRegionInserted: (attribute, by, condition) => `This live region (${attribute}) is inserted with its text when ${by === "route" ? "its <wcs-route> is entered" : by === "for" ? "its for: row is added" : "its branch appears"} (${condition === null ? "it holds text written in the markup" : `its text is bound to what the condition "${condition}" reads, so the branch appears with the text`}). A screen reader announces a region whose text changes while it is in the page, so this text is not announced (an inserted role="alert" is the one form announced on insertion) \u2014 a status message meant to be heard belongs in a region that is always in the page: keep the region outside the ${by === "route" ? "route" : "template"}, bind its textContent: to the message, and empty it when there is nothing to say`,
|
|
14021
14041
|
didYouMean: (c) => `. Did you mean "${c}"?`,
|
|
14022
14042
|
none: () => `none`,
|
|
14023
|
-
triggerSeededTruthy: (path) => `The trigger-bound slot "${path}" is seeded with true. trigger has no edge detection (any truthy write fires, and it bypasses manual), so it fires immediately at bind. Seed it with false`,
|
|
14024
|
-
storageSeedClobber: (path, raw) => `The <wcs-storage> value-bound slot "${path}" is seeded with ${shortSeed(raw)}. The initial write-back overwrites the persisted value on every load \u2014 add #init=element to the binding (\`value#init=element: ${path}\`) so the stored value wins, and seed the slot with null (what an empty key loads as)`,
|
|
14025
|
-
storageInitSeed: (path, raw) => `The <wcs-storage> value-bound slot "${path}" is seeded with ${shortSeed(raw)}, but #init=element pulls the element's value into it. On a first visit (an empty key) that is null, so the seed is replaced by null \u2014 seed it with null and supply the default where you read it (\`this.${path} ?? \u2026\`), or bind an accessor pair whose setter ignores null`,
|
|
14043
|
+
triggerSeededTruthy: (path) => `The trigger-bound slot "${path}" is seeded with true. trigger has no edge detection (any truthy write fires, and it bypasses manual), so it fires immediately at bind. Seed it with false. In 5.0 the element wins the first sync of a trigger: nothing fires, and the slot becomes false (docs/migration-v5.md#trigger-first-sync)`,
|
|
14044
|
+
storageSeedClobber: (path, raw) => `The <wcs-storage> value-bound slot "${path}" is seeded with ${shortSeed(raw)}. The initial write-back overwrites the persisted value on every load \u2014 add #init=element to the binding (\`value#init=element: ${path}\`) so the stored value wins, and seed the slot with null (what an empty key loads as). In 5.0 the stored value wins the first sync (docs/migration-v5.md#storage-first-sync)`,
|
|
14045
|
+
storageInitSeed: (path, raw) => `The <wcs-storage> value-bound slot "${path}" is seeded with ${shortSeed(raw)}, but #init=element pulls the element's value into it. On a first visit (an empty key) that is null, so the seed is replaced by null \u2014 seed it with null and supply the default where you read it (\`this.${path} ?? \u2026\`), or bind an accessor pair whose setter ignores null. In 5.0 a key that is not stored leaves the seed (docs/migration-v5.md#storage-missing-key)`,
|
|
14026
14046
|
storagePairClobber: (path) => `The <wcs-storage> value is bound to the accessor pair "${path}" without #init=element. The state's side goes first, so on every load the getter's starting value is saved over the stored one, and the setter never receives it \u2014 add #init=element (\`value#init=element: ${path}\`)`,
|
|
14027
14047
|
inputNestedWrite: (tag, input, path, example) => `"${path}" is bound to the input "${input}" of <${tag}>, but the page writes below it ("${example}"). A binding is re-applied only when "${path}" itself is assigned, so those writes never reach <${tag}> \u2014 bind a getter that reads the fields by path (\`this["${example}"]\`, \`$getAll\`) and returns a new value: with a setter beside it to take the element's value in as well (the accessor pair, ${input}#init=element: <getter>), or one way when the element's value is not taken in (${input}#ro: <getter> \u2014 with neither a setter nor #ro, what the element reports is written back to the getter and refused: wcs/path-readonly). Or replace "${path}" instead of writing below it, or bind a separate key to <${tag}> and assign it a copy when the value should be passed on (a getter is re-read on every write below "${path}": <wcs-storage> would store each one)`,
|
|
14028
14048
|
inputNestedWriteOneShot: (tag, input, path, example) => `"${path}" is bound to the input "${input}" of <${tag}>, but the page writes below it ("${example}"). A binding is re-applied only when "${path}" itself is assigned, and <${tag}> resets "${input}" to null after every request, so the next request goes without it \u2014 build a new object in the handler that starts the request (\`this.submitBody = { \u2026 }\`) and bind that`,
|
|
14029
14049
|
devtoolsAfterState: () => `Load @wcstack/devtools/auto before @wcstack/state/auto (loaded later, the DevTools timeline starts when it attaches; 4.0 sends it the wiring that is there already)`,
|
|
14030
|
-
baseHrefMissing: () => `An SPA using @wcstack/router needs <base href="/"> in <head>, or a synchronous <head> script that creates one \u2014 the form for a locale in the basename (without it, deep links misderive the basename)`,
|
|
14050
|
+
baseHrefMissing: () => `An SPA using @wcstack/router needs <base href="/"> in <head>, or a synchronous <head> script that creates one \u2014 the form for a locale in the basename (without it, deep links misderive the basename). 5.0 derives no basename (docs/migration-v5.md#base-href)`,
|
|
14031
14051
|
routerOutletMisplaced: () => `This <wcs-outlet> is not right after a <wcs-router>, so no router uses it: a router uses only the element right after it as its outlet, and makes an outlet of its own there when that is not a <wcs-outlet>. The routes render right after the router and this outlet stays empty \u2014 move it right after the <wcs-router>`,
|
|
14032
14052
|
linkQueryKeyIgnored: (toKeys, named) => `None of the keys this <wcs-link>'s to sets (${toKeys}) is named in query-keys (${named}). A link with query-keys compares only the keys it names, so its own query plays no part: it is current wherever ${named} match, whatever ${toKeys} is \u2014 tabs written this way are all current at once. Name the keys the link is for (query-keys="${toKeys}")`,
|
|
14033
14053
|
signalsDualEntry: (later, earlier, versions) => versions !== null ? `"${later}" and "${earlier}" load two versions of @wcstack/signals (${versions[0]} and ${versions[1]}), and each has its own reactive core: a signal of one is not seen by an effect of the other, so the page stops updating across them, without a word. Load one version, and import every name from one entry \u2014 @wcstack/signals/dom has all of them` : `"${later}" and "${earlier}" are two entries of @wcstack/signals that each carry their own reactive core here (a CDN that bundles each entry on its own \u2014 esm.run, jsDelivr's +esm, esm.sh \u2014 or files of two builds): a signal of one is not seen by an effect of the other, so the page stops updating across them, without a word. Import every name from one entry \u2014 @wcstack/signals/dom has all of them`,
|
|
@@ -22729,6 +22749,88 @@ function validateHtmlSinkInputs(html, bindAttribute = "data-wcs", locale2) {
|
|
|
22729
22749
|
return out;
|
|
22730
22750
|
}
|
|
22731
22751
|
|
|
22752
|
+
// src/service/v5MigrationValidator.ts
|
|
22753
|
+
var STORAGE_TAG = "wcs-storage";
|
|
22754
|
+
var REMOVED_BEHAVIORS = /* @__PURE__ */ new Set(["sameValueGuard", "enableDirectionalInitialSync"]);
|
|
22755
|
+
function validateV5Migration(html, bindAttribute = "data-wcs", stateTagName = "wcs-state", locale2, fileReader) {
|
|
22756
|
+
const msgs = getMessages(locale2);
|
|
22757
|
+
const out = [];
|
|
22758
|
+
const report = (start, end, message) => {
|
|
22759
|
+
out.push({ code: WcsDiagnosticCode.V5Migration, start, end, message, severity: "info" });
|
|
22760
|
+
};
|
|
22761
|
+
if (html.includes(STORAGE_TAG)) {
|
|
22762
|
+
for (const tag of findStartTagRegions(html)) {
|
|
22763
|
+
if (tag.tagName !== STORAGE_TAG) continue;
|
|
22764
|
+
const key = extractAttributeSpan(html.slice(tag.start, tag.end), "key", tag.start);
|
|
22765
|
+
if (key !== null) report(key.start, key.end, msgs.v5StorageKey(html.slice(key.valueStart, key.valueEnd)));
|
|
22766
|
+
}
|
|
22767
|
+
}
|
|
22768
|
+
if (html.includes("attr.on") || html.includes("trigger") || html.includes(STORAGE_TAG)) {
|
|
22769
|
+
let lookup = null;
|
|
22770
|
+
let ignored = null;
|
|
22771
|
+
for (const attr of findAllBindAttributes(html, bindAttribute)) {
|
|
22772
|
+
ignored ??= findIgnoredRanges(html, bindAttribute);
|
|
22773
|
+
if (ignored.some(([start, end]) => attr.valueStart >= start && attr.valueStart < end)) continue;
|
|
22774
|
+
const bindings = [];
|
|
22775
|
+
let pos = 0;
|
|
22776
|
+
for (const binding of splitBindingExpressions(attr.value)) {
|
|
22777
|
+
const bindingStart = attr.valueStart + pos;
|
|
22778
|
+
pos += binding.length + 1;
|
|
22779
|
+
const parsed = parseBindingExpression(binding);
|
|
22780
|
+
if (parsed.path === null) continue;
|
|
22781
|
+
const leading = binding.length - binding.trimStart().length;
|
|
22782
|
+
const start = bindingStart + leading;
|
|
22783
|
+
bindings.push({ name: propertyName(parsed.property), start, end: start + parsed.property.length });
|
|
22784
|
+
}
|
|
22785
|
+
for (const binding of bindings) {
|
|
22786
|
+
if (/^attr\.on[a-z]+$/i.test(binding.name)) {
|
|
22787
|
+
report(binding.start, binding.end, msgs.v5AttrOn(binding.name.slice("attr.".length).toLowerCase()));
|
|
22788
|
+
} else if (binding.name === "key" && attr.tagName === STORAGE_TAG) {
|
|
22789
|
+
report(binding.start, binding.end, msgs.v5StorageKeyBinding());
|
|
22790
|
+
}
|
|
22791
|
+
}
|
|
22792
|
+
const trigger = bindings.findIndex((binding) => binding.name === "trigger");
|
|
22793
|
+
if (trigger < 0 || trigger === bindings.length - 1 || attr.tagName === void 0 || !attr.tagName.includes("-")) continue;
|
|
22794
|
+
lookup ??= createContractLookup(html, fileReader);
|
|
22795
|
+
const contract = lookup(attr.tagName);
|
|
22796
|
+
if (contract === null || memberRole(contract, "trigger") === null) continue;
|
|
22797
|
+
const later = bindings.slice(trigger + 1).find((binding) => {
|
|
22798
|
+
const role = memberRole(contract, binding.name);
|
|
22799
|
+
return role === "input" || role === "two-way";
|
|
22800
|
+
});
|
|
22801
|
+
if (later !== void 0) report(bindings[trigger].start, bindings[trigger].end, msgs.v5TriggerBeforeInput(later.name));
|
|
22802
|
+
}
|
|
22803
|
+
}
|
|
22804
|
+
if (html.includes("$postUpdate") || html.includes("$behavior")) {
|
|
22805
|
+
for (const element2 of parseWcsStateElements(html, stateTagName)) {
|
|
22806
|
+
for (const block of element2.scriptBlocks) {
|
|
22807
|
+
if (block.content.includes("$postUpdate")) {
|
|
22808
|
+
const source = blankComments2(block.content);
|
|
22809
|
+
const calls = createApiCallRegex(["postUpdate"]);
|
|
22810
|
+
for (let match = calls.exec(source); match !== null; match = calls.exec(source)) {
|
|
22811
|
+
const call = splitCallArgs(source, match.index + match[0].length);
|
|
22812
|
+
if (call === null || call.args.length === 0) continue;
|
|
22813
|
+
const path = literalString(call.args[0]);
|
|
22814
|
+
if (path === null) continue;
|
|
22815
|
+
const segments = path.split(".");
|
|
22816
|
+
const at2 = segments.indexOf("*");
|
|
22817
|
+
if (at2 <= 0) continue;
|
|
22818
|
+
const start = block.contentStart + call.starts[0];
|
|
22819
|
+
report(start, start + call.args[0].trimEnd().length, msgs.v5PostUpdateWildcard(path, segments.slice(0, at2).join(".")));
|
|
22820
|
+
}
|
|
22821
|
+
}
|
|
22822
|
+
if (block.content.includes("$behavior") && element2.mountPath === null && !element2.bindComponent) {
|
|
22823
|
+
for (const entry of analyzeDeclarationEntries(block.content, "$behavior")) {
|
|
22824
|
+
if (!REMOVED_BEHAVIORS.has(entry.name) || entry.value !== "false") continue;
|
|
22825
|
+
report(block.contentStart + entry.start, block.contentStart + entry.end, msgs.v5BehaviorRemoved(entry.name));
|
|
22826
|
+
}
|
|
22827
|
+
}
|
|
22828
|
+
}
|
|
22829
|
+
}
|
|
22830
|
+
}
|
|
22831
|
+
return out;
|
|
22832
|
+
}
|
|
22833
|
+
|
|
22732
22834
|
// src/service/eventBeforeBindingValidator.ts
|
|
22733
22835
|
var STARTED_BY = {
|
|
22734
22836
|
"wcs-sse": "url",
|
|
@@ -23866,6 +23968,7 @@ function validateText(text3, options, applicationSchema, env) {
|
|
|
23866
23968
|
out.push(...validateModuleTopReads(text3, stateTagName, locale2));
|
|
23867
23969
|
out.push(...validateWatchDeclarations(text3, stateTagName, locale2, fileReader, bindAttribute, applicationSchema));
|
|
23868
23970
|
out.push(...validateStreamDeclarations(text3, stateTagName, locale2));
|
|
23971
|
+
out.push(...validateV5Migration(text3, bindAttribute, stateTagName, locale2, fileReader));
|
|
23869
23972
|
out.push(...validateScanDeclarations(text3, stateTagName, locale2));
|
|
23870
23973
|
out.push(...validateRecursion(text3, stateTagName, locale2));
|
|
23871
23974
|
out.push(...validateConfigDeclarations(text3, stateTagName, locale2));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wcstack/lint",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.0",
|
|
4
4
|
"description": "Static-contract validator CLI (wcs-validate) for wcstack data-wcs bindings and wcstack.manifest.json sidecars. Thin npm wrapper around the wcstack-intellisense validator core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|