Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANS-18195 use updated react slick #12

Open
wants to merge 2 commits into
base: bugfix/ANS-12029-unslick-classes-pass
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,534 changes: 1,681 additions & 1,853 deletions dist/react-slick.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-slick.js.map

Large diffs are not rendered by default.

3,721 changes: 0 additions & 3,721 deletions dist/react-slick.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/react-slick.min.js.map

This file was deleted.

291 changes: 144 additions & 147 deletions lib/arrows.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
"use strict";

function _typeof(obj) {
function _typeof(o) {
"@babel/helpers - typeof";
return (
(_typeof =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function(obj) {
return typeof obj;
? function(o) {
return typeof o;
}
: function(obj) {
return obj &&
: function(o) {
return o &&
"function" == typeof Symbol &&
obj.constructor === Symbol &&
obj !== Symbol.prototype
o.constructor === Symbol &&
o !== Symbol.prototype
? "symbol"
: typeof obj;
: typeof o;
}),
_typeof(obj)
_typeof(o)
);
}
Object.defineProperty(exports, "__esModule", {
Expand All @@ -26,172 +26,172 @@ exports.PrevArrow = exports.NextArrow = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _innerSliderUtils = require("./utils/innerSliderUtils");
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
function _interopRequireDefault(e) {
return e && e.__esModule ? e : { default: e };
}
function _extends() {
_extends = Object.assign
? Object.assign.bind()
: function(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
return (
(_extends = Object.assign
? Object.assign.bind()
: function(n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}.hasOwnProperty.call(t, r) && (n[r] = t[r]));
}
}
return target;
};
return _extends.apply(this, arguments);
return n;
}),
_extends.apply(null, arguments)
);
}
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly &&
(symbols = symbols.filter(function(sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
var o = Object.getOwnPropertySymbols(e);
r &&
(o = o.filter(function(r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})),
keys.push.apply(keys, symbols);
t.push.apply(t, o);
}
return keys;
return t;
}
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) {
_defineProperty(target, key, source[key]);
function _objectSpread(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2
? ownKeys(Object(t), !0).forEach(function(r) {
_defineProperty(e, r, t[r]);
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(
target,
Object.getOwnPropertyDescriptors(source)
)
: ownKeys(Object(source)).forEach(function(key) {
Object.defineProperty(
target,
key,
Object.getOwnPropertyDescriptor(source, key)
);
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t))
: ownKeys(Object(t)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return target;
return e;
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
function _defineProperty(e, r, t) {
return (
(r = _toPropertyKey(r)) in e
? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
})
: (e[r] = t),
e
);
}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
function _classCallCheck(a, n) {
if (!(a instanceof n))
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
function _defineProperties(e, r) {
for (var t = 0; t < r.length; t++) {
var o = r[t];
(o.enumerable = o.enumerable || !1),
(o.configurable = !0),
"value" in o && (o.writable = !0),
Object.defineProperty(e, _toPropertyKey(o.key), o);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", { writable: false });
return Constructor;
function _createClass(e, r, t) {
return (
r && _defineProperties(e.prototype, r),
t && _defineProperties(e, t),
Object.defineProperty(e, "prototype", { writable: !1 }),
e
);
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: { value: subClass, writable: true, configurable: true }
});
Object.defineProperty(subClass, "prototype", { writable: false });
if (superClass) _setPrototypeOf(subClass, superClass);
function _toPropertyKey(t) {
var i = _toPrimitive(t, "string");
return "symbol" == _typeof(i) ? i : i + "";
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
function _toPrimitive(t, r) {
if ("object" != _typeof(t) || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != _typeof(i)) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
function _callSuper(t, o, e) {
return (
(o = _getPrototypeOf(o)),
_possibleConstructorReturn(
t,
_isNativeReflectConstruct()
? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor)
: o.apply(t, e)
)
);
}
function _possibleConstructorReturn(self, call) {
if (call && (_typeof(call) === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
function _possibleConstructorReturn(t, e) {
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
if (void 0 !== e)
throw new TypeError(
"Derived constructors may only return object or undefined"
);
}
return _assertThisInitialized(self);
return _assertThisInitialized(t);
}
function _assertThisInitialized(self) {
if (self === void 0) {
function _assertThisInitialized(e) {
if (void 0 === e)
throw new ReferenceError(
"this hasn't been initialised - super() hasn't been called"
);
}
return self;
return e;
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Boolean.prototype.valueOf.call(
var t = !Boolean.prototype.valueOf.call(
Reflect.construct(Boolean, [], function() {})
);
return true;
} catch (e) {
return false;
}
} catch (t) {}
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return !!t;
})();
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
function _getPrototypeOf(t) {
return (
(_getPrototypeOf = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function(t) {
return t.__proto__ || Object.getPrototypeOf(t);
}),
_getPrototypeOf(t)
);
}
var PrevArrow = /*#__PURE__*/ (function(_React$PureComponent) {
_inherits(PrevArrow, _React$PureComponent);
var _super = _createSuper(PrevArrow);
function _inherits(t, e) {
if ("function" != typeof e && null !== e)
throw new TypeError("Super expression must either be null or a function");
(t.prototype = Object.create(e && e.prototype, {
constructor: { value: t, writable: !0, configurable: !0 }
})),
Object.defineProperty(t, "prototype", { writable: !1 }),
e && _setPrototypeOf(t, e);
}
function _setPrototypeOf(t, e) {
return (
(_setPrototypeOf = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function(t, e) {
return (t.__proto__ = e), t;
}),
_setPrototypeOf(t, e)
);
}
var PrevArrow = (exports.PrevArrow = /*#__PURE__*/ (function(
_React$PureComponent
) {
function PrevArrow() {
_classCallCheck(this, PrevArrow);
return _super.apply(this, arguments);
return _callSuper(this, PrevArrow, arguments);
}
_createClass(PrevArrow, [
_inherits(PrevArrow, _React$PureComponent);
return _createClass(PrevArrow, [
{
key: "clickHandler",
value: function clickHandler(options, e) {
Expand Down Expand Up @@ -278,17 +278,16 @@ var PrevArrow = /*#__PURE__*/ (function(_React$PureComponent) {
}
}
]);
return PrevArrow;
})(_react["default"].PureComponent);
exports.PrevArrow = PrevArrow;
var NextArrow = /*#__PURE__*/ (function(_React$PureComponent2) {
_inherits(NextArrow, _React$PureComponent2);
var _super2 = _createSuper(NextArrow);
})(_react["default"].PureComponent));
var NextArrow = (exports.NextArrow = /*#__PURE__*/ (function(
_React$PureComponent2
) {
function NextArrow() {
_classCallCheck(this, NextArrow);
return _super2.apply(this, arguments);
return _callSuper(this, NextArrow, arguments);
}
_createClass(NextArrow, [
_inherits(NextArrow, _React$PureComponent2);
return _createClass(NextArrow, [
{
key: "clickHandler",
value: function clickHandler(options, e) {
Expand Down Expand Up @@ -371,6 +370,4 @@ var NextArrow = /*#__PURE__*/ (function(_React$PureComponent2) {
}
}
]);
return NextArrow;
})(_react["default"].PureComponent);
exports.NextArrow = NextArrow;
})(_react["default"].PureComponent));
7 changes: 3 additions & 4 deletions lib/default-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
function _interopRequireDefault(e) {
return e && e.__esModule ? e : { default: e };
}
var defaultProps = {
accessibility: true,
Expand Down Expand Up @@ -86,5 +86,4 @@ var defaultProps = {
vertical: false,
waitForAnimate: true
};
var _default = defaultProps;
exports["default"] = _default;
var _default = (exports["default"] = defaultProps);
Loading