@octopusdeploy/design-system-components
Version:
The design systems component library.
32 lines (31 loc) • 1.58 kB
TypeScript
type DeprecatedMarkdownTextInputRef = {
focus: () => void;
insertAtCursor: (val: string) => void;
};
interface DeprecatedMarkdownEditorProps {
value: string | undefined;
onChange: (newValue: string) => void;
accessibleName?: string;
autoFocus?: boolean;
placeholder?: string;
bottomNoteText?: string | null;
restrictHeight?: boolean;
disabled?: boolean;
label?: string;
error?: string;
hideMarkdownToggle?: boolean;
controlsInitiallyVisible?: boolean;
onValidate?(value: string): boolean;
textInputRef?(input: DeprecatedMarkdownTextInputRef | null): void;
}
/**
* @deprecated This component is deprecated and will be removed in a future release.
* Deprecated: 14/07/2026
* Replacement: MarkdownEditor (packages/design-system-components/src/components/Form/MarkdownEditor/MarkdownEditor.tsx)
* Reason: As part of the forms uplift we have a new MarkdowndownEditor utilising the new form elements but wanted to ensure a manual rollout
* so we have duplicated it, deprecated the current one and created a new one using the new form elements.
*
* @remarks Continue to use this component. Only use the new one in pre-approved areas, as in #project-form-uplift if unsure before using.
*/
export declare function DeprecatedMarkdownEditor({ onChange, onValidate, hideMarkdownToggle, restrictHeight, label, error, accessibleName, value, disabled, placeholder, textInputRef, controlsInitiallyVisible, autoFocus, bottomNoteText, }: DeprecatedMarkdownEditorProps): import("react/jsx-runtime").JSX.Element;
export {};