@fluentui-copilot/react-reference 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +21 -0
- package/CHANGELOG.md +11 -1
- package/dist/index.d.ts +40 -191
- package/lib/components/Citation/Citation.types.js.map +1 -1
- package/lib/components/Citation/renderCitation.js +3 -22
- package/lib/components/Citation/renderCitation.js.map +1 -1
- package/lib/components/Citation/useCitation.js +3 -157
- package/lib/components/Citation/useCitation.js.map +1 -1
- package/lib/components/Citation/useCitationStyles.js +1 -6
- package/lib/components/Citation/useCitationStyles.js.map +1 -1
- package/lib/components/Reference/Reference.types.js.map +1 -1
- package/lib/components/Reference/renderReference.js +1 -1
- package/lib/components/Reference/renderReference.js.map +1 -1
- package/lib/components/Reference/useReference.js +0 -5
- package/lib/components/Reference/useReference.js.map +1 -1
- package/lib/components/Reference/useReferenceStyles.js +1 -38
- package/lib/components/Reference/useReferenceStyles.js.map +1 -1
- package/lib/hooks/index.js +1 -2
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useReferenceCitationPreview.js +11 -12
- package/lib/hooks/useReferenceCitationPreview.js.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib-commonjs/components/Citation/renderCitation.js +1 -23
- package/lib-commonjs/components/Citation/renderCitation.js.map +1 -1
- package/lib-commonjs/components/Citation/useCitation.js +3 -155
- package/lib-commonjs/components/Citation/useCitation.js.map +1 -1
- package/lib-commonjs/components/Citation/useCitationStyles.js +1 -6
- package/lib-commonjs/components/Citation/useCitationStyles.js.map +1 -1
- package/lib-commonjs/components/Reference/renderReference.js +0 -1
- package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
- package/lib-commonjs/components/Reference/useReference.js +0 -5
- package/lib-commonjs/components/Reference/useReference.js.map +1 -1
- package/lib-commonjs/components/Reference/useReferenceStyles.js +4 -98
- package/lib-commonjs/components/Reference/useReferenceStyles.js.map +1 -1
- package/lib-commonjs/hooks/index.js +1 -8
- package/lib-commonjs/hooks/index.js.map +1 -1
- package/lib-commonjs/hooks/useReferenceCitationPreview.js +10 -10
- package/lib-commonjs/hooks/useReferenceCitationPreview.js.map +1 -1
- package/lib-commonjs/index.js +0 -19
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/ReferenceGroup.js +0 -2
- package/lib/ReferenceGroup.js.map +0 -1
- package/lib/components/ReferenceGroup/ReferenceGroup.js +0 -19
- package/lib/components/ReferenceGroup/ReferenceGroup.js.map +0 -1
- package/lib/components/ReferenceGroup/ReferenceGroup.types.js +0 -2
- package/lib/components/ReferenceGroup/ReferenceGroup.types.js.map +0 -1
- package/lib/components/ReferenceGroup/index.js +0 -6
- package/lib/components/ReferenceGroup/index.js.map +0 -1
- package/lib/components/ReferenceGroup/renderReferenceGroup.js +0 -21
- package/lib/components/ReferenceGroup/renderReferenceGroup.js.map +0 -1
- package/lib/components/ReferenceGroup/useReferenceGroup.js +0 -104
- package/lib/components/ReferenceGroup/useReferenceGroup.js.map +0 -1
- package/lib/components/ReferenceGroup/useReferenceGroupContextValues.js +0 -10
- package/lib/components/ReferenceGroup/useReferenceGroupContextValues.js.map +0 -1
- package/lib/components/ReferenceGroup/useReferenceGroupStyles.js +0 -50
- package/lib/components/ReferenceGroup/useReferenceGroupStyles.js.map +0 -1
- package/lib/hooks/useReferenceCitation.js +0 -77
- package/lib/hooks/useReferenceCitation.js.map +0 -1
- package/lib-commonjs/ReferenceGroup.js +0 -7
- package/lib-commonjs/ReferenceGroup.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.js +0 -25
- package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.types.js +0 -5
- package/lib-commonjs/components/ReferenceGroup/ReferenceGroup.types.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroup/index.js +0 -11
- package/lib-commonjs/components/ReferenceGroup/index.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroup/renderReferenceGroup.js +0 -33
- package/lib-commonjs/components/ReferenceGroup/renderReferenceGroup.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroup/useReferenceGroup.js +0 -103
- package/lib-commonjs/components/ReferenceGroup/useReferenceGroup.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroup/useReferenceGroupContextValues.js +0 -23
- package/lib-commonjs/components/ReferenceGroup/useReferenceGroupContextValues.js.map +0 -1
- package/lib-commonjs/components/ReferenceGroup/useReferenceGroupStyles.js +0 -75
- package/lib-commonjs/components/ReferenceGroup/useReferenceGroupStyles.js.map +0 -1
- package/lib-commonjs/hooks/useReferenceCitation.js +0 -78
- package/lib-commonjs/hooks/useReferenceCitation.js.map +0 -1
|
@@ -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":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,oBAAoBW,aAAa,EAAEV,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;IACN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EAAEwB,MAAM7E,aAAa,CAACoF,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("./
|
|
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 './
|
|
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
|
|
70
|
-
const
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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;iEACpB;iCAC+E;8BAEE;0BAC/E;2BACC;AAC1B,6IAA6I;AAC7I,MAAMC,sBAAsBC,CAAAA;IAC1B,MAAMC,iBAAiBC,IAAAA,2CAA0B,EAACC,CAAAA,UAAWA,QAAQC,OAAO;IAC5E,MAAMC,sBAAsBC,OAAMC,WAAW,CAACC,CAAAA;QAC5CP,eAAeO,IAAI;QACnB,iBAAiB;QACjBA,GAAGC,cAAc;IACnB,GAAG;QAACR;KAAe;IACnB,MAAMS,6BAA6BC,IAAAA,+BAAc,EAACN,qBAAqBL,yBAAyBY,OAAO;IACvG,OAAO,WAAW,GAAEC,IAAAA,eAAI,EAACC,kBAAQ,EAAE;QACjC,GAAGd,wBAAwB;QAC3BY,SAASF;IACX;AACF;AAQO,MAAMZ,8BAA8B,CAAC,EAC1CiB,KAAK,EACLC,aAAaC,UAAU,EACvBC,YAAYC,WAAW,EACvBC,aAAa,EACbC,cAAc,EACdC,YAAY,EACZC,mBAAmB,EACpB;IACC,MAAMC,QAAQC,IAAAA,sBAAK;IACnB,MAAMC,SAASD,IAAAA,sBAAK;IACpB,MAAMT,cAAcC,eAAe,QAAQA,eAAe,KAAK,IAAIA,aAAaO;IAChF,MAAMN,aAAaC,gBAAgB,QAAQA,gBAAgB,KAAK,IAAIA,cAAcO;IAClF,MAAMC,aAAarB,OAAMsB,OAAO,CAAC;QAC/B,MAAMC,eAAe,CAAC,CAAC,EAAEX,WAAW,CAAC;QACrC,MAAMY,oBAAoBC,CAAAA;YACxB,IAAIC,cAAcC;YAClB,MAAMC,iBAAiB,AAACD,CAAAA,OAAO,AAACD,CAAAA,eAA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C/CC,OAAO;oCACPC,OAAO;oCACPnB,MAAM;oCACNd,UAAUM,iBAAiBN,QAAQ;gCACrC;gCAAI,WAAW,GAAE7B,IAAAA,eAAI,EAACiC,yBAAyBT,OAAO,EAAE,CAAC;gCAAIf,iBAAiB,QAAQA,iBAAiB,KAAK,IAAI,KAAK,IAAIA,aAAaoB,QAAQ;6BAAC;wBACjJ;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":";;;;+BA4BaA;;;eAAAA;;;;4BA5B8B;iEACpB;iCACwE;8BACS;uCACvE;0BACR;2BACC;AAC1B,6IAA6I;AAC7I,MAAMC,sBAAsBC,CAAAA;IAC1B,MAAMC,iBAAiBC,IAAAA,2CAA0B,EAACC,CAAAA,UAAWA,QAAQC,OAAO;IAC5E,MAAMC,sBAAsBC,OAAMC,WAAW,CAACC,CAAAA;QAC5CP,eAAeO,IAAI;QACnB,iBAAiB;QACjBA,GAAGC,cAAc;IACnB,GAAG;QAACR;KAAe;IACnB,MAAMS,6BAA6BC,IAAAA,+BAAc,EAACN,qBAAqBL,yBAAyBY,OAAO;IACvG,OAAO,WAAW,GAAEC,IAAAA,eAAI,EAACC,kBAAQ,EAAE;QACjC,GAAGd,wBAAwB;QAC3BY,SAASF;IACX;AACF;AAQO,MAAMZ,8BAA8B,CAAC,EAC1CiB,KAAK,EACLC,aAAaC,UAAU,EACvBC,YAAYC,WAAW,EACvBC,aAAa,EACbC,cAAc,EACdC,YAAY,EACZC,mBAAmB,EACnBC,qBAAqB,EACtB;IACC,MAAMC,QAAQC,IAAAA,sBAAK;IACnB,MAAMC,SAASD,IAAAA,sBAAK;IACpB,MAAMV,cAAcC,eAAe,QAAQA,eAAe,KAAK,IAAIA,aAAaQ;IAChF,MAAMP,aAAaC,gBAAgB,QAAQA,gBAAgB,KAAK,IAAIA,cAAcQ;IAClF,MAAMC,aAAatB,OAAMuB,OAAO,CAAC;QAC/B,MAAMC,eAAe,CAAC,CAAC,EAAEZ,WAAW,CAAC;QACrC,MAAMa,oBAAoBC,CAAAA;YACxB,IAAI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AIzB,eAAe,WAAW,GAAEpC,IAAAA,eAAI,EAAC8D,uCAAgB,EAAE;oCACrDC,aAAa,AAACvB,CAAAA,qCAAqC7B,0BAA0B,QAAQA,0BAA0B,KAAK,IAAI,KAAK,IAAIA,sBAAsBoD,WAAW,AAAD,MAAO,QAAQvB,uCAAuC,KAAK,IAAIA,qCAAqC;oCACrQV,UAAUM,YAAYN,QAAQ;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"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -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 {
|
|
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
package/lib/ReferenceGroup.js
DELETED
|
@@ -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 +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 +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"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { getPartitionedNativeProps } from '@fluentui/react-components';
|
|
3
|
-
import { ChevronDown16Regular, ChevronUp16Regular } from '@fluentui/react-icons';
|
|
4
|
-
import { mergeCallbacks, slot } from '@fluentui/react-utilities';
|
|
5
|
-
import { useCopilotMode } from '@fluentui-copilot/react-provider';
|
|
6
|
-
const ctxReducer = (ctx, action) => {
|
|
7
|
-
if (action.type === 'TOGGLE_OPEN') {
|
|
8
|
-
return {
|
|
9
|
-
...ctx,
|
|
10
|
-
open: action.open
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
return ctx;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Create the state required to render ReferenceGroup.
|
|
17
|
-
*
|
|
18
|
-
* The returned state can be modified with hooks such as useReferenceGroupStyles_unstable,
|
|
19
|
-
* before being passed to renderReferenceGroup_unstable.
|
|
20
|
-
*
|
|
21
|
-
* @param props - props from this instance of ReferenceGroup
|
|
22
|
-
* @param ref - reference to root HTMLElement of ReferenceGroup
|
|
23
|
-
*/
|
|
24
|
-
export const useReferenceGroup_unstable = (props, ref) => {
|
|
25
|
-
const {
|
|
26
|
-
content,
|
|
27
|
-
detailsButton,
|
|
28
|
-
icon,
|
|
29
|
-
label,
|
|
30
|
-
root
|
|
31
|
-
} = props;
|
|
32
|
-
const mode = useCopilotMode(props.mode);
|
|
33
|
-
const [ctxValues, dispatch] = React.useReducer(ctxReducer, {
|
|
34
|
-
open: false
|
|
35
|
-
});
|
|
36
|
-
const isOpen = ctxValues.open;
|
|
37
|
-
const toggleOpen = React.useCallback(newOpen => {
|
|
38
|
-
dispatch({
|
|
39
|
-
type: 'TOGGLE_OPEN',
|
|
40
|
-
open: newOpen
|
|
41
|
-
});
|
|
42
|
-
}, [dispatch]);
|
|
43
|
-
const setOpen = React.useCallback(() => {
|
|
44
|
-
dispatch({
|
|
45
|
-
type: 'TOGGLE_OPEN',
|
|
46
|
-
open: true
|
|
47
|
-
});
|
|
48
|
-
}, [dispatch]);
|
|
49
|
-
const onDetailsButtonClick = _e => {
|
|
50
|
-
toggleOpen(!isOpen);
|
|
51
|
-
};
|
|
52
|
-
const nativeProps = getPartitionedNativeProps({
|
|
53
|
-
props,
|
|
54
|
-
primarySlotTagName: 'div'
|
|
55
|
-
});
|
|
56
|
-
const state = {
|
|
57
|
-
mode,
|
|
58
|
-
isOpen,
|
|
59
|
-
setOpen,
|
|
60
|
-
components: {
|
|
61
|
-
root: 'div',
|
|
62
|
-
label: 'span',
|
|
63
|
-
icon: 'span',
|
|
64
|
-
detailsButton: 'button',
|
|
65
|
-
content: 'div'
|
|
66
|
-
},
|
|
67
|
-
root: slot.always(root, {
|
|
68
|
-
defaultProps: nativeProps.root,
|
|
69
|
-
elementType: 'div'
|
|
70
|
-
}),
|
|
71
|
-
label: slot.always(label, {
|
|
72
|
-
elementType: 'span'
|
|
73
|
-
}),
|
|
74
|
-
icon: slot.optional(icon, {
|
|
75
|
-
defaultProps: {
|
|
76
|
-
children: isOpen ? /*#__PURE__*/React.createElement(ChevronUp16Regular, null) : /*#__PURE__*/React.createElement(ChevronDown16Regular, null)
|
|
77
|
-
},
|
|
78
|
-
renderByDefault: true,
|
|
79
|
-
elementType: 'span'
|
|
80
|
-
}),
|
|
81
|
-
detailsButton: slot.always(detailsButton, {
|
|
82
|
-
defaultProps: {
|
|
83
|
-
'aria-expanded': isOpen,
|
|
84
|
-
type: 'button'
|
|
85
|
-
},
|
|
86
|
-
elementType: 'button'
|
|
87
|
-
}),
|
|
88
|
-
content: slot.always(content, {
|
|
89
|
-
defaultProps: {
|
|
90
|
-
ref: ref,
|
|
91
|
-
// use inert as a backup if display: none is overridden in styles to enable animation
|
|
92
|
-
// inert getting added to React types is tracked here: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/60822
|
|
93
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
94
|
-
// @ts-ignore
|
|
95
|
-
inert: isOpen ? undefined : 'true',
|
|
96
|
-
...nativeProps.primary
|
|
97
|
-
},
|
|
98
|
-
elementType: 'div'
|
|
99
|
-
})
|
|
100
|
-
};
|
|
101
|
-
state.detailsButton.onClick = mergeCallbacks(state.detailsButton.onClick, onDetailsButtonClick);
|
|
102
|
-
return state;
|
|
103
|
-
};
|
|
104
|
-
//# sourceMappingURL=useReferenceGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps } from '@fluentui/react-components';\nimport { ChevronDown16Regular, ChevronUp16Regular } from '@fluentui/react-icons';\nimport { mergeCallbacks, slot } from '@fluentui/react-utilities';\nimport type { ReferenceGroupProps, ReferenceGroupState } from './ReferenceGroup.types';\nimport { useCopilotMode } from '@fluentui-copilot/react-provider';\n\ntype ReferenceGroupAction = ToggleAction;\n\ntype ToggleAction = {\n type: 'TOGGLE_OPEN';\n open: boolean;\n};\n\ntype ContextReducer = {\n open: boolean;\n};\n\nconst ctxReducer = (ctx: ContextReducer, action: ReferenceGroupAction): ContextReducer => {\n if (action.type === 'TOGGLE_OPEN') {\n return { ...ctx, open: action.open };\n }\n\n return ctx;\n};\n\n/**\n * Create the state required to render ReferenceGroup.\n *\n * The returned state can be modified with hooks such as useReferenceGroupStyles_unstable,\n * before being passed to renderReferenceGroup_unstable.\n *\n * @param props - props from this instance of ReferenceGroup\n * @param ref - reference to root HTMLElement of ReferenceGroup\n */\nexport const useReferenceGroup_unstable = (\n props: ReferenceGroupProps,\n ref: React.Ref<HTMLElement>,\n): ReferenceGroupState => {\n const { content, detailsButton, icon, label, root } = props;\n\n const mode = useCopilotMode(props.mode);\n\n const [ctxValues, dispatch] = React.useReducer(ctxReducer, { open: false });\n\n const isOpen = ctxValues.open;\n\n const toggleOpen = React.useCallback(\n (newOpen: boolean) => {\n dispatch({\n type: 'TOGGLE_OPEN',\n open: newOpen,\n });\n },\n [dispatch],\n );\n\n const setOpen = React.useCallback(() => {\n dispatch({\n type: 'TOGGLE_OPEN',\n open: true,\n });\n }, [dispatch]);\n\n const onDetailsButtonClick = (_e: React.MouseEvent<HTMLElement>) => {\n toggleOpen(!isOpen);\n };\n\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'div',\n });\n\n const state: ReferenceGroupState = {\n mode,\n isOpen,\n setOpen,\n components: {\n root: 'div',\n label: 'span',\n icon: 'span',\n detailsButton: 'button',\n content: 'div',\n },\n root: slot.always(root, {\n defaultProps: nativeProps.root,\n elementType: 'div',\n }),\n label: slot.always(label, {\n elementType: 'span',\n }),\n icon: slot.optional(icon, {\n defaultProps: {\n children: isOpen ? <ChevronUp16Regular /> : <ChevronDown16Regular />,\n },\n renderByDefault: true,\n elementType: 'span',\n }),\n detailsButton: slot.always(detailsButton, {\n defaultProps: {\n 'aria-expanded': isOpen,\n type: 'button',\n },\n elementType: 'button',\n }),\n content: slot.always(content, {\n defaultProps: {\n ref: ref as React.Ref<HTMLDivElement>,\n // use inert as a backup if display: none is overridden in styles to enable animation\n // inert getting added to React types is tracked here: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/60822\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n inert: isOpen ? undefined : 'true',\n ...nativeProps.primary,\n },\n elementType: 'div',\n }),\n };\n\n state.detailsButton.onClick = mergeCallbacks(state.detailsButton.onClick, onDetailsButtonClick);\n\n return state;\n};\n"],"names":["React","getPartitionedNativeProps","ChevronDown16Regular","ChevronUp16Regular","mergeCallbacks","slot","useCopilotMode","ctxReducer","ctx","action","type","open","useReferenceGroup_unstable","props","ref","content","detailsButton","icon","label","root","mode","ctxValues","dispatch","useReducer","isOpen","toggleOpen","useCallback","newOpen","setOpen","onDetailsButtonClick","_e","nativeProps","primarySlotTagName","state","components","always","defaultProps","elementType","optional","children","renderByDefault","inert","undefined","primary","onClick"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,yBAAyB,QAAQ,6BAA6B;AACvE,SAASC,oBAAoB,EAAEC,kBAAkB,QAAQ,wBAAwB;AACjF,SAASC,cAAc,EAAEC,IAAI,QAAQ,4BAA4B;AAEjE,SAASC,cAAc,QAAQ,mCAAmC;AAalE,MAAMC,aAAa,CAACC,KAAqBC;IACvC,IAAIA,OAAOC,IAAI,KAAK,eAAe;QACjC,OAAO;YAAE,GAAGF,GAAG;YAAEG,MAAMF,OAAOE,IAAI;QAAC;IACrC;IAEA,OAAOH;AACT;AAEA;;;;;;;;CAQC,GACD,OAAO,MAAMI,6BAA6B,CACxCC,OACAC;IAEA,MAAM,EAAEC,OAAO,EAAEC,aAAa,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGN;IAEtD,MAAMO,OAAOd,eAAeO,MAAMO,IAAI;IAEtC,MAAM,CAACC,WAAWC,SAAS,GAAGtB,MAAMuB,UAAU,CAAChB,YAAY;QAAEI,MAAM;IAAM;IAEzE,MAAMa,SAASH,UAAUV,IAAI;IAE7B,MAAMc,aAAazB,MAAM0B,WAAW,CAClC,CAACC;QACCL,SAAS;YACPZ,MAAM;YACNC,MAAMgB;QACR;IACF,GACA;QAACL;KAAS;IAGZ,MAAMM,UAAU5B,MAAM0B,WAAW,CAAC;QAChCJ,SAAS;YACPZ,MAAM;YACNC,MAAM;QACR;IACF,GAAG;QAACW;KAAS;IAEb,MAAMO,uBAAuB,CAACC;QAC5BL,WAAW,CAACD;IACd;IAEA,MAAMO,cAAc9B,0BAA0B;QAC5CY;QACAmB,oBAAoB;IACtB;IAEA,MAAMC,QAA6B;QACjCb;QACAI;QACAI;QACAM,YAAY;YACVf,MAAM;YACND,OAAO;YACPD,MAAM;YACND,eAAe;YACfD,SAAS;QACX;QACAI,MAAMd,KAAK8B,MAAM,CAAChB,MAAM;YACtBiB,cAAcL,YAAYZ,IAAI;YAC9BkB,aAAa;QACf;QACAnB,OAAOb,KAAK8B,MAAM,CAACjB,OAAO;YACxBmB,aAAa;QACf;QACApB,MAAMZ,KAAKiC,QAAQ,CAACrB,MAAM;YACxBmB,cAAc;gBACZG,UAAUf,uBAAS,oBAACrB,0CAAwB,oBAACD;YAC/C;YACAsC,iBAAiB;YACjBH,aAAa;QACf;QACArB,eAAeX,KAAK8B,MAAM,CAACnB,eAAe;YACxCoB,cAAc;gBACZ,iBAAiBZ;gBACjBd,MAAM;YACR;YACA2B,aAAa;QACf;QACAtB,SAASV,KAAK8B,MAAM,CAACpB,SAAS;YAC5BqB,cAAc;gBACZtB,KAAKA;gBACL,qFAAqF;gBACrF,oHAAoH;gBACpH,6DAA6D;gBAC7D,aAAa;gBACb2B,OAAOjB,SAASkB,YAAY;gBAC5B,GAAGX,YAAYY,OAAO;YACxB;YACAN,aAAa;QACf;IACF;IAEAJ,MAAMjB,aAAa,CAAC4B,OAAO,GAAGxC,eAAe6B,MAAMjB,aAAa,CAAC4B,OAAO,EAAEf;IAE1E,OAAOI;AACT,EAAE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export const useReferenceGroupContextValues = state => {
|
|
3
|
-
return React.useMemo(() => {
|
|
4
|
-
return {
|
|
5
|
-
open: state.isOpen,
|
|
6
|
-
setOpen: state.setOpen
|
|
7
|
-
};
|
|
8
|
-
}, [state.isOpen, state.setOpen]);
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=useReferenceGroupContextValues.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceGroupContextValues.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ReferenceGroupContext } from '../../context/ReferenceGroupContext';\nimport type { ReferenceGroupState } from './ReferenceGroup.types';\n\nexport const useReferenceGroupContextValues = (state: ReferenceGroupState): ReferenceGroupContext => {\n return React.useMemo(() => {\n return {\n open: state.isOpen,\n setOpen: state.setOpen,\n };\n }, [state.isOpen, state.setOpen]);\n};\n"],"names":["React","useReferenceGroupContextValues","state","useMemo","open","isOpen","setOpen"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAI/B,OAAO,MAAMC,iCAAiC,CAACC;IAC7C,OAAOF,MAAMG,OAAO,CAAC;QACnB,OAAO;YACLC,MAAMF,MAAMG,MAAM;YAClBC,SAASJ,MAAMI,OAAO;QACxB;IACF,GAAG;QAACJ,MAAMG,MAAM;QAAEH,MAAMI,OAAO;KAAC;AAClC,EAAE"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { __resetStyles, __styles, mergeClasses, tokens, typographyStyles } from '@fluentui/react-components';
|
|
2
|
-
export const referenceGroupClassNames = {
|
|
3
|
-
root: 'fai-ReferenceGroup',
|
|
4
|
-
label: 'fai-ReferenceGroup__label',
|
|
5
|
-
icon: 'fai-ReferenceGroup__icon',
|
|
6
|
-
detailsButton: 'fai-ReferenceGroup__detailsButton',
|
|
7
|
-
content: 'fai-ReferenceGroup__content'
|
|
8
|
-
};
|
|
9
|
-
const useRootClassName = __resetStyles("r1w2tk05", null, [".r1w2tk05{display:flex;flex-direction:column;width:100%;gap:var(--spacingVerticalXS);}"]);
|
|
10
|
-
const useIconClassName = __resetStyles("r18biwo", null, [".r18biwo{display:inline-flex;align-items:center;}"]);
|
|
11
|
-
const useDetailsButtonClassName = __resetStyles("raowymc", "rkpovx8", [".raowymc{display:inline-flex;column-gap:var(--spacingHorizontalSNudge);align-items:center;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);border:0;background-color:transparent;color:var(--colorNeutralForeground3);height:24px;cursor:pointer;width:max-content;padding-left:0;padding-right:0;}", ".rkpovx8{display:inline-flex;column-gap:var(--spacingHorizontalSNudge);align-items:center;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);border:0;background-color:transparent;color:var(--colorNeutralForeground3);height:24px;cursor:pointer;width:max-content;padding-right:0;padding-left:0;}"]);
|
|
12
|
-
const useDetailsButtonStyles = __styles({
|
|
13
|
-
canvas: {},
|
|
14
|
-
sidecar: {
|
|
15
|
-
Bahqtrf: "fk6fouc",
|
|
16
|
-
Be2twd7: "fy9rknc",
|
|
17
|
-
Bhrd7zp: "figsok6",
|
|
18
|
-
Bg96gwp: "fwrc4pm"
|
|
19
|
-
}
|
|
20
|
-
}, {
|
|
21
|
-
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}"]
|
|
22
|
-
});
|
|
23
|
-
const useContentHiddenStyles = __styles({
|
|
24
|
-
base: {
|
|
25
|
-
mc9l5x: "fjseox"
|
|
26
|
-
}
|
|
27
|
-
}, {
|
|
28
|
-
d: [".fjseox{display:none;}"]
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Apply styling to the ReferenceGroup slots based on the state
|
|
32
|
-
*/
|
|
33
|
-
export const useReferenceGroupStyles_unstable = state => {
|
|
34
|
-
const {
|
|
35
|
-
mode,
|
|
36
|
-
isOpen
|
|
37
|
-
} = state;
|
|
38
|
-
const iconBaseClassName = useIconClassName();
|
|
39
|
-
const detailsButtonStyles = useDetailsButtonStyles();
|
|
40
|
-
const contentHiddenStyles = useContentHiddenStyles();
|
|
41
|
-
state.root.className = mergeClasses(referenceGroupClassNames.root, useRootClassName(), state.root.className);
|
|
42
|
-
state.label.className = mergeClasses(referenceGroupClassNames.label, state.label.className);
|
|
43
|
-
if (state.icon) {
|
|
44
|
-
state.icon.className = mergeClasses(referenceGroupClassNames.icon, iconBaseClassName, state.icon.className);
|
|
45
|
-
}
|
|
46
|
-
state.detailsButton.className = mergeClasses(referenceGroupClassNames.detailsButton, useDetailsButtonClassName(), detailsButtonStyles[mode], state.detailsButton.className);
|
|
47
|
-
state.content.className = mergeClasses(referenceGroupClassNames.content, !isOpen && contentHiddenStyles.base, state.content.className);
|
|
48
|
-
return state;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=useReferenceGroupStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceGroupStyles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, tokens, typographyStyles } from '@fluentui/react-components';\nimport type { ReferenceGroupSlots, ReferenceGroupState } from './ReferenceGroup.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const referenceGroupClassNames: SlotClassNames<ReferenceGroupSlots> = {\n root: 'fai-ReferenceGroup',\n label: 'fai-ReferenceGroup__label',\n icon: 'fai-ReferenceGroup__icon',\n detailsButton: 'fai-ReferenceGroup__detailsButton',\n content: 'fai-ReferenceGroup__content',\n};\n\nconst useRootClassName = makeResetStyles({\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n gap: tokens.spacingVerticalXS,\n});\n\nconst useIconClassName = makeResetStyles({\n display: 'inline-flex',\n alignItems: 'center',\n});\n\nconst useDetailsButtonClassName = makeResetStyles({\n display: 'inline-flex',\n columnGap: tokens.spacingHorizontalSNudge,\n alignItems: 'center',\n ...typographyStyles.body1,\n border: 0,\n backgroundColor: 'transparent',\n color: tokens.colorNeutralForeground3,\n height: '24px',\n cursor: 'pointer',\n width: 'max-content',\n paddingLeft: 0,\n paddingRight: 0,\n});\n\nconst useDetailsButtonStyles = makeStyles({\n canvas: {},\n\n sidecar: {\n ...typographyStyles.caption1,\n },\n});\n\nconst useContentHiddenStyles = makeStyles({\n base: {\n display: 'none',\n },\n});\n\n/**\n * Apply styling to the ReferenceGroup slots based on the state\n */\nexport const useReferenceGroupStyles_unstable = (state: ReferenceGroupState): ReferenceGroupState => {\n const { mode, isOpen } = state;\n\n const iconBaseClassName = useIconClassName();\n const detailsButtonStyles = useDetailsButtonStyles();\n const contentHiddenStyles = useContentHiddenStyles();\n\n state.root.className = mergeClasses(referenceGroupClassNames.root, useRootClassName(), state.root.className);\n\n state.label.className = mergeClasses(referenceGroupClassNames.label, state.label.className);\n\n if (state.icon) {\n state.icon.className = mergeClasses(referenceGroupClassNames.icon, iconBaseClassName, state.icon.className);\n }\n\n state.detailsButton.className = mergeClasses(\n referenceGroupClassNames.detailsButton,\n useDetailsButtonClassName(),\n detailsButtonStyles[mode],\n state.detailsButton.className,\n );\n\n state.content.className = mergeClasses(\n referenceGroupClassNames.content,\n !isOpen && contentHiddenStyles.base,\n state.content.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","typographyStyles","referenceGroupClassNames","root","label","icon","detailsButton","content","useRootClassName","display","flexDirection","width","gap","spacingVerticalXS","useIconClassName","alignItems","useDetailsButtonClassName","columnGap","spacingHorizontalSNudge","body1","border","backgroundColor","color","colorNeutralForeground3","height","cursor","paddingLeft","paddingRight","useDetailsButtonStyles","canvas","sidecar","caption1","useContentHiddenStyles","base","useReferenceGroupStyles_unstable","state","mode","isOpen","iconBaseClassName","detailsButtonStyles","contentHiddenStyles","className"],"mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,EAAEC,MAAM,EAAEC,gBAAgB,QAAQ,6BAA6B;AAIjH,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;IACNC,OAAO;IACPC,MAAM;IACNC,eAAe;IACfC,SAAS;AACX,EAAE;AAEF,MAAMC,mBAAmBX,gBAAgB;IACvCY,SAAS;IACTC,eAAe;IACfC,OAAO;IACPC,KAAKZ,OAAOa,iBAAiB;AAC/B;AAEA,MAAMC,mBAAmBjB,gBAAgB;IACvCY,SAAS;IACTM,YAAY;AACd;AAEA,MAAMC,4BAA4BnB,gBAAgB;IAChDY,SAAS;IACTQ,WAAWjB,OAAOkB,uBAAuB;IACzCH,YAAY;IACZ,GAAGd,iBAAiBkB,KAAK;IACzBC,QAAQ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