@khanacademy/wonder-blocks-breadcrumbs 2.0.4 → 2.0.6
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 +10 -0
- package/dist/components/breadcrumbs-item.js.flow +1 -2
- package/dist/components/breadcrumbs.js.flow +1 -2
- package/dist/es/index.js +10 -36
- package/dist/index.js +10 -36
- package/dist/index.js.flow +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-breadcrumbs
|
|
2
2
|
|
|
3
|
+
## 2.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c20f48f3: Don't transpile classes when building bundles
|
|
8
|
+
- Updated dependencies [c20f48f3]
|
|
9
|
+
- @khanacademy/wonder-blocks-core@5.0.4
|
|
10
|
+
|
|
11
|
+
## 2.0.5
|
|
12
|
+
|
|
3
13
|
## 2.0.4
|
|
4
14
|
|
|
5
15
|
## 2.0.3
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Flowtype definitions for
|
|
2
|
+
* Flowtype definitions for data
|
|
3
3
|
* Generated by Flowgen from a Typescript Definition
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
7
|
import * as React from "react";
|
|
9
8
|
import type { AriaProps } from "@khanacademy/wonder-blocks-core";
|
|
10
9
|
import Link from "@khanacademy/wonder-blocks-link";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Flowtype definitions for
|
|
2
|
+
* Flowtype definitions for data
|
|
3
3
|
* Generated by Flowgen from a Typescript Definition
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
7
|
import * as React from "react";
|
|
9
8
|
import type { AriaProps } from "@khanacademy/wonder-blocks-core";
|
|
10
9
|
import BreadcrumbsItem from "./breadcrumbs-item";
|
package/dist/es/index.js
CHANGED
|
@@ -31,29 +31,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
31
31
|
return target;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function _setPrototypeOf(o, p) {
|
|
35
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
36
|
-
o.__proto__ = p;
|
|
37
|
-
return o;
|
|
38
|
-
};
|
|
39
|
-
return _setPrototypeOf(o, p);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function _inheritsLoose(subClass, superClass) {
|
|
43
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
44
|
-
subClass.prototype.constructor = subClass;
|
|
45
|
-
_setPrototypeOf(subClass, superClass);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
34
|
const _excluded$1 = ["children", "testId"];
|
|
49
35
|
const StyledList = addStyle("ol");
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
function Breadcrumbs() {
|
|
53
|
-
return _React$Component.apply(this, arguments) || this;
|
|
54
|
-
}
|
|
55
|
-
var _proto = Breadcrumbs.prototype;
|
|
56
|
-
_proto.render = function render() {
|
|
36
|
+
class Breadcrumbs extends React.Component {
|
|
37
|
+
render() {
|
|
57
38
|
const _this$props = this.props,
|
|
58
39
|
{
|
|
59
40
|
children,
|
|
@@ -72,9 +53,8 @@ let Breadcrumbs = function (_React$Component) {
|
|
|
72
53
|
["aria-current"]: isLastChild ? "page" : undefined
|
|
73
54
|
}));
|
|
74
55
|
})));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
}(React.Component);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
78
58
|
Breadcrumbs.defaultProps = {
|
|
79
59
|
"aria-label": "Breadcrumbs"
|
|
80
60
|
};
|
|
@@ -91,13 +71,8 @@ const styles$1 = StyleSheet.create({
|
|
|
91
71
|
const _excluded = ["children", "showSeparator", "testId"];
|
|
92
72
|
const StyledListItem = addStyle("li");
|
|
93
73
|
const StyledSvg = addStyle("svg");
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
function BreadcrumbsItem() {
|
|
97
|
-
return _React$Component.apply(this, arguments) || this;
|
|
98
|
-
}
|
|
99
|
-
var _proto = BreadcrumbsItem.prototype;
|
|
100
|
-
_proto._renderSeparator = function _renderSeparator() {
|
|
74
|
+
class BreadcrumbsItem extends React.Component {
|
|
75
|
+
_renderSeparator() {
|
|
101
76
|
return React.createElement(StyledSvg, {
|
|
102
77
|
style: styles.separator,
|
|
103
78
|
width: 16,
|
|
@@ -109,8 +84,8 @@ let BreadcrumbsItem = function (_React$Component) {
|
|
|
109
84
|
cy: "9",
|
|
110
85
|
r: "1.5"
|
|
111
86
|
}));
|
|
112
|
-
}
|
|
113
|
-
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
114
89
|
const _this$props = this.props,
|
|
115
90
|
{
|
|
116
91
|
children,
|
|
@@ -122,9 +97,8 @@ let BreadcrumbsItem = function (_React$Component) {
|
|
|
122
97
|
style: styles.item,
|
|
123
98
|
"data-test-id": testId
|
|
124
99
|
}), children, showSeparator && this._renderSeparator());
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
}(React.Component);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
128
102
|
const styles = StyleSheet.create({
|
|
129
103
|
item: {
|
|
130
104
|
display: "flex",
|
package/dist/index.js
CHANGED
|
@@ -58,29 +58,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
58
58
|
return target;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
function _setPrototypeOf(o, p) {
|
|
62
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
63
|
-
o.__proto__ = p;
|
|
64
|
-
return o;
|
|
65
|
-
};
|
|
66
|
-
return _setPrototypeOf(o, p);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function _inheritsLoose(subClass, superClass) {
|
|
70
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
71
|
-
subClass.prototype.constructor = subClass;
|
|
72
|
-
_setPrototypeOf(subClass, superClass);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
61
|
const _excluded$1 = ["children", "testId"];
|
|
76
62
|
const StyledList = wonderBlocksCore.addStyle("ol");
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
function Breadcrumbs() {
|
|
80
|
-
return _React$Component.apply(this, arguments) || this;
|
|
81
|
-
}
|
|
82
|
-
var _proto = Breadcrumbs.prototype;
|
|
83
|
-
_proto.render = function render() {
|
|
63
|
+
class Breadcrumbs extends React__namespace.Component {
|
|
64
|
+
render() {
|
|
84
65
|
const _this$props = this.props,
|
|
85
66
|
{
|
|
86
67
|
children,
|
|
@@ -99,9 +80,8 @@ let Breadcrumbs = function (_React$Component) {
|
|
|
99
80
|
["aria-current"]: isLastChild ? "page" : undefined
|
|
100
81
|
}));
|
|
101
82
|
})));
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
}(React__namespace.Component);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
105
85
|
Breadcrumbs.defaultProps = {
|
|
106
86
|
"aria-label": "Breadcrumbs"
|
|
107
87
|
};
|
|
@@ -118,13 +98,8 @@ const styles$1 = aphrodite.StyleSheet.create({
|
|
|
118
98
|
const _excluded = ["children", "showSeparator", "testId"];
|
|
119
99
|
const StyledListItem = wonderBlocksCore.addStyle("li");
|
|
120
100
|
const StyledSvg = wonderBlocksCore.addStyle("svg");
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
function BreadcrumbsItem() {
|
|
124
|
-
return _React$Component.apply(this, arguments) || this;
|
|
125
|
-
}
|
|
126
|
-
var _proto = BreadcrumbsItem.prototype;
|
|
127
|
-
_proto._renderSeparator = function _renderSeparator() {
|
|
101
|
+
class BreadcrumbsItem extends React__namespace.Component {
|
|
102
|
+
_renderSeparator() {
|
|
128
103
|
return React__namespace.createElement(StyledSvg, {
|
|
129
104
|
style: styles.separator,
|
|
130
105
|
width: 16,
|
|
@@ -136,8 +111,8 @@ let BreadcrumbsItem = function (_React$Component) {
|
|
|
136
111
|
cy: "9",
|
|
137
112
|
r: "1.5"
|
|
138
113
|
}));
|
|
139
|
-
}
|
|
140
|
-
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
141
116
|
const _this$props = this.props,
|
|
142
117
|
{
|
|
143
118
|
children,
|
|
@@ -149,9 +124,8 @@ let BreadcrumbsItem = function (_React$Component) {
|
|
|
149
124
|
style: styles.item,
|
|
150
125
|
"data-test-id": testId
|
|
151
126
|
}), children, showSeparator && this._renderSeparator());
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
}(React__namespace.Component);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
155
129
|
const styles = aphrodite.StyleSheet.create({
|
|
156
130
|
item: {
|
|
157
131
|
display: "flex",
|
package/dist/index.js.flow
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Flowtype definitions for
|
|
2
|
+
* Flowtype definitions for data
|
|
3
3
|
* Generated by Flowgen from a Typescript Definition
|
|
4
4
|
* Flowgen v1.21.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
7
|
import Breadcrumbs from "./components/breadcrumbs";
|
|
9
8
|
import BreadcrumbsItem from "./components/breadcrumbs-item";
|
|
10
9
|
declare export { Breadcrumbs, BreadcrumbsItem };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-breadcrumbs",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-core": "^5.0.
|
|
19
|
+
"@khanacademy/wonder-blocks-core": "^5.0.4",
|
|
20
20
|
"@khanacademy/wonder-blocks-spacing": "^4.0.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react": "16.14.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"wb-dev-build-settings": "^0.9.
|
|
27
|
+
"wb-dev-build-settings": "^0.9.5"
|
|
28
28
|
}
|
|
29
29
|
}
|