@fluentui-copilot/react-reference 0.16.2 → 0.16.3

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 (98) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +11 -2
  3. package/lib/Citation.js +0 -1
  4. package/lib/Reference.js +0 -1
  5. package/lib/ReferenceList.js +0 -1
  6. package/lib/ReferenceOverflowButton.js +0 -1
  7. package/lib/components/Citation/Citation.js +5 -6
  8. package/lib/components/Citation/Citation.types.js +1 -2
  9. package/lib/components/Citation/index.js +0 -1
  10. package/lib/components/Citation/renderCitation.js +4 -6
  11. package/lib/components/Citation/useCitation.js +22 -28
  12. package/lib/components/Citation/useCitationStyles.styles.raw.js +69 -0
  13. package/lib/components/Citation/useCitationStyles.styles.raw.js.map +1 -0
  14. package/lib/components/Reference/Reference.js +4 -5
  15. package/lib/components/Reference/Reference.types.js +1 -2
  16. package/lib/components/Reference/index.js +0 -1
  17. package/lib/components/Reference/renderReference.js +20 -17
  18. package/lib/components/Reference/useReference.js +53 -59
  19. package/lib/components/Reference/useReferenceStyles.styles.raw.js +110 -0
  20. package/lib/components/Reference/useReferenceStyles.styles.raw.js.map +1 -0
  21. package/lib/components/ReferenceList/ReferenceList.js +5 -6
  22. package/lib/components/ReferenceList/ReferenceList.types.js +1 -2
  23. package/lib/components/ReferenceList/index.js +0 -1
  24. package/lib/components/ReferenceList/renderReferenceList.js +17 -17
  25. package/lib/components/ReferenceList/useReferenceList.js +70 -80
  26. package/lib/components/ReferenceList/useReferenceListContextValues.js +13 -21
  27. package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js +47 -0
  28. package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -0
  29. package/lib/components/ReferenceOverflowButton/ReferenceOverflowButton.js +4 -5
  30. package/lib/components/ReferenceOverflowButton/ReferenceOverflowButton.types.js +1 -2
  31. package/lib/components/ReferenceOverflowButton/index.js +0 -1
  32. package/lib/components/ReferenceOverflowButton/renderReferenceOverflowButton.js +9 -14
  33. package/lib/components/ReferenceOverflowButton/useReferenceOverflowButton.js +77 -77
  34. package/lib/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +45 -0
  35. package/lib/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +1 -0
  36. package/lib/contexts/index.js +0 -1
  37. package/lib/contexts/referenceListContext.js +11 -12
  38. package/lib/index.js +12 -25
  39. package/lib/utilities/generateReferenceCitationPreview.js +75 -86
  40. package/lib/utilities/index.js +0 -1
  41. package/lib/utilities/useReferenceCitationPreview.js +5 -5
  42. package/lib-commonjs/Citation.js +0 -1
  43. package/lib-commonjs/Reference.js +0 -1
  44. package/lib-commonjs/ReferenceList.js +0 -1
  45. package/lib-commonjs/ReferenceOverflowButton.js +0 -1
  46. package/lib-commonjs/components/Citation/Citation.js +1 -1
  47. package/lib-commonjs/components/Citation/Citation.js.map +1 -1
  48. package/lib-commonjs/components/Citation/Citation.types.js +0 -1
  49. package/lib-commonjs/components/Citation/index.js +0 -1
  50. package/lib-commonjs/components/Citation/renderCitation.js +1 -1
  51. package/lib-commonjs/components/Citation/renderCitation.js.map +1 -1
  52. package/lib-commonjs/components/Citation/useCitation.js +1 -1
  53. package/lib-commonjs/components/Citation/useCitation.js.map +1 -1
  54. package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js +85 -0
  55. package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js.map +1 -0
  56. package/lib-commonjs/components/Reference/Reference.js +1 -1
  57. package/lib-commonjs/components/Reference/Reference.js.map +1 -1
  58. package/lib-commonjs/components/Reference/Reference.types.js +0 -1
  59. package/lib-commonjs/components/Reference/index.js +0 -1
  60. package/lib-commonjs/components/Reference/renderReference.js +1 -1
  61. package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
  62. package/lib-commonjs/components/Reference/useReference.js +1 -1
  63. package/lib-commonjs/components/Reference/useReference.js.map +1 -1
  64. package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js +132 -0
  65. package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js.map +1 -0
  66. package/lib-commonjs/components/ReferenceList/ReferenceList.js +1 -1
  67. package/lib-commonjs/components/ReferenceList/ReferenceList.js.map +1 -1
  68. package/lib-commonjs/components/ReferenceList/ReferenceList.types.js +0 -1
  69. package/lib-commonjs/components/ReferenceList/index.js +0 -1
  70. package/lib-commonjs/components/ReferenceList/renderReferenceList.js +1 -1
  71. package/lib-commonjs/components/ReferenceList/renderReferenceList.js.map +1 -1
  72. package/lib-commonjs/components/ReferenceList/useReferenceList.js +1 -1
  73. package/lib-commonjs/components/ReferenceList/useReferenceList.js.map +1 -1
  74. package/lib-commonjs/components/ReferenceList/useReferenceListContextValues.js +1 -1
  75. package/lib-commonjs/components/ReferenceList/useReferenceListContextValues.js.map +1 -1
  76. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js +63 -0
  77. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -0
  78. package/lib-commonjs/components/ReferenceOverflowButton/ReferenceOverflowButton.js +1 -1
  79. package/lib-commonjs/components/ReferenceOverflowButton/ReferenceOverflowButton.js.map +1 -1
  80. package/lib-commonjs/components/ReferenceOverflowButton/ReferenceOverflowButton.types.js +0 -1
  81. package/lib-commonjs/components/ReferenceOverflowButton/index.js +0 -1
  82. package/lib-commonjs/components/ReferenceOverflowButton/renderReferenceOverflowButton.js +1 -1
  83. package/lib-commonjs/components/ReferenceOverflowButton/renderReferenceOverflowButton.js.map +1 -1
  84. package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButton.js +1 -1
  85. package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -1
  86. package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +61 -0
  87. package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +1 -0
  88. package/lib-commonjs/contexts/index.js +0 -1
  89. package/lib-commonjs/contexts/referenceListContext.js +1 -1
  90. package/lib-commonjs/contexts/referenceListContext.js.map +1 -1
  91. package/lib-commonjs/index.js +0 -1
  92. package/lib-commonjs/index.js.map +1 -1
  93. package/lib-commonjs/utilities/generateReferenceCitationPreview.js +1 -1
  94. package/lib-commonjs/utilities/generateReferenceCitationPreview.js.map +1 -1
  95. package/lib-commonjs/utilities/index.js +0 -1
  96. package/lib-commonjs/utilities/useReferenceCitationPreview.js +1 -1
  97. package/lib-commonjs/utilities/useReferenceCitationPreview.js.map +1 -1
  98. package/package.json +6 -6
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui-copilot/react-reference",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 01 Jul 2025 14:43:47 GMT",
5
+ "date": "Thu, 17 Jul 2025 17:47:34 GMT",
6
+ "tag": "@fluentui-copilot/react-reference_v0.16.3",
7
+ "version": "0.16.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "hochelmartin@gmail.com",
12
+ "package": "@fluentui-copilot/react-reference",
13
+ "commit": "fef5160c07333e8d9996952a305b34e357604919",
14
+ "comment": "feat: enable griffel raw styles"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 01 Jul 2025 14:45:29 GMT",
6
21
  "tag": "@fluentui-copilot/react-reference_v0.16.2",
7
22
  "version": "0.16.2",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui-copilot/react-reference
2
2
 
3
- This log was last generated on Tue, 01 Jul 2025 14:43:47 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 17 Jul 2025 17:47:34 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.16.3](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.16.3)
8
+
9
+ Thu, 17 Jul 2025 17:47:34 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.16.2..@fluentui-copilot/react-reference_v0.16.3)
11
+
12
+ ### Patches
13
+
14
+ - feat: enable griffel raw styles ([PR #3227](https://github.com/microsoft/fluentai/pull/3227) by hochelmartin@gmail.com)
15
+
7
16
  ## [0.16.2](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.16.2)
8
17
 
9
- Tue, 01 Jul 2025 14:43:47 GMT
18
+ Tue, 01 Jul 2025 14:45:29 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.16.0..@fluentui-copilot/react-reference_v0.16.2)
11
20
 
12
21
  ### Patches
package/lib/Citation.js CHANGED
@@ -1,2 +1 @@
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,2 +1 @@
1
1
  export { Reference, referenceClassNames, referenceExtraClassNames, renderReference_unstable, useReferenceStyles_unstable, useReference_unstable } from './components/Reference/index';
2
- //# sourceMappingURL=Reference.js.map
@@ -1,2 +1 @@
1
1
  export { ReferenceList, referenceListClassNames, renderReferenceList_unstable, useReferenceListStyles_unstable, useReferenceList_unstable } from './components/ReferenceList/index';
2
- //# sourceMappingURL=ReferenceList.js.map
@@ -1,2 +1 @@
1
1
  export { ReferenceOverflowButton, referenceOverflowButtonClassNames, renderReferenceOverflowButton_unstable, useReferenceOverflowButtonStyles_unstable, useReferenceOverflowButton_unstable } from './components/ReferenceOverflowButton/index';
2
- //# sourceMappingURL=ReferenceOverflowButton.js.map
@@ -4,11 +4,10 @@ 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,4 +1,3 @@
1
1
  /**
2
2
  * State used in rendering Citation
3
- */export {};
4
- //# sourceMappingURL=Citation.types.js.map
3
+ */ export { };
@@ -2,4 +2,3 @@ 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,10 +1,8 @@
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
- */
6
- export const renderCitation_unstable = state => {
7
- assertSlots(state);
8
- return /*#__PURE__*/_jsx(state.root, {});
5
+ */ export const renderCitation_unstable = (state)=>{
6
+ assertSlots(state);
7
+ return /*#__PURE__*/ _jsx(state.root, {});
9
8
  };
10
- //# sourceMappingURL=renderCitation.js.map
@@ -9,32 +9,26 @@ 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
- 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;
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;
39
34
  };
40
- //# sourceMappingURL=useCitation.js.map
@@ -0,0 +1,69 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';
2
+ import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
3
+ export const citationClassNames = {
4
+ root: 'fai-Citation'
5
+ };
6
+ const useCitationBaseClassName = makeResetStyles({
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': {
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
+ }
36
+ });
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
+ }
52
+ }
53
+ });
54
+ const useNextStyles = makeStyles({
55
+ root: {
56
+ borderRadius: tokens.borderRadiusXLarge
57
+ }
58
+ });
59
+ /**
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;
69
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useCitationStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { CitationSlots, CitationState } from './Citation.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const citationClassNames: SlotClassNames<CitationSlots> = {\n root: 'fai-Citation',\n};\n\nconst useCitationBaseClassName = makeResetStyles({\n display: 'inline-flex',\n justifyContent: 'center',\n boxSizing: 'border-box',\n alignItems: 'center',\n cursor: 'pointer',\n ...typographyStyles.caption2Strong,\n\n backgroundColor: tokens.colorNeutralBackground3,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,\n color: tokens.colorNeutralForeground2,\n\n minWidth: '14px',\n height: '14px',\n verticalAlign: `calc((${typographyStyles.caption2Strong.lineHeight} - ${typographyStyles.caption2Strong.fontSize}) / 2)`,\n paddingInline: tokens.spacingHorizontalXXS,\n\n borderRadius: tokens.borderRadiusMedium,\n\n textDecoration: 'none',\n\n marginLeft: tokens.spacingHorizontalXXS,\n marginRight: tokens.spacingHorizontalXXS,\n\n ':hover': {\n cursor: 'pointer',\n color: tokens.colorBrandForeground2Hover,\n borderColor: tokens.colorBrandStroke2Hover,\n backgroundColor: tokens.colorBrandBackground2Hover,\n },\n\n ':hover:active': {\n cursor: 'pointer',\n color: tokens.colorBrandForeground2Pressed,\n borderColor: tokens.colorBrandStroke2Pressed,\n backgroundColor: tokens.colorBrandBackground2Pressed,\n },\n});\n\nconst useCitationRootStyles = makeStyles({\n isBlock: {\n display: 'flex',\n marginLeft: 0,\n marginRight: 0,\n },\n isPopoverLocked: {\n color: tokens.colorBrandForeground2Pressed,\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n backgroundColor: tokens.colorBrandBackground2,\n ':hover': {\n color: tokens.colorBrandForeground2Pressed,\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n backgroundColor: tokens.colorBrandBackground2,\n },\n },\n});\n\nconst useNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\n/**\n * Apply styling to the Citation slots based on the state\n */\nexport const useCitationStyles_unstable = (state: CitationState): CitationState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootBaseClassName = useCitationBaseClassName();\n const rootStyles = useCitationRootStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n citationClassNames.root,\n state.isPopoverLocked && rootStyles.isPopoverLocked,\n state.block && rootStyles.isBlock,\n rootBaseClassName,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","shorthands","tokens","typographyStyles","citationClassNames","root","useCitationBaseClassName","display","justifyContent","boxSizing","alignItems","cursor","caption2Strong","backgroundColor","colorNeutralBackground3","border","strokeWidthThin","colorNeutralStroke2","color","colorNeutralForeground2","minWidth","height","verticalAlign","lineHeight","fontSize","paddingInline","spacingHorizontalXXS","borderRadius","borderRadiusMedium","textDecoration","marginLeft","marginRight","colorBrandForeground2Hover","borderColor","colorBrandStroke2Hover","colorBrandBackground2Hover","colorBrandForeground2Pressed","colorBrandStroke2Pressed","colorBrandBackground2Pressed","useCitationRootStyles","isBlock","isPopoverLocked","colorBrandBackground2","useNextStyles","borderRadiusXLarge","useCitationStyles_unstable","state","designVersion","rootBaseClassName","rootStyles","nextStyles","className","block"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,EAAEC,UAAU,QAAQ,6BAA6B;AACnG,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,2BAA2B;AAIpE,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;AACR,EAAE;AAEF,MAAMC,2BAA2BR,gBAAgB;IAC/CS,SAAS;IACTC,gBAAgB;IAChBC,WAAW;IACXC,YAAY;IACZC,QAAQ;IACR,GAAGR,iBAAiBS,cAAc;IAElCC,iBAAiBX,OAAOY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zC;IAEA,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,oBAAoB1C;IAC1B,MAAM2C,aAAaV;IACnB,MAAMW,aAAaP;IAEnBG,MAAMzC,IAAI,CAAC8C,SAAS,GAAGnD,aACrBI,mBAAmBC,IAAI,EACvByC,MAAML,eAAe,IAAIQ,WAAWR,eAAe,EACnDK,MAAMM,KAAK,IAAIH,WAAWT,OAAO,EACjCQ,mBACAD,kBAAkB,UAAUG,WAAW7C,IAAI,EAC3CyC,MAAMzC,IAAI,CAAC8C,SAAS;IAGtB,OAAOL;AACT,EAAE"}
@@ -2,10 +2,9 @@ import * as React from 'react';
2
2
  import { useReference_unstable } from './useReference';
3
3
  import { renderReference_unstable } from './renderReference';
4
4
  import { useReferenceStyles_unstable } from './useReferenceStyles.styles';
5
- export const Reference = /*#__PURE__*/React.forwardRef((props, ref) => {
6
- const state = useReference_unstable(props, ref);
7
- useReferenceStyles_unstable(state);
8
- return renderReference_unstable(state);
5
+ export const Reference = /*#__PURE__*/ React.forwardRef((props, ref)=>{
6
+ const state = useReference_unstable(props, ref);
7
+ useReferenceStyles_unstable(state);
8
+ return renderReference_unstable(state);
9
9
  });
10
10
  Reference.displayName = 'Reference';
11
- //# sourceMappingURL=Reference.js.map
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Reference.types.js.map
1
+ export { };
@@ -2,4 +2,3 @@ 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,19 +1,22 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { OverflowItem, assertSlots } from '@fluentui/react-components';
3
- export const renderReference_unstable = state => {
4
- assertSlots(state);
5
- const {
6
- id,
7
- shouldUseOverflow
8
- } = state;
9
- const reference = /*#__PURE__*/_jsxs(state.root, {
10
- children: [state.citation && /*#__PURE__*/_jsx(state.citation, {}), state.divider && /*#__PURE__*/_jsx(state.divider, {}), state.content && /*#__PURE__*/_jsxs(state.content, {
11
- children: [state.graphic && /*#__PURE__*/_jsx(state.graphic, {}), state.root.children]
12
- })]
13
- });
14
- return shouldUseOverflow ? /*#__PURE__*/_jsx(OverflowItem, {
15
- id: id,
16
- children: reference
17
- }, id) : reference;
3
+ export const renderReference_unstable = (state)=>{
4
+ assertSlots(state);
5
+ const { id, shouldUseOverflow } = state;
6
+ const reference = /*#__PURE__*/ _jsxs(state.root, {
7
+ children: [
8
+ state.citation && /*#__PURE__*/ _jsx(state.citation, {}),
9
+ state.divider && /*#__PURE__*/ _jsx(state.divider, {}),
10
+ state.content && /*#__PURE__*/ _jsxs(state.content, {
11
+ children: [
12
+ state.graphic && /*#__PURE__*/ _jsx(state.graphic, {}),
13
+ state.root.children
14
+ ]
15
+ })
16
+ ]
17
+ });
18
+ return shouldUseOverflow ? /*#__PURE__*/ _jsx(OverflowItem, {
19
+ id: id,
20
+ children: reference
21
+ }, id) : reference;
18
22
  };
19
- //# sourceMappingURL=renderReference.js.map
@@ -11,64 +11,58 @@ import { useDesignVersion } from '@fluentui-copilot/react-provider';
11
11
  *
12
12
  * @param props - props from this instance of Reference
13
13
  * @param ref - reference to root HTMLElement of Reference
14
- */
15
- export const useReference_unstable = (props, ref) => {
16
- const {
17
- as,
18
- children,
19
- id
20
- } = props;
21
- const designVersion = useDesignVersion(props.designVersion);
22
- const shouldUseOverflow = useReferenceListContext_unstable(ctx => ctx.shouldUseOverflow);
23
- const referenceId = useId('reference-', id);
24
- const elementType = as || (props.href ? 'a' : 'button');
25
- const propsWithAssignedAs = {
26
- type: elementType === 'button' ? 'button' : undefined,
27
- ...props,
28
- as: elementType,
29
- id: referenceId
30
- };
31
- const citation = slot.optional(props.citation, {
32
- elementType: 'span'
33
- });
34
- const graphic = slot.optional(props.graphic, {
35
- elementType: 'span'
36
- });
37
- const content = slot.optional(props.content, {
38
- elementType: 'span',
39
- renderByDefault: graphic !== undefined || !!children
40
- });
41
- const divider = slot.optional(props.divider, {
42
- elementType: 'span',
43
- renderByDefault: citation !== undefined && content !== undefined
44
- });
45
- const state = {
46
- designVersion,
47
- id: referenceId,
48
- shouldUseOverflow,
49
- components: {
50
- root: elementType,
51
- citation: 'span',
52
- divider: 'span',
53
- graphic: 'span',
54
- content: 'span'
55
- },
56
- root: slot.always(getIntrinsicElementProps(elementType, {
57
- ref,
58
- ...propsWithAssignedAs
59
- }), {
60
- elementType
61
- }),
62
- citation,
63
- divider,
64
- content,
65
- graphic
66
- };
67
- if (state.graphic && React.isValidElement(state.graphic.children)) {
68
- state.graphic.children = React.cloneElement(state.graphic.children, {
69
- className: mergeClasses(state.graphic.children.props.className, referenceExtraClassNames.graphicChild)
14
+ */ export const useReference_unstable = (props, ref)=>{
15
+ const { as, children, id } = props;
16
+ const designVersion = useDesignVersion(props.designVersion);
17
+ const shouldUseOverflow = useReferenceListContext_unstable((ctx)=>ctx.shouldUseOverflow);
18
+ const referenceId = useId('reference-', id);
19
+ const elementType = as || (props.href ? 'a' : 'button');
20
+ const propsWithAssignedAs = {
21
+ type: elementType === 'button' ? 'button' : undefined,
22
+ ...props,
23
+ as: elementType,
24
+ id: referenceId
25
+ };
26
+ const citation = slot.optional(props.citation, {
27
+ elementType: 'span'
70
28
  });
71
- }
72
- return state;
29
+ const graphic = slot.optional(props.graphic, {
30
+ elementType: 'span'
31
+ });
32
+ const content = slot.optional(props.content, {
33
+ elementType: 'span',
34
+ renderByDefault: graphic !== undefined || !!children
35
+ });
36
+ const divider = slot.optional(props.divider, {
37
+ elementType: 'span',
38
+ renderByDefault: citation !== undefined && content !== undefined
39
+ });
40
+ const state = {
41
+ designVersion,
42
+ id: referenceId,
43
+ shouldUseOverflow,
44
+ components: {
45
+ root: elementType,
46
+ citation: 'span',
47
+ divider: 'span',
48
+ graphic: 'span',
49
+ content: 'span'
50
+ },
51
+ root: slot.always(getIntrinsicElementProps(elementType, {
52
+ ref,
53
+ ...propsWithAssignedAs
54
+ }), {
55
+ elementType
56
+ }),
57
+ citation,
58
+ divider,
59
+ content,
60
+ graphic
61
+ };
62
+ if (state.graphic && React.isValidElement(state.graphic.children)) {
63
+ state.graphic.children = React.cloneElement(state.graphic.children, {
64
+ className: mergeClasses(state.graphic.children.props.className, referenceExtraClassNames.graphicChild)
65
+ });
66
+ }
67
+ return state;
73
68
  };
74
- //# sourceMappingURL=useReference.js.map
@@ -0,0 +1,110 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';
2
+ import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
3
+ export const referenceClassNames = {
4
+ root: 'fai-Reference',
5
+ citation: 'fai-Reference__citation',
6
+ divider: 'fai-Reference__divider',
7
+ graphic: 'fai-Reference__graphic',
8
+ content: 'fai-Reference__content'
9
+ };
10
+ export const referenceExtraClassNames = {
11
+ graphicChild: 'fai-Reference__graphicChild'
12
+ };
13
+ const GRAPHIC_SIZE = '16px';
14
+ const useRootBaseClassName = makeResetStyles({
15
+ alignItems: 'center',
16
+ backgroundColor: tokens.colorNeutralBackground3,
17
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,
18
+ borderRadius: tokens.borderRadiusMedium,
19
+ boxSizing: 'border-box',
20
+ color: tokens.colorNeutralForeground2,
21
+ columnGap: tokens.spacingHorizontalXXS,
22
+ display: 'inline-flex',
23
+ flexShrink: 0,
24
+ justifyContent: 'center',
25
+ maxWidth: '100%',
26
+ minHeight: '24px',
27
+ padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalS}`,
28
+ textDecoration: 'none',
29
+ ':hover': {
30
+ backgroundColor: tokens.colorNeutralBackground3Hover,
31
+ borderColor: tokens.colorNeutralStroke1Hover,
32
+ color: tokens.colorNeutralForeground2Hover,
33
+ [`& .${referenceClassNames.divider}`]: {
34
+ backgroundColor: tokens.colorNeutralStroke1Hover
35
+ }
36
+ },
37
+ ':hover:active': {
38
+ backgroundColor: tokens.colorNeutralBackground3Pressed,
39
+ borderColor: tokens.colorNeutralStroke1Pressed,
40
+ color: tokens.colorNeutralForeground2Pressed,
41
+ [`& .${referenceClassNames.divider}`]: {
42
+ backgroundColor: tokens.colorNeutralStroke1Pressed
43
+ }
44
+ }
45
+ });
46
+ export const useRootStyles = makeStyles({
47
+ overflow: {
48
+ maxWidth: '100%',
49
+ width: '100%'
50
+ }
51
+ });
52
+ const useRootNextStyles = makeStyles({
53
+ root: {
54
+ borderRadius: tokens.borderRadiusXLarge
55
+ }
56
+ });
57
+ const useCitationBaseClassName = makeResetStyles({
58
+ ...typographyStyles.caption2Strong
59
+ });
60
+ const useDividerBaseClassName = makeResetStyles({
61
+ backgroundColor: tokens.colorNeutralStroke2,
62
+ height: '16px',
63
+ margin: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalXS}`,
64
+ width: '1px'
65
+ });
66
+ const useGraphicBaseClassName = makeResetStyles({
67
+ display: 'inline-flex',
68
+ fontSize: GRAPHIC_SIZE,
69
+ height: GRAPHIC_SIZE,
70
+ lineHeight: GRAPHIC_SIZE,
71
+ width: GRAPHIC_SIZE,
72
+ [`> .${referenceExtraClassNames.graphicChild}`]: {
73
+ height: GRAPHIC_SIZE,
74
+ width: GRAPHIC_SIZE
75
+ }
76
+ });
77
+ const useContentBaseClassName = makeResetStyles({
78
+ alignItems: 'center',
79
+ columnGap: tokens.spacingHorizontalSNudge,
80
+ display: 'inline-flex',
81
+ textAlign: 'start',
82
+ wordBreak: 'break-word',
83
+ ...typographyStyles.caption1
84
+ });
85
+ /**
86
+ * Apply styling to the Reference slots based on the state
87
+ */ export const useReferenceStyles_unstable = (state)=>{
88
+ 'use no memo';
89
+ const { designVersion } = state;
90
+ const rootBaseClassName = useRootBaseClassName();
91
+ const rootNextStyles = useRootNextStyles();
92
+ const citationBaseClassName = useCitationBaseClassName();
93
+ const dividerBaseClassName = useDividerBaseClassName();
94
+ const contentBaseClassName = useContentBaseClassName();
95
+ const graphicBaseClassName = useGraphicBaseClassName();
96
+ state.root.className = mergeClasses(referenceClassNames.root, rootBaseClassName, designVersion === 'next' && rootNextStyles.root, state.root.className);
97
+ if (state.citation) {
98
+ state.citation.className = mergeClasses(referenceClassNames.citation, citationBaseClassName, state.citation.className);
99
+ }
100
+ if (state.divider) {
101
+ state.divider.className = mergeClasses(referenceClassNames.divider, dividerBaseClassName, state.divider.className);
102
+ }
103
+ if (state.content) {
104
+ state.content.className = mergeClasses(referenceClassNames.content, contentBaseClassName, state.content.className);
105
+ }
106
+ if (state.graphic) {
107
+ state.graphic.className = mergeClasses(referenceClassNames.graphic, graphicBaseClassName, state.graphic.className);
108
+ }
109
+ return state;
110
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useReferenceStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { ReferenceSlots, ReferenceState } from './Reference.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const referenceClassNames: SlotClassNames<ReferenceSlots> = {\n root: 'fai-Reference',\n citation: 'fai-Reference__citation',\n divider: 'fai-Reference__divider',\n graphic: 'fai-Reference__graphic',\n content: 'fai-Reference__content',\n};\n\nexport const referenceExtraClassNames = {\n graphicChild: 'fai-Reference__graphicChild',\n};\n\nconst GRAPHIC_SIZE = '16px';\n\nconst useRootBaseClassName = makeResetStyles({\n alignItems: 'center',\n backgroundColor: tokens.colorNeutralBackground3,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n color: tokens.colorNeutralForeground2,\n columnGap: tokens.spacingHorizontalXXS,\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n maxWidth: '100%',\n minHeight: '24px',\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalS}`,\n textDecoration: 'none',\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground3Hover,\n borderColor: tokens.colorNeutralStroke1Hover,\n color: tokens.colorNeutralForeground2Hover,\n\n [`& .${referenceClassNames.divider}`]: {\n backgroundColor: tokens.colorNeutralStroke1Hover,\n },\n },\n\n ':hover:active': {\n backgroundColor: tokens.colorNeutralBackground3Pressed,\n borderColor: tokens.colorNeutralStroke1Pressed,\n color: tokens.colorNeutralForeground2Pressed,\n\n [`& .${referenceClassNames.divider}`]: {\n backgroundColor: tokens.colorNeutralStroke1Pressed,\n },\n },\n});\n\nexport const useRootStyles = makeStyles({\n overflow: {\n maxWidth: '100%',\n width: '100%',\n },\n});\n\nconst useRootNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\nconst useCitationBaseClassName = makeResetStyles({\n ...typographyStyles.caption2Strong,\n});\n\nconst useDividerBaseClassName = makeResetStyles({\n backgroundColor: tokens.colorNeutralStroke2,\n height: '16px',\n margin: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalXS}`,\n width: '1px',\n});\n\nconst useGraphicBaseClassName = makeResetStyles({\n display: 'inline-flex',\n fontSize: GRAPHIC_SIZE,\n height: GRAPHIC_SIZE,\n lineHeight: GRAPHIC_SIZE,\n width: GRAPHIC_SIZE,\n\n [`> .${referenceExtraClassNames.graphicChild}`]: {\n height: GRAPHIC_SIZE,\n width: GRAPHIC_SIZE,\n },\n});\n\nconst useContentBaseClassName = makeResetStyles({\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalSNudge,\n display: 'inline-flex',\n textAlign: 'start',\n wordBreak: 'break-word',\n ...typographyStyles.caption1,\n});\n\n/**\n * Apply styling to the Reference slots based on the state\n */\nexport const useReferenceStyles_unstable = (state: ReferenceState): ReferenceState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootBaseClassName = useRootBaseClassName();\n const rootNextStyles = useRootNextStyles();\n const citationBaseClassName = useCitationBaseClassName();\n const dividerBaseClassName = useDividerBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const graphicBaseClassName = useGraphicBaseClassName();\n\n state.root.className = mergeClasses(\n referenceClassNames.root,\n rootBaseClassName,\n designVersion === 'next' && rootNextStyles.root,\n state.root.className,\n );\n\n if (state.citation) {\n state.citation.className = mergeClasses(\n referenceClassNames.citation,\n citationBaseClassName,\n state.citation.className,\n );\n }\n\n if (state.divider) {\n state.divider.className = mergeClasses(referenceClassNames.divider, dividerBaseClassName, state.divider.className);\n }\n\n if (state.content) {\n state.content.className = mergeClasses(referenceClassNames.content, contentBaseClassName, state.content.className);\n }\n\n if (state.graphic) {\n state.graphic.className = mergeClasses(referenceClassNames.graphic, graphicBaseClassName, state.graphic.className);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","typographyStyles","referenceClassNames","root","citation","divider","graphic","content","referenceExtraClassNames","graphicChild","GRAPHIC_SIZE","useRootBaseClassName","alignItems","backgroundColor","colorNeutralBackground3","border","strokeWidthThin","colorNeutralStroke2","borderRadius","borderRadiusMedium","boxSizing","color","colorNeutralForeground2","columnGap","spacingHorizontalXXS","display","flexShrink","justifyContent","maxWidth","minHeight","padding","spacingVerticalXXS","spacingHorizontalS","textDecoration","colorNeutralBackground3Hover","borderColor","colorNeutralStroke1Hover","colorNeutralForeground2Hover","colorNeutralBackground3Pressed","colorNeutralStroke1Pressed","colorNeutralForeground2Pressed","useRootStyles","overflow","width","useRootNextStyles","borderRadiusXLarge","useCitationBaseClassName","caption2Strong","useDividerBaseClassName","height","margin","spacingVerticalNone","spacingHorizontalXS","useGraphicBaseClassName","fontSize","lineHeight","useContentBaseClassName","spacingHorizontalSNudge","textAlign","wordBreak","caption1","useReferenceStyles_unstable","state","designVersion","rootBaseClassName","rootNextStyles","citationBaseClassName","dividerBaseClassName","contentBaseClassName","graphicBaseClassName","className"],"rangeMappings":";;;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AAoBC,IAAI,EACxB6D,mBACAD,kBAAkB,UAAUE,eAAe9D,IAAI,EAC/C2D,MAAM3D,IAAI,CAACmE,SAAS;IAGtB,IAAIR,MAAM1D,QAAQ,EAAE;QAClB0D,MAAM1D,QAAQ,CAACkE,SAAS,GAAGvE,aACzBG,oBAAoBE,QAAQ,EAC5B8D,uBACAJ,MAAM1D,QAAQ,CAACkE,SAAS;IAE5B;IAEA,IAAIR,MAAMzD,OAAO,EAAE;QACjByD,MAAMzD,OAAO,CAACiE,SAAS,GAAGvE,aAAaG,oBAAoBG,OAAO,EAAE8D,sBAAsBL,MAAMzD,OAAO,CAACiE,SAAS;IACnH;IAEA,IAAIR,MAAMvD,OAAO,EAAE;QACjBuD,MAAMvD,OAAO,CAAC+D,SAAS,GAAGvE,aAAaG,oBAAoBK,OAAO,EAAE6D,sBAAsBN,MAAMvD,OAAO,CAAC+D,SAAS;IACnH;IAEA,IAAIR,MAAMxD,OAAO,EAAE;QACjBwD,MAAMxD,OAAO,CAACgE,SAAS,GAAGvE,aAAaG,oBAAoBI,OAAO,EAAE+D,sBAAsBP,MAAMxD,OAAO,CAACgE,SAAS;IACnH;IAEA,OAAOR;AACT,EAAE"}
@@ -3,11 +3,10 @@ import { renderReferenceList_unstable } from './renderReferenceList';
3
3
  import { useReferenceList_unstable } from './useReferenceList';
4
4
  import { useReferenceListStyles_unstable } from './useReferenceListStyles.styles';
5
5
  import { useReferenceListContextValues_unstable } from './useReferenceListContextValues';
6
- export const ReferenceList = /*#__PURE__*/React.forwardRef((props, ref) => {
7
- const state = useReferenceList_unstable(props, ref);
8
- const referenceListContextValues = useReferenceListContextValues_unstable(state);
9
- useReferenceListStyles_unstable(state);
10
- return renderReferenceList_unstable(state, referenceListContextValues);
6
+ export const ReferenceList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
+ const state = useReferenceList_unstable(props, ref);
8
+ const referenceListContextValues = useReferenceListContextValues_unstable(state);
9
+ useReferenceListStyles_unstable(state);
10
+ return renderReferenceList_unstable(state, referenceListContextValues);
11
11
  });
12
12
  ReferenceList.displayName = 'ReferenceList';
13
- //# sourceMappingURL=ReferenceList.js.map
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ReferenceList.types.js.map
1
+ export { };
@@ -2,4 +2,3 @@ export { ReferenceList } from './ReferenceList';
2
2
  export { renderReferenceList_unstable } from './renderReferenceList';
3
3
  export { useReferenceList_unstable } from './useReferenceList';
4
4
  export { referenceListClassNames, useReferenceListStyles_unstable } from './useReferenceListStyles.styles';
5
- //# sourceMappingURL=index.js.map