@wcstack/state 3.3.0 → 3.4.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 +37 -10
- package/README.md +37 -10
- package/dist/auto.min.js +1 -1
- package/dist/auto.min.js.map +1 -1
- package/dist/index.d.ts +29 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/split/chunks/binder.js +1 -1
- package/dist/split/chunks/binder.js.map +1 -1
- package/dist/split/chunks/checkDependency.js +1 -1
- package/dist/split/chunks/checkDependency.js.map +1 -1
- package/dist/split/chunks/diagnosticsHooks.js.map +1 -1
- package/dist/split/chunks/featureBridge.js +1 -1
- package/dist/split/chunks/filterRegistry.js +1 -1
- package/dist/split/chunks/filterRegistry.js.map +1 -1
- package/dist/split/chunks/getAllPropertyDescriptors.js +1 -1
- package/dist/split/chunks/lifecycleHooks.js +1 -1
- package/dist/split/chunks/pathDiagnostics.js +1 -1
- package/dist/split/chunks/pathDiagnostics.js.map +1 -1
- package/dist/split/chunks/registerComponents.js +1 -1
- package/dist/split/chunks/registerComponents.js.map +1 -1
- package/dist/split/chunks/setAll.js +1 -1
- package/dist/split/chunks/setAll.js.map +1 -1
- package/dist/split/chunks/version.js +1 -1
- package/dist/split/core.d.ts +54 -0
- package/dist/split/core.js +1 -1
- package/dist/split/features/devtools.js +1 -1
- package/dist/split/features/devtools.js.map +1 -1
- package/dist/split/features/diagnostics.js +1 -1
- package/dist/split/features/diagnostics.js.map +1 -1
- package/dist/split/features/formats.js +1 -1
- package/dist/split/features/recursion.js +1 -1
- package/dist/split/features/recursion.js.map +1 -1
- package/dist/split/features/scopes.js +1 -1
- package/dist/split/features/scopes.js.map +1 -1
- package/dist/split/features/ssr.js +1 -1
- package/dist/split/features/ssr.js.map +1 -1
- package/dist/split/features/temporal.js +1 -1
- package/dist/split/features/temporal.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ interface IStateProxy extends IState {
|
|
|
90
90
|
}
|
|
91
91
|
type Mutability = "readonly" | "writable";
|
|
92
92
|
|
|
93
|
+
type ParseBindTextResult = IParsedBinding;
|
|
94
|
+
|
|
93
95
|
/**
|
|
94
96
|
* Filter/types.ts
|
|
95
97
|
*
|
|
@@ -106,6 +108,23 @@ type Mutability = "readonly" | "writable";
|
|
|
106
108
|
*/
|
|
107
109
|
type FilterFn<T = unknown> = (value: unknown) => T;
|
|
108
110
|
|
|
111
|
+
/**
|
|
112
|
+
* パース結果の変換フック(Phase 2 のマウント — impl-plan §3-0 の 1)。
|
|
113
|
+
* マウントされたスコープの収集は、これで各パース結果を親ツリーの絶対パスへ書き換える。
|
|
114
|
+
* `uuid` を持つエントリ(構造フラグメントの参照)には掛けない — フラグメント側の
|
|
115
|
+
* パース結果は登録時(collectStructuralFragments)に変換済みで、二重に掛けると
|
|
116
|
+
* 接頭辞が二重になる。
|
|
117
|
+
*/
|
|
118
|
+
type ParseResultTransform = (parsed: ParseBindTextResult, forPath?: string) => ParseBindTextResult;
|
|
119
|
+
interface IDeferredSpreadEntry {
|
|
120
|
+
readonly node: Node;
|
|
121
|
+
readonly tagName: string;
|
|
122
|
+
readonly parseResults: ParseBindTextResult[];
|
|
123
|
+
readonly transform?: ParseResultTransform;
|
|
124
|
+
/** 予約中の定義待ちの取り消し(`scheduleDeferredSpreads` が持つ。行の活性化し直しで待ちを重ねない) */
|
|
125
|
+
cancel?: () => void;
|
|
126
|
+
}
|
|
127
|
+
|
|
109
128
|
interface IContent {
|
|
110
129
|
readonly firstNode: Node | null;
|
|
111
130
|
readonly lastNode: Node | null;
|
|
@@ -125,6 +144,11 @@ interface IContent {
|
|
|
125
144
|
* 従来経路(deactivate + unmount)で解体する。
|
|
126
145
|
*/
|
|
127
146
|
tryDestroy(): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* まだ展開していない、未定義カスタム要素への spread(#330)。持つ行だけに付く(形を増やさない)。
|
|
149
|
+
* 活性化のたびに定義待ちへ予約し、展開したものは外れる
|
|
150
|
+
*/
|
|
151
|
+
spreads?: IDeferredSpreadEntry[];
|
|
128
152
|
}
|
|
129
153
|
|
|
130
154
|
/**
|
|
@@ -1414,6 +1438,11 @@ type DevtoolsEvent = {
|
|
|
1414
1438
|
readonly maxDepth: number;
|
|
1415
1439
|
/** 打ち切ったバッチに載っていたアドレスのパス(報告用) */
|
|
1416
1440
|
readonly paths: readonly string[];
|
|
1441
|
+
} | {
|
|
1442
|
+
readonly type: "state:render-chain-limit";
|
|
1443
|
+
readonly maxDepth: number;
|
|
1444
|
+
/** 打ち切ったバッチに載っていたアドレスのパス(= 直前の描画の中で書かれたパス) */
|
|
1445
|
+
readonly paths: readonly string[];
|
|
1417
1446
|
} | {
|
|
1418
1447
|
readonly type: "state:watch-fired";
|
|
1419
1448
|
/** `$watch` の宣言キー(ワイルドカードを含む生のパス) */
|