Comparing version 0.90.7 to 0.90.8
@@ -1,2 +0,2 @@ | ||
/* 0.90.7 */ import type { Keys } from './types-utils'; | ||
/* 0.90.8 */ import type { Keys } from './types-utils'; | ||
import type { ParseMode, Style } from './core-types'; | ||
@@ -3,0 +3,0 @@ import type { InsertOptions, Mathfield, Model } from './mathfield'; |
@@ -1,3 +0,2 @@ | ||
/* 0.90.7 */ import { TokenDefinition } from '../core-definitions/definitions-utils'; | ||
export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle'; | ||
/* 0.90.8 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle'; | ||
export type NormalizedMacroDictionary = Record<string, MacroDefinition>; | ||
@@ -186,17 +185,1 @@ export type ArgumentType = ParseMode | ('bbox' | 'colspec' | 'delim' | 'dimen' | 'number' | 'rest' | 'glue' | 'string' | 'balanced-string' | 'auto'); | ||
export type BoxCSSProperties = 'background-color' | 'border' | 'border-bottom' | 'border-color' | 'border-left' | 'border-radius' | 'border-right' | 'border-right-width' | 'border-top' | 'border-top-width' | 'box-sizing' | 'color' | 'display' | 'font-family' | 'left' | 'font-size' | 'height' | 'line-height' | 'margin' | 'margin-top' | 'margin-left' | 'margin-right' | 'opacity' | 'padding' | 'position' | 'top' | 'vertical-align' | 'width' | 'z-index'; | ||
/** | ||
* The Global Context encapsulates information that atoms | ||
* may require in order to render correctly. Unlike `ContextInterface`, these | ||
* values do not depend of the location of the atom in the render tree. | ||
*/ | ||
export interface GlobalContext { | ||
readonly registers: Registers; | ||
readonly smartFence: boolean; | ||
readonly letterShapeStyle: 'tex' | 'french' | 'iso' | 'upright' | 'auto'; | ||
readonly fractionNavigationOrder: 'numerator-denominator' | 'denominator-numerator'; | ||
readonly placeholderSymbol: string; | ||
colorMap: (name: string) => string | undefined; | ||
backgroundColorMap: (name: string) => string | undefined; | ||
getDefinition(token: string, parseMode: ParseMode): TokenDefinition | null; | ||
getMacro(token: string): MacroDefinition | null; | ||
} |
@@ -1,6 +0,6 @@ | ||
/* 0.90.7 */ declare module '@cortex-js/compute-engine'; | ||
/* 0.90.8 */ declare module '@cortex-js/compute-engine'; | ||
import { Selector } from './commands'; | ||
import type { LatexSyntaxError, MacroDictionary, ParseMode, Registers, Style } from './core-types'; | ||
import { InsertOptions, OutputFormat, Offset, Range, Selection, Mathfield } from './mathfield'; | ||
import { InlineShortcutDefinition, Keybinding, MathfieldOptions } from './options'; | ||
import { InlineShortcutDefinitions, Keybinding, MathfieldOptions } from './options'; | ||
import { ComputeEngine } from '@cortex-js/compute-engine'; | ||
@@ -188,3 +188,3 @@ export declare type Expression = number | string | { | ||
* | ||
* **Default**: `globalThis.origin` | ||
* **Default**: `window.origin` | ||
*/ | ||
@@ -912,4 +912,4 @@ 'virtual-keyboard-target-origin': string; | ||
set mathVirtualKeyboardPolicy(value: VirtualKeyboardPolicy); | ||
get inlineShortcuts(): Record<string, InlineShortcutDefinition>; | ||
set inlineShortcuts(value: Record<string, InlineShortcutDefinition>); | ||
get inlineShortcuts(): InlineShortcutDefinitions; | ||
set inlineShortcuts(value: InlineShortcutDefinitions); | ||
get inlineShortcutTimeout(): number; | ||
@@ -927,3 +927,3 @@ set inlineShortcutTimeout(value: number); | ||
getPromptState(id: string): ['correct' | 'incorrect' | undefined, boolean]; | ||
setPromptContent(id: string, content: string): void; | ||
setPromptContent(id: string, content: string, insertOptions: Omit<InsertOptions, 'insertionMode'>): void; | ||
get virtualKeyboardTargetOrigin(): string; | ||
@@ -930,0 +930,0 @@ set virtualKeyboardTargetOrigin(value: string); |
@@ -1,2 +0,2 @@ | ||
/* 0.90.7 */ import type { ParseMode, Style } from 'public/core-types'; | ||
/* 0.90.8 */ import type { ParseMode, Style } from './core-types'; | ||
import { Selector } from './commands'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
/* 0.90.7 */ /** | ||
/* 0.90.8 */ /** | ||
* Server-side rendering exports. | ||
@@ -3,0 +3,0 @@ * |
@@ -1,2 +0,2 @@ | ||
/* 0.90.7 */ /** | ||
/* 0.90.8 */ /** | ||
* | ||
@@ -14,4 +14,4 @@ * Use MathLive to render and edit mathematical formulas. | ||
* | ||
* @packageDocumentation MathLive SDK Reference 0.90.7 | ||
* @version 0.90.7 | ||
* @packageDocumentation MathLive SDK Reference 0.90.8 | ||
* @version 0.90.8 | ||
* | ||
@@ -18,0 +18,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
/* 0.90.7 */ import type { Mathfield, Range } from './mathfield'; | ||
/* 0.90.8 */ import type { Mathfield, Range } from './mathfield'; | ||
import type { Selector } from './commands'; | ||
@@ -172,2 +172,3 @@ import type { ParseMode, MacroDictionary, Registers } from './core-types'; | ||
}; | ||
export type InlineShortcutDefinitions = Record<string, InlineShortcutDefinition>; | ||
/** | ||
@@ -214,3 +215,2 @@ * These hooks provide an opportunity to intercept or modify an action. | ||
inputType?: ContentChangeType; | ||
isComposing?: boolean; | ||
}; | ||
@@ -227,3 +227,3 @@ export type KeyboardOptions = { | ||
*/ | ||
inlineShortcuts: Record<string, InlineShortcutDefinition>; | ||
inlineShortcuts: InlineShortcutDefinitions; | ||
/** | ||
@@ -468,3 +468,3 @@ * Maximum time, in milliseconds, between consecutive characters for them to be | ||
* | ||
* **Default**: `globalThis.origin` | ||
* **Default**: `window.origin` | ||
*/ | ||
@@ -476,3 +476,3 @@ virtualKeyboardTargetOrigin: string; | ||
* | ||
* **Default**: `"same-origin"` | ||
* **Default**: `"none"` | ||
*/ | ||
@@ -479,0 +479,0 @@ originValidator: OriginValidator; |
@@ -1,2 +0,2 @@ | ||
/* 0.90.7 */ /** | ||
/* 0.90.8 */ /** | ||
* @internal | ||
@@ -3,0 +3,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
/* 0.90.7 */ import { Selector } from 'mathlive'; | ||
/* 0.90.8 */ import { Selector } from 'mathlive'; | ||
import type { VirtualKeyboardOptions, AlphabeticKeyboardLayout, VirtualKeyboardLayer, LayoutDefinition, ActionToolbarOptions } from './virtual-keyboard'; | ||
@@ -3,0 +3,0 @@ export interface MathfieldProxy { |
@@ -1,3 +0,3 @@ | ||
/* 0.90.7 */ import { Selector } from 'public/commands'; | ||
import { OriginValidator } from 'public/options'; | ||
/* 0.90.8 */ import { Selector } from './commands'; | ||
import { OriginValidator } from './options'; | ||
export type AlphabeticKeyboardLayout = 'auto' | 'qwerty' | 'azerty' | 'qwertz' | 'dvorak' | 'colemak'; | ||
@@ -101,3 +101,3 @@ /** | ||
/** The rows of keycaps in this layer */ | ||
rows?: Partial<VirtualKeyboardKeycap>[][]; | ||
rows?: Partial<VirtualKeyboardKeycap | string>[][]; | ||
markup?: string; | ||
@@ -161,5 +161,5 @@ /** The CSS stylesheet associated with this layer */ | ||
* | ||
* **Default**: `"same-origin"` | ||
* **Default**: `"none"` | ||
*/ | ||
originValidator: OriginValidator; | ||
} |
@@ -0,0 +0,0 @@ Copyright (c) 2017 - present Arno Gourdol. All rights reserved. |
{ | ||
"name": "mathlive", | ||
"version": "0.90.7", | ||
"version": "0.90.8", | ||
"description": "A web component for math input", | ||
@@ -59,3 +59,3 @@ "license": "MIT", | ||
"Edin Adilagić (https://github.com/physedo)", | ||
"https://github.com/gunnarmein-ts", | ||
"Gunnar Mein (https://github.com/gunnarmein-ts)", | ||
"Zeyad Ahmad Aql (https://github.com/zeyad-ahmad-aql)", | ||
@@ -62,0 +62,0 @@ "Sergiy Bondaryev (https://github.com/sbondaryev)", |
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
4
4723264
83515