@instructure/quiz-core 17.50.2-rc.2 → 17.50.2-rc.3
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/building/components/layout/Sidebar/SidebarItem/presenter.js +19 -7
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +3 -0
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +19 -7
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +3 -0
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +23 -11
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +10 -0
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +23 -11
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +10 -0
- package/package.json +9 -9
|
@@ -2,14 +2,26 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
|
|
6
|
+
var _dec, _class, _class2, _temp;
|
|
7
|
+
|
|
5
8
|
import React, { Component } from 'react';
|
|
6
9
|
import PropTypes from 'prop-types';
|
|
7
10
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
11
|
+
import { themeable } from '@instructure/ui-themeable';
|
|
8
12
|
import { chooseDragConnection, usingIE } from "../../../../../common/components/shared/drag_and_drop/dragAndDropUtils.js";
|
|
9
13
|
import DragHandle from "../../../../../common/components/shared/drag_and_drop/DragHandle/index.js";
|
|
10
14
|
import DragAndDropZone from "../../../../../common/components/shared/drag_and_drop/DragAndDropZone/index.js";
|
|
11
15
|
import CommonSidebarItem from "../../../../../common/components/layout/sidebar/SidebarItem/index.js";
|
|
12
|
-
|
|
16
|
+
var styles = {
|
|
17
|
+
componentId: 'beYOg',
|
|
18
|
+
template: function template(theme) {
|
|
19
|
+
return "\n\n.beYOg_cpvQ{transform:translateZ(0)}";
|
|
20
|
+
},
|
|
21
|
+
'sidebarItemWrapper': 'beYOg_cpvQ'
|
|
22
|
+
};
|
|
23
|
+
import theme from "./theme.js";
|
|
24
|
+
export var BuildingSidebarItem = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
13
25
|
_inherits(BuildingSidebarItem, _Component);
|
|
14
26
|
|
|
15
27
|
var _super = _createSuper(BuildingSidebarItem);
|
|
@@ -69,7 +81,9 @@ export var BuildingSidebarItem = /*#__PURE__*/function (_Component) {
|
|
|
69
81
|
draggingOver: draggingOver,
|
|
70
82
|
draggingAboveHalf: draggingAboveHalf
|
|
71
83
|
};
|
|
72
|
-
return /*#__PURE__*/React.createElement("div",
|
|
84
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
className: styles.sidebarItemWrapper
|
|
86
|
+
}, /*#__PURE__*/React.createElement(DragAndDropZone, Object.assign({}, propsForDnDZone, {
|
|
73
87
|
location: "above"
|
|
74
88
|
})), /*#__PURE__*/React.createElement(CommonSidebarItem, {
|
|
75
89
|
itemId: this.props.itemId,
|
|
@@ -104,8 +118,7 @@ export var BuildingSidebarItem = /*#__PURE__*/function (_Component) {
|
|
|
104
118
|
|
|
105
119
|
BuildingSidebarItem.displayName = "BuildingSidebarItem";
|
|
106
120
|
return BuildingSidebarItem;
|
|
107
|
-
}(Component)
|
|
108
|
-
BuildingSidebarItem.propTypes = {
|
|
121
|
+
}(Component), _class2.propTypes = {
|
|
109
122
|
connectDragSource: PropTypes.func.isRequired,
|
|
110
123
|
// inserted by React DnD
|
|
111
124
|
connectDragPreview: PropTypes.func.isRequired,
|
|
@@ -127,10 +140,9 @@ BuildingSidebarItem.propTypes = {
|
|
|
127
140
|
// Passed in by connect
|
|
128
141
|
draggingOver: PropTypes.bool.isRequired,
|
|
129
142
|
draggingAboveHalf: PropTypes.bool.isRequired
|
|
130
|
-
}
|
|
131
|
-
BuildingSidebarItem.defaultProps = {
|
|
143
|
+
}, _class2.defaultProps = {
|
|
132
144
|
disableDraggingOverride: false,
|
|
133
145
|
inStimulus: false,
|
|
134
146
|
itemBody: ''
|
|
135
|
-
};
|
|
147
|
+
}, _temp)) || _class);
|
|
136
148
|
export default BuildingSidebarItem;
|
|
@@ -2,14 +2,26 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
+
|
|
6
|
+
var _dec, _class, _class2, _temp;
|
|
7
|
+
|
|
5
8
|
import React, { Component } from 'react';
|
|
6
9
|
import PropTypes from 'prop-types';
|
|
7
10
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
11
|
+
import { themeable } from '@instructure/ui-themeable';
|
|
8
12
|
import { chooseDragConnection, usingIE } from "../../../../../common/components/shared/drag_and_drop/dragAndDropUtils.js";
|
|
9
13
|
import DragHandle from "../../../../../common/components/shared/drag_and_drop/DragHandle/index.js";
|
|
10
14
|
import DragAndDropZone from "../../../../../common/components/shared/drag_and_drop/DragAndDropZone/index.js";
|
|
11
15
|
import CommonStimulus from "../../../../../common/components/layout/sidebar/Stimulus/index.js";
|
|
12
|
-
|
|
16
|
+
var styles = {
|
|
17
|
+
componentId: 'fyovm',
|
|
18
|
+
template: function template(theme) {
|
|
19
|
+
return "\n\n.fyovm_drae{transform:translateZ(0)}";
|
|
20
|
+
},
|
|
21
|
+
'sidebarStimulusWrapper': 'fyovm_drae'
|
|
22
|
+
};
|
|
23
|
+
import theme from "./theme.js";
|
|
24
|
+
export var BuildingStimulus = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
13
25
|
_inherits(BuildingStimulus, _Component);
|
|
14
26
|
|
|
15
27
|
var _super = _createSuper(BuildingStimulus);
|
|
@@ -84,7 +96,9 @@ export var BuildingStimulus = /*#__PURE__*/function (_Component) {
|
|
|
84
96
|
draggingAboveHalf: this.props.draggingAboveHalf,
|
|
85
97
|
dropIntoEmptyStimulus: this.props.dropIntoEmptyStimulus
|
|
86
98
|
};
|
|
87
|
-
return /*#__PURE__*/React.createElement("div",
|
|
99
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: styles.sidebarStimulusWrapper
|
|
101
|
+
}, /*#__PURE__*/React.createElement(DragAndDropZone, Object.assign({}, propsForDnDZone, {
|
|
88
102
|
location: "above"
|
|
89
103
|
})), this.renderStimulus(), /*#__PURE__*/React.createElement(DragAndDropZone, Object.assign({}, propsForDnDZone, {
|
|
90
104
|
location: "in"
|
|
@@ -112,8 +126,7 @@ export var BuildingStimulus = /*#__PURE__*/function (_Component) {
|
|
|
112
126
|
|
|
113
127
|
BuildingStimulus.displayName = "BuildingStimulus";
|
|
114
128
|
return BuildingStimulus;
|
|
115
|
-
}(Component)
|
|
116
|
-
BuildingStimulus.propTypes = {
|
|
129
|
+
}(Component), _class2.propTypes = {
|
|
117
130
|
childEntries: ImmutablePropTypes.listOf(ImmutablePropTypes.record).isRequired,
|
|
118
131
|
connectDragPreview: PropTypes.func.isRequired,
|
|
119
132
|
// inserted by React DnD
|
|
@@ -135,10 +148,9 @@ BuildingStimulus.propTypes = {
|
|
|
135
148
|
draggingAboveHalf: PropTypes.bool.isRequired,
|
|
136
149
|
draggingOver: PropTypes.bool.isRequired,
|
|
137
150
|
dropIntoEmptyStimulus: PropTypes.bool
|
|
138
|
-
}
|
|
139
|
-
BuildingStimulus.defaultProps = {
|
|
151
|
+
}, _class2.defaultProps = {
|
|
140
152
|
draggingAboveHalf: false,
|
|
141
153
|
dropIntoEmptyStimulus: false,
|
|
142
154
|
isOver: false
|
|
143
|
-
};
|
|
155
|
+
}, _temp)) || _class);
|
|
144
156
|
export default BuildingStimulus;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -23,6 +23,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
23
23
|
|
|
24
24
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
25
25
|
|
|
26
|
+
var _uiThemeable = require("@instructure/ui-themeable");
|
|
27
|
+
|
|
26
28
|
var _dragAndDropUtils = require("../../../../../common/components/shared/drag_and_drop/dragAndDropUtils.js");
|
|
27
29
|
|
|
28
30
|
var _index = _interopRequireDefault(require("../../../../../common/components/shared/drag_and_drop/DragHandle/index.js"));
|
|
@@ -31,7 +33,18 @@ var _index2 = _interopRequireDefault(require("../../../../../common/components/s
|
|
|
31
33
|
|
|
32
34
|
var _index3 = _interopRequireDefault(require("../../../../../common/components/layout/sidebar/SidebarItem/index.js"));
|
|
33
35
|
|
|
34
|
-
var
|
|
36
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
37
|
+
|
|
38
|
+
var _dec, _class, _class2, _temp;
|
|
39
|
+
|
|
40
|
+
var styles = {
|
|
41
|
+
componentId: 'beYOg',
|
|
42
|
+
template: function template(theme) {
|
|
43
|
+
return "\n\n.beYOg_cpvQ{transform:translateZ(0)}";
|
|
44
|
+
},
|
|
45
|
+
'sidebarItemWrapper': 'beYOg_cpvQ'
|
|
46
|
+
};
|
|
47
|
+
var BuildingSidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
35
48
|
(0, _inherits2.default)(BuildingSidebarItem, _Component);
|
|
36
49
|
|
|
37
50
|
var _super = (0, _createSuper2.default)(BuildingSidebarItem);
|
|
@@ -90,7 +103,9 @@ var BuildingSidebarItem = /*#__PURE__*/function (_Component) {
|
|
|
90
103
|
draggingOver: draggingOver,
|
|
91
104
|
draggingAboveHalf: draggingAboveHalf
|
|
92
105
|
};
|
|
93
|
-
return /*#__PURE__*/_react.default.createElement("div",
|
|
106
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
+
className: styles.sidebarItemWrapper
|
|
108
|
+
}, /*#__PURE__*/_react.default.createElement(_index2.default, Object.assign({}, propsForDnDZone, {
|
|
94
109
|
location: "above"
|
|
95
110
|
})), /*#__PURE__*/_react.default.createElement(_index3.default, {
|
|
96
111
|
itemId: this.props.itemId,
|
|
@@ -124,10 +139,7 @@ var BuildingSidebarItem = /*#__PURE__*/function (_Component) {
|
|
|
124
139
|
}]);
|
|
125
140
|
BuildingSidebarItem.displayName = "BuildingSidebarItem";
|
|
126
141
|
return BuildingSidebarItem;
|
|
127
|
-
}(_react.Component)
|
|
128
|
-
|
|
129
|
-
exports.BuildingSidebarItem = BuildingSidebarItem;
|
|
130
|
-
BuildingSidebarItem.propTypes = {
|
|
142
|
+
}(_react.Component), _class2.propTypes = {
|
|
131
143
|
connectDragSource: _propTypes.default.func.isRequired,
|
|
132
144
|
// inserted by React DnD
|
|
133
145
|
connectDragPreview: _propTypes.default.func.isRequired,
|
|
@@ -149,11 +161,11 @@ BuildingSidebarItem.propTypes = {
|
|
|
149
161
|
// Passed in by connect
|
|
150
162
|
draggingOver: _propTypes.default.bool.isRequired,
|
|
151
163
|
draggingAboveHalf: _propTypes.default.bool.isRequired
|
|
152
|
-
}
|
|
153
|
-
BuildingSidebarItem.defaultProps = {
|
|
164
|
+
}, _class2.defaultProps = {
|
|
154
165
|
disableDraggingOverride: false,
|
|
155
166
|
inStimulus: false,
|
|
156
167
|
itemBody: ''
|
|
157
|
-
};
|
|
168
|
+
}, _temp)) || _class);
|
|
169
|
+
exports.BuildingSidebarItem = BuildingSidebarItem;
|
|
158
170
|
var _default = BuildingSidebarItem;
|
|
159
171
|
exports.default = _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
+
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -23,6 +23,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
23
23
|
|
|
24
24
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
25
25
|
|
|
26
|
+
var _uiThemeable = require("@instructure/ui-themeable");
|
|
27
|
+
|
|
26
28
|
var _dragAndDropUtils = require("../../../../../common/components/shared/drag_and_drop/dragAndDropUtils.js");
|
|
27
29
|
|
|
28
30
|
var _index = _interopRequireDefault(require("../../../../../common/components/shared/drag_and_drop/DragHandle/index.js"));
|
|
@@ -31,7 +33,18 @@ var _index2 = _interopRequireDefault(require("../../../../../common/components/s
|
|
|
31
33
|
|
|
32
34
|
var _index3 = _interopRequireDefault(require("../../../../../common/components/layout/sidebar/Stimulus/index.js"));
|
|
33
35
|
|
|
34
|
-
var
|
|
36
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
37
|
+
|
|
38
|
+
var _dec, _class, _class2, _temp;
|
|
39
|
+
|
|
40
|
+
var styles = {
|
|
41
|
+
componentId: 'fyovm',
|
|
42
|
+
template: function template(theme) {
|
|
43
|
+
return "\n\n.fyovm_drae{transform:translateZ(0)}";
|
|
44
|
+
},
|
|
45
|
+
'sidebarStimulusWrapper': 'fyovm_drae'
|
|
46
|
+
};
|
|
47
|
+
var BuildingStimulus = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
35
48
|
(0, _inherits2.default)(BuildingStimulus, _Component);
|
|
36
49
|
|
|
37
50
|
var _super = (0, _createSuper2.default)(BuildingStimulus);
|
|
@@ -105,7 +118,9 @@ var BuildingStimulus = /*#__PURE__*/function (_Component) {
|
|
|
105
118
|
draggingAboveHalf: this.props.draggingAboveHalf,
|
|
106
119
|
dropIntoEmptyStimulus: this.props.dropIntoEmptyStimulus
|
|
107
120
|
};
|
|
108
|
-
return /*#__PURE__*/_react.default.createElement("div",
|
|
121
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
122
|
+
className: styles.sidebarStimulusWrapper
|
|
123
|
+
}, /*#__PURE__*/_react.default.createElement(_index2.default, Object.assign({}, propsForDnDZone, {
|
|
109
124
|
location: "above"
|
|
110
125
|
})), this.renderStimulus(), /*#__PURE__*/_react.default.createElement(_index2.default, Object.assign({}, propsForDnDZone, {
|
|
111
126
|
location: "in"
|
|
@@ -132,10 +147,7 @@ var BuildingStimulus = /*#__PURE__*/function (_Component) {
|
|
|
132
147
|
}]);
|
|
133
148
|
BuildingStimulus.displayName = "BuildingStimulus";
|
|
134
149
|
return BuildingStimulus;
|
|
135
|
-
}(_react.Component)
|
|
136
|
-
|
|
137
|
-
exports.BuildingStimulus = BuildingStimulus;
|
|
138
|
-
BuildingStimulus.propTypes = {
|
|
150
|
+
}(_react.Component), _class2.propTypes = {
|
|
139
151
|
childEntries: _reactImmutableProptypes.default.listOf(_reactImmutableProptypes.default.record).isRequired,
|
|
140
152
|
connectDragPreview: _propTypes.default.func.isRequired,
|
|
141
153
|
// inserted by React DnD
|
|
@@ -157,11 +169,11 @@ BuildingStimulus.propTypes = {
|
|
|
157
169
|
draggingAboveHalf: _propTypes.default.bool.isRequired,
|
|
158
170
|
draggingOver: _propTypes.default.bool.isRequired,
|
|
159
171
|
dropIntoEmptyStimulus: _propTypes.default.bool
|
|
160
|
-
}
|
|
161
|
-
BuildingStimulus.defaultProps = {
|
|
172
|
+
}, _class2.defaultProps = {
|
|
162
173
|
draggingAboveHalf: false,
|
|
163
174
|
dropIntoEmptyStimulus: false,
|
|
164
175
|
isOver: false
|
|
165
|
-
};
|
|
176
|
+
}, _temp)) || _class);
|
|
177
|
+
exports.BuildingStimulus = BuildingStimulus;
|
|
166
178
|
var _default = BuildingStimulus;
|
|
167
179
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "17.50.2-rc.
|
|
3
|
+
"version": "17.50.2-rc.3+7dac08f42",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@instructure/outcomes-ui": "^2.1.2",
|
|
44
|
-
"@instructure/quiz-common": "17.50.2-rc.
|
|
45
|
-
"@instructure/quiz-i18n": "17.50.2-rc.
|
|
46
|
-
"@instructure/quiz-interactions": "17.50.2-rc.
|
|
47
|
-
"@instructure/quiz-number-input": "17.50.2-rc.
|
|
48
|
-
"@instructure/quiz-rce": "17.50.2-rc.
|
|
44
|
+
"@instructure/quiz-common": "17.50.2-rc.3+7dac08f42",
|
|
45
|
+
"@instructure/quiz-i18n": "17.50.2-rc.3+7dac08f42",
|
|
46
|
+
"@instructure/quiz-interactions": "17.50.2-rc.3+7dac08f42",
|
|
47
|
+
"@instructure/quiz-number-input": "17.50.2-rc.3+7dac08f42",
|
|
48
|
+
"@instructure/quiz-rce": "17.50.2-rc.3+7dac08f42",
|
|
49
49
|
"@instructure/ui-a11y-content": "^7.20.0",
|
|
50
50
|
"@instructure/ui-alerts": "^7.20.0",
|
|
51
51
|
"@instructure/ui-avatar": "^7.20.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"eventemitter3": "^3.1.0",
|
|
107
107
|
"humps": "^2.0.0",
|
|
108
108
|
"immutable": "^3.8.1",
|
|
109
|
-
"instructure-validations": "17.50.2-rc.
|
|
109
|
+
"instructure-validations": "17.50.2-rc.3+7dac08f42",
|
|
110
110
|
"ipaddr.js": "^1.5.4",
|
|
111
111
|
"isomorphic-fetch": "^2.2.0",
|
|
112
112
|
"isuuid": "^0.1.0",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"intl": "^1.2.4",
|
|
157
157
|
"jquery": "^2.2.3",
|
|
158
158
|
"most-subject": "^5.3.0",
|
|
159
|
-
"quiz-presets": "17.50.2-rc.
|
|
159
|
+
"quiz-presets": "17.50.2-rc.3+7dac08f42",
|
|
160
160
|
"react": "^16.8.6",
|
|
161
161
|
"react-addons-test-utils": "^15.6.2",
|
|
162
162
|
"react-dom": "^16.8.6",
|
|
@@ -172,5 +172,5 @@
|
|
|
172
172
|
"publishConfig": {
|
|
173
173
|
"access": "public"
|
|
174
174
|
},
|
|
175
|
-
"gitHead": "
|
|
175
|
+
"gitHead": "7dac08f42a6c8c3f547ba0cc722eb2f2363bcfb2"
|
|
176
176
|
}
|