Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atjson/offset-annotations

Package Overview
Dependencies
Maintainers
7
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atjson/offset-annotations - npm Package Compare versions

Comparing version 0.25.0 to 0.26.0

dist/commonjs/annotations/video-embed.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.26.0](https://github.com/CondeNast/atjson/compare/@atjson/offset-annotations@0.25.0...@atjson/offset-annotations@0.26.0) (2020-01-28)
### Features
* start moving from YouTube embeds to a more generic VideoEmbed ([79080dd](https://github.com/CondeNast/atjson/commit/79080dd4b899eae9d32a02d737778385a7464275))
## [0.25.0](https://github.com/CondeNast/atjson/compare/@atjson/offset-annotations@0.24.3...@atjson/offset-annotations@0.25.0) (2020-01-24)

@@ -8,0 +19,0 @@

1

dist/commonjs/annotations/giphy-embed.d.ts

@@ -5,4 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get giphyId(): string | null;
}
//# sourceMappingURL=giphy-embed.d.ts.map

@@ -5,11 +5,2 @@ "use strict";

class GiphyEmbed extends iframe_embed_1.IframeEmbed {
get giphyId() {
let url = this.url;
if (url) {
return iframe_embed_1.without(url.pathname.split("/"), "")[1]
.split("-")
.slice(-1)[0];
}
return null;
}
}

@@ -19,2 +10,2 @@ exports.GiphyEmbed = GiphyEmbed;

GiphyEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2lwaHktZW1iZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvZ2lwaHktZW1iZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBc0Q7QUFFdEQsTUFBYSxVQUFXLFNBQVEsMEJBQVc7SUFJekMsSUFBSSxPQUFPO1FBQ1QsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQztRQUNuQixJQUFJLEdBQUcsRUFBRTtZQUNQLE9BQU8sc0JBQU8sQ0FBUyxHQUFHLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUM7aUJBQ25ELEtBQUssQ0FBQyxHQUFHLENBQUM7aUJBQ1YsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDakI7UUFDRCxPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7O0FBWkgsZ0NBYUM7QUFaUSxlQUFJLEdBQUcsYUFBYSxDQUFDO0FBQ3JCLHVCQUFZLEdBQUcsUUFBUSxDQUFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2lwaHktZW1iZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvZ2lwaHktZW1iZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBNkM7QUFFN0MsTUFBYSxVQUFXLFNBQVEsMEJBQVc7O0FBQTNDLGdDQUdDO0FBRlEsZUFBSSxHQUFHLGFBQWEsQ0FBQztBQUNyQix1QkFBWSxHQUFHLFFBQVEsQ0FBQyJ9
import { ObjectAnnotation } from "@atjson/document";
import { CaptionSource } from "./caption-source";
export declare function without<T>(array: T[], value: T): T[];
export declare class IframeEmbed extends ObjectAnnotation<{

@@ -5,0 +4,0 @@ url: string;

@@ -5,12 +5,2 @@ "use strict";

const caption_source_1 = require("./caption-source");
function without(array, value) {
let presentParts = [];
for (let part of array) {
if (part !== value) {
presentParts.push(part);
}
}
return presentParts;
}
exports.without = without;
class IframeEmbed extends document_1.ObjectAnnotation {

@@ -30,2 +20,2 @@ get url() {

IframeEmbed.subdocuments = { caption: caption_source_1.CaptionSource };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2lmcmFtZS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtDQUFvRDtBQUNwRCxxREFBaUQ7QUFFakQsU0FBZ0IsT0FBTyxDQUFJLEtBQVUsRUFBRSxLQUFRO0lBQzdDLElBQUksWUFBWSxHQUFRLEVBQUUsQ0FBQztJQUMzQixLQUFLLElBQUksSUFBSSxJQUFJLEtBQUssRUFBRTtRQUN0QixJQUFJLElBQUksS0FBSyxLQUFLLEVBQUU7WUFDbEIsWUFBWSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztTQUN6QjtLQUNGO0lBQ0QsT0FBTyxZQUFZLENBQUM7QUFDdEIsQ0FBQztBQVJELDBCQVFDO0FBRUQsTUFBYSxXQUFZLFNBQVEsMkJBTS9CO0lBS0EsSUFBSSxHQUFHO1FBQ0wsSUFBSTtZQUNGLE9BQU8sSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUNyQztRQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQ1YsT0FBTyxJQUFJLENBQUM7U0FDYjtJQUNILENBQUM7O0FBakJILGtDQWtCQztBQVhRLGdCQUFJLEdBQUcsY0FBYyxDQUFDO0FBQ3RCLHdCQUFZLEdBQUcsUUFBUSxDQUFDO0FBQ3hCLHdCQUFZLEdBQUcsRUFBRSxPQUFPLEVBQUUsOEJBQWEsRUFBRSxDQUFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2lmcmFtZS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtDQUFvRDtBQUNwRCxxREFBaUQ7QUFFakQsTUFBYSxXQUFZLFNBQVEsMkJBTS9CO0lBS0EsSUFBSSxHQUFHO1FBQ0wsSUFBSTtZQUNGLE9BQU8sSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUNyQztRQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQ1YsT0FBTyxJQUFJLENBQUM7U0FDYjtJQUNILENBQUM7O0FBakJILGtDQWtCQztBQVhRLGdCQUFJLEdBQUcsY0FBYyxDQUFDO0FBQ3RCLHdCQUFZLEdBQUcsUUFBUSxDQUFDO0FBQ3hCLHdCQUFZLEdBQUcsRUFBRSxPQUFPLEVBQUUsOEJBQWEsRUFBRSxDQUFDIn0=

@@ -30,3 +30,3 @@ export * from "./blockquote";

export * from "./underline";
export * from "./youtube-embed";
export * from "./video-embed";
//# sourceMappingURL=index.d.ts.map

@@ -35,3 +35,3 @@ "use strict";

__export(require("./underline"));
__export(require("./youtube-embed"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxrQ0FBNkI7QUFDN0IsNEJBQXVCO0FBQ3ZCLHNDQUFpQztBQUNqQyxtQ0FBOEI7QUFDOUIsNEJBQXVCO0FBQ3ZCLHNDQUFpQztBQUNqQyxvQ0FBK0I7QUFDL0IsbUNBQThCO0FBQzlCLCtCQUEwQjtBQUMxQix1Q0FBa0M7Q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M5QixxQ0FBZ0M7QUFDaEMsaUNBQTRCO0FBQzVCLG1DQUE4QiJ9

@@ -5,4 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get shortcode(): string | null;
}
//# sourceMappingURL=instagram-embed.d.ts.map

@@ -5,9 +5,2 @@ "use strict";

class InstagramEmbed extends iframe_embed_1.IframeEmbed {
get shortcode() {
let url = this.url;
if (url) {
return iframe_embed_1.without(url.pathname.split("/"), "")[1];
}
return null;
}
}

@@ -17,2 +10,2 @@ exports.InstagramEmbed = InstagramEmbed;

InstagramEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFncmFtLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2luc3RhZ3JhbS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFzRDtBQUV0RCxNQUFhLGNBQWUsU0FBUSwwQkFBVztJQUk3QyxJQUFJLFNBQVM7UUFDWCxJQUFJLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDO1FBQ25CLElBQUksR0FBRyxFQUFFO1lBQ1AsT0FBTyxzQkFBTyxDQUFTLEdBQUcsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1NBQ3hEO1FBQ0QsT0FBTyxJQUFJLENBQUM7SUFDZCxDQUFDOztBQVZILHdDQVdDO0FBVlEsbUJBQUksR0FBRyxpQkFBaUIsQ0FBQztBQUN6QiwyQkFBWSxHQUFHLFFBQVEsQ0FBQyJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFncmFtLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2luc3RhZ3JhbS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUE2QztBQUU3QyxNQUFhLGNBQWUsU0FBUSwwQkFBVzs7QUFBL0Msd0NBR0M7QUFGUSxtQkFBSSxHQUFHLGlCQUFpQixDQUFDO0FBQ3pCLDJCQUFZLEdBQUcsUUFBUSxDQUFDIn0=

@@ -5,8 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get isPin(): boolean;
get isProfile(): boolean;
get isBoard(): boolean;
get pinId(): string | null;
get profileName(): string | null;
}
//# sourceMappingURL=pinterest-embed.d.ts.map

@@ -5,37 +5,2 @@ "use strict";

class PinterestEmbed extends iframe_embed_1.IframeEmbed {
get isPin() {
let url = this.url;
if (url) {
return iframe_embed_1.without(url.pathname.split("/"), "")[0] === "pin";
}
return false;
}
get isProfile() {
let url = this.url;
if (url) {
return (!this.isPin && iframe_embed_1.without(url.pathname.split("/"), "").length === 2);
}
return false;
}
get isBoard() {
let url = this.url;
if (url) {
return iframe_embed_1.without(url.pathname.split("/"), "").length === 1;
}
return false;
}
get pinId() {
let url = this.url;
if (this.isPin && url) {
return iframe_embed_1.without(url.pathname.split("/"), "")[1];
}
return null;
}
get profileName() {
let url = this.url;
if (!this.isPin && url) {
return iframe_embed_1.without(url.pathname.split("/"), "")[0];
}
return null;
}
}

@@ -45,2 +10,2 @@ exports.PinterestEmbed = PinterestEmbed;

PinterestEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGludGVyZXN0LWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL3BpbnRlcmVzdC1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGl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BQUksQ0FBQyxLQUFLLElBQUksR0FBRyxFQUFFO1lBQ3JCLE9BQU8sc0JBQU8sQ0FBUyxHQUFHLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUN4RDtRQUNELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVELElBQUksV0FBVztRQUNiLElBQUksR0FBRyxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUM7UUFDbkIsSUFBSSxDQUFDLElBQUksQ0FBQyxLQUFLLElBQUksR0FBRyxFQUFFO1lBQ3RCLE9BQU8sc0JBQU8sQ0FBUyxHQUFHLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUN4RDtRQUNELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQzs7QUE1Q0gsd0NBNkNDO0FBNUNRLG1CQUFJLEdBQUcsaUJBQWlCLENBQUM7QUFDekIsMkJBQVksR0FBRyxRQUFRLENBQUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGludGVyZXN0LWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL3BpbnRlcmVzdC1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUE2QztBQUU3QyxNQUFhLGNBQWUsU0FBUSwwQkFBVzs7QUFBL0Msd0NBR0M7QUFGUSxtQkFBSSxHQUFHLGlCQUFpQixDQUFDO0FBQ3pCLDJCQUFZLEdBQUcsUUFBUSxDQUFDIn0=

@@ -5,5 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get tweetBy(): string | null;
get tweetId(): string | null;
}
//# sourceMappingURL=twitter-embed.d.ts.map

@@ -5,16 +5,2 @@ "use strict";

class TwitterEmbed extends iframe_embed_1.IframeEmbed {
get tweetBy() {
let url = this.url;
if (url) {
return iframe_embed_1.without(url.pathname.split("/"), "")[0];
}
return null;
}
get tweetId() {
let url = this.url;
if (url) {
return iframe_embed_1.without(url.pathname.split("/"), "")[2];
}
return null;
}
}

@@ -24,2 +10,2 @@ exports.TwitterEmbed = TwitterEmbed;

TwitterEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHdpdHRlci1lbWJlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy90d2l0dGVyLWVtYmVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQXNEO0FBRXRELE1BQWEsWUFBYSxTQUFRLDBCQUFXO0lBSTNDLElBQUksT0FBTztRQUNULElBQUksR0FBRyxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUM7UUFDbkIsSUFBSSxHQUFHLEVBQUU7WUFDUCxPQUFPLHNCQUFPLENBQVMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDeEQ7UUFDRCxPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7SUFFRCxJQUFJLE9BQU87UUFDVCxJQUFJLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDO1FBQ25CLElBQUksR0FBRyxFQUFFO1lBQ1AsT0FBTyxzQkFBTyxDQUFTLEdBQUcsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1NBQ3hEO1FBQ0QsT0FBTyxJQUFJLENBQUM7SUFDZCxDQUFDOztBQWxCSCxvQ0FtQkM7QUFsQlEsaUJBQUksR0FBRyxlQUFlLENBQUM7QUFDdkIseUJBQVksR0FBRyxRQUFRLENBQUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHdpdHRlci1lbWJlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy90d2l0dGVyLWVtYmVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaURBQTZDO0FBRTdDLE1BQWEsWUFBYSxTQUFRLDBCQUFXOztBQUE3QyxvQ0FHQztBQUZRLGlCQUFJLEdBQUcsZUFBZSxDQUFDO0FBQ3ZCLHlCQUFZLEdBQUcsUUFBUSxDQUFDIn0=
import Document from "@atjson/document";
import { Blockquote, Bold, CerosEmbed, Code, HTML, Heading, IframeEmbed, Image, Link, List } from "./annotations";
import { Blockquote, Bold, CerosEmbed, Code, HTML, Heading, IframeEmbed, Image, Link, List, VideoEmbed } from "./annotations";
export * from "./annotations";

@@ -7,4 +7,4 @@ export * from "./utils";

static contentType: string;
static schema: (typeof Blockquote | typeof Bold | typeof Link | typeof List | typeof CerosEmbed | typeof Code | typeof IframeEmbed | typeof Heading | typeof HTML | typeof Image)[];
static schema: (typeof Blockquote | typeof Bold | typeof Link | typeof List | typeof CerosEmbed | typeof Code | typeof IframeEmbed | typeof Heading | typeof HTML | typeof Image | typeof VideoEmbed)[];
}
//# sourceMappingURL=index.d.ts.map

@@ -43,4 +43,4 @@ "use strict";

annotations_1.Underline,
annotations_1.YouTubeEmbed
annotations_1.VideoEmbed
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOlt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DSix3QkFBVTtJQUNWLGtCQUFJO0lBQ0osMkJBQWE7SUFDYix5QkFBVztJQUNYLHdCQUFVO0lBQ1YscUJBQU87SUFDUCw0QkFBYztJQUNkLGtCQUFJO0lBQ0oseUJBQVc7SUFDWCxtQkFBSztJQUNMLDRCQUFjO0lBQ2Qsb0JBQU07SUFDTix1QkFBUztJQUNULGtCQUFJO0lBQ0osa0JBQUk7SUFDSixzQkFBUTtJQUNSLHVCQUFTO0lBQ1QsNEJBQWM7SUFDZCx1QkFBUztJQUNULHFCQUFPO0lBQ1AsdUJBQVM7SUFDVCwyQkFBYTtJQUNiLHVCQUFTO0lBQ1QseUJBQVc7SUFDWCwwQkFBWTtJQUNaLHVCQUFTO0lBQ1Qsd0JBQVU7Q0FDWCxDQUFDIn0=

@@ -0,3 +1,5 @@

import { getClosestAspectRatio } from "./aspect-ratios";
import * as SocialURLs from "./social-urls";
export { SocialURLs };
import * as VideoURLs from "./video-urls";
export { getClosestAspectRatio, SocialURLs, VideoURLs };
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const aspect_ratios_1 = require("./aspect-ratios");
exports.getClosestAspectRatio = aspect_ratios_1.getClosestAspectRatio;
const SocialURLs = require("./social-urls");
exports.SocialURLs = SocialURLs;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0Q0FBNEM7QUFFbkMsZ0NBQVUifQ==
const VideoURLs = require("./video-urls");
exports.VideoURLs = VideoURLs;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtREFBd0Q7QUFJL0MsZ0NBSkEscUNBQXFCLENBSUE7QUFIOUIsNENBQTRDO0FBR1osZ0NBQVU7QUFGMUMsMENBQTBDO0FBRUUsOEJBQVMifQ==

@@ -11,9 +11,11 @@ import { IframeEmbed } from "../annotations";

}
interface SocialURL {
url?: string;
attributes?: any;
AnnotationClass?: typeof IframeEmbed;
}
export declare function identify(url: IUrl): SocialURL;
export declare function identify(url: IUrl): {
attributes: {
url: string;
width?: string;
height?: string;
};
Class: typeof IframeEmbed;
} | null;
export {};
//# sourceMappingURL=social-urls.d.ts.map

@@ -19,37 +19,2 @@ "use strict";

}
function isYouTubeURL(url) {
return isYouTubeEmbedURL(url) || isYouTubeWatchURL(url);
}
function isYouTubeEmbedURL(url) {
return (url.host === "youtu.be" ||
(["www.youtube-nocookie.com", "www.youtube.com"].includes(url.host) &&
url.pathname.startsWith("/embed/")));
}
function isYouTubeWatchURL(url) {
return (["www.youtube.com", "m.youtube.com", "youtube.com"].includes(url.host) &&
url.pathname.startsWith("/watch") &&
getSearchParam(url.searchParams, "v") !== null);
}
function normalizeYouTubeURL(url) {
let normalized = url.host === "www.youtube-nocookie.com"
? new URL("https://www.youtube-nocookie.com")
: new URL("https://www.youtube.com");
let timestamp = getSearchParam(url.searchParams, "t");
if (timestamp) {
normalized.searchParams.set("t", timestamp);
}
if (isYouTubeEmbedURL(url)) {
let parts = without(url.pathname.split("/"), "");
let id = parts.pop();
normalized.pathname = `/embed/${id}`;
let controls = getSearchParam(url.searchParams, "controls");
if (controls) {
normalized.searchParams.set("controls", controls);
}
}
else {
normalized.pathname = `/embed/${getSearchParam(url.searchParams, "v")}`;
}
return { url: normalized.href, AnnotationClass: annotations_1.YouTubeEmbed };
}
function isInstagramURL(url) {

@@ -66,4 +31,4 @@ return ([

return {
url: `https://www.instagram.com/p/${id}`,
AnnotationClass: annotations_1.InstagramEmbed
attributes: { url: `https://www.instagram.com/p/${id}` },
Class: annotations_1.InstagramEmbed
};

@@ -78,4 +43,6 @@ }

return {
url: `https://twitter.com/${username}/status/${tweetId}`,
AnnotationClass: annotations_1.TwitterEmbed
attributes: {
url: `https://twitter.com/${username}/status/${tweetId}`
},
Class: annotations_1.TwitterEmbed
};

@@ -88,4 +55,6 @@ }

return {
url: `https://www.pinterest.com${url.pathname}`,
AnnotationClass: annotations_1.PinterestEmbed
attributes: {
url: `https://www.pinterest.com${url.pathname}`
},
Class: annotations_1.PinterestEmbed
};

@@ -121,4 +90,6 @@ }

return {
url: `https://www.facebook.com/${username}/posts/${id}`,
AnnotationClass: annotations_1.FacebookEmbed
attributes: {
url: `https://www.facebook.com/${username}/posts/${id}`
},
Class: annotations_1.FacebookEmbed
};

@@ -140,3 +111,6 @@ }

}
return { url: `https://giphy.com/embed/${id}`, AnnotationClass: annotations_1.GiphyEmbed };
return {
attributes: { url: `https://giphy.com/embed/${id}` },
Class: annotations_1.GiphyEmbed
};
}

@@ -154,5 +128,8 @@ function isSpotifyUrl(url) {

return {
url: `https://open.spotify.com/embed/${type}/${id}`,
AnnotationClass: annotations_1.IframeEmbed,
attributes: { width: "300", height: type === "track" ? "80" : "380" }
Class: annotations_1.IframeEmbed,
attributes: {
url: `https://open.spotify.com/embed/${type}/${id}`,
width: "300",
height: type === "track" ? "80" : "380"
}
};

@@ -176,11 +153,8 @@ }

}
if (isYouTubeURL(url)) {
return normalizeYouTubeURL(url);
}
if (isSpotifyUrl(url)) {
return normalizeSpotifyUrl(url);
}
return {};
return null;
}
exports.identify = identify;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29jaWFsLXVybHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvc29jaWFsLXVybHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnREFRd0I7QUFFeEIsU0FBUyxPQUFPLEN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LE9BQU8sbUJBQW1CLENBQUMsR0FBRyxDQUFDLENBQUM7S0FDakM7SUFFRCxPQUFPLElBQUksQ0FBQztBQUNkLENBQUM7QUEvQkQsNEJBK0JDIn0=

@@ -5,4 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get giphyId(): string | null;
}
//# sourceMappingURL=giphy-embed.d.ts.map

@@ -1,15 +0,6 @@

import { IframeEmbed, without } from "./iframe-embed";
import { IframeEmbed } from "./iframe-embed";
export class GiphyEmbed extends IframeEmbed {
get giphyId() {
let url = this.url;
if (url) {
return without(url.pathname.split("/"), "")[1]
.split("-")
.slice(-1)[0];
}
return null;
}
}
GiphyEmbed.type = "giphy-embed";
GiphyEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2lwaHktZW1iZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvZ2lwaHktZW1iZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxPQUFPLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV0RCxNQUFNLE9BQU8sVUFBVyxTQUFRLFdBQVc7SUFJekMsSUFBSSxPQUFPO1FBQ1QsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQztRQUNuQixJQUFJLEdBQUcsRUFBRTtZQUNQLE9BQU8sT0FBTyxDQUFTLEdBQUcsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQztpQkFDbkQsS0FBSyxDQUFDLEdBQUcsQ0FBQztpQkFDVixLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNqQjtRQUNELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQzs7QUFYTSxlQUFJLEdBQUcsYUFBYSxDQUFDO0FBQ3JCLHVCQUFZLEdBQUcsUUFBUSxDQUFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2lwaHktZW1iZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvZ2lwaHktZW1iZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTdDLE1BQU0sT0FBTyxVQUFXLFNBQVEsV0FBVzs7QUFDbEMsZUFBSSxHQUFHLGFBQWEsQ0FBQztBQUNyQix1QkFBWSxHQUFHLFFBQVEsQ0FBQyJ9
import { ObjectAnnotation } from "@atjson/document";
import { CaptionSource } from "./caption-source";
export declare function without<T>(array: T[], value: T): T[];
export declare class IframeEmbed extends ObjectAnnotation<{

@@ -5,0 +4,0 @@ url: string;

import { ObjectAnnotation } from "@atjson/document";
import { CaptionSource } from "./caption-source";
export function without(array, value) {
let presentParts = [];
for (let part of array) {
if (part !== value) {
presentParts.push(part);
}
}
return presentParts;
}
export class IframeEmbed extends ObjectAnnotation {

@@ -25,2 +16,2 @@ get url() {

IframeEmbed.subdocuments = { caption: CaptionSource };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2lmcmFtZS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNwRCxPQUFPLEVBQUUsYUFBYSxFQUF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SUFLQSxJQUFJLEdBQUc7UUFDTCxJQUFJO1lBQ0YsT0FBTyxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1NBQ3JDO1FBQUMsT0FBTyxDQUFDLEVBQUU7WUFDVixPQUFPLElBQUksQ0FBQztTQUNiO0lBQ0gsQ0FBQzs7QUFWTSxnQkFBSSxHQUFHLGNBQWMsQ0FBQztBQUN0Qix3QkFBWSxHQUFHLFFBQVEsQ0FBQztBQUN4Qix3QkFBWSxHQUFHLEVBQUUsT0FBTyxFQUFFLGFBQWEsRUFBRSxDQUFDIn0=

@@ -30,3 +30,3 @@ export * from "./blockquote";

export * from "./underline";
export * from "./youtube-embed";
export * from "./video-embed";
//# sourceMappingURL=index.d.ts.map

@@ -30,3 +30,3 @@ export * from "./blockquote";

export * from "./underline";
export * from "./youtube-embed";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLGdCQUFnQixDQUFDO0FBQy9CLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsbUJBQW1C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BQW1CLENBQUM7QUFDbEMsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLGlCQUFpQixDQUFDO0FBQ2hDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxlQUFlLENBQUMifQ==

@@ -5,4 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get shortcode(): string | null;
}
//# sourceMappingURL=instagram-embed.d.ts.map

@@ -1,13 +0,6 @@

import { IframeEmbed, without } from "./iframe-embed";
import { IframeEmbed } from "./iframe-embed";
export class InstagramEmbed extends IframeEmbed {
get shortcode() {
let url = this.url;
if (url) {
return without(url.pathname.split("/"), "")[1];
}
return null;
}
}
InstagramEmbed.type = "instagram-embed";
InstagramEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFncmFtLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2luc3RhZ3JhbS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE9BQU8sRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXRELE1BQU0sT0FBTyxjQUFlLFNBQVEsV0FBVztJQUk3QyxJQUFJLFNBQVM7UUFDWCxJQUFJLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDO1FBQ25CLElBQUksR0FBRyxFQUFFO1lBQ1AsT0FBTyxPQUFPLENBQVMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDeEQ7UUFDRCxPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7O0FBVE0sbUJBQUksR0FBRyxpQkFBaUIsQ0FBQztBQUN6QiwyQkFBWSxHQUFHLFFBQVEsQ0FBQyJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFncmFtLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2luc3RhZ3JhbS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0MsTUFBTSxPQUFPLGNBQWUsU0FBUSxXQUFXOztBQUN0QyxtQkFBSSxHQUFHLGlCQUFpQixDQUFDO0FBQ3pCLDJCQUFZLEdBQUcsUUFBUSxDQUFDIn0=

@@ -5,8 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get isPin(): boolean;
get isProfile(): boolean;
get isBoard(): boolean;
get pinId(): string | null;
get profileName(): string | null;
}
//# sourceMappingURL=pinterest-embed.d.ts.map

@@ -1,41 +0,6 @@

import { IframeEmbed, without } from "./iframe-embed";
import { IframeEmbed } from "./iframe-embed";
export class PinterestEmbed extends IframeEmbed {
get isPin() {
let url = this.url;
if (url) {
return without(url.pathname.split("/"), "")[0] === "pin";
}
return false;
}
get isProfile() {
let url = this.url;
if (url) {
return (!this.isPin && without(url.pathname.split("/"), "").length === 2);
}
return false;
}
get isBoard() {
let url = this.url;
if (url) {
return without(url.pathname.split("/"), "").length === 1;
}
return false;
}
get pinId() {
let url = this.url;
if (this.isPin && url) {
return without(url.pathname.split("/"), "")[1];
}
return null;
}
get profileName() {
let url = this.url;
if (!this.isPin && url) {
return without(url.pathname.split("/"), "")[0];
}
return null;
}
}
PinterestEmbed.type = "pinterest-embed";
PinterestEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGludGVyZXN0LWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL3BpbnRlcmVzdC1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE9BQU8sRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXRELE1BQU0sT0FBTyxjQUFlLFNBQVEsV0FBVztJQUk3QyxJQUFJLEtBQUs7UUFDUCxJQUFJLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDO1FBQ25CLElBQUksR0FBRyxFQUFFO1lBQ1AsT0FBTyxPQUFPLENBQVMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssS0FBSyxDQUFDO1NBQ2xFO1FBQ0QsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO0lBRUQsSUFBSSxTQUFTO1FBQ1gsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQztRQUNuQixJQUFJLEdBQUcsRUFBRTtZQUNQLE9BQU8sQ0FDTCxDQUFDLElBQUksQ0FBQyxLQUFLLElBQUksT0FBTyxDQUFTLEdBQUcsQ0FBQyxRQUFRLENBQUMsS0FBSyx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UFJLEdBQUcsaUJBQWlCLENBQUM7QUFDekIsMkJBQVksR0FBRyxRQUFRLENBQUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGludGVyZXN0LWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL3BpbnRlcmVzdC1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0MsTUFBTSxPQUFPLGNBQWUsU0FBUSxXQUFXOztBQUN0QyxtQkFBSSxHQUFHLGlCQUFpQixDQUFDO0FBQ3pCLDJCQUFZLEdBQUcsUUFBUSxDQUFDIn0=

@@ -5,5 +5,3 @@ import { IframeEmbed } from "./iframe-embed";

static vendorPrefix: string;
get tweetBy(): string | null;
get tweetId(): string | null;
}
//# sourceMappingURL=twitter-embed.d.ts.map

@@ -1,20 +0,6 @@

import { IframeEmbed, without } from "./iframe-embed";
import { IframeEmbed } from "./iframe-embed";
export class TwitterEmbed extends IframeEmbed {
get tweetBy() {
let url = this.url;
if (url) {
return without(url.pathname.split("/"), "")[0];
}
return null;
}
get tweetId() {
let url = this.url;
if (url) {
return without(url.pathname.split("/"), "")[2];
}
return null;
}
}
TwitterEmbed.type = "twitter-embed";
TwitterEmbed.vendorPrefix = "offset";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHdpdHRlci1lbWJlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy90d2l0dGVyLWVtYmVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7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@atjson/document";
import { Blockquote, Bold, CerosEmbed, Code, HTML, Heading, IframeEmbed, Image, Link, List } from "./annotations";
import { Blockquote, Bold, CerosEmbed, Code, HTML, Heading, IframeEmbed, Image, Link, List, VideoEmbed } from "./annotations";
export * from "./annotations";

@@ -7,4 +7,4 @@ export * from "./utils";

static contentType: string;
static schema: (typeof Blockquote | typeof Bold | typeof Link | typeof List | typeof CerosEmbed | typeof Code | typeof IframeEmbed | typeof Heading | typeof HTML | typeof Image)[];
static schema: (typeof Blockquote | typeof Bold | typeof Link | typeof List | typeof CerosEmbed | typeof Code | typeof IframeEmbed | typeof Heading | typeof HTML | typeof Image | typeof VideoEmbed)[];
}
//# sourceMappingURL=index.d.ts.map
import Document from "@atjson/document";
import { Blockquote, Bold, CerosEmbed, Code, FacebookEmbed, FixedIndent, GiphyEmbed, HTML, Heading, HorizontalRule, IframeEmbed, Image, InstagramEmbed, Italic, LineBreak, Link, List, ListItem, Paragraph, PinterestEmbed, Pullquote, Section, SmallCaps, Strikethrough, Subscript, Superscript, TwitterEmbed, Underline, YouTubeEmbed } from "./annotations";
import { Blockquote, Bold, CerosEmbed, Code, FacebookEmbed, FixedIndent, GiphyEmbed, HTML, Heading, HorizontalRule, IframeEmbed, Image, InstagramEmbed, Italic, LineBreak, Link, List, ListItem, Paragraph, PinterestEmbed, Pullquote, Section, SmallCaps, Strikethrough, Subscript, Superscript, TwitterEmbed, Underline, VideoEmbed } from "./annotations";
export * from "./annotations";

@@ -37,4 +37,4 @@ export * from "./utils";

Underline,
YouTubeEmbed
VideoEmbed
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxRQUFRLE1BQU0sa0JBQWtCLENBQUM7QUFDeEMsT0FBTyxFQUNMLFVBQVUsR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DVCxhQUFhO0lBQ2IsU0FBUztJQUNULFdBQVc7SUFDWCxZQUFZO0lBQ1osU0FBUztJQUNULFVBQVU7Q0FDWCxDQUFDIn0=

@@ -0,3 +1,5 @@

import { getClosestAspectRatio } from "./aspect-ratios";
import * as SocialURLs from "./social-urls";
export { SocialURLs };
import * as VideoURLs from "./video-urls";
export { getClosestAspectRatio, SocialURLs, VideoURLs };
//# sourceMappingURL=index.d.ts.map

@@ -0,3 +1,5 @@

import { getClosestAspectRatio } from "./aspect-ratios";
import * as SocialURLs from "./social-urls";
export { SocialURLs };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLFVBQVUsTUFBTSxlQUFlLENBQUM7QUFFNUMsT0FBTyxFQUFFLFVBQVUsRUFBRSxDQUFDIn0=
import * as VideoURLs from "./video-urls";
export { getClosestAspectRatio, SocialURLs, VideoURLs };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDeEQsT0FBTyxLQUFLLFVBQVUsTUFBTSxlQUFlLENBQUM7QUFDNUMsT0FBTyxLQUFLLFNBQVMsTUFBTSxjQUFjLENBQUM7QUFFMUMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLFVBQVUsRUFBRSxTQUFTLEVBQUUsQ0FBQyJ9

@@ -11,9 +11,11 @@ import { IframeEmbed } from "../annotations";

}
interface SocialURL {
url?: string;
attributes?: any;
AnnotationClass?: typeof IframeEmbed;
}
export declare function identify(url: IUrl): SocialURL;
export declare function identify(url: IUrl): {
attributes: {
url: string;
width?: string;
height?: string;
};
Class: typeof IframeEmbed;
} | null;
export {};
//# sourceMappingURL=social-urls.d.ts.map

@@ -1,2 +0,2 @@

import { IframeEmbed, FacebookEmbed, GiphyEmbed, InstagramEmbed, PinterestEmbed, TwitterEmbed, YouTubeEmbed } from "../annotations";
import { IframeEmbed, FacebookEmbed, GiphyEmbed, InstagramEmbed, PinterestEmbed, TwitterEmbed } from "../annotations";
function without(array, value) {

@@ -17,37 +17,2 @@ let presentParts = [];

}
function isYouTubeURL(url) {
return isYouTubeEmbedURL(url) || isYouTubeWatchURL(url);
}
function isYouTubeEmbedURL(url) {
return (url.host === "youtu.be" ||
(["www.youtube-nocookie.com", "www.youtube.com"].includes(url.host) &&
url.pathname.startsWith("/embed/")));
}
function isYouTubeWatchURL(url) {
return (["www.youtube.com", "m.youtube.com", "youtube.com"].includes(url.host) &&
url.pathname.startsWith("/watch") &&
getSearchParam(url.searchParams, "v") !== null);
}
function normalizeYouTubeURL(url) {
let normalized = url.host === "www.youtube-nocookie.com"
? new URL("https://www.youtube-nocookie.com")
: new URL("https://www.youtube.com");
let timestamp = getSearchParam(url.searchParams, "t");
if (timestamp) {
normalized.searchParams.set("t", timestamp);
}
if (isYouTubeEmbedURL(url)) {
let parts = without(url.pathname.split("/"), "");
let id = parts.pop();
normalized.pathname = `/embed/${id}`;
let controls = getSearchParam(url.searchParams, "controls");
if (controls) {
normalized.searchParams.set("controls", controls);
}
}
else {
normalized.pathname = `/embed/${getSearchParam(url.searchParams, "v")}`;
}
return { url: normalized.href, AnnotationClass: YouTubeEmbed };
}
function isInstagramURL(url) {

@@ -64,4 +29,4 @@ return ([

return {
url: `https://www.instagram.com/p/${id}`,
AnnotationClass: InstagramEmbed
attributes: { url: `https://www.instagram.com/p/${id}` },
Class: InstagramEmbed
};

@@ -76,4 +41,6 @@ }

return {
url: `https://twitter.com/${username}/status/${tweetId}`,
AnnotationClass: TwitterEmbed
attributes: {
url: `https://twitter.com/${username}/status/${tweetId}`
},
Class: TwitterEmbed
};

@@ -86,4 +53,6 @@ }

return {
url: `https://www.pinterest.com${url.pathname}`,
AnnotationClass: PinterestEmbed
attributes: {
url: `https://www.pinterest.com${url.pathname}`
},
Class: PinterestEmbed
};

@@ -119,4 +88,6 @@ }

return {
url: `https://www.facebook.com/${username}/posts/${id}`,
AnnotationClass: FacebookEmbed
attributes: {
url: `https://www.facebook.com/${username}/posts/${id}`
},
Class: FacebookEmbed
};

@@ -138,3 +109,6 @@ }

}
return { url: `https://giphy.com/embed/${id}`, AnnotationClass: GiphyEmbed };
return {
attributes: { url: `https://giphy.com/embed/${id}` },
Class: GiphyEmbed
};
}

@@ -152,5 +126,8 @@ function isSpotifyUrl(url) {

return {
url: `https://open.spotify.com/embed/${type}/${id}`,
AnnotationClass: IframeEmbed,
attributes: { width: "300", height: type === "track" ? "80" : "380" }
Class: IframeEmbed,
attributes: {
url: `https://open.spotify.com/embed/${type}/${id}`,
width: "300",
height: type === "track" ? "80" : "380"
}
};

@@ -174,10 +151,7 @@ }

}
if (isYouTubeURL(url)) {
return normalizeYouTubeURL(url);
}
if (isSpotifyUrl(url)) {
return normalizeSpotifyUrl(url);
}
return {};
return null;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29jaWFsLXVybHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvc29jaWFsLXVybHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFdBQVcsRUFDWCxhQUFhLEVBQ2IsVUFBVSxFQUNWLGNBQWMsRUFDZCxjQUFjLEVBQ2QsWUFBWSxFQUNaLFlBQVksRUFDYixNQUFNLGdCQUFnQixDQUFDO0FBRXhCLFNBQVMsT0FBTyxDQUFJLEtB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CLENBQUMsR0FBRyxDQUFDLENBQUM7S0FDakM7SUFFRCxJQUFJLFlBQVksQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNyQixPQUFPLG1CQUFtQixDQUFDLEdBQUcsQ0FBQyxDQUFDO0tBQ2pDO0lBRUQsT0FBTyxJQUFJLENBQUM7QUFDZCxDQUFDIn0=
{
"name": "@atjson/offset-annotations",
"version": "0.25.0",
"version": "0.26.0",
"description": "Annotations used for stories",

@@ -18,3 +18,3 @@ "main": "dist/commonjs/index.js",

},
"gitHead": "9ad942d45bfea3f34c004c6b856e67da9cf7d9e5"
"gitHead": "35fdfdb6c262de998fa6f8d2a7d444226f89bc7d"
}

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc