Fix App.jsx two-page workflow JSX render and update study app layout
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
import { XmlAttributeComponent } from './default-attributes';
|
||||
export declare class Attributes extends XmlAttributeComponent<{
|
||||
readonly val?: string | number | boolean;
|
||||
readonly color?: string;
|
||||
readonly fill?: string;
|
||||
readonly space?: string;
|
||||
readonly sz?: string;
|
||||
readonly type?: string;
|
||||
readonly rsidR?: string;
|
||||
readonly rsidRPr?: string;
|
||||
readonly rsidSect?: string;
|
||||
readonly w?: string;
|
||||
readonly h?: string;
|
||||
readonly top?: string;
|
||||
readonly right?: string;
|
||||
readonly bottom?: string;
|
||||
readonly left?: string;
|
||||
readonly header?: string;
|
||||
readonly footer?: string;
|
||||
readonly gutter?: string;
|
||||
readonly linePitch?: string;
|
||||
readonly pos?: string | number;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
val: string;
|
||||
color: string;
|
||||
fill: string;
|
||||
space: string;
|
||||
sz: string;
|
||||
type: string;
|
||||
rsidR: string;
|
||||
rsidRPr: string;
|
||||
rsidSect: string;
|
||||
w: string;
|
||||
h: string;
|
||||
top: string;
|
||||
right: string;
|
||||
bottom: string;
|
||||
left: string;
|
||||
header: string;
|
||||
footer: string;
|
||||
gutter: string;
|
||||
linePitch: string;
|
||||
pos: string;
|
||||
};
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import { IViewWrapper } from '../document-wrapper';
|
||||
import { File } from '../file';
|
||||
import { IXmlableObject } from './xmlable-object';
|
||||
export type IContext = {
|
||||
readonly file: File;
|
||||
readonly viewWrapper: IViewWrapper;
|
||||
readonly stack: IXmlableObject[];
|
||||
};
|
||||
export declare abstract class BaseXmlComponent {
|
||||
protected readonly rootKey: string;
|
||||
constructor(rootKey: string);
|
||||
abstract prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { BaseXmlComponent, IContext } from './base';
|
||||
import { IXmlableObject } from './xmlable-object';
|
||||
export type AttributeMap<T> = Record<keyof T, string>;
|
||||
export type AttributeData = Record<string, boolean | number | string>;
|
||||
export type AttributePayload<T> = {
|
||||
readonly [P in keyof T]: {
|
||||
readonly key: string;
|
||||
readonly value: T[P];
|
||||
};
|
||||
};
|
||||
export declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
|
||||
private readonly root;
|
||||
protected readonly xmlKeys?: AttributeMap<T>;
|
||||
constructor(root: T);
|
||||
prepForXml(_: IContext): IXmlableObject;
|
||||
}
|
||||
export declare class NextAttributeComponent<T extends AttributeData> extends BaseXmlComponent {
|
||||
private readonly root;
|
||||
constructor(root: AttributePayload<T>);
|
||||
prepForXml(_: IContext): IXmlableObject;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { Element as XmlElement } from 'xml-js';
|
||||
import { IXmlableObject, XmlComponent } from '.';
|
||||
import { IContext } from './base';
|
||||
export declare const convertToXmlComponent: (element: XmlElement) => ImportedXmlComponent | string | undefined;
|
||||
export declare class ImportedXmlComponent extends XmlComponent {
|
||||
static fromXmlString(importedContent: string): ImportedXmlComponent;
|
||||
constructor(rootKey: string, _attr?: any);
|
||||
push(xmlComponent: XmlComponent | string): void;
|
||||
}
|
||||
export declare class ImportedRootElementAttributes extends XmlComponent {
|
||||
private readonly _attr;
|
||||
constructor(_attr: any);
|
||||
prepForXml(_: IContext): IXmlableObject;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
export * from './xml-component';
|
||||
export * from './attributes';
|
||||
export * from './default-attributes';
|
||||
export * from './imported-xml-component';
|
||||
export * from './xmlable-object';
|
||||
export * from './initializable-xml-component';
|
||||
export * from './simple-elements';
|
||||
export * from './base';
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '.';
|
||||
export declare abstract class InitializableXmlComponent extends XmlComponent {
|
||||
constructor(rootKey: string, initComponent?: InitializableXmlComponent);
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
import { AttributeData, AttributePayload, XmlComponent } from '.';
|
||||
import { PositiveUniversalMeasure } from '../../util/values';
|
||||
export declare class OnOffElement extends XmlComponent {
|
||||
constructor(name: string, val?: boolean | undefined);
|
||||
}
|
||||
export declare class HpsMeasureElement extends XmlComponent {
|
||||
constructor(name: string, val: number | PositiveUniversalMeasure);
|
||||
}
|
||||
export declare class EmptyElement extends XmlComponent {
|
||||
}
|
||||
export declare class StringValueElement extends XmlComponent {
|
||||
constructor(name: string, val: string);
|
||||
}
|
||||
export declare const createStringElement: (name: string, value: string) => XmlComponent;
|
||||
export declare class NumberValueElement extends XmlComponent {
|
||||
constructor(name: string, val: number);
|
||||
}
|
||||
export declare class StringEnumValueElement<T extends string> extends XmlComponent {
|
||||
constructor(name: string, val: T);
|
||||
}
|
||||
export declare class StringContainer extends XmlComponent {
|
||||
constructor(name: string, val: string);
|
||||
}
|
||||
export declare class BuilderElement<T extends AttributeData = {}> extends XmlComponent {
|
||||
constructor({ name, attributes, children, }: {
|
||||
readonly name: string;
|
||||
readonly attributes?: AttributePayload<T>;
|
||||
readonly children?: readonly XmlComponent[];
|
||||
});
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { BaseXmlComponent, IContext } from './base';
|
||||
import { IXmlableObject } from './xmlable-object';
|
||||
export declare const EMPTY_OBJECT: {};
|
||||
export declare abstract class XmlComponent extends BaseXmlComponent {
|
||||
protected root: (BaseXmlComponent | string | any)[];
|
||||
constructor(rootKey: string);
|
||||
prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
addChildElement(child: XmlComponent | string): XmlComponent;
|
||||
}
|
||||
export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
||||
private readonly includeIfEmpty;
|
||||
constructor(rootKey: string, includeIfEmpty?: boolean);
|
||||
prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export type IXmlAttribute = Readonly<Record<string, string | number | boolean>>;
|
||||
export interface IXmlableObject extends Record<string, unknown> {
|
||||
readonly [key: string]: any;
|
||||
}
|
||||
export declare const WORKAROUND3 = "";
|
||||
Reference in New Issue
Block a user