@instructure/ui-tray 8.11.2-snapshot.3 → 8.11.2-snapshot.45
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/es/Tray/index.js +1 -4
- package/lib/Tray/index.js +1 -4
- package/package.json +18 -18
- package/src/Tray/index.tsx +5 -3
- package/types/Tray/index.d.ts +2 -3
- package/types/Tray/index.d.ts.map +1 -1
package/es/Tray/index.js
CHANGED
|
@@ -54,7 +54,6 @@ let Tray = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = bid
|
|
|
54
54
|
transitioning: false
|
|
55
55
|
};
|
|
56
56
|
this.ref = null;
|
|
57
|
-
this._DOMNode = null;
|
|
58
57
|
|
|
59
58
|
this.handleTransitionComplete = () => {
|
|
60
59
|
this.setState({
|
|
@@ -119,12 +118,10 @@ let Tray = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = bid
|
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
get DOMNode() {
|
|
122
|
-
return this.
|
|
121
|
+
return this.ref;
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
set DOMNode(el) {
|
|
126
|
-
this._DOMNode = el; // TODO remove this in v9 and keep this.ref
|
|
127
|
-
|
|
128
125
|
this.ref = el ? el : null;
|
|
129
126
|
}
|
|
130
127
|
|
package/lib/Tray/index.js
CHANGED
|
@@ -51,7 +51,6 @@ let Tray = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
51
51
|
transitioning: false
|
|
52
52
|
};
|
|
53
53
|
this.ref = null;
|
|
54
|
-
this._DOMNode = null;
|
|
55
54
|
|
|
56
55
|
this.handleTransitionComplete = () => {
|
|
57
56
|
this.setState({
|
|
@@ -116,12 +115,10 @@ let Tray = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
get DOMNode() {
|
|
119
|
-
return this.
|
|
118
|
+
return this.ref;
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
set DOMNode(el) {
|
|
123
|
-
this._DOMNode = el; // TODO remove this in v9 and keep this.ref
|
|
124
|
-
|
|
125
122
|
this.ref = el ? el : null;
|
|
126
123
|
}
|
|
127
124
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tray",
|
|
3
|
-
"version": "8.11.2-snapshot.
|
|
3
|
+
"version": "8.11.2-snapshot.45+e3249d228",
|
|
4
4
|
"description": "Tray component for secondary/menu content",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,25 +25,25 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.11.2-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.11.2-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.11.2-snapshot.
|
|
31
|
-
"@instructure/ui-dialog": "8.11.2-snapshot.
|
|
32
|
-
"@instructure/ui-i18n": "8.11.2-snapshot.
|
|
33
|
-
"@instructure/ui-motion": "8.11.2-snapshot.
|
|
34
|
-
"@instructure/ui-portal": "8.11.2-snapshot.
|
|
35
|
-
"@instructure/ui-position": "8.11.2-snapshot.
|
|
36
|
-
"@instructure/ui-prop-types": "8.11.2-snapshot.
|
|
37
|
-
"@instructure/ui-react-utils": "8.11.2-snapshot.
|
|
38
|
-
"@instructure/ui-testable": "8.11.2-snapshot.
|
|
39
|
-
"@instructure/ui-utils": "8.11.2-snapshot.
|
|
28
|
+
"@instructure/console": "8.11.2-snapshot.45+e3249d228",
|
|
29
|
+
"@instructure/emotion": "8.11.2-snapshot.45+e3249d228",
|
|
30
|
+
"@instructure/shared-types": "8.11.2-snapshot.45+e3249d228",
|
|
31
|
+
"@instructure/ui-dialog": "8.11.2-snapshot.45+e3249d228",
|
|
32
|
+
"@instructure/ui-i18n": "8.11.2-snapshot.45+e3249d228",
|
|
33
|
+
"@instructure/ui-motion": "8.11.2-snapshot.45+e3249d228",
|
|
34
|
+
"@instructure/ui-portal": "8.11.2-snapshot.45+e3249d228",
|
|
35
|
+
"@instructure/ui-position": "8.11.2-snapshot.45+e3249d228",
|
|
36
|
+
"@instructure/ui-prop-types": "8.11.2-snapshot.45+e3249d228",
|
|
37
|
+
"@instructure/ui-react-utils": "8.11.2-snapshot.45+e3249d228",
|
|
38
|
+
"@instructure/ui-testable": "8.11.2-snapshot.45+e3249d228",
|
|
39
|
+
"@instructure/ui-utils": "8.11.2-snapshot.45+e3249d228",
|
|
40
40
|
"prop-types": "^15"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@instructure/ui-babel-preset": "8.11.2-snapshot.
|
|
44
|
-
"@instructure/ui-test-locator": "8.11.2-snapshot.
|
|
45
|
-
"@instructure/ui-test-utils": "8.11.2-snapshot.
|
|
46
|
-
"@instructure/ui-themes": "8.11.2-snapshot.
|
|
43
|
+
"@instructure/ui-babel-preset": "8.11.2-snapshot.45+e3249d228",
|
|
44
|
+
"@instructure/ui-test-locator": "8.11.2-snapshot.45+e3249d228",
|
|
45
|
+
"@instructure/ui-test-utils": "8.11.2-snapshot.45+e3249d228",
|
|
46
|
+
"@instructure/ui-themes": "8.11.2-snapshot.45+e3249d228"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": ">=16.8 <=17"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "e3249d228eabac5bb98ff5d22e5881f2fe042606"
|
|
56
56
|
}
|
package/src/Tray/index.tsx
CHANGED
|
@@ -89,7 +89,6 @@ class Tray extends Component<TrayProps> {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
ref: Element | null = null
|
|
92
|
-
_DOMNode: PortalNode = null
|
|
93
92
|
|
|
94
93
|
componentDidMount() {
|
|
95
94
|
this.props.makeStyles?.()
|
|
@@ -137,11 +136,14 @@ class Tray extends Component<TrayProps> {
|
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
get DOMNode() {
|
|
140
|
-
|
|
139
|
+
console.warn(
|
|
140
|
+
'DOMNode property is deprecated and will be removed in v9, please use ref instead'
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
return this.ref
|
|
141
144
|
}
|
|
142
145
|
|
|
143
146
|
set DOMNode(el) {
|
|
144
|
-
this._DOMNode = el // TODO remove this in v9 and keep this.ref
|
|
145
147
|
this.ref = el ? el : null
|
|
146
148
|
}
|
|
147
149
|
|
package/types/Tray/index.d.ts
CHANGED
|
@@ -93,7 +93,6 @@ declare class Tray extends Component<TrayProps> {
|
|
|
93
93
|
transitioning: boolean;
|
|
94
94
|
};
|
|
95
95
|
ref: Element | null;
|
|
96
|
-
_DOMNode: PortalNode;
|
|
97
96
|
componentDidMount(): void;
|
|
98
97
|
componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void;
|
|
99
98
|
get placement(): "center" | import("@instructure/ui-position").PlacementPropValues | undefined;
|
|
@@ -101,8 +100,8 @@ declare class Tray extends Component<TrayProps> {
|
|
|
101
100
|
get transition(): string;
|
|
102
101
|
get defaultFocusElement(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | ((...args: any[]) => any);
|
|
103
102
|
handleTransitionComplete: () => void;
|
|
104
|
-
get DOMNode():
|
|
105
|
-
set DOMNode(el:
|
|
103
|
+
get DOMNode(): Element | null;
|
|
104
|
+
set DOMNode(el: Element | null);
|
|
106
105
|
handlePortalOpen: (DOMNode: PortalNode) => void;
|
|
107
106
|
render(): jsx.JSX.Element;
|
|
108
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Tray/index.tsx"],"names":[],"mappings":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