@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.
- package/CHANGELOG.json +4 -4
- package/CHANGELOG.md +5 -5
- package/lib/Citation.js +1 -0
- package/lib/Reference.js +1 -0
- package/lib/ReferenceGroupToggle.js +1 -0
- package/lib/ReferenceList.js +1 -0
- package/lib/ReferenceListV2.js +1 -0
- package/lib/ReferenceOverflowButton.js +1 -0
- package/lib/ReferenceV2.js +1 -0
- package/lib/components/Citation/Citation.js +6 -5
- package/lib/components/Citation/Citation.types.js +2 -1
- package/lib/components/Citation/index.js +1 -0
- package/lib/components/Citation/renderCitation.js +6 -4
- package/lib/components/Citation/useCitation.js +28 -22
- package/lib/components/Citation/useCitationStyles.styles.raw.js +59 -54
- package/lib/components/Reference/Reference.js +7 -5
- package/lib/components/Reference/Reference.types.js +2 -1
- package/lib/components/Reference/index.js +1 -0
- package/lib/components/Reference/renderReference.js +12 -27
- package/lib/components/Reference/useReference.js +172 -173
- package/lib/components/Reference/useReferenceStyles.styles.raw.js +181 -172
- package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.js +6 -4
- package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +2 -1
- package/lib/components/ReferenceGroupToggle/index.js +1 -0
- package/lib/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +8 -9
- package/lib/components/ReferenceGroupToggle/useReferenceGroupToggle.js +30 -26
- package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js +36 -31
- package/lib/components/ReferenceList/ReferenceList.js +7 -5
- package/lib/components/ReferenceList/ReferenceList.types.js +2 -1
- package/lib/components/ReferenceList/index.js +1 -0
- package/lib/components/ReferenceList/renderReferenceList.js +6 -4
- package/lib/components/ReferenceList/useReferenceList.js +17 -15
- package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js +22 -16
- package/lib/components/reference-v2/Reference/Reference.js +5 -4
- package/lib/components/reference-v2/Reference/Reference.types.js +2 -1
- package/lib/components/reference-v2/Reference/index.js +1 -0
- package/lib/components/reference-v2/Reference/renderReference.js +17 -20
- package/lib/components/reference-v2/Reference/useReference.js +59 -53
- package/lib/components/reference-v2/Reference/useReferenceStyles.styles.raw.js +89 -84
- package/lib/components/reference-v2/ReferenceList/ReferenceList.js +6 -5
- package/lib/components/reference-v2/ReferenceList/ReferenceList.types.js +2 -1
- package/lib/components/reference-v2/ReferenceList/index.js +1 -0
- package/lib/components/reference-v2/ReferenceList/renderReferenceList.js +17 -17
- package/lib/components/reference-v2/ReferenceList/useReferenceList.js +80 -70
- package/lib/components/reference-v2/ReferenceList/useReferenceListContextValues.js +21 -13
- package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js +38 -31
- package/lib/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js +5 -4
- package/lib/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.types.js +2 -1
- package/lib/components/reference-v2/ReferenceOverflowButton/index.js +1 -0
- package/lib/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js +14 -9
- package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js +77 -77
- package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +39 -33
- package/lib/components/reference-v2/index.js +1 -0
- package/lib/contexts/ReferenceGroupContext.js +6 -5
- package/lib/contexts/reference-v2/index.js +1 -0
- package/lib/contexts/reference-v2/referenceListContext.js +12 -11
- package/lib/index.js +1 -0
- package/lib/utilities/index.js +1 -0
- package/lib/utilities/reference-v2/generateReferenceCitationPreview.js +86 -75
- package/lib/utilities/reference-v2/index.js +1 -0
- package/lib/utilities/reference-v2/useReferenceCitationPreview.js +5 -5
- package/lib/utilities/useReferenceCitationPreview.js +114 -123
- package/lib/utilities/useReferenceGroup.js +24 -26
- package/lib/utilities/useReferenceGroup.styles.raw.js +4 -3
- package/lib-commonjs/Citation.js +1 -0
- package/lib-commonjs/Reference.js +1 -0
- package/lib-commonjs/ReferenceGroupToggle.js +1 -0
- package/lib-commonjs/ReferenceList.js +1 -0
- package/lib-commonjs/ReferenceListV2.js +1 -0
- package/lib-commonjs/ReferenceOverflowButton.js +1 -0
- package/lib-commonjs/ReferenceV2.js +1 -0
- package/lib-commonjs/components/Citation/Citation.js +1 -1
- package/lib-commonjs/components/Citation/Citation.js.map +1 -1
- package/lib-commonjs/components/Citation/Citation.types.js +1 -0
- package/lib-commonjs/components/Citation/index.js +1 -0
- package/lib-commonjs/components/Citation/renderCitation.js +1 -1
- package/lib-commonjs/components/Citation/renderCitation.js.map +1 -1
- package/lib-commonjs/components/Citation/useCitation.js +1 -1
- package/lib-commonjs/components/Citation/useCitation.js.map +1 -1
- package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/Reference/Reference.js +1 -1
- package/lib-commonjs/components/Reference/Reference.js.map +1 -1
- package/lib-commonjs/components/Reference/Reference.types.js +1 -0
- package/lib-commonjs/components/Reference/index.js +1 -0
- package/lib-commonjs/components/Reference/renderReference.js +1 -1
- package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
- package/lib-commonjs/components/Reference/useReference.js +1 -1
- package/lib-commonjs/components/Reference/useReference.js.map +1 -1
- package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js.map +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +1 -0
- package/lib-commonjs/components/ReferenceGroupToggle/index.js +1 -0
- package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js.map +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js.map +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.js +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.types.js +1 -0
- package/lib-commonjs/components/ReferenceList/index.js +1 -0
- package/lib-commonjs/components/ReferenceList/renderReferenceList.js +1 -1
- package/lib-commonjs/components/ReferenceList/renderReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceList.js +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/reference-v2/Reference/Reference.js +1 -1
- package/lib-commonjs/components/reference-v2/Reference/Reference.js.map +1 -1
- package/lib-commonjs/components/reference-v2/Reference/Reference.types.js +1 -0
- package/lib-commonjs/components/reference-v2/Reference/index.js +1 -0
- package/lib-commonjs/components/reference-v2/Reference/renderReference.js +1 -1
- package/lib-commonjs/components/reference-v2/Reference/renderReference.js.map +1 -1
- package/lib-commonjs/components/reference-v2/Reference/useReference.js +1 -1
- package/lib-commonjs/components/reference-v2/Reference/useReference.js.map +1 -1
- package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.types.js +1 -0
- package/lib-commonjs/components/reference-v2/ReferenceList/index.js +1 -0
- package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListContextValues.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListContextValues.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.types.js +1 -0
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/index.js +1 -0
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +1 -1
- package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +1 -1
- package/lib-commonjs/components/reference-v2/index.js +1 -0
- package/lib-commonjs/contexts/ReferenceGroupContext.js +1 -1
- package/lib-commonjs/contexts/ReferenceGroupContext.js.map +1 -1
- package/lib-commonjs/contexts/reference-v2/index.js +1 -0
- package/lib-commonjs/contexts/reference-v2/referenceListContext.js +1 -1
- package/lib-commonjs/contexts/reference-v2/referenceListContext.js.map +1 -1
- package/lib-commonjs/index.js +1 -0
- package/lib-commonjs/utilities/index.js +1 -0
- package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js +1 -1
- package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js.map +1 -1
- package/lib-commonjs/utilities/reference-v2/index.js +1 -0
- package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js +1 -1
- package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js.map +1 -1
- package/lib-commonjs/utilities/useReferenceCitationPreview.js +1 -1
- package/lib-commonjs/utilities/useReferenceCitationPreview.js.map +1 -1
- package/lib-commonjs/utilities/useReferenceGroup.js +1 -1
- package/lib-commonjs/utilities/useReferenceGroup.js.map +1 -1
- package/lib-commonjs/utilities/useReferenceGroup.styles.raw.js +1 -1
- package/lib-commonjs/utilities/useReferenceGroup.styles.raw.js.map +1 -1
- 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": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-reference_v0.15.5-hotfix.
|
|
7
|
-
"version": "0.15.5-hotfix.
|
|
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.
|
|
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
|
|
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.
|
|
7
|
+
## [0.15.5-hotfix.2](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.15.5-hotfix.2)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.15.5..@fluentui-copilot/react-reference_v0.15.5-hotfix.
|
|
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.
|
|
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
package/lib/Reference.js
CHANGED
package/lib/ReferenceList.js
CHANGED
package/lib/ReferenceListV2.js
CHANGED
|
@@ -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
|
package/lib/ReferenceV2.js
CHANGED
|
@@ -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__*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
4
|
+
root: 'fai-Citation'
|
|
5
5
|
};
|
|
6
6
|
const useCitationBaseClassName = makeResetStyles({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
56
|
-
|
|
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
|
-
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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. */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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. */
|
|
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
|
-
|
|
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. */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|