gutterpress 0.11.16 → 0.11.17-alpha.2
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/dist/api/index.js +2 -2
- package/dist/{build-8epzrj8g.js → build-1p999cmg.js} +4 -4
- package/dist/{cli-ev175hx9.js → cli-6z5zthzt.js} +138 -93
- package/dist/{cli-0prrt9e4.js → cli-70xgehq2.js} +1 -1
- package/dist/{cli-wqy8hnnh.js → cli-gymfg04q.js} +8 -6
- package/dist/{cli-182j48xc.js → cli-ppc0vz4b.js} +1 -1
- package/dist/cli.js +12 -12
- package/dist/{doctor-24mbx7y1.js → doctor-reqpnn3h.js} +2 -2
- package/dist/engine/shared/synthesis.d.ts +8 -0
- package/dist/{engine-j5h953pg.js → engine-078ggczp.js} +1 -1
- package/dist/{engine-w17dbt4f.js → engine-5jzhjjvv.js} +2 -2
- package/dist/{ext-p9gx5aac.js → ext-dsbfejt3.js} +4 -4
- package/dist/{gutterpress-viewer-swz6bwfa.js → gutterpress-viewer-zkv2stfy.js} +51 -6
- package/dist/{index-qep93v0z.js → index-5dcj1vts.js} +7 -5
- package/dist/{index-40achhs8.js → index-c275p061.js} +137 -90
- package/dist/{index-ee7wp8q3.js → index-eyaj6nkc.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/lib/markdown/assemble.d.ts +10 -0
- package/dist/lib/markdown/index.d.ts +10 -0
- package/dist/lib/static-serve.d.ts +6 -0
- package/dist/{new-wsjsrm7w.js → new-m5y2wepr.js} +4 -4
- package/dist/{preflight-0fjjnk9e.js → preflight-bwpqwwny.js} +4 -4
- package/dist/preview/file-watcher.d.ts +5 -1
- package/dist/preview/server-context.d.ts +10 -0
- package/dist/{preview-azy06gw0.js → preview-62y7qhkp.js} +4 -4
- package/dist/{preview-interface-5wnzrvhf.js → preview-interface-c44qk17f.js} +7 -2
- package/dist/{publish-8db67m2h.js → publish-k2zyt3x6.js} +4 -4
- package/dist/render.js +2 -1
- package/dist/{validate-e7mw1xyd.js → validate-fgwwxtbn.js} +4 -4
- package/package.json +1 -1
|
@@ -1034,9 +1034,14 @@
|
|
|
1034
1034
|
document.body.style.removeProperty('--gutterpress-fit-zoom');
|
|
1035
1035
|
document.documentElement.style.setProperty('--gutterpress-zoom', z);
|
|
1036
1036
|
// A host "fit to width" scale means nothing should scroll sideways.
|
|
1037
|
-
// Device-pixel rounding (fractional OS scaling)
|
|
1038
|
-
// the sheet
|
|
1037
|
+
// Device-pixel rounding (fractional OS scaling), art reaching past
|
|
1038
|
+
// the sheet, or a run box wider than its sheets can still overflow;
|
|
1039
|
+
// clip it in fit mode only. The body clips (`clip`, unlike `hidden`,
|
|
1040
|
+
// leaves nothing to scroll, so scrollIntoView and a sideways swipe
|
|
1041
|
+
// cannot shift the book either). The root stays `hidden`, which stops
|
|
1042
|
+
// the body's `clip` propagating to the viewport (#353).
|
|
1039
1043
|
document.documentElement.style.overflowX = fit ? 'hidden' : '';
|
|
1044
|
+
document.body.style.overflowX = fit ? 'clip' : '';
|
|
1040
1045
|
});
|
|
1041
1046
|
if (!silent) api.notifyPageChange();
|
|
1042
1047
|
},
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
publishProviderFor,
|
|
12
12
|
resolvePublishFormat,
|
|
13
13
|
runPublish
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-6z5zthzt.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-70xgehq2.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
23
|
+
} from "./cli-ppc0vz4b.js";
|
|
24
|
+
import"./cli-gymfg04q.js";
|
|
25
25
|
import {
|
|
26
26
|
EXIT_CODES
|
|
27
27
|
} from "./cli-46ycxe6r.js";
|
package/dist/render.js
CHANGED
|
@@ -2134,8 +2134,9 @@ ${projectCss.trim()}` : null
|
|
|
2134
2134
|
`);
|
|
2135
2135
|
const preloadTags = (opts.preloadImages ?? []).map((href) => `
|
|
2136
2136
|
<link rel="preload" as="image" href="${href}">`).join("");
|
|
2137
|
+
const printAttrs = (opts.print?.signature && opts.print.signature > 1 ? ` data-gp-signature="${opts.print.signature}"` : "") + (opts.print?.reserveLastPage ? " data-gp-reserve-last-page" : "");
|
|
2137
2138
|
return `<!DOCTYPE html>
|
|
2138
|
-
<html lang="en">
|
|
2139
|
+
<html lang="en"${printAttrs}>
|
|
2139
2140
|
<head>
|
|
2140
2141
|
<meta charset="UTF-8">
|
|
2141
2142
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-6z5zthzt.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-70xgehq2.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
} from "./cli-ppc0vz4b.js";
|
|
12
|
+
import"./cli-gymfg04q.js";
|
|
13
13
|
import {
|
|
14
14
|
BuildError,
|
|
15
15
|
EXIT_CODES
|
package/package.json
CHANGED