@fluentui-copilot/react-reference 0.15.4 → 0.16.0

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 (226) hide show
  1. package/CHANGELOG.json +45 -1
  2. package/CHANGELOG.md +24 -1
  3. package/dist/index.d.ts +88 -290
  4. package/lib/Reference.js.map +1 -1
  5. package/lib/ReferenceList.js +1 -1
  6. package/lib/ReferenceList.js.map +1 -1
  7. package/lib/ReferenceOverflowButton.js +1 -1
  8. package/lib/ReferenceOverflowButton.js.map +1 -1
  9. package/lib/components/Citation/useCitationStyles.styles.js +3 -3
  10. package/lib/components/Citation/useCitationStyles.styles.js.map +1 -1
  11. package/lib/components/Reference/Reference.js +0 -3
  12. package/lib/components/Reference/Reference.js.map +1 -1
  13. package/lib/components/Reference/Reference.types.js +1 -1
  14. package/lib/components/Reference/Reference.types.js.map +1 -1
  15. package/lib/components/Reference/index.js.map +1 -1
  16. package/lib/components/Reference/renderReference.js +13 -8
  17. package/lib/components/Reference/renderReference.js.map +1 -1
  18. package/lib/components/Reference/useReference.js +46 -166
  19. package/lib/components/Reference/useReference.js.map +1 -1
  20. package/lib/components/Reference/useReferenceStyles.styles.js +40 -220
  21. package/lib/components/Reference/useReferenceStyles.styles.js.map +1 -1
  22. package/lib/components/ReferenceList/ReferenceList.js +4 -5
  23. package/lib/components/ReferenceList/ReferenceList.js.map +1 -1
  24. package/lib/components/ReferenceList/ReferenceList.types.js +1 -1
  25. package/lib/components/ReferenceList/ReferenceList.types.js.map +1 -1
  26. package/lib/components/ReferenceList/index.js +1 -1
  27. package/lib/components/ReferenceList/index.js.map +1 -1
  28. package/lib/components/ReferenceList/renderReferenceList.js +19 -5
  29. package/lib/components/ReferenceList/renderReferenceList.js.map +1 -1
  30. package/lib/components/ReferenceList/useReferenceList.js +76 -14
  31. package/lib/components/ReferenceList/useReferenceList.js.map +1 -1
  32. package/lib/components/ReferenceList/useReferenceListStyles.styles.js +31 -9
  33. package/lib/components/ReferenceList/useReferenceListStyles.styles.js.map +1 -1
  34. package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButton.js +1 -1
  35. package/lib/components/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -0
  36. package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js +2 -2
  37. package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js.map +1 -1
  38. package/lib/contexts/referenceListContext.js.map +1 -0
  39. package/lib/index.js +31 -8
  40. package/lib/index.js.map +1 -1
  41. package/lib/utilities/{reference-v2/generateReferenceCitationPreview.js → generateReferenceCitationPreview.js} +2 -2
  42. package/lib/utilities/generateReferenceCitationPreview.js.map +1 -0
  43. package/lib/utilities/index.js +1 -1
  44. package/lib/utilities/index.js.map +1 -1
  45. package/lib/utilities/useReferenceCitationPreview.js +12 -123
  46. package/lib/utilities/useReferenceCitationPreview.js.map +1 -1
  47. package/lib-commonjs/Reference.js.map +1 -1
  48. package/lib-commonjs/ReferenceList.js +0 -3
  49. package/lib-commonjs/ReferenceList.js.map +1 -1
  50. package/lib-commonjs/ReferenceOverflowButton.js +1 -1
  51. package/lib-commonjs/ReferenceOverflowButton.js.map +1 -1
  52. package/lib-commonjs/components/Citation/useCitationStyles.styles.js +7 -7
  53. package/lib-commonjs/components/Citation/useCitationStyles.styles.js.map +1 -1
  54. package/lib-commonjs/components/Reference/Reference.js +0 -2
  55. package/lib-commonjs/components/Reference/Reference.js.map +1 -1
  56. package/lib-commonjs/components/Reference/Reference.types.js +1 -1
  57. package/lib-commonjs/components/Reference/Reference.types.js.map +1 -1
  58. package/lib-commonjs/components/Reference/index.js.map +1 -1
  59. package/lib-commonjs/components/Reference/renderReference.js +11 -18
  60. package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
  61. package/lib-commonjs/components/Reference/useReference.js +42 -167
  62. package/lib-commonjs/components/Reference/useReference.js.map +1 -1
  63. package/lib-commonjs/components/Reference/useReferenceStyles.styles.js +56 -324
  64. package/lib-commonjs/components/Reference/useReferenceStyles.styles.js.map +1 -1
  65. package/lib-commonjs/components/ReferenceList/ReferenceList.js +4 -4
  66. package/lib-commonjs/components/ReferenceList/ReferenceList.js.map +1 -1
  67. package/lib-commonjs/components/ReferenceList/ReferenceList.types.js +1 -1
  68. package/lib-commonjs/components/ReferenceList/ReferenceList.types.js.map +1 -1
  69. package/lib-commonjs/components/ReferenceList/index.js +0 -3
  70. package/lib-commonjs/components/ReferenceList/index.js.map +1 -1
  71. package/lib-commonjs/components/ReferenceList/renderReferenceList.js +16 -2
  72. package/lib-commonjs/components/ReferenceList/renderReferenceList.js.map +1 -1
  73. package/lib-commonjs/components/ReferenceList/useReferenceList.js +67 -11
  74. package/lib-commonjs/components/ReferenceList/useReferenceList.js.map +1 -1
  75. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.js +34 -9
  76. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.js.map +1 -1
  77. package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButton.js +1 -1
  78. package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -0
  79. package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js.map +1 -1
  80. package/lib-commonjs/contexts/referenceListContext.js.map +1 -0
  81. package/lib-commonjs/index.js +33 -40
  82. package/lib-commonjs/index.js.map +1 -1
  83. package/lib-commonjs/utilities/{reference-v2/generateReferenceCitationPreview.js → generateReferenceCitationPreview.js} +3 -3
  84. package/lib-commonjs/utilities/generateReferenceCitationPreview.js.map +1 -0
  85. package/lib-commonjs/utilities/index.js +4 -4
  86. package/lib-commonjs/utilities/index.js.map +1 -1
  87. package/lib-commonjs/utilities/useReferenceCitationPreview.js +4 -129
  88. package/lib-commonjs/utilities/useReferenceCitationPreview.js.map +1 -1
  89. package/package.json +4 -4
  90. package/lib/ReferenceGroupToggle.js +0 -2
  91. package/lib/ReferenceGroupToggle.js.map +0 -1
  92. package/lib/ReferenceListV2.js +0 -2
  93. package/lib/ReferenceListV2.js.map +0 -1
  94. package/lib/ReferenceV2.js +0 -2
  95. package/lib/ReferenceV2.js.map +0 -1
  96. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.js +0 -12
  97. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.js.map +0 -1
  98. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +0 -4
  99. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js.map +0 -1
  100. package/lib/components/ReferenceGroupToggle/index.js +0 -5
  101. package/lib/components/ReferenceGroupToggle/index.js.map +0 -1
  102. package/lib/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +0 -12
  103. package/lib/components/ReferenceGroupToggle/renderReferenceGroupToggle.js.map +0 -1
  104. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggle.js +0 -43
  105. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggle.js.map +0 -1
  106. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js +0 -43
  107. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js.map +0 -1
  108. package/lib/components/reference-v2/Reference/Reference.js +0 -11
  109. package/lib/components/reference-v2/Reference/Reference.js.map +0 -1
  110. package/lib/components/reference-v2/Reference/Reference.types.js +0 -2
  111. package/lib/components/reference-v2/Reference/Reference.types.js.map +0 -1
  112. package/lib/components/reference-v2/Reference/index.js +0 -5
  113. package/lib/components/reference-v2/Reference/index.js.map +0 -1
  114. package/lib/components/reference-v2/Reference/renderReference.js +0 -19
  115. package/lib/components/reference-v2/Reference/renderReference.js.map +0 -1
  116. package/lib/components/reference-v2/Reference/useReference.js +0 -74
  117. package/lib/components/reference-v2/Reference/useReference.js.map +0 -1
  118. package/lib/components/reference-v2/Reference/useReferenceStyles.styles.js +0 -70
  119. package/lib/components/reference-v2/Reference/useReferenceStyles.styles.js.map +0 -1
  120. package/lib/components/reference-v2/ReferenceList/ReferenceList.js +0 -13
  121. package/lib/components/reference-v2/ReferenceList/ReferenceList.js.map +0 -1
  122. package/lib/components/reference-v2/ReferenceList/ReferenceList.types.js +0 -2
  123. package/lib/components/reference-v2/ReferenceList/ReferenceList.types.js.map +0 -1
  124. package/lib/components/reference-v2/ReferenceList/index.js +0 -5
  125. package/lib/components/reference-v2/ReferenceList/index.js.map +0 -1
  126. package/lib/components/reference-v2/ReferenceList/renderReferenceList.js +0 -22
  127. package/lib/components/reference-v2/ReferenceList/renderReferenceList.js.map +0 -1
  128. package/lib/components/reference-v2/ReferenceList/useReferenceList.js +0 -93
  129. package/lib/components/reference-v2/ReferenceList/useReferenceList.js.map +0 -1
  130. package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js +0 -46
  131. package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js.map +0 -1
  132. package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js.map +0 -1
  133. package/lib/components/reference-v2/index.js +0 -4
  134. package/lib/components/reference-v2/index.js.map +0 -1
  135. package/lib/contexts/ReferenceGroupContext.js +0 -11
  136. package/lib/contexts/ReferenceGroupContext.js.map +0 -1
  137. package/lib/contexts/reference-v2/referenceListContext.js.map +0 -1
  138. package/lib/utilities/reference-v2/generateReferenceCitationPreview.js.map +0 -1
  139. package/lib/utilities/reference-v2/index.js +0 -3
  140. package/lib/utilities/reference-v2/index.js.map +0 -1
  141. package/lib/utilities/reference-v2/useReferenceCitationPreview.js +0 -18
  142. package/lib/utilities/reference-v2/useReferenceCitationPreview.js.map +0 -1
  143. package/lib/utilities/useReferenceGroup.js +0 -40
  144. package/lib/utilities/useReferenceGroup.js.map +0 -1
  145. package/lib-commonjs/ReferenceGroupToggle.js +0 -29
  146. package/lib-commonjs/ReferenceGroupToggle.js.map +0 -1
  147. package/lib-commonjs/ReferenceListV2.js +0 -29
  148. package/lib-commonjs/ReferenceListV2.js.map +0 -1
  149. package/lib-commonjs/ReferenceV2.js +0 -32
  150. package/lib-commonjs/ReferenceV2.js.map +0 -1
  151. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js +0 -21
  152. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js.map +0 -1
  153. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +0 -7
  154. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js.map +0 -1
  155. package/lib-commonjs/components/ReferenceGroupToggle/index.js +0 -32
  156. package/lib-commonjs/components/ReferenceGroupToggle/index.js.map +0 -1
  157. package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +0 -21
  158. package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js.map +0 -1
  159. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js +0 -42
  160. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js.map +0 -1
  161. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js +0 -64
  162. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js.map +0 -1
  163. package/lib-commonjs/components/reference-v2/Reference/Reference.js +0 -21
  164. package/lib-commonjs/components/reference-v2/Reference/Reference.js.map +0 -1
  165. package/lib-commonjs/components/reference-v2/Reference/Reference.types.js +0 -5
  166. package/lib-commonjs/components/reference-v2/Reference/Reference.types.js.map +0 -1
  167. package/lib-commonjs/components/reference-v2/Reference/index.js +0 -35
  168. package/lib-commonjs/components/reference-v2/Reference/index.js.map +0 -1
  169. package/lib-commonjs/components/reference-v2/Reference/renderReference.js +0 -32
  170. package/lib-commonjs/components/reference-v2/Reference/renderReference.js.map +0 -1
  171. package/lib-commonjs/components/reference-v2/Reference/useReference.js +0 -71
  172. package/lib-commonjs/components/reference-v2/Reference/useReference.js.map +0 -1
  173. package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.js +0 -109
  174. package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.js.map +0 -1
  175. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js +0 -23
  176. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js.map +0 -1
  177. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.types.js +0 -5
  178. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.types.js.map +0 -1
  179. package/lib-commonjs/components/reference-v2/ReferenceList/index.js +0 -32
  180. package/lib-commonjs/components/reference-v2/ReferenceList/index.js.map +0 -1
  181. package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js +0 -30
  182. package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js.map +0 -1
  183. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js +0 -86
  184. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js.map +0 -1
  185. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js +0 -62
  186. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js.map +0 -1
  187. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js.map +0 -1
  188. package/lib-commonjs/components/reference-v2/index.js +0 -64
  189. package/lib-commonjs/components/reference-v2/index.js.map +0 -1
  190. package/lib-commonjs/contexts/ReferenceGroupContext.js +0 -29
  191. package/lib-commonjs/contexts/ReferenceGroupContext.js.map +0 -1
  192. package/lib-commonjs/contexts/reference-v2/referenceListContext.js.map +0 -1
  193. package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js.map +0 -1
  194. package/lib-commonjs/utilities/reference-v2/index.js +0 -21
  195. package/lib-commonjs/utilities/reference-v2/index.js.map +0 -1
  196. package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js +0 -18
  197. package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js.map +0 -1
  198. package/lib-commonjs/utilities/useReferenceGroup.js +0 -49
  199. package/lib-commonjs/utilities/useReferenceGroup.js.map +0 -1
  200. /package/lib/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js +0 -0
  201. /package/lib/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js.map +0 -0
  202. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js +0 -0
  203. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js.map +0 -0
  204. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js +0 -0
  205. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js.map +0 -0
  206. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js +0 -0
  207. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js.map +0 -0
  208. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js +0 -0
  209. /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js.map +0 -0
  210. /package/lib/contexts/{reference-v2/index.js → index.js} +0 -0
  211. /package/lib/contexts/{reference-v2/index.js.map → index.js.map} +0 -0
  212. /package/lib/contexts/{reference-v2/referenceListContext.js → referenceListContext.js} +0 -0
  213. /package/lib-commonjs/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js +0 -0
  214. /package/lib-commonjs/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js.map +0 -0
  215. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js +0 -0
  216. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js.map +0 -0
  217. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js +0 -0
  218. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js.map +0 -0
  219. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js +0 -0
  220. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js.map +0 -0
  221. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js +0 -0
  222. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js.map +0 -0
  223. /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js +0 -0
  224. /package/lib-commonjs/contexts/{reference-v2/index.js → index.js} +0 -0
  225. /package/lib-commonjs/contexts/{reference-v2/index.js.map → index.js.map} +0 -0
  226. /package/lib-commonjs/contexts/{reference-v2/referenceListContext.js → referenceListContext.js} +0 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,51 @@
2
2
  "name": "@fluentui-copilot/react-reference",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 19 May 2025 18:03:24 GMT",
5
+ "date": "Thu, 12 Jun 2025 17:49:28 GMT",
6
+ "tag": "@fluentui-copilot/react-reference_v0.16.0",
7
+ "version": "0.16.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "jiangemma@microsoft.com",
12
+ "package": "@fluentui-copilot/react-reference",
13
+ "commit": "518dd2e5e4fed30451abe6e9a657a14440c872d4",
14
+ "comment": "chore: Remove deprecated Reference, ReferenceList, ReferenceGroupToggle components"
15
+ },
16
+ {
17
+ "author": "jiangemma@microsoft.com",
18
+ "package": "@fluentui-copilot/react-reference",
19
+ "commit": "20deef335194400cc40c70dd60ea4f69b5829c9e",
20
+ "comment": "chore: Export ReferenceV2 as Reference and ReferenceListV2 as ReferenceList."
21
+ }
22
+ ],
23
+ "patch": [
24
+ {
25
+ "author": "Humberto.Morimoto@microsoft.com",
26
+ "package": "@fluentui-copilot/react-reference",
27
+ "commit": "53a6e5419e6170dea520ebec933d347ce0bedb60",
28
+ "comment": "chore: Update typographyStyles import to use @fluentui-copilot/tokens instead of @fluentui/react-components"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ {
34
+ "date": "Wed, 28 May 2025 16:45:32 GMT",
35
+ "tag": "@fluentui-copilot/react-reference_v0.15.5",
36
+ "version": "0.15.5",
37
+ "comments": {
38
+ "patch": [
39
+ {
40
+ "author": "mgodbolt@microsoft.com",
41
+ "package": "@fluentui-copilot/react-reference",
42
+ "commit": "5f0ad3bf1731d25041cfd0b24d690201799162a5",
43
+ "comment": "Citation: Add padding to prevent numbers from touching the border"
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ {
49
+ "date": "Mon, 19 May 2025 18:04:28 GMT",
6
50
  "tag": "@fluentui-copilot/react-reference_v0.15.4",
7
51
  "version": "0.15.4",
8
52
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,9 +1,32 @@
1
1
  # Change Log - @fluentui-copilot/react-reference
2
2
 
3
- This log was last generated on Sat, 03 May 2025 01:27:44 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 12 Jun 2025 17:49:28 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.16.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.16.0)
8
+
9
+ Thu, 12 Jun 2025 17:49:28 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.15.5..@fluentui-copilot/react-reference_v0.16.0)
11
+
12
+ ### Minor changes
13
+
14
+ - chore: Remove deprecated Reference, ReferenceList, ReferenceGroupToggle components ([PR #3073](https://github.com/microsoft/fluentai/pull/3073) by jiangemma@microsoft.com)
15
+ - chore: Export ReferenceV2 as Reference and ReferenceListV2 as ReferenceList. ([PR #3088](https://github.com/microsoft/fluentai/pull/3088) by jiangemma@microsoft.com)
16
+
17
+ ### Patches
18
+
19
+ - chore: Update typographyStyles import to use @fluentui-copilot/tokens instead of @fluentui/react-components ([PR #3125](https://github.com/microsoft/fluentai/pull/3125) by Humberto.Morimoto@microsoft.com)
20
+
21
+ ## [0.15.5](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.15.5)
22
+
23
+ Wed, 28 May 2025 16:45:32 GMT
24
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.15.4..@fluentui-copilot/react-reference_v0.15.5)
25
+
26
+ ### Patches
27
+
28
+ - Citation: Add padding to prevent numbers from touching the border ([PR #3054](https://github.com/microsoft/fluentai/pull/3054) by mgodbolt@microsoft.com)
29
+
7
30
  ## [0.15.3](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.15.3)
8
31
 
9
32
  Sat, 03 May 2025 01:27:44 GMT
package/dist/index.d.ts CHANGED
@@ -1,14 +1,13 @@
1
1
  /// <reference types="react" />
2
2
 
3
- import type { Button } from '@fluentui/react-components';
4
3
  import type { ComponentProps } from '@fluentui/react-components';
5
4
  import type { ComponentState } from '@fluentui/react-components';
6
5
  import type { Context } from '@fluentui/react-context-selector';
7
6
  import type { ContextSelector } from '@fluentui/react-context-selector';
8
- import type { CopilotMode } from '@fluentui-copilot/react-provider';
9
7
  import type { DesignVersion } from '@fluentui-copilot/react-provider';
10
8
  import { FC } from 'react';
11
9
  import type { ForwardRefComponent } from '@fluentui/react-components';
10
+ import { ForwardRefComponent as ForwardRefComponent_2 } from '@fluentui/react-utilities';
12
11
  import type { PreviewHeaderProps } from '@fluentui-copilot/react-preview';
13
12
  import type { PreviewMetadataProps } from '@fluentui-copilot/react-preview';
14
13
  import type { PreviewProps } from '@fluentui-copilot/react-preview';
@@ -16,9 +15,11 @@ import type { PreviewSurfaceProps } from '@fluentui-copilot/react-preview';
16
15
  import { Provider } from 'react';
17
16
  import { ProviderProps } from 'react';
18
17
  import * as React_2 from 'react';
18
+ import { Ref } from 'react';
19
19
  import type { SensitivityLabelProps } from '@fluentui-copilot/react-sensitivity-label';
20
20
  import type { Slot } from '@fluentui/react-components';
21
21
  import type { SlotClassNames } from '@fluentui/react-components';
22
+ import { SlotClassNames as SlotClassNames_2 } from '@fluentui/react-utilities';
22
23
 
23
24
  export declare const Citation: ForwardRefComponent<CitationProps>;
24
25
 
@@ -67,62 +68,28 @@ export declare type CitationState = ComponentState<CitationSlots> & Required<Pic
67
68
  */
68
69
  export declare const generateReferenceCitationPreview: ReferenceCitationPreviewGenerator;
69
70
 
70
- /**
71
- * A "packaged Citation". A packaged Citation is a `Citation` that is
72
- * pre-packaged with props set by the `useReferenceCitation` hook.
73
- */
74
- export declare type PackagedCitation = React_2.FC<PackagedCitationProps>;
75
-
76
- /**
77
- * Props for a "packaged Citation". A packaged Citation is a `Citation` that is
78
- * pre-packaged with props set by the `useReferenceCitation` hook.
79
- */
80
- export declare type PackagedCitationProps = Omit<CitationProps, 'referenceHref'> & Partial<Pick<CitationProps, 'referenceHref'>>;
71
+ export declare type PackagedCitation = React_2.FC<CitationProps>;
81
72
 
82
- export declare type PackagedCitationV2 = React_2.FC<CitationProps>;
73
+ /** @deprecated use PackagedCitation */
74
+ export declare type PackagedCitationV2 = PackagedCitation;
83
75
 
84
- export declare type PackagedPreviewContentV2Props = Pick<PreviewMetadataProps, 'icon' | 'primaryText' | 'secondaryText' | 'tertiaryText'> & {
76
+ export declare type PackagedPreviewContentProps = Pick<PreviewMetadataProps, 'icon' | 'primaryText' | 'secondaryText' | 'tertiaryText'> & {
85
77
  content?: React_2.ReactNode;
86
78
  };
87
79
 
88
- /**
89
- * A "packaged Reference". A packaged Reference is a `Reference` that is
90
- * pre-packaged with props set by the `useReferenceCitation` hook.
91
- */
92
- export declare type PackagedReference = React_2.FC<PackagedReferenceProps>;
80
+ /** @deprecated use PackagedPreviewContentProps */
81
+ export declare type PackagedPreviewContentV2Props = PackagedPreviewContentProps;
93
82
 
94
- /**
95
- * Props for a "packaged Reference". A packaged Reference is a `Reference` that is
96
- * pre-packaged with props set by the `useReferenceCitation` hook.
97
- */
98
- export declare type PackagedReferenceProps = Omit<ReferenceProps, PartialReferenceProps> & Partial<Pick<ReferenceProps, PartialReferenceProps>>;
83
+ export declare type PackagedReference = React_2.FC<ReferenceProps>;
99
84
 
100
- export declare type PackagedReferenceV2 = React_2.FC<ReferenceV2Props>;
85
+ /** @deprecated use PackagedReference */
86
+ export declare type PackagedReferenceV2 = PackagedReference;
101
87
 
102
- declare type PartialReferenceProps = 'citationHref' | 'index' | 'referenceId';
103
-
104
- /** deprecated Use ReferenceV2 component, hooks and types instead. */
105
88
  export declare const Reference: ForwardRefComponent<ReferenceProps>;
106
89
 
107
- /**
108
- * Data used to package a `Citation` and `Reference` together with
109
- * the `useReferenceCitation` hook.
110
- */
111
- export declare type ReferenceCitationData = {
112
- index: number;
113
- referenceId?: string;
114
- citationId?: string;
115
- citationProps?: PackagedCitationProps;
116
- referenceProps?: PackagedReferenceProps;
117
- previewHeaderProps?: PreviewHeaderProps;
118
- previewProps?: PreviewProps;
119
- previewSurfaceProps?: PreviewSurfaceProps;
120
- sensitivityLabelProps?: SensitivityLabelProps;
121
- };
122
-
123
90
  export declare type ReferenceCitationPreviewGenerator = (props: ReferenceCitationPreviewGeneratorProps) => {
124
- Citation: PackagedCitationV2;
125
- Reference: PackagedReferenceV2;
91
+ Citation: PackagedCitation;
92
+ Reference: PackagedReference;
126
93
  };
127
94
 
128
95
  export declare type ReferenceCitationPreviewGeneratorProps = {
@@ -130,43 +97,22 @@ export declare type ReferenceCitationPreviewGeneratorProps = {
130
97
  citationPreviewSurfaceProps?: PreviewSurfaceProps;
131
98
  citationProps?: CitationProps;
132
99
  index: number;
133
- previewContentProps?: PackagedPreviewContentV2Props;
100
+ previewContentProps?: PackagedPreviewContentProps;
134
101
  previewHeaderProps?: PreviewHeaderProps;
135
102
  referencePreviewProps?: Omit<PreviewProps, 'children'> & Partial<Pick<PreviewProps, 'children'>>;
136
103
  referencePreviewSurfaceProps?: PreviewSurfaceProps;
137
- referenceProps?: ReferenceV2Props;
104
+ referenceProps?: ReferenceProps;
138
105
  sensitivityLabelProps?: SensitivityLabelProps;
139
106
  };
140
107
 
141
- /** deprecated Use ReferenceV2 component, hooks and types instead. */
142
108
  export declare const referenceClassNames: SlotClassNames<ReferenceSlots>;
143
109
 
144
- /** deprecated The ReferenceGroup pattern is deprecated and will be removed in a future release. */
145
- export declare const ReferenceGroupToggle: ForwardRefComponent<ReferenceGroupToggleProps>;
146
-
147
- export declare const referenceGroupToggleClassNames: SlotClassNames<ReferenceGroupToggleSlots>;
148
-
149
- /**
150
- * ReferenceGroupToggle Props
151
- */
152
- export declare type ReferenceGroupToggleProps = ComponentProps<ReferenceGroupToggleSlots> & CopilotMode & {
153
- isOpen?: boolean;
154
- };
155
-
156
- export declare type ReferenceGroupToggleSlots = {
157
- root: NonNullable<Slot<'button'>>;
158
- icon?: Slot<'span'>;
110
+ export declare const referenceExtraClassNames: {
111
+ graphicChild: string;
159
112
  };
160
113
 
161
- /**
162
- * State used in rendering ReferenceGroupToggle
163
- */
164
- export declare type ReferenceGroupToggleState = ComponentState<ReferenceGroupToggleSlots> & Required<Pick<ReferenceGroupToggleProps, 'isOpen' | 'mode'>>;
165
-
166
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
167
114
  export declare const ReferenceList: ForwardRefComponent<ReferenceListProps>;
168
115
 
169
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
170
116
  export declare const referenceListClassNames: SlotClassNames<ReferenceListSlots>;
171
117
 
172
118
  export declare const ReferenceListContext: Context<ReferenceListContextValue>;
@@ -176,31 +122,13 @@ export declare const ReferenceListContextProvider: Provider<ReferenceListContext
176
122
  /**
177
123
  * Context shared between ReferenceList and its children components
178
124
  */
179
- export declare type ReferenceListContextValue = Pick<ReferenceListV2State, 'areReferencesExpanded' | 'maxVisibleReferences' | 'overflowButtonTriggeredViaKeyboard' | 'referenceListRef' | 'shouldUseOverflow' | 'totalReferencesCount'>;
180
-
181
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
182
- export declare type ReferenceListProps = ComponentProps<ReferenceListSlots>;
183
-
184
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
185
- export declare type ReferenceListSlots = {
186
- /**
187
- * The root slot.
188
- */
189
- root: Slot<'ol'>;
190
- };
125
+ export declare type ReferenceListContextValue = Pick<ReferenceListState, 'areReferencesExpanded' | 'maxVisibleReferences' | 'overflowButtonTriggeredViaKeyboard' | 'referenceListRef' | 'shouldUseOverflow' | 'totalReferencesCount'>;
191
126
 
192
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
193
- export declare type ReferenceListState = ComponentState<ReferenceListSlots>;
194
-
195
- export declare const ReferenceListV2: ForwardRefComponent<ReferenceListV2Props>;
196
-
197
- export declare const referenceListV2ClassNames: SlotClassNames<ReferenceListV2Slots>;
198
-
199
- export declare type ReferenceListV2ContextValues = {
127
+ export declare type ReferenceListContextValues = {
200
128
  referenceList: ReferenceListContextValue;
201
129
  };
202
130
 
203
- export declare type ReferenceListV2Props = ComponentProps<Partial<ReferenceListV2Slots>> & {
131
+ export declare type ReferenceListProps = ComponentProps<Partial<ReferenceListSlots>> & {
204
132
  /**
205
133
  * The maximum number of references to display before the overflow button is shown even if there is
206
134
  * enough space available to show more.
@@ -218,7 +146,7 @@ export declare type ReferenceListV2Props = ComponentProps<Partial<ReferenceListV
218
146
  minVisibleReferences?: number;
219
147
  };
220
148
 
221
- export declare type ReferenceListV2Slots = {
149
+ export declare type ReferenceListSlots = {
222
150
  /** The root of the component that contains the list of references. */
223
151
  root: NonNullable<Slot<'div'>>;
224
152
  /** The region that contains the references and is used for arrow navigation. */
@@ -229,7 +157,7 @@ export declare type ReferenceListV2Slots = {
229
157
  showLessButton?: Slot<'span'>;
230
158
  };
231
159
 
232
- export declare type ReferenceListV2State = ComponentState<ReferenceListV2Slots> & Pick<ReferenceListV2Props, 'maxVisibleReferences' | 'minVisibleReferences'> & {
160
+ export declare type ReferenceListState = ComponentState<ReferenceListSlots> & Pick<ReferenceListProps, 'maxVisibleReferences' | 'minVisibleReferences'> & {
233
161
  areReferencesExpanded: boolean;
234
162
  overflowButtonTriggeredViaKeyboard: React.MutableRefObject<boolean>;
235
163
  referenceListRef: React.RefObject<HTMLDivElement>;
@@ -237,6 +165,24 @@ export declare type ReferenceListV2State = ComponentState<ReferenceListV2Slots>
237
165
  totalReferencesCount: number;
238
166
  };
239
167
 
168
+ /** @deprecated use ReferenceList */
169
+ export declare const ReferenceListV2: ForwardRefComponent_2<ReferenceListProps>;
170
+
171
+ /** @deprecated use referenceListClassNames */
172
+ export declare const referenceListV2ClassNames: SlotClassNames_2<ReferenceListSlots>;
173
+
174
+ /** @deprecated use ReferenceListContextValues */
175
+ export declare type ReferenceListV2ContextValues = ReferenceListContextValues;
176
+
177
+ /** @deprecated use ReferenceListProps */
178
+ export declare type ReferenceListV2Props = ReferenceListProps;
179
+
180
+ /** @deprecated use ReferenceListSlots */
181
+ export declare type ReferenceListV2Slots = ReferenceListSlots;
182
+
183
+ /** @deprecated use ReferenceListState */
184
+ export declare type ReferenceListV2State = ReferenceListState;
185
+
240
186
  export declare const ReferenceOverflowButton: ForwardRefComponent<ReferenceOverflowButtonProps>;
241
187
 
242
188
  export declare const referenceOverflowButtonClassNames: SlotClassNames<ReferenceOverflowButtonSlots>;
@@ -266,105 +212,9 @@ export declare type ReferenceOverflowButtonState = ComponentState<ReferenceOverf
266
212
  shouldRenderOverflowButton: boolean;
267
213
  };
268
214
 
269
- /** deprecated Use ReferenceV2 component, hooks and types instead. */
270
- export declare type ReferenceProps = ComponentProps<Partial<ReferenceSlots>> & CopilotMode & {
271
- /**
272
- * Numeric index associated with `Citation`.
273
- */
274
- index: number;
275
- /**
276
- * HREF back to the `Citation` this `Reference` is associated with.
277
- */
278
- citationHref?: string;
279
- /**
280
- * Unique ID associated with this `Reference`.
281
- */
282
- referenceId?: string;
283
- /**
284
- * Text snippet from the reference source.
285
- */
286
- excerpt?: string;
287
- /**
288
- * @deprecated Inline layout is the only one that is available, use `Preview` component instead for an equivalent to a `Reference` with a popover layout inside of a `Popover`.
289
- */
290
- layout?: 'inline' | 'popover';
291
- };
215
+ export declare type ReferenceProps = ComponentProps<Partial<ReferenceSlots>> & DesignVersion & {};
292
216
 
293
- /** deprecated Use ReferenceV2 component, hooks and types instead. */
294
217
  export declare type ReferenceSlots = {
295
- /**
296
- * The root slot.
297
- */
298
- root: NonNullable<Slot<'div'>>;
299
- /**
300
- * Citation slot. Displays a `Citation`. Set the `null` to hide the citation.
301
- */
302
- citation: Slot<'div'>;
303
- /**
304
- * Media slot. Used to display Avatars, Icons, etc.
305
- */
306
- media: Slot<'div'>;
307
- /**
308
- * Actions slot.
309
- */
310
- actions: Slot<'div'>;
311
- /**
312
- * Label slot. Primary description of the reference.
313
- */
314
- label: NonNullable<Slot<'div'>>;
315
- /**
316
- * Sensitivity slot. Used to display a `SensitivityLabel`.
317
- */
318
- sensitivity: Slot<'span'>;
319
- /**
320
- * Metadata slot. Container for `primaryText`, `secondaryText`, `tertiaryText` and `icon`.
321
- */
322
- metadata: NonNullable<Slot<'div'>>;
323
- /**
324
- * Primary text slot. First displayed metadata text.
325
- */
326
- primaryText: Slot<'span'>;
327
- /**
328
- * Secondary text slot. Second displayed metadata text.
329
- */
330
- secondaryText: Slot<'span'>;
331
- /**
332
- * Tertiary text slot. Third displayed metadata text.
333
- */
334
- tertiaryText: Slot<'span'>;
335
- /**
336
- * Icon slot. Icon displayed in metadata area.
337
- */
338
- icon: Slot<'span'>;
339
- /**
340
- * Content slot.
341
- */
342
- content: NonNullable<Slot<'div'>>;
343
- /**
344
- * Details button slot. Used to expand/collapse the reference.
345
- */
346
- detailsButton: Slot<typeof Button>;
347
- };
348
-
349
- /** deprecated Use ReferenceV2 component, hooks and types instead. */
350
- export declare type ReferenceState = ComponentState<ReferenceSlots> & Required<Pick<ReferenceProps, 'mode' | 'layout' | 'index'>> & {
351
- /**
352
- * State used to renderer the `Reference` in an expanded state.
353
- */
354
- isExpanded: boolean;
355
- };
356
-
357
- export declare const ReferenceV2: ForwardRefComponent<ReferenceV2Props>;
358
-
359
- export declare const referenceV2ClassNames: SlotClassNames<ReferenceV2Slots>;
360
-
361
- export declare const referenceV2ExtraClassNames: {
362
- graphicChild: string;
363
- };
364
-
365
- export declare type ReferenceV2Props = ComponentProps<Partial<ReferenceV2Slots>> & DesignVersion & {};
366
-
367
- export declare type ReferenceV2Slots = {
368
218
  /** The root of the component that renders the reference as either a button or an anchor element. */
369
219
  root: NonNullable<Slot<'button', 'a'>>;
370
220
  /** The number of the citation this reference corresponds to. */
@@ -377,35 +227,50 @@ export declare type ReferenceV2Slots = {
377
227
  graphic?: Slot<'span'>;
378
228
  };
379
229
 
380
- export declare type ReferenceV2State = ComponentState<ReferenceV2Slots> & Required<Pick<ReferenceV2Props, 'id' | 'designVersion'>> & Pick<ReferenceListV2State, 'shouldUseOverflow'>;
230
+ export declare type ReferenceState = ComponentState<ReferenceSlots> & Required<Pick<ReferenceProps, 'id' | 'designVersion'>> & Pick<ReferenceListState, 'shouldUseOverflow'>;
231
+
232
+ /** @deprecated use Reference */
233
+ export declare const ReferenceV2: ForwardRefComponent_2<ReferenceProps>;
234
+
235
+ /** @deprecated use referenceClassNames */
236
+ export declare const referenceV2ClassNames: SlotClassNames_2<ReferenceSlots>;
237
+
238
+ /** @deprecated use referenceExtraClassNames */
239
+ export declare const referenceV2ExtraClassNames: {
240
+ graphicChild: string;
241
+ };
242
+
243
+ /** @deprecated use ReferenceProps */
244
+ export declare type ReferenceV2Props = ReferenceProps;
245
+
246
+ /** @deprecated use ReferenceSlots */
247
+ export declare type ReferenceV2Slots = ReferenceSlots;
248
+
249
+ /** @deprecated use ReferenceState */
250
+ export declare type ReferenceV2State = ReferenceState;
381
251
 
382
252
  /**
383
253
  * Render the final JSX of Citation
384
254
  */
385
255
  export declare const renderCitation_unstable: (state: CitationState) => JSX.Element;
386
256
 
387
- /** deprecated Use ReferenceV2 component, hooks and types instead. */
388
257
  export declare const renderReference_unstable: (state: ReferenceState) => JSX.Element;
389
258
 
390
- /**
391
- * Render the final JSX of ReferenceGroupToggle
392
- */
393
- export declare const renderReferenceGroupToggle_unstable: (state: ReferenceGroupToggleState) => JSX.Element;
394
-
395
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
396
- export declare const renderReferenceList_unstable: (state: ReferenceListState) => JSX.Element;
397
-
398
259
  /**
399
260
  * Render the final JSX of ReferenceList
400
261
  */
401
- export declare const renderReferenceListV2_unstable: (state: ReferenceListV2State, contextValues: ReferenceListV2ContextValues) => JSX.Element;
262
+ export declare const renderReferenceList_unstable: (state: ReferenceListState, contextValues: ReferenceListContextValues) => JSX.Element;
263
+
264
+ /** @deprecated use renderReferenceList_unstable */
265
+ export declare const renderReferenceListV2_unstable: (state: ReferenceListState, contextValues: ReferenceListContextValues) => JSX.Element;
402
266
 
403
267
  /**
404
268
  * Render the final JSX of ReferenceOverflowButton
405
269
  */
406
270
  export declare const renderReferenceOverflowButton_unstable: (state: ReferenceOverflowButtonState) => JSX.Element | null;
407
271
 
408
- export declare const renderReferenceV2_unstable: (state: ReferenceV2State) => JSX.Element;
272
+ /** @deprecated use renderReference_unstable */
273
+ export declare const renderReferenceV2_unstable: (state: ReferenceState) => JSX.Element;
409
274
 
410
275
  /**
411
276
  * Create the state required to render Citation.
@@ -431,26 +296,10 @@ export declare const useCitationStyles_unstable: (state: CitationState) => Citat
431
296
  *
432
297
  * @param props - props from this instance of Reference
433
298
  * @param ref - reference to root HTMLElement of Reference
434
- *
435
- * deprecated Use ReferenceV2 component, hooks and types instead.
436
- */
437
- export declare const useReference_unstable: (props: ReferenceProps, ref: React_2.Ref<HTMLDivElement>) => ReferenceState;
438
-
439
- export declare type UseReferenceCitationPreview = (data: ReferenceCitationData) => {
440
- Citation: PackagedCitation;
441
- Reference: PackagedReference;
442
- };
443
-
444
- /**
445
- * Hook to package a `Citation` and `Reference` together in an
446
- * accessibly by default manner.
447
- *
448
- * When using citations and references, prefer using them via this
449
- * hook to ensure props are wired up correctly.
450
299
  */
451
- export declare const useReferenceCitationPreview: UseReferenceCitationPreview;
300
+ export declare const useReference_unstable: (props: ReferenceProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ReferenceState;
452
301
 
453
- export declare type UseReferenceCitationPreviewV2 = ReferenceCitationPreviewGenerator;
302
+ export declare type UseReferenceCitationPreview = ReferenceCitationPreviewGenerator;
454
303
 
455
304
  /**
456
305
  * Hook to generate a Citation - Reference pair with correctly wired props.
@@ -464,43 +313,18 @@ export declare type UseReferenceCitationPreviewV2 = ReferenceCitationPreviewGene
464
313
  *
465
314
  * @returns A Citation - Reference pair with correctly wired props.
466
315
  */
467
- export declare const useReferenceCitationPreviewV2: UseReferenceCitationPreviewV2;
316
+ export declare const useReferenceCitationPreview: UseReferenceCitationPreview;
468
317
 
469
- export declare type UseReferenceCitationPreviewV2Props = ReferenceCitationPreviewGeneratorProps;
318
+ export declare type UseReferenceCitationPreviewProps = ReferenceCitationPreviewGeneratorProps;
470
319
 
471
- export declare type UseReferenceGroup = (props: UseReferenceGroupProps) => {
472
- referenceGroupToggleProps: ReferenceGroupToggleProps;
473
- referenceListProps: ReferenceListProps;
474
- };
320
+ /** @deprecated use UseReferenceCitationPreview */
321
+ export declare type UseReferenceCitationPreviewV2 = UseReferenceCitationPreview;
475
322
 
476
- /**
477
- * Hook to package a `ReferenceGroupToggle` and `ReferenceList` together and
478
- * maintain their `isOpen` state.
479
- *
480
- * When rendering a group of references, prefer to use this hook
481
- * hook to ensure state is maintained correctly
482
- */
483
- export declare const useReferenceGroup: UseReferenceGroup;
323
+ /** @deprecated use useReferenceCitationPreview */
324
+ export declare const useReferenceCitationPreviewV2: ReferenceCitationPreviewGenerator;
484
325
 
485
- export declare type UseReferenceGroupProps = {
486
- referenceListId?: string;
487
- };
488
-
489
- /**
490
- * Create the state required to render ReferenceGroupToggle.
491
- *
492
- * The returned state can be modified with hooks such as useReferenceGroupToggleStyles_unstable,
493
- * before being passed to renderReferenceGroupToggle_unstable.
494
- *
495
- * @param props - props from this instance of ReferenceGroupToggle
496
- * @param ref - reference to root HTMLElement of ReferenceGroupToggle
497
- */
498
- export declare const useReferenceGroupToggle_unstable: (props: ReferenceGroupToggleProps, ref: React_2.Ref<HTMLButtonElement>) => ReferenceGroupToggleState;
499
-
500
- /**
501
- * Apply styling to the ReferenceGroupToggle slots based on the state
502
- */
503
- export declare const useReferenceGroupToggleStyles_unstable: (state: ReferenceGroupToggleState) => ReferenceGroupToggleState;
326
+ /** @deprecated use UseReferenceCitationPreviewProps */
327
+ export declare type UseReferenceCitationPreviewV2Props = UseReferenceCitationPreviewProps;
504
328
 
505
329
  /**
506
330
  * Create the state required to render ReferenceList.
@@ -510,35 +334,21 @@ export declare const useReferenceGroupToggleStyles_unstable: (state: ReferenceGr
510
334
  *
511
335
  * @param props - props from this instance of ReferenceList
512
336
  * @param ref - reference to root HTMLElement of ReferenceList
513
- *
514
- * deprecated Use ReferenceListV2 component, hooks and types instead.
515
337
  */
516
- export declare const useReferenceList_unstable: (props: ReferenceListProps, ref: React_2.Ref<HTMLOListElement>) => ReferenceListState;
338
+ export declare const useReferenceList_unstable: (props: ReferenceListProps, ref: React_2.Ref<HTMLDivElement>) => ReferenceListState;
517
339
 
518
340
  export declare const useReferenceListContext_unstable: <T>(selector: ContextSelector<ReferenceListContextValue, T>) => T;
519
341
 
520
342
  /**
521
343
  * Apply styling to the ReferenceList slots based on the state
522
- *
523
- * deprecated Use ReferenceListV2 component, hooks and types instead.
524
344
  */
525
345
  export declare const useReferenceListStyles_unstable: (state: ReferenceListState) => ReferenceListState;
526
346
 
527
- /**
528
- * Create the state required to render ReferenceList.
529
- *
530
- * The returned state can be modified with hooks such as useReferenceListStyles_unstable,
531
- * before being passed to renderReferenceList_unstable.
532
- *
533
- * @param props - props from this instance of ReferenceList
534
- * @param ref - reference to root HTMLElement of ReferenceList
535
- */
536
- export declare const useReferenceListV2_unstable: (props: ReferenceListV2Props, ref: React_2.Ref<HTMLDivElement>) => ReferenceListV2State;
347
+ /** @deprecated use useReferenceList_unstable */
348
+ export declare const useReferenceListV2_unstable: (props: ReferenceListProps, ref: Ref<HTMLDivElement>) => ReferenceListState;
537
349
 
538
- /**
539
- * Apply styling to the ReferenceList slots based on the state
540
- */
541
- export declare const useReferenceListV2Styles_unstable: (state: ReferenceListV2State) => ReferenceListV2State;
350
+ /** @deprecated use useReferenceListStyles_unstable */
351
+ export declare const useReferenceListV2Styles_unstable: (state: ReferenceListState) => ReferenceListState;
542
352
 
543
353
  /**
544
354
  * Create the state required to render ReferenceOverflowButton.
@@ -558,25 +368,13 @@ export declare const useReferenceOverflowButtonStyles_unstable: (state: Referenc
558
368
 
559
369
  /**
560
370
  * Apply styling to the Reference slots based on the state
561
- *
562
- * deprecated Use ReferenceV2 component, hooks and types instead.
563
371
  */
564
372
  export declare const useReferenceStyles_unstable: (state: ReferenceState) => ReferenceState;
565
373
 
566
- /**
567
- * Create the state required to render Reference.
568
- *
569
- * The returned state can be modified with hooks such as useReferenceStyles_unstable,
570
- * before being passed to renderReference_unstable.
571
- *
572
- * @param props - props from this instance of Reference
573
- * @param ref - reference to root HTMLElement of Reference
574
- */
575
- export declare const useReferenceV2_unstable: (props: ReferenceV2Props, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ReferenceV2State;
374
+ /** @deprecated use useReference_unstable */
375
+ export declare const useReferenceV2_unstable: (props: ReferenceProps, ref: Ref<HTMLAnchorElement | HTMLButtonElement>) => ReferenceState;
576
376
 
577
- /**
578
- * Apply styling to the Reference slots based on the state
579
- */
580
- export declare const useReferenceV2Styles_unstable: (state: ReferenceV2State) => ReferenceV2State;
377
+ /** @deprecated use useReferenceStyles_unstable */
378
+ export declare const useReferenceV2Styles_unstable: (state: ReferenceState) => ReferenceState;
581
379
 
582
380
  export { }
@@ -1 +1 @@
1
- {"version":3,"sources":["Reference.ts"],"sourcesContent":["export type { ReferenceProps, ReferenceSlots, ReferenceState } from './components/Reference/index';\nexport { Reference, referenceClassNames, referenceExtraClassNames, renderReference_unstable, useReferenceStyles_unstable, useReference_unstable } from './components/Reference/index';\n"],"names":["Reference","referenceClassNames","referenceExtraClassNames","renderReference_unstable","useReferenceStyles_unstable","useReference_unstable"],"rangeMappings":"","mappings":"AACA,SAASA,SAAS,EAAEC,mBAAmB,EAAEC,wBAAwB,EAAEC,wBAAwB,EAAEC,2BAA2B,EAAEC,qBAAqB,QAAQ,+BAA+B"}
1
+ {"version":3,"sources":["Reference.ts"],"sourcesContent":["export type { ReferenceProps, ReferenceSlots, ReferenceState } from './components/Reference/index';\nexport {\n Reference,\n referenceClassNames,\n referenceExtraClassNames,\n renderReference_unstable,\n useReferenceStyles_unstable,\n useReference_unstable,\n} from './components/Reference/index';\n"],"names":["Reference","referenceClassNames","referenceExtraClassNames","renderReference_unstable","useReferenceStyles_unstable","useReference_unstable"],"rangeMappings":"","mappings":"AACA,SACEA,SAAS,EACTC,mBAAmB,EACnBC,wBAAwB,EACxBC,wBAAwB,EACxBC,2BAA2B,EAC3BC,qBAAqB,QAChB,+BAA+B"}
@@ -1,2 +1,2 @@
1
- export { ReferenceList, referenceListClassNames, referenceListItemClassName, renderReferenceList_unstable, useReferenceListStyles_unstable, useReferenceList_unstable } from './components/ReferenceList/index';
1
+ export { ReferenceList, referenceListClassNames, renderReferenceList_unstable, useReferenceListStyles_unstable, useReferenceList_unstable } from './components/ReferenceList/index';
2
2
  //# sourceMappingURL=ReferenceList.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ReferenceList.ts"],"sourcesContent":["export type { ReferenceListProps, ReferenceListSlots, ReferenceListState } from './components/ReferenceList/index';\nexport { ReferenceList, referenceListClassNames, referenceListItemClassName, renderReferenceList_unstable, useReferenceListStyles_unstable, useReferenceList_unstable } from './components/ReferenceList/index';\n"],"names":["ReferenceList","referenceListClassNames","referenceListItemClassName","renderReferenceList_unstable","useReferenceListStyles_unstable","useReferenceList_unstable"],"rangeMappings":"","mappings":"AACA,SAASA,aAAa,EAAEC,uBAAuB,EAAEC,0BAA0B,EAAEC,4BAA4B,EAAEC,+BAA+B,EAAEC,yBAAyB,QAAQ,mCAAmC"}
1
+ {"version":3,"sources":["ReferenceList.ts"],"sourcesContent":["export type {\n ReferenceListContextValues,\n ReferenceListProps,\n ReferenceListSlots,\n ReferenceListState,\n} from './components/ReferenceList/index';\nexport {\n ReferenceList,\n referenceListClassNames,\n renderReferenceList_unstable,\n useReferenceListStyles_unstable,\n useReferenceList_unstable,\n} from './components/ReferenceList/index';\n"],"names":["ReferenceList","referenceListClassNames","renderReferenceList_unstable","useReferenceListStyles_unstable","useReferenceList_unstable"],"rangeMappings":"","mappings":"AAMA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,mCAAmC"}
@@ -1,2 +1,2 @@
1
- export { ReferenceOverflowButton, referenceOverflowButtonClassNames, renderReferenceOverflowButton_unstable, useReferenceOverflowButtonStyles_unstable, useReferenceOverflowButton_unstable } from './components/reference-v2/ReferenceOverflowButton/index';
1
+ export { ReferenceOverflowButton, referenceOverflowButtonClassNames, renderReferenceOverflowButton_unstable, useReferenceOverflowButtonStyles_unstable, useReferenceOverflowButton_unstable } from './components/ReferenceOverflowButton/index';
2
2
  //# sourceMappingURL=ReferenceOverflowButton.js.map