@microsoft/teams.cards
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.cards/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=c
1 lines • 3.19 kB
Source Map (JSON)
{"version":3,"sources":["../../../src/actions/submit/sign-in.ts"],"names":[],"mappings":";;AAsBO,MAAM,qBAAqB,YAAA,CAAsC;AAAA;AAAA;AAAA;AAAA,EAItE,IAAA;AAAA,EAEA,WAAA,CAAY,KAAA,EAAe,OAAA,GAA+B,EAAC,EAAG;AAC5D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,MAAA,CAAO,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,OAAO,EAAE,OAAA,EAAS,IAAI,UAAA,CAAW,KAAK,CAAA,EAAE;AAAA,EAC/C;AAAA,EAEA,OAAO,KAAK,OAAA,EAA4C;AACtD,IAAA,OAAO,IAAI,YAAA,CAAa,OAAA,CAAQ,IAAA,CAAK,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,SAAS,KAAA,EAA0B;AACjC,IAAA,KAAA,CAAM,QAAA,CAAS,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AACjC,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAqB;AAC7B,IAAA,IAAA,CAAK,IAAA,CAAK,QAAQ,KAAA,GAAQ,KAAA;AAC1B,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAiBO,MAAM,UAAA,CAAkC;AAAA,EAC7C,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,YAAY,KAAA,EAAe;AACzB,IAAA,IAAA,CAAK,IAAA,GAAO,QAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF","file":"sign-in.mjs","sourcesContent":["import type { ISubmitAction, SubmitActionOptions } from '../../core';\nimport { SubmitAction } from '../../core';\n\nimport type { MSTeamsData } from './ms-teams-data';\n\nexport type SignInActionOptions = SubmitActionOptions & {\n data: MSTeamsData<ISignInData>;\n};\n\n/**\n * @deprecated This type is deprecated. Please use {@link ISigninSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface ISignInAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<ISignInData>;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link SigninSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class SignInAction extends SubmitAction implements ISignInAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<ISignInData>;\n\n constructor(value: string, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = { msteams: new SignInData(value) };\n }\n\n static from(options: SignInActionOptions): SignInAction {\n return new SignInAction(options.data.msteams.value, options);\n }\n\n withData(value: ISignInData): this {\n super.withData({ msteams: value });\n return this;\n }\n\n withValue(value: string): this {\n this.data.msteams.value = value;\n return this;\n }\n}\n\n/**\n * @deprecated This type is deprecated. Please use {@link ISigninSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface ISignInData {\n type: 'signin';\n\n /**\n * Set to the `URL` where you want to redirect.\n */\n value: string;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link SigninSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class SignInData implements ISignInData {\n type: 'signin';\n\n /**\n * Set to the `URL` where you want to redirect.\n */\n value: string;\n\n constructor(value: string) {\n this.type = 'signin';\n this.value = value;\n }\n}\n"]}