@fluentui-copilot/react-suggestions 0.0.0-nightly-20250123-0404-0cedb664.1 → 0.0.0-nightly-20250124-0406-d91d3cd5.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
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, 24 Jan 2025 04:15:00 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-suggestions_v0.0.0-nightly-20250124-0406-d91d3cd5.1",
|
|
7
|
+
"version": "0.0.0-nightly-20250124-0406-d91d3cd5.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-20250124-0406-d91d3cd5.1",
|
|
20
|
+
"commit": "70aeed32d0c5a2db0890b605cd6ca34bc37b5718"
|
|
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, 24 Jan 2025 04:15:00 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-20250124-0406-d91d3cd5.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-suggestions_v0.0.0-nightly-20250124-0406-d91d3cd5.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.9.4..@fluentui-copilot/react-suggestions_v0.0.0-nightly-
|
|
9
|
+
Fri, 24 Jan 2025 04:15:00 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-suggestions_v0.9.4..@fluentui-copilot/react-suggestions_v0.0.0-nightly-20250124-0406-d91d3cd5.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-20250124-0406-d91d3cd5.1 ([commit](https://github.com/microsoft/fluentai/commit/70aeed32d0c5a2db0890b605cd6ca34bc37b5718) by beachball)
|
|
16
16
|
|
|
17
17
|
## [0.9.4](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-suggestions_v0.9.4)
|
|
18
18
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
4
|
-
import { ARIAButtonProps } from '@fluentui/react-aria';
|
|
5
|
-
import { ARIAButtonType } from '@fluentui/react-aria';
|
|
6
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
7
3
|
import type { ButtonProps } from '@fluentui/react-components';
|
|
8
4
|
import type { ButtonSlots } from '@fluentui/react-components';
|
|
9
5
|
import type { ButtonState } from '@fluentui/react-components';
|
|
10
6
|
import type { ComponentProps } from '@fluentui/react-components';
|
|
11
7
|
import type { ComponentState } from '@fluentui/react-components';
|
|
12
|
-
import { ComponentType } from 'react';
|
|
13
8
|
import type { CopilotMode } from '@fluentui-copilot/react-provider';
|
|
14
|
-
import { DetailedHTMLProps } from 'react';
|
|
15
9
|
import type { ForwardRefComponent } from '@fluentui/react-components';
|
|
16
|
-
import { HTMLAttributes } from 'react';
|
|
17
|
-
import { ReactNode } from 'react';
|
|
18
|
-
import { RefObject } from 'react';
|
|
19
10
|
import type { Slot } from '@fluentui/react-components';
|
|
20
11
|
import type { SlotClassNames } from '@fluentui/react-components';
|
|
21
|
-
import { SlotRenderFunction } from '@fluentui/react-components';
|
|
22
12
|
import type { TooltipProps } from '@fluentui/react-components';
|
|
23
13
|
|
|
24
14
|
/**
|
|
@@ -63,70 +53,7 @@ export declare type SuggestionState = ComponentState<SuggestionSlots> & Required
|
|
|
63
53
|
|
|
64
54
|
export declare type TooltipComponent = React.FunctionComponent<Partial<TooltipProps>>;
|
|
65
55
|
|
|
66
|
-
export declare const useSuggestion_unstable: (props: SuggestionProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) =>
|
|
67
|
-
mode: "canvas" | "sidecar";
|
|
68
|
-
components: {
|
|
69
|
-
root: "a" | "button" | ComponentType<({
|
|
70
|
-
as?: "button" | undefined;
|
|
71
|
-
} & Pick<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
72
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
73
|
-
} & {
|
|
74
|
-
children?: ReactNode | SlotRenderFunction<Pick<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
75
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
76
|
-
}>;
|
|
77
|
-
} & Pick<ARIAButtonProps<ARIAButtonType>, "disabled" | "disabledFocusable">) | ({
|
|
78
|
-
as: "a";
|
|
79
|
-
} & Pick<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
80
|
-
ref?: ((instance: HTMLAnchorElement | null) => void) | RefObject<HTMLAnchorElement> | null | undefined;
|
|
81
|
-
} & {
|
|
82
|
-
children?: ReactNode | SlotRenderFunction<Pick<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
83
|
-
ref?: ((instance: HTMLAnchorElement | null) => void) | RefObject<HTMLAnchorElement> | null | undefined;
|
|
84
|
-
}>;
|
|
85
|
-
} & Pick<ARIAButtonProps<ARIAButtonType>, "disabled" | "disabledFocusable">)>;
|
|
86
|
-
icon: "span" | ComponentType< {
|
|
87
|
-
as?: "span" | undefined;
|
|
88
|
-
} & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<HTMLSpanElement>> & {
|
|
89
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null | undefined;
|
|
90
|
-
} & {
|
|
91
|
-
children?: ReactNode | SlotRenderFunction<Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<HTMLSpanElement>> & {
|
|
92
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null | undefined;
|
|
93
|
-
}>;
|
|
94
|
-
}>;
|
|
95
|
-
};
|
|
96
|
-
root: ({
|
|
97
|
-
as?: "button" | undefined;
|
|
98
|
-
} & Pick<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
99
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
100
|
-
} & {
|
|
101
|
-
children?: ReactNode | SlotRenderFunction<Pick<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
102
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
103
|
-
}>;
|
|
104
|
-
} & Pick<ARIAButtonProps<ARIAButtonType>, "disabled" | "disabledFocusable">) | ({
|
|
105
|
-
as: "a";
|
|
106
|
-
} & Pick<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
107
|
-
ref?: ((instance: HTMLAnchorElement | null) => void) | RefObject<HTMLAnchorElement> | null | undefined;
|
|
108
|
-
} & {
|
|
109
|
-
children?: ReactNode | SlotRenderFunction<Pick<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof AnchorHTMLAttributes<HTMLAnchorElement>> & {
|
|
110
|
-
ref?: ((instance: HTMLAnchorElement | null) => void) | RefObject<HTMLAnchorElement> | null | undefined;
|
|
111
|
-
}>;
|
|
112
|
-
} & Pick<ARIAButtonProps<ARIAButtonType>, "disabled" | "disabledFocusable">);
|
|
113
|
-
icon?: ({
|
|
114
|
-
as?: "span" | undefined;
|
|
115
|
-
} & Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<HTMLSpanElement>> & {
|
|
116
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null | undefined;
|
|
117
|
-
} & {
|
|
118
|
-
children?: ReactNode | SlotRenderFunction<Pick<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof HTMLAttributes<HTMLSpanElement>> & {
|
|
119
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | RefObject<HTMLSpanElement> | null | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
}) | undefined;
|
|
122
|
-
size: "small" | "medium" | "large";
|
|
123
|
-
appearance: "outline" | "transparent" | "secondary" | "primary" | "subtle";
|
|
124
|
-
disabled: boolean;
|
|
125
|
-
shape: "circular" | "square" | "rounded";
|
|
126
|
-
disabledFocusable: boolean;
|
|
127
|
-
iconPosition: "after" | "before";
|
|
128
|
-
iconOnly: boolean;
|
|
129
|
-
};
|
|
56
|
+
export declare const useSuggestion_unstable: (props: SuggestionProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => SuggestionState;
|
|
130
57
|
|
|
131
58
|
/**
|
|
132
59
|
* Create the state required to render SuggestionList.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useSuggestion.ts"],"sourcesContent":["import { useButton_unstable } from '@fluentui/react-components';\nimport { useCopilotMode } from '@fluentui-copilot/react-provider';\nimport type { SuggestionProps } from './Suggestion.types';\n\nexport const useSuggestion_unstable = (\n props: SuggestionProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n) => {\n const buttonState = useButton_unstable(props, ref);\n const mode = useCopilotMode(props.mode);\n return { ...buttonState, mode };\n};\n"],"names":["useButton_unstable","useCopilotMode","useSuggestion_unstable","props","ref","buttonState","mode"],"rangeMappings":";;;;;;;;;","mappings":"AAAA,SAASA,kBAAkB,QAAQ,6BAA6B;AAChE,SAASC,cAAc,QAAQ,mCAAmC;AAGlE,OAAO,MAAMC,yBAAyB,CACpCC,OACAC;IAEA,MAAMC,cAAcL,mBAAmBG,OAAOC;IAC9C,MAAME,OAAOL,eAAeE,MAAMG,IAAI;IACtC,OAAO;QAAE,GAAGD,WAAW;QAAEC;IAAK;AAChC,EAAE"}
|
|
1
|
+
{"version":3,"sources":["useSuggestion.ts"],"sourcesContent":["import { useButton_unstable } from '@fluentui/react-components';\nimport { useCopilotMode } 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 return { ...buttonState, mode };\n};\n"],"names":["useButton_unstable","useCopilotMode","useSuggestion_unstable","props","ref","buttonState","mode"],"rangeMappings":";;;;;;;;;","mappings":"AAAA,SAASA,kBAAkB,QAAQ,6BAA6B;AAChE,SAASC,cAAc,QAAQ,mCAAmC;AAGlE,OAAO,MAAMC,yBAAyB,CACpCC,OACAC;IAEA,MAAMC,cAAcL,mBAAmBG,OAAOC;IAC9C,MAAME,OAAOL,eAAeE,MAAMG,IAAI;IACtC,OAAO;QAAE,GAAGD,WAAW;QAAEC;IAAK;AAChC,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useSuggestion.ts"],"sourcesContent":["import { useButton_unstable } from '@fluentui/react-components';\nimport { useCopilotMode } from '@fluentui-copilot/react-provider';\nimport type { SuggestionProps } from './Suggestion.types';\n\nexport const useSuggestion_unstable = (\n props: SuggestionProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n) => {\n const buttonState = useButton_unstable(props, ref);\n const mode = useCopilotMode(props.mode);\n return { ...buttonState, mode };\n};\n"],"names":["useSuggestion_unstable","props","ref","buttonState","useButton_unstable","mode","useCopilotMode"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAIaA;;;eAAAA;;;iCAJsB;+BACJ;AAGxB,MAAMA,yBAAyB,CACpCC,OACAC;UAEAC,cAAMA,IAAAA,mCAAcC,EAAAA,OAAmBH;UACvCI,OAAMA,IAAAA,6BAAOC,EAAAA,MAAeL,IAAMI;WAClC;sBAAYF;;;AACd"}
|
|
1
|
+
{"version":3,"sources":["useSuggestion.ts"],"sourcesContent":["import { useButton_unstable } from '@fluentui/react-components';\nimport { useCopilotMode } 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 return { ...buttonState, mode };\n};\n"],"names":["useSuggestion_unstable","props","ref","buttonState","useButton_unstable","mode","useCopilotMode"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAIaA;;;eAAAA;;;iCAJsB;+BACJ;AAGxB,MAAMA,yBAAyB,CACpCC,OACAC;UAEAC,cAAMA,IAAAA,mCAAcC,EAAAA,OAAmBH;UACvCI,OAAMA,IAAAA,6BAAOC,EAAAA,MAAeL,IAAMI;WAClC;sBAAYF;;;AACd"}
|
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-20250124-0406-d91d3cd5.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-20250124-0406-d91d3cd5.1",
|
|
16
16
|
"@swc/helpers": "^0.5.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|