@nebula.js/stardust 4.0.3 → 4.2.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.2.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",
@@ -41,32 +41,33 @@
41
41
  "version": "yarn run spec && yarn run ts && git add ./api-spec/spec.json ./api-spec/listbox-spec.json ./types/index.d.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@types/qlik-engineapi": "12.67.12"
44
+ "@types/qlik-engineapi": "12.67.13"
45
45
  },
46
46
  "devDependencies": {
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.2",
51
+ "@nebula.js/conversion": "^4.2.0",
52
+ "@nebula.js/enigma-mocker": "^4.2.0",
53
+ "@nebula.js/locale": "^4.2.0",
54
+ "@nebula.js/nucleus": "^4.2.0",
55
+ "@nebula.js/supernova": "^4.2.0",
56
+ "@nebula.js/theme": "^4.2.0",
57
+ "@nebula.js/ui": "^4.2.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.18",
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": "c12674cac30686c9c44c2a1c2207860ad6cccbf6"
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 {
@@ -521,16 +536,6 @@ declare namespace stardust {
521
536
  type: "dimension" | "measure";
522
537
  }
523
538
 
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
539
  interface LoadType {
535
540
  (type: {
536
541
  name: string;
@@ -545,6 +550,16 @@ declare namespace stardust {
545
550
  meta?: object;
546
551
  }
547
552
 
553
+ /**
554
+ * An object literal containing meta information about the plugin and a function containing the plugin implementation.
555
+ */
556
+ interface Plugin {
557
+ info: {
558
+ name: string;
559
+ };
560
+ fn: ()=>void;
561
+ }
562
+
548
563
  interface ActionToolbarElement extends HTMLElement{
549
564
  className: "njs-action-toolbar-popover";
550
565
  }