@paprize/core 0.3.0 → 0.4.1
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 229cf54: Fix invalid CSS in generated section page rules by using `margin: 0` instead of `margin: none`.
|
|
8
|
+
|
|
9
|
+
## 0.4.0
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Upgrade dependencies
|
|
14
|
+
|
|
3
15
|
## 0.3.0
|
|
4
16
|
|
|
5
17
|
### Fixed
|
package/dist/paprize-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
3
|
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
4
|
get: ((e) => i[e]).bind(null, d),
|
|
5
5
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
@@ -268,8 +268,8 @@ var N = {
|
|
|
268
268
|
}), this._node.appendChild(e.getNode());
|
|
269
269
|
}
|
|
270
270
|
clone(t) {
|
|
271
|
-
let n =
|
|
272
|
-
return M(this.config.plugins, "onClone", this.config.id, this._node,
|
|
271
|
+
let n = this._node.cloneNode(t), r = new e(n, this.transaction, this.config, this);
|
|
272
|
+
return M(this.config.plugins, "onClone", this.config.id, this._node, r), r;
|
|
273
273
|
}
|
|
274
274
|
getHeight() {
|
|
275
275
|
return C(this._node);
|
|
@@ -852,7 +852,7 @@ var ke = `
|
|
|
852
852
|
}, Fe = (e) => ({ page: `section-${e}` });
|
|
853
853
|
function Ie(e, t) {
|
|
854
854
|
return `@page section-${e} {
|
|
855
|
-
margin:
|
|
855
|
+
margin: 0;
|
|
856
856
|
size:${t.width} ${t.height};
|
|
857
857
|
width:${t.width};
|
|
858
858
|
height:${t.height};
|