@uuv/assistant
Version:
UUV Helper used to improve the life of testers and developers by generating cucumber phrases from the GUI.
61 lines (60 loc) • 2.14 kB
TypeScript
import React from "react";
export declare const UUV_ASSISTANT_BAR_WIDTH = 60;
export type ResultSentence = {
key: React.Key;
result: string;
};
export declare class Suggestion {
accessibleAttribute: string;
accessibleValue: string;
code: string;
sentenceAfterCorrection: string[];
constructor(accessibleAttribute?: string, accessibleValue?: string, code?: string, sentenceAfterCorrection?: string[]);
}
export declare enum VisibilityEnum {
HIDE = "hide",
WITH_RESULT = "withResult",
WITHOUT_RESULT = "withoutResult",
SETTINGS = "settings"
}
export declare enum ActionEnum {
NONE = "No action",
WITHIN = "Within",
EXPECT = "Expect",
CLICK = "Click",
TYPE = "Type",
KEYBOARD_GLOBAL_NAVIGATION = "Keyboard Navigation",
FORM_COMPLETION_MOUSE = "Form Mouse Completion",
TABLE_AND_GRID_EXPECT = "Table and Grid Expect",
DIALOG_EXPECT = "Dialog Expect",
FORM_COMPLETION_KEYBOARD = "Form Keyboard Completion",
RECORD = "Record"
}
export declare enum KeyboardNavigationModeEnum {
NONE = "No navigation",
CURRENT_NAVIGATION = "currentNavigation",
EXPECTED_NAVIGATION = "expectedNavigation"
}
export declare enum AdditionalLayerEnum {
CURRENT_NAVIGATION = "keyboard-layer-current-navigation",
EXPECTED_NAVIGATION = "keyboard-layer-expected-navigation",
FORM_COMPLETION = "form-layer-completion",
DIALOG_COMPLETION = "dialog-layer-completion",
ARRAY_COMPLETION = "array-layer-completion"
}
export declare const UUV_DISABLED_CLASS = "uuv-is-disabled";
export declare const PENDING_VALUE = "pending";
export type UuvAssistantResultAIAnalysisType = {
mode: AIAnalysisModeEnum;
available_image_descriptions?: string[] | typeof PENDING_VALUE;
onDescriptionSelected?: (selectedImageDescription: string) => void;
is_decorative: boolean | typeof PENDING_VALUE;
confidence: number | typeof PENDING_VALUE;
image_description: string | typeof PENDING_VALUE;
analysis_details: string | typeof PENDING_VALUE;
duration?: number;
};
export declare enum AIAnalysisModeEnum {
UNIFIED = 0,
STEP_BY_STEP = 1
}