@microsoft/teams.cards 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/index.d.mts +1 -2
- package/dist/actions/index.d.ts +1 -2
- package/dist/actions/submit/collab-stage.d.mts +8 -52
- package/dist/actions/submit/collab-stage.d.ts +8 -52
- package/dist/actions/submit/collab-stage.js +14 -37
- package/dist/actions/submit/collab-stage.js.map +1 -1
- package/dist/actions/submit/collab-stage.mjs +16 -37
- package/dist/actions/submit/collab-stage.mjs.map +1 -1
- package/dist/actions/submit/im-back.d.mts +12 -0
- package/dist/actions/submit/im-back.d.ts +12 -0
- package/dist/actions/submit/im-back.js.map +1 -1
- package/dist/actions/submit/im-back.mjs.map +1 -1
- package/dist/actions/submit/index.d.mts +1 -2
- package/dist/actions/submit/index.d.ts +1 -2
- package/dist/actions/submit/invoke.d.mts +12 -0
- package/dist/actions/submit/invoke.d.ts +12 -0
- package/dist/actions/submit/invoke.js.map +1 -1
- package/dist/actions/submit/invoke.mjs.map +1 -1
- package/dist/actions/submit/message-back.d.mts +12 -0
- package/dist/actions/submit/message-back.d.ts +12 -0
- package/dist/actions/submit/message-back.js.map +1 -1
- package/dist/actions/submit/message-back.mjs.map +1 -1
- package/dist/actions/submit/sign-in.d.mts +12 -0
- package/dist/actions/submit/sign-in.d.ts +12 -0
- package/dist/actions/submit/sign-in.js.map +1 -1
- package/dist/actions/submit/sign-in.mjs.map +1 -1
- package/dist/actions/submit/task-fetch.d.mts +12 -0
- package/dist/actions/submit/task-fetch.d.ts +12 -0
- package/dist/actions/submit/task-fetch.js.map +1 -1
- package/dist/actions/submit/task-fetch.mjs.map +1 -1
- package/dist/core.d.mts +6477 -3420
- package/dist/core.d.ts +6477 -3420
- package/dist/core.js +5437 -2887
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +5407 -2888
- package/dist/core.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/utilities/index.d.mts +3 -0
- package/dist/utilities/index.d.ts +3 -0
- package/dist/utilities/index.js +21 -0
- package/dist/utilities/index.mjs +4 -0
- package/dist/utilities/open-dialog-data.d.mts +19 -0
- package/dist/utilities/open-dialog-data.d.ts +19 -0
- package/dist/utilities/open-dialog-data.js +18 -0
- package/dist/utilities/open-dialog-data.js.map +1 -0
- package/dist/utilities/open-dialog-data.mjs +16 -0
- package/dist/utilities/open-dialog-data.mjs.map +1 -0
- package/dist/utilities/submit-data.d.mts +18 -0
- package/dist/utilities/submit-data.d.ts +18 -0
- package/dist/utilities/submit-data.js +18 -0
- package/dist/utilities/submit-data.js.map +1 -0
- package/dist/utilities/submit-data.mjs +16 -0
- package/dist/utilities/submit-data.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/common/index.d.mts +0 -1
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +0 -14
- package/dist/common/index.mjs +0 -3
- package/dist/common/tab-info.d.mts +0 -23
- package/dist/common/tab-info.d.ts +0 -23
- package/dist/common/tab-info.js +0 -4
- package/dist/common/tab-info.js.map +0 -1
- package/dist/common/tab-info.mjs +0 -3
- package/dist/common/tab-info.mjs.map +0 -1
- /package/dist/{common → utilities}/index.js.map +0 -0
- /package/dist/{common → utilities}/index.mjs.map +0 -0
package/dist/actions/index.d.mts
CHANGED
|
@@ -3,7 +3,6 @@ export { IInvokeAction, IInvokeData, InvokeAction, InvokeActionOptions, InvokeDa
|
|
|
3
3
|
export { IMessageBackAction, IMessageBackData, MessageBackAction, MessageBackActionOptions, MessageBackData } from './submit/message-back.mjs';
|
|
4
4
|
export { ISignInAction, ISignInData, SignInAction, SignInActionOptions, SignInData } from './submit/sign-in.mjs';
|
|
5
5
|
export { ITaskFetchAction, ITaskFetchData, TaskFetchAction, TaskFetchActionOptions, TaskFetchData, TaskFetchDataValues } from './submit/task-fetch.mjs';
|
|
6
|
-
export { CollabStageAction, CollabStageActionOptions,
|
|
6
|
+
export { CollabStageAction, CollabStageActionOptions, ICollabStageAction } from './submit/collab-stage.mjs';
|
|
7
7
|
import '../core.mjs';
|
|
8
8
|
import './submit/ms-teams-data.mjs';
|
|
9
|
-
import '../common/tab-info.mjs';
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export { IInvokeAction, IInvokeData, InvokeAction, InvokeActionOptions, InvokeDa
|
|
|
3
3
|
export { IMessageBackAction, IMessageBackData, MessageBackAction, MessageBackActionOptions, MessageBackData } from './submit/message-back.js';
|
|
4
4
|
export { ISignInAction, ISignInData, SignInAction, SignInActionOptions, SignInData } from './submit/sign-in.js';
|
|
5
5
|
export { ITaskFetchAction, ITaskFetchData, TaskFetchAction, TaskFetchActionOptions, TaskFetchData, TaskFetchDataValues } from './submit/task-fetch.js';
|
|
6
|
-
export { CollabStageAction, CollabStageActionOptions,
|
|
6
|
+
export { CollabStageAction, CollabStageActionOptions, ICollabStageAction } from './submit/collab-stage.js';
|
|
7
7
|
import '../core.js';
|
|
8
8
|
import './submit/ms-teams-data.js';
|
|
9
|
-
import '../common/tab-info.js';
|
|
@@ -1,73 +1,29 @@
|
|
|
1
|
-
import { ITabInfo } from '../../
|
|
2
|
-
import { SubmitAction, ISubmitAction, SubmitActionOptions } from '../../core.mjs';
|
|
3
|
-
import { MSTeamsData } from './ms-teams-data.mjs';
|
|
1
|
+
import { SubmitAction, ISubmitAction, ISubmitActionData, ITabInfo, SubmitActionOptions, IInvokeSubmitActionData } from '../../core.mjs';
|
|
4
2
|
|
|
5
3
|
type CollabStageActionOptions = SubmitActionOptions & {
|
|
6
|
-
data:
|
|
4
|
+
data: ISubmitActionData;
|
|
7
5
|
};
|
|
8
6
|
/**
|
|
9
7
|
* Adaptive Card action response type for the {@link CollabStageAction} function.
|
|
10
8
|
*/
|
|
11
9
|
interface ICollabStageAction extends ISubmitAction {
|
|
12
10
|
/**
|
|
13
|
-
* Initial data that input fields will be combined with. These are essentially
|
|
11
|
+
* Initial data that input fields will be combined with. These are essentially 'hidden' properties.
|
|
14
12
|
*/
|
|
15
|
-
data:
|
|
13
|
+
data: ISubmitActionData;
|
|
16
14
|
}
|
|
17
15
|
/**
|
|
18
16
|
* Adaptive Card action that opens a collab stage popout window.
|
|
19
17
|
*/
|
|
20
18
|
declare class CollabStageAction extends SubmitAction implements ICollabStageAction {
|
|
21
19
|
/**
|
|
22
|
-
* Initial data that input fields will be combined with. These are essentially
|
|
20
|
+
* Initial data that input fields will be combined with. These are essentially 'hidden' properties.
|
|
23
21
|
*/
|
|
24
|
-
data:
|
|
22
|
+
data: ISubmitActionData;
|
|
25
23
|
constructor(tab?: ITabInfo, options?: SubmitActionOptions);
|
|
26
24
|
static from(options: CollabStageActionOptions): CollabStageAction;
|
|
27
|
-
withData(value:
|
|
25
|
+
withData(value: IInvokeSubmitActionData): this;
|
|
28
26
|
withValue(value: ITabInfo): this;
|
|
29
27
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Contains the Adaptive Card action data in {@link CollabStageAction}.
|
|
32
|
-
*/
|
|
33
|
-
interface ICollabStageData {
|
|
34
|
-
type: 'invoke';
|
|
35
|
-
/**
|
|
36
|
-
* Set the value to send with the invoke
|
|
37
|
-
*/
|
|
38
|
-
value?: ICollabStageValueData;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Contains the Adaptive Card action data in {@link CollabStageAction}.
|
|
42
|
-
*/
|
|
43
|
-
declare class CollabStageData implements ICollabStageData {
|
|
44
|
-
type: 'invoke';
|
|
45
|
-
/**
|
|
46
|
-
* Set the value to send with the invoke
|
|
47
|
-
*/
|
|
48
|
-
value?: ICollabStageValueData;
|
|
49
|
-
constructor(value?: ICollabStageValueData);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Contains the Adaptive Card action value data in {@link CollabStageActionData}.
|
|
53
|
-
*/
|
|
54
|
-
interface ICollabStageValueData {
|
|
55
|
-
type: 'tab/tabInfoAction';
|
|
56
|
-
/**
|
|
57
|
-
* Information about the iFrame content, rendered in the collab stage popout window.
|
|
58
|
-
*/
|
|
59
|
-
tabInfo: ITabInfo;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Contains the Adaptive Card action value data in {@link CollabStageActionData}.
|
|
63
|
-
*/
|
|
64
|
-
declare class CollabStageValueData implements ICollabStageValueData {
|
|
65
|
-
type: 'tab/tabInfoAction';
|
|
66
|
-
/**
|
|
67
|
-
* Information about the iFrame content, rendered in the collab stage popout window.
|
|
68
|
-
*/
|
|
69
|
-
tabInfo: ITabInfo;
|
|
70
|
-
constructor(tab: ITabInfo);
|
|
71
|
-
}
|
|
72
28
|
|
|
73
|
-
export { CollabStageAction, type CollabStageActionOptions,
|
|
29
|
+
export { CollabStageAction, type CollabStageActionOptions, type ICollabStageAction };
|
|
@@ -1,73 +1,29 @@
|
|
|
1
|
-
import { ITabInfo } from '../../
|
|
2
|
-
import { SubmitAction, ISubmitAction, SubmitActionOptions } from '../../core.js';
|
|
3
|
-
import { MSTeamsData } from './ms-teams-data.js';
|
|
1
|
+
import { SubmitAction, ISubmitAction, ISubmitActionData, ITabInfo, SubmitActionOptions, IInvokeSubmitActionData } from '../../core.js';
|
|
4
2
|
|
|
5
3
|
type CollabStageActionOptions = SubmitActionOptions & {
|
|
6
|
-
data:
|
|
4
|
+
data: ISubmitActionData;
|
|
7
5
|
};
|
|
8
6
|
/**
|
|
9
7
|
* Adaptive Card action response type for the {@link CollabStageAction} function.
|
|
10
8
|
*/
|
|
11
9
|
interface ICollabStageAction extends ISubmitAction {
|
|
12
10
|
/**
|
|
13
|
-
* Initial data that input fields will be combined with. These are essentially
|
|
11
|
+
* Initial data that input fields will be combined with. These are essentially 'hidden' properties.
|
|
14
12
|
*/
|
|
15
|
-
data:
|
|
13
|
+
data: ISubmitActionData;
|
|
16
14
|
}
|
|
17
15
|
/**
|
|
18
16
|
* Adaptive Card action that opens a collab stage popout window.
|
|
19
17
|
*/
|
|
20
18
|
declare class CollabStageAction extends SubmitAction implements ICollabStageAction {
|
|
21
19
|
/**
|
|
22
|
-
* Initial data that input fields will be combined with. These are essentially
|
|
20
|
+
* Initial data that input fields will be combined with. These are essentially 'hidden' properties.
|
|
23
21
|
*/
|
|
24
|
-
data:
|
|
22
|
+
data: ISubmitActionData;
|
|
25
23
|
constructor(tab?: ITabInfo, options?: SubmitActionOptions);
|
|
26
24
|
static from(options: CollabStageActionOptions): CollabStageAction;
|
|
27
|
-
withData(value:
|
|
25
|
+
withData(value: IInvokeSubmitActionData): this;
|
|
28
26
|
withValue(value: ITabInfo): this;
|
|
29
27
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Contains the Adaptive Card action data in {@link CollabStageAction}.
|
|
32
|
-
*/
|
|
33
|
-
interface ICollabStageData {
|
|
34
|
-
type: 'invoke';
|
|
35
|
-
/**
|
|
36
|
-
* Set the value to send with the invoke
|
|
37
|
-
*/
|
|
38
|
-
value?: ICollabStageValueData;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Contains the Adaptive Card action data in {@link CollabStageAction}.
|
|
42
|
-
*/
|
|
43
|
-
declare class CollabStageData implements ICollabStageData {
|
|
44
|
-
type: 'invoke';
|
|
45
|
-
/**
|
|
46
|
-
* Set the value to send with the invoke
|
|
47
|
-
*/
|
|
48
|
-
value?: ICollabStageValueData;
|
|
49
|
-
constructor(value?: ICollabStageValueData);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Contains the Adaptive Card action value data in {@link CollabStageActionData}.
|
|
53
|
-
*/
|
|
54
|
-
interface ICollabStageValueData {
|
|
55
|
-
type: 'tab/tabInfoAction';
|
|
56
|
-
/**
|
|
57
|
-
* Information about the iFrame content, rendered in the collab stage popout window.
|
|
58
|
-
*/
|
|
59
|
-
tabInfo: ITabInfo;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Contains the Adaptive Card action value data in {@link CollabStageActionData}.
|
|
63
|
-
*/
|
|
64
|
-
declare class CollabStageValueData implements ICollabStageValueData {
|
|
65
|
-
type: 'tab/tabInfoAction';
|
|
66
|
-
/**
|
|
67
|
-
* Information about the iFrame content, rendered in the collab stage popout window.
|
|
68
|
-
*/
|
|
69
|
-
tabInfo: ITabInfo;
|
|
70
|
-
constructor(tab: ITabInfo);
|
|
71
|
-
}
|
|
72
28
|
|
|
73
|
-
export { CollabStageAction, type CollabStageActionOptions,
|
|
29
|
+
export { CollabStageAction, type CollabStageActionOptions, type ICollabStageAction };
|
|
@@ -4,59 +4,36 @@ var core = require('../../core');
|
|
|
4
4
|
|
|
5
5
|
class CollabStageAction extends core.SubmitAction {
|
|
6
6
|
/**
|
|
7
|
-
* Initial data that input fields will be combined with. These are essentially
|
|
7
|
+
* Initial data that input fields will be combined with. These are essentially 'hidden' properties.
|
|
8
8
|
*/
|
|
9
9
|
data;
|
|
10
10
|
constructor(tab, options = {}) {
|
|
11
11
|
super(options);
|
|
12
12
|
Object.assign(this, options);
|
|
13
|
-
this.data = {
|
|
14
|
-
msteams:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
tabInfo: tab
|
|
19
|
-
} : void 0
|
|
20
|
-
}
|
|
21
|
-
};
|
|
13
|
+
this.data = new core.SubmitActionData({
|
|
14
|
+
msteams: new core.InvokeSubmitActionData(
|
|
15
|
+
tab ? new core.CollabStageInvokeDataValue({ tabInfo: tab }) : void 0
|
|
16
|
+
)
|
|
17
|
+
});
|
|
22
18
|
}
|
|
23
19
|
static from(options) {
|
|
24
|
-
|
|
20
|
+
const msteams = options.data.msteams;
|
|
21
|
+
const value = msteams?.value;
|
|
22
|
+
return new CollabStageAction(value?.tabInfo, options);
|
|
25
23
|
}
|
|
26
24
|
withData(value) {
|
|
27
|
-
super.withData({ msteams: value });
|
|
25
|
+
super.withData(new core.SubmitActionData({ msteams: value }));
|
|
28
26
|
return this;
|
|
29
27
|
}
|
|
30
28
|
withValue(value) {
|
|
31
|
-
this.data.msteams
|
|
29
|
+
const msteams = this.data.msteams;
|
|
30
|
+
if (msteams) {
|
|
31
|
+
msteams.value = new core.CollabStageInvokeDataValue({ tabInfo: value });
|
|
32
|
+
}
|
|
32
33
|
return this;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
|
-
class CollabStageData {
|
|
36
|
-
type;
|
|
37
|
-
/**
|
|
38
|
-
* Set the value to send with the invoke
|
|
39
|
-
*/
|
|
40
|
-
value;
|
|
41
|
-
constructor(value) {
|
|
42
|
-
this.type = "invoke";
|
|
43
|
-
this.value = value;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
class CollabStageValueData {
|
|
47
|
-
type;
|
|
48
|
-
/**
|
|
49
|
-
* Information about the iFrame content, rendered in the collab stage popout window.
|
|
50
|
-
*/
|
|
51
|
-
tabInfo;
|
|
52
|
-
constructor(tab) {
|
|
53
|
-
this.type = "tab/tabInfoAction";
|
|
54
|
-
this.tabInfo = tab;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
36
|
|
|
58
37
|
exports.CollabStageAction = CollabStageAction;
|
|
59
|
-
exports.CollabStageData = CollabStageData;
|
|
60
|
-
exports.CollabStageValueData = CollabStageValueData;
|
|
61
38
|
//# sourceMappingURL=collab-stage.js.map
|
|
62
39
|
//# sourceMappingURL=collab-stage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/submit/collab-stage.ts"],"names":["SubmitAction"],"mappings":";;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/actions/submit/collab-stage.ts"],"names":["SubmitAction","SubmitActionData","InvokeSubmitActionData","CollabStageInvokeDataValue"],"mappings":";;;;AA8BO,MAAM,0BAA0BA,iBAAA,CAA2C;AAAA;AAAA;AAAA;AAAA,EAIhF,IAAA;AAAA,EAEA,WAAA,CAAY,GAAA,EAAgB,OAAA,GAA+B,EAAC,EAAG;AAC7D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,MAAA,CAAO,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,IAAA,GAAO,IAAIC,qBAAA,CAAiB;AAAA,MAC/B,SAAS,IAAIC,2BAAA;AAAA,QACX,MACI,IAAIC,+BAAA,CAA2B,EAAE,OAAA,EAAS,GAAA,EAAK,CAAA,GAC/C;AAAA;AACN,KACD,CAAA;AAAA,EACH;AAAA,EAEA,OAAO,KAAK,OAAA,EAAmC;AAC7C,IAAA,MAAM,OAAA,GAAU,QAAQ,IAAA,CAAK,OAAA;AAC7B,IAAA,MAAM,QAAQ,OAAA,EAAS,KAAA;AACvB,IAAA,OAAO,IAAI,iBAAA,CAAkB,KAAA,EAAO,OAAA,EAAS,OAAO,CAAA;AAAA,EACtD;AAAA,EAEA,SAAS,KAAA,EAAgC;AACvC,IAAA,KAAA,CAAM,SAAS,IAAIF,qBAAA,CAAiB,EAAE,OAAA,EAAS,KAAA,EAAO,CAAC,CAAA;AACvD,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAiB;AACzB,IAAA,MAAM,OAAA,GAAU,KAAK,IAAA,CAAK,OAAA;AAC1B,IAAA,IAAI,OAAA,EAAS;AACX,MAAA,OAAA,CAAQ,QAAQ,IAAIE,+BAAA,CAA2B,EAAE,OAAA,EAAS,OAAO,CAAA;AAAA,IACnE;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF","file":"collab-stage.js","sourcesContent":["import {\n CollabStageInvokeDataValue,\n ICollabStageInvokeDataValue,\n IInvokeSubmitActionData,\n InvokeSubmitActionData,\n ISubmitAction,\n ISubmitActionData,\n ITabInfo,\n SubmitAction,\n SubmitActionData,\n SubmitActionOptions,\n} from '../../core';\n\nexport type CollabStageActionOptions = SubmitActionOptions & {\n data: ISubmitActionData;\n};\n\n/**\n * Adaptive Card action response type for the {@link CollabStageAction} function.\n */\nexport interface ICollabStageAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially 'hidden' properties.\n */\n data: ISubmitActionData;\n}\n\n/**\n * Adaptive Card action that opens a collab stage popout window.\n */\nexport class CollabStageAction extends SubmitAction implements ICollabStageAction {\n /**\n * Initial data that input fields will be combined with. These are essentially 'hidden' properties.\n */\n data: ISubmitActionData;\n\n constructor(tab?: ITabInfo, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = new SubmitActionData({\n msteams: new InvokeSubmitActionData(\n tab\n ? new CollabStageInvokeDataValue({ tabInfo: tab })\n : undefined,\n ),\n });\n }\n\n static from(options: CollabStageActionOptions) {\n const msteams = options.data.msteams as IInvokeSubmitActionData | undefined;\n const value = msteams?.value as ICollabStageInvokeDataValue | undefined;\n return new CollabStageAction(value?.tabInfo, options);\n }\n\n withData(value: IInvokeSubmitActionData) {\n super.withData(new SubmitActionData({ msteams: value }));\n return this;\n }\n\n withValue(value: ITabInfo) {\n const msteams = this.data.msteams as IInvokeSubmitActionData | undefined;\n if (msteams) {\n msteams.value = new CollabStageInvokeDataValue({ tabInfo: value });\n }\n return this;\n }\n}\n"]}
|
|
@@ -1,58 +1,37 @@
|
|
|
1
|
-
import { SubmitAction } from '../../core';
|
|
1
|
+
import { SubmitAction, SubmitActionData, InvokeSubmitActionData, CollabStageInvokeDataValue } from '../../core';
|
|
2
2
|
|
|
3
3
|
class CollabStageAction extends SubmitAction {
|
|
4
4
|
/**
|
|
5
|
-
* Initial data that input fields will be combined with. These are essentially
|
|
5
|
+
* Initial data that input fields will be combined with. These are essentially 'hidden' properties.
|
|
6
6
|
*/
|
|
7
7
|
data;
|
|
8
8
|
constructor(tab, options = {}) {
|
|
9
9
|
super(options);
|
|
10
10
|
Object.assign(this, options);
|
|
11
|
-
this.data = {
|
|
12
|
-
msteams:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
tabInfo: tab
|
|
17
|
-
} : void 0
|
|
18
|
-
}
|
|
19
|
-
};
|
|
11
|
+
this.data = new SubmitActionData({
|
|
12
|
+
msteams: new InvokeSubmitActionData(
|
|
13
|
+
tab ? new CollabStageInvokeDataValue({ tabInfo: tab }) : void 0
|
|
14
|
+
)
|
|
15
|
+
});
|
|
20
16
|
}
|
|
21
17
|
static from(options) {
|
|
22
|
-
|
|
18
|
+
const msteams = options.data.msteams;
|
|
19
|
+
const value = msteams?.value;
|
|
20
|
+
return new CollabStageAction(value?.tabInfo, options);
|
|
23
21
|
}
|
|
24
22
|
withData(value) {
|
|
25
|
-
super.withData({ msteams: value });
|
|
23
|
+
super.withData(new SubmitActionData({ msteams: value }));
|
|
26
24
|
return this;
|
|
27
25
|
}
|
|
28
26
|
withValue(value) {
|
|
29
|
-
this.data.msteams
|
|
27
|
+
const msteams = this.data.msteams;
|
|
28
|
+
if (msteams) {
|
|
29
|
+
msteams.value = new CollabStageInvokeDataValue({ tabInfo: value });
|
|
30
|
+
}
|
|
30
31
|
return this;
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
class CollabStageData {
|
|
34
|
-
type;
|
|
35
|
-
/**
|
|
36
|
-
* Set the value to send with the invoke
|
|
37
|
-
*/
|
|
38
|
-
value;
|
|
39
|
-
constructor(value) {
|
|
40
|
-
this.type = "invoke";
|
|
41
|
-
this.value = value;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
class CollabStageValueData {
|
|
45
|
-
type;
|
|
46
|
-
/**
|
|
47
|
-
* Information about the iFrame content, rendered in the collab stage popout window.
|
|
48
|
-
*/
|
|
49
|
-
tabInfo;
|
|
50
|
-
constructor(tab) {
|
|
51
|
-
this.type = "tab/tabInfoAction";
|
|
52
|
-
this.tabInfo = tab;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
34
|
|
|
56
|
-
export { CollabStageAction
|
|
35
|
+
export { CollabStageAction };
|
|
57
36
|
//# sourceMappingURL=collab-stage.mjs.map
|
|
58
37
|
//# sourceMappingURL=collab-stage.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/submit/collab-stage.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"sources":["../../../src/actions/submit/collab-stage.ts"],"names":[],"mappings":";;AA8BO,MAAM,0BAA0B,YAAA,CAA2C;AAAA;AAAA;AAAA;AAAA,EAIhF,IAAA;AAAA,EAEA,WAAA,CAAY,GAAA,EAAgB,OAAA,GAA+B,EAAC,EAAG;AAC7D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,MAAA,CAAO,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,IAAA,GAAO,IAAI,gBAAA,CAAiB;AAAA,MAC/B,SAAS,IAAI,sBAAA;AAAA,QACX,MACI,IAAI,0BAAA,CAA2B,EAAE,OAAA,EAAS,GAAA,EAAK,CAAA,GAC/C;AAAA;AACN,KACD,CAAA;AAAA,EACH;AAAA,EAEA,OAAO,KAAK,OAAA,EAAmC;AAC7C,IAAA,MAAM,OAAA,GAAU,QAAQ,IAAA,CAAK,OAAA;AAC7B,IAAA,MAAM,QAAQ,OAAA,EAAS,KAAA;AACvB,IAAA,OAAO,IAAI,iBAAA,CAAkB,KAAA,EAAO,OAAA,EAAS,OAAO,CAAA;AAAA,EACtD;AAAA,EAEA,SAAS,KAAA,EAAgC;AACvC,IAAA,KAAA,CAAM,SAAS,IAAI,gBAAA,CAAiB,EAAE,OAAA,EAAS,KAAA,EAAO,CAAC,CAAA;AACvD,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAiB;AACzB,IAAA,MAAM,OAAA,GAAU,KAAK,IAAA,CAAK,OAAA;AAC1B,IAAA,IAAI,OAAA,EAAS;AACX,MAAA,OAAA,CAAQ,QAAQ,IAAI,0BAAA,CAA2B,EAAE,OAAA,EAAS,OAAO,CAAA;AAAA,IACnE;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF","file":"collab-stage.mjs","sourcesContent":["import {\n CollabStageInvokeDataValue,\n ICollabStageInvokeDataValue,\n IInvokeSubmitActionData,\n InvokeSubmitActionData,\n ISubmitAction,\n ISubmitActionData,\n ITabInfo,\n SubmitAction,\n SubmitActionData,\n SubmitActionOptions,\n} from '../../core';\n\nexport type CollabStageActionOptions = SubmitActionOptions & {\n data: ISubmitActionData;\n};\n\n/**\n * Adaptive Card action response type for the {@link CollabStageAction} function.\n */\nexport interface ICollabStageAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially 'hidden' properties.\n */\n data: ISubmitActionData;\n}\n\n/**\n * Adaptive Card action that opens a collab stage popout window.\n */\nexport class CollabStageAction extends SubmitAction implements ICollabStageAction {\n /**\n * Initial data that input fields will be combined with. These are essentially 'hidden' properties.\n */\n data: ISubmitActionData;\n\n constructor(tab?: ITabInfo, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = new SubmitActionData({\n msteams: new InvokeSubmitActionData(\n tab\n ? new CollabStageInvokeDataValue({ tabInfo: tab })\n : undefined,\n ),\n });\n }\n\n static from(options: CollabStageActionOptions) {\n const msteams = options.data.msteams as IInvokeSubmitActionData | undefined;\n const value = msteams?.value as ICollabStageInvokeDataValue | undefined;\n return new CollabStageAction(value?.tabInfo, options);\n }\n\n withData(value: IInvokeSubmitActionData) {\n super.withData(new SubmitActionData({ msteams: value }));\n return this;\n }\n\n withValue(value: ITabInfo) {\n const msteams = this.data.msteams as IInvokeSubmitActionData | undefined;\n if (msteams) {\n msteams.value = new CollabStageInvokeDataValue({ tabInfo: value });\n }\n return this;\n }\n}\n"]}
|
|
@@ -4,12 +4,18 @@ import { MSTeamsData } from './ms-teams-data.mjs';
|
|
|
4
4
|
type IMBackActionOptions = SubmitActionOptions & {
|
|
5
5
|
data: MSTeamsData<IIMBackData>;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
9
|
+
*/
|
|
7
10
|
interface IIMBackAction extends ISubmitAction {
|
|
8
11
|
/**
|
|
9
12
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
10
13
|
*/
|
|
11
14
|
data: MSTeamsData<IIMBackData>;
|
|
12
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
18
|
+
*/
|
|
13
19
|
declare class IMBackAction extends SubmitAction implements IIMBackAction {
|
|
14
20
|
/**
|
|
15
21
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
@@ -20,6 +26,9 @@ declare class IMBackAction extends SubmitAction implements IIMBackAction {
|
|
|
20
26
|
withData(value: IIMBackData): this;
|
|
21
27
|
withValue(value: string): this;
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
31
|
+
*/
|
|
23
32
|
interface IIMBackData {
|
|
24
33
|
type: 'imBack';
|
|
25
34
|
/**
|
|
@@ -27,6 +36,9 @@ interface IIMBackData {
|
|
|
27
36
|
*/
|
|
28
37
|
value: string;
|
|
29
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
41
|
+
*/
|
|
30
42
|
declare class IMBackData implements IIMBackData {
|
|
31
43
|
type: 'imBack';
|
|
32
44
|
/**
|
|
@@ -4,12 +4,18 @@ import { MSTeamsData } from './ms-teams-data.js';
|
|
|
4
4
|
type IMBackActionOptions = SubmitActionOptions & {
|
|
5
5
|
data: MSTeamsData<IIMBackData>;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
9
|
+
*/
|
|
7
10
|
interface IIMBackAction extends ISubmitAction {
|
|
8
11
|
/**
|
|
9
12
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
10
13
|
*/
|
|
11
14
|
data: MSTeamsData<IIMBackData>;
|
|
12
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
18
|
+
*/
|
|
13
19
|
declare class IMBackAction extends SubmitAction implements IIMBackAction {
|
|
14
20
|
/**
|
|
15
21
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
@@ -20,6 +26,9 @@ declare class IMBackAction extends SubmitAction implements IIMBackAction {
|
|
|
20
26
|
withData(value: IIMBackData): this;
|
|
21
27
|
withValue(value: string): this;
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
31
|
+
*/
|
|
23
32
|
interface IIMBackData {
|
|
24
33
|
type: 'imBack';
|
|
25
34
|
/**
|
|
@@ -27,6 +36,9 @@ interface IIMBackData {
|
|
|
27
36
|
*/
|
|
28
37
|
value: string;
|
|
29
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
41
|
+
*/
|
|
30
42
|
declare class IMBackData implements IIMBackData {
|
|
31
43
|
type: 'imBack';
|
|
32
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/submit/im-back.ts"],"names":["SubmitAction"],"mappings":";;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/actions/submit/im-back.ts"],"names":["SubmitAction"],"mappings":";;;;AAmBO,MAAM,qBAAqBA,iBAAA,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,EAA8B;AACxC,IAAA,OAAO,IAAI,YAAA,CAAa,OAAA,CAAQ,IAAA,CAAK,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,SAAS,KAAA,EAAoB;AAC3B,IAAA,KAAA,CAAM,QAAA,CAAS,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AACjC,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAe;AACvB,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":"im-back.js","sourcesContent":["import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core';\n\nimport { MSTeamsData } from './ms-teams-data';\n\nexport type IMBackActionOptions = SubmitActionOptions & { data: MSTeamsData<IIMBackData> };\n\n/**\n * @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IIMBackAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IIMBackData>;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class IMBackAction extends SubmitAction implements IIMBackAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IIMBackData>;\n\n constructor(value: string, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = { msteams: new IMBackData(value) };\n }\n\n static from(options: IMBackActionOptions) {\n return new IMBackAction(options.data.msteams.value, options);\n }\n\n withData(value: IIMBackData) {\n super.withData({ msteams: value });\n return this;\n }\n\n withValue(value: string) {\n this.data.msteams.value = value;\n return this;\n }\n}\n\n/**\n * @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IIMBackData {\n type: 'imBack';\n\n /**\n * String that needs to be echoed back in the chat.\n */\n value: string;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class IMBackData implements IIMBackData {\n type: 'imBack';\n\n /**\n * String that needs to be echoed back in the chat.\n */\n value: string;\n\n constructor(value: string) {\n this.type = 'imBack';\n this.value = value;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/submit/im-back.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"sources":["../../../src/actions/submit/im-back.ts"],"names":[],"mappings":";;AAmBO,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,EAA8B;AACxC,IAAA,OAAO,IAAI,YAAA,CAAa,OAAA,CAAQ,IAAA,CAAK,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,SAAS,KAAA,EAAoB;AAC3B,IAAA,KAAA,CAAM,QAAA,CAAS,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AACjC,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAe;AACvB,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":"im-back.mjs","sourcesContent":["import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core';\n\nimport { MSTeamsData } from './ms-teams-data';\n\nexport type IMBackActionOptions = SubmitActionOptions & { data: MSTeamsData<IIMBackData> };\n\n/**\n * @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IIMBackAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IIMBackData>;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class IMBackAction extends SubmitAction implements IIMBackAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IIMBackData>;\n\n constructor(value: string, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = { msteams: new IMBackData(value) };\n }\n\n static from(options: IMBackActionOptions) {\n return new IMBackAction(options.data.msteams.value, options);\n }\n\n withData(value: IIMBackData) {\n super.withData({ msteams: value });\n return this;\n }\n\n withValue(value: string) {\n this.data.msteams.value = value;\n return this;\n }\n}\n\n/**\n * @deprecated This type is deprecated. Please use {@link IImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IIMBackData {\n type: 'imBack';\n\n /**\n * String that needs to be echoed back in the chat.\n */\n value: string;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link ImBackSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class IMBackData implements IIMBackData {\n type: 'imBack';\n\n /**\n * String that needs to be echoed back in the chat.\n */\n value: string;\n\n constructor(value: string) {\n this.type = 'imBack';\n this.value = value;\n }\n}\n"]}
|
|
@@ -3,7 +3,6 @@ export { IInvokeAction, IInvokeData, InvokeAction, InvokeActionOptions, InvokeDa
|
|
|
3
3
|
export { IMessageBackAction, IMessageBackData, MessageBackAction, MessageBackActionOptions, MessageBackData } from './message-back.mjs';
|
|
4
4
|
export { ISignInAction, ISignInData, SignInAction, SignInActionOptions, SignInData } from './sign-in.mjs';
|
|
5
5
|
export { ITaskFetchAction, ITaskFetchData, TaskFetchAction, TaskFetchActionOptions, TaskFetchData, TaskFetchDataValues } from './task-fetch.mjs';
|
|
6
|
-
export { CollabStageAction, CollabStageActionOptions,
|
|
6
|
+
export { CollabStageAction, CollabStageActionOptions, ICollabStageAction } from './collab-stage.mjs';
|
|
7
7
|
import '../../core.mjs';
|
|
8
|
-
import '../../common/tab-info.mjs';
|
|
9
8
|
import './ms-teams-data.mjs';
|
|
@@ -3,7 +3,6 @@ export { IInvokeAction, IInvokeData, InvokeAction, InvokeActionOptions, InvokeDa
|
|
|
3
3
|
export { IMessageBackAction, IMessageBackData, MessageBackAction, MessageBackActionOptions, MessageBackData } from './message-back.js';
|
|
4
4
|
export { ISignInAction, ISignInData, SignInAction, SignInActionOptions, SignInData } from './sign-in.js';
|
|
5
5
|
export { ITaskFetchAction, ITaskFetchData, TaskFetchAction, TaskFetchActionOptions, TaskFetchData, TaskFetchDataValues } from './task-fetch.js';
|
|
6
|
-
export { CollabStageAction, CollabStageActionOptions,
|
|
6
|
+
export { CollabStageAction, CollabStageActionOptions, ICollabStageAction } from './collab-stage.js';
|
|
7
7
|
import '../../core.js';
|
|
8
|
-
import '../../common/tab-info.js';
|
|
9
8
|
import './ms-teams-data.js';
|
|
@@ -4,12 +4,18 @@ import { MSTeamsData } from './ms-teams-data.mjs';
|
|
|
4
4
|
type InvokeActionOptions = SubmitActionOptions & {
|
|
5
5
|
data: MSTeamsData<IInvokeData>;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
9
|
+
*/
|
|
7
10
|
interface IInvokeAction extends ISubmitAction {
|
|
8
11
|
/**
|
|
9
12
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
10
13
|
*/
|
|
11
14
|
data: MSTeamsData<IInvokeData>;
|
|
12
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
18
|
+
*/
|
|
13
19
|
declare class InvokeAction extends SubmitAction implements IInvokeAction {
|
|
14
20
|
/**
|
|
15
21
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
@@ -20,6 +26,9 @@ declare class InvokeAction extends SubmitAction implements IInvokeAction {
|
|
|
20
26
|
withData(value: IInvokeData): this;
|
|
21
27
|
withValue(value: any): this;
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
31
|
+
*/
|
|
23
32
|
interface IInvokeData {
|
|
24
33
|
type: 'invoke';
|
|
25
34
|
/**
|
|
@@ -27,6 +36,9 @@ interface IInvokeData {
|
|
|
27
36
|
*/
|
|
28
37
|
value?: any;
|
|
29
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
41
|
+
*/
|
|
30
42
|
declare class InvokeData implements IInvokeData {
|
|
31
43
|
type: 'invoke';
|
|
32
44
|
/**
|
|
@@ -4,12 +4,18 @@ import { MSTeamsData } from './ms-teams-data.js';
|
|
|
4
4
|
type InvokeActionOptions = SubmitActionOptions & {
|
|
5
5
|
data: MSTeamsData<IInvokeData>;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
9
|
+
*/
|
|
7
10
|
interface IInvokeAction extends ISubmitAction {
|
|
8
11
|
/**
|
|
9
12
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
10
13
|
*/
|
|
11
14
|
data: MSTeamsData<IInvokeData>;
|
|
12
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
18
|
+
*/
|
|
13
19
|
declare class InvokeAction extends SubmitAction implements IInvokeAction {
|
|
14
20
|
/**
|
|
15
21
|
* Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
|
|
@@ -20,6 +26,9 @@ declare class InvokeAction extends SubmitAction implements IInvokeAction {
|
|
|
20
26
|
withData(value: IInvokeData): this;
|
|
21
27
|
withValue(value: any): this;
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
31
|
+
*/
|
|
23
32
|
interface IInvokeData {
|
|
24
33
|
type: 'invoke';
|
|
25
34
|
/**
|
|
@@ -27,6 +36,9 @@ interface IInvokeData {
|
|
|
27
36
|
*/
|
|
28
37
|
value?: any;
|
|
29
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.
|
|
41
|
+
*/
|
|
30
42
|
declare class InvokeData implements IInvokeData {
|
|
31
43
|
type: 'invoke';
|
|
32
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/submit/invoke.ts"],"names":["SubmitAction"],"mappings":";;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/actions/submit/invoke.ts"],"names":["SubmitAction"],"mappings":";;;;AAmBO,MAAM,qBAAqBA,iBAAA,CAAsC;AAAA;AAAA;AAAA;AAAA,EAItE,IAAA;AAAA,EAEA,WAAA,CAAY,KAAA,EAAa,OAAA,GAA+B,EAAC,EAAG;AAC1D,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,EAA8B;AACxC,IAAA,OAAO,IAAI,YAAA,CAAa,OAAA,CAAQ,IAAA,CAAK,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,SAAS,KAAA,EAAoB;AAC3B,IAAA,KAAA,CAAM,QAAA,CAAS,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AACjC,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAY;AACpB,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,EAAa;AACvB,IAAA,IAAA,CAAK,IAAA,GAAO,QAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF","file":"invoke.js","sourcesContent":["import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core';\n\nimport { MSTeamsData } from './ms-teams-data';\n\nexport type InvokeActionOptions = SubmitActionOptions & { data: MSTeamsData<IInvokeData> };\n\n/**\n * @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IInvokeAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IInvokeData>;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class InvokeAction extends SubmitAction implements IInvokeAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IInvokeData>;\n\n constructor(value?: any, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = { msteams: new InvokeData(value) };\n }\n\n static from(options: InvokeActionOptions) {\n return new InvokeAction(options.data.msteams.value, options);\n }\n\n withData(value: IInvokeData) {\n super.withData({ msteams: value });\n return this;\n }\n\n withValue(value: any) {\n this.data.msteams.value = value;\n return this;\n }\n}\n\n/**\n * @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IInvokeData {\n type: 'invoke';\n\n /**\n * Set the value to send with the invoke\n */\n value?: any;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class InvokeData implements IInvokeData {\n type: 'invoke';\n\n /**\n * Set the value to send with the invoke\n */\n value?: any;\n\n constructor(value?: any) {\n this.type = 'invoke';\n this.value = value;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/actions/submit/invoke.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"sources":["../../../src/actions/submit/invoke.ts"],"names":[],"mappings":";;AAmBO,MAAM,qBAAqB,YAAA,CAAsC;AAAA;AAAA;AAAA;AAAA,EAItE,IAAA;AAAA,EAEA,WAAA,CAAY,KAAA,EAAa,OAAA,GAA+B,EAAC,EAAG;AAC1D,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,EAA8B;AACxC,IAAA,OAAO,IAAI,YAAA,CAAa,OAAA,CAAQ,IAAA,CAAK,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA,EAC7D;AAAA,EAEA,SAAS,KAAA,EAAoB;AAC3B,IAAA,KAAA,CAAM,QAAA,CAAS,EAAE,OAAA,EAAS,KAAA,EAAO,CAAA;AACjC,IAAA,OAAO,IAAA;AAAA,EACT;AAAA,EAEA,UAAU,KAAA,EAAY;AACpB,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,EAAa;AACvB,IAAA,IAAA,CAAK,IAAA,GAAO,QAAA;AACZ,IAAA,IAAA,CAAK,KAAA,GAAQ,KAAA;AAAA,EACf;AACF","file":"invoke.mjs","sourcesContent":["import { ISubmitAction, SubmitAction, SubmitActionOptions } from '../../core';\n\nimport { MSTeamsData } from './ms-teams-data';\n\nexport type InvokeActionOptions = SubmitActionOptions & { data: MSTeamsData<IInvokeData> };\n\n/**\n * @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IInvokeAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IInvokeData>;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class InvokeAction extends SubmitAction implements IInvokeAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IInvokeData>;\n\n constructor(value?: any, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = { msteams: new InvokeData(value) };\n }\n\n static from(options: InvokeActionOptions) {\n return new InvokeAction(options.data.msteams.value, options);\n }\n\n withData(value: IInvokeData) {\n super.withData({ msteams: value });\n return this;\n }\n\n withValue(value: any) {\n this.data.msteams.value = value;\n return this;\n }\n}\n\n/**\n * @deprecated This type is deprecated. Please use {@link IInvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport interface IInvokeData {\n type: 'invoke';\n\n /**\n * Set the value to send with the invoke\n */\n value?: any;\n}\n\n/**\n * @deprecated This class is deprecated. Please use {@link InvokeSubmitActionData} instead. This will be removed in a future version of the SDK.\n */\nexport class InvokeData implements IInvokeData {\n type: 'invoke';\n\n /**\n * Set the value to send with the invoke\n */\n value?: any;\n\n constructor(value?: any) {\n this.type = 'invoke';\n this.value = value;\n }\n}\n"]}
|