@nanobpm/urban 0.82.0 → 0.83.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.
@@ -48,6 +48,9 @@ function fakeEngine(): { engine: EngineClient; calls: FakeEngineCalls } {
48
48
  async getForm() { return null; },
49
49
  async completeUserTask() {},
50
50
  async searchProcessInstances() { return []; },
51
+ async searchElementInstances() { return []; },
52
+ async searchElementInstanceWaitStates() { return []; },
53
+ async getElementInstance() { return null; },
51
54
  async registerWorker(jobType) { return { jobType, unsubscribe: async () => {} }; },
52
55
  async close() {},
53
56
  };
@@ -579,6 +582,16 @@ test("renderer supports an opt-in sticky nav bar", async () => {
579
582
  assert.match(css, /\.pc-bar\.pc-sticky \{[^}]*position:sticky[^}]*top:0/);
580
583
  });
581
584
 
585
+ test("#471: a fill appView keeps its height when also collapsible (flex propagates through .pc-card-body)", async () => {
586
+ const css = (await dispatch("GET", "/")).body ?? "";
587
+ // makeCollapsible reparents a collapsible node's body (the iframe, for an appView) into a
588
+ // `.pc-card-body`, so a `fill` appView's frame is no longer a direct flex child of
589
+ // `.pc-appview-fill` and its `flex:1` stops applying. The shell CSS must make the collapse body a
590
+ // grow-able flex column so `fill` propagates through it to the frame.
591
+ assert.match(css, /\.pc-appview-fill \.pc-appview-frame \{[^}]*flex:1 1 auto/);
592
+ assert.match(css, /\.pc-appview-fill \.pc-card-body \{[^}]*flex:1 1 auto[^}]*display:flex[^}]*flex-direction:column/);
593
+ });
594
+
582
595
  test("renderer exposes an embed-gated host-navigation bridge", async () => {
583
596
  const res = await dispatch("GET", "/app/runtime.js");
584
597
  const js = res.body ?? "";
@@ -905,6 +905,11 @@ table.pc-grid th { font-weight:600; color:var(--nano-text-muted); }
905
905
  .pc-appview-frame { display:block; width:100%; min-height:24rem; border:1px solid var(--nano-edge); border-radius:.6rem; background:var(--nano-inset); }
906
906
  .pc-appview-fill { display:flex; flex-direction:column; min-height:min(80vh,48rem); }
907
907
  .pc-appview-fill .pc-appview-frame { flex:1 1 auto; min-height:0; }
908
+ /* When a fill appView is ALSO collapsible, makeCollapsible reparents the iframe into a
909
+ .pc-card-body, so the frame is no longer a direct flex child of .pc-appview-fill and its
910
+ flex:1 above stops taking effect (the panel loses its height). Make the collapse body a flex
911
+ item that grows AND a flex column, so fill propagates through it to the frame. */
912
+ .pc-appview-fill .pc-card-body { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
908
913
  /* A standalone button node + the modal it opens (e.g. a copy-pasteable prompt). */
909
914
  .pc-buttonrow { margin:1rem 0; }
910
915
  .pc-btn-ghost { background:transparent; color:var(--nano-text-muted); border:1px solid var(--nano-edge); }