@fluentui-copilot/react-attachments 0.0.0-nightly-20251010-0406-7df7c6d1.1 → 0.0.0-nightly-20251013-0406-7c7739c8.1

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 (220) hide show
  1. package/CHANGELOG.json +3 -3
  2. package/CHANGELOG.md +4 -4
  3. package/dist/index.d.ts +379 -0
  4. package/lib/AgentTag.js +1 -0
  5. package/lib/AgentTag.js.map +1 -0
  6. package/lib/Attachment.js +1 -0
  7. package/lib/Attachment.js.map +1 -0
  8. package/lib/AttachmentList.js +1 -0
  9. package/lib/AttachmentList.js.map +1 -0
  10. package/lib/AttachmentOverflowMenu.js +1 -0
  11. package/lib/AttachmentOverflowMenu.js.map +1 -0
  12. package/lib/AttachmentOverflowMenuButton.js +1 -0
  13. package/lib/AttachmentOverflowMenuButton.js.map +1 -0
  14. package/lib/AttachmentOverflowMenuItem.js +1 -0
  15. package/lib/AttachmentOverflowMenuItem.js.map +1 -0
  16. package/lib/components/AgentTag/AgentTag.js +11 -0
  17. package/lib/components/AgentTag/AgentTag.js.map +1 -0
  18. package/lib/components/AgentTag/AgentTag.types.js +3 -0
  19. package/lib/components/AgentTag/AgentTag.types.js.map +1 -0
  20. package/lib/components/AgentTag/index.js +4 -0
  21. package/lib/components/AgentTag/index.js.map +1 -0
  22. package/lib/components/AgentTag/renderAgentTag.js +6 -0
  23. package/lib/components/AgentTag/renderAgentTag.js.map +1 -0
  24. package/lib/components/AgentTag/useAgentTag.js +18 -0
  25. package/lib/components/AgentTag/useAgentTag.js.map +1 -0
  26. package/lib/components/AgentTag/useAgentTagStyles.styles.js +95 -0
  27. package/lib/components/AgentTag/useAgentTagStyles.styles.js.map +1 -0
  28. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js +66 -0
  29. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  30. package/lib/components/Attachment/Attachment.js +13 -0
  31. package/lib/components/Attachment/Attachment.js.map +1 -0
  32. package/lib/components/Attachment/Attachment.types.js +3 -0
  33. package/lib/components/Attachment/Attachment.types.js.map +1 -0
  34. package/lib/components/Attachment/index.js +4 -0
  35. package/lib/components/Attachment/index.js.map +1 -0
  36. package/lib/components/Attachment/renderAttachment.js +42 -0
  37. package/lib/components/Attachment/renderAttachment.js.map +1 -0
  38. package/lib/components/Attachment/useAttachment.js +103 -0
  39. package/lib/components/Attachment/useAttachment.js.map +1 -0
  40. package/lib/components/Attachment/useAttachmentStyles.styles.js +348 -0
  41. package/lib/components/Attachment/useAttachmentStyles.styles.js.map +1 -0
  42. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js +328 -0
  43. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  44. package/lib/components/AttachmentList/AttachmentList.js +14 -0
  45. package/lib/components/AttachmentList/AttachmentList.js.map +1 -0
  46. package/lib/components/AttachmentList/AttachmentList.types.js +1 -0
  47. package/lib/components/AttachmentList/AttachmentList.types.js.map +1 -0
  48. package/lib/components/AttachmentList/index.js +4 -0
  49. package/lib/components/AttachmentList/index.js.map +1 -0
  50. package/lib/components/AttachmentList/renderAttachmentList.js +31 -0
  51. package/lib/components/AttachmentList/renderAttachmentList.js.map +1 -0
  52. package/lib/components/AttachmentList/useAttachmentList.js +134 -0
  53. package/lib/components/AttachmentList/useAttachmentList.js.map +1 -0
  54. package/lib/components/AttachmentList/useAttachmentListContextValues.js +12 -0
  55. package/lib/components/AttachmentList/useAttachmentListContextValues.js.map +1 -0
  56. package/lib/components/AttachmentList/useAttachmentListStyles.styles.js +48 -0
  57. package/lib/components/AttachmentList/useAttachmentListStyles.styles.js.map +1 -0
  58. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js +44 -0
  59. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  60. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +14 -0
  61. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -0
  62. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +1 -0
  63. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js.map +1 -0
  64. package/lib/components/AttachmentOverflowMenu/index.js +4 -0
  65. package/lib/components/AttachmentOverflowMenu/index.js.map +1 -0
  66. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +13 -0
  67. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -0
  68. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +18 -0
  69. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -0
  70. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +12 -0
  71. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -0
  72. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +12 -0
  73. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -0
  74. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +3 -0
  75. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -0
  76. package/lib/components/AttachmentOverflowMenuButton/index.js +4 -0
  77. package/lib/components/AttachmentOverflowMenuButton/index.js.map +1 -0
  78. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +15 -0
  79. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -0
  80. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +69 -0
  81. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -0
  82. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js +116 -0
  83. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js.map +1 -0
  84. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +102 -0
  85. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  86. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +10 -0
  87. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -0
  88. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +3 -0
  89. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js.map +1 -0
  90. package/lib/components/AttachmentOverflowMenuItem/index.js +4 -0
  91. package/lib/components/AttachmentOverflowMenuItem/index.js.map +1 -0
  92. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +13 -0
  93. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -0
  94. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +56 -0
  95. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -0
  96. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js +84 -0
  97. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js.map +1 -0
  98. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +59 -0
  99. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  100. package/lib/components/index.js +5 -0
  101. package/lib/components/index.js.map +1 -0
  102. package/lib/components/utils/useProgressBarStyles.styles.js +54 -0
  103. package/lib/components/utils/useProgressBarStyles.styles.js.map +1 -0
  104. package/lib/components/utils/useProgressBarStyles.styles.raw.js +42 -0
  105. package/lib/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  106. package/lib/contexts/attachmentListContext.js +9 -0
  107. package/lib/contexts/attachmentListContext.js.map +1 -0
  108. package/lib/contexts/attachmentOverflowMenuContext.js +9 -0
  109. package/lib/contexts/attachmentOverflowMenuContext.js.map +1 -0
  110. package/lib/index.js +8 -0
  111. package/lib/index.js.map +1 -0
  112. package/lib-commonjs/AgentTag.js +28 -0
  113. package/lib-commonjs/AgentTag.js.map +1 -0
  114. package/lib-commonjs/Attachment.js +31 -0
  115. package/lib-commonjs/Attachment.js.map +1 -0
  116. package/lib-commonjs/AttachmentList.js +28 -0
  117. package/lib-commonjs/AttachmentList.js.map +1 -0
  118. package/lib-commonjs/AttachmentOverflowMenu.js +25 -0
  119. package/lib-commonjs/AttachmentOverflowMenu.js.map +1 -0
  120. package/lib-commonjs/AttachmentOverflowMenuButton.js +28 -0
  121. package/lib-commonjs/AttachmentOverflowMenuButton.js.map +1 -0
  122. package/lib-commonjs/AttachmentOverflowMenuItem.js +28 -0
  123. package/lib-commonjs/AttachmentOverflowMenuItem.js.map +1 -0
  124. package/lib-commonjs/components/AgentTag/AgentTag.js +21 -0
  125. package/lib-commonjs/components/AgentTag/AgentTag.js.map +1 -0
  126. package/lib-commonjs/components/AgentTag/AgentTag.types.js +6 -0
  127. package/lib-commonjs/components/AgentTag/AgentTag.types.js.map +1 -0
  128. package/lib-commonjs/components/AgentTag/index.js +31 -0
  129. package/lib-commonjs/components/AgentTag/index.js.map +1 -0
  130. package/lib-commonjs/components/AgentTag/renderAgentTag.js +14 -0
  131. package/lib-commonjs/components/AgentTag/renderAgentTag.js.map +1 -0
  132. package/lib-commonjs/components/AgentTag/useAgentTag.js +19 -0
  133. package/lib-commonjs/components/AgentTag/useAgentTag.js.map +1 -0
  134. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js +145 -0
  135. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js.map +1 -0
  136. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js +82 -0
  137. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  138. package/lib-commonjs/components/Attachment/Attachment.js +23 -0
  139. package/lib-commonjs/components/Attachment/Attachment.js.map +1 -0
  140. package/lib-commonjs/components/Attachment/Attachment.types.js +6 -0
  141. package/lib-commonjs/components/Attachment/Attachment.types.js.map +1 -0
  142. package/lib-commonjs/components/Attachment/index.js +34 -0
  143. package/lib-commonjs/components/Attachment/index.js.map +1 -0
  144. package/lib-commonjs/components/Attachment/renderAttachment.js +50 -0
  145. package/lib-commonjs/components/Attachment/renderAttachment.js.map +1 -0
  146. package/lib-commonjs/components/Attachment/useAttachment.js +105 -0
  147. package/lib-commonjs/components/Attachment/useAttachment.js.map +1 -0
  148. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js +550 -0
  149. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js.map +1 -0
  150. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js +347 -0
  151. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  152. package/lib-commonjs/components/AttachmentList/AttachmentList.js +25 -0
  153. package/lib-commonjs/components/AttachmentList/AttachmentList.js.map +1 -0
  154. package/lib-commonjs/components/AttachmentList/AttachmentList.types.js +4 -0
  155. package/lib-commonjs/components/AttachmentList/AttachmentList.types.js.map +1 -0
  156. package/lib-commonjs/components/AttachmentList/index.js +31 -0
  157. package/lib-commonjs/components/AttachmentList/index.js.map +1 -0
  158. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js +39 -0
  159. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js.map +1 -0
  160. package/lib-commonjs/components/AttachmentList/useAttachmentList.js +137 -0
  161. package/lib-commonjs/components/AttachmentList/useAttachmentList.js.map +1 -0
  162. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js +22 -0
  163. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js.map +1 -0
  164. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.js +67 -0
  165. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.js.map +1 -0
  166. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js +60 -0
  167. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  168. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +24 -0
  169. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -0
  170. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +4 -0
  171. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js.map +1 -0
  172. package/lib-commonjs/components/AttachmentOverflowMenu/index.js +28 -0
  173. package/lib-commonjs/components/AttachmentOverflowMenu/index.js.map +1 -0
  174. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +21 -0
  175. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -0
  176. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +21 -0
  177. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -0
  178. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +22 -0
  179. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -0
  180. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +23 -0
  181. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -0
  182. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +6 -0
  183. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -0
  184. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +31 -0
  185. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js.map +1 -0
  186. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +23 -0
  187. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -0
  188. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +72 -0
  189. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -0
  190. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js +178 -0
  191. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js.map +1 -0
  192. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +118 -0
  193. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  194. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +21 -0
  195. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -0
  196. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +6 -0
  197. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js.map +1 -0
  198. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +31 -0
  199. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js.map +1 -0
  200. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +21 -0
  201. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -0
  202. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +59 -0
  203. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -0
  204. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js +109 -0
  205. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js.map +1 -0
  206. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +75 -0
  207. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  208. package/lib-commonjs/components/index.js +92 -0
  209. package/lib-commonjs/components/index.js.map +1 -0
  210. package/lib-commonjs/components/utils/useProgressBarStyles.styles.js +103 -0
  211. package/lib-commonjs/components/utils/useProgressBarStyles.styles.js.map +1 -0
  212. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js +50 -0
  213. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  214. package/lib-commonjs/contexts/attachmentListContext.js +30 -0
  215. package/lib-commonjs/contexts/attachmentListContext.js.map +1 -0
  216. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js +30 -0
  217. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js.map +1 -0
  218. package/lib-commonjs/index.js +122 -0
  219. package/lib-commonjs/index.js.map +1 -0
  220. package/package.json +4 -4
package/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui-copilot/react-attachments",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 10 Oct 2025 04:08:17 GMT",
6
- "tag": "@fluentui-copilot/react-attachments_v0.0.0-nightly-20251010-0406-7df7c6d1.1",
7
- "version": "0.0.0-nightly-20251010-0406-7df7c6d1.1",
5
+ "date": "Mon, 13 Oct 2025 04:14:19 GMT",
6
+ "tag": "@fluentui-copilot/react-attachments_v0.0.0-nightly-20251013-0406-7c7739c8.1",
7
+ "version": "0.0.0-nightly-20251013-0406-7c7739c8.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Change Log - @fluentui-copilot/react-attachments
2
2
 
3
- This log was last generated on Fri, 10 Oct 2025 04:08:17 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 13 Oct 2025 04:14:19 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20251010-0406-7df7c6d1.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.0.0-nightly-20251010-0406-7df7c6d1.1)
7
+ ## [0.0.0-nightly-20251013-0406-7c7739c8.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.0.0-nightly-20251013-0406-7c7739c8.1)
8
8
 
9
- Fri, 10 Oct 2025 04:08:17 GMT
10
- [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.13.6..@fluentui-copilot/react-attachments_v0.0.0-nightly-20251010-0406-7df7c6d1.1)
9
+ Mon, 13 Oct 2025 04:14:19 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.13.6..@fluentui-copilot/react-attachments_v0.0.0-nightly-20251013-0406-7c7739c8.1)
11
11
 
12
12
  ### Changes
13
13
 
@@ -0,0 +1,379 @@
1
+ /// <reference types="react" />
2
+
3
+ import type { ComponentProps } from '@fluentui/react-components';
4
+ import type { ComponentState } from '@fluentui/react-components';
5
+ import type { Context } from '@fluentui/react-context-selector';
6
+ import type { ContextSelector } from '@fluentui/react-context-selector';
7
+ import type { CopilotMode } from '@fluentui-copilot/react-provider';
8
+ import type { DesignVersion } from '@fluentui-copilot/react-provider';
9
+ import { FC } from 'react';
10
+ import type { ForwardRefComponent } from '@fluentui/react-components';
11
+ import type { JSXElement } from '@fluentui/react-components';
12
+ import type { MenuContextValues } from '@fluentui/react-components';
13
+ import type { MenuItem } from '@fluentui/react-components';
14
+ import type { MenuList } from '@fluentui/react-components';
15
+ import type { MenuPopover } from '@fluentui/react-components';
16
+ import type { MenuProps } from '@fluentui/react-components';
17
+ import type { MenuSlots } from '@fluentui/react-components';
18
+ import type { MenuState } from '@fluentui/react-components';
19
+ import type { ProgressBar } from '@fluentui/react-components';
20
+ import { Provider } from 'react';
21
+ import { ProviderProps } from 'react';
22
+ import * as React_2 from 'react';
23
+ import type { Slot } from '@fluentui/react-components';
24
+ import type { SlotClassNames } from '@fluentui/react-components';
25
+
26
+ export declare const AgentTag: ForwardRefComponent<AgentTagProps>;
27
+
28
+ export declare const agentTagClassNames: SlotClassNames<AgentTagSlots>;
29
+
30
+ /**
31
+ * AgentTag Props
32
+ */
33
+ export declare type AgentTagProps = ComponentProps<Partial<Omit<AgentTagSlots, 'primaryAction' | 'progress'>>> & Omit<AttachmentProps, keyof AttachmentSlots | 'dismissOnly'>;
34
+
35
+ export declare type AgentTagSlots = AttachmentSlots;
36
+
37
+ /**
38
+ * State used in rendering AgentTag
39
+ */
40
+ export declare type AgentTagState = ComponentState<AgentTagSlots> & Omit<AttachmentState, keyof AttachmentSlots>;
41
+
42
+ export declare const Attachment: ForwardRefComponent<AttachmentProps>;
43
+
44
+ export declare const attachmentClassNames: SlotClassNames<AttachmentSlots>;
45
+
46
+ export declare type AttachmentDismissedData = {
47
+ content?: AttachmentProps['children'];
48
+ media?: AttachmentProps['media'];
49
+ id?: string;
50
+ };
51
+
52
+ export declare const AttachmentList: ForwardRefComponent<AttachmentListProps>;
53
+
54
+ export declare const attachmentListClassNames: SlotClassNames<AttachmentListSlots>;
55
+
56
+ export declare const AttachmentListContext: Context<AttachmentListContextValue>;
57
+
58
+ /**
59
+ * Context shared between AttachmentList and its children components
60
+ */
61
+ export declare type AttachmentListContextValue = Pick<AttachmentListState, 'onAttachmentDismiss' | 'shouldUseOverflow' | 'numberOfAttachments'>;
62
+
63
+ declare type AttachmentListContextValues = {
64
+ attachmentList: AttachmentListContextValue;
65
+ };
66
+
67
+ /**
68
+ * AttachmentList Props
69
+ */
70
+ export declare type AttachmentListProps = ComponentProps<Partial<AttachmentListSlots>> & DesignVersion & {
71
+ /**
72
+ * Callback fired when an attachment is dismissed.
73
+ */
74
+ onAttachmentDismiss?: (e: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement>, data: AttachmentDismissedData) => void;
75
+ /**
76
+ * Props that will be passed to the overflow menu.
77
+ */
78
+ overflowMenuProps?: Omit<AttachmentOverflowMenuProps, 'children'>;
79
+ /**
80
+ * The maximum number of attachments to display before the overflow button is shown even if there is
81
+ * enough space available to show more.
82
+ * If not set, the overflow functionality will be disabled.
83
+ * @default undefined
84
+ */
85
+ maxVisibleAttachments?: number;
86
+ };
87
+
88
+ export declare const AttachmentListProvider: Provider<AttachmentListContextValue> & FC<ProviderProps<AttachmentListContextValue>>;
89
+
90
+ export declare type AttachmentListSlots = {
91
+ root: Slot<'div'>;
92
+ menuList?: Slot<typeof MenuList>;
93
+ menuPopover?: Slot<typeof MenuPopover>;
94
+ /**
95
+ * An AttachmentList has an overflow menu when `maxVisibleAttachments` is exceeded.
96
+ * Adding a custom button for the overflow menu is supported.
97
+ */
98
+ overflowMenuButton: Slot<'span'>;
99
+ };
100
+
101
+ /**
102
+ * State used in rendering AttachmentList
103
+ */
104
+ export declare type AttachmentListState = ComponentState<AttachmentListSlots> & Pick<AttachmentListProps, 'onAttachmentDismiss' | 'overflowMenuProps' | 'designVersion'> & {
105
+ shouldUseOverflow: boolean;
106
+ numberOfAttachments: number;
107
+ };
108
+
109
+ export declare const AttachmentOverflowMenu: React_2.FC<AttachmentOverflowMenuProps>;
110
+
111
+ export declare const AttachmentOverflowMenuButton: ForwardRefComponent<AttachmentOverflowMenuButtonProps>;
112
+
113
+ export declare const attachmentOverflowMenuButtonClassNames: SlotClassNames<AttachmentOverflowMenuButtonSlots>;
114
+
115
+ /**
116
+ * AttachmentOverflowMenuButton Props
117
+ */
118
+ export declare type AttachmentOverflowMenuButtonProps = ComponentProps<Partial<AttachmentOverflowMenuButtonSlots>> & CopilotMode & DesignVersion & {
119
+ /**
120
+ * Toggle prop to indicate that there are Attachments in the overflow menu that's currently loading.
121
+ * Setting this to true will show an indeterminate progress bar on the button.
122
+ * @default false
123
+ */
124
+ isLoading?: boolean;
125
+ text?: string | ((overflowCount: number) => React.ReactNode);
126
+ };
127
+
128
+ export declare type AttachmentOverflowMenuButtonSlots = {
129
+ root: NonNullable<Slot<'button'>>;
130
+ progress: NonNullable<Slot<typeof ProgressBar>>;
131
+ };
132
+
133
+ /**
134
+ * State used in rendering AttachmentOverflowMenuButton
135
+ */
136
+ export declare type AttachmentOverflowMenuButtonState = ComponentState<AttachmentOverflowMenuButtonSlots> & Pick<AttachmentOverflowMenuState, 'isOverflowing' | 'overflowCount'> & Pick<AttachmentOverflowMenuButtonProps, 'isLoading'> & Pick<Required<AttachmentOverflowMenuButtonProps>, 'designVersion' | 'mode'> & {
137
+ /**
138
+ * True when all attachments are overflowed into the overflow menu.
139
+ */
140
+ fullyOverflowed: boolean;
141
+ };
142
+
143
+ export declare const AttachmentOverflowMenuContext: Context<AttachmentOverflowMenuContextValue>;
144
+
145
+ /**
146
+ * Context shared between AttachmentOverflowMenu and its children components
147
+ */
148
+ export declare type AttachmentOverflowMenuContextValue = Pick<AttachmentOverflowMenuState, 'isOverflowing' | 'overflowButtonRef' | 'overflowCount'>;
149
+
150
+ declare type AttachmentOverflowMenuContextValues = {
151
+ attachmentOverflowMenu: AttachmentOverflowMenuContextValue;
152
+ };
153
+
154
+ export declare const AttachmentOverflowMenuItem: ForwardRefComponent<AttachmentOverflowMenuItemProps>;
155
+
156
+ export declare const attachmentOverflowMenuItemClassNames: SlotClassNames<AttachmentOverflowMenuItemSlots>;
157
+
158
+ /**
159
+ * AttachmentOverflowMenuItem Props
160
+ */
161
+ export declare type AttachmentOverflowMenuItemProps = ComponentProps<Partial<AttachmentOverflowMenuItemSlots>> & DesignVersion & Pick<AttachmentProps, 'id' | 'media' | 'imageOnly'>;
162
+
163
+ export declare type AttachmentOverflowMenuItemSlots = {
164
+ root: NonNullable<Slot<typeof MenuItem>>;
165
+ progress?: Slot<typeof ProgressBar>;
166
+ };
167
+
168
+ /**
169
+ * State used in rendering AttachmentOverflowMenuItem
170
+ */
171
+ export declare type AttachmentOverflowMenuItemState = ComponentState<AttachmentOverflowMenuItemSlots> & Pick<AttachmentOverflowMenuItemProps, 'imageOnly' | 'designVersion'> & {
172
+ isVisible: boolean;
173
+ };
174
+
175
+ /**
176
+ * AttachmentOverflowMenu Props
177
+ */
178
+ export declare type AttachmentOverflowMenuProps = MenuProps;
179
+
180
+ export declare const AttachmentOverflowMenuProvider: Provider<AttachmentOverflowMenuContextValue> & FC<ProviderProps<AttachmentOverflowMenuContextValue>>;
181
+
182
+ export declare type AttachmentOverflowMenuSlots = MenuSlots;
183
+
184
+ /**
185
+ * State used in rendering AttachmentOverflowMenu
186
+ */
187
+ export declare type AttachmentOverflowMenuState = MenuState & {
188
+ isOverflowing: boolean;
189
+ overflowButtonRef?: React.MutableRefObject<HTMLButtonElement | null>;
190
+ overflowCount: number;
191
+ };
192
+
193
+ /**
194
+ * Attachment Props
195
+ */
196
+ export declare type AttachmentProps = Omit<ComponentProps<Partial<AttachmentSlots>>, 'content'> & Pick<Partial<AttachmentSlots>, 'content'> & CopilotMode & DesignVersion & {
197
+ /**
198
+ * Use this prop if an attachment has no text content.
199
+ *
200
+ * @default false
201
+ */
202
+ imageOnly?: boolean;
203
+ /**
204
+ * An attachment supports different sizes.
205
+ *
206
+ * @default 'medium'
207
+ */
208
+ size?: 'small' | 'medium';
209
+ /**
210
+ * Use this prop if the attachment has no primary action
211
+ * and should be rendered as a single button
212
+ */
213
+ dismissOnly?: boolean;
214
+ };
215
+
216
+ export declare type AttachmentSlots = {
217
+ root: NonNullable<Slot<'div'>>;
218
+ /**
219
+ * Attachments support a primary action.
220
+ */
221
+ primaryAction: NonNullable<Slot<'button', 'span'>>;
222
+ /**
223
+ * Attachments have a dismiss button.
224
+ */
225
+ dismissButton: NonNullable<Slot<'button'>>;
226
+ /**
227
+ * Attachments can include an image or other media.
228
+ */
229
+ media?: Slot<'span'>;
230
+ /**
231
+ * The content of the attachment.
232
+ */
233
+ content: NonNullable<Slot<'span'>>;
234
+ /**
235
+ * The icon that renders for the `dismissButton`.
236
+ */
237
+ dismissIcon: NonNullable<Slot<'span'>>;
238
+ /**
239
+ * An attachment supports a progress bar, which can display the attachment's upload progress.
240
+ */
241
+ progress?: Slot<typeof ProgressBar>;
242
+ };
243
+
244
+ /**
245
+ * State used in rendering Attachment
246
+ */
247
+ export declare type AttachmentState = ComponentState<AttachmentSlots> & Required<Pick<AttachmentProps, 'id' | 'size' | 'designVersion' | 'mode' | 'dismissOnly'>> & Pick<AttachmentProps, 'imageOnly'> & {
248
+ isLoading: boolean;
249
+ shouldUseOverflow: boolean;
250
+ };
251
+
252
+ /**
253
+ * Render the final JSX of AgentTag
254
+ */
255
+ export declare const renderAgentTag_unstable: (state: AgentTagState) => JSXElement;
256
+
257
+ /**
258
+ * Render the final JSX of Attachment
259
+ */
260
+ export declare const renderAttachment_unstable: (state: AttachmentState) => JSXElement;
261
+
262
+ /**
263
+ * Render the final JSX of AttachmentList
264
+ */
265
+ export declare const renderAttachmentList_unstable: (state: AttachmentListState, contextValues: AttachmentListContextValues) => JSXElement;
266
+
267
+ /**
268
+ * Render the final JSX of AttachmentOverflowMenu
269
+ */
270
+ export declare const renderAttachmentOverflowMenu_unstable: (state: AttachmentOverflowMenuState, contextValues: {
271
+ menuContextValues: MenuContextValues;
272
+ attachmentOverflowMenuContextValues: AttachmentOverflowMenuContextValues;
273
+ }) => JSXElement | null;
274
+
275
+ /**
276
+ * Render the final JSX of AttachmentOverflowMenuButton
277
+ */
278
+ export declare const renderAttachmentOverflowMenuButton_unstable: (state: AttachmentOverflowMenuButtonState) => JSXElement | null;
279
+
280
+ /**
281
+ * Render the final JSX of AttachmentOverflowMenuItem
282
+ */
283
+ export declare const renderAttachmentOverflowMenuItem_unstable: (state: AttachmentOverflowMenuItemState) => JSXElement | null;
284
+
285
+ /**
286
+ * Create the state required to render AgentTag.
287
+ *
288
+ * The returned state can be modified with hooks such as useAgentTagStyles_unstable,
289
+ * before being passed to renderAgentTag_unstable.
290
+ *
291
+ * @param props - props from this instance of AgentTag
292
+ * @param ref - reference to root HTMLElement of AgentTag
293
+ */
294
+ export declare const useAgentTag_unstable: (props: AgentTagProps, ref: React_2.Ref<HTMLDivElement>) => AgentTagState;
295
+
296
+ /**
297
+ * Apply styling to the AgentTag slots based on the state
298
+ */
299
+ export declare const useAgentTagStyles_unstable: (state: AgentTagState) => AgentTagState;
300
+
301
+ /**
302
+ * Create the state required to render Attachment.
303
+ *
304
+ * The returned state can be modified with hooks such as useAttachmentStyles_unstable,
305
+ * before being passed to renderAttachment_unstable.
306
+ *
307
+ * @param props - props from this instance of Attachment
308
+ * @param ref - reference to root HTMLElement of Attachment
309
+ */
310
+ export declare const useAttachment_unstable: (props: AttachmentProps, ref: React_2.Ref<HTMLDivElement>) => AttachmentState;
311
+
312
+ /**
313
+ * Create the state required to render AttachmentList.
314
+ *
315
+ * The returned state can be modified with hooks such as useAttachmentListStyles_unstable,
316
+ * before being passed to renderAttachmentList_unstable.
317
+ *
318
+ * @param props - props from this instance of AttachmentList
319
+ * @param ref - reference to root HTMLElement of AttachmentList
320
+ */
321
+ export declare const useAttachmentList_unstable: (props: AttachmentListProps, ref: React_2.Ref<HTMLDivElement>) => AttachmentListState;
322
+
323
+ export declare const useAttachmentListContext_unstable: <T>(selector: ContextSelector<AttachmentListContextValue, T>) => T;
324
+
325
+ /**
326
+ * Apply styling to the AttachmentList slots based on the state
327
+ */
328
+ export declare const useAttachmentListStyles_unstable: (state: AttachmentListState) => AttachmentListState;
329
+
330
+ /**
331
+ * Create the state required to render AttachmentOverflowMenu.
332
+ *
333
+ * The returned state can be modified with hooks such as useAttachmentOverflowMenuStyles_unstable,
334
+ * before being passed to renderAttachmentOverflowMenu_unstable.
335
+ *
336
+ * @param props - props from this instance of AttachmentOverflowMenu
337
+ */
338
+ export declare const useAttachmentOverflowMenu_unstable: (props: AttachmentOverflowMenuProps) => AttachmentOverflowMenuState;
339
+
340
+ /**
341
+ * Create the state required to render AttachmentOverflowMenuButton.
342
+ *
343
+ * The returned state can be modified with hooks such as useAttachmentOverflowMenuButtonStyles_unstable,
344
+ * before being passed to renderAttachmentOverflowMenuButton_unstable.
345
+ *
346
+ * @param props - props from this instance of AttachmentOverflowMenuButton
347
+ * @param ref - reference to root HTMLElement of AttachmentOverflowMenuButton
348
+ */
349
+ export declare const useAttachmentOverflowMenuButton_unstable: (props: AttachmentOverflowMenuButtonProps, ref: React_2.Ref<HTMLButtonElement>) => AttachmentOverflowMenuButtonState;
350
+
351
+ /**
352
+ * Apply styling to the AttachmentOverflowMenuButton slots based on the state
353
+ */
354
+ export declare const useAttachmentOverflowMenuButtonStyles_unstable: (state: AttachmentOverflowMenuButtonState) => AttachmentOverflowMenuButtonState;
355
+
356
+ export declare const useAttachmentOverflowMenuContext_unstable: <T>(selector: ContextSelector<AttachmentOverflowMenuContextValue, T>) => T;
357
+
358
+ /**
359
+ * Create the state required to render AttachmentOverflowMenuItem.
360
+ *
361
+ * The returned state can be modified with hooks such as useAttachmentOverflowMenuItemStyles_unstable,
362
+ * before being passed to renderAttachmentOverflowMenuItem_unstable.
363
+ *
364
+ * @param props - props from this instance of AttachmentOverflowMenuItem
365
+ * @param ref - reference to root HTMLElement of AttachmentOverflowMenuItem
366
+ */
367
+ export declare const useAttachmentOverflowMenuItem_unstable: (props: AttachmentOverflowMenuItemProps, ref: React_2.Ref<HTMLDivElement>) => AttachmentOverflowMenuItemState;
368
+
369
+ /**
370
+ * Apply styling to the AttachmentList slots based on the state
371
+ */
372
+ export declare const useAttachmentOverflowMenuItemStyles_unstable: (state: AttachmentOverflowMenuItemState) => AttachmentOverflowMenuItemState;
373
+
374
+ /**
375
+ * Apply styling to the Attachment slots based on the state
376
+ */
377
+ export declare const useAttachmentStyles_unstable: (state: AttachmentState) => AttachmentState;
378
+
379
+ export { }
@@ -0,0 +1 @@
1
+ export { AgentTag, renderAgentTag_unstable, useAgentTag_unstable, agentTagClassNames, useAgentTagStyles_unstable } from './components/AgentTag/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AgentTag.ts"],"sourcesContent":["export {\n AgentTag,\n renderAgentTag_unstable,\n useAgentTag_unstable,\n agentTagClassNames,\n useAgentTagStyles_unstable,\n} from './components/AgentTag/index';\nexport type { AgentTagProps, AgentTagSlots, AgentTagState } from './components/AgentTag/index';\n"],"names":["AgentTag","renderAgentTag_unstable","useAgentTag_unstable","agentTagClassNames","useAgentTagStyles_unstable"],"rangeMappings":"","mappings":"AAAA,SACEA,QAAQ,EACRC,uBAAuB,EACvBC,oBAAoB,EACpBC,kBAAkB,EAClBC,0BAA0B,QACrB,8BAA8B"}
@@ -0,0 +1 @@
1
+ export { Attachment, attachmentClassNames, renderAttachment_unstable, useAttachmentStyles_unstable, useAttachment_unstable, useOverflowStyles } from './components/Attachment/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["Attachment.ts"],"sourcesContent":["export type { AttachmentProps, AttachmentSlots, AttachmentState } from './components/Attachment/index';\nexport { Attachment, attachmentClassNames, renderAttachment_unstable, useAttachmentStyles_unstable, useAttachment_unstable, useOverflowStyles } from './components/Attachment/index';\n"],"names":["Attachment","attachmentClassNames","renderAttachment_unstable","useAttachmentStyles_unstable","useAttachment_unstable","useOverflowStyles"],"rangeMappings":"","mappings":"AACA,SAASA,UAAU,EAAEC,oBAAoB,EAAEC,yBAAyB,EAAEC,4BAA4B,EAAEC,sBAAsB,EAAEC,iBAAiB,QAAQ,gCAAgC"}
@@ -0,0 +1 @@
1
+ export { AttachmentList, attachmentListClassNames, renderAttachmentList_unstable, useAttachmentListStyles_unstable, useAttachmentList_unstable } from './components/AttachmentList/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentList.ts"],"sourcesContent":["export type { AttachmentDismissedData, AttachmentListContextValues, AttachmentListProps, AttachmentListSlots, AttachmentListState } from './components/AttachmentList/index';\nexport { AttachmentList, attachmentListClassNames, renderAttachmentList_unstable, useAttachmentListStyles_unstable, useAttachmentList_unstable } from './components/AttachmentList/index';\n"],"names":["AttachmentList","attachmentListClassNames","renderAttachmentList_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable"],"rangeMappings":"","mappings":"AACA,SAASA,cAAc,EAAEC,wBAAwB,EAAEC,6BAA6B,EAAEC,gCAAgC,EAAEC,0BAA0B,QAAQ,oCAAoC"}
@@ -0,0 +1 @@
1
+ export { AttachmentOverflowMenu, renderAttachmentOverflowMenu_unstable, useAttachmentOverflowMenuContextValues_unstable, useAttachmentOverflowMenu_unstable } from './components/AttachmentOverflowMenu/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenu.ts"],"sourcesContent":["export type { AttachmentOverflowMenuContextValues, AttachmentOverflowMenuProps, AttachmentOverflowMenuSlots, AttachmentOverflowMenuState } from './components/AttachmentOverflowMenu/index';\nexport { AttachmentOverflowMenu, renderAttachmentOverflowMenu_unstable, useAttachmentOverflowMenuContextValues_unstable, useAttachmentOverflowMenu_unstable } from './components/AttachmentOverflowMenu/index';\n"],"names":["AttachmentOverflowMenu","renderAttachmentOverflowMenu_unstable","useAttachmentOverflowMenuContextValues_unstable","useAttachmentOverflowMenu_unstable"],"rangeMappings":"","mappings":"AACA,SAASA,sBAAsB,EAAEC,qCAAqC,EAAEC,+CAA+C,EAAEC,kCAAkC,QAAQ,4CAA4C"}
@@ -0,0 +1 @@
1
+ export { AttachmentOverflowMenuButton, attachmentOverflowMenuButtonClassNames, renderAttachmentOverflowMenuButton_unstable, useAttachmentOverflowMenuButtonStyles_unstable, useAttachmentOverflowMenuButton_unstable } from './components/AttachmentOverflowMenuButton/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuButton.ts"],"sourcesContent":["export type { AttachmentOverflowMenuButtonProps, AttachmentOverflowMenuButtonSlots, AttachmentOverflowMenuButtonState } from './components/AttachmentOverflowMenuButton/index';\nexport { AttachmentOverflowMenuButton, attachmentOverflowMenuButtonClassNames, renderAttachmentOverflowMenuButton_unstable, useAttachmentOverflowMenuButtonStyles_unstable, useAttachmentOverflowMenuButton_unstable } from './components/AttachmentOverflowMenuButton/index';\n"],"names":["AttachmentOverflowMenuButton","attachmentOverflowMenuButtonClassNames","renderAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuButtonStyles_unstable","useAttachmentOverflowMenuButton_unstable"],"rangeMappings":"","mappings":"AACA,SAASA,4BAA4B,EAAEC,sCAAsC,EAAEC,2CAA2C,EAAEC,8CAA8C,EAAEC,wCAAwC,QAAQ,kDAAkD"}
@@ -0,0 +1 @@
1
+ export { AttachmentOverflowMenuItem, attachmentOverflowMenuItemClassNames, renderAttachmentOverflowMenuItem_unstable, useAttachmentOverflowMenuItemStyles_unstable, useAttachmentOverflowMenuItem_unstable } from './components/AttachmentOverflowMenuItem/index';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentOverflowMenuItem.ts"],"sourcesContent":["export type { AttachmentOverflowMenuItemProps, AttachmentOverflowMenuItemSlots, AttachmentOverflowMenuItemState } from './components/AttachmentOverflowMenuItem/index';\nexport { AttachmentOverflowMenuItem, attachmentOverflowMenuItemClassNames, renderAttachmentOverflowMenuItem_unstable, useAttachmentOverflowMenuItemStyles_unstable, useAttachmentOverflowMenuItem_unstable } from './components/AttachmentOverflowMenuItem/index';\n"],"names":["AttachmentOverflowMenuItem","attachmentOverflowMenuItemClassNames","renderAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenuItemStyles_unstable","useAttachmentOverflowMenuItem_unstable"],"rangeMappings":"","mappings":"AACA,SAASA,0BAA0B,EAAEC,oCAAoC,EAAEC,yCAAyC,EAAEC,4CAA4C,EAAEC,sCAAsC,QAAQ,gDAAgD"}
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { useAgentTag_unstable } from './useAgentTag';
3
+ import { renderAgentTag_unstable } from './renderAgentTag';
4
+ import { useAgentTagStyles_unstable } from './useAgentTagStyles.styles';
5
+ // AgentTag component - TODO: add more docs
6
+ export const AgentTag = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
+ const state = useAgentTag_unstable(props, ref);
8
+ useAgentTagStyles_unstable(state);
9
+ return renderAgentTag_unstable(state);
10
+ });
11
+ AgentTag.displayName = 'AgentTag';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AgentTag.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useAgentTag_unstable } from './useAgentTag';\nimport { renderAgentTag_unstable } from './renderAgentTag';\nimport { useAgentTagStyles_unstable } from './useAgentTagStyles.styles';\nimport type { AgentTagProps } from './AgentTag.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\n// AgentTag component - TODO: add more docs\nexport const AgentTag: ForwardRefComponent<AgentTagProps> = React.forwardRef((props, ref) => {\n const state = useAgentTag_unstable(props, ref);\n\n useAgentTagStyles_unstable(state);\n return renderAgentTag_unstable(state);\n});\n\nAgentTag.displayName = 'AgentTag';\n"],"names":["React","useAgentTag_unstable","renderAgentTag_unstable","useAgentTagStyles_unstable","AgentTag","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,0BAA0B,QAAQ,6BAA6B;AAIxE,2CAA2C;AAC3C,OAAO,MAAMC,yBAA+CJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACnF,MAAMC,QAAQP,qBAAqBK,OAAOC;IAE1CJ,2BAA2BK;IAC3B,OAAON,wBAAwBM;AACjC,GAAG;AAEHJ,SAASK,WAAW,GAAG"}
@@ -0,0 +1,3 @@
1
+ /**
2
+ * State used in rendering AgentTag
3
+ */ export { };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AgentTag.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState } from '@fluentui/react-components';\nimport type { AttachmentSlots, AttachmentProps, AttachmentState } from '../Attachment';\n\nexport type AgentTagSlots = AttachmentSlots;\n\n/**\n * AgentTag Props\n */\nexport type AgentTagProps = ComponentProps<Partial<Omit<AgentTagSlots, 'primaryAction' | 'progress'>>> &\n Omit<AttachmentProps, keyof AttachmentSlots | 'dismissOnly'>;\n\n/**\n * State used in rendering AgentTag\n */\nexport type AgentTagState = ComponentState<AgentTagSlots> & Omit<AttachmentState, keyof AttachmentSlots>;\n"],"names":[],"rangeMappings":";;","mappings":"AAWA;;CAEC,GACD,WAAyG"}
@@ -0,0 +1,4 @@
1
+ export { AgentTag } from './AgentTag';
2
+ export { renderAgentTag_unstable } from './renderAgentTag';
3
+ export { useAgentTag_unstable } from './useAgentTag';
4
+ export { agentTagClassNames, useAgentTagStyles_unstable } from './useAgentTagStyles.styles';
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { AgentTag } from './AgentTag';\nexport type { AgentTagProps, AgentTagSlots, AgentTagState } from './AgentTag.types';\nexport { renderAgentTag_unstable } from './renderAgentTag';\nexport { useAgentTag_unstable } from './useAgentTag';\nexport { agentTagClassNames, useAgentTagStyles_unstable } from './useAgentTagStyles.styles';\n"],"names":["AgentTag","renderAgentTag_unstable","useAgentTag_unstable","agentTagClassNames","useAgentTagStyles_unstable"],"rangeMappings":";;;","mappings":"AAAA,SAASA,QAAQ,QAAQ,aAAa;AAEtC,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SAASC,kBAAkB,EAAEC,0BAA0B,QAAQ,6BAA6B"}
@@ -0,0 +1,6 @@
1
+ import { renderAttachment_unstable } from '../Attachment';
2
+ /**
3
+ * Render the final JSX of AgentTag
4
+ */ export const renderAgentTag_unstable = (state)=>{
5
+ return renderAttachment_unstable(state);
6
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderAgentTag.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { renderAttachment_unstable } from '../Attachment';\nimport type { JSXElement } from '@fluentui/react-components';\nimport type { AgentTagState } from './AgentTag.types';\n\n/**\n * Render the final JSX of AgentTag\n */\nexport const renderAgentTag_unstable = (state: AgentTagState): JSXElement => {\n return renderAttachment_unstable(state);\n};\n"],"names":["renderAttachment_unstable","renderAgentTag_unstable","state"],"rangeMappings":";;;;;","mappings":"AAAA,0BAA0B,GAC1B,iDAAiD,GAEjD,SAASA,yBAAyB,QAAQ,gBAAgB;AAI1D;;CAEC,GACD,OAAO,MAAMC,0BAA0B,CAACC;IACtC,OAAOF,0BAA0BE;AACnC,EAAE"}
@@ -0,0 +1,18 @@
1
+ import { useAttachment_unstable } from '..';
2
+ // If you add JSX to this file, be sure to change the file type to .tsx
3
+ /**
4
+ * Create the state required to render AgentTag.
5
+ *
6
+ * The returned state can be modified with hooks such as useAgentTagStyles_unstable,
7
+ * before being passed to renderAgentTag_unstable.
8
+ *
9
+ * @param props - props from this instance of AgentTag
10
+ * @param ref - reference to root HTMLElement of AgentTag
11
+ */ export const useAgentTag_unstable = (props, ref)=>{
12
+ const state = useAttachment_unstable({
13
+ ...props,
14
+ dismissOnly: true,
15
+ designVersion: 'next'
16
+ }, ref);
17
+ return state;
18
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAgentTag.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { AgentTagProps, AgentTagState } from './AgentTag.types';\nimport { useAttachment_unstable } from '..';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render AgentTag.\n *\n * The returned state can be modified with hooks such as useAgentTagStyles_unstable,\n * before being passed to renderAgentTag_unstable.\n *\n * @param props - props from this instance of AgentTag\n * @param ref - reference to root HTMLElement of AgentTag\n */\nexport const useAgentTag_unstable = (props: AgentTagProps, ref: React.Ref<HTMLDivElement>): AgentTagState => {\n const state = useAttachment_unstable({ ...props, dismissOnly: true, designVersion: 'next' }, ref);\n\n return state;\n};\n"],"names":["useAttachment_unstable","useAgentTag_unstable","props","ref","state","dismissOnly","designVersion"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAEA,SAASA,sBAAsB,QAAQ,KAAK;AAE5C,uEAAuE;AAEvE;;;;;;;;CAQC,GACD,OAAO,MAAMC,uBAAuB,CAACC,OAAsBC;IACzD,MAAMC,QAAQJ,uBAAuB;QAAE,GAAGE,KAAK;QAAEG,aAAa;QAAMC,eAAe;IAAO,GAAGH;IAE7F,OAAOC;AACT,EAAE"}
@@ -0,0 +1,95 @@
1
+ import { __styles, mergeClasses } from '@fluentui/react-components';
2
+ import { useAttachmentStyles_unstable } from '..';
3
+ import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
4
+ export const agentTagClassNames = {
5
+ root: 'fai-AgentTag',
6
+ primaryAction: 'fai-AgentTag__primaryAction',
7
+ dismissIcon: 'fai-AgentTag__dismissIcon',
8
+ dismissButton: 'fai-AgentTag__dismissButton',
9
+ media: 'fai-AgentTag__media',
10
+ content: 'fai-AgentTag__content',
11
+ progress: 'fai-AgentTag__progress'
12
+ };
13
+ const useMediaStyles = __styles({
14
+ canvas: {
15
+ a9b677: "fq4mcun",
16
+ Bqenvij: "frvgh55"
17
+ },
18
+ sidecar: {
19
+ a9b677: "f64fuq3",
20
+ Bqenvij: "fjamq6b"
21
+ }
22
+ }, {
23
+ d: [".fq4mcun{width:24px;}", ".frvgh55{height:24px;}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}"]
24
+ });
25
+ const useContentStyles = __styles({
26
+ canvas: {
27
+ Bahqtrf: "fk6fouc",
28
+ Be2twd7: "fod5ikn",
29
+ Bhrd7zp: "fl43uef",
30
+ Bg96gwp: "f1anucx2",
31
+ sj55zd: "fkfq4zb"
32
+ },
33
+ sidecar: {
34
+ Bahqtrf: "fk6fouc",
35
+ Be2twd7: "fkhj508",
36
+ Bhrd7zp: "fl43uef",
37
+ Bg96gwp: "f1i3iumi",
38
+ sj55zd: "fkfq4zb"
39
+ }
40
+ }, {
41
+ d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".f1anucx2{line-height:var(--lineHeightBase450);}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}"]
42
+ });
43
+ const useDismissButtonStyles = __styles({
44
+ canvas: {
45
+ Beyfa6y: 0,
46
+ Bbmb7ep: 0,
47
+ Btl43ni: 0,
48
+ B7oj6ja: 0,
49
+ Dimara: "f1jxijnj",
50
+ uwmqm3: ["fhx4nu", "fjodcmx"],
51
+ z189sj: ["fw5db7e", "f1uw59to"]
52
+ },
53
+ sidecar: {
54
+ uwmqm3: ["f1uw59to", "fw5db7e"],
55
+ z189sj: ["f1vdfbxk", "f1f5gg8d"],
56
+ Beyfa6y: 0,
57
+ Bbmb7ep: 0,
58
+ Btl43ni: 0,
59
+ B7oj6ja: 0,
60
+ Dimara: "f1kijzfu"
61
+ }
62
+ }, {
63
+ d: [[".f1jxijnj{border-radius:var(--borderRadius2XL);}", {
64
+ p: -1
65
+ }], ".fhx4nu{padding-left:var(--spacingHorizontalL);}", ".fjodcmx{padding-right:var(--spacingHorizontalL);}", ".fw5db7e{padding-right:var(--spacingHorizontalM);}", ".f1uw59to{padding-left:var(--spacingHorizontalM);}", ".f1vdfbxk{padding-right:var(--spacingHorizontalS);}", ".f1f5gg8d{padding-left:var(--spacingHorizontalS);}", [".f1kijzfu{border-radius:var(--borderRadiusXLarge);}", {
66
+ p: -1
67
+ }]]
68
+ });
69
+ /**
70
+ * Apply styling to the AgentTag slots based on the state
71
+ */
72
+ export const useAgentTagStyles_unstable = state => {
73
+ 'use no memo';
74
+
75
+ const {
76
+ mode
77
+ } = state;
78
+ const contentStyles = useContentStyles();
79
+ const dismissButtonStyles = useDismissButtonStyles();
80
+ const mediaStyles = useMediaStyles();
81
+ state.root.className = mergeClasses(agentTagClassNames.root, state.root.className);
82
+ state.primaryAction.className = mergeClasses(agentTagClassNames.primaryAction, state.primaryAction.className);
83
+ state.dismissIcon.className = mergeClasses(agentTagClassNames.dismissIcon, state.dismissIcon.className);
84
+ state.dismissButton.className = mergeClasses(agentTagClassNames.dismissButton, dismissButtonStyles[mode], state.dismissButton.className);
85
+ if (state.media) {
86
+ state.media.className = mergeClasses(agentTagClassNames.media, mediaStyles[mode], state.media.className);
87
+ }
88
+ state.content.className = mergeClasses(agentTagClassNames.content, contentStyles[mode], state.content.className);
89
+ if (state.progress) {
90
+ state.progress.className = mergeClasses(agentTagClassNames.progress, state.progress.className);
91
+ }
92
+ useAttachmentStyles_unstable(state);
93
+ return state;
94
+ };
95
+ //# sourceMappingURL=useAgentTagStyles.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAgentTagStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@fluentui/react-components';\nimport type { AgentTagSlots, AgentTagState } from './AgentTag.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\nimport { useAttachmentStyles_unstable } from '..';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\n\nexport const agentTagClassNames: SlotClassNames<AgentTagSlots> = {\n root: 'fai-AgentTag',\n primaryAction: 'fai-AgentTag__primaryAction',\n dismissIcon: 'fai-AgentTag__dismissIcon',\n dismissButton: 'fai-AgentTag__dismissButton',\n media: 'fai-AgentTag__media',\n content: 'fai-AgentTag__content',\n progress: 'fai-AgentTag__progress',\n};\n\nconst useMediaStyles = makeStyles({\n canvas: {\n width: '24px',\n height: '24px',\n },\n sidecar: { width: '20px', height: '20px' },\n});\n\nconst useContentStyles = makeStyles({\n canvas: {\n ...typographyStyles.subtitle2,\n color: tokens.colorNeutralForeground2,\n },\n sidecar: {\n ...typographyStyles.body1Strong,\n color: tokens.colorNeutralForeground2,\n },\n});\n\nconst useDismissButtonStyles = makeStyles({\n canvas: {\n borderRadius: tokens.borderRadius2XL,\n paddingLeft: tokens.spacingHorizontalL,\n paddingRight: tokens.spacingHorizontalM,\n },\n sidecar: {\n paddingLeft: tokens.spacingHorizontalM,\n paddingRight: tokens.spacingHorizontalS,\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the AgentTag slots based on the state\n */\nexport const useAgentTagStyles_unstable = (state: AgentTagState): AgentTagState => {\n 'use no memo';\n\n const { mode } = state;\n\n const contentStyles = useContentStyles();\n const dismissButtonStyles = useDismissButtonStyles();\n const mediaStyles = useMediaStyles();\n\n state.root.className = mergeClasses(agentTagClassNames.root, state.root.className);\n\n state.primaryAction.className = mergeClasses(agentTagClassNames.primaryAction, state.primaryAction.className);\n\n state.dismissIcon.className = mergeClasses(agentTagClassNames.dismissIcon, state.dismissIcon.className);\n\n state.dismissButton.className = mergeClasses(\n agentTagClassNames.dismissButton,\n dismissButtonStyles[mode],\n state.dismissButton.className,\n );\n\n if (state.media) {\n state.media.className = mergeClasses(agentTagClassNames.media, mediaStyles[mode], state.media.className);\n }\n\n state.content.className = mergeClasses(agentTagClassNames.content, contentStyles[mode], state.content.className);\n\n if (state.progress) {\n state.progress.className = mergeClasses(agentTagClassNames.progress, state.progress.className);\n }\n\n useAttachmentStyles_unstable(state);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","useAttachmentStyles_unstable","tokens","typographyStyles","agentTagClassNames","root","primaryAction","dismissIcon","dismissButton","media","content","progress","useMediaStyles","canvas","width","height","sidecar","useContentStyles","subtitle2","color","colorNeutralForeground2","body1Strong","useDismissButtonStyles","borderRadius","borderRadius2XL","paddingLeft","spacingHorizontalL","paddingRight","spacingHorizontalM","spacingHorizontalS","borderRadiusXLarge","useAgentTagStyles_unstable","state","mode","contentStyles","dismissButtonStyles","mediaStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,6BAA6B;AAGtE,SAASC,4BAA4B,QAAQ,KAAK;AAClD,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,2BAA2B;AAEpE,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,eAAe;IACfC,OAAO;IACPC,SAAS;IACTC,UAAU;AACZ,EAAE;AAEF,MAAMC,iBAAiBb,WAAW;IAChCc,QAAQ;QACNC,OAAO;QACPC,QAAQ;IACV;IACAC,SAAS;QAAEF,OAAO;QAAQC,QAAQ;IAAO;AAC3C;AAEA,MAAME,mBAAmBlB,WAAW;IAClCc,QAAQ;QACN,GAAGV,iBAAiBe,SAAS;QAC7BC,OAAOjB,OAAOkB,uBAAuB;IACvC;IACAJ,SAAS;QACP,GAAGb,iBAAiBkB,WAAW;QAC/BF,OAAOjB,OAAOkB,uBAAuB;IACvC;AACF;AAEA,MAAME,yBAAyBvB,WAAW;IACxCc,QAAQ;QACNU,cAAcrB,OAAOsB,eAAe;QACpCC,aAAavB,OAAOwB,kBAAkB;QACtCC,cAAczB,OAAO0B,kBAAkB;IACzC;IACAZ,SAAS;QACPS,aAAavB,OAAO0B,kBAAkB;QACtCD,cAAczB,OAAO2B,kBAAkB;QACvCN,cAAcrB,OAAO4B,kBAAkB;IACzC;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,6BAA6B,CAACC;IACzC;IAEA,MAAM,EAAEC,IAAI,EAAE,GAAGD;IAEjB,MAAME,gBAAgBjB;IACtB,MAAMkB,sBAAsBb;IAC5B,MAAMc,cAAcxB;IAEpBoB,MAAM3B,IAAI,CAACgC,SAAS,GAAGrC,aAAaI,mBAAmBC,IAAI,EAAE2B,MAAM3B,IAAI,CAACgC,SAAS;IAEjFL,MAAM1B,aAAa,CAAC+B,SAAS,GAAGrC,aAAaI,mBAAmBE,aAAa,EAAE0B,MAAM1B,aAAa,CAAC+B,SAAS;IAE5GL,MAAMzB,WAAW,CAAC8B,SAAS,GAAGrC,aAAaI,mBAAmBG,WAAW,EAAEyB,MAAMzB,WAAW,CAAC8B,SAAS;IAEtGL,MAAMxB,aAAa,CAAC6B,SAAS,GAAGrC,aAC9BI,mBAAmBI,aAAa,EAChC2B,mBAAmB,CAACF,KAAK,EACzBD,MAAMxB,aAAa,CAAC6B,SAAS;IAG/B,IAAIL,MAAMvB,KAAK,EAAE;QACfuB,MAAMvB,KAAK,CAAC4B,SAAS,GAAGrC,aAAaI,mBAAmBK,KAAK,EAAE2B,WAAW,CAACH,KAAK,EAAED,MAAMvB,KAAK,CAAC4B,SAAS;IACzG;IAEAL,MAAMtB,OAAO,CAAC2B,SAAS,GAAGrC,aAAaI,mBAAmBM,OAAO,EAAEwB,aAAa,CAACD,KAAK,EAAED,MAAMtB,OAAO,CAAC2B,SAAS;IAE/G,IAAIL,MAAMrB,QAAQ,EAAE;QAClBqB,MAAMrB,QAAQ,CAAC0B,SAAS,GAAGrC,aAAaI,mBAAmBO,QAAQ,EAAEqB,MAAMrB,QAAQ,CAAC0B,SAAS;IAC/F;IAEApC,6BAA6B+B;IAE7B,OAAOA;AACT,EAAE"}