survey-react-ui 1.10.1 → 1.10.2

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.
@@ -69,6 +69,7 @@ export { SurveyQuestionPanelDynamicPrevButton } from "../react/components/paneld
69
69
  export { SurveyQuestionPanelDynamicNextButton } from "../react/components/paneldynamic-actions/paneldynamic-next-btn";
70
70
  export { SurveyQuestionPanelDynamicProgressText } from "../react/components/paneldynamic-actions/paneldynamic-progress-text";
71
71
  export { SurveyNavigationButton } from "../react/components/survey-actions/survey-nav-button";
72
+ export { QuestionErrorComponent } from "../react/components/question-error";
72
73
  export { MatrixRow } from "../react/components/matrix/row";
73
74
  export { Skeleton } from "../react/components/skeleton";
74
75
  export { NotifierComponent } from "../react/components/notifier";
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { SurveyError } from "survey-core";
3
+ export interface IQuestionErrorComponentProps {
4
+ error: SurveyError;
5
+ cssClasses: any;
6
+ element: any;
7
+ }
8
+ export declare class QuestionErrorComponent extends React.Component<IQuestionErrorComponentProps, any> {
9
+ render(): JSX.Element | null;
10
+ }
@@ -34,7 +34,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
34
34
  protected updateSurvey(newProps: any, oldProps?: any): void;
35
35
  protected setSurveyEvents(): void;
36
36
  createQuestionElement(question: Question): JSX.Element | null;
37
- renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
37
+ renderError(key: string, error: SurveyError, cssClasses: any, element?: any): JSX.Element;
38
38
  questionTitleLocation(): string;
39
39
  questionErrorLocation(): string;
40
40
  }
@@ -3,7 +3,7 @@ import { Base, SurveyElement, SurveyError, Question, QuestionMatrixDropdownRende
3
3
  import { SurveyElementBase, ReactSurveyElement } from "./reactquestion_element";
4
4
  export interface ISurveyCreator {
5
5
  createQuestionElement(question: Question): JSX.Element | null;
6
- renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
6
+ renderError(key: string, error: SurveyError, cssClasses: any, element?: any): JSX.Element;
7
7
  questionTitleLocation(): string;
8
8
  questionErrorLocation(): string;
9
9
  }