react-semaphor 0.1.53 → 0.1.55

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-ClGTnSK6.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-DemHXmak.js"),r=require("../types/index.cjs");exports.Surfboard=e.DashboardPlus;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { D as f } from "../chunks/dashboard-plus-J68IeHCv.js";
1
+ import { D as f } from "../chunks/dashboard-plus-DNmZgxfx.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -106,6 +106,7 @@ declare interface CardConfig {
106
106
  clickFilterInteractions?: ClickFilterInteraction[];
107
107
  comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
108
108
  targetValue?: number;
109
+ showComparisonInLegend?: boolean;
109
110
  showTrendline?: boolean;
110
111
  trendlineWindow?: number;
111
112
  trendlineGranularity?: 'day' | 'week' | 'month';
@@ -1275,7 +1276,8 @@ export declare type TEvent = {
1275
1276
 
1276
1277
  declare type TFilter = {
1277
1278
  type?: 'single' | 'multiple';
1278
- uiType?: 'radio' | 'dropdown';
1279
+ uiType?: 'radio' | 'dropdown' | 'tabs';
1280
+ defaultValues?: (string | number)[];
1279
1281
  sheetId?: string;
1280
1282
  location?: FilterLocation;
1281
1283
  hide?: boolean;
@@ -90,6 +90,7 @@ declare type Actions = {
90
90
  removeFilter: (filterId: string) => void;
91
91
  updateFilter: (filter: TFilter) => void;
92
92
  updateFilterId: (filterId: string, newId: string) => void;
93
+ setFilterDefaultValues: (filterId: string, defaultValues: (string | number)[] | undefined) => void;
93
94
  setFilterValues: (filterValues: TFilterValue[] | undefined) => void;
94
95
  addOrUpdateFilterValue: (filterValue: TFilterValue) => void;
95
96
  addOrUpdateFilterValues: (filterValues: TFilterValue[]) => void;
@@ -350,6 +351,7 @@ export declare interface CardConfig {
350
351
  clickFilterInteractions?: ClickFilterInteraction[];
351
352
  comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
352
353
  targetValue?: number;
354
+ showComparisonInLegend?: boolean;
353
355
  showTrendline?: boolean;
354
356
  trendlineWindow?: number;
355
357
  trendlineGranularity?: 'day' | 'week' | 'month';
@@ -1952,7 +1954,8 @@ export declare type TEvent = {
1952
1954
 
1953
1955
  declare type TFilter = {
1954
1956
  type?: 'single' | 'multiple';
1955
- uiType?: 'radio' | 'dropdown';
1957
+ uiType?: 'radio' | 'dropdown' | 'tabs';
1958
+ defaultValues?: (string | number)[];
1956
1959
  sheetId?: string;
1957
1960
  location?: FilterLocation;
1958
1961
  hide?: boolean;
@@ -106,6 +106,7 @@ declare interface CardConfig {
106
106
  clickFilterInteractions?: ClickFilterInteraction[];
107
107
  comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
108
108
  targetValue?: number;
109
+ showComparisonInLegend?: boolean;
109
110
  showTrendline?: boolean;
110
111
  trendlineWindow?: number;
111
112
  trendlineGranularity?: 'day' | 'week' | 'month';
@@ -1280,7 +1281,8 @@ export declare type TEvent = {
1280
1281
 
1281
1282
  declare type TFilter = {
1282
1283
  type?: 'single' | 'multiple';
1283
- uiType?: 'radio' | 'dropdown';
1284
+ uiType?: 'radio' | 'dropdown' | 'tabs';
1285
+ defaultValues?: (string | number)[];
1284
1286
  sheetId?: string;
1285
1287
  location?: FilterLocation;
1286
1288
  hide?: boolean;
@@ -105,6 +105,7 @@ declare interface CardConfig {
105
105
  clickFilterInteractions?: ClickFilterInteraction[];
106
106
  comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
107
107
  targetValue?: number;
108
+ showComparisonInLegend?: boolean;
108
109
  showTrendline?: boolean;
109
110
  trendlineWindow?: number;
110
111
  trendlineGranularity?: 'day' | 'week' | 'month';
@@ -1272,7 +1273,8 @@ export declare type TEvent = {
1272
1273
 
1273
1274
  declare type TFilter = {
1274
1275
  type?: 'single' | 'multiple';
1275
- uiType?: 'radio' | 'dropdown';
1276
+ uiType?: 'radio' | 'dropdown' | 'tabs';
1277
+ defaultValues?: (string | number)[];
1276
1278
  sheetId?: string;
1277
1279
  location?: FilterLocation;
1278
1280
  hide?: boolean;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.53",
8
+ "version": "0.1.55",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",