New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vivliostyle/cli

Package Overview
Dependencies
Maintainers
0
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivliostyle/cli - npm Package Compare versions

Comparing version

to
9.0.0-next.6

dist/chunk-DMGAKSPH.js

6

dist/commands/build.js
import {
build
} from "../chunk-UQHNZL7X.js";
import "../chunk-4ZNBH6IA.js";
} from "../chunk-DMGAKSPH.js";
import "../chunk-QC3BOE2G.js";
import {

@@ -10,3 +10,3 @@ Logger,

parseFlagsToInlineConfig
} from "../chunk-SPYTZBBG.js";
} from "../chunk-VBEHGS67.js";
import "../chunk-EX7EA34F.js";

@@ -13,0 +13,0 @@ import "../chunk-WX6JHPSL.js";

import {
init
} from "../chunk-6ETFX7W2.js";
} from "../chunk-E7QOXL6M.js";
import {
gracefulError,
parseFlagsToInlineConfig
} from "../chunk-SPYTZBBG.js";
} from "../chunk-VBEHGS67.js";
import "../chunk-EX7EA34F.js";

@@ -9,0 +9,0 @@ import "../chunk-WX6JHPSL.js";

import {
preview
} from "../chunk-BT47BDZK.js";
import "../chunk-4ZNBH6IA.js";
} from "../chunk-LASMQBPP.js";
import "../chunk-QC3BOE2G.js";
import {
gracefulError,
parseFlagsToInlineConfig
} from "../chunk-SPYTZBBG.js";
} from "../chunk-VBEHGS67.js";
import "../chunk-EX7EA34F.js";

@@ -10,0 +10,0 @@ import "../chunk-WX6JHPSL.js";

import * as vite from 'vite';
import { ResolvedConfig, UserConfig } from 'vite';
import { StructuredDocument, StructuredDocumentSection, InputFormat, BrowserType, ParsedVivliostyleInlineConfig, VivliostyleInlineConfig } from './config/schema.js';
export { VivliostyleConfigSchema } from './config/schema.js';
import { VivliostyleInlineConfig } from './config/schema.js';
export { StructuredDocument, StructuredDocumentSection, VivliostyleConfigSchema } from './config/schema.js';
export { createVitePlugin } from './vite-adapter.js';
import { StringifyMarkdownOptions, Metadata } from '@vivliostyle/vfm';
import { Processor } from 'unified';
import '@vivliostyle/vfm';
import 'unified';
import 'valibot';

@@ -114,212 +113,4 @@

type ParsedTheme = UriTheme | FileTheme | PackageTheme;
interface UriTheme {
type: 'uri';
name: string;
location: string;
}
interface FileTheme {
type: 'file';
name: string;
source: string;
location: string;
}
interface PackageTheme {
type: 'package';
name: string;
specifier: string;
location: string;
importPath?: string | string[];
}
type EntrySource = FileEntrySource | UriEntrySource;
interface FileEntrySource {
type: 'file';
pathname: string;
contentType: ManuscriptMediaType;
}
interface UriEntrySource {
type: 'uri';
href: string;
rootDir: string;
}
declare const manuscriptMediaTypes: readonly ["text/markdown", "text/html", "application/xhtml+xml"];
type ManuscriptMediaType = (typeof manuscriptMediaTypes)[number];
interface ManuscriptEntry {
contentType: ManuscriptMediaType;
title?: string;
themes: ParsedTheme[];
source: EntrySource;
template?: undefined;
target: string;
rel?: string | string[];
}
interface ContentsEntry {
rel: 'contents';
title?: string;
themes: ParsedTheme[];
source?: undefined;
template?: EntrySource;
target: string;
tocTitle: string;
sectionDepth: number;
transform: {
transformDocumentList: ((nodeList: StructuredDocument[]) => (propsList: {
children: any;
}[]) => any) | undefined;
transformSectionList: ((nodeList: StructuredDocumentSection[]) => (propsList: {
children: any;
}[]) => any) | undefined;
};
pageBreakBefore?: 'left' | 'right' | 'recto' | 'verso';
pageCounterReset?: number;
}
interface CoverEntry {
rel: 'cover';
title?: string;
themes: ParsedTheme[];
source?: undefined;
template?: EntrySource;
target: string;
coverImageSrc: string;
coverImageAlt: string;
pageBreakBefore?: 'left' | 'right' | 'recto' | 'verso';
}
type ParsedEntry = ManuscriptEntry | ContentsEntry | CoverEntry;
interface WebPublicationManifestConfig {
type: 'webpub';
manifestPath: string;
needToGenerateManifest: boolean;
}
interface EpubEntryConfig {
type: 'epub';
epubPath: string;
epubTmpOutputDir: string;
}
interface EpubOpfEntryConfig {
type: 'epub-opf';
epubOpfPath: string;
}
interface WebBookEntryConfig {
type: 'webbook';
webbookEntryUrl: string;
webbookPath: string | undefined;
}
type ViewerInputConfig = WebPublicationManifestConfig | EpubEntryConfig | EpubOpfEntryConfig | WebBookEntryConfig;
interface PdfOutput {
format: 'pdf';
path: string;
renderMode: 'local' | 'docker';
preflight: 'press-ready' | 'press-ready-local' | undefined;
preflightOption: string[];
}
interface WebPublicationOutput {
format: 'webpub';
path: string;
}
interface EpubOutput {
format: 'epub';
path: string;
version: '3.0';
}
type OutputConfig = PdfOutput | WebPublicationOutput | EpubOutput;
type PageSize = {
format: string;
} | {
width: string;
height: string;
};
type DocumentProcessorFactory = (options: StringifyMarkdownOptions, metadata: Metadata) => Processor;
type ResolvedTaskConfig = {
context: string;
entryContextDir: string;
workspaceDir: string;
themesDir: string;
entries: ParsedEntry[];
input: {
format: InputFormat;
entry: string;
};
viewerInput: ViewerInputConfig;
outputs: OutputConfig[];
themeIndexes: Set<ParsedTheme>;
copyAsset: {
includes: string[];
excludes: string[];
fileExtensions: string[];
};
exportAliases: {
source: string;
target: string;
}[];
temporaryFilePrefix: string;
size: PageSize | undefined;
cropMarks: boolean;
bleed: string | undefined;
cropOffset: string | undefined;
css: string | undefined;
customStyle: string | undefined;
customUserStyle: string | undefined;
singleDoc: boolean;
quick: boolean;
title: string | undefined;
author: string | undefined;
language: string | undefined;
readingProgression: 'ltr' | 'rtl' | undefined;
documentProcessorFactory: DocumentProcessorFactory;
vfmOptions: {
hardLineBreaks: boolean;
disableFormatHtml: boolean;
};
cover: {
src: string;
name: string;
} | undefined;
timeout: number;
sandbox: boolean;
browser: {
type: BrowserType;
executablePath: string | undefined;
};
proxy: {
server: string;
bypass: string | undefined;
username: string | undefined;
password: string | undefined;
} | undefined;
image: string;
viewer: string | undefined;
viewerParam: string | undefined;
logLevel: 'silent' | 'info' | 'verbose' | 'debug';
ignoreHttpsErrors: boolean;
base: string;
server: Required<Pick<ResolvedConfig['server'], 'host' | 'port' | 'proxy'>>;
static: Record<string, string[]>;
rootUrl: string;
viteConfig: UserConfig | undefined;
viteConfigFile: string | boolean;
};
declare function vsBrowserPlugin({ config: _config, inlineConfig, }: {
config: ResolvedTaskConfig;
inlineConfig: ParsedVivliostyleInlineConfig;
}): vite.Plugin;
declare function vsDevServerPlugin({ config: _config, inlineConfig, }: {
config: ResolvedTaskConfig;
inlineConfig: ParsedVivliostyleInlineConfig;
}): vite.Plugin;
declare function vsStaticServePlugin({ config: _config, inlineConfig, }: {
config: ResolvedTaskConfig;
inlineConfig: ParsedVivliostyleInlineConfig;
}): vite.Plugin;
declare function vsViewerPlugin(_?: {
config: ResolvedTaskConfig;
inlineConfig: ParsedVivliostyleInlineConfig;
}): vite.Plugin;
/** @hidden */
type PublicationManifest = PublicationManifest$1;
/**

@@ -355,2 +146,2 @@ * Build publication file(s) from the given configuration.

export { type PublicationManifest, StructuredDocument, StructuredDocumentSection, build, init, preview, vsBrowserPlugin, vsDevServerPlugin, vsStaticServePlugin, vsViewerPlugin };
export { type PublicationManifest, build, init, preview };
import {
createVitePlugin
} from "./chunk-BPSQMFSC.js";
} from "./chunk-Y3ETBU5J.js";
import {
build
} from "./chunk-UQHNZL7X.js";
} from "./chunk-DMGAKSPH.js";
import {
init
} from "./chunk-6ETFX7W2.js";
} from "./chunk-E7QOXL6M.js";
import {
preview
} from "./chunk-BT47BDZK.js";
import "./chunk-4ZNBH6IA.js";
import {
vsBrowserPlugin,
vsDevServerPlugin,
vsStaticServePlugin,
vsViewerPlugin
} from "./chunk-SPYTZBBG.js";
} from "./chunk-LASMQBPP.js";
import "./chunk-QC3BOE2G.js";
import "./chunk-VBEHGS67.js";
import "./chunk-EX7EA34F.js";

@@ -45,7 +40,3 @@ import "./chunk-WX6JHPSL.js";

init2 as init,
preview2 as preview,
vsBrowserPlugin,
vsDevServerPlugin,
vsStaticServePlugin,
vsViewerPlugin
preview2 as preview
};
import {
createVitePlugin
} from "./chunk-BPSQMFSC.js";
import "./chunk-SPYTZBBG.js";
} from "./chunk-Y3ETBU5J.js";
import "./chunk-VBEHGS67.js";
import "./chunk-EX7EA34F.js";

@@ -6,0 +6,0 @@ import "./chunk-WX6JHPSL.js";

{
"name": "@vivliostyle/cli",
"description": "Save the pdf file via headless browser and Vivliostyle.",
"version": "9.0.0-next.5",
"version": "9.0.0-next.6",
"author": "spring_raining <harusamex.com@gmail.com>",

@@ -6,0 +6,0 @@ "type": "module",

Sorry, the diff of this file is too big to display