flowerbi-react 6.0.1 → 6.1.0

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,9 +1,10 @@
1
+ import React from "react";
1
2
  import { QueryValues, ExpandedQueryResult, QuerySelect, QueryCalculations } from "flowerbi";
2
- export declare type ColumnDefinition = string | [string, "left" | "right"];
3
- export declare type FlowerBITableProps<S extends QuerySelect, C extends QueryCalculations<S>> = {
3
+ export type ColumnDefinition = string | [string, "left" | "right"];
4
+ export type FlowerBITableProps<S extends QuerySelect, C extends QueryCalculations<S>> = {
4
5
  data: ExpandedQueryResult<S, C>;
5
6
  columns: {
6
7
  [label: string]: (record: QueryValues<S, C>) => ColumnDefinition;
7
8
  };
8
9
  };
9
- export declare function FlowerBITable<S extends QuerySelect, C extends QueryCalculations<S>>({ data, columns }: FlowerBITableProps<S, C>): JSX.Element;
10
+ export declare function FlowerBITable<S extends QuerySelect, C extends QueryCalculations<S>>({ data, columns }: FlowerBITableProps<S, C>): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Query, QueryFetch, QuerySelect, ExpandedQueryResult, QueryCalculations } from "flowerbi";
2
- export declare type UseQueryState = "init" | "ready" | "refresh" | "error";
2
+ export type UseQueryState = "init" | "ready" | "refresh" | "error";
3
3
  export interface UseQueryResult<S extends QuerySelect, C extends QueryCalculations<S>> extends ExpandedQueryResult<S, C> {
4
4
  /**
5
5
  * The state of the query operation:
@@ -16,7 +16,7 @@ export interface UseQueryResult<S extends QuerySelect, C extends QueryCalculatio
16
16
  * first query may return the top 10 vendors, and a subsequent query
17
17
  * may then use an `in` filter to get details about those 10 vendors.
18
18
  */
19
- export declare type QueryDependency = {
19
+ export type QueryDependency = {
20
20
  /**
21
21
  * The result of the query we depend on
22
22
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowerbi-react",
3
- "version": "6.0.1",
3
+ "version": "6.1.0",
4
4
  "author": "Daniel Earwicker <dan@earwicker.com>",
5
5
  "license": "MIT",
6
6
  "description": "React helpers for FlowerBI",
@@ -8,18 +8,18 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "dependencies": {
10
10
  "@types/json-stable-stringify": "^1.0.32",
11
- "@types/react": "^16.9.0",
12
- "flowerbi": "6.0.1",
11
+ "@types/react": "^19.0.0",
12
+ "flowerbi": "6.1.0",
13
13
  "json-stable-stringify": "^1.0.1"
14
14
  },
15
15
  "devDependencies": {
16
16
  "prettier": "^2.5.1",
17
- "react": "^17.0.2",
17
+ "react": "^19.0.0",
18
18
  "typedoc": "^0.22.11",
19
19
  "typescript": "^4.5.5"
20
20
  },
21
21
  "peerDependencies": {
22
- "react": "^16.13.1 || ^17.0.2"
22
+ "react": "^16.13.1 || ^17.0.2 || ^18.0.0 || ^19.0.0"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsc",