@pie-element/extended-text-entry 10.14.1-next.14 → 10.14.1-next.4
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +1 -1
- package/module/controller.js +2 -49
- package/module/element.js +1 -1
- package/module/manifest.json +1 -1
- package/module/print.js +1 -1
- package/package.json +3 -3
package/configure/package.json
CHANGED
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.12.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/module/controller.js
CHANGED
|
@@ -40,7 +40,7 @@ var _interopRequireDefault = interopRequireDefault.exports;
|
|
|
40
40
|
Object.defineProperty(feedback, "__esModule", {
|
|
41
41
|
value: true
|
|
42
42
|
});
|
|
43
|
-
feedback.getFeedbackForCorrectness = feedback.getFeedback = feedback.
|
|
43
|
+
feedback.getFeedbackForCorrectness = feedback.getFeedback = feedback.defaults = void 0;
|
|
44
44
|
|
|
45
45
|
var _defineProperty2 = _interopRequireDefault(defineProperty.exports);
|
|
46
46
|
|
|
@@ -131,44 +131,9 @@ var getFeedback = function getFeedback(feedback, fallback) {
|
|
|
131
131
|
var out = feedback[feedback.type] || fallback;
|
|
132
132
|
resolve(out);
|
|
133
133
|
});
|
|
134
|
-
}; // TODO: should replace getFeedbackForCorrectness
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Get feedback for correctness
|
|
138
|
-
* @param {'correct'|'incorrect'|'partial'} correctness
|
|
139
|
-
* @param {Feedback} feedback
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
feedback.getFeedback = getFeedback;
|
|
144
|
-
|
|
145
|
-
var getActualFeedbackForCorrectness = function getActualFeedbackForCorrectness(correctness, feedback) {
|
|
146
|
-
feedback = _objectSpread(_objectSpread({}, defaults$1), feedback); // normalize correctness
|
|
147
|
-
|
|
148
|
-
correctness = correctness === 'partially-correct' ? 'partial' : correctness;
|
|
149
|
-
var defaultFeedback = defaults$1[correctness] || {};
|
|
150
|
-
var fb = feedback[correctness] || defaultFeedback;
|
|
151
|
-
return getActualFeedback(fb, defaultFeedback[fb.type || 'default']);
|
|
152
|
-
}; // TODO: should replace getFeedback
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Get the feedback from a {FeedbackConfig}
|
|
156
|
-
* @param {FeedbackConfig} feedback
|
|
157
|
-
* @param {string} fallback
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
feedback.getActualFeedbackForCorrectness = getActualFeedbackForCorrectness;
|
|
162
|
-
|
|
163
|
-
var getActualFeedback = function getActualFeedback(feedback, fallback) {
|
|
164
|
-
if (!feedback || feedback.type === 'none') {
|
|
165
|
-
return undefined;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return feedback[feedback.type] || fallback;
|
|
169
134
|
};
|
|
170
135
|
|
|
171
|
-
feedback.
|
|
136
|
+
feedback.getFeedback = getFeedback;
|
|
172
137
|
|
|
173
138
|
(function (exports) {
|
|
174
139
|
|
|
@@ -181,18 +146,6 @@ Object.defineProperty(exports, "defaults", {
|
|
|
181
146
|
return _feedback.defaults;
|
|
182
147
|
}
|
|
183
148
|
});
|
|
184
|
-
Object.defineProperty(exports, "getActualFeedback", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
get: function get() {
|
|
187
|
-
return _feedback.getActualFeedback;
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
Object.defineProperty(exports, "getActualFeedbackForCorrectness", {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
get: function get() {
|
|
193
|
-
return _feedback.getActualFeedbackForCorrectness;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
149
|
Object.defineProperty(exports, "getFeedback", {
|
|
197
150
|
enumerable: true,
|
|
198
151
|
get: function get() {
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.12.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.12.1/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
4
|
function getDefaultExportFromCjs(x) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/extended-text-entry",
|
|
3
|
-
"version": "10.14.1-next.
|
|
3
|
+
"version": "10.14.1-next.4+dc2d40703",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "pie-framework/pie-elements",
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@material-ui/core": "^3.9.2",
|
|
13
13
|
"@material-ui/icons": "^3.0.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "1.20.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.20.0",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"debug": "^4.1.1",
|
|
18
18
|
"lodash.throttle": "^4.1.1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"react": "^16.8.1",
|
|
21
21
|
"react-dom": "^16.8.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "dc2d40703768c722e59a1009b92a0b108d384046",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"postpublish": "../../scripts/postpublish"
|
|
26
26
|
},
|