react-semaphor 0.1.326 → 0.1.328

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 (82) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +1 -1
  3. package/dist/brand-studio/index.cjs +5 -5
  4. package/dist/brand-studio/index.js +23 -24
  5. package/dist/chunks/_commonjsHelpers-BVfed4GL.js +28 -0
  6. package/dist/chunks/_commonjsHelpers-DwTZ_eVU.js +1 -0
  7. package/dist/chunks/{braces-DVaMJoCd.js → braces-CG8viaD2.js} +1 -1
  8. package/dist/chunks/{braces-dHeaioTd.js → braces-DSaa_4Oc.js} +1 -1
  9. package/dist/chunks/{calendar-preferences-dialog-mqU_uOmY.js → calendar-preferences-dialog-DD_qAthL.js} +1 -1
  10. package/dist/chunks/{calendar-preferences-dialog--2jD-eKu.js → calendar-preferences-dialog-JRmNJptJ.js} +3 -3
  11. package/dist/chunks/{chevrons-up-down-DNQE-uEp.js → chevrons-up-down-CBa0uh0X.js} +1 -1
  12. package/dist/chunks/{chevrons-up-down-CLbzBHoI.js → chevrons-up-down-ChDNqVP7.js} +1 -1
  13. package/dist/chunks/dashboard-briefing-launcher-BKdJFwH5.js +106 -0
  14. package/dist/chunks/{dashboard-briefing-launcher-DsjXUPFq.js → dashboard-briefing-launcher-BfyNkd8i.js} +1106 -1108
  15. package/dist/chunks/{dashboard-controls-DgNkM1yT.js → dashboard-controls-0pZDLvFL.js} +218 -218
  16. package/dist/chunks/{dashboard-controls-XCa9PZuU.js → dashboard-controls-C0xm1QMR.js} +10 -10
  17. package/dist/chunks/dashboard-json-BW5OVZ6m.js +1 -0
  18. package/dist/chunks/{dashboard-json-DkA6Bf0Y.js → dashboard-json-DsruhRPD.js} +14 -13
  19. package/dist/chunks/date-formatter-B4EBSe9C.js +1 -0
  20. package/dist/chunks/date-formatter-CzcPZx39.js +416 -0
  21. package/dist/chunks/edit-dashboard-visual-DQyJ7SSv.js +178 -0
  22. package/dist/chunks/{edit-dashboard-visual-Q5hW5MXk.js → edit-dashboard-visual-g5SZZahJ.js} +8242 -7784
  23. package/dist/chunks/index-1JWDPCun.js +1935 -0
  24. package/dist/chunks/index-BdjXTQt4.js +1444 -0
  25. package/dist/chunks/{index-DwfDwtv2.js → index-BmKr-K7J.js} +117670 -113627
  26. package/dist/chunks/index-C1l78BIx.js +3247 -0
  27. package/dist/chunks/lib-Ce3zosXY.js +38 -0
  28. package/dist/chunks/lib-DFvr9fM4.js +5500 -0
  29. package/dist/chunks/{palette-DtmNws9a.js → palette-D0YmAqBS.js} +1 -1
  30. package/dist/chunks/{palette-DpcvHAiY.js → palette-DQgq3edH.js} +1 -1
  31. package/dist/chunks/{resource-management-panel-CGwWKZOP.js → resource-management-panel-CIfBh46E.js} +1 -1
  32. package/dist/chunks/{resource-management-panel-D2oAQkKi.js → resource-management-panel-Cj19pw9M.js} +145 -145
  33. package/dist/chunks/switch-BvTzw2AW.js +173 -0
  34. package/dist/chunks/{switch-j3AThLFk.js → switch-De31SR3q.js} +2752 -2717
  35. package/dist/chunks/typescript-Cmizj1hi.js +446 -0
  36. package/dist/chunks/typescript-H1EwZsOb.js +159820 -0
  37. package/dist/chunks/use-create-flow-overlay-state-BTQiKRD1.js +26 -0
  38. package/dist/chunks/{use-create-flow-overlay-state-CP6GDQAX.js → use-create-flow-overlay-state-IcHP0l39.js} +150 -151
  39. package/dist/chunks/{use-visual-utils-CSXU-96k.js → use-visual-utils-DQ5zGYD2.js} +13 -13
  40. package/dist/chunks/{use-visual-utils-NpOW5uZ1.js → use-visual-utils-XF-AqV8o.js} +1 -1
  41. package/dist/chunks/{validators-DvTxl9i0.js → validators-DDAweCzB.js} +67 -48
  42. package/dist/chunks/validators-odlRJblR.js +2 -0
  43. package/dist/dashboard/index.cjs +1 -1
  44. package/dist/dashboard/index.js +1 -1
  45. package/dist/dashboard-authoring/index.cjs +3 -3
  46. package/dist/dashboard-authoring/index.js +907 -527
  47. package/dist/data-app-builder/index.cjs +1 -0
  48. package/dist/data-app-builder/index.js +4 -0
  49. package/dist/data-app-builder-browser-runtime/index.cjs +1 -0
  50. package/dist/data-app-builder-browser-runtime/index.js +10 -0
  51. package/dist/data-app-sdk/index.cjs +1 -1
  52. package/dist/data-app-sdk/index.js +208 -196
  53. package/dist/format-utils/index.cjs +4 -4
  54. package/dist/format-utils/index.js +22 -21
  55. package/dist/index.cjs +1 -1
  56. package/dist/index.js +14 -14
  57. package/dist/style.css +1 -1
  58. package/dist/surfboard/index.cjs +1 -1
  59. package/dist/surfboard/index.js +2 -2
  60. package/dist/types/analytics-protocol.d.ts +1 -0
  61. package/dist/types/dashboard-authoring.d.ts +79 -2
  62. package/dist/types/dashboard.d.ts +17 -2
  63. package/dist/types/data-app-builder-browser-runtime.d.ts +185 -0
  64. package/dist/types/data-app-builder.d.ts +630 -0
  65. package/dist/types/data-app-sdk.d.ts +15 -1
  66. package/dist/types/format-utils.d.ts +25 -0
  67. package/dist/types/main.d.ts +67 -10
  68. package/dist/types/shared.d.ts +17 -2
  69. package/dist/types/surfboard.d.ts +17 -2
  70. package/dist/types/types.d.ts +32 -3
  71. package/package.json +11 -1
  72. package/dist/chunks/dashboard-briefing-launcher-DguNfFr8.js +0 -106
  73. package/dist/chunks/dashboard-json-DiBd65Xf.js +0 -1
  74. package/dist/chunks/date-formatter-D9Bvw5Qk.js +0 -1
  75. package/dist/chunks/date-formatter-DyIOb6uC.js +0 -333
  76. package/dist/chunks/edit-dashboard-visual-BC9eOc4U.js +0 -178
  77. package/dist/chunks/index-B1-46PoR.js +0 -1303
  78. package/dist/chunks/save-BY7WF62U.js +0 -21
  79. package/dist/chunks/save-Cv_XRb94.js +0 -6
  80. package/dist/chunks/switch-5aQ_jcLH.js +0 -168
  81. package/dist/chunks/use-create-flow-overlay-state-BQPXP0AM.js +0 -26
  82. package/dist/chunks/validators-DJUMR5An.js +0 -2
@@ -1170,7 +1170,7 @@ export declare type CancelBriefingRunResponse = {
1170
1170
  */
1171
1171
  export declare function cancelExport(apiServiceUrl: string, token: string, exportId: string): Promise<void>;
1172
1172
 
1173
- export declare type CanonicalFormatSpec = NumericCanonicalFormat | DateCanonicalFormat | StringCanonicalFormat;
1173
+ export declare type CanonicalFormatSpec = NumericCanonicalFormat | DateCanonicalFormat | DurationCanonicalFormat | StringCanonicalFormat;
1174
1174
 
1175
1175
  export declare interface CardConfig {
1176
1176
  groupByColumns?: GroupByField[];
@@ -1771,12 +1771,19 @@ export declare type DashboardBriefingLauncherProps = {
1771
1771
  client?: Partial<DashboardBriefingLauncherClient>;
1772
1772
  };
1773
1773
 
1774
+ declare type DashboardCardQueryFieldRef = {
1775
+ name: string;
1776
+ source?: DashboardAuthoringDatasetRef;
1777
+ };
1778
+
1774
1779
  declare type DashboardCardQueryIntent = {
1775
1780
  metric?: string;
1776
1781
  metrics?: string[];
1777
1782
  dateField?: string;
1783
+ dateFieldRef?: DashboardCardQueryFieldRef;
1778
1784
  timeGrain?: 'day' | 'week' | 'month' | 'quarter' | 'year';
1779
1785
  dimensions?: string[];
1786
+ dimensionRefs?: DashboardCardQueryFieldRef[];
1780
1787
  limit?: number;
1781
1788
  };
1782
1789
 
@@ -1818,13 +1825,8 @@ export declare interface DashboardCreateDialogBaseProps {
1818
1825
  isCreatingBlank: boolean;
1819
1826
  sources: DashboardAuthoringSource[];
1820
1827
  sourcesLoading?: boolean;
1821
- suggestDashboards: (input: {
1822
- dataset: DashboardAuthoringDatasetRef;
1823
- }) => Promise<DashboardSuggestion[]>;
1824
- planDashboard: AsyncMutation<{
1825
- prompt: string;
1826
- dataset: DashboardAuthoringDatasetRef;
1827
- }, DashboardPlan>;
1828
+ suggestDashboards: (input: DashboardSuggestionRequest) => Promise<DashboardSuggestion[]>;
1829
+ planDashboard: AsyncMutation<DashboardPlanRequest, DashboardPlan>;
1828
1830
  createDashboardFromPlan: AsyncMutation<DashboardPlan, any>;
1829
1831
  settingsSlot?: ReactNode;
1830
1832
  blankDescription?: string;
@@ -2069,6 +2071,15 @@ declare type DashboardPlanFilterInput = {
2069
2071
  defaultValue?: unknown;
2070
2072
  };
2071
2073
 
2074
+ declare type DashboardPlanRequest = {
2075
+ prompt: string;
2076
+ dataset: DashboardAuthoringDatasetRef;
2077
+ } | {
2078
+ prompt: string;
2079
+ domainId: string;
2080
+ datasetNames?: string[];
2081
+ };
2082
+
2072
2083
  declare type DashboardPlanSheet = {
2073
2084
  id: string;
2074
2085
  title: string;
@@ -2274,10 +2285,24 @@ declare type DashboardSuggestion = {
2274
2285
  cardCount: number;
2275
2286
  filterCount: number;
2276
2287
  prompt: string;
2288
+ datasets?: Array<{
2289
+ name: string;
2290
+ label?: string;
2291
+ }>;
2292
+ relationshipHints?: string[];
2277
2293
  };
2278
2294
 
2279
2295
  declare type DashboardSuggestionPreviewKind = 'kpi' | 'line' | 'bar' | 'donut' | 'table';
2280
2296
 
2297
+ declare type DashboardSuggestionRequest = {
2298
+ dataset: DashboardAuthoringDatasetRef;
2299
+ instruction?: string;
2300
+ } | {
2301
+ domainId: string;
2302
+ datasetNames?: string[];
2303
+ instruction?: string;
2304
+ };
2305
+
2281
2306
  export declare const DashboardWC: CustomElementConstructor;
2282
2307
 
2283
2308
  export declare interface DatabaseEntityReference {
@@ -2927,6 +2952,20 @@ export declare type DropdownItem = {
2927
2952
 
2928
2953
  export declare type DroppableId = 'droppable-group-by' | 'droppable-metric';
2929
2954
 
2955
+ declare type DurationCanonicalFormat = {
2956
+ type: 'duration';
2957
+ inputUnit?: DurationUnit;
2958
+ outputStyle?: 'compact' | 'digital' | 'long';
2959
+ largestUnit?: DurationUnit;
2960
+ smallestUnit?: DurationUnit;
2961
+ maxUnits?: number;
2962
+ prefix?: string;
2963
+ suffix?: string;
2964
+ negativeStyle?: 'minus' | 'parentheses';
2965
+ };
2966
+
2967
+ declare type DurationUnit = 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2968
+
2930
2969
  export declare interface DynamicDrillEvent extends BaseInteractionEvent {
2931
2970
  interactionMode: 'dynamicDrill';
2932
2971
  filterGroups: ClickFilterConditionGroup[];
@@ -3436,6 +3475,16 @@ export declare type FormatSpec = {
3436
3475
  sourceTimezone?: string;
3437
3476
  prefix?: string;
3438
3477
  suffix?: string;
3478
+ } | {
3479
+ type: 'duration';
3480
+ inputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
3481
+ outputStyle?: 'compact' | 'digital' | 'long';
3482
+ largestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
3483
+ smallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
3484
+ maxUnits?: number;
3485
+ prefix?: string;
3486
+ suffix?: string;
3487
+ negativeStyle?: 'minus' | 'parentheses';
3439
3488
  } | {
3440
3489
  type: 'string';
3441
3490
  prefix?: string;
@@ -4247,9 +4296,11 @@ export declare interface ResourceListItem {
4247
4296
  id: string;
4248
4297
  title: string;
4249
4298
  description: string;
4299
+ kind?: string | null;
4250
4300
  isPrivate: boolean;
4251
4301
  isPublic: boolean;
4252
4302
  version: string;
4303
+ currentDataAppVersionId?: string | null;
4253
4304
  createdBy: string | null;
4254
4305
  createdByTenantUser: string;
4255
4306
  tenantId: string;
@@ -4377,6 +4428,7 @@ declare type SemaphorFieldRef = {
4377
4428
  label?: string;
4378
4429
  role?: 'dimension' | 'measure' | 'date' | 'id' | 'unknown';
4379
4430
  dataType?: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'unknown';
4431
+ source?: SemaphorSourceRef;
4380
4432
  };
4381
4433
 
4382
4434
  declare type SemaphorInputBinding = {
@@ -5271,7 +5323,7 @@ export declare type TDataLabelsConfig = {
5271
5323
  display?: 'auto' | boolean;
5272
5324
  formatMode?: 'inherit' | 'override';
5273
5325
  /** @deprecated Use formatMode + formatOptions.type */
5274
- format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'none';
5326
+ format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'duration' | 'none';
5275
5327
  formatOptions?: TFormatOptions;
5276
5328
  font?: {
5277
5329
  size?: number;
@@ -5422,7 +5474,7 @@ export declare type TFilter = {
5422
5474
  export declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForNull | FilterForDate;
5423
5475
 
5424
5476
  export declare type TFormatOptions = {
5425
- type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
5477
+ type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date' | 'duration';
5426
5478
  decimalPlaces?: number;
5427
5479
  minimumFractionDigits?: number;
5428
5480
  maximumFractionDigits?: number;
@@ -5439,6 +5491,11 @@ export declare type TFormatOptions = {
5439
5491
  timezone?: string;
5440
5492
  sourceTimezone?: string;
5441
5493
  relative?: boolean;
5494
+ durationInputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
5495
+ durationDisplayStyle?: 'compact' | 'digital' | 'long';
5496
+ durationLargestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
5497
+ durationSmallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
5498
+ durationMaxUnits?: number;
5442
5499
  };
5443
5500
 
5444
5501
  export declare type TFrame = {
@@ -1228,6 +1228,16 @@ declare type FormatSpec = {
1228
1228
  sourceTimezone?: string;
1229
1229
  prefix?: string;
1230
1230
  suffix?: string;
1231
+ } | {
1232
+ type: 'duration';
1233
+ inputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
1234
+ outputStyle?: 'compact' | 'digital' | 'long';
1235
+ largestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
1236
+ smallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
1237
+ maxUnits?: number;
1238
+ prefix?: string;
1239
+ suffix?: string;
1240
+ negativeStyle?: 'minus' | 'parentheses';
1231
1241
  } | {
1232
1242
  type: 'string';
1233
1243
  prefix?: string;
@@ -2098,7 +2108,7 @@ declare type TDataLabelsConfig = {
2098
2108
  display?: 'auto' | boolean;
2099
2109
  formatMode?: 'inherit' | 'override';
2100
2110
  /** @deprecated Use formatMode + formatOptions.type */
2101
- format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'none';
2111
+ format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'duration' | 'none';
2102
2112
  formatOptions?: TFormatOptions;
2103
2113
  font?: {
2104
2114
  size?: number;
@@ -2236,7 +2246,7 @@ declare type TFilter = {
2236
2246
  declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForNull | FilterForDate;
2237
2247
 
2238
2248
  declare type TFormatOptions = {
2239
- type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
2249
+ type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date' | 'duration';
2240
2250
  decimalPlaces?: number;
2241
2251
  minimumFractionDigits?: number;
2242
2252
  maximumFractionDigits?: number;
@@ -2253,6 +2263,11 @@ declare type TFormatOptions = {
2253
2263
  timezone?: string;
2254
2264
  sourceTimezone?: string;
2255
2265
  relative?: boolean;
2266
+ durationInputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2267
+ durationDisplayStyle?: 'compact' | 'digital' | 'long';
2268
+ durationLargestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2269
+ durationSmallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2270
+ durationMaxUnits?: number;
2256
2271
  };
2257
2272
 
2258
2273
  declare type TFrame = {
@@ -1479,6 +1479,16 @@ declare type FormatSpec = {
1479
1479
  sourceTimezone?: string;
1480
1480
  prefix?: string;
1481
1481
  suffix?: string;
1482
+ } | {
1483
+ type: 'duration';
1484
+ inputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
1485
+ outputStyle?: 'compact' | 'digital' | 'long';
1486
+ largestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
1487
+ smallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
1488
+ maxUnits?: number;
1489
+ prefix?: string;
1490
+ suffix?: string;
1491
+ negativeStyle?: 'minus' | 'parentheses';
1482
1492
  } | {
1483
1493
  type: 'string';
1484
1494
  prefix?: string;
@@ -2532,7 +2542,7 @@ export declare type TDataLabelsConfig = {
2532
2542
  display?: 'auto' | boolean;
2533
2543
  formatMode?: 'inherit' | 'override';
2534
2544
  /** @deprecated Use formatMode + formatOptions.type */
2535
- format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'none';
2545
+ format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'duration' | 'none';
2536
2546
  formatOptions?: TFormatOptions;
2537
2547
  font?: {
2538
2548
  size?: number;
@@ -2683,7 +2693,7 @@ declare type TFilter = {
2683
2693
  declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForNull | FilterForDate;
2684
2694
 
2685
2695
  export declare type TFormatOptions = {
2686
- type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
2696
+ type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date' | 'duration';
2687
2697
  decimalPlaces?: number;
2688
2698
  minimumFractionDigits?: number;
2689
2699
  maximumFractionDigits?: number;
@@ -2700,6 +2710,11 @@ export declare type TFormatOptions = {
2700
2710
  timezone?: string;
2701
2711
  sourceTimezone?: string;
2702
2712
  relative?: boolean;
2713
+ durationInputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2714
+ durationDisplayStyle?: 'compact' | 'digital' | 'long';
2715
+ durationLargestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2716
+ durationSmallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2717
+ durationMaxUnits?: number;
2703
2718
  };
2704
2719
 
2705
2720
  export declare type TFrame = {
@@ -645,7 +645,7 @@ export declare type CancelBriefingRunResponse = {
645
645
  transitionApplied: boolean;
646
646
  };
647
647
 
648
- export declare type CanonicalFormatSpec = NumericCanonicalFormat | DateCanonicalFormat | StringCanonicalFormat;
648
+ export declare type CanonicalFormatSpec = NumericCanonicalFormat | DateCanonicalFormat | DurationCanonicalFormat | StringCanonicalFormat;
649
649
 
650
650
  export declare interface CardConfig {
651
651
  groupByColumns?: GroupByField[];
@@ -1737,6 +1737,20 @@ declare interface DrillUpInteraction {
1737
1737
 
1738
1738
  export declare type DroppableId = 'droppable-group-by' | 'droppable-metric';
1739
1739
 
1740
+ declare type DurationCanonicalFormat = {
1741
+ type: 'duration';
1742
+ inputUnit?: DurationUnit;
1743
+ outputStyle?: 'compact' | 'digital' | 'long';
1744
+ largestUnit?: DurationUnit;
1745
+ smallestUnit?: DurationUnit;
1746
+ maxUnits?: number;
1747
+ prefix?: string;
1748
+ suffix?: string;
1749
+ negativeStyle?: 'minus' | 'parentheses';
1750
+ };
1751
+
1752
+ declare type DurationUnit = 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
1753
+
1740
1754
  declare interface DynamicDrillInteraction {
1741
1755
  mode: 'dynamicDrill';
1742
1756
  /**
@@ -2015,6 +2029,16 @@ export declare type FormatSpec = {
2015
2029
  sourceTimezone?: string;
2016
2030
  prefix?: string;
2017
2031
  suffix?: string;
2032
+ } | {
2033
+ type: 'duration';
2034
+ inputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2035
+ outputStyle?: 'compact' | 'digital' | 'long';
2036
+ largestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2037
+ smallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
2038
+ maxUnits?: number;
2039
+ prefix?: string;
2040
+ suffix?: string;
2041
+ negativeStyle?: 'minus' | 'parentheses';
2018
2042
  } | {
2019
2043
  type: 'string';
2020
2044
  prefix?: string;
@@ -3302,7 +3326,7 @@ export declare type TDataLabelsConfig = {
3302
3326
  display?: 'auto' | boolean;
3303
3327
  formatMode?: 'inherit' | 'override';
3304
3328
  /** @deprecated Use formatMode + formatOptions.type */
3305
- format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'none';
3329
+ format?: 'auto' | 'number' | 'currency' | 'percent' | 'date' | 'scientific' | 'duration' | 'none';
3306
3330
  formatOptions?: TFormatOptions;
3307
3331
  font?: {
3308
3332
  size?: number;
@@ -3453,7 +3477,7 @@ export declare type TFilter = {
3453
3477
  export declare type TFilterValue = FilterForString | FilterForEqual | FilterForCompare | FilterForBetween | FilterForIn | FilterForNull | FilterForDate;
3454
3478
 
3455
3479
  export declare type TFormatOptions = {
3456
- type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date';
3480
+ type?: 'auto' | 'number' | 'currency' | 'percent' | 'scientific' | 'date' | 'duration';
3457
3481
  decimalPlaces?: number;
3458
3482
  minimumFractionDigits?: number;
3459
3483
  maximumFractionDigits?: number;
@@ -3470,6 +3494,11 @@ export declare type TFormatOptions = {
3470
3494
  timezone?: string;
3471
3495
  sourceTimezone?: string;
3472
3496
  relative?: boolean;
3497
+ durationInputUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
3498
+ durationDisplayStyle?: 'compact' | 'digital' | 'long';
3499
+ durationLargestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
3500
+ durationSmallestUnit?: 'millisecond' | 'second' | 'minute' | 'hour' | 'day';
3501
+ durationMaxUnits?: number;
3473
3502
  };
3474
3503
 
3475
3504
  export declare type TFrame = {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.326",
8
+ "version": "0.1.328",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -67,6 +67,16 @@
67
67
  "import": "./dist/data-app-sdk/index.js",
68
68
  "require": "./dist/data-app-sdk/index.cjs"
69
69
  },
70
+ "./data-app-builder": {
71
+ "types": "./dist/types/data-app-builder.d.ts",
72
+ "import": "./dist/data-app-builder/index.js",
73
+ "require": "./dist/data-app-builder/index.cjs"
74
+ },
75
+ "./data-app-builder/browser-runtime": {
76
+ "types": "./dist/types/data-app-builder-browser-runtime.d.ts",
77
+ "import": "./dist/data-app-builder-browser-runtime/index.js",
78
+ "require": "./dist/data-app-builder-browser-runtime/index.cjs"
79
+ },
70
80
  "./appearance": {
71
81
  "types": "./dist/types/appearance.d.ts",
72
82
  "import": "./dist/appearance/index.js",