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

@khanacademy/wonder-blocks-core

Package Overview
Dependencies
Maintainers
0
Versions
286
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.0-PR2466-20250207212603 to 0.0.0-PR2477-20250220003605

10

CHANGELOG.md
# @khanacademy/wonder-blocks-core
## 0.0.0-PR2466-20250207212603
## 0.0.0-PR2477-20250220003605
### Minor Changes
- 965dc5d: Enables View to accept all tag names
## 12.1.1
### Patch Changes
- efc1911: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
- ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests

@@ -9,0 +15,0 @@ ## 12.1.0

3

dist/components/view.d.ts
import * as React from "react";
import type { TextViewSharedProps } from "../util/types";
type ValidViewTags = "div" | "article" | "aside" | "nav" | "section";
type Props = TextViewSharedProps & {

@@ -8,3 +7,3 @@ /**

*/
tag?: ValidViewTags;
tag?: keyof JSX.IntrinsicElements;
};

@@ -11,0 +10,0 @@ /**

@@ -138,7 +138,2 @@ import _extends from '@babel/runtime/helpers/extends';

});
const StyledDiv = addStyle("div", styles.default);
const StyledArticle = addStyle("article", styles.default);
const StyledAside = addStyle("aside", styles.default);
const StyledNav = addStyle("nav", styles.default);
const StyledSection = addStyle("section", styles.default);
const View = React.forwardRef(function View(props, ref) {

@@ -153,26 +148,6 @@ const {

});
switch (tag) {
case "article":
return React.createElement(StyledArticle, _extends({}, commonProps, {
ref: ref
}));
case "aside":
return React.createElement(StyledAside, _extends({}, commonProps, {
ref: ref
}));
case "nav":
return React.createElement(StyledNav, _extends({}, commonProps, {
ref: ref
}));
case "section":
return React.createElement(StyledSection, _extends({}, commonProps, {
ref: ref
}));
case "div":
return React.createElement(StyledDiv, _extends({}, commonProps, {
ref: ref
}));
default:
throw Error(`${tag} is not an allowed value for the 'tag' prop`);
}
const StyledTag = addStyle(tag, styles.default);
return React.createElement(StyledTag, _extends({}, commonProps, {
ref: ref
}));
});

@@ -179,0 +154,0 @@

@@ -165,7 +165,2 @@ 'use strict';

});
const StyledDiv = addStyle("div", styles.default);
const StyledArticle = addStyle("article", styles.default);
const StyledAside = addStyle("aside", styles.default);
const StyledNav = addStyle("nav", styles.default);
const StyledSection = addStyle("section", styles.default);
const View = React__namespace.forwardRef(function View(props, ref) {

@@ -180,26 +175,6 @@ const {

});
switch (tag) {
case "article":
return React__namespace.createElement(StyledArticle, _extends__default["default"]({}, commonProps, {
ref: ref
}));
case "aside":
return React__namespace.createElement(StyledAside, _extends__default["default"]({}, commonProps, {
ref: ref
}));
case "nav":
return React__namespace.createElement(StyledNav, _extends__default["default"]({}, commonProps, {
ref: ref
}));
case "section":
return React__namespace.createElement(StyledSection, _extends__default["default"]({}, commonProps, {
ref: ref
}));
case "div":
return React__namespace.createElement(StyledDiv, _extends__default["default"]({}, commonProps, {
ref: ref
}));
default:
throw Error(`${tag} is not an allowed value for the 'tag' prop`);
}
const StyledTag = addStyle(tag, styles.default);
return React__namespace.createElement(StyledTag, _extends__default["default"]({}, commonProps, {
ref: ref
}));
});

@@ -206,0 +181,0 @@

{
"name": "@khanacademy/wonder-blocks-core",
"version": "0.0.0-PR2466-20250207212603",
"version": "0.0.0-PR2477-20250220003605",
"design": "v1",

@@ -23,4 +23,4 @@ "publishConfig": {

"devDependencies": {
"@khanacademy/wb-dev-build-settings": "0.0.0-PR2466-20250207212603",
"@khanacademy/wonder-blocks-testing-core": "0.0.0-PR2466-20250207212603"
"@khanacademy/wb-dev-build-settings": "2.1.1",
"@khanacademy/wonder-blocks-testing-core": "2.1.1"
},

@@ -27,0 +27,0 @@ "author": "",

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