@wcstack/state 3.2.0 → 3.3.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 +106 -76
- package/README.md +107 -77
- package/dist/auto.min.js +1 -1
- package/dist/auto.min.js.map +1 -1
- package/dist/index.d.ts +45 -8
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/manifest.d.ts +28 -5
- package/dist/manifest.esm.js +253 -246
- package/dist/parser.d.ts +16 -2
- package/dist/parser.esm.js +223 -50
- 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/declarationAliases.js +1 -1
- package/dist/split/chunks/declarationAliases.js.map +1 -1
- package/dist/split/chunks/declarationHooks.js +2 -0
- package/dist/split/chunks/declarationHooks.js.map +1 -0
- package/dist/split/chunks/featureBridge.js +2 -0
- package/dist/split/chunks/featureBridge.js.map +1 -0
- 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/getAllPropertyDescriptors.js.map +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 +10 -2
- package/dist/split/core.js +1 -1
- package/dist/split/core.js.map +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/formats.js.map +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/dist/wcs-manifest.json +36 -21
- package/package.json +1 -1
- package/dist/split/chunks/mount.js +0 -2
- package/dist/split/chunks/mount.js.map +0 -1
- package/dist/split/chunks/watchRuntime.js +0 -2
- package/dist/split/chunks/watchRuntime.js.map +0 -1
package/dist/manifest.d.ts
CHANGED
|
@@ -39,12 +39,26 @@ declare const builtinFilterMeta: Record<string, IFilterMeta>;
|
|
|
39
39
|
*/
|
|
40
40
|
declare const builtinFilterAliases: Readonly<Record<string, string>>;
|
|
41
41
|
|
|
42
|
+
declare const DECLARATION_ALIASES: Readonly<Record<string, string>>;
|
|
43
|
+
|
|
42
44
|
type BindingType = 'text' | 'prop' | 'event' | 'for' | 'if' | 'elseif' | 'else' | 'radio' | 'checkbox' | 'spread';
|
|
43
45
|
|
|
44
46
|
declare const STRUCTURAL_BINDING_TYPE_SET: Set<BindingType>;
|
|
45
47
|
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
+
/**
|
|
49
|
+
* マニフェストのバージョン(構造を変えたら上げる)。
|
|
50
|
+
*
|
|
51
|
+
* 3.1 で `syntax.bindingTypes.explicitPropertyPrefix`、3.2 で `filterAliases`、
|
|
52
|
+
* 3.x の次で `declarationAliases` / `apiAliases` を足したので 2。
|
|
53
|
+
* 消費側(vscode-wcs)はまだこの定数を参照していないが、公開している以上ドリフトさせない。
|
|
54
|
+
*/
|
|
55
|
+
declare const WCS_MANIFEST_VERSION = 2;
|
|
56
|
+
/**
|
|
57
|
+
* state API の旧名 → 正式名(要件 B12・docs/state-3x-naming.ja.md)。正本は
|
|
58
|
+
* `proxy/traps/get.ts` の case ラベルで、ここはそれを機械可読にした写し
|
|
59
|
+
* (一致は `__tests__/manifest.test.ts` が固定する)。
|
|
60
|
+
*/
|
|
61
|
+
declare const STATE_API_ALIASES: Readonly<Record<string, string>>;
|
|
48
62
|
interface IWcsManifest {
|
|
49
63
|
version: number;
|
|
50
64
|
syntax: {
|
|
@@ -109,13 +123,22 @@ interface IWcsManifest {
|
|
|
109
123
|
filterMeta: Record<string, IFilterMeta>;
|
|
110
124
|
/** 組み込みフィルタの旧名 → 正式名(要件 B12)。旧名も解決するが、ツールは正式名を提案する */
|
|
111
125
|
filterAliases: Readonly<Record<string, string>>;
|
|
112
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* 宣言キーの旧名 → 正式名(要件 B12。`$updatedCallback` → `$renderedCallback`、
|
|
128
|
+
* `$streams` → `$stream`)。ランタイムは旧名も受けるが、ツールは正式名を提案する。
|
|
129
|
+
* `reservedLifecycle` / `reservedStateApi` は**正式名だけ**なので、旧名が予約かどうかは
|
|
130
|
+
* この表と併せて判断する
|
|
131
|
+
*/
|
|
132
|
+
declarationAliases: Readonly<Record<string, string>>;
|
|
133
|
+
/** state API の旧名 → 正式名(`$trackDependency` → `$dependOn` 等、要件 B12) */
|
|
134
|
+
apiAliases: Readonly<Record<string, string>>;
|
|
135
|
+
/** 予約ライフサイクルフック名(正式名のみ。旧名は `declarationAliases` を見る) */
|
|
113
136
|
reservedLifecycle: readonly string[];
|
|
114
|
-
/** 予約 state API(プロトコル系の `$`
|
|
137
|
+
/** 予約 state API(プロトコル系の `$` 名前空間。正式名のみ) */
|
|
115
138
|
reservedStateApi: readonly string[];
|
|
116
139
|
}
|
|
117
140
|
/** 機械可読な単一正本を返す。vscode-wcs はこれを消費する想定。 */
|
|
118
141
|
declare function getWcsManifest(): IWcsManifest;
|
|
119
142
|
|
|
120
|
-
export { STRUCTURAL_BINDING_TYPE_SET, WCS_MANIFEST_VERSION, builtinFilterAliases, builtinFilterMeta, getWcsManifest };
|
|
143
|
+
export { DECLARATION_ALIASES, STATE_API_ALIASES, STRUCTURAL_BINDING_TYPE_SET, WCS_MANIFEST_VERSION, builtinFilterAliases, builtinFilterMeta, getWcsManifest };
|
|
121
144
|
export type { FilterArgType, FilterResultType, IFilterMeta, IWcsManifest };
|