UNPKG

intentful

Version:

Create Custom Skills with less headache

44 lines (43 loc) 2.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlexaHeadline = void 0; const helpers_1 = require("../../../interfaces/helpers"); const component_1 = require("../../component"); class AlexaHeadline extends component_1.APLComponent { constructor(props) { super('AlexaHeadline', props); } componentSpecificModel() { return { backgroundAlign: this.props.backgroundAlign, backgroundBlur: this.props.backgroundBlur, backgroundColor: this.props.backgroundColor, backgroundColorOverlay: this.props.backgroundColorOverlay, backgroundImageSource: this.props.backgroundImageSource, backgroundOverlayGradient: this.props.backgroundOverlayGradient, backgroundScale: this.props.backgroundScale, backgroundVideoAudioTrack: this.props.backgroundVideoAudioTrack, backgroundVideoAutoPlay: this.props.backgroundVideoAutoPlay, backgroundVideoSource: this.props.backgroundVideoSource, headerAttributionImage: this.props.headerAttributionImage, headerAttributionPrimacy: this.props.headerAttributionPrimacy, headerAttributionText: this.props.headerAttributionText, headerBackButton: this.props.headerBackButton, headerBackButtonAccessibilityLabel: this.props.headerBackButtonAccessibilityLabel, headerBackButtonCommand: this.props.headerBackButtonCommand, headerBackgroundColor: this.props.headerBackgroundColor, headerDivider: this.props.headerDivider, headerSubtitle: this.props.headerSubtitle, headerTitle: this.props.headerTitle, primaryText: this.props.primaryText, secondaryText: this.props.secondaryText }; } componentSpecificRequestHandlers() { return [ ...(0, helpers_1.convertVideoSourcePropsToRequestHandlers)(this.props.backgroundVideoSource), ...(0, helpers_1.convertCommandListToRequestHandlers)([this.props.headerBackButtonCommand]) ]; } } exports.AlexaHeadline = AlexaHeadline;