@khanacademy/wonder-blocks-layout 1.4.15 → 1.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/index.js.flow +1 -1
- package/package.json +3 -3
- package/src/components/__docs__/media-layout.stories.js +1 -1
- package/src/components/__docs__/spring.stories.js +1 -1
- package/src/components/__docs__/strut.stories.js +1 -1
- package/src/components/__tests__/media-layout-context.test.js +4 -4
- package/src/components/__tests__/media-layout.test.js +2 -2
- package/src/components/media-layout-context.js +2 -2
- package/src/components/media-layout.js +4 -4
- package/src/index.js +9 -9
- package/src/util/specs.js +1 -1
- package/src/util/test-util.js +1 -1
- package/src/util/test-util.test.js +1 -1
- package/src/util/util.js +1 -1
- package/src/util/util.test.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-layout
|
|
2
2
|
|
|
3
|
+
## 1.4.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 91cb727c: Remove file extensions from imports
|
|
8
|
+
- Updated dependencies [91cb727c]
|
|
9
|
+
- Updated dependencies [91cb727c]
|
|
10
|
+
- @khanacademy/wonder-blocks-core@4.7.0
|
|
11
|
+
|
|
3
12
|
## 1.4.15
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.js.flow
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @flow
|
|
2
|
-
export * from "../src/index
|
|
2
|
+
export * from "../src/index";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-layout",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.16",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.18.6",
|
|
17
|
-
"@khanacademy/wonder-blocks-core": "^4.
|
|
17
|
+
"@khanacademy/wonder-blocks-core": "^4.7.0",
|
|
18
18
|
"@khanacademy/wonder-blocks-spacing": "^3.0.5"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"wb-dev-build-settings": "^0.7.
|
|
21
|
+
"wb-dev-build-settings": "^0.7.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"aphrodite": "^1.2.5",
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
|
|
22
22
|
import type {StoryComponentType} from "@storybook/react";
|
|
23
23
|
|
|
24
|
-
import ComponentInfo from "../../../../../.storybook/components/component-info
|
|
24
|
+
import ComponentInfo from "../../../../../.storybook/components/component-info";
|
|
25
25
|
import {name, version} from "../../../package.json";
|
|
26
26
|
|
|
27
27
|
export default {
|
|
@@ -9,7 +9,7 @@ import Button from "@khanacademy/wonder-blocks-button";
|
|
|
9
9
|
|
|
10
10
|
import type {StoryComponentType} from "@storybook/react";
|
|
11
11
|
|
|
12
|
-
import ComponentInfo from "../../../../../.storybook/components/component-info
|
|
12
|
+
import ComponentInfo from "../../../../../.storybook/components/component-info";
|
|
13
13
|
import {name, version} from "../../../package.json";
|
|
14
14
|
|
|
15
15
|
export default {
|
|
@@ -10,7 +10,7 @@ import Spacing from "@khanacademy/wonder-blocks-spacing";
|
|
|
10
10
|
|
|
11
11
|
import type {StoryComponentType} from "@storybook/react";
|
|
12
12
|
|
|
13
|
-
import ComponentInfo from "../../../../../.storybook/components/component-info
|
|
13
|
+
import ComponentInfo from "../../../../../.storybook/components/component-info";
|
|
14
14
|
import {name, version} from "../../../package.json";
|
|
15
15
|
|
|
16
16
|
export default {
|
|
@@ -3,15 +3,15 @@ import * as React from "react";
|
|
|
3
3
|
import {View} from "@khanacademy/wonder-blocks-core";
|
|
4
4
|
import {render} from "@testing-library/react";
|
|
5
5
|
|
|
6
|
-
import MediaLayout from "../media-layout
|
|
7
|
-
import MediaLayoutContext from "../media-layout-context
|
|
8
|
-
import {resizeWindow, matchMedia} from "../../util/test-util
|
|
6
|
+
import MediaLayout from "../media-layout";
|
|
7
|
+
import MediaLayoutContext from "../media-layout-context";
|
|
8
|
+
import {resizeWindow, matchMedia} from "../../util/test-util";
|
|
9
9
|
|
|
10
10
|
import {
|
|
11
11
|
MEDIA_DEFAULT_SPEC,
|
|
12
12
|
MEDIA_INTERNAL_SPEC,
|
|
13
13
|
MEDIA_MODAL_SPEC,
|
|
14
|
-
} from "../../util/specs
|
|
14
|
+
} from "../../util/specs";
|
|
15
15
|
|
|
16
16
|
describe("MediaLayoutContext", () => {
|
|
17
17
|
beforeEach(() => {
|
|
@@ -4,8 +4,8 @@ import {StyleSheet} from "aphrodite";
|
|
|
4
4
|
import {View} from "@khanacademy/wonder-blocks-core";
|
|
5
5
|
import {render, screen} from "@testing-library/react";
|
|
6
6
|
|
|
7
|
-
import MediaLayout from "../media-layout
|
|
8
|
-
import {resizeWindow, matchMedia} from "../../util/test-util
|
|
7
|
+
import MediaLayout from "../media-layout";
|
|
8
|
+
import {resizeWindow, matchMedia} from "../../util/test-util";
|
|
9
9
|
|
|
10
10
|
describe("MediaLayout", () => {
|
|
11
11
|
beforeEach(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
|
-
import {MEDIA_DEFAULT_SPEC} from "../util/specs
|
|
5
|
-
import type {MediaSize, MediaSpec} from "../util/types
|
|
4
|
+
import {MEDIA_DEFAULT_SPEC} from "../util/specs";
|
|
5
|
+
import type {MediaSize, MediaSpec} from "../util/types";
|
|
6
6
|
|
|
7
7
|
export type Context = {|
|
|
8
8
|
/**
|
|
@@ -3,14 +3,14 @@ import * as React from "react";
|
|
|
3
3
|
import type {StyleDeclaration} from "aphrodite";
|
|
4
4
|
import type {StyleType} from "@khanacademy/wonder-blocks-core";
|
|
5
5
|
|
|
6
|
-
import MediaLayoutContext from "./media-layout-context
|
|
7
|
-
import type {MediaSize, MediaSpec} from "../util/types
|
|
8
|
-
import type {Context} from "./media-layout-context
|
|
6
|
+
import MediaLayoutContext from "./media-layout-context";
|
|
7
|
+
import type {MediaSize, MediaSpec} from "../util/types";
|
|
8
|
+
import type {Context} from "./media-layout-context";
|
|
9
9
|
import {
|
|
10
10
|
MEDIA_DEFAULT_SPEC,
|
|
11
11
|
MEDIA_INTERNAL_SPEC,
|
|
12
12
|
MEDIA_MODAL_SPEC,
|
|
13
|
-
} from "../util/specs
|
|
13
|
+
} from "../util/specs";
|
|
14
14
|
|
|
15
15
|
const queries = [
|
|
16
16
|
...Object.values(MEDIA_DEFAULT_SPEC).map((spec: any) => spec.query),
|
package/src/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @flow
|
|
2
|
-
import type {MediaQuery, MediaSize, MediaSpec} from "./util/types
|
|
3
|
-
import type {Context} from "./components/media-layout-context
|
|
4
|
-
import type {MockStyleSheet} from "./components/media-layout
|
|
2
|
+
import type {MediaQuery, MediaSize, MediaSpec} from "./util/types";
|
|
3
|
+
import type {Context} from "./components/media-layout-context";
|
|
4
|
+
import type {MockStyleSheet} from "./components/media-layout";
|
|
5
5
|
|
|
6
|
-
export {default as MediaLayout} from "./components/media-layout
|
|
7
|
-
export {default as MediaLayoutContext} from "./components/media-layout-context
|
|
8
|
-
export {default as Spring} from "./components/spring
|
|
9
|
-
export {default as Strut} from "./components/strut
|
|
10
|
-
export * from "./util/specs
|
|
11
|
-
export {queryMatchesSize} from "./util/util
|
|
6
|
+
export {default as MediaLayout} from "./components/media-layout";
|
|
7
|
+
export {default as MediaLayoutContext} from "./components/media-layout-context";
|
|
8
|
+
export {default as Spring} from "./components/spring";
|
|
9
|
+
export {default as Strut} from "./components/strut";
|
|
10
|
+
export * from "./util/specs";
|
|
11
|
+
export {queryMatchesSize} from "./util/util";
|
|
12
12
|
export type {
|
|
13
13
|
MediaQuery,
|
|
14
14
|
MediaSize,
|
package/src/util/specs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import Spacing from "@khanacademy/wonder-blocks-spacing";
|
|
4
4
|
|
|
5
|
-
import type {MediaSize, MediaSpec} from "./types
|
|
5
|
+
import type {MediaSize, MediaSpec} from "./types";
|
|
6
6
|
|
|
7
7
|
// All possible valid media sizes
|
|
8
8
|
export const VALID_MEDIA_SIZES: Array<MediaSize> = ["small", "medium", "large"];
|
package/src/util/test-util.js
CHANGED
package/src/util/util.js
CHANGED
package/src/util/util.test.js
CHANGED