react-semaphor 0.1.570 → 0.1.571

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 (26) hide show
  1. package/dist/brand-studio/index.js +2 -2
  2. package/dist/chunks/{assistant-chat-B-Ddyy8b.js → assistant-chat-SkCraw2C.js} +2 -2
  3. package/dist/chunks/{brand-B4BdpAB_.js → brand-BoUV0iHF.js} +1 -1
  4. package/dist/chunks/{card-filter-builder-0VvKmRst.js → card-filter-builder-D-aSYpyr.js} +2 -2
  5. package/dist/chunks/{dashboard-DxGIr1vZ.js → dashboard-B_w_ekUz.js} +1 -1
  6. package/dist/chunks/{dashboard-briefing-launcher-B-quOOOQ.js → dashboard-briefing-launcher-_g1m2tJ3.js} +5 -5
  7. package/dist/chunks/{dashboard-controls-Caodx80b.js → dashboard-controls-CY0gbcCt.js} +4 -4
  8. package/dist/chunks/{dashboard-json-Ct-AGDHF.js → dashboard-json-DsM79yem.js} +1 -1
  9. package/dist/chunks/{dates-B9mL8BHE.js → dates-RSEzJ9N7.js} +1 -1
  10. package/dist/chunks/{edit-Bpdh_P_a.js → edit-9df1zOWe.js} +3 -3
  11. package/dist/chunks/{edit-dashboard-visual-DeDTuYB5.js → edit-dashboard-visual-cX0FM-4i.js} +5 -5
  12. package/dist/chunks/{filter-reach-copy-BSY33ro5.js → filter-reach-copy-thzt25Rc.js} +1195 -1261
  13. package/dist/chunks/{report-preferences-dialog-Yvhv3WX2.js → report-preferences-dialog-B_GXs91t.js} +6 -6
  14. package/dist/chunks/{semaphor-ready-indicator-ByFvqHEO.js → semaphor-ready-indicator-CBQamwQY.js} +30 -34
  15. package/dist/chunks/{shelf-drop-preview-context-CjoVaK6J.js → shelf-drop-preview-context-Bkjf0XXw.js} +1 -1
  16. package/dist/chunks/{variable-draft-9-huI1h4.js → variable-draft-DvglU8yj.js} +1 -1
  17. package/dist/dashboard/index.js +1 -1
  18. package/dist/dashboard-authoring/index.js +1919 -1853
  19. package/dist/index.js +8 -8
  20. package/dist/surfboard/index.js +1 -1
  21. package/dist/types/lib/stores/dashboard-store.d.ts +1 -1
  22. package/dist/types/lib/types/common-types.d.ts +0 -50
  23. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +1 -2
  24. package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +6 -5
  25. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +1 -2
  26. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { D as U } from "./chunks/dashboard-DxGIr1vZ.js";
1
+ import { D as U } from "./chunks/dashboard-B_w_ekUz.js";
2
2
  import { C as ca, E as ua } from "./chunks/bookmark-state-CflS88gq.js";
3
- import { C as V, b as z, c as H, d as W, e as G, f as $ } from "./chunks/report-preferences-dialog-Yvhv3WX2.js";
4
- import { g as pa, A as fa, h as ha, a as ma, R as ga, D as Ca, T as ba, i as ya, j as Da, t as va, u as Ea, k as Aa, l as Sa, m as Ta } from "./chunks/report-preferences-dialog-Yvhv3WX2.js";
3
+ import { C as V, b as z, c as H, d as W, e as G, f as $ } from "./chunks/report-preferences-dialog-B_GXs91t.js";
4
+ import { g as pa, A as fa, h as ha, a as ma, R as ga, D as Ca, T as ba, i as ya, j as Da, t as va, u as Ea, k as Aa, l as Sa, m as Ta } from "./chunks/report-preferences-dialog-B_GXs91t.js";
5
5
  import { jsx as r, jsxs as b } from "react/jsx-runtime";
6
- import { E as R, F as q, S as K, a as Q, U as Y, c as J, A as X, C as Z, u as I, f as ee, d as ae, V as se, e as P, g as L, s as te, R as re } from "./chunks/semaphor-ready-indicator-ByFvqHEO.js";
7
- import { Q as xa, ay as Fa, az as Ba, aA as _a, B as Ra, a7 as Pa, K as La, I as Na, H as Ia, aI as Oa, t as ja, r as ka, M as Ma, Y as Ua, j as Va, m as za, m as Ha, n as Wa, J as Ga, at as $a, av as qa, aw as Ka, au as Qa, ak as Ya, an as Ja, aH as Xa, ab as Za, as as es, a4 as as, aC as ss, aD as ts, af as rs, ao as os, G as ns, z as is, x as ls, y as cs, aL as us, aa as ds, ap as ps, aq as fs, aj as hs, am as ms, aG as gs, aF as Cs, aE as bs, aK as ys, aJ as Ds, al as vs, a9 as Es, a8 as As, X as Ss, ad as Ts, ar as ws, ah as xs, ae as Fs, ag as Bs, ai as _s, Z as Rs, _ as Ps, $ as Ls, ac as Ns, T as Is, P as Os, w as js, aB as ks, q as Ms, N as Us, a0 as Vs, a2 as zs, a1 as Hs, a3 as Ws, p as Gs, v as $s, i as qs, L as Ks, O as Qs, k as Ys, a6 as Js, W as Xs, a5 as Zs, h as et, o as at, l as st, ax as tt } from "./chunks/semaphor-ready-indicator-ByFvqHEO.js";
6
+ import { E as R, F as q, S as K, a as Q, U as Y, c as J, A as X, C as Z, u as I, f as ee, d as ae, V as se, e as P, g as L, s as te, R as re } from "./chunks/semaphor-ready-indicator-CBQamwQY.js";
7
+ import { Q as xa, ay as Fa, az as Ba, aA as _a, B as Ra, a7 as Pa, K as La, I as Na, H as Ia, aI as Oa, t as ja, r as ka, M as Ma, Y as Ua, j as Va, m as za, m as Ha, n as Wa, J as Ga, at as $a, av as qa, aw as Ka, au as Qa, ak as Ya, an as Ja, aH as Xa, ab as Za, as as es, a4 as as, aC as ss, aD as ts, af as rs, ao as os, G as ns, z as is, x as ls, y as cs, aL as us, aa as ds, ap as ps, aq as fs, aj as hs, am as ms, aG as gs, aF as Cs, aE as bs, aK as ys, aJ as Ds, al as vs, a9 as Es, a8 as As, X as Ss, ad as Ts, ar as ws, ah as xs, ae as Fs, ag as Bs, ai as _s, Z as Rs, _ as Ps, $ as Ls, ac as Ns, T as Is, P as Os, w as js, aB as ks, q as Ms, N as Us, a0 as Vs, a2 as zs, a1 as Hs, a3 as Ws, p as Gs, v as $s, i as qs, L as Ks, O as Qs, k as Ys, a6 as Js, W as Xs, a5 as Zs, h as et, o as at, l as st, ax as tt } from "./chunks/semaphor-ready-indicator-CBQamwQY.js";
8
8
  import * as T from "react";
9
9
  import O, { useMemo as w, useEffect as j } from "react";
10
10
  import { C as ot, D as nt, L as it, d as lt, g as ct, e as ut, h as dt, f as pt, c as ft, a as ht, i as mt, b as gt, n as Ct, s as bt } from "./chunks/validators-B8fpdinG.js";
@@ -16,10 +16,10 @@ import "./chunks/analytics-base-schemas-BaIQrEzX.js";
16
16
  import "./value-format-preferences/index.js";
17
17
  import { D as oe } from "./chunks/index-CV_Kzou0.js";
18
18
  import { D as Dt } from "./chunks/token-types-iKMplaBL.js";
19
- import { e as Et, A as At, b as St, n as Tt, f as wt, D as xt, h as Ft, j as Bt, k as _t, g as Rt, S as Pt, T as Lt, c as Nt, U as It, m as Ot, a as jt, V as kt, W as Mt, i as Ut, u as Vt, l as zt, d as Ht } from "./chunks/dashboard-briefing-launcher-B-quOOOQ.js";
19
+ import { e as Et, A as At, b as St, n as Tt, f as wt, D as xt, h as Ft, j as Bt, k as _t, g as Rt, S as Pt, T as Lt, c as Nt, U as It, m as Ot, a as jt, V as kt, W as Mt, i as Ut, u as Vt, l as zt, d as Ht } from "./chunks/dashboard-briefing-launcher-_g1m2tJ3.js";
20
20
  import { n as Gt, s as $t, u as qt } from "./chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js";
21
21
  import { createRoot as ne } from "react-dom/client";
22
- import "./chunks/shelf-drop-preview-context-CjoVaK6J.js";
22
+ import "./chunks/shelf-drop-preview-context-Bkjf0XXw.js";
23
23
  import { c as B } from "./chunks/pickers-DkqmtnTL.js";
24
24
  import { D as Qt } from "./chunks/report-runtime-context-BhPzLTbS.js";
25
25
  import { e as ie, f as le, B as ce, F as ue, h as de, j as pe } from "./chunks/style-sheet-parts-C7qGZuH1.js";
@@ -31,7 +31,7 @@ import "./chunks/context-R31TSL5V.js";
31
31
  import "react-dom";
32
32
  import "./chunks/index-y3HUzRNk.js";
33
33
  import "./chunks/appearance-context-BwBp25ZG.js";
34
- import { I as he } from "./chunks/card-filter-builder-0VvKmRst.js";
34
+ import { I as he } from "./chunks/card-filter-builder-D-aSYpyr.js";
35
35
  import "./chunks/appearance-runtime-provider-BRHYELkC.js";
36
36
  const me = { cssWidth: 960, cssHeight: 540 };
37
37
  function sa(e) {
@@ -1,4 +1,4 @@
1
- import { a, R as s, D as o } from "../chunks/report-preferences-dialog-Yvhv3WX2.js";
1
+ import { a, R as s, D as o } from "../chunks/report-preferences-dialog-B_GXs91t.js";
2
2
  import { C as f, E as D } from "../chunks/bookmark-state-CflS88gq.js";
3
3
  export {
4
4
  f as CONTROL_CARD_DEFAULT_VALUE,
@@ -172,7 +172,7 @@ export type DashboardStore = {
172
172
  */
173
173
  styleSheet: {
174
174
  open: boolean;
175
- snapshot?: Pick<TDashboard, 'dashboardStyle' | 'globalStyle' | 'style'>;
175
+ snapshot?: Pick<TDashboard, 'dashboardStyle'>;
176
176
  };
177
177
  /**
178
178
  * The dashboard and its semantic payload when editing turned on (Phase 7a,
@@ -1,6 +1,5 @@
1
1
  import { CardViewStateMap } from '../dashboard-view-state/index.js';
2
2
  import { TFilter, TFilterValue, Operation, TCustomFilterPreferences, DateSelectionMode, DefaultDateFilter, FilterFieldMeta, FilterSemanticContext } from '../../components/surfboard/filter/types.js';
3
- import { FontSpec } from 'chart.js';
4
3
  import { TChartType } from '../charts/types.js';
5
4
  import { QueryConfig } from './query-types.js';
6
5
  import { TablePreferences } from '../../components/visual/data-table/types/data-table.js';
@@ -1624,46 +1623,6 @@ export type TSheet = {
1624
1623
  calculatedFields?: Field[];
1625
1624
  document?: DocumentDefinition;
1626
1625
  };
1627
- /**
1628
- * Style propeerites for the dashboard
1629
- */
1630
- export type StyleProps = {
1631
- /** Theme for dashboard background */
1632
- canvasTheme?: 'clear' | 'muted' | string;
1633
- /** css class for `dashboard-panel` */
1634
- dashboardPanel?: string;
1635
- /** css class for `dashboard-tabs-container` */
1636
- dashboardTabsContainer?: string;
1637
- /** css class for `dashboard-card` */
1638
- /** css class for `dashboard-card-container` */
1639
- dashboardCardContainer?: string;
1640
- dashboardCard?: string;
1641
- /** grid-layout config */
1642
- /**
1643
- * Border radius for the control inputs such as filter input, tabs, date picker, etc.
1644
- */
1645
- controlInputRadius?: number;
1646
- /**
1647
- * Border radius for the cards
1648
- */
1649
- cardBorderRadius?: number;
1650
- gridLayout?: {
1651
- /** css class for `react-grid-layout` */
1652
- className?: string;
1653
- margin?: [number, number];
1654
- };
1655
- /** chart config */
1656
- chart?: {
1657
- /** chart font config */
1658
- font?: Partial<FontSpec>;
1659
- dataset?: any;
1660
- /** chart options */
1661
- options?: any;
1662
- };
1663
- table?: {
1664
- tableHeaderColor?: string;
1665
- };
1666
- };
1667
1626
  export type TEvent = {
1668
1627
  type: 'success' | 'error' | 'info' | 'warning';
1669
1628
  message: any;
@@ -1694,13 +1653,6 @@ export type DashboardLifecycleEvent = {
1694
1653
  summary: string[];
1695
1654
  };
1696
1655
  };
1697
- /**
1698
- * Style for the dashboard
1699
- */
1700
- export type TStyle = {
1701
- default: StyleProps;
1702
- dark?: StyleProps;
1703
- };
1704
1656
  export type TBaseQuery = {
1705
1657
  id: string;
1706
1658
  name: string;
@@ -1733,11 +1685,9 @@ export type TDashboard = {
1733
1685
  description?: string;
1734
1686
  sheets?: TSheet[];
1735
1687
  calculatedFields?: Field[];
1736
- style?: TStyle;
1737
1688
  filters?: TFilter[];
1738
1689
  customCards?: CustomCard[];
1739
1690
  baseQueries?: TBaseQuery[];
1740
- globalStyle?: TStyle;
1741
1691
  /** The dashboard's own style: only what differs from the brand (dashboard style SPEC §3.1). */
1742
1692
  dashboardStyle?: DashboardStyle;
1743
1693
  globalCacheConfig?: CacheConfig;
@@ -100,8 +100,7 @@ export type ChangeServices = {
100
100
  dashboard: TDashboard;
101
101
  }): Promise<ComparisonDates>;
102
102
  /**
103
- * The organization's brand as stored (dashboard style SPEC §4.6): a
104
- * `globalStyle`-only dashboard's style is converted against it, and the
103
+ * The organization's brand as stored (dashboard style SPEC §4.6): the
105
104
  * style inherits it normalized (`dashboardStyleLayers`), so a value equal to
106
105
  * it isn't stored (DSI-2). Called only when a change states a style;
107
106
  * without it, the dashboard inherits the defaults alone.
@@ -6,14 +6,15 @@ import { DashboardStyle } from './types.js';
6
6
  * (dashboard style SPEC §4.6): for `UXProvider`, the MCP's `dashboard.style`
7
7
  * change and the outline:
8
8
  *
9
- * - the style: `dashboardStyle` read leniently, or, until cut-over, a
10
- * `globalStyle`-only dashboard's converted against the brand as stored (DS-D7);
11
- * - the brand the style inherits (DSI-2, `shows`): the stored one normalized,
12
- * until the backfill rewrites stored brands (Phase 9 removes both steps).
9
+ * - the style: `dashboardStyle` read leniently (a `globalStyle` is converted
10
+ * only by the backfill and the GitHub restore since the cut-over, DS-D7);
11
+ * - the brand the style inherits (DSI-2, `shows`): the stored one normalized.
12
+ * The hosted backfill rewrote stored brands, where this changes nothing; a
13
+ * self-hosted brand is never rewritten (DS-D22), so it renders through here (DS-D32).
13
14
  *
14
15
  * Pure.
15
16
  */
16
- export declare function dashboardStyleLayers(dashboard: Pick<TDashboard, 'dashboardStyle' | 'globalStyle'>, storedOrganizationAppearance: AppearanceSpec | null | undefined): {
17
+ export declare function dashboardStyleLayers(dashboard: Pick<TDashboard, 'dashboardStyle'>, storedOrganizationAppearance: AppearanceSpec | null | undefined): {
17
18
  style: DashboardStyle | undefined;
18
19
  organizationAppearance: AppearanceSpec | null;
19
20
  };
@@ -43,8 +43,7 @@ export type OutlineViewer = {
43
43
  relationshipReach?: DashboardRelationshipReachResolver;
44
44
  /**
45
45
  * Server side only: the organization's brand as stored (dashboard style
46
- * SPEC §4.6). A `globalStyle`-only dashboard's style is converted against
47
- * it, and `shows` reads over it normalized, as the dashboard renders.
46
+ * SPEC §4.6). `shows` reads over it normalized, as the dashboard renders.
48
47
  * Without one, over the defaults alone.
49
48
  */
50
49
  organizationAppearance?: AppearanceSpec | null;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.570",
8
+ "version": "0.1.571",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",