/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { envType, GoogleButtonAction, GoogleButtonSize, GoogleButtonText, GoogleButtonTheme, GoogleButtonType, GoogleIconPosition, IdpComponentVariant, LoginSuccess, LogoutSuccess, MenuItem, ThemeVariant, UserDataType, UserLoaded, UserLoadedFail, XapiInfo } from "./beans"; import { IdpException } from "./utils/exception"; export { envType, GoogleButtonAction, GoogleButtonSize, GoogleButtonText, GoogleButtonTheme, GoogleButtonType, GoogleIconPosition, IdpComponentVariant, LoginSuccess, LogoutSuccess, MenuItem, ThemeVariant, UserDataType, UserLoaded, UserLoadedFail, XapiInfo } from "./beans"; export { IdpException } from "./utils/exception"; export namespace Components { interface GoogleLogin { /** * button action: login | update */ "action"?: GoogleButtonAction; /** * env: dev, test, prod */ "env"?: envType; /** * unique id to identify the button */ "htmlId": string; /** * icon position */ "logoAlignment"?: GoogleIconPosition; /** * size of the button */ "size"?: GoogleButtonSize; /** * text of the button: signin | signin_with */ "text"?: GoogleButtonText; /** * theme of the button */ "theme"?: GoogleButtonTheme; /** * size of the button: icon | standard */ "type"?: GoogleButtonType; /** * button's width */ "width"?: number; } interface IdpLogin { /** * maximum width of topbar content */ "contentMaxWidth"?: number; /** * current host - enables handling last visited apps in appswitcher */ "currentHost"?: string; /** * env: dev, test, prod */ "env": envType; /** * fix the modal to open state [optional] */ "fixedModal"?: boolean; /** * return current user data */ "getUserInfo": () => Promise; /** * display google login button */ "googleLogin"?: boolean; /** * opens the logo link in a new browser tab if true (`target="_blank`). */ "linkLogoTargetBlank"?: boolean; /** * show MyZanichelli logo */ "logo"?: boolean; /** * logout current user */ "logout": () => Promise; /** * modal state trigger [optional] */ "modalOpen"?: boolean; /** * enable notifications */ "notificationsEnabled"?: boolean; /** * back Url for registration step [optional] */ "regBackUrl"?: string; /** * add app-switcher */ "showAppSwitcher": boolean; /** * show myZanichelli link */ "showMyzLink"?: boolean; /** * theme variant, default 'dark' */ "theme"?: ThemeVariant; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login [optional] */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginForm { /** * env: dev, test, prod */ "env"?: envType; /** * unique id to identify google button */ "googleHtmlId": string; /** * display google login button */ "googleLogin"?: boolean; /** * callback for recover password click */ "handleRecoverPasswordClick": () => void; /** * user logged status */ "isLogged"?: boolean; /** * password input label */ "passwordLabel"?: string; /** * whether recovery password link need to be focused */ "recoveryPasswordLinkNeedsFocus": boolean; /** * back Url for registration step */ "regBackUrl"?: string; /** * display signup button */ "signupButton"?: boolean; /** * username input label */ "usernameLabel"?: string; /** * form variant: inline or modal */ "variant": IdpComponentVariant; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login [optional] */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginInline { /** * env: dev, test, prod */ "env"?: envType; /** * display google login button */ "googleLogin"?: boolean; /** * back Url for registration step */ "regBackUrl"?: string; /** * display signup button */ "signupButton"?: boolean; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginModal { /** * env: dev, test, prod */ "env"?: envType; /** * if true, the modal is not closable [optional] */ "fixedModal"?: boolean; /** * display google login button */ "googleLogin": boolean; /** * Choose the active modal when multiple modals are stacked */ "isActive"?: boolean; /** * user logged status */ "isLogged"?: boolean; /** * back Url for registration step */ "regBackUrl"?: string; /** * display signup button */ "signupButton"?: boolean; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginTopbar { /** * maximum width of topbar content */ "contentMaxWidth"?: number; /** * env: dev, test, prod */ "env"?: envType; /** * user logged status */ "isLogged"?: boolean; /** * opens the logo link in a new browser tab if true (`target="_blank`). */ "linkLogoTargetBlank"?: boolean; /** * show Zanichelli logo */ "logo"?: boolean; /** * add app-switcher */ "showAppSwitcher"?: boolean; /** * show myZanichelli link */ "showMyzLink"?: boolean; /** * theme variant, default 'dark' */ "theme"?: ThemeVariant; /** * MenuItem array to define topbar links */ "topbarLinks"?: MenuItem[]; /** * user loading status */ "userLoading"?: boolean; } interface IdpLoginUserDropdown { /** * logged status flag */ "logged"?: boolean; /** * theme variant, default 'dark' */ "theme"?: ThemeVariant; /** * user data */ "userData"?: UserDataType; /** * Array to fill menu dropdown */ "userLinks"?: MenuItem[]; } interface IdpModalCloseButton { "setFocus": () => Promise; } interface IdpModalsStack { } interface IdpPasswordRecoveryModal { /** * env: dev, test, prod */ "env"?: envType; /** * Choose the active modal when multiple modals are stacked */ "isActive"?: boolean; } interface SocialLogin { /** * env: dev, test, prod */ "env"?: envType; /** * unique id to identify google button */ "googleHtmlId": string; /** * display google login button */ "googleLogin": boolean; /** * set the theme variant */ "isThemeDark": boolean; /** * form variant: inline or modal */ "variant": IdpComponentVariant; /** * redirect url after ZD login */ "zainoDigitaleTargetUrl"?: string; } interface SocialLoginButton { /** * icon provider */ "icon"?: string; /** * change theme variant */ "isThemeDark": boolean; /** * display button label */ "label": string; /** * form variant: inline or modal */ "variant": IdpComponentVariant; } } export interface GoogleLoginCustomEvent extends CustomEvent { detail: T; target: HTMLGoogleLoginElement; } export interface IdpLoginCustomEvent extends CustomEvent { detail: T; target: HTMLIdpLoginElement; } export interface IdpLoginFormCustomEvent extends CustomEvent { detail: T; target: HTMLIdpLoginFormElement; } export interface IdpLoginInlineCustomEvent extends CustomEvent { detail: T; target: HTMLIdpLoginInlineElement; } export interface IdpLoginModalCustomEvent extends CustomEvent { detail: T; target: HTMLIdpLoginModalElement; } export interface IdpLoginTopbarCustomEvent extends CustomEvent { detail: T; target: HTMLIdpLoginTopbarElement; } export interface IdpLoginUserDropdownCustomEvent extends CustomEvent { detail: T; target: HTMLIdpLoginUserDropdownElement; } export interface IdpModalsStackCustomEvent extends CustomEvent { detail: T; target: HTMLIdpModalsStackElement; } export interface IdpPasswordRecoveryModalCustomEvent extends CustomEvent { detail: T; target: HTMLIdpPasswordRecoveryModalElement; } export interface SocialLoginCustomEvent extends CustomEvent { detail: T; target: HTMLSocialLoginElement; } declare global { interface HTMLGoogleLoginElementEventMap { "googleLoginSuccess": LoginSuccess; "googleLoginFailed": IdpException; "googleAccountUpdateSuccess": any; "googleAccountUpdateFailed": IdpException; } interface HTMLGoogleLoginElement extends Components.GoogleLogin, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLGoogleLoginElement, ev: GoogleLoginCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLGoogleLoginElement, ev: GoogleLoginCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLGoogleLoginElement: { prototype: HTMLGoogleLoginElement; new (): HTMLGoogleLoginElement; }; interface HTMLIdpLoginElementEventMap { "loginSuccess": LoginSuccess; "loginFailed": IdpException; "logoutSuccess": LogoutSuccess; "loginModalClose": string; "recoveryPasswordModalOpen": void; "recoveryPasswordModalClose": string; "logoutFailed": any; "userLoaded": UserLoaded; "userLoadedFail": UserLoadedFail; } interface HTMLIdpLoginElement extends Components.IdpLogin, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpLoginElement, ev: IdpLoginCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpLoginElement, ev: IdpLoginCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpLoginElement: { prototype: HTMLIdpLoginElement; new (): HTMLIdpLoginElement; }; interface HTMLIdpLoginFormElementEventMap { "recoveryPasswordModalClose": string; "recoveryPasswordModalOpen": void; "loginSuccess": LoginSuccess; "loginFailed": IdpException; } interface HTMLIdpLoginFormElement extends Components.IdpLoginForm, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpLoginFormElement, ev: IdpLoginFormCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpLoginFormElement, ev: IdpLoginFormCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpLoginFormElement: { prototype: HTMLIdpLoginFormElement; new (): HTMLIdpLoginFormElement; }; interface HTMLIdpLoginInlineElementEventMap { "loginSuccess": LoginSuccess; "loginFailed": IdpException; "recoveryPasswordModalOpen": string; "recoveryPasswordModalClose": string; } interface HTMLIdpLoginInlineElement extends Components.IdpLoginInline, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpLoginInlineElement, ev: IdpLoginInlineCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpLoginInlineElement, ev: IdpLoginInlineCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpLoginInlineElement: { prototype: HTMLIdpLoginInlineElement; new (): HTMLIdpLoginInlineElement; }; interface HTMLIdpLoginModalElementEventMap { "loginSuccess": LoginSuccess; "loginFailed": IdpException; "loginModalClose": string; } interface HTMLIdpLoginModalElement extends Components.IdpLoginModal, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpLoginModalElement, ev: IdpLoginModalCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpLoginModalElement, ev: IdpLoginModalCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpLoginModalElement: { prototype: HTMLIdpLoginModalElement; new (): HTMLIdpLoginModalElement; }; interface HTMLIdpLoginTopbarElementEventMap { "appswitcherIconClicked": any; } interface HTMLIdpLoginTopbarElement extends Components.IdpLoginTopbar, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpLoginTopbarElement, ev: IdpLoginTopbarCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpLoginTopbarElement, ev: IdpLoginTopbarCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpLoginTopbarElement: { prototype: HTMLIdpLoginTopbarElement; new (): HTMLIdpLoginTopbarElement; }; interface HTMLIdpLoginUserDropdownElementEventMap { "loginButtonClick": any; "dropdownMenuLinkClick": any; } interface HTMLIdpLoginUserDropdownElement extends Components.IdpLoginUserDropdown, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpLoginUserDropdownElement, ev: IdpLoginUserDropdownCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpLoginUserDropdownElement, ev: IdpLoginUserDropdownCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpLoginUserDropdownElement: { prototype: HTMLIdpLoginUserDropdownElement; new (): HTMLIdpLoginUserDropdownElement; }; interface HTMLIdpModalCloseButtonElement extends Components.IdpModalCloseButton, HTMLStencilElement { } var HTMLIdpModalCloseButtonElement: { prototype: HTMLIdpModalCloseButtonElement; new (): HTMLIdpModalCloseButtonElement; }; interface HTMLIdpModalsStackElementEventMap { "loginModalClose": string; "recoveryPasswordModalOpen": void; "recoveryPasswordModalClose": string; } interface HTMLIdpModalsStackElement extends Components.IdpModalsStack, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpModalsStackElement, ev: IdpModalsStackCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpModalsStackElement, ev: IdpModalsStackCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpModalsStackElement: { prototype: HTMLIdpModalsStackElement; new (): HTMLIdpModalsStackElement; }; interface HTMLIdpPasswordRecoveryModalElementEventMap { "recoveryPasswordModalClose": string; } interface HTMLIdpPasswordRecoveryModalElement extends Components.IdpPasswordRecoveryModal, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLIdpPasswordRecoveryModalElement, ev: IdpPasswordRecoveryModalCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLIdpPasswordRecoveryModalElement, ev: IdpPasswordRecoveryModalCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLIdpPasswordRecoveryModalElement: { prototype: HTMLIdpPasswordRecoveryModalElement; new (): HTMLIdpPasswordRecoveryModalElement; }; interface HTMLSocialLoginElementEventMap { "socialLoginSuccess": LoginSuccess; "socialLoginFailed": IdpException; } interface HTMLSocialLoginElement extends Components.SocialLogin, HTMLStencilElement { addEventListener(type: K, listener: (this: HTMLSocialLoginElement, ev: SocialLoginCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLSocialLoginElement, ev: SocialLoginCustomEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } var HTMLSocialLoginElement: { prototype: HTMLSocialLoginElement; new (): HTMLSocialLoginElement; }; interface HTMLSocialLoginButtonElement extends Components.SocialLoginButton, HTMLStencilElement { } var HTMLSocialLoginButtonElement: { prototype: HTMLSocialLoginButtonElement; new (): HTMLSocialLoginButtonElement; }; interface HTMLElementTagNameMap { "google-login": HTMLGoogleLoginElement; "idp-login": HTMLIdpLoginElement; "idp-login-form": HTMLIdpLoginFormElement; "idp-login-inline": HTMLIdpLoginInlineElement; "idp-login-modal": HTMLIdpLoginModalElement; "idp-login-topbar": HTMLIdpLoginTopbarElement; "idp-login-user-dropdown": HTMLIdpLoginUserDropdownElement; "idp-modal-close-button": HTMLIdpModalCloseButtonElement; "idp-modals-stack": HTMLIdpModalsStackElement; "idp-password-recovery-modal": HTMLIdpPasswordRecoveryModalElement; "social-login": HTMLSocialLoginElement; "social-login-button": HTMLSocialLoginButtonElement; } } declare namespace LocalJSX { interface GoogleLogin { /** * button action: login | update */ "action"?: GoogleButtonAction; /** * env: dev, test, prod */ "env"?: envType; /** * unique id to identify the button */ "htmlId"?: string; /** * icon position */ "logoAlignment"?: GoogleIconPosition; /** * emitted on Google account update fail */ "onGoogleAccountUpdateFailed"?: (event: GoogleLoginCustomEvent) => void; /** * emitted on Google account update success */ "onGoogleAccountUpdateSuccess"?: (event: GoogleLoginCustomEvent) => void; /** * emitted on Google login fail */ "onGoogleLoginFailed"?: (event: GoogleLoginCustomEvent) => void; /** * emitted on Google login success */ "onGoogleLoginSuccess"?: (event: GoogleLoginCustomEvent) => void; /** * size of the button */ "size"?: GoogleButtonSize; /** * text of the button: signin | signin_with */ "text"?: GoogleButtonText; /** * theme of the button */ "theme"?: GoogleButtonTheme; /** * size of the button: icon | standard */ "type"?: GoogleButtonType; /** * button's width */ "width"?: number; } interface IdpLogin { /** * maximum width of topbar content */ "contentMaxWidth"?: number; /** * current host - enables handling last visited apps in appswitcher */ "currentHost"?: string; /** * env: dev, test, prod */ "env"?: envType; /** * fix the modal to open state [optional] */ "fixedModal"?: boolean; /** * display google login button */ "googleLogin"?: boolean; /** * opens the logo link in a new browser tab if true (`target="_blank`). */ "linkLogoTargetBlank"?: boolean; /** * show MyZanichelli logo */ "logo"?: boolean; /** * modal state trigger [optional] */ "modalOpen"?: boolean; /** * enable notifications */ "notificationsEnabled"?: boolean; /** * emitted on login fail */ "onLoginFailed"?: (event: IdpLoginCustomEvent) => void; /** * emitted on modal close */ "onLoginModalClose"?: (event: IdpLoginCustomEvent) => void; /** * emitted on login success */ "onLoginSuccess"?: (event: IdpLoginCustomEvent) => void; /** * emitted on logout fail */ "onLogoutFailed"?: (event: IdpLoginCustomEvent) => void; /** * emitted on logout success */ "onLogoutSuccess"?: (event: IdpLoginCustomEvent) => void; /** * emitted on recovery password modal close */ "onRecoveryPasswordModalClose"?: (event: IdpLoginCustomEvent) => void; /** * emitted on recovery password modal open */ "onRecoveryPasswordModalOpen"?: (event: IdpLoginCustomEvent) => void; /** * emitted when user data has loaded */ "onUserLoaded"?: (event: IdpLoginCustomEvent) => void; /** * emitted when user data loading has failed (user is not logged) */ "onUserLoadedFail"?: (event: IdpLoginCustomEvent) => void; /** * back Url for registration step [optional] */ "regBackUrl"?: string; /** * add app-switcher */ "showAppSwitcher"?: boolean; /** * show myZanichelli link */ "showMyzLink"?: boolean; /** * theme variant, default 'dark' */ "theme"?: ThemeVariant; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login [optional] */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginForm { /** * env: dev, test, prod */ "env"?: envType; /** * unique id to identify google button */ "googleHtmlId"?: string; /** * display google login button */ "googleLogin"?: boolean; /** * callback for recover password click */ "handleRecoverPasswordClick"?: () => void; /** * user logged status */ "isLogged"?: boolean; /** * emitted on login fail */ "onLoginFailed"?: (event: IdpLoginFormCustomEvent) => void; /** * emitted on login success */ "onLoginSuccess"?: (event: IdpLoginFormCustomEvent) => void; "onRecoveryPasswordModalClose"?: (event: IdpLoginFormCustomEvent) => void; "onRecoveryPasswordModalOpen"?: (event: IdpLoginFormCustomEvent) => void; /** * password input label */ "passwordLabel"?: string; /** * whether recovery password link need to be focused */ "recoveryPasswordLinkNeedsFocus"?: boolean; /** * back Url for registration step */ "regBackUrl"?: string; /** * display signup button */ "signupButton"?: boolean; /** * username input label */ "usernameLabel"?: string; /** * form variant: inline or modal */ "variant"?: IdpComponentVariant; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login [optional] */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginInline { /** * env: dev, test, prod */ "env"?: envType; /** * display google login button */ "googleLogin"?: boolean; /** * emitted on login fail */ "onLoginFailed"?: (event: IdpLoginInlineCustomEvent) => void; /** * emitted on login success */ "onLoginSuccess"?: (event: IdpLoginInlineCustomEvent) => void; "onRecoveryPasswordModalClose"?: (event: IdpLoginInlineCustomEvent) => void; "onRecoveryPasswordModalOpen"?: (event: IdpLoginInlineCustomEvent) => void; /** * back Url for registration step */ "regBackUrl"?: string; /** * display signup button */ "signupButton"?: boolean; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginModal { /** * env: dev, test, prod */ "env"?: envType; /** * if true, the modal is not closable [optional] */ "fixedModal"?: boolean; /** * display google login button */ "googleLogin"?: boolean; /** * Choose the active modal when multiple modals are stacked */ "isActive"?: boolean; /** * user logged status */ "isLogged"?: boolean; /** * emitted on login fail */ "onLoginFailed"?: (event: IdpLoginModalCustomEvent) => void; /** * Emitted on modal close */ "onLoginModalClose"?: (event: IdpLoginModalCustomEvent) => void; /** * emitted on login success */ "onLoginSuccess"?: (event: IdpLoginModalCustomEvent) => void; /** * back Url for registration step */ "regBackUrl"?: string; /** * display signup button */ "signupButton"?: boolean; /** * info to send xapi tracking events */ "xapiInfo"?: XapiInfo | string; /** * redirect url after ZD login */ "zainoDigitaleTargetUrl"?: string; } interface IdpLoginTopbar { /** * maximum width of topbar content */ "contentMaxWidth"?: number; /** * env: dev, test, prod */ "env"?: envType; /** * user logged status */ "isLogged"?: boolean; /** * opens the logo link in a new browser tab if true (`target="_blank`). */ "linkLogoTargetBlank"?: boolean; /** * show Zanichelli logo */ "logo"?: boolean; /** * user clicked the appswitcher icon */ "onAppswitcherIconClicked"?: (event: IdpLoginTopbarCustomEvent) => void; /** * add app-switcher */ "showAppSwitcher"?: boolean; /** * show myZanichelli link */ "showMyzLink"?: boolean; /** * theme variant, default 'dark' */ "theme"?: ThemeVariant; /** * MenuItem array to define topbar links */ "topbarLinks"?: MenuItem[]; /** * user loading status */ "userLoading"?: boolean; } interface IdpLoginUserDropdown { /** * logged status flag */ "logged"?: boolean; /** * Emitted on dropdown menu zlink click, returns event */ "onDropdownMenuLinkClick"?: (event: IdpLoginUserDropdownCustomEvent) => void; /** * Emitted on enter or user Button click, returns isMenuOpen (bool) */ "onLoginButtonClick"?: (event: IdpLoginUserDropdownCustomEvent) => void; /** * theme variant, default 'dark' */ "theme"?: ThemeVariant; /** * user data */ "userData"?: UserDataType; /** * Array to fill menu dropdown */ "userLinks"?: MenuItem[]; } interface IdpModalCloseButton { } interface IdpModalsStack { /** * emitted on modal close */ "onLoginModalClose"?: (event: IdpModalsStackCustomEvent) => void; "onRecoveryPasswordModalClose"?: (event: IdpModalsStackCustomEvent) => void; "onRecoveryPasswordModalOpen"?: (event: IdpModalsStackCustomEvent) => void; } interface IdpPasswordRecoveryModal { /** * env: dev, test, prod */ "env"?: envType; /** * Choose the active modal when multiple modals are stacked */ "isActive"?: boolean; "onRecoveryPasswordModalClose"?: (event: IdpPasswordRecoveryModalCustomEvent) => void; } interface SocialLogin { /** * env: dev, test, prod */ "env"?: envType; /** * unique id to identify google button */ "googleHtmlId"?: string; /** * display google login button */ "googleLogin"?: boolean; /** * set the theme variant */ "isThemeDark"?: boolean; "onSocialLoginFailed"?: (event: SocialLoginCustomEvent) => void; "onSocialLoginSuccess"?: (event: SocialLoginCustomEvent) => void; /** * form variant: inline or modal */ "variant"?: IdpComponentVariant; /** * redirect url after ZD login */ "zainoDigitaleTargetUrl"?: string; } interface SocialLoginButton { /** * icon provider */ "icon"?: string; /** * change theme variant */ "isThemeDark"?: boolean; /** * display button label */ "label"?: string; /** * form variant: inline or modal */ "variant"?: IdpComponentVariant; } interface IntrinsicElements { "google-login": GoogleLogin; "idp-login": IdpLogin; "idp-login-form": IdpLoginForm; "idp-login-inline": IdpLoginInline; "idp-login-modal": IdpLoginModal; "idp-login-topbar": IdpLoginTopbar; "idp-login-user-dropdown": IdpLoginUserDropdown; "idp-modal-close-button": IdpModalCloseButton; "idp-modals-stack": IdpModalsStack; "idp-password-recovery-modal": IdpPasswordRecoveryModal; "social-login": SocialLogin; "social-login-button": SocialLoginButton; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { "google-login": LocalJSX.GoogleLogin & JSXBase.HTMLAttributes; "idp-login": LocalJSX.IdpLogin & JSXBase.HTMLAttributes; "idp-login-form": LocalJSX.IdpLoginForm & JSXBase.HTMLAttributes; "idp-login-inline": LocalJSX.IdpLoginInline & JSXBase.HTMLAttributes; "idp-login-modal": LocalJSX.IdpLoginModal & JSXBase.HTMLAttributes; "idp-login-topbar": LocalJSX.IdpLoginTopbar & JSXBase.HTMLAttributes; "idp-login-user-dropdown": LocalJSX.IdpLoginUserDropdown & JSXBase.HTMLAttributes; "idp-modal-close-button": LocalJSX.IdpModalCloseButton & JSXBase.HTMLAttributes; "idp-modals-stack": LocalJSX.IdpModalsStack & JSXBase.HTMLAttributes; "idp-password-recovery-modal": LocalJSX.IdpPasswordRecoveryModal & JSXBase.HTMLAttributes; "social-login": LocalJSX.SocialLogin & JSXBase.HTMLAttributes; "social-login-button": LocalJSX.SocialLoginButton & JSXBase.HTMLAttributes; } } }