Socket
Socket
Sign inDemoInstall

@khanacademy/wonder-blocks-icon

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.35 to 1.2.36

6

CHANGELOG.md
# @khanacademy/wonder-blocks-icon
## 1.2.36
### Patch Changes
- 1a5624d4: Update wonder-stuff dependencies to use newly published packages after migrating wonder-stuff to TypeScript
## 1.2.35

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

6

dist/es/index.js

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

import _extends from '@babel/runtime/helpers/extends';
import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';
import _extends from '@babel/runtime/helpers/extends';
import * as React from 'react';

@@ -183,4 +183,2 @@ import { StyleSheet } from 'aphrodite';

const icons = _objectWithoutPropertiesLoose(iconAssets, ["__esModule"]);
export { Icon as default, icons };
export { Icon as default, iconAssets as icons };

@@ -5,4 +5,4 @@ 'use strict';

var _extends = require('@babel/runtime/helpers/extends');
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');
var _extends = require('@babel/runtime/helpers/extends');
var React = require('react');

@@ -32,4 +32,4 @@ var aphrodite = require('aphrodite');

var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
var React__namespace = /*#__PURE__*/_interopNamespace(React);

@@ -213,5 +213,3 @@

const icons = _objectWithoutPropertiesLoose__default["default"](iconAssets, ["__esModule"]);
exports["default"] = Icon;
exports.icons = icons;
exports.icons = iconAssets;
{
"name": "@khanacademy/wonder-blocks-icon",
"version": "1.2.35",
"version": "1.2.36",
"design": "v1",

@@ -22,3 +22,3 @@ "publishConfig": {

"devDependencies": {
"@khanacademy/wonder-stuff-core": "^1.0.1",
"@khanacademy/wonder-stuff-core": "^1.2.0",
"wb-dev-build-settings": "^0.7.0"

@@ -30,2 +30,2 @@ },

}
}
}

@@ -8,4 +8,5 @@ // @flow

import {View} from "@khanacademy/wonder-blocks-core";
import Icon, {icons, type IconAsset} from "@khanacademy/wonder-blocks-icon";
import Icon, {icons} from "@khanacademy/wonder-blocks-icon";
import {LabelMedium} from "@khanacademy/wonder-blocks-typography";
import type {IconAsset} from "@khanacademy/wonder-blocks-icon";

@@ -100,14 +101,19 @@ import ComponentInfo from "../../../../../.storybook/components/component-info.js";

export const Variants: StoryComponentType = () => {
const iconsWithLabels = entries(icons).map(([name, icon]) => {
return (
<tr>
<td>
<Icon icon={icon} />
</td>
<td>
<LabelMedium>{name}</LabelMedium>
</td>
</tr>
);
});
// TODO(FEI-5018): Replace with Object.entries() after TS migration and get rid of
// `any` in callback. We may need to specify `IconAsset` as a type param. This
// doesn't work with Flow + Storybook for some reason.
const iconsWithLabels = entries(icons).map(
([name, icon]: [string, any]) => {
return (
<tr>
<td>
<Icon icon={icon} />
</td>
<td>
<LabelMedium>{name}</LabelMedium>
</td>
</tr>
);
},
);

@@ -114,0 +120,0 @@ return <table>{iconsWithLabels}</table>;

// @flow
import Icon from "./components/icon.js";
import * as iconAssets from "./util/icon-assets.js";
import type {IconAsset, IconSize} from "./util/icon-assets.js";
// $FlowIgnore[prop-missing]: Flow doesn't know about __esModule
const {__esModule: _, ...icons} = iconAssets;
export * as icons from "./util/icon-assets.js";
export type {IconAsset, IconSize};
export {icons};
export default Icon;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc