@papillonbits/library 0.12.0 → 0.15.0
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/a11y/index.js +1 -1
- package/array/index.js +7 -7
- package/auth/index.js +2 -2
- package/object/index.js +1 -1
- package/package.json +2 -2
- package/pagination/index.js +1 -1
- package/sort/index.js +2 -2
- package/store/mock/index.js +1 -1
package/a11y/index.js
CHANGED
|
@@ -11,6 +11,6 @@ var _react = _interopRequireDefault(require("@axe-core/react"));
|
|
|
11
11
|
|
|
12
12
|
function checkAccessibilityIssues(react, reactDOM, delay) {
|
|
13
13
|
if (process.env.NODE_ENV !== 'production') {
|
|
14
|
-
(0, _react
|
|
14
|
+
(0, _react["default"])(react, reactDOM, delay);
|
|
15
15
|
}
|
|
16
16
|
}
|
package/array/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var _excluded = ["id", "name"],
|
|
|
28
28
|
|
|
29
29
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
30
30
|
|
|
31
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2
|
|
31
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
32
32
|
|
|
33
33
|
function getCurrentIndex(indexItems) {
|
|
34
34
|
var _indexItems$filter$0$, _indexItems$filter$;
|
|
@@ -97,20 +97,20 @@ function getItemsDefaultSelected(_ref6) {
|
|
|
97
97
|
var result;
|
|
98
98
|
|
|
99
99
|
if (defaultItems && items) {
|
|
100
|
-
result = [].concat((0, _toConsumableArray2
|
|
100
|
+
result = [].concat((0, _toConsumableArray2["default"])(defaultItems === null || defaultItems === void 0 ? void 0 : defaultItems.map(function (_ref7) {
|
|
101
101
|
var id = _ref7.id,
|
|
102
102
|
name = _ref7.name,
|
|
103
|
-
rest = (0, _objectWithoutProperties2
|
|
103
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref7, _excluded);
|
|
104
104
|
return _objectSpread({
|
|
105
105
|
id: id,
|
|
106
106
|
href: '#url',
|
|
107
107
|
text: name,
|
|
108
108
|
isSelected: name === defaultItems[0].name
|
|
109
109
|
}, rest);
|
|
110
|
-
})), (0, _toConsumableArray2
|
|
110
|
+
})), (0, _toConsumableArray2["default"])(items === null || items === void 0 ? void 0 : items.map(function (_ref8) {
|
|
111
111
|
var id = _ref8.id,
|
|
112
112
|
name = _ref8.name,
|
|
113
|
-
rest = (0, _objectWithoutProperties2
|
|
113
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref8, _excluded2);
|
|
114
114
|
return _objectSpread({
|
|
115
115
|
id: id,
|
|
116
116
|
href: '#url',
|
|
@@ -128,7 +128,7 @@ function getItemsDefaultSelected(_ref6) {
|
|
|
128
128
|
result = items === null || items === void 0 ? void 0 : items.map(function (_ref9) {
|
|
129
129
|
var id = _ref9.id,
|
|
130
130
|
name = _ref9.name,
|
|
131
|
-
rest = (0, _objectWithoutProperties2
|
|
131
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref9, _excluded3);
|
|
132
132
|
return _objectSpread({
|
|
133
133
|
id: id,
|
|
134
134
|
href: '#url',
|
|
@@ -154,7 +154,7 @@ function getItemsRandomSelected(_ref10) {
|
|
|
154
154
|
return items.map(function (_ref12) {
|
|
155
155
|
var id = _ref12.id,
|
|
156
156
|
name = _ref12.name,
|
|
157
|
-
rest = (0, _objectWithoutProperties2
|
|
157
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref12, _excluded4);
|
|
158
158
|
return _objectSpread({
|
|
159
159
|
id: id,
|
|
160
160
|
href: '#url',
|
package/auth/index.js
CHANGED
|
@@ -27,10 +27,10 @@ function isUserAuthenticatedPapillonBitsOrganizationMember(_x) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function _isUserAuthenticatedPapillonBitsOrganizationMember() {
|
|
30
|
-
_isUserAuthenticatedPapillonBitsOrganizationMember = (0, _asyncToGenerator2
|
|
30
|
+
_isUserAuthenticatedPapillonBitsOrganizationMember = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(personalAccessToken) {
|
|
31
31
|
var collectedAccessToken, octokit, _yield$octokit$reques, data, isActivePapillonBitsMember;
|
|
32
32
|
|
|
33
|
-
return _regenerator
|
|
33
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
34
34
|
while (1) {
|
|
35
35
|
switch (_context.prev = _context.next) {
|
|
36
36
|
case 0:
|
package/object/index.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.deepCloneObject = deepCloneObject;
|
|
|
10
10
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
11
|
|
|
12
12
|
function deepCloneObject(obj) {
|
|
13
|
-
if ((0, _typeof2
|
|
13
|
+
if ((0, _typeof2["default"])(obj) !== 'object') {
|
|
14
14
|
return undefined;
|
|
15
15
|
}
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonbits/library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Papillon Bits Library",
|
|
5
5
|
"homepage": "https://github.com/papillonbits/papillonbits/tree/master/packages/library",
|
|
6
6
|
"repository": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"build-acceptance": "npm run build",
|
|
37
37
|
"build-release": "npm run build"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "725413b05217ee4dd169b43230026bd3ba4b5db3"
|
|
40
40
|
}
|
package/pagination/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var _array = require("../array");
|
|
|
16
16
|
|
|
17
17
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18
18
|
|
|
19
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2
|
|
19
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
20
|
|
|
21
21
|
var paginationActionTypes = {
|
|
22
22
|
onChange: 'onChange',
|
package/sort/index.js
CHANGED
|
@@ -56,7 +56,7 @@ function sortObjects(_ref2) {
|
|
|
56
56
|
return objects.sort(function (a, b) {
|
|
57
57
|
var _a$sort$value2, _a$sort$value2$value, _b$sort$value2, _b$sort$value2$value, _a$sort$value3, _b$sort$value3;
|
|
58
58
|
|
|
59
|
-
switch ((0, _typeof2
|
|
59
|
+
switch ((0, _typeof2["default"])(a === null || a === void 0 ? void 0 : a[sort.value])) {
|
|
60
60
|
case 'object':
|
|
61
61
|
if ((a === null || a === void 0 ? void 0 : a[sort.value]) instanceof Object && (a === null || a === void 0 ? void 0 : a[sort.value]) instanceof Date) {
|
|
62
62
|
return (a === null || a === void 0 ? void 0 : a[sort.value]) > (b === null || b === void 0 ? void 0 : b[sort.value]) ? 1 : -1;
|
|
@@ -89,7 +89,7 @@ function sortObjects(_ref2) {
|
|
|
89
89
|
return objects.sort(function (a, b) {
|
|
90
90
|
var _a$sort$value5, _a$sort$value5$value, _b$sort$value5, _b$sort$value5$value, _a$sort$value6, _b$sort$value6;
|
|
91
91
|
|
|
92
|
-
switch ((0, _typeof2
|
|
92
|
+
switch ((0, _typeof2["default"])(a === null || a === void 0 ? void 0 : a[sort.value])) {
|
|
93
93
|
case 'object':
|
|
94
94
|
if ((a === null || a === void 0 ? void 0 : a[sort.value]) instanceof Object && (a === null || a === void 0 ? void 0 : a[sort.value]) instanceof Date) {
|
|
95
95
|
return (a === null || a === void 0 ? void 0 : a[sort.value]) < (b === null || b === void 0 ? void 0 : b[sort.value]) ? 1 : -1;
|
package/store/mock/index.js
CHANGED
|
@@ -12,5 +12,5 @@ var _reduxMockStore = _interopRequireDefault(require("redux-mock-store"));
|
|
|
12
12
|
var _reduxThunk = _interopRequireDefault(require("redux-thunk"));
|
|
13
13
|
|
|
14
14
|
function getAppMockStore(customAppState) {
|
|
15
|
-
return (0, _reduxMockStore
|
|
15
|
+
return (0, _reduxMockStore["default"])([_reduxThunk["default"]])(customAppState);
|
|
16
16
|
}
|