@decantr/cli 1.6.0 → 1.6.1
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,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-DESYSWLL.js";
|
|
3
|
+
import "./chunk-PMBLHVBX.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
scaffoldMinimal,
|
|
10
10
|
scaffoldProject,
|
|
11
11
|
syncRegistry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PMBLHVBX.js";
|
|
13
13
|
|
|
14
14
|
// src/index.ts
|
|
15
15
|
import { readFileSync as readFileSync15, existsSync as existsSync23, readdirSync as readdirSync6 } from "fs";
|
|
@@ -4332,7 +4332,7 @@ async function main() {
|
|
|
4332
4332
|
break;
|
|
4333
4333
|
}
|
|
4334
4334
|
case "upgrade": {
|
|
4335
|
-
const { cmdUpgrade } = await import("./upgrade-
|
|
4335
|
+
const { cmdUpgrade } = await import("./upgrade-2OG7UKTR.js");
|
|
4336
4336
|
const applyFlag = args.includes("--apply");
|
|
4337
4337
|
await cmdUpgrade(process.cwd(), { apply: applyFlag });
|
|
4338
4338
|
break;
|
|
@@ -2440,9 +2440,13 @@ function generateSectionContext(input) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
if (spec.motion) {
|
|
2442
2442
|
const entries = [];
|
|
2443
|
-
|
|
2444
|
-
if (spec.motion.
|
|
2445
|
-
if (spec.motion.
|
|
2443
|
+
const isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
2444
|
+
if (isObj(spec.motion.micro)) for (const [k, v] of Object.entries(spec.motion.micro)) entries.push([k, v]);
|
|
2445
|
+
else if (typeof spec.motion.micro === "string") entries.push(["micro", spec.motion.micro]);
|
|
2446
|
+
if (isObj(spec.motion.transitions)) for (const [k, v] of Object.entries(spec.motion.transitions)) entries.push([k, v]);
|
|
2447
|
+
else if (typeof spec.motion.transitions === "string") entries.push(["transitions", spec.motion.transitions]);
|
|
2448
|
+
if (isObj(spec.motion.ambient)) for (const [k, v] of Object.entries(spec.motion.ambient)) entries.push([k, v]);
|
|
2449
|
+
else if (typeof spec.motion.ambient === "string") entries.push(["ambient", spec.motion.ambient]);
|
|
2446
2450
|
if (entries.length > 0) {
|
|
2447
2451
|
lines.push("**Motion:**");
|
|
2448
2452
|
lines.push("| Interaction | Animation |");
|
|
@@ -2461,8 +2465,8 @@ function generateSectionContext(input) {
|
|
|
2461
2465
|
if (spec.accessibility) {
|
|
2462
2466
|
lines.push("**Accessibility:**");
|
|
2463
2467
|
if (spec.accessibility.role) lines.push(`- Role: \`${spec.accessibility.role}\``);
|
|
2464
|
-
if (spec.accessibility.keyboard
|
|
2465
|
-
if (spec.accessibility.announcements
|
|
2468
|
+
if (Array.isArray(spec.accessibility.keyboard) && spec.accessibility.keyboard.length) lines.push(`- Keyboard: ${spec.accessibility.keyboard.join("; ")}`);
|
|
2469
|
+
if (Array.isArray(spec.accessibility.announcements) && spec.accessibility.announcements.length) lines.push(`- Announcements: ${spec.accessibility.announcements.join("; ")}`);
|
|
2466
2470
|
if (spec.accessibility.focus_management) lines.push(`- Focus: ${spec.accessibility.focus_management}`);
|
|
2467
2471
|
lines.push("");
|
|
2468
2472
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-DESYSWLL.js";
|
|
2
|
+
import "./chunk-PMBLHVBX.js";
|