@sisense/sdk-ui 1.4.0 → 1.4.1

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.
@@ -21,41 +21,33 @@ export type GetNlgQueryResultProps = GetNlgQueryResultRequest;
21
21
  * function Page() {
22
22
  * return (
23
23
  * <GetNlgQueryResult
24
- * dataSource="Sample ECommerce"
25
- * metadata={[
26
- * {
27
- * jaql: {
28
- * column: 'Date',
29
- * datatype: 'datetime',
30
- * dim: '[Commerce.Date]',
31
- * firstday: 'mon',
32
- * level: 'years',
33
- * table: 'Commerce',
34
- * title: 'Date',
35
- * },
36
- * format: {
37
- * mask: {
38
- * days: 'shortDate',
39
- * isdefault: true,
40
- * minutes: 'HH:mm',
41
- * months: 'MM/yyyy',
42
- * quarters: 'yyyy Q',
43
- * weeks: 'ww yyyy',
44
- * years: 'yyyy',
24
+ * jaql={{
25
+ * datasource: { title: 'Sample ECommerce' },
26
+ * metadata: [
27
+ * {
28
+ * jaql: {
29
+ * column: 'Date',
30
+ * datatype: 'datetime',
31
+ * dim: '[Commerce.Date]',
32
+ * firstday: 'mon',
33
+ * level: 'years',
34
+ * table: 'Commerce',
35
+ * title: 'Date',
45
36
  * },
46
37
  * },
47
- * },
48
- * {
49
- * jaql: {
50
- * agg: 'sum',
51
- * column: 'Revenue',
52
- * datatype: 'numeric',
53
- * dim: '[Commerce.Revenue]',
54
- * table: 'Commerce',
55
- * title: 'total of Revenue',
38
+ * {
39
+ * jaql: {
40
+ * agg: 'sum',
41
+ * column: 'Revenue',
42
+ * datatype: 'numeric',
43
+ * dim: '[Commerce.Revenue]',
44
+ * table: 'Commerce',
45
+ * title: 'total of Revenue',
46
+ * },
56
47
  * },
57
- * },
58
- * ]}
48
+ * ],
49
+ * }}
50
+ * style="Large"
59
51
  * />
60
52
  * );
61
53
  * }
@@ -35,41 +35,33 @@ export declare const useGetNlgQueryResultInternal: (params: UseGetNlgQueryResult
35
35
  *
36
36
  * function Page() {
37
37
  * const { data } = useGetNlgQueryResult({
38
- * dataSource: 'Sample ECommerce',
39
- * metadata: [
40
- * {
41
- * jaql: {
42
- * column: 'Date',
43
- * datatype: 'datetime',
44
- * dim: '[Commerce.Date]',
45
- * firstday: 'mon',
46
- * level: 'years',
47
- * table: 'Commerce',
48
- * title: 'Date',
49
- * },
50
- * format: {
51
- * mask: {
52
- * days: 'shortDate',
53
- * isdefault: true,
54
- * minutes: 'HH:mm',
55
- * months: 'MM/yyyy',
56
- * quarters: 'yyyy Q',
57
- * weeks: 'ww yyyy',
58
- * years: 'yyyy',
38
+ * jaql: {
39
+ * datasource: { title: 'Sample ECommerce' },
40
+ * metadata: [
41
+ * {
42
+ * jaql: {
43
+ * column: 'Date',
44
+ * datatype: 'datetime',
45
+ * dim: '[Commerce.Date]',
46
+ * firstday: 'mon',
47
+ * level: 'years',
48
+ * table: 'Commerce',
49
+ * title: 'Date',
59
50
  * },
60
51
  * },
61
- * },
62
- * {
63
- * jaql: {
64
- * agg: 'sum',
65
- * column: 'Revenue',
66
- * datatype: 'numeric',
67
- * dim: '[Commerce.Revenue]',
68
- * table: 'Commerce',
69
- * title: 'total of Revenue',
52
+ * {
53
+ * jaql: {
54
+ * agg: 'sum',
55
+ * column: 'Revenue',
56
+ * datatype: 'numeric',
57
+ * dim: '[Commerce.Revenue]',
58
+ * table: 'Commerce',
59
+ * title: 'total of Revenue',
60
+ * },
70
61
  * },
71
- * },
72
- * ],
62
+ * ],
63
+ * },
64
+ * style: 'Large',
73
65
  * });
74
66
  * return (
75
67
  * <>
package/dist/ai.js CHANGED
@@ -36,7 +36,7 @@ var w = (r, e, t) => new Promise((s, n) => {
36
36
  }, l = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(i, o);
37
37
  l((t = t.apply(r, e)).next());
38
38
  });
39
- import { I as Zt, H as Xt, J as ee, bK as Bt, bL as _t, R as V, L as G, bM as dt, X as $t, bN as er, N as tr, bO as rr, P as me, F as K, S as sr, bP as nr, ar as ir, ap as ht, bQ as Ee, b8 as ar, aT as or, bR as lr, aX as ur, ad as cr, M as Ce, bS as Ar, m as Ve, ay as Je, az as Ze, bT as dr, as as pt } from "./with-tracking-b583e949.js";
39
+ import { I as Zt, H as Xt, J as ee, bK as Bt, bL as _t, R as V, L as G, bM as dt, X as $t, bN as er, N as tr, bO as rr, P as me, F as K, S as sr, bP as nr, ar as ir, ap as ht, bQ as Ee, b8 as ar, aT as or, bR as lr, aX as ur, ad as cr, M as Ce, bS as Ar, m as Ve, ay as Je, az as Ze, bT as dr, as as pt } from "./with-tracking-d12a4632.js";
40
40
  import { jsx as a, jsxs as q, Fragment as z } from "react/jsx-runtime";
41
41
  import * as T from "react";
42
42
  import ft, { createContext as Me, useContext as vt, useMemo as te, useEffect as we, useCallback as R, useState as P, Component as hr, isValidElement as pr, createElement as xe, useRef as Oe, memo as fr, forwardRef as vr, useLayoutEffect as yr } from "react";
package/dist/index.js CHANGED
@@ -36,8 +36,8 @@ var Pn = (e, t, n) => new Promise((r, o) => {
36
36
  }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, a);
37
37
  s((n = n.apply(e, t)).next());
38
38
  });
39
- import { i as __, A as S_, g as k_, c as Ht, m as T_, s as mA, M as nr, r as pe, t as ge, a as He, b as wi, d as sr, _ as xi, e as fo, f as E_, h as vA, j as de, k as yA, l as ce, n as bA, o as wA, p as xA, q as on, u as CA, v as _A, w as SA, x as kA, y as TA, z as EA, T as Ct, B as AA, C as DA, D as jc, E as OA, F as ve, G as RA, H as A_, I as D_, J as br, K as MA, L as or, N as O_, O as NA, P as R_, Q as M_, R as uo, S as N_, U as uv, V as PA, W as IA, X as LA, Y as FA, Z as kt, $ as jA, a0 as dv, a1 as BA, a2 as $A, a3 as pv, a4 as uf, a5 as HA, a6 as hv, a7 as ur, a8 as Ag, a9 as UA, aa as zA, ab as WA, ac as P_, ad as Nn, ae as YA, af as VA, ag as I_, ah as qA, ai as GA, aj as QA, ak as JA, al as KA, am as ZA, an as XA, ao as Sl, ap as Yr, aq as Vr, ar as lr, as as ut, at as Wn, au as df, av as _s, aw as eD, ax as L_, ay as tD, az as nD, aA as go, aB as Dg, aC as rD, aD as oD, aE as pf, aF as hf, aG as F_, aH as ff, aI as iD, aJ as aD, aK as sD, aL as lD, aM as cD, aN as vn, aO as un, aP as uD, aQ as dD, aR as pD, aS as hD, aT as fD, aU as Ut, aV as wr, aW as mo, aX as gD, aY as mD, aZ as vD, a_ as yD, a$ as bD, b0 as wD, b1 as xD, b2 as dr, b3 as aa, b4 as sa, b5 as CD, b6 as Zr, b7 as Ci, b8 as j_, b9 as _D, ba as SD, bb as kD, bc as TD, bd as Ss, be as Mi, bf as ED, bg as AD, bh as be, bi as qn, bj as fv, bk as cr, bl as gv, bm as mv, bn as DD, bo as OD, bp as RD, bq as MD, br as vv, bs as ND, bt as PD, bu as ID, bv as LD, bw as FD, bx as jD, by as BD, bz as $D, bA as HD, bB as UD } from "./with-tracking-b583e949.js";
40
- import { bI as E7, bD as A7, bC as D7, bH as O7, bF as R7, bJ as M7, bG as N7, bE as P7 } from "./with-tracking-b583e949.js";
39
+ import { i as __, A as S_, g as k_, c as Ht, m as T_, s as mA, M as nr, r as pe, t as ge, a as He, b as wi, d as sr, _ as xi, e as fo, f as E_, h as vA, j as de, k as yA, l as ce, n as bA, o as wA, p as xA, q as on, u as CA, v as _A, w as SA, x as kA, y as TA, z as EA, T as Ct, B as AA, C as DA, D as jc, E as OA, F as ve, G as RA, H as A_, I as D_, J as br, K as MA, L as or, N as O_, O as NA, P as R_, Q as M_, R as uo, S as N_, U as uv, V as PA, W as IA, X as LA, Y as FA, Z as kt, $ as jA, a0 as dv, a1 as BA, a2 as $A, a3 as pv, a4 as uf, a5 as HA, a6 as hv, a7 as ur, a8 as Ag, a9 as UA, aa as zA, ab as WA, ac as P_, ad as Nn, ae as YA, af as VA, ag as I_, ah as qA, ai as GA, aj as QA, ak as JA, al as KA, am as ZA, an as XA, ao as Sl, ap as Yr, aq as Vr, ar as lr, as as ut, at as Wn, au as df, av as _s, aw as eD, ax as L_, ay as tD, az as nD, aA as go, aB as Dg, aC as rD, aD as oD, aE as pf, aF as hf, aG as F_, aH as ff, aI as iD, aJ as aD, aK as sD, aL as lD, aM as cD, aN as vn, aO as un, aP as uD, aQ as dD, aR as pD, aS as hD, aT as fD, aU as Ut, aV as wr, aW as mo, aX as gD, aY as mD, aZ as vD, a_ as yD, a$ as bD, b0 as wD, b1 as xD, b2 as dr, b3 as aa, b4 as sa, b5 as CD, b6 as Zr, b7 as Ci, b8 as j_, b9 as _D, ba as SD, bb as kD, bc as TD, bd as Ss, be as Mi, bf as ED, bg as AD, bh as be, bi as qn, bj as fv, bk as cr, bl as gv, bm as mv, bn as DD, bo as OD, bp as RD, bq as MD, br as vv, bs as ND, bt as PD, bu as ID, bv as LD, bw as FD, bx as jD, by as BD, bz as $D, bA as HD, bB as UD } from "./with-tracking-d12a4632.js";
40
+ import { bI as E7, bD as A7, bC as D7, bH as O7, bF as R7, bJ as M7, bG as N7, bE as P7 } from "./with-tracking-d12a4632.js";
41
41
  import * as P from "react";
42
42
  import G, { createContext as zD, forwardRef as Og, useContext as B_, Children as WD, createElement as $_, isValidElement as os, cloneElement as is, useState as Me, useMemo as sn, useLayoutEffect as Rg, useEffect as Xt, useRef as zt, useReducer as xr, useCallback as po, createRef as H_, Component as YD } from "react";
43
43
  import * as Mg from "react-dom";
@@ -34971,7 +34971,7 @@ class Hz {
34971
34971
  }), this.httpClient = new CO(
34972
34972
  t,
34973
34973
  n,
34974
- "sdk-ui-1.4.0"
34974
+ "sdk-ui-1.4.1"
34975
34975
  ), this.pivotClient = new pE(this.httpClient), this.queryClient = new KH(this.httpClient, this.pivotClient), r !== void 0 && (this.defaultDataSource = r);
34976
34976
  }
34977
34977
  }
@@ -50372,7 +50372,7 @@ const iC = "composesdk", gg = (t, e, i, r = !1) => Vlt(void 0, void 0, void 0, f
50372
50372
  if (i != null && i.httpClient && !o.current && !n) {
50373
50373
  const p = {
50374
50374
  packageName: "sdk-ui",
50375
- packageVersion: "1.4.0",
50375
+ packageVersion: "1.4.1",
50376
50376
  componentName: t,
50377
50377
  attributesUsed: Object.entries(e).filter(([, C]) => !!C).map(([C]) => C).join(", ")
50378
50378
  };
@@ -50399,7 +50399,7 @@ class vk extends cT {
50399
50399
  sendErrorTracking(i, r) {
50400
50400
  Zlt(
50401
50401
  {
50402
- packageVersion: "1.4.0",
50402
+ packageVersion: "1.4.1",
50403
50403
  component: this.componentName,
50404
50404
  error: i
50405
50405
  },
@@ -55686,6 +55686,7 @@ function _pt(t, e) {
55686
55686
  scrollWheelZoom: !0,
55687
55687
  minZoom: 1,
55688
55688
  zoom: 1,
55689
+ maxZoom: 5,
55689
55690
  center: [0, 0]
55690
55691
  }) : va.map(t, {
55691
55692
  crs: new va.Proj.CRS(
@@ -55697,6 +55698,7 @@ function _pt(t, e) {
55697
55698
  ),
55698
55699
  center: [35.96852047262865, -96.96520768859223],
55699
55700
  zoom: 0.4,
55701
+ maxZoom: 3,
55700
55702
  attributionControl: !1
55701
55703
  });
55702
55704
  }
@@ -77815,7 +77817,7 @@ const sT = (t) => t % 2 === 1, lT = ({
77815
77817
  return;
77816
77818
  gg(EA, {
77817
77819
  packageName: e,
77818
- packageVersion: "1.4.0",
77820
+ packageVersion: "1.4.1",
77819
77821
  hookName: t
77820
77822
  }, i.httpClient).catch((o) => console.warn("An error occurred when sending the sdkHookInit event", o)).finally(r);
77821
77823
  });
@@ -77824,7 +77826,7 @@ function STt(t) {
77824
77826
  Hi(() => {
77825
77827
  e != null && e.httpClient && !r.current && gg(EA, {
77826
77828
  packageName: "sdk-ui",
77827
- packageVersion: "1.4.0",
77829
+ packageVersion: "1.4.1",
77828
77830
  hookName: t
77829
77831
  }, e.httpClient, !i).catch((o) => console.warn("An error occurred when sending the sdkHookInit event", o)).finally(() => r.current = !0);
77830
77832
  }, [e, i, t]);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "Sisense",
12
12
  "Compose SDK"
13
13
  ],
14
- "version": "1.4.0",
14
+ "version": "1.4.1",
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
@@ -39,12 +39,12 @@
39
39
  "@emotion/react": "^11.10.5",
40
40
  "@emotion/styled": "^11.10.5",
41
41
  "@mui/material": "^5.11.6",
42
- "@sisense/sdk-common": "^1.4.0",
43
- "@sisense/sdk-data": "^1.4.0",
44
- "@sisense/sdk-pivot-client": "^1.4.0",
45
- "@sisense/sdk-query-client": "^1.4.0",
46
- "@sisense/sdk-rest-client": "^1.4.0",
47
- "@sisense/sdk-tracking": "^1.4.0",
42
+ "@sisense/sdk-common": "^1.4.1",
43
+ "@sisense/sdk-data": "^1.4.1",
44
+ "@sisense/sdk-pivot-client": "^1.4.1",
45
+ "@sisense/sdk-query-client": "^1.4.1",
46
+ "@sisense/sdk-rest-client": "^1.4.1",
47
+ "@sisense/sdk-tracking": "^1.4.1",
48
48
  "@sisense/sisense-charts": "5.1.0-alpha-04052758.0",
49
49
  "@tanstack/react-query": "4.36.1",
50
50
  "classnames": "^2.3.2",