react-semaphor 0.1.593 → 0.1.594

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 (37) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/briefings/index.js +2 -2
  3. package/dist/chunks/{assistant-chat-D05uNAeO.js → assistant-chat-1-vtOSvb.js} +6 -6
  4. package/dist/chunks/{bookmark-impact-B0k90wq8.js → bookmark-impact-Dh-wiTs3.js} +2 -2
  5. package/dist/chunks/{card-filter-builder-CiafWE26.js → card-filter-builder-CLI3IBUQ.js} +351 -362
  6. package/dist/chunks/{comparison-window-caption-h8w3ySL6.js → comparison-window-caption-DmMFtNP5.js} +1 -1
  7. package/dist/chunks/{dashboard-T-gYKGTF.js → dashboard-a5cAhXh8.js} +1 -1
  8. package/dist/chunks/{dashboard-briefing-launcher-CPh2B3Rf.js → dashboard-briefing-launcher-DtImhLiL.js} +224 -224
  9. package/dist/chunks/{dashboard-controls-Cijc9c3G.js → dashboard-controls-ChS1JL_o.js} +8 -8
  10. package/dist/chunks/{dashboard-json-D3m7h4VL.js → dashboard-json-DEmywwom.js} +1 -1
  11. package/dist/chunks/{dates-Bb0sn54j.js → dates-B-bKEsiu.js} +5 -5
  12. package/dist/chunks/{edit-dashboard-visual-C0iSuX9t.js → edit-dashboard-visual-CjGPZh0A.js} +5170 -5302
  13. package/dist/chunks/{filter-line-CYT7KIXb.js → filter-line-BpdPq1D2.js} +3 -2
  14. package/dist/chunks/{filter-reach-copy-CifrEFxj.js → filter-reach-copy-DoXmRmk-.js} +4 -4
  15. package/dist/chunks/{filter-value-text-CHBm4IU7.js → filter-value-text-CDQCIREQ.js} +10 -10
  16. package/dist/chunks/{index-CzM2w1kY.js → index-C0jX5wlM.js} +2 -2
  17. package/dist/chunks/{pivot-result-contract-expectations-CaS0y823.js → pivot-result-contract-expectations-Dt0E1Wou.js} +1309 -1312
  18. package/dist/chunks/{report-preferences-dialog-GHvai50w.js → report-preferences-dialog-WFosRbzF.js} +8 -8
  19. package/dist/chunks/{resolve-dashboard-input-context-BcQHmMlw.js → resolve-dashboard-input-context-DfJshnw8.js} +3621 -3556
  20. package/dist/chunks/{saved-dashboard-context-BHHEzmwM.js → saved-dashboard-context-DdhPU2Kq.js} +3 -3
  21. package/dist/chunks/{semaphor-ready-indicator-AOUJrUAJ.js → semaphor-ready-indicator-DBGF9cuM.js} +21939 -21871
  22. package/dist/chunks/{shelf-drop-preview-context-Cs62lWI1.js → shelf-drop-preview-context-v9NfjBVj.js} +2 -2
  23. package/dist/chunks/{stored-dashboard-Cmtl_Obh.js → stored-dashboard-D6FtWx_3.js} +930 -928
  24. package/dist/chunks/{table-export-sheet-Cd6z7SsG.js → table-export-sheet-DBlFMvE8.js} +1 -1
  25. package/dist/chunks/{variable-draft-CSK9Ps1o.js → variable-draft-CxdgKDCx.js} +2 -2
  26. package/dist/dashboard/index.js +1 -1
  27. package/dist/dashboard-authoring/index.js +1025 -1012
  28. package/dist/format-utils/index.js +211 -210
  29. package/dist/index.js +11 -11
  30. package/dist/surfboard/index.js +1 -1
  31. package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -1
  32. package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +43 -1
  33. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  34. package/dist/types/shared/dashboard-authoring/semantic-card-domain.d.ts +30 -0
  35. package/dist/types/shared/dashboard-authoring/temporal-bucket-authoring.d.ts +7 -1
  36. package/dist/types/shared/format-utils/temporal-bucket-format-policy.d.ts +27 -5
  37. package/package.json +1 -1
