@instructure/ui-position 8.56.2-pr-snapshot-1721749364069 → 8.56.2
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 +1 -1
- package/lib/Position/PositionContentLocator.js +2 -2
- package/lib/Position/PositionLocator.js +4 -4
- package/lib/Position/PositionTargetLocator.js +2 -2
- package/lib/Position/index.js +21 -16
- package/lib/Position/props.js +2 -2
- package/lib/PositionPropTypes.js +3 -3
- package/lib/calculateElementPosition.js +26 -20
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.56.2
|
|
6
|
+
## [8.56.2](https://github.com/instructure/instructure-ui/compare/v8.56.1...v8.56.2) (2024-08-06)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-position
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PositionContentLocator = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
|
|
8
8
|
var _index = require("./index");
|
|
9
9
|
/*
|
|
10
10
|
* The MIT License (MIT)
|
|
@@ -30,4 +30,4 @@ var _index = require("./index");
|
|
|
30
30
|
* SOFTWARE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
const PositionContentLocator = exports.PositionContentLocator = (0,
|
|
33
|
+
const PositionContentLocator = exports.PositionContentLocator = (0, _locator.locator)(`[${_index.Position.contentLocatorAttribute}]`);
|
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "PositionTargetLocator", {
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
exports.customMethods = void 0;
|
|
20
|
-
var
|
|
20
|
+
var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
|
|
21
21
|
var _index = require("./index");
|
|
22
22
|
var _PositionContentLocator = require("./PositionContentLocator");
|
|
23
23
|
var _PositionTargetLocator = require("./PositionTargetLocator");
|
|
@@ -49,17 +49,17 @@ const customMethods = exports.customMethods = {
|
|
|
49
49
|
findTarget: (element, ...args) => {
|
|
50
50
|
if (element && element.getAttribute) {
|
|
51
51
|
const id = element.getAttribute(_index.Position.locatorAttribute);
|
|
52
|
-
return (0,
|
|
52
|
+
return (0, _locator.locator)(`[${_index.Position.targetLocatorAttribute}="${id}"]`).find(...args);
|
|
53
53
|
}
|
|
54
54
|
throw new Error('Element ' + element + ' not found');
|
|
55
55
|
},
|
|
56
56
|
findContent: (element, ...args) => {
|
|
57
57
|
if (element && element.getAttribute) {
|
|
58
58
|
const id = element.getAttribute(_index.Position.locatorAttribute);
|
|
59
|
-
return (0,
|
|
59
|
+
return (0, _locator.locator)(`[${_index.Position.contentLocatorAttribute}="${id}"]`).find(...args);
|
|
60
60
|
}
|
|
61
61
|
throw new Error('Element ' + element + ' not found');
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
65
|
-
const PositionLocator = exports.PositionLocator = (0,
|
|
65
|
+
const PositionLocator = exports.PositionLocator = (0, _locator.locator)(_index.Position.selector, customMethods);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.PositionTargetLocator = void 0;
|
|
7
7
|
var _index = require("./index");
|
|
8
|
-
var
|
|
8
|
+
var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
|
|
9
9
|
/*
|
|
10
10
|
* The MIT License (MIT)
|
|
11
11
|
*
|
|
@@ -30,4 +30,4 @@ var _uiTestLocator = require("@instructure/ui-test-locator");
|
|
|
30
30
|
* SOFTWARE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
const PositionTargetLocator = exports.PositionTargetLocator = (0,
|
|
33
|
+
const PositionTargetLocator = exports.PositionTargetLocator = (0, _locator.locator)(`[${_index.Position.targetLocatorAttribute}]`);
|
package/lib/Position/index.js
CHANGED
|
@@ -6,12 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.Position = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
|
|
10
|
+
var _ensureSingleChild = require("@instructure/ui-react-utils/lib/ensureSingleChild.js");
|
|
11
|
+
var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
|
|
12
|
+
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
13
|
+
var _addPositionChangeListener = require("@instructure/ui-dom-utils/lib/addPositionChangeListener.js");
|
|
14
|
+
var _findDOMNode = require("@instructure/ui-dom-utils/lib/findDOMNode.js");
|
|
15
|
+
var _deepEqual = require("@instructure/ui-utils/lib/deepEqual.js");
|
|
16
|
+
var _shallowEqual = require("@instructure/ui-utils/lib/shallowEqual.js");
|
|
12
17
|
var _debounce = require("@instructure/debounce");
|
|
13
|
-
var
|
|
14
|
-
var
|
|
18
|
+
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
19
|
+
var _Portal = require("@instructure/ui-portal/lib/Portal");
|
|
15
20
|
var _emotion = require("@instructure/emotion");
|
|
16
21
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
17
22
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
@@ -47,7 +52,7 @@ var _dec, _dec2, _dec3, _class, _class2;
|
|
|
47
52
|
category: components/utilities
|
|
48
53
|
---
|
|
49
54
|
**/
|
|
50
|
-
let Position = exports.Position = (_dec = (0,
|
|
55
|
+
let Position = exports.Position = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Position extends _react.Component {
|
|
51
56
|
constructor(props) {
|
|
52
57
|
super(props);
|
|
53
58
|
this.ref = null;
|
|
@@ -95,7 +100,7 @@ let Position = exports.Position = (_dec = (0, _uiReactUtils.withDeterministicId)
|
|
|
95
100
|
this._id = this.props.id || props.deterministicId();
|
|
96
101
|
}
|
|
97
102
|
shouldComponentUpdate(nextProps, nextState, nextContext) {
|
|
98
|
-
return !(0,
|
|
103
|
+
return !(0, _deepEqual.deepEqual)(this.state, nextState) || !(0, _shallowEqual.shallowEqual)(this.props, nextProps) || !(0, _shallowEqual.shallowEqual)(this.context, nextContext);
|
|
99
104
|
}
|
|
100
105
|
componentDidMount() {
|
|
101
106
|
var _this$props$makeStyle, _this$props;
|
|
@@ -132,8 +137,8 @@ let Position = exports.Position = (_dec = (0, _uiReactUtils.withDeterministicId)
|
|
|
132
137
|
// We have to find the actual DOM nodes and append the attributes
|
|
133
138
|
// directly, as we can't be sure when safe cloning the child that
|
|
134
139
|
// it will accept the data attribute as a prop
|
|
135
|
-
this.toggleLocatorAttribute((0,
|
|
136
|
-
this.toggleLocatorAttribute((0,
|
|
140
|
+
this.toggleLocatorAttribute((0, _findDOMNode.findDOMNode)(this._content), Position.contentLocatorAttribute, set);
|
|
141
|
+
this.toggleLocatorAttribute((0, _findDOMNode.findDOMNode)(this._target), Position.targetLocatorAttribute, set);
|
|
137
142
|
}
|
|
138
143
|
toggleLocatorAttribute(node, locator, set) {
|
|
139
144
|
if (node && node.hasAttribute) {
|
|
@@ -158,7 +163,7 @@ let Position = exports.Position = (_dec = (0, _uiReactUtils.withDeterministicId)
|
|
|
158
163
|
});
|
|
159
164
|
}
|
|
160
165
|
startTracking() {
|
|
161
|
-
this._listener = this._listener || (0,
|
|
166
|
+
this._listener = this._listener || (0, _addPositionChangeListener.addPositionChangeListener)(this._target, this.position);
|
|
162
167
|
}
|
|
163
168
|
stopTracking() {
|
|
164
169
|
if (this._listener) {
|
|
@@ -169,10 +174,10 @@ let Position = exports.Position = (_dec = (0, _uiReactUtils.withDeterministicId)
|
|
|
169
174
|
|
|
170
175
|
// content that needs to be positioned relative to the target
|
|
171
176
|
renderContent() {
|
|
172
|
-
let content = (0,
|
|
177
|
+
let content = (0, _ensureSingleChild.ensureSingleChild)(this.props.children);
|
|
173
178
|
if (content) {
|
|
174
179
|
var _this$props$styles;
|
|
175
|
-
content = (0,
|
|
180
|
+
content = (0, _safeCloneElement.safeCloneElement)(content, {
|
|
176
181
|
ref: el => {
|
|
177
182
|
this._content = el;
|
|
178
183
|
},
|
|
@@ -187,7 +192,7 @@ let Position = exports.Position = (_dec = (0, _uiReactUtils.withDeterministicId)
|
|
|
187
192
|
}),
|
|
188
193
|
[Position.contentLocatorAttribute]: this._id
|
|
189
194
|
});
|
|
190
|
-
content = (0, _emotion.jsx)(
|
|
195
|
+
content = (0, _emotion.jsx)(_Portal.Portal, {
|
|
191
196
|
open: true,
|
|
192
197
|
onOpen: this.handlePortalOpen,
|
|
193
198
|
mountNode: this.props.mountNode,
|
|
@@ -197,16 +202,16 @@ let Position = exports.Position = (_dec = (0, _uiReactUtils.withDeterministicId)
|
|
|
197
202
|
return content;
|
|
198
203
|
}
|
|
199
204
|
renderTarget() {
|
|
200
|
-
const target = (0,
|
|
205
|
+
const target = (0, _callRenderProp.callRenderProp)(this.props.renderTarget);
|
|
201
206
|
if (target) {
|
|
202
|
-
return (0,
|
|
207
|
+
return (0, _safeCloneElement.safeCloneElement)(target, {
|
|
203
208
|
ref: el => {
|
|
204
209
|
this._target = el;
|
|
205
210
|
},
|
|
206
211
|
[Position.targetLocatorAttribute]: this._id
|
|
207
212
|
});
|
|
208
213
|
} else if (this.props.target) {
|
|
209
|
-
this._target = (0,
|
|
214
|
+
this._target = (0, _callRenderProp.callRenderProp)(this.props.target);
|
|
210
215
|
}
|
|
211
216
|
return null;
|
|
212
217
|
}
|
package/lib/Position/props.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var
|
|
9
|
+
var _element = require("@instructure/ui-prop-types/lib/element.js");
|
|
10
10
|
var _PositionPropTypes = require("../PositionPropTypes");
|
|
11
11
|
/*
|
|
12
12
|
* The MIT License (MIT)
|
|
@@ -34,7 +34,7 @@ var _PositionPropTypes = require("../PositionPropTypes");
|
|
|
34
34
|
|
|
35
35
|
const propTypes = exports.propTypes = {
|
|
36
36
|
renderTarget: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
37
|
-
target: _propTypes.default.oneOfType([
|
|
37
|
+
target: _propTypes.default.oneOfType([_element.element, _propTypes.default.func]),
|
|
38
38
|
placement: _PositionPropTypes.PositionPropTypes.placement,
|
|
39
39
|
mountNode: _PositionPropTypes.PositionPropTypes.mountNode,
|
|
40
40
|
insertAt: _propTypes.default.oneOf(['bottom', 'top']),
|
package/lib/PositionPropTypes.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.placementPropValues = exports.mirrorMap = exports.default = exports.PositionPropTypes = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var
|
|
9
|
+
var _element = require("@instructure/ui-prop-types/lib/element.js");
|
|
10
10
|
/*
|
|
11
11
|
* The MIT License (MIT)
|
|
12
12
|
*
|
|
@@ -40,11 +40,11 @@ const PositionPropTypes = exports.PositionPropTypes = {
|
|
|
40
40
|
/**
|
|
41
41
|
* An element or a function returning an element to use as the mount node
|
|
42
42
|
*/
|
|
43
|
-
mountNode: _propTypes.default.oneOfType([
|
|
43
|
+
mountNode: _propTypes.default.oneOfType([_element.element, _propTypes.default.func]),
|
|
44
44
|
/**
|
|
45
45
|
* The parent in which to constrain a placement
|
|
46
46
|
*/
|
|
47
|
-
constrain: _propTypes.default.oneOfType([
|
|
47
|
+
constrain: _propTypes.default.oneOfType([_element.element, _propTypes.default.func, _propTypes.default.oneOf(['window', 'scroll-parent', 'parent', 'none'])])
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -8,7 +8,13 @@ exports.calculateElementPosition = calculateElementPosition;
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
exports.parsePlacement = parsePlacement;
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
var
|
|
11
|
+
var _getBoundingClientRect = require("@instructure/ui-dom-utils/lib/getBoundingClientRect.js");
|
|
12
|
+
var _getScrollParents = require("@instructure/ui-dom-utils/lib/getScrollParents.js");
|
|
13
|
+
var _getOffsetParents = require("@instructure/ui-dom-utils/lib/getOffsetParents.js");
|
|
14
|
+
var _canUseDOM = require("@instructure/ui-dom-utils/lib/canUseDOM.js");
|
|
15
|
+
var _findDOMNode = require("@instructure/ui-dom-utils/lib/findDOMNode.js");
|
|
16
|
+
var _ownerDocument3 = require("@instructure/ui-dom-utils/lib/ownerDocument.js");
|
|
17
|
+
var _ownerWindow = require("@instructure/ui-dom-utils/lib/ownerWindow.js");
|
|
12
18
|
var _mirrorPlacement = require("./mirrorPlacement");
|
|
13
19
|
/*
|
|
14
20
|
* The MIT License (MIT)
|
|
@@ -67,7 +73,7 @@ class PositionedElement {
|
|
|
67
73
|
this.placement = void 0;
|
|
68
74
|
this.rect = void 0;
|
|
69
75
|
this._offset = void 0;
|
|
70
|
-
this.node = (0,
|
|
76
|
+
this.node = (0, _findDOMNode.findDOMNode)(element);
|
|
71
77
|
if (typeof placement === 'string') {
|
|
72
78
|
this.placement = parsePlacement(placement);
|
|
73
79
|
} else if (Array.isArray(placement)) {
|
|
@@ -75,7 +81,7 @@ class PositionedElement {
|
|
|
75
81
|
} else {
|
|
76
82
|
this.placement = ['bottom', 'center'];
|
|
77
83
|
}
|
|
78
|
-
this.rect = (0,
|
|
84
|
+
this.rect = (0, _getBoundingClientRect.getBoundingClientRect)(this.node);
|
|
79
85
|
this._offset = offsetToPx(offset, this.size, this.node);
|
|
80
86
|
}
|
|
81
87
|
get width() {
|
|
@@ -143,7 +149,7 @@ class PositionedElement {
|
|
|
143
149
|
}, this.size, this.node), parseOffset(this._offset, this.placement)]);
|
|
144
150
|
}
|
|
145
151
|
get scrollParentsOffset() {
|
|
146
|
-
const parents = (0,
|
|
152
|
+
const parents = (0, _getScrollParents.getScrollParents)(this.node);
|
|
147
153
|
let offsetY = 0;
|
|
148
154
|
let offsetX = 0;
|
|
149
155
|
for (let i = 1; i < parents.length; i++) {
|
|
@@ -164,18 +170,18 @@ class PositionedElement {
|
|
|
164
170
|
// element, it will position absolutely with respect to that
|
|
165
171
|
// ancestor. We calculate the offset between the child and
|
|
166
172
|
// positioned parent so we can negate that distance
|
|
167
|
-
const parents = (0,
|
|
168
|
-
const doc = (0,
|
|
173
|
+
const parents = (0, _getOffsetParents.getOffsetParents)(this.node);
|
|
174
|
+
const doc = (0, _ownerDocument3.ownerDocument)(this.node);
|
|
169
175
|
|
|
170
176
|
// If there is more than one parent, the offset on the
|
|
171
177
|
// documentElement should be calculated appropriately.
|
|
172
178
|
// Otherwise we need to explictly account for that offset
|
|
173
|
-
let offsetY = parents.length > 1 ? 0 : (0,
|
|
179
|
+
let offsetY = parents.length > 1 ? 0 : (0, _getBoundingClientRect.getBoundingClientRect)(doc === null || doc === void 0 ? void 0 : doc.documentElement).top;
|
|
174
180
|
let offsetX = 0;
|
|
175
181
|
let scrollY = 0;
|
|
176
182
|
for (let i = 1; i < parents.length; i++) {
|
|
177
|
-
const parent = (0,
|
|
178
|
-
const child = (0,
|
|
183
|
+
const parent = (0, _getBoundingClientRect.getBoundingClientRect)(parents[i]);
|
|
184
|
+
const child = (0, _getBoundingClientRect.getBoundingClientRect)(parents[i - 1]);
|
|
179
185
|
offsetY = offsetY + (child.top - parent.top);
|
|
180
186
|
offsetX = offsetX + (child.left - parent.left);
|
|
181
187
|
if (parents[i] === (doc === null || doc === void 0 ? void 0 : doc.body)) {
|
|
@@ -198,7 +204,7 @@ class PositionedElement {
|
|
|
198
204
|
var _ownerDocument;
|
|
199
205
|
// Account for cross browser differences with scrollTop attribute on the
|
|
200
206
|
// body element https://bugs.chromium.org/p/chromium/issues/detail?id=766938
|
|
201
|
-
return ((_ownerDocument = (0,
|
|
207
|
+
return ((_ownerDocument = (0, _ownerDocument3.ownerDocument)(this.node)) === null || _ownerDocument === void 0 ? void 0 : _ownerDocument.body) === element ? 0 : element.scrollTop;
|
|
202
208
|
}
|
|
203
209
|
}
|
|
204
210
|
class PositionData {
|
|
@@ -215,22 +221,22 @@ class PositionData {
|
|
|
215
221
|
placement = _this$options.placement,
|
|
216
222
|
over = _this$options.over;
|
|
217
223
|
if (!element || placement === 'offscreen') return;
|
|
218
|
-
this.container = container || ((_ownerDocument2 = (0,
|
|
224
|
+
this.container = container || ((_ownerDocument2 = (0, _ownerDocument3.ownerDocument)(element)) === null || _ownerDocument2 === void 0 ? void 0 : _ownerDocument2.body);
|
|
219
225
|
this.element = new PositionedElement(element, placement, {
|
|
220
226
|
top: this.options.offsetY,
|
|
221
227
|
left: this.options.offsetX
|
|
222
228
|
});
|
|
223
229
|
this.target = new PositionedElement(target || this.container, over ? this.element.placement : this.element.mirroredPlacement);
|
|
224
230
|
if (constrain === 'window') {
|
|
225
|
-
this.constrainTo((0,
|
|
231
|
+
this.constrainTo((0, _ownerWindow.ownerWindow)(element));
|
|
226
232
|
} else if (constrain === 'scroll-parent') {
|
|
227
|
-
this.constrainTo((0,
|
|
233
|
+
this.constrainTo((0, _getScrollParents.getScrollParents)(this.target.node)[0]);
|
|
228
234
|
} else if (constrain === 'parent') {
|
|
229
235
|
this.constrainTo(this.container);
|
|
230
236
|
} else if (typeof constrain === 'function') {
|
|
231
|
-
this.constrainTo((0,
|
|
237
|
+
this.constrainTo((0, _findDOMNode.findDOMNode)(constrain.call(null)));
|
|
232
238
|
} else if (typeof constrain === 'object') {
|
|
233
|
-
this.constrainTo((0,
|
|
239
|
+
this.constrainTo((0, _findDOMNode.findDOMNode)(constrain));
|
|
234
240
|
}
|
|
235
241
|
}
|
|
236
242
|
get offset() {
|
|
@@ -253,11 +259,11 @@ class PositionData {
|
|
|
253
259
|
return this.element.shouldStretchHorizontally ? this.target.height : null;
|
|
254
260
|
}
|
|
255
261
|
get position() {
|
|
256
|
-
const win = (0,
|
|
262
|
+
const win = (0, _ownerWindow.ownerWindow)(this.target.node);
|
|
257
263
|
let _addOffsets = addOffsets([this.target.position, this.offset]),
|
|
258
264
|
left = _addOffsets.left,
|
|
259
265
|
top = _addOffsets.top;
|
|
260
|
-
if (
|
|
266
|
+
if (_canUseDOM.canUseDOM && win !== null && win !== void 0 && win.matchMedia) {
|
|
261
267
|
const retina = win.matchMedia('only screen and (min-resolution: 1.3dppx)').matches || win.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 1.3)').matches;
|
|
262
268
|
if (!retina) {
|
|
263
269
|
left = Math.round(left);
|
|
@@ -286,9 +292,9 @@ class PositionData {
|
|
|
286
292
|
};
|
|
287
293
|
}
|
|
288
294
|
overflow(element) {
|
|
289
|
-
const parentWindow = (0,
|
|
290
|
-
const elementBounds = (0,
|
|
291
|
-
const windowBounds = (0,
|
|
295
|
+
const parentWindow = (0, _ownerWindow.ownerWindow)(element);
|
|
296
|
+
const elementBounds = (0, _getBoundingClientRect.getBoundingClientRect)(element);
|
|
297
|
+
const windowBounds = (0, _getBoundingClientRect.getBoundingClientRect)(parentWindow);
|
|
292
298
|
const offsets = addOffsets([this.target.position, this.offset]);
|
|
293
299
|
const parentOffset = {
|
|
294
300
|
top: this.element.positionedParentsOffset.top + this.element.scrollParentsOffset.top,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-position",
|
|
3
|
-
"version": "8.56.2
|
|
3
|
+
"version": "8.56.2",
|
|
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
|
"module": "./es/index.js",
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.23.2",
|
|
27
|
-
"@instructure/debounce": "8.56.2
|
|
28
|
-
"@instructure/emotion": "8.56.2
|
|
29
|
-
"@instructure/shared-types": "8.56.2
|
|
30
|
-
"@instructure/ui-dom-utils": "8.56.2
|
|
31
|
-
"@instructure/ui-portal": "8.56.2
|
|
32
|
-
"@instructure/ui-prop-types": "8.56.2
|
|
33
|
-
"@instructure/ui-react-utils": "8.56.2
|
|
34
|
-
"@instructure/ui-testable": "8.56.2
|
|
35
|
-
"@instructure/ui-utils": "8.56.2
|
|
36
|
-
"@instructure/uid": "8.56.2
|
|
27
|
+
"@instructure/debounce": "8.56.2",
|
|
28
|
+
"@instructure/emotion": "8.56.2",
|
|
29
|
+
"@instructure/shared-types": "8.56.2",
|
|
30
|
+
"@instructure/ui-dom-utils": "8.56.2",
|
|
31
|
+
"@instructure/ui-portal": "8.56.2",
|
|
32
|
+
"@instructure/ui-prop-types": "8.56.2",
|
|
33
|
+
"@instructure/ui-react-utils": "8.56.2",
|
|
34
|
+
"@instructure/ui-testable": "8.56.2",
|
|
35
|
+
"@instructure/ui-utils": "8.56.2",
|
|
36
|
+
"@instructure/uid": "8.56.2",
|
|
37
37
|
"prop-types": "^15.8.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@instructure/ui-babel-preset": "8.56.2
|
|
41
|
-
"@instructure/ui-color-utils": "8.56.2
|
|
42
|
-
"@instructure/ui-test-locator": "8.56.2
|
|
43
|
-
"@instructure/ui-test-utils": "8.56.2
|
|
44
|
-
"@instructure/ui-themes": "8.56.2
|
|
40
|
+
"@instructure/ui-babel-preset": "8.56.2",
|
|
41
|
+
"@instructure/ui-color-utils": "8.56.2",
|
|
42
|
+
"@instructure/ui-test-locator": "8.56.2",
|
|
43
|
+
"@instructure/ui-test-utils": "8.56.2",
|
|
44
|
+
"@instructure/ui-themes": "8.56.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=16.8 <=18"
|