@pie-element/explicit-constructed-response 6.10.2 → 6.10.3-next.10
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/element.js +23 -21
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/module/print.js +23 -21
- package/package.json +3 -3
package/configure/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@material-ui/core": "^3.9.2",
|
|
9
9
|
"@material-ui/icons": "^3.0.1",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "1.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.15.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"debug": "^3.1.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
package/controller/package.json
CHANGED
package/module/element.js
CHANGED
|
@@ -120609,31 +120609,33 @@ const require$$11$2 = _dll_prop_types;
|
|
|
120609
120609
|
}, {
|
|
120610
120610
|
key: "alignImages",
|
|
120611
120611
|
value: function alignImages() {
|
|
120612
|
-
var
|
|
120613
|
-
|
|
120614
|
-
|
|
120615
|
-
|
|
120616
|
-
|
|
120617
|
-
|
|
120618
|
-
|
|
120619
|
-
|
|
120620
|
-
|
|
120621
|
-
|
|
120622
|
-
|
|
120623
|
-
|
|
120624
|
-
|
|
120625
|
-
|
|
120626
|
-
|
|
120627
|
-
|
|
120612
|
+
var previewPrompts = document.querySelectorAll('#preview-prompt');
|
|
120613
|
+
previewPrompts.forEach(function (previewPrompt) {
|
|
120614
|
+
var images = previewPrompt.getElementsByTagName('img');
|
|
120615
|
+
if (images && images.length) {
|
|
120616
|
+
var _iterator = _createForOfIteratorHelper(images), _step;
|
|
120617
|
+
try {
|
|
120618
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
120619
|
+
var image = _step.value;
|
|
120620
|
+
if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
|
|
120621
|
+
var parentNode = image.parentElement;
|
|
120622
|
+
if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
|
|
120623
|
+
var div = document.createElement('div');
|
|
120624
|
+
div.style.display = 'flex';
|
|
120625
|
+
div.style.width = '100%';
|
|
120626
|
+
var copyImage = image.cloneNode(true);
|
|
120627
|
+
div.appendChild(copyImage);
|
|
120628
|
+
parentNode.replaceChild(div, image);
|
|
120629
|
+
}
|
|
120628
120630
|
}
|
|
120629
120631
|
}
|
|
120632
|
+
} catch (err) {
|
|
120633
|
+
_iterator.e(err);
|
|
120634
|
+
} finally {
|
|
120635
|
+
_iterator.f();
|
|
120630
120636
|
}
|
|
120631
|
-
} catch (err) {
|
|
120632
|
-
_iterator.e(err);
|
|
120633
|
-
} finally {
|
|
120634
|
-
_iterator.f();
|
|
120635
120637
|
}
|
|
120636
|
-
}
|
|
120638
|
+
});
|
|
120637
120639
|
}
|
|
120638
120640
|
}, {
|
|
120639
120641
|
key: "render",
|
package/module/index.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!doctype html>
|
|
3
3
|
<html>
|
|
4
4
|
<head>
|
|
5
|
-
<title>@pie-element/explicit-constructed-response@6.10.
|
|
5
|
+
<title>@pie-element/explicit-constructed-response@6.10.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
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -120572,31 +120572,33 @@ const require$$11$2 = _dll_prop_types;
|
|
|
120572
120572
|
}, {
|
|
120573
120573
|
key: "alignImages",
|
|
120574
120574
|
value: function alignImages() {
|
|
120575
|
-
var
|
|
120576
|
-
|
|
120577
|
-
|
|
120578
|
-
|
|
120579
|
-
|
|
120580
|
-
|
|
120581
|
-
|
|
120582
|
-
|
|
120583
|
-
|
|
120584
|
-
|
|
120585
|
-
|
|
120586
|
-
|
|
120587
|
-
|
|
120588
|
-
|
|
120589
|
-
|
|
120590
|
-
|
|
120575
|
+
var previewPrompts = document.querySelectorAll('#preview-prompt');
|
|
120576
|
+
previewPrompts.forEach(function (previewPrompt) {
|
|
120577
|
+
var images = previewPrompt.getElementsByTagName('img');
|
|
120578
|
+
if (images && images.length) {
|
|
120579
|
+
var _iterator = _createForOfIteratorHelper(images), _step;
|
|
120580
|
+
try {
|
|
120581
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
120582
|
+
var image = _step.value;
|
|
120583
|
+
if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
|
|
120584
|
+
var parentNode = image.parentElement;
|
|
120585
|
+
if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
|
|
120586
|
+
var div = document.createElement('div');
|
|
120587
|
+
div.style.display = 'flex';
|
|
120588
|
+
div.style.width = '100%';
|
|
120589
|
+
var copyImage = image.cloneNode(true);
|
|
120590
|
+
div.appendChild(copyImage);
|
|
120591
|
+
parentNode.replaceChild(div, image);
|
|
120592
|
+
}
|
|
120591
120593
|
}
|
|
120592
120594
|
}
|
|
120595
|
+
} catch (err) {
|
|
120596
|
+
_iterator.e(err);
|
|
120597
|
+
} finally {
|
|
120598
|
+
_iterator.f();
|
|
120593
120599
|
}
|
|
120594
|
-
} catch (err) {
|
|
120595
|
-
_iterator.e(err);
|
|
120596
|
-
} finally {
|
|
120597
|
-
_iterator.f();
|
|
120598
120600
|
}
|
|
120599
|
-
}
|
|
120601
|
+
});
|
|
120600
120602
|
}
|
|
120601
120603
|
}, {
|
|
120602
120604
|
key: "render",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "6.10.
|
|
7
|
+
"version": "6.10.3-next.10+5fa3e462b",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"postpublish": "../../scripts/postpublish"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@material-ui/core": "^3.9.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "1.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.15.0",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"lodash": "^4.17.10",
|
|
18
18
|
"prop-types": "^15.6.1",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "ISC",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "5fa3e462b8fe802214f4540b571f9ef9213356d0",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|