@@ -15,5 +15,11 @@ export type TemporalBucketAuthoringSelection = {
15
15
  export declare function previewTemporalBucketAuthoringFormat(format: TemporalBucketFormat, granularity: SemaphorTimeGrain, preferences?: ResolvedTemporalValueFormatPreferences): string;
16
16
  export declare function getTemporalBucketAuthoringOptions(granularity: SemaphorTimeGrain, preservedFormat?: TemporalBucketFormat, preferences?: ResolvedTemporalValueFormatPreferences): readonly TemporalBucketAuthoringOption[];
17
17
  export declare function getTemporalBucketAuthoringSelection(format: TemporalBucketFormat, granularity: SemaphorTimeGrain): TemporalBucketAuthoringSelection;
18
- export declare function resolveTemporalBucketAuthoringFormat(granularity: SemaphorTimeGrain, value: string, customPattern?: string): TemporalBucketFormat;
18
+ /**
19
+ * A list choice's stored format: a listed pattern or preset, or a preserved
20
+ * preset. A custom pattern is typed through the grouped date panel and read
21
+ * by `customGroupedDateFormat`, which says why a pattern can't be used
22
+ * (grouped date and time display GD-D6); this resolver doesn't take one.
23
+ */
24
+ export declare function resolveTemporalBucketAuthoringFormat(granularity: SemaphorTimeGrain, value: string): TemporalBucketFormat;
19
25
  export declare function reconcileTemporalBucketAuthoringFormat(format: TemporalBucketFormat, granularity: SemaphorTimeGrain): TemporalBucketFormat;
@@ -1,6 +1,26 @@
1
1
  import { SemaphorTimeGrain, TemporalBucketFormat, TemporalBucketPreset } from '../analytics-protocol/contracts.js';
2
+ /**
3
+ * Semaphor tokens: the pattern letters every surface draws, including the
4
+ * query's own SQL formatting (semaphor-app `date-utils.ts`
5
+ * `CUSTOM_FORMAT_TOKEN_MAP`) and a detail column's `semaphor_tokens` dialect.
6
+ * They never gain 12-hour letters (grouped date and time display GD-INV-2).
7
+ */
2
8
  export declare const TEMPORAL_BUCKET_PATTERN_TOKENS: readonly ["YYYY", "MMMM", "MMM", "YY", "MM", "DD", "HH", "mm", "ss"];
3
- export type TemporalBucketPatternToken = (typeof TEMPORAL_BUCKET_PATTERN_TOKENS)[number];
9
+ /**
10
+ * The 12-hour letters a grouped date adds (GD-D3): `h` and `hh` (padded) for
11
+ * the hour, `a` or `A` for AM or PM. A grouped date with a grain is labeled
12
+ * after the query, by the browser or the scheduler, never in SQL.
13
+ */
14
+ export declare const TWELVE_HOUR_PATTERN_TOKENS: readonly ["hh", "h", "a", "A"];
15
+ export type SemaphorPatternToken = (typeof TEMPORAL_BUCKET_PATTERN_TOKENS)[number];
16
+ export type TwelveHourPatternToken = (typeof TWELVE_HOUR_PATTERN_TOKENS)[number];
17
+ export type TemporalBucketPatternToken = SemaphorPatternToken | TwelveHourPatternToken;
18
+ /**
19
+ * Which letters a pattern may use: `semaphor_tokens` where the query may
20
+ * format the date (a detail column's Semaphor-token pattern, a grain-less
21
+ * grouped date), `grouped` for a grouped date's label (GD-D3).
22
+ */
23
+ export type TemporalBucketPatternVocabulary = 'semaphor_tokens' | 'grouped';
4
24
  export type TemporalBucketPatternSegment = {
5
25
  kind: 'token';
6
26
  value: TemporalBucketPatternToken;
@@ -9,6 +29,7 @@ export type TemporalBucketPatternSegment = {
9
29
  value: string;
10
30
  };
11
31
  export type TemporalBucketFormatApplicabilityErrorCode = 'invalid_temporal_bucket_pattern' | 'incompatible_temporal_bucket_pattern' | 'incompatible_temporal_bucket_preset';
32
+ /** A refusal's `message` is the reason in the author's words, shown by the editor and the MCP alike (GD-D6). */
12
33
  export type TemporalBucketPatternTokenizationResult = {
13
34
  ok: true;
14
35
  segments: TemporalBucketPatternSegment[];
@@ -27,11 +48,12 @@ export type TemporalBucketFormatApplicabilityResult = {
27
48
  };
28
49
  export declare function isTemporalBucketPreset(value: unknown): value is TemporalBucketPreset;
29
50
  /**
30
- * Tokenizes the finite grouped-temporal pattern vocabulary from Plan 04.
31
- * It intentionally performs a deterministic left-to-right scan instead of
32
- * regex replacement or date-library token inference.
51
+ * Tokenizes the finite pattern vocabulary from Plan 04, with the letters the
52
+ * caller's vocabulary allows. It intentionally performs a deterministic
53
+ * left-to-right scan instead of regex replacement or date-library token
54
+ * inference.
33
55
  */
34
- export declare function tokenizeTemporalBucketPattern(pattern: string): TemporalBucketPatternTokenizationResult;
56
+ export declare function tokenizeTemporalBucketPattern(pattern: string, vocabulary: TemporalBucketPatternVocabulary): TemporalBucketPatternTokenizationResult;
35
57
  export declare function validateTemporalBucketFormatApplicability(format: TemporalBucketFormat, granularity: SemaphorTimeGrain): TemporalBucketFormatApplicabilityResult;
36
58
  /**
37
59
  * Retains authored temporal presentation only when its grain is present and
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.593",
8
+ "version": "0.1.594",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",