@fluentui-copilot/react-suggestions 0.0.0-nightly-20240403-0404-6f5eb4de.1 → 0.0.0-nightly-20240405-0406-15f86c74.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 +5 -5
- package/CHANGELOG.md +5 -5
- package/dist/index.d.ts +1 -1
- package/lib/components/SuggestionList/useSuggestionList.js +2 -2
- package/lib/components/SuggestionList/useSuggestionList.js.map +1 -1
- package/lib-commonjs/components/SuggestionList/useSuggestionList.js +1 -1
- package/lib-commonjs/components/SuggestionList/useSuggestionList.js.map +1 -1
- package/package.json +2 -2
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": "Fri, 05 Apr 2024 04:11:31 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-suggestions_v0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
7
|
+
"version": "0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
{
|
|
17
17
|
"author": "beachball",
|
|
18
18
|
"package": "@fluentui-copilot/react-suggestions",
|
|
19
|
-
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
20
|
-
"commit": "
|
|
19
|
+
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
20
|
+
"commit": "7c2db8a7d209d0ba423bea7703b4f2c15b75cff3"
|
|
21
21
|
}
|
|
22
22
|
]
|
|
23
23
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-suggestions
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 05 Apr 2024 04:11:31 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-20240405-0406-15f86c74.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-suggestions_v0.0.0-nightly-20240405-0406-15f86c74.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.7.0..@fluentui-copilot/react-suggestions_v0.0.0-nightly-
|
|
9
|
+
Fri, 05 Apr 2024 04:11:31 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.7.0..@fluentui-copilot/react-suggestions_v0.0.0-nightly-20240405-0406-15f86c74.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
14
|
- Release nightly ([commit](https://github.com/microsoft/fluentai/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
15
|
-
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
15
|
+
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240405-0406-15f86c74.1 ([commit](https://github.com/microsoft/fluentai/commit/7c2db8a7d209d0ba423bea7703b4f2c15b75cff3) by beachball)
|
|
16
16
|
|
|
17
17
|
## [0.7.0](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-suggestions_v0.7.0)
|
|
18
18
|
|
package/dist/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare type TooltipComponent = React.FunctionComponent<Partial<TooltipPr
|
|
|
61
61
|
* @param props - props from this instance of SuggestionList
|
|
62
62
|
* @param ref - reference to root HTMLElement of SuggestionList
|
|
63
63
|
*/
|
|
64
|
-
export declare const useSuggestionList_unstable: (props: SuggestionListProps, ref: React_2.Ref<
|
|
64
|
+
export declare const useSuggestionList_unstable: (props: SuggestionListProps, ref: React_2.Ref<HTMLDivElement>) => SuggestionListState;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Apply styling to the SuggestionList slots based on the state
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Button, Tooltip,
|
|
2
|
+
import { Button, Tooltip, getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';
|
|
3
3
|
import { ArrowCounterclockwise16Regular, ArrowCounterclockwise16Filled, bundleIcon } from '@fluentui/react-icons';
|
|
4
4
|
// If you add JSX to this file, be sure to change the file type to .tsx
|
|
5
5
|
/**
|
|
@@ -24,7 +24,7 @@ export const useSuggestionList_unstable = (props, ref) => {
|
|
|
24
24
|
reloadTooltip: Tooltip,
|
|
25
25
|
action: 'span'
|
|
26
26
|
},
|
|
27
|
-
root: slot.always(
|
|
27
|
+
root: slot.always(getIntrinsicElementProps('div', {
|
|
28
28
|
ref,
|
|
29
29
|
role: 'toolbar',
|
|
30
30
|
'aria-label': 'suggestions',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useSuggestionList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button, Tooltip,
|
|
1
|
+
{"version":3,"sources":["useSuggestionList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button, Tooltip, getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport { ArrowCounterclockwise16Regular, ArrowCounterclockwise16Filled, bundleIcon } from '@fluentui/react-icons';\nimport type { SuggestionListProps, SuggestionListState, TooltipComponent } 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, reload } = props;\n const ReloadIcon = bundleIcon(ArrowCounterclockwise16Filled, ArrowCounterclockwise16Regular);\n return {\n components: {\n root: 'div',\n reload: Button,\n reloadTooltip: Tooltip as TooltipComponent,\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 reloadTooltip: slot.optional(props.reloadTooltip, {\n defaultProps: {\n relationship: 'label',\n content: 'Reload',\n withArrow: reload !== undefined,\n },\n renderByDefault: true,\n elementType: Tooltip as TooltipComponent,\n }),\n reload: slot.optional(reload, {\n defaultProps: {\n icon: <ReloadIcon />,\n size: 'small',\n appearance: 'transparent',\n },\n elementType: Button,\n }),\n action: slot.optional(action, { elementType: 'span' }),\n };\n};\n"],"names":["React","Button","Tooltip","getIntrinsicElementProps","slot","useArrowNavigationGroup","ArrowCounterclockwise16Regular","ArrowCounterclockwise16Filled","bundleIcon","useSuggestionList_unstable","props","ref","action","reload","ReloadIcon","components","root","reloadTooltip","always","role","axis","circular","elementType","optional","defaultProps","relationship","content","withArrow","undefined","renderByDefault","icon","size","appearance"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,MAAM,EAAEC,OAAO,EAAEC,wBAAwB,EAAEC,IAAI,EAAEC,uBAAuB,QAAQ,6BAA6B;AACtH,SAASC,8BAA8B,EAAEC,6BAA6B,EAAEC,UAAU,QAAQ,wBAAwB;AAGlH,uEAAuE;AAEvE;;;;;;;;CAQC,GACD,OAAO,MAAMC,6BAA6B,CACxCC,OACAC;IAEA,MAAM,EAAEC,MAAM,EAAEC,MAAM,EAAE,GAAGH;IAC3B,MAAMI,aAAaN,WAAWD,+BAA+BD;IAC7D,OAAO;QACLS,YAAY;YACVC,MAAM;YACNH,QAAQZ;YACRgB,eAAef;YACfU,QAAQ;QACV;QACAI,MAAMZ,KAAKc,MAAM,CACff,yBAAyB,OAAO;YAC9BQ;YACAQ,MAAM;YACN,cAAc;YACd,GAAGT,KAAK;YACR,GAAGL,wBAAwB;gBAAEe,MAAM;gBAAQC,UAAU;YAAK,EAAE;QAC9D,IACA;YAAEC,aAAa;QAAM;QAEvBL,eAAeb,KAAKmB,QAAQ,CAACb,MAAMO,aAAa,EAAE;YAChDO,cAAc;gBACZC,cAAc;gBACdC,SAAS;gBACTC,WAAWd,WAAWe;YACxB;YACAC,iBAAiB;YACjBP,aAAapB;QACf;QACAW,QAAQT,KAAKmB,QAAQ,CAACV,QAAQ;YAC5BW,cAAc;gBACZM,oBAAM,oBAAChB;gBACPiB,MAAM;gBACNC,YAAY;YACd;YACAV,aAAarB;QACf;QACAW,QAAQR,KAAKmB,QAAQ,CAACX,QAAQ;YAAEU,aAAa;QAAO;IACtD;AACF,EAAE"}
|
|
@@ -22,7 +22,7 @@ const useSuggestionList_unstable = (props, ref)=>{
|
|
|
22
22
|
reloadTooltip: _reactcomponents.Tooltip,
|
|
23
23
|
action: 'span'
|
|
24
24
|
},
|
|
25
|
-
root: _reactcomponents.slot.always((0, _reactcomponents.
|
|
25
|
+
root: _reactcomponents.slot.always((0, _reactcomponents.getIntrinsicElementProps)('div', {
|
|
26
26
|
ref,
|
|
27
27
|
role: 'toolbar',
|
|
28
28
|
'aria-label': 'suggestions',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useSuggestionList.js"],"sourcesContent":["import * as React from 'react';\nimport { Button, Tooltip,
|
|
1
|
+
{"version":3,"sources":["useSuggestionList.js"],"sourcesContent":["import * as React from 'react';\nimport { Button, Tooltip, getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport { ArrowCounterclockwise16Regular, ArrowCounterclockwise16Filled, bundleIcon } from '@fluentui/react-icons';\n// If you add JSX to this file, be sure to change the file type to .tsx\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 = (props, ref) => {\n const {\n action,\n reload\n } = props;\n const ReloadIcon = bundleIcon(ArrowCounterclockwise16Filled, ArrowCounterclockwise16Regular);\n return {\n components: {\n root: 'div',\n reload: Button,\n reloadTooltip: Tooltip,\n action: 'span'\n },\n root: slot.always(getIntrinsicElementProps('div', {\n ref,\n role: 'toolbar',\n 'aria-label': 'suggestions',\n ...props,\n ...useArrowNavigationGroup({\n axis: 'both',\n circular: true\n })\n }), {\n elementType: 'div'\n }),\n reloadTooltip: slot.optional(props.reloadTooltip, {\n defaultProps: {\n relationship: 'label',\n content: 'Reload',\n withArrow: reload !== undefined\n },\n renderByDefault: true,\n elementType: Tooltip\n }),\n reload: slot.optional(reload, {\n defaultProps: {\n icon: /*#__PURE__*/React.createElement(ReloadIcon, null),\n size: 'small',\n appearance: 'transparent'\n },\n elementType: Button\n }),\n action: slot.optional(action, {\n elementType: 'span'\n })\n };\n};\n//# sourceMappingURL=useSuggestionList.js.map"],"names":["useSuggestionList_unstable","props","ref","action","reload","ReloadIcon","bundleIcon","ArrowCounterclockwise16Filled","ArrowCounterclockwise16Regular","components","root","Button","reloadTooltip","Tooltip","slot","always","getIntrinsicElementProps","role","useArrowNavigationGroup","axis","circular","elementType","optional","defaultProps","relationship","content","withArrow","undefined","renderByDefault","icon","React","createElement","size","appearance"],"mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;iCACkE;4BACC;AAWnF,MAAMA,6BAA6B,CAACC,OAAOC;IAChD,MAAM,EACJC,MAAM,EACNC,MAAM,EACP,GAAGH;IACJ,MAAMI,aAAaC,IAAAA,sBAAU,EAACC,yCAA6B,EAAEC,0CAA8B;IAC3F,OAAO;QACLC,YAAY;YACVC,MAAM;YACNN,QAAQO,uBAAM;YACdC,eAAeC,wBAAO;YACtBV,QAAQ;QACV;QACAO,MAAMI,qBAAI,CAACC,MAAM,CAACC,IAAAA,yCAAwB,EAAC,OAAO;YAChDd;YACAe,MAAM;YACN,cAAc;YACd,GAAGhB,KAAK;YACR,GAAGiB,IAAAA,wCAAuB,EAAC;gBACzBC,MAAM;gBACNC,UAAU;YACZ,EAAE;QACJ,IAAI;YACFC,aAAa;QACf;QACAT,eAAeE,qBAAI,CAACQ,QAAQ,CAACrB,MAAMW,aAAa,EAAE;YAChDW,cAAc;gBACZC,cAAc;gBACdC,SAAS;gBACTC,WAAWtB,WAAWuB;YACxB;YACAC,iBAAiB;YACjBP,aAAaR,wBAAO;QACtB;QACAT,QAAQU,qBAAI,CAACQ,QAAQ,CAAClB,QAAQ;YAC5BmB,cAAc;gBACZM,MAAM,WAAW,GAAEC,OAAMC,aAAa,CAAC1B,YAAY;gBACnD2B,MAAM;gBACNC,YAAY;YACd;YACAZ,aAAaV,uBAAM;QACrB;QACAR,QAAQW,qBAAI,CAACQ,QAAQ,CAACnB,QAAQ;YAC5BkB,aAAa;QACf;IACF;AACF,GACA,6CAA6C"}
|
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-20240405-0406-15f86c74.1",
|
|
4
4
|
"description": "A Fluent AI package",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/react-provider": "0.0.0-nightly-
|
|
15
|
+
"@fluentui-copilot/react-provider": "0.0.0-nightly-20240405-0406-15f86c74.1",
|
|
16
16
|
"@swc/helpers": "^0.5.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|