@aedis/cli 0.5.2 → 0.7.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.md CHANGED
@@ -6,9 +6,9 @@ before any file is written, npm dependencies are pinned to exact versions at lea
6
6
  script runs.
7
7
 
8
8
  ```bash
9
- npx @aedis/cli@0.5.2 init
10
- npx @aedis/cli@0.5.2 add button approval-card
11
- npx @aedis/cli@0.5.2 diff
9
+ npx @aedis/cli@0.7.0 init
10
+ npx @aedis/cli@0.7.0 add button approval-card
11
+ npx @aedis/cli@0.7.0 diff
12
12
  ```
13
13
 
14
14
  Always pin the version, as above. Never run `npx aedis`: the unscoped `aedis` package on npm is not this one.
package/dist/aedis.js CHANGED
@@ -246,6 +246,21 @@ const colors = {
246
246
  dark: "rgba(0,0,0,0.55)",
247
247
  brand: "rgba(26,39,64,0.32)"
248
248
  },
249
+ "on-media": {
250
+ light: "#ffffff",
251
+ dark: "#ffffff",
252
+ brand: "#ffffff"
253
+ },
254
+ "media-scrim": {
255
+ light: "rgba(0,0,0,0.6)",
256
+ dark: "rgba(0,0,0,0.6)",
257
+ brand: "rgba(0,0,0,0.6)"
258
+ },
259
+ "media-scrim-strong": {
260
+ light: "rgba(0,0,0,0.8)",
261
+ dark: "rgba(0,0,0,0.8)",
262
+ brand: "rgba(0,0,0,0.8)"
263
+ },
249
264
  "chart-1": {
250
265
  light: "#2457d6",
251
266
  dark: "#7aa2ff",
@@ -432,6 +447,11 @@ const contrastPairs = [
432
447
  "destructive-solid",
433
448
  4.5
434
449
  ],
450
+ [
451
+ "on-media",
452
+ "media-scrim",
453
+ 4.5
454
+ ],
435
455
  [
436
456
  "link",
437
457
  "surface",
@@ -1629,7 +1649,7 @@ function planFiles(items, config, root) {
1629
1649
  }
1630
1650
  //#endregion
1631
1651
  //#region src/cli.ts
1632
- const VERSION = "0.5.2";
1652
+ const VERSION = "0.7.0";
1633
1653
  /** What `aedis init` installs: config, theme tokens, cn and the security primitives. */
1634
1654
  const INIT_ITEMS = [
1635
1655
  "theme",
@@ -1793,7 +1813,7 @@ async function run(argv, io) {
1793
1813
  }
1794
1814
  if (!existsSync(path.join(root, "package.json"))) throw new Error(`${root} has no package.json; run inside your app`);
1795
1815
  if (command === "init") {
1796
- const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.5.2`);
1816
+ const config = readConfig(root) ?? defaultConfig(root, flags.release ?? `v0.7.0`);
1797
1817
  if (!isRelease(config.release)) throw new Error(`invalid release ${config.release}`);
1798
1818
  const decoded = flags.preset === void 0 ? null : decodePreset(flags.preset);
1799
1819
  if (decoded && !decoded.ok) throw new Error(`preset refused: ${decoded.error}`);
@@ -1829,7 +1849,7 @@ ${themeToCss(theme)}
1829
1849
  }
1830
1850
  if (command === "theme" && args[0] === "import") {
1831
1851
  if (!args[1]) throw new Error("theme import: give the theme's JSON file");
1832
- const config = readConfig(root) ?? defaultConfig(root, `v0.5.2`);
1852
+ const config = readConfig(root) ?? defaultConfig(root, `v0.7.0`);
1833
1853
  const input = insideProject(root, path.relative(root, path.resolve(io.cwd, args[1])));
1834
1854
  const result = themeImport(readFileSync(input, "utf8"), path.basename(input));
1835
1855
  if (!result.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aedis/cli",
3
- "version": "0.5.2",
3
+ "version": "0.7.0",
4
4
  "description": "Add Aedis UI components to your app with verified provenance: signed releases, exact and aged dependencies, no install scripts.",
5
5
  "keywords": [
6
6
  "aedis",