react-semaphor 0.1.44 → 0.1.46

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/index-C5uHl9Yr.js"),r=require("../types/index.cjs");exports.Dashboard=e.Dashboard;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-CosHIj-b.js"),r=require("../types/index.cjs");exports.Dashboard=e.Dashboard;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { D as a } from "../chunks/index-AVHej3yO.js";
1
+ import { D as a } from "../chunks/index-WEMQHWgV.js";
2
2
  import { EMPTY_SELECTION as e } from "../types/index.js";
3
3
  export {
4
4
  a as Dashboard,
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-C5uHl9Yr.js"),v=require("./types/index.cjs"),u=require("./chunks/dashboard-plus-45AVY9lA.js"),a=require("react/jsx-runtime"),x=require("react");require("react-dom");function j(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}return t.default=r,Object.freeze(t)}const p=j(x);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-CosHIj-b.js"),v=require("./types/index.cjs"),u=require("./chunks/dashboard-plus-Dy5lu2hC.js"),a=require("react/jsx-runtime"),x=require("react");require("react-dom");function j(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}return t.default=r,Object.freeze(t)}const p=j(x);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { c as x, E as v, F as N, S as w, U as A, a as L, C as _, u as E, b as g, d as P, P as k, e as W, B as F, f as M, g as R, h as V, i as B, j as O, I as Q, k as I, l as j, m as q, n as U, o as z } from "./chunks/index-AVHej3yO.js";
2
- import { D as ne, t as ie, R as de, r as le, r as ce, $ as Ye, K as ue, w as he, y as pe, M as fe, L as me, Q as Me, T as Ce, J as De, v as ge, H as ve, N as ye, G as be, A as Te, z as Se, V as xe, O as Ne, s as we, X as Ae, Z as Le, Y as _e, _ as Ee, x as Pe, p as ke, a1 as We, W as Fe, a0 as Re, q as Ve } from "./chunks/index-AVHej3yO.js";
1
+ import { c as x, E as v, F as N, S as w, U as A, a as L, C as _, u as E, b as g, d as P, P as k, e as W, B as F, f as M, g as R, h as V, i as B, j as O, I as Q, k as I, l as j, m as q, n as U, o as z } from "./chunks/index-WEMQHWgV.js";
2
+ import { D as ne, t as ie, R as de, r as le, r as ce, $ as Ye, K as ue, w as he, y as pe, M as fe, L as me, Q as Me, T as Ce, J as De, v as ge, H as ve, N as ye, G as be, A as Te, z as Se, V as xe, O as Ne, s as we, X as Ae, Z as Le, Y as _e, _ as Ee, x as Pe, p as ke, a1 as We, W as Fe, a0 as Re, q as Ve } from "./chunks/index-WEMQHWgV.js";
3
3
  import { EMPTY_SELECTION as Oe } from "./types/index.js";
4
- import { A as Ie, R as je, b as qe, S as Ue, D as ze, a as Ge, V as He, c as $e, g as Ke } from "./chunks/dashboard-plus-BEXIVqFK.js";
4
+ import { A as Ie, R as je, b as qe, S as Ue, D as ze, a as Ge, V as He, c as $e, g as Ke } from "./chunks/dashboard-plus-hNx7Vplw.js";
5
5
  import { jsx as e, jsxs as d } from "react/jsx-runtime";
6
6
  import * as h from "react";
7
7
  import { useMemo as G } from "react";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/dashboard-plus-45AVY9lA.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-Dy5lu2hC.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-BEXIVqFK.js";
1
+ import { D as f } from "../chunks/dashboard-plus-hNx7Vplw.js";
2
2
  import { EMPTY_SELECTION as a } from "../types/index.js";
