Comparing version 0.100.0 to 0.101.0
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ import type { Keys } from './types-utils'; | ||
/* 0.101.0 */ import type { Keys } from './types-utils'; | ||
import type { ParseMode, Style, TabularEnvironment } from './core-types'; | ||
@@ -3,0 +3,0 @@ import type { InsertOptions, Mathfield, Model } from './mathfield'; |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle'; | ||
/* 0.101.0 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle'; | ||
/** @internal */ | ||
@@ -3,0 +3,0 @@ export type ArgumentType = ParseMode | ('bbox' | 'colspec' | 'delim' | 'value' | 'rest' | 'string' | 'balanced-string' | 'expression' | 'auto'); |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ import type { Selector } from './commands'; | ||
/* 0.101.0 */ import type { Selector } from './commands'; | ||
import type { LatexSyntaxError, MacroDictionary, ParseMode, Registers, Style } from './core-types'; | ||
@@ -3,0 +3,0 @@ import type { InsertOptions, OutputFormat, Offset, Range, Selection, Mathfield, ElementInfo } from './mathfield'; |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ import type { Selector } from './commands'; | ||
/* 0.101.0 */ import type { Selector } from './commands'; | ||
import type { ParseMode, Style } from './core-types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ /** | ||
/* 0.101.0 */ /** | ||
* Server-side rendering exports. | ||
@@ -12,2 +12,3 @@ * | ||
import '../core/modes'; | ||
import { LayoutOptions } from './options'; | ||
/** | ||
@@ -47,7 +48,3 @@ * Convert a LaTeX string to a string of HTML markup. | ||
*/ | ||
export declare function convertLatexToMarkup(text: string, options?: { | ||
mathstyle?: 'displaystyle' | 'textstyle'; | ||
letterShapeStyle?: 'tex' | 'french' | 'iso' | 'upright'; | ||
context?: unknown; | ||
}): string; | ||
export declare function convertLatexToMarkup(text: string, options?: Partial<LayoutOptions>): string; | ||
export declare function validateLatex(s: string): LatexSyntaxError[]; | ||
@@ -54,0 +51,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ /** | ||
/* 0.101.0 */ /** | ||
* | ||
@@ -23,3 +23,3 @@ * Importing this package in a web page will make the `<math-field>` custom | ||
* @packageDocumentation Mathfield API Reference | ||
* @version 0.100.0 | ||
* @version 0.101.0 | ||
* | ||
@@ -26,0 +26,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ import type { Mathfield, Range } from './mathfield'; | ||
/* 0.101.0 */ import type { Mathfield, Range } from './mathfield'; | ||
import type { Selector } from './commands'; | ||
@@ -569,3 +569,3 @@ import type { ParseMode, MacroDictionary, Registers } from './core-types'; | ||
/** @category Static Rendering */ | ||
export type StaticRenderOptions = { | ||
export type StaticRenderOptions = Partial<LayoutOptions> & { | ||
/** | ||
@@ -572,0 +572,0 @@ * An array of tag names whose content will not be scanned for delimiters |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ /** | ||
/* 0.101.0 */ /** | ||
* @internal | ||
@@ -3,0 +3,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ export type KeyboardModifiers = { | ||
/* 0.101.0 */ export type KeyboardModifiers = { | ||
alt: boolean; | ||
@@ -3,0 +3,0 @@ control: boolean; |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ import type { KeyboardModifiers } from './ui-events-types'; | ||
/* 0.101.0 */ import type { KeyboardModifiers } from './ui-events-types'; | ||
/** | ||
@@ -3,0 +3,0 @@ * The type of a menu item: |
@@ -1,2 +0,2 @@ | ||
/* 0.100.0 */ import type { Selector } from './commands'; | ||
/* 0.101.0 */ import type { Selector } from './commands'; | ||
import type { ParseMode, Style } from './core-types'; | ||
@@ -55,8 +55,2 @@ import type { OriginValidator } from './options'; | ||
/** | ||
* HTML markup to represent the keycap. | ||
* | ||
* This property is only useful when using a custom keycap shape or appearance. | ||
* Usually, setting the `label` property is sufficient. | ||
*/ | ||
/** | ||
* Markup displayed with the key label (for example to explain what the | ||
@@ -174,2 +168,7 @@ * symbol of the key is) | ||
set layouts(value: VirtualKeyboardName | VirtualKeyboardLayout | (VirtualKeyboardName | VirtualKeyboardLayout)[] | Readonly<(VirtualKeyboardName | VirtualKeyboardLayout)[]>); | ||
/** | ||
* This property is the "expanded" version of the `layouts` property. | ||
* It is normalized to include all the default values for the properties | ||
* of the layout and layers. | ||
*/ | ||
readonly normalizedLayouts: (VirtualKeyboardLayoutCore & { | ||
@@ -179,2 +178,16 @@ layers: NormalizedVirtualKeyboardLayer[]; | ||
/** | ||
* Some keycaps can be customized: | ||
* `[left]`, `[right]`, `[up]`, `[down]`, `[return]`, `[action]`, | ||
* `[space]`, `[tab]`, `[backspace]`, `[shift]`, | ||
* `[undo]`, `[redo]`, `[foreground-color]`, `[background-color]`, | ||
* `[hide-keyboard]`, | ||
* `[.]`, `[,]`, | ||
* `[0]`, `[1]`, `[2]`, `[3]`, `[4]`, | ||
* `[5]`, `[6]`, `[7]`, `[8]`, `[9]`, | ||
* `[+]`, `[-]`, `[*]`, `[/]`, `[^]`, `[_]`, `[=]`, `[.]`, | ||
* `[(]`, `[)]`, | ||
*/ | ||
getKeycap(keycap: string): Partial<VirtualKeyboardKeycap> | undefined; | ||
setKeycap(keycap: string, value: Partial<VirtualKeyboardKeycap>): void; | ||
/** | ||
* Configuration of the action toolbar, displayed on the right-hand side. | ||
@@ -188,6 +201,2 @@ * | ||
set alphabeticLayout(value: AlphabeticKeyboardLayout); | ||
set actionKeycap(value: string | Partial<VirtualKeyboardKeycap>); | ||
set shiftKeycap(value: string | Partial<VirtualKeyboardKeycap>); | ||
set backspaceKeycap(value: string | Partial<VirtualKeyboardKeycap>); | ||
set tabKeycap(value: string | Partial<VirtualKeyboardKeycap>); | ||
/** | ||
@@ -286,6 +295,6 @@ * Element the virtual keyboard element gets appended to. | ||
editToolbar?: EditToolbarOptions; | ||
actionKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
shiftKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
backspaceKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
tabKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
setKeycap: { | ||
keycap: string; | ||
value: Partial<VirtualKeyboardKeycap>; | ||
}; | ||
isShifted: boolean; | ||
@@ -299,6 +308,6 @@ } | { | ||
editToolbar?: EditToolbarOptions; | ||
actionKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
shiftKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
backspaceKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
tabKeycap: string | Partial<VirtualKeyboardKeycap>; | ||
setKeycap: { | ||
keycap: string; | ||
value: Partial<VirtualKeyboardKeycap>; | ||
}; | ||
} | { | ||
@@ -305,0 +314,0 @@ type: 'mathlive#virtual-keyboard-message'; |
{ | ||
"name": "mathlive", | ||
"version": "0.100.0", | ||
"version": "0.101.0", | ||
"description": "A web component for math input", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5390453
97374