Fix App.jsx two-page workflow JSX render and update study app layout
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
import { IMediaData, Media } from '../../file/media';
|
||||
export declare class ImageReplacer {
|
||||
replace(xmlData: string, mediaData: readonly IMediaData[], offset: number): string;
|
||||
getMediaData(xmlData: string, media: Media): readonly IMediaData[];
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import { default as JSZip } from 'jszip';
|
||||
import { File } from '../../file/file';
|
||||
import { PrettifyType } from './packer';
|
||||
export type IXmlifyedFile = {
|
||||
readonly data: string;
|
||||
readonly path: string;
|
||||
};
|
||||
export declare class Compiler {
|
||||
private readonly formatter;
|
||||
private readonly imageReplacer;
|
||||
private readonly numberingReplacer;
|
||||
constructor();
|
||||
compile(file: File, prettifyXml?: (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): JSZip;
|
||||
private xmlifyFile;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import { ConcreteNumbering } from '../../file/numbering';
|
||||
export declare class NumberingReplacer {
|
||||
replace(xmlData: string, concreteNumberings: readonly ConcreteNumbering[]): string;
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
import { Stream } from 'stream';
|
||||
import { File } from '../../file/file';
|
||||
import { OutputByType, OutputType } from '../../util/output-type';
|
||||
import { IXmlifyedFile } from './next-compiler';
|
||||
export declare const PrettifyType: {
|
||||
readonly NONE: "";
|
||||
readonly WITH_2_BLANKS: " ";
|
||||
readonly WITH_4_BLANKS: " ";
|
||||
readonly WITH_TAB: "\t";
|
||||
};
|
||||
export declare class Packer {
|
||||
static pack<T extends OutputType>(file: File, type: T, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType[T]>;
|
||||
static toString(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
||||
static toBuffer(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
|
||||
static toBase64String(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
||||
static toBlob(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
|
||||
static toArrayBuffer(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<ArrayBuffer>;
|
||||
static toStream(file: File, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Stream;
|
||||
private static readonly compiler;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Reference in New Issue
Block a user