@instructure/ui-popover 8.11.2-snapshot.72 → 8.12.1-snapshot.19

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.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-popover
9
+
6
10
  ## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-popover
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-popover",
3
- "version": "8.11.2-snapshot.72+1bd7a0ccd",
3
+ "version": "8.12.1-snapshot.19+63603ec19",
4
4
  "description": "A component for hiding or showing content based on user interaction.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,28 +25,28 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.11.2-snapshot.72+1bd7a0ccd",
29
- "@instructure/emotion": "8.11.2-snapshot.72+1bd7a0ccd",
30
- "@instructure/ui-a11y-utils": "8.11.2-snapshot.72+1bd7a0ccd",
31
- "@instructure/ui-dialog": "8.11.2-snapshot.72+1bd7a0ccd",
32
- "@instructure/ui-dom-utils": "8.11.2-snapshot.72+1bd7a0ccd",
33
- "@instructure/ui-i18n": "8.11.2-snapshot.72+1bd7a0ccd",
34
- "@instructure/ui-position": "8.11.2-snapshot.72+1bd7a0ccd",
35
- "@instructure/ui-prop-types": "8.11.2-snapshot.72+1bd7a0ccd",
36
- "@instructure/ui-react-utils": "8.11.2-snapshot.72+1bd7a0ccd",
37
- "@instructure/ui-testable": "8.11.2-snapshot.72+1bd7a0ccd",
38
- "@instructure/ui-utils": "8.11.2-snapshot.72+1bd7a0ccd",
39
- "@instructure/ui-view": "8.11.2-snapshot.72+1bd7a0ccd",
40
- "@instructure/uid": "8.11.2-snapshot.72+1bd7a0ccd",
28
+ "@instructure/console": "8.12.1-snapshot.19+63603ec19",
29
+ "@instructure/emotion": "8.12.1-snapshot.19+63603ec19",
30
+ "@instructure/ui-a11y-utils": "8.12.1-snapshot.19+63603ec19",
31
+ "@instructure/ui-dialog": "8.12.1-snapshot.19+63603ec19",
32
+ "@instructure/ui-dom-utils": "8.12.1-snapshot.19+63603ec19",
33
+ "@instructure/ui-i18n": "8.12.1-snapshot.19+63603ec19",
34
+ "@instructure/ui-position": "8.12.1-snapshot.19+63603ec19",
35
+ "@instructure/ui-prop-types": "8.12.1-snapshot.19+63603ec19",
36
+ "@instructure/ui-react-utils": "8.12.1-snapshot.19+63603ec19",
37
+ "@instructure/ui-testable": "8.12.1-snapshot.19+63603ec19",
38
+ "@instructure/ui-utils": "8.12.1-snapshot.19+63603ec19",
39
+ "@instructure/ui-view": "8.12.1-snapshot.19+63603ec19",
40
+ "@instructure/uid": "8.12.1-snapshot.19+63603ec19",
41
41
  "keycode": "^2",
42
42
  "prop-types": "^15"
43
43
  },
44
44
  "devDependencies": {
45
- "@instructure/ui-babel-preset": "8.11.2-snapshot.72+1bd7a0ccd",
46
- "@instructure/ui-color-utils": "8.11.2-snapshot.72+1bd7a0ccd",
47
- "@instructure/ui-test-locator": "8.11.2-snapshot.72+1bd7a0ccd",
48
- "@instructure/ui-test-queries": "8.11.2-snapshot.72+1bd7a0ccd",
49
- "@instructure/ui-test-utils": "8.11.2-snapshot.72+1bd7a0ccd"
45
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.19+63603ec19",
46
+ "@instructure/ui-color-utils": "8.12.1-snapshot.19+63603ec19",
47
+ "@instructure/ui-test-locator": "8.12.1-snapshot.19+63603ec19",
48
+ "@instructure/ui-test-queries": "8.12.1-snapshot.19+63603ec19",
49
+ "@instructure/ui-test-utils": "8.12.1-snapshot.19+63603ec19"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=16.8 <=17"
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "sideEffects": false,
58
- "gitHead": "1bd7a0ccd746294680a432c598c44cf00ef2e39b"
58
+ "gitHead": "63603ec190cf074dfe3fc57db7a381fae9d5c333"
59
59
  }
@@ -36,7 +36,7 @@ import type {
36
36
  PositionMountNode
37
37
  } from '@instructure/ui-position'
38
38
  import type { BidirectionalProps } from '@instructure/ui-i18n'
39
- import type { PropValidators } from '@instructure/shared-types'
39
+ import type { PropValidators, LiveRegion } from '@instructure/shared-types'
40
40
 
41
41
  // Copied list from "PositionPropTypes.placement" so that it appears as options in the properties table.
42
42
  // TODO: try to use "PositionPropTypes.placement" again once Popover is fully typed and uses @tsProps
@@ -84,10 +84,7 @@ type PopoverOwnProps = {
84
84
  mountNode?: PositionMountNode
85
85
  positionTarget?: PositionMountNode
86
86
  insertAt?: 'bottom' | 'top'
87
- liveRegion?:
88
- | React.ReactElement[]
89
- | React.ReactElement
90
- | ((...args: any[]) => any)
87
+ liveRegion?: LiveRegion
91
88
  id?: string
92
89
  shouldAlignArrow?: boolean
93
90
  shouldTrackPosition?: boolean
@@ -27,7 +27,7 @@ declare class Popover extends Component<PopoverProps> {
27
27
  mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
28
28
  positionTarget?: import("@instructure/ui-position").PositionMountNode | undefined;
29
29
  insertAt?: "top" | "bottom" | undefined;
30
- liveRegion?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | ((...args: any[]) => any) | undefined;
30
+ liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
31
31
  id?: string | undefined;
32
32
  shouldAlignArrow?: boolean | undefined;
33
33
  shouldTrackPosition?: boolean | undefined;
@@ -70,7 +70,7 @@ declare class Popover extends Component<PopoverProps> {
70
70
  mountNode?: import("@instructure/ui-position").PositionMountNode | undefined;
71
71
  positionTarget?: import("@instructure/ui-position").PositionMountNode | undefined;
72
72
  insertAt?: "top" | "bottom" | undefined;
73
- liveRegion?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | ((...args: any[]) => any) | undefined;
73
+ liveRegion?: import("@instructure/shared-types").LiveRegion | undefined;
74
74
  id?: string | undefined;
75
75
  shouldAlignArrow?: boolean | undefined;
76
76
  shouldTrackPosition?: boolean | undefined;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { Shadow, Stacking } from '@instructure/emotion';
3
3
  import type { PlacementPropValues, PositionConstraint, PositionMountNode } from '@instructure/ui-position';
4
4
  import type { BidirectionalProps } from '@instructure/ui-i18n';
5
- import type { PropValidators } from '@instructure/shared-types';
5
+ import type { PropValidators, LiveRegion } from '@instructure/shared-types';
6
6
  declare type PopoverOwnProps = {
7
7
  isShowingContent?: boolean;
8
8
  defaultIsShowingContent?: boolean;
@@ -21,7 +21,7 @@ declare type PopoverOwnProps = {
21
21
  mountNode?: PositionMountNode;
22
22
  positionTarget?: PositionMountNode;
23
23
  insertAt?: 'bottom' | 'top';
24
- liveRegion?: React.ReactElement[] | React.ReactElement | ((...args: any[]) => any);
24
+ liveRegion?: LiveRegion;
25
25
  id?: string;
26
26
  shouldAlignArrow?: boolean;
27
27
  shouldTrackPosition?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Popover/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBA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