@vivliostyle/cli 9.3.3 → 9.4.0

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Logger,
3
3
  useTmpDirectory
4
- } from "./chunk-A7YURMH3.js";
4
+ } from "./chunk-HCZKJQUX.js";
5
5
 
6
6
  // src/config/vite.ts
7
7
  import upath from "upath";
@@ -74,4 +74,4 @@ async function resolveViteConfig({
74
74
  export {
75
75
  resolveViteConfig
76
76
  };
77
- //# sourceMappingURL=chunk-4WLI325X.js.map
77
+ //# sourceMappingURL=chunk-4V7POPZ3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveViteConfig
3
- } from "./chunk-4WLI325X.js";
3
+ } from "./chunk-4V7POPZ3.js";
4
4
  import {
5
5
  createViteServer,
6
6
  getViewerFullUrl,
@@ -9,13 +9,13 @@ import {
9
9
  mergeInlineConfig,
10
10
  resolveTaskConfig,
11
11
  warnDeprecatedConfig
12
- } from "./chunk-2E4GDR4I.js";
12
+ } from "./chunk-5YYKJN5S.js";
13
13
  import {
14
14
  Logger,
15
15
  isUnicodeSupported,
16
16
  randomBookSymbol,
17
17
  setupConfigFromFlags
18
- } from "./chunk-A7YURMH3.js";
18
+ } from "./chunk-HCZKJQUX.js";
19
19
  import {
20
20
  cliVersion
21
21
  } from "./chunk-4IIM6RSG.js";
@@ -85,4 +85,4 @@ ${blueBright("\u2559\u2500")} ${dim(`Preview URL: ${terminalLink(url, url, { fal
85
85
  export {
86
86
  preview
87
87
  };
88
- //# sourceMappingURL=chunk-TMMV5JVS.js.map
88
+ //# sourceMappingURL=chunk-5A3MDEJ4.js.map
@@ -25,10 +25,10 @@ import {
25
25
  touchTmpFile,
26
26
  useTmpDirectory,
27
27
  writeFileIfChanged
28
- } from "./chunk-A7YURMH3.js";
28
+ } from "./chunk-HCZKJQUX.js";
29
29
  import {
30
30
  VivliostyleConfigSchema
31
- } from "./chunk-GKPT4TWW.js";
31
+ } from "./chunk-YUYXQJDY.js";
32
32
  import {
33
33
  CONTAINER_LOCAL_HOSTNAME,
34
34
  CONTAINER_URL,
@@ -1567,12 +1567,20 @@ var getTocHtmlStyle = ({
1567
1567
  return (
1568
1568
  /* css */
1569
1569
  `
1570
- ${pageBreakBefore ? `:root {
1570
+ ${pageBreakBefore ? (
1571
+ /* css */
1572
+ `:root {
1571
1573
  break-before: ${pageBreakBefore};
1572
- }` : ""}
1573
- ${typeof pageCounterReset === "number" ? `@page :nth(1) {
1574
- counter-reset: page ${Math.floor(pageCounterReset - 1)};
1575
- }` : ""}
1574
+ }`
1575
+ ) : ""}
1576
+ ${// Note: `--vs-document-first-page-counter-reset` is reserved variable name in Vivliostyle base themes
1577
+ typeof pageCounterReset === "number" ? (
1578
+ /* css */
1579
+ `@page :nth(1) {
1580
+ --vs-document-first-page-counter-reset: page ${Math.floor(pageCounterReset - 1)};
1581
+ counter-reset: var(--vs-document-first-page-counter-reset);
1582
+ }`
1583
+ ) : ""}
1576
1584
  `
1577
1585
  );
1578
1586
  };
@@ -2773,7 +2781,6 @@ async function copyWebPublicationAssets({
2773
2781
  outputDir,
2774
2782
  entries
2775
2783
  }) {
2776
- debugger;
2777
2784
  const relExportAliases = exportAliases.map(({ source, target }) => ({
2778
2785
  source: upath6.relative(input, source),
2779
2786
  target: upath6.relative(input, target)
@@ -3957,4 +3964,4 @@ export {
3957
3964
  getViewerFullUrl,
3958
3965
  createViteServer
3959
3966
  };
3960
- //# sourceMappingURL=chunk-2E4GDR4I.js.map
3967
+ //# sourceMappingURL=chunk-5YYKJN5S.js.map