@pie-element/explicit-constructed-response 6.10.3-next.10 → 6.10.3-next.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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/element.js +21 -23
- package/module/print.js +21 -23
- 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.13.1",
|
|
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,33 +120609,31 @@ 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
|
-
|
|
120628
|
-
parentNode.replaceChild(div, image);
|
|
120629
|
-
}
|
|
120612
|
+
var previewPrompt = document.querySelector('#preview-prompt');
|
|
120613
|
+
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
120614
|
+
if (images && images.length) {
|
|
120615
|
+
var _iterator = _createForOfIteratorHelper(images), _step;
|
|
120616
|
+
try {
|
|
120617
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
120618
|
+
var image = _step.value;
|
|
120619
|
+
if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
|
|
120620
|
+
var parentNode = image.parentElement;
|
|
120621
|
+
if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
|
|
120622
|
+
var div = document.createElement('div');
|
|
120623
|
+
div.style.display = 'flex';
|
|
120624
|
+
div.style.width = '100%';
|
|
120625
|
+
var copyImage = image.cloneNode(true);
|
|
120626
|
+
div.appendChild(copyImage);
|
|
120627
|
+
parentNode.replaceChild(div, image);
|
|
120630
120628
|
}
|
|
120631
120629
|
}
|
|
120632
|
-
} catch (err) {
|
|
120633
|
-
_iterator.e(err);
|
|
120634
|
-
} finally {
|
|
120635
|
-
_iterator.f();
|
|
120636
120630
|
}
|
|
120631
|
+
} catch (err) {
|
|
120632
|
+
_iterator.e(err);
|
|
120633
|
+
} finally {
|
|
120634
|
+
_iterator.f();
|
|
120637
120635
|
}
|
|
120638
|
-
}
|
|
120636
|
+
}
|
|
120639
120637
|
}
|
|
120640
120638
|
}, {
|
|
120641
120639
|
key: "render",
|
package/module/print.js
CHANGED
|
@@ -120572,33 +120572,31 @@ 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
|
-
|
|
120591
|
-
parentNode.replaceChild(div, image);
|
|
120592
|
-
}
|
|
120575
|
+
var previewPrompt = document.querySelector('#preview-prompt');
|
|
120576
|
+
var images = previewPrompt && previewPrompt.getElementsByTagName('img');
|
|
120577
|
+
if (images && images.length) {
|
|
120578
|
+
var _iterator = _createForOfIteratorHelper(images), _step;
|
|
120579
|
+
try {
|
|
120580
|
+
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
120581
|
+
var image = _step.value;
|
|
120582
|
+
if (image.attributes && image.attributes.alignment && image.attributes.alignment.value) {
|
|
120583
|
+
var parentNode = image.parentElement;
|
|
120584
|
+
if (!(parentNode.tagName === 'DIV' && parentNode.style.display === 'flex' && parentNode.style.width === '100%')) {
|
|
120585
|
+
var div = document.createElement('div');
|
|
120586
|
+
div.style.display = 'flex';
|
|
120587
|
+
div.style.width = '100%';
|
|
120588
|
+
var copyImage = image.cloneNode(true);
|
|
120589
|
+
div.appendChild(copyImage);
|
|
120590
|
+
parentNode.replaceChild(div, image);
|
|
120593
120591
|
}
|
|
120594
120592
|
}
|
|
120595
|
-
} catch (err) {
|
|
120596
|
-
_iterator.e(err);
|
|
120597
|
-
} finally {
|
|
120598
|
-
_iterator.f();
|
|
120599
120593
|
}
|
|
120594
|
+
} catch (err) {
|
|
120595
|
+
_iterator.e(err);
|
|
120596
|
+
} finally {
|
|
120597
|
+
_iterator.f();
|
|
120600
120598
|
}
|
|
120601
|
-
}
|
|
120599
|
+
}
|
|
120602
120600
|
}
|
|
120603
120601
|
}, {
|
|
120604
120602
|
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.3-next.
|
|
7
|
+
"version": "6.10.3-next.3+3e101fc1a",
|
|
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.13.1",
|
|
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": "3e101fc1a0cff687f196cd6e3b2cec769eacd37c",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|