@wcstack/timer 1.31.0 → 1.33.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 +4 -0
- package/README.md +4 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -232,6 +232,10 @@ timer.start({ interval: 1000, repeat: 10 });
|
|
|
232
232
|
|
|
233
233
|
Core の構造サーフェスは wcstack I/O ノード横断の規範です([async-io-node-guidelines §3.9](../../docs/async-io-node-guidelines.ja.md))。要素なしで signals に束縛するには [@wcstack/signals — Core を直接束縛する](../signals/README.ja.md#core-を直接束縛する要素なし) を参照。
|
|
234
234
|
|
|
235
|
+
## アクセシビリティ
|
|
236
|
+
|
|
237
|
+
**WCAG 2.2.2 Pause, Stop, Hide(一時停止・停止・非表示)**: 他のコンテンツと並んで自動更新されるコンテンツには、ユーザーが使える一時停止が要る。部品はこのタグに揃っている — `pause` / `resume` / `stop` は第一級のコマンド — ので、基準を満たすのに必要なのはそこへ配線した可視のコントロール 1 つ(`command.pause: $command.…` か、要素メソッドを呼ぶクリックハンドラ)。`<wcs-timer>` がティッカー・カルーセル・カウントダウンなど見えるものを駆動しているなら、そのコントロールをユーザーに渡すこと。
|
|
238
|
+
|
|
235
239
|
## ライセンス
|
|
236
240
|
|
|
237
241
|
MIT
|
package/README.md
CHANGED
|
@@ -241,6 +241,10 @@ timer.start({ interval: 1000, repeat: 10 });
|
|
|
241
241
|
|
|
242
242
|
The structural Core surface is normative across wcstack IO nodes ([async-io-node-guidelines §3.9](../../docs/async-io-node-guidelines.md)); to bind it into signals with no element at all, see [@wcstack/signals — Binding a Core directly](../signals/README.md#binding-a-core-directly-no-element).
|
|
243
243
|
|
|
244
|
+
## Accessibility
|
|
245
|
+
|
|
246
|
+
**WCAG 2.2.2 Pause, Stop, Hide**: content that updates automatically alongside other content needs a user-reachable pause. The parts are already on this tag — `pause` / `resume` / `stop` are first-class commands — so meeting the criterion is one visible control wired to them (`command.pause: $command.…`, or a click handler calling the element's methods). If a `<wcs-timer>` drives a ticker, carousel, or countdown the user can see, give the user that control.
|
|
247
|
+
|
|
244
248
|
## License
|
|
245
249
|
|
|
246
250
|
MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -208,5 +208,11 @@ declare class Timer extends HTMLElement {
|
|
|
208
208
|
disconnectedCallback(): void;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
+
declare global {
|
|
212
|
+
interface HTMLElementTagNameMap {
|
|
213
|
+
"wcs-timer": Timer;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
211
217
|
export { TimerCore, Timer as WcsTimer, bootstrapTimer, getConfig };
|
|
212
218
|
export type { IWritableConfig, IWritableTagNames, TimerStartOptions, WcsTimerCommands, WcsTimerCoreCommands, WcsTimerCoreValues, WcsTimerInputs, WcsTimerTickDetail, WcsTimerValues };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wcstack/timer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "Declarative timer component for Web Components. Framework-agnostic interval/timeout primitive via wc-bindable-protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.esm.js",
|