@jsonresume/jsonresume-theme-professional 1.0.28 → 1.0.29
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/dist/index.js +10 -1
- package/dist/index.mjs +10 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @jsonresume/jsonresume-theme-professional
|
|
2
2
|
|
|
3
|
+
## 1.0.29
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 04aae6e: Improve PDF printing with repeating page margins, wrapping for long content, section pagination, and A4/Letter paper selection. Rebuild themes with the shared print fixes.
|
|
8
|
+
- Updated dependencies [04aae6e]
|
|
9
|
+
- @jsonresume/core@0.3.8
|
|
10
|
+
|
|
3
11
|
## 1.0.28
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1281,6 +1281,15 @@ var vt = /^\s*<\/[a-z]/i, gt = (function() {
|
|
|
1281
1281
|
var wt = "__sc-".concat(f, "__");
|
|
1282
1282
|
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[wt] || (window[wt] = 0), 1 === window[wt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[wt] += 1);
|
|
1283
1283
|
const CSS_RESET = "<style>*,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0}body{-webkit-font-smoothing:antialiased}</style>";
|
|
1284
|
+
const PRINT_DEFAULTS = `<style data-jsonresume-core-print>
|
|
1285
|
+
@page{size:auto;margin:12mm}
|
|
1286
|
+
@media print{
|
|
1287
|
+
body,h1,h2,h3,h4,p,li,a{overflow-wrap:anywhere}
|
|
1288
|
+
:where(main,aside,section,article,header,div){min-width:0}
|
|
1289
|
+
h1,h2,h3,h4,h5,h6{break-inside:avoid;break-after:avoid}
|
|
1290
|
+
p,li{orphans:2;widows:2}
|
|
1291
|
+
}
|
|
1292
|
+
</style>`;
|
|
1284
1293
|
const TOKENS_CSS_HREF = "https://unpkg.com/@jsonresume/core/dist/tokens.css";
|
|
1285
1294
|
const FONTS_PRECONNECT = '<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>';
|
|
1286
1295
|
function isHref(value) {
|
|
@@ -1338,7 +1347,7 @@ function renderResumeDocument(element, options = {}) {
|
|
|
1338
1347
|
const resetTag = reset ? CSS_RESET : "";
|
|
1339
1348
|
const titleTag = title ? `<title>${title}</title>` : "";
|
|
1340
1349
|
const bodyAttr = bodyClass ? ` class="${bodyClass}"` : "";
|
|
1341
|
-
return `<!DOCTYPE html><html lang="${lang}" dir="${dir}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">` + fontLinks + tokensLink + resetTag + head + styleTags + headAfterStyles + titleTag + `</head><body${bodyAttr}>${html}</body></html>`;
|
|
1350
|
+
return `<!DOCTYPE html><html lang="${lang}" dir="${dir}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">` + fontLinks + tokensLink + resetTag + PRINT_DEFAULTS + head + styleTags + headAfterStyles + titleTag + `</head><body${bodyAttr}>${html}</body></html>`;
|
|
1342
1351
|
}
|
|
1343
1352
|
const Section = dt.div`
|
|
1344
1353
|
max-width: 700px;
|
package/dist/index.mjs
CHANGED
|
@@ -1279,6 +1279,15 @@ var vt = /^\s*<\/[a-z]/i, gt = (function() {
|
|
|
1279
1279
|
var wt = "__sc-".concat(f, "__");
|
|
1280
1280
|
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[wt] || (window[wt] = 0), 1 === window[wt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[wt] += 1);
|
|
1281
1281
|
const CSS_RESET = "<style>*,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0}body{-webkit-font-smoothing:antialiased}</style>";
|
|
1282
|
+
const PRINT_DEFAULTS = `<style data-jsonresume-core-print>
|
|
1283
|
+
@page{size:auto;margin:12mm}
|
|
1284
|
+
@media print{
|
|
1285
|
+
body,h1,h2,h3,h4,p,li,a{overflow-wrap:anywhere}
|
|
1286
|
+
:where(main,aside,section,article,header,div){min-width:0}
|
|
1287
|
+
h1,h2,h3,h4,h5,h6{break-inside:avoid;break-after:avoid}
|
|
1288
|
+
p,li{orphans:2;widows:2}
|
|
1289
|
+
}
|
|
1290
|
+
</style>`;
|
|
1282
1291
|
const TOKENS_CSS_HREF = "https://unpkg.com/@jsonresume/core/dist/tokens.css";
|
|
1283
1292
|
const FONTS_PRECONNECT = '<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>';
|
|
1284
1293
|
function isHref(value) {
|
|
@@ -1336,7 +1345,7 @@ function renderResumeDocument(element, options = {}) {
|
|
|
1336
1345
|
const resetTag = reset ? CSS_RESET : "";
|
|
1337
1346
|
const titleTag = title ? `<title>${title}</title>` : "";
|
|
1338
1347
|
const bodyAttr = bodyClass ? ` class="${bodyClass}"` : "";
|
|
1339
|
-
return `<!DOCTYPE html><html lang="${lang}" dir="${dir}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">` + fontLinks + tokensLink + resetTag + head + styleTags + headAfterStyles + titleTag + `</head><body${bodyAttr}>${html}</body></html>`;
|
|
1348
|
+
return `<!DOCTYPE html><html lang="${lang}" dir="${dir}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">` + fontLinks + tokensLink + resetTag + PRINT_DEFAULTS + head + styleTags + headAfterStyles + titleTag + `</head><body${bodyAttr}>${html}</body></html>`;
|
|
1340
1349
|
}
|
|
1341
1350
|
const Section = dt.div`
|
|
1342
1351
|
max-width: 700px;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@jsonresume/jsonresume-theme-professional",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.29",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"marked": "^16.3.0",
|
|
20
20
|
"prismjs": "^1.29.0",
|
|
21
21
|
"react-icons": "^5.0.1",
|
|
22
|
-
"@jsonresume/core": "0.3.
|
|
22
|
+
"@jsonresume/core": "0.3.8"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
".": {
|