@fluentui-copilot/react-reference 0.0.0-nightly-20240326-0406-81404260.1 → 0.0.0-nightly-20240329-0406-56cbae9a.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.json +9 -9
  2. package/CHANGELOG.md +7 -7
  3. package/dist/index.d.ts +40 -191
  4. package/lib/components/Citation/Citation.types.js.map +1 -1
  5. package/lib/components/Citation/renderCitation.js +3 -22
  6. package/lib/components/Citation/renderCitation.js.map +1 -1
  7. package/lib/components/Citation/useCitation.js +3 -157
  8. package/lib/components/Citation/useCitation.js.map +1 -1
  9. package/lib/components/Citation/useCitationStyles.js +1 -6
  10. package/lib/components/Citation/useCitationStyles.js.map +1 -1
  11. package/lib/components/Reference/Reference.types.js.map +1 -1
  12. package/lib/components/Reference/renderReference.js +1 -1
  13. package/lib/components/Reference/renderReference.js.map +1 -1
  14. package/lib/components/Reference/useReference.js +0 -5
  15. package/lib/components/Reference/useReference.js.map +1 -1
  16. package/lib/components/Reference/useReferenceStyles.js +1 -38
  17. package/lib/components/Reference/useReferenceStyles.js.map +1 -1
  18. package/lib/hooks/index.js +1 -2
  19. package/lib/hooks/index.js.map +1 -1
  20. package/lib/hooks/useReferenceCitationPreview.js +11 -12
  21. package/lib/hooks/useReferenceCitationPreview.js.map +1 -1
  22. package/lib/index.js +1 -2
  23. package/lib/index.js.map +1 -1
  24. package/lib-commonjs/components/Citation/renderCitation.js +1 -23
  25. package/lib-commonjs/components/Citation/renderCitation.js.map +1 -1
  26. package/lib-commonjs/components/Citation/useCitation.js +3 -155
  27. package/lib-commonjs/components/Citation/useCitation.js.map +1 -1
  28. package/lib-commonjs/components/Citation/useCitationStyles.js +1 -6
  29. package/lib-commonjs/components/Citation/useCitationStyles.js.map +1 -1
  30. package/lib-commonjs/components/Reference/renderReference.js +0 -1
  31. package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
  32. package/lib-commonjs/components/Reference/useReference.js +0 -5
  33. package/lib-commonjs/components/Reference/useReference.js.map +1 -1
  34. package/lib-commonjs/components/Reference/useReferenceStyles.js +4 -98
  35. package/lib-commonjs/components/Reference/useReferenceStyles.js.map +1 -1
  36. package/lib-commonjs/hooks/index.js +1 -8
  37. package/lib-commonjs/hooks/index.js.map +1 -1
  38. package/lib-commonjs/hooks/useReferenceCitationPreview.js +10 -10
  39. package/lib-commonjs/hooks/useReferenceCitationPreview.js.map +1 -1
  40. package/lib-commonjs/index.js +0 -19
  41. package/lib-commonjs/index.js.map +1 -1
  42. package/package.json +4 -4
  43. package/lib/ReferenceGroup.js +0 -2
  44. package/lib/ReferenceGroup.js.map +0 -1
  45. package/lib/components/ReferenceGroup/ReferenceGroup.js +0 -19
  46. package/lib/components/ReferenceGroup/ReferenceGroup.js.map +0 -1
  47. package/lib/components/ReferenceGroup/ReferenceGroup.types.js +0 -2
  48. package/lib/components/ReferenceGroup/ReferenceGroup.types.js.map +0 -1
  49. package/lib/components/ReferenceGroup/index.js +0 -6
  50. package/lib/components/ReferenceGroup/index.js.map +0 -1
  51. package/lib/components/ReferenceGroup/renderReferenceGroup.js +0 -21
  52. package/lib/components/ReferenceGroup/renderReferenceGroup.js.map +0 -1
  53. package/lib/components/ReferenceGroup/useReferenceGroup.js +0 -104
  54. package/lib/components/ReferenceGroup/useReferenceGroup.js.map +0 -1
  55. package/lib/components/ReferenceGroup/useReferenceGroupContextValues.js +0 -10
  56. package/lib/components/ReferenceGroup/useReferenceGroupContextValues.js.map +0 -1
  57. package/lib/components/ReferenceGroup/useReferenceGroupStyles.js +0 -50
  58. package/lib/components/ReferenceGroup/useReferenceGroupStyles.js.map +0 -1
  59. package/lib/hooks/useReferenceCitation.js +0 -77
  60. package/lib/hooks/useReferenceCitation.js.map +0 -1
  61. package/lib-commonjs/ReferenceGroup.js +0 -7
  62. package/lib-commonjs/ReferenceGroup.js.map +0 -1
  63. package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.js +0 -25
  64. package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.js.map +0 -1
  65. package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.types.js +0 -5
  66. package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.types.js.map +0 -1
  67. package/lib-commonjs/components/ReferenceGroup/index.js +0 -11
  68. package/lib-commonjs/components/ReferenceGroup/index.js.map +0 -1
  69. package/lib-commonjs/components/ReferenceGroup/renderReferenceGroup.js +0 -33
  70. package/lib-commonjs/components/ReferenceGroup/renderReferenceGroup.js.map +0 -1
  71. package/lib-commonjs/components/ReferenceGroup/useReferenceGroup.js +0 -103
  72. package/lib-commonjs/components/ReferenceGroup/useReferenceGroup.js.map +0 -1
  73. package/lib-commonjs/components/ReferenceGroup/useReferenceGroupContextValues.js +0 -23
  74. package/lib-commonjs/components/ReferenceGroup/useReferenceGroupContextValues.js.map +0 -1
  75. package/lib-commonjs/components/ReferenceGroup/useReferenceGroupStyles.js +0 -75
  76. package/lib-commonjs/components/ReferenceGroup/useReferenceGroupStyles.js.map +0 -1
  77. package/lib-commonjs/hooks/useReferenceCitation.js +0 -78
  78. package/lib-commonjs/hooks/useReferenceCitation.js.map +0 -1
@@ -26,7 +26,6 @@ const referenceClassNames = {
26
26
  media: 'fai-Reference__media',
27
27
  actions: 'fai-Reference__actions',
28
28
  sensitivity: 'fai-Reference__sensitivity',
29
- sensitivityLabel: 'fai-Reference__sensitivityLabel',
30
29
  metadata: 'fai-Reference__metadata',
31
30
  primaryText: 'fai-Reference__primaryText',
32
31
  secondaryText: 'fai-Reference__secondaryText',
@@ -127,75 +126,6 @@ const useStyles = (0, _reactcomponents.__styles)({
127
126
  Bw0ie65: "f15c84mf",
128
127
  Bdqf98w: "fsxvdwy"
129
128
  },
130
- sensitivityLabel: {
131
- B6of3ja: "fww94b8",
132
- De3pzq: "f3vzo32",
133
- B4j52fo: "f192inf7",
134
- Bekrc4i: [
135
- "f5tn483",
136
- "f1ojsxk5"
137
- ],
138
- Bn0qgzm: "f1vxd6vx",
139
- ibv6hh: [
140
- "f1ojsxk5",
141
- "f5tn483"
142
- ],
143
- icvyot: "fzkkow9",
144
- vrafjx: [
145
- "fcdblym",
146
- "fjik90z"
147
- ],
148
- oivjwe: "fg706s2",
149
- wvpqe5: [
150
- "fjik90z",
151
- "fcdblym"
152
- ],
153
- g2u3we: "fghlq4f",
154
- h3c5rm: [
155
- "f1gn591s",
156
- "fjscplz"
157
- ],
158
- B9xav0g: "fb073pr",
159
- zhjwy3: [
160
- "fjscplz",
161
- "f1gn591s"
162
- ],
163
- Bbmb7ep: [
164
- "f1aa9q02",
165
- "f16jpd5f"
166
- ],
167
- Beyfa6y: [
168
- "f16jpd5f",
169
- "f1aa9q02"
170
- ],
171
- B7oj6ja: [
172
- "f1jar5jt",
173
- "fyu767a"
174
- ],
175
- Btl43ni: [
176
- "fyu767a",
177
- "f1jar5jt"
178
- ],
179
- Ijaq50: "fpymh5q",
180
- Br312pm: "fjieyc3",
181
- nk6f5a: "f18utan",
182
- Bw0ie65: "f15c84mf",
183
- Bdqf98w: "fsxvdwy",
184
- z8tnut: "f1g0x7ka",
185
- z189sj: [
186
- "fdw0yi8",
187
- "fk8j09s"
188
- ],
189
- Byoj8tv: "f1qch9an",
190
- uwmqm3: [
191
- "fk8j09s",
192
- "fdw0yi8"
193
- ],
194
- Bahqtrf: "fk6fouc",
195
- Be2twd7: "f13mqy1h",
196
- Bhrd7zp: "figsok6",
197
- Bg96gwp: "fcpl73t"
198
- },
199
129
  metadata: {
200
130
  B6of3ja: "fww94b8",
201
131
  Ijaq50: "f1md2vp3",
@@ -301,35 +231,14 @@ const useStyles = (0, _reactcomponents.__styles)({
301
231
  ".f15c84mf{grid-column-end:sensitivityLabel;}",
302
232
  ".fsxvdwy{justify-self:start;}",
303
233
  ".fww94b8{margin-top:var(--spacingVerticalXS);}",
304
- ".f3vzo32{background-color:var(--colorNeutralBackground5);}",
305
- ".f192inf7{border-top-width:var(--strokeWidthThin);}",
306
- ".f5tn483{border-right-width:var(--strokeWidthThin);}",
307
- ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",
308
- ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",
309
- ".fzkkow9{border-top-style:solid;}",
310
- ".fcdblym{border-right-style:solid;}",
311
- ".fjik90z{border-left-style:solid;}",
312
- ".fg706s2{border-bottom-style:solid;}",
313
- ".fghlq4f{border-top-color:var(--colorTransparentStroke);}",
314
- ".f1gn591s{border-right-color:var(--colorTransparentStroke);}",
315
- ".fjscplz{border-left-color:var(--colorTransparentStroke);}",
316
- ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",
317
- ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",
318
- ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",
319
- ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",
320
- ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",
321
- ".f1g0x7ka{padding-top:0;}",
322
- ".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",
323
- ".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",
324
- ".f1qch9an{padding-bottom:0;}",
325
- ".fk6fouc{font-family:var(--fontFamilyBase);}",
326
- ".f13mqy1h{font-size:var(--fontSizeBase100);}",
327
- ".figsok6{font-weight:var(--fontWeightRegular);}",
328
- ".fcpl73t{line-height:var(--lineHeightBase100);}",
329
234
  ".f1md2vp3{grid-row-start:metadata;}",
330
235
  ".f1y0qc5c{grid-column-start:metadata;}",
331
236
  ".f179ty8e{grid-row-end:metadata;}",
332
237
  ".f83o9dc{grid-column-end:metadata;}",
238
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
239
+ ".f13mqy1h{font-size:var(--fontSizeBase100);}",
240
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
241
+ ".fcpl73t{line-height:var(--lineHeightBase100);}",
333
242
  ".f10pi13n{position:relative;}",
334
243
  ".foyynoy{margin-left:var(--spacingHorizontalS);}",
335
244
  ".f1vcna3q{margin-right:var(--spacingHorizontalS);}",
@@ -426,9 +335,6 @@ const useReferenceStyles_unstable = (state)=>{
426
335
  if (state.sensitivity) {
427
336
  state.sensitivity.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.sensitivity, styles.sensitivity, !isExpanded && styles.hidden, state.sensitivity.className);
428
337
  }
429
- if (state.sensitivityLabel) {
430
- state.sensitivityLabel.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.sensitivityLabel, styles.sensitivityLabel, !isExpanded && styles.hidden, state.sensitivityLabel.className);
431
- }
432
338
  state.metadata.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.metadata, styles.metadata, !isExpanded && styles.hidden, state.metadata.className);
433
339
  let isSubsequentText = false;
434
340
  if (state.primaryText) {
@@ -1 +1 @@
1
- {"version":3,"sources":["useReferenceStyles.js"],"sourcesContent":["import { buttonClassNames, __resetStyles, __styles, mergeClasses, shorthands, tokens, typographyStyles } from '@fluentui/react-components';\nexport const referenceClassNames = {\n root: 'fai-Reference',\n citation: 'fai-Reference__citation',\n media: 'fai-Reference__media',\n actions: 'fai-Reference__actions',\n sensitivity: 'fai-Reference__sensitivity',\n sensitivityLabel: 'fai-Reference__sensitivityLabel',\n metadata: 'fai-Reference__metadata',\n primaryText: 'fai-Reference__primaryText',\n secondaryText: 'fai-Reference__secondaryText',\n tertiaryText: 'fai-Reference__tertiaryText',\n icon: 'fai-Reference__icon',\n label: 'fai-Reference__label',\n content: 'fai-Reference__content',\n detailsButton: 'fai-Reference__detailsButton'\n};\nexport const referenceExtraClassNames = {\n text: 'fai-Reference__text',\n mediaChild: 'fai-Reference__mediaChild'\n};\nconst labelFontSize = typographyStyles.caption1Strong.fontSize;\nconst labelLineHeight = typographyStyles.caption1Strong.lineHeight;\nconst maxPopoverWidth = '256px';\nconst useReferenceClassName = __resetStyles(\"r8mog99\", null, [\".r8mog99{box-sizing:border-box;width:100%;display:grid;grid-template-areas:\\\"citation media title actions\\\" \\\". . title .\\\" \\\"sensitivityLabel sensitivityLabel sensitivityLabel sensitivityLabel\\\" \\\"metadata metadata metadata metadata\\\" \\\"content content content content\\\";grid-template-columns:min-content min-content 1fr min-content;grid-template-rows:32px auto auto auto auto;border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);padding:var(--spacingVerticalS) var(--spacingHorizontalS);box-shadow:none;column-gap:var(--spacingHorizontalXS);align-items:center;}\"]);\nconst useStyles = __styles({\n canvas: {},\n sidecar: {\n wkccdc: \"f2e0fxj\",\n z8tnut: \"f1ywm7hm\",\n z189sj: [\"f1vdfbxk\", \"f1f5gg8d\"],\n Byoj8tv: \"f14wxoun\",\n uwmqm3: [\"f1f5gg8d\", \"f1vdfbxk\"]\n },\n inline: {},\n popover: {\n B4j52fo: \"f1pit55b\",\n Bekrc4i: [\"f1orqat1\", \"ffbvwxd\"],\n Bn0qgzm: \"f136mcbi\",\n ibv6hh: [\"ffbvwxd\", \"f1orqat1\"],\n a9b677: \"f1uniyfe\",\n z8tnut: \"f1nbblvp\",\n z189sj: [\"fifp7yv\", \"f1asdtw4\"],\n Byoj8tv: \"f1ov4xf1\",\n uwmqm3: [\"f1asdtw4\", \"fifp7yv\"]\n },\n closed: {\n Belr9w4: \"f1sff6ri\"\n },\n citation: {\n Ijaq50: \"fwllpr6\",\n Br312pm: \"fx0qcsv\",\n nk6f5a: \"f1ldxewp\",\n Bw0ie65: \"ftmncab\"\n },\n media: {\n Ijaq50: \"f11uok23\",\n Br312pm: \"f1qdfnnj\",\n nk6f5a: \"f1s27gz\",\n Bw0ie65: \"f86d0yl\",\n mc9l5x: \"f22iagw\",\n Bt984gj: \"f122n59\",\n Brf1p80: \"f4d9j23\"\n },\n mediaPopover: {\n a9b677: \"fjw5fx7\",\n Bqenvij: \"fd461yt\",\n psn4ub: \"fe9dio4\",\n vf399t: \"f1ojxjpn\"\n },\n actions: {\n Ijaq50: \"f16hsg94\",\n Br312pm: \"f35n22n\",\n nk6f5a: \"fh3uimt\",\n Bw0ie65: \"fnh4yke\",\n Bdqf98w: \"f1a7i8kp\",\n mc9l5x: \"f22iagw\"\n },\n detailsButton: {\n D5xksd: \"fzmnlw3\"\n },\n sensitivity: {\n Ijaq50: \"fpymh5q\",\n Br312pm: \"fjieyc3\",\n nk6f5a: \"f18utan\",\n Bw0ie65: \"f15c84mf\",\n Bdqf98w: \"fsxvdwy\"\n },\n sensitivityLabel: {\n B6of3ja: \"fww94b8\",\n De3pzq: \"f3vzo32\",\n B4j52fo: \"f192inf7\",\n Bekrc4i: [\"f5tn483\", \"f1ojsxk5\"],\n Bn0qgzm: \"f1vxd6vx\",\n ibv6hh: [\"f1ojsxk5\", \"f5tn483\"],\n icvyot: \"fzkkow9\",\n vrafjx: [\"fcdblym\", \"fjik90z\"],\n oivjwe: \"fg706s2\",\n wvpqe5: [\"fjik90z\", \"fcdblym\"],\n g2u3we: \"fghlq4f\",\n h3c5rm: [\"f1gn591s\", \"fjscplz\"],\n B9xav0g: \"fb073pr\",\n zhjwy3: [\"fjscplz\", \"f1gn591s\"],\n Bbmb7ep: [\"f1aa9q02\", \"f16jpd5f\"],\n Beyfa6y: [\"f16jpd5f\", \"f1aa9q02\"],\n B7oj6ja: [\"f1jar5jt\", \"fyu767a\"],\n Btl43ni: [\"fyu767a\", \"f1jar5jt\"],\n Ijaq50: \"fpymh5q\",\n Br312pm: \"fjieyc3\",\n nk6f5a: \"f18utan\",\n Bw0ie65: \"f15c84mf\",\n Bdqf98w: \"fsxvdwy\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fdw0yi8\", \"fk8j09s\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"fk8j09s\", \"fdw0yi8\"],\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f13mqy1h\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"fcpl73t\"\n },\n metadata: {\n B6of3ja: \"fww94b8\",\n Ijaq50: \"f1md2vp3\",\n Br312pm: \"f1y0qc5c\",\n nk6f5a: \"f179ty8e\",\n Bw0ie65: \"f83o9dc\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f13mqy1h\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"fcpl73t\"\n },\n metadataSubsequentText: {\n qhf8xq: \"f10pi13n\",\n Frg6f3: [\"foyynoy\", \"f1vcna3q\"],\n Ftih45: \"f1wl9k8s\",\n Br0sdwz: \"f1aocrix\",\n Brfgrao: \"f1j7ml58\",\n Fbdkly: [\"f1s1fjay\", \"f15a459s\"],\n Bciustq: \"f1wl9tmt\",\n Baz25je: \"f8pn7wt\",\n uvfttm: [\"f1x8pvcy\", \"f9sc749\"],\n Bbv0w2i: [\"f1jpmc5p\", \"f1yq6w5o\"],\n Bm6vgfq: [\"fjml6kk\", \"f1geml7w\"]\n },\n icon: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f13mqy1h\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"fcpl73t\",\n ha4doy: \"fmrv4ls\"\n },\n content: {\n B6of3ja: \"fww94b8\",\n Ijaq50: \"fxwmwwq\",\n Br312pm: \"f1e0gndy\",\n nk6f5a: \"f4zz6gv\",\n Bw0ie65: \"f7idnck\",\n mc9l5x: \"f22iagw\",\n Beiy3e4: \"f1vx9l62\",\n Belr9w4: \"f1wn3y0l\",\n sj55zd: \"f11d4kpn\",\n Biipf1f: \"f9ijwd5\"\n },\n hidden: {\n mc9l5x: \"fjseox\"\n }\n}, {\n d: [\".f2e0fxj{grid-template-rows:24px auto auto auto;}\", \".f1ywm7hm{padding-top:var(--spacingVerticalXS);}\", \".f1vdfbxk{padding-right:var(--spacingHorizontalS);}\", \".f1f5gg8d{padding-left:var(--spacingHorizontalS);}\", \".f14wxoun{padding-bottom:var(--spacingVerticalXS);}\", \".f1pit55b{border-top-width:0px;}\", \".f1orqat1{border-right-width:0px;}\", \".ffbvwxd{border-left-width:0px;}\", \".f136mcbi{border-bottom-width:0px;}\", \".f1uniyfe{width:calc(256px - (var(--spacingHorizontalM) * 2));}\", \".f1nbblvp{padding-top:0px;}\", \".fifp7yv{padding-right:0px;}\", \".f1asdtw4{padding-left:0px;}\", \".f1ov4xf1{padding-bottom:0px;}\", \".f1sff6ri{row-gap:0;}\", \".fwllpr6{grid-row-start:citation;}\", \".fx0qcsv{grid-column-start:citation;}\", \".f1ldxewp{grid-row-end:citation;}\", \".ftmncab{grid-column-end:citation;}\", \".f11uok23{grid-row-start:media;}\", \".f1qdfnnj{grid-column-start:media;}\", \".f1s27gz{grid-row-end:media;}\", \".f86d0yl{grid-column-end:media;}\", \".f22iagw{display:flex;}\", \".f122n59{align-items:center;}\", \".f4d9j23{justify-content:center;}\", \".fjw5fx7{width:16px;}\", \".fd461yt{height:16px;}\", \".fe9dio4>.fai-Reference__mediaChild{width:16px;}\", \".f1ojxjpn>.fai-Reference__mediaChild{height:16px;}\", \".f16hsg94{grid-row-start:1;}\", \".f35n22n{grid-column-start:actions;}\", \".fh3uimt{grid-row-end:actions;}\", \".fnh4yke{grid-column-end:actions;}\", \".f1a7i8kp{justify-self:end;}\", \".fzmnlw3>fui-Button__icon{color:var(--colorNeutralForeground3);}\", \".fpymh5q{grid-row-start:sensitivityLabel;}\", \".fjieyc3{grid-column-start:sensitivityLabel;}\", \".f18utan{grid-row-end:sensitivityLabel;}\", \".f15c84mf{grid-column-end:sensitivityLabel;}\", \".fsxvdwy{justify-self:start;}\", \".fww94b8{margin-top:var(--spacingVerticalXS);}\", \".f3vzo32{background-color:var(--colorNeutralBackground5);}\", \".f192inf7{border-top-width:var(--strokeWidthThin);}\", \".f5tn483{border-right-width:var(--strokeWidthThin);}\", \".f1ojsxk5{border-left-width:var(--strokeWidthThin);}\", \".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}\", \".fzkkow9{border-top-style:solid;}\", \".fcdblym{border-right-style:solid;}\", \".fjik90z{border-left-style:solid;}\", \".fg706s2{border-bottom-style:solid;}\", \".fghlq4f{border-top-color:var(--colorTransparentStroke);}\", \".f1gn591s{border-right-color:var(--colorTransparentStroke);}\", \".fjscplz{border-left-color:var(--colorTransparentStroke);}\", \".fb073pr{border-bottom-color:var(--colorTransparentStroke);}\", \".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}\", \".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}\", \".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}\", \".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}\", \".f1g0x7ka{padding-top:0;}\", \".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}\", \".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}\", \".f1qch9an{padding-bottom:0;}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".f13mqy1h{font-size:var(--fontSizeBase100);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".fcpl73t{line-height:var(--lineHeightBase100);}\", \".f1md2vp3{grid-row-start:metadata;}\", \".f1y0qc5c{grid-column-start:metadata;}\", \".f179ty8e{grid-row-end:metadata;}\", \".f83o9dc{grid-column-end:metadata;}\", \".f10pi13n{position:relative;}\", \".foyynoy{margin-left:var(--spacingHorizontalS);}\", \".f1vcna3q{margin-right:var(--spacingHorizontalS);}\", \".f1wl9k8s::before{content:\\\"\\\";}\", \".f1aocrix::before{display:block;}\", \".f1j7ml58::before{position:absolute;}\", \".f1s1fjay::before{left:calc(var(--spacingHorizontalS) / -2);}\", \".f15a459s::before{right:calc(var(--spacingHorizontalS) / -2);}\", \".f1wl9tmt::before{top:calc((var(--lineHeightBase100) - var(--fontSizeBase100)) / 2);}\", \".f8pn7wt::before{height:var(--fontSizeBase100);}\", \".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}\", \".f9sc749::before{border-right-width:var(--strokeWidthThin);}\", \".f1jpmc5p::before{border-left-style:solid;}\", \".f1yq6w5o::before{border-right-style:solid;}\", \".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}\", \".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}\", \".fmrv4ls{vertical-align:middle;}\", \".fxwmwwq{grid-row-start:content;}\", \".f1e0gndy{grid-column-start:content;}\", \".f4zz6gv{grid-row-end:content;}\", \".f7idnck{grid-column-end:content;}\", \".f1vx9l62{flex-direction:column;}\", \".f1wn3y0l{row-gap:var(--spacingVerticalS);}\", \".f11d4kpn{color:var(--colorNeutralForeground3);}\", \".f9ijwd5{word-break:break-word;}\", \".fjseox{display:none;}\"]\n});\nconst useLabelStyles = __styles({\n root: {\n Ijaq50: \"faq1aip\",\n Br312pm: \"f1m489tg\",\n nk6f5a: \"fv2srd9\",\n Bw0ie65: \"f1tz6hh8\",\n qb2dma: \"f9h729m\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"fl43uef\",\n Bg96gwp: \"fwrc4pm\",\n Biipf1f: \"f9ijwd5\",\n Fd1uvx: \"fpfc2by\",\n Bh9c35c: \"f1lvsx7g\",\n mc9l5x: \"f1rvi9lw\",\n Bmxbyg5: \"f1sil6mw\"\n },\n canvas: {\n z8tnut: \"f1vd4pcd\"\n },\n sidecar: {\n z8tnut: \"f1u9e4k4\"\n },\n closed: {\n B2u0y6b: \"f6dzj5z\",\n Bh9c35c: \"fvvof4m\"\n }\n}, {\n d: [\".faq1aip{grid-row-start:title;}\", \".f1m489tg{grid-column-start:title;}\", \".fv2srd9{grid-row-end:title;}\", \".f1tz6hh8{grid-column-end:title;}\", \".f9h729m{align-self:start;}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fy9rknc{font-size:var(--fontSizeBase200);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".fwrc4pm{line-height:var(--lineHeightBase200);}\", \".f9ijwd5{word-break:break-word;}\", \".fpfc2by{-webkit-box-orient:vertical;}\", \".f1lvsx7g{-webkit-line-clamp:2;}\", \".f1rvi9lw{display:-webkit-box;}\", \".f1sil6mw{overflow-y:hidden;}\", \".f1vd4pcd{padding-top:calc((24px / 2 ) - (var(--lineHeightBase200) - var(--fontSizeBase200)));}\", \".f1u9e4k4{padding-top:calc((16px / 2 ) - (var(--lineHeightBase200) - var(--fontSizeBase200)));}\", \".f6dzj5z{max-width:100%;}\", \".fvvof4m{-webkit-line-clamp:1;}\"]\n});\n/**\n * Apply styling to the Reference slots based on the state\n */\nexport const useReferenceStyles_unstable = state => {\n const {\n isExpanded,\n mode,\n layout\n } = state;\n const rootClassName = useReferenceClassName();\n const styles = useStyles();\n const labelStyles = useLabelStyles();\n state.root.className = mergeClasses(referenceClassNames.root, rootClassName, styles[mode], styles[layout], !isExpanded && styles.closed, state.root.className);\n if (state.citation) {\n state.citation.className = mergeClasses(referenceClassNames.citation, styles.citation, state.citation.className);\n }\n if (state.media) {\n state.media.className = mergeClasses(referenceClassNames.media, styles.media, layout === 'popover' && styles.mediaPopover, state.media.className);\n }\n if (state.actions) {\n state.actions.className = mergeClasses(referenceClassNames.actions, styles.actions, state.actions.className);\n }\n state.label.className = mergeClasses(referenceClassNames.label, labelStyles.root, labelStyles[mode], !isExpanded && labelStyles.closed, state.label.className);\n if (state.sensitivity) {\n state.sensitivity.className = mergeClasses(referenceClassNames.sensitivity, styles.sensitivity, !isExpanded && styles.hidden, state.sensitivity.className);\n }\n if (state.sensitivityLabel) {\n state.sensitivityLabel.className = mergeClasses(referenceClassNames.sensitivityLabel, styles.sensitivityLabel, !isExpanded && styles.hidden, state.sensitivityLabel.className);\n }\n state.metadata.className = mergeClasses(referenceClassNames.metadata, styles.metadata, !isExpanded && styles.hidden, state.metadata.className);\n let isSubsequentText = false;\n if (state.primaryText) {\n state.primaryText.className = mergeClasses(referenceClassNames.primaryText, referenceExtraClassNames.text, isSubsequentText && styles.metadataSubsequentText, state.primaryText.className);\n isSubsequentText = true;\n }\n if (state.secondaryText) {\n state.secondaryText.className = mergeClasses(referenceClassNames.secondaryText, referenceExtraClassNames.text, isSubsequentText && styles.metadataSubsequentText, state.secondaryText.className);\n isSubsequentText = true;\n }\n if (state.tertiaryText) {\n state.tertiaryText.className = mergeClasses(referenceClassNames.tertiaryText, referenceExtraClassNames.text, isSubsequentText && styles.metadataSubsequentText, state.tertiaryText.className);\n isSubsequentText = true;\n }\n if (state.icon) {\n state.icon.className = mergeClasses(referenceClassNames.icon, styles.icon, state.icon.className);\n }\n state.content.className = mergeClasses(referenceClassNames.content, styles.content, !isExpanded && styles.hidden, state.content.className);\n if (state.detailsButton) {\n state.detailsButton.className = mergeClasses(referenceClassNames.detailsButton, styles.detailsButton, state.detailsButton.className);\n }\n return state;\n};\n//# sourceMappingURL=useReferenceStyles.js.map"],"names":["referenceClassNames","referenceExtraClassNames","useReferenceStyles_unstable","root","citation","media","actions","sensitivity","sensitivityLabel","metadata","primaryText","secondaryText","tertiaryText","icon","label","content","detailsButton","text","mediaChild","labelFontSize","typographyStyles","caption1Strong","fontSize","labelLineHeight","lineHeight","maxPopoverWidth","useReferenceClassName","__resetStyles","useStyles","__styles","canvas","sidecar","wkccdc","z8tnut","z189sj","Byoj8tv","uwmqm3","inline","popover","B4j52fo","Bekrc4i","Bn0qgzm","ibv6hh","a9b677","closed","Belr9w4","Ijaq50","Br312pm","nk6f5a","Bw0ie65","mc9l5x","Bt984gj","Brf1p80","mediaPopover","Bqenvij","psn4ub","vf399t","Bdqf98w","D5xksd","B6of3ja","De3pzq","icvyot","vrafjx","oivjwe","wvpqe5","g2u3we","h3c5rm","B9xav0g","zhjwy3","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","metadataSubsequentText","qhf8xq","Frg6f3","Ftih45","Br0sdwz","Brfgrao","Fbdkly","Bciustq","Baz25je","uvfttm","Bbv0w2i","Bm6vgfq","ha4doy","Beiy3e4","sj55zd","Biipf1f","hidden","d","useLabelStyles","qb2dma","Fd1uvx","Bh9c35c","Bmxbyg5","B2u0y6b","state","isExpanded","mode","layout","rootClassName","styles","labelStyles","className","mergeClasses","isSubsequentText"],"mappings":";;;;;;;;;;;IACaA,m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EV,yBAAyBgB,IAAI,EAAE6F,oBAAoBJ,OAAO7B,sBAAsB,EAAEwB,MAAM1F,aAAa,CAACiG,SAAS;QAC/LE,mBAAmB;IACrB;IACA,IAAIT,MAAMzF,YAAY,EAAE;QACtByF,MAAMzF,YAAY,CAACgG,SAAS,GAAGC,IAAAA,6BAAY,EAAC7G,oBAAoBY,YAAY,EAAEX,yBAAyBgB,IAAI,EAAE6F,oBAAoBJ,OAAO7B,sBAAsB,EAAEwB,MAAMzF,YAAY,CAACgG,SAAS;QAC5LE,mBAAmB;IACrB;IACA,IAAIT,MAAMxF,IAAI,EAAE;QACdwF,MAAMxF,IAAI,CAAC+F,SAAS,GAAGC,IAAAA,6BAAY,EAAC7G,oBAAoBa,IAAI,EAAE6F,OAAO7F,IAAI,EAAEwF,MAAMxF,IAAI,CAAC+F,SAAS;IACjG;IACAP,MAAMtF,OAAO,CAAC6F,SAAS,GAAGC,IAAAA,6BAAY,EAAC7G,oBAAoBe,OAAO,EAAE2F,OAAO3F,OAAO,EAAE,CAACuF,cAAcI,OAAOb,MAAM,EAAEQ,MAAMtF,OAAO,CAAC6F,SAAS;IACzI,IAAIP,MAAMrF,aAAa,EAAE;QACvBqF,MAAMrF,aAAa,CAAC4F,SAAS,GAAGC,IAAAA,6BAAY,EAAC7G,oBAAoBgB,aAAa,EAAE0F,OAAO1F,aAAa,EAAEqF,MAAMrF,aAAa,CAAC4F,SAAS;IACrI;IACA,OAAOP;AACT,GACA,8CAA8C"}
1
+ {"version":3,"sources":["useReferenceStyles.js"],"sourcesContent":["import { buttonClassNames, __resetStyles, __styles, mergeClasses, shorthands, tokens, typographyStyles } from '@fluentui/react-components';\nexport const referenceClassNames = {\n root: 'fai-Reference',\n citation: 'fai-Reference__citation',\n media: 'fai-Reference__media',\n actions: 'fai-Reference__actions',\n sensitivity: 'fai-Reference__sensitivity',\n metadata: 'fai-Reference__metadata',\n primaryText: 'fai-Reference__primaryText',\n secondaryText: 'fai-Reference__secondaryText',\n tertiaryText: 'fai-Reference__tertiaryText',\n icon: 'fai-Reference__icon',\n label: 'fai-Reference__label',\n content: 'fai-Reference__content',\n detailsButton: 'fai-Reference__detailsButton'\n};\nexport const referenceExtraClassNames = {\n text: 'fai-Reference__text',\n mediaChild: 'fai-Reference__mediaChild'\n};\nconst labelFontSize = typographyStyles.caption1Strong.fontSize;\nconst labelLineHeight = typographyStyles.caption1Strong.lineHeight;\nconst maxPopoverWidth = '256px';\nconst useReferenceClassName = __resetStyles(\"r8mog99\", null, [\".r8mog99{box-sizing:border-box;width:100%;display:grid;grid-template-areas:\\\"citation media title actions\\\" \\\". . title .\\\" \\\"sensitivityLabel sensitivityLabel sensitivityLabel sensitivityLabel\\\" \\\"metadata metadata metadata metadata\\\" \\\"content content content content\\\";grid-template-columns:min-content min-content 1fr min-content;grid-template-rows:32px auto auto auto auto;border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);padding:var(--spacingVerticalS) var(--spacingHorizontalS);box-shadow:none;column-gap:var(--spacingHorizontalXS);align-items:center;}\"]);\nconst useStyles = __styles({\n canvas: {},\n sidecar: {\n wkccdc: \"f2e0fxj\",\n z8tnut: \"f1ywm7hm\",\n z189sj: [\"f1vdfbxk\", \"f1f5gg8d\"],\n Byoj8tv: \"f14wxoun\",\n uwmqm3: [\"f1f5gg8d\", \"f1vdfbxk\"]\n },\n inline: {},\n popover: {\n B4j52fo: \"f1pit55b\",\n Bekrc4i: [\"f1orqat1\", \"ffbvwxd\"],\n Bn0qgzm: \"f136mcbi\",\n ibv6hh: [\"ffbvwxd\", \"f1orqat1\"],\n a9b677: \"f1uniyfe\",\n z8tnut: \"f1nbblvp\",\n z189sj: [\"fifp7yv\", \"f1asdtw4\"],\n Byoj8tv: \"f1ov4xf1\",\n uwmqm3: [\"f1asdtw4\", \"fifp7yv\"]\n },\n closed: {\n Belr9w4: \"f1sff6ri\"\n },\n citation: {\n Ijaq50: \"fwllpr6\",\n Br312pm: \"fx0qcsv\",\n nk6f5a: \"f1ldxewp\",\n Bw0ie65: \"ftmncab\"\n },\n media: {\n Ijaq50: \"f11uok23\",\n Br312pm: \"f1qdfnnj\",\n nk6f5a: \"f1s27gz\",\n Bw0ie65: \"f86d0yl\",\n mc9l5x: \"f22iagw\",\n Bt984gj: \"f122n59\",\n Brf1p80: \"f4d9j23\"\n },\n mediaPopover: {\n a9b677: \"fjw5fx7\",\n Bqenvij: \"fd461yt\",\n psn4ub: \"fe9dio4\",\n vf399t: \"f1ojxjpn\"\n },\n actions: {\n Ijaq50: \"f16hsg94\",\n Br312pm: \"f35n22n\",\n nk6f5a: \"fh3uimt\",\n Bw0ie65: \"fnh4yke\",\n Bdqf98w: \"f1a7i8kp\",\n mc9l5x: \"f22iagw\"\n },\n detailsButton: {\n D5xksd: \"fzmnlw3\"\n },\n sensitivity: {\n Ijaq50: \"fpymh5q\",\n Br312pm: \"fjieyc3\",\n nk6f5a: \"f18utan\",\n Bw0ie65: \"f15c84mf\",\n Bdqf98w: \"fsxvdwy\"\n },\n metadata: {\n B6of3ja: \"fww94b8\",\n Ijaq50: \"f1md2vp3\",\n Br312pm: \"f1y0qc5c\",\n nk6f5a: \"f179ty8e\",\n Bw0ie65: \"f83o9dc\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f13mqy1h\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"fcpl73t\"\n },\n metadataSubsequentText: {\n qhf8xq: \"f10pi13n\",\n Frg6f3: [\"foyynoy\", \"f1vcna3q\"],\n Ftih45: \"f1wl9k8s\",\n Br0sdwz: \"f1aocrix\",\n Brfgrao: \"f1j7ml58\",\n Fbdkly: [\"f1s1fjay\", \"f15a459s\"],\n Bciustq: \"f1wl9tmt\",\n Baz25je: \"f8pn7wt\",\n uvfttm: [\"f1x8pvcy\", \"f9sc749\"],\n Bbv0w2i: [\"f1jpmc5p\", \"f1yq6w5o\"],\n Bm6vgfq: [\"fjml6kk\", \"f1geml7w\"]\n },\n icon: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f13mqy1h\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"fcpl73t\",\n ha4doy: \"fmrv4ls\"\n },\n content: {\n B6of3ja: \"fww94b8\",\n Ijaq50: \"fxwmwwq\",\n Br312pm: \"f1e0gndy\",\n nk6f5a: \"f4zz6gv\",\n Bw0ie65: \"f7idnck\",\n mc9l5x: \"f22iagw\",\n Beiy3e4: \"f1vx9l62\",\n Belr9w4: \"f1wn3y0l\",\n sj55zd: \"f11d4kpn\",\n Biipf1f: \"f9ijwd5\"\n },\n hidden: {\n mc9l5x: \"fjseox\"\n }\n}, {\n d: [\".f2e0fxj{grid-template-rows:24px auto auto auto;}\", \".f1ywm7hm{padding-top:var(--spacingVerticalXS);}\", \".f1vdfbxk{padding-right:var(--spacingHorizontalS);}\", \".f1f5gg8d{padding-left:var(--spacingHorizontalS);}\", \".f14wxoun{padding-bottom:var(--spacingVerticalXS);}\", \".f1pit55b{border-top-width:0px;}\", \".f1orqat1{border-right-width:0px;}\", \".ffbvwxd{border-left-width:0px;}\", \".f136mcbi{border-bottom-width:0px;}\", \".f1uniyfe{width:calc(256px - (var(--spacingHorizontalM) * 2));}\", \".f1nbblvp{padding-top:0px;}\", \".fifp7yv{padding-right:0px;}\", \".f1asdtw4{padding-left:0px;}\", \".f1ov4xf1{padding-bottom:0px;}\", \".f1sff6ri{row-gap:0;}\", \".fwllpr6{grid-row-start:citation;}\", \".fx0qcsv{grid-column-start:citation;}\", \".f1ldxewp{grid-row-end:citation;}\", \".ftmncab{grid-column-end:citation;}\", \".f11uok23{grid-row-start:media;}\", \".f1qdfnnj{grid-column-start:media;}\", \".f1s27gz{grid-row-end:media;}\", \".f86d0yl{grid-column-end:media;}\", \".f22iagw{display:flex;}\", \".f122n59{align-items:center;}\", \".f4d9j23{justify-content:center;}\", \".fjw5fx7{width:16px;}\", \".fd461yt{height:16px;}\", \".fe9dio4>.fai-Reference__mediaChild{width:16px;}\", \".f1ojxjpn>.fai-Reference__mediaChild{height:16px;}\", \".f16hsg94{grid-row-start:1;}\", \".f35n22n{grid-column-start:actions;}\", \".fh3uimt{grid-row-end:actions;}\", \".fnh4yke{grid-column-end:actions;}\", \".f1a7i8kp{justify-self:end;}\", \".fzmnlw3>fui-Button__icon{color:var(--colorNeutralForeground3);}\", \".fpymh5q{grid-row-start:sensitivityLabel;}\", \".fjieyc3{grid-column-start:sensitivityLabel;}\", \".f18utan{grid-row-end:sensitivityLabel;}\", \".f15c84mf{grid-column-end:sensitivityLabel;}\", \".fsxvdwy{justify-self:start;}\", \".fww94b8{margin-top:var(--spacingVerticalXS);}\", \".f1md2vp3{grid-row-start:metadata;}\", \".f1y0qc5c{grid-column-start:metadata;}\", \".f179ty8e{grid-row-end:metadata;}\", \".f83o9dc{grid-column-end:metadata;}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".f13mqy1h{font-size:var(--fontSizeBase100);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".fcpl73t{line-height:var(--lineHeightBase100);}\", \".f10pi13n{position:relative;}\", \".foyynoy{margin-left:var(--spacingHorizontalS);}\", \".f1vcna3q{margin-right:var(--spacingHorizontalS);}\", \".f1wl9k8s::before{content:\\\"\\\";}\", \".f1aocrix::before{display:block;}\", \".f1j7ml58::before{position:absolute;}\", \".f1s1fjay::before{left:calc(var(--spacingHorizontalS) / -2);}\", \".f15a459s::before{right:calc(var(--spacingHorizontalS) / -2);}\", \".f1wl9tmt::before{top:calc((var(--lineHeightBase100) - var(--fontSizeBase100)) / 2);}\", \".f8pn7wt::before{height:var(--fontSizeBase100);}\", \".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}\", \".f9sc749::before{border-right-width:var(--strokeWidthThin);}\", \".f1jpmc5p::before{border-left-style:solid;}\", \".f1yq6w5o::before{border-right-style:solid;}\", \".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}\", \".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}\", \".fmrv4ls{vertical-align:middle;}\", \".fxwmwwq{grid-row-start:content;}\", \".f1e0gndy{grid-column-start:content;}\", \".f4zz6gv{grid-row-end:content;}\", \".f7idnck{grid-column-end:content;}\", \".f1vx9l62{flex-direction:column;}\", \".f1wn3y0l{row-gap:var(--spacingVerticalS);}\", \".f11d4kpn{color:var(--colorNeutralForeground3);}\", \".f9ijwd5{word-break:break-word;}\", \".fjseox{display:none;}\"]\n});\nconst useLabelStyles = __styles({\n root: {\n Ijaq50: \"faq1aip\",\n Br312pm: \"f1m489tg\",\n nk6f5a: \"fv2srd9\",\n Bw0ie65: \"f1tz6hh8\",\n qb2dma: \"f9h729m\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"fl43uef\",\n Bg96gwp: \"fwrc4pm\",\n Biipf1f: \"f9ijwd5\",\n Fd1uvx: \"fpfc2by\",\n Bh9c35c: \"f1lvsx7g\",\n mc9l5x: \"f1rvi9lw\",\n Bmxbyg5: \"f1sil6mw\"\n },\n canvas: {\n z8tnut: \"f1vd4pcd\"\n },\n sidecar: {\n z8tnut: \"f1u9e4k4\"\n },\n closed: {\n B2u0y6b: \"f6dzj5z\",\n Bh9c35c: \"fvvof4m\"\n }\n}, {\n d: [\".faq1aip{grid-row-start:title;}\", \".f1m489tg{grid-column-start:title;}\", \".fv2srd9{grid-row-end:title;}\", \".f1tz6hh8{grid-column-end:title;}\", \".f9h729m{align-self:start;}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fy9rknc{font-size:var(--fontSizeBase200);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".fwrc4pm{line-height:var(--lineHeightBase200);}\", \".f9ijwd5{word-break:break-word;}\", \".fpfc2by{-webkit-box-orient:vertical;}\", \".f1lvsx7g{-webkit-line-clamp:2;}\", \".f1rvi9lw{display:-webkit-box;}\", \".f1sil6mw{overflow-y:hidden;}\", \".f1vd4pcd{padding-top:calc((24px / 2 ) - (var(--lineHeightBase200) - var(--fontSizeBase200)));}\", \".f1u9e4k4{padding-top:calc((16px / 2 ) - (var(--lineHeightBase200) - var(--fontSizeBase200)));}\", \".f6dzj5z{max-width:100%;}\", \".fvvof4m{-webkit-line-clamp:1;}\"]\n});\n/**\n * Apply styling to the Reference slots based on the state\n */\nexport const useReferenceStyles_unstable = state => {\n const {\n isExpanded,\n mode,\n layout\n } = state;\n const rootClassName = useReferenceClassName();\n const styles = useStyles();\n const labelStyles = useLabelStyles();\n state.root.className = mergeClasses(referenceClassNames.root, rootClassName, styles[mode], styles[layout], !isExpanded && styles.closed, state.root.className);\n if (state.citation) {\n state.citation.className = mergeClasses(referenceClassNames.citation, styles.citation, state.citation.className);\n }\n if (state.media) {\n state.media.className = mergeClasses(referenceClassNames.media, styles.media, layout === 'popover' && styles.mediaPopover, state.media.className);\n }\n if (state.actions) {\n state.actions.className = mergeClasses(referenceClassNames.actions, styles.actions, state.actions.className);\n }\n state.label.className = mergeClasses(referenceClassNames.label, labelStyles.root, labelStyles[mode], !isExpanded && labelStyles.closed, state.label.className);\n if (state.sensitivity) {\n state.sensitivity.className = mergeClasses(referenceClassNames.sensitivity, styles.sensitivity, !isExpanded && styles.hidden, state.sensitivity.className);\n }\n state.metadata.className = mergeClasses(referenceClassNames.metadata, styles.metadata, !isExpanded && styles.hidden, state.metadata.className);\n let isSubsequentText = false;\n if (state.primaryText) {\n state.primaryText.className = mergeClasses(referenceClassNames.primaryText, referenceExtraClassNames.text, isSubsequentText && styles.metadataSubsequentText, state.primaryText.className);\n isSubsequentText = true;\n }\n if (state.secondaryText) {\n state.secondaryText.className = mergeClasses(referenceClassNames.secondaryText, referenceExtraClassNames.text, isSubsequentText && styles.metadataSubsequentText, state.secondaryText.className);\n isSubsequentText = true;\n }\n if (state.tertiaryText) {\n state.tertiaryText.className = mergeClasses(referenceClassNames.tertiaryText, referenceExtraClassNames.text, isSubsequentText && styles.metadataSubsequentText, state.tertiaryText.className);\n isSubsequentText = true;\n }\n if (state.icon) {\n state.icon.className = mergeClasses(referenceClassNames.icon, styles.icon, state.icon.className);\n }\n state.content.className = mergeClasses(referenceClassNames.content, styles.content, !isExpanded && styles.hidden, state.content.className);\n if (state.detailsButton) {\n state.detailsButton.className = mergeClasses(referenceClassNames.detailsButton, styles.detailsButton, state.detailsButton.className);\n }\n return state;\n};\n//# sourceMappingURL=useReferenceStyles.js.map"],"names":["referenceClassNames","referenceExtraClassNames","useReferenceStyles_unstable","root","citation","media","actions","sensitivity","metadata","primaryText","secondaryText","tertiaryText","icon","label","content","detailsButton","text","mediaChild","labelFontSize","typographyStyles","caption1Strong","fontSize","labelLineHeight","lineHeight","maxPopoverWidth","useReferenceClassName","__resetStyles","useStyles","__styles","canvas","sidecar","wkccdc","z8tnut","z189sj","Byoj8tv","uwmqm3","inline","popover","B4j52fo","Bekrc4i","Bn0qgzm","ibv6hh","a9b677","closed","Belr9w4","Ijaq50","Br312pm","nk6f5a","Bw0ie65","mc9l5x","Bt984gj","Brf1p80","mediaPopover","Bqenvij","psn4ub","vf399t","Bdqf98w","D5xksd","B6of3ja","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","metadataSubsequentText","qhf8xq","Frg6f3","Ftih45","Br0sdwz","Brfgrao","Fbdkly","Bciustq","Baz25je","uvfttm","Bbv0w2i","Bm6vgfq","ha4doy","Beiy3e4","sj55zd","Biipf1f","hidden","d","useLabelStyles","qb2dma","Fd1uvx","Bh9c35c","Bmxbyg5","B2u0y6b","state","isExpanded","mode","layout","rootClassName","styles","labelStyles","className","mergeClasses","isSubsequentText"],"mappings":";;;;;;;;;;;IACaA,mBAAmB;eAAnBA;;IAeAC,wBAAwB;eAAxBA;;IAyJAC,2BAA2B;eAA3BA;;;iCAzKiG;AACvG,MAAMF,sBAAsB;IACjCG,MAAM;IACNC,UAAU;IACVC,OAAO;IACPC,SAAS;IACTC,aAAa;IACbC,UAAU;IACVC,aAAa;IACbC,eAAe;IACfC,cAAc;IACdC,MAAM;IACNC,OAAO;IACPC,SAAS;IACTC,e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F,SAAS;QAC/LE,mBAAmB;IACrB;IACA,IAAIT,MAAM5E,YAAY,EAAE;QACtB4E,MAAM5E,YAAY,CAACmF,SAAS,GAAGC,IAAAA,6BAAY,EAAC/F,oBAAoBW,YAAY,EAAEV,yBAAyBe,IAAI,EAAEgF,oBAAoBJ,OAAO7B,sBAAsB,EAAEwB,MAAM5E,YAAY,CAACmF,SAAS;QAC5LE,mBAAmB;IACrB;IACA,IAAIT,MAAM3E,IAAI,EAAE;QACd2E,MAAM3E,IAAI,CAACkF,SAAS,GAAGC,IAAAA,6BAAY,EAAC/F,oBAAoBY,IAAI,EAAEgF,OAAOhF,IAAI,EAAE2E,MAAM3E,IAAI,CAACkF,SAAS;IACjG;IACAP,MAAMzE,OAAO,CAACgF,SAAS,GAAGC,IAAAA,6BAAY,EAAC/F,oBAAoBc,OAAO,EAAE8E,OAAO9E,OAAO,EAAE,CAAC0E,cAAcI,OAAOb,MAAM,EAAEQ,MAAMzE,OAAO,CAACgF,SAAS;IACzI,IAAIP,MAAMxE,aAAa,EAAE;QACvBwE,MAAMxE,aAAa,CAAC+E,SAAS,GAAGC,IAAAA,6BAAY,EAAC/F,oBAAoBe,aAAa,EAAE6E,OAAO7E,aAAa,EAAEwE,MAAMxE,aAAa,CAAC+E,SAAS;IACrI;IACA,OAAOP;AACT,GACA,8CAA8C"}
@@ -2,14 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "useReferenceCitationPreview", {
6
- enumerable: true,
7
- get: function() {
8
- return _useReferenceCitationPreview.useReferenceCitationPreview;
9
- }
10
- });
11
5
  const _export_star = require("@swc/helpers/_/_export_star");
12
- _export_star._(require("./useReferenceCitation"), exports);
13
- const _useReferenceCitationPreview = require("./useReferenceCitationPreview");
6
+ _export_star._(require("./useReferenceCitationPreview"), exports);
14
7
  _export_star._(require("./useReferenceGroup"), exports);
15
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './useReferenceCitation';\nexport { useReferenceCitationPreview } from './useReferenceCitationPreview';\nexport * from './useReferenceGroup';\n//# sourceMappingURL=index.js.map"],"names":["useReferenceCitationPreview"],"mappings":";;;;+BACSA;;;eAAAA,wDAA2B;;;;uBADtB;6CAC8B;uBAC9B;CACd,iCAAiC"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './useReferenceCitationPreview';\nexport * from './useReferenceGroup';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;CACd,iCAAiC"}
@@ -13,6 +13,7 @@ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
13
13
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
14
14
  const _reactcomponents = require("@fluentui/react-components");
15
15
  const _reactpreview = require("@fluentui-copilot/react-preview");
16
+ const _reactsensitivitylabel = require("@fluentui-copilot/react-sensitivity-label");
16
17
  const _Citation = require("../Citation");
17
18
  const _Reference = require("../Reference");
18
19
  // Abstract the citation that serves as the close button of the Preview into its own component so that we have access to the popover context.
@@ -31,7 +32,7 @@ const CitationCloseButton = (citationCloseButtonProps)=>{
31
32
  onClick: onCitationCloseButtonClick
32
33
  });
33
34
  };
34
- const useReferenceCitationPreview = ({ index, referenceId: propsRefId, citationId: propsCiteId, citationProps, referenceProps, previewProps, previewSurfaceProps })=>{
35
+ const useReferenceCitationPreview = ({ index, referenceId: propsRefId, citationId: propsCiteId, citationProps, referenceProps, previewProps, previewSurfaceProps, sensitivityLabelProps })=>{
35
36
  const refId = (0, _reactcomponents.useId)();
36
37
  const citeId = (0, _reactcomponents.useId)();
37
38
  const referenceId = propsRefId !== null && propsRefId !== void 0 ? propsRefId : refId;
@@ -66,13 +67,14 @@ const useReferenceCitationPreview = ({ index, referenceId: propsRefId, citationI
66
67
  content
67
68
  };
68
69
  (0, _reactcomponents.assertSlots)(citationWithPreviewState);
69
- // We resolve the slots' objects for sensitivityLabel and title here so that we can use the information from their children below.
70
- const sensitivityLabel = _reactcomponents.slot.optional(referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.sensitivityLabel, {
70
+ // We resolve the slots' objects for sensitivity and title here so that we can use the information from their children below.
71
+ const sensitivity = _reactcomponents.slot.optional(referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.sensitivity, {
71
72
  elementType: 'span'
72
73
  });
73
74
  const title = _reactcomponents.slot.optional(referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.label, {
74
75
  elementType: 'div'
75
76
  });
77
+ var _sensitivityLabelProps_description;
76
78
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_reactpreview.Preview, {
77
79
  closeOnScroll: true,
78
80
  positioning: "below",
@@ -85,7 +87,6 @@ const useReferenceCitationPreview = ({ index, referenceId: propsRefId, citationI
85
87
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Citation.Citation, {
86
88
  ...citationProps,
87
89
  id: citationId,
88
- referenceId: referenceId,
89
90
  ...props,
90
91
  children: index
91
92
  })
@@ -110,11 +111,9 @@ const useReferenceCitationPreview = ({ index, referenceId: propsRefId, citationI
110
111
  secondaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.secondaryText,
111
112
  tertiaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.tertiaryText
112
113
  }),
113
- sensitivityLabel && /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactcomponents.Badge, {
114
- color: "informative",
115
- shape: "rounded",
116
- size: "small",
117
- children: sensitivityLabel.children
114
+ sensitivity && /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactsensitivitylabel.SensitivityLabel, {
115
+ description: (_sensitivityLabelProps_description = sensitivityLabelProps === null || sensitivityLabelProps === void 0 ? void 0 : sensitivityLabelProps.description) !== null && _sensitivityLabelProps_description !== void 0 ? _sensitivityLabelProps_description : '',
116
+ children: sensitivity.children
118
117
  }),
119
118
  /*#__PURE__*/ (0, _jsxruntime.jsx)(citationWithPreviewState.content, {}),
120
119
  previewProps === null || previewProps === void 0 ? void 0 : previewProps.children
@@ -135,7 +134,8 @@ const useReferenceCitationPreview = ({ index, referenceId: propsRefId, citationI
135
134
  referenceProps,
136
135
  citationProps,
137
136
  previewProps,
138
- previewSurfaceProps
137
+ previewSurfaceProps,
138
+ sensitivityLabelProps
139
139
  ]);
140
140
  return components;
141
141
  }; //# sourceMappingURL=useReferenceCitationPreview.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["useReferenceCitationPreview.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport * as React from 'react';\nimport { Badge, Caption1, assertSlots, mergeCallbacks, slot, useId, usePopoverContext_unstable } from '@fluentui/react-components';\n// eslint-disable-next-line @nx/enforce-module-boundaries\nimport { Preview, PreviewContent, PreviewHeader, PreviewMetadata, PreviewSurface, PreviewTrigger } from '@fluentui-copilot/react-preview';\nimport { Citation } from '../Citation';\nimport { Reference } from '../Reference';\n// Abstract the citation that serves as the close button of the Preview into its own component so that we have access to the popover context.\nconst CitationCloseButton = citationCloseButtonProps => {\n const setPopoverOpen = usePopoverContext_unstable(context => context.setOpen);\n const onPopoverCloseClick = React.useCallback(ev => {\n setPopoverOpen(ev, false);\n // Don't navigate\n ev.preventDefault();\n }, [setPopoverOpen]);\n const onCitationCloseButtonClick = mergeCallbacks(onPopoverCloseClick, citationCloseButtonProps.onClick);\n return /*#__PURE__*/_jsx(Citation, {\n ...citationCloseButtonProps,\n onClick: onCitationCloseButtonClick\n });\n};\n/**\n * Hook to package a `Citation` and `Reference` together in an\n * accessibly by default manner.\n *\n * When using citations and references, prefer using them via this\n * hook to ensure props are wired up correctly.\n */\nexport const useReferenceCitationPreview = ({\n index,\n referenceId: propsRefId,\n citationId: propsCiteId,\n citationProps,\n referenceProps,\n previewProps,\n previewSurfaceProps\n}) => {\n const refId = useId();\n const citeId = useId();\n const referenceId = propsRefId !== null && propsRefId !== void 0 ? propsRefId : refId;\n const citationId = propsCiteId !== null && propsCiteId !== void 0 ? propsCiteId : citeId;\n const components = React.useMemo(() => {\n const citationHref = `#${citationId}`;\n const PackagedReference = props => {\n var _props_index, _ref;\n const referenceIndex = (_ref = (_props_index = props.index) !== null && _props_index !== void 0 ? _props_index : referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.index) !== null && _ref !== void 0 ? _ref : index;\n return /*#__PURE__*/_jsx(Reference, {\n ...referenceProps,\n index: referenceIndex,\n referenceId: referenceId,\n citationHref: citationHref,\n ...props\n });\n };\n const CitationWithPreview = props => {\n // We assert content as a slot to use it with its resolved props object and the correct defaults below.\n const content = slot.always(referenceProps ? referenceProps.content : undefined, {\n defaultProps: {\n children: (referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.excerpt) && /*#__PURE__*/_jsx(Caption1, {\n children: referenceProps.excerpt\n })\n },\n elementType: 'div'\n });\n const citationWithPreviewState = {\n components: {\n content: 'div'\n },\n content\n };\n assertSlots(citationWithPreviewState);\n // We resolve the slots' objects for sensitivityLabel and title here so that we can use the information from their children below.\n const sensitivityLabel = slot.optional(referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.sensitivityLabel, {\n elementType: 'span'\n });\n const title = slot.optional(referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.label, {\n elementType: 'div'\n });\n return /*#__PURE__*/_jsxs(Preview, {\n closeOnScroll: true,\n positioning: \"below\",\n size: \"small\",\n trapFocus: true,\n withArrow: true,\n ...previewProps,\n children: [/*#__PURE__*/_jsx(PreviewTrigger, {\n children: /*#__PURE__*/_jsx(Citation, {\n ...citationProps,\n id: citationId,\n referenceId: referenceId,\n ...props,\n children: index\n })\n }), /*#__PURE__*/_jsx(PreviewSurface, {\n ...previewSurfaceProps,\n children: /*#__PURE__*/_jsxs(PreviewContent, {\n children: [/*#__PURE__*/_jsx(PreviewHeader, {\n citation: /*#__PURE__*/_jsx(CitationCloseButton, {\n \"aria-label\": `Reference ${index}, close`,\n referenceHref: \"#\",\n tabIndex: -1,\n children: index\n }),\n media: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.media,\n children: title === null || title === void 0 ? void 0 : title.children\n }), /*#__PURE__*/_jsx(PreviewMetadata, {\n icon: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.icon,\n primaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.primaryText,\n secondaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.secondaryText,\n tertiaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.tertiaryText\n }), sensitivityLabel && /*#__PURE__*/_jsx(Badge, {\n color: \"informative\",\n shape: \"rounded\",\n size: \"small\",\n children: sensitivityLabel.children\n }), /*#__PURE__*/_jsx(citationWithPreviewState.content, {}), previewProps === null || previewProps === void 0 ? void 0 : previewProps.children]\n })\n })]\n });\n };\n return {\n Citation: CitationWithPreview,\n Reference: PackagedReference\n };\n }, [index, referenceId, citationId, referenceProps, citationProps, previewProps, previewSurfaceProps]);\n return components;\n};\n//# sourceMappingURL=useReferenceCitationPreview.js.map"],"names":["useReferenceCitationPreview","CitationCloseButton","citationCloseButtonProps","setPopoverOpen","usePopoverContext_unstable","context","setOpen","onPopoverCloseClick","React","useCallback","ev","preventDefault","onCitationCloseButtonClick","mergeCallbacks","onClick","_jsx","Citation","index","referenceId","propsRefId","citationId","propsCiteId","citationProps","referenceProps","previewProps","previewSurfaceProps","refId","useId","citeId","components","useMemo","citationHref","PackagedReference","props","_props_index","_ref","referenceIndex","Reference","CitationWithPreview","content","slot","always","undefined","defaultProps","children","excerpt","Caption1","elementType","citationWithPreviewState","assertSlots","sensitivityLabel","optional","title","label","_jsxs","Preview","closeOnScroll","positioning","size","trapFocus","withArrow","PreviewTrigger","id","PreviewSurface","PreviewContent","PreviewHeader","citation","referenceHref","tabIndex","media","PreviewMetadata","icon","primaryText","secondaryText","tertiaryText","Badge","color","shape"],"mappings":";;;;+BA4BaA;;;eAAAA;;;;4BA5B8B;iE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oBACF;iBAAG;YACL;QACF;QACA,OAAO;YACL5B,UAAUsB;YACVD,WAAWL;QACb;IACF,GAAG;QAACf;QAAOC;QAAaE;QAAYG;QAAgBD;QAAeE;QAAcC;KAAoB;IACrG,OAAOI;AACT,GACA,uDAAuD"}
1
+ {"version":3,"sources":["useReferenceCitationPreview.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport * as React from 'react';\nimport { Caption1, assertSlots, mergeCallbacks, slot, useId, usePopoverContext_unstable } from '@fluentui/react-components';\nimport { Preview, PreviewContent, PreviewHeader, PreviewMetadata, PreviewSurface, PreviewTrigger } from '@fluentui-copilot/react-preview';\nimport { SensitivityLabel } from '@fluentui-copilot/react-sensitivity-label';\nimport { Citation } from '../Citation';\nimport { Reference } from '../Reference';\n// Abstract the citation that serves as the close button of the Preview into its own component so that we have access to the popover context.\nconst CitationCloseButton = citationCloseButtonProps => {\n const setPopoverOpen = usePopoverContext_unstable(context => context.setOpen);\n const onPopoverCloseClick = React.useCallback(ev => {\n setPopoverOpen(ev, false);\n // Don't navigate\n ev.preventDefault();\n }, [setPopoverOpen]);\n const onCitationCloseButtonClick = mergeCallbacks(onPopoverCloseClick, citationCloseButtonProps.onClick);\n return /*#__PURE__*/_jsx(Citation, {\n ...citationCloseButtonProps,\n onClick: onCitationCloseButtonClick\n });\n};\n/**\n * Hook to package a `Citation` and `Reference` together in an\n * accessibly by default manner.\n *\n * When using citations and references, prefer using them via this\n * hook to ensure props are wired up correctly.\n */\nexport const useReferenceCitationPreview = ({\n index,\n referenceId: propsRefId,\n citationId: propsCiteId,\n citationProps,\n referenceProps,\n previewProps,\n previewSurfaceProps,\n sensitivityLabelProps\n}) => {\n const refId = useId();\n const citeId = useId();\n const referenceId = propsRefId !== null && propsRefId !== void 0 ? propsRefId : refId;\n const citationId = propsCiteId !== null && propsCiteId !== void 0 ? propsCiteId : citeId;\n const components = React.useMemo(() => {\n const citationHref = `#${citationId}`;\n const PackagedReference = props => {\n var _props_index, _ref;\n const referenceIndex = (_ref = (_props_index = props.index) !== null && _props_index !== void 0 ? _props_index : referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.index) !== null && _ref !== void 0 ? _ref : index;\n return /*#__PURE__*/_jsx(Reference, {\n ...referenceProps,\n index: referenceIndex,\n referenceId: referenceId,\n citationHref: citationHref,\n ...props\n });\n };\n const CitationWithPreview = props => {\n // We assert content as a slot to use it with its resolved props object and the correct defaults below.\n const content = slot.always(referenceProps ? referenceProps.content : undefined, {\n defaultProps: {\n children: (referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.excerpt) && /*#__PURE__*/_jsx(Caption1, {\n children: referenceProps.excerpt\n })\n },\n elementType: 'div'\n });\n const citationWithPreviewState = {\n components: {\n content: 'div'\n },\n content\n };\n assertSlots(citationWithPreviewState);\n // We resolve the slots' objects for sensitivity and title here so that we can use the information from their children below.\n const sensitivity = slot.optional(referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.sensitivity, {\n elementType: 'span'\n });\n const title = slot.optional(referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.label, {\n elementType: 'div'\n });\n var _sensitivityLabelProps_description;\n return /*#__PURE__*/_jsxs(Preview, {\n closeOnScroll: true,\n positioning: \"below\",\n size: \"small\",\n trapFocus: true,\n withArrow: true,\n ...previewProps,\n children: [/*#__PURE__*/_jsx(PreviewTrigger, {\n children: /*#__PURE__*/_jsx(Citation, {\n ...citationProps,\n id: citationId,\n ...props,\n children: index\n })\n }), /*#__PURE__*/_jsx(PreviewSurface, {\n ...previewSurfaceProps,\n children: /*#__PURE__*/_jsxs(PreviewContent, {\n children: [/*#__PURE__*/_jsx(PreviewHeader, {\n citation: /*#__PURE__*/_jsx(CitationCloseButton, {\n \"aria-label\": `Reference ${index}, close`,\n referenceHref: \"#\",\n tabIndex: -1,\n children: index\n }),\n media: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.media,\n children: title === null || title === void 0 ? void 0 : title.children\n }), /*#__PURE__*/_jsx(PreviewMetadata, {\n icon: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.icon,\n primaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.primaryText,\n secondaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.secondaryText,\n tertiaryText: referenceProps === null || referenceProps === void 0 ? void 0 : referenceProps.tertiaryText\n }), sensitivity && /*#__PURE__*/_jsx(SensitivityLabel, {\n description: (_sensitivityLabelProps_description = sensitivityLabelProps === null || sensitivityLabelProps === void 0 ? void 0 : sensitivityLabelProps.description) !== null && _sensitivityLabelProps_description !== void 0 ? _sensitivityLabelProps_description : '',\n children: sensitivity.children\n }), /*#__PURE__*/_jsx(citationWithPreviewState.content, {}), previewProps === null || previewProps === void 0 ? void 0 : previewProps.children]\n })\n })]\n });\n };\n return {\n Citation: CitationWithPreview,\n Reference: PackagedReference\n };\n }, [index, referenceId, citationId, referenceProps, citationProps, previewProps, previewSurfaceProps, sensitivityLabelProps]);\n return components;\n};\n//# sourceMappingURL=useReferenceCitationPreview.js.map"],"names":["useReferenceCitationPreview","CitationCloseButton","citationCloseButtonProps","setPopoverOpen","usePopoverContext_unstable","context","setOpen","onPopoverCloseClick","React","useCallback","ev","preventDefault","onCitationCloseButtonClick","mergeCallbacks","onClick","_jsx","Citation","index","referenceId","propsRefId","citationId","propsCiteId","citationProps","referenceProps","previewProps","previewSurfaceProps","sensitivityLabelProps","refId","useId","citeId","components","useMemo","citationHref","PackagedReference","props","_props_index","_ref","referenceIndex","Reference","CitationWithPreview","content","slot","always","undefined","defaultProps","children","excerpt","Caption1","elementType","citationWithPreviewState","assertSlots","sensitivity","optional","title","label","_sensitivityLabelProps_description","_jsxs","Preview","closeOnScroll","positioning","size","trapFocus","withArrow","PreviewTrigger","id","PreviewSurface","PreviewContent","PreviewHeader","citation","referenceHref","tabIndex","media","PreviewMetadata","icon","primaryText","secondaryText","tertiaryText","SensitivityLabel","description"],"mappings":";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AQ;gCAChC;gCAAI,WAAW,GAAE9B,IAAAA,eAAI,EAACkC,yBAAyBT,OAAO,EAAE,CAAC;gCAAIhB,iBAAiB,QAAQA,iBAAiB,KAAK,IAAI,KAAK,IAAIA,aAAaqB,QAAQ;6BAAC;wBACjJ;oBACF;iBAAG;YACL;QACF;QACA,OAAO;YACL7B,UAAUuB;YACVD,WAAWL;QACb;IACF,GAAG;QAAChB;QAAOC;QAAaE;QAAYG;QAAgBD;QAAeE;QAAcC;QAAqBC;KAAsB;IAC5H,OAAOI;AACT,GACA,uDAAuD"}
@@ -39,9 +39,6 @@ _export(exports, {
39
39
  useReferenceStyles_unstable: function() {
40
40
  return _Reference.useReferenceStyles_unstable;
41
41
  },
42
- useReferenceCitation: function() {
43
- return _hooks.useReferenceCitation;
44
- },
45
42
  useReferenceCitationPreview: function() {
46
43
  return _hooks.useReferenceCitationPreview;
47
44
  },
@@ -63,21 +60,6 @@ _export(exports, {
63
60
  renderReferenceList_unstable: function() {
64
61
  return _ReferenceList.renderReferenceList_unstable;
65
62
  },
66
- ReferenceGroup: function() {
67
- return _ReferenceGroup.ReferenceGroup;
68
- },
69
- referenceGroupClassNames: function() {
70
- return _ReferenceGroup.referenceGroupClassNames;
71
- },
72
- renderReferenceGroup_unstable: function() {
73
- return _ReferenceGroup.renderReferenceGroup_unstable;
74
- },
75
- useReferenceGroup_unstable: function() {
76
- return _ReferenceGroup.useReferenceGroup_unstable;
77
- },
78
- useReferenceGroupStyles_unstable: function() {
79
- return _ReferenceGroup.useReferenceGroupStyles_unstable;
80
- },
81
63
  ReferenceGroupToggle: function() {
82
64
  return _ReferenceGroupToggle.ReferenceGroupToggle;
83
65
  },
@@ -98,6 +80,5 @@ const _Citation = require("./Citation");
98
80
  const _Reference = require("./Reference");
99
81
  const _hooks = require("./hooks");
100
82
  const _ReferenceList = require("./ReferenceList");
101
- const _ReferenceGroup = require("./ReferenceGroup");
102
83
  const _ReferenceGroupToggle = require("./ReferenceGroupToggle");
103
84
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { Citation, citationClassNames, renderCitation_unstable, useCitation_unstable, useCitationStyles_unstable } from './Citation';\nexport { Reference, referenceClassNames, renderReference_unstable, useReference_unstable, useReferenceStyles_unstable } from './Reference';\nexport { useReferenceCitation, useReferenceCitationPreview, useReferenceGroup } from './hooks';\nexport { ReferenceList, referenceListClassNames, useReferenceList_unstable, useReferenceListStyles_unstable, renderReferenceList_unstable } from './ReferenceList';\nexport { ReferenceGroup, referenceGroupClassNames, renderReferenceGroup_unstable, useReferenceGroup_unstable, useReferenceGroupStyles_unstable } from './ReferenceGroup';\nexport { ReferenceGroupToggle, referenceGroupToggleClassNames, renderReferenceGroupToggle_unstable, useReferenceGroupToggleStyles_unstable, useReferenceGroupToggle_unstable } from './ReferenceGroupToggle';\n//# sourceMappingURL=index.js.map"],"names":["Citation","citationClassNames","renderCitation_unstable","useCitation_unstable","useCitationStyles_unstable","Reference","referenceClassNames","renderReference_unstable","useReference_unstable","useReferenceStyles_unstable","useReferenceCitation","useReferenceCitationPreview","useReferenceGroup","ReferenceList","referenceListClassNames","useReferenceList_unstable","useReferenceListStyles_unstable","renderReferenceList_unstable","ReferenceGroup","referenceGroupClassNames","renderReferenceGroup_unstable","useReferenceGroup_unstable","useReferenceGroupStyles_unstable","ReferenceGroupToggle","referenceGroupToggleClassNames","renderReferenceGroupToggle_unstable","useReferenceGroupToggleStyles_unstable","useReferenceGroupToggle_unstable"],"mappings":";;;;;;;;;;;IAASA,QAAQ;eAARA,kBAAQ;;IAAEC,kBAAkB;eAAlBA,4BAAkB;;IAAEC,uBAAuB;eAAvBA,iCAAuB;;IAAEC,oBAAoB;eAApBA,8BAAoB;;IAAEC,0BAA0B;eAA1BA,oCAA0B;;IACvGC,SAAS;eAATA,oBAAS;;IAAEC,mBAAmB;eAAnBA,8BAAmB;;IAAEC,wBAAwB;eAAxBA,mCAAwB;;IAAEC,qBAAqB;eAArBA,gCAAqB;;IAAEC,2BAA2B;eAA3BA,sCAA2B;;IAC5GC,oBAAoB;eAApBA,2BAAoB;;IAAEC,2BAA2B;eAA3BA,kCAA2B;;IAAEC,iBAAiB;eAAjBA,wBAAiB;;IACpEC,aAAa;eAAbA,4BAAa;;IAAEC,uBAAuB;eAAvBA,sCAAuB;;IAAEC,yBAAyB;eAAzBA,wCAAyB;;IAAEC,+BAA+B;eAA/BA,8CAA+B;;IAAEC,4BAA4B;eAA5BA,2CAA4B;;IAChIC,cAAc;eAAdA,8BAAc;;IAAEC,wBAAwB;eAAxBA,wCAAwB;;IAAEC,6BAA6B;eAA7BA,6CAA6B;;IAAEC,0BAA0B;eAA1BA,0CAA0B;;IAAEC,gCAAgC;eAAhCA,gDAAgC;;IACrIC,oBAAoB;eAApBA,0CAAoB;;IAAEC,8BAA8B;eAA9BA,oDAA8B;;IAAEC,mCAAmC;eAAnCA,yDAAmC;;IAAEC,sCAAsC;eAAtCA,4DAAsC;;IAAEC,gCAAgC;eAAhCA,sDAAgC;;;0BALpD;2BACK;uBACxC;+BAC4D;gCACK;sCAC8B;CACpL,iCAAiC"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { Citation, citationClassNames, renderCitation_unstable, useCitation_unstable, useCitationStyles_unstable } from './Citation';\nexport { Reference, referenceClassNames, renderReference_unstable, useReference_unstable, useReferenceStyles_unstable } from './Reference';\nexport { useReferenceCitationPreview, useReferenceGroup } from './hooks';\nexport { ReferenceList, referenceListClassNames, useReferenceList_unstable, useReferenceListStyles_unstable, renderReferenceList_unstable } from './ReferenceList';\nexport { ReferenceGroupToggle, referenceGroupToggleClassNames, renderReferenceGroupToggle_unstable, useReferenceGroupToggleStyles_unstable, useReferenceGroupToggle_unstable } from './ReferenceGroupToggle';\n//# sourceMappingURL=index.js.map"],"names":["Citation","citationClassNames","renderCitation_unstable","useCitation_unstable","useCitationStyles_unstable","Reference","referenceClassNames","renderReference_unstable","useReference_unstable","useReferenceStyles_unstable","useReferenceCitationPreview","useReferenceGroup","ReferenceList","referenceListClassNames","useReferenceList_unstable","useReferenceListStyles_unstable","renderReferenceList_unstable","ReferenceGroupToggle","referenceGroupToggleClassNames","renderReferenceGroupToggle_unstable","useReferenceGroupToggleStyles_unstable","useReferenceGroupToggle_unstable"],"mappings":";;;;;;;;;;;IAASA,QAAQ;eAARA,kBAAQ;;IAAEC,kBAAkB;eAAlBA,4BAAkB;;IAAEC,uBAAuB;eAAvBA,iCAAuB;;IAAEC,oBAAoB;eAApBA,8BAAoB;;IAAEC,0BAA0B;eAA1BA,oCAA0B;;IACvGC,SAAS;eAATA,oBAAS;;IAAEC,mBAAmB;eAAnBA,8BAAmB;;IAAEC,wBAAwB;eAAxBA,mCAAwB;;IAAEC,qBAAqB;eAArBA,gCAAqB;;IAAEC,2BAA2B;eAA3BA,sCAA2B;;IAC5GC,2BAA2B;eAA3BA,kCAA2B;;IAAEC,iBAAiB;eAAjBA,wBAAiB;;IAC9CC,aAAa;eAAbA,4BAAa;;IAAEC,uBAAuB;eAAvBA,sCAAuB;;IAAEC,yBAAyB;eAAzBA,wCAAyB;;IAAEC,+BAA+B;eAA/BA,8CAA+B;;IAAEC,4BAA4B;eAA5BA,2CAA4B;;IAChIC,oBAAoB;eAApBA,0CAAoB;;IAAEC,8BAA8B;eAA9BA,oDAA8B;;IAAEC,mCAAmC;eAAnCA,yDAAmC;;IAAEC,sCAAsC;eAAtCA,4DAAsC;;IAAEC,gCAAgC;eAAhCA,sDAAgC;;;0BAJpD;2BACK;uBAC9D;+BACkF;sCACmC;CACpL,iCAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-copilot/react-reference",
3
- "version": "0.0.0-nightly-20240326-0406-81404260.1",
3
+ "version": "0.0.0-nightly-20240329-0406-56cbae9a.1",
4
4
  "description": "Fluent AI controls for citations and references",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -12,9 +12,9 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@fluentui-copilot/react-preview": "0.0.0-nightly-20240326-0406-81404260.1",
16
- "@fluentui-copilot/react-provider": "0.0.0-nightly-20240326-0406-81404260.1",
17
- "@fluentui-copilot/react-sensitivity-label": "0.0.0-nightly-20240326-0406-81404260.1",
15
+ "@fluentui-copilot/react-preview": "0.0.0-nightly-20240329-0406-56cbae9a.1",
16
+ "@fluentui-copilot/react-provider": "0.0.0-nightly-20240329-0406-56cbae9a.1",
17
+ "@fluentui-copilot/react-sensitivity-label": "0.0.0-nightly-20240329-0406-56cbae9a.1",
18
18
  "@swc/helpers": "^0.5.1"
19
19
  },
20
20
  "peerDependencies": {
@@ -1,2 +0,0 @@
1
- export * from './components/ReferenceGroup/index';
2
- //# sourceMappingURL=ReferenceGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["ReferenceGroup.ts"],"sourcesContent":["export * from './components/ReferenceGroup/index';\n"],"names":[],"mappings":"AAAA,cAAc,oCAAoC"}
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import { useReferenceGroup_unstable } from './useReferenceGroup';
3
- import { renderReferenceGroup_unstable } from './renderReferenceGroup';
4
- import { useReferenceGroupStyles_unstable } from './useReferenceGroupStyles';
5
- import { useReferenceGroupContextValues } from './useReferenceGroupContextValues';
6
- import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
7
- /**
8
- * ReferenceGroup component
9
- * @deprecated use `useReferenceGroup` instead.
10
- */
11
- export const ReferenceGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
12
- const state = useReferenceGroup_unstable(props, ref);
13
- const ctxValues = useReferenceGroupContextValues(state);
14
- useReferenceGroupStyles_unstable(state);
15
- useCustomStyleHook('useReferenceGroupStyles')(state);
16
- return renderReferenceGroup_unstable(state, ctxValues);
17
- });
18
- ReferenceGroup.displayName = 'ReferenceGroup';
19
- //# sourceMappingURL=ReferenceGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["ReferenceGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useReferenceGroup_unstable } from './useReferenceGroup';\nimport { renderReferenceGroup_unstable } from './renderReferenceGroup';\nimport { useReferenceGroupStyles_unstable } from './useReferenceGroupStyles';\nimport type { ReferenceGroupProps } from './ReferenceGroup.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useReferenceGroupContextValues } from './useReferenceGroupContextValues';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n/**\n * ReferenceGroup component\n * @deprecated use `useReferenceGroup` instead.\n */\nexport const ReferenceGroup: ForwardRefComponent<ReferenceGroupProps> = React.forwardRef((props, ref) => {\n const state = useReferenceGroup_unstable(props, ref);\n const ctxValues = useReferenceGroupContextValues(state);\n\n useReferenceGroupStyles_unstable(state);\n useCustomStyleHook('useReferenceGroupStyles')(state);\n\n return renderReferenceGroup_unstable(state, ctxValues);\n});\n\nReferenceGroup.displayName = 'ReferenceGroup';\n"],"names":["React","useReferenceGroup_unstable","renderReferenceGroup_unstable","useReferenceGroupStyles_unstable","useReferenceGroupContextValues","useCustomStyleHook","ReferenceGroup","forwardRef","props","ref","state","ctxValues","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,0BAA0B,QAAQ,sBAAsB;AACjE,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,gCAAgC,QAAQ,4BAA4B;AAG7E,SAASC,8BAA8B,QAAQ,mCAAmC;AAClF,SAASC,kBAAkB,QAAQ,mCAAmC;AAEtE;;;CAGC,GACD,OAAO,MAAMC,+BAA2DN,MAAMO,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQT,2BAA2BO,OAAOC;IAChD,MAAME,YAAYP,+BAA+BM;IAEjDP,iCAAiCO;IACjCL,mBAAmB,2BAA2BK;IAE9C,OAAOR,8BAA8BQ,OAAOC;AAC9C,GAAG;AAEHL,eAAeM,WAAW,GAAG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ReferenceGroup.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["ReferenceGroup.types.ts"],"sourcesContent":["import type { CopilotMode } from '@fluentui-copilot/react-provider';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-components';\n\nexport type ReferenceGroupSlots = {\n /**\n * The root slot.\n */\n root: NonNullable<Slot<'div'>>;\n\n /**\n * Label slot. Primary description of the group.\n */\n label: NonNullable<Slot<'span'>>;\n\n /**\n * Icon slot.\n */\n icon: Slot<'span'>;\n\n /**\n * Details button slot. Used to expand/collapse the group.\n */\n detailsButton: NonNullable<Slot<'button'>>;\n\n /**\n * Content slot. Used to display the group's references. Visibility should be controlled by `detailsButton`.\n */\n content: NonNullable<Slot<'div'>>;\n};\n\n/**\n * ReferenceGroup Props\n */\nexport type ReferenceGroupProps = ComponentProps<Partial<ReferenceGroupSlots>, 'content'> & CopilotMode;\n\n/**\n * State used in rendering ReferenceGroup\n */\nexport type ReferenceGroupState = ComponentState<ReferenceGroupSlots> &\n Required<Pick<ReferenceGroupProps, 'mode'>> & {\n /**\n * State to track if the group is open or not.\n */\n isOpen: boolean;\n\n /**\n * Callback used to open the group from a child.\n * @returns void\n */\n setOpen: () => void;\n };\n"],"names":[],"mappings":"AAAA,WAkDI"}
@@ -1,6 +0,0 @@
1
- export * from './ReferenceGroup';
2
- export * from './ReferenceGroup.types';
3
- export * from './renderReferenceGroup';
4
- export * from './useReferenceGroup';
5
- export * from './useReferenceGroupStyles';
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './ReferenceGroup';\nexport * from './ReferenceGroup.types';\nexport * from './renderReferenceGroup';\nexport * from './useReferenceGroup';\nexport * from './useReferenceGroupStyles';\n"],"names":[],"mappings":"AAAA,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,yBAAyB;AACvC,cAAc,sBAAsB;AACpC,cAAc,4BAA4B"}
@@ -1,21 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
- import { assertSlots } from '@fluentui/react-components';
3
- import { ReferenceGroupProvider } from '../../context/ReferenceGroupContext';
4
- /**
5
- * Render the final JSX of ReferenceGroup
6
- */
7
- export const renderReferenceGroup_unstable = (state, contextValues) => {
8
- assertSlots(state);
9
- var _state_detailsButton_children;
10
- return /*#__PURE__*/_jsx(ReferenceGroupProvider, {
11
- value: contextValues,
12
- children: /*#__PURE__*/_jsxs(state.root, {
13
- children: [/*#__PURE__*/_jsx(state.detailsButton, {
14
- children: (_state_detailsButton_children = state.detailsButton.children) !== null && _state_detailsButton_children !== void 0 ? _state_detailsButton_children : /*#__PURE__*/_jsxs(_Fragment, {
15
- children: [/*#__PURE__*/_jsx(state.label, {}), state.icon && /*#__PURE__*/_jsx(state.icon, {})]
16
- })
17
- }), /*#__PURE__*/_jsx(state.content, {})]
18
- })
19
- });
20
- };
21
- //# sourceMappingURL=renderReferenceGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["renderReferenceGroup.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport { ReferenceGroupProvider } from '../../context/ReferenceGroupContext';\nimport type { ReferenceGroupState, ReferenceGroupSlots } from './ReferenceGroup.types';\nimport type { ReferenceGroupContext } from '../../context/ReferenceGroupContext';\n\n/**\n * Render the final JSX of ReferenceGroup\n */\nexport const renderReferenceGroup_unstable = (state: ReferenceGroupState, contextValues: ReferenceGroupContext) => {\n assertSlots<ReferenceGroupSlots>(state);\n\n return (\n <ReferenceGroupProvider value={contextValues}>\n <state.root>\n <state.detailsButton>\n {state.detailsButton.children ?? (\n <>\n <state.label />\n {state.icon && <state.icon />}\n </>\n )}\n </state.detailsButton>\n <state.content />\n </state.root>\n </ReferenceGroupProvider>\n );\n};\n"],"names":["assertSlots","ReferenceGroupProvider","renderReferenceGroup_unstable","state","contextValues","value","root","detailsButton","children","label","icon","content"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;AAEjD,SAASA,WAAW,QAAQ,6BAA6B;AACzD,SAASC,sBAAsB,QAAQ,sCAAsC;AAI7E;;CAEC,GACD,OAAO,MAAMC,gCAAgC,CAACC,OAA4BC;IACxEJ,YAAiCG;QAMxBA;IAJT,qBACE,KAACF;QAAuBI,OAAOD;kBAC7B,cAAA,MAACD,MAAMG,IAAI;;8BACT,KAACH,MAAMI,aAAa;8BACjBJ,CAAAA,gCAAAA,MAAMI,aAAa,CAACC,QAAQ,cAA5BL,2CAAAA,8CACC;;0CACE,KAACA,MAAMM,KAAK;4BACXN,MAAMO,IAAI,kBAAI,KAACP,MAAMO,IAAI;;;;8BAIhC,KAACP,MAAMQ,OAAO;;;;AAItB,EAAE"}