Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mathlive

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathlive - npm Package Compare versions

Comparing version 0.90.8 to 0.90.9

2

dist/public/commands.d.ts

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

/* 0.90.8 */ import type { Keys } from './types-utils';
/* 0.90.9 */ 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,2 +0,2 @@

/* 0.90.8 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle';
/* 0.90.9 */ export type MathstyleName = 'displaystyle' | 'textstyle' | 'scriptstyle' | 'scriptscriptstyle';
export type NormalizedMacroDictionary = Record<string, MacroDefinition>;

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

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

/* 0.90.8 */ declare module '@cortex-js/compute-engine';
/* 0.90.9 */ declare module '@cortex-js/compute-engine';
import { Selector } from './commands';

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

import { InlineShortcutDefinitions, Keybinding, MathfieldOptions } from './options';
import { ComputeEngine } from '@cortex-js/compute-engine';
import type { ComputeEngine } from '@cortex-js/compute-engine';
export declare type Expression = number | string | {

@@ -9,0 +9,0 @@ [key: string]: any;

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

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

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

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

/* 0.90.8 */ /**
/* 0.90.9 */ /**
* Server-side rendering exports.

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

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

/* 0.90.8 */ /**
/* 0.90.9 */ /**
*

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

*
* @packageDocumentation MathLive SDK Reference 0.90.8
* @version 0.90.8
* @packageDocumentation MathLive SDK Reference 0.90.9
* @version 0.90.9
*

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

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

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

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

@@ -1,3 +0,3 @@

/* 0.90.8 */ import { Selector } from 'mathlive';
import type { VirtualKeyboardOptions, AlphabeticKeyboardLayout, VirtualKeyboardLayer, LayoutDefinition, ActionToolbarOptions } from './virtual-keyboard';
/* 0.90.9 */ import { Selector } from 'mathlive';
import type { VirtualKeyboardOptions, AlphabeticKeyboardLayout, VirtualKeyboardLayer, VirtualKeyboardLayout, ActionToolbarOptions } from './virtual-keyboard';
export interface MathfieldProxy {

@@ -28,4 +28,2 @@ value: string;

export interface VirtualKeyboardCommands {
showVariantsPanel: (variants: string) => boolean;
hideVariantsPanel: () => boolean;
/**

@@ -36,3 +34,3 @@ * The command invoked when a variant key is pressed:

performVariant: (command: Selector | [Selector, ...any[]]) => boolean;
switchKeyboardLayer: (layer: any) => boolean;
switchKeyboardLayer: (layer: string) => boolean;
shiftKeyboardLayer: () => boolean;

@@ -62,3 +60,3 @@ unshiftKeyboardLayer: () => boolean;

layers: Record<string, string | Partial<VirtualKeyboardLayer>>;
layouts: (string | LayoutDefinition)[];
layouts: (string | VirtualKeyboardLayout)[];
actionToolbar?: ActionToolbarOptions;

@@ -70,3 +68,3 @@ } | {

layers: Record<string, string | Partial<VirtualKeyboardLayer>>;
layouts: (string | LayoutDefinition)[];
layouts: (string | VirtualKeyboardLayout)[];
actionToolbar?: ActionToolbarOptions;

@@ -73,0 +71,0 @@ } | {

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

/* 0.90.8 */ import { Selector } from './commands';
/* 0.90.9 */ import { Selector } from './commands';
import { OriginValidator } from './options';

@@ -12,2 +12,3 @@ export type AlphabeticKeyboardLayout = 'auto' | 'qwerty' | 'azerty' | 'qwertz' | 'dvorak' | 'colemak';

label: string;
tooltip: string;
/**

@@ -48,2 +49,4 @@ * Command to perform when the keycap is pressed

class: string;
/** Width of the keycap, as a multiple of the standard keycap width */
width: 0.5 | 1.0 | 1.5 | 2.0 | 5.0;
/**

@@ -55,3 +58,2 @@ * HTML markup to represent the keycap.

*/
content: string;
/**

@@ -73,3 +75,3 @@ * Markup displayed with the key label (for example to explain what the

*/
variants: (string | Partial<VirtualKeyboardKeycap>)[];
variants: string | (string | Partial<VirtualKeyboardKeycap>)[];
/**

@@ -86,3 +88,3 @@ * Markup for the label of the key when the shift key is pressed

}
export type LayoutDefinition = {
export type VirtualKeyboardLayoutCore = {
/** A human readable string displayed in the layout switcher toolbar */

@@ -95,7 +97,12 @@ label?: string;

id?: string;
} & ({
/** The set of layers for this layout */
/** If false, keycaps that have a shifted variant will be displayed as if they don't */
displayShiftedKeycaps?: boolean;
/** If false, do not include the edit toolbar in the layout */
displayEditToolbar?: boolean;
};
export type VirtualKeyboardLayout = VirtualKeyboardLayoutCore & (/** The set of layers for this layout */ {
layers: (string | VirtualKeyboardLayer)[];
} | {
/** As a shortcut, if a single layer, the rows of that layer */
}
/** As a shortcut, if a single layer, the rows of that layer */
| {
rows: Partial<VirtualKeyboardKeycap>[][];

@@ -105,5 +112,8 @@ } | {

});
export type NormalizedVirtualKeyboardLayout = VirtualKeyboardLayoutCore & {
layers: VirtualKeyboardLayer[];
};
export interface VirtualKeyboardLayer {
/** The rows of keycaps in this layer */
rows?: Partial<VirtualKeyboardKeycap | string>[][];
rows?: (Partial<VirtualKeyboardKeycap> | string)[][];
markup?: string;

@@ -135,3 +145,3 @@ /** The CSS stylesheet associated with this layer */

*/
set layouts(value: (string | LayoutDefinition)[]);
set layouts(value: 'default' | (string | VirtualKeyboardLayout)[]);
/**

@@ -138,0 +148,0 @@ * Configuration of the action toolbar, displayed on the right-hand side.

{
"name": "mathlive",
"version": "0.90.8",
"version": "0.90.9",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc