@fluentui-copilot/react-reference 0.15.5 → 0.16.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.
- package/CHANGELOG.json +30 -1
- package/CHANGELOG.md +16 -2
- package/dist/index.d.ts +88 -290
- package/lib/Reference.js.map +1 -1
- package/lib/ReferenceList.js +1 -1
- package/lib/ReferenceList.js.map +1 -1
- package/lib/ReferenceOverflowButton.js +1 -1
- package/lib/ReferenceOverflowButton.js.map +1 -1
- package/lib/components/Citation/useCitationStyles.styles.js +3 -3
- package/lib/components/Citation/useCitationStyles.styles.js.map +1 -1
- package/lib/components/Reference/Reference.js +0 -3
- package/lib/components/Reference/Reference.js.map +1 -1
- package/lib/components/Reference/Reference.types.js +1 -1
- package/lib/components/Reference/Reference.types.js.map +1 -1
- package/lib/components/Reference/index.js.map +1 -1
- package/lib/components/Reference/renderReference.js +13 -8
- package/lib/components/Reference/renderReference.js.map +1 -1
- package/lib/components/Reference/useReference.js +46 -166
- package/lib/components/Reference/useReference.js.map +1 -1
- package/lib/components/Reference/useReferenceStyles.styles.js +40 -220
- package/lib/components/Reference/useReferenceStyles.styles.js.map +1 -1
- package/lib/components/ReferenceList/ReferenceList.js +4 -5
- package/lib/components/ReferenceList/ReferenceList.js.map +1 -1
- package/lib/components/ReferenceList/ReferenceList.types.js +1 -1
- package/lib/components/ReferenceList/ReferenceList.types.js.map +1 -1
- package/lib/components/ReferenceList/index.js +1 -1
- package/lib/components/ReferenceList/index.js.map +1 -1
- package/lib/components/ReferenceList/renderReferenceList.js +19 -5
- package/lib/components/ReferenceList/renderReferenceList.js.map +1 -1
- package/lib/components/ReferenceList/useReferenceList.js +76 -14
- package/lib/components/ReferenceList/useReferenceList.js.map +1 -1
- package/lib/components/ReferenceList/useReferenceListStyles.styles.js +31 -9
- package/lib/components/ReferenceList/useReferenceListStyles.styles.js.map +1 -1
- package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButton.js +1 -1
- package/lib/components/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -0
- package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js +2 -2
- package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js.map +1 -1
- package/lib/contexts/referenceListContext.js.map +1 -0
- package/lib/index.js +31 -8
- package/lib/index.js.map +1 -1
- package/lib/utilities/{reference-v2/generateReferenceCitationPreview.js → generateReferenceCitationPreview.js} +2 -2
- package/lib/utilities/generateReferenceCitationPreview.js.map +1 -0
- package/lib/utilities/index.js +1 -1
- package/lib/utilities/index.js.map +1 -1
- package/lib/utilities/useReferenceCitationPreview.js +12 -123
- package/lib/utilities/useReferenceCitationPreview.js.map +1 -1
- package/lib-commonjs/Reference.js.map +1 -1
- package/lib-commonjs/ReferenceList.js +0 -3
- package/lib-commonjs/ReferenceList.js.map +1 -1
- package/lib-commonjs/ReferenceOverflowButton.js +1 -1
- package/lib-commonjs/ReferenceOverflowButton.js.map +1 -1
- package/lib-commonjs/components/Citation/useCitationStyles.styles.js +7 -7
- package/lib-commonjs/components/Citation/useCitationStyles.styles.js.map +1 -1
- package/lib-commonjs/components/Reference/Reference.js +0 -2
- package/lib-commonjs/components/Reference/Reference.js.map +1 -1
- package/lib-commonjs/components/Reference/Reference.types.js +1 -1
- package/lib-commonjs/components/Reference/Reference.types.js.map +1 -1
- package/lib-commonjs/components/Reference/index.js.map +1 -1
- package/lib-commonjs/components/Reference/renderReference.js +11 -18
- package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
- package/lib-commonjs/components/Reference/useReference.js +42 -167
- package/lib-commonjs/components/Reference/useReference.js.map +1 -1
- package/lib-commonjs/components/Reference/useReferenceStyles.styles.js +56 -324
- package/lib-commonjs/components/Reference/useReferenceStyles.styles.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.js +4 -4
- package/lib-commonjs/components/ReferenceList/ReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.types.js +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.types.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/index.js +0 -3
- package/lib-commonjs/components/ReferenceList/index.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/renderReferenceList.js +16 -2
- package/lib-commonjs/components/ReferenceList/renderReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceList.js +67 -11
- package/lib-commonjs/components/ReferenceList/useReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.js +34 -9
- package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.js.map +1 -1
- package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButton.js +1 -1
- package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -0
- package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js.map +1 -1
- package/lib-commonjs/contexts/referenceListContext.js.map +1 -0
- package/lib-commonjs/index.js +33 -40
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utilities/{reference-v2/generateReferenceCitationPreview.js → generateReferenceCitationPreview.js} +3 -3
- package/lib-commonjs/utilities/generateReferenceCitationPreview.js.map +1 -0
- package/lib-commonjs/utilities/index.js +4 -4
- package/lib-commonjs/utilities/index.js.map +1 -1
- package/lib-commonjs/utilities/useReferenceCitationPreview.js +4 -129
- package/lib-commonjs/utilities/useReferenceCitationPreview.js.map +1 -1
- package/package.json +4 -4
- package/lib/ReferenceGroupToggle.js +0 -2
- package/lib/ReferenceGroupToggle.js.map +0 -1
- package/lib/ReferenceListV2.js +0 -2
- package/lib/ReferenceListV2.js.map +0 -1
- package/lib/ReferenceV2.js +0 -2
- package/lib/ReferenceV2.js.map +0 -1
- package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.js +0 -12
- package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.js.map +0 -1
- package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +0 -4
- package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js.map +0 -1
- package/lib/components/ReferenceGroupToggle/index.js +0 -5
- package/lib/components/ReferenceGroupToggle/index.js.map +0 -1
- package/lib/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +0 -12
- package/lib/components/ReferenceGroupToggle/renderReferenceGroupToggle.js.map +0 -1
- package/lib/components/ReferenceGroupToggle/useReferenceGroupToggle.js +0 -43
- package/lib/components/ReferenceGroupToggle/useReferenceGroupToggle.js.map +0 -1
- package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js +0 -43
- package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js.map +0 -1
- package/lib/components/reference-v2/Reference/Reference.js +0 -11
- package/lib/components/reference-v2/Reference/Reference.js.map +0 -1
- package/lib/components/reference-v2/Reference/Reference.types.js +0 -2
- package/lib/components/reference-v2/Reference/Reference.types.js.map +0 -1
- package/lib/components/reference-v2/Reference/index.js +0 -5
- package/lib/components/reference-v2/Reference/index.js.map +0 -1
- package/lib/components/reference-v2/Reference/renderReference.js +0 -19
- package/lib/components/reference-v2/Reference/renderReference.js.map +0 -1
- package/lib/components/reference-v2/Reference/useReference.js +0 -74
- package/lib/components/reference-v2/Reference/useReference.js.map +0 -1
- package/lib/components/reference-v2/Reference/useReferenceStyles.styles.js +0 -70
- package/lib/components/reference-v2/Reference/useReferenceStyles.styles.js.map +0 -1
- package/lib/components/reference-v2/ReferenceList/ReferenceList.js +0 -13
- package/lib/components/reference-v2/ReferenceList/ReferenceList.js.map +0 -1
- package/lib/components/reference-v2/ReferenceList/ReferenceList.types.js +0 -2
- package/lib/components/reference-v2/ReferenceList/ReferenceList.types.js.map +0 -1
- package/lib/components/reference-v2/ReferenceList/index.js +0 -5
- package/lib/components/reference-v2/ReferenceList/index.js.map +0 -1
- package/lib/components/reference-v2/ReferenceList/renderReferenceList.js +0 -22
- package/lib/components/reference-v2/ReferenceList/renderReferenceList.js.map +0 -1
- package/lib/components/reference-v2/ReferenceList/useReferenceList.js +0 -93
- package/lib/components/reference-v2/ReferenceList/useReferenceList.js.map +0 -1
- package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js +0 -46
- package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js.map +0 -1
- package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js.map +0 -1
- package/lib/components/reference-v2/index.js +0 -4
- package/lib/components/reference-v2/index.js.map +0 -1
- package/lib/contexts/ReferenceGroupContext.js +0 -11
- package/lib/contexts/ReferenceGroupContext.js.map +0 -1
- package/lib/contexts/reference-v2/referenceListContext.js.map +0 -1
- package/lib/utilities/reference-v2/generateReferenceCitationPreview.js.map +0 -1
- package/lib/utilities/reference-v2/index.js +0 -3
- package/lib/utilities/reference-v2/index.js.map +0 -1
- package/lib/utilities/reference-v2/useReferenceCitationPreview.js +0 -18
- package/lib/utilities/reference-v2/useReferenceCitationPreview.js.map +0 -1
- package/lib/utilities/useReferenceGroup.js +0 -40
- package/lib/utilities/useReferenceGroup.js.map +0 -1
- package/lib-commonjs/ReferenceGroupToggle.js +0 -29
- package/lib-commonjs/ReferenceGroupToggle.js.map +0 -1
- package/lib-commonjs/ReferenceListV2.js +0 -29
- package/lib-commonjs/ReferenceListV2.js.map +0 -1
- package/lib-commonjs/ReferenceV2.js +0 -32
- package/lib-commonjs/ReferenceV2.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js +0 -21
- package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +0 -7
- package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroupToggle/index.js +0 -32
- package/lib-commonjs/components/ReferenceGroupToggle/index.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +0 -21
- package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js +0 -42
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js +0 -64
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.js.map +0 -1
- package/lib-commonjs/components/reference-v2/Reference/Reference.js +0 -21
- package/lib-commonjs/components/reference-v2/Reference/Reference.js.map +0 -1
- package/lib-commonjs/components/reference-v2/Reference/Reference.types.js +0 -5
- package/lib-commonjs/components/reference-v2/Reference/Reference.types.js.map +0 -1
- package/lib-commonjs/components/reference-v2/Reference/index.js +0 -35
- package/lib-commonjs/components/reference-v2/Reference/index.js.map +0 -1
- package/lib-commonjs/components/reference-v2/Reference/renderReference.js +0 -32
- package/lib-commonjs/components/reference-v2/Reference/renderReference.js.map +0 -1
- package/lib-commonjs/components/reference-v2/Reference/useReference.js +0 -71
- package/lib-commonjs/components/reference-v2/Reference/useReference.js.map +0 -1
- package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.js +0 -109
- package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.js.map +0 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js +0 -23
- package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js.map +0 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.types.js +0 -5
- package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.types.js.map +0 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/index.js +0 -32
- package/lib-commonjs/components/reference-v2/ReferenceList/index.js.map +0 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js +0 -30
- package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js.map +0 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js +0 -86
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js.map +0 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js +0 -62
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.js.map +0 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js.map +0 -1
- package/lib-commonjs/components/reference-v2/index.js +0 -64
- package/lib-commonjs/components/reference-v2/index.js.map +0 -1
- package/lib-commonjs/contexts/ReferenceGroupContext.js +0 -29
- package/lib-commonjs/contexts/ReferenceGroupContext.js.map +0 -1
- package/lib-commonjs/contexts/reference-v2/referenceListContext.js.map +0 -1
- package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js.map +0 -1
- package/lib-commonjs/utilities/reference-v2/index.js +0 -21
- package/lib-commonjs/utilities/reference-v2/index.js.map +0 -1
- package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js +0 -18
- package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js.map +0 -1
- package/lib-commonjs/utilities/useReferenceGroup.js +0 -49
- package/lib-commonjs/utilities/useReferenceGroup.js.map +0 -1
- /package/lib/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js +0 -0
- /package/lib/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js.map +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js.map +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js.map +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js.map +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js +0 -0
- /package/lib/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js.map +0 -0
- /package/lib/contexts/{reference-v2/index.js → index.js} +0 -0
- /package/lib/contexts/{reference-v2/index.js.map → index.js.map} +0 -0
- /package/lib/contexts/{reference-v2/referenceListContext.js → referenceListContext.js} +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceList → ReferenceList}/useReferenceListContextValues.js.map +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.js.map +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/ReferenceOverflowButton.types.js.map +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/index.js.map +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/renderReferenceOverflowButton.js.map +0 -0
- /package/lib-commonjs/components/{reference-v2/ReferenceOverflowButton → ReferenceOverflowButton}/useReferenceOverflowButtonStyles.styles.js +0 -0
- /package/lib-commonjs/contexts/{reference-v2/index.js → index.js} +0 -0
- /package/lib-commonjs/contexts/{reference-v2/index.js.map → index.js.map} +0 -0
- /package/lib-commonjs/contexts/{reference-v2/referenceListContext.js → referenceListContext.js} +0 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,36 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-reference",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 12 Jun 2025 17:50:58 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",
|
|
6
35
|
"tag": "@fluentui-copilot/react-reference_v0.15.5",
|
|
7
36
|
"version": "0.15.5",
|
|
8
37
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-reference
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 12 Jun 2025 17:50:58 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:50:58 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
|
+
|
|
7
21
|
## [0.15.5](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.15.5)
|
|
8
22
|
|
|
9
|
-
Wed, 28 May 2025 16:45:
|
|
23
|
+
Wed, 28 May 2025 16:45:32 GMT
|
|
10
24
|
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.15.4..@fluentui-copilot/react-reference_v0.15.5)
|
|
11
25
|
|
|
12
26
|
### Patches
|
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
|
-
|
|
73
|
+
/** @deprecated use PackagedCitation */
|
|
74
|
+
export declare type PackagedCitationV2 = PackagedCitation;
|
|
83
75
|
|
|
84
|
-
export declare type
|
|
76
|
+
export declare type PackagedPreviewContentProps = Pick<PreviewMetadataProps, 'icon' | 'primaryText' | 'secondaryText' | 'tertiaryText'> & {
|
|
85
77
|
content?: React_2.ReactNode;
|
|
86
78
|
};
|
|
87
79
|
|
|
88
|
-
/**
|
|
89
|
-
|
|
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
|
-
|
|
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:
|
|
125
|
-
Reference:
|
|
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?:
|
|
100
|
+
previewContentProps?: PackagedPreviewContentProps;
|
|
134
101
|
previewHeaderProps?: PreviewHeaderProps;
|
|
135
102
|
referencePreviewProps?: Omit<PreviewProps, 'children'> & Partial<Pick<PreviewProps, 'children'>>;
|
|
136
103
|
referencePreviewSurfaceProps?: PreviewSurfaceProps;
|
|
137
|
-
referenceProps?:
|
|
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
|
-
|
|
145
|
-
|
|
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<
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
300
|
+
export declare const useReference_unstable: (props: ReferenceProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ReferenceState;
|
|
452
301
|
|
|
453
|
-
export declare type
|
|
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
|
|
316
|
+
export declare const useReferenceCitationPreview: UseReferenceCitationPreview;
|
|
468
317
|
|
|
469
|
-
export declare type
|
|
318
|
+
export declare type UseReferenceCitationPreviewProps = ReferenceCitationPreviewGeneratorProps;
|
|
470
319
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
referenceListProps: ReferenceListProps;
|
|
474
|
-
};
|
|
320
|
+
/** @deprecated use UseReferenceCitationPreview */
|
|
321
|
+
export declare type UseReferenceCitationPreviewV2 = UseReferenceCitationPreview;
|
|
475
322
|
|
|
476
|
-
/**
|
|
477
|
-
|
|
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
|
-
|
|
486
|
-
|
|
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<
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 { }
|
package/lib/Reference.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Reference.ts"],"sourcesContent":["export type { ReferenceProps, ReferenceSlots, ReferenceState } from './components/Reference/index';\nexport {
|
|
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"}
|
package/lib/ReferenceList.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ReferenceList, referenceListClassNames,
|
|
1
|
+
export { ReferenceList, referenceListClassNames, renderReferenceList_unstable, useReferenceListStyles_unstable, useReferenceList_unstable } from './components/ReferenceList/index';
|
|
2
2
|
//# sourceMappingURL=ReferenceList.js.map
|
package/lib/ReferenceList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ReferenceList.ts"],"sourcesContent":["export type {
|
|
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/
|
|
1
|
+
export { ReferenceOverflowButton, referenceOverflowButtonClassNames, renderReferenceOverflowButton_unstable, useReferenceOverflowButtonStyles_unstable, useReferenceOverflowButton_unstable } from './components/ReferenceOverflowButton/index';
|
|
2
2
|
//# sourceMappingURL=ReferenceOverflowButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ReferenceOverflowButton.ts"],"sourcesContent":["export type {
|
|
1
|
+
{"version":3,"sources":["ReferenceOverflowButton.ts"],"sourcesContent":["export type {\n ReferenceOverflowButtonProps,\n ReferenceOverflowButtonSlots,\n ReferenceOverflowButtonState,\n} from './components/ReferenceOverflowButton/index';\nexport {\n ReferenceOverflowButton,\n referenceOverflowButtonClassNames,\n renderReferenceOverflowButton_unstable,\n useReferenceOverflowButtonStyles_unstable,\n useReferenceOverflowButton_unstable,\n} from './components/ReferenceOverflowButton/index';\n"],"names":["ReferenceOverflowButton","referenceOverflowButtonClassNames","renderReferenceOverflowButton_unstable","useReferenceOverflowButtonStyles_unstable","useReferenceOverflowButton_unstable"],"rangeMappings":"","mappings":"AAKA,SACEA,uBAAuB,EACvBC,iCAAiC,EACjCC,sCAAsC,EACtCC,yCAAyC,EACzCC,mCAAmC,QAC9B,6CAA6C"}
|