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

@khanacademy/perseus-core

Package Overview
Dependencies
Maintainers
1
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/perseus-core - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

6

CHANGELOG.md
# @khanacademy/perseus-core
## 1.3.0
### Minor Changes
- [#783](https://github.com/Khan/perseus/pull/783) [`79403e06`](https://github.com/Khan/perseus/commit/79403e06eedb597d7818d6c858bbba6f51ff3fe1) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Adds 'widgetId' to the 'perseus:widget-rendering-error' analytics event.
## 1.2.0

@@ -4,0 +10,0 @@

11

dist/analytics.d.ts

@@ -16,2 +16,8 @@ export type VirtualKeypadVersion = "PERSEUS_MATH_INPUT" | "MATH_INPUT_KEYPAD_V1" | "MATH_INPUT_KEYPAD_V2" | "REACT_NATIVE_KEYPAD";

} | {
type: "perseus:widget-rendering-error";
payload: {
widgetType: string;
widgetId: string;
};
} | {
type: "math-input:keypad-closed";

@@ -26,9 +32,4 @@ payload: {

};
} | {
type: "perseus:widget-rendering-error";
payload: {
widgetType: string;
};
};
/** A function that is called when Perseus emits an analytics event. */
export type AnalyticsEventHandlerFn = (event: PerseusAnalyticsEvent) => Promise<void>;

@@ -45,3 +45,3 @@ /**

const libName = "@khanacademy/perseus-core";
const libVersion = "1.2.0";
const libVersion = "1.3.0";
addLibraryVersionToPerseusDebug(libName, libVersion);

@@ -48,0 +48,0 @@

@@ -49,3 +49,3 @@ 'use strict';

const libName = "@khanacademy/perseus-core";
const libVersion = "1.2.0";
const libVersion = "1.3.0";
addLibraryVersionToPerseusDebug(libName, libVersion);

@@ -52,0 +52,0 @@

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "1.2.0",
"version": "1.3.0",
"publishConfig": {

@@ -9,0 +9,0 @@ "access": "public"

@@ -24,9 +24,10 @@ export type VirtualKeypadVersion =

| {
type: "math-input:keypad-closed";
type: "perseus:widget-rendering-error";
payload: {
virtualKeypadVersion: VirtualKeypadVersion;
widgetType: string;
widgetId: string;
};
}
| {
type: "math-input:keypad-opened";
type: "math-input:keypad-closed";
payload: {

@@ -37,5 +38,5 @@ virtualKeypadVersion: VirtualKeypadVersion;

| {
type: "perseus:widget-rendering-error";
type: "math-input:keypad-opened";
payload: {
widgetType: string;
virtualKeypadVersion: VirtualKeypadVersion;
};

@@ -42,0 +43,0 @@ };

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