@decantr/cli 1.7.8 → 1.7.9

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/dist/bin.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import "./chunk-ODJQZXHQ.js";
3
- import "./chunk-74G2RQDO.js";
2
+ import "./chunk-YSBFK43A.js";
3
+ import "./chunk-NZ4SGTDS.js";
4
4
  import "./chunk-KUDAVJOR.js";
@@ -250,11 +250,10 @@ ${themeBody}
250
250
  lines.push("} /* end @layer treatments */");
251
251
  const decoratorRules = [];
252
252
  if (themeDecoratorDefinitions) {
253
- for (const [className, definition] of Object.entries(themeDecoratorDefinitions)) {
254
- const props = definition?.suggested_properties ?? {};
253
+ const emitProps = (selector, props) => {
255
254
  const entries = Object.entries(props);
256
- if (entries.length === 0) continue;
257
- decoratorRules.push(`.${className} {`);
255
+ if (entries.length === 0) return;
256
+ decoratorRules.push(`${selector} {`);
258
257
  for (const [prop, value] of entries) {
259
258
  decoratorRules.push(` ${prop}: ${value};`);
260
259
  if (prop === "animation") {
@@ -264,6 +263,12 @@ ${themeBody}
264
263
  }
265
264
  decoratorRules.push("}");
266
265
  decoratorRules.push("");
266
+ };
267
+ for (const [className, definition] of Object.entries(themeDecoratorDefinitions)) {
268
+ emitProps(`.${className}`, definition?.suggested_properties ?? {});
269
+ emitProps(`.${className}:hover`, definition?.hover_properties ?? {});
270
+ emitProps(`.${className}:focus-visible`, definition?.focus_properties ?? {});
271
+ emitProps(`.${className}:active`, definition?.active_properties ?? {});
267
272
  }
268
273
  }
269
274
  const decoratorKeyframes = [];
@@ -14,7 +14,7 @@ import {
14
14
  scaffoldProject,
15
15
  syncRegistry,
16
16
  writeExecutionPackBundleArtifacts
17
- } from "./chunk-74G2RQDO.js";
17
+ } from "./chunk-NZ4SGTDS.js";
18
18
  import {
19
19
  buildGuardRegistryContext
20
20
  } from "./chunk-KUDAVJOR.js";
@@ -5445,7 +5445,7 @@ async function main() {
5445
5445
  break;
5446
5446
  }
5447
5447
  case "upgrade": {
5448
- const { cmdUpgrade } = await import("./upgrade-UXY2WUJH.js");
5448
+ const { cmdUpgrade } = await import("./upgrade-A3LEZKSD.js");
5449
5449
  const applyFlag = args.includes("--apply");
5450
5450
  await cmdUpgrade(process.cwd(), { apply: applyFlag });
5451
5451
  break;
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import "./chunk-ODJQZXHQ.js";
2
- import "./chunk-74G2RQDO.js";
1
+ import "./chunk-YSBFK43A.js";
2
+ import "./chunk-NZ4SGTDS.js";
3
3
  import "./chunk-KUDAVJOR.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RegistryClient,
3
3
  refreshDerivedFiles
4
- } from "./chunk-74G2RQDO.js";
4
+ } from "./chunk-NZ4SGTDS.js";
5
5
 
6
6
  // src/commands/upgrade.ts
7
7
  import { readFileSync, writeFileSync, existsSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decantr/cli",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "Decantr CLI — scaffold, audit, and maintain Decantr projects from the terminal",
5
5
  "author": "Decantr AI",
6
6
  "license": "MIT",
@@ -27,10 +27,10 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@decantr/core": "1.0.0",
31
- "@decantr/essence-spec": "1.0.1",
32
- "@decantr/registry": "1.0.1",
33
- "@decantr/verifier": "1.0.1"
30
+ "@decantr/core": "1.0.1",
31
+ "@decantr/registry": "1.0.2",
32
+ "@decantr/essence-spec": "1.0.3",
33
+ "@decantr/verifier": "1.0.2"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup",