@fluentui-copilot/react-attachments 0.12.3 → 0.12.5-hotfix.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 (216) hide show
  1. package/CHANGELOG.json +67 -1
  2. package/CHANGELOG.md +30 -2
  3. package/dist/index.d.ts +11 -5
  4. package/lib/AgentTag.js +0 -1
  5. package/lib/Attachment.js +0 -1
  6. package/lib/AttachmentList.js +0 -1
  7. package/lib/AttachmentOverflowMenu.js +0 -1
  8. package/lib/AttachmentOverflowMenuButton.js +0 -1
  9. package/lib/AttachmentOverflowMenuItem.js +0 -1
  10. package/lib/AttachmentTag.js +0 -1
  11. package/lib/AttachmentTagItem.js +0 -1
  12. package/lib/AttachmentTagList.js +0 -1
  13. package/lib/components/AgentTag/AgentTag.js +4 -5
  14. package/lib/components/AgentTag/AgentTag.types.js +1 -2
  15. package/lib/components/AgentTag/index.js +0 -1
  16. package/lib/components/AgentTag/renderAgentTag.js +3 -5
  17. package/lib/components/AgentTag/useAgentTag.js +7 -9
  18. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js +66 -0
  19. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  20. package/lib/components/Attachment/Attachment.js +5 -6
  21. package/lib/components/Attachment/Attachment.types.js +1 -2
  22. package/lib/components/Attachment/index.js +0 -1
  23. package/lib/components/Attachment/renderAttachment.js +36 -31
  24. package/lib/components/Attachment/useAttachment.js +85 -95
  25. package/lib/components/Attachment/useAttachmentStyles.styles.js +34 -12
  26. package/lib/components/Attachment/useAttachmentStyles.styles.js.map +1 -1
  27. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js +317 -0
  28. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  29. package/lib/components/AttachmentList/AttachmentList.js +6 -7
  30. package/lib/components/AttachmentList/AttachmentList.types.js +1 -2
  31. package/lib/components/AttachmentList/AttachmentList.types.js.map +1 -1
  32. package/lib/components/AttachmentList/index.js +0 -1
  33. package/lib/components/AttachmentList/renderAttachmentList.js +25 -25
  34. package/lib/components/AttachmentList/useAttachmentList.js +113 -123
  35. package/lib/components/AttachmentList/useAttachmentList.js.map +1 -1
  36. package/lib/components/AttachmentList/useAttachmentListContextValues.js +10 -13
  37. package/lib/components/AttachmentList/useAttachmentListContextValues.js.map +1 -1
  38. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js +44 -0
  39. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  40. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +8 -9
  41. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +1 -2
  42. package/lib/components/AttachmentOverflowMenu/index.js +0 -1
  43. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +8 -13
  44. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +9 -15
  45. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +10 -15
  46. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +5 -6
  47. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +1 -2
  48. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -1
  49. package/lib/components/AttachmentOverflowMenuButton/index.js +0 -1
  50. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +11 -10
  51. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +57 -45
  52. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -1
  53. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js +37 -25
  54. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js.map +1 -1
  55. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +102 -0
  56. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  57. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +4 -5
  58. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +1 -2
  59. package/lib/components/AttachmentOverflowMenuItem/index.js +0 -1
  60. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +9 -8
  61. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +41 -49
  62. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +57 -0
  63. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  64. package/lib/components/AttachmentTag/AttachmentTag.js +5 -7
  65. package/lib/components/AttachmentTag/AttachmentTag.types.js +1 -2
  66. package/lib/components/AttachmentTag/index.js +0 -1
  67. package/lib/components/AttachmentTag/renderAttachmentTag.js +10 -8
  68. package/lib/components/AttachmentTag/useAttachmentTag.js +9 -11
  69. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js +98 -0
  70. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js.map +1 -0
  71. package/lib/components/AttachmentTagItem/AttachmentTagItem.js +4 -6
  72. package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js +1 -2
  73. package/lib/components/AttachmentTagItem/index.js +0 -1
  74. package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js +10 -8
  75. package/lib/components/AttachmentTagItem/useAttachmentTagItem.js +9 -11
  76. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js +34 -0
  77. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js.map +1 -0
  78. package/lib/components/AttachmentTagList/AttachmentTagList.js +6 -8
  79. package/lib/components/AttachmentTagList/AttachmentTagList.types.js +1 -2
  80. package/lib/components/AttachmentTagList/index.js +0 -1
  81. package/lib/components/AttachmentTagList/renderAttachmentTagList.js +7 -9
  82. package/lib/components/AttachmentTagList/useAttachmentTagList.js +21 -25
  83. package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js +8 -11
  84. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js +21 -0
  85. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js.map +1 -0
  86. package/lib/components/index.js +0 -1
  87. package/lib/components/utils/useAttachmentTagSlots.js +45 -52
  88. package/lib/components/utils/useProgressBarStyles.styles.raw.js +42 -0
  89. package/lib/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  90. package/lib/contexts/attachmentListContext.js +4 -4
  91. package/lib/contexts/attachmentListContext.js.map +1 -1
  92. package/lib/contexts/attachmentOverflowMenuContext.js +4 -5
  93. package/lib/contexts/attachmentTagListContext.js +2 -3
  94. package/lib/index.js +0 -1
  95. package/lib-commonjs/AgentTag.js +0 -1
  96. package/lib-commonjs/Attachment.js +0 -1
  97. package/lib-commonjs/AttachmentList.js +0 -1
  98. package/lib-commonjs/AttachmentOverflowMenu.js +0 -1
  99. package/lib-commonjs/AttachmentOverflowMenuButton.js +0 -1
  100. package/lib-commonjs/AttachmentOverflowMenuItem.js +0 -1
  101. package/lib-commonjs/AttachmentTag.js +0 -1
  102. package/lib-commonjs/AttachmentTagItem.js +0 -1
  103. package/lib-commonjs/AttachmentTagList.js +0 -1
  104. package/lib-commonjs/components/AgentTag/AgentTag.js +1 -1
  105. package/lib-commonjs/components/AgentTag/AgentTag.js.map +1 -1
  106. package/lib-commonjs/components/AgentTag/AgentTag.types.js +0 -1
  107. package/lib-commonjs/components/AgentTag/index.js +0 -1
  108. package/lib-commonjs/components/AgentTag/renderAgentTag.js +1 -1
  109. package/lib-commonjs/components/AgentTag/renderAgentTag.js.map +1 -1
  110. package/lib-commonjs/components/AgentTag/useAgentTag.js +1 -1
  111. package/lib-commonjs/components/AgentTag/useAgentTag.js.map +1 -1
  112. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js +82 -0
  113. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  114. package/lib-commonjs/components/Attachment/Attachment.js +1 -1
  115. package/lib-commonjs/components/Attachment/Attachment.js.map +1 -1
  116. package/lib-commonjs/components/Attachment/Attachment.types.js +0 -1
  117. package/lib-commonjs/components/Attachment/index.js +0 -1
  118. package/lib-commonjs/components/Attachment/renderAttachment.js +1 -1
  119. package/lib-commonjs/components/Attachment/renderAttachment.js.map +1 -1
  120. package/lib-commonjs/components/Attachment/useAttachment.js +1 -1
  121. package/lib-commonjs/components/Attachment/useAttachment.js.map +1 -1
  122. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js +52 -26
  123. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js.map +1 -1
  124. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js +336 -0
  125. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  126. package/lib-commonjs/components/AttachmentList/AttachmentList.js +1 -1
  127. package/lib-commonjs/components/AttachmentList/AttachmentList.js.map +1 -1
  128. package/lib-commonjs/components/AttachmentList/AttachmentList.types.js +0 -1
  129. package/lib-commonjs/components/AttachmentList/AttachmentList.types.js.map +1 -1
  130. package/lib-commonjs/components/AttachmentList/index.js +0 -1
  131. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js +1 -1
  132. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js.map +1 -1
  133. package/lib-commonjs/components/AttachmentList/useAttachmentList.js +2 -1
  134. package/lib-commonjs/components/AttachmentList/useAttachmentList.js.map +1 -1
  135. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js +3 -2
  136. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js.map +1 -1
  137. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js +60 -0
  138. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  139. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +1 -1
  140. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -1
  141. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +0 -1
  142. package/lib-commonjs/components/AttachmentOverflowMenu/index.js +0 -1
  143. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +1 -1
  144. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -1
  145. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +1 -1
  146. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -1
  147. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +1 -1
  148. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -1
  149. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +1 -1
  150. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -1
  151. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +0 -1
  152. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -1
  153. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +0 -1
  154. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +1 -1
  155. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -1
  156. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +26 -4
  157. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -1
  158. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js +57 -26
  159. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js.map +1 -1
  160. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +118 -0
  161. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  162. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +1 -1
  163. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -1
  164. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +0 -1
  165. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +0 -1
  166. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +1 -1
  167. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -1
  168. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +1 -1
  169. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -1
  170. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +73 -0
  171. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  172. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js +1 -1
  173. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js.map +1 -1
  174. package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js +0 -1
  175. package/lib-commonjs/components/AttachmentTag/index.js +0 -1
  176. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js +1 -1
  177. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js.map +1 -1
  178. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js +1 -1
  179. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js.map +1 -1
  180. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js +118 -0
  181. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js.map +1 -0
  182. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js +1 -1
  183. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js.map +1 -1
  184. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js +0 -1
  185. package/lib-commonjs/components/AttachmentTagItem/index.js +0 -1
  186. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js +1 -1
  187. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js.map +1 -1
  188. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js +1 -1
  189. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js.map +1 -1
  190. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js +50 -0
  191. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js.map +1 -0
  192. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js +1 -1
  193. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js.map +1 -1
  194. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js +0 -1
  195. package/lib-commonjs/components/AttachmentTagList/index.js +0 -1
  196. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js +1 -1
  197. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js.map +1 -1
  198. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js +1 -1
  199. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js.map +1 -1
  200. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js +1 -1
  201. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +1 -1
  202. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js +37 -0
  203. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js.map +1 -0
  204. package/lib-commonjs/components/index.js +0 -1
  205. package/lib-commonjs/components/utils/useAttachmentTagSlots.js +1 -1
  206. package/lib-commonjs/components/utils/useAttachmentTagSlots.js.map +1 -1
  207. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js +50 -0
  208. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  209. package/lib-commonjs/contexts/attachmentListContext.js +3 -2
  210. package/lib-commonjs/contexts/attachmentListContext.js.map +1 -1
  211. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js +1 -1
  212. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js.map +1 -1
  213. package/lib-commonjs/contexts/attachmentTagListContext.js +1 -1
  214. package/lib-commonjs/contexts/attachmentTagListContext.js.map +1 -1
  215. package/lib-commonjs/index.js +0 -1
  216. package/package.json +7 -11
package/CHANGELOG.json CHANGED
@@ -2,7 +2,73 @@
2
2
  "name": "@fluentui-copilot/react-attachments",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 30 Apr 2025 01:46:02 GMT",
5
+ "date": "Tue, 12 Aug 2025 16:09:21 GMT",
6
+ "tag": "@fluentui-copilot/react-attachments_v0.12.5-hotfix.1",
7
+ "version": "0.12.5-hotfix.1",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "hochelmartin@gmail.com",
12
+ "package": "@fluentui-copilot/react-attachments",
13
+ "commit": "3e4ebe676646c4c4346dbbab83511f963ffefd85",
14
+ "comment": "release: prepare hotfix 0.26.2-hotfix.1"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 28 May 2025 16:45:32 GMT",
21
+ "tag": "@fluentui-copilot/react-attachments_v0.12.5",
22
+ "version": "0.12.5",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "owcampbe@microsoft.com",
27
+ "package": "@fluentui-copilot/react-attachments",
28
+ "commit": "8b9cb891b99700e9b77c54dd50752a47770be860",
29
+ "comment": "feat: Change dismissOnly styles."
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 19 May 2025 18:04:27 GMT",
36
+ "tag": "@fluentui-copilot/react-attachments_v0.12.4",
37
+ "version": "0.12.4",
38
+ "comments": {
39
+ "none": [
40
+ {
41
+ "author": "hochelmartin@gmail.com",
42
+ "package": "@fluentui-copilot/react-attachments",
43
+ "commit": "442954951d0eca92de20ecb0ff0fa9492431b62d",
44
+ "comment": "fix: exclude story files from production build"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Sat, 03 May 2025 01:27:43 GMT",
51
+ "tag": "@fluentui-copilot/react-attachments_v0.12.4",
52
+ "version": "0.12.4",
53
+ "comments": {
54
+ "patch": [
55
+ {
56
+ "author": "owcampbe@microsoft.com",
57
+ "package": "@fluentui-copilot/react-attachments",
58
+ "commit": "6657db60e115d6a62b6a8af9e365323cb4fd799a",
59
+ "comment": "feat: Update designVersion=next styles."
60
+ },
61
+ {
62
+ "author": "estebanmu@microsoft.com",
63
+ "package": "@fluentui-copilot/react-attachments",
64
+ "commit": "3dc05bb66ec473691f198f65b5124cc24390f47c",
65
+ "comment": "chore: Bump @fluentui/react-components to 9.63.0."
66
+ }
67
+ ]
68
+ }
69
+ },
70
+ {
71
+ "date": "Wed, 30 Apr 2025 01:47:48 GMT",
6
72
  "tag": "@fluentui-copilot/react-attachments_v0.12.3",
7
73
  "version": "0.12.3",
8
74
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,40 @@
1
1
  # Change Log - @fluentui-copilot/react-attachments
2
2
 
3
- This log was last generated on Wed, 30 Apr 2025 01:46:02 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 12 Aug 2025 16:09:21 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.12.5-hotfix.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.12.5-hotfix.1)
8
+
9
+ Tue, 12 Aug 2025 16:09:21 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.12.5..@fluentui-copilot/react-attachments_v0.12.5-hotfix.1)
11
+
12
+ ### Changes
13
+
14
+ - release: prepare hotfix 0.26.2-hotfix.1 ([PR #3284](https://github.com/microsoft/fluentai/pull/3284) by hochelmartin@gmail.com)
15
+
16
+ ## [0.12.5](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.12.5)
17
+
18
+ Wed, 28 May 2025 16:45:32 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.12.4..@fluentui-copilot/react-attachments_v0.12.5)
20
+
21
+ ### Patches
22
+
23
+ - feat: Change dismissOnly styles. ([PR #3020](https://github.com/microsoft/fluentai/pull/3020) by owcampbe@microsoft.com)
24
+
25
+ ## [0.12.4](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.12.4)
26
+
27
+ Sat, 03 May 2025 01:27:43 GMT
28
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.12.3..@fluentui-copilot/react-attachments_v0.12.4)
29
+
30
+ ### Patches
31
+
32
+ - feat: Update designVersion=next styles. ([PR #2976](https://github.com/microsoft/fluentai/pull/2976) by owcampbe@microsoft.com)
33
+ - chore: Bump @fluentui/react-components to 9.63.0. ([PR #2917](https://github.com/microsoft/fluentai/pull/2917) by estebanmu@microsoft.com)
34
+
7
35
  ## [0.12.3](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-attachments_v0.12.3)
8
36
 
9
- Wed, 30 Apr 2025 01:46:02 GMT
37
+ Wed, 30 Apr 2025 01:47:48 GMT
10
38
  [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-attachments_v0.12.2..@fluentui-copilot/react-attachments_v0.12.3)
11
39
 
12
40
  ### Patches
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import type { ComponentProps } from '@fluentui/react-components';
4
4
  import type { ComponentState } from '@fluentui/react-components';
5
5
  import type { Context } from '@fluentui/react-context-selector';
6
6
  import type { ContextSelector } from '@fluentui/react-context-selector';
7
- import { CopilotMode } from '@fluentui-copilot/react-provider';
8
- import { DesignVersion } from '@fluentui-copilot/react-provider';
7
+ import type { CopilotMode } from '@fluentui-copilot/react-provider';
8
+ import type { DesignVersion } from '@fluentui-copilot/react-provider';
9
9
  import { FC } from 'react';
10
10
  import type { ForwardRefComponent } from '@fluentui/react-components';
11
11
  import type { MenuContextValues } from '@fluentui/react-components';
@@ -57,7 +57,7 @@ export declare const AttachmentListContext: Context<AttachmentListContextValue>;
57
57
  /**
58
58
  * Context shared between AttachmentList and its children components
59
59
  */
60
- export declare type AttachmentListContextValue = Pick<AttachmentListState, 'onAttachmentDismiss' | 'shouldUseOverflow'>;
60
+ export declare type AttachmentListContextValue = Pick<AttachmentListState, 'onAttachmentDismiss' | 'shouldUseOverflow' | 'numberOfAttachments'>;
61
61
 
62
62
  declare type AttachmentListContextValues = {
63
63
  attachmentList: AttachmentListContextValue;
@@ -102,6 +102,7 @@ export declare type AttachmentListSlots = {
102
102
  */
103
103
  export declare type AttachmentListState = ComponentState<AttachmentListSlots> & Pick<AttachmentListProps, 'onAttachmentDismiss' | 'overflowMenuProps' | 'designVersion'> & {
104
104
  shouldUseOverflow: boolean;
105
+ numberOfAttachments: number;
105
106
  };
106
107
 
107
108
  export declare const AttachmentOverflowMenu: React_2.FC<AttachmentOverflowMenuProps>;
@@ -131,7 +132,12 @@ export declare type AttachmentOverflowMenuButtonSlots = {
131
132
  /**
132
133
  * State used in rendering AttachmentOverflowMenuButton
133
134
  */
134
- export declare type AttachmentOverflowMenuButtonState = ComponentState<AttachmentOverflowMenuButtonSlots> & Pick<AttachmentOverflowMenuState, 'isOverflowing' | 'overflowCount'> & Pick<AttachmentOverflowMenuButtonProps, 'isLoading'> & Pick<Required<AttachmentOverflowMenuButtonProps>, 'designVersion' | 'mode'>;
135
+ export declare type AttachmentOverflowMenuButtonState = ComponentState<AttachmentOverflowMenuButtonSlots> & Pick<AttachmentOverflowMenuState, 'isOverflowing' | 'overflowCount'> & Pick<AttachmentOverflowMenuButtonProps, 'isLoading'> & Pick<Required<AttachmentOverflowMenuButtonProps>, 'designVersion' | 'mode'> & {
136
+ /**
137
+ * True when all attachments are overflowed into the overflow menu.
138
+ */
139
+ fullyOverflowed: boolean;
140
+ };
135
141
 
136
142
  export declare const AttachmentOverflowMenuContext: Context<AttachmentOverflowMenuContextValue>;
137
143
 
@@ -442,7 +448,7 @@ export declare const useAttachmentOverflowMenu_unstable: (props: AttachmentOverf
442
448
  * @param props - props from this instance of AttachmentOverflowMenuButton
443
449
  * @param ref - reference to root HTMLElement of AttachmentOverflowMenuButton
444
450
  */
445
- export declare const useAttachmentOverflowMenuButton_unstable: (props: AttachmentOverflowMenuButtonProps, ref: React.Ref<HTMLButtonElement>) => AttachmentOverflowMenuButtonState;
451
+ export declare const useAttachmentOverflowMenuButton_unstable: (props: AttachmentOverflowMenuButtonProps, ref: React_2.Ref<HTMLButtonElement>) => AttachmentOverflowMenuButtonState;
446
452
 
447
453
  /**
448
454
  * Apply styling to the AttachmentOverflowMenuButton slots based on the state
package/lib/AgentTag.js CHANGED
@@ -1,2 +1 @@
1
1
  export { AgentTag, renderAgentTag_unstable, useAgentTag_unstable, agentTagClassNames, useAgentTagStyles_unstable } from './components/AgentTag/index';
2
- //# sourceMappingURL=AgentTag.js.map
package/lib/Attachment.js CHANGED
@@ -1,2 +1 @@
1
1
  export { Attachment, attachmentClassNames, renderAttachment_unstable, useAttachmentStyles_unstable, useAttachment_unstable, useOverflowStyles } from './components/Attachment/index';
2
- //# sourceMappingURL=Attachment.js.map
@@ -1,2 +1 @@
1
1
  export { AttachmentList, attachmentListClassNames, renderAttachmentList_unstable, useAttachmentListStyles_unstable, useAttachmentList_unstable } from './components/AttachmentList/index';
2
- //# sourceMappingURL=AttachmentList.js.map
@@ -1,2 +1 @@
1
1
  export { AttachmentOverflowMenu, renderAttachmentOverflowMenu_unstable, useAttachmentOverflowMenuContextValues_unstable, useAttachmentOverflowMenu_unstable } from './components/AttachmentOverflowMenu/index';
2
- //# sourceMappingURL=AttachmentOverflowMenu.js.map
@@ -1,2 +1 @@
1
1
  export { AttachmentOverflowMenuButton, attachmentOverflowMenuButtonClassNames, renderAttachmentOverflowMenuButton_unstable, useAttachmentOverflowMenuButtonStyles_unstable, useAttachmentOverflowMenuButton_unstable } from './components/AttachmentOverflowMenuButton/index';
2
- //# sourceMappingURL=AttachmentOverflowMenuButton.js.map
@@ -1,2 +1 @@
1
1
  export { AttachmentOverflowMenuItem, attachmentOverflowMenuItemClassNames, renderAttachmentOverflowMenuItem_unstable, useAttachmentOverflowMenuItemStyles_unstable, useAttachmentOverflowMenuItem_unstable } from './components/AttachmentOverflowMenuItem/index';
2
- //# sourceMappingURL=AttachmentOverflowMenuItem.js.map
@@ -1,2 +1 @@
1
1
  export { ATTACHMENTTAG_MAXWIDTH, AttachmentTag, attachmentTagClassNames, renderAttachmentTag_unstable, useAttachmentTagStyles_unstable, useAttachmentTag_unstable, useContentBaseClassName, useIconBaseClassName, useMediaBaseClassName } from './components/AttachmentTag/index';
2
- //# sourceMappingURL=AttachmentTag.js.map
@@ -1,2 +1 @@
1
1
  export { AttachmentTagItem, attachmentTagItemClassNames, renderAttachmentTagItem_unstable, useAttachmentTagItemStyles_unstable, useAttachmentTagItem_unstable } from './components/AttachmentTagItem/index';
2
- //# sourceMappingURL=AttachmentTagItem.js.map
@@ -1,2 +1 @@
1
1
  export { AttachmentTagList, attachmentTagListClassNames, renderAttachmentTagList_unstable, useAttachmentTagListStyles_unstable, useAttachmentTagList_unstable } from './components/AttachmentTagList/index';
2
- //# sourceMappingURL=AttachmentTagList.js.map
@@ -3,10 +3,9 @@ import { useAgentTag_unstable } from './useAgentTag';
3
3
  import { renderAgentTag_unstable } from './renderAgentTag';
4
4
  import { useAgentTagStyles_unstable } from './useAgentTagStyles.styles';
5
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);
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
10
  });
11
11
  AgentTag.displayName = 'AgentTag';
12
- //# sourceMappingURL=AgentTag.js.map
@@ -1,4 +1,3 @@
1
1
  /**
2
2
  * State used in rendering AgentTag
3
- */export {};
4
- //# sourceMappingURL=AgentTag.types.js.map
3
+ */ export { };
@@ -2,4 +2,3 @@ export { AgentTag } from './AgentTag';
2
2
  export { renderAgentTag_unstable } from './renderAgentTag';
3
3
  export { useAgentTag_unstable } from './useAgentTag';
4
4
  export { agentTagClassNames, useAgentTagStyles_unstable } from './useAgentTagStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,8 +1,6 @@
1
- import { renderAttachment_unstable } from '../Attachment';
1
+ import { renderAttachment_unstable } from '../Attachment';
2
2
  /**
3
3
  * Render the final JSX of AgentTag
4
- */
5
- export const renderAgentTag_unstable = state => {
6
- return renderAttachment_unstable(state);
4
+ */ export const renderAgentTag_unstable = (state)=>{
5
+ return renderAttachment_unstable(state);
7
6
  };
8
- //# sourceMappingURL=renderAgentTag.js.map
@@ -8,13 +8,11 @@ import { useAttachment_unstable } from '..';
8
8
  *
9
9
  * @param props - props from this instance of AgentTag
10
10
  * @param ref - reference to root HTMLElement of AgentTag
11
- */
12
- export const useAgentTag_unstable = (props, ref) => {
13
- const state = useAttachment_unstable({
14
- ...props,
15
- dismissOnly: true,
16
- designVersion: 'next'
17
- }, ref);
18
- return state;
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;
19
18
  };
20
- //# sourceMappingURL=useAgentTag.js.map
@@ -0,0 +1,66 @@
1
+ import { makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';
2
+ import { useAttachmentStyles_unstable } from '..';
3
+ import { tokens } 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 = makeStyles({
14
+ canvas: {
15
+ width: '24px',
16
+ height: '24px'
17
+ },
18
+ sidecar: {
19
+ width: '20px',
20
+ height: '20px'
21
+ }
22
+ });
23
+ const useContentStyles = makeStyles({
24
+ canvas: {
25
+ ...typographyStyles.subtitle2,
26
+ color: tokens.colorNeutralForeground2
27
+ },
28
+ sidecar: {
29
+ ...typographyStyles.body1Strong,
30
+ color: tokens.colorNeutralForeground2
31
+ }
32
+ });
33
+ const useDismissButtonStyles = makeStyles({
34
+ canvas: {
35
+ borderRadius: tokens.borderRadius2XL,
36
+ paddingLeft: tokens.spacingHorizontalL,
37
+ paddingRight: tokens.spacingHorizontalM
38
+ },
39
+ sidecar: {
40
+ paddingLeft: tokens.spacingHorizontalM,
41
+ paddingRight: tokens.spacingHorizontalS,
42
+ borderRadius: tokens.borderRadiusXLarge
43
+ }
44
+ });
45
+ /**
46
+ * Apply styling to the AgentTag slots based on the state
47
+ */ export const useAgentTagStyles_unstable = (state)=>{
48
+ 'use no memo';
49
+ const { mode } = state;
50
+ const contentStyles = useContentStyles();
51
+ const dismissButtonStyles = useDismissButtonStyles();
52
+ const mediaStyles = useMediaStyles();
53
+ state.root.className = mergeClasses(agentTagClassNames.root, state.root.className);
54
+ state.primaryAction.className = mergeClasses(agentTagClassNames.primaryAction, state.primaryAction.className);
55
+ state.dismissIcon.className = mergeClasses(agentTagClassNames.dismissIcon, state.dismissIcon.className);
56
+ state.dismissButton.className = mergeClasses(agentTagClassNames.dismissButton, dismissButtonStyles[mode], state.dismissButton.className);
57
+ if (state.media) {
58
+ state.media.className = mergeClasses(agentTagClassNames.media, mediaStyles[mode], state.media.className);
59
+ }
60
+ state.content.className = mergeClasses(agentTagClassNames.content, contentStyles[mode], state.content.className);
61
+ if (state.progress) {
62
+ state.progress.className = mergeClasses(agentTagClassNames.progress, state.progress.className);
63
+ }
64
+ useAttachmentStyles_unstable(state);
65
+ return state;
66
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAgentTagStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport type { AgentTagSlots, AgentTagState } from './AgentTag.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\nimport { useAttachmentStyles_unstable } from '..';\nimport { tokens } 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","typographyStyles","useAttachmentStyles_unstable","tokens","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,EAAEC,gBAAgB,QAAQ,6BAA6B;AAGxF,SAASC,4BAA4B,QAAQ,KAAK;AAClD,SAASC,MAAM,QAAQ,2BAA2B;AAElD,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,GAAGZ,iBAAiBiB,SAAS;QAC7BC,OAAOhB,OAAOiB,uBAAuB;IACvC;IACAJ,SAAS;QACP,GAAGf,iBAAiBoB,WAAW;QAC/BF,OAAOhB,OAAOiB,uBAAuB;IACvC;AACF;AAEA,MAAME,yBAAyBvB,WAAW;IACxCc,QAAQ;QACNU,cAAcpB,OAAOqB,eAAe;QACpCC,aAAatB,OAAOuB,kBAAkB;QACtCC,cAAcxB,OAAOyB,kBAAkB;IACzC;IACAZ,SAAS;QACPS,aAAatB,OAAOyB,kBAAkB;QACtCD,cAAcxB,OAAO0B,kBAAkB;QACvCN,cAAcpB,OAAO2B,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;IAEAnC,6BAA6B8B;IAE7B,OAAOA;AACT,EAAE"}
@@ -4,11 +4,10 @@ import { renderAttachment_unstable } from './renderAttachment';
4
4
  import { useAttachmentStyles_unstable } from './useAttachmentStyles.styles';
5
5
  import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
6
  // Attachment component - TODO: add more docs
7
- export const Attachment = /*#__PURE__*/React.forwardRef((props, ref) => {
8
- const state = useAttachment_unstable(props, ref);
9
- useAttachmentStyles_unstable(state);
10
- useCustomStyleHook('useAttachmentStyles')(state);
11
- return renderAttachment_unstable(state);
7
+ export const Attachment = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
+ const state = useAttachment_unstable(props, ref);
9
+ useAttachmentStyles_unstable(state);
10
+ useCustomStyleHook('useAttachmentStyles')(state);
11
+ return renderAttachment_unstable(state);
12
12
  });
13
13
  Attachment.displayName = 'Attachment';
14
- //# sourceMappingURL=Attachment.js.map
@@ -1,4 +1,3 @@
1
1
  /**
2
2
  * State used in rendering Attachment
3
- */export {};
4
- //# sourceMappingURL=Attachment.types.js.map
3
+ */ export { };
@@ -2,4 +2,3 @@ export { Attachment } from './Attachment';
2
2
  export { renderAttachment_unstable } from './renderAttachment';
3
3
  export { useAttachment_unstable } from './useAttachment';
4
4
  export { attachmentClassNames, useAttachmentStyles_unstable, useOverflowStyles } from './useAttachmentStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,37 +1,42 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { OverflowItem, assertSlots } from '@fluentui/react-components';
3
3
  /**
4
4
  * Render the final JSX of Attachment
5
- */
6
- export const renderAttachment_unstable = state => {
7
- const {
8
- id,
9
- shouldUseOverflow,
10
- designVersion,
11
- dismissOnly
12
- } = state;
13
- const attachment = designVersion === 'next' && dismissOnly ? renderDismissOnly(state) : renderAttachment(state);
14
- return shouldUseOverflow ? /*#__PURE__*/_jsx(OverflowItem, {
15
- id: id,
16
- children: attachment
17
- }, id) : attachment;
5
+ */ export const renderAttachment_unstable = (state)=>{
6
+ const { id, shouldUseOverflow, designVersion, dismissOnly } = state;
7
+ const attachment = designVersion === 'next' && dismissOnly ? renderDismissOnly(state) : renderAttachment(state);
8
+ return shouldUseOverflow ? /*#__PURE__*/ _jsx(OverflowItem, {
9
+ id: id,
10
+ children: attachment
11
+ }, id) : attachment;
18
12
  };
19
- const renderAttachment = state => {
20
- assertSlots(state);
21
- return /*#__PURE__*/_jsxs(state.root, {
22
- children: [/*#__PURE__*/_jsxs(state.primaryAction, {
23
- children: [state.media && !state.imageOnly && /*#__PURE__*/_jsx(state.media, {}), /*#__PURE__*/_jsx(state.content, {}), state.progress && /*#__PURE__*/_jsx(state.progress, {})]
24
- }), /*#__PURE__*/_jsx(state.dismissButton, {
25
- children: /*#__PURE__*/_jsx(state.dismissIcon, {})
26
- })]
27
- });
13
+ const renderAttachment = (state)=>{
14
+ assertSlots(state);
15
+ return /*#__PURE__*/ _jsxs(state.root, {
16
+ children: [
17
+ /*#__PURE__*/ _jsxs(state.primaryAction, {
18
+ children: [
19
+ state.media && !state.imageOnly && /*#__PURE__*/ _jsx(state.media, {}),
20
+ /*#__PURE__*/ _jsx(state.content, {}),
21
+ state.progress && /*#__PURE__*/ _jsx(state.progress, {})
22
+ ]
23
+ }),
24
+ /*#__PURE__*/ _jsx(state.dismissButton, {
25
+ children: /*#__PURE__*/ _jsx(state.dismissIcon, {})
26
+ })
27
+ ]
28
+ });
28
29
  };
29
- const renderDismissOnly = state => {
30
- assertSlots(state);
31
- return /*#__PURE__*/_jsx(state.root, {
32
- children: /*#__PURE__*/_jsxs(state.dismissButton, {
33
- children: [state.media && !state.imageOnly && /*#__PURE__*/_jsx(state.media, {}), /*#__PURE__*/_jsx(state.content, {}), state.progress && /*#__PURE__*/_jsx(state.progress, {}), /*#__PURE__*/_jsx(state.dismissIcon, {})]
34
- })
35
- });
30
+ const renderDismissOnly = (state)=>{
31
+ assertSlots(state);
32
+ return /*#__PURE__*/ _jsx(state.root, {
33
+ children: /*#__PURE__*/ _jsxs(state.dismissButton, {
34
+ children: [
35
+ state.media && !state.imageOnly && /*#__PURE__*/ _jsx(state.media, {}),
36
+ /*#__PURE__*/ _jsx(state.content, {}),
37
+ state.progress && /*#__PURE__*/ _jsx(state.progress, {}),
38
+ /*#__PURE__*/ _jsx(state.dismissIcon, {})
39
+ ]
40
+ })
41
+ });
36
42
  };
37
- //# sourceMappingURL=renderAttachment.js.map