New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@khanacademy/wonder-blocks-form

Package Overview
Dependencies
Maintainers
1
Versions
612
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-form - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

LICENSE

22

dist/es/index.js

@@ -1,9 +0,9 @@

import { createElement, Component, Children, Fragment, cloneElement } from 'react';
import { createElement, Fragment, Component, Children, cloneElement } from 'react';
import { StyleSheet } from 'aphrodite';
import Color, { mix, fade } from '@khanacademy/wonder-blocks-color';
import { addStyle, View, getClickableBehavior } from '@khanacademy/wonder-blocks-core';
import Icon from '@khanacademy/wonder-blocks-icon';
import { addStyle, getClickableBehavior, View } from '@khanacademy/wonder-blocks-core';
import { Strut } from '@khanacademy/wonder-blocks-layout';
import Spacing from '@khanacademy/wonder-blocks-spacing';
import { LabelMedium, LabelSmall } from '@khanacademy/wonder-blocks-typography';
import Icon from '@khanacademy/wonder-blocks-icon';

@@ -201,3 +201,3 @@ function _classCallCheck(instance, Constructor) {

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleChange", function () {
_defineProperty(_assertThisInitialized(_this), "handleChange", function () {
// Empty because change is handled by ClickableBehavior

@@ -380,3 +380,3 @@ return;

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleChange", function () {
_defineProperty(_assertThisInitialized(_this), "handleChange", function () {
// Empty because change is handled by ClickableBehavior

@@ -559,3 +559,3 @@ return;

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleLabelClick", function (event) {
_defineProperty(_assertThisInitialized(_this), "handleLabelClick", function (event) {
// Browsers automatically use the for attribute to select the input,

@@ -566,3 +566,3 @@ // but we use ClickableBehavior to handle this.

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleClick", function () {
_defineProperty(_assertThisInitialized(_this), "handleClick", function () {
var _this$props = _this.props,

@@ -855,8 +855,6 @@ checked = _this$props.checked,

var index = selectedValues.indexOf(changedValue);
var updatedSelection = _toConsumableArray(selectedValues.slice(0, index)).concat(_toConsumableArray(selectedValues.slice(index + 1)));
var updatedSelection = [].concat(_toConsumableArray(selectedValues.slice(0, index)), _toConsumableArray(selectedValues.slice(index + 1)));
onChange(updatedSelection);
} else {
onChange(_toConsumableArray(selectedValues).concat([changedValue]));
onChange([].concat(_toConsumableArray(selectedValues), [changedValue]));
}

@@ -993,2 +991,2 @@ }

export { Checkbox, Radio, Choice, CheckboxGroup, RadioGroup };
export { Checkbox, CheckboxGroup, Choice, Radio, RadioGroup };

@@ -189,2 +189,4 @@ module.exports =

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

@@ -194,4 +196,2 @@

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -237,3 +237,3 @@

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleChange", function () {
_defineProperty(_assertThisInitialized(_this), "handleChange", function () {
// Empty because change is handled by ClickableBehavior

@@ -406,2 +406,4 @@ return;

function radio_core_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function radio_core_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) radio_core_setPrototypeOf(subClass, superClass); }

@@ -411,4 +413,2 @@

function radio_core_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function radio_core_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -450,3 +450,3 @@

radio_core_defineProperty(radio_core_assertThisInitialized(radio_core_assertThisInitialized(_this)), "handleChange", function () {
radio_core_defineProperty(radio_core_assertThisInitialized(_this), "handleChange", function () {
// Empty because change is handled by ClickableBehavior

@@ -623,2 +623,4 @@ return;

function choice_internal_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function choice_internal_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) choice_internal_setPrototypeOf(subClass, superClass); }

@@ -628,4 +630,2 @@

function choice_internal_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function choice_internal_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -669,3 +669,3 @@

choice_internal_defineProperty(choice_internal_assertThisInitialized(choice_internal_assertThisInitialized(_this)), "handleLabelClick", function (event) {
choice_internal_defineProperty(choice_internal_assertThisInitialized(_this), "handleLabelClick", function (event) {
// Browsers automatically use the for attribute to select the input,

@@ -676,3 +676,3 @@ // but we use ClickableBehavior to handle this.

choice_internal_defineProperty(choice_internal_assertThisInitialized(choice_internal_assertThisInitialized(_this)), "handleClick", function () {
choice_internal_defineProperty(choice_internal_assertThisInitialized(_this), "handleClick", function () {
var _this$props = _this.props,

@@ -1087,8 +1087,6 @@ checked = _this$props.checked,

var index = selectedValues.indexOf(changedValue);
var updatedSelection = _toConsumableArray(selectedValues.slice(0, index)).concat(_toConsumableArray(selectedValues.slice(index + 1)));
var updatedSelection = [].concat(_toConsumableArray(selectedValues.slice(0, index)), _toConsumableArray(selectedValues.slice(index + 1)));
onChange(updatedSelection);
} else {
onChange(_toConsumableArray(selectedValues).concat([changedValue]));
onChange([].concat(_toConsumableArray(selectedValues), [changedValue]));
}

@@ -1253,7 +1251,7 @@ }

// CONCATENATED MODULE: ./packages/wonder-blocks-form/index.js
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Checkbox", function() { return checkbox_Checkbox; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Radio", function() { return radio_Radio; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "Choice", function() { return choice_Choice; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "CheckboxGroup", function() { return checkbox_group_CheckboxGroup; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "RadioGroup", function() { return radio_group_RadioGroup; });
/* concated harmony reexport Checkbox */__webpack_require__.d(__webpack_exports__, "Checkbox", function() { return checkbox_Checkbox; });
/* concated harmony reexport Radio */__webpack_require__.d(__webpack_exports__, "Radio", function() { return radio_Radio; });
/* concated harmony reexport Choice */__webpack_require__.d(__webpack_exports__, "Choice", function() { return choice_Choice; });
/* concated harmony reexport CheckboxGroup */__webpack_require__.d(__webpack_exports__, "CheckboxGroup", function() { return checkbox_group_CheckboxGroup; });
/* concated harmony reexport RadioGroup */__webpack_require__.d(__webpack_exports__, "RadioGroup", function() { return radio_group_RadioGroup; });

@@ -1260,0 +1258,0 @@

{
"name": "@khanacademy/wonder-blocks-form",
"version": "1.2.4",
"version": "1.2.5",
"design": "v1",

@@ -18,8 +18,8 @@ "description": "Form components for Wonder Blocks.",

"dependencies": {
"@khanacademy/wonder-blocks-color": "^1.1.8",
"@khanacademy/wonder-blocks-core": "^2.4.2",
"@khanacademy/wonder-blocks-icon": "^1.2.4",
"@khanacademy/wonder-blocks-layout": "^1.3.7",
"@khanacademy/wonder-blocks-spacing": "^2.1.8",
"@khanacademy/wonder-blocks-typography": "^1.1.8"
"@khanacademy/wonder-blocks-color": "^1.1.9",
"@khanacademy/wonder-blocks-core": "^2.4.3",
"@khanacademy/wonder-blocks-icon": "^1.2.5",
"@khanacademy/wonder-blocks-layout": "^1.3.8",
"@khanacademy/wonder-blocks-spacing": "^2.1.9",
"@khanacademy/wonder-blocks-typography": "^1.1.9"
},

@@ -31,4 +31,5 @@ "peerDependencies": {

"devDependencies": {
"wb-dev-build-settings": "^0.0.2"
}
"wb-dev-build-settings": "^0.0.3"
},
"gitHead": "be0b1f6e2cd428289f5c3e54e6a2370de2019d27"
}
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