@fluentui-copilot/react-prompt-listbox 0.0.0-nightly-20240731-0407-bead8d7c.1 → 0.0.0-nightly-20240802-0406-034a9246.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 +38 -17
- package/CHANGELOG.md +21 -11
- package/lib/components/utils/useComboboxPositioning.js +2 -1
- package/lib/components/utils/useComboboxPositioning.js.map +1 -1
- package/lib-commonjs/components/utils/useComboboxPositioning.js +4 -1
- package/lib-commonjs/components/utils/useComboboxPositioning.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-prompt-listbox",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-prompt-listbox_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Fri, 02 Aug 2024 04:13:16 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-prompt-listbox_v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
7
|
+
"version": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
@@ -16,44 +16,65 @@
|
|
|
16
16
|
{
|
|
17
17
|
"author": "beachball",
|
|
18
18
|
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
19
|
-
"comment": "Bump @fluentui-copilot/chat-input-plugins to v0.0.0-nightly-
|
|
20
|
-
"commit": "
|
|
19
|
+
"comment": "Bump @fluentui-copilot/chat-input-plugins to v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
20
|
+
"commit": "86320c239184cdbd31f4e15f2855240b7b7431f7"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"author": "beachball",
|
|
24
24
|
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
25
|
-
"comment": "Bump @fluentui-copilot/react-chat-input-plugins to v0.0.0-nightly-
|
|
26
|
-
"commit": "
|
|
25
|
+
"comment": "Bump @fluentui-copilot/react-chat-input-plugins to v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
26
|
+
"commit": "86320c239184cdbd31f4e15f2855240b7b7431f7"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"author": "beachball",
|
|
30
30
|
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
31
|
-
"comment": "Bump @fluentui-copilot/react-editor-input to v0.0.0-nightly-
|
|
32
|
-
"commit": "
|
|
31
|
+
"comment": "Bump @fluentui-copilot/react-editor-input to v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
32
|
+
"commit": "86320c239184cdbd31f4e15f2855240b7b7431f7"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"author": "beachball",
|
|
36
36
|
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
37
|
-
"comment": "Bump @fluentui-copilot/react-prompt-input to v0.0.0-nightly-
|
|
38
|
-
"commit": "
|
|
37
|
+
"comment": "Bump @fluentui-copilot/react-prompt-input to v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
38
|
+
"commit": "86320c239184cdbd31f4e15f2855240b7b7431f7"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"author": "beachball",
|
|
42
42
|
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
43
|
-
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
44
|
-
"commit": "
|
|
43
|
+
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
44
|
+
"commit": "86320c239184cdbd31f4e15f2855240b7b7431f7"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"author": "beachball",
|
|
48
48
|
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
49
|
-
"comment": "Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-
|
|
50
|
-
"commit": "
|
|
49
|
+
"comment": "Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
50
|
+
"commit": "86320c239184cdbd31f4e15f2855240b7b7431f7"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"author": "beachball",
|
|
54
54
|
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
55
|
-
"comment": "Bump @fluentui-copilot/text-editor to v0.0.0-nightly-
|
|
56
|
-
"commit": "
|
|
55
|
+
"comment": "Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240802-0406-034a9246.1",
|
|
56
|
+
"commit": "86320c239184cdbd31f4e15f2855240b7b7431f7"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"date": "Thu, 01 Aug 2024 22:28:24 GMT",
|
|
63
|
+
"tag": "@fluentui-copilot/react-prompt-listbox_v0.0.2",
|
|
64
|
+
"version": "0.0.2",
|
|
65
|
+
"comments": {
|
|
66
|
+
"patch": [
|
|
67
|
+
{
|
|
68
|
+
"author": "estebanmu@microsoft.com",
|
|
69
|
+
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
70
|
+
"commit": "34f846df4bc12151b41dc761e7edd4128714dbd8",
|
|
71
|
+
"comment": "feat: Make non-fluid default behavior and allow setting fluid via promptlistbox hook."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"author": "jiangemma@microsoft.com",
|
|
75
|
+
"package": "@fluentui-copilot/react-prompt-listbox",
|
|
76
|
+
"commit": "34a27b4042529f60c21b1b2ac46e7f0ab6f5274b",
|
|
77
|
+
"comment": "fix: Force listbox to render below the trigger"
|
|
57
78
|
}
|
|
58
79
|
]
|
|
59
80
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-prompt-listbox
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 02 Aug 2024 04:13:16 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-20240802-0406-034a9246.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-listbox_v0.0.0-nightly-20240802-0406-034a9246.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-listbox_v0.0.
|
|
9
|
+
Fri, 02 Aug 2024 04:13:16 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-listbox_v0.0.2..@fluentui-copilot/react-prompt-listbox_v0.0.0-nightly-20240802-0406-034a9246.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/chat-input-plugins to v0.0.0-nightly-
|
|
16
|
-
- Bump @fluentui-copilot/react-chat-input-plugins to v0.0.0-nightly-
|
|
17
|
-
- Bump @fluentui-copilot/react-editor-input to v0.0.0-nightly-
|
|
18
|
-
- Bump @fluentui-copilot/react-prompt-input to v0.0.0-nightly-
|
|
19
|
-
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
20
|
-
- Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-
|
|
21
|
-
- Bump @fluentui-copilot/text-editor to v0.0.0-nightly-
|
|
15
|
+
- Bump @fluentui-copilot/chat-input-plugins to v0.0.0-nightly-20240802-0406-034a9246.1 ([commit](https://github.com/microsoft/fluentai/commit/86320c239184cdbd31f4e15f2855240b7b7431f7) by beachball)
|
|
16
|
+
- Bump @fluentui-copilot/react-chat-input-plugins to v0.0.0-nightly-20240802-0406-034a9246.1 ([commit](https://github.com/microsoft/fluentai/commit/86320c239184cdbd31f4e15f2855240b7b7431f7) by beachball)
|
|
17
|
+
- Bump @fluentui-copilot/react-editor-input to v0.0.0-nightly-20240802-0406-034a9246.1 ([commit](https://github.com/microsoft/fluentai/commit/86320c239184cdbd31f4e15f2855240b7b7431f7) by beachball)
|
|
18
|
+
- Bump @fluentui-copilot/react-prompt-input to v0.0.0-nightly-20240802-0406-034a9246.1 ([commit](https://github.com/microsoft/fluentai/commit/86320c239184cdbd31f4e15f2855240b7b7431f7) by beachball)
|
|
19
|
+
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240802-0406-034a9246.1 ([commit](https://github.com/microsoft/fluentai/commit/86320c239184cdbd31f4e15f2855240b7b7431f7) by beachball)
|
|
20
|
+
- Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240802-0406-034a9246.1 ([commit](https://github.com/microsoft/fluentai/commit/86320c239184cdbd31f4e15f2855240b7b7431f7) by beachball)
|
|
21
|
+
- Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240802-0406-034a9246.1 ([commit](https://github.com/microsoft/fluentai/commit/86320c239184cdbd31f4e15f2855240b7b7431f7) by beachball)
|
|
22
|
+
|
|
23
|
+
## [0.0.2](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-listbox_v0.0.2)
|
|
24
|
+
|
|
25
|
+
Thu, 01 Aug 2024 22:28:24 GMT
|
|
26
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-prompt-listbox_v0.0.1..@fluentui-copilot/react-prompt-listbox_v0.0.2)
|
|
27
|
+
|
|
28
|
+
### Patches
|
|
29
|
+
|
|
30
|
+
- feat: Make non-fluid default behavior and allow setting fluid via promptlistbox hook. ([PR #1949](https://github.com/microsoft/fluentai/pull/1949) by estebanmu@microsoft.com)
|
|
31
|
+
- fix: Force listbox to render below the trigger ([PR #1970](https://github.com/microsoft/fluentai/pull/1970) by jiangemma@microsoft.com)
|
|
22
32
|
|
|
23
33
|
## [0.0.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-prompt-listbox_v0.0.1)
|
|
24
34
|
|
|
@@ -5,6 +5,7 @@ export function useComboboxPositioning(props) {
|
|
|
5
5
|
positioning,
|
|
6
6
|
fluid
|
|
7
7
|
} = props;
|
|
8
|
+
const fallbackPositions = ['below'];
|
|
8
9
|
// popper options
|
|
9
10
|
const popperOptions = {
|
|
10
11
|
position: 'below',
|
|
@@ -13,7 +14,7 @@ export function useComboboxPositioning(props) {
|
|
|
13
14
|
crossAxis: 0,
|
|
14
15
|
mainAxis: 2
|
|
15
16
|
},
|
|
16
|
-
fallbackPositions:
|
|
17
|
+
fallbackPositions: fallbackPositions,
|
|
17
18
|
matchTargetSize: fluid ? 'width' : undefined,
|
|
18
19
|
...resolvePositioningShorthand(positioning)
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useComboboxPositioning.ts"],"sourcesContent":["// Brought from Fluent UI\n\nimport { resolvePositioningShorthand, usePositioning } from '@fluentui/react-positioning';\nimport type * as React from 'react';\nimport type { ComboboxBaseProps } from '@fluentui/react-combobox';\nimport type { UsePromptListboxFunctionalityParams } from './PromptListboxFunctionality.types';\n\nexport function useComboboxPositioning(\n props: ComboboxBaseProps & Required<Pick<UsePromptListboxFunctionalityParams, 'fluid'>>,\n): [\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n listboxRef: React.MutableRefObject<any>,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n triggerRef: React.MutableRefObject<any>,\n] {\n const { positioning, fluid } = props;\n\n // popper options\n const popperOptions = {\n position: 'below' as const,\n align: 'start' as const,\n offset: { crossAxis: 0, mainAxis: 2 },\n fallbackPositions:
|
|
1
|
+
{"version":3,"sources":["useComboboxPositioning.ts"],"sourcesContent":["// Brought from Fluent UI\n\nimport { resolvePositioningShorthand, usePositioning } from '@fluentui/react-positioning';\nimport type * as React from 'react';\nimport type { ComboboxBaseProps } from '@fluentui/react-combobox';\nimport type { UsePromptListboxFunctionalityParams } from './PromptListboxFunctionality.types';\nimport type { PositioningShorthandValue } from '@fluentui/react-positioning';\n\nexport function useComboboxPositioning(\n props: ComboboxBaseProps & Required<Pick<UsePromptListboxFunctionalityParams, 'fluid'>>,\n): [\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n listboxRef: React.MutableRefObject<any>,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n triggerRef: React.MutableRefObject<any>,\n] {\n const { positioning, fluid } = props;\n\n const fallbackPositions: PositioningShorthandValue[] = ['below'];\n\n // popper options\n const popperOptions = {\n position: 'below' as const,\n align: 'start' as const,\n offset: { crossAxis: 0, mainAxis: 2 },\n fallbackPositions: fallbackPositions,\n matchTargetSize: fluid ? ('width' as const) : undefined,\n ...resolvePositioningShorthand(positioning),\n };\n\n const { targetRef, containerRef } = usePositioning(popperOptions);\n\n return [containerRef, targetRef];\n}\n"],"names":["resolvePositioningShorthand","usePositioning","useComboboxPositioning","props","positioning","fluid","fallbackPositions","popperOptions","position","align","offset","crossAxis","mainAxis","matchTargetSize","undefined","targetRef","containerRef"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,yBAAyB;AAEzB,SAASA,2BAA2B,EAAEC,cAAc,QAAQ,8BAA8B;AAM1F,OAAO,SAASC,uBACdC,KAAuF;IAOvF,MAAM,EAAEC,WAAW,EAAEC,KAAK,EAAE,GAAGF;IAE/B,MAAMG,oBAAiD;QAAC;KAAQ;IAEhE,iBAAiB;IACjB,MAAMC,gBAAgB;QACpBC,UAAU;QACVC,OAAO;QACPC,QAAQ;YAAEC,WAAW;YAAGC,UAAU;QAAE;QACpCN,mBAAmBA;QACnBO,iBAAiBR,QAAS,UAAoBS;QAC9C,GAAGd,4BAA4BI,YAAY;IAC7C;IAEA,MAAM,EAAEW,SAAS,EAAEC,YAAY,EAAE,GAAGf,eAAeM;IAEnD,OAAO;QAACS;QAAcD;KAAU;AAClC"}
|
|
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "useComboboxPositioning", {
|
|
|
12
12
|
const _reactpositioning = require("@fluentui/react-positioning");
|
|
13
13
|
function useComboboxPositioning(props) {
|
|
14
14
|
const { positioning, fluid } = props;
|
|
15
|
+
const fallbackPositions = [
|
|
16
|
+
'below'
|
|
17
|
+
];
|
|
15
18
|
// popper options
|
|
16
19
|
const popperOptions = {
|
|
17
20
|
position: 'below',
|
|
@@ -20,7 +23,7 @@ function useComboboxPositioning(props) {
|
|
|
20
23
|
crossAxis: 0,
|
|
21
24
|
mainAxis: 2
|
|
22
25
|
},
|
|
23
|
-
fallbackPositions:
|
|
26
|
+
fallbackPositions: fallbackPositions,
|
|
24
27
|
matchTargetSize: fluid ? 'width' : undefined,
|
|
25
28
|
...(0, _reactpositioning.resolvePositioningShorthand)(positioning)
|
|
26
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useComboboxPositioning.ts"],"sourcesContent":["// Brought from Fluent UI\n\nimport { resolvePositioningShorthand, usePositioning } from '@fluentui/react-positioning';\nimport type * as React from 'react';\nimport type { ComboboxBaseProps } from '@fluentui/react-combobox';\nimport type { UsePromptListboxFunctionalityParams } from './PromptListboxFunctionality.types';\n\nexport function useComboboxPositioning(\n props: ComboboxBaseProps & Required<Pick<UsePromptListboxFunctionalityParams, 'fluid'>>,\n): [\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n listboxRef: React.MutableRefObject<any>,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n triggerRef: React.MutableRefObject<any>,\n] {\n const { positioning, fluid } = props;\n\n // popper options\n const popperOptions = {\n position: 'below' as const,\n align: 'start' as const,\n offset: { crossAxis: 0, mainAxis: 2 },\n fallbackPositions:
|
|
1
|
+
{"version":3,"sources":["useComboboxPositioning.ts"],"sourcesContent":["// Brought from Fluent UI\n\nimport { resolvePositioningShorthand, usePositioning } from '@fluentui/react-positioning';\nimport type * as React from 'react';\nimport type { ComboboxBaseProps } from '@fluentui/react-combobox';\nimport type { UsePromptListboxFunctionalityParams } from './PromptListboxFunctionality.types';\nimport type { PositioningShorthandValue } from '@fluentui/react-positioning';\n\nexport function useComboboxPositioning(\n props: ComboboxBaseProps & Required<Pick<UsePromptListboxFunctionalityParams, 'fluid'>>,\n): [\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n listboxRef: React.MutableRefObject<any>,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n triggerRef: React.MutableRefObject<any>,\n] {\n const { positioning, fluid } = props;\n\n const fallbackPositions: PositioningShorthandValue[] = ['below'];\n\n // popper options\n const popperOptions = {\n position: 'below' as const,\n align: 'start' as const,\n offset: { crossAxis: 0, mainAxis: 2 },\n fallbackPositions: fallbackPositions,\n matchTargetSize: fluid ? ('width' as const) : undefined,\n ...resolvePositioningShorthand(positioning),\n };\n\n const { targetRef, containerRef } = usePositioning(popperOptions);\n\n return [containerRef, targetRef];\n}\n"],"names":["useComboboxPositioning","props","positioning","fallbackPositions","popperOptions","position","align","offset","crossAxis","mainAxis","matchTargetSize","resolvePositioningShorthand","containerRef","targetRef","usePositioning"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,yBAAyB;;;;;+BAQTA;;;eAAAA;;;kCAN4C;AAMrD,SAASA,uBACdC,KAAuF;UAOvF,EAEAC,WAAMC,OAAkD,KAAQF;UAEhEE,oBAAiB;QAAA;KAAA;qBACXC;UACJC,gBAAU;kBACVC;eACAC;gBAAUC;uBAAcC;sBAAY;;2BAEpCC;yBACGC,QAAAA,UAA4BT;QACjC,GAAAS,IAAAA,6CAAA,EAAAT,YAAA;;UAIA,WAAQU,cAAcC,KAAUC,IAAAA,gCAAA,EAAAV;IAClC,OAAA;QAAAQ;QAAAC;KAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-prompt-listbox",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
4
4
|
"description": "PromptListbox for input components using EditorInput.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/chat-input-plugins": "0.0.0-nightly-
|
|
16
|
-
"@fluentui-copilot/react-chat-input-plugins": "0.0.0-nightly-
|
|
17
|
-
"@fluentui-copilot/react-editor-input": "0.0.0-nightly-
|
|
18
|
-
"@fluentui-copilot/react-prompt-input": "0.0.0-nightly-
|
|
19
|
-
"@fluentui-copilot/react-provider": "0.0.0-nightly-
|
|
20
|
-
"@fluentui-copilot/react-text-editor": "0.0.0-nightly-
|
|
21
|
-
"@fluentui-copilot/text-editor": "0.0.0-nightly-
|
|
15
|
+
"@fluentui-copilot/chat-input-plugins": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
16
|
+
"@fluentui-copilot/react-chat-input-plugins": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
17
|
+
"@fluentui-copilot/react-editor-input": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
18
|
+
"@fluentui-copilot/react-prompt-input": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
19
|
+
"@fluentui-copilot/react-provider": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
20
|
+
"@fluentui-copilot/react-text-editor": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
21
|
+
"@fluentui-copilot/text-editor": "0.0.0-nightly-20240802-0406-034a9246.1",
|
|
22
22
|
"@swc/helpers": "^0.5.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|