@preply/ds-web-core
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -8,3 +8,3 @@ import { useContext } from 'react'; | ||
if (Array.isArray(styles)) { | ||
styles.forEach(stylesheet.addStyle); | ||
styles.forEach(style => stylesheet.addStyle(style)); | ||
} | ||
@@ -18,2 +18,2 @@ else { | ||
export { useStyleExtract }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlU3R5bGVFeHRyYWN0LmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc3NyL2hvb2tzL3VzZVN0eWxlRXh0cmFjdC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDb250ZXh0IH0gZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgdHlwZSB7IENTU01vZHVsZSB9IGZyb20gJy4uLy4uL2Nzcy1tb2R1bGUvdHlwZXMnO1xuaW1wb3J0IHsgU3R5bGVFeHRyYWN0Q29udGV4dCB9IGZyb20gJy4uL2NvbnRleHRzL1N0eWxlRXh0cmFjdENvbnRleHQnO1xuXG5leHBvcnQgY29uc3QgdXNlU3R5bGVFeHRyYWN0ID0gKHN0eWxlczogQ1NTTW9kdWxlIHwgQ1NTTW9kdWxlW10pOiB2b2lkID0+IHtcbiAgICBjb25zdCBzdHlsZXNoZWV0ID0gdXNlQ29udGV4dChTdHlsZUV4dHJhY3RDb250ZXh0KTtcbiAgICBpZiAoc3R5bGVzaGVldC5hZGRTdHlsZSkge1xuICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShzdHlsZXMpKSB7XG4gICAgICAgICAgICBzdHlsZXMuZm9yRWFjaChzdHlsZXNoZWV0LmFkZFN0eWxlKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHN0eWxlc2hlZXQuYWRkU3R5bGUoc3R5bGVzKTtcbiAgICAgICAgfVxuICAgIH1cbn07XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6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ICAgICAgICBzdHlsZXMuZm9yRWFjaChzdHlsZSA9PiBzdHlsZXNoZWV0LmFkZFN0eWxlKHN0eWxlKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBzdHlsZXNoZWV0LmFkZFN0eWxlKHN0eWxlcyk7XG4gICAgICAgIH1cbiAgICB9XG59O1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztNQUthLGVBQWUsR0FBRyxDQUFDLE1BQStCO0lBQzNELE1BQU0sVUFBVSxHQUFHLFVBQVUsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO0lBQ25ELElBQUksVUFBVSxDQUFDLFFBQVEsRUFBRTtRQUNyQixJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDdkIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxLQUFLLElBQUksVUFBVSxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO1NBQ3ZEO2FBQU07WUFDSCxVQUFVLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1NBQy9CO0tBQ0o7QUFDTDs7OzsifQ== |
{ | ||
"name": "@preply/ds-web-core", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"publishConfig": { | ||
@@ -29,3 +29,3 @@ "access": "public" | ||
}, | ||
"gitHead": "747f8ae3f6506b5efc1d64947a27b6b69f55ce18" | ||
"gitHead": "afaebcd382926e6ada855c5a9b6b7336289d9c08" | ||
} |
111919
6