@fluentui-copilot/react-reference 0.0.0-nightly-20240809-0407-b2c628b1.1 → 0.0.0-nightly-20240813-0406-bd8a2b3b.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 +11 -11
- package/CHANGELOG.md +8 -8
- package/dist/index.d.ts +6 -106
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-reference",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui-copilot/react-reference_v0.0.0-nightly-
|
|
7
|
-
"version": "0.0.0-nightly-
|
|
5
|
+
"date": "Tue, 13 Aug 2024 04:12:25 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-reference_v0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
7
|
+
"version": "0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
@@ -16,26 +16,26 @@
|
|
|
16
16
|
{
|
|
17
17
|
"author": "beachball",
|
|
18
18
|
"package": "@fluentui-copilot/react-reference",
|
|
19
|
-
"comment": "Bump @fluentui-copilot/react-preview to v0.0.0-nightly-
|
|
20
|
-
"commit": "
|
|
19
|
+
"comment": "Bump @fluentui-copilot/react-preview to v0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
20
|
+
"commit": "f27594018d2990d35267346359890e59c27f10a9"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"author": "beachball",
|
|
24
24
|
"package": "@fluentui-copilot/react-reference",
|
|
25
|
-
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
26
|
-
"commit": "
|
|
25
|
+
"comment": "Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
26
|
+
"commit": "f27594018d2990d35267346359890e59c27f10a9"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"author": "beachball",
|
|
30
30
|
"package": "@fluentui-copilot/react-reference",
|
|
31
|
-
"comment": "Bump @fluentui-copilot/react-sensitivity-label to v0.0.0-nightly-
|
|
32
|
-
"commit": "
|
|
31
|
+
"comment": "Bump @fluentui-copilot/react-sensitivity-label to v0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
32
|
+
"commit": "f27594018d2990d35267346359890e59c27f10a9"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"author": "beachball",
|
|
36
36
|
"package": "@fluentui-copilot/react-reference",
|
|
37
|
-
"comment": "Bump @fluentui-copilot/react-utilities to v0.0.0-nightly-
|
|
38
|
-
"commit": "
|
|
37
|
+
"comment": "Bump @fluentui-copilot/react-utilities to v0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
38
|
+
"commit": "f27594018d2990d35267346359890e59c27f10a9"
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-reference
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 13 Aug 2024 04:12:25 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-20240813-0406-bd8a2b3b.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.0.0-nightly-20240813-0406-bd8a2b3b.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.12.3..@fluentui-copilot/react-reference_v0.0.0-nightly-
|
|
9
|
+
Tue, 13 Aug 2024 04:12:25 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-reference_v0.12.3..@fluentui-copilot/react-reference_v0.0.0-nightly-20240813-0406-bd8a2b3b.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-preview to v0.0.0-nightly-
|
|
16
|
-
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-
|
|
17
|
-
- Bump @fluentui-copilot/react-sensitivity-label to v0.0.0-nightly-
|
|
18
|
-
- Bump @fluentui-copilot/react-utilities to v0.0.0-nightly-
|
|
15
|
+
- Bump @fluentui-copilot/react-preview to v0.0.0-nightly-20240813-0406-bd8a2b3b.1 ([commit](https://github.com/microsoft/fluentai/commit/f27594018d2990d35267346359890e59c27f10a9) by beachball)
|
|
16
|
+
- Bump @fluentui-copilot/react-provider to v0.0.0-nightly-20240813-0406-bd8a2b3b.1 ([commit](https://github.com/microsoft/fluentai/commit/f27594018d2990d35267346359890e59c27f10a9) by beachball)
|
|
17
|
+
- Bump @fluentui-copilot/react-sensitivity-label to v0.0.0-nightly-20240813-0406-bd8a2b3b.1 ([commit](https://github.com/microsoft/fluentai/commit/f27594018d2990d35267346359890e59c27f10a9) by beachball)
|
|
18
|
+
- Bump @fluentui-copilot/react-utilities to v0.0.0-nightly-20240813-0406-bd8a2b3b.1 ([commit](https://github.com/microsoft/fluentai/commit/f27594018d2990d35267346359890e59c27f10a9) by beachball)
|
|
19
19
|
|
|
20
20
|
## [0.12.3](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-reference_v0.12.3)
|
|
21
21
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5,15 +5,17 @@ import type { ComponentProps } from '@fluentui/react-components';
|
|
|
5
5
|
import type { ComponentState } from '@fluentui/react-components';
|
|
6
6
|
import type { Context } from '@fluentui/react-context-selector';
|
|
7
7
|
import type { ContextSelector } from '@fluentui/react-context-selector';
|
|
8
|
+
import type { CopilotMode } from '@fluentui-copilot/react-provider';
|
|
8
9
|
import { FC } from 'react';
|
|
9
10
|
import type { ForwardRefComponent } from '@fluentui/react-components';
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
11
|
+
import type { PreviewHeaderProps } from '@fluentui-copilot/react-preview';
|
|
12
|
+
import type { PreviewMetadataProps } from '@fluentui-copilot/react-preview';
|
|
13
|
+
import type { PreviewProps } from '@fluentui-copilot/react-preview';
|
|
14
|
+
import type { PreviewSurfaceProps } from '@fluentui-copilot/react-preview';
|
|
14
15
|
import { Provider } from 'react';
|
|
15
16
|
import { ProviderProps } from 'react';
|
|
16
17
|
import * as React_2 from 'react';
|
|
18
|
+
import type { SensitivityLabelProps } from '@fluentui-copilot/react-sensitivity-label';
|
|
17
19
|
import type { Slot } from '@fluentui/react-components';
|
|
18
20
|
import type { SlotClassNames } from '@fluentui/react-components';
|
|
19
21
|
|
|
@@ -50,10 +52,6 @@ export declare type CitationState = ComponentState<CitationSlots> & Required<Pic
|
|
|
50
52
|
isPopoverLocked: boolean;
|
|
51
53
|
};
|
|
52
54
|
|
|
53
|
-
declare type CopilotMode = {
|
|
54
|
-
mode?: 'canvas' | 'sidecar';
|
|
55
|
-
};
|
|
56
|
-
|
|
57
55
|
/**
|
|
58
56
|
* Function to generate a Citation - Reference pair with correctly wired props.
|
|
59
57
|
* Both the Citation and the Reference act as trigger components to Previews that are also correctly wired by the function.
|
|
@@ -102,70 +100,6 @@ export declare type PackagedReferenceV2 = React_2.FC<ReferenceV2Props>;
|
|
|
102
100
|
|
|
103
101
|
declare type PartialReferenceProps = 'citationHref' | 'index' | 'referenceId';
|
|
104
102
|
|
|
105
|
-
/**
|
|
106
|
-
* PreviewHeader Props
|
|
107
|
-
*/
|
|
108
|
-
declare type PreviewHeaderProps = ComponentProps<Partial<PreviewHeaderSlots>>;
|
|
109
|
-
|
|
110
|
-
declare type PreviewHeaderSlots = {
|
|
111
|
-
root: NonNullable<Slot<'div'>>;
|
|
112
|
-
/**
|
|
113
|
-
* Actions slot.
|
|
114
|
-
*/
|
|
115
|
-
actions: Slot<'div'>;
|
|
116
|
-
/**
|
|
117
|
-
* Citation slot. Displays a `Citation`. Set to `null` to hide the citation.
|
|
118
|
-
*/
|
|
119
|
-
citation: Slot<'span'>;
|
|
120
|
-
/**
|
|
121
|
-
* Label slot. Primary description of the preview.
|
|
122
|
-
*/
|
|
123
|
-
label: NonNullable<Slot<'span'>>;
|
|
124
|
-
/**
|
|
125
|
-
* Media slot. Used to display Avatars, Icons, etc.
|
|
126
|
-
*/
|
|
127
|
-
media: Slot<'div'>;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* PreviewMetadata Props
|
|
132
|
-
*/
|
|
133
|
-
declare type PreviewMetadataProps = ComponentProps<Partial<PreviewMetadataSlots>>;
|
|
134
|
-
|
|
135
|
-
declare type PreviewMetadataSlots = {
|
|
136
|
-
root: Slot<'div'>;
|
|
137
|
-
/**
|
|
138
|
-
* Icon slot in the metadata displayed after all text.
|
|
139
|
-
*/
|
|
140
|
-
icon: Slot<'span'>;
|
|
141
|
-
/**
|
|
142
|
-
* First text displayed in the metadata.
|
|
143
|
-
*/
|
|
144
|
-
primaryText: Slot<'span'>;
|
|
145
|
-
/**
|
|
146
|
-
* Second text displayed in the metadata.
|
|
147
|
-
*/
|
|
148
|
-
secondaryText: Slot<'span'>;
|
|
149
|
-
/**
|
|
150
|
-
* Third text displayed in the metadata.
|
|
151
|
-
*/
|
|
152
|
-
tertiaryText: Slot<'span'>;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Preview Props
|
|
157
|
-
*/
|
|
158
|
-
declare type PreviewProps = Omit<PopoverProps, 'mouseLeaveDelay' | 'openOnHover'>;
|
|
159
|
-
|
|
160
|
-
declare const PreviewSurface: ForwardRefComponent<PreviewSurfaceProps>;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* PreviewSurface Props
|
|
164
|
-
*/
|
|
165
|
-
declare type PreviewSurfaceProps = ComponentProps<PreviewSurfaceSlots> & PopoverSurfaceProps & {};
|
|
166
|
-
|
|
167
|
-
declare type PreviewSurfaceSlots = PopoverSurfaceSlots & {};
|
|
168
|
-
|
|
169
103
|
/** deprecated Use ReferenceV2 component, hooks and types instead. */
|
|
170
104
|
export declare const Reference: ForwardRefComponent<ReferenceProps>;
|
|
171
105
|
|
|
@@ -469,40 +403,6 @@ export declare const renderReferenceOverflowButton_unstable: (state: ReferenceOv
|
|
|
469
403
|
|
|
470
404
|
export declare const renderReferenceV2_unstable: (state: ReferenceV2State) => JSX.Element;
|
|
471
405
|
|
|
472
|
-
/**
|
|
473
|
-
* SensitivityLabel Props
|
|
474
|
-
*/
|
|
475
|
-
declare type SensitivityLabelProps = ComponentProps<SensitivityLabelSlots> & {
|
|
476
|
-
description: string;
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
declare type SensitivityLabelSlots = {
|
|
480
|
-
root: Slot<'span'>;
|
|
481
|
-
label?: Slot<'span'>;
|
|
482
|
-
tooltip?: Slot<typeof SensitivityTooltip>;
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
declare const SensitivityTooltip: ForwardRefComponent<SensitivityTooltipProps>;
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* SensitivityTooltip Props
|
|
489
|
-
*/
|
|
490
|
-
declare type SensitivityTooltipProps = ComponentProps<SensitivityTooltipSlots> & {
|
|
491
|
-
positioning?: PositioningShorthand;
|
|
492
|
-
/**
|
|
493
|
-
* Prop to display a backplate behind the tooltip
|
|
494
|
-
*/
|
|
495
|
-
withBackplate?: boolean;
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
declare type SensitivityTooltipSlots = {
|
|
499
|
-
root: Slot<'span'>;
|
|
500
|
-
heading?: Slot<'span'>;
|
|
501
|
-
message?: Slot<'span'>;
|
|
502
|
-
previewSurface?: Slot<typeof PreviewSurface>;
|
|
503
|
-
trigger?: Slot<'span'>;
|
|
504
|
-
};
|
|
505
|
-
|
|
506
406
|
/**
|
|
507
407
|
* Create the state required to render Citation.
|
|
508
408
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-reference",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
4
4
|
"description": "Fluent AI controls for citations and references",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/react-preview": "0.0.0-nightly-
|
|
16
|
-
"@fluentui-copilot/react-provider": "0.0.0-nightly-
|
|
17
|
-
"@fluentui-copilot/react-sensitivity-label": "0.0.0-nightly-
|
|
18
|
-
"@fluentui-copilot/react-utilities": "0.0.0-nightly-
|
|
15
|
+
"@fluentui-copilot/react-preview": "0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
16
|
+
"@fluentui-copilot/react-provider": "0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
17
|
+
"@fluentui-copilot/react-sensitivity-label": "0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
18
|
+
"@fluentui-copilot/react-utilities": "0.0.0-nightly-20240813-0406-bd8a2b3b.1",
|
|
19
19
|
"@swc/helpers": "^0.5.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@fluentui/keyboard-keys": ">=9.0.7 <10.0.0",
|
|
23
|
-
"@fluentui/react-components": ">=9.54.
|
|
23
|
+
"@fluentui/react-components": ">=9.54.10 <10.0.0",
|
|
24
24
|
"@fluentui/react-context-selector": ">=9.1.65 <10.0.0",
|
|
25
25
|
"@fluentui/react-icons": ">=2.0.247 <3.0.0",
|
|
26
26
|
"@fluentui/react-jsx-runtime": ">=9.0.42 <10.0.0",
|