survey-creator-js 2.5.20 → 2.5.21
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.
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v2.5.
|
|
2
|
+
* SurveyJS Creator v2.5.21
|
|
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
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as React from 'survey-js-ui';
|
|
9
|
-
import { createElement, Fragment } from 'survey-js-ui';
|
|
10
|
-
import { ReactElementFactory, SurveyElementBase, attachKey2click, SvgIcon, Survey, SvgBundleComponent, PopupModal, SurveyActionBar, NotifierComponent, ReactQuestionFactory, SurveyLocStringViewer, TitleElement, ReactSurveyElementsWrapper, LoadingIndicatorComponent, SurveyPage, Popup, LogoImage, SurveyQuestionElementBase, SurveyQuestion, SurveyPanel, Scroll, CharacterCounterComponent, SurveyQuestionDropdown, SurveyHeader, List, SurveyQuestionText } from 'survey-js-ui';
|
|
9
|
+
import { ReactElementFactory, SurveyElementBase, attachKey2click, SvgIcon, Survey, SvgBundleComponent, PopupModal, SurveyActionBar, NotifierComponent, ReactQuestionFactory, SurveyLocStringViewer, TitleElement, ReactSurveyElementsWrapper, LoadingIndicatorComponent, SurveyPage, Popup, LogoImage, SurveyQuestionElementBase, SurveyQuestion, SurveyPanel, createElement, Scroll, CharacterCounterComponent, SurveyQuestionDropdown, SurveyHeader, List, Fragment, SurveyQuestionText, preact } from 'survey-js-ui';
|
|
11
10
|
import { assign, SurveyCreatorModel, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, PageAdorner, LogoImageViewModel, editorLocalization, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperViewModel, SurveyResultsModel, ToolboxToolViewModel, editableStringRendererName, StringEditorViewModelBase, initLogicOperator, PageNavigatorViewModel } from 'survey-creator-core';
|
|
12
11
|
export { PropertyGridEditorCollection, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, editorLocalization, localization, settings, svgBundle } from 'survey-creator-core';
|
|
13
|
-
import * as ReactDOM from 'survey-js-ui';
|
|
14
12
|
import { CssClassBuilder, settings, RendererFactory, unwrap, checkLibraryVersion } from 'survey-core';
|
|
15
|
-
import { preact } from 'survey-js-ui';
|
|
16
13
|
|
|
17
14
|
class TabbedMenuComponent extends SurveyElementBase {
|
|
18
15
|
get model() {
|
|
@@ -82,8 +79,8 @@ class TabbedMenuItemWrapper extends SurveyElementBase {
|
|
|
82
79
|
}
|
|
83
80
|
};
|
|
84
81
|
queueMicrotask(() => {
|
|
85
|
-
if (
|
|
86
|
-
|
|
82
|
+
if (React["flushSync"]) {
|
|
83
|
+
React["flushSync"](() => {
|
|
87
84
|
update();
|
|
88
85
|
});
|
|
89
86
|
}
|
|
@@ -1420,8 +1417,8 @@ class SurveyCreatorToolboxTool extends CreatorModelElement {
|
|
|
1420
1417
|
super.componentDidMount();
|
|
1421
1418
|
this.item.updateModeCallback = (mode, callback) => {
|
|
1422
1419
|
queueMicrotask(() => {
|
|
1423
|
-
if (
|
|
1424
|
-
|
|
1420
|
+
if (React["flushSync"]) {
|
|
1421
|
+
React["flushSync"](() => {
|
|
1425
1422
|
this.item.mode = mode;
|
|
1426
1423
|
});
|
|
1427
1424
|
}
|
|
@@ -2960,8 +2957,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2960
2957
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2961
2958
|
|
|
2962
2959
|
let Version;
|
|
2963
|
-
Version = `${"2.5.
|
|
2964
|
-
checkLibraryVersion(`${"2.5.
|
|
2960
|
+
Version = `${"2.5.21"}`;
|
|
2961
|
+
checkLibraryVersion(`${"2.5.21"}`, "survey-creator-react");
|
|
2965
2962
|
|
|
2966
2963
|
function renderSurveyCreator(creator, element, props = {}) {
|
|
2967
2964
|
let node = element;
|