Socket
Socket
Sign inDemoInstall

mathlive

Package Overview
Dependencies
3
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.97.3 to 0.97.4

2

dist/types/commands.d.ts

@@ -1,2 +0,2 @@

/* 0.97.3 */ import type { Keys } from './types-utils';
/* 0.97.4 */ 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.97.3 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle';
/* 0.97.4 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle';
export type NormalizedMacroDictionary = Record<string, MacroDefinition>;

@@ -3,0 +3,0 @@ export type ArgumentType = ParseMode | ('bbox' | 'colspec' | 'delim' | 'value' | 'rest' | 'string' | 'balanced-string' | 'expression' | 'auto');

@@ -1,2 +0,2 @@

/* 0.97.3 */ export type KeyboardModifiers = {
/* 0.97.4 */ export type KeyboardModifiers = {
alt: boolean;

@@ -3,0 +3,0 @@ control: boolean;

@@ -1,2 +0,2 @@

/* 0.97.3 */ import type { Selector } from './commands';
/* 0.97.4 */ import type { Selector } from './commands';
import type { LatexSyntaxError, MacroDictionary, ParseMode, Registers, Style } from './core-types';

@@ -370,3 +370,3 @@ import type { InsertOptions, OutputFormat, Offset, Range, Selection, Mathfield } from './mathfield';

*/
static get optionsAttributes(): Record<string, 'number' | 'boolean' | 'string' | 'on/off'>;
static get optionsAttributes(): Readonly<Record<string, 'number' | 'boolean' | 'string' | 'on/off'>>;
/**

@@ -376,3 +376,3 @@ * Custom elements lifecycle hooks

*/
static get observedAttributes(): string[];
static get observedAttributes(): readonly string[];
/**

@@ -465,3 +465,3 @@ * A URL fragment pointing to the directory containing the fonts

*/
static get keypressSound(): {
static get keypressSound(): Readonly<{
spacebar: null | string;

@@ -471,3 +471,3 @@ return: null | string;

default: null | string;
};
}>;
static set keypressSound(value: null | string | {

@@ -585,3 +585,3 @@ spacebar?: null | string;

*/
static get textToSpeechRulesOptions(): Record<string, string>;
static get textToSpeechRulesOptions(): Readonly<Record<string, string>>;
static set textToSpeechRulesOptions(value: Record<string, string>);

@@ -625,3 +625,3 @@ /** @internal */

*/
static get strings(): Record<string, Record<string, string>>;
static get strings(): Readonly<Record<string, Record<string, string>>>;
static set strings(value: Record<string, Record<string, string>>);

@@ -750,3 +750,3 @@ /** @internal */

*/
get errors(): LatexSyntaxError[];
get errors(): readonly LatexSyntaxError[];
/** @internal */

@@ -835,9 +835,14 @@ private _getOptions;

/**
*
* @category Accessing and changing the content
*/
queryStyle(style: Style): 'some' | 'all' | 'none';
/**
* @inheritdoc Mathfield.getCaretPoint
* @category Selection
*/
get caretPoint(): null | {
get caretPoint(): null | Readonly<{
x: number;
y: number;
};
}>;
set caretPoint(point: null | {

@@ -935,3 +940,3 @@ x: number;

*/
get macros(): MacroDictionary;
get macros(): Readonly<MacroDictionary>;
set macros(value: MacroDictionary);

@@ -941,3 +946,3 @@ /** @category Customization

*/
get registers(): Registers;
get registers(): Readonly<Registers>;
set registers(value: Registers);

@@ -1013,3 +1018,3 @@ /** @category Customization

*/
get menuItems(): MenuItem[];
get menuItems(): readonly MenuItem[];
set menuItems(menuItems: MenuItem[]);

@@ -1026,3 +1031,3 @@ /**

*/
get inlineShortcuts(): InlineShortcutDefinitions;
get inlineShortcuts(): Readonly<InlineShortcutDefinitions>;
set inlineShortcuts(value: InlineShortcutDefinitions);

@@ -1037,3 +1042,3 @@ /** @category Customization

*/
get keybindings(): Keybinding[];
get keybindings(): readonly Keybinding[];
set keybindings(value: Keybinding[]);

@@ -1083,3 +1088,3 @@ /** @category Hooks

*/
get selection(): Selection;
get selection(): Readonly<Selection>;
/**

@@ -1086,0 +1091,0 @@ *

@@ -1,2 +0,2 @@

/* 0.97.3 */ import type { ParseMode, Style } from './core-types';
/* 0.97.4 */ import type { ParseMode, Style } from './core-types';
import { Selector } from './commands';

@@ -52,3 +52,2 @@ /**

silenceNotifications?: boolean;
style?: Style;
/** If `true`, the mathfield will be focused after

@@ -65,5 +64,6 @@ * the insertion

scrollIntoView?: boolean;
/** If `true`, the style after the insertion
* is the same as the style before. If false, the style after the
* insertion is the style of the last inserted atom.
style?: Style;
/** If `true`, the style after the insertion is the same as the style
* before. If `false`, the style after the insertion is the style of
* the last inserted atom.
*/

@@ -70,0 +70,0 @@ resetStyle?: boolean;

@@ -1,2 +0,2 @@

/* 0.97.3 */ /**
/* 0.97.4 */ /**
* Server-side rendering exports.

@@ -3,0 +3,0 @@ *

@@ -1,2 +0,2 @@

/* 0.97.3 */ /**
/* 0.97.4 */ /**
*

@@ -14,4 +14,4 @@ * Use MathLive to render and edit mathematical formulas.

*
* @packageDocumentation MathLive SDK Reference 0.97.3
* @version 0.97.3
* @packageDocumentation MathLive SDK Reference 0.97.4
* @version 0.97.4
*

@@ -18,0 +18,0 @@ */

@@ -1,2 +0,2 @@

/* 0.97.3 */ import { KeyboardModifiers } from './events-types';
/* 0.97.4 */ import { KeyboardModifiers } from './events-types';
export type MenuItem<T = unknown> = {

@@ -16,6 +16,6 @@ /** If no type is specified, defaults to `"command"`, unless

/** The label is a string of HTML markup used to describe the item */
label?: DynamicString<T>;
ariaLabel?: DynamicString<T>;
ariaDetails?: DynamicString<T>;
tooltip?: DynamicString<T>;
label?: DynamicValue<string, T>;
ariaLabel?: DynamicValue<string, T>;
ariaDetails?: DynamicValue<string, T>;
tooltip?: DynamicValue<string, T>;
keyboardShortcut?: string;

@@ -31,5 +31,5 @@ /**

columns?: number;
visible?: DynamicBoolean<T>;
enabled?: DynamicBoolean<T>;
checked?: DynamicBoolean<T>;
visible?: DynamicValue<boolean, T>;
enabled?: DynamicValue<boolean, T>;
checked?: DynamicValue<boolean | 'mixed', T>;
/** Optional CSS class applied to the menu item */

@@ -97,4 +97,3 @@ class?: string;

};
export type DynamicString<T> = string | ((props: MenuItemProps<T>) => string);
export type DynamicBoolean<T> = boolean | ((props: MenuItemProps<T>) => boolean);
export type DynamicValue<T, U> = T | ((props: MenuItemProps<U>) => T);
declare global {

@@ -101,0 +100,0 @@ /**

@@ -1,2 +0,2 @@

/* 0.97.3 */ import type { Mathfield, Range } from './mathfield';
/* 0.97.4 */ import type { Mathfield, Range } from './mathfield';
import type { Selector } from './commands';

@@ -3,0 +3,0 @@ import type { ParseMode, MacroDictionary, Registers } from './core-types';

@@ -1,2 +0,2 @@

/* 0.97.3 */ /**
/* 0.97.4 */ /**
* @internal

@@ -3,0 +3,0 @@ */

@@ -1,2 +0,2 @@

/* 0.97.3 */ import type { Selector } from './commands';
/* 0.97.4 */ import type { Selector } from './commands';
import type { ParseMode, Style } from './core-types';

@@ -3,0 +3,0 @@ import type { OriginValidator } from './options';

{
"name": "mathlive",
"version": "0.97.3",
"version": "0.97.4",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc