@instructure/ui-position 8.12.1-snapshot.46 → 8.12.1-snapshot.52

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.
@@ -112,7 +112,7 @@ let Position = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
112
112
  }
113
113
 
114
114
  componentDidUpdate(prevProps, prevState) {
115
- var _this$props$makeStyle2, _this$props3;
115
+ var _this$props$makeStyle2, _this$props2;
116
116
 
117
117
  this.position();
118
118
  this.toggleLocatorAttributes(true);
@@ -125,17 +125,15 @@ let Position = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
125
125
  style = _this$state.style,
126
126
  placement = _this$state.placement;
127
127
 
128
- if (style && prevState.style && (placement !== prevState.placement || style.top !== prevState.style.top || style.left !== prevState.style.left)) {
129
- var _this$props$onPositio, _this$props2;
130
-
131
- (_this$props$onPositio = (_this$props2 = this.props).onPositionChanged) === null || _this$props$onPositio === void 0 ? void 0 : _this$props$onPositio.call(_this$props2, {
128
+ if (style && prevState.style && (placement !== prevState.placement || style.top !== prevState.style.top || style.left !== prevState.style.left) && typeof this.props.onPositionChanged === 'function') {
129
+ this.props.onPositionChanged({
132
130
  top: style.top,
133
131
  left: style.left,
134
132
  placement
135
133
  });
136
134
  }
137
135
 
138
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
136
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
139
137
  }
140
138
 
141
139
  componentWillUnmount() {
@@ -261,8 +259,6 @@ let Position = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
261
259
  offsetY: 0,
262
260
  shouldTrackPosition: true,
263
261
  shouldPositionOverTarget: false,
264
- onPositioned: () => {},
265
- onPositionChanged: () => {},
266
262
  children: null
267
263
  }, _class2.locatorAttribute = 'data-position', _class2.targetLocatorAttribute = 'data-position-target', _class2.contentLocatorAttribute = 'data-position-content', _temp)) || _class) || _class);
268
264
  export default Position;
@@ -116,7 +116,7 @@ let Position = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
116
116
  }
117
117
 
118
118
  componentDidUpdate(prevProps, prevState) {
119
- var _this$props$makeStyle2, _this$props3;
119
+ var _this$props$makeStyle2, _this$props2;
120
120
 
121
121
  this.position();
122
122
  this.toggleLocatorAttributes(true);
@@ -129,17 +129,15 @@ let Position = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
129
129
  style = _this$state.style,
130
130
  placement = _this$state.placement;
131
131
 
132
- if (style && prevState.style && (placement !== prevState.placement || style.top !== prevState.style.top || style.left !== prevState.style.left)) {
133
- var _this$props$onPositio, _this$props2;
134
-
135
- (_this$props$onPositio = (_this$props2 = this.props).onPositionChanged) === null || _this$props$onPositio === void 0 ? void 0 : _this$props$onPositio.call(_this$props2, {
132
+ if (style && prevState.style && (placement !== prevState.placement || style.top !== prevState.style.top || style.left !== prevState.style.left) && typeof this.props.onPositionChanged === 'function') {
133
+ this.props.onPositionChanged({
136
134
  top: style.top,
137
135
  left: style.left,
138
136
  placement
139
137
  });
140
138
  }
141
139
 
142
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
140
+ (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
143
141
  }
144
142
 
145
143
  componentWillUnmount() {
@@ -265,8 +263,6 @@ let Position = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
265
263
  offsetY: 0,
266
264
  shouldTrackPosition: true,
267
265
  shouldPositionOverTarget: false,
268
- onPositioned: () => {},
269
- onPositionChanged: () => {},
270
266
  children: null
271
267
  }, _class2.locatorAttribute = 'data-position', _class2.targetLocatorAttribute = 'data-position-target', _class2.contentLocatorAttribute = 'data-position-content', _temp)) || _class) || _class);
272
268
  exports.Position = Position;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-position",
3
- "version": "8.12.1-snapshot.46+51e6aff75",
3
+ "version": "8.12.1-snapshot.52+07b0037b0",
4
4
  "description": "A component for positioning content with respect to a designated target.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,24 +25,24 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/debounce": "8.12.1-snapshot.46+51e6aff75",
29
- "@instructure/emotion": "8.12.1-snapshot.46+51e6aff75",
30
- "@instructure/shared-types": "8.12.1-snapshot.46+51e6aff75",
31
- "@instructure/ui-dom-utils": "8.12.1-snapshot.46+51e6aff75",
32
- "@instructure/ui-portal": "8.12.1-snapshot.46+51e6aff75",
33
- "@instructure/ui-prop-types": "8.12.1-snapshot.46+51e6aff75",
34
- "@instructure/ui-react-utils": "8.12.1-snapshot.46+51e6aff75",
35
- "@instructure/ui-testable": "8.12.1-snapshot.46+51e6aff75",
36
- "@instructure/ui-utils": "8.12.1-snapshot.46+51e6aff75",
37
- "@instructure/uid": "8.12.1-snapshot.46+51e6aff75",
28
+ "@instructure/debounce": "8.12.1-snapshot.52+07b0037b0",
29
+ "@instructure/emotion": "8.12.1-snapshot.52+07b0037b0",
30
+ "@instructure/shared-types": "8.12.1-snapshot.52+07b0037b0",
31
+ "@instructure/ui-dom-utils": "8.12.1-snapshot.52+07b0037b0",
32
+ "@instructure/ui-portal": "8.12.1-snapshot.52+07b0037b0",
33
+ "@instructure/ui-prop-types": "8.12.1-snapshot.52+07b0037b0",
34
+ "@instructure/ui-react-utils": "8.12.1-snapshot.52+07b0037b0",
35
+ "@instructure/ui-testable": "8.12.1-snapshot.52+07b0037b0",
36
+ "@instructure/ui-utils": "8.12.1-snapshot.52+07b0037b0",
37
+ "@instructure/uid": "8.12.1-snapshot.52+07b0037b0",
38
38
  "prop-types": "^15"
39
39
  },
40
40
  "devDependencies": {
41
- "@instructure/ui-babel-preset": "8.12.1-snapshot.46+51e6aff75",
42
- "@instructure/ui-color-utils": "8.12.1-snapshot.46+51e6aff75",
43
- "@instructure/ui-test-locator": "8.12.1-snapshot.46+51e6aff75",
44
- "@instructure/ui-test-utils": "8.12.1-snapshot.46+51e6aff75",
45
- "@instructure/ui-themes": "8.12.1-snapshot.46+51e6aff75"
41
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.52+07b0037b0",
42
+ "@instructure/ui-color-utils": "8.12.1-snapshot.52+07b0037b0",
43
+ "@instructure/ui-test-locator": "8.12.1-snapshot.52+07b0037b0",
44
+ "@instructure/ui-test-utils": "8.12.1-snapshot.52+07b0037b0",
45
+ "@instructure/ui-themes": "8.12.1-snapshot.52+07b0037b0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": ">=16.8 <=17"
@@ -51,5 +51,5 @@
51
51
  "access": "public"
52
52
  },
53
53
  "sideEffects": false,
54
- "gitHead": "51e6aff7502e7b0b22b107c9d39c2a8dc2c267f4"
54
+ "gitHead": "07b0037b0ddaf6d4f19cca140fc82fc9a2f1efc9"
55
55
  }
@@ -76,8 +76,6 @@ class Position extends Component<PositionProps, PositionState> {
76
76
  offsetY: 0,
77
77
  shouldTrackPosition: true,
78
78
  shouldPositionOverTarget: false,
79
- onPositioned: () => {},
80
- onPositionChanged: () => {},
81
79
  children: null
82
80
  }
83
81
 
@@ -151,9 +149,10 @@ class Position extends Component<PositionProps, PositionState> {
151
149
  prevState.style &&
152
150
  (placement !== prevState.placement ||
153
151
  style.top !== prevState.style.top ||
154
- style.left !== prevState.style.left)
152
+ style.left !== prevState.style.left) &&
153
+ typeof this.props.onPositionChanged === 'function'
155
154
  ) {
156
- this.props.onPositionChanged?.({
155
+ this.props.onPositionChanged({
157
156
  top: style.top,
158
157
  left: style.left,
159
158
  placement
@@ -42,7 +42,7 @@ type PositionOwnProps = {
42
42
  /**
43
43
  * The node to use as the position target
44
44
  */
45
- renderTarget?: React.ReactNode | ((...args: any[]) => React.ReactNode)
45
+ renderTarget?: React.ReactNode | (() => React.ReactNode)
46
46
 
47
47
  /**
48
48
  * The target to be used when not using `renderTarget`
@@ -100,12 +100,12 @@ type PositionOwnProps = {
100
100
  /**
101
101
  * Callback fired when the position changes
102
102
  */
103
- onPositionChanged?: (position: Position) => any
103
+ onPositionChanged?: (position: PositionObject) => void
104
104
 
105
105
  /**
106
106
  * Callback fired when `<Position />` content has been mounted and is initially positioned
107
107
  */
108
- onPositioned?: (position: Position) => any
108
+ onPositioned?: (position: PositionObject) => void
109
109
 
110
110
  /**
111
111
  * The content to be positioned
@@ -124,7 +124,7 @@ type PositionState = {
124
124
 
125
125
  type PositionStyle = ComponentStyle<'zIndex'>
126
126
 
127
- type Position = ElementPosition['style'] & {
127
+ type PositionObject = ElementPosition['style'] & {
128
128
  placement: ElementPosition['placement']
129
129
  }
130
130
 
@@ -171,5 +171,5 @@ const allowedProps: AllowedPropKeys = [
171
171
  'elementRef'
172
172
  ]
173
173
 
174
- export type { PositionProps, PositionState, PositionStyle }
174
+ export type { PositionProps, PositionState, PositionStyle, PositionObject }
175
175
  export { propTypes, allowedProps }
package/src/index.ts CHANGED
@@ -36,4 +36,4 @@ export type {
36
36
  PositionConstraint
37
37
  } from './PositionPropTypes'
38
38
 
39
- export type { PositionProps } from './Position/props'
39
+ export type { PositionProps, PositionObject } from './Position/props'
@@ -14,7 +14,7 @@ category: components/utilities
14
14
  declare class Position extends Component<PositionProps, PositionState> {
15
15
  static readonly componentId = "Position";
16
16
  static allowedProps: readonly (keyof {
17
- renderTarget?: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
17
+ renderTarget?: import("react").ReactNode | (() => import("react").ReactNode);
18
18
  target?: import("../PositionPropTypes").PositionMountNode | undefined;
19
19
  placement?: import("../PositionPropTypes").PlacementPropValues | undefined;
20
20
  mountNode?: import("../PositionPropTypes").PositionMountNode | undefined;
@@ -25,35 +25,13 @@ declare class Position extends Component<PositionProps, PositionState> {
25
25
  id?: string | undefined;
26
26
  shouldTrackPosition?: boolean | undefined;
27
27
  shouldPositionOverTarget?: boolean | undefined;
28
- onPositionChanged?: ((position: {
29
- top?: 0 | undefined;
30
- left?: 0 | "-9999em" | undefined;
31
- overflow?: "hidden" | undefined;
32
- position?: "absolute" | undefined;
33
- display?: "none" | null | undefined;
34
- minWidth?: number | null | undefined;
35
- minHeight?: number | null | undefined;
36
- transform?: string | undefined;
37
- } & {
38
- placement: import("../PositionPropTypes").PlacementPropValues | undefined;
39
- }) => any) | undefined;
40
- onPositioned?: ((position: {
41
- top?: 0 | undefined;
42
- left?: 0 | "-9999em" | undefined;
43
- overflow?: "hidden" | undefined;
44
- position?: "absolute" | undefined;
45
- display?: "none" | null | undefined;
46
- minWidth?: number | null | undefined;
47
- minHeight?: number | null | undefined;
48
- transform?: string | undefined;
49
- } & {
50
- placement: import("../PositionPropTypes").PlacementPropValues | undefined;
51
- }) => any) | undefined;
28
+ onPositionChanged?: ((position: import("./props").PositionObject) => void) | undefined;
29
+ onPositioned?: ((position: import("./props").PositionObject) => void) | undefined;
52
30
  children?: import("react").ReactNode;
53
31
  elementRef?: ((element: Element | null) => void) | undefined;
54
32
  })[];
55
33
  static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
56
- renderTarget?: import("react").ReactNode | ((...args: any[]) => import("react").ReactNode);
34
+ renderTarget?: import("react").ReactNode | (() => import("react").ReactNode);
57
35
  target?: import("../PositionPropTypes").PositionMountNode | undefined;
58
36
  placement?: import("../PositionPropTypes").PlacementPropValues | undefined;
59
37
  mountNode?: import("../PositionPropTypes").PositionMountNode | undefined;
@@ -64,30 +42,8 @@ declare class Position extends Component<PositionProps, PositionState> {
64
42
  id?: string | undefined;
65
43
  shouldTrackPosition?: boolean | undefined;
66
44
  shouldPositionOverTarget?: boolean | undefined;
67
- onPositionChanged?: ((position: {
68
- top?: 0 | undefined;
69
- left?: 0 | "-9999em" | undefined;
70
- overflow?: "hidden" | undefined;
71
- position?: "absolute" | undefined;
72
- display?: "none" | null | undefined;
73
- minWidth?: number | null | undefined;
74
- minHeight?: number | null | undefined;
75
- transform?: string | undefined;
76
- } & {
77
- placement: import("../PositionPropTypes").PlacementPropValues | undefined;
78
- }) => any) | undefined;
79
- onPositioned?: ((position: {
80
- top?: 0 | undefined;
81
- left?: 0 | "-9999em" | undefined;
82
- overflow?: "hidden" | undefined;
83
- position?: "absolute" | undefined;
84
- display?: "none" | null | undefined;
85
- minWidth?: number | null | undefined;
86
- minHeight?: number | null | undefined;
87
- transform?: string | undefined;
88
- } & {
89
- placement: import("../PositionPropTypes").PlacementPropValues | undefined;
90
- }) => any) | undefined;
45
+ onPositionChanged?: ((position: import("./props").PositionObject) => void) | undefined;
46
+ onPositioned?: ((position: import("./props").PositionObject) => void) | undefined;
91
47
  children?: import("react").ReactNode;
92
48
  elementRef?: ((element: Element | null) => void) | undefined;
93
49
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Position/index.tsx"],"names":[],"mappings":";AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AAS3E,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD;;;;;GAKG;AACH,cAEM,QAAS,SAAQ,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,WAAW,cAAa;IAExC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,C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BAAgB,aAqBf;IAED,iBAAiB,CAAC,KAAK,EAAE,aAAa;IAWtC,QAAQ,aAKP;IAED,aAAa;IAKb,YAAY;IAQZ,aAAa;IAiCb,YAAY;;;IAgBZ,MAAM;CASP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -6,7 +6,7 @@ declare type PositionOwnProps = {
6
6
  /**
7
7
  * The node to use as the position target
8
8
  */
9
- renderTarget?: React.ReactNode | ((...args: any[]) => React.ReactNode);
9
+ renderTarget?: React.ReactNode | (() => React.ReactNode);
10
10
  /**
11
11
  * The target to be used when not using `renderTarget`
12
12
  */
@@ -53,11 +53,11 @@ declare type PositionOwnProps = {
53
53
  /**
54
54
  * Callback fired when the position changes
55
55
  */
56
- onPositionChanged?: (position: Position) => any;
56
+ onPositionChanged?: (position: PositionObject) => void;
57
57
  /**
58
58
  * Callback fired when `<Position />` content has been mounted and is initially positioned
59
59
  */
60
- onPositioned?: (position: Position) => any;
60
+ onPositioned?: (position: PositionObject) => void;
61
61
  /**
62
62
  * The content to be positioned
63
63
  */
@@ -71,7 +71,7 @@ declare type PositionState = {
71
71
  positioned: boolean;
72
72
  } & ElementPosition;
73
73
  declare type PositionStyle = ComponentStyle<'zIndex'>;
74
- declare type Position = ElementPosition['style'] & {
74
+ declare type PositionObject = ElementPosition['style'] & {
75
75
  placement: ElementPosition['placement'];
76
76
  };
77
77
  declare type PropKeys = keyof PositionOwnProps;
@@ -79,6 +79,6 @@ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
79
79
  declare type PositionProps = PositionOwnProps & WithStyleProps<PositionTheme, PositionStyle>;
80
80
  declare const propTypes: PropValidators<PropKeys>;
81
81
  declare const allowedProps: AllowedPropKeys;
82
- export type { PositionProps, PositionState, PositionStyle };
82
+ export type { PositionProps, PositionState, PositionStyle, PositionObject };
83
83
  export { propTypes, allowedProps };
84
84
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"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AA;AAEtC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,aAAa,GAAG,gBAAgB,GACnC,cAAc,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAE9C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAgBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAgBnB,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
package/types/index.d.ts CHANGED
@@ -6,5 +6,5 @@ export { mirrorHorizontalPlacement } from './mirrorHorizontalPlacement';
6
6
  export { mirrorPlacement } from './mirrorPlacement';
7
7
  export { parsePlacement } from './parsePlacement';
8
8
  export type { PlacementPropValues, PositionMountNode, PositionConstraint } from './PositionPropTypes';
9
- export type { PositionProps } from './Position/props';
9
+ export type { PositionProps, PositionObject } from './Position/props';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAA;AAE5B,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAA;AAE5B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}