@nebula.js/stardust 3.0.0-rc.2 → 3.0.0-rc.3
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/core/esm/dev.js +705 -312
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +8 -8
- package/core/esm/index.js.map +1 -1
- package/core/package.json +4 -4
- package/dist/stardust.dev.js +1233 -1008
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +22 -22
- package/dist/stardust.js.map +1 -1
- package/package.json +13 -13
- package/types/index.d.ts +30 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/stardust",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.3",
|
|
4
4
|
"description": "Product and framework agnostic integration API for Qlik's Associative Engine",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "QlikTech International AB",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"@types/qlik-engineapi": "12.67.12"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@emotion/react": "^11.10.
|
|
46
|
-
"@emotion/styled": "^11.10.
|
|
47
|
-
"@mui/icons-material": "^5.
|
|
48
|
-
"@mui/material": "^5.
|
|
49
|
-
"@nebula.js/conversion": "^3.0.0-rc.
|
|
50
|
-
"@nebula.js/enigma-mocker": "^3.0.0-rc.
|
|
51
|
-
"@nebula.js/locale": "^3.0.0-rc.
|
|
52
|
-
"@nebula.js/nucleus": "^3.0.0-rc.
|
|
53
|
-
"@nebula.js/supernova": "^3.0.0-rc.
|
|
54
|
-
"@nebula.js/theme": "^3.0.0-rc.
|
|
55
|
-
"@nebula.js/ui": "^3.0.0-rc.
|
|
45
|
+
"@emotion/react": "^11.10.4",
|
|
46
|
+
"@emotion/styled": "^11.10.4",
|
|
47
|
+
"@mui/icons-material": "^5.10.3",
|
|
48
|
+
"@mui/material": "^5.10.3",
|
|
49
|
+
"@nebula.js/conversion": "^3.0.0-rc.3",
|
|
50
|
+
"@nebula.js/enigma-mocker": "^3.0.0-rc.3",
|
|
51
|
+
"@nebula.js/locale": "^3.0.0-rc.3",
|
|
52
|
+
"@nebula.js/nucleus": "^3.0.0-rc.3",
|
|
53
|
+
"@nebula.js/supernova": "^3.0.0-rc.3",
|
|
54
|
+
"@nebula.js/theme": "^3.0.0-rc.3",
|
|
55
|
+
"@nebula.js/ui": "^3.0.0-rc.3",
|
|
56
56
|
"@scriptappy/cli": "0.1.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.9",
|
|
67
67
|
"semver": "6.3.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "6ffc4105c1f52e785a67e1c87bd64ff2f0351b52"
|
|
70
70
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -169,6 +169,19 @@ export function useRenderState(): stardust.RenderState;
|
|
|
169
169
|
*/
|
|
170
170
|
export function useKeyboard(): stardust.Keyboard;
|
|
171
171
|
|
|
172
|
+
declare type EnigmaMocker = {
|
|
173
|
+
/**
|
|
174
|
+
* 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
|
+
*
|
|
176
|
+
* The generic object is represented with a Javascript object with a number of properties. The name of the property correlates to the name in the Enigma model for `app.getObject(id)`. For example, the property `getLayout` in the generic object is used to define `app.getObject(id).getLayout()`. Any property can be added to the fixture (just make sure it exists and behaves as in the Enigma model!).
|
|
177
|
+
*
|
|
178
|
+
* The value for each property is either fixed (string / boolean / number / object) or a function. Arguments are forwarded to the function to allow for greater flexibility. For example, this can be used to return different hypercube data when scrolling in the chart.
|
|
179
|
+
* @param genericObjects Generic objects controling behaviour of visualizations.
|
|
180
|
+
* @param options Options
|
|
181
|
+
*/
|
|
182
|
+
fromGenericObjects(genericObjects: object[], options: stardust.EnigmaMockerOptions): Promise<EngineAPI.IApp>;
|
|
183
|
+
};
|
|
184
|
+
|
|
172
185
|
declare namespace stardust {
|
|
173
186
|
interface Context {
|
|
174
187
|
keyboardNavigation?: boolean;
|
|
@@ -367,16 +380,6 @@ declare namespace stardust {
|
|
|
367
380
|
|
|
368
381
|
}
|
|
369
382
|
|
|
370
|
-
/**
|
|
371
|
-
* An object literal containing meta information about the plugin and a function containing the plugin implementation.
|
|
372
|
-
*/
|
|
373
|
-
interface Plugin {
|
|
374
|
-
info: {
|
|
375
|
-
name: string;
|
|
376
|
-
};
|
|
377
|
-
fn: ()=>void;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
383
|
type Field = string | EngineAPI.INxDimension | EngineAPI.INxMeasure | stardust.LibraryField;
|
|
381
384
|
|
|
382
385
|
/**
|
|
@@ -410,6 +413,16 @@ declare namespace stardust {
|
|
|
410
413
|
type: "dimension" | "measure";
|
|
411
414
|
}
|
|
412
415
|
|
|
416
|
+
/**
|
|
417
|
+
* An object literal containing meta information about the plugin and a function containing the plugin implementation.
|
|
418
|
+
*/
|
|
419
|
+
interface Plugin {
|
|
420
|
+
info: {
|
|
421
|
+
name: string;
|
|
422
|
+
};
|
|
423
|
+
fn: ()=>void;
|
|
424
|
+
}
|
|
425
|
+
|
|
413
426
|
interface LoadType {
|
|
414
427
|
(type: {
|
|
415
428
|
name: string;
|
|
@@ -693,5 +706,12 @@ declare namespace stardust {
|
|
|
693
706
|
interface hyperCubeConversion {
|
|
694
707
|
}
|
|
695
708
|
|
|
709
|
+
/**
|
|
710
|
+
* Options for Enigma Mocker
|
|
711
|
+
*/
|
|
712
|
+
interface EnigmaMockerOptions {
|
|
713
|
+
delay: number;
|
|
714
|
+
}
|
|
715
|
+
|
|
696
716
|
}
|
|
697
717
|
|