@adobe/spectrum-tokens 12.19.0 → 12.20.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/src/layout.json CHANGED
@@ -195,66 +195,6 @@
195
195
  "value": "2dp",
196
196
  "uuid": "f9456531-ab61-4c14-b7af-7016ce1c0d3e"
197
197
  },
198
- "workflow-icon-size-50": {
199
- "sets": {
200
- "desktop": {
201
- "value": "14px",
202
- "uuid": "1423caf1-75ca-4ca8-aa6a-22dcf3655b0e"
203
- },
204
- "mobile": {
205
- "value": "18px",
206
- "uuid": "4c4cb541-7d42-4bb4-9c86-7197c4600896"
207
- }
208
- }
209
- },
210
- "workflow-icon-size-75": {
211
- "sets": {
212
- "desktop": {
213
- "value": "16px",
214
- "uuid": "85cdef34-0682-45eb-ac06-98c76883cdf7"
215
- },
216
- "mobile": {
217
- "value": "20px",
218
- "uuid": "b720c214-babe-426d-9629-9ec60d5e8622"
219
- }
220
- }
221
- },
222
- "workflow-icon-size-100": {
223
- "sets": {
224
- "desktop": {
225
- "value": "18px",
226
- "uuid": "40abc60f-ab65-41ef-b724-a0f0bdd94d14"
227
- },
228
- "mobile": {
229
- "value": "22px",
230
- "uuid": "9e882a20-b8e1-4e9b-89f9-26f21db3cd78"
231
- }
232
- }
233
- },
234
- "workflow-icon-size-200": {
235
- "sets": {
236
- "desktop": {
237
- "value": "20px",
238
- "uuid": "6392e605-932e-456d-be53-149b624a04e2"
239
- },
240
- "mobile": {
241
- "value": "24px",
242
- "uuid": "9948e083-8c75-48f7-8e58-32c75ec76116"
243
- }
244
- }
245
- },
246
- "workflow-icon-size-300": {
247
- "sets": {
248
- "desktop": {
249
- "value": "22px",
250
- "uuid": "25908278-79d3-47f4-9b53-adbdd1c13e2a"
251
- },
252
- "mobile": {
253
- "value": "28px",
254
- "uuid": "df0dc6c3-59fc-4ee0-87a9-c3d49a07cf9c"
255
- }
256
- }
257
- },
258
198
  "spacing-50": {
259
199
  "value": "2px",
260
200
  "uuid": "1b06f6e2-d9be-4934-b3da-bed75986d104"
package/tasks/addIds.js CHANGED
@@ -1,3 +1,15 @@
1
+ /*
2
+ Copyright 2023 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+
1
13
  import { glob } from "glob";
2
14
  import crypto from "crypto"; // (not the fake money)
3
15
  import { writeFile, readFile } from "fs/promises";
package/tasks/diff.js CHANGED
@@ -21,7 +21,7 @@ import tmp from "tmp-promise";
21
21
 
22
22
  const execP = promisify(exec);
23
23
 
24
- const tag = "latest";
24
+ const tag = process.argv[2] || "latest";
25
25
  const tokenPath = "dist/json/variables.json";
26
26
  const localRootDir = join(dirname(fileURLToPath(import.meta.url)), "..");
27
27
  const localTokenPath = join(localRootDir, tokenPath);
@@ -71,6 +71,7 @@ async function getOldTokens() {
71
71
  });
72
72
  const oldTokenPath = join(tmpDir.path, "package", tokenPath);
73
73
  await access(oldTokenPath);
74
+ console.log(`Comparing against ${stdout.trim()}`);
74
75
  return JSON.parse(await readFile(oldTokenPath, { encoding: "utf8" }));
75
76
  }
76
77
 
@@ -0,0 +1,21 @@
1
+ /*
2
+ Copyright 2023 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+
13
+ import test from "ava";
14
+ import { glob } from "glob";
15
+ import { readFile } from "fs/promises";
16
+
17
+ test("check for uuids", async (t) => {
18
+ const manifest = JSON.parse(await readFile("manifest.json", "utf8"));
19
+ const fileNames = await glob("src/**/*.json");
20
+ t.deepEqual(manifest, fileNames);
21
+ });