@atjson/offset-annotations
Advanced tools
Comparing version 0.27.0 to 0.27.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.27.1](https://github.com/CondeNast/atjson/compare/@atjson/offset-annotations@0.27.0...@atjson/offset-annotations@0.27.1) (2020-02-20) | ||
**Note:** Version bump only for package @atjson/offset-annotations | ||
# [0.27.0](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/offset-annotations@0.26.1...@atjson/offset-annotations@0.27.0) (2020-02-10) | ||
@@ -8,0 +16,0 @@ |
@@ -114,15 +114,40 @@ "use strict"; | ||
} | ||
const spotifyEmbedTypes = { | ||
episode: "embed-podcast", | ||
show: "embed-podcast", | ||
default: "embed" | ||
}; | ||
const spotifyEmbedSizes = { | ||
default: { | ||
height: "380", | ||
width: "300" | ||
}, | ||
track: { | ||
height: "80", | ||
width: "300" | ||
}, | ||
episode: { | ||
height: "232", | ||
width: "100%" | ||
}, | ||
show: { | ||
height: "232", | ||
width: "100%" | ||
} | ||
}; | ||
function normalizeSpotifyUrl(url) { | ||
let parts = without(url.pathname.split("/"), ""); | ||
if (parts[0] === "embed") { | ||
if (parts[0] === "embed" || parts[0] === "embed-podcast") { | ||
parts.shift(); | ||
} | ||
let type = parts[0]; | ||
let embedType = spotifyEmbedTypes[type] || spotifyEmbedTypes.default; | ||
let id = parts[1]; | ||
let { height, width } = spotifyEmbedSizes[type] || spotifyEmbedSizes.default; | ||
return { | ||
Class: annotations_1.IframeEmbed, | ||
attributes: { | ||
url: `https://open.spotify.com/embed/${type}/${id}`, | ||
width: "300", | ||
height: type === "track" ? "80" : "380" | ||
url: `https://open.spotify.com/${embedType}/${type}/${id}`, | ||
width, | ||
height | ||
} | ||
@@ -170,2 +195,2 @@ }; | ||
exports.identify = identify; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29jaWFsLXVybHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvc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FFO1FBQ3JCLE9BQU8sbUJBQW1CLENBQUMsR0FBRyxDQUFDLENBQUM7S0FDakM7SUFFRCxJQUFJLFlBQVksQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNyQixPQUFPLG1CQUFtQixDQUFDLEdBQUcsQ0FBQyxDQUFDO0tBQ2pDO0lBRUQsSUFBSSxXQUFXLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDcEIsT0FBTyxrQkFBa0IsQ0FBQyxHQUFHLENBQUMsQ0FBQztLQUNoQztJQUVELE9BQU8sSUFBSSxDQUFDO0FBQ2QsQ0FBQztBQW5DRCw0QkFtQ0MifQ== |
@@ -112,15 +112,40 @@ import { IframeEmbed, FacebookEmbed, GiphyEmbed, InstagramEmbed, PinterestEmbed, TwitterEmbed, TikTokEmbed } from "../annotations"; | ||
} | ||
const spotifyEmbedTypes = { | ||
episode: "embed-podcast", | ||
show: "embed-podcast", | ||
default: "embed" | ||
}; | ||
const spotifyEmbedSizes = { | ||
default: { | ||
height: "380", | ||
width: "300" | ||
}, | ||
track: { | ||
height: "80", | ||
width: "300" | ||
}, | ||
episode: { | ||
height: "232", | ||
width: "100%" | ||
}, | ||
show: { | ||
height: "232", | ||
width: "100%" | ||
} | ||
}; | ||
function normalizeSpotifyUrl(url) { | ||
let parts = without(url.pathname.split("/"), ""); | ||
if (parts[0] === "embed") { | ||
if (parts[0] === "embed" || parts[0] === "embed-podcast") { | ||
parts.shift(); | ||
} | ||
let type = parts[0]; | ||
let embedType = spotifyEmbedTypes[type] || spotifyEmbedTypes.default; | ||
let id = parts[1]; | ||
let { height, width } = spotifyEmbedSizes[type] || spotifyEmbedSizes.default; | ||
return { | ||
Class: IframeEmbed, | ||
attributes: { | ||
url: `https://open.spotify.com/embed/${type}/${id}`, | ||
width: "300", | ||
height: type === "track" ? "80" : "380" | ||
url: `https://open.spotify.com/${embedType}/${type}/${id}`, | ||
width, | ||
height | ||
} | ||
@@ -167,2 +192,2 @@ }; | ||
} | ||
//# sourceM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FBRTtRQUNuQixPQUFPLGlCQUFpQixDQUFDLEdBQUcsQ0FBQyxDQUFDO0tBQy9CO0lBRUQsSUFBSSxjQUFjLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDdkIsT0FBTyxxQkFBcUIsQ0FBQyxHQUFHLENBQUMsQ0FBQztLQUNuQztJQUVELElBQUksY0FBYyxDQUFDLEdBQUcsQ0FBQyxFQUFFO1FBQ3ZCLE9BQU8scUJBQXFCLENBQUMsR0FBRyxDQUFDLENBQUM7S0FDbkM7SUFFRCxJQUFJLFlBQVksQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNyQixPQUFPLG1CQUFtQixDQUFDLEdBQUcsQ0FBQyxDQUFDO0tBQ2pDO0lBRUQsSUFBSSxZQUFZLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDckIsT0FBTyxtQkFBbUIsQ0FBQyxHQUFHLENBQUMsQ0FBQztLQUNqQztJQUVELElBQUksV0FBVyxDQUFDLEdBQUcsQ0FBQyxFQUFFO1FBQ3BCLE9BQU8sa0JBQWtCLENBQUMsR0FBRyxDQUFDLENBQUM7S0FDaEM7SUFFRCxPQUFPLElBQUksQ0FBQztBQUNkLENBQUMifQ== |
{ | ||
"name": "@atjson/offset-annotations", | ||
"version": "0.27.0", | ||
"version": "0.27.1", | ||
"description": "Annotations used for stories", | ||
@@ -18,3 +18,3 @@ "main": "dist/commonjs/index.js", | ||
}, | ||
"gitHead": "29d85c980db70c1ed4133c26c6f777ad54ab0947" | ||
"gitHead": "8400b8bb6b32db02577b111c420a1d58bbfd0d10" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
566832
2002
0