@fluentui-copilot/react-suggestions 0.0.0-nightly-20250715-0404-529d18be.1 → 0.0.0-nightly-20250717-0405-eecbae35.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.
- package/CHANGELOG.json +3 -3
- package/CHANGELOG.md +4 -4
- package/lib/Suggestion.js +0 -1
- package/lib/SuggestionList.js +0 -1
- package/lib/components/Suggestion/Suggestion.js +8 -10
- package/lib/components/Suggestion/Suggestion.types.js +1 -2
- package/lib/components/Suggestion/index.js +0 -1
- package/lib/components/Suggestion/useSuggestion.js +9 -10
- package/lib/components/SuggestionList/SuggestionList.js +5 -6
- package/lib/components/SuggestionList/SuggestionList.types.js +1 -2
- package/lib/components/SuggestionList/index.js +0 -1
- package/lib/components/SuggestionList/renderSuggestionList.js +9 -8
- package/lib/components/SuggestionList/useSuggestionList.js +24 -29
- package/lib/index.js +0 -1
- package/lib-commonjs/Suggestion.js +0 -1
- package/lib-commonjs/SuggestionList.js +0 -1
- package/lib-commonjs/components/Suggestion/Suggestion.js +1 -1
- package/lib-commonjs/components/Suggestion/Suggestion.js.map +1 -1
- package/lib-commonjs/components/Suggestion/Suggestion.types.js +0 -1
- package/lib-commonjs/components/Suggestion/index.js +0 -1
- package/lib-commonjs/components/Suggestion/useSuggestion.js +1 -1
- package/lib-commonjs/components/Suggestion/useSuggestion.js.map +1 -1
- package/lib-commonjs/components/SuggestionList/SuggestionList.js +1 -1
- package/lib-commonjs/components/SuggestionList/SuggestionList.js.map +1 -1
- package/lib-commonjs/components/SuggestionList/SuggestionList.types.js +0 -1
- package/lib-commonjs/components/SuggestionList/index.js +0 -1
- package/lib-commonjs/components/SuggestionList/renderSuggestionList.js +1 -1
- package/lib-commonjs/components/SuggestionList/renderSuggestionList.js.map +1 -1
- package/lib-commonjs/components/SuggestionList/useSuggestionList.js +1 -1
- package/lib-commonjs/components/SuggestionList/useSuggestionList.js.map +1 -1
- package/lib-commonjs/index.js +0 -1
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-suggestions",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-suggestions_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Thu, 17 Jul 2025 04:13:02 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-suggestions_v0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
7
|
+
"version": "0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-suggestions
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 17 Jul 2025 04:13:02 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-nightly-
|
|
7
|
+
## [0.0.0-nightly-20250717-0405-eecbae35.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-suggestions_v0.0.0-nightly-20250717-0405-eecbae35.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.13.2..@fluentui-copilot/react-suggestions_v0.0.0-nightly-
|
|
9
|
+
Thu, 17 Jul 2025 04:13:02 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.13.2..@fluentui-copilot/react-suggestions_v0.0.0-nightly-20250717-0405-eecbae35.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
package/lib/Suggestion.js
CHANGED
package/lib/SuggestionList.js
CHANGED
|
@@ -4,15 +4,13 @@ import { renderButton_unstable, useButtonStyles_unstable } from '@fluentui/react
|
|
|
4
4
|
import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
|
|
5
5
|
import { useSuggestion_unstable } from './useSuggestion';
|
|
6
6
|
// Suggestion component - TODO: add more docs
|
|
7
|
-
export const Suggestion = /*#__PURE__*/React.forwardRef((props, ref)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return renderButton_unstable(state);
|
|
7
|
+
export const Suggestion = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
+
'use no memo';
|
|
9
|
+
const state = useSuggestion_unstable(props, ref);
|
|
10
|
+
state.appearance = props.appearance || 'outline';
|
|
11
|
+
useButtonStyles_unstable(state);
|
|
12
|
+
useSuggestionStyles_unstable(state);
|
|
13
|
+
useCustomStyleHook('useSuggestionStyles')(state);
|
|
14
|
+
return renderButton_unstable(state);
|
|
16
15
|
});
|
|
17
16
|
Suggestion.displayName = 'Suggestion';
|
|
18
|
-
//# sourceMappingURL=Suggestion.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=Suggestion.types.js.map
|
|
1
|
+
export { };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { useButton_unstable } from '@fluentui/react-components';
|
|
2
2
|
import { useCopilotMode, useDesignVersion } from '@fluentui-copilot/react-provider';
|
|
3
|
-
export const useSuggestion_unstable = (props, ref)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export const useSuggestion_unstable = (props, ref)=>{
|
|
4
|
+
const buttonState = useButton_unstable(props, ref);
|
|
5
|
+
const mode = useCopilotMode(props.mode);
|
|
6
|
+
const designVersion = useDesignVersion(props.designVersion);
|
|
7
|
+
return {
|
|
8
|
+
...buttonState,
|
|
9
|
+
mode,
|
|
10
|
+
designVersion
|
|
11
|
+
};
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=useSuggestion.js.map
|
|
@@ -4,11 +4,10 @@ import { renderSuggestionList_unstable } from './renderSuggestionList';
|
|
|
4
4
|
import { useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';
|
|
5
5
|
import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
|
|
6
6
|
// SuggestionList component - TODO: add more docs
|
|
7
|
-
export const SuggestionList = /*#__PURE__*/React.forwardRef((props, ref)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
export const SuggestionList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
8
|
+
const state = useSuggestionList_unstable(props, ref);
|
|
9
|
+
useSuggestionListStyles_unstable(state);
|
|
10
|
+
useCustomStyleHook('useSuggestionListStyles')(state);
|
|
11
|
+
return renderSuggestionList_unstable(state);
|
|
12
12
|
});
|
|
13
13
|
SuggestionList.displayName = 'SuggestionList';
|
|
14
|
-
//# sourceMappingURL=SuggestionList.js.map
|
|
@@ -2,4 +2,3 @@ export { SuggestionList } from './SuggestionList';
|
|
|
2
2
|
export { renderSuggestionList_unstable } from './renderSuggestionList';
|
|
3
3
|
export { useSuggestionList_unstable } from './useSuggestionList';
|
|
4
4
|
export { suggestionListClassNames, useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
|
|
2
2
|
import { assertSlots } from '@fluentui/react-components';
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of SuggestionList
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
*/ export const renderSuggestionList_unstable = (state)=>{
|
|
6
|
+
assertSlots(state);
|
|
7
|
+
return /*#__PURE__*/ _jsxs(state.root, {
|
|
8
|
+
children: [
|
|
9
|
+
state.root.children,
|
|
10
|
+
state.action && /*#__PURE__*/ _jsx(state.action, {})
|
|
11
|
+
]
|
|
12
|
+
});
|
|
11
13
|
};
|
|
12
|
-
//# sourceMappingURL=renderSuggestionList.js.map
|
|
@@ -8,33 +8,28 @@ import { getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluent
|
|
|
8
8
|
*
|
|
9
9
|
* @param props - props from this instance of SuggestionList
|
|
10
10
|
* @param ref - reference to root HTMLElement of SuggestionList
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
action: slot.optional(action, {
|
|
36
|
-
elementType: 'span'
|
|
37
|
-
})
|
|
38
|
-
};
|
|
11
|
+
*/ export const useSuggestionList_unstable = (props, ref)=>{
|
|
12
|
+
const { action, horizontalAlignment = 'end' } = props;
|
|
13
|
+
return {
|
|
14
|
+
horizontalAlignment,
|
|
15
|
+
components: {
|
|
16
|
+
root: 'div',
|
|
17
|
+
action: 'span'
|
|
18
|
+
},
|
|
19
|
+
root: slot.always(getIntrinsicElementProps('div', {
|
|
20
|
+
ref,
|
|
21
|
+
role: 'toolbar',
|
|
22
|
+
'aria-label': 'suggestions',
|
|
23
|
+
...props,
|
|
24
|
+
...useArrowNavigationGroup({
|
|
25
|
+
axis: 'both',
|
|
26
|
+
circular: true
|
|
27
|
+
})
|
|
28
|
+
}), {
|
|
29
|
+
elementType: 'div'
|
|
30
|
+
}),
|
|
31
|
+
action: slot.optional(action, {
|
|
32
|
+
elementType: 'span'
|
|
33
|
+
})
|
|
34
|
+
};
|
|
39
35
|
};
|
|
40
|
-
//# sourceMappingURL=useSuggestionList.js.map
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export { Suggestion, suggestionClassNames, useSuggestionStyles_unstable, useSuggestion_unstable } from './Suggestion';
|
|
2
2
|
export { SuggestionList, renderSuggestionList_unstable, suggestionListClassNames, useSuggestionListStyles_unstable, useSuggestionList_unstable } from './SuggestionList';
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -23,4 +23,4 @@ const Suggestion = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
|
23
23
|
(0, _reactprovider.useCustomStyleHook)('useSuggestionStyles')(state);
|
|
24
24
|
return (0, _reactcomponents.renderButton_unstable)(state);
|
|
25
25
|
});
|
|
26
|
-
Suggestion.displayName = 'Suggestion';
|
|
26
|
+
Suggestion.displayName = 'Suggestion';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Suggestion.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSuggestionStyles_unstable } from './useSuggestionStyles.styles';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { renderButton_unstable, useButtonStyles_unstable } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\nimport { useSuggestion_unstable } from './useSuggestion';\nimport type { SuggestionProps } from './Suggestion.types';\n\n// Suggestion component - TODO: add more docs\nexport const Suggestion: ForwardRefComponent<SuggestionProps> = React.forwardRef((props, ref) => {\n 'use no memo';\n\n const state = useSuggestion_unstable(props, ref);\n state.appearance = props.appearance || 'outline';\n useButtonStyles_unstable(state);\n useSuggestionStyles_unstable(state);\n useCustomStyleHook('useSuggestionStyles')(state);\n\n return renderButton_unstable(state);\n});\n\nSuggestion.displayName = 'Suggestion';\n"],"names":["Suggestion","React","forwardRef","props","state","
|
|
1
|
+
{"version":3,"sources":["Suggestion.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSuggestionStyles_unstable } from './useSuggestionStyles.styles';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { renderButton_unstable, useButtonStyles_unstable } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\nimport { useSuggestion_unstable } from './useSuggestion';\nimport type { SuggestionProps } from './Suggestion.types';\n\n// Suggestion component - TODO: add more docs\nexport const Suggestion: ForwardRefComponent<SuggestionProps> = React.forwardRef((props, ref) => {\n 'use no memo';\n\n const state = useSuggestion_unstable(props, ref);\n state.appearance = props.appearance || 'outline';\n useButtonStyles_unstable(state);\n useSuggestionStyles_unstable(state);\n useCustomStyleHook('useSuggestionStyles')(state);\n\n return renderButton_unstable(state);\n});\n\nSuggestion.displayName = 'Suggestion';\n"],"names":["Suggestion","React","forwardRef","props","ref","state","useSuggestion_unstable","appearance","useButtonStyles_unstable","useSuggestionStyles_unstable","useCustomStyleHook","renderButton_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;;iEATU;2CACsB;iCAEmB;+BAC7B;+BACI;AAIhC,MAAMA,aAAAA,WAAAA,GAAmDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvF;IAEA,MAAMC,QAAQC,IAAAA,qCAAAA,EAAuBH,OAAOC;IAC5CC,MAAME,UAAU,GAAGJ,MAAMI,UAAU,IAAI;IACvCC,IAAAA,yCAAAA,EAAyBH;IACzBI,IAAAA,uDAAAA,EAA6BJ;IAC7BK,IAAAA,iCAAAA,EAAmB,uBAAuBL;IAE1C,OAAOM,IAAAA,sCAAAA,EAAsBN;AAC/B;AAEAL,WAAWY,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useSuggestion.ts"],"sourcesContent":["import { useButton_unstable } from '@fluentui/react-components';\nimport { useCopilotMode, useDesignVersion } from '@fluentui-copilot/react-provider';\nimport type { SuggestionProps, SuggestionState } from './Suggestion.types';\n\nexport const useSuggestion_unstable = (\n props: SuggestionProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): SuggestionState => {\n const buttonState = useButton_unstable(props, ref);\n const mode = useCopilotMode(props.mode);\n const designVersion = useDesignVersion(props.designVersion);\n return { ...buttonState, mode, designVersion };\n};\n"],"names":["useSuggestion_unstable","props","ref","buttonState","useButton_unstable","mode","useCopilotMode","designVersion","useDesignVersion"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAIaA;;;eAAAA;;;iCAJsB;+BACc;AAG1C,MAAMA,yBAAyB,CACpCC,OACAC;
|
|
1
|
+
{"version":3,"sources":["useSuggestion.ts"],"sourcesContent":["import { useButton_unstable } from '@fluentui/react-components';\nimport { useCopilotMode, useDesignVersion } from '@fluentui-copilot/react-provider';\nimport type { SuggestionProps, SuggestionState } from './Suggestion.types';\n\nexport const useSuggestion_unstable = (\n props: SuggestionProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): SuggestionState => {\n const buttonState = useButton_unstable(props, ref);\n const mode = useCopilotMode(props.mode);\n const designVersion = useDesignVersion(props.designVersion);\n return { ...buttonState, mode, designVersion };\n};\n"],"names":["useSuggestion_unstable","props","ref","buttonState","useButton_unstable","mode","useCopilotMode","designVersion","useDesignVersion"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAIaA;;;eAAAA;;;iCAJsB;+BACc;AAG1C,MAAMA,yBAAyB,CACpCC,OACAC;IAEA,MAAMC,cAAcC,IAAAA,mCAAAA,EAAmBH,OAAOC;IAC9C,MAAMG,OAAOC,IAAAA,6BAAAA,EAAeL,MAAMI,IAAI;IACtC,MAAME,gBAAgBC,IAAAA,+BAAAA,EAAiBP,MAAMM,aAAa;IAC1D,OAAO;QAAE,GAAGJ,WAAW;QAAEE;QAAME;IAAc;AAC/C"}
|
|
@@ -20,4 +20,4 @@ const SuggestionList = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
|
20
20
|
(0, _reactprovider.useCustomStyleHook)('useSuggestionListStyles')(state);
|
|
21
21
|
return (0, _renderSuggestionList.renderSuggestionList_unstable)(state);
|
|
22
22
|
});
|
|
23
|
-
SuggestionList.displayName = 'SuggestionList';
|
|
23
|
+
SuggestionList.displayName = 'SuggestionList';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["SuggestionList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSuggestionList_unstable } from './useSuggestionList';\nimport { renderSuggestionList_unstable } from './renderSuggestionList';\nimport { useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';\nimport type { SuggestionListProps } from './SuggestionList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n// SuggestionList component - TODO: add more docs\nexport const SuggestionList: ForwardRefComponent<SuggestionListProps> = React.forwardRef((props, ref) => {\n const state = useSuggestionList_unstable(props, ref);\n\n useSuggestionListStyles_unstable(state);\n useCustomStyleHook('useSuggestionListStyles')(state);\n\n return renderSuggestionList_unstable(state);\n});\n\nSuggestionList.displayName = 'SuggestionList';\n"],"names":["SuggestionList","React","forwardRef","props","state","useSuggestionList_unstable","useSuggestionListStyles_unstable","useCustomStyleHook","renderSuggestionList_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;;iEATU;mCACoB;sCACG;+CACG;+BAGd;AAG5B,MAAMA,iBAAAA,WAAAA,
|
|
1
|
+
{"version":3,"sources":["SuggestionList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSuggestionList_unstable } from './useSuggestionList';\nimport { renderSuggestionList_unstable } from './renderSuggestionList';\nimport { useSuggestionListStyles_unstable } from './useSuggestionListStyles.styles';\nimport type { SuggestionListProps } from './SuggestionList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n// SuggestionList component - TODO: add more docs\nexport const SuggestionList: ForwardRefComponent<SuggestionListProps> = React.forwardRef((props, ref) => {\n const state = useSuggestionList_unstable(props, ref);\n\n useSuggestionListStyles_unstable(state);\n useCustomStyleHook('useSuggestionListStyles')(state);\n\n return renderSuggestionList_unstable(state);\n});\n\nSuggestionList.displayName = 'SuggestionList';\n"],"names":["SuggestionList","React","forwardRef","props","ref","state","useSuggestionList_unstable","useSuggestionListStyles_unstable","useCustomStyleHook","renderSuggestionList_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;;iEATU;mCACoB;sCACG;+CACG;+BAGd;AAG5B,MAAMA,iBAAAA,WAAAA,GAA2DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQC,IAAAA,6CAAAA,EAA2BH,OAAOC;IAEhDG,IAAAA,+DAAAA,EAAiCF;IACjCG,IAAAA,iCAAAA,EAAmB,2BAA2BH;IAE9C,OAAOI,IAAAA,mDAAAA,EAA8BJ;AACvC;AAEAL,eAAeU,WAAW,GAAG"}
|
|
@@ -29,4 +29,3 @@ const _SuggestionList = require("./SuggestionList");
|
|
|
29
29
|
const _renderSuggestionList = require("./renderSuggestionList");
|
|
30
30
|
const _useSuggestionList = require("./useSuggestionList");
|
|
31
31
|
const _useSuggestionListStylesstyles = require("./useSuggestionListStyles.styles");
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderSuggestionList.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { SuggestionListState, SuggestionListSlots } from './SuggestionList.types';\n\n/**\n * Render the final JSX of SuggestionList\n */\nexport const renderSuggestionList_unstable = (state: SuggestionListState) => {\n assertSlots<SuggestionListSlots>(state);\n\n return (\n <state.root>\n {state.root.children}\n {state.action && <state.action />}\n </state.root>\n );\n};\n"],"names":["
|
|
1
|
+
{"version":3,"sources":["renderSuggestionList.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { SuggestionListState, SuggestionListSlots } from './SuggestionList.types';\n\n/**\n * Render the final JSX of SuggestionList\n */\nexport const renderSuggestionList_unstable = (state: SuggestionListState) => {\n assertSlots<SuggestionListSlots>(state);\n\n return (\n <state.root>\n {state.root.children}\n {state.action && <state.action />}\n </state.root>\n );\n};\n"],"names":["renderSuggestionList_unstable","state","assertSlots","_jsxs","root","children","action","_jsx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;4BARb;iCAE4B;AAMrB,MAAMA,gCAAgC,CAACC;IAC5CC,IAAAA,4BAAAA,EAAiCD;IAEjC,OAAA,WAAA,GACEE,IAAAA,gBAAA,EAACF,MAAMG,IAAI,EAAA;;YACRH,MAAMG,IAAI,CAACC,QAAQ;YACnBJ,MAAMK,MAAM,IAAA,WAAA,GAAIC,IAAAA,eAAA,EAACN,MAAMK,MAAM,EAAA,CAAA;;;AAGpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useSuggestionList.tsx"],"sourcesContent":["import { getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport type { SuggestionListProps, SuggestionListState } from './SuggestionList.types';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render SuggestionList.\n *\n * The returned state can be modified with hooks such as useSuggestionListStyles_unstable,\n * before being passed to renderSuggestionList_unstable.\n *\n * @param props - props from this instance of SuggestionList\n * @param ref - reference to root HTMLElement of SuggestionList\n */\nexport const useSuggestionList_unstable = (\n props: SuggestionListProps,\n ref: React.Ref<HTMLDivElement>,\n): SuggestionListState => {\n const { action, horizontalAlignment = 'end' } = props;\n return {\n horizontalAlignment,\n components: {\n root: 'div',\n action: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n role: 'toolbar',\n 'aria-label': 'suggestions',\n ...props,\n ...useArrowNavigationGroup({ axis: 'both', circular: true }),\n }),\n { elementType: 'div' },\n ),\n action: slot.optional(action, { elementType: 'span' }),\n };\n};\n"],"names":["
|
|
1
|
+
{"version":3,"sources":["useSuggestionList.tsx"],"sourcesContent":["import { getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport type { SuggestionListProps, SuggestionListState } from './SuggestionList.types';\n\n// If you add JSX to this file, be sure to change the file type to .tsx\n\n/**\n * Create the state required to render SuggestionList.\n *\n * The returned state can be modified with hooks such as useSuggestionListStyles_unstable,\n * before being passed to renderSuggestionList_unstable.\n *\n * @param props - props from this instance of SuggestionList\n * @param ref - reference to root HTMLElement of SuggestionList\n */\nexport const useSuggestionList_unstable = (\n props: SuggestionListProps,\n ref: React.Ref<HTMLDivElement>,\n): SuggestionListState => {\n const { action, horizontalAlignment = 'end' } = props;\n return {\n horizontalAlignment,\n components: {\n root: 'div',\n action: 'span',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n ref,\n role: 'toolbar',\n 'aria-label': 'suggestions',\n ...props,\n ...useArrowNavigationGroup({ axis: 'both', circular: true }),\n }),\n { elementType: 'div' },\n ),\n action: slot.optional(action, { elementType: 'span' }),\n };\n};\n"],"names":["useSuggestionList_unstable","props","ref","action","horizontalAlignment","components","root","slot","always","getIntrinsicElementProps","role","useArrowNavigationGroup","axis","circular","elementType","optional"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAcaA;;;eAAAA;;;iCAd2D;AAcjE,MAAMA,6BAA6B,CACxCC,OACAC;IAEA,MAAM,EAAEC,MAAM,EAAEC,sBAAsB,KAAK,EAAE,GAAGH;IAChD,OAAO;QACLG;QACAC,YAAY;YACVC,MAAM;YACNH,QAAQ;QACV;QACAG,MAAMC,qBAAAA,CAAKC,MAAM,CACfC,IAAAA,yCAAAA,EAAyB,OAAO;YAC9BP;YACAQ,MAAM;YACN,cAAc;YACd,GAAGT,KAAK;YACR,GAAGU,IAAAA,wCAAAA,EAAwB;gBAAEC,MAAM;gBAAQC,UAAU;YAAK,EAAE;QAC9D,IACA;YAAEC,aAAa;QAAM;QAEvBX,QAAQI,qBAAAA,CAAKQ,QAAQ,CAACZ,QAAQ;YAAEW,aAAa;QAAO;IACtD;AACF"}
|
package/lib-commonjs/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-suggestions",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
4
4
|
"description": "A Fluent AI package",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/react-provider": "0.0.0-nightly-
|
|
16
|
-
"@fluentui-copilot/tokens": "0.0.0-nightly-
|
|
15
|
+
"@fluentui-copilot/react-provider": "0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
16
|
+
"@fluentui-copilot/tokens": "0.0.0-nightly-20250717-0405-eecbae35.1",
|
|
17
17
|
"@swc/helpers": "^0.5.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|