@nebula.js/stardust 4.0.3 → 4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/stardust",
3
- "version": "4.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "Product and framework agnostic integration API for Qlik's Associative Engine",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -47,26 +47,27 @@
47
47
  "@emotion/react": "^11.11.0",
48
48
  "@emotion/styled": "^11.11.0",
49
49
  "@mui/icons-material": "^5.11.16",
50
- "@mui/material": "^5.13.0",
51
- "@nebula.js/conversion": "^4.0.3",
52
- "@nebula.js/enigma-mocker": "^4.0.3",
53
- "@nebula.js/locale": "^4.0.3",
54
- "@nebula.js/nucleus": "^4.0.3",
55
- "@nebula.js/supernova": "^4.0.3",
56
- "@nebula.js/theme": "^4.0.3",
57
- "@nebula.js/ui": "^4.0.3",
58
- "@scriptappy/cli": "0.6.0",
50
+ "@mui/material": "^5.13.1",
51
+ "@nebula.js/conversion": "^4.1.0",
52
+ "@nebula.js/enigma-mocker": "^4.1.0",
53
+ "@nebula.js/locale": "^4.1.0",
54
+ "@nebula.js/nucleus": "^4.1.0",
55
+ "@nebula.js/supernova": "^4.1.0",
56
+ "@nebula.js/theme": "^4.1.0",
57
+ "@nebula.js/ui": "^4.1.0",
58
+ "@scriptappy/cli": "0.8.0",
59
+ "@scriptappy/from-jsdoc": "0.17.0",
59
60
  "@scriptappy/to-dts": "1.0.0-beta.4",
60
61
  "extend": "3.0.2",
61
62
  "node-event-emitter": "0.0.1",
62
63
  "react": "18.2.0",
63
64
  "react-dom": "18.2.0",
64
65
  "react-test-renderer": "18.2.0",
65
- "react-virtualized-auto-sizer": "1.0.16",
66
+ "react-virtualized-auto-sizer": "1.0.17",
66
67
  "react-window": "1.8.9",
67
68
  "react-window-infinite-loader": "1.0.9",
68
69
  "regenerator-runtime": "0.13.11",
69
70
  "semver": "6.3.0"
70
71
  },
71
- "gitHead": "e41893a344fa565e68f908bb66be161e7efade71"
72
+ "gitHead": "f0de13c932d8352595347e0e1e203ce75ee2cc6c"
72
73
  }
package/types/index.d.ts CHANGED
@@ -156,6 +156,16 @@ export function useInteractionState(): stardust.Interactions;
156
156
  */
157
157
  export function useOptions(): object;
158
158
 
159
+ /**
160
+ * This is an empty object by default, but enables you to provide a custom API of your visualization to
161
+ * make it possible to control after it has been rendered.
162
+ *
163
+ * You can only use this hook once, calling it more than once is considered an error.
164
+ * @param factory
165
+ * @param deps
166
+ */
167
+ export function useImperativeHandle<T>(factory: ()=>T, deps?: any[]): void;
168
+
159
169
  /**
160
170
  * Registers a callback that is called when a snapshot is taken.
161
171
  * @param snapshotCallback
@@ -405,6 +415,11 @@ declare namespace stardust {
405
415
  */
406
416
  removeListener(eventName: string, listener: ()=>void): void;
407
417
 
418
+ /**
419
+ * Gets the specific api that a Viz exposes.
420
+ */
421
+ getImperativeHandle(): Promise<object>;
422
+
408
423
  }
409
424
 
410
425
  interface Flags {
@@ -489,6 +504,16 @@ declare namespace stardust {
489
504
 
490
505
  }
491
506
 
507
+ /**
508
+ * An object literal containing meta information about the plugin and a function containing the plugin implementation.
509
+ */
510
+ interface Plugin {
511
+ info: {
512
+ name: string;
513
+ };
514
+ fn: ()=>void;
515
+ }
516
+
492
517
  type Field = string | EngineAPI.INxDimension | EngineAPI.INxMeasure | stardust.LibraryField;
493
518
 
494
519
  /**
@@ -521,16 +546,6 @@ declare namespace stardust {
521
546
  type: "dimension" | "measure";
522
547
  }
523
548
 
524
- /**
525
- * An object literal containing meta information about the plugin and a function containing the plugin implementation.
526
- */
527
- interface Plugin {
528
- info: {
529
- name: string;
530
- };
531
- fn: ()=>void;
532
- }
533
-
534
549
  interface LoadType {
535
550
  (type: {
536
551
  name: string;