@microsoft/teams.cards 0.2.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.
Files changed (422) hide show
  1. package/README.md +41 -0
  2. package/dist/actions/base.d.mts +89 -0
  3. package/dist/actions/base.d.ts +89 -0
  4. package/dist/actions/base.js +90 -0
  5. package/dist/actions/base.js.map +1 -0
  6. package/dist/actions/base.mjs +88 -0
  7. package/dist/actions/base.mjs.map +1 -0
  8. package/dist/actions/execute.d.mts +47 -0
  9. package/dist/actions/execute.d.ts +47 -0
  10. package/dist/actions/execute.js +43 -0
  11. package/dist/actions/execute.js.map +1 -0
  12. package/dist/actions/execute.mjs +41 -0
  13. package/dist/actions/execute.mjs.map +1 -0
  14. package/dist/actions/index.d.mts +31 -0
  15. package/dist/actions/index.d.ts +31 -0
  16. package/dist/actions/index.js +42 -0
  17. package/dist/actions/index.js.map +1 -0
  18. package/dist/actions/index.mjs +7 -0
  19. package/dist/actions/index.mjs.map +1 -0
  20. package/dist/actions/open-url.d.mts +28 -0
  21. package/dist/actions/open-url.d.ts +28 -0
  22. package/dist/actions/open-url.js +28 -0
  23. package/dist/actions/open-url.js.map +1 -0
  24. package/dist/actions/open-url.mjs +26 -0
  25. package/dist/actions/open-url.mjs.map +1 -0
  26. package/dist/actions/show-card.d.mts +31 -0
  27. package/dist/actions/show-card.d.ts +31 -0
  28. package/dist/actions/show-card.js +28 -0
  29. package/dist/actions/show-card.js.map +1 -0
  30. package/dist/actions/show-card.mjs +26 -0
  31. package/dist/actions/show-card.mjs.map +1 -0
  32. package/dist/actions/submit/collab-stage.d.mts +74 -0
  33. package/dist/actions/submit/collab-stage.d.ts +74 -0
  34. package/dist/actions/submit/collab-stage.js +62 -0
  35. package/dist/actions/submit/collab-stage.js.map +1 -0
  36. package/dist/actions/submit/collab-stage.mjs +58 -0
  37. package/dist/actions/submit/collab-stage.mjs.map +1 -0
  38. package/dist/actions/submit/im-back.d.mts +40 -0
  39. package/dist/actions/submit/im-back.d.ts +40 -0
  40. package/dist/actions/submit/im-back.js +42 -0
  41. package/dist/actions/submit/im-back.js.map +1 -0
  42. package/dist/actions/submit/im-back.mjs +39 -0
  43. package/dist/actions/submit/im-back.mjs.map +1 -0
  44. package/dist/actions/submit/index.d.mts +10 -0
  45. package/dist/actions/submit/index.d.ts +10 -0
  46. package/dist/actions/submit/index.js +56 -0
  47. package/dist/actions/submit/index.js.map +1 -0
  48. package/dist/actions/submit/index.mjs +9 -0
  49. package/dist/actions/submit/index.mjs.map +1 -0
  50. package/dist/actions/submit/invoke.d.mts +40 -0
  51. package/dist/actions/submit/invoke.d.ts +40 -0
  52. package/dist/actions/submit/invoke.js +42 -0
  53. package/dist/actions/submit/invoke.js.map +1 -0
  54. package/dist/actions/submit/invoke.mjs +39 -0
  55. package/dist/actions/submit/invoke.mjs.map +1 -0
  56. package/dist/actions/submit/message-back.d.mts +60 -0
  57. package/dist/actions/submit/message-back.d.ts +60 -0
  58. package/dist/actions/submit/message-back.js +56 -0
  59. package/dist/actions/submit/message-back.js.map +1 -0
  60. package/dist/actions/submit/message-back.mjs +53 -0
  61. package/dist/actions/submit/message-back.mjs.map +1 -0
  62. package/dist/actions/submit/sign-in.d.mts +40 -0
  63. package/dist/actions/submit/sign-in.d.ts +40 -0
  64. package/dist/actions/submit/sign-in.js +42 -0
  65. package/dist/actions/submit/sign-in.js.map +1 -0
  66. package/dist/actions/submit/sign-in.mjs +39 -0
  67. package/dist/actions/submit/sign-in.mjs.map +1 -0
  68. package/dist/actions/submit/submit.d.mts +51 -0
  69. package/dist/actions/submit/submit.d.ts +51 -0
  70. package/dist/actions/submit/submit.js +38 -0
  71. package/dist/actions/submit/submit.js.map +1 -0
  72. package/dist/actions/submit/submit.mjs +36 -0
  73. package/dist/actions/submit/submit.mjs.map +1 -0
  74. package/dist/actions/submit/task-fetch.d.mts +40 -0
  75. package/dist/actions/submit/task-fetch.d.ts +40 -0
  76. package/dist/actions/submit/task-fetch.js +42 -0
  77. package/dist/actions/submit/task-fetch.js.map +1 -0
  78. package/dist/actions/submit/task-fetch.mjs +39 -0
  79. package/dist/actions/submit/task-fetch.mjs.map +1 -0
  80. package/dist/actions/toggle-visibility.d.mts +29 -0
  81. package/dist/actions/toggle-visibility.d.ts +29 -0
  82. package/dist/actions/toggle-visibility.js +29 -0
  83. package/dist/actions/toggle-visibility.js.map +1 -0
  84. package/dist/actions/toggle-visibility.mjs +27 -0
  85. package/dist/actions/toggle-visibility.mjs.map +1 -0
  86. package/dist/base.d.mts +31 -0
  87. package/dist/base.d.ts +31 -0
  88. package/dist/base.js +105 -0
  89. package/dist/base.js.map +1 -0
  90. package/dist/base.mjs +103 -0
  91. package/dist/base.mjs.map +1 -0
  92. package/dist/card.d.mts +31 -0
  93. package/dist/card.d.ts +31 -0
  94. package/dist/card.js +118 -0
  95. package/dist/card.js.map +1 -0
  96. package/dist/card.mjs +115 -0
  97. package/dist/card.mjs.map +1 -0
  98. package/dist/charts/color.d.mts +3 -0
  99. package/dist/charts/color.d.ts +3 -0
  100. package/dist/charts/color.js +4 -0
  101. package/dist/charts/color.js.map +1 -0
  102. package/dist/charts/color.mjs +3 -0
  103. package/dist/charts/color.mjs.map +1 -0
  104. package/dist/charts/donut.d.mts +31 -0
  105. package/dist/charts/donut.d.ts +31 -0
  106. package/dist/charts/donut.js +79 -0
  107. package/dist/charts/donut.js.map +1 -0
  108. package/dist/charts/donut.mjs +76 -0
  109. package/dist/charts/donut.mjs.map +1 -0
  110. package/dist/charts/index.d.mts +31 -0
  111. package/dist/charts/index.d.ts +31 -0
  112. package/dist/charts/index.js +28 -0
  113. package/dist/charts/index.js.map +1 -0
  114. package/dist/charts/index.mjs +5 -0
  115. package/dist/charts/index.mjs.map +1 -0
  116. package/dist/charts/line.d.mts +31 -0
  117. package/dist/charts/line.d.ts +31 -0
  118. package/dist/charts/line.js +97 -0
  119. package/dist/charts/line.js.map +1 -0
  120. package/dist/charts/line.mjs +93 -0
  121. package/dist/charts/line.mjs.map +1 -0
  122. package/dist/common/associated-inputs.d.mts +3 -0
  123. package/dist/common/associated-inputs.d.ts +3 -0
  124. package/dist/common/associated-inputs.js +4 -0
  125. package/dist/common/associated-inputs.js.map +1 -0
  126. package/dist/common/associated-inputs.mjs +3 -0
  127. package/dist/common/associated-inputs.mjs.map +1 -0
  128. package/dist/common/auth/auth-card-button.d.mts +50 -0
  129. package/dist/common/auth/auth-card-button.d.ts +50 -0
  130. package/dist/common/auth/auth-card-button.js +45 -0
  131. package/dist/common/auth/auth-card-button.js.map +1 -0
  132. package/dist/common/auth/auth-card-button.mjs +43 -0
  133. package/dist/common/auth/auth-card-button.mjs.map +1 -0
  134. package/dist/common/auth/auth.d.mts +52 -0
  135. package/dist/common/auth/auth.d.ts +52 -0
  136. package/dist/common/auth/auth.js +46 -0
  137. package/dist/common/auth/auth.js.map +1 -0
  138. package/dist/common/auth/auth.mjs +44 -0
  139. package/dist/common/auth/auth.mjs.map +1 -0
  140. package/dist/common/auth/index.d.mts +3 -0
  141. package/dist/common/auth/index.d.ts +3 -0
  142. package/dist/common/auth/index.js +28 -0
  143. package/dist/common/auth/index.js.map +1 -0
  144. package/dist/common/auth/index.mjs +5 -0
  145. package/dist/common/auth/index.mjs.map +1 -0
  146. package/dist/common/auth/token-exchange-resource.d.mts +37 -0
  147. package/dist/common/auth/token-exchange-resource.d.ts +37 -0
  148. package/dist/common/auth/token-exchange-resource.js +25 -0
  149. package/dist/common/auth/token-exchange-resource.js.map +1 -0
  150. package/dist/common/auth/token-exchange-resource.mjs +23 -0
  151. package/dist/common/auth/token-exchange-resource.mjs.map +1 -0
  152. package/dist/common/color.d.mts +3 -0
  153. package/dist/common/color.d.ts +3 -0
  154. package/dist/common/color.js +4 -0
  155. package/dist/common/color.js.map +1 -0
  156. package/dist/common/color.mjs +3 -0
  157. package/dist/common/color.mjs.map +1 -0
  158. package/dist/common/font.d.mts +5 -0
  159. package/dist/common/font.d.ts +5 -0
  160. package/dist/common/font.js +4 -0
  161. package/dist/common/font.js.map +1 -0
  162. package/dist/common/font.mjs +3 -0
  163. package/dist/common/font.mjs.map +1 -0
  164. package/dist/common/horizontal-alignment.d.mts +6 -0
  165. package/dist/common/horizontal-alignment.d.ts +6 -0
  166. package/dist/common/horizontal-alignment.js +4 -0
  167. package/dist/common/horizontal-alignment.js.map +1 -0
  168. package/dist/common/horizontal-alignment.mjs +3 -0
  169. package/dist/common/horizontal-alignment.mjs.map +1 -0
  170. package/dist/common/index.d.mts +15 -0
  171. package/dist/common/index.d.ts +15 -0
  172. package/dist/common/index.js +84 -0
  173. package/dist/common/index.js.map +1 -0
  174. package/dist/common/index.mjs +13 -0
  175. package/dist/common/index.mjs.map +1 -0
  176. package/dist/common/refresh.d.mts +23 -0
  177. package/dist/common/refresh.d.ts +23 -0
  178. package/dist/common/refresh.js +4 -0
  179. package/dist/common/refresh.js.map +1 -0
  180. package/dist/common/refresh.mjs +3 -0
  181. package/dist/common/refresh.mjs.map +1 -0
  182. package/dist/common/spacing.d.mts +6 -0
  183. package/dist/common/spacing.d.ts +6 -0
  184. package/dist/common/spacing.js +4 -0
  185. package/dist/common/spacing.js.map +1 -0
  186. package/dist/common/spacing.mjs +3 -0
  187. package/dist/common/spacing.mjs.map +1 -0
  188. package/dist/common/tab-info.d.mts +23 -0
  189. package/dist/common/tab-info.d.ts +23 -0
  190. package/dist/common/tab-info.js +4 -0
  191. package/dist/common/tab-info.js.map +1 -0
  192. package/dist/common/tab-info.mjs +3 -0
  193. package/dist/common/tab-info.mjs.map +1 -0
  194. package/dist/common/target-element.d.mts +16 -0
  195. package/dist/common/target-element.d.ts +16 -0
  196. package/dist/common/target-element.js +4 -0
  197. package/dist/common/target-element.js.map +1 -0
  198. package/dist/common/target-element.mjs +3 -0
  199. package/dist/common/target-element.mjs.map +1 -0
  200. package/dist/common/target-width.d.mts +9 -0
  201. package/dist/common/target-width.d.ts +9 -0
  202. package/dist/common/target-width.js +4 -0
  203. package/dist/common/target-width.js.map +1 -0
  204. package/dist/common/target-width.mjs +3 -0
  205. package/dist/common/target-width.mjs.map +1 -0
  206. package/dist/common/vertical-alignment.d.mts +6 -0
  207. package/dist/common/vertical-alignment.d.ts +6 -0
  208. package/dist/common/vertical-alignment.js +4 -0
  209. package/dist/common/vertical-alignment.js.map +1 -0
  210. package/dist/common/vertical-alignment.mjs +3 -0
  211. package/dist/common/vertical-alignment.mjs.map +1 -0
  212. package/dist/containers/action-set.d.mts +31 -0
  213. package/dist/containers/action-set.d.ts +31 -0
  214. package/dist/containers/action-set.js +28 -0
  215. package/dist/containers/action-set.js.map +1 -0
  216. package/dist/containers/action-set.mjs +26 -0
  217. package/dist/containers/action-set.mjs.map +1 -0
  218. package/dist/containers/base.d.mts +31 -0
  219. package/dist/containers/base.d.ts +31 -0
  220. package/dist/containers/base.js +68 -0
  221. package/dist/containers/base.js.map +1 -0
  222. package/dist/containers/base.mjs +66 -0
  223. package/dist/containers/base.mjs.map +1 -0
  224. package/dist/containers/carousel.d.mts +31 -0
  225. package/dist/containers/carousel.d.ts +31 -0
  226. package/dist/containers/carousel.js +158 -0
  227. package/dist/containers/carousel.js.map +1 -0
  228. package/dist/containers/carousel.mjs +155 -0
  229. package/dist/containers/carousel.mjs.map +1 -0
  230. package/dist/containers/column-set.d.mts +31 -0
  231. package/dist/containers/column-set.d.ts +31 -0
  232. package/dist/containers/column-set.js +44 -0
  233. package/dist/containers/column-set.js.map +1 -0
  234. package/dist/containers/column-set.mjs +42 -0
  235. package/dist/containers/column-set.mjs.map +1 -0
  236. package/dist/containers/column.d.mts +31 -0
  237. package/dist/containers/column.d.ts +31 -0
  238. package/dist/containers/column.js +60 -0
  239. package/dist/containers/column.js.map +1 -0
  240. package/dist/containers/column.mjs +58 -0
  241. package/dist/containers/column.mjs.map +1 -0
  242. package/dist/containers/container.d.mts +31 -0
  243. package/dist/containers/container.d.ts +31 -0
  244. package/dist/containers/container.js +52 -0
  245. package/dist/containers/container.js.map +1 -0
  246. package/dist/containers/container.mjs +50 -0
  247. package/dist/containers/container.mjs.map +1 -0
  248. package/dist/containers/fact-set.d.mts +31 -0
  249. package/dist/containers/fact-set.d.ts +31 -0
  250. package/dist/containers/fact-set.js +43 -0
  251. package/dist/containers/fact-set.js.map +1 -0
  252. package/dist/containers/fact-set.mjs +40 -0
  253. package/dist/containers/fact-set.mjs.map +1 -0
  254. package/dist/containers/image-set.d.mts +31 -0
  255. package/dist/containers/image-set.d.ts +31 -0
  256. package/dist/containers/image-set.js +46 -0
  257. package/dist/containers/image-set.js.map +1 -0
  258. package/dist/containers/image-set.mjs +44 -0
  259. package/dist/containers/image-set.mjs.map +1 -0
  260. package/dist/containers/index.d.mts +31 -0
  261. package/dist/containers/index.d.ts +31 -0
  262. package/dist/containers/index.js +56 -0
  263. package/dist/containers/index.js.map +1 -0
  264. package/dist/containers/index.mjs +9 -0
  265. package/dist/containers/index.mjs.map +1 -0
  266. package/dist/element.d.mts +31 -0
  267. package/dist/element.d.ts +31 -0
  268. package/dist/element.js +4 -0
  269. package/dist/element.js.map +1 -0
  270. package/dist/element.mjs +3 -0
  271. package/dist/element.mjs.map +1 -0
  272. package/dist/index.d.mts +31 -0
  273. package/dist/index.d.ts +31 -0
  274. package/dist/index.js +70 -0
  275. package/dist/index.js.map +1 -0
  276. package/dist/index.mjs +11 -0
  277. package/dist/index.mjs.map +1 -0
  278. package/dist/inputs/base.d.mts +31 -0
  279. package/dist/inputs/base.d.ts +31 -0
  280. package/dist/inputs/base.js +63 -0
  281. package/dist/inputs/base.js.map +1 -0
  282. package/dist/inputs/base.mjs +61 -0
  283. package/dist/inputs/base.mjs.map +1 -0
  284. package/dist/inputs/choice-set.d.mts +31 -0
  285. package/dist/inputs/choice-set.d.ts +31 -0
  286. package/dist/inputs/choice-set.js +121 -0
  287. package/dist/inputs/choice-set.js.map +1 -0
  288. package/dist/inputs/choice-set.mjs +117 -0
  289. package/dist/inputs/choice-set.mjs.map +1 -0
  290. package/dist/inputs/date.d.mts +31 -0
  291. package/dist/inputs/date.d.ts +31 -0
  292. package/dist/inputs/date.js +52 -0
  293. package/dist/inputs/date.js.map +1 -0
  294. package/dist/inputs/date.mjs +50 -0
  295. package/dist/inputs/date.mjs.map +1 -0
  296. package/dist/inputs/index.d.mts +31 -0
  297. package/dist/inputs/index.d.ts +31 -0
  298. package/dist/inputs/index.js +49 -0
  299. package/dist/inputs/index.js.map +1 -0
  300. package/dist/inputs/index.mjs +8 -0
  301. package/dist/inputs/index.mjs.map +1 -0
  302. package/dist/inputs/number.d.mts +31 -0
  303. package/dist/inputs/number.d.ts +31 -0
  304. package/dist/inputs/number.js +52 -0
  305. package/dist/inputs/number.js.map +1 -0
  306. package/dist/inputs/number.mjs +50 -0
  307. package/dist/inputs/number.mjs.map +1 -0
  308. package/dist/inputs/text.d.mts +31 -0
  309. package/dist/inputs/text.d.ts +31 -0
  310. package/dist/inputs/text.js +76 -0
  311. package/dist/inputs/text.js.map +1 -0
  312. package/dist/inputs/text.mjs +74 -0
  313. package/dist/inputs/text.mjs.map +1 -0
  314. package/dist/inputs/time.d.mts +31 -0
  315. package/dist/inputs/time.d.ts +31 -0
  316. package/dist/inputs/time.js +52 -0
  317. package/dist/inputs/time.js.map +1 -0
  318. package/dist/inputs/time.mjs +50 -0
  319. package/dist/inputs/time.mjs.map +1 -0
  320. package/dist/inputs/toggle.d.mts +31 -0
  321. package/dist/inputs/toggle.d.ts +31 -0
  322. package/dist/inputs/toggle.js +57 -0
  323. package/dist/inputs/toggle.js.map +1 -0
  324. package/dist/inputs/toggle.mjs +55 -0
  325. package/dist/inputs/toggle.mjs.map +1 -0
  326. package/dist/layouts/area-grid.d.mts +133 -0
  327. package/dist/layouts/area-grid.d.ts +133 -0
  328. package/dist/layouts/area-grid.js +113 -0
  329. package/dist/layouts/area-grid.js.map +1 -0
  330. package/dist/layouts/area-grid.mjs +110 -0
  331. package/dist/layouts/area-grid.mjs.map +1 -0
  332. package/dist/layouts/flow.d.mts +119 -0
  333. package/dist/layouts/flow.d.ts +119 -0
  334. package/dist/layouts/flow.js +96 -0
  335. package/dist/layouts/flow.js.map +1 -0
  336. package/dist/layouts/flow.mjs +94 -0
  337. package/dist/layouts/flow.mjs.map +1 -0
  338. package/dist/layouts/index.d.mts +14 -0
  339. package/dist/layouts/index.d.ts +14 -0
  340. package/dist/layouts/index.js +28 -0
  341. package/dist/layouts/index.js.map +1 -0
  342. package/dist/layouts/index.mjs +5 -0
  343. package/dist/layouts/index.mjs.map +1 -0
  344. package/dist/layouts/stack.d.mts +28 -0
  345. package/dist/layouts/stack.d.ts +28 -0
  346. package/dist/layouts/stack.js +24 -0
  347. package/dist/layouts/stack.js.map +1 -0
  348. package/dist/layouts/stack.mjs +22 -0
  349. package/dist/layouts/stack.mjs.map +1 -0
  350. package/dist/medias/background-image.d.mts +56 -0
  351. package/dist/medias/background-image.d.ts +56 -0
  352. package/dist/medias/background-image.js +49 -0
  353. package/dist/medias/background-image.js.map +1 -0
  354. package/dist/medias/background-image.mjs +47 -0
  355. package/dist/medias/background-image.mjs.map +1 -0
  356. package/dist/medias/badge.d.mts +31 -0
  357. package/dist/medias/badge.d.ts +31 -0
  358. package/dist/medias/badge.js +84 -0
  359. package/dist/medias/badge.js.map +1 -0
  360. package/dist/medias/badge.mjs +82 -0
  361. package/dist/medias/badge.mjs.map +1 -0
  362. package/dist/medias/code-block.d.mts +31 -0
  363. package/dist/medias/code-block.d.ts +31 -0
  364. package/dist/medias/code-block.js +43 -0
  365. package/dist/medias/code-block.js.map +1 -0
  366. package/dist/medias/code-block.mjs +41 -0
  367. package/dist/medias/code-block.mjs.map +1 -0
  368. package/dist/medias/icon.d.mts +2288 -0
  369. package/dist/medias/icon.d.ts +2288 -0
  370. package/dist/medias/icon.js +56 -0
  371. package/dist/medias/icon.js.map +1 -0
  372. package/dist/medias/icon.mjs +54 -0
  373. package/dist/medias/icon.mjs.map +1 -0
  374. package/dist/medias/image.d.mts +31 -0
  375. package/dist/medias/image.d.ts +31 -0
  376. package/dist/medias/image.js +80 -0
  377. package/dist/medias/image.js.map +1 -0
  378. package/dist/medias/image.mjs +78 -0
  379. package/dist/medias/image.mjs.map +1 -0
  380. package/dist/medias/index.d.mts +31 -0
  381. package/dist/medias/index.d.ts +31 -0
  382. package/dist/medias/index.js +84 -0
  383. package/dist/medias/index.js.map +1 -0
  384. package/dist/medias/index.mjs +13 -0
  385. package/dist/medias/index.mjs.map +1 -0
  386. package/dist/medias/media.d.mts +31 -0
  387. package/dist/medias/media.d.ts +31 -0
  388. package/dist/medias/media.js +91 -0
  389. package/dist/medias/media.js.map +1 -0
  390. package/dist/medias/media.mjs +87 -0
  391. package/dist/medias/media.mjs.map +1 -0
  392. package/dist/medias/progress-bar.d.mts +31 -0
  393. package/dist/medias/progress-bar.d.ts +31 -0
  394. package/dist/medias/progress-bar.js +43 -0
  395. package/dist/medias/progress-bar.js.map +1 -0
  396. package/dist/medias/progress-bar.mjs +41 -0
  397. package/dist/medias/progress-bar.mjs.map +1 -0
  398. package/dist/medias/progress-ring.d.mts +31 -0
  399. package/dist/medias/progress-ring.d.ts +31 -0
  400. package/dist/medias/progress-ring.js +46 -0
  401. package/dist/medias/progress-ring.js.map +1 -0
  402. package/dist/medias/progress-ring.mjs +44 -0
  403. package/dist/medias/progress-ring.mjs.map +1 -0
  404. package/dist/medias/rich-text-block.d.mts +31 -0
  405. package/dist/medias/rich-text-block.d.ts +31 -0
  406. package/dist/medias/rich-text-block.js +33 -0
  407. package/dist/medias/rich-text-block.js.map +1 -0
  408. package/dist/medias/rich-text-block.mjs +31 -0
  409. package/dist/medias/rich-text-block.mjs.map +1 -0
  410. package/dist/medias/text-block.d.mts +31 -0
  411. package/dist/medias/text-block.d.ts +31 -0
  412. package/dist/medias/text-block.js +95 -0
  413. package/dist/medias/text-block.js.map +1 -0
  414. package/dist/medias/text-block.mjs +93 -0
  415. package/dist/medias/text-block.mjs.map +1 -0
  416. package/dist/medias/text-run.d.mts +31 -0
  417. package/dist/medias/text-run.d.ts +31 -0
  418. package/dist/medias/text-run.js +108 -0
  419. package/dist/medias/text-run.js.map +1 -0
  420. package/dist/medias/text-run.mjs +106 -0
  421. package/dist/medias/text-run.mjs.map +1 -0
  422. package/package.json +46 -0
@@ -0,0 +1,53 @@
1
+ import { SubmitAction } from './submit';
2
+
3
+ class MessageBackAction extends SubmitAction {
4
+ /**
5
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
6
+ */
7
+ data;
8
+ constructor(data, options = {}) {
9
+ super(options);
10
+ Object.assign(this, options);
11
+ this.data = {
12
+ msteams: new MessageBackData(data.text, data.value, data.displayText)
13
+ };
14
+ }
15
+ static from(options) {
16
+ return new MessageBackAction(options.data.msteams, options);
17
+ }
18
+ withData(value) {
19
+ this.data.msteams = value;
20
+ return this;
21
+ }
22
+ }
23
+ class MessageBackData {
24
+ type;
25
+ /**
26
+ * Sent to your bot when the action is performed.
27
+ */
28
+ text;
29
+ /**
30
+ * Used by the user in the chat stream when the action is performed.
31
+ * This text isn't sent to your bot.
32
+ */
33
+ displayText;
34
+ /**
35
+ * Sent to your bot when the action is performed. You can encode context
36
+ * for the action, such as unique identifiers or a `JSON` object.
37
+ */
38
+ value;
39
+ constructor(text, value, displayText) {
40
+ this.type = "messageBack";
41
+ this.text = text;
42
+ this.value = value;
43
+ this.displayText = displayText;
44
+ }
45
+ withDisplayText(value) {
46
+ this.displayText = value;
47
+ return this;
48
+ }
49
+ }
50
+
51
+ export { MessageBackAction, MessageBackData };
52
+ //# sourceMappingURL=message-back.mjs.map
53
+ //# sourceMappingURL=message-back.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/actions/submit/message-back.ts"],"names":[],"mappings":";;AAaO,MAAM,0BAA0B,YAA2C,CAAA;AAAA;AAAA;AAAA;AAAA,EAIhF,IAAA;AAAA,EAEA,WAAY,CAAA,IAAA,EAAwB,OAA+B,GAAA,EAAI,EAAA;AACrE,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,IAAO,GAAA;AAAA,MACV,OAAA,EAAS,IAAI,eAAgB,CAAA,IAAA,CAAK,MAAM,IAAK,CAAA,KAAA,EAAO,KAAK,WAAW;AAAA,KACtE;AAAA;AACF,EAEA,OAAO,KAAK,OAAmC,EAAA;AAC7C,IAAA,OAAO,IAAI,iBAAA,CAAkB,OAAQ,CAAA,IAAA,CAAK,SAAS,OAAO,CAAA;AAAA;AAC5D,EAEA,SAAS,KAAyB,EAAA;AAChC,IAAA,IAAA,CAAK,KAAK,OAAU,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AAEX;AAuBO,MAAM,eAA4C,CAAA;AAAA,EACvD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,KAAA;AAAA,EAEA,WAAA,CAAY,IAAc,EAAA,KAAA,EAAe,WAAsB,EAAA;AAC7D,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,WAAc,GAAA,WAAA;AAAA;AACrB,EAEA,gBAAgB,KAAe,EAAA;AAC7B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"message-back.mjs","sourcesContent":["import { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './submit';\n\nexport type MessageBackActionOptions = SubmitActionOptions & {\n data: MSTeamsData<IMessageBackData>;\n};\n\nexport interface IMessageBackAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IMessageBackData>;\n}\n\nexport class MessageBackAction extends SubmitAction implements IMessageBackAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<IMessageBackData>;\n\n constructor(data: IMessageBackData, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = {\n msteams: new MessageBackData(data.text, data.value, data.displayText),\n };\n }\n\n static from(options: MessageBackActionOptions) {\n return new MessageBackAction(options.data.msteams, options);\n }\n\n withData(value: IMessageBackData) {\n this.data.msteams = value;\n return this;\n }\n}\n\nexport interface IMessageBackData {\n type: 'messageBack';\n\n /**\n * Sent to your bot when the action is performed.\n */\n text: string;\n\n /**\n * Used by the user in the chat stream when the action is performed.\n * This text isn't sent to your bot.\n */\n displayText?: string;\n\n /**\n * Sent to your bot when the action is performed. You can encode context\n * for the action, such as unique identifiers or a `JSON` object.\n */\n value: string;\n}\n\nexport class MessageBackData implements IMessageBackData {\n type: 'messageBack';\n\n /**\n * Sent to your bot when the action is performed.\n */\n text: string;\n\n /**\n * Used by the user in the chat stream when the action is performed.\n * This text isn't sent to your bot.\n */\n displayText?: string;\n\n /**\n * Sent to your bot when the action is performed. You can encode context\n * for the action, such as unique identifiers or a `JSON` object.\n */\n value: string;\n\n constructor(text: string, value: string, displayText?: string) {\n this.type = 'messageBack';\n this.text = text;\n this.value = value;\n this.displayText = displayText;\n }\n\n withDisplayText(value: string) {\n this.displayText = value;\n return this;\n }\n}\n"]}
@@ -0,0 +1,40 @@
1
+ import { SubmitActionOptions, MSTeamsData, ISubmitAction, SubmitAction } from './submit.mjs';
2
+ import '../../common/associated-inputs.mjs';
3
+ import '../base.mjs';
4
+
5
+ type SignInActionOptions = SubmitActionOptions & {
6
+ data: MSTeamsData<ISignInData>;
7
+ };
8
+ interface ISignInAction extends ISubmitAction {
9
+ /**
10
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
11
+ */
12
+ data: MSTeamsData<ISignInData>;
13
+ }
14
+ declare class SignInAction extends SubmitAction implements ISignInAction {
15
+ /**
16
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
17
+ */
18
+ data: MSTeamsData<ISignInData>;
19
+ constructor(value: string, options?: SubmitActionOptions);
20
+ static from(options: SignInActionOptions): SignInAction;
21
+ withData(value: ISignInData): this;
22
+ withValue(value: string): this;
23
+ }
24
+ interface ISignInData {
25
+ type: 'signin';
26
+ /**
27
+ * Set to the `URL` where you want to redirect.
28
+ */
29
+ value: string;
30
+ }
31
+ declare class SignInData implements ISignInData {
32
+ type: 'signin';
33
+ /**
34
+ * Set to the `URL` where you want to redirect.
35
+ */
36
+ value: string;
37
+ constructor(value: string);
38
+ }
39
+
40
+ export { type ISignInAction, type ISignInData, SignInAction, type SignInActionOptions, SignInData };
@@ -0,0 +1,40 @@
1
+ import { SubmitActionOptions, MSTeamsData, ISubmitAction, SubmitAction } from './submit.js';
2
+ import '../../common/associated-inputs.js';
3
+ import '../base.js';
4
+
5
+ type SignInActionOptions = SubmitActionOptions & {
6
+ data: MSTeamsData<ISignInData>;
7
+ };
8
+ interface ISignInAction extends ISubmitAction {
9
+ /**
10
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
11
+ */
12
+ data: MSTeamsData<ISignInData>;
13
+ }
14
+ declare class SignInAction extends SubmitAction implements ISignInAction {
15
+ /**
16
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
17
+ */
18
+ data: MSTeamsData<ISignInData>;
19
+ constructor(value: string, options?: SubmitActionOptions);
20
+ static from(options: SignInActionOptions): SignInAction;
21
+ withData(value: ISignInData): this;
22
+ withValue(value: string): this;
23
+ }
24
+ interface ISignInData {
25
+ type: 'signin';
26
+ /**
27
+ * Set to the `URL` where you want to redirect.
28
+ */
29
+ value: string;
30
+ }
31
+ declare class SignInData implements ISignInData {
32
+ type: 'signin';
33
+ /**
34
+ * Set to the `URL` where you want to redirect.
35
+ */
36
+ value: string;
37
+ constructor(value: string);
38
+ }
39
+
40
+ export { type ISignInAction, type ISignInData, SignInAction, type SignInActionOptions, SignInData };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var submit = require('./submit');
4
+
5
+ class SignInAction extends submit.SubmitAction {
6
+ /**
7
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
8
+ */
9
+ data;
10
+ constructor(value, options = {}) {
11
+ super(options);
12
+ Object.assign(this, options);
13
+ this.data = { msteams: new SignInData(value) };
14
+ }
15
+ static from(options) {
16
+ return new SignInAction(options.data.msteams.value, options);
17
+ }
18
+ withData(value) {
19
+ this.data.msteams = value;
20
+ return this;
21
+ }
22
+ withValue(value) {
23
+ this.data.msteams.value = value;
24
+ return this;
25
+ }
26
+ }
27
+ class SignInData {
28
+ type;
29
+ /**
30
+ * Set to the `URL` where you want to redirect.
31
+ */
32
+ value;
33
+ constructor(value) {
34
+ this.type = "signin";
35
+ this.value = value;
36
+ }
37
+ }
38
+
39
+ exports.SignInAction = SignInAction;
40
+ exports.SignInData = SignInData;
41
+ //# sourceMappingURL=sign-in.js.map
42
+ //# sourceMappingURL=sign-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/actions/submit/sign-in.ts"],"names":["SubmitAction"],"mappings":";;;;AAWO,MAAM,qBAAqBA,mBAAsC,CAAA;AAAA;AAAA;AAAA;AAAA,EAItE,IAAA;AAAA,EAEA,WAAY,CAAA,KAAA,EAAe,OAA+B,GAAA,EAAI,EAAA;AAC5D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,OAAO,EAAE,OAAA,EAAS,IAAI,UAAA,CAAW,KAAK,CAAE,EAAA;AAAA;AAC/C,EAEA,OAAO,KAAK,OAA8B,EAAA;AACxC,IAAA,OAAO,IAAI,YAAa,CAAA,OAAA,CAAQ,IAAK,CAAA,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA;AAC7D,EAEA,SAAS,KAAoB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAK,OAAU,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAK,IAAA,CAAA,IAAA,CAAK,QAAQ,KAAQ,GAAA,KAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX;AAWO,MAAM,UAAkC,CAAA;AAAA,EAC7C,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,IAAO,GAAA,QAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AAEjB","file":"sign-in.js","sourcesContent":["import { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './submit';\n\nexport type SignInActionOptions = SubmitActionOptions & { data: MSTeamsData<ISignInData> };\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\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) {\n return new SignInAction(options.data.msteams.value, options);\n }\n\n withData(value: ISignInData) {\n this.data.msteams = value;\n return this;\n }\n\n withValue(value: string) {\n this.data.msteams.value = value;\n return this;\n }\n}\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\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"]}
@@ -0,0 +1,39 @@
1
+ import { SubmitAction } from './submit';
2
+
3
+ class SignInAction extends SubmitAction {
4
+ /**
5
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
6
+ */
7
+ data;
8
+ constructor(value, options = {}) {
9
+ super(options);
10
+ Object.assign(this, options);
11
+ this.data = { msteams: new SignInData(value) };
12
+ }
13
+ static from(options) {
14
+ return new SignInAction(options.data.msteams.value, options);
15
+ }
16
+ withData(value) {
17
+ this.data.msteams = value;
18
+ return this;
19
+ }
20
+ withValue(value) {
21
+ this.data.msteams.value = value;
22
+ return this;
23
+ }
24
+ }
25
+ class SignInData {
26
+ type;
27
+ /**
28
+ * Set to the `URL` where you want to redirect.
29
+ */
30
+ value;
31
+ constructor(value) {
32
+ this.type = "signin";
33
+ this.value = value;
34
+ }
35
+ }
36
+
37
+ export { SignInAction, SignInData };
38
+ //# sourceMappingURL=sign-in.mjs.map
39
+ //# sourceMappingURL=sign-in.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/actions/submit/sign-in.ts"],"names":[],"mappings":";;AAWO,MAAM,qBAAqB,YAAsC,CAAA;AAAA;AAAA;AAAA;AAAA,EAItE,IAAA;AAAA,EAEA,WAAY,CAAA,KAAA,EAAe,OAA+B,GAAA,EAAI,EAAA;AAC5D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,OAAO,EAAE,OAAA,EAAS,IAAI,UAAA,CAAW,KAAK,CAAE,EAAA;AAAA;AAC/C,EAEA,OAAO,KAAK,OAA8B,EAAA;AACxC,IAAA,OAAO,IAAI,YAAa,CAAA,OAAA,CAAQ,IAAK,CAAA,OAAA,CAAQ,OAAO,OAAO,CAAA;AAAA;AAC7D,EAEA,SAAS,KAAoB,EAAA;AAC3B,IAAA,IAAA,CAAK,KAAK,OAAU,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAK,IAAA,CAAA,IAAA,CAAK,QAAQ,KAAQ,GAAA,KAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AAEX;AAWO,MAAM,UAAkC,CAAA;AAAA,EAC7C,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,IAAO,GAAA,QAAA;AACZ,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AAAA;AAEjB","file":"sign-in.mjs","sourcesContent":["import { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './submit';\n\nexport type SignInActionOptions = SubmitActionOptions & { data: MSTeamsData<ISignInData> };\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\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) {\n return new SignInAction(options.data.msteams.value, options);\n }\n\n withData(value: ISignInData) {\n this.data.msteams = value;\n return this;\n }\n\n withValue(value: string) {\n this.data.msteams.value = value;\n return this;\n }\n}\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\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"]}
@@ -0,0 +1,51 @@
1
+ import { AssociatedInputs } from '../../common/associated-inputs.mjs';
2
+ import { IAction, Action } from '../base.mjs';
3
+
4
+ type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;
5
+ /**
6
+ * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.
7
+ */
8
+ interface ISubmitAction extends IAction {
9
+ type: 'Action.Submit';
10
+ /**
11
+ * Controls which inputs are associated with the action.
12
+ */
13
+ associatedInputs?: AssociatedInputs;
14
+ /**
15
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
16
+ */
17
+ data?: MSTeamsData<Record<string, any>>;
18
+ }
19
+ /**
20
+ * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.
21
+ */
22
+ declare class SubmitAction extends Action implements ISubmitAction {
23
+ type: 'Action.Submit';
24
+ /**
25
+ * Controls which inputs are associated with the action.
26
+ */
27
+ associatedInputs?: AssociatedInputs;
28
+ /**
29
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
30
+ */
31
+ data?: MSTeamsData<Record<string, any>>;
32
+ constructor(options?: SubmitActionOptions);
33
+ static from(options: Omit<ISubmitAction, 'type'>): SubmitAction;
34
+ withAssociatedInputs(value: AssociatedInputs): this;
35
+ withData(value?: Record<string, any>): this;
36
+ }
37
+ /**
38
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
39
+ */
40
+ type MSTeamsData<T> = {
41
+ /**
42
+ * Teams specific payload data.
43
+ */
44
+ msteams: T;
45
+ /**
46
+ * Other
47
+ */
48
+ [key: string]: any;
49
+ };
50
+
51
+ export { type ISubmitAction, type MSTeamsData, SubmitAction, type SubmitActionOptions };
@@ -0,0 +1,51 @@
1
+ import { AssociatedInputs } from '../../common/associated-inputs.js';
2
+ import { IAction, Action } from '../base.js';
3
+
4
+ type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;
5
+ /**
6
+ * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.
7
+ */
8
+ interface ISubmitAction extends IAction {
9
+ type: 'Action.Submit';
10
+ /**
11
+ * Controls which inputs are associated with the action.
12
+ */
13
+ associatedInputs?: AssociatedInputs;
14
+ /**
15
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
16
+ */
17
+ data?: MSTeamsData<Record<string, any>>;
18
+ }
19
+ /**
20
+ * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.
21
+ */
22
+ declare class SubmitAction extends Action implements ISubmitAction {
23
+ type: 'Action.Submit';
24
+ /**
25
+ * Controls which inputs are associated with the action.
26
+ */
27
+ associatedInputs?: AssociatedInputs;
28
+ /**
29
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
30
+ */
31
+ data?: MSTeamsData<Record<string, any>>;
32
+ constructor(options?: SubmitActionOptions);
33
+ static from(options: Omit<ISubmitAction, 'type'>): SubmitAction;
34
+ withAssociatedInputs(value: AssociatedInputs): this;
35
+ withData(value?: Record<string, any>): this;
36
+ }
37
+ /**
38
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
39
+ */
40
+ type MSTeamsData<T> = {
41
+ /**
42
+ * Teams specific payload data.
43
+ */
44
+ msteams: T;
45
+ /**
46
+ * Other
47
+ */
48
+ [key: string]: any;
49
+ };
50
+
51
+ export { type ISubmitAction, type MSTeamsData, SubmitAction, type SubmitActionOptions };
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ var base = require('../base');
4
+
5
+ class SubmitAction extends base.Action {
6
+ type;
7
+ /**
8
+ * Controls which inputs are associated with the action.
9
+ */
10
+ associatedInputs;
11
+ /**
12
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
13
+ */
14
+ data;
15
+ constructor(options = {}) {
16
+ super();
17
+ this.type = "Action.Submit";
18
+ Object.assign(this, options);
19
+ }
20
+ static from(options) {
21
+ return new SubmitAction(options);
22
+ }
23
+ withAssociatedInputs(value) {
24
+ this.associatedInputs = value;
25
+ return this;
26
+ }
27
+ withData(value = {}) {
28
+ if (!this.data) {
29
+ this.data = { msteams: {} };
30
+ }
31
+ this.data.msteams = value;
32
+ return this;
33
+ }
34
+ }
35
+
36
+ exports.SubmitAction = SubmitAction;
37
+ //# sourceMappingURL=submit.js.map
38
+ //# sourceMappingURL=submit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/actions/submit/submit.ts"],"names":["Action"],"mappings":";;;;AA0BO,MAAM,qBAAqBA,WAAgC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAsC,EAAA;AAChD,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAA,CAAS,KAA6B,GAAA,EAAI,EAAA;AACxC,IAAI,IAAA,CAAC,KAAK,IAAM,EAAA;AACd,MAAA,IAAA,CAAK,IAAO,GAAA,EAAE,OAAS,EAAA,EAAG,EAAA;AAAA;AAG5B,IAAA,IAAA,CAAK,KAAK,OAAU,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"submit.js","sourcesContent":["import { AssociatedInputs } from '../../common';\n\nimport { IAction, Action } from '../base';\n\nexport type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport interface ISubmitAction extends IAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n}\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport class SubmitAction extends Action implements ISubmitAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n\n constructor(options: SubmitActionOptions = {}) {\n super();\n this.type = 'Action.Submit';\n Object.assign(this, options);\n }\n\n static from(options: Omit<ISubmitAction, 'type'>) {\n return new SubmitAction(options);\n }\n\n withAssociatedInputs(value: AssociatedInputs) {\n this.associatedInputs = value;\n return this;\n }\n\n withData(value: Record<string, any> = {}) {\n if (!this.data) {\n this.data = { msteams: {} };\n }\n\n this.data.msteams = value;\n return this;\n }\n}\n\n/**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\nexport type MSTeamsData<T> = {\n /**\n * Teams specific payload data.\n */\n msteams: T;\n\n /**\n * Other\n */\n [key: string]: any;\n};\n"]}
@@ -0,0 +1,36 @@
1
+ import { Action } from '../base';
2
+
3
+ class SubmitAction extends Action {
4
+ type;
5
+ /**
6
+ * Controls which inputs are associated with the action.
7
+ */
8
+ associatedInputs;
9
+ /**
10
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
11
+ */
12
+ data;
13
+ constructor(options = {}) {
14
+ super();
15
+ this.type = "Action.Submit";
16
+ Object.assign(this, options);
17
+ }
18
+ static from(options) {
19
+ return new SubmitAction(options);
20
+ }
21
+ withAssociatedInputs(value) {
22
+ this.associatedInputs = value;
23
+ return this;
24
+ }
25
+ withData(value = {}) {
26
+ if (!this.data) {
27
+ this.data = { msteams: {} };
28
+ }
29
+ this.data.msteams = value;
30
+ return this;
31
+ }
32
+ }
33
+
34
+ export { SubmitAction };
35
+ //# sourceMappingURL=submit.mjs.map
36
+ //# sourceMappingURL=submit.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/actions/submit/submit.ts"],"names":[],"mappings":";;AA0BO,MAAM,qBAAqB,MAAgC,CAAA;AAAA,EAChE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,WAAA,CAAY,OAA+B,GAAA,EAAI,EAAA;AAC7C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,eAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAAsC,EAAA;AAChD,IAAO,OAAA,IAAI,aAAa,OAAO,CAAA;AAAA;AACjC,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAA,CAAS,KAA6B,GAAA,EAAI,EAAA;AACxC,IAAI,IAAA,CAAC,KAAK,IAAM,EAAA;AACd,MAAA,IAAA,CAAK,IAAO,GAAA,EAAE,OAAS,EAAA,EAAG,EAAA;AAAA;AAG5B,IAAA,IAAA,CAAK,KAAK,OAAU,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"submit.mjs","sourcesContent":["import { AssociatedInputs } from '../../common';\n\nimport { IAction, Action } from '../base';\n\nexport type SubmitActionOptions = Omit<ISubmitAction, 'type' | 'data'>;\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport interface ISubmitAction extends IAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n}\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. It is up to the client to determine how this data is processed. For example: With BotFramework bots, the client would send an activity through the messaging medium to the bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more details.\n */\nexport class SubmitAction extends Action implements ISubmitAction {\n type: 'Action.Submit';\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: MSTeamsData<Record<string, any>>;\n\n constructor(options: SubmitActionOptions = {}) {\n super();\n this.type = 'Action.Submit';\n Object.assign(this, options);\n }\n\n static from(options: Omit<ISubmitAction, 'type'>) {\n return new SubmitAction(options);\n }\n\n withAssociatedInputs(value: AssociatedInputs) {\n this.associatedInputs = value;\n return this;\n }\n\n withData(value: Record<string, any> = {}) {\n if (!this.data) {\n this.data = { msteams: {} };\n }\n\n this.data.msteams = value;\n return this;\n }\n}\n\n/**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\nexport type MSTeamsData<T> = {\n /**\n * Teams specific payload data.\n */\n msteams: T;\n\n /**\n * Other\n */\n [key: string]: any;\n};\n"]}
@@ -0,0 +1,40 @@
1
+ import { SubmitActionOptions, MSTeamsData, ISubmitAction, SubmitAction } from './submit.mjs';
2
+ import '../../common/associated-inputs.mjs';
3
+ import '../base.mjs';
4
+
5
+ type TaskFetchActionOptions = SubmitActionOptions & {
6
+ data: MSTeamsData<ITaskFetchData>;
7
+ };
8
+ interface ITaskFetchAction extends ISubmitAction {
9
+ /**
10
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
11
+ */
12
+ data: MSTeamsData<ITaskFetchData>;
13
+ }
14
+ declare class TaskFetchAction extends SubmitAction implements ITaskFetchAction {
15
+ /**
16
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
17
+ */
18
+ data: MSTeamsData<ITaskFetchData>;
19
+ constructor(value?: any, options?: SubmitActionOptions);
20
+ static from(options: TaskFetchActionOptions): TaskFetchAction;
21
+ withData(value: ITaskFetchData): this;
22
+ withValue(value: any): this;
23
+ }
24
+ interface ITaskFetchData {
25
+ type: 'task/fetch';
26
+ /**
27
+ * The data value sent with the `task/fetch` invoke.
28
+ */
29
+ data?: any;
30
+ }
31
+ declare class TaskFetchData implements ITaskFetchData {
32
+ type: 'task/fetch';
33
+ /**
34
+ * The data value sent with the `task/fetch` invoke.
35
+ */
36
+ data?: any;
37
+ constructor(data?: any);
38
+ }
39
+
40
+ export { type ITaskFetchAction, type ITaskFetchData, TaskFetchAction, type TaskFetchActionOptions, TaskFetchData };
@@ -0,0 +1,40 @@
1
+ import { SubmitActionOptions, MSTeamsData, ISubmitAction, SubmitAction } from './submit.js';
2
+ import '../../common/associated-inputs.js';
3
+ import '../base.js';
4
+
5
+ type TaskFetchActionOptions = SubmitActionOptions & {
6
+ data: MSTeamsData<ITaskFetchData>;
7
+ };
8
+ interface ITaskFetchAction extends ISubmitAction {
9
+ /**
10
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
11
+ */
12
+ data: MSTeamsData<ITaskFetchData>;
13
+ }
14
+ declare class TaskFetchAction extends SubmitAction implements ITaskFetchAction {
15
+ /**
16
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
17
+ */
18
+ data: MSTeamsData<ITaskFetchData>;
19
+ constructor(value?: any, options?: SubmitActionOptions);
20
+ static from(options: TaskFetchActionOptions): TaskFetchAction;
21
+ withData(value: ITaskFetchData): this;
22
+ withValue(value: any): this;
23
+ }
24
+ interface ITaskFetchData {
25
+ type: 'task/fetch';
26
+ /**
27
+ * The data value sent with the `task/fetch` invoke.
28
+ */
29
+ data?: any;
30
+ }
31
+ declare class TaskFetchData implements ITaskFetchData {
32
+ type: 'task/fetch';
33
+ /**
34
+ * The data value sent with the `task/fetch` invoke.
35
+ */
36
+ data?: any;
37
+ constructor(data?: any);
38
+ }
39
+
40
+ export { type ITaskFetchAction, type ITaskFetchData, TaskFetchAction, type TaskFetchActionOptions, TaskFetchData };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var submit = require('./submit');
4
+
5
+ class TaskFetchAction extends submit.SubmitAction {
6
+ /**
7
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
8
+ */
9
+ data;
10
+ constructor(value, options = {}) {
11
+ super(options);
12
+ Object.assign(this, options);
13
+ this.data = { msteams: new TaskFetchData(value) };
14
+ }
15
+ static from(options) {
16
+ return new TaskFetchAction(options.data.msteams.data, options);
17
+ }
18
+ withData(value) {
19
+ this.data.msteams = value;
20
+ return this;
21
+ }
22
+ withValue(value) {
23
+ this.data.msteams.data = value;
24
+ return this;
25
+ }
26
+ }
27
+ class TaskFetchData {
28
+ type;
29
+ /**
30
+ * The data value sent with the `task/fetch` invoke.
31
+ */
32
+ data;
33
+ constructor(data) {
34
+ this.type = "task/fetch";
35
+ this.data = data;
36
+ }
37
+ }
38
+
39
+ exports.TaskFetchAction = TaskFetchAction;
40
+ exports.TaskFetchData = TaskFetchData;
41
+ //# sourceMappingURL=task-fetch.js.map
42
+ //# sourceMappingURL=task-fetch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/actions/submit/task-fetch.ts"],"names":["SubmitAction"],"mappings":";;;;AAWO,MAAM,wBAAwBA,mBAAyC,CAAA;AAAA;AAAA;AAAA;AAAA,EAI5E,IAAA;AAAA,EAEA,WAAY,CAAA,KAAA,EAAa,OAA+B,GAAA,EAAI,EAAA;AAC1D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,OAAO,EAAE,OAAA,EAAS,IAAI,aAAA,CAAc,KAAK,CAAE,EAAA;AAAA;AAClD,EAEA,OAAO,KAAK,OAAiC,EAAA;AAC3C,IAAA,OAAO,IAAI,eAAgB,CAAA,OAAA,CAAQ,IAAK,CAAA,OAAA,CAAQ,MAAM,OAAO,CAAA;AAAA;AAC/D,EAEA,SAAS,KAAuB,EAAA;AAC9B,IAAA,IAAA,CAAK,KAAK,OAAU,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAY,EAAA;AACpB,IAAK,IAAA,CAAA,IAAA,CAAK,QAAQ,IAAO,GAAA,KAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAWO,MAAM,aAAwC,CAAA;AAAA,EACnD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,YAAY,IAAY,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AAEhB","file":"task-fetch.js","sourcesContent":["import { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './submit';\n\nexport type TaskFetchActionOptions = SubmitActionOptions & { data: MSTeamsData<ITaskFetchData> };\n\nexport interface ITaskFetchAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<ITaskFetchData>;\n}\n\nexport class TaskFetchAction extends SubmitAction implements ITaskFetchAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<ITaskFetchData>;\n\n constructor(value?: any, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = { msteams: new TaskFetchData(value) };\n }\n\n static from(options: TaskFetchActionOptions) {\n return new TaskFetchAction(options.data.msteams.data, options);\n }\n\n withData(value: ITaskFetchData) {\n this.data.msteams = value;\n return this;\n }\n\n withValue(value: any) {\n this.data.msteams.data = value;\n return this;\n }\n}\n\nexport interface ITaskFetchData {\n type: 'task/fetch';\n\n /**\n * The data value sent with the `task/fetch` invoke.\n */\n data?: any;\n}\n\nexport class TaskFetchData implements ITaskFetchData {\n type: 'task/fetch';\n\n /**\n * The data value sent with the `task/fetch` invoke.\n */\n data?: any;\n\n constructor(data?: any) {\n this.type = 'task/fetch';\n this.data = data;\n }\n}\n"]}
@@ -0,0 +1,39 @@
1
+ import { SubmitAction } from './submit';
2
+
3
+ class TaskFetchAction extends SubmitAction {
4
+ /**
5
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
6
+ */
7
+ data;
8
+ constructor(value, options = {}) {
9
+ super(options);
10
+ Object.assign(this, options);
11
+ this.data = { msteams: new TaskFetchData(value) };
12
+ }
13
+ static from(options) {
14
+ return new TaskFetchAction(options.data.msteams.data, options);
15
+ }
16
+ withData(value) {
17
+ this.data.msteams = value;
18
+ return this;
19
+ }
20
+ withValue(value) {
21
+ this.data.msteams.data = value;
22
+ return this;
23
+ }
24
+ }
25
+ class TaskFetchData {
26
+ type;
27
+ /**
28
+ * The data value sent with the `task/fetch` invoke.
29
+ */
30
+ data;
31
+ constructor(data) {
32
+ this.type = "task/fetch";
33
+ this.data = data;
34
+ }
35
+ }
36
+
37
+ export { TaskFetchAction, TaskFetchData };
38
+ //# sourceMappingURL=task-fetch.mjs.map
39
+ //# sourceMappingURL=task-fetch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/actions/submit/task-fetch.ts"],"names":[],"mappings":";;AAWO,MAAM,wBAAwB,YAAyC,CAAA;AAAA;AAAA;AAAA;AAAA,EAI5E,IAAA;AAAA,EAEA,WAAY,CAAA,KAAA,EAAa,OAA+B,GAAA,EAAI,EAAA;AAC1D,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAC3B,IAAA,IAAA,CAAK,OAAO,EAAE,OAAA,EAAS,IAAI,aAAA,CAAc,KAAK,CAAE,EAAA;AAAA;AAClD,EAEA,OAAO,KAAK,OAAiC,EAAA;AAC3C,IAAA,OAAO,IAAI,eAAgB,CAAA,OAAA,CAAQ,IAAK,CAAA,OAAA,CAAQ,MAAM,OAAO,CAAA;AAAA;AAC/D,EAEA,SAAS,KAAuB,EAAA;AAC9B,IAAA,IAAA,CAAK,KAAK,OAAU,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAY,EAAA;AACpB,IAAK,IAAA,CAAA,IAAA,CAAK,QAAQ,IAAO,GAAA,KAAA;AACzB,IAAO,OAAA,IAAA;AAAA;AAEX;AAWO,MAAM,aAAwC,CAAA;AAAA,EACnD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA,EAEA,YAAY,IAAY,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,YAAA;AACZ,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AAAA;AAEhB","file":"task-fetch.mjs","sourcesContent":["import { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './submit';\n\nexport type TaskFetchActionOptions = SubmitActionOptions & { data: MSTeamsData<ITaskFetchData> };\n\nexport interface ITaskFetchAction extends ISubmitAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<ITaskFetchData>;\n}\n\nexport class TaskFetchAction extends SubmitAction implements ITaskFetchAction {\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data: MSTeamsData<ITaskFetchData>;\n\n constructor(value?: any, options: SubmitActionOptions = {}) {\n super(options);\n Object.assign(this, options);\n this.data = { msteams: new TaskFetchData(value) };\n }\n\n static from(options: TaskFetchActionOptions) {\n return new TaskFetchAction(options.data.msteams.data, options);\n }\n\n withData(value: ITaskFetchData) {\n this.data.msteams = value;\n return this;\n }\n\n withValue(value: any) {\n this.data.msteams.data = value;\n return this;\n }\n}\n\nexport interface ITaskFetchData {\n type: 'task/fetch';\n\n /**\n * The data value sent with the `task/fetch` invoke.\n */\n data?: any;\n}\n\nexport class TaskFetchData implements ITaskFetchData {\n type: 'task/fetch';\n\n /**\n * The data value sent with the `task/fetch` invoke.\n */\n data?: any;\n\n constructor(data?: any) {\n this.type = 'task/fetch';\n this.data = data;\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ import { TargetElement } from '../common/target-element.mjs';
2
+ import { IAction, Action } from './base.mjs';
3
+
4
+ /**
5
+ * An action that toggles the visibility of associated card elements.
6
+ */
7
+ interface IToggleVisibilityAction extends IAction {
8
+ type: 'Action.ToggleVisibility';
9
+ /**
10
+ * "The array of TargetElements. It is not recommended to include Input elements with validation under Action.Toggle due to confusion that can arise from invalid inputs that are not currently visible. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more information.
11
+ */
12
+ targetElements: (string | TargetElement)[];
13
+ }
14
+ type ToggleVisibilityActionOptions = Omit<IToggleVisibilityAction, 'type' | 'targetElements'>;
15
+ /**
16
+ * An action that toggles the visibility of associated card elements.
17
+ */
18
+ declare class ToggleVisibilityAction extends Action implements IToggleVisibilityAction {
19
+ type: 'Action.ToggleVisibility';
20
+ /**
21
+ * "The array of TargetElements. It is not recommended to include Input elements with validation under Action.Toggle due to confusion that can arise from invalid inputs that are not currently visible. See https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/input-validation for more information.
22
+ */
23
+ targetElements: (string | TargetElement)[];
24
+ constructor(...targetElements: (string | TargetElement)[]);
25
+ static from(options: Omit<IToggleVisibilityAction, 'type'>): ToggleVisibilityAction;
26
+ addTargets(...value: (string | TargetElement)[]): this;
27
+ }
28
+
29
+ export { type IToggleVisibilityAction, ToggleVisibilityAction, type ToggleVisibilityActionOptions };