aesthetic-adapter-typestyle
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -1,14 +0,21 @@ | ||
# 2.3.0 | ||
## 2.4.0 - 2019-04-28 | ||
#### 🚀 New | ||
#### 🛠 Internals | ||
- Removed `@babel/runtime` as it wasn't saving much space and it conflicts with the new `core-js` | ||
pattern. | ||
## 2.3.0 - 2019-02-26 | ||
#### 🚀 Updates | ||
- Added support for raw CSS declarations in a style sheet. | ||
#### 🐞 Fixed | ||
#### 🐞 Fixes | ||
- Added missing `@babel/runtime` package. | ||
# 2.2.0 - 2019-02-14 | ||
## 2.2.0 - 2019-02-14 | ||
#### 🛠 Internal | ||
#### 🛠 Internals | ||
@@ -18,5 +25,5 @@ - Support for the new React hooks API. | ||
# 2.1.0 - 2019-02-09 | ||
## 2.1.0 - 2019-02-09 | ||
#### 🚀 New | ||
#### 🚀 Updates | ||
@@ -39,31 +46,31 @@ - Added ECMAScript module support via `esm/` built files. | ||
#### 🛠 Internal | ||
#### 🛠 Internals | ||
- Converted from Flow to TypeScript. | ||
# 1.3.0 - 2018-05-30 | ||
## 1.3.0 - 2018-05-30 | ||
#### 🚀 New | ||
#### 🚀 Updates | ||
- Updated `aesthetic` peer requirement to 2.5. | ||
#### 🛠 Internal | ||
#### 🛠 Internals | ||
- Removed `lodash.merge` dependency. | ||
# 1.2.1 - 2018-03-20 | ||
### 1.2.1 - 2018-03-20 | ||
#### 🐞 Fixed | ||
#### 🐞 Fixes | ||
- Fixed incorrectly built and published files. | ||
# 1.2.0 - 2018-03-20 | ||
## 1.2.0 - 2018-03-20 | ||
#### 🚀 New | ||
#### 🚀 Updates | ||
- Updated `typestyle` to 1.7. | ||
# 1.1.0 - 2018-01-13 | ||
## 1.1.0 - 2018-01-13 | ||
#### 🚀 New | ||
#### 🚀 Updates | ||
@@ -76,9 +83,9 @@ - Can now pass dynamic style objects to `transform` (will be akin to inline). | ||
#### 🐞 Fixed | ||
#### 🐞 Fixes | ||
- Resolved some issues with pseudo classes. | ||
# 1.0.1 - 2018-01-03 | ||
### 1.0.1 - 2018-01-03 | ||
#### 🛠 Internal | ||
#### 🛠 Internals | ||
@@ -85,0 +92,0 @@ - Tested against TypeStyle 1.6. |
@@ -1,32 +0,30 @@ | ||
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/esm/createClass"; | ||
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn"; | ||
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf"; | ||
import _inherits from "@babel/runtime/helpers/esm/inherits"; | ||
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized"; | ||
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } | ||
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; } | ||
import Aesthetic from 'aesthetic'; | ||
var TypeStyleAesthetic = function (_Aesthetic) { | ||
_inherits(TypeStyleAesthetic, _Aesthetic); | ||
_inheritsLoose(TypeStyleAesthetic, _Aesthetic); | ||
function TypeStyleAesthetic(typeStyle) { | ||
function TypeStyleAesthetic(typeStyle, options) { | ||
var _this; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
if (options === void 0) { | ||
options = {}; | ||
} | ||
_classCallCheck(this, TypeStyleAesthetic); | ||
_this = _Aesthetic.call(this, options) || this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(TypeStyleAesthetic).call(this, options)); | ||
_defineProperty(_assertThisInitialized(_this), "typeStyle", void 0); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "typeStyle", void 0); | ||
_defineProperty(_assertThisInitialized(_this), "keyframes", {}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "keyframes", {}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleCss", function (css) { | ||
_defineProperty(_assertThisInitialized(_this), "handleCss", function (css) { | ||
_this.typeStyle.cssRaw(css); | ||
}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleFallback", function (ruleset, name, value) { | ||
_defineProperty(_assertThisInitialized(_this), "handleFallback", function (ruleset, name, value) { | ||
var fallbacks = ruleset.properties[name] || []; | ||
@@ -38,6 +36,6 @@ | ||
ruleset.addProperty(name, [].concat(_toConsumableArray(value), _toConsumableArray(fallbacks))); | ||
ruleset.addProperty(name, [].concat(value, fallbacks)); | ||
}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleFontFace", function (sheet, fontFaces) { | ||
_defineProperty(_assertThisInitialized(_this), "handleFontFace", function (sheet, fontFaces) { | ||
fontFaces.forEach(function (face) { | ||
@@ -48,21 +46,21 @@ _this.typeStyle.fontFace(face.toObject()); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleGlobal", function (sheet, selector, ruleset) { | ||
_defineProperty(_assertThisInitialized(_this), "handleGlobal", function (sheet, selector, ruleset) { | ||
_this.typeStyle.cssRule(selector, ruleset.toObject()); | ||
}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleKeyframe", function (sheet, keyframe, animationName) { | ||
_defineProperty(_assertThisInitialized(_this), "handleKeyframe", function (sheet, keyframe, animationName) { | ||
_this.keyframes[animationName] = _this.typeStyle.keyframes(keyframe.toObject()); | ||
}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleMedia", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@media ".concat(query), value); | ||
_defineProperty(_assertThisInitialized(_this), "handleMedia", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@media " + query, value); | ||
}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleNested", function (ruleset, selector, value) { | ||
_defineProperty(_assertThisInitialized(_this), "handleNested", function (ruleset, selector, value) { | ||
var nest = ruleset.nested.$nest || ruleset.createRuleset('$nest'); | ||
nest.addNested(selector.startsWith('@') ? selector : "&".concat(selector), value); | ||
nest.addNested(selector.startsWith('@') ? selector : "&" + selector, value); | ||
ruleset.addNested('$nest', nest); | ||
}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleProperty", function (ruleset, name, value) { | ||
_defineProperty(_assertThisInitialized(_this), "handleProperty", function (ruleset, name, value) { | ||
if (name === 'animationName') { | ||
@@ -75,4 +73,4 @@ ruleset.addProperty(name, _this.syntax.injectKeyframes(value, _this.keyframes).join(', ')); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleSupport", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@supports ".concat(query), value); | ||
_defineProperty(_assertThisInitialized(_this), "handleSupport", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@supports " + query, value); | ||
}); | ||
@@ -87,11 +85,10 @@ | ||
_createClass(TypeStyleAesthetic, [{ | ||
key: "transformToClassName", | ||
value: function transformToClassName(styles) { | ||
var _this$typeStyle; | ||
var _proto = TypeStyleAesthetic.prototype; | ||
return (_this$typeStyle = this.typeStyle).style.apply(_this$typeStyle, _toConsumableArray(styles)); | ||
} | ||
}]); | ||
_proto.transformToClassName = function transformToClassName(styles) { | ||
var _this$typeStyle; | ||
return (_this$typeStyle = this.typeStyle).style.apply(_this$typeStyle, styles); | ||
}; | ||
return TypeStyleAesthetic; | ||
@@ -98,0 +95,0 @@ }(Aesthetic); |
@@ -8,1 +8,2 @@ /** | ||
export default TypeStyleAesthetic; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
var _exportNames = {}; | ||
@@ -18,10 +14,7 @@ exports.default = void 0; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _types[key]; | ||
} | ||
}); | ||
exports[key] = _types[key]; | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -28,0 +21,0 @@ * @copyright 2017-2019, Miles Johnson |
import { types } from 'typestyle'; | ||
export declare type NativeBlock = types.NestedCSSProperties; | ||
export declare type ParsedBlock = NativeBlock; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -21,1 +21,2 @@ import Aesthetic, { AestheticOptions, ClassName } from 'aesthetic'; | ||
} | ||
//# sourceMappingURL=TypeStyleAesthetic.d.ts.map |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = void 0; | ||
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); | ||
var _aesthetic = _interopRequireDefault(require("aesthetic")); | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); | ||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } | ||
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); | ||
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; } | ||
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); | ||
var TypeStyleAesthetic = function (_Aesthetic) { | ||
_inheritsLoose(TypeStyleAesthetic, _Aesthetic); | ||
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); | ||
function TypeStyleAesthetic(typeStyle, options) { | ||
var _this; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
if (options === void 0) { | ||
options = {}; | ||
} | ||
var _aesthetic = _interopRequireDefault(require("aesthetic")); | ||
_this = _Aesthetic.call(this, options) || this; | ||
var TypeStyleAesthetic = function (_Aesthetic) { | ||
(0, _inherits2.default)(TypeStyleAesthetic, _Aesthetic); | ||
_defineProperty(_assertThisInitialized(_this), "typeStyle", void 0); | ||
function TypeStyleAesthetic(typeStyle) { | ||
var _this; | ||
_defineProperty(_assertThisInitialized(_this), "keyframes", {}); | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
(0, _classCallCheck2.default)(this, TypeStyleAesthetic); | ||
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(TypeStyleAesthetic).call(this, options)); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "typeStyle", void 0); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "keyframes", {}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleCss", function (css) { | ||
_defineProperty(_assertThisInitialized(_this), "handleCss", function (css) { | ||
_this.typeStyle.cssRaw(css); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleFallback", function (ruleset, name, value) { | ||
_defineProperty(_assertThisInitialized(_this), "handleFallback", function (ruleset, name, value) { | ||
var fallbacks = ruleset.properties[name] || []; | ||
@@ -49,5 +43,6 @@ | ||
ruleset.addProperty(name, [].concat((0, _toConsumableArray2.default)(value), (0, _toConsumableArray2.default)(fallbacks))); | ||
ruleset.addProperty(name, [].concat(value, fallbacks)); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleFontFace", function (sheet, fontFaces) { | ||
_defineProperty(_assertThisInitialized(_this), "handleFontFace", function (sheet, fontFaces) { | ||
fontFaces.forEach(function (face) { | ||
@@ -57,17 +52,22 @@ _this.typeStyle.fontFace(face.toObject()); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleGlobal", function (sheet, selector, ruleset) { | ||
_defineProperty(_assertThisInitialized(_this), "handleGlobal", function (sheet, selector, ruleset) { | ||
_this.typeStyle.cssRule(selector, ruleset.toObject()); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleKeyframe", function (sheet, keyframe, animationName) { | ||
_defineProperty(_assertThisInitialized(_this), "handleKeyframe", function (sheet, keyframe, animationName) { | ||
_this.keyframes[animationName] = _this.typeStyle.keyframes(keyframe.toObject()); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleMedia", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@media ".concat(query), value); | ||
_defineProperty(_assertThisInitialized(_this), "handleMedia", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@media " + query, value); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleNested", function (ruleset, selector, value) { | ||
_defineProperty(_assertThisInitialized(_this), "handleNested", function (ruleset, selector, value) { | ||
var nest = ruleset.nested.$nest || ruleset.createRuleset('$nest'); | ||
nest.addNested(selector.startsWith('@') ? selector : "&".concat(selector), value); | ||
nest.addNested(selector.startsWith('@') ? selector : "&" + selector, value); | ||
ruleset.addNested('$nest', nest); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleProperty", function (ruleset, name, value) { | ||
_defineProperty(_assertThisInitialized(_this), "handleProperty", function (ruleset, name, value) { | ||
if (name === 'animationName') { | ||
@@ -79,5 +79,7 @@ ruleset.addProperty(name, _this.syntax.injectKeyframes(value, _this.keyframes).join(', ')); | ||
}); | ||
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)((0, _assertThisInitialized2.default)(_this)), "handleSupport", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@supports ".concat(query), value); | ||
_defineProperty(_assertThisInitialized(_this), "handleSupport", function (ruleset, query, value) { | ||
_this.handleNested(ruleset, "@supports " + query, value); | ||
}); | ||
_this.typeStyle = typeStyle; | ||
@@ -90,10 +92,10 @@ | ||
(0, _createClass2.default)(TypeStyleAesthetic, [{ | ||
key: "transformToClassName", | ||
value: function transformToClassName(styles) { | ||
var _this$typeStyle; | ||
var _proto = TypeStyleAesthetic.prototype; | ||
return (_this$typeStyle = this.typeStyle).style.apply(_this$typeStyle, (0, _toConsumableArray2.default)(styles)); | ||
} | ||
}]); | ||
_proto.transformToClassName = function transformToClassName(styles) { | ||
var _this$typeStyle; | ||
return (_this$typeStyle = this.typeStyle).style.apply(_this$typeStyle, styles); | ||
}; | ||
return TypeStyleAesthetic; | ||
@@ -100,0 +102,0 @@ }(_aesthetic.default); |
{ | ||
"name": "aesthetic-adapter-typestyle", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "TypeStyle support for Aesthetic.", | ||
@@ -20,5 +20,2 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.3.1" | ||
}, | ||
"peerDependencies": { | ||
@@ -29,5 +26,5 @@ "aesthetic": "^3.0.0", | ||
"devDependencies": { | ||
"typestyle": "^2.0.1" | ||
"typestyle": "^2.0.2" | ||
}, | ||
"gitHead": "1dbb15feffeb83789a63e299abef0df1b8ca566c" | ||
"gitHead": "434a809cfa4d5d25086b39c334b1c8089221f1b1" | ||
} |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
22235
2
17
187
1
- Removed@babel/runtime@^7.3.1
- Removed@babel/runtime@7.26.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)