Skip to content

Commit

Permalink
fix all lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Terentiev committed Oct 26, 2023
1 parent a30cbca commit fd24756
Show file tree
Hide file tree
Showing 41 changed files with 210 additions and 197 deletions.
2 changes: 1 addition & 1 deletion libraries/botframework-schema/src/sharepoint/aceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ export interface AceData {
/**
* SharePoint ACE Card Size
*/
export type AceCardSize = 'Medium' | 'Large';
export type AceCardSize = 'Medium' | 'Large';
2 changes: 1 addition & 1 deletion libraries/botframework-schema/src/sharepoint/aceRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export interface AceRequest {
* ACE properties data.
*/
properties?: any;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface Location {
export enum MediaType {
Image = 1,
Audio = 4,
Document = 8
Document = 8,
}

/**
Expand Down Expand Up @@ -71,8 +71,8 @@ export interface QuickViewParameters {
}

/**
* SharePoint ExternalLink action.
*/
* SharePoint ExternalLink action.
*/
export interface ExternalLinkCardAction {
/**
* Indicates this is an external link button.
Expand Down Expand Up @@ -255,10 +255,11 @@ export type CardAction =
/**
* Type of handler for when a card is selected.
*/
export type OnCardSelectionAction = QuickViewCardAction
export type OnCardSelectionAction =
| QuickViewCardAction
| ExternalLinkCardAction
| SelectMediaCardAction
| GetLocationCardAction
| ShowLocationCardAction
| ExecuteCardAction
| undefined;
| undefined;
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
*/
export interface FocusParameters {
/**
* Sets the default focus on the DOM. Developers pass in the id of a unique element that is to attain focus within a quick view.
* If the `focusTarget` is not defined then the root element is selected.
*/
* Sets the default focus on the DOM. Developers pass in the id of a unique element that is to attain focus within a quick view.
* If the `focusTarget` is not defined then the root element is selected.
*/
focusTarget?: string;
/**
* Sets the accessibility reading of the contents within the focus target.
* Polite - Content in the target's subtree is read when the user is idle.
* Assertive - Disrupts any announcement in favor of the changed contents within the target's subtree.
* Off - The screen reader will not read contents within the target's subtree.
*/
* Sets the accessibility reading of the contents within the focus target.
* Polite - Content in the target's subtree is read when the user is idle.
* Assertive - Disrupts any announcement in favor of the changed contents within the target's subtree.
* Off - The screen reader will not read contents within the target's subtree.
*/
ariaLive?: 'polite' | 'assertive' | 'off';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// Licensed under the MIT License.

export * from './cardAction';
export * from './focusParameters';
export * from './focusParameters';
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,19 @@
/**
* Names of the components allowed in a card view.
*/
export type CardComponentName =
| 'text'
| 'cardButton'
| 'cardBar'
| 'textInput'
| 'searchBox'
| 'searchFooter';
export type CardComponentName = 'text' | 'cardButton' | 'cardBar' | 'textInput' | 'searchBox' | 'searchFooter';

/**
* Base Adaptive Card Extension card view component.
*/
export interface BaseCardComponent {
/**
* Unique component name.
* For example, "textInput"
*/
componentName: CardComponentName;
/**
* Optional unique identifier of the component's instance.
*/
id?: string;
/**
* Unique component name.
* For example, "textInput"
*/
componentName: CardComponentName;
/**
* Optional unique identifier of the component's instance.
*/
id?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import type { BaseCardComponent } from './baseCardComponent';
* Adaptive Card Extension Card view title area (card bar) component
*/
export interface CardBarComponent extends BaseCardComponent {
/**
* Unique component name.
*/
componentName: 'cardBar';
/**
* The icon to display.
*/
icon?: CardImage;
/**
* The title to display.
*/
title?: string;
/**
* Unique component name.
*/
componentName: 'cardBar';
/**
* The icon to display.
*/
icon?: CardImage;
/**
* The title to display.
*/
title?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import type { CardAction } from '../actions/cardAction';
* Base properties for the buttons used in different Adaptive Card Extension card view components, such as Text Input, Search Box and Card Button.
*/
export interface CardButtonBase {
/**
* The type of the button.
*/
action: CardAction;
/**
* Unique Id of the button.
*/
id?: string;
/**
* The type of the button.
*/
action: CardAction;
/**
* Unique Id of the button.
*/
id?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import type { CardButtonBase } from './cardButtonBase';
* Adaptive Card Extension Card button component.
*/
export interface CardButtonComponent extends BaseCardComponent, CardButtonBase {
/**
* Unique component name.
*/
componentName: 'cardButton';
/**
* Text displayed on the button.
*/
title: string;
/**
* Controls the style of the button.
*/
style?: 'default' | 'positive';
/**
* Unique component name.
*/
componentName: 'cardButton';
/**
* Text displayed on the button.
*/
title: string;
/**
* Controls the style of the button.
*/
style?: 'default' | 'positive';
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export interface CardImage {
* The alt text.
*/
altText?: string;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,29 @@ import type { CardButtonBase } from './cardButtonBase';
/**
* Search box button properties.
*/
export interface ICardSearchBoxButton extends CardButtonBase {}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface ICardSearchBoxButton extends CardButtonBase {
// reserved for future. Not additional properties.
}

/**
* Adaptive Card Extension Search box component. Represents a search box rendered in the card view.
*/
export interface CardSearchBoxComponent extends BaseCardComponent {
/**
* Unique component name.
*/
componentName: 'searchBox';
/**
* Placeholder text to display.
*/
placeholder?: string;
/**
* Default value to display.
*/
defaultValue?: string;
/**
* Button displayed on the search box.
*/
button: ICardSearchBoxButton;
/**
* Unique component name.
*/
componentName: 'searchBox';
/**
* Placeholder text to display.
*/
placeholder?: string;
/**
* Default value to display.
*/
defaultValue?: string;
/**
* Button displayed on the search box.
*/
button: ICardSearchBoxButton;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ import type { BaseCardComponent } from './baseCardComponent';
* Adaptive Card Extension Search footer component. Represents a container with an image (in the shape of a circle) and text.
*/
export interface CardSearchFooterComponent extends BaseCardComponent {
/**
* Unique component name.
*/
componentName: 'searchFooter';
/**
* Title text to display.
*/
title: string;
/**
* Url to the image to use, should be a square aspect ratio and big enough to fit in the image area.
*/
imageUrl?: string;
/**
* The initials to display in the image area when there is no image.
*/
imageInitials?: string;
/**
* Primary text to display. For example, name of the person for people search.
*/
text: string;
/**
* Action to invoke when the footer is selected.
*/
onSelection?: CardAction;
}
/**
* Unique component name.
*/
componentName: 'searchFooter';
/**
* Title text to display.
*/
title: string;
/**
* Url to the image to use, should be a square aspect ratio and big enough to fit in the image area.
*/
imageUrl?: string;
/**
* The initials to display in the image area when there is no image.
*/
imageInitials?: string;
/**
* Primary text to display. For example, name of the person for people search.
*/
text: string;
/**
* Action to invoke when the footer is selected.
*/
onSelection?: CardAction;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import type { BaseCardComponent } from './baseCardComponent';
* Adaptive Card Extension Text component. Represents a text block rendered in the card view.
*/
export interface CardTextComponent extends BaseCardComponent {
/**
* Unique component name.
*/
componentName: 'text';
/**
* Text to display.
*/
text: string;
}
/**
* Unique component name.
*/
componentName: 'text';
/**
* Text to display.
*/
text: string;
}
Loading

0 comments on commit fd24756

Please sign in to comment.