react-semaphor 0.1.19 → 0.1.20

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-_lhN-s45.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-B2AC3u4d.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-XEKMZ7Lk.js";
1
+ import { D as f } from "../chunks/dashboard-plus-ChHljR8u.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -104,7 +104,7 @@ declare interface CardConfig {
104
104
  * Configuration for on-click dashboard filters triggered by this card.
105
105
  */
106
106
  clickFilterInteractions?: ClickFilterInteraction[];
107
- comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target';
107
+ comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
108
108
  targetValue?: number;
109
109
  showTrendline?: boolean;
110
110
  trendlineWindow?: number;
@@ -344,7 +344,7 @@ export declare interface CardConfig {
344
344
  * Configuration for on-click dashboard filters triggered by this card.
345
345
  */
346
346
  clickFilterInteractions?: ClickFilterInteraction[];
347
- comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target';
347
+ comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
348
348
  targetValue?: number;
349
349
  showTrendline?: boolean;
350
350
  trendlineWindow?: number;
@@ -506,6 +506,13 @@ export declare type ConnectionType = 'GoogleSheets' | 'MySQL' | 'MSSQL' | 'Postg
506
506
 
507
507
  export declare type ContainerId = 'groupBy' | 'metrics' | 'pivotBy' | 'sortBy' | 'source';
508
508
 
509
+ /**
510
+ * Factory function to create empty KPI card configuration
511
+ * Returns a fresh config with new array instances to prevent shared references
512
+ * Used when switching to KPI chart type
513
+ */
514
+ export declare const createEmptyKpiConfig: () => CardConfig;
515
+
509
516
  export declare function createSqlGenConfig(column: TDataColumn, preSqlGen: SqlGen, calc?: AggregateCalc): SqlGen;
510
517
 
511
518
  export declare type CustomCard = CardWithContent | CardWithFooter;
@@ -104,7 +104,7 @@ declare interface CardConfig {
104
104
  * Configuration for on-click dashboard filters triggered by this card.
105
105
  */
106
106
  clickFilterInteractions?: ClickFilterInteraction[];
107
- comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target';
107
+ comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
108
108
  targetValue?: number;
109
109
  showTrendline?: boolean;
110
110
  trendlineWindow?: number;
@@ -103,7 +103,7 @@ declare interface CardConfig {
103
103
  * Configuration for on-click dashboard filters triggered by this card.
104
104
  */
105
105
  clickFilterInteractions?: ClickFilterInteraction[];
106
- comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target';
106
+ comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'target' | 'start_vs_end';
107
107
  targetValue?: number;
108
108
  showTrendline?: boolean;
109
109
  trendlineWindow?: number;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.19",
8
+ "version": "0.1.20",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",