3
3
  export {
4
4
  a as EMPTY_SELECTION,
@@ -635,7 +635,7 @@ declare interface FilterGroup {
635
635
  groups: FilterGroup[];
636
636
  }
637
637
 
638
- declare type FilterLocation = 'dashboard' | 'frame' | undefined;
638
+ declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
639
639
 
640
640
  declare type FilterOnClick = {
641
641
  expression?: string;
@@ -1118,7 +1118,7 @@ export declare interface FilterGroup {
1118
1118
  groups: FilterGroup[];
1119
1119
  }
1120
1120
 
1121
- declare type FilterLocation = 'dashboard' | 'frame' | undefined;
1121
+ declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
1122
1122
 
1123
1123
  declare type FilterOnClick = {
1124
1124
  expression?: string;
@@ -638,7 +638,7 @@ declare interface FilterGroup {
638
638
  groups: FilterGroup[];
639
639
  }
640
640
 
641
- declare type FilterLocation = 'dashboard' | 'frame' | undefined;
641
+ declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
642
642
 
643
643
  declare type FilterOnClick = {
644
644
  expression?: string;
@@ -632,7 +632,7 @@ declare interface FilterGroup {
632
632
  groups: FilterGroup[];
633
633
  }
634
634
 
635
- declare type FilterLocation = 'dashboard' | 'frame' | undefined;
635
+ declare type FilterLocation = 'dashboard' | 'frame' | 'sheet' | undefined;
636
636
 
637
637
  declare type FilterOnClick = {
638
638
  expression?: string;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.44",
8
+ "version": "0.1.46",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -23,19 +23,19 @@
23
23
  "types": "dist/types/main.d.ts",
24
24
  "exports": {
25
25
  ".": {
26
+ "types": "./dist/types/main.d.ts",
26
27
  "import": "./dist/index.js",
27
- "require": "./dist/index.cjs",
28
- "types": "./dist/types/main.d.ts"
28
+ "require": "./dist/index.cjs"
29
29
  },
30
30
  "./dashboard": {
31
+ "types": "./dist/types/dashboard.d.ts",
31
32
  "import": "./dist/dashboard/index.js",
32
- "require": "./dist/dashboard/index.cjs",
33
- "types": "./dist/types/dashboard.d.ts"
33
+ "require": "./dist/dashboard/index.cjs"
34
34
  },
35
35
  "./surfboard": {
36
+ "types": "./dist/types/surfboard.d.ts",
36
37
  "import": "./dist/surfboard/index.js",
37
- "require": "./dist/surfboard/index.cjs",
38
- "types": "./dist/types/surfboard.d.ts"
38
+ "require": "./dist/surfboard/index.cjs"
39
39
  },
40
40
  "./style.css": "./dist/style.css"
41
41
  },
@@ -44,6 +44,10 @@
44
44
  "build": "tsc && vite build",
45
45
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
46
46
  "preview": "vite preview",
47
+ "test": "vitest",
48
+ "test:ui": "vitest --ui",
49
+ "test:run": "vitest run",
50
+ "test:coverage": "vitest run --coverage",
47
51
  "deploy": "./scripts/deploy.sh",
48
52
  "deploy:patch": "./scripts/deploy.sh patch",
49
53
  "deploy:minor": "./scripts/deploy.sh minor",
@@ -131,6 +135,9 @@
131
135
  "devDependencies": {
132
136
  "@microsoft/api-extractor": "^7.52.1",
133
137
  "@tanstack/react-query-devtools": "^5.62.15",
138
+ "@testing-library/jest-dom": "^6.9.1",
139
+ "@testing-library/react": "^16.3.0",
140
+ "@testing-library/user-event": "^14.6.1",
134
141
  "@types/chart.js": "^2.9.41",
135
142
  "@types/dompurify": "^3.0.5",
136
143
  "@types/jsoneditor": "^9.9.5",
@@ -146,6 +153,7 @@
146
153
  "@typescript-eslint/eslint-plugin": "^6.14.0",
147
154
  "@typescript-eslint/parser": "^6.14.0",
148
155
  "@vitejs/plugin-react": "^4.2.1",
156
+ "@vitest/ui": "^4.0.8",
149
157
  "and": "^0.0.3",
150
158
  "autoprefixer": "^10.4.18",
151
159
  "babel-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
@@ -153,6 +161,7 @@
153
161
  "eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
154
162
  "eslint-plugin-react-hooks": "^4.6.0",
155
163
  "eslint-plugin-react-refresh": "^0.4.5",
164
+ "jsdom": "^27.1.0",
156
165
  "path": "^0.12.7",
157
166
  "postcss": "^8.4.35",
158
167
  "postcss-prefix-selector": "^2.1.0",
@@ -166,6 +175,7 @@
166
175
  "typescript": "^5.4.5",
167
176
  "vite": "^5.0.8",
168
177
  "vite-plugin-css-injected-by-js": "^3.5.1",
169
- "vite-plugin-dts": "^4.5.0"
178
+ "vite-plugin-dts": "^4.5.0",
179
+ "vitest": "^4.0.8"
170
180
  }
171
181
  }