@email-types/data
Advanced tools
Comparing version 1.0.0-canary.4 to 1.0.0-canary.5
@@ -6,2 +6,17 @@ # Change Log | ||
### 1.0.0-canary.5 - 2019-12-22 | ||
#### 📋 Misc | ||
- Adds initial css data & scripts pkg, updates deps & readme, and cleanup (#14) | ||
([60d53bd](https://github.com/email-types/email-types/commit/60d53bd)), closes | ||
[#14](https://github.com/email-types/email-types/issues/14) | ||
**Note:** Version bump only for package @email-types/data | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
## 1.0.0-canary.4 - 2019-12-16 | ||
@@ -8,0 +23,0 @@ |
@@ -0,2 +1,7 @@ | ||
export declare type Description = string; | ||
export declare type Links = Readonly<{ | ||
title: 'Microsoft' | 'MDN' | 'W3C' | 'Wikipedia' | (string & {}); | ||
url: string; | ||
}>[]; | ||
export declare type Nullable<T> = T | null; | ||
export declare type Description = string; | ||
export declare const as: <T>(value: T) => T; |
@@ -1,1 +0,8 @@ | ||
"use strict"; | ||
"use strict"; | ||
exports.__esModule = true; | ||
exports.as = void 0; | ||
const as = value => value; | ||
exports.as = as; |
@@ -1,3 +0,4 @@ | ||
export * from './mso'; | ||
export * from './html/doctypes'; | ||
export * from './utils/create'; | ||
import * as css from './css'; | ||
import * as html from './html'; | ||
import * as mso from './mso'; | ||
export { css, html, mso }; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.mso = exports.html = exports.css = void 0; | ||
var _mso = require("./mso"); | ||
var css = _interopRequireWildcard(require("./css")); | ||
Object.keys(_mso).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _mso[key]; | ||
}); | ||
exports.css = css; | ||
var _doctypes = require("./html/doctypes"); | ||
var html = _interopRequireWildcard(require("./html")); | ||
Object.keys(_doctypes).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _doctypes[key]; | ||
}); | ||
exports.html = html; | ||
var _create = require("./utils/create"); | ||
var mso = _interopRequireWildcard(require("./mso")); | ||
Object.keys(_create).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _create[key]; | ||
}); | ||
exports.mso = mso; | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } |
@@ -1,3 +0,1 @@ | ||
import * as MSO from '../types/mso'; | ||
export declare const groups: Record<"animations" | "bullets-and-numbered-lists" | "borders-and-shading" | "cell-formatting" | "change-tracking" | "comments" | "fields" | "footnotes-and-endnotes" | "frames-and-drop-caps" | "grouping-and-outline" | "headers-and-footers" | "hyperlinks" | "international-documents" | "master-documents" | "page-layout-and-section-breaks" | "page-setup" | "paragraphs" | "paragraph-spacing" | "saving-and-opening-html-files" | "text" | "tables" | "whitespace" | "worksheets", MSO.Group>; | ||
export default groups; | ||
export declare type Groups = 'MSO Animations' | 'MSO Borders' | 'MSO Colors' | 'MSO Conditional Comments' | 'MSO Fields' | 'MSO Frames' | 'MSO Html Files' | 'MSO Hyperlinks' | 'MSO International Documents' | 'MSO Lists' | 'MSO Master Documents' | 'MSO Pages' | 'MSO Paragraphs' | 'MSO Text' | 'MSO Tables' | 'MSO Table Cells' | 'MSO Tracking' | 'MSO Whitespace' | 'MSO Worksheets'; |
@@ -1,3 +0,1 @@ | ||
import * as MSO from '../types/mso'; | ||
export { MSO }; | ||
export * from './groups'; | ||
@@ -7,3 +5,6 @@ export * from './operators'; | ||
export * from './syntaxes'; | ||
export * from './types'; | ||
export * from './versions'; | ||
export * from './operators.types'; | ||
export * from './properties.types'; | ||
export * from './syntaxes.types'; | ||
export * from './versions.types'; |
"use strict"; | ||
exports.__esModule = true; | ||
var _exportNames = { | ||
MSO: true | ||
}; | ||
exports.MSO = void 0; | ||
var MSO = _interopRequireWildcard(require("../types/mso")); | ||
exports.MSO = MSO; | ||
var _groups = require("./groups"); | ||
@@ -17,3 +9,2 @@ | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _groups[key]; | ||
@@ -26,3 +17,2 @@ }); | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _operators[key]; | ||
@@ -35,3 +25,2 @@ }); | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _properties[key]; | ||
@@ -44,24 +33,38 @@ }); | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _syntaxes[key]; | ||
}); | ||
var _types = require("./types"); | ||
var _versions = require("./versions"); | ||
Object.keys(_types).forEach(function (key) { | ||
Object.keys(_versions).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _types[key]; | ||
exports[key] = _versions[key]; | ||
}); | ||
var _versions = require("./versions"); | ||
var _operators2 = require("./operators.types"); | ||
Object.keys(_versions).forEach(function (key) { | ||
Object.keys(_operators2).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
exports[key] = _versions[key]; | ||
exports[key] = _operators2[key]; | ||
}); | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
var _properties2 = require("./properties.types"); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
Object.keys(_properties2).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _properties2[key]; | ||
}); | ||
var _syntaxes2 = require("./syntaxes.types"); | ||
Object.keys(_syntaxes2).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _syntaxes2[key]; | ||
}); | ||
var _versions2 = require("./versions.types"); | ||
Object.keys(_versions2).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _versions2[key]; | ||
}); |
@@ -1,3 +0,2 @@ | ||
import * as MSO from '../types/mso'; | ||
export declare const operators: Record<"and" | "greaterThan" | "greaterThanOrEqual" | "lessThan" | "lessThanOrEqual" | "not" | "or", MSO.Operator>; | ||
export default operators; | ||
import { Operators } from './operators.types'; | ||
export declare const operators: Operators; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.default = exports.operators = void 0; | ||
var _create = require("../utils/create"); | ||
const validate = (0, _create.create)(); | ||
const operators = validate({ | ||
exports.operators = void 0; | ||
const operators = { | ||
and: { | ||
@@ -18,3 +14,3 @@ syntax: '&', | ||
}, | ||
greaterThan: { | ||
greater: { | ||
syntax: 'gt', | ||
@@ -27,3 +23,3 @@ description: 'The greater-than operator. Returns true if the first argument is greater than the second argument.', | ||
}, | ||
greaterThanOrEqual: { | ||
greaterOrEqual: { | ||
syntax: 'gte', | ||
@@ -36,3 +32,3 @@ description: 'The greater-than or equal operator. Returns true if the first argument is greater than or equal to the second argument.', | ||
}, | ||
lessThan: { | ||
less: { | ||
syntax: 'lt', | ||
@@ -45,3 +41,3 @@ description: 'The less-than operator. Returns true if the first argument is less than the second argument.', | ||
}, | ||
lessThanOrEqual: { | ||
lessOrEqual: { | ||
syntax: 'lte', | ||
@@ -70,5 +66,3 @@ description: 'The less-than or equal operator. Returns true if the first argument is less than or equal to the second argument.', | ||
} | ||
}); | ||
exports.operators = operators; | ||
var _default = operators; | ||
exports.default = _default; | ||
}; | ||
exports.operators = operators; |
@@ -1,3 +0,2 @@ | ||
import * as MSO from '../types/mso'; | ||
export declare const properties: Record<"mso-ansi-font-size" | "mso-ansi-font-style" | "mso-ansi-font-weight" | "mso-ansi-language" | "mso-ascii-font-family" | "mso-background" | "mso-background-source" | "mso-baseline-position" | "mso-bidi-flag" | "mso-bidi-font-family" | "mso-bidi-font-size" | "mso-bidi-font-style" | "mso-bidi-font-weight" | "mso-bidi-language" | "mso-bookmark" | "mso-border-alt" | "mso-border-between" | "mso-border-between-color" | "mso-border-between-style" | "mso-border-between-width" | "mso-border-bottom-alt" | "mso-border-bottom-color-alt" | "mso-border-bottom-source" | "mso-border-bottom-style-alt" | "mso-border-bottom-width-alt" | "mso-border-color-alt" | "mso-border-effect" | "mso-border-left-alt" | "mso-border-left-color-alt" | "mso-border-left-source" | "mso-border-left-style-alt" | "mso-border-left-width-alt" | "mso-border-right-alt" | "mso-border-right-color-alt" | "mso-border-right-source" | "mso-border-right-style-alt" | "mso-border-right-width-alt" | "mso-border-shadow" | "mso-border-source" | "mso-border-style-alt" | "mso-border-top-alt" | "mso-border-top-color-alt" | "mso-border-top-source" | "mso-border-top-style-alt" | "mso-border-top-width-alt" | "mso-border-width-alt" | "mso-break-type" | "mso-build" | "mso-build-after-action" | "mso-build-after-color" | "mso-build-auto-secs" | "mso-build-avi" | "mso-build-dual-id" | "mso-build-order" | "mso-build-sound-name" | "mso-bullet-image" | "mso-cellspacing" | "mso-cell-special" | "mso-char-indent" | "mso-char-indent-count" | "mso-char-indent-size" | "mso-char-type" | "mso-char-wrap" | "mso-color-alt" | "mso-color-index" | "mso-color-source" | "mso-column-break-before" | "mso-columns" | "mso-column-separator" | "mso-comment-author" | "mso-comment-continuation" | "mso-comment-id" | "mso-comment-reference" | "mso-data-placement" | "mso-default-height" | "mso-default-width" | "mso-diagonal-down" | "mso-diagonal-down-color" | "mso-diagonal-down-source" | "mso-diagonal-down-style" | "mso-diagonal-down-width" | "mso-diagonal-up" | "mso-diagonal-up-color" | "mso-diagonal-up-source" | "mso-diagonal-up-style" | "mso-diagonal-up-width" | "mso-displayed-decimal-separator" | "mso-displayed-thousand-separator" | "mso-element" | "mso-element-anchor-horizontal" | "mso-element-anchor-lock" | "mso-element-anchor-vertical" | "mso-element-frame-height" | "mso-element-frame-hspace" | "mso-element-frame-vspace" | "mso-element-frame-width" | "mso-element-left" | "mso-element-linespan" | "mso-element-top" | "mso-element-wrap" | "mso-endnote-continuation-notice" | "mso-endnote-continuation-notice-id" | "mso-endnote-continuation-notice-src" | "mso-endnote-continuation-separator" | "mso-endnote-continuation-separator-id" | "mso-endnote-continuation-separator-src" | "mso-endnote-display" | "mso-endnote-id" | "mso-endnote-numbering" | "mso-endnote-numbering-restart" | "mso-endnote-numbering-start" | "mso-endnote-numbering-style" | "mso-endnote-position" | "mso-endnote-separator" | "mso-endnote-separator-id" | "mso-endnote-separator-src" | "mso-even-footer" | "mso-even-footer-id" | "mso-even-footer-src" | "mso-even-header" | "mso-even-header-id" | "mso-even-header-src" | "mso-facing-pages" | "mso-fareast-font-family" | "mso-fareast-hint" | "mso-fareast-language" | "mso-field-change" | "mso-field-change-author" | "mso-field-change-time" | "mso-field-change-value" | "mso-field-code" | "mso-field-lock" | "mso-fills-color" | "mso-first-footer" | "mso-first-footer-id" | "mso-first-footer-src" | "mso-first-header" | "mso-first-header-id" | "mso-first-header-src" | "mso-font-alt" | "mso-font-charset" | "mso-font-format" | "mso-font-info" | "mso-font-info-charset" | "mso-font-info-type" | "mso-font-kerning" | "mso-font-pitch" | "mso-font-signature" | "mso-font-signature-csb-one" | "mso-font-signature-csb-two" | "mso-font-signature-usb-four" | "mso-font-signature-usb-one" | "mso-font-signature-usb-three" | "mso-font-signature-usb-two" | "mso-font-src" | "mso-font-width" | "mso-footer" | "mso-footer-data" | "mso-footer-id" | "mso-footer-margin" | "mso-footer-src" | "mso-footnote-continuation-notice" | "mso-footnote-continuation-notice-id" | "mso-footnote-continuation-notice-src" | "mso-footnote-continuation-separator" | "mso-footnote-continuation-separator-id" | "mso-footnote-continuation-separator-src" | "mso-footnote-id" | "mso-footnote-numbering" | "mso-footnote-numbering-restart" | "mso-footnote-numbering-start" | "mso-footnote-numbering-style" | "mso-footnote-position" | "mso-footnote-separator" | "mso-footnote-separator-id" | "mso-footnote-separator-src" | "mso-foreground" | "mso-forms-protection" | "mso-generic-font-family" | "mso-grid-bottom" | "mso-grid-bottom-count" | "mso-grid-left" | "mso-grid-left-count" | "mso-grid-right" | "mso-grid-right-count" | "mso-grid-top" | "mso-grid-top-count" | "mso-gutter-direction" | "mso-gutter-margin" | "mso-gutter-position" | "mso-hansi-font-family" | "mso-header" | "mso-header-data" | "mso-header-id" | "mso-header-margin" | "mso-header-src" | "mso-height-alt" | "mso-height-rule" | "mso-height-source" | "mso-hide" | "mso-highlight" | "mso-horizontal-page-align" | "mso-hyphenate" | "mso-ignore" | "mso-kinsoku-overflow" | "mso-layout-grid-align" | "mso-layout-grid-char-alt" | "mso-layout-grid-origin" | "mso-level-inherit" | "mso-level-legacy" | "mso-level-legacy-indent" | "mso-level-legacy-space" | "mso-level-legal-format" | "mso-level-number-format" | "mso-level-numbering" | "mso-level-number-position" | "mso-level-reset-level" | "mso-level-start-at" | "mso-level-style-link" | "mso-level-suffix" | "mso-level-tab-stop" | "mso-level-text" | "mso-line-break-override" | "mso-line-grid" | "mso-line-height-alt" | "mso-line-height-rule" | "mso-line-numbers-count-by" | "mso-line-numbers-distance" | "mso-line-numbers-restart" | "mso-line-numbers-start" | "mso-line-spacing" | "mso-linked-frame" | "mso-list" | "mso-list-change" | "mso-list-change-author" | "mso-list-change-time" | "mso-list-change-values" | "mso-list-id" | "mso-list-ins" | "mso-list-ins-author" | "mso-list-ins-time" | "mso-list-name" | "mso-list-template-ids" | "mso-list-type" | "mso-margin-bottom-alt" | "mso-margin-left-alt" | "mso-margin-top-alt" | "mso-mirror-margins" | "mso-negative-indent-tab" | "mso-number-format" | "mso-outline-level" | "mso-outline-parent" | "mso-outline-parent-col" | "mso-outline-parent-row" | "mso-outline-parent-visibility" | "mso-outline-style" | "mso-padding-alt" | "mso-padding-between" | "mso-padding-bottom-alt" | "mso-padding-left-alt" | "mso-padding-right-alt" | "mso-padding-top-alt" | "mso-page-border-aligned" | "mso-page-border-art" | "mso-page-border-bottom-art" | "mso-page-border-display" | "mso-page-border-left-art" | "mso-page-border-offset-from" | "mso-page-border-right-art" | "mso-page-border-surround-footer" | "mso-page-border-surround-header" | "mso-page-border-top-art" | "mso-page-border-z-order" | "mso-page-numbers" | "mso-page-numbers-chapter-separator" | "mso-page-numbers-chapter-style" | "mso-page-numbers-start" | "mso-page-numbers-style" | "mso-page-orientation" | "mso-page-scale" | "mso-pagination" | "mso-panose-arm-style" | "mso-panose-contrast" | "mso-panose-family-type" | "mso-panose-letterform" | "mso-panose-midline" | "mso-panose-proportion" | "mso-panose-serif-style" | "mso-panose-stroke-variation" | "mso-panose-weight" | "mso-panose-x-height" | "mso-paper-source" | "mso-paper-source-first-page" | "mso-paper-source-other-pages" | "mso-pattern" | "mso-pattern-color" | "mso-pattern-style" | "mso-print-area" | "mso-print-color" | "mso-print-gridlines" | "mso-print-headings" | "mso-print-resolution" | "mso-print-sheet-order" | "mso-print-title-column" | "mso-print-title-row" | "mso-prop-change" | "mso-prop-change-author" | "mso-prop-change-time" | "mso-protection" | "mso-rotate" | "mso-row-margin-left" | "mso-row-margin-right" | "mso-ruby-merge" | "mso-ruby-visibility" | "mso-scheme-fill-color" | "mso-scheme-shadow-color" | "mso-shading" | "mso-shadow-color" | "mso-space-above" | "mso-space-below" | "mso-spacerun" | "mso-special-character" | "mso-special-format" | "mso-style-id" | "mso-style-name" | "mso-style-next" | "mso-style-parent" | "mso-style-type" | "mso-style-update" | "mso-subdocument" | "mso-symbol-font-family" | "mso-tab-count" | "mso-table-anchor-horizontal" | "mso-table-anchor-vertical" | "mso-table-bspace" | "mso-table-del-author" | "mso-table-deleted" | "mso-table-del-time" | "mso-table-dir" | "mso-table-ins-author" | "mso-table-inserted" | "mso-table-ins-time" | "mso-table-layout-alt" | "mso-table-left" | "mso-table-lspace" | "mso-table-overlap" | "mso-table-prop-author" | "mso-table-prop-change" | "mso-table-prop-time" | "mso-table-rspace" | "mso-table-top" | "mso-table-tspace" | "mso-table-wrap" | "mso-text-animation" | "mso-text-combine-brackets" | "mso-text-combine-id" | "mso-text-control" | "mso-text-fit-id" | "mso-text-indent-alt" | "mso-text-orientation" | "mso-text-raise" | "mso-title-page" | "mso-tny-compress" | "mso-unsynced" | "mso-vertical-align-alt" | "mso-vertical-align-special" | "mso-vertical-page-align" | "mso-width-alt" | "mso-width-source" | "mso-word-wrap" | "mso-xlrowspan" | "mso-zero-height", MSO.Property>; | ||
export default properties; | ||
import { Properties } from './properties.types'; | ||
export declare const properties: Properties; |
@@ -1,3 +0,2 @@ | ||
import * as MSO from '../types/mso'; | ||
export declare const syntaxes: Record<"border-art" | "border-style" | "color" | "complex-line-style" | "font-size" | "generic-font-family" | "gap-line-style" | "int-number-style" | "line-width" | "ms-excel-pattern-name" | "ms-word-pattern-name" | "named-color" | "number-style" | "simple-line-style", MSO.Syntax>; | ||
export default syntaxes; | ||
import { Syntaxes } from './syntaxes.types'; | ||
export declare const syntaxes: Syntaxes; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.default = exports.syntaxes = void 0; | ||
var _create = require("../utils/create"); | ||
const validate = (0, _create.create)(); | ||
const syntaxes = validate({ | ||
exports.syntaxes = void 0; | ||
const syntaxes = { | ||
'border-art': { | ||
@@ -52,5 +48,3 @@ syntax: 'apples | arched-scallops | baby-pacifier | baby-rattle | balloons-3-color | balloons-hot-air | basic-black-dashes | basic-black-dots | basic-black-squares | basic-thin-lines | basic-white-dashes | basic-white-dots | basic-white-squares | basic-wide-inline | basic-wide-midline | basic-wide-outline | bats | birds | birds-flight | cabins | cake-slice | candy-corn | celtic-knotwork | certificate-banner | chain-link | champagne-bottle | checked-bar-black | checked-bar-color | checkered | christmas-tree | circles-lines | circles-rectangles | classical-wave | clocks | compass | confetti | confetti-grays | confetti-outline | confetti-streamers | confetti-white | corner-triangles | coupon-cutout-dashes | coupon-cutout-dots | crazy-maze | creatures-butterfly | creatures-fish | creatures-insects | creatures-lady-bug | cross-stitch | cup | deco-arch | deco-arch-color | deco-blocks | diamonds-gray | double-d | double-diamonds | earth-1 | earth-2 | eclipsing-squares-1 | eclipsing-squares-2 | eggs-black | fans | film | firecrackers | flowers-block-print | flowers-daisies | flowers-modern-1 | flowers-modern-2 | flowers-pansy | flowers-red-rose | flowers-roses | flowers-teacup | flowers-tiny | gems | gingerbread-man | gradient | handmade-1 | handmade-2 | heart-balloon | heart-gray | hearts | heebie-jeebies | holly | house-funky | hypnotic | ice-cream-cones | light-bulb | lightning-1 | lightning-2 | maple-leaf | maple-muffins | map-pins | marquee | marquee-toothed | moons | mosaic | music-notes | northwest | ovals | packages | palms-black | palms-color | paper-clips | papyrus | party-favor | party-glass | pencils | people | people-hats | people-waving | poinsettias | postage-stamp | pumpkin-1 | push-pin-note-1 | push-pin-note-2 | pyramids | pyramids-above | quadrants | rings | safari | sawtooth | sawtooth-gray | scared-cat | seattle | shadowed-squares | sharks-teeth | shorebird-tracks | skyrocket | snowflake-fancy | snowflakes | sombrero | southwest | stars | stars-3d | stars-black | stars-shadowed | stars-top | sun | swirligig | torn-paper | torn-paper-black | trees | triangle-party | triangles | tribal-1 | tribal-2 | tribal-3 | tribal-4 | tribal-5 | tribal-6 | twisted-lines-1 | twisted-lines-2 | vine | waveline | weaving-angles | weaving-braid | weaving-ribbon | weaving-strips | white-flowers | woodwork | x-illusions | zany-triangles | zig-zag | zig-zag-stitch' | ||
} | ||
}); | ||
exports.syntaxes = syntaxes; | ||
var _default = syntaxes; | ||
exports.default = _default; | ||
}; | ||
exports.syntaxes = syntaxes; |
@@ -1,3 +0,2 @@ | ||
import * as MSO from '../types/mso'; | ||
export declare const versions: Record<"ie" | "mso" | "mso9" | "mso10" | "mso11" | "mso12" | "mso14" | "mso15" | "mso16", MSO.Version>; | ||
export default versions; | ||
import { Versions } from './versions.types'; | ||
export declare const versions: Versions; |
"use strict"; | ||
exports.__esModule = true; | ||
exports.default = exports.versions = void 0; | ||
var _create = require("../utils/create"); | ||
const validate = (0, _create.create)(); | ||
const versions = validate({ | ||
exports.versions = void 0; | ||
const versions = { | ||
ie: { | ||
syntax: 'IE', | ||
versions: ['2000', '2002', '2003'] | ||
versions: [2009, 2002, 2003] | ||
}, | ||
mso: { | ||
syntax: 'mso', | ||
versions: ['2000', '2002', '2003', '2007', '2010', '2013', '2016'] | ||
versions: [2000, 2002, 2003, 2007, 2010, 2013, 2016] | ||
}, | ||
mso9: { | ||
syntax: 'mso 9', | ||
versions: ['2000'] | ||
versions: [2000] | ||
}, | ||
mso10: { | ||
syntax: 'mso 10', | ||
versions: ['2002'] | ||
versions: [2002] | ||
}, | ||
mso11: { | ||
syntax: 'mso 11', | ||
versions: ['2003'] | ||
versions: [2003] | ||
}, | ||
mso12: { | ||
syntax: 'mso 12', | ||
versions: ['2007'] | ||
versions: [2007] | ||
}, | ||
mso14: { | ||
syntax: 'mso 14', | ||
versions: ['2010'] | ||
versions: [2010] | ||
}, | ||
mso15: { | ||
syntax: 'mso 15', | ||
versions: ['2013'] | ||
versions: [2013] | ||
}, | ||
mso16: { | ||
syntax: 'mso 16', | ||
versions: ['2016'] | ||
versions: [2016] | ||
} | ||
}); | ||
exports.versions = versions; | ||
var _default = versions; | ||
exports.default = _default; | ||
}; | ||
exports.versions = versions; |
{ | ||
"name": "@email-types/data", | ||
"version": "1.0.0-canary.4", | ||
"version": "1.0.0-canary.5", | ||
"description": "@email-types/data", | ||
@@ -9,4 +9,6 @@ "main": "dist/index.js", | ||
"dist", | ||
"doctypes.d.ts", | ||
"doctypes.js", | ||
"css.d.ts", | ||
"css.js", | ||
"html.d.ts", | ||
"html.js", | ||
"mso.d.ts", | ||
@@ -30,3 +32,3 @@ "mso.js" | ||
"license": "MIT", | ||
"gitHead": "e9dd9f2364e3b1ac48958c57bbed34f9418746fc" | ||
"gitHead": "b47bbabdd0becb99e66acf85a0d638ba4892a2a6" | ||
} |
153
README.md
@@ -1,60 +0,143 @@ | ||
[msotype]: https://github.com/email-types/email-types/msotype | ||
[stylis-plugin-mso]: | ||
https://github.com/email-types/email-types/stylis-plugin-mso | ||
[wiki-dtd]: https://en.wikipedia.org/wiki/Document_type_definition | ||
[dep-mdn-data]: https://github.com/mdn/data | ||
<div align="center"> | ||
# Email Types Data | ||
General TypeScript definitions and compatibility data that can be used when | ||
building emails. Checkout [msotype] and [stylis-plugin-mso] for examples. | ||
General TypeScript definitions and data that can be used when building emails. | ||
```sh | ||
yarn add --dev @email-types/data | ||
yarn add @email-types/data | ||
``` | ||
## Data | ||
</div> | ||
| | Description | Exports | | ||
| :-------------- | :----------------------------------------------------- | :----------------------------------------------------------------------------------- | | ||
| [**mso**](#mso) | Data about the different features of the MSO language. | • `properties` <br> • `syntaxes` <br> • `operators` <br> • `types` <br> • `versions` | `AlternativePropertiesHyphen` | | ||
| **features** | _todo_ | _todo_ | | ||
| **providers** | _todo_ | _todo_ | | ||
--- | ||
### MSO | ||
| Category | Description | Exports | | ||
| :---------------- | :--------------------------------------------------------------------- | :-------------------------------------------------------------------- | | ||
| [**css**](#css) | Email specific data about the different features of the CSS language. | • `data-types` | | ||
| [**html**](#html) | Email specific data about the different features of the HTML language. | • `doctypes` | | ||
| [**mso**](#mso) | Data about the different features of the MSO language. | • `properties` <br> • `syntaxes` <br> • `operators` <br> • `versions` | | ||
#### Properties | ||
## CSS | ||
Property data for MSO (Microsoft Office), including data for the `mso-` CSS | ||
vendor prefix. There are 2 categories of property data. | ||
<details> | ||
<summary><strong>Examples</strong></summary> | ||
<ul> | ||
<li><a href="https://github.com/email-types/msotype" target="_blank">msotype</a></li> | ||
</ul> | ||
</details> | ||
- **`alternatives`** - Properties that end with an `-alt` postfix that are | ||
direct alternatives to a standard CSS property. | ||
- **`standard`** - Properties that correspond to a Microsoft Office feature. | ||
While these do not have a CSS equivalent, they may or may not have an effect | ||
on Microsoft Outlook | ||
<p></p> | ||
#### Syntaxes | ||
Email specific data about the different features of the CSS language. All CSS | ||
data is generated using [`mdn-data`][dep-mdn-data] during the build pipeline, | ||
exposing only what's relevant to reduce the overall package size. | ||
MSO value definition syntax is used for the formal syntax of MSO properties. For | ||
example, the `color` property uses the following syntax where <named-color> is | ||
referring to a syntax that is defined in `syntaxes.ts`. | ||
```ts | ||
import * as css from '@email-types/data/css'; | ||
``` | ||
### DataTypes | ||
CSS basic data types, such as `<string>`, `<number>`, and `<length>`. | ||
## HTML | ||
<details> | ||
<summary><strong>Examples</strong></summary> | ||
<ul> | ||
<li><a href="https://github.com/email-types/doctype" target="_blank">email-doctype</a></li> | ||
</ul> | ||
</details> | ||
<p></p> | ||
Email specific data about the different features of the HTML language. | ||
```ts | ||
color: { | ||
syntax: '<named-color>'; | ||
import * as html from '@email-types/data/html'; | ||
``` | ||
### Doctypes | ||
HTML [Document Type Definition (DTD)][wiki-dtd] data that can be used in emails. | ||
It does not include unsupported or deprecated doctype versions. | ||
Checkout [email-doctype] for an example using this data. | ||
## MSO | ||
<details> | ||
<summary><strong>Examples</strong></summary> | ||
<ul> | ||
<li><a href="https://github.com/email-types/msotype" target="_blank">msotype</a></li> | ||
<li><a href="https://github.com/email-types/stylis-plugin-mso" target="_blank">stylis-plugin-mso</a></li> | ||
</ul> | ||
</details> | ||
<p></p> | ||
Data about the different features of the Microsoft Office ("MSO") language. | ||
```ts | ||
import * as mso from '@email-types/data/mso'; | ||
``` | ||
### Properties | ||
MSO style property data, including data for the `mso-` CSS vendor prefix. When | ||
using this data, you should consider the following: | ||
**`css alternatives`** - Properties that end with an `-alt` postfix that are | ||
direct alternatives to a standard CSS property. | ||
**`office only`** - Properties that do not end with an `-alt` postfix and have | ||
no CSS equivalent. Instead, they correspond to a Microsoft Office feature. | ||
However, since some versions of Microsoft Outlook use Microsoft Word as it's | ||
rendering engine, these properties may or may not have an effect on your email. | ||
- **todo**: Test each of these properties to understand how they effect | ||
rendering of emails. Then document it all. | ||
### Syntaxes | ||
MSO syntax is value definitions used for the formal syntax of MSO properties. | ||
For example, the `mso-border-alt` property allows for `<border-style>` values. | ||
This is referring to a syntax defined in `syntaxes.ts`. | ||
```ts | ||
// example properties.ts | ||
{ | ||
'mso-border-alt': { | ||
syntax: '<border-style>', | ||
} | ||
} | ||
// example syntaxes.ts | ||
{ | ||
'border-style': { | ||
syntax: 'dashed | dotted | <string>'; | ||
} | ||
} | ||
``` | ||
#### Operators | ||
### Operators | ||
Operator syntax that can be used to create MSO conditional expressions, | ||
MSO operator syntax that can be used to create MSO conditional expressions, | ||
comments. | ||
#### Types | ||
### Versions | ||
CSS basic data types, such as `<sting>` and `<length>`, that are acceptable | ||
values that can be used by MSO properties. | ||
MSO version vectors that map to specific Outlook clients. This is commonly | ||
used—in combination with an [`operator`](#operators)—to target specific versions | ||
of Outlook when creating conditional expressions, comments. | ||
#### Versions | ||
## Upcoming | ||
MSO version vectors that map to specific Outlook clients. This is commonly used | ||
to target specific versions of Outlook with conditional comments. | ||
**Clients** | ||
Data about the different email clients—which will include `applications` and | ||
`webmail`. |
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
144
1
99377
37
3050