survey-creator-react 1.9.14-beta.1 → 1.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-react",
3
- "version": "1.9.14-beta.1",
3
+ "version": "1.9.17",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "survey-core": "^1.9.9",
35
35
  "survey-react-ui": "^1.9.9",
36
- "survey-creator-core": "1.9.14-beta.1",
36
+ "survey-creator-core": "1.9.17",
37
37
  "react": "^17.0.1",
38
38
  "react-dom": "^17.0.1"
39
39
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey Creator library for React v1.9.14-beta.1
2
+ * Type definition for Survey Creator library for React v1.9.17
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
@@ -10,11 +10,24 @@ import { LogoImageViewModel, MatrixCellWrapperViewModel, RowViewModel, ITabbedMe
10
10
  import { QuestionEmbeddedSurveyModel, PageNavigatorViewModel, QuestionLinkValueModel, SurveyResultsModel, QuestionImageAdornerViewModel } from "survey-creator-core";
11
11
  import { QuestionRatingAdornerViewModel, IPortableMouseEvent, ICreatorOptions, IPortableDragEvent } from "survey-creator-core";
12
12
  import { Action, Question, QuestionRowModel, SurveyModel, PageModel } from "survey-core";
13
- import { QuestionSelectBase, ItemValue, ImageItemValue, Base, LocalizableString } from "survey-core";
14
- import { SurveyError, IAction, ResponsivityManager, VerticalResponsivityManager } from "survey-core";
13
+ import { QuestionSelectBase, ItemValue, ImageItemValue, Base, SurveyError } from "survey-core";
14
+ import { IAction, ResponsivityManager, VerticalResponsivityManager } from "survey-core";
15
15
  import { SurveyElementBase, ISurveyCreator, SurveyQuestionElementBase } from "survey-react-ui";
16
16
  import * as React from "react";
17
17
 
18
+ export { editorLocalization } from "survey-creator-core";
19
+ export { localization } from "survey-creator-core";
20
+ export { settings } from "survey-creator-core";
21
+ export { svgBundle } from "survey-creator-core";
22
+ export { SurveyLogic } from "survey-creator-core";
23
+ export { SurveyLogicUI } from "survey-creator-core";
24
+ export { SurveyQuestionEditorDefinition } from "survey-creator-core";
25
+ export { ISurveyCreatorOptions } from "survey-creator-core";
26
+ export { IPropertyGridEditor } from "survey-creator-core";
27
+ export { ToolboxToolViewModel } from "survey-creator-core";
28
+ export { PropertyGridEditorCollection } from "survey-creator-core";
29
+ export { StylesManager } from "survey-creator-core";
30
+
18
31
  export enum QuestionConvertMode {
19
32
  AllTypes,
20
33
  CompatibleTypes
@@ -34,7 +47,7 @@ export interface ITabbedMenuItemComponentProps {
34
47
  item: Action;
35
48
  }
36
49
  export interface NotifierComponentProps {
37
- creator: any;
50
+ creator: CreatorBase;
38
51
  notifier: Notifier;
39
52
  }
40
53
  export interface ISurveyCreatorComponentProps {
@@ -59,15 +72,15 @@ export interface QuestionWrapperFooterProps {
59
72
  model: QuestionAdornerViewModel;
60
73
  }
61
74
  export interface ICreatorSurveyPageComponentProps {
62
- creator: any;
75
+ creator: CreatorBase;
63
76
  survey: SurveyModel;
64
77
  page: PageModel;
65
78
  }
66
79
  export interface ILogoImageComponentProps {
67
- data: any;
80
+ data: CreatorBase;
68
81
  }
69
82
  export interface IQuestionEditorContentComponentProps {
70
- creator: any;
83
+ creator: CreatorBase;
71
84
  survey: SurveyModel;
72
85
  }
73
86
  export interface ItemValueAdornerComponentProps {
@@ -93,21 +106,21 @@ export interface ISurveyResultsProps {
93
106
  }
94
107
  export interface ISurveyCreatorToolboxItemProps {
95
108
  item: IQuestionToolboxItem;
96
- creator: any;
109
+ creator: CreatorBase;
97
110
  isCompact: boolean;
98
111
  }
99
112
  export interface ISurveyCreatorToolboxProps {
100
- model: any;
113
+ model: CreatorBase;
101
114
  }
102
115
  export interface ISidebarComponentProps {
103
116
  model: SidebarModel;
104
117
  }
105
118
  export interface ISurveyPageNavigatorProps {
106
- creator: any;
119
+ creator: CreatorBase;
107
120
  pages: any;
108
121
  }
109
122
  export interface ITabDesignerComponentProps {
110
- data: any;
123
+ data: TabDesignerViewModel;
111
124
  }
112
125
  export interface ITabEmbedComponentProps {
113
126
  data: EmbedModel;
@@ -122,7 +135,7 @@ export interface IObjectSelectorComponentProps {
122
135
  model: ObjectSelectorModel;
123
136
  }
124
137
  export interface IPropertyGridComponentProps {
125
- model: any;
138
+ model: PropertyGridViewModel;
126
139
  }
127
140
  export declare class ActionButton extends SurveyElementBase<any, any> {
128
141
  constructor(props: any);
@@ -142,7 +155,7 @@ export declare class CellQuestionDropdownAdornerComponent extends SurveyElementB
142
155
  }
143
156
  export declare class CreatorSurveyPageComponent extends SurveyElementBase<ICreatorSurveyPageComponentProps, any> {
144
157
  constructor(props: ICreatorSurveyPageComponentProps);
145
- model: any;
158
+ model: PageViewModel;
146
159
  rootRef: any;
147
160
  protected getStateElement(): Base;
148
161
  componentDidMount(): void;
@@ -153,19 +166,6 @@ export declare class CreatorSurveyPageComponent extends SurveyElementBase<ICreat
153
166
  protected renderHeader(): any;
154
167
  protected renderFooter(): any;
155
168
  }
156
- export declare class DesignTimeSurveyModel extends SurveyModel {
157
- constructor(creator: SurveyCreator, jsonObj?: any);
158
- creator: SurveyCreator;
159
- isPopupEditorContent: boolean;
160
- getElementWrapperComponentName(element: any, reason?: string): string;
161
- getElementWrapperComponentData(element: any, reason?: string): any;
162
- getRowWrapperComponentName(row: QuestionRowModel): string;
163
- getRowWrapperComponentData(row: QuestionRowModel): any;
164
- getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
165
- getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase): any;
166
- getRendererForString(element: Base, name: string): string;
167
- getRendererContextForString(element: Base, locStr: LocalizableString): any;
168
- }
169
169
  export declare class ImageItemValueAdornerComponent extends SurveyElementBase<ImageItemValueAdornerComponentProps, any> {
170
170
  constructor(props: ImageItemValueAdornerComponentProps);
171
171
  model: ImageItemValueWrapperViewModel;
@@ -210,7 +210,7 @@ export declare class ObjectSelectorComponent extends SurveyElementBase<IObjectSe
210
210
  }
211
211
  export declare class PropertyGridComponent extends SurveyElementBase<IPropertyGridComponentProps, any> {
212
212
  constructor(props: any);
213
- get model(): any;
213
+ get model(): PropertyGridViewModel;
214
214
  protected getStateElement(): Base;
215
215
  canRender(): boolean;
216
216
  renderElement(): any;
@@ -272,7 +272,7 @@ export declare class SidebarTab extends SurveyElementBase<any, any> {
272
272
  }
273
273
  export declare class SurveyCreatorComponent extends SurveyElementBase<ISurveyCreatorComponentProps, any> {
274
274
  constructor(props: ISurveyCreatorComponentProps);
275
- get creator(): any;
275
+ get creator(): CreatorBase;
276
276
  protected getStateElement(): Base;
277
277
  componentDidMount(): void;
278
278
  componentWillUnmount(): void;
@@ -307,7 +307,7 @@ export declare class SurveyElementEmbeddedSurvey extends SurveyQuestionElementBa
307
307
  }
308
308
  export declare class SurveyPageNavigator extends SurveyElementBase<ISurveyPageNavigatorProps, any> {
309
309
  constructor(props: ISurveyPageNavigatorProps);
310
- model: any;
310
+ model: PageNavigatorViewModel;
311
311
  containerRef: any;
312
312
  protected getStateElement(): Base;
313
313
  componentDidMount(): void;
@@ -352,7 +352,7 @@ export declare class SvgBundleComponent extends React.Component {
352
352
  }
353
353
  export declare class TabDesignerComponent extends SurveyElementBase<ITabDesignerComponentProps, any> {
354
354
  constructor(props: any);
355
- protected get creator(): any;
355
+ protected get creator(): CreatorBase;
356
356
  protected getStateElements(): Array<Base>;
357
357
  protected renderPages(): Array<Element>;
358
358
  protected renderPage(pageV: PageModel): any;
@@ -493,9 +493,8 @@ export declare class ReactMouseEvent implements IPortableMouseEvent {
493
493
  get offsetX(): number;
494
494
  get offsetY(): number;
495
495
  }
496
- export declare class SurveyCreator extends CreatorBase<SurveyModel> {
496
+ export declare class SurveyCreator extends CreatorBase {
497
497
  constructor(options?: ICreatorOptions, options2?: ICreatorOptions);
498
- protected createSurveyCore(json: any, reason: string): SurveyModel;
499
498
  render(target: string | HTMLElement): void;
500
499
  createQuestionElement(question: Question): any;
501
500
  renderError(key: string, error: SurveyError, cssClasses: any): any;
@@ -506,6 +505,4 @@ export declare class ReactDragEvent extends ReactMouseEvent implements IPortable
506
505
  constructor(event: any);
507
506
  event: any;
508
507
  get dataTransfer(): any;
509
- }
510
- export declare var editableStringRendererName: any;
511
- export declare var localization: any;
508
+ }