@bluecopa/core 0.1.34 → 0.1.35

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.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * UMD entry point for @bluecopa/core — widget sandbox preview.
3
+ * Exports only the API layer and config; excludes utilities and
4
+ * websocket deps (centrifuge, pusher) to keep the bundle small.
5
+ */
6
+ export { setConfig as copaSetConfig, getConfig as copaGetConfig } from './config';
7
+ export * as copaApi from './api';
@@ -3,6 +3,7 @@ export type StatementInputsType = {
3
3
  inputs: {
4
4
  global_date_col_filter?: unknown;
5
5
  global_to_currency?: string;
6
+ global_rate_type?: string;
6
7
  global_time_bin?: string;
7
8
  bin_order_by_desc?: string;
8
9
  };
@@ -2,7 +2,7 @@ import { ColumnFilterRule } from '../../../../models/src/lib/gen/Api';
2
2
  import { MetricSeries } from '../../../../models/src/lib/ui-models/definitionModel';
3
3
  import { InputTableDefinitionModel } from '../../../../models/src/lib/ui-models/inputTableModel';
4
4
  import { SortOptions, ValueColsType } from '../../../../models/src/lib/ui-models/workbookModel';
5
- export declare const getGroupByDefinition: ({ tableId, tableName, groupKeys, rowGroupCols, columnSettings, filterRules, sortValue, metricSeries }: {
5
+ export declare const getGroupByDefinition: ({ tableId, tableName, groupKeys, rowGroupCols, columnSettings, filterRules, sortValue, metricSeries, }: {
6
6
  tableId: any;
7
7
  tableName: any;
8
8
  groupKeys: any;
@@ -15,7 +15,7 @@ export declare const getGroupByDefinition: ({ tableId, tableName, groupKeys, row
15
15
  targetName: string;
16
16
  definition: InputTableDefinitionModel;
17
17
  };
18
- export declare const generateDefinitionModel: ({ filters, sort, metricSeries, tableId, tableName }: {
18
+ export declare const generateDefinitionModel: ({ filters, sort, metricSeries, tableId, tableName, }: {
19
19
  filters?: ColumnFilterRule;
20
20
  sort?: Record<string, any>;
21
21
  metricSeries?: Partial<MetricSeries>;
@@ -12,7 +12,7 @@ export type MetricToolPanelType = {
12
12
  limitOptions: LimitOptions;
13
13
  filterModel: FilterRule | [];
14
14
  dateRange?: DateRange;
15
- timeBin: TimeBin | '';
15
+ timeBin: TimeBin | "";
16
16
  currency?: string;
17
17
  compareTrends?: Array<{
18
18
  id: string;
@@ -20,7 +20,7 @@ export type MetricToolPanelType = {
20
20
  dateRange: DateRange;
21
21
  }>;
22
22
  showDimensionMappingValues?: boolean;
23
- plotAsTrendsOrder?: 'asc' | 'desc' | 'none';
23
+ plotAsTrendsOrder?: "asc" | "desc" | "none";
24
24
  showBinSortOrderValues?: boolean;
25
25
  };
26
26
  export declare const getPivotGridData: (props: {
@@ -61,6 +61,7 @@ export declare const getDefinitionModelAndVariableNameForPivot: (props: {
61
61
  dateColumn?: string;
62
62
  pivotCols: string[];
63
63
  currency?: string;
64
+ rateType?: string;
64
65
  compareTrends?: Array<{
65
66
  id: string;
66
67
  name: string;
@@ -2,7 +2,7 @@ import { SelectOptionType } from '../../../../models/src/lib/types/selectType';
2
2
  import { FilterRule, FilterSelectOptionsType, RuleType, Operator } from '../../../../models/src/lib/ui-models/filterModel';
3
3
  import { FilterColumnsBy, ValueColsType } from '../../../../models/src/lib/ui-models/workbookModel';
4
4
  export type FilterPanelStoreType = {
5
- defaultType: Omit<RuleType, 'cond'>;
5
+ defaultType: Omit<RuleType, "cond">;
6
6
  rules: FilterSelectOptionsType[];
7
7
  };
8
8
  export declare const filterToSelectOptionType: (filter: FilterRule, columns: SelectOptionType[]) => FilterPanelStoreType;
@@ -14,7 +14,7 @@ export type PresenceMember = {
14
14
  export type PresenceMembers = {
15
15
  count: number;
16
16
  each: (callback: (member: PresenceMember) => void) => void;
17
- members: Record<string, PresenceMember['info']>;
17
+ members: Record<string, PresenceMember["info"]>;
18
18
  };
19
19
  declare class PusherWebsocket implements IWebsocketProvider {
20
20
  private pusher;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/core",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "type": "module",
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "build": "vite build",
19
+ "build:umd": "vite build --config vite.umd.config.ts",
19
20
  "dev": "vite build --watch",
20
21
  "prepublishOnly": "npm run build"
21
22
  },
@@ -33,7 +34,7 @@
33
34
  "node": ">=18.0.0"
34
35
  },
35
36
  "dependencies": {
36
- "axios": "1.12.0",
37
+ "axios": "1.13.5",
37
38
  "centrifuge": "5.2.2",
38
39
  "lodash": "4.17.23",
39
40
  "pusher-js": "^8.3.0"