@nebula.js/stardust 5.2.0 → 5.4.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": "5.2.0",
3
+ "version": "5.4.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,18 +41,18 @@
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
  "devDependencies": {
44
- "@emotion/react": "^11.11.4",
45
- "@emotion/styled": "^11.11.5",
46
- "@mui/icons-material": "^5.15.20",
47
- "@mui/material": "^5.15.20",
48
- "@nebula.js/conversion": "^5.2.0",
49
- "@nebula.js/enigma-mocker": "^5.2.0",
50
- "@nebula.js/locale": "^5.2.0",
51
- "@nebula.js/nucleus": "^5.2.0",
52
- "@nebula.js/supernova": "^5.2.0",
53
- "@nebula.js/theme": "^5.2.0",
54
- "@nebula.js/ui": "^5.2.0",
55
- "@qlik/api": "^1.11.0",
44
+ "@emotion/react": "^11.13.0",
45
+ "@emotion/styled": "^11.13.0",
46
+ "@mui/icons-material": "^5.16.6",
47
+ "@mui/material": "^5.16.6",
48
+ "@nebula.js/conversion": "^5.4.0",
49
+ "@nebula.js/enigma-mocker": "^5.4.0",
50
+ "@nebula.js/locale": "^5.4.0",
51
+ "@nebula.js/nucleus": "^5.4.0",
52
+ "@nebula.js/supernova": "^5.4.0",
53
+ "@nebula.js/theme": "^5.4.0",
54
+ "@nebula.js/ui": "^5.4.0",
55
+ "@qlik/api": "^1.14.0",
56
56
  "@scriptappy/cli": "0.10.0",
57
57
  "@scriptappy/from-jsdoc": "0.19.0",
58
58
  "@scriptappy/to-dts": "1.0.0",
@@ -65,7 +65,7 @@
65
65
  "react-window": "1.8.10",
66
66
  "react-window-infinite-loader": "1.0.9",
67
67
  "regenerator-runtime": "0.14.1",
68
- "semver": "7.6.2"
68
+ "semver": "7.6.3"
69
69
  },
70
- "gitHead": "d9e51781ae260b70a8a9384da3bf0560dfb0c1d9"
70
+ "gitHead": "d33bb8eacd3ce5b1b41c7190dad83884d9a12a06"
71
71
  }
package/types/index.d.ts CHANGED
@@ -122,6 +122,11 @@ export function useTranslator(): stardust.Translator;
122
122
  */
123
123
  export function useDeviceType(): string;
124
124
 
125
+ /**
126
+ * Gets the navigation api to control sheet navigation. When useNavigation is used in Sense, it returns Sense.navigation.
127
+ */
128
+ export function useNavigation(): stardust.Navigation;
129
+
125
130
  /**
126
131
  * Gets the array of plugins provided when rendering the visualization.
127
132
  */
@@ -389,6 +394,8 @@ declare namespace stardust {
389
394
 
390
395
  model: string;
391
396
 
397
+ navigation: stardust.Navigation;
398
+
392
399
  /**
393
400
  * Destroys the sheet and removes it from the the DOM.
394
401
  */
@@ -592,6 +599,23 @@ declare namespace stardust {
592
599
  meta?: object;
593
600
  }
594
601
 
602
+ class Navigation implements stardust.Emitter {
603
+ constructor();
604
+
605
+ /**
606
+ * Navigate to the supplied sheet and emit 'sheetChanged' event if the target sheet Id is valid.
607
+ * This allows a navigation object to synchronize its current sheet item with the active sheet.
608
+ * @param sheetId Id of the sheet to navigate to
609
+ */
610
+ goToSheet(sheetId: string): void;
611
+
612
+ /**
613
+ * Return the current sheet id
614
+ */
615
+ getCurrentSheetId(): string | "false";
616
+
617
+ }
618
+
595
619
  interface ActionToolbarElement extends HTMLElement{
596
620
  className: "njs-action-toolbar-popover";
597
621
  }