survey-analytics 1.9.139 → 1.10.1

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
@@ -20,7 +20,7 @@
20
20
  "lint": "eslint ./src --quiet",
21
21
  "pre-push-check": "npm run lint && npm run test"
22
22
  },
23
- "version": "1.9.139",
23
+ "version": "1.10.1",
24
24
  "name": "survey-analytics",
25
25
  "description": "SurveyJS analytics Library.",
26
26
  "main": "survey.analytics.js",
@@ -58,7 +58,7 @@
58
58
  "jquery": "3.5.0",
59
59
  "muuri": "^0.8.0",
60
60
  "plotly.js-dist-min": "^2.28.0",
61
- "survey-core": "1.9.139",
61
+ "survey-core": "1.10.1",
62
62
  "tabulator-tables": "4.8.4",
63
63
  "wordcloud": "^1.2.2"
64
64
  },
@@ -10,7 +10,10 @@ declare type VisualizerConstructor = new (question: Question, data: Array<{
10
10
  export declare class VisualizationManager {
11
11
  static alternativesVisualizer: any;
12
12
  static vizualizers: {
13
- [index: string]: Array<VisualizerConstructor>;
13
+ [index: string]: Array<{
14
+ ctor: VisualizerConstructor;
15
+ index: number;
16
+ }>;
14
17
  };
15
18
  /**
16
19
  * Registers a visualizer for a specified question type.
@@ -18,8 +21,9 @@ export declare class VisualizationManager {
18
21
  * [View Demo](https://surveyjs.io/dashboard/examples/visualize-answers-from-text-entry-fields-with-charts/ (linkStyle))
19
22
  * @param questionType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
20
23
  * @param constructor A function that returns a visualizer constructor to register.
24
+ * @param index A zero-based index that specifies the visualizer's position in the visualizer list for the specified question type. Pass `0` to insert the visualizer at the beginning of the list and use it by default. If `index` is not specified, the visualizer is added to the end of the list.
21
25
  */
22
- static registerVisualizer(questionType: string, constructor: VisualizerConstructor): void;
26
+ static registerVisualizer(questionType: string, constructor: VisualizerConstructor, index?: number): void;
23
27
  /**
24
28
  * Unregisters a visualizer for a specified question type.
25
29
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.139
2
+ * surveyjs - SurveyJS Dashboard library v1.10.1
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.139
2
+ * surveyjs - SurveyJS Dashboard library v1.10.1
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */