@adobe/design-data-wasm 0.4.3 → 0.4.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/design-data-wasm",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "WebAssembly bindings for design-data-core — query, validate, resolve, diff, and registry helpers for Spectrum design tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./pkg/node/design_data_wasm.js",
|
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* A list of suggestion results from `Dataset.suggest()`. Typed as `SuggestResult[]` in TypeScript.
|
|
5
|
+
*
|
|
6
|
+
* `hashmap_as_object`: nests `SuggestResult.name_object`/`value`, see `TokenResultArray`.
|
|
5
7
|
*/
|
|
6
8
|
export type SuggestResultArray = SuggestResult[];
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* A list of token results from a query. Typed as `TokenResult[]` in TypeScript.
|
|
12
|
+
*
|
|
13
|
+
* `hashmap_as_object`: `TokenResult.raw` is a `serde_json::Value` — without this,
|
|
14
|
+
* serde-wasm-bindgen\'s default serializer turns nested JSON objects into JS `Map`s,
|
|
15
|
+
* which `JSON.stringify` (used by every MCP tool response) silently renders as `{}`.
|
|
10
16
|
*/
|
|
11
17
|
export type TokenResultArray = TokenResult[];
|
|
12
18
|
|
|
@@ -68,6 +74,8 @@ export interface SuggestResult {
|
|
|
68
74
|
|
|
69
75
|
/**
|
|
70
76
|
* A single resolved token result from `Dataset.resolve()`.
|
|
77
|
+
*
|
|
78
|
+
* `hashmap_as_object`: nests `TokenResult.raw`, see `TokenResultArray`.
|
|
71
79
|
*/
|
|
72
80
|
export interface ResolveResult {
|
|
73
81
|
token: TokenResult;
|
|
@@ -162,6 +170,9 @@ export type Severity = "error" | "warning" | "info";
|
|
|
162
170
|
* The result of `Dataset.diff()`.
|
|
163
171
|
*
|
|
164
172
|
* Mirrors `design_data_core::diff::DiffReport` with typed arrays for each change category.
|
|
173
|
+
*
|
|
174
|
+
* `hashmap_as_object`: `PropertyChange.new_value`/`.original_value` are
|
|
175
|
+
* `serde_json::Value`, see `TokenResultArray`.
|
|
165
176
|
*/
|
|
166
177
|
export interface DiffResult {
|
|
167
178
|
renamed: RenamedToken[];
|
|
@@ -184,6 +195,8 @@ export interface DiffResult {
|
|
|
184
195
|
* // r.chain → [\"{accent-color-100}\", \"{blue-100}\", \"rgb(245, 249, 255)\"]
|
|
185
196
|
* // r.value → \"rgb(245, 249, 255)\
|
|
186
197
|
* ```
|
|
198
|
+
*
|
|
199
|
+
* `hashmap_as_object`: `value` is a `serde_json::Value`, see `TokenResultArray`.
|
|
187
200
|
*/
|
|
188
201
|
export interface ReferenceChainResult {
|
|
189
202
|
/**
|
|
Binary file
|
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* A list of suggestion results from `Dataset.suggest()`. Typed as `SuggestResult[]` in TypeScript.
|
|
5
|
+
*
|
|
6
|
+
* `hashmap_as_object`: nests `SuggestResult.name_object`/`value`, see `TokenResultArray`.
|
|
5
7
|
*/
|
|
6
8
|
export type SuggestResultArray = SuggestResult[];
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* A list of token results from a query. Typed as `TokenResult[]` in TypeScript.
|
|
12
|
+
*
|
|
13
|
+
* `hashmap_as_object`: `TokenResult.raw` is a `serde_json::Value` — without this,
|
|
14
|
+
* serde-wasm-bindgen\'s default serializer turns nested JSON objects into JS `Map`s,
|
|
15
|
+
* which `JSON.stringify` (used by every MCP tool response) silently renders as `{}`.
|
|
10
16
|
*/
|
|
11
17
|
export type TokenResultArray = TokenResult[];
|
|
12
18
|
|
|
@@ -68,6 +74,8 @@ export interface SuggestResult {
|
|
|
68
74
|
|
|
69
75
|
/**
|
|
70
76
|
* A single resolved token result from `Dataset.resolve()`.
|
|
77
|
+
*
|
|
78
|
+
* `hashmap_as_object`: nests `TokenResult.raw`, see `TokenResultArray`.
|
|
71
79
|
*/
|
|
72
80
|
export interface ResolveResult {
|
|
73
81
|
token: TokenResult;
|
|
@@ -162,6 +170,9 @@ export type Severity = "error" | "warning" | "info";
|
|
|
162
170
|
* The result of `Dataset.diff()`.
|
|
163
171
|
*
|
|
164
172
|
* Mirrors `design_data_core::diff::DiffReport` with typed arrays for each change category.
|
|
173
|
+
*
|
|
174
|
+
* `hashmap_as_object`: `PropertyChange.new_value`/`.original_value` are
|
|
175
|
+
* `serde_json::Value`, see `TokenResultArray`.
|
|
165
176
|
*/
|
|
166
177
|
export interface DiffResult {
|
|
167
178
|
renamed: RenamedToken[];
|
|
@@ -184,6 +195,8 @@ export interface DiffResult {
|
|
|
184
195
|
* // r.chain → [\"{accent-color-100}\", \"{blue-100}\", \"rgb(245, 249, 255)\"]
|
|
185
196
|
* // r.value → \"rgb(245, 249, 255)\
|
|
186
197
|
* ```
|
|
198
|
+
*
|
|
199
|
+
* `hashmap_as_object`: `value` is a `serde_json::Value`, see `TokenResultArray`.
|
|
187
200
|
*/
|
|
188
201
|
export interface ReferenceChainResult {
|
|
189
202
|
/**
|
|
Binary file
|