@nebula.js/stardust 3.1.0-alpha.4 → 3.1.0-alpha.5

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": "3.1.0-alpha.4",
3
+ "version": "3.1.0-alpha.5",
4
4
  "description": "Product and framework agnostic integration API for Qlik's Associative Engine",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -46,13 +46,13 @@
46
46
  "@emotion/styled": "^11.10.5",
47
47
  "@mui/icons-material": "^5.11.0",
48
48
  "@mui/material": "^5.11.4",
49
- "@nebula.js/conversion": "^3.1.0-alpha.4",
50
- "@nebula.js/enigma-mocker": "^3.1.0-alpha.4",
51
- "@nebula.js/locale": "^3.1.0-alpha.4",
52
- "@nebula.js/nucleus": "^3.1.0-alpha.4",
53
- "@nebula.js/supernova": "^3.1.0-alpha.4",
54
- "@nebula.js/theme": "^3.1.0-alpha.4",
55
- "@nebula.js/ui": "^3.1.0-alpha.4",
49
+ "@nebula.js/conversion": "^3.1.0-alpha.5",
50
+ "@nebula.js/enigma-mocker": "^3.1.0-alpha.5",
51
+ "@nebula.js/locale": "^3.1.0-alpha.5",
52
+ "@nebula.js/nucleus": "^3.1.0-alpha.5",
53
+ "@nebula.js/supernova": "^3.1.0-alpha.5",
54
+ "@nebula.js/theme": "^3.1.0-alpha.5",
55
+ "@nebula.js/ui": "^3.1.0-alpha.5",
56
56
  "@scriptappy/cli": "0.5.0",
57
57
  "@scriptappy/to-dts": "1.0.0-beta.4",
58
58
  "extend": "3.0.2",
@@ -66,5 +66,5 @@
66
66
  "regenerator-runtime": "0.13.11",
67
67
  "semver": "6.3.0"
68
68
  },
69
- "gitHead": "99152950d6e1ffd73c944673c90931958dc86c03"
69
+ "gitHead": "6c248a2072c9420ac9751412afb6219c02a480cc"
70
70
  }
package/types/index.d.ts CHANGED
@@ -169,7 +169,21 @@ export function useRenderState(): stardust.RenderState;
169
169
  */
170
170
  export function useKeyboard(): stardust.Keyboard;
171
171
 
172
- declare type EnigmaMocker = {
172
+ /**
173
+ * Provides conversion functionality to extensions.
174
+ */
175
+ export namespace Conversion {
176
+ /**
177
+ * Provides conversion functionality to extensions with hyperCubes.
178
+ */
179
+ const hypercube: stardust.hyperCubeConversion;
180
+
181
+ }
182
+
183
+ /**
184
+ * Mocks Engima app functionality for demo and testing purposes.
185
+ */
186
+ export namespace EnigmaMocker {
173
187
  /**
174
188
  * Mocks Engima app functionality. It accepts one / many generic objects as input argument and returns the mocked Enigma app. Each generic object represents one visulization and specifies how it behaves. For example, what layout to use the data to present.
175
189
  *
@@ -179,8 +193,9 @@ declare type EnigmaMocker = {
179
193
  * @param genericObjects Generic objects controling behaviour of visualizations.
180
194
  * @param options Options
181
195
  */
182
- fromGenericObjects(genericObjects: object[], options: stardust.EnigmaMockerOptions): Promise<EngineAPI.IApp>;
183
- };
196
+ function fromGenericObjects(genericObjects: object[], options?: stardust.EnigmaMockerOptions): Promise<EngineAPI.IApp>;
197
+
198
+ }
184
199
 
185
200
  declare namespace stardust {
186
201
  interface Context {
@@ -437,16 +452,6 @@ declare namespace stardust {
437
452
  type: "dimension" | "measure";
438
453
  }
439
454
 
440
- /**
441
- * An object literal containing meta information about the plugin and a function containing the plugin implementation.
442
- */
443
- interface Plugin {
444
- info: {
445
- name: string;
446
- };
447
- fn: ()=>void;
448
- }
449
-
450
455
  interface LoadType {
451
456
  (type: {
452
457
  name: string;
@@ -461,6 +466,16 @@ declare namespace stardust {
461
466
  meta?: object;
462
467
  }
463
468
 
469
+ /**
470
+ * An object literal containing meta information about the plugin and a function containing the plugin implementation.
471
+ */
472
+ interface Plugin {
473
+ info: {
474
+ name: string;
475
+ };
476
+ fn: ()=>void;
477
+ }
478
+
464
479
  interface ActionToolbarElement extends HTMLElement{
465
480
  className: "njs-action-toolbar-popover";
466
481
  }
@@ -725,13 +740,6 @@ declare namespace stardust {
725
740
  exportProperties: stardust.exportProperties;
726
741
  }
727
742
 
728
- /**
729
- * Provides conversion functionality to extensions.
730
- */
731
- interface Conversion {
732
- hypercube: stardust.hyperCubeConversion;
733
- }
734
-
735
743
  interface hyperCubeConversion {
736
744
  }
737
745