@fluentui-copilot/react-reference 0.15.5-hotfix.1 → 0.15.5-hotfix.2

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 (163) hide show
  1. package/CHANGELOG.json +4 -4
  2. package/CHANGELOG.md +5 -5
  3. package/lib/Citation.js +1 -0
  4. package/lib/Reference.js +1 -0
  5. package/lib/ReferenceGroupToggle.js +1 -0
  6. package/lib/ReferenceList.js +1 -0
  7. package/lib/ReferenceListV2.js +1 -0
  8. package/lib/ReferenceOverflowButton.js +1 -0
  9. package/lib/ReferenceV2.js +1 -0
  10. package/lib/components/Citation/Citation.js +6 -5
  11. package/lib/components/Citation/Citation.types.js +2 -1
  12. package/lib/components/Citation/index.js +1 -0
  13. package/lib/components/Citation/renderCitation.js +6 -4
  14. package/lib/components/Citation/useCitation.js +28 -22
  15. package/lib/components/Citation/useCitationStyles.styles.raw.js +59 -54
  16. package/lib/components/Reference/Reference.js +7 -5
  17. package/lib/components/Reference/Reference.types.js +2 -1
  18. package/lib/components/Reference/index.js +1 -0
  19. package/lib/components/Reference/renderReference.js +12 -27
  20. package/lib/components/Reference/useReference.js +172 -173
  21. package/lib/components/Reference/useReferenceStyles.styles.raw.js +181 -172
  22. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.js +6 -4
  23. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +2 -1
  24. package/lib/components/ReferenceGroupToggle/index.js +1 -0
  25. package/lib/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +8 -9
  26. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggle.js +30 -26
  27. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js +36 -31
  28. package/lib/components/ReferenceList/ReferenceList.js +7 -5
  29. package/lib/components/ReferenceList/ReferenceList.types.js +2 -1
  30. package/lib/components/ReferenceList/index.js +1 -0
  31. package/lib/components/ReferenceList/renderReferenceList.js +6 -4
  32. package/lib/components/ReferenceList/useReferenceList.js +17 -15
  33. package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js +22 -16
  34. package/lib/components/reference-v2/Reference/Reference.js +5 -4
  35. package/lib/components/reference-v2/Reference/Reference.types.js +2 -1
  36. package/lib/components/reference-v2/Reference/index.js +1 -0
  37. package/lib/components/reference-v2/Reference/renderReference.js +17 -20
  38. package/lib/components/reference-v2/Reference/useReference.js +59 -53
  39. package/lib/components/reference-v2/Reference/useReferenceStyles.styles.raw.js +89 -84
  40. package/lib/components/reference-v2/ReferenceList/ReferenceList.js +6 -5
  41. package/lib/components/reference-v2/ReferenceList/ReferenceList.types.js +2 -1
  42. package/lib/components/reference-v2/ReferenceList/index.js +1 -0
  43. package/lib/components/reference-v2/ReferenceList/renderReferenceList.js +17 -17
  44. package/lib/components/reference-v2/ReferenceList/useReferenceList.js +80 -70
  45. package/lib/components/reference-v2/ReferenceList/useReferenceListContextValues.js +21 -13
  46. package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js +38 -31
  47. package/lib/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js +5 -4
  48. package/lib/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.types.js +2 -1
  49. package/lib/components/reference-v2/ReferenceOverflowButton/index.js +1 -0
  50. package/lib/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js +14 -9
  51. package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js +77 -77
  52. package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +39 -33
  53. package/lib/components/reference-v2/index.js +1 -0
  54. package/lib/contexts/ReferenceGroupContext.js +6 -5
  55. package/lib/contexts/reference-v2/index.js +1 -0
  56. package/lib/contexts/reference-v2/referenceListContext.js +12 -11
  57. package/lib/index.js +1 -0
  58. package/lib/utilities/index.js +1 -0
  59. package/lib/utilities/reference-v2/generateReferenceCitationPreview.js +86 -75
  60. package/lib/utilities/reference-v2/index.js +1 -0
  61. package/lib/utilities/reference-v2/useReferenceCitationPreview.js +5 -5
  62. package/lib/utilities/useReferenceCitationPreview.js +114 -123
  63. package/lib/utilities/useReferenceGroup.js +24 -26
  64. package/lib/utilities/useReferenceGroup.styles.raw.js +4 -3
  65. package/lib-commonjs/Citation.js +1 -0
  66. package/lib-commonjs/Reference.js +1 -0
  67. package/lib-commonjs/ReferenceGroupToggle.js +1 -0
  68. package/lib-commonjs/ReferenceList.js +1 -0
  69. package/lib-commonjs/ReferenceListV2.js +1 -0
  70. package/lib-commonjs/ReferenceOverflowButton.js +1 -0
  71. package/lib-commonjs/ReferenceV2.js +1 -0
  72. package/lib-commonjs/components/Citation/Citation.js +1 -1
  73. package/lib-commonjs/components/Citation/Citation.js.map +1 -1
  74. package/lib-commonjs/components/Citation/Citation.types.js +1 -0
  75. package/lib-commonjs/components/Citation/index.js +1 -0
  76. package/lib-commonjs/components/Citation/renderCitation.js +1 -1
  77. package/lib-commonjs/components/Citation/renderCitation.js.map +1 -1
  78. package/lib-commonjs/components/Citation/useCitation.js +1 -1
  79. package/lib-commonjs/components/Citation/useCitation.js.map +1 -1
  80. package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js +1 -1
  81. package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js.map +1 -1
  82. package/lib-commonjs/components/Reference/Reference.js +1 -1
  83. package/lib-commonjs/components/Reference/Reference.js.map +1 -1
  84. package/lib-commonjs/components/Reference/Reference.types.js +1 -0
  85. package/lib-commonjs/components/Reference/index.js +1 -0
  86. package/lib-commonjs/components/Reference/renderReference.js +1 -1
  87. package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
  88. package/lib-commonjs/components/Reference/useReference.js +1 -1
  89. package/lib-commonjs/components/Reference/useReference.js.map +1 -1
  90. package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js +1 -1
  91. package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js.map +1 -1
  92. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js +1 -1
  93. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js.map +1 -1
  94. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +1 -0
  95. package/lib-commonjs/components/ReferenceGroupToggle/index.js +1 -0
  96. package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +1 -1
  97. package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js.map +1 -1
  98. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js +1 -1
  99. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js.map +1 -1
  100. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js +1 -1
  101. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js.map +1 -1
  102. package/lib-commonjs/components/ReferenceList/ReferenceList.js +1 -1
  103. package/lib-commonjs/components/ReferenceList/ReferenceList.js.map +1 -1
  104. package/lib-commonjs/components/ReferenceList/ReferenceList.types.js +1 -0
  105. package/lib-commonjs/components/ReferenceList/index.js +1 -0
  106. package/lib-commonjs/components/ReferenceList/renderReferenceList.js +1 -1
  107. package/lib-commonjs/components/ReferenceList/renderReferenceList.js.map +1 -1
  108. package/lib-commonjs/components/ReferenceList/useReferenceList.js +1 -1
  109. package/lib-commonjs/components/ReferenceList/useReferenceList.js.map +1 -1
  110. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js +1 -1
  111. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -1
  112. package/lib-commonjs/components/reference-v2/Reference/Reference.js +1 -1
  113. package/lib-commonjs/components/reference-v2/Reference/Reference.js.map +1 -1
  114. package/lib-commonjs/components/reference-v2/Reference/Reference.types.js +1 -0
  115. package/lib-commonjs/components/reference-v2/Reference/index.js +1 -0
  116. package/lib-commonjs/components/reference-v2/Reference/renderReference.js +1 -1
  117. package/lib-commonjs/components/reference-v2/Reference/renderReference.js.map +1 -1
  118. package/lib-commonjs/components/reference-v2/Reference/useReference.js +1 -1
  119. package/lib-commonjs/components/reference-v2/Reference/useReference.js.map +1 -1
  120. package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.raw.js +1 -1
  121. package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.raw.js.map +1 -1
  122. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js +1 -1
  123. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js.map +1 -1
  124. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.types.js +1 -0
  125. package/lib-commonjs/components/reference-v2/ReferenceList/index.js +1 -0
  126. package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js +1 -1
  127. package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js.map +1 -1
  128. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js +1 -1
  129. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js.map +1 -1
  130. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListContextValues.js +1 -1
  131. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListContextValues.js.map +1 -1
  132. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js +1 -1
  133. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -1
  134. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js +1 -1
  135. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js.map +1 -1
  136. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.types.js +1 -0
  137. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/index.js +1 -0
  138. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js +1 -1
  139. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js.map +1 -1
  140. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js +1 -1
  141. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -1
  142. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +1 -1
  143. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +1 -1
  144. package/lib-commonjs/components/reference-v2/index.js +1 -0
  145. package/lib-commonjs/contexts/ReferenceGroupContext.js +1 -1
  146. package/lib-commonjs/contexts/ReferenceGroupContext.js.map +1 -1
  147. package/lib-commonjs/contexts/reference-v2/index.js +1 -0
  148. package/lib-commonjs/contexts/reference-v2/referenceListContext.js +1 -1
  149. package/lib-commonjs/contexts/reference-v2/referenceListContext.js.map +1 -1
  150. package/lib-commonjs/index.js +1 -0
  151. package/lib-commonjs/utilities/index.js +1 -0
  152. package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js +1 -1
  153. package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js.map +1 -1
  154. package/lib-commonjs/utilities/reference-v2/index.js +1 -0
  155. package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js +1 -1
  156. package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js.map +1 -1
  157. package/lib-commonjs/utilities/useReferenceCitationPreview.js +1 -1
  158. package/lib-commonjs/utilities/useReferenceCitationPreview.js.map +1 -1
  159. package/lib-commonjs/utilities/useReferenceGroup.js +1 -1
  160. package/lib-commonjs/utilities/useReferenceGroup.js.map +1 -1
  161. package/lib-commonjs/utilities/useReferenceGroup.styles.raw.js +1 -1
  162. package/lib-commonjs/utilities/useReferenceGroup.styles.raw.js.map +1 -1
  163. package/package.json +6 -6
package/CHANGELOG.json CHANGED
@@ -2,16 +2,16 @@
2
2
  "name": "@fluentui-copilot/react-reference",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 12 Aug 2025 16:09:22 GMT",
6
- "tag": "@fluentui-copilot/react-reference_v0.15.5-hotfix.1",
7
- "version": "0.15.5-hotfix.1",
5
+ "date": "Fri, 19 Sep 2025 15:10:20 GMT",
6
+ "tag": "@fluentui-copilot/react-reference_v0.15.5-hotfix.2",
7
+ "version": "0.15.5-hotfix.2",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "hochelmartin@gmail.com",
12
12
  "package": "@fluentui-copilot/react-reference",
13
13
  "commit": "3e4ebe676646c4c4346dbbab83511f963ffefd85",
14
- "comment": "release: prepare hotfix 0.26.2-hotfix.1"
14
+ "comment": "release: prepare hotfix 0.26.2-hotfix.2"
15
15
  }
16
16
  ]
17
17
  }
package/CHANGELOG.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # Change Log - @fluentui-copilot/react-reference
2
2
 
3
- This log was last generated on Tue, 12 Aug 2025 16:09:22 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 19 Sep 2025 15:10:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.15.5-hotfix.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.15.5-hotfix.1)
7
+ ## [0.15.5-hotfix.2](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.15.5-hotfix.2)
8
8
 
9
- Tue, 12 Aug 2025 16:09:22 GMT
10
- [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.15.5..@fluentui-copilot/react-reference_v0.15.5-hotfix.1)
9
+ Fri, 19 Sep 2025 15:10:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.15.5..@fluentui-copilot/react-reference_v0.15.5-hotfix.2)
11
11
 
12
12
  ### Changes
13
13
 
14
- - release: prepare hotfix 0.26.2-hotfix.1 ([PR #3284](https://github.com/microsoft/fluentai/pull/3284) by hochelmartin@gmail.com)
14
+ - release: prepare hotfix 0.26.2-hotfix.2 ([PR #3284](https://github.com/microsoft/fluentai/pull/3284) by hochelmartin@gmail.com)
15
15
 
16
16
  ## [0.15.5](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.15.5)
17
17
 
package/lib/Citation.js CHANGED
@@ -1 +1,2 @@
1
1
  export { Citation, citationClassNames, renderCitation_unstable, useCitationStyles_unstable, useCitation_unstable } from './components/Citation/index';
2
+ //# sourceMappingURL=Citation.js.map
package/lib/Reference.js CHANGED
@@ -1 +1,2 @@
1
1
  export { Reference, referenceClassNames, referenceExtraClassNames, renderReference_unstable, useReferenceStyles_unstable, useReference_unstable } from './components/Reference/index';
2
+ //# sourceMappingURL=Reference.js.map
@@ -1 +1,2 @@
1
1
  export { ReferenceGroupToggle, referenceGroupToggleClassNames, renderReferenceGroupToggle_unstable, useReferenceGroupToggleStyles_unstable, useReferenceGroupToggle_unstable } from './components/ReferenceGroupToggle/index';
2
+ //# sourceMappingURL=ReferenceGroupToggle.js.map
@@ -1 +1,2 @@
1
1
  export { ReferenceList, referenceListClassNames, referenceListItemClassName, renderReferenceList_unstable, useReferenceListStyles_unstable, useReferenceList_unstable } from './components/ReferenceList/index';
2
+ //# sourceMappingURL=ReferenceList.js.map
@@ -1 +1,2 @@
1
1
  export { ReferenceList, referenceListClassNames, renderReferenceList_unstable, useReferenceListStyles_unstable, useReferenceList_unstable } from './components/reference-v2/ReferenceList/index';
2
+ //# sourceMappingURL=ReferenceListV2.js.map
@@ -1 +1,2 @@
1
1
  export { ReferenceOverflowButton, referenceOverflowButtonClassNames, renderReferenceOverflowButton_unstable, useReferenceOverflowButtonStyles_unstable, useReferenceOverflowButton_unstable } from './components/reference-v2/ReferenceOverflowButton/index';
2
+ //# sourceMappingURL=ReferenceOverflowButton.js.map
@@ -1 +1,2 @@
1
1
  export { Reference, referenceClassNames, referenceExtraClassNames, renderReference_unstable, useReferenceStyles_unstable, useReference_unstable } from './components/reference-v2/Reference/index';
2
+ //# sourceMappingURL=ReferenceV2.js.map
@@ -4,10 +4,11 @@ import { renderCitation_unstable } from './renderCitation';
4
4
  import { useCitationStyles_unstable } from './useCitationStyles.styles';
5
5
  import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
6
  // Citation component - TODO: add more docs
7
- export const Citation = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
- const state = useCitation_unstable(props, ref);
9
- useCitationStyles_unstable(state);
10
- useCustomStyleHook('useCitationStyles')(state);
11
- return renderCitation_unstable(state);
7
+ export const Citation = /*#__PURE__*/React.forwardRef((props, ref) => {
8
+ const state = useCitation_unstable(props, ref);
9
+ useCitationStyles_unstable(state);
10
+ useCustomStyleHook('useCitationStyles')(state);
11
+ return renderCitation_unstable(state);
12
12
  });
13
13
  Citation.displayName = 'Citation';
14
+ //# sourceMappingURL=Citation.js.map
@@ -1,3 +1,4 @@
1
1
  /**
2
2
  * State used in rendering Citation
3
- */ export { };
3
+ */export {};
4
+ //# sourceMappingURL=Citation.types.js.map
@@ -2,3 +2,4 @@ export { Citation } from './Citation';
2
2
  export { renderCitation_unstable } from './renderCitation';
3
3
  export { useCitation_unstable } from './useCitation';
4
4
  export { citationClassNames, useCitationStyles_unstable } from './useCitationStyles.styles';
5
+ //# sourceMappingURL=index.js.map
@@ -1,8 +1,10 @@
1
- import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-components';
3
3
  /**
4
4
  * Render the final JSX of Citation
5
- */ export const renderCitation_unstable = (state)=>{
6
- assertSlots(state);
7
- return /*#__PURE__*/ _jsx(state.root, {});
5
+ */
6
+ export const renderCitation_unstable = state => {
7
+ assertSlots(state);
8
+ return /*#__PURE__*/_jsx(state.root, {});
8
9
  };
10
+ //# sourceMappingURL=renderCitation.js.map
@@ -9,26 +9,32 @@ import { useDesignVersion } from '@fluentui-copilot/react-provider';
9
9
  *
10
10
  * @param props - props from this instance of Citation
11
11
  * @param ref - reference to root HTMLElement of Citation
12
- */ export const useCitation_unstable = (props, ref)=>{
13
- const { referenceHref, block = false, ...otherProps } = props;
14
- const designVersion = useDesignVersion(props.designVersion);
15
- const isPopoverLocked = usePreviewContext_unstable((ctx)=>ctx.isPreviewLocked) && props['aria-expanded'];
16
- const state = {
17
- block,
18
- designVersion,
19
- isPopoverLocked,
20
- components: {
21
- root: 'a'
22
- },
23
- root: slot.always(getIntrinsicElementProps('a', {
24
- ref,
25
- href: referenceHref,
26
- role: undefined,
27
- 'aria-expanded': undefined,
28
- ...otherProps
29
- }), {
30
- elementType: 'a'
31
- })
32
- };
33
- return state;
12
+ */
13
+ export const useCitation_unstable = (props, ref) => {
14
+ const {
15
+ referenceHref,
16
+ block = false,
17
+ ...otherProps
18
+ } = props;
19
+ const designVersion = useDesignVersion(props.designVersion);
20
+ const isPopoverLocked = usePreviewContext_unstable(ctx => ctx.isPreviewLocked) && props['aria-expanded'];
21
+ const state = {
22
+ block,
23
+ designVersion,
24
+ isPopoverLocked,
25
+ components: {
26
+ root: 'a'
27
+ },
28
+ root: slot.always(getIntrinsicElementProps('a', {
29
+ ref,
30
+ href: referenceHref,
31
+ role: undefined,
32
+ 'aria-expanded': undefined,
33
+ ...otherProps
34
+ }), {
35
+ elementType: 'a'
36
+ })
37
+ };
38
+ return state;
34
39
  };
40
+ //# sourceMappingURL=useCitation.js.map
@@ -1,69 +1,74 @@
1
1
  import { makeResetStyles, makeStyles, mergeClasses, shorthands, typographyStyles } from '@fluentui/react-components';
2
2
  import { tokens } from '@fluentui-copilot/tokens';
3
3
  export const citationClassNames = {
4
- root: 'fai-Citation'
4
+ root: 'fai-Citation'
5
5
  };
6
6
  const useCitationBaseClassName = makeResetStyles({
7
- display: 'inline-flex',
8
- justifyContent: 'center',
9
- boxSizing: 'border-box',
10
- alignItems: 'center',
7
+ display: 'inline-flex',
8
+ justifyContent: 'center',
9
+ boxSizing: 'border-box',
10
+ alignItems: 'center',
11
+ cursor: 'pointer',
12
+ ...typographyStyles.caption2Strong,
13
+ backgroundColor: tokens.colorNeutralBackground3,
14
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,
15
+ color: tokens.colorNeutralForeground2,
16
+ minWidth: '14px',
17
+ height: '14px',
18
+ verticalAlign: `calc((${typographyStyles.caption2Strong.lineHeight} - ${typographyStyles.caption2Strong.fontSize}) / 2)`,
19
+ paddingInline: tokens.spacingHorizontalXXS,
20
+ borderRadius: tokens.borderRadiusMedium,
21
+ textDecoration: 'none',
22
+ marginLeft: tokens.spacingHorizontalXXS,
23
+ marginRight: tokens.spacingHorizontalXXS,
24
+ ':hover': {
11
25
  cursor: 'pointer',
12
- ...typographyStyles.caption2Strong,
13
- backgroundColor: tokens.colorNeutralBackground3,
14
- border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,
15
- color: tokens.colorNeutralForeground2,
16
- minWidth: '14px',
17
- height: '14px',
18
- verticalAlign: `calc((${typographyStyles.caption2Strong.lineHeight} - ${typographyStyles.caption2Strong.fontSize}) / 2)`,
19
- paddingInline: tokens.spacingHorizontalXXS,
20
- borderRadius: tokens.borderRadiusMedium,
21
- textDecoration: 'none',
22
- marginLeft: tokens.spacingHorizontalXXS,
23
- marginRight: tokens.spacingHorizontalXXS,
24
- ':hover': {
25
- cursor: 'pointer',
26
- color: tokens.colorBrandForeground2Hover,
27
- borderColor: tokens.colorBrandStroke2Hover,
28
- backgroundColor: tokens.colorBrandBackground2Hover
29
- },
30
- ':hover:active': {
31
- cursor: 'pointer',
32
- color: tokens.colorBrandForeground2Pressed,
33
- borderColor: tokens.colorBrandStroke2Pressed,
34
- backgroundColor: tokens.colorBrandBackground2Pressed
35
- }
26
+ color: tokens.colorBrandForeground2Hover,
27
+ borderColor: tokens.colorBrandStroke2Hover,
28
+ backgroundColor: tokens.colorBrandBackground2Hover
29
+ },
30
+ ':hover:active': {
31
+ cursor: 'pointer',
32
+ color: tokens.colorBrandForeground2Pressed,
33
+ borderColor: tokens.colorBrandStroke2Pressed,
34
+ backgroundColor: tokens.colorBrandBackground2Pressed
35
+ }
36
36
  });
37
37
  const useCitationRootStyles = makeStyles({
38
- isBlock: {
39
- display: 'flex',
40
- marginLeft: 0,
41
- marginRight: 0
42
- },
43
- isPopoverLocked: {
44
- color: tokens.colorBrandForeground2Pressed,
45
- ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),
46
- backgroundColor: tokens.colorBrandBackground2,
47
- ':hover': {
48
- color: tokens.colorBrandForeground2Pressed,
49
- ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),
50
- backgroundColor: tokens.colorBrandBackground2
51
- }
38
+ isBlock: {
39
+ display: 'flex',
40
+ marginLeft: 0,
41
+ marginRight: 0
42
+ },
43
+ isPopoverLocked: {
44
+ color: tokens.colorBrandForeground2Pressed,
45
+ ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),
46
+ backgroundColor: tokens.colorBrandBackground2,
47
+ ':hover': {
48
+ color: tokens.colorBrandForeground2Pressed,
49
+ ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),
50
+ backgroundColor: tokens.colorBrandBackground2
52
51
  }
52
+ }
53
53
  });
54
54
  const useNextStyles = makeStyles({
55
- root: {
56
- borderRadius: tokens.borderRadiusXLarge
57
- }
55
+ root: {
56
+ borderRadius: tokens.borderRadiusXLarge
57
+ }
58
58
  });
59
59
  /**
60
60
  * Apply styling to the Citation slots based on the state
61
- */ export const useCitationStyles_unstable = (state)=>{
62
- 'use no memo';
63
- const { designVersion } = state;
64
- const rootBaseClassName = useCitationBaseClassName();
65
- const rootStyles = useCitationRootStyles();
66
- const nextStyles = useNextStyles();
67
- state.root.className = mergeClasses(citationClassNames.root, state.isPopoverLocked && rootStyles.isPopoverLocked, state.block && rootStyles.isBlock, rootBaseClassName, designVersion === 'next' && nextStyles.root, state.root.className);
68
- return state;
61
+ */
62
+ export const useCitationStyles_unstable = state => {
63
+ 'use no memo';
64
+
65
+ const {
66
+ designVersion
67
+ } = state;
68
+ const rootBaseClassName = useCitationBaseClassName();
69
+ const rootStyles = useCitationRootStyles();
70
+ const nextStyles = useNextStyles();
71
+ state.root.className = mergeClasses(citationClassNames.root, state.isPopoverLocked && rootStyles.isPopoverLocked, state.block && rootStyles.isBlock, rootBaseClassName, designVersion === 'next' && nextStyles.root, state.root.className);
72
+ return state;
69
73
  };
74
+ //# sourceMappingURL=useCitationStyles.styles.raw.js.map
@@ -3,10 +3,12 @@ import { useReference_unstable } from './useReference';
3
3
  import { renderReference_unstable } from './renderReference';
4
4
  import { useReferenceStyles_unstable } from './useReferenceStyles.styles';
5
5
  import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
- /** deprecated Use ReferenceV2 component, hooks and types instead. */ export const Reference = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
- const state = useReference_unstable(props, ref);
8
- useReferenceStyles_unstable(state);
9
- useCustomStyleHook('useReferenceStyles')(state);
10
- return renderReference_unstable(state);
6
+ /** deprecated Use ReferenceV2 component, hooks and types instead. */
7
+ export const Reference = /*#__PURE__*/React.forwardRef((props, ref) => {
8
+ const state = useReference_unstable(props, ref);
9
+ useReferenceStyles_unstable(state);
10
+ useCustomStyleHook('useReferenceStyles')(state);
11
+ return renderReference_unstable(state);
11
12
  });
12
13
  Reference.displayName = 'Reference';
14
+ //# sourceMappingURL=Reference.js.map
@@ -1 +1,2 @@
1
- /** deprecated Use ReferenceV2 component, hooks and types instead. */ export { };
1
+ /** deprecated Use ReferenceV2 component, hooks and types instead. */export {};
2
+ //# sourceMappingURL=Reference.types.js.map
@@ -2,3 +2,4 @@ export { Reference } from './Reference';
2
2
  export { renderReference_unstable } from './renderReference';
3
3
  export { useReference_unstable } from './useReference';
4
4
  export { referenceClassNames, referenceExtraClassNames, useReferenceStyles_unstable } from './useReferenceStyles.styles';
5
+ //# sourceMappingURL=index.js.map
@@ -1,29 +1,14 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-components';
3
- /** deprecated Use ReferenceV2 component, hooks and types instead. */ export const renderReference_unstable = (state)=>{
4
- assertSlots(state);
5
- return /*#__PURE__*/ _jsxs(state.root, {
6
- children: [
7
- state.citation && /*#__PURE__*/ _jsx(state.citation, {}),
8
- state.media && /*#__PURE__*/ _jsx(state.media, {}),
9
- /*#__PURE__*/ _jsx(state.label, {}),
10
- state.actions && /*#__PURE__*/ _jsxs(state.actions, {
11
- children: [
12
- state.actions.children,
13
- state.detailsButton && /*#__PURE__*/ _jsx(state.detailsButton, {})
14
- ]
15
- }),
16
- state.sensitivity && /*#__PURE__*/ _jsx(state.sensitivity, {}),
17
- /*#__PURE__*/ _jsxs(state.metadata, {
18
- children: [
19
- state.primaryText && /*#__PURE__*/ _jsx(state.primaryText, {}),
20
- state.secondaryText && /*#__PURE__*/ _jsx(state.secondaryText, {}),
21
- state.tertiaryText && /*#__PURE__*/ _jsx(state.tertiaryText, {}),
22
- state.icon && /*#__PURE__*/ _jsx(state.icon, {}),
23
- state.metadata.children
24
- ]
25
- }),
26
- /*#__PURE__*/ _jsx(state.content, {})
27
- ]
28
- });
3
+ /** deprecated Use ReferenceV2 component, hooks and types instead. */
4
+ export const renderReference_unstable = state => {
5
+ assertSlots(state);
6
+ return /*#__PURE__*/_jsxs(state.root, {
7
+ children: [state.citation && /*#__PURE__*/_jsx(state.citation, {}), state.media && /*#__PURE__*/_jsx(state.media, {}), /*#__PURE__*/_jsx(state.label, {}), state.actions && /*#__PURE__*/_jsxs(state.actions, {
8
+ children: [state.actions.children, state.detailsButton && /*#__PURE__*/_jsx(state.detailsButton, {})]
9
+ }), state.sensitivity && /*#__PURE__*/_jsx(state.sensitivity, {}), /*#__PURE__*/_jsxs(state.metadata, {
10
+ children: [state.primaryText && /*#__PURE__*/_jsx(state.primaryText, {}), state.secondaryText && /*#__PURE__*/_jsx(state.secondaryText, {}), state.tertiaryText && /*#__PURE__*/_jsx(state.tertiaryText, {}), state.icon && /*#__PURE__*/_jsx(state.icon, {}), state.metadata.children]
11
+ }), /*#__PURE__*/_jsx(state.content, {})]
12
+ });
29
13
  };
14
+ //# sourceMappingURL=renderReference.js.map