@ai-gui/plugin-bigscreen 0.36.1 → 0.36.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @ai-gui/plugin-bigscreen
2
2
 
3
+ ## 0.36.3
4
+
5
+ ### Patch Changes
6
+
7
+ - @ai-gui/core@0.36.3
8
+
9
+ ## 0.36.2
10
+
11
+ ### Patch Changes
12
+
13
+ - c57eae2: A data wall now folds on its own width, not the window's.
14
+
15
+ The wall laid out twelve columns and fell back to one at `@media
16
+ (max-width: 640px)` — a query about the _viewport_. Put the same wall in a
17
+ 330px side panel of a 1900px window and the query never fires: four KPI cards
18
+ share three hundred pixels and the numbers wrap one character per line.
19
+
20
+ The wall is now a container (`container-type: inline-size`) and the fallbacks
21
+ are `@container` queries, so what decides the layout is the only thing that was
22
+ ever relevant — how wide the wall is. That also covers the case the old query
23
+ was written for, since a full-width wall in a small window has a small
24
+ container.
25
+
26
+ Two steps rather than one. At 900px it folds to two columns; at 520px to one.
27
+ And a panel the model gave more than half the grid to keeps both columns in the
28
+ two-column state — a chart is wide because it needs to be, and collapsing it to
29
+ the width of a KPI card is how a readable chart becomes a smear.
30
+
31
+ - @ai-gui/core@0.36.2
32
+
3
33
  ## 0.36.1
4
34
 
5
35
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -480,7 +480,7 @@ const PROMPT = {
480
480
  //#region src/index.ts
481
481
  const escapeHtml = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
482
482
  const bigscreenCss = [
483
- "[data-aigui-bigscreen]{--aigui-bs-accent:#22d3ee;--aigui-bs-text:#e2e8f0;--aigui-bs-muted:#94a3b8;box-sizing:border-box;margin-block:1rem;padding:1.1rem 1.2rem 1.3rem;border-radius:14px;color:var(--aigui-bs-text);font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'PingFang SC','Noto Sans CJK SC',sans-serif;font-variant-numeric:tabular-nums}",
483
+ "[data-aigui-bigscreen]{--aigui-bs-accent:#22d3ee;--aigui-bs-text:#e2e8f0;--aigui-bs-muted:#94a3b8;box-sizing:border-box;margin-block:1rem;padding:1.1rem 1.2rem 1.3rem;border-radius:14px;color:var(--aigui-bs-text);font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'PingFang SC','Noto Sans CJK SC',sans-serif;font-variant-numeric:tabular-nums;container-type:inline-size}",
484
484
  "[data-aigui-bigscreen] *{box-sizing:border-box}",
485
485
  "[data-aigui-bigscreen='dark']{background:radial-gradient(120% 90% at 50% 0%,#0f1f3d 0%,#0a1428 45%,#050b18 100%);box-shadow:inset 0 0 0 1px rgba(56,189,248,.12),0 20px 60px rgba(0,0,0,.45)}",
486
486
  "[data-aigui-bigscreen='light']{background:linear-gradient(180deg,#f8fafc,#eef2f7);box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}",
@@ -512,7 +512,8 @@ const bigscreenCss = [
512
512
  ".aigui-bs-note{display:flex;align-items:center;justify-content:center;height:100%;min-height:4rem;font-size:.85rem;color:var(--aigui-bs-muted)}",
513
513
  "[data-aigui-bigscreen-loading]{min-height:8rem;border-radius:14px;background:currentColor;opacity:.06}",
514
514
  ":where([data-aigui-bigscreen-error]){padding:0.5rem 0.75rem;border-radius:0.5rem;font-size:0.875rem;background:color-mix(in srgb,currentColor 8%,transparent);border:1px solid color-mix(in srgb,currentColor 25%,transparent)}",
515
- "@media (max-width:640px){.aigui-bs-grid{grid-template-columns:1fr!important}.aigui-bs-panel{grid-column:span 1!important}}"
515
+ "@container (max-width:900px){.aigui-bs-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.aigui-bs-panel{grid-column:span 1!important}.aigui-bs-panel[data-aigui-bigscreen-wide]{grid-column:span 2!important}}",
516
+ "@container (max-width:520px){.aigui-bs-grid{grid-template-columns:1fr!important}.aigui-bs-panel,.aigui-bs-panel[data-aigui-bigscreen-wide]{grid-column:span 1!important}}"
516
517
  ].join("");
517
518
  function failed(message) {
518
519
  const text$1 = escapeHtml(message);
@@ -550,7 +551,7 @@ function bigscreen(options = {}) {
550
551
  let destroy;
551
552
  let disposed = false;
552
553
  Promise.resolve().then(function() {
553
- return require("./mount-BPBXhD2D.cjs");
554
+ return require("./mount-DPyPP9Ha.cjs");
554
555
  }).then(({ mountScreen }) => {
555
556
  if (disposed) return;
556
557
  destroy = mountScreen(el, definition, options.animate !== false);
package/dist/index.js CHANGED
@@ -479,7 +479,7 @@ const PROMPT = {
479
479
  //#region src/index.ts
480
480
  const escapeHtml = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
481
481
  const bigscreenCss = [
482
- "[data-aigui-bigscreen]{--aigui-bs-accent:#22d3ee;--aigui-bs-text:#e2e8f0;--aigui-bs-muted:#94a3b8;box-sizing:border-box;margin-block:1rem;padding:1.1rem 1.2rem 1.3rem;border-radius:14px;color:var(--aigui-bs-text);font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'PingFang SC','Noto Sans CJK SC',sans-serif;font-variant-numeric:tabular-nums}",
482
+ "[data-aigui-bigscreen]{--aigui-bs-accent:#22d3ee;--aigui-bs-text:#e2e8f0;--aigui-bs-muted:#94a3b8;box-sizing:border-box;margin-block:1rem;padding:1.1rem 1.2rem 1.3rem;border-radius:14px;color:var(--aigui-bs-text);font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'PingFang SC','Noto Sans CJK SC',sans-serif;font-variant-numeric:tabular-nums;container-type:inline-size}",
483
483
  "[data-aigui-bigscreen] *{box-sizing:border-box}",
484
484
  "[data-aigui-bigscreen='dark']{background:radial-gradient(120% 90% at 50% 0%,#0f1f3d 0%,#0a1428 45%,#050b18 100%);box-shadow:inset 0 0 0 1px rgba(56,189,248,.12),0 20px 60px rgba(0,0,0,.45)}",
485
485
  "[data-aigui-bigscreen='light']{background:linear-gradient(180deg,#f8fafc,#eef2f7);box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}",
@@ -511,7 +511,8 @@ const bigscreenCss = [
511
511
  ".aigui-bs-note{display:flex;align-items:center;justify-content:center;height:100%;min-height:4rem;font-size:.85rem;color:var(--aigui-bs-muted)}",
512
512
  "[data-aigui-bigscreen-loading]{min-height:8rem;border-radius:14px;background:currentColor;opacity:.06}",
513
513
  ":where([data-aigui-bigscreen-error]){padding:0.5rem 0.75rem;border-radius:0.5rem;font-size:0.875rem;background:color-mix(in srgb,currentColor 8%,transparent);border:1px solid color-mix(in srgb,currentColor 25%,transparent)}",
514
- "@media (max-width:640px){.aigui-bs-grid{grid-template-columns:1fr!important}.aigui-bs-panel{grid-column:span 1!important}}"
514
+ "@container (max-width:900px){.aigui-bs-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.aigui-bs-panel{grid-column:span 1!important}.aigui-bs-panel[data-aigui-bigscreen-wide]{grid-column:span 2!important}}",
515
+ "@container (max-width:520px){.aigui-bs-grid{grid-template-columns:1fr!important}.aigui-bs-panel,.aigui-bs-panel[data-aigui-bigscreen-wide]{grid-column:span 1!important}}"
515
516
  ].join("");
516
517
  function failed(message) {
517
518
  const text$1 = escapeHtml(message);
@@ -548,7 +549,7 @@ function bigscreen(options = {}) {
548
549
  mount: (el) => {
549
550
  let destroy;
550
551
  let disposed = false;
551
- import("./mount-DVHPS1xP.js").then(({ mountScreen }) => {
552
+ import("./mount-CbzNLMoI.js").then(({ mountScreen }) => {
552
553
  if (disposed) return;
553
554
  destroy = mountScreen(el, definition, options.animate !== false);
554
555
  }).catch(() => {
@@ -218,7 +218,9 @@ function mountPanel(panel, definition, c, animate) {
218
218
  class: "aigui-bs-panel",
219
219
  "data-aigui-bigscreen-panel": panel.kind
220
220
  });
221
- node.style.gridColumn = `span ${Math.min(panel.span ?? 4, definition.columns)}`;
221
+ const span = Math.min(panel.span ?? 4, definition.columns);
222
+ node.style.gridColumn = `span ${span}`;
223
+ if (span * 2 > definition.columns) node.setAttribute("data-aigui-bigscreen-wide", "");
222
224
  node.style.borderColor = withAlpha(c.accent, definition.theme === "dark" ? .22 : .18);
223
225
  if (panel.title) {
224
226
  const head = el("header", { class: "aigui-bs-panel-title" }, panel.title);
@@ -219,7 +219,9 @@ function mountPanel(panel, definition, c, animate) {
219
219
  class: "aigui-bs-panel",
220
220
  "data-aigui-bigscreen-panel": panel.kind
221
221
  });
222
- node.style.gridColumn = `span ${Math.min(panel.span ?? 4, definition.columns)}`;
222
+ const span = Math.min(panel.span ?? 4, definition.columns);
223
+ node.style.gridColumn = `span ${span}`;
224
+ if (span * 2 > definition.columns) node.setAttribute("data-aigui-bigscreen-wide", "");
223
225
  node.style.borderColor = require_options.withAlpha(c.accent, definition.theme === "dark" ? .22 : .18);
224
226
  if (panel.title) {
225
227
  const head = el("header", { class: "aigui-bs-panel-title" }, panel.title);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-gui/plugin-bigscreen",
3
- "version": "0.36.1",
3
+ "version": "0.36.3",
4
4
  "description": "Animated data walls for AIGUI — counting KPIs, sweeping gauges, growing ranks, self-drawing charts, turning 3D bars and globes, on a grid the model lays out.",
5
5
  "keywords": [
6
6
  "llm",
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "echarts": "^5.5.1",
58
- "@ai-gui/core": "0.36.1"
58
+ "@ai-gui/core": "0.36.3"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "echarts-gl": "^2.0.9"