@fluentui/react-popover 0.0.0-nightly-20221031-0422.1 → 0.0.0-nightly-20221102-0421.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/react-popover",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 31 Oct 2022 04:27:51 GMT",
6
- "tag": "@fluentui/react-popover_v0.0.0-nightly-20221031-0422.1",
7
- "version": "0.0.0-nightly-20221031-0422.1",
5
+ "date": "Wed, 02 Nov 2022 04:26:54 GMT",
6
+ "tag": "@fluentui/react-popover_v0.0.0-nightly-20221102-0421.1",
7
+ "version": "0.0.0-nightly-20221102-0421.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
@@ -16,62 +16,62 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-popover",
19
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly-20221031-0422.1",
20
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
19
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly-20221102-0421.1",
20
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-popover",
25
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightly-20221031-0422.1",
26
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
25
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightly-20221102-0421.1",
26
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-popover",
31
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20221031-0422.1",
32
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
31
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20221102-0421.1",
32
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
33
33
  },
34
34
  {
35
35
  "author": "beachball",
36
36
  "package": "@fluentui/react-popover",
37
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightly-20221031-0422.1",
38
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
37
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightly-20221102-0421.1",
38
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
39
39
  },
40
40
  {
41
41
  "author": "beachball",
42
42
  "package": "@fluentui/react-popover",
43
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly-20221031-0422.1",
44
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
43
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly-20221102-0421.1",
44
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
45
45
  },
46
46
  {
47
47
  "author": "beachball",
48
48
  "package": "@fluentui/react-popover",
49
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221031-0422.1",
50
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
49
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221102-0421.1",
50
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
51
51
  },
52
52
  {
53
53
  "author": "beachball",
54
54
  "package": "@fluentui/react-popover",
55
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20221031-0422.1",
56
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
55
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20221102-0421.1",
56
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
57
57
  },
58
58
  {
59
59
  "author": "beachball",
60
60
  "package": "@fluentui/react-popover",
61
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20221031-0422.1",
62
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
61
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20221102-0421.1",
62
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
63
63
  },
64
64
  {
65
65
  "author": "beachball",
66
66
  "package": "@fluentui/react-popover",
67
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20221031-0422.1",
68
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
67
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20221102-0421.1",
68
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
69
69
  },
70
70
  {
71
71
  "author": "beachball",
72
72
  "package": "@fluentui/react-popover",
73
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221031-0422.1",
74
- "commit": "d819d48b17a4e5d09b90a64df6d4e8d8be3a7203"
73
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221102-0421.1",
74
+ "commit": "89abd0271f1f8ef12f1cedf0584fca2140c9d253"
75
75
  }
76
76
  ]
77
77
  }
package/CHANGELOG.md CHANGED
@@ -1,27 +1,27 @@
1
1
  # Change Log - @fluentui/react-popover
2
2
 
3
- This log was last generated on Mon, 31 Oct 2022 04:27:51 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 02 Nov 2022 04:26:54 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20221031-0422.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightly-20221031-0422.1)
7
+ ## [0.0.0-nightly-20221102-0421.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightly-20221102-0421.1)
8
8
 
9
- Mon, 31 Oct 2022 04:27:51 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.2.1..@fluentui/react-popover_v0.0.0-nightly-20221031-0422.1)
9
+ Wed, 02 Nov 2022 04:26:54 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.2.1..@fluentui/react-popover_v0.0.0-nightly-20221102-0421.1)
11
11
 
12
12
  ### Changes
13
13
 
14
14
  - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
- - Bump @fluentui/keyboard-keys to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
16
- - Bump @fluentui/react-aria to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
17
- - Bump @fluentui/react-context-selector to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
18
- - Bump @fluentui/react-portal to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
19
- - Bump @fluentui/react-positioning to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
20
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
21
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
22
- - Bump @fluentui/react-theme to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
23
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
24
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221031-0422.1 ([commit](https://github.com/microsoft/fluentui/commit/d819d48b17a4e5d09b90a64df6d4e8d8be3a7203) by beachball)
15
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
16
+ - Bump @fluentui/react-aria to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
17
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
18
+ - Bump @fluentui/react-portal to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
19
+ - Bump @fluentui/react-positioning to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
20
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
21
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
22
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
23
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
24
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221102-0421.1 ([commit](https://github.com/microsoft/fluentui/commit/89abd0271f1f8ef12f1cedf0584fca2140c9d253) by beachball)
25
25
 
26
26
  ## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.2.1)
27
27
 
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import type { ComponentProps } from '@fluentui/react-utilities';
4
4
  import type { ComponentState } from '@fluentui/react-utilities';
5
5
  import type { ContextSelector } from '@fluentui/react-context-selector';
6
6
  import { FC } from 'react';
7
- import type { FluentTriggerComponent } from '@fluentui/react-utilities';
8
7
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
9
8
  import { JSXElementConstructor } from 'react';
10
9
  import type { PortalProps } from '@fluentui/react-portal';
@@ -14,11 +13,11 @@ import { Provider } from 'react';
14
13
  import { ProviderProps } from 'react';
15
14
  import * as React_2 from 'react';
16
15
  import { ReactElement } from 'react';
16
+ import type { SetVirtualMouseTarget } from '@fluentui/react-positioning';
17
17
  import type { Slot } from '@fluentui/react-utilities';
18
18
  import type { SlotClassNames } from '@fluentui/react-utilities';
19
19
  import type { TriggerProps } from '@fluentui/react-utilities';
20
20
  import type { UseModalAttributesOptions } from '@fluentui/react-tabster';
21
- import type { usePositioningMouseTarget } from '@fluentui/react-positioning';
22
21
 
23
22
  export declare const arrowHeights: Record<PopoverSize, number>;
24
23
 
@@ -165,7 +164,7 @@ export declare type PopoverState = Pick<PopoverProps, 'appearance' | 'mountNode'
165
164
  /**
166
165
  * A callback to set the target of the popper to the mouse click for context events
167
166
  */
168
- setContextTarget: ReturnType<typeof usePositioningMouseTarget>[1];
167
+ setContextTarget: SetVirtualMouseTarget;
169
168
  /**
170
169
  * Callback to open/close the Popover
171
170
  */
@@ -213,7 +212,7 @@ export declare type PopoverSurfaceState = ComponentState<PopoverSurfaceSlots> &
213
212
  /**
214
213
  * Wraps a trigger element as an only child and adds the necessary event handling to open a popover.
215
214
  */
216
- export declare const PopoverTrigger: React_2.FC<PopoverTriggerProps> & FluentTriggerComponent;
215
+ export declare const PopoverTrigger: React_2.FC<PopoverTriggerProps>;
217
216
 
218
217
  /**
219
218
  * Props that are passed to the child of the DialogTrigger when cloned to ensure correct behaviour for the Dialog
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-popover/src/components/Popover/Popover.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type {\n PositioningVirtualElement,\n PositioningShorthand,\n usePositioningMouseTarget,\n} from '@fluentui/react-positioning';\nimport type { PortalProps } from '@fluentui/react-portal';\nimport type { UseModalAttributesOptions } from '@fluentui/react-tabster';\n\n/**\n * Determines popover padding and arrow size\n */\nexport type PopoverSize = 'small' | 'medium' | 'large';\n\n/**\n * Popover Props\n */\nexport type PopoverProps = Pick<PortalProps, 'mountNode'> & {\n /**\n * A popover can appear styled with brand or inverted.\n * When not specified, the default style is used.\n */\n appearance?: 'brand' | 'inverted';\n\n /**\n * Can contain two children including {@link PopoverTrigger} and {@link PopoverSurface}.\n * Alternatively can only contain {@link PopoverSurface} if using a custom `target`.\n */\n children: [JSX.Element, JSX.Element] | JSX.Element;\n\n /**\n * Close when scroll outside of it\n *\n * @default false\n */\n closeOnScroll?: boolean;\n\n /**\n * Used to set the initial open state of the Popover in uncontrolled mode\n *\n * @default false\n */\n defaultOpen?: boolean;\n\n /**\n * Popovers are rendered out of DOM order on `document.body` by default, use this to render the popover in DOM order\n *\n * @default false\n */\n inline?: boolean;\n\n /**\n * Sets the delay for closing popover on mouse leave\n */\n mouseLeaveDelay?: number;\n\n /**\n * Display an arrow pointing to the target.\n *\n * @default false\n */\n withArrow?: boolean;\n\n /**\n * Call back when the component requests to change value\n * The `open` value is used as a hint when directly controlling the component\n */\n onOpenChange?: (e: OpenPopoverEvents, data: OnOpenChangeData) => void;\n\n /**\n * Controls the opening of the Popover\n *\n * @default false\n */\n open?: boolean;\n\n /**\n * Flag to open the Popover as a context menu. Disables all other interactions\n *\n * @default false\n */\n openOnContext?: boolean;\n\n /**\n * Flag to open the Popover by hovering the trigger\n *\n * @default false\n */\n openOnHover?: boolean;\n\n /**\n * Configures the position of the Popover\n */\n positioning?: PositioningShorthand;\n\n /**\n * Determines popover padding and arrow size\n *\n * @default medium\n */\n size?: PopoverSize;\n\n /**\n * Should trap focus\n *\n * @default false\n */\n trapFocus?: UseModalAttributesOptions['trapFocus'];\n\n /**\n * Must be used with the `trapFocus` prop\n * Enables older Fluent UI focus trap behavior where the user\n * cannot tab into the window outside of the document. This is now\n * non-standard behavior according to the [HTML dialog spec](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)\n * where the focus trap involves setting outside elements inert.\n *\n * @default false\n */\n legacyTrapFocus?: UseModalAttributesOptions['legacyTrapFocus'];\n};\n\n/**\n * Popover State\n */\nexport type PopoverState = Pick<\n PopoverProps,\n | 'appearance'\n | 'mountNode'\n | 'onOpenChange'\n | 'openOnContext'\n | 'openOnHover'\n | 'trapFocus'\n | 'withArrow'\n | 'legacyTrapFocus'\n> &\n Required<Pick<PopoverProps, 'inline' | 'open'>> &\n Pick<PopoverProps, 'children'> & {\n /**\n * Ref of the pointing arrow\n */\n arrowRef: React.MutableRefObject<HTMLDivElement | null>;\n\n /**\n * Ref of the PopoverSurface\n */\n contentRef: React.MutableRefObject<HTMLElement | null>;\n\n /**\n * Anchors the popper to the mouse click for context events\n */\n contextTarget: PositioningVirtualElement | undefined;\n\n popoverSurface: React.ReactElement | undefined;\n\n popoverTrigger: React.ReactElement | undefined;\n\n /**\n * A callback to set the target of the popper to the mouse click for context events\n */\n setContextTarget: ReturnType<typeof usePositioningMouseTarget>[1];\n\n /**\n * Callback to open/close the Popover\n */\n setOpen: (e: OpenPopoverEvents, open: boolean) => void;\n\n size: NonNullable<PopoverProps['size']>;\n\n /**\n * Callback to toggle the open state of the Popover\n */\n toggleOpen: (e: OpenPopoverEvents) => void;\n\n /**\n * Ref of the PopoverTrigger\n */\n triggerRef: React.MutableRefObject<HTMLElement | null>;\n };\n\n/**\n * Data attached to open/close events\n */\nexport type OnOpenChangeData = { open: boolean };\n\n/**\n * The supported events that will trigger open/close of the menu\n */\nexport type OpenPopoverEvents =\n | MouseEvent\n | TouchEvent\n | React.FocusEvent<HTMLElement>\n | React.KeyboardEvent<HTMLElement>\n | React.MouseEvent<HTMLElement>;\n"]}
1
+ {"version":3,"file":"Popover.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-popover/src/components/Popover/Popover.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type {\n PositioningVirtualElement,\n PositioningShorthand,\n SetVirtualMouseTarget,\n} from '@fluentui/react-positioning';\nimport type { PortalProps } from '@fluentui/react-portal';\nimport type { UseModalAttributesOptions } from '@fluentui/react-tabster';\n\n/**\n * Determines popover padding and arrow size\n */\nexport type PopoverSize = 'small' | 'medium' | 'large';\n\n/**\n * Popover Props\n */\nexport type PopoverProps = Pick<PortalProps, 'mountNode'> & {\n /**\n * A popover can appear styled with brand or inverted.\n * When not specified, the default style is used.\n */\n appearance?: 'brand' | 'inverted';\n\n /**\n * Can contain two children including {@link PopoverTrigger} and {@link PopoverSurface}.\n * Alternatively can only contain {@link PopoverSurface} if using a custom `target`.\n */\n children: [JSX.Element, JSX.Element] | JSX.Element;\n\n /**\n * Close when scroll outside of it\n *\n * @default false\n */\n closeOnScroll?: boolean;\n\n /**\n * Used to set the initial open state of the Popover in uncontrolled mode\n *\n * @default false\n */\n defaultOpen?: boolean;\n\n /**\n * Popovers are rendered out of DOM order on `document.body` by default, use this to render the popover in DOM order\n *\n * @default false\n */\n inline?: boolean;\n\n /**\n * Sets the delay for closing popover on mouse leave\n */\n mouseLeaveDelay?: number;\n\n /**\n * Display an arrow pointing to the target.\n *\n * @default false\n */\n withArrow?: boolean;\n\n /**\n * Call back when the component requests to change value\n * The `open` value is used as a hint when directly controlling the component\n */\n onOpenChange?: (e: OpenPopoverEvents, data: OnOpenChangeData) => void;\n\n /**\n * Controls the opening of the Popover\n *\n * @default false\n */\n open?: boolean;\n\n /**\n * Flag to open the Popover as a context menu. Disables all other interactions\n *\n * @default false\n */\n openOnContext?: boolean;\n\n /**\n * Flag to open the Popover by hovering the trigger\n *\n * @default false\n */\n openOnHover?: boolean;\n\n /**\n * Configures the position of the Popover\n */\n positioning?: PositioningShorthand;\n\n /**\n * Determines popover padding and arrow size\n *\n * @default medium\n */\n size?: PopoverSize;\n\n /**\n * Should trap focus\n *\n * @default false\n */\n trapFocus?: UseModalAttributesOptions['trapFocus'];\n\n /**\n * Must be used with the `trapFocus` prop\n * Enables older Fluent UI focus trap behavior where the user\n * cannot tab into the window outside of the document. This is now\n * non-standard behavior according to the [HTML dialog spec](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)\n * where the focus trap involves setting outside elements inert.\n *\n * @default false\n */\n legacyTrapFocus?: UseModalAttributesOptions['legacyTrapFocus'];\n};\n\n/**\n * Popover State\n */\nexport type PopoverState = Pick<\n PopoverProps,\n | 'appearance'\n | 'mountNode'\n | 'onOpenChange'\n | 'openOnContext'\n | 'openOnHover'\n | 'trapFocus'\n | 'withArrow'\n | 'legacyTrapFocus'\n> &\n Required<Pick<PopoverProps, 'inline' | 'open'>> &\n Pick<PopoverProps, 'children'> & {\n /**\n * Ref of the pointing arrow\n */\n arrowRef: React.MutableRefObject<HTMLDivElement | null>;\n\n /**\n * Ref of the PopoverSurface\n */\n contentRef: React.MutableRefObject<HTMLElement | null>;\n\n /**\n * Anchors the popper to the mouse click for context events\n */\n contextTarget: PositioningVirtualElement | undefined;\n\n popoverSurface: React.ReactElement | undefined;\n\n popoverTrigger: React.ReactElement | undefined;\n\n /**\n * A callback to set the target of the popper to the mouse click for context events\n */\n setContextTarget: SetVirtualMouseTarget;\n\n /**\n * Callback to open/close the Popover\n */\n setOpen: (e: OpenPopoverEvents, open: boolean) => void;\n\n size: NonNullable<PopoverProps['size']>;\n\n /**\n * Callback to toggle the open state of the Popover\n */\n toggleOpen: (e: OpenPopoverEvents) => void;\n\n /**\n * Ref of the PopoverTrigger\n */\n triggerRef: React.MutableRefObject<HTMLElement | null>;\n };\n\n/**\n * Data attached to open/close events\n */\nexport type OnOpenChangeData = { open: boolean };\n\n/**\n * The supported events that will trigger open/close of the menu\n */\nexport type OpenPopoverEvents =\n | MouseEvent\n | TouchEvent\n | React.FocusEvent<HTMLElement>\n | React.KeyboardEvent<HTMLElement>\n | React.MouseEvent<HTMLElement>;\n"]}
@@ -8,6 +8,7 @@ export const PopoverTrigger = props => {
8
8
  const state = usePopoverTrigger_unstable(props);
9
9
  return renderPopoverTrigger_unstable(state);
10
10
  };
11
- PopoverTrigger.displayName = 'PopoverTrigger';
11
+ PopoverTrigger.displayName = 'PopoverTrigger'; // type casting here is required to ensure internal type FluentTriggerComponent is not leaked
12
+
12
13
  PopoverTrigger.isFluentTriggerComponent = true;
13
14
  //# sourceMappingURL=PopoverTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../packages/react-components/react-popover/src/components/PopoverTrigger/PopoverTrigger.tsx"],"names":[],"mappings":"AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,GAA2D,KAAK,IAAG;EAC5F,MAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,CAAxC;EAEA,OAAO,6BAA6B,CAAC,KAAD,CAApC;AACD,CAJM;AAMP,cAAc,CAAC,WAAf,GAA6B,gBAA7B;AACA,cAAc,CAAC,wBAAf,GAA0C,IAA1C","sourcesContent":["import * as React from 'react';\nimport { usePopoverTrigger_unstable } from './usePopoverTrigger';\nimport { renderPopoverTrigger_unstable } from './renderPopoverTrigger';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\nimport type { PopoverTriggerProps } from './PopoverTrigger.types';\n\n/**\n * Wraps a trigger element as an only child and adds the necessary event handling to open a popover.\n */\nexport const PopoverTrigger: React.FC<PopoverTriggerProps> & FluentTriggerComponent = props => {\n const state = usePopoverTrigger_unstable(props);\n\n return renderPopoverTrigger_unstable(state);\n};\n\nPopoverTrigger.displayName = 'PopoverTrigger';\nPopoverTrigger.isFluentTriggerComponent = true;\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-popover/src/components/PopoverTrigger/PopoverTrigger.tsx"],"names":[],"mappings":"AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,GAAkC,KAAK,IAAG;EACnE,MAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,CAAxC;EAEA,OAAO,6BAA6B,CAAC,KAAD,CAApC;AACD,CAJM;AAMP,cAAc,CAAC,WAAf,GAA6B,gBAA7B,C,CACA;;AACC,cAAyC,CAAC,wBAA1C,GAAqE,IAArE","sourcesContent":["import * as React from 'react';\nimport { usePopoverTrigger_unstable } from './usePopoverTrigger';\nimport { renderPopoverTrigger_unstable } from './renderPopoverTrigger';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\nimport type { PopoverTriggerProps } from './PopoverTrigger.types';\n\n/**\n * Wraps a trigger element as an only child and adds the necessary event handling to open a popover.\n */\nexport const PopoverTrigger: React.FC<PopoverTriggerProps> = props => {\n const state = usePopoverTrigger_unstable(props);\n\n return renderPopoverTrigger_unstable(state);\n};\n\nPopoverTrigger.displayName = 'PopoverTrigger';\n// type casting here is required to ensure internal type FluentTriggerComponent is not leaked\n(PopoverTrigger as FluentTriggerComponent).isFluentTriggerComponent = true;\n"],"sourceRoot":""}
@@ -19,6 +19,7 @@ const PopoverTrigger = props => {
19
19
  };
20
20
 
21
21
  exports.PopoverTrigger = PopoverTrigger;
22
- exports.PopoverTrigger.displayName = 'PopoverTrigger';
22
+ exports.PopoverTrigger.displayName = 'PopoverTrigger'; // type casting here is required to ensure internal type FluentTriggerComponent is not leaked
23
+
23
24
  exports.PopoverTrigger.isFluentTriggerComponent = true;
24
25
  //# sourceMappingURL=PopoverTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../packages/react-components/react-popover/src/components/PopoverTrigger/PopoverTrigger.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAIA;;AAEG;;;AACI,MAAM,cAAc,GAA2D,KAAK,IAAG;EAC5F,MAAM,KAAK,GAAG,mBAAA,CAAA,0BAAA,CAA2B,KAA3B,CAAd;EAEA,OAAO,sBAAA,CAAA,6BAAA,CAA8B,KAA9B,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd;AAMb,OAAA,CAAA,cAAA,CAAe,WAAf,GAA6B,gBAA7B;AACA,OAAA,CAAA,cAAA,CAAe,wBAAf,GAA0C,IAA1C","sourcesContent":["import * as React from 'react';\nimport { usePopoverTrigger_unstable } from './usePopoverTrigger';\nimport { renderPopoverTrigger_unstable } from './renderPopoverTrigger';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\nimport type { PopoverTriggerProps } from './PopoverTrigger.types';\n\n/**\n * Wraps a trigger element as an only child and adds the necessary event handling to open a popover.\n */\nexport const PopoverTrigger: React.FC<PopoverTriggerProps> & FluentTriggerComponent = props => {\n const state = usePopoverTrigger_unstable(props);\n\n return renderPopoverTrigger_unstable(state);\n};\n\nPopoverTrigger.displayName = 'PopoverTrigger';\nPopoverTrigger.isFluentTriggerComponent = true;\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["../../../../../../../../../packages/react-components/react-popover/src/components/PopoverTrigger/PopoverTrigger.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AACA,MAAA,sBAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;AAIA;;AAEG;;;AACI,MAAM,cAAc,GAAkC,KAAK,IAAG;EACnE,MAAM,KAAK,GAAG,mBAAA,CAAA,0BAAA,CAA2B,KAA3B,CAAd;EAEA,OAAO,sBAAA,CAAA,6BAAA,CAA8B,KAA9B,CAAP;AACD,CAJM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd;AAMb,OAAA,CAAA,cAAA,CAAe,WAAf,GAA6B,gBAA7B,C,CACA;;AACC,OAAA,CAAA,cAAA,CAA0C,wBAA1C,GAAqE,IAArE","sourcesContent":["import * as React from 'react';\nimport { usePopoverTrigger_unstable } from './usePopoverTrigger';\nimport { renderPopoverTrigger_unstable } from './renderPopoverTrigger';\nimport type { FluentTriggerComponent } from '@fluentui/react-utilities';\nimport type { PopoverTriggerProps } from './PopoverTrigger.types';\n\n/**\n * Wraps a trigger element as an only child and adds the necessary event handling to open a popover.\n */\nexport const PopoverTrigger: React.FC<PopoverTriggerProps> = props => {\n const state = usePopoverTrigger_unstable(props);\n\n return renderPopoverTrigger_unstable(state);\n};\n\nPopoverTrigger.displayName = 'PopoverTrigger';\n// type casting here is required to ensure internal type FluentTriggerComponent is not leaked\n(PopoverTrigger as FluentTriggerComponent).isFluentTriggerComponent = true;\n"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-popover",
3
- "version": "0.0.0-nightly-20221031-0422.1",
3
+ "version": "0.0.0-nightly-20221102-0421.1",
4
4
  "description": "Popover component for Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -29,20 +29,20 @@
29
29
  "devDependencies": {
30
30
  "@fluentui/eslint-plugin": "*",
31
31
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20221031-0422.1",
32
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20221102-0421.1",
33
33
  "@fluentui/scripts": "^1.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@fluentui/keyboard-keys": "0.0.0-nightly-20221031-0422.1",
37
- "@fluentui/react-aria": "0.0.0-nightly-20221031-0422.1",
38
- "@fluentui/react-context-selector": "0.0.0-nightly-20221031-0422.1",
39
- "@fluentui/react-portal": "0.0.0-nightly-20221031-0422.1",
40
- "@fluentui/react-positioning": "0.0.0-nightly-20221031-0422.1",
41
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20221031-0422.1",
42
- "@fluentui/react-tabster": "0.0.0-nightly-20221031-0422.1",
43
- "@fluentui/react-theme": "0.0.0-nightly-20221031-0422.1",
44
- "@fluentui/react-utilities": "0.0.0-nightly-20221031-0422.1",
45
- "@griffel/react": "^1.4.1",
36
+ "@fluentui/keyboard-keys": "0.0.0-nightly-20221102-0421.1",
37
+ "@fluentui/react-aria": "0.0.0-nightly-20221102-0421.1",
38
+ "@fluentui/react-context-selector": "0.0.0-nightly-20221102-0421.1",
39
+ "@fluentui/react-portal": "0.0.0-nightly-20221102-0421.1",
40
+ "@fluentui/react-positioning": "0.0.0-nightly-20221102-0421.1",
41
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20221102-0421.1",
42
+ "@fluentui/react-tabster": "0.0.0-nightly-20221102-0421.1",
43
+ "@fluentui/react-theme": "0.0.0-nightly-20221102-0421.1",
44
+ "@fluentui/react-utilities": "0.0.0-nightly-20221102-0421.1",
45
+ "@griffel/react": "^1.4.2",
46
46
  "tslib": "^2.1.0"
47
47
  },
48
48
  "peerDependencies": {