react-semaphor 0.1.527 → 0.1.529

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 (64) hide show
  1. package/dist/analytics-protocol/index.js +207 -196
  2. package/dist/brand-studio/index.js +3 -3
  3. package/dist/briefings/index.js +5 -5
  4. package/dist/chunks/{calculated-field-identity-DEhjPSr-.js → calculated-field-identity-Q1aCudPD.js} +4 -4
  5. package/dist/chunks/{card-config-utils-BlIbwkuD.js → card-config-utils-DqyASiD_.js} +5 -5
  6. package/dist/chunks/{dashboard-JNHR0_cZ.js → dashboard-BC-EC5M_.js} +1 -1
  7. package/dist/chunks/{dashboard-briefing-launcher-D9pFByPh.js → dashboard-briefing-launcher-CwyFda8i.js} +9 -9
  8. package/dist/chunks/{dashboard-controls-CJI5ZWMq.js → dashboard-controls-Bqg8vlyr.js} +11 -11
  9. package/dist/chunks/{dashboard-json-DLdrFry-.js → dashboard-json-DVicOlh9.js} +3 -3
  10. package/dist/chunks/{edit-dashboard-visual-D5LjWle1.js → edit-dashboard-visual-D4k246cQ.js} +1984 -1961
  11. package/dist/chunks/{editor-action-buttons-G91NQKxU.js → editor-action-buttons-DKIZkBTZ.js} +6 -6
  12. package/dist/chunks/{field-aggregations-DeVQLIsP.js → field-aggregations-BCDRRYMo.js} +6 -6
  13. package/dist/chunks/{field-dependencies-CGYic38w.js → field-dependencies-BWStuMxe.js} +1 -1
  14. package/dist/chunks/{index-BvJOYbNv.js → index-BpAM7UE0.js} +351 -360
  15. package/dist/chunks/{matrix-analytical-definition-BJyH5-99.js → matrix-analytical-definition-Q4GL16S4.js} +1 -1
  16. package/dist/chunks/{matrix-card-DY45yiUM.js → matrix-card-CkfMe-h-.js} +2 -2
  17. package/dist/chunks/{matrix-control-sources-BypfLZsK.js → matrix-control-sources-fD0Ns_9n.js} +5 -5
  18. package/dist/chunks/{matrix-definition-Cdn3LoxW.js → matrix-definition-CiGRzEzt.js} +1 -1
  19. package/dist/chunks/{matrix-formatter-BoKU3MzZ.js → matrix-formatter-DDjECnMd.js} +5 -5
  20. package/dist/chunks/{matrix-member-presentation-BBW0n1iY.js → matrix-member-presentation-Glhem6xB.js} +1 -1
  21. package/dist/chunks/matrix-operation-contract-BotZ-6zT.js +1383 -0
  22. package/dist/chunks/{metric-comparison-Crljx_XY.js → metric-comparison-QEkk6hqL.js} +1 -1
  23. package/dist/chunks/{numeric-presentation-LvnNY5Ma.js → numeric-presentation-D2I9znLM.js} +1 -1
  24. package/dist/chunks/{pivot-header-presentation-D5v8uyjj.js → pivot-header-presentation-BTOXdU6S.js} +7 -7
  25. package/dist/chunks/{pivot-result-identity-CY__BuwI.js → pivot-result-identity-BhAm8MCg.js} +1 -1
  26. package/dist/chunks/{pivot-result-lifecycle-BWrPhlGT.js → pivot-result-lifecycle-BxmATSFJ.js} +8 -8
  27. package/dist/chunks/{raw-temporal-CdnA_OXJ.js → raw-temporal-B0EuwEHr.js} +2 -2
  28. package/dist/chunks/{raw-temporal-contract-Bc9z83t-.js → raw-temporal-contract-BlyUGV3y.js} +1 -1
  29. package/dist/chunks/{relative-date-DAF9J7mt.js → relative-date-P4o6ME04.js} +1 -1
  30. package/dist/chunks/{report-preferences-dialog-D3hxu4sE.js → report-preferences-dialog-DFpOrZ02.js} +9 -9
  31. package/dist/chunks/{report-runtime-context-CtaGGlit.js → report-runtime-context-DceiWMKz.js} +1 -1
  32. package/dist/chunks/{selection-reducer-C7Um5XN-.js → selection-reducer-DQok8gsC.js} +1 -1
  33. package/dist/chunks/{semantic-format-BjBMOSoo.js → semantic-format-ByNkXJpY.js} +3 -3
  34. package/dist/chunks/{semaphor-ready-indicator-D46I_4g7.js → semaphor-ready-indicator-DBb9d0Xp.js} +9359 -9411
  35. package/dist/chunks/{slider-B6LELqx6.js → slider-BibKRCxX.js} +8 -8
  36. package/dist/chunks/{source-entity-resolution-Bde29mqE.js → source-entity-resolution-BWmw7a8P.js} +124 -132
  37. package/dist/chunks/{switch-_7uBAbYx.js → switch-Bql-RCoZ.js} +16 -18
  38. package/dist/chunks/{temporal-bucket-contract-C6lUGPS3.js → temporal-bucket-contract-CdBtoHX2.js} +1 -1
  39. package/dist/chunks/{temporal-input-presentation-DyMWCZYh.js → temporal-input-presentation-wUO681Zs.js} +1 -1
  40. package/dist/chunks/{token-types-UjyNz95-.js → token-types-Brc30mNN.js} +1 -1
  41. package/dist/chunks/{validators-CQcG0EPN.js → validators-BS521dum.js} +1 -1
  42. package/dist/dashboard/index.js +1 -1
  43. package/dist/dashboard-authoring/index.js +10 -10
  44. package/dist/data-app-sdk/index.js +5 -5
  45. package/dist/data-app-sdk-adapters/index.js +2 -2
  46. package/dist/data-app-sdk-validation/index.js +5 -5
  47. package/dist/format-utils/index.js +13 -13
  48. package/dist/index.js +17 -17
  49. package/dist/report-runtime-context/index.js +2 -2
  50. package/dist/surfboard/index.js +1 -1
  51. package/dist/types/index.js +5 -5
  52. package/dist/types/lib/types/explorer-types.d.ts +3 -1
  53. package/dist/types/lib/types/semantic-types.d.ts +4 -2
  54. package/dist/types/lib/utils/aggregate-expression-utils.d.ts +0 -4
  55. package/dist/types/lib/utils/connection-capabilities.d.ts +3 -3
  56. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +89 -0
  57. package/dist/types/shared/analytics-protocol/analytics-refusal.d.ts +32 -0
  58. package/dist/types/shared/analytics-protocol/contracts.d.ts +38 -0
  59. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  60. package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
  61. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +10 -1
  62. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +63 -0
  63. package/package.json +2 -2
  64. package/dist/chunks/matrix-operation-contract-BV02rLhu.js +0 -809
@@ -0,0 +1,63 @@
1
+ import { AggregationFunctionKind } from './aggregate-expression.js';
2
+ /** The structural fields of a measure the profile reads. */
3
+ export type MeasureProfileField = {
4
+ name?: string;
5
+ role?: string;
6
+ aggregate?: string;
7
+ expression?: string;
8
+ isPreAggregated?: boolean;
9
+ calculatedFormula?: {
10
+ computeStage?: 'row' | 'aggregate';
11
+ inputFields?: ReadonlyArray<MeasureProfileField>;
12
+ };
13
+ derivedField?: {
14
+ computeStage?: 'row' | 'aggregate';
15
+ aggregationBehavior?: string;
16
+ };
17
+ };
18
+ /** How partial results of a measure combine into a larger group. */
19
+ export type MeasureReaggregation =
20
+ /** Sum the partials (SUM, COUNT, and sums of them). */
21
+ {
22
+ kind: 'additive';
23
+ }
24
+ /** Rebuild from summed parts: AVG from SUM and COUNT partials. */
25
+ | {
26
+ kind: 'decomposable_avg';
27
+ }
28
+ /** Take the MIN or MAX of the partials. */
29
+ | {
30
+ kind: 'idempotent';
31
+ fn: 'min' | 'max';
32
+ }
33
+ /** Partials can't be combined; recompute at the larger grain. */
34
+ | {
35
+ kind: 'none';
36
+ reason: 'distinct' | 'median' | 'ratio' | 'window' | 'declared' | 'unresolved' | 'other';
37
+ };
38
+ export type MeasureAggregationProfile = {
39
+ /** `aggregate`: the measure aggregates itself; `row`: it needs `outer`. */
40
+ stage: 'row' | 'aggregate';
41
+ /** The aggregate wrapping a row-stage measure. */
42
+ outer?: AggregationFunctionKind;
43
+ /** Every aggregate the measure computes, nested inputs expanded. */
44
+ calls: Array<{
45
+ kind: AggregationFunctionKind;
46
+ distinct: boolean;
47
+ }>;
48
+ windowed: boolean;
49
+ /** The value is unchanged when input rows repeat (as through a to-many join). */
50
+ repeatSafe: boolean;
51
+ reaggregation: MeasureReaggregation;
52
+ /** MIN and MAX keep their input's type; everything else is a number. */
53
+ outputType: 'numeric' | 'input';
54
+ /** A stable name for labels and result identity. */
55
+ identity: AggregationFunctionKind | 'ratio' | 'linear' | 'expression' | 'unresolved';
56
+ /** The profile could not be determined exactly; every answer is the cautious one. */
57
+ unresolved: boolean;
58
+ };
59
+ /**
60
+ * The aggregation profile of a compiled measure field. Pure; reads only the
61
+ * field and its nested `calculatedFormula.inputFields`.
62
+ */
63
+ export declare function resolveMeasureAggregationProfile(field: MeasureProfileField): MeasureAggregationProfile;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.527",
8
+ "version": "0.1.529",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -115,7 +115,7 @@
115
115
  "build": "node scripts/build.mjs",
116
116
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
117
117
  "lint:regressions": "node scripts/lint-regressions.mjs",
118
- "check:card-config-consumers": "node scripts/card-config-consumers.mjs",
118
+ "check:guards": "node scripts/card-config-consumers.mjs && node scripts/components-entry-imports.mjs",
119
119
  "preview": "vite preview",
120
120
  "test": "vitest run",
121
121
  "test:changed": "vitest run --changed",