@pie-element/extended-text-entry 6.8.2 → 6.8.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/CHANGELOG.md +8 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +3 -3
- package/module/configure.js +3 -3
- package/module/element.js +36 -18
- package/module/index.html +1 -1
- package/module/manifest.json +5 -5
- package/module/print.html +1 -1
- package/module/print.js +36 -18
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [6.8.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry@6.8.2...@pie-element/extended-text-entry@6.8.3) (2022-03-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/extended-text-entry
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [6.8.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry@6.8.1...@pie-element/extended-text-entry@6.8.2) (2022-02-21)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/extended-text-entry
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [5.4.12](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-configure@5.4.11...@pie-element/extended-text-entry-configure@5.4.12) (2022-03-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/extended-text-entry-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [5.4.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/extended-text-entry-configure@5.4.10...@pie-element/extended-text-entry-configure@5.4.11) (2022-02-21)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/extended-text-entry-configure
|
package/configure/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/extended-text-entry-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "5.4.
|
|
4
|
+
"version": "5.4.12",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@material-ui/core": "^3.9.2",
|
|
12
12
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
13
|
-
"@pie-lib/config-ui": "^10.10.
|
|
14
|
-
"@pie-lib/editable-html": "^7.
|
|
13
|
+
"@pie-lib/config-ui": "^10.10.22",
|
|
14
|
+
"@pie-lib/editable-html": "^7.19.1",
|
|
15
15
|
"lodash": "^4.17.15",
|
|
16
16
|
"prop-types": "^15.6.2",
|
|
17
17
|
"react": "^16.8.1",
|
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.
|
|
2
|
-
import {_dll_pie_lib__config_ui} from "../../../@pie-lib/config-module@^1.0.
|
|
3
|
-
import {_dll_pie_lib__editable_html} from "../../../@pie-lib/editable-html-module@^1.0
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_material_ui__core, _dll_material_ui__core_styles, _dll_react_dom} from "../../../@pie-lib/shared-module@^1.4.1/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__config_ui} from "../../../@pie-lib/config-module@^1.0.24/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__editable_html} from "../../../@pie-lib/editable-html-module@^1.2.0/module/index.js";
|
|
4
4
|
var lib = {};
|
|
5
5
|
Object.defineProperty(lib, "__esModule", {
|
|
6
6
|
value: true
|
package/module/element.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {_dll_debug, _dll_lodash, _dll_react_dom, _dll_prop_types, _dll_react, _dll_react_dom_server, _dll_material_ui__core, _dll_classnames, _dll_material_ui__core_styles, _dll_material_ui__icons, _dll_pie_lib__render_ui} from "../../../@pie-lib/shared-module@^1.
|
|
2
|
-
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.
|
|
3
|
-
import {_dll_pie_lib__math_toolbar} from "../../../@pie-lib/math-edit-module@^1.1.
|
|
4
|
-
import {_dll_pie_lib__drag} from "../../../@pie-lib/drag-module@^1.0.
|
|
1
|
+
import {_dll_debug, _dll_lodash, _dll_react_dom, _dll_prop_types, _dll_react, _dll_react_dom_server, _dll_material_ui__core, _dll_classnames, _dll_material_ui__core_styles, _dll_material_ui__icons, _dll_pie_lib__render_ui} from "../../../@pie-lib/shared-module@^1.4.1/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.26/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__math_toolbar} from "../../../@pie-lib/math-edit-module@^1.1.22/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__drag} from "../../../@pie-lib/drag-module@^1.0.24/module/index.js";
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
function getDefaultExportFromCjs(x) {
|
|
7
7
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -31298,7 +31298,7 @@ const ExplicitConstructedResponse = props => {
|
|
|
31298
31298
|
};
|
|
31299
31299
|
ExplicitConstructedResponse.propTypes = {
|
|
31300
31300
|
attributes: PropTypes$5.object,
|
|
31301
|
-
value: PropTypes$5.
|
|
31301
|
+
value: PropTypes$5.string
|
|
31302
31302
|
};
|
|
31303
31303
|
const defaultECR = index => Inline.create({
|
|
31304
31304
|
type: 'explicit_constructed_response',
|
|
@@ -31340,14 +31340,19 @@ const {isUndefined: isUndefined} = _dll_lodash;
|
|
|
31340
31340
|
const _jsxFileName$8 = "/home/circleci/repo/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx";
|
|
31341
31341
|
const log$8 = debug$8('@pie-lib:editable-html:plugins:respArea');
|
|
31342
31342
|
const lastIndexMap = {};
|
|
31343
|
-
const
|
|
31343
|
+
const elTypesMap = {
|
|
31344
|
+
'inline-dropdown': 'inline_dropdown',
|
|
31345
|
+
'explicit-constructed-response': 'explicit_constructed_response',
|
|
31346
|
+
'drag-in-the-blank': 'drag_in_the_blank'
|
|
31347
|
+
};
|
|
31348
|
+
const elTypesArray = Object.values(elTypesMap);
|
|
31344
31349
|
function ResponseAreaPlugin(opts) {
|
|
31345
31350
|
const toolbar = {
|
|
31346
31351
|
icon: React$9.createElement(ToolbarIcon, {
|
|
31347
31352
|
__self: this,
|
|
31348
31353
|
__source: {
|
|
31349
31354
|
fileName: _jsxFileName$8,
|
|
31350
|
-
lineNumber:
|
|
31355
|
+
lineNumber: 23
|
|
31351
31356
|
}
|
|
31352
31357
|
}),
|
|
31353
31358
|
buttonStyles: {
|
|
@@ -31410,7 +31415,7 @@ function ResponseAreaPlugin(opts) {
|
|
|
31410
31415
|
__self: this,
|
|
31411
31416
|
__source: {
|
|
31412
31417
|
fileName: _jsxFileName$8,
|
|
31413
|
-
lineNumber:
|
|
31418
|
+
lineNumber: 93
|
|
31414
31419
|
}
|
|
31415
31420
|
});
|
|
31416
31421
|
}
|
|
@@ -31425,7 +31430,7 @@ function ResponseAreaPlugin(opts) {
|
|
|
31425
31430
|
__self: this,
|
|
31426
31431
|
__source: {
|
|
31427
31432
|
fileName: _jsxFileName$8,
|
|
31428
|
-
lineNumber:
|
|
31433
|
+
lineNumber: 100
|
|
31429
31434
|
}
|
|
31430
31435
|
});
|
|
31431
31436
|
}
|
|
@@ -31437,12 +31442,12 @@ function ResponseAreaPlugin(opts) {
|
|
|
31437
31442
|
__self: this,
|
|
31438
31443
|
__source: {
|
|
31439
31444
|
fileName: _jsxFileName$8,
|
|
31440
|
-
lineNumber:
|
|
31445
|
+
lineNumber: 107
|
|
31441
31446
|
}
|
|
31442
31447
|
});
|
|
31443
31448
|
}
|
|
31444
31449
|
},
|
|
31445
|
-
onChange(change) {
|
|
31450
|
+
onChange(change, editor) {
|
|
31446
31451
|
const type = opts.type.replace(/-/g, '_');
|
|
31447
31452
|
if (isUndefined(lastIndexMap[type])) {
|
|
31448
31453
|
lastIndexMap[type] = 0;
|
|
@@ -31455,6 +31460,18 @@ function ResponseAreaPlugin(opts) {
|
|
|
31455
31460
|
}
|
|
31456
31461
|
});
|
|
31457
31462
|
}
|
|
31463
|
+
if (!editor.value) {
|
|
31464
|
+
return;
|
|
31465
|
+
}
|
|
31466
|
+
const isOfCurrentType = d => d.type === opts.type || d.type === elTypesMap[opts.type];
|
|
31467
|
+
const currentRespAreaList = change.value.document.filterDescendants(isOfCurrentType);
|
|
31468
|
+
const oldRespAreaList = editor.value.document.filterDescendants(isOfCurrentType);
|
|
31469
|
+
const arrayToFilter = oldRespAreaList.size > currentRespAreaList.size ? oldRespAreaList : currentRespAreaList;
|
|
31470
|
+
const arrayToUseForFilter = arrayToFilter === oldRespAreaList ? currentRespAreaList : oldRespAreaList;
|
|
31471
|
+
const elementsWithChangedStatus = arrayToFilter.filter(d => !arrayToUseForFilter.find(e => e.data.get('index') === d.data.get('index')));
|
|
31472
|
+
if (elementsWithChangedStatus.size && oldRespAreaList.size > currentRespAreaList.size) {
|
|
31473
|
+
opts.onHandleAreaChange(elementsWithChangedStatus);
|
|
31474
|
+
}
|
|
31458
31475
|
},
|
|
31459
31476
|
onDrop(event, change, editor) {
|
|
31460
31477
|
const closestEl = event.target.closest('[data-key]');
|
|
@@ -31518,7 +31535,7 @@ const serialization = {
|
|
|
31518
31535
|
__self: this,
|
|
31519
31536
|
__source: {
|
|
31520
31537
|
fileName: _jsxFileName$8,
|
|
31521
|
-
lineNumber:
|
|
31538
|
+
lineNumber: 207
|
|
31522
31539
|
}
|
|
31523
31540
|
});
|
|
31524
31541
|
}
|
|
@@ -31532,7 +31549,7 @@ const serialization = {
|
|
|
31532
31549
|
__self: this,
|
|
31533
31550
|
__source: {
|
|
31534
31551
|
fileName: _jsxFileName$8,
|
|
31535
|
-
lineNumber:
|
|
31552
|
+
lineNumber: 213
|
|
31536
31553
|
}
|
|
31537
31554
|
});
|
|
31538
31555
|
}
|
|
@@ -31548,7 +31565,7 @@ const serialization = {
|
|
|
31548
31565
|
__self: this,
|
|
31549
31566
|
__source: {
|
|
31550
31567
|
fileName: _jsxFileName$8,
|
|
31551
|
-
lineNumber:
|
|
31568
|
+
lineNumber: 224
|
|
31552
31569
|
}
|
|
31553
31570
|
});
|
|
31554
31571
|
}
|
|
@@ -31876,7 +31893,7 @@ class Toolbar extends React$7.Component {
|
|
|
31876
31893
|
position: PropTypes$4.oneOf(['bottom', 'top']),
|
|
31877
31894
|
alignment: PropTypes$4.oneOf(['left', 'right']),
|
|
31878
31895
|
alwaysVisible: PropTypes$4.bool,
|
|
31879
|
-
ref: PropTypes$4.
|
|
31896
|
+
ref: PropTypes$4.func,
|
|
31880
31897
|
showDone: PropTypes$4.bool
|
|
31881
31898
|
}),
|
|
31882
31899
|
onDataChange: PropTypes$4.func
|
|
@@ -32700,7 +32717,7 @@ class Editor extends React$3.Component {
|
|
|
32700
32717
|
type: PropTypes$2.oneOf(['explicit-constructed-response', 'inline-dropdown', 'drag-in-the-blank']),
|
|
32701
32718
|
options: PropTypes$2.object,
|
|
32702
32719
|
respAreaToolbar: PropTypes$2.func,
|
|
32703
|
-
|
|
32720
|
+
onHandleAreaChange: PropTypes$2.func
|
|
32704
32721
|
}),
|
|
32705
32722
|
toolbarOpts: PropTypes$2.shape({
|
|
32706
32723
|
position: PropTypes$2.oneOf(['bottom', 'top']),
|
|
@@ -32802,6 +32819,7 @@ class Editor extends React$3.Component {
|
|
|
32802
32819
|
type: props.responseAreaProps && props.responseAreaProps.type,
|
|
32803
32820
|
options: props.responseAreaProps && props.responseAreaProps.options,
|
|
32804
32821
|
respAreaToolbar: props.responseAreaProps && props.responseAreaProps.respAreaToolbar,
|
|
32822
|
+
onHandleAreaChange: props.responseAreaProps && props.responseAreaProps.onHandleAreaChange,
|
|
32805
32823
|
onFocus: () => {
|
|
32806
32824
|
log$3('[table:onFocus]...');
|
|
32807
32825
|
this.onPluginFocus();
|
|
@@ -33122,7 +33140,7 @@ class Editor extends React$3.Component {
|
|
|
33122
33140
|
__self: this,
|
|
33123
33141
|
__source: {
|
|
33124
33142
|
fileName: _jsxFileName$2,
|
|
33125
|
-
lineNumber:
|
|
33143
|
+
lineNumber: 547
|
|
33126
33144
|
}
|
|
33127
33145
|
}, React$3.createElement(Editor$2, {
|
|
33128
33146
|
plugins: this.plugins,
|
|
@@ -33161,7 +33179,7 @@ class Editor extends React$3.Component {
|
|
|
33161
33179
|
__self: this,
|
|
33162
33180
|
__source: {
|
|
33163
33181
|
fileName: _jsxFileName$2,
|
|
33164
|
-
lineNumber:
|
|
33182
|
+
lineNumber: 552
|
|
33165
33183
|
}
|
|
33166
33184
|
}));
|
|
33167
33185
|
}
|
package/module/index.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!doctype html>
|
|
3
3
|
<html>
|
|
4
4
|
<head>
|
|
5
|
-
<title>@pie-element/extended-text-entry@6.8.
|
|
5
|
+
<title>@pie-element/extended-text-entry@6.8.2</title>
|
|
6
6
|
<script
|
|
7
7
|
type="module"
|
|
8
8
|
src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
|
package/module/manifest.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/extended-text-entry",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.2",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/shared-module",
|
|
7
|
-
"version": "^1.
|
|
7
|
+
"version": "^1.4.1"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/math-rendering-module",
|
|
11
|
-
"version": "^1.0.
|
|
11
|
+
"version": "^1.0.26"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "@pie-lib/math-edit-module",
|
|
15
|
-
"version": "^1.1.
|
|
15
|
+
"version": "^1.1.22"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "@pie-lib/drag-module",
|
|
19
|
-
"version": "^1.0.
|
|
19
|
+
"version": "^1.0.24"
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
}
|
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {_dll_debug, _dll_lodash, _dll_react_dom, _dll_prop_types, _dll_react, _dll_react_dom_server, _dll_material_ui__core, _dll_classnames, _dll_material_ui__core_styles, _dll_material_ui__icons, _dll_pie_lib__render_ui} from "../../../@pie-lib/shared-module@^1.
|
|
2
|
-
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.
|
|
3
|
-
import {_dll_pie_lib__math_toolbar} from "../../../@pie-lib/math-edit-module@^1.1.
|
|
4
|
-
import {_dll_pie_lib__drag} from "../../../@pie-lib/drag-module@^1.0.
|
|
1
|
+
import {_dll_debug, _dll_lodash, _dll_react_dom, _dll_prop_types, _dll_react, _dll_react_dom_server, _dll_material_ui__core, _dll_classnames, _dll_material_ui__core_styles, _dll_material_ui__icons, _dll_pie_lib__render_ui} from "../../../@pie-lib/shared-module@^1.4.1/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.26/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__math_toolbar} from "../../../@pie-lib/math-edit-module@^1.1.22/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__drag} from "../../../@pie-lib/drag-module@^1.0.24/module/index.js";
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
function getDefaultExportFromCjs(x) {
|
|
7
7
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -31298,7 +31298,7 @@ const ExplicitConstructedResponse = props => {
|
|
|
31298
31298
|
};
|
|
31299
31299
|
ExplicitConstructedResponse.propTypes = {
|
|
31300
31300
|
attributes: PropTypes$5.object,
|
|
31301
|
-
value: PropTypes$5.
|
|
31301
|
+
value: PropTypes$5.string
|
|
31302
31302
|
};
|
|
31303
31303
|
const defaultECR = index => Inline.create({
|
|
31304
31304
|
type: 'explicit_constructed_response',
|
|
@@ -31340,14 +31340,19 @@ const {isUndefined: isUndefined} = _dll_lodash;
|
|
|
31340
31340
|
const _jsxFileName$8 = "/home/circleci/repo/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx";
|
|
31341
31341
|
const log$8 = debug$8('@pie-lib:editable-html:plugins:respArea');
|
|
31342
31342
|
const lastIndexMap = {};
|
|
31343
|
-
const
|
|
31343
|
+
const elTypesMap = {
|
|
31344
|
+
'inline-dropdown': 'inline_dropdown',
|
|
31345
|
+
'explicit-constructed-response': 'explicit_constructed_response',
|
|
31346
|
+
'drag-in-the-blank': 'drag_in_the_blank'
|
|
31347
|
+
};
|
|
31348
|
+
const elTypesArray = Object.values(elTypesMap);
|
|
31344
31349
|
function ResponseAreaPlugin(opts) {
|
|
31345
31350
|
const toolbar = {
|
|
31346
31351
|
icon: React$9.createElement(ToolbarIcon, {
|
|
31347
31352
|
__self: this,
|
|
31348
31353
|
__source: {
|
|
31349
31354
|
fileName: _jsxFileName$8,
|
|
31350
|
-
lineNumber:
|
|
31355
|
+
lineNumber: 23
|
|
31351
31356
|
}
|
|
31352
31357
|
}),
|
|
31353
31358
|
buttonStyles: {
|
|
@@ -31410,7 +31415,7 @@ function ResponseAreaPlugin(opts) {
|
|
|
31410
31415
|
__self: this,
|
|
31411
31416
|
__source: {
|
|
31412
31417
|
fileName: _jsxFileName$8,
|
|
31413
|
-
lineNumber:
|
|
31418
|
+
lineNumber: 93
|
|
31414
31419
|
}
|
|
31415
31420
|
});
|
|
31416
31421
|
}
|
|
@@ -31425,7 +31430,7 @@ function ResponseAreaPlugin(opts) {
|
|
|
31425
31430
|
__self: this,
|
|
31426
31431
|
__source: {
|
|
31427
31432
|
fileName: _jsxFileName$8,
|
|
31428
|
-
lineNumber:
|
|
31433
|
+
lineNumber: 100
|
|
31429
31434
|
}
|
|
31430
31435
|
});
|
|
31431
31436
|
}
|
|
@@ -31437,12 +31442,12 @@ function ResponseAreaPlugin(opts) {
|
|
|
31437
31442
|
__self: this,
|
|
31438
31443
|
__source: {
|
|
31439
31444
|
fileName: _jsxFileName$8,
|
|
31440
|
-
lineNumber:
|
|
31445
|
+
lineNumber: 107
|
|
31441
31446
|
}
|
|
31442
31447
|
});
|
|
31443
31448
|
}
|
|
31444
31449
|
},
|
|
31445
|
-
onChange(change) {
|
|
31450
|
+
onChange(change, editor) {
|
|
31446
31451
|
const type = opts.type.replace(/-/g, '_');
|
|
31447
31452
|
if (isUndefined(lastIndexMap[type])) {
|
|
31448
31453
|
lastIndexMap[type] = 0;
|
|
@@ -31455,6 +31460,18 @@ function ResponseAreaPlugin(opts) {
|
|
|
31455
31460
|
}
|
|
31456
31461
|
});
|
|
31457
31462
|
}
|
|
31463
|
+
if (!editor.value) {
|
|
31464
|
+
return;
|
|
31465
|
+
}
|
|
31466
|
+
const isOfCurrentType = d => d.type === opts.type || d.type === elTypesMap[opts.type];
|
|
31467
|
+
const currentRespAreaList = change.value.document.filterDescendants(isOfCurrentType);
|
|
31468
|
+
const oldRespAreaList = editor.value.document.filterDescendants(isOfCurrentType);
|
|
31469
|
+
const arrayToFilter = oldRespAreaList.size > currentRespAreaList.size ? oldRespAreaList : currentRespAreaList;
|
|
31470
|
+
const arrayToUseForFilter = arrayToFilter === oldRespAreaList ? currentRespAreaList : oldRespAreaList;
|
|
31471
|
+
const elementsWithChangedStatus = arrayToFilter.filter(d => !arrayToUseForFilter.find(e => e.data.get('index') === d.data.get('index')));
|
|
31472
|
+
if (elementsWithChangedStatus.size && oldRespAreaList.size > currentRespAreaList.size) {
|
|
31473
|
+
opts.onHandleAreaChange(elementsWithChangedStatus);
|
|
31474
|
+
}
|
|
31458
31475
|
},
|
|
31459
31476
|
onDrop(event, change, editor) {
|
|
31460
31477
|
const closestEl = event.target.closest('[data-key]');
|
|
@@ -31518,7 +31535,7 @@ const serialization = {
|
|
|
31518
31535
|
__self: this,
|
|
31519
31536
|
__source: {
|
|
31520
31537
|
fileName: _jsxFileName$8,
|
|
31521
|
-
lineNumber:
|
|
31538
|
+
lineNumber: 207
|
|
31522
31539
|
}
|
|
31523
31540
|
});
|
|
31524
31541
|
}
|
|
@@ -31532,7 +31549,7 @@ const serialization = {
|
|
|
31532
31549
|
__self: this,
|
|
31533
31550
|
__source: {
|
|
31534
31551
|
fileName: _jsxFileName$8,
|
|
31535
|
-
lineNumber:
|
|
31552
|
+
lineNumber: 213
|
|
31536
31553
|
}
|
|
31537
31554
|
});
|
|
31538
31555
|
}
|
|
@@ -31548,7 +31565,7 @@ const serialization = {
|
|
|
31548
31565
|
__self: this,
|
|
31549
31566
|
__source: {
|
|
31550
31567
|
fileName: _jsxFileName$8,
|
|
31551
|
-
lineNumber:
|
|
31568
|
+
lineNumber: 224
|
|
31552
31569
|
}
|
|
31553
31570
|
});
|
|
31554
31571
|
}
|
|
@@ -31876,7 +31893,7 @@ class Toolbar extends React$7.Component {
|
|
|
31876
31893
|
position: PropTypes$4.oneOf(['bottom', 'top']),
|
|
31877
31894
|
alignment: PropTypes$4.oneOf(['left', 'right']),
|
|
31878
31895
|
alwaysVisible: PropTypes$4.bool,
|
|
31879
|
-
ref: PropTypes$4.
|
|
31896
|
+
ref: PropTypes$4.func,
|
|
31880
31897
|
showDone: PropTypes$4.bool
|
|
31881
31898
|
}),
|
|
31882
31899
|
onDataChange: PropTypes$4.func
|
|
@@ -32700,7 +32717,7 @@ class Editor extends React$3.Component {
|
|
|
32700
32717
|
type: PropTypes$2.oneOf(['explicit-constructed-response', 'inline-dropdown', 'drag-in-the-blank']),
|
|
32701
32718
|
options: PropTypes$2.object,
|
|
32702
32719
|
respAreaToolbar: PropTypes$2.func,
|
|
32703
|
-
|
|
32720
|
+
onHandleAreaChange: PropTypes$2.func
|
|
32704
32721
|
}),
|
|
32705
32722
|
toolbarOpts: PropTypes$2.shape({
|
|
32706
32723
|
position: PropTypes$2.oneOf(['bottom', 'top']),
|
|
@@ -32802,6 +32819,7 @@ class Editor extends React$3.Component {
|
|
|
32802
32819
|
type: props.responseAreaProps && props.responseAreaProps.type,
|
|
32803
32820
|
options: props.responseAreaProps && props.responseAreaProps.options,
|
|
32804
32821
|
respAreaToolbar: props.responseAreaProps && props.responseAreaProps.respAreaToolbar,
|
|
32822
|
+
onHandleAreaChange: props.responseAreaProps && props.responseAreaProps.onHandleAreaChange,
|
|
32805
32823
|
onFocus: () => {
|
|
32806
32824
|
log$3('[table:onFocus]...');
|
|
32807
32825
|
this.onPluginFocus();
|
|
@@ -33122,7 +33140,7 @@ class Editor extends React$3.Component {
|
|
|
33122
33140
|
__self: this,
|
|
33123
33141
|
__source: {
|
|
33124
33142
|
fileName: _jsxFileName$2,
|
|
33125
|
-
lineNumber:
|
|
33143
|
+
lineNumber: 547
|
|
33126
33144
|
}
|
|
33127
33145
|
}, React$3.createElement(Editor$2, {
|
|
33128
33146
|
plugins: this.plugins,
|
|
@@ -33161,7 +33179,7 @@ class Editor extends React$3.Component {
|
|
|
33161
33179
|
__self: this,
|
|
33162
33180
|
__source: {
|
|
33163
33181
|
fileName: _jsxFileName$2,
|
|
33164
|
-
lineNumber:
|
|
33182
|
+
lineNumber: 552
|
|
33165
33183
|
}
|
|
33166
33184
|
}));
|
|
33167
33185
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/extended-text-entry",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.3",
|
|
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/editable-html": "^7.
|
|
15
|
+
"@pie-lib/editable-html": "^7.19.1",
|
|
16
16
|
"@pie-lib/math-rendering": "^2.3.12",
|
|
17
17
|
"@pie-lib/render-ui": "^4.12.4",
|
|
18
18
|
"classnames": "^2.2.5",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react": "^16.8.1",
|
|
23
23
|
"react-dom": "^16.8.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "711fb90f7f30b2b7438fd252d104b2c9c25accba",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"postpublish": "../../scripts/postpublish"
|
|
28
28
|
},
|