survey-creator-js 2.5.15 → 2.5.17

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <video src="https://github.com/surveyjs/survey-creator/assets/22315929/884eeb5b-68e6-4d38-a8f9-d2483e6ce386"></video>
4
4
 
5
- [![Build Status](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_apis/build/status/SurveyJS%20Creator?branchName=master)](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=8&branchName=master)
5
+ [![Build Status](https://dev.azure.com/SurveyJS/V2%20Libraries/_apis/build/status%2Fcreator%2FCreator%20Main?repoName=surveyjs%2Fsurvey-creator&branchName=master)](https://dev.azure.com/SurveyJS/V2%20Libraries/_build/latest?definitionId=149&repoName=surveyjs%2Fsurvey-creator&branchName=master)
6
6
  <a href="https://www.npmjs.com/package/survey-creator"><img alt="NPM Version" src="https://img.shields.io/npm/v/survey-creator.svg" data-canonical-src="https://img.shields.io/npm/v/survey-creator.svg" style="max-width:100%;"></a>
7
7
 
8
8
  A visual designer that enables you and your users to create and modify surveys and forms in your JavaScript application.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.5.15
2
+ * SurveyJS Creator v2.5.17
3
3
  * (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -195,17 +195,11 @@ class SurveyCreatorComponent extends SurveyElementBase {
195
195
  }
196
196
  renderActiveTab() {
197
197
  const creator = this.props.creator;
198
- for (var i = 0; i < creator.tabs.length; i++) {
199
- if (creator.tabs[i].id === creator.activeTab) {
200
- return this.renderCreatorTab(creator.tabs[i]);
201
- }
202
- }
203
- return null;
198
+ return this.renderCreatorTab(creator.activeTabMenuItem);
204
199
  }
205
200
  renderCreatorTab(tab) {
206
- if (tab.visible === false) {
201
+ if (!tab)
207
202
  return null;
208
- }
209
203
  const creator = this.props.creator;
210
204
  const component = !!tab.renderTab
211
205
  ? tab.renderTab()
@@ -2966,8 +2960,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
2966
2960
  RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
2967
2961
 
2968
2962
  let Version;
2969
- Version = `${"2.5.15"}`;
2970
- checkLibraryVersion(`${"2.5.15"}`, "survey-creator-react");
2963
+ Version = `${"2.5.17"}`;
2964
+ checkLibraryVersion(`${"2.5.17"}`, "survey-creator-react");
2971
2965
 
2972
2966
  function renderSurveyCreator(creator, element, props = {}) {
2973
2967
  let node = element;