@atjson/offset-annotations
Advanced tools
Comparing version 0.17.1 to 0.17.2
@@ -6,2 +6,11 @@ # Change Log | ||
## [0.17.2](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/offset-annotations@0.17.1...@atjson/offset-annotations@0.17.2) (2019-07-24) | ||
### 🐛 Fixes | ||
* 🐞 add typings to offset annotation using the generic extension | ||
## [0.17.1](https://github.com/CondeNast-Copilot/atjson/compare/@atjson/offset-annotations@0.17.0...@atjson/offset-annotations@0.17.1) (2019-07-15) | ||
@@ -8,0 +17,0 @@ |
@@ -5,6 +5,2 @@ import { BlockAnnotation } from '@atjson/document'; | ||
static vendorPrefix: string; | ||
attributes: { | ||
attribution: string; | ||
accreditation: string; | ||
}; | ||
} |
@@ -9,2 +9,2 @@ "use strict"; | ||
exports.default = Blockquote; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2txdW90ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9ibG9ja3F1b3RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW1EO0FBRW5ELE1BQXFCLFVBQVcsU0FBUSwwQkFBZTs7QUFDOUMsZUFBSSxHQUFHLFlBQVksQ0FBQztBQUNwQix1QkFBWSxHQUFHLFFBQVEsQ0FBQztBQUZqQyw2QkFPQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2txdW90ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9ibG9ja3F1b3RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW1EO0FBRW5ELE1BQXFCLFVBQVcsU0FBUSwwQkFBZTs7QUFDOUMsZUFBSSxHQUFHLFlBQVksQ0FBQztBQUNwQix1QkFBWSxHQUFHLFFBQVEsQ0FBQztBQUZqQyw2QkFHQyJ9 |
import { Annotation } from '@atjson/document'; | ||
export default class Code extends Annotation { | ||
export default class Code extends Annotation<{ | ||
style: 'block' | 'inline' | 'fence'; | ||
info?: string; | ||
}> { | ||
static vendorPrefix: string; | ||
static type: string; | ||
attributes: { | ||
style: 'block' | 'inline' | 'fence'; | ||
info?: string; | ||
}; | ||
readonly rank: 100 | 10; | ||
} |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.default = Code; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9jb2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQThDO0FBRTlDLE1BQXFCLElBQUssU0FBUSxxQkFBVTtJQVExQyxJQUFJLElBQUk7UUFDTixJQUFJLElBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxLQUFLLFFBQVEsRUFBRTtZQUN0QyxPQUFPLEdBQUcsQ0FBQztTQUNaO1FBQ0QsT0FBTyxFQUFFLENBQUM7SUFDWixDQUFDOztBQVpNLGlCQUFZLEdBQUcsUUFBUSxDQUFDO0FBQ3hCLFNBQUksR0FBRyxNQUFNLENBQUM7QUFGdkIsdUJBY0MifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9jb2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQThDO0FBRTlDLE1BQXFCLElBQUssU0FBUSxxQkFHaEM7SUFJQSxJQUFJLElBQUk7UUFDTixJQUFJLElBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxLQUFLLFFBQVEsRUFBRTtZQUN0QyxPQUFPLEdBQUcsQ0FBQztTQUNaO1FBQ0QsT0FBTyxFQUFFLENBQUM7SUFDWixDQUFDOztBQVJNLGlCQUFZLEdBQUcsUUFBUSxDQUFDO0FBQ3hCLFNBQUksR0FBRyxNQUFNLENBQUM7QUFMdkIsdUJBYUMifQ== |
import { BlockAnnotation } from '@atjson/document'; | ||
export default class Heading extends BlockAnnotation { | ||
export default class Heading extends BlockAnnotation<{ | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
}> { | ||
static type: string; | ||
static vendorPrefix: string; | ||
attributes: { | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
}; | ||
} |
@@ -9,2 +9,2 @@ "use strict"; | ||
exports.default = Heading; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9oZWFkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW1EO0FBRW5ELE1BQXFCLE9BQVEsU0FBUSwwQkFBZTs7QUFDM0MsWUFBSSxHQUFHLFNBQVMsQ0FBQztBQUNqQixvQkFBWSxHQUFHLFFBQVEsQ0FBQztBQUZqQywwQkFNQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9oZWFkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW1EO0FBRW5ELE1BQXFCLE9BQVEsU0FBUSwwQkFFbkM7O0FBQ08sWUFBSSxHQUFHLFNBQVMsQ0FBQztBQUNqQixvQkFBWSxHQUFHLFFBQVEsQ0FBQztBQUpqQywwQkFLQyJ9 |
import { Annotation } from '@atjson/document'; | ||
export default class HTML extends Annotation { | ||
export default class HTML extends Annotation<{ | ||
style: 'inline' | 'block'; | ||
}> { | ||
static vendorPrefix: string; | ||
static type: string; | ||
attributes: { | ||
style: 'inline' | 'block'; | ||
}; | ||
readonly rank: 100 | 10; | ||
} |
@@ -15,2 +15,2 @@ "use strict"; | ||
exports.default = HTML; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9odG1sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQThDO0FBRTlDLE1BQXFCLElBQUssU0FBUSxxQkFBVTtJQU8xQyxJQUFJLElBQUk7UUFDTixJQUFJLElBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxLQUFLLFFBQVEsRUFBRTtZQUN0QyxPQUFPLEdBQUcsQ0FBQztTQUNaO1FBQ0QsT0FBTyxFQUFFLENBQUM7SUFDWixDQUFDOztBQVhNLGlCQUFZLEdBQUcsUUFBUSxDQUFDO0FBQ3hCLFNBQUksR0FBRyxNQUFNLENBQUM7QUFGdkIsdUJBYUMifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9odG1sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQThDO0FBRTlDLE1BQXFCLElBQUssU0FBUSxxQkFFaEM7SUFJQSxJQUFJLElBQUk7UUFDTixJQUFJLElBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxLQUFLLFFBQVEsRUFBRTtZQUN0QyxPQUFPLEdBQUcsQ0FBQztTQUNaO1FBQ0QsT0FBTyxFQUFFLENBQUM7SUFDWixDQUFDOztBQVJNLGlCQUFZLEdBQUcsUUFBUSxDQUFDO0FBQ3hCLFNBQUksR0FBRyxNQUFNLENBQUM7QUFKdkIsdUJBWUMifQ== |
import { ObjectAnnotation } from '@atjson/document'; | ||
import CaptionSource from './caption-source'; | ||
export declare function without<T>(array: T[], value: T): T[]; | ||
export default class IframeEmbed extends ObjectAnnotation { | ||
export default class IframeEmbed extends ObjectAnnotation<{ | ||
url: string; | ||
width?: string; | ||
height?: string; | ||
caption?: CaptionSource; | ||
sandbox?: string; | ||
}> { | ||
static type: string; | ||
@@ -10,10 +16,3 @@ static vendorPrefix: string; | ||
}; | ||
attributes: { | ||
url: string; | ||
width?: string; | ||
height?: string; | ||
caption?: CaptionSource; | ||
sandbox?: string; | ||
}; | ||
readonly url: URL | null; | ||
} |
@@ -29,2 +29,2 @@ "use strict"; | ||
exports.default = IframeEmbed; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLWVtYmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2Fubm90YXRpb25zL2lmcmFtZS1lbWJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtDQUFvRDtBQUNwRCxxREFBNkM7QUFFN0MsU0FBZ0IsT0FBTyxDQUFJLEtBQVUsRUFBRSxLQUFRO0lBQzdDLElBQUksTUFBTSxHQUFRLEVBQUUsQ0FBQztJQUNyQixPQUFPLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxZQUFZLEVBQUUsSUFBSSxFQUFFLEVBQUU7UUFDekMsSUFBSSxJQUFJLEtBQUssS0FBSyxFQUFFO1lBQ2xCLFlBQVksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQ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FBTSxDQUFDLENBQUM7QUFDYixDQUFDO0FBUkQsMEJBUUM7QUFFRCxNQUFxQixXQUFZLFNBQVEsMkJBTXZDO0lBS0EsSUFBSSxHQUFHO1FBQ0wsSUFBSTtZQUNGLE9BQU8sSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUNyQztRQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQ1YsT0FBTyxJQUFJLENBQUM7U0FDYjtJQUNILENBQUM7O0FBVk0sZ0JBQUksR0FBRyxjQUFjLENBQUM7QUFDdEIsd0JBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsd0JBQVksR0FBRyxFQUFFLE9BQU8sRUFBRSx3QkFBYSxFQUFFLENBQUM7QUFUbkQsOEJBa0JDIn0= |
@@ -7,3 +7,7 @@ import Document, { ObjectAnnotation } from '@atjson/document'; | ||
} | ||
export default class Image extends ObjectAnnotation { | ||
export default class Image extends ObjectAnnotation<{ | ||
url: string; | ||
title?: string; | ||
description: ImageDescriptionSource; | ||
}> { | ||
static vendorPrefix: string; | ||
@@ -14,7 +18,2 @@ static type: string; | ||
}; | ||
attributes: { | ||
url: string; | ||
title: string; | ||
description: ImageDescriptionSource; | ||
}; | ||
} |
@@ -36,2 +36,2 @@ "use strict"; | ||
exports.default = Image; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvaW1hZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQ0FBOEQ7QUFDOUQsaUNBQTBCO0FBQzFCLGlDQUEwQjtBQUMxQixxQ0FBOEI7QUFDOUIsNkNBQXFDO0FBQ3JDLGlDQUEwQjtBQUMxQixtREFBNEM7QUFDNUMsMkNBQW9DO0FBQ3BDLCtDQUF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FDVCxxQkFBVztJQUNYLG1CQUFTO0NBQ1YsQ0FBQztBQVpKLHdEQWFDO0FBRUQsTUFBcUIsS0FBTSxTQUFRLDJCQUlqQzs7QUFDTyxrQkFBWSxHQUFHLFFBQVEsQ0FBQztBQUN4QixVQUFJLEdBQUcsT0FBTyxDQUFDO0FBQ2Ysa0JBQVksR0FBRztJQUNwQixXQUFXLEVBQUUsc0JBQXNCO0NBQ3BDLENBQUM7QUFUSix3QkFVQyJ9 |
import { InlineAnnotation } from '@atjson/document'; | ||
export default class Link extends InlineAnnotation { | ||
export default class Link extends InlineAnnotation<{ | ||
url: string; | ||
title: string; | ||
}> { | ||
static type: string; | ||
static vendorPrefix: string; | ||
attributes: { | ||
url: string; | ||
title: string; | ||
}; | ||
} |
@@ -9,2 +9,2 @@ "use strict"; | ||
exports.default = Link; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saW5rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW9EO0FBRXBELE1BQXFCLElBQUssU0FBUSwyQkFBZ0I7O0FBQ3pDLFNBQUksR0FBRyxNQUFNLENBQUM7QUFDZCxpQkFBWSxHQUFHLFFBQVEsQ0FBQztBQUZqQyx1QkFPQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saW5rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW9EO0FBRXBELE1BQXFCLElBQUssU0FBUSwyQkFHaEM7O0FBQ08sU0FBSSxHQUFHLE1BQU0sQ0FBQztBQUNkLGlCQUFZLEdBQUcsUUFBUSxDQUFDO0FBTGpDLHVCQU1DIn0= |
import { BlockAnnotation } from '@atjson/document'; | ||
export default class List extends BlockAnnotation { | ||
export default class List extends BlockAnnotation<{ | ||
type: string; | ||
delimiter?: string; | ||
tight?: boolean; | ||
level?: number; | ||
startsAt?: number; | ||
}> { | ||
static vendorPrefix: string; | ||
static type: string; | ||
attributes: { | ||
type: string; | ||
delimiter?: string; | ||
tight?: boolean; | ||
level?: number; | ||
startsAt?: number; | ||
}; | ||
} |
@@ -9,2 +9,2 @@ "use strict"; | ||
exports.default = List; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsK0NBQW1EO0FBRW5ELE1BQXFCLElBQUssU0FBUSwwQkFBZTs7QUFDeEMsaUJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsU0FBSSxHQUFHLE1BQU0sQ0FBQztBQUZ2Qix1QkFVQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsK0NBQW1EO0FBRW5ELE1BQXFCLElBQUssU0FBUSwwQkFNaEM7O0FBQ08saUJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsU0FBSSxHQUFHLE1BQU0sQ0FBQztBQVJ2Qix1QkFTQyJ9 |
import Document from '@atjson/document'; | ||
import { Bold, FacebookEmbed, Image } from './annotations'; | ||
import { Blockquote, FacebookEmbed, Image } from './annotations'; | ||
export * from './annotations'; | ||
export default class OffsetSource extends Document { | ||
static contentType: string; | ||
static schema: (typeof Bold | typeof FacebookEmbed | typeof Image)[]; | ||
static schema: (typeof Blockquote | typeof FacebookEmbed | typeof Image)[]; | ||
} |
@@ -5,6 +5,2 @@ import { BlockAnnotation } from '@atjson/document'; | ||
static vendorPrefix: string; | ||
attributes: { | ||
attribution: string; | ||
accreditation: string; | ||
}; | ||
} |
import { Annotation } from '@atjson/document'; | ||
export default class Code extends Annotation { | ||
export default class Code extends Annotation<{ | ||
style: 'block' | 'inline' | 'fence'; | ||
info?: string; | ||
}> { | ||
static vendorPrefix: string; | ||
static type: string; | ||
attributes: { | ||
style: 'block' | 'inline' | 'fence'; | ||
info?: string; | ||
}; | ||
readonly rank: 100 | 10; | ||
} |
@@ -12,2 +12,2 @@ import { Annotation } from '@atjson/document'; | ||
Code.type = 'code'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9jb2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUU5QyxNQUFNLENBQUMsT0FBTyxPQUFPLElBQUssU0FBUSxVQUFVO0lBUTFDLElBQUksSUFBSTtRQUNOLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxLQUFLLEtBQUssUUFBUSxFQUFFO1lBQ3RDLE9BQU8sR0FBRyxDQUFDO1NBQ1o7UUFDRCxPQUFPLEVBQUUsQ0FBQztJQUNaLENBQUM7O0FBWk0saUJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsU0FBSSxHQUFHLE1BQU0sQ0FBQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9jb2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUU5QyxNQUFNLENBQUMsT0FBTyxPQUFPLElBQUssU0FBUSxVQUdoQztJQUlBLElBQUksSUFBSTtRQUNOLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxLQUFLLEtBQUssUUFBUSxFQUFFO1lBQ3RDLE9BQU8sR0FBRyxDQUFDO1NBQ1o7UUFDRCxPQUFPLEVBQUUsQ0FBQztJQUNaLENBQUM7O0FBUk0saUJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsU0FBSSxHQUFHLE1BQU0sQ0FBQyJ9 |
import { BlockAnnotation } from '@atjson/document'; | ||
export default class Heading extends BlockAnnotation { | ||
export default class Heading extends BlockAnnotation<{ | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
}> { | ||
static type: string; | ||
static vendorPrefix: string; | ||
attributes: { | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
}; | ||
} |
@@ -6,2 +6,2 @@ import { BlockAnnotation } from '@atjson/document'; | ||
Heading.vendorPrefix = 'offset'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9oZWFkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVuRCxNQUFNLENBQUMsT0FBTyxPQUFPLE9BQVEsU0FBUSxlQUFlOztBQUMzQyxZQUFJLEdBQUcsU0FBUyxDQUFDO0FBQ2pCLG9CQUFZLEdBQUcsUUFBUSxDQUFDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9oZWFkaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVuRCxNQUFNLENBQUMsT0FBTyxPQUFPLE9BQVEsU0FBUSxlQUVuQzs7QUFDTyxZQUFJLEdBQUcsU0FBUyxDQUFDO0FBQ2pCLG9CQUFZLEdBQUcsUUFBUSxDQUFDIn0= |
import { Annotation } from '@atjson/document'; | ||
export default class HTML extends Annotation { | ||
export default class HTML extends Annotation<{ | ||
style: 'inline' | 'block'; | ||
}> { | ||
static vendorPrefix: string; | ||
static type: string; | ||
attributes: { | ||
style: 'inline' | 'block'; | ||
}; | ||
readonly rank: 100 | 10; | ||
} |
@@ -12,2 +12,2 @@ import { Annotation } from '@atjson/document'; | ||
HTML.type = 'html'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9odG1sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUU5QyxNQUFNLENBQUMsT0FBTyxPQUFPLElBQUssU0FBUSxVQUFVO0lBTzFDLElBQUksSUFBSTtRQUNOLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxLQUFLLEtBQUssUUFBUSxFQUFFO1lBQ3RDLE9BQU8sR0FBRyxDQUFDO1NBQ1o7UUFDRCxPQUFPLEVBQUUsQ0FBQztJQUNaLENBQUM7O0FBWE0saUJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsU0FBSSxHQUFHLE1BQU0sQ0FBQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9odG1sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUU5QyxNQUFNLENBQUMsT0FBTyxPQUFPLElBQUssU0FBUSxVQUVoQztJQUlBLElBQUksSUFBSTtRQUNOLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxLQUFLLEtBQUssUUFBUSxFQUFFO1lBQ3RDLE9BQU8sR0FBRyxDQUFDO1NBQ1o7UUFDRCxPQUFPLEVBQUUsQ0FBQztJQUNaLENBQUM7O0FBUk0saUJBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsU0FBSSxHQUFHLE1BQU0sQ0FBQyJ9 |
import { ObjectAnnotation } from '@atjson/document'; | ||
import CaptionSource from './caption-source'; | ||
export declare function without<T>(array: T[], value: T): T[]; | ||
export default class IframeEmbed extends ObjectAnnotation { | ||
export default class IframeEmbed extends ObjectAnnotation<{ | ||
url: string; | ||
width?: string; | ||
height?: string; | ||
caption?: CaptionSource; | ||
sandbox?: string; | ||
}> { | ||
static type: string; | ||
@@ -10,10 +16,3 @@ static vendorPrefix: string; | ||
}; | ||
attributes: { | ||
url: string; | ||
width?: string; | ||
height?: string; | ||
caption?: CaptionSource; | ||
sandbox?: string; | ||
}; | ||
readonly url: URL | null; | ||
} |
@@ -25,2 +25,2 @@ import { ObjectAnnotation } from '@atjson/document'; | ||
IframeEmbed.subdocuments = { caption: CaptionSource }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ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@@ import Document, { ObjectAnnotation } from '@atjson/document'; | ||
} | ||
export default class Image extends ObjectAnnotation { | ||
export default class Image extends ObjectAnnotation<{ | ||
url: string; | ||
title?: string; | ||
description: ImageDescriptionSource; | ||
}> { | ||
static vendorPrefix: string; | ||
@@ -14,7 +18,2 @@ static type: string; | ||
}; | ||
attributes: { | ||
url: string; | ||
title: string; | ||
description: ImageDescriptionSource; | ||
}; | ||
} |
@@ -32,2 +32,2 @@ import Document, { ObjectAnnotation } from '@atjson/document'; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYW5ub3RhdGlvbnMvaW1hZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxRQUFRLEVBQUUsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQzlELE9BQU8sSUFBSSxNQUFNLFFBQVEsQ0FBQztBQUMxQixPQUFPLElBQUksTUFBTSxRQUFRLENBQUM7QUFDMUIsT0FBTyxNQUFNLE1BQU0sVUFBVSxDQUFDO0FBQzlCLE9BQU8sU0FBUyxNQUFNLGNBQWMsQ0FBQztBQUNyQyxPQUFPLElBQUksTUFBTSxRQUFRLENBQUM7QUFDMUIsT0FBTyxhQUFhLE1BQU0saUJBQWlCLENBQUM7QUFDNUMsT0FBTyxTQUFTLE1BQU0sYUFBYSxDQUFDO0FBQ3BDLE9BQU8sV0FBVyxNQUFNLGVBQWUsQ0FBQztBQUN4QyxPQUFPLFNBQVMsTUFBTSxhQUFhLENBQUM7QUFFcEMsTUFBTSxPQUFPLHNCQUF1QixTQUFRLFFBQVE7O0FBQzNDLGtDQUFXLEdBQUcsaURBQWlELENBQUM7QUFDaEUsNkJBQU0sR0FBRztJQUNkLElBQUk7SUFDSixJQUFJO0lBQ0osTUFBTTtJQUNOL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BQ0osTUFBTTtJQUNOLFNBQVM7SUFDVCxJQUFJO0lBQ0osYUFBYTtJQUNiLFNBQVM7SUFDVCxXQUFXO0lBQ1gsU0FBUztDQUNWLENBQUM7QUFHSixNQUFNLENBQUMsT0FBTyxPQUFPLEtBQU0sU0FBUSxnQkFJakM7O0FBQ08sa0JBQVksR0FBRyxRQUFRLENBQUM7QUFDeEIsVUFBSSxHQUFHLE9BQU8sQ0FBQztBQUNmLGtCQUFZLEdBQUc7SUFDcEIsV0FBVyxFQUFFLHNCQUFzQjtDQUNwQyxDQUFDIn0= |
import { InlineAnnotation } from '@atjson/document'; | ||
export default class Link extends InlineAnnotation { | ||
export default class Link extends InlineAnnotation<{ | ||
url: string; | ||
title: string; | ||
}> { | ||
static type: string; | ||
static vendorPrefix: string; | ||
attributes: { | ||
url: string; | ||
title: string; | ||
}; | ||
} |
@@ -6,2 +6,2 @@ import { InlineAnnotation } from '@atjson/document'; | ||
Link.vendorPrefix = 'offset'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saW5rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXBELE1BQU0sQ0FBQyxPQUFPLE9BQU8sSUFBSyxTQUFRLGdCQUFnQjs7QUFDekMsU0FBSSxHQUFHLE1BQU0sQ0FBQztBQUNkLGlCQUFZLEdBQUcsUUFBUSxDQUFDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saW5rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRXBELE1BQU0sQ0FBQyxPQUFPLE9BQU8sSUFBSyxTQUFRLGdCQUdoQzs7QUFDTyxTQUFJLEdBQUcsTUFBTSxDQUFDO0FBQ2QsaUJBQVksR0FBRyxRQUFRLENBQUMifQ== |
import { BlockAnnotation } from '@atjson/document'; | ||
export default class List extends BlockAnnotation { | ||
export default class List extends BlockAnnotation<{ | ||
type: string; | ||
delimiter?: string; | ||
tight?: boolean; | ||
level?: number; | ||
startsAt?: number; | ||
}> { | ||
static vendorPrefix: string; | ||
static type: string; | ||
attributes: { | ||
type: string; | ||
delimiter?: string; | ||
tight?: boolean; | ||
level?: number; | ||
startsAt?: number; | ||
}; | ||
} |
@@ -6,2 +6,2 @@ import { BlockAnnotation } from '@atjson/document'; | ||
List.type = 'list'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVuRCxNQUFNLENBQUMsT0FBTyxPQUFPLElBQUssU0FBUSxlQUFlOztBQUN4QyxpQkFBWSxHQUFHLFFBQVEsQ0FBQztBQUN4QixTQUFJLEdBQUcsTUFBTSxDQUFDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hbm5vdGF0aW9ucy9saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVuRCxNQUFNLENBQUMsT0FBTyxPQUFPLElBQUssU0FBUSxlQU1oQzs7QUFDTyxpQkFBWSxHQUFHLFFBQVEsQ0FBQztBQUN4QixTQUFJLEdBQUcsTUFBTSxDQUFDIn0= |
import Document from '@atjson/document'; | ||
import { Bold, FacebookEmbed, Image } from './annotations'; | ||
import { Blockquote, FacebookEmbed, Image } from './annotations'; | ||
export * from './annotations'; | ||
export default class OffsetSource extends Document { | ||
static contentType: string; | ||
static schema: (typeof Bold | typeof FacebookEmbed | typeof Image)[]; | ||
static schema: (typeof Blockquote | typeof FacebookEmbed | typeof Image)[]; | ||
} |
{ | ||
"name": "@atjson/offset-annotations", | ||
"version": "0.17.1", | ||
"version": "0.17.2", | ||
"description": "Annotations used for stories", | ||
@@ -21,3 +21,3 @@ "main": "dist/commonjs/index.js", | ||
}, | ||
"gitHead": "3f4a66807bea7084090ef3df9c45dc30774ce766" | ||
"gitHead": "3c0dbcc5a2766304955d7a55d057fcfcb12227cd" | ||
} |
@@ -6,6 +6,2 @@ import { BlockAnnotation } from '@atjson/document'; | ||
static vendorPrefix = 'offset'; | ||
attributes!: { | ||
attribution: string; | ||
accreditation: string; | ||
}; | ||
} |
import { Annotation } from '@atjson/document'; | ||
export default class Code extends Annotation { | ||
export default class Code extends Annotation<{ | ||
style: 'block' | 'inline' | 'fence'; | ||
info?: string; | ||
}> { | ||
static vendorPrefix = 'offset'; | ||
static type = 'code'; | ||
attributes!: { | ||
style: 'block' | 'inline' | 'fence'; | ||
info?: string; | ||
}; | ||
@@ -11,0 +10,0 @@ get rank() { |
import { BlockAnnotation } from '@atjson/document'; | ||
export default class Heading extends BlockAnnotation { | ||
export default class Heading extends BlockAnnotation<{ | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
}> { | ||
static type = 'heading'; | ||
static vendorPrefix = 'offset'; | ||
attributes!: { | ||
level: 1 | 2 | 3 | 4 | 5 | 6; | ||
}; | ||
} |
import { Annotation } from '@atjson/document'; | ||
export default class HTML extends Annotation { | ||
export default class HTML extends Annotation<{ | ||
style: 'inline' | 'block'; | ||
}> { | ||
static vendorPrefix = 'offset'; | ||
static type = 'html'; | ||
attributes!: { | ||
style: 'inline' | 'block'; | ||
}; | ||
@@ -10,0 +9,0 @@ get rank() { |
@@ -14,3 +14,9 @@ import { ObjectAnnotation } from '@atjson/document'; | ||
export default class IframeEmbed extends ObjectAnnotation { | ||
export default class IframeEmbed extends ObjectAnnotation<{ | ||
url: string; | ||
width?: string; | ||
height?: string; | ||
caption?: CaptionSource; | ||
sandbox?: string; | ||
}> { | ||
static type = 'iframe-embed'; | ||
@@ -20,10 +26,2 @@ static vendorPrefix = 'offset'; | ||
attributes!: { | ||
url: string; | ||
width?: string; | ||
height?: string; | ||
caption?: CaptionSource; | ||
sandbox?: string; | ||
}; | ||
get url() { | ||
@@ -30,0 +28,0 @@ try { |
@@ -27,3 +27,7 @@ import Document, { ObjectAnnotation } from '@atjson/document'; | ||
export default class Image extends ObjectAnnotation { | ||
export default class Image extends ObjectAnnotation<{ | ||
url: string; | ||
title?: string; | ||
description: ImageDescriptionSource; | ||
}> { | ||
static vendorPrefix = 'offset'; | ||
@@ -34,7 +38,2 @@ static type = 'image'; | ||
}; | ||
attributes!: { | ||
url: string; | ||
title: string; | ||
description: ImageDescriptionSource; | ||
}; | ||
} |
import { InlineAnnotation } from '@atjson/document'; | ||
export default class Link extends InlineAnnotation { | ||
export default class Link extends InlineAnnotation<{ | ||
url: string; | ||
title: string; | ||
}> { | ||
static type = 'link'; | ||
static vendorPrefix = 'offset'; | ||
attributes!: { | ||
url: string; | ||
title: string; | ||
}; | ||
} |
import { BlockAnnotation } from '@atjson/document'; | ||
export default class List extends BlockAnnotation { | ||
export default class List extends BlockAnnotation<{ | ||
type: string; | ||
delimiter?: string; | ||
tight?: boolean; | ||
level?: number; | ||
startsAt?: number; | ||
}> { | ||
static vendorPrefix = 'offset'; | ||
static type = 'list'; | ||
attributes!: { | ||
type: string; | ||
delimiter?: string; | ||
tight?: boolean; | ||
level?: number; | ||
startsAt?: number; | ||
}; | ||
} |
120578
1952