survey-react-ui 2.2.6 → 2.3.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.2.6
2
+ * surveyjs - Survey JavaScript library v2.3.1
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,20 +1,30 @@
1
1
  import * as React from "react";
2
- import { ReactSurveyElement, SurveyQuestionUncontrolledElement } from "./reactquestion_element";
3
- import { QuestionCommentModel, TextAreaModel } from "survey-core";
2
+ import { IReactSurveyElementProps, ReactSurveyElement, SurveyQuestionUncontrolledElement } from "./reactquestion_element";
3
+ import { ItemValue, Question, QuestionCommentModel, TextAreaModel } from "survey-core";
4
4
  export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
5
5
  private renderCharacterCounter;
6
6
  constructor(props: any);
7
7
  protected renderElement(): React.JSX.Element;
8
8
  }
9
- export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
9
+ export interface ISurveyQuestionCommentItemProps extends IReactSurveyElementProps {
10
+ question: Question;
11
+ }
12
+ export declare class SurveyQuestionCommentItem<P extends ISurveyQuestionCommentItemProps = ISurveyQuestionCommentItemProps> extends ReactSurveyElement<P> {
10
13
  private textAreaModel;
11
- constructor(props: any);
14
+ constructor(props: {
15
+ question: Question;
16
+ });
12
17
  protected canRender(): boolean;
13
18
  protected getTextAreaModel(): TextAreaModel;
14
19
  protected renderElement(): React.JSX.Element;
15
20
  protected getKey(): string;
16
21
  }
17
- export declare class SurveyQuestionCommentValueItem extends SurveyQuestionCommentItem {
22
+ export interface ISurveyQuestionCommentValueItemProps extends ISurveyQuestionCommentItemProps {
23
+ question: Question;
24
+ item: ItemValue;
25
+ }
26
+ export declare class SurveyQuestionCommentValueItem extends SurveyQuestionCommentItem<ISurveyQuestionCommentValueItemProps> {
27
+ constructor(props: ISurveyQuestionCommentValueItemProps);
18
28
  protected getTextAreaModel(): TextAreaModel;
19
29
  protected getKey(): string;
20
30
  }
@@ -37,7 +37,10 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
37
37
  protected canUsePropInState(key: string): boolean;
38
38
  private unMakeBaseElementReact;
39
39
  }
40
- export declare class ReactSurveyElement extends SurveyElementBase<any, any> {
40
+ export interface IReactSurveyElementProps {
41
+ cssClasses: any;
42
+ }
43
+ export declare class ReactSurveyElement<P extends IReactSurveyElementProps = any, S = any> extends SurveyElementBase<P, S> {
41
44
  constructor(props: any);
42
45
  protected get cssClasses(): any;
43
46
  }