@kentico/xperience-admin-components 22.1.3 → 22.2.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.
package/dist/entry.d.ts CHANGED
@@ -610,8 +610,14 @@ export declare enum CheckboxSize {
610
610
  L = "L"
611
611
  }
612
612
 
613
+ /**
614
+ * Code editor component.
615
+ */
613
616
  export declare const CodeEditor: React_2.ForwardRefExoticComponent<CodeEditorProps & React_2.RefAttributes<ReactCodeMirrorRef>>;
614
617
 
618
+ /**
619
+ * Supported languages of code editor.
620
+ */
615
621
  export declare enum CodeEditorLanguage {
616
622
  Html = "html",
617
623
  Css = "css",
@@ -620,9 +626,33 @@ export declare enum CodeEditorLanguage {
620
626
  Javascript = "javascript"
621
627
  }
622
628
 
629
+ /**
630
+ * Code editor props based on codemirror.
631
+ */
623
632
  export declare interface CodeEditorProps extends Omit<ReactCodeMirrorProps, 'extensions' | 'readOnly' | 'editable'> {
624
633
  readonly language: CodeEditorLanguage;
625
634
  readonly disabled?: boolean;
635
+ readonly label?: string;
636
+ readonly validationMessage?: string;
637
+ readonly invalid?: boolean;
638
+ readonly value?: string;
639
+ readonly explanationText?: string;
640
+ readonly inactiveMessage?: string;
641
+ readonly labelIcon?: IconName;
642
+ readonly labelIconTooltip?: string;
643
+ readonly markAsRequired?: boolean;
644
+ /**
645
+ * Test id data attribute.
646
+ */
647
+ readonly dataTestId?: string;
648
+ /**
649
+ * Dangerously sets explanation text as inner HTML.
650
+ */
651
+ readonly explanationTextAsHtml?: boolean;
652
+ /**
653
+ * Dangerously sets tooltip as inner HTML.
654
+ */
655
+ readonly tooltipAsHtml?: boolean;
626
656
  }
627
657
 
628
658
  export declare enum Colors {
@@ -2659,7 +2689,7 @@ export declare interface TableRow {
2659
2689
  }
2660
2690
 
2661
2691
  export declare const TableRowComponent: {
2662
- ({ cells, columns, disabled, selectable, selected, skeleton, selectLabel, maxVisibleRowActions, inactiveMessage, dataTestId, onRowSelect: onSelect, onRowClick }: TableRowProps): JSX.Element;
2692
+ ({ cells, columns, disabled, selectable, selected, skeleton, selectLabel, maxVisibleRowActions, inactiveMessage, dataTestId, onRowSelect, onRowClick }: TableRowProps): JSX.Element;
2663
2693
  displayName: string;
2664
2694
  };
2665
2695