@khanacademy/wonder-blocks-icon
Advanced tools
Comparing version 1.2.36 to 1.2.37
# @khanacademy/wonder-blocks-icon | ||
## 1.2.37 | ||
### Patch Changes | ||
- 91cb727c: Update wonder-stuff dependencies | ||
- 91cb727c: Remove file extensions from imports | ||
- Updated dependencies [91cb727c] | ||
- Updated dependencies [91cb727c] | ||
- @khanacademy/wonder-blocks-core@4.7.0 | ||
## 1.2.36 | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "@khanacademy/wonder-blocks-icon", | ||
"version": "1.2.36", | ||
"version": "1.2.37", | ||
"design": "v1", | ||
@@ -19,7 +19,7 @@ "publishConfig": { | ||
"@babel/runtime": "^7.18.6", | ||
"@khanacademy/wonder-blocks-core": "^4.6.2" | ||
"@khanacademy/wonder-blocks-core": "^4.7.0" | ||
}, | ||
"devDependencies": { | ||
"@khanacademy/wonder-stuff-core": "^1.2.0", | ||
"wb-dev-build-settings": "^0.7.0" | ||
"@khanacademy/wonder-stuff-core": "^1.2.1", | ||
"wb-dev-build-settings": "^0.7.1" | ||
}, | ||
@@ -26,0 +26,0 @@ "peerDependencies": { |
@@ -12,3 +12,3 @@ // @flow | ||
import ComponentInfo from "../../../../../.storybook/components/component-info.js"; | ||
import ComponentInfo from "../../../../../.storybook/components/component-info"; | ||
import {name, version} from "../../../package.json"; | ||
@@ -15,0 +15,0 @@ |
@@ -6,4 +6,4 @@ // @flow | ||
import * as icons from "../../util/icon-assets.js"; | ||
import {getPathForIcon, viewportPixelsForSize} from "../../util/icon-util.js"; | ||
import * as icons from "../../util/icon-assets"; | ||
import {getPathForIcon, viewportPixelsForSize} from "../../util/icon-util"; | ||
@@ -43,3 +43,3 @@ // We mock things out so that we're in control of what really gets rendered. | ||
// Arrange | ||
const importModulePromise = import("../icon.js"); | ||
const importModulePromise = import("../icon"); | ||
@@ -55,3 +55,3 @@ // Act | ||
// Arrange | ||
const {default: Icon} = await import("../icon.js"); | ||
const {default: Icon} = await import("../icon"); | ||
const underTest = new Promise((resolve) => { | ||
@@ -83,3 +83,3 @@ const nodes = ( | ||
// Arrange | ||
const {default: Icon} = await import("../icon.js"); | ||
const {default: Icon} = await import("../icon"); | ||
const underTest = new Promise((resolve) => { | ||
@@ -109,3 +109,3 @@ const nodes = ( | ||
// Arrange | ||
const {default: Icon} = await import("../icon.js"); | ||
const {default: Icon} = await import("../icon"); | ||
mockGetPathForIcon.mockImplementationOnce(() => ({ | ||
@@ -136,3 +136,3 @@ assetSize: "large", | ||
// Arrange | ||
const {default: Icon} = await import("../icon.js"); | ||
const {default: Icon} = await import("../icon"); | ||
const expectedRenderSize = 42; | ||
@@ -174,3 +174,3 @@ const expectedAssetSize = 7; | ||
// Arrange | ||
const {default: Icon} = await import("../icon.js"); | ||
const {default: Icon} = await import("../icon"); | ||
const expectedRenderSize = 42; | ||
@@ -213,3 +213,3 @@ const expectedAssetSize = 7; | ||
// Arrange | ||
const {default: Icon} = await import("../icon.js"); | ||
const {default: Icon} = await import("../icon"); | ||
mockGetPathForIcon.mockImplementationOnce(() => ({ | ||
@@ -250,3 +250,3 @@ assetSize: "small", | ||
// Arrange | ||
const {default: Icon} = await import("../icon.js"); | ||
const {default: Icon} = await import("../icon"); | ||
mockGetPathForIcon.mockImplementationOnce(() => ({ | ||
@@ -253,0 +253,0 @@ assetSize: "small", |
@@ -7,5 +7,5 @@ // @flow | ||
import type {AriaProps, StyleType} from "@khanacademy/wonder-blocks-core"; | ||
import {getPathForIcon, viewportPixelsForSize} from "../util/icon-util.js"; | ||
import {getPathForIcon, viewportPixelsForSize} from "../util/icon-util"; | ||
import type {IconAsset, IconSize} from "../util/icon-assets.js"; | ||
import type {IconAsset, IconSize} from "../util/icon-assets"; | ||
@@ -12,0 +12,0 @@ type Props = {| |
// @flow | ||
import Icon from "./components/icon.js"; | ||
import type {IconAsset, IconSize} from "./util/icon-assets.js"; | ||
import Icon from "./components/icon"; | ||
import type {IconAsset, IconSize} from "./util/icon-assets"; | ||
export * as icons from "./util/icon-assets.js"; | ||
export * as icons from "./util/icon-assets"; | ||
export type {IconAsset, IconSize}; | ||
export default Icon; |
@@ -8,3 +8,3 @@ // @flow | ||
// $FlowIgnore[prop-missing]: Flow doesn't know about __esModule | ||
const {__esModule: _, ...icons} = await import("./icon-assets.js"); | ||
const {__esModule: _, ...icons} = await import("./icon-assets"); | ||
@@ -11,0 +11,0 @@ // Assert |
// @flow | ||
import type {IconAsset, IconSize} from "./icon-assets.js"; | ||
import type {IconAsset, IconSize} from "./icon-assets"; | ||
@@ -4,0 +4,0 @@ /** |
// @flow | ||
import {getPathForIcon, viewportPixelsForSize} from "./icon-util.js"; | ||
import {getPathForIcon, viewportPixelsForSize} from "./icon-util"; | ||
import type {IconSize, IconAsset} from "./icon-assets.js"; | ||
import type {IconSize, IconAsset} from "./icon-assets"; | ||
@@ -6,0 +6,0 @@ const SIZES = ["small", "medium", "large", "xlarge"]; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52108