inferno-vnode-flags
Advanced tools
Comparing version 5.0.0-0 to 5.0.0-1
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.Inferno = global.Inferno || {}))); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.Inferno = global.Inferno || {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
/* If editing these values check babel-plugin-also */ | ||
(function (VNodeFlags) { | ||
/* First set of bits define shape of vNode */ | ||
VNodeFlags[VNodeFlags["HtmlElement"] = 1] = "HtmlElement"; | ||
VNodeFlags[VNodeFlags["ComponentUnknown"] = 2] = "ComponentUnknown"; | ||
VNodeFlags[VNodeFlags["ComponentClass"] = 4] = "ComponentClass"; | ||
VNodeFlags[VNodeFlags["ComponentFunction"] = 8] = "ComponentFunction"; | ||
VNodeFlags[VNodeFlags["Text"] = 16] = "Text"; | ||
/* Special flags */ | ||
VNodeFlags[VNodeFlags["SvgElement"] = 32] = "SvgElement"; | ||
VNodeFlags[VNodeFlags["InputElement"] = 64] = "InputElement"; | ||
VNodeFlags[VNodeFlags["TextareaElement"] = 128] = "TextareaElement"; | ||
VNodeFlags[VNodeFlags["SelectElement"] = 256] = "SelectElement"; | ||
VNodeFlags[VNodeFlags["Void"] = 512] = "Void"; | ||
VNodeFlags[VNodeFlags["Portal"] = 1024] = "Portal"; | ||
VNodeFlags[VNodeFlags["ReCreate"] = 2048] = "ReCreate"; | ||
/* Masks */ | ||
VNodeFlags[VNodeFlags["FormElement"] = 448] = "FormElement"; | ||
VNodeFlags[VNodeFlags["Element"] = 481] = "Element"; | ||
VNodeFlags[VNodeFlags["Component"] = 14] = "Component"; | ||
VNodeFlags[VNodeFlags["VNodeShape"] = 1565] = "VNodeShape"; | ||
})(exports.VNodeFlags || (exports.VNodeFlags = {})); | ||
(function (ChildFlags) { | ||
ChildFlags[ChildFlags["UnknownChildren"] = 0] = "UnknownChildren"; | ||
/* Second set of bits define shape of children */ | ||
ChildFlags[ChildFlags["HasInvalidChildren"] = 1] = "HasInvalidChildren"; | ||
ChildFlags[ChildFlags["HasVNodeChildren"] = 2] = "HasVNodeChildren"; | ||
ChildFlags[ChildFlags["HasNonKeyedChildren"] = 4] = "HasNonKeyedChildren"; | ||
ChildFlags[ChildFlags["HasKeyedChildren"] = 8] = "HasKeyedChildren"; | ||
ChildFlags[ChildFlags["MultipleChildren"] = 12] = "MultipleChildren"; | ||
})(exports.ChildFlags || (exports.ChildFlags = {})); | ||
/* If editing these values check babel-plugin-also */ | ||
(function (VNodeFlags) { | ||
/* First set of bits define shape of vNode */ | ||
VNodeFlags[VNodeFlags["HtmlElement"] = 1] = "HtmlElement"; | ||
VNodeFlags[VNodeFlags["ComponentUnknown"] = 2] = "ComponentUnknown"; | ||
VNodeFlags[VNodeFlags["ComponentClass"] = 4] = "ComponentClass"; | ||
VNodeFlags[VNodeFlags["ComponentFunction"] = 8] = "ComponentFunction"; | ||
VNodeFlags[VNodeFlags["Text"] = 16] = "Text"; | ||
/* Special flags */ | ||
VNodeFlags[VNodeFlags["SvgElement"] = 32] = "SvgElement"; | ||
VNodeFlags[VNodeFlags["InputElement"] = 64] = "InputElement"; | ||
VNodeFlags[VNodeFlags["TextareaElement"] = 128] = "TextareaElement"; | ||
VNodeFlags[VNodeFlags["SelectElement"] = 256] = "SelectElement"; | ||
VNodeFlags[VNodeFlags["Void"] = 512] = "Void"; | ||
VNodeFlags[VNodeFlags["Portal"] = 1024] = "Portal"; | ||
VNodeFlags[VNodeFlags["ReCreate"] = 2048] = "ReCreate"; | ||
/* Masks */ | ||
VNodeFlags[VNodeFlags["FormElement"] = 448] = "FormElement"; | ||
VNodeFlags[VNodeFlags["Element"] = 481] = "Element"; | ||
VNodeFlags[VNodeFlags["Component"] = 14] = "Component"; | ||
VNodeFlags[VNodeFlags["VNodeShape"] = 1565] = "VNodeShape"; | ||
})(exports.VNodeFlags || (exports.VNodeFlags = {})); | ||
(function (ChildFlags) { | ||
ChildFlags[ChildFlags["UnknownChildren"] = 0] = "UnknownChildren"; | ||
/* Second set of bits define shape of children */ | ||
ChildFlags[ChildFlags["HasInvalidChildren"] = 1] = "HasInvalidChildren"; | ||
ChildFlags[ChildFlags["HasVNodeChildren"] = 2] = "HasVNodeChildren"; | ||
ChildFlags[ChildFlags["HasNonKeyedChildren"] = 4] = "HasNonKeyedChildren"; | ||
ChildFlags[ChildFlags["HasKeyedChildren"] = 8] = "HasKeyedChildren"; | ||
ChildFlags[ChildFlags["MultipleChildren"] = 12] = "MultipleChildren"; | ||
})(exports.ChildFlags || (exports.ChildFlags = {})); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); |
{ | ||
"name": "inferno-vnode-flags", | ||
"version": "5.0.0-0", | ||
"version": "5.0.0-1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Provides an enum of all possible VNode Flags used when calling Inferno.createVNode", |
13594