Socket
Socket
Sign inDemoInstall

mathlive

Package Overview
Dependencies
3
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.96.1 to 0.96.2

2

dist/types/commands.d.ts

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

/* 0.96.1 */ import type { Keys } from './types-utils';
/* 0.96.2 */ 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.96.1 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle';
/* 0.96.2 */ 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.96.1 */ import type { Selector } from './commands';
/* 0.96.2 */ import type { Selector } from './commands';
import type { LatexSyntaxError, MacroDictionary, ParseMode, Registers, Style } from './core-types';

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

/** @internal */
static _fontsDirectory: string | null;
get fontsDirectory(): never;
/** @internal */
set fontsDirectory(_value: unknown);
/** @internal */
private static _fontsDirectory;
/**

@@ -430,3 +434,7 @@ * A URL fragment pointing to the directory containing the optional

/** @internal */
static _soundsDirectory: string | null;
get soundsDirectory(): never;
/** @internal */
set soundsDirectory(_value: unknown);
/** @internal */
private static _soundsDirectory;
/**

@@ -469,10 +477,5 @@ * When a key on the virtual keyboard is pressed, produce a short haptic

/** @internal */
static _keypressSound: {
spacebar: null | string;
return: null | string;
delete: null | string;
default: null | string;
};
private static _keypressSound;
/** @internal */
static _plonkSound: string | null;
private static _plonkSound;
/**

@@ -489,9 +492,7 @@ * Sound played to provide feedback when a command has no effect, for example

/** @internal */
static audioBuffers: {
[key: string]: AudioBuffer;
};
private static audioBuffers;
/** @internal */
static _audioContext: AudioContext;
private static _audioContext;
/** @internal */
static get audioContext(): AudioContext;
private static get audioContext();
/**

@@ -598,3 +599,33 @@ * Support for [Trusted Type](https://w3c.github.io/webappsec-trusted-types/dist/spec/).

static set locale(value: string);
/** @internal */
get locale(): never;
/** @internal */
set locale(_value: unknown);
/**
* An object whose keys are a locale string, and whose values are an object of
* string identifier to localized string.
*
* **Example**
*
```js example
mf.strings = {
"fr-CA": {
"tooltip.undo": "Annuler",
"tooltip.redo": "Refaire",
}
}
```
*
* If the locale is already supported, this will override the existing
* strings. If the locale is not supported, it will be added.
*
* @category Localization
*/
static get strings(): Record<string, Record<string, string>>;
static set strings(value: Record<string, Record<string, string>>);
/** @internal */
get strings(): never;
/** @internal */
set strings(_val: unknown);
/**
* The symbol used to separate the integer part from the fractional part of a

@@ -618,2 +649,6 @@ * number.

/** @internal */
get decimalSeparator(): never;
/** @internal */
set decimalSeparator(_val: unknown);
/** @internal */
private static _decimalSeparator;

@@ -635,22 +670,2 @@ /**

/**
* An object whose keys are a locale string, and whose values are an object of
* string identifier to localized string.
*
* **Example**
*
```json
{
"fr-CA": {
"tooltip.undo": "Annuler",
"tooltip.redo": "Refaire",
}
}
```
*
* This will override the default localized strings.
* @category Localization
*/
static get strings(): Record<string, Record<string, string>>;
static set strings(value: Record<string, Record<string, string>>);
/**
* A custom compute engine instance. If none is provided, a default one is

@@ -662,2 +677,6 @@ * used. If `null` is specified, no compute engine is used.

/** @internal */
get computeEngine(): never;
/** @internal */
set computeEngine(_val: unknown);
/** @internal */
private static _computeEngine;

@@ -664,0 +683,0 @@ static loadSound(sound: 'plonk' | 'keypress' | 'spacebar' | 'delete' | 'return'): Promise<void>;

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

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

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

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

/* 0.96.1 */ /**
/* 0.96.2 */ /**
* Server-side rendering exports.

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

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

/* 0.96.1 */ /**
/* 0.96.2 */ /**
*

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

*
* @packageDocumentation MathLive SDK Reference 0.96.1
* @version 0.96.1
* @packageDocumentation MathLive SDK Reference 0.96.2
* @version 0.96.2
*

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

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

/* 0.96.1 */ import type { Mathfield, Range } from './mathfield';
/* 0.96.2 */ 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.96.1 */ /**
/* 0.96.2 */ /**
* @internal

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

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

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

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

export interface VirtualKeyboardCommands {
switchKeyboardLayer: (layer: string) => boolean;
switchKeyboardLayer: (mathfield: undefined, layer: string) => boolean;
toggleVirtualKeyboard: () => boolean;

@@ -225,0 +225,0 @@ hideVirtualKeyboard: () => boolean;

{
"name": "mathlive",
"version": "0.96.1",
"version": "0.96.2",
"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