Socket
Socket
Sign inDemoInstall

@khanacademy/wonder-blocks-link

Package Overview
Dependencies
Maintainers
1
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.2.5 to 3.3.0

5

components/link.js

@@ -30,2 +30,7 @@ // @flow

/**
* An optional id attribute.
*/
id?: string,
/**
* Kind of Link. Note: Secondary light Links are not supported.

@@ -32,0 +37,0 @@ */

12

components/link.md

@@ -9,7 +9,7 @@ ### Example: Link

<p>
I am a <Link href="#nonexistent-link">Primary Link</Link>. <span
style={{color: Color.offBlack64}}>My friend the
<Link href="#secondary-nonexistent-link" kind="secondary">Secondary Link
</Link> is used here with a lighter text.</span> We also have a
<Link href="#" visitable={true}>Visitable Primary Link</Link> friend.
I am a <Link href="#nonexistent-link">Primary Link</Link>. <span
style={{color: Color.offBlack64}}>My friend the
<Link href="#secondary-nonexistent-link" kind="secondary">Secondary Link
</Link> is used here with a lighter text.</span> We also have a
<Link href="#" visitable={true}>Visitable Primary Link</Link> friend.
</p>

@@ -34,3 +34,3 @@ <p style={{backgroundColor: Color.darkBlue, color: Color.white64, padding: 10}}>

<View>
<Link href="#nonexistent-link">
<Link href="#nonexistent-link" id="typography-link">
<HeadingSmall>Heading inside a Link element</HeadingSmall>

@@ -37,0 +37,0 @@ </Link>

@@ -183,5 +183,3 @@ import { createElement, Component } from 'react';

var LinkCore =
/*#__PURE__*/
function (_React$Component) {
var LinkCore = /*#__PURE__*/function (_React$Component) {
_inherits(LinkCore, _React$Component);

@@ -315,5 +313,3 @@

*/
var Link =
/*#__PURE__*/
function (_React$Component) {
var Link = /*#__PURE__*/function (_React$Component) {
_inherits(Link, _React$Component);

@@ -320,0 +316,0 @@

@@ -129,4 +129,8 @@ module.exports =

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ link_Link; });
// EXTERNAL MODULE: external "react"

@@ -153,3 +157,3 @@ var external_react_ = __webpack_require__(1);

// CONCATENATED MODULE: ./packages/wonder-blocks-link/components/link-core.js
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

@@ -193,5 +197,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var link_core_LinkCore =
/*#__PURE__*/
function (_React$Component) {
var link_core_LinkCore = /*#__PURE__*/function (_React$Component) {
_inherits(LinkCore, _React$Component);

@@ -310,3 +312,3 @@

// CONCATENATED MODULE: ./packages/wonder-blocks-link/components/link.js
function link_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { link_typeof = function _typeof(obj) { return typeof obj; }; } else { link_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return link_typeof(obj); }
function link_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { link_typeof = function _typeof(obj) { return typeof obj; }; } else { link_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return link_typeof(obj); }

@@ -359,5 +361,3 @@ function link_extends() { link_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return link_extends.apply(this, arguments); }

*/
var link_Link =
/*#__PURE__*/
function (_React$Component) {
var link_Link = /*#__PURE__*/function (_React$Component) {
link_inherits(Link, _React$Component);

@@ -412,3 +412,2 @@

// CONCATENATED MODULE: ./packages/wonder-blocks-link/index.js
/* concated harmony reexport default */__webpack_require__.d(__webpack_exports__, "default", function() { return link_Link; });

@@ -415,0 +414,0 @@

@@ -65,3 +65,3 @@ // This file is auto-generated by gen-snapshot-tests.js

<View>
<Link href="#nonexistent-link">
<Link href="#nonexistent-link" id="typography-link">
<HeadingSmall>Heading inside a Link element</HeadingSmall>

@@ -68,0 +68,0 @@ </Link>

{
"name": "@khanacademy/wonder-blocks-link",
"version": "3.2.5",
"version": "3.3.0",
"design": "v1",

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

"dependencies": {
"@khanacademy/wonder-blocks-color": "^1.1.10",
"@khanacademy/wonder-blocks-core": "^2.5.0"
"@khanacademy/wonder-blocks-color": "^1.1.11",
"@khanacademy/wonder-blocks-core": "^2.5.1"
},

@@ -31,3 +31,3 @@ "peerDependencies": {

},
"gitHead": "e80922dd847385d5b3baa19250a29188e4a6b353"
"gitHead": "3c6c92225a4eba049ead8d78e2d3eb648e5b16ab"
}

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