@loworbitstudio/visor 1.45.1 → 1.49.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/dist/CHANGELOG.json +25 -1
- package/dist/index.js +43 -5
- package/dist/registry.json +143 -7
- package/dist/visor-manifest.json +550 -30
- package/package.json +2 -2
package/dist/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.4.0",
|
|
3
|
-
"generated_at": "2026-11-
|
|
3
|
+
"generated_at": "2026-11-14T00:04:31.505Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"accessibility-specimen": {
|
|
6
6
|
"changeType": "current",
|
|
@@ -56,6 +56,12 @@
|
|
|
56
56
|
"breakingChange": false,
|
|
57
57
|
"migrationNote": null
|
|
58
58
|
},
|
|
59
|
+
"billing-slider": {
|
|
60
|
+
"changeType": "current",
|
|
61
|
+
"files": [],
|
|
62
|
+
"breakingChange": false,
|
|
63
|
+
"migrationNote": null
|
|
64
|
+
},
|
|
59
65
|
"bottom-nav": {
|
|
60
66
|
"changeType": "current",
|
|
61
67
|
"files": [],
|
|
@@ -404,6 +410,12 @@
|
|
|
404
410
|
"breakingChange": false,
|
|
405
411
|
"migrationNote": null
|
|
406
412
|
},
|
|
413
|
+
"layer-chart": {
|
|
414
|
+
"changeType": "current",
|
|
415
|
+
"files": [],
|
|
416
|
+
"breakingChange": false,
|
|
417
|
+
"migrationNote": null
|
|
418
|
+
},
|
|
407
419
|
"lightbox": {
|
|
408
420
|
"changeType": "current",
|
|
409
421
|
"files": [],
|
|
@@ -428,6 +440,12 @@
|
|
|
428
440
|
"breakingChange": false,
|
|
429
441
|
"migrationNote": null
|
|
430
442
|
},
|
|
443
|
+
"meter": {
|
|
444
|
+
"changeType": "current",
|
|
445
|
+
"files": [],
|
|
446
|
+
"breakingChange": false,
|
|
447
|
+
"migrationNote": null
|
|
448
|
+
},
|
|
431
449
|
"motion-specimen": {
|
|
432
450
|
"changeType": "current",
|
|
433
451
|
"files": [],
|
|
@@ -512,6 +530,12 @@
|
|
|
512
530
|
"breakingChange": false,
|
|
513
531
|
"migrationNote": null
|
|
514
532
|
},
|
|
533
|
+
"proportion-bar": {
|
|
534
|
+
"changeType": "current",
|
|
535
|
+
"files": [],
|
|
536
|
+
"breakingChange": false,
|
|
537
|
+
"migrationNote": null
|
|
538
|
+
},
|
|
515
539
|
"quick-actions": {
|
|
516
540
|
"changeType": "current",
|
|
517
541
|
"files": [],
|
package/dist/index.js
CHANGED
|
@@ -1821,16 +1821,20 @@ function readPackageJson(cwd) {
|
|
|
1821
1821
|
if (!existsSync4(pkgPath)) return null;
|
|
1822
1822
|
return JSON.parse(readFileSync7(pkgPath, "utf-8"));
|
|
1823
1823
|
}
|
|
1824
|
-
function isPackageInstalled(
|
|
1824
|
+
function isPackageInstalled(packageName2, cwd) {
|
|
1825
1825
|
const pkg2 = readPackageJson(cwd);
|
|
1826
1826
|
if (!pkg2) return false;
|
|
1827
|
-
return !!(pkg2.dependencies?.[
|
|
1827
|
+
return !!(pkg2.dependencies?.[packageName2] || pkg2.devDependencies?.[packageName2]);
|
|
1828
|
+
}
|
|
1829
|
+
function packageName(spec) {
|
|
1830
|
+
const at = spec.indexOf("@", 1);
|
|
1831
|
+
return at === -1 ? spec : spec.slice(0, at);
|
|
1828
1832
|
}
|
|
1829
1833
|
function hasVisorTokens(cwd) {
|
|
1830
1834
|
return isPackageInstalled("@loworbitstudio/visor-core", cwd);
|
|
1831
1835
|
}
|
|
1832
1836
|
function getUninstalledDeps(dependencies, cwd) {
|
|
1833
|
-
return dependencies.filter((dep) => !isPackageInstalled(dep, cwd));
|
|
1837
|
+
return dependencies.filter((dep) => !isPackageInstalled(packageName(dep), cwd));
|
|
1834
1838
|
}
|
|
1835
1839
|
function installPackages(packages, cwd, dev = false) {
|
|
1836
1840
|
if (packages.length === 0) return true;
|
|
@@ -2620,13 +2624,13 @@ function pubspecPath(cwd) {
|
|
|
2620
2624
|
function pubspecExists(cwd) {
|
|
2621
2625
|
return existsSync9(pubspecPath(cwd));
|
|
2622
2626
|
}
|
|
2623
|
-
function isPubPackageInstalled(
|
|
2627
|
+
function isPubPackageInstalled(packageName2, cwd) {
|
|
2624
2628
|
if (!pubspecExists(cwd)) return false;
|
|
2625
2629
|
const text = readFileSync12(pubspecPath(cwd), "utf-8");
|
|
2626
2630
|
const doc = parseDocument(text);
|
|
2627
2631
|
const depsNode = doc.get("dependencies");
|
|
2628
2632
|
if (!(depsNode instanceof YAMLMap)) return false;
|
|
2629
|
-
return depsNode.has(
|
|
2633
|
+
return depsNode.has(packageName2);
|
|
2630
2634
|
}
|
|
2631
2635
|
function getUninstalledPubDeps(deps, cwd) {
|
|
2632
2636
|
return deps.filter((d) => !isPubPackageInstalled(d.pub, cwd));
|
|
@@ -9154,6 +9158,40 @@ var FIXTURES = {
|
|
|
9154
9158
|
props: `{ style: { width: 420 }, heading: "You\u2019re all set", description: "Your bookings, their fees and your payments live on your dashboard.", items: [{ content: [React.createElement("b", { key: "b" }, "Your info"), " is saved."] }, { content: [React.createElement("b", { key: "b" }, "Your W-9"), " is signed and released to Animal Brooklyn."] }], action: React.createElement("button", { type: "button" }, "Go to Dashboard") }`
|
|
9155
9159
|
}
|
|
9156
9160
|
},
|
|
9161
|
+
// VI-768: a row slider with the gap open, and the hero past the high with agent and proposed evidence.
|
|
9162
|
+
"billing-slider": {
|
|
9163
|
+
default: {
|
|
9164
|
+
export: "BillingSlider",
|
|
9165
|
+
props: `{ "aria-label": "Hours Website embeds bills", value: 8, savedValue: 8, min: 8, max: 16.75, hue: 339, marks: [{ value: 10, label: "High", hatchPast: true }], evidence: { value: 10.5 }, gap: true, minLabel: "Low", maxLabel: "Ceiling allows", formatValue: (h) => h + " h", onValueChange: () => {}, style: { width: 560 } }`
|
|
9166
|
+
},
|
|
9167
|
+
hero: {
|
|
9168
|
+
export: "BillingSlider",
|
|
9169
|
+
props: `{ "aria-label": "Hours Website embeds bills", value: 12.5, savedValue: 8, min: 8, max: 16.75, hue: 339, size: "lg", marks: [{ value: 10, label: "High", hatchPast: true }], evidence: { value: 10.5, agent: 3, proposed: 1.25 }, minLabel: "Low", maxLabel: "Ceiling allows", formatValue: (h) => h + " h", onValueChange: () => {}, style: { width: 640 } }`
|
|
9170
|
+
}
|
|
9171
|
+
},
|
|
9172
|
+
// VI-766: hours by bucket with a hatched and an alert part, money in thin with stripes, and empty.
|
|
9173
|
+
"proportion-bar": {
|
|
9174
|
+
default: {
|
|
9175
|
+
export: "ProportionBar",
|
|
9176
|
+
props: `{ style: { width: 520 }, legend: true, formatValue: function (v) { return v + " h"; }, parts: [{ label: "On a package", value: 92.25 }, { label: "Outside a package", value: 41.5 }, { label: "Covered", value: 18, fill: "var(--proportion-bar-fill-3)" }, { label: "Investment", value: 21.5, fill: "var(--proportion-bar-fill-4)" }, { label: "Not billable", value: 4, fill: "hatched" }, { label: "Unresolved", value: 9.25, fill: "alert" }] }`
|
|
9177
|
+
},
|
|
9178
|
+
thin: {
|
|
9179
|
+
export: "ProportionBar",
|
|
9180
|
+
props: `{ size: "thin", style: { width: 360 }, legend: true, parts: [{ label: "Invoiced", value: 12455 }, { label: "Waiting", value: 9025, fill: "striped" }, { label: "Written off", value: 0, fill: "hatched" }] }`
|
|
9181
|
+
},
|
|
9182
|
+
empty: { export: "ProportionBar", props: `{ style: { width: 360 }, parts: [] }` }
|
|
9183
|
+
},
|
|
9184
|
+
// VI-767: a row meter past its heads-up tick, and a contract meter with zones and mark text.
|
|
9185
|
+
meter: {
|
|
9186
|
+
default: {
|
|
9187
|
+
export: "Meter",
|
|
9188
|
+
props: `{ value: 162, max: 200, hue: 147, marks: [{ value: 160, threshold: true }], style: { width: 320 }, children: [React.createElement("strong", { key: "s" }, "81%"), " of 200 h \xB7 heads-up due"] }`
|
|
9189
|
+
},
|
|
9190
|
+
contract: {
|
|
9191
|
+
export: "Meter",
|
|
9192
|
+
props: `{ value: 118, max: 200, hue: 219, size: "contract", style: { width: 560 }, zones: [{ to: 190, variant: "hatched" }, { to: 166 }], marks: [{ value: 160, label: "160 h", caption: "heads-up", align: "end", threshold: true }, { value: 166, label: "166 h", caption: "the low", align: "start" }, { value: 200, label: "200 h", caption: "ceiling", align: "end", variant: "limit" }], children: [React.createElement("strong", { key: "s" }, "118 h"), " used of 200 h"] }`
|
|
9193
|
+
}
|
|
9194
|
+
},
|
|
9157
9195
|
// VI-713: labelled steps, one in every state, at both sizes.
|
|
9158
9196
|
"segmented-progress": {
|
|
9159
9197
|
default: { export: "SegmentedProgress", props: `{ total: 6, value: 2, current: 2, "aria-label": "Step 3 of 6", style: { width: 360 } }` },
|