@datarails-ai/dr-appspace-cli 0.12.81 → 0.12.82

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.
Files changed (2) hide show
  1. package/dist/cli.js +33 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
13
13
  // package.json
14
14
  var package_default = {
15
15
  name: "@datarails-ai/dr-appspace-cli",
16
- version: "0.12.81",
16
+ version: "0.12.82",
17
17
  description: "Datarails App Space CLI \u2014 build, try, push and publish App Space apps",
18
18
  type: "module",
19
19
  engines: {
@@ -57,7 +57,7 @@ var package_default = {
57
57
  };
58
58
 
59
59
  // src/buildInfo.ts
60
- var BUILD_TIME = "2026-11-11T15:51:20.638Z";
60
+ var BUILD_TIME = "2026-11-12T12:45:35.994Z";
61
61
  function formatBuildTime(iso) {
62
62
  if (iso === "") return "";
63
63
  const d = new Date(iso);
@@ -40519,7 +40519,36 @@ function pushedContract(bundle, pages) {
40519
40519
  function isAppContract3(contract) {
40520
40520
  return contract.app?.kind !== "dashboard" && typeof contract.data?.app === "object";
40521
40521
  }
40522
- var COMPONENTS2 = /* @__PURE__ */ new Set(["form", "list", "detail", "queue", "action", "filter", "stat", "chart", "custom", "widget"]);
40522
+ var COMPONENTS2 = /* @__PURE__ */ new Set([
40523
+ "form",
40524
+ "list",
40525
+ "detail",
40526
+ "queue",
40527
+ "action",
40528
+ "filter",
40529
+ "stat",
40530
+ "chart",
40531
+ "custom",
40532
+ "widget",
40533
+ ...COMPONENT_TYPES
40534
+ ]);
40535
+ var NOT_CONTENT = /* @__PURE__ */ new Set([
40536
+ "dialog",
40537
+ "tooltip_info",
40538
+ "skeleton",
40539
+ "empty_state",
40540
+ "progress",
40541
+ "badge",
40542
+ "tag",
40543
+ "status"
40544
+ ]);
40545
+ function isContent(elements, uid) {
40546
+ const type = elements[uid]?.type ?? "";
40547
+ if (!COMPONENTS2.has(type) || NOT_CONTENT.has(type)) return false;
40548
+ if (type !== "tabs") return true;
40549
+ const own2 = (elements[uid]?.children ?? []).some((child) => elements[child] !== void 0);
40550
+ return own2 || Object.values(elements).some((element) => element.parent === uid);
40551
+ }
40523
40552
  function rootsOf4(contract, page) {
40524
40553
  const elements = contract.elements ?? {};
40525
40554
  if (Array.isArray(page.tree) && page.tree.length > 0) {
@@ -40552,8 +40581,7 @@ function contractFindings(contract) {
40552
40581
  for (const page of pages) {
40553
40582
  if (page.owned === true) continue;
40554
40583
  const onPage = Object.values(elements).filter((element) => element.page === page.path);
40555
- const roots = rootsOf4(contract, page).map((uid) => elements[uid]);
40556
- const components = roots.filter((element) => COMPONENTS2.has(element.type ?? ""));
40584
+ const components = rootsOf4(contract, page).filter((uid) => isContent(elements, uid)).map((uid) => elements[uid]);
40557
40585
  if (components.length === 0) {
40558
40586
  out.push({
40559
40587
  code: "empty-screen",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarails-ai/dr-appspace-cli",
3
- "version": "0.12.81",
3
+ "version": "0.12.82",
4
4
  "description": "Datarails App Space CLI — build, try, push and publish App Space apps",
5
5
  "type": "module",
6
6
  "engines": {