react-semaphor 0.1.563 → 0.1.564
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/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-iIp02_77.js → assistant-chat-D1BEEHUF.js} +103 -103
- package/dist/chunks/{bookmark-impact-D4Kl4amw.js → bookmark-impact-XOsVUAqW.js} +1 -1
- package/dist/chunks/{dashboard-CmqeP3QZ.js → dashboard-DfYsASNd.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-TYlSW77S.js → dashboard-briefing-launcher-lvYfJoUQ.js} +1429 -1379
- package/dist/chunks/{dashboard-controls-B253nJS-.js → dashboard-controls-CJ8Dz50D.js} +58 -58
- package/dist/chunks/{dashboard-json-osQuinUZ.js → dashboard-json-D3uZxGO-.js} +1 -1
- package/dist/chunks/{dates-DFY7Gfss.js → dates-EvDtT25n.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-CMar-NhA.js → edit-dashboard-visual-CgHJXBQv.js} +8 -8
- package/dist/chunks/{filter-reach-copy-CvV7W5dd.js → filter-reach-copy-Cmb05jlE.js} +106 -106
- package/dist/chunks/{global-date-filter-utils-N1kcsOFE.js → global-date-filter-utils-ruJYwjgZ.js} +3034 -3023
- package/dist/chunks/{index-CNGkfUp4.js → index-CAgf2x4E.js} +2 -2
- package/dist/chunks/index-RNaTnE3m.js +585 -0
- package/dist/chunks/{report-preferences-dialog-l54wJyYE.js → report-preferences-dialog-DMqxSU4X.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DaDrZGuA.js → resolve-dashboard-input-context-i_jCSYae.js} +370 -370
- package/dist/chunks/{saved-dashboard-context-DFYBrE6O.js → saved-dashboard-context-Dg3oDmH_.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-C3EQEiD9.js → semaphor-ready-indicator-CFeCIuaw.js} +8045 -8041
- package/dist/chunks/{shelf-drop-preview-context-BODiBlqT.js → shelf-drop-preview-context-cEyVkKTF.js} +2 -2
- package/dist/chunks/{use-create-flow-overlay-state-BXY8-Cyz.js → use-create-flow-overlay-state-Dl6DCxh8.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +615 -594
- package/dist/index.js +13 -13
- package/dist/layouts/index.js +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/activity/activity-bell.d.ts +5 -1
- package/dist/types/components/activity/activity-types.d.ts +12 -4
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -1
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-CJW5BdWT.js +0 -583
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as M } from "./chunks/dashboard-
|
|
1
|
+
import { D as M } from "./chunks/dashboard-DfYsASNd.js";
|
|
2
2
|
import { C as pa, E as fa } from "./chunks/bookmark-state-CWeoGbrx.js";
|
|
3
|
-
import { C as U, b as V, c as z, d as W, e as H, f as G } from "./chunks/report-preferences-dialog-
|
|
4
|
-
import { g as ma, A as ga, h as Ca, a as ba, R as ya, D as Da, T as va, i as Ea, j as Aa, t as Sa, u as Ta, k as wa, l as xa, m as Fa } from "./chunks/report-preferences-dialog-
|
|
3
|
+
import { C as U, b as V, c as z, d as W, e as H, f as G } from "./chunks/report-preferences-dialog-DMqxSU4X.js";
|
|
4
|
+
import { g as ma, A as ga, h as Ca, a as ba, R as ya, D as Da, T as va, i as Ea, j as Aa, t as Sa, u as Ta, k as wa, l as xa, m as Fa } from "./chunks/report-preferences-dialog-DMqxSU4X.js";
|
|
5
5
|
import { jsx as o, jsxs as b } from "react/jsx-runtime";
|
|
6
|
-
import { E as _, F as $, S as q, a as K, U as Q, c as Y, A as J, C as X, u as L, d as Z, f as ee, g as ae, V as te, e as P, h as R, s as se, R as re } from "./chunks/semaphor-ready-indicator-
|
|
7
|
-
import { T as _a, az as Pa, aA as Ra, aB as Na, B as La, a8 as Ia, L as Oa, J as ja, I as ka, aJ as Ma, v as Ua, t as Va, M as za, Z as Wa, k as Ha, n as Ga, n as $a, o as qa, K as Ka, au as Qa, aw as Ya, ax as Ja, av as Xa, al as Za, ao as et, aI as at, ac as tt, at as st, a5 as rt, aD as ot, aE as nt, ag as it, ap as lt, H as ct, G as ut, y as dt, z as pt, aM as ft, ab as ht, aq as mt, ar as gt, ak as Ct, an as bt, aH as yt, aG as Dt, aF as vt, aL as Et, aK as At, am as St, aa as Tt, a9 as wt, Y as xt, ae as Ft, as as Bt, ai as _t, af as Pt, ah as Rt, aj as Nt, _ as Lt, $ as It, a0 as Ot, ad as jt, W as kt, Q as Mt, x as Ut, aC as Vt, r as zt, O as Wt, a1 as Ht, a3 as Gt, a2 as $t, a4 as qt, q as Kt, w as Qt, j as Yt, N as Jt, P as Xt, l as Zt, a7 as es, X as as, a6 as ts, i as ss, p as rs, m as os, ay as ns } from "./chunks/semaphor-ready-indicator-
|
|
6
|
+
import { E as _, F as $, S as q, a as K, U as Q, c as Y, A as J, C as X, u as L, d as Z, f as ee, g as ae, V as te, e as P, h as R, s as se, R as re } from "./chunks/semaphor-ready-indicator-CFeCIuaw.js";
|
|
7
|
+
import { T as _a, az as Pa, aA as Ra, aB as Na, B as La, a8 as Ia, L as Oa, J as ja, I as ka, aJ as Ma, v as Ua, t as Va, M as za, Z as Wa, k as Ha, n as Ga, n as $a, o as qa, K as Ka, au as Qa, aw as Ya, ax as Ja, av as Xa, al as Za, ao as et, aI as at, ac as tt, at as st, a5 as rt, aD as ot, aE as nt, ag as it, ap as lt, H as ct, G as ut, y as dt, z as pt, aM as ft, ab as ht, aq as mt, ar as gt, ak as Ct, an as bt, aH as yt, aG as Dt, aF as vt, aL as Et, aK as At, am as St, aa as Tt, a9 as wt, Y as xt, ae as Ft, as as Bt, ai as _t, af as Pt, ah as Rt, aj as Nt, _ as Lt, $ as It, a0 as Ot, ad as jt, W as kt, Q as Mt, x as Ut, aC as Vt, r as zt, O as Wt, a1 as Ht, a3 as Gt, a2 as $t, a4 as qt, q as Kt, w as Qt, j as Yt, N as Jt, P as Xt, l as Zt, a7 as es, X as as, a6 as ts, i as ss, p as rs, m as os, ay as ns } from "./chunks/semaphor-ready-indicator-CFeCIuaw.js";
|
|
8
8
|
import * as T from "react";
|
|
9
9
|
import I, { useMemo as N, useEffect as O } from "react";
|
|
10
10
|
import { C as ls, D as cs, L as us, e as ds, g as ps, j as fs, h as hs, k as ms, d as gs, b as Cs, i as bs, c as ys, n as Ds, f as vs } from "./chunks/validators-BIM0FE31.js";
|
|
@@ -15,26 +15,26 @@ import "./chunks/matrix-operation-contract-DsLdFdSa.js";
|
|
|
15
15
|
import "./chunks/analytics-base-schemas-BaIQrEzX.js";
|
|
16
16
|
import "./value-format-preferences/index.js";
|
|
17
17
|
import { D as As } from "./chunks/token-types-BUK06hU2.js";
|
|
18
|
-
import { e as Ts, A as ws, b as xs, k as Fs, f as Bs, D as _s, h as Ps, j as Rs, g as Ns, S as Ls, T as Is, c as Os, U as js, a as ks, V as Ms, W as Us, i as Vs, u as zs, d as Ws } from "./chunks/dashboard-briefing-launcher-
|
|
18
|
+
import { e as Ts, A as ws, b as xs, k as Fs, f as Bs, D as _s, h as Ps, j as Rs, g as Ns, S as Ls, T as Is, c as Os, U as js, a as ks, V as Ms, W as Us, i as Vs, u as zs, d as Ws } from "./chunks/dashboard-briefing-launcher-lvYfJoUQ.js";
|
|
19
19
|
import { n as Gs, s as $s, u as qs } from "./chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
20
20
|
import { createRoot as ne } from "react-dom/client";
|
|
21
|
-
import "./chunks/shelf-drop-preview-context-
|
|
21
|
+
import "./chunks/shelf-drop-preview-context-cEyVkKTF.js";
|
|
22
22
|
import "./chunks/index-CuHybtft.js";
|
|
23
23
|
import { D as Qs } from "./chunks/report-runtime-context-BITkNSDa.js";
|
|
24
24
|
import { c as F } from "./chunks/_commonjsHelpers-DimLPMtv.js";
|
|
25
25
|
import { P as ie, a as le, B as ce, y as ue, b as de, d as pe } from "./chunks/switch-BW4yXSYs.js";
|
|
26
|
-
import "./chunks/global-date-filter-utils-
|
|
26
|
+
import "./chunks/global-date-filter-utils-ruJYwjgZ.js";
|
|
27
27
|
import { r as Js, a as Xs } from "./chunks/pivot-result-identity-Dq5jm-EC.js";
|
|
28
|
-
import { n as fe } from "./chunks/resolve-dashboard-input-context-
|
|
29
|
-
import { z as er, t as ar, B as tr, A as sr, E as rr, F as or, y as nr, x as ir, C as lr, w as cr, v as ur, u as dr, G as pr, D as fr } from "./chunks/resolve-dashboard-input-context-
|
|
30
|
-
import "./chunks/index-
|
|
28
|
+
import { n as fe } from "./chunks/resolve-dashboard-input-context-i_jCSYae.js";
|
|
29
|
+
import { z as er, t as ar, B as tr, A as sr, E as rr, F as or, y as nr, x as ir, C as lr, w as cr, v as ur, u as dr, G as pr, D as fr } from "./chunks/resolve-dashboard-input-context-i_jCSYae.js";
|
|
30
|
+
import "./chunks/index-RNaTnE3m.js";
|
|
31
31
|
import "./chunks/context-R31TSL5V.js";
|
|
32
32
|
import "react-dom";
|
|
33
|
-
import "./chunks/index-
|
|
33
|
+
import "./chunks/index-CAgf2x4E.js";
|
|
34
34
|
import "./chunks/appearance-context-DEYtWinQ.js";
|
|
35
35
|
import "./chunks/color-CJvdlFM_.js";
|
|
36
36
|
import "./chunks/index-CLIro-EG.js";
|
|
37
|
-
import { I as he } from "./chunks/use-create-flow-overlay-state-
|
|
37
|
+
import { I as he } from "./chunks/use-create-flow-overlay-state-Dl6DCxh8.js";
|
|
38
38
|
import "./chunks/appearance-runtime-provider-B-M8gwlZ.js";
|
|
39
39
|
const me = { cssWidth: 960, cssHeight: 540 };
|
|
40
40
|
function oa(e) {
|
package/dist/layouts/index.js
CHANGED
package/dist/surfboard/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-
|
|
1
|
+
import { a, R as s, D as o } from "../chunks/report-preferences-dialog-DMqxSU4X.js";
|
|
2
2
|
import { C as f, E as D } from "../chunks/bookmark-state-CWeoGbrx.js";
|
|
3
3
|
export {
|
|
4
4
|
f as CONTROL_CARD_DEFAULT_VALUE,
|
|
@@ -7,5 +7,9 @@ import { default as React } from 'react';
|
|
|
7
7
|
export declare function ActivityBell({ variant }: {
|
|
8
8
|
variant?: 'outline' | 'ghost';
|
|
9
9
|
}): React.JSX.Element;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Every export and Briefing run the person started (SPEC §2.5), and every
|
|
12
|
+
* browser-only export while it runs (SA-D1): running first, newest started
|
|
13
|
+
* first, then finished runs. Mounted only while open.
|
|
14
|
+
*/
|
|
11
15
|
export declare function ActivityTray(): React.JSX.Element;
|
|
@@ -28,10 +28,11 @@ export type ActivityData = {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* A browser-only export (a direct file or a PDF) while it runs or its dialog
|
|
31
|
-
* shows it (BA-D5).
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
31
|
+
* shows it (BA-D5, amended by sync-exports-in-activity SA-D1). A tray row
|
|
32
|
+
* while it runs, never after: the server does not know it. Finishing after
|
|
33
|
+
* its dialog's line was shown and closed raises the one notice and removes
|
|
34
|
+
* it; finishing before the line first shows it (a synchronous file) or while
|
|
35
|
+
* it shows it raises none, and the line shows the result.
|
|
35
36
|
*/
|
|
36
37
|
export type BrowserExport = {
|
|
37
38
|
/** 'browser:' + a random id; also the attempt's watch id. */
|
|
@@ -52,6 +53,8 @@ export type BrowserExport = {
|
|
|
52
53
|
rows?: number;
|
|
53
54
|
fileSize?: number;
|
|
54
55
|
};
|
|
56
|
+
/** Stops it where its dialog's Cancel export can (a table read, SA-D3); null otherwise. */
|
|
57
|
+
cancel: (() => void) | null;
|
|
55
58
|
};
|
|
56
59
|
export type TrackInput = {
|
|
57
60
|
kind: 'export';
|
|
@@ -110,6 +113,9 @@ export type WatchedWork = {
|
|
|
110
113
|
export type ActivitySnapshot = {
|
|
111
114
|
/** Running first, then newest finishedAt; cleared rows excluded. */
|
|
112
115
|
rows: readonly ActivityRow[];
|
|
116
|
+
/** Running browser-only exports, newest first: tray rows beside `rows` (SA-D1), read only by the tray and the bell. */
|
|
117
|
+
browserRows: readonly BrowserExport[];
|
|
118
|
+
/** Running runs and running browser-only exports (SA-D2). */
|
|
113
119
|
runningCount: number;
|
|
114
120
|
hasUnseenFinished: boolean;
|
|
115
121
|
/** Shows M34. */
|
|
@@ -133,8 +139,10 @@ export type BrowserExportWork = {
|
|
|
133
139
|
};
|
|
134
140
|
export type ActivityApi = {
|
|
135
141
|
track(input: TrackInput): void;
|
|
142
|
+
/** `cancel`: what its dialog's Cancel export calls, when it can (a table read); its tray row offers it too. */
|
|
136
143
|
begin(input: {
|
|
137
144
|
title: string;
|
|
145
|
+
cancel?: () => void;
|
|
138
146
|
}): BrowserExportWork;
|
|
139
147
|
clearFinished(): void;
|
|
140
148
|
dismissNotice(id: string): void;
|
|
@@ -345,7 +345,12 @@ type ColumnRole = ColumnKey['role'];
|
|
|
345
345
|
type Column = MetricField | GroupByField | DetailField;
|
|
346
346
|
/** The dataset a column's field belongs to: its semantic source, else its entity. */
|
|
347
347
|
export declare function columnDataset(field: Pick<Field, 'source' | 'entityName' | 'entityId'>): string;
|
|
348
|
-
/**
|
|
348
|
+
/**
|
|
349
|
+
* A field's identity from its name and dataset: the one key columns and field
|
|
350
|
+
* refs are compared by. The row count is one field however it is named: `__count`
|
|
351
|
+
* in a query, `*` with COUNT as its column is stored (MCP first-run fixes,
|
|
352
|
+
* ledger IN-08), so a label, sort or check that names it finds its column.
|
|
353
|
+
*/
|
|
349
354
|
export declare function fieldIdentityKey(name: string, dataset: string): string;
|
|
350
355
|
/** A column's field identity: its name and dataset (never its label). */
|
|
351
356
|
export declare function columnFieldKey(field: Pick<Field, 'name' | 'source' | 'entityName' | 'entityId'>): string;
|
|
@@ -4604,7 +4604,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
4604
4604
|
} | undefined;
|
|
4605
4605
|
})[];
|
|
4606
4606
|
}>>;
|
|
4607
|
-
/** Responsive layouts RL-D9: a width by intent; with no position, the card goes
|
|
4607
|
+
/** Responsive layouts RL-D9: a width by intent; with no position, the card goes after the last card, beside it when the row has room (MCP first-run fixes FR-D4). */
|
|
4608
4608
|
width: z.ZodOptional<z.ZodEnum<["full", "half", "third", "quarter"]>>;
|
|
4609
4609
|
/** Responsive layouts RL-D9: where the card goes; absent, it is placed by kind. */
|
|
4610
4610
|
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["top", "end"]>, z.ZodObject<{
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TCard } from '../../../lib/types/common-types.js';
|
|
2
|
+
import { Field } from '../../../lib/types/explorer-types.js';
|
|
2
3
|
import { RelativeDateFilter } from '../../analytics-protocol/relative-date-filter.js';
|
|
3
4
|
import { CardType } from './card-types.js';
|
|
4
|
-
import { CardQuery, MatrixColumns, TimeWindow } from './dashboard-change.js';
|
|
5
|
+
import { CardQuery, FieldRef, MatrixColumns, TimeWindow } from './dashboard-change.js';
|
|
5
6
|
/**
|
|
6
7
|
* A card's query in the public forms (MCP dashboard editing SPEC 3.5), or why
|
|
7
8
|
* it can't be changed through `card.update`. Conservative: anything the
|
|
@@ -57,5 +58,11 @@ export declare function readCardQuery(card: TCard, viewer: {
|
|
|
57
58
|
* execution owner's rule (`resolveDashboardCardResultOwner`).
|
|
58
59
|
*/
|
|
59
60
|
export declare function readCardSource(card: TCard): OutlineCardSource | undefined;
|
|
61
|
+
type SemanticSource = Extract<OutlineCardSource, {
|
|
62
|
+
kind: 'semantic';
|
|
63
|
+
}>;
|
|
64
|
+
/** A column as a query names it: its plain name on the card's own dataset, else its name and dataset. */
|
|
65
|
+
export declare function fieldRef(field: Pick<Field, 'name' | 'source' | 'entityName' | 'entityId'>, base: SemanticSource): FieldRef;
|
|
60
66
|
/** A saved relative date as the public time window it was compiled from, or null when there isn't one. */
|
|
61
67
|
export declare function relativeToTimeWindow(meta: RelativeDateFilter): TimeWindow | null;
|
|
68
|
+
export {};
|
|
@@ -929,6 +929,6 @@ export type AnalyzeMeasureCalculations = {
|
|
|
929
929
|
*/
|
|
930
930
|
export declare const MEASURE_CALCULATION_SUMMARIES: {
|
|
931
931
|
readonly comparison: "{ kind: 'inherit' (the dashboard's; default) | 'off' | 'previous_period' | 'previous_year' (offsetPeriods or offsetYears?: n, alignment?: 'calendar' | 'weekday', toDate?: true) | 'target' (targetValue: number) }. Targets on kpi and table. A period or year compares over the card's date grouping (a KPI's Trend By: dateField with timeGrain) or the dataset's primary date.";
|
|
932
|
-
readonly transform: "{ kind: 'running_total' | 'moving_average' (window?: 7, minPeriods?: 1) | 'difference_from_previous' (mode?: 'difference' | 'percent_change') | 'percent_of_total' (scope?: 'grand_total' | 'partition_total', output?: 'percent' | 'fraction'), orderBy?: { field, direction? } (default:
|
|
932
|
+
readonly transform: "{ kind: 'running_total' | 'moving_average' (window?: 7, minPeriods?: 1) | 'difference_from_previous' (mode?: 'difference' | 'percent_change') | 'percent_of_total' (scope?: 'grand_total' | 'partition_total' + resetBy, output?: 'percent' | 'fraction'), orderBy?: { field, direction? } (default: first date grouping), resetBy?: [fields] (default: other groupings) }; null removes it. Not beside its own comparison.";
|
|
933
933
|
};
|
|
934
934
|
export {};
|