govuk_publishing_components 17.20.0 → 17.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +8 -0
  3. data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +15 -5
  4. data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +13 -2
  5. data/lib/govuk_publishing_components/version.rb +1 -1
  6. data/node_modules/accessible-autocomplete/package.json +1 -1
  7. data/node_modules/graceful-fs/package.json +13 -13
  8. data/node_modules/graceful-fs/polyfills.js +17 -11
  9. data/node_modules/hosted-git-info/CHANGELOG.md +40 -0
  10. data/node_modules/hosted-git-info/git-host-info.js +5 -3
  11. data/node_modules/hosted-git-info/git-host.js +35 -10
  12. data/node_modules/hosted-git-info/index.js +17 -15
  13. data/node_modules/hosted-git-info/package.json +40 -30
  14. data/node_modules/lru-cache/LICENSE +15 -0
  15. data/node_modules/lru-cache/README.md +166 -0
  16. data/node_modules/lru-cache/index.js +334 -0
  17. data/node_modules/lru-cache/package.json +108 -0
  18. data/node_modules/pkg-conf/package.json +1 -1
  19. data/node_modules/preact/debug.js +630 -2
  20. data/node_modules/preact/debug.js.map +1 -1
  21. data/node_modules/preact/debug/dist/debug.js +2 -0
  22. data/node_modules/preact/debug/dist/debug.js.map +1 -0
  23. data/node_modules/preact/debug/dist/debug.mjs +681 -0
  24. data/node_modules/preact/debug/dist/debug.mjs.map +1 -0
  25. data/node_modules/preact/debug/dist/debug.module.js +2 -0
  26. data/node_modules/preact/debug/dist/debug.module.js.map +1 -0
  27. data/node_modules/preact/debug/dist/debug.umd.js +2 -0
  28. data/node_modules/preact/debug/dist/debug.umd.js.map +1 -0
  29. data/node_modules/preact/debug/index.js +2 -1
  30. data/node_modules/preact/dist/preact.d.ts +808 -3
  31. data/node_modules/preact/dist/preact.dev.js +727 -727
  32. data/node_modules/preact/dist/preact.dev.js.map +1 -1
  33. data/node_modules/preact/dist/preact.js +1 -1
  34. data/node_modules/preact/dist/preact.js.flow +3 -3
  35. data/node_modules/preact/dist/preact.js.map +1 -1
  36. data/node_modules/preact/dist/preact.min.js +1 -1
  37. data/node_modules/preact/dist/preact.min.js.map +1 -1
  38. data/node_modules/preact/dist/preact.mjs +724 -724
  39. data/node_modules/preact/dist/preact.mjs.map +1 -1
  40. data/node_modules/preact/dist/preact.umd.js +751 -0
  41. data/node_modules/preact/dist/preact.umd.js.map +1 -0
  42. data/node_modules/preact/package.json +43 -26
  43. data/node_modules/preact/src/preact.d.ts +808 -3
  44. data/node_modules/preact/src/preact.js.flow +3 -3
  45. data/node_modules/preact/src/util.js +1 -1
  46. data/node_modules/yallist/LICENSE +15 -0
  47. data/node_modules/yallist/README.md +204 -0
  48. data/node_modules/yallist/iterator.js +8 -0
  49. data/node_modules/yallist/package.json +97 -0
  50. data/node_modules/yallist/yallist.js +376 -0
  51. metadata +21 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preact.umd.js","sources":["../src/vnode.js","../src/options.js","../src/h.js","../src/util.js","../src/clone-element.js","../src/constants.js","../src/render-queue.js","../src/vdom/index.js","../src/dom/index.js","../src/vdom/diff.js","../src/vdom/component-recycler.js","../src/vdom/component.js","../src/component.js","../src/render.js","../src/preact.js"],"sourcesContent":["/**\n * Virtual DOM Node\n * @typedef VNode\n * @property {string | function} nodeName The string of the DOM node to create or Component constructor to render\n * @property {Array<VNode | string>} children The children of node\n * @property {string | number | undefined} key The key used to identify this VNode in a list\n * @property {object} attributes The properties of this VNode\n */\nexport const VNode = function VNode() {};\n","/**\n * @typedef {import('./component').Component} Component\n * @typedef {import('./vnode').VNode} VNode\n */\n\n/**\n * Global options\n * @public\n * @typedef Options\n * @property {boolean} [syncComponentUpdates] If `true`, `prop` changes trigger synchronous component updates. Defaults to true.\n * @property {(vnode: VNode) => void} [vnode] Processes all created VNodes.\n * @property {(component: Component) => void} [afterMount] Hook invoked after a component is mounted.\n * @property {(component: Component) => void} [afterUpdate] Hook invoked after the DOM is updated with a component's latest render.\n * @property {(component: Component) => void} [beforeUnmount] Hook invoked immediately before a component is unmounted.\n * @property {(rerender: function) => void} [debounceRendering] Hook invoked whenever a rerender is requested. Can be used to debounce rerenders.\n * @property {(event: Event) => Event | void} [event] Hook invoked before any Preact event listeners. The return value (if any) replaces the native browser event given to event listeners\n */\n\n/** @type {Options} */\nconst options = {};\n\nexport default options;\n","import { VNode } from './vnode';\nimport options from './options';\n\n\nconst stack = [];\n\nconst EMPTY_CHILDREN = [];\n\n/**\n * JSX/hyperscript reviver.\n * @see http://jasonformat.com/wtf-is-jsx\n * Benchmarks: https://esbench.com/bench/57ee8f8e330ab09900a1a1a0\n *\n * Note: this is exported as both `h()` and `createElement()` for compatibility\n * reasons.\n *\n * Creates a VNode (virtual DOM element). A tree of VNodes can be used as a\n * lightweight representation of the structure of a DOM tree. This structure can\n * be realized by recursively comparing it against the current _actual_ DOM\n * structure, and applying only the differences.\n *\n * `h()`/`createElement()` accepts an element name, a list of attributes/props,\n * and optionally children to append to the element.\n *\n * @example The following DOM tree\n *\n * `<div id=\"foo\" name=\"bar\">Hello!</div>`\n *\n * can be constructed using this function as:\n *\n * `h('div', { id: 'foo', name : 'bar' }, 'Hello!');`\n *\n * @param {string | function} nodeName An element name. Ex: `div`, `a`, `span`, etc.\n * @param {object | null} attributes Any attributes/props to set on the created element.\n * @param {VNode[]} [rest] Additional arguments are taken to be children to\n * append. Can be infinitely nested Arrays.\n *\n * @public\n */\nexport function h(nodeName, attributes) {\n\tlet children=EMPTY_CHILDREN, lastSimple, child, simple, i;\n\tfor (i=arguments.length; i-- > 2; ) {\n\t\tstack.push(arguments[i]);\n\t}\n\tif (attributes && attributes.children!=null) {\n\t\tif (!stack.length) stack.push(attributes.children);\n\t\tdelete attributes.children;\n\t}\n\twhile (stack.length) {\n\t\tif ((child = stack.pop()) && child.pop!==undefined) {\n\t\t\tfor (i=child.length; i--; ) stack.push(child[i]);\n\t\t}\n\t\telse {\n\t\t\tif (typeof child==='boolean') child = null;\n\n\t\t\tif ((simple = typeof nodeName!=='function')) {\n\t\t\t\tif (child==null) child = '';\n\t\t\t\telse if (typeof child==='number') child = String(child);\n\t\t\t\telse if (typeof child!=='string') simple = false;\n\t\t\t}\n\n\t\t\tif (simple && lastSimple) {\n\t\t\t\tchildren[children.length-1] += child;\n\t\t\t}\n\t\t\telse if (children===EMPTY_CHILDREN) {\n\t\t\t\tchildren = [child];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tchildren.push(child);\n\t\t\t}\n\n\t\t\tlastSimple = simple;\n\t\t}\n\t}\n\n\tlet p = new VNode();\n\tp.nodeName = nodeName;\n\tp.children = children;\n\tp.attributes = attributes==null ? undefined : attributes;\n\tp.key = attributes==null ? undefined : attributes.key;\n\n\t// if a \"vnode hook\" is defined, pass every created VNode to it\n\tif (options.vnode!==undefined) options.vnode(p);\n\n\treturn p;\n}\n","/**\n * Copy all properties from `props` onto `obj`.\n * @param {object} obj Object onto which properties should be copied.\n * @param {object} props Object from which to copy properties.\n * @returns {object}\n * @private\n */\nexport function extend(obj, props) {\n\tfor (let i in props) obj[i] = props[i];\n\treturn obj;\n}\n\n/** Invoke or update a ref, depending on whether it is a function or object ref.\n * @param {object|function} [ref=null]\n * @param {any} [value]\n */\nexport function applyRef(ref, value) {\n\tif (ref) {\n\t\tif (typeof ref=='function') ref(value);\n\t\telse ref.current = value;\n\t}\n}\n\n/**\n * Call a function asynchronously, as soon as possible. Makes\n * use of HTML Promise to schedule the callback if available,\n * otherwise falling back to `setTimeout` (mainly for IE<11).\n * @type {(callback: function) => void}\n */\nexport const defer = typeof Promise=='function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n","import { extend } from './util';\nimport { h } from './h';\n\n/**\n * Clones the given VNode, optionally adding attributes/props and replacing its\n * children.\n * @param {import('./vnode').VNode} vnode The virtual DOM element to clone\n * @param {object} props Attributes/props to add when cloning\n * @param {Array<import('./vnode').VNode>} [rest] Any additional arguments will be used as replacement\n * children.\n */\nexport function cloneElement(vnode, props) {\n\treturn h(\n\t\tvnode.nodeName,\n\t\textend(extend({}, vnode.attributes), props),\n\t\targuments.length>2 ? [].slice.call(arguments, 2) : vnode.children\n\t);\n}\n","// render modes\n\n/** Do not re-render a component */\nexport const NO_RENDER = 0;\n/** Synchronously re-render a component and its children */\nexport const SYNC_RENDER = 1;\n/** Synchronously re-render a component, even if its lifecycle methods attempt to prevent it. */\nexport const FORCE_RENDER = 2;\n/** Queue asynchronous re-render of a component and it's children */\nexport const ASYNC_RENDER = 3;\n\n\nexport const ATTR_KEY = '__preactattr_';\n\n/** DOM properties that should NOT have \"px\" added when numeric */\nexport const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\n","import options from './options';\nimport { defer } from './util';\nimport { renderComponent } from './vdom/component';\n\n/**\n * Managed queue of dirty components to be re-rendered\n * @type {Array<import('./component').Component>}\n */\nlet items = [];\n\n/**\n * Enqueue a rerender of a component\n * @param {import('./component').Component} component The component to rerender\n */\nexport function enqueueRender(component) {\n\tif (!component._dirty && (component._dirty = true) && items.push(component)==1) {\n\t\t(options.debounceRendering || defer)(rerender);\n\t}\n}\n\n/** Rerender all enqueued dirty components */\nexport function rerender() {\n\tlet p;\n\twhile ( (p = items.pop()) ) {\n\t\tif (p._dirty) renderComponent(p);\n\t}\n}\n","import { extend } from '../util';\n\n\n/**\n * Check if two nodes are equivalent.\n * @param {import('../dom').PreactElement} node DOM Node to compare\n * @param {import('../vnode').VNode} vnode Virtual DOM node to compare\n * @param {boolean} [hydrating=false] If true, ignores component constructors\n * when comparing.\n * @private\n */\nexport function isSameNodeType(node, vnode, hydrating) {\n\tif (typeof vnode==='string' || typeof vnode==='number') {\n\t\treturn node.splitText!==undefined;\n\t}\n\tif (typeof vnode.nodeName==='string') {\n\t\treturn !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n\t}\n\treturn hydrating || node._componentConstructor===vnode.nodeName;\n}\n\n\n/**\n * Check if an Element has a given nodeName, case-insensitively.\n * @param {import('../dom').PreactElement} node A DOM Element to inspect the name of.\n * @param {string} nodeName Unnormalized name to compare against.\n */\nexport function isNamedNode(node, nodeName) {\n\treturn node.normalizedNodeName===nodeName || node.nodeName.toLowerCase()===nodeName.toLowerCase();\n}\n\n\n/**\n * Reconstruct Component-style `props` from a VNode.\n * Ensures default/fallback values from `defaultProps`:\n * Own-properties of `defaultProps` not present in `vnode.attributes` are added.\n * @param {import('../vnode').VNode} vnode The VNode to get props for\n * @returns {object} The props to use for this VNode\n */\nexport function getNodeProps(vnode) {\n\tlet props = extend({}, vnode.attributes);\n\tprops.children = vnode.children;\n\n\tlet defaultProps = vnode.nodeName.defaultProps;\n\tif (defaultProps!==undefined) {\n\t\tfor (let i in defaultProps) {\n\t\t\tif (props[i]===undefined) {\n\t\t\t\tprops[i] = defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn props;\n}\n","import { IS_NON_DIMENSIONAL } from '../constants';\nimport { applyRef } from '../util';\nimport options from '../options';\n\n/**\n * A DOM event listener\n * @typedef {(e: Event) => void} EventListner\n */\n\n/**\n * A mapping of event types to event listeners\n * @typedef {Object.<string, EventListener>} EventListenerMap\n */\n\n/**\n * Properties Preact adds to elements it creates\n * @typedef PreactElementExtensions\n * @property {string} [normalizedNodeName] A normalized node name to use in diffing\n * @property {EventListenerMap} [_listeners] A map of event listeners added by components to this DOM node\n * @property {import('../component').Component} [_component] The component that rendered this DOM node\n * @property {function} [_componentConstructor] The constructor of the component that rendered this DOM node\n */\n\n/**\n * A DOM element that has been extended with Preact properties\n * @typedef {Element & ElementCSSInlineStyle & PreactElementExtensions} PreactElement\n */\n\n/**\n * Create an element with the given nodeName.\n * @param {string} nodeName The DOM node to create\n * @param {boolean} [isSvg=false] If `true`, creates an element within the SVG\n * namespace.\n * @returns {PreactElement} The created DOM node\n */\nexport function createNode(nodeName, isSvg) {\n\t/** @type {PreactElement} */\n\tlet node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n\tnode.normalizedNodeName = nodeName;\n\treturn node;\n}\n\n\n/**\n * Remove a child node from its parent if attached.\n * @param {Node} node The node to remove\n */\nexport function removeNode(node) {\n\tlet parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\n\n/**\n * Set a named attribute on the given Node, with special behavior for some names\n * and event handlers. If `value` is `null`, the attribute/handler will be\n * removed.\n * @param {PreactElement} node An element to mutate\n * @param {string} name The name/key to set, such as an event or attribute name\n * @param {*} old The last value that was set for this name/node pair\n * @param {*} value An attribute value, such as a function to be used as an\n * event handler\n * @param {boolean} isSvg Are we currently diffing inside an svg?\n * @private\n */\nexport function setAccessor(node, name, old, value, isSvg) {\n\tif (name==='className') name = 'class';\n\n\n\tif (name==='key') {\n\t\t// ignore\n\t}\n\telse if (name==='ref') {\n\t\tapplyRef(old, null);\n\t\tapplyRef(value, node);\n\t}\n\telse if (name==='class' && !isSvg) {\n\t\tnode.className = value || '';\n\t}\n\telse if (name==='style') {\n\t\tif (!value || typeof value==='string' || typeof old==='string') {\n\t\t\tnode.style.cssText = value || '';\n\t\t}\n\t\tif (value && typeof value==='object') {\n\t\t\tif (typeof old!=='string') {\n\t\t\t\tfor (let i in old) if (!(i in value)) node.style[i] = '';\n\t\t\t}\n\t\t\tfor (let i in value) {\n\t\t\t\tnode.style[i] = typeof value[i]==='number' && IS_NON_DIMENSIONAL.test(i)===false ? (value[i]+'px') : value[i];\n\t\t\t}\n\t\t}\n\t}\n\telse if (name==='dangerouslySetInnerHTML') {\n\t\tif (value) node.innerHTML = value.__html || '';\n\t}\n\telse if (name[0]=='o' && name[1]=='n') {\n\t\tlet useCapture = name !== (name=name.replace(/Capture$/, ''));\n\t\tname = name.toLowerCase().substring(2);\n\t\tif (value) {\n\t\t\tif (!old) node.addEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\telse {\n\t\t\tnode.removeEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\t(node._listeners || (node._listeners = {}))[name] = value;\n\t}\n\telse if (name!=='list' && name!=='type' && !isSvg && name in node) {\n\t\t// Attempt to set a DOM property to the given value.\n\t\t// IE & FF throw for certain property-value combinations.\n\t\ttry {\n\t\t\tnode[name] = value==null ? '' : value;\n\t\t} catch (e) { }\n\t\tif ((value==null || value===false) && name!='spellcheck') node.removeAttribute(name);\n\t}\n\telse {\n\t\tlet ns = isSvg && (name !== (name = name.replace(/^xlink:?/, '')));\n\t\t// spellcheck is treated differently than all other boolean values and\n\t\t// should not be removed when the value is `false`. See:\n\t\t// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-spellcheck\n\t\tif (value==null || value===false) {\n\t\t\tif (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());\n\t\t\telse node.removeAttribute(name);\n\t\t}\n\t\telse if (typeof value!=='function') {\n\t\t\tif (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);\n\t\t\telse node.setAttribute(name, value);\n\t\t}\n\t}\n}\n\n\n/**\n * Proxy an event to hooked event handlers\n * @param {Event} e The event object from the browser\n * @private\n */\nfunction eventProxy(e) {\n\treturn this._listeners[e.type](options.event && options.event(e) || e);\n}\n","import { ATTR_KEY } from '../constants';\nimport { isSameNodeType, isNamedNode } from './index';\nimport { buildComponentFromVNode } from './component';\nimport { createNode, setAccessor } from '../dom/index';\nimport { unmountComponent } from './component';\nimport options from '../options';\nimport { applyRef } from '../util';\nimport { removeNode } from '../dom/index';\n\n/**\n * Queue of components that have been mounted and are awaiting componentDidMount\n * @type {Array<import('../component').Component>}\n */\nexport const mounts = [];\n\n/** Diff recursion count, used to track the end of the diff cycle. */\nexport let diffLevel = 0;\n\n/** Global flag indicating if the diff is currently within an SVG */\nlet isSvgMode = false;\n\n/** Global flag indicating if the diff is performing hydration */\nlet hydrating = false;\n\n/** Invoke queued componentDidMount lifecycle methods */\nexport function flushMounts() {\n\tlet c;\n\twhile ((c = mounts.shift())) {\n\t\tif (options.afterMount) options.afterMount(c);\n\t\tif (c.componentDidMount) c.componentDidMount();\n\t}\n}\n\n\n/**\n * Apply differences in a given vnode (and it's deep children) to a real DOM Node.\n * @param {import('../dom').PreactElement} dom A DOM node to mutate into the shape of a `vnode`\n * @param {import('../vnode').VNode} vnode A VNode (with descendants forming a tree) representing\n * the desired DOM structure\n * @param {object} context The current context\n * @param {boolean} mountAll Whether or not to immediately mount all components\n * @param {Element} parent ?\n * @param {boolean} componentRoot ?\n * @returns {import('../dom').PreactElement} The created/mutated element\n * @private\n */\nexport function diff(dom, vnode, context, mountAll, parent, componentRoot) {\n\t// diffLevel having been 0 here indicates initial entry into the diff (not a subdiff)\n\tif (!diffLevel++) {\n\t\t// when first starting the diff, check if we're diffing an SVG or within an SVG\n\t\tisSvgMode = parent!=null && parent.ownerSVGElement!==undefined;\n\n\t\t// hydration is indicated by the existing element to be diffed not having a prop cache\n\t\thydrating = dom!=null && !(ATTR_KEY in dom);\n\t}\n\n\tlet ret = idiff(dom, vnode, context, mountAll, componentRoot);\n\n\t// append the element if its a new parent\n\tif (parent && ret.parentNode!==parent) parent.appendChild(ret);\n\n\t// diffLevel being reduced to 0 means we're exiting the diff\n\tif (!--diffLevel) {\n\t\thydrating = false;\n\t\t// invoke queued componentDidMount lifecycle methods\n\t\tif (!componentRoot) flushMounts();\n\t}\n\n\treturn ret;\n}\n\n\n/**\n * Internals of `diff()`, separated to allow bypassing diffLevel / mount flushing.\n * @param {import('../dom').PreactElement} dom A DOM node to mutate into the shape of a `vnode`\n * @param {import('../vnode').VNode} vnode A VNode (with descendants forming a tree) representing the desired DOM structure\n * @param {object} context The current context\n * @param {boolean} mountAll Whether or not to immediately mount all components\n * @param {boolean} [componentRoot] ?\n * @private\n */\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n\tlet out = dom,\n\t\tprevSvgMode = isSvgMode;\n\n\t// empty values (null, undefined, booleans) render as empty Text nodes\n\tif (vnode==null || typeof vnode==='boolean') vnode = '';\n\n\n\t// Fast case: Strings & Numbers create/update Text nodes.\n\tif (typeof vnode==='string' || typeof vnode==='number') {\n\n\t\t// update if it's already a Text node:\n\t\tif (dom && dom.splitText!==undefined && dom.parentNode && (!dom._component || componentRoot)) {\n\t\t\t/* istanbul ignore if */ /* Browser quirk that can't be covered: https://github.com/developit/preact/commit/fd4f21f5c45dfd75151bd27b4c217d8003aa5eb9 */\n\t\t\tif (dom.nodeValue!=vnode) {\n\t\t\t\tdom.nodeValue = vnode;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// it wasn't a Text node: replace it with one and recycle the old Element\n\t\t\tout = document.createTextNode(vnode);\n\t\t\tif (dom) {\n\t\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\t\t\t\trecollectNodeTree(dom, true);\n\t\t\t}\n\t\t}\n\n\t\tout[ATTR_KEY] = true;\n\n\t\treturn out;\n\t}\n\n\n\t// If the VNode represents a Component, perform a component diff:\n\tlet vnodeName = vnode.nodeName;\n\tif (typeof vnodeName==='function') {\n\t\treturn buildComponentFromVNode(dom, vnode, context, mountAll);\n\t}\n\n\n\t// Tracks entering and exiting SVG namespace when descending through the tree.\n\tisSvgMode = vnodeName==='svg' ? true : vnodeName==='foreignObject' ? false : isSvgMode;\n\n\n\t// If there's no existing element or it's the wrong type, create a new one:\n\tvnodeName = String(vnodeName);\n\tif (!dom || !isNamedNode(dom, vnodeName)) {\n\t\tout = createNode(vnodeName, isSvgMode);\n\n\t\tif (dom) {\n\t\t\t// move children into the replacement node\n\t\t\twhile (dom.firstChild) out.appendChild(dom.firstChild);\n\n\t\t\t// if the previous Element was mounted into the DOM, replace it inline\n\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n\t\t\t// recycle the old element (skips non-Element node types)\n\t\t\trecollectNodeTree(dom, true);\n\t\t}\n\t}\n\n\n\tlet fc = out.firstChild,\n\t\tprops = out[ATTR_KEY],\n\t\tvchildren = vnode.children;\n\n\tif (props==null) {\n\t\tprops = out[ATTR_KEY] = {};\n\t\tfor (let a=out.attributes, i=a.length; i--; ) props[a[i].name] = a[i].value;\n\t}\n\n\t// Optimization: fast-path for elements containing a single TextNode:\n\tif (!hydrating && vchildren && vchildren.length===1 && typeof vchildren[0]==='string' && fc!=null && fc.splitText!==undefined && fc.nextSibling==null) {\n\t\tif (fc.nodeValue!=vchildren[0]) {\n\t\t\tfc.nodeValue = vchildren[0];\n\t\t}\n\t}\n\t// otherwise, if there are existing or new children, diff them:\n\telse if (vchildren && vchildren.length || fc!=null) {\n\t\tinnerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML!=null);\n\t}\n\n\n\t// Apply attributes/props from VNode to the DOM Element:\n\tdiffAttributes(out, vnode.attributes, props);\n\n\n\t// restore previous SVG mode: (in case we're exiting an SVG namespace)\n\tisSvgMode = prevSvgMode;\n\n\treturn out;\n}\n\n\n/**\n * Apply child and attribute changes between a VNode and a DOM Node to the DOM.\n * @param {import('../dom').PreactElement} dom Element whose children should be compared & mutated\n * @param {Array<import('../vnode').VNode>} vchildren Array of VNodes to compare to `dom.childNodes`\n * @param {object} context Implicitly descendant context object (from most\n * recent `getChildContext()`)\n * @param {boolean} mountAll Whether or not to immediately mount all components\n * @param {boolean} isHydrating if `true`, consumes externally created elements\n * similar to hydration\n */\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n\tlet originalChildren = dom.childNodes,\n\t\tchildren = [],\n\t\tkeyed = {},\n\t\tkeyedLen = 0,\n\t\tmin = 0,\n\t\tlen = originalChildren.length,\n\t\tchildrenLen = 0,\n\t\tvlen = vchildren ? vchildren.length : 0,\n\t\tj, c, f, vchild, child;\n\n\t// Build up a map of keyed children and an Array of unkeyed children:\n\tif (len!==0) {\n\t\tfor (let i=0; i<len; i++) {\n\t\t\tlet child = originalChildren[i],\n\t\t\t\tprops = child[ATTR_KEY],\n\t\t\t\tkey = vlen && props ? child._component ? child._component.__key : props.key : null;\n\t\t\tif (key!=null) {\n\t\t\t\tkeyedLen++;\n\t\t\t\tkeyed[key] = child;\n\t\t\t}\n\t\t\telse if (props || (child.splitText!==undefined ? (isHydrating ? child.nodeValue.trim() : true) : isHydrating)) {\n\t\t\t\tchildren[childrenLen++] = child;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (vlen!==0) {\n\t\tfor (let i=0; i<vlen; i++) {\n\t\t\tvchild = vchildren[i];\n\t\t\tchild = null;\n\n\t\t\t// attempt to find a node based on key matching\n\t\t\tlet key = vchild.key;\n\t\t\tif (key!=null) {\n\t\t\t\tif (keyedLen && keyed[key]!==undefined) {\n\t\t\t\t\tchild = keyed[key];\n\t\t\t\t\tkeyed[key] = undefined;\n\t\t\t\t\tkeyedLen--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// attempt to pluck a node of the same type from the existing children\n\t\t\telse if (min<childrenLen) {\n\t\t\t\tfor (j=min; j<childrenLen; j++) {\n\t\t\t\t\tif (children[j]!==undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n\t\t\t\t\t\tchild = c;\n\t\t\t\t\t\tchildren[j] = undefined;\n\t\t\t\t\t\tif (j===childrenLen-1) childrenLen--;\n\t\t\t\t\t\tif (j===min) min++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// morph the matched/found/created DOM child to match vchild (deep)\n\t\t\tchild = idiff(child, vchild, context, mountAll);\n\n\t\t\tf = originalChildren[i];\n\t\t\tif (child && child!==dom && child!==f) {\n\t\t\t\tif (f==null) {\n\t\t\t\t\tdom.appendChild(child);\n\t\t\t\t}\n\t\t\t\telse if (child===f.nextSibling) {\n\t\t\t\t\tremoveNode(f);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdom.insertBefore(child, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\n\t// remove unused keyed children:\n\tif (keyedLen) {\n\t\tfor (let i in keyed) if (keyed[i]!==undefined) recollectNodeTree(keyed[i], false);\n\t}\n\n\t// remove orphaned unkeyed children:\n\twhile (min<=childrenLen) {\n\t\tif ((child = children[childrenLen--])!==undefined) recollectNodeTree(child, false);\n\t}\n}\n\n\n\n/**\n * Recursively recycle (or just unmount) a node and its descendants.\n * @param {import('../dom').PreactElement} node DOM node to start\n * unmount/removal from\n * @param {boolean} [unmountOnly=false] If `true`, only triggers unmount\n * lifecycle, skips removal\n */\nexport function recollectNodeTree(node, unmountOnly) {\n\tlet component = node._component;\n\tif (component) {\n\t\t// if node is owned by a Component, unmount that component (ends up recursing back here)\n\t\tunmountComponent(component);\n\t}\n\telse {\n\t\t// If the node's VNode had a ref function, invoke it with null here.\n\t\t// (this is part of the React spec, and smart for unsetting references)\n\t\tif (node[ATTR_KEY]!=null) applyRef(node[ATTR_KEY].ref, null);\n\n\t\tif (unmountOnly===false || node[ATTR_KEY]==null) {\n\t\t\tremoveNode(node);\n\t\t}\n\n\t\tremoveChildren(node);\n\t}\n}\n\n\n/**\n * Recollect/unmount all children.\n *\t- we use .lastChild here because it causes less reflow than .firstChild\n *\t- it's also cheaper than accessing the .childNodes Live NodeList\n */\nexport function removeChildren(node) {\n\tnode = node.lastChild;\n\twhile (node) {\n\t\tlet next = node.previousSibling;\n\t\trecollectNodeTree(node, true);\n\t\tnode = next;\n\t}\n}\n\n\n/**\n * Apply differences in attributes from a VNode to the given DOM Element.\n * @param {import('../dom').PreactElement} dom Element with attributes to diff `attrs` against\n * @param {object} attrs The desired end-state key-value attribute pairs\n * @param {object} old Current/previous attributes (from previous VNode or\n * element's prop cache)\n */\nfunction diffAttributes(dom, attrs, old) {\n\tlet name;\n\n\t// remove attributes no longer present on the vnode by setting them to undefined\n\tfor (name in old) {\n\t\tif (!(attrs && attrs[name]!=null) && old[name]!=null) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n\t\t}\n\t}\n\n\t// add new & update changed attributes\n\tfor (name in attrs) {\n\t\tif (name!=='children' && name!=='innerHTML' && (!(name in old) || attrs[name]!==(name==='value' || name==='checked' ? dom[name] : old[name]))) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n\t\t}\n\t}\n}\n","import { Component } from '../component';\n\n/**\n * Retains a pool of Components for re-use.\n * @type {Component[]}\n * @private\n */\nexport const recyclerComponents = [];\n\n\n/**\n * Create a component. Normalizes differences between PFC's and classful\n * Components.\n * @param {function} Ctor The constructor of the component to create\n * @param {object} props The initial props of the component\n * @param {object} context The initial context of the component\n * @returns {import('../component').Component}\n */\nexport function createComponent(Ctor, props, context) {\n\tlet inst, i = recyclerComponents.length;\n\n\tif (Ctor.prototype && Ctor.prototype.render) {\n\t\tinst = new Ctor(props, context);\n\t\tComponent.call(inst, props, context);\n\t}\n\telse {\n\t\tinst = new Component(props, context);\n\t\tinst.constructor = Ctor;\n\t\tinst.render = doRender;\n\t}\n\n\n\twhile (i--) {\n\t\tif (recyclerComponents[i].constructor===Ctor) {\n\t\t\tinst.nextBase = recyclerComponents[i].nextBase;\n\t\t\trecyclerComponents.splice(i, 1);\n\t\t\treturn inst;\n\t\t}\n\t}\n\n\treturn inst;\n}\n\n\n/** The `.render()` method for a PFC backing instance. */\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n","import { SYNC_RENDER, NO_RENDER, FORCE_RENDER, ASYNC_RENDER, ATTR_KEY } from '../constants';\nimport options from '../options';\nimport { extend, applyRef } from '../util';\nimport { enqueueRender } from '../render-queue';\nimport { getNodeProps } from './index';\nimport { diff, mounts, diffLevel, flushMounts, recollectNodeTree, removeChildren } from './diff';\nimport { createComponent, recyclerComponents } from './component-recycler';\nimport { removeNode } from '../dom/index';\n\n/**\n * Set a component's `props` and possibly re-render the component\n * @param {import('../component').Component} component The Component to set props on\n * @param {object} props The new props\n * @param {number} renderMode Render options - specifies how to re-render the component\n * @param {object} context The new context\n * @param {boolean} mountAll Whether or not to immediately mount all components\n */\nexport function setComponentProps(component, props, renderMode, context, mountAll) {\n\tif (component._disable) return;\n\tcomponent._disable = true;\n\n\tcomponent.__ref = props.ref;\n\tcomponent.__key = props.key;\n\tdelete props.ref;\n\tdelete props.key;\n\n\tif (typeof component.constructor.getDerivedStateFromProps === 'undefined') {\n\t\tif (!component.base || mountAll) {\n\t\t\tif (component.componentWillMount) component.componentWillMount();\n\t\t}\n\t\telse if (component.componentWillReceiveProps) {\n\t\t\tcomponent.componentWillReceiveProps(props, context);\n\t\t}\n\t}\n\n\tif (context && context!==component.context) {\n\t\tif (!component.prevContext) component.prevContext = component.context;\n\t\tcomponent.context = context;\n\t}\n\n\tif (!component.prevProps) component.prevProps = component.props;\n\tcomponent.props = props;\n\n\tcomponent._disable = false;\n\n\tif (renderMode!==NO_RENDER) {\n\t\tif (renderMode===SYNC_RENDER || options.syncComponentUpdates!==false || !component.base) {\n\t\t\trenderComponent(component, SYNC_RENDER, mountAll);\n\t\t}\n\t\telse {\n\t\t\tenqueueRender(component);\n\t\t}\n\t}\n\n\tapplyRef(component.__ref, component);\n}\n\n\n\n/**\n * Render a Component, triggering necessary lifecycle events and taking\n * High-Order Components into account.\n * @param {import('../component').Component} component The component to render\n * @param {number} [renderMode] render mode, see constants.js for available options.\n * @param {boolean} [mountAll] Whether or not to immediately mount all components\n * @param {boolean} [isChild] ?\n * @private\n */\nexport function renderComponent(component, renderMode, mountAll, isChild) {\n\tif (component._disable) return;\n\n\tlet props = component.props,\n\t\tstate = component.state,\n\t\tcontext = component.context,\n\t\tpreviousProps = component.prevProps || props,\n\t\tpreviousState = component.prevState || state,\n\t\tpreviousContext = component.prevContext || context,\n\t\tisUpdate = component.base,\n\t\tnextBase = component.nextBase,\n\t\tinitialBase = isUpdate || nextBase,\n\t\tinitialChildComponent = component._component,\n\t\tskip = false,\n\t\tsnapshot = previousContext,\n\t\trendered, inst, cbase;\n\n\tif (component.constructor.getDerivedStateFromProps) {\n\t\tstate = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));\n\t\tcomponent.state = state;\n\t}\n\n\t// if updating\n\tif (isUpdate) {\n\t\tcomponent.props = previousProps;\n\t\tcomponent.state = previousState;\n\t\tcomponent.context = previousContext;\n\t\tif (renderMode!==FORCE_RENDER\n\t\t\t&& component.shouldComponentUpdate\n\t\t\t&& component.shouldComponentUpdate(props, state, context) === false) {\n\t\t\tskip = true;\n\t\t}\n\t\telse if (component.componentWillUpdate) {\n\t\t\tcomponent.componentWillUpdate(props, state, context);\n\t\t}\n\t\tcomponent.props = props;\n\t\tcomponent.state = state;\n\t\tcomponent.context = context;\n\t}\n\n\tcomponent.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\tcomponent._dirty = false;\n\n\tif (!skip) {\n\t\trendered = component.render(props, state, context);\n\n\t\t// context to pass to the child, can be updated via (grand-)parent component\n\t\tif (component.getChildContext) {\n\t\t\tcontext = extend(extend({}, context), component.getChildContext());\n\t\t}\n\n\t\tif (isUpdate && component.getSnapshotBeforeUpdate) {\n\t\t\tsnapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);\n\t\t}\n\n\t\tlet childComponent = rendered && rendered.nodeName,\n\t\t\ttoUnmount, base;\n\n\t\tif (typeof childComponent==='function') {\n\t\t\t// set up high order component link\n\n\t\t\tlet childProps = getNodeProps(rendered);\n\t\t\tinst = initialChildComponent;\n\n\t\t\tif (inst && inst.constructor===childComponent && childProps.key==inst.__key) {\n\t\t\t\tsetComponentProps(inst, childProps, SYNC_RENDER, context, false);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttoUnmount = inst;\n\n\t\t\t\tcomponent._component = inst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst.nextBase = inst.nextBase || nextBase;\n\t\t\t\tinst._parentComponent = component;\n\t\t\t\tsetComponentProps(inst, childProps, NO_RENDER, context, false);\n\t\t\t\trenderComponent(inst, SYNC_RENDER, mountAll, true);\n\t\t\t}\n\n\t\t\tbase = inst.base;\n\t\t}\n\t\telse {\n\t\t\tcbase = initialBase;\n\n\t\t\t// destroy high order component link\n\t\t\ttoUnmount = initialChildComponent;\n\t\t\tif (toUnmount) {\n\t\t\t\tcbase = component._component = null;\n\t\t\t}\n\n\t\t\tif (initialBase || renderMode===SYNC_RENDER) {\n\t\t\t\tif (cbase) cbase._component = null;\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true);\n\t\t\t}\n\t\t}\n\n\t\tif (initialBase && base!==initialBase && inst!==initialChildComponent) {\n\t\t\tlet baseParent = initialBase.parentNode;\n\t\t\tif (baseParent && base!==baseParent) {\n\t\t\t\tbaseParent.replaceChild(base, initialBase);\n\n\t\t\t\tif (!toUnmount) {\n\t\t\t\t\tinitialBase._component = null;\n\t\t\t\t\trecollectNodeTree(initialBase, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (toUnmount) {\n\t\t\tunmountComponent(toUnmount);\n\t\t}\n\n\t\tcomponent.base = base;\n\t\tif (base && !isChild) {\n\t\t\tlet componentRef = component,\n\t\t\t\tt = component;\n\t\t\twhile ((t=t._parentComponent)) {\n\t\t\t\t(componentRef = t).base = base;\n\t\t\t}\n\t\t\tbase._component = componentRef;\n\t\t\tbase._componentConstructor = componentRef.constructor;\n\t\t}\n\t}\n\n\tif (!isUpdate || mountAll) {\n\t\tmounts.push(component);\n\t}\n\telse if (!skip) {\n\t\t// Ensure that pending componentDidMount() hooks of child components\n\t\t// are called before the componentDidUpdate() hook in the parent.\n\t\t// Note: disabled as it causes duplicate hooks, see https://github.com/developit/preact/issues/750\n\t\t// flushMounts();\n\n\t\tif (component.componentDidUpdate) {\n\t\t\tcomponent.componentDidUpdate(previousProps, previousState, snapshot);\n\t\t}\n\t\tif (options.afterUpdate) options.afterUpdate(component);\n\t}\n\n\twhile (component._renderCallbacks.length) component._renderCallbacks.pop().call(component);\n\n\tif (!diffLevel && !isChild) flushMounts();\n}\n\n\n\n/**\n * Apply the Component referenced by a VNode to the DOM.\n * @param {import('../dom').PreactElement} dom The DOM node to mutate\n * @param {import('../vnode').VNode} vnode A Component-referencing VNode\n * @param {object} context The current context\n * @param {boolean} mountAll Whether or not to immediately mount all components\n * @returns {import('../dom').PreactElement} The created/mutated element\n * @private\n */\nexport function buildComponentFromVNode(dom, vnode, context, mountAll) {\n\tlet c = dom && dom._component,\n\t\toriginalComponent = c,\n\t\toldDom = dom,\n\t\tisDirectOwner = c && dom._componentConstructor===vnode.nodeName,\n\t\tisOwner = isDirectOwner,\n\t\tprops = getNodeProps(vnode);\n\twhile (c && !isOwner && (c=c._parentComponent)) {\n\t\tisOwner = c.constructor===vnode.nodeName;\n\t}\n\n\tif (c && isOwner && (!mountAll || c._component)) {\n\t\tsetComponentProps(c, props, ASYNC_RENDER, context, mountAll);\n\t\tdom = c.base;\n\t}\n\telse {\n\t\tif (originalComponent && !isDirectOwner) {\n\t\t\tunmountComponent(originalComponent);\n\t\t\tdom = oldDom = null;\n\t\t}\n\n\t\tc = createComponent(vnode.nodeName, props, context);\n\t\tif (dom && !c.nextBase) {\n\t\t\tc.nextBase = dom;\n\t\t\t// passing dom/oldDom as nextBase will recycle it if unused, so bypass recycling on L229:\n\t\t\toldDom = null;\n\t\t}\n\t\tsetComponentProps(c, props, SYNC_RENDER, context, mountAll);\n\t\tdom = c.base;\n\n\t\tif (oldDom && dom!==oldDom) {\n\t\t\toldDom._component = null;\n\t\t\trecollectNodeTree(oldDom, false);\n\t\t}\n\t}\n\n\treturn dom;\n}\n\n\n\n/**\n * Remove a component from the DOM and recycle it.\n * @param {import('../component').Component} component The Component instance to unmount\n * @private\n */\nexport function unmountComponent(component) {\n\tif (options.beforeUnmount) options.beforeUnmount(component);\n\n\tlet base = component.base;\n\n\tcomponent._disable = true;\n\n\tif (component.componentWillUnmount) component.componentWillUnmount();\n\n\tcomponent.base = null;\n\n\t// recursively tear down & recollect high-order component children:\n\tlet inner = component._component;\n\tif (inner) {\n\t\tunmountComponent(inner);\n\t}\n\telse if (base) {\n\t\tif (base[ATTR_KEY]!=null) applyRef(base[ATTR_KEY].ref, null);\n\n\t\tcomponent.nextBase = base;\n\n\t\tremoveNode(base);\n\t\trecyclerComponents.push(component);\n\n\t\tremoveChildren(base);\n\t}\n\n\tapplyRef(component.__ref, null);\n}\n","import { FORCE_RENDER } from './constants';\nimport { extend } from './util';\nimport { renderComponent } from './vdom/component';\nimport { enqueueRender } from './render-queue';\n/**\n * Base Component class.\n * Provides `setState()` and `forceUpdate()`, which trigger rendering.\n * @typedef {object} Component\n * @param {object} props The initial component props\n * @param {object} context The initial context from parent components' getChildContext\n * @public\n *\n * @example\n * class MyFoo extends Component {\n * render(props, state) {\n * return <div />;\n * }\n * }\n */\nexport function Component(props, context) {\n\tthis._dirty = true;\n\n\t/**\n\t * @public\n\t * @type {object}\n\t */\n\tthis.context = context;\n\n\t/**\n\t * @public\n\t * @type {object}\n\t */\n\tthis.props = props;\n\n\t/**\n\t * @public\n\t * @type {object}\n\t */\n\tthis.state = this.state || {};\n\n\tthis._renderCallbacks = [];\n}\n\n\nextend(Component.prototype, {\n\n\t/**\n\t * Update component state and schedule a re-render.\n\t * @param {object} state A dict of state properties to be shallowly merged\n\t * \tinto the current state, or a function that will produce such a dict. The\n\t * \tfunction is called with the current state and props.\n\t * @param {() => void} callback A function to be called once component state is\n\t * \tupdated\n\t */\n\tsetState(state, callback) {\n\t\tif (!this.prevState) this.prevState = this.state;\n\t\tthis.state = extend(\n\t\t\textend({}, this.state),\n\t\t\ttypeof state === 'function' ? state(this.state, this.props) : state\n\t\t);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t},\n\n\n\t/**\n\t * Immediately perform a synchronous re-render of the component.\n\t * @param {() => void} callback A function to be called after component is\n\t * \tre-rendered.\n\t * @private\n\t */\n\tforceUpdate(callback) {\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\trenderComponent(this, FORCE_RENDER);\n\t},\n\n\n\t/**\n\t * Accepts `props` and `state`, and returns a new Virtual DOM tree to build.\n\t * Virtual DOM is generally constructed via [JSX](http://jasonformat.com/wtf-is-jsx).\n\t * @param {object} props Props (eg: JSX attributes) received from parent\n\t * \telement/component\n\t * @param {object} state The component's current state\n\t * @param {object} context Context object, as returned by the nearest\n\t * ancestor's `getChildContext()`\n\t * @returns {import('./vnode').VNode | void}\n\t */\n\trender() {}\n\n});\n","import { diff } from './vdom/diff';\n\n/**\n * Render JSX into a `parent` Element.\n * @param {import('./vnode').VNode} vnode A (JSX) VNode to render\n * @param {import('./dom').PreactElement} parent DOM element to render into\n * @param {import('./dom').PreactElement} [merge] Attempt to re-use an existing DOM tree rooted at\n * `merge`\n * @public\n *\n * @example\n * // render a div into <body>:\n * render(<div id=\"hello\">hello!</div>, document.body);\n *\n * @example\n * // render a \"Thing\" component into #foo:\n * const Thing = ({ name }) => <span>{ name }</span>;\n * render(<Thing name=\"one\" />, document.querySelector('#foo'));\n */\nexport function render(vnode, parent, merge) {\n\treturn diff(merge, vnode, {}, false, parent, false);\n}\n","import { h, h as createElement } from './h';\nimport { cloneElement } from './clone-element';\nimport { Component } from './component';\nimport { render } from './render';\nimport { rerender } from './render-queue';\nimport options from './options';\n\nfunction createRef() {\n\treturn {};\n}\n\nexport default {\n\th,\n\tcreateElement,\n\tcloneElement,\n\tcreateRef,\n\tComponent,\n\trender,\n\trerender,\n\toptions\n};\n\nexport {\n\th,\n\tcreateElement,\n\tcloneElement,\n\tcreateRef,\n\tComponent,\n\trender,\n\trerender,\n\toptions\n};\n"],"names":["VNode","options","stack","EMPTY_CHILDREN","h","nodeName","attributes","children","lastSimple","child","simple","i","arguments","length","push","pop","undefined","String","p","key","vnode","extend","obj","props","applyRef","ref","value","current","defer","Promise","resolve","then","bind","setTimeout","cloneElement","slice","call","NO_RENDER","SYNC_RENDER","FORCE_RENDER","ASYNC_RENDER","ATTR_KEY","IS_NON_DIMENSIONAL","items","enqueueRender","component","_dirty","debounceRendering","rerender","renderComponent","isSameNodeType","node","hydrating","splitText","_componentConstructor","isNamedNode","normalizedNodeName","toLowerCase","getNodeProps","defaultProps","createNode","isSvg","document","createElementNS","createElement","removeNode","parentNode","removeChild","setAccessor","name","old","className","style","cssText","test","innerHTML","__html","useCapture","replace","substring","addEventListener","eventProxy","removeEventListener","_listeners","e","removeAttribute","ns","removeAttributeNS","setAttributeNS","setAttribute","type","event","mounts","diffLevel","isSvgMode","flushMounts","c","shift","afterMount","componentDidMount","diff","dom","context","mountAll","parent","componentRoot","ownerSVGElement","ret","idiff","appendChild","out","prevSvgMode","_component","nodeValue","createTextNode","replaceChild","recollectNodeTree","vnodeName","buildComponentFromVNode","firstChild","fc","vchildren","a","nextSibling","innerDiffNode","dangerouslySetInnerHTML","diffAttributes","isHydrating","originalChildren","childNodes","keyed","keyedLen","min","len","childrenLen","vlen","j","f","vchild","__key","trim","insertBefore","unmountOnly","unmountComponent","removeChildren","lastChild","next","previousSibling","attrs","recyclerComponents","createComponent","Ctor","inst","prototype","render","Component","constructor","doRender","nextBase","splice","state","setComponentProps","renderMode","_disable","__ref","getDerivedStateFromProps","base","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","isChild","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","initialChildComponent","skip","snapshot","rendered","cbase","shouldComponentUpdate","componentWillUpdate","getChildContext","getSnapshotBeforeUpdate","childComponent","toUnmount","childProps","_parentComponent","baseParent","componentRef","t","componentDidUpdate","afterUpdate","_renderCallbacks","originalComponent","oldDom","isDirectOwner","isOwner","beforeUnmount","componentWillUnmount","inner","setState","callback","forceUpdate","merge","createRef"],"mappings":";;;;;;CAQO,IAAMA,QAAQ,SAASA,KAAT,GAAiB,EAA/B;;CCWP,IAAMC,UAAU,EAAhB;;CCfA,IAAMC,QAAQ,EAAd;;CAEA,IAAMC,iBAAiB,EAAvB;;AAiCA,CAAO,SAASC,CAAT,CAAWC,QAAX,EAAqBC,UAArB,EAAiC;CACvC,KAAIC,WAASJ,cAAb;CAAA,KAA6BK,mBAA7B;CAAA,KAAyCC,cAAzC;CAAA,KAAgDC,eAAhD;CAAA,KAAwDC,UAAxD;CACA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B,EAAnB,EAAuB,KAAvB,EAA8BoF,MAA9B,EAAsC,KAAtC,CAAP;CACA;;CCdD,SAASyG,SAAT,GAAqB;CACpB,QAAO,EAAP;CACA;;AAED,cAAe;CACd7M,KADc;CAEd4D,iBAFc;CAGd9B,2BAHc;CAId+K,qBAJc;CAKdtD,qBALc;CAMdD,eANc;CAOd1G,mBAPc;CAQd/C;CARc,CAAf;;;;;;;;;;;;;;;;;;;;"}
@@ -15,19 +15,17 @@
15
15
  ],
16
16
  "_from": "preact@>=8.3.1 <9.0.0",
17
17
  "_hasShrinkwrap": false,
18
- "_id": "preact@8.4.2",
18
+ "_id": "preact@8.5.0",
19
19
  "_inCache": true,
20
20
  "_location": "/preact",
21
- "_nodeVersion": "10.9.0",
22
21
  "_npmOperationalInternal": {
23
22
  "host": "s3://npm-registry-packages",
24
- "tmp": "tmp/preact_8.4.2_1544215886572_0.25319609323309433"
23
+ "tmp": "tmp/preact_8.5.0_1564770863260_0.5179813670573445"
25
24
  },
26
25
  "_npmUser": {
27
- "name": "developit",
28
- "email": "jason@developit.ca"
26
+ "name": "harmony",
27
+ "email": "npm.leah@hrmny.sh"
29
28
  },
30
- "_npmVersion": "6.4.1",
31
29
  "_phantomChildren": {},
32
30
  "_requested": {
33
31
  "raw": "preact@^8.3.1",
@@ -41,8 +39,8 @@
41
39
  "_requiredBy": [
42
40
  "/accessible-autocomplete"
43
41
  ],
44
- "_resolved": "https://registry.npmjs.org/preact/-/preact-8.4.2.tgz",
45
- "_shasum": "1263b974a17d1ea80b66590e41ef786ced5d6a23",
42
+ "_resolved": "https://registry.npmjs.org/preact/-/preact-8.5.0.tgz",
43
+ "_shasum": "05690de3af035cd8ad393e8b4057b8ab29aedee1",
46
44
  "_shrinkwrap": null,
47
45
  "_spec": "preact@^8.3.1",
48
46
  "_where": "/var/lib/jenkins/workspace/ublishing_components_master-N4FWJIUY4CIFHKGZOAAEVVXODRY3YBORQOPIBBXWX72VUPSGJRRQ/node_modules/accessible-autocomplete",
@@ -50,6 +48,7 @@
50
48
  "name": "Jason Miller",
51
49
  "email": "jason@developit.ca"
52
50
  },
51
+ "browser": "dist/preact.umd.js",
53
52
  "bugs": {
54
53
  "url": "https://github.com/developit/preact/issues"
55
54
  },
@@ -82,20 +81,20 @@
82
81
  "diff": "^3.0.0",
83
82
  "eslint": "^4.18.2",
84
83
  "eslint-plugin-react": "^7.11.1",
85
- "flow-bin": "^0.67.1",
84
+ "flow-bin": "^0.89.0",
86
85
  "gzip-size-cli": "^2.0.0",
87
86
  "istanbul-instrumenter-loader": "^3.0.0",
88
87
  "jscodeshift": "^0.5.0",
89
- "karma": "^2.0.5",
88
+ "karma": "^3.1.3",
90
89
  "karma-babel-preprocessor": "^7.0.0",
91
90
  "karma-chai-sinon": "^0.1.5",
92
- "karma-chrome-launcher": "^2.0.0",
93
- "karma-coverage": "^1.0.0",
94
- "karma-mocha": "^1.1.1",
95
- "karma-mocha-reporter": "^2.0.4",
96
- "karma-sauce-launcher": "^1.1.0",
91
+ "karma-chrome-launcher": "^2.2.0",
92
+ "karma-coverage": "^1.1.2",
93
+ "karma-mocha": "^1.3.0",
94
+ "karma-mocha-reporter": "^2.2.5",
95
+ "karma-sauce-launcher": "^1.2.0",
97
96
  "karma-sinon": "^1.0.5",
98
- "karma-source-map-support": "^1.2.0",
97
+ "karma-source-map-support": "^1.3.0",
99
98
  "karma-sourcemap-loader": "^0.3.6",
100
99
  "karma-webpack": "^3.0.5",
101
100
  "mocha": "^5.0.4",
@@ -114,17 +113,16 @@
114
113
  },
115
114
  "directories": {},
116
115
  "dist": {
117
- "integrity": "sha512-TsINETWiisfB6RTk0wh3/mvxbGRvx+ljeBccZ4Z6MPFKgu/KFGyf2Bmw3Z/jlXhL5JlNKY6QAbA9PVyzIy9//A==",
118
- "shasum": "1263b974a17d1ea80b66590e41ef786ced5d6a23",
119
- "tarball": "https://registry.npmjs.org/preact/-/preact-8.4.2.tgz",
120
- "fileCount": 38,
121
- "unpackedSize": 497149,
122
- "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCt1PCRA9TVsSAnZWagAAL6YP/jYFJ5U69WF5Khxstoxk\nFjRn9dgPNFCfa/uVMxnkPU/4JMqKKnJj8S2fw7TKqo8qUMkvAnA1GzDka+Cv\nv0qoF1TDIgnZBWQOr4dWO+eQUaKFlCuVjfqFxg0NaHJmAzOkxCVqP/Cv6i6X\nroTxUOEBruPbHsM0oDf0FPk4qTtBAppcegMaM8CwEMOLhncXh3PVwEghKkU2\nnkfjyx24bbDN+bTjA3uzCmQCNdKrfiPBQ2AHzmrqumYq4RaQ4WNZfEIExSgL\nH7Hu+uuopnqo8e3/MGoGA3RlBfSq38RzAlTAlocZO2IC6bd5fK0t90laLjF2\nqAF1A2bitG/+RGwyLdPyUzWOFYGUtG1IcDUHzfRfHVtrs2/1FmCueucvelDv\nc+ej6C6temXPPRiVlfQdI1e/UBqdsI1T3nXE4jNk/yRqrhaVD6Gv+JAItroc\nOWUMII5WsFh2ATbqojOrYgxxk+QzPbOIFGN8h2jqtz/yZi0rLTXw7fV9IZlr\nDVWpeXZUGihL8RvD5Ik1xeg6khnyDz9mcRA7BA3ihKzGqkcfYi9dB1w4Ae1o\nCJeOtoblSPFA3V4QFnRVl1ugfzV8gVbrd0EP0qWAL9HdciurL+TOff9cF2em\nz+/8uYB8zlJU2ssKcxvbgVqVb+mbJ4yA0iefHtikhQdvb6E2BYVKS8GyT8w2\n/ArI\r\n=mHvN\r\n-----END PGP SIGNATURE-----\r\n"
116
+ "shasum": "05690de3af035cd8ad393e8b4057b8ab29aedee1",
117
+ "integrity": "sha512-S2OOz+lRjfbqDbV5LOIcJ6yfYvshDtKvvsMwaFW84wuw4HtFUYH67T+hnWhdCDYtW8BfmyIg9utz16s6U80HbA==",
118
+ "tarball": "https://registry.npmjs.org/preact/-/preact-8.5.0.tgz",
119
+ "fileCount": 56,
120
+ "unpackedSize": 978252,
121
+ "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRIIwCRA9TVsSAnZWagAAFiUP/j+wGH4kdXgyELOhS5qd\nHP2hzGFDVm6oViJKM4AboDQJtoqirCQHpfjB+QkeiPn97HHEGfsDxbxzdMMw\nGiaQKum0A6crCuEPxohR7bsV3xN6ANLnFWCBsQ80aLZ50lVUTkRQRMAjgEcT\n5zl1CaS9GSSmE1B5fMVTWWFSVU/mbGPcAkXZMjwdqci88RHf3mtgn8IJ/5oC\n4xiZSobSvIBUlv9cBqIVaflvxHl9xZpdqzV1iddF4C7Ou71edxVjWBwXdEoa\nL8tNmJmtJPEUR4h12ZAjQFDp1wiM/iBbT/5yXGE8rqlDxtDf1WLtDI2sU0SK\nYykUj3yCNwCT9Li7A6O6I0cTQu8CKIQ8B7JtrBjMR/PzLQFSsxXBYVfc2IB9\n5VcuUpmGvqcnn4l36dPzBQEZlkRQSZ92N0L2WZtkwuN6uTqAOP85XSQ+FjyD\nk1kuNrwXimBKuL4g7LiClTYMRylwcA8WR8T93Lc5DbXMQRcUlAqhQyE/2UBf\niTI2jBeJmjGyUJgyhmt56qaWk2Y+5ltXaq4evb5/JpAgrO0vMEsGbQ0B/RYo\nCt/OHE/LAHhZ+/OCTuDsJS1PsWoT81tXqizE9/wQ5KJTeew7b7tZOn6Au5S/\nyv0eQmO6mqk0voLz60hLauHhFFPP4MkNFGhCr4Dt7QT+G2QRuQmwNXOeLuJg\nQE+S\r\n=36vW\r\n-----END PGP SIGNATURE-----\r\n"
123
122
  },
124
123
  "eslintConfig": {
125
124
  "extends": "./config/eslint-config.js"
126
125
  },
127
- "gitHead": "4e400a5e49e1c28c863e3f124d16089b64bf5ca7",
128
126
  "greenkeeper": {
129
127
  "ignore": [
130
128
  "babel-cli",
@@ -147,12 +145,17 @@
147
145
  "dom"
148
146
  ],
149
147
  "license": "MIT",
148
+ "licenseText": "The MIT License (MIT)\n\nCopyright (c) 2015-present Jason Miller\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
150
149
  "main": "dist/preact.js",
151
150
  "maintainers": [
152
151
  {
153
152
  "name": "developit",
154
153
  "email": "jason@developit.ca"
155
154
  },
155
+ {
156
+ "name": "harmony",
157
+ "email": "ulliftw@gmail.com"
158
+ },
156
159
  {
157
160
  "name": "lukeed",
158
161
  "email": "luke@lukeed.com"
@@ -160,6 +163,18 @@
160
163
  {
161
164
  "name": "marvinhagemeister",
162
165
  "email": "marvin@marvinhagemeister.de"
166
+ },
167
+ {
168
+ "name": "prateekbh",
169
+ "email": "prateek89born@gmail.com"
170
+ },
171
+ {
172
+ "name": "preactjs",
173
+ "email": "hello@preactjs.com"
174
+ },
175
+ {
176
+ "name": "reznord",
177
+ "email": "allamsetty.anup@gmail.com"
163
178
  }
164
179
  ],
165
180
  "minified:main": "dist/preact.min.js",
@@ -197,13 +212,15 @@
197
212
  "test:mocha:watch": "npm run test:mocha -- --watch",
198
213
  "test:size": "bundlesize",
199
214
  "test:ts": "tsc -p test/ts/ && mocha --require babel-register test/ts/**/*-test.js",
200
- "transpile": "npm-run-all transpile:main transpile:esm transpile:devtools transpile:debug",
215
+ "transpile": "npm-run-all transpile:main transpile:esm transpile:umd transpile:devtools transpile:debug",
201
216
  "transpile:debug": "babel debug/ -o debug.js -s",
202
217
  "transpile:devtools": "rollup -c config/rollup.config.devtools.js",
203
218
  "transpile:esm": "rollup -c config/rollup.config.module.js",
204
- "transpile:main": "rollup -c config/rollup.config.js"
219
+ "transpile:main": "rollup -c config/rollup.config.js",
220
+ "transpile:umd": "rollup -c config/rollup.config.umd.js"
205
221
  },
206
222
  "types": "dist/preact.d.ts",
207
223
  "typings": "./dist/preact.d.ts",
208
- "version": "8.4.2"
224
+ "unpkg": "dist/preact.min.js",
225
+ "version": "8.5.0"
209
226
  }
@@ -3,7 +3,9 @@ export as namespace preact;
3
3
 
4
4
  declare namespace preact {
5
5
  type Key = string | number;
6
- type Ref<T> = (instance: T) => void;
6
+ type RefObject<T> = { current?: T | null };
7
+ type RefCallback<T> = (instance: T | null) => void;
8
+ type Ref<T> = RefObject<T> | RefCallback<T>;
7
9
  type ComponentChild = VNode<any> | object | string | number | boolean | null;
8
10
  type ComponentChildren = ComponentChild[] | ComponentChild;
9
11
 
@@ -93,12 +95,41 @@ declare namespace preact {
93
95
  context: any;
94
96
  base?: HTMLElement;
95
97
 
96
- setState<K extends keyof S>(state: Pick<S, K>, callback?: () => void): void;
97
- setState<K extends keyof S>(fn: (prevState: S, props: P) => Pick<S, K>, callback?: () => void): void;
98
+ // From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e836acc75a78cf0655b5dfdbe81d69fdd4d8a252/types/react/index.d.ts#L402
99
+ // // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
100
+ // // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
101
+ // // Also, the ` | S` allows intellisense to not be dumbisense
102
+ setState<K extends keyof S>(
103
+ state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
104
+ callback?: () => void
105
+ ): void;
98
106
 
99
107
  forceUpdate(callback?: () => void): void;
100
108
 
101
109
  abstract render(props?: RenderableProps<P>, state?: Readonly<S>, context?: any): ComponentChild;
110
+
111
+ // Add these variables to avoid descendants shadowing them (some from properties.json for minification)
112
+ private __key;
113
+ private __ref;
114
+ private _component;
115
+ private _dirty;
116
+ private _disable;
117
+ private nextBase;
118
+ private prevContext;
119
+ private prevProps;
120
+ private prevState;
121
+ private __d;
122
+ private __x;
123
+ private __l;
124
+ private __h;
125
+ private __k;
126
+ private __r;
127
+ private __n;
128
+ private __b;
129
+ private __c;
130
+ private __p;
131
+ private __s;
132
+ private __u;
102
133
  }
103
134
 
104
135
  function h(
@@ -115,6 +146,7 @@ declare namespace preact {
115
146
  function render(node: ComponentChild, parent: Element | Document | ShadowRoot | DocumentFragment, mergeWith?: Element): Element;
116
147
  function rerender(): void;
117
148
  function cloneElement(element: JSX.Element, props: any, ...children: ComponentChildren[]): JSX.Element;
149
+ function createRef<T=any>(): RefObject<T>;
118
150
 
119
151
  var options: {
120
152
  syncComponentUpdates?: boolean;
@@ -122,6 +154,778 @@ declare namespace preact {
122
154
  vnode?: (vnode: VNode<any>) => void;
123
155
  event?: (event: Event) => Event;
124
156
  };
157
+
158
+ namespace JSX {
159
+ interface Element extends preact.VNode<any> {
160
+ }
161
+
162
+ interface ElementClass extends preact.Component<any, any> {
163
+ }
164
+
165
+ interface ElementAttributesProperty {
166
+ props: any;
167
+ }
168
+
169
+ interface ElementChildrenAttribute {
170
+ children: any;
171
+ }
172
+
173
+ type LibraryManagedAttributes<Component, Props> =
174
+ Component extends { defaultProps: infer Defaults }
175
+ ? Defaultize<Props, Defaults>
176
+ : Props;
177
+
178
+ interface SVGAttributes extends HTMLAttributes {
179
+ accentHeight?: number | string;
180
+ accumulate?: "none" | "sum";
181
+ additive?: "replace" | "sum";
182
+ alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
183
+ allowReorder?: "no" | "yes";
184
+ alphabetic?: number | string;
185
+ amplitude?: number | string;
186
+ arabicForm?: "initial" | "medial" | "terminal" | "isolated";
187
+ ascent?: number | string;
188
+ attributeName?: string;
189
+ attributeType?: string;
190
+ autoReverse?: number | string;
191
+ azimuth?: number | string;
192
+ baseFrequency?: number | string;
193
+ baselineShift?: number | string;
194
+ baseProfile?: number | string;
195
+ bbox?: number | string;
196
+ begin?: number | string;
197
+ bias?: number | string;
198
+ by?: number | string;
199
+ calcMode?: number | string;
200
+ capHeight?: number | string;
201
+ clip?: number | string;
202
+ clipPath?: string;
203
+ clipPathUnits?: number | string;
204
+ clipRule?: number | string;
205
+ colorInterpolation?: number | string;
206
+ colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
207
+ colorProfile?: number | string;
208
+ colorRendering?: number | string;
209
+ contentScriptType?: number | string;
210
+ contentStyleType?: number | string;
211
+ cursor?: number | string;
212
+ cx?: number | string;
213
+ cy?: number | string;
214
+ d?: string;
215
+ decelerate?: number | string;
216
+ descent?: number | string;
217
+ diffuseConstant?: number | string;
218
+ direction?: number | string;
219
+ display?: number | string;
220
+ divisor?: number | string;
221
+ dominantBaseline?: number | string;
222
+ dur?: number | string;
223
+ dx?: number | string;
224
+ dy?: number | string;
225
+ edgeMode?: number | string;
226
+ elevation?: number | string;
227
+ enableBackground?: number | string;
228
+ end?: number | string;
229
+ exponent?: number | string;
230
+ externalResourcesRequired?: number | string;
231
+ fill?: string;
232
+ fillOpacity?: number | string;
233
+ fillRule?: "nonzero" | "evenodd" | "inherit";
234
+ filter?: string;
235
+ filterRes?: number | string;
236
+ filterUnits?: number | string;
237
+ floodColor?: number | string;
238
+ floodOpacity?: number | string;
239
+ focusable?: number | string;
240
+ fontFamily?: string;
241
+ fontSize?: number | string;
242
+ fontSizeAdjust?: number | string;
243
+ fontStretch?: number | string;
244
+ fontStyle?: number | string;
245
+ fontVariant?: number | string;
246
+ fontWeight?: number | string;
247
+ format?: number | string;
248
+ from?: number | string;
249
+ fx?: number | string;
250
+ fy?: number | string;
251
+ g1?: number | string;
252
+ g2?: number | string;
253
+ glyphName?: number | string;
254
+ glyphOrientationHorizontal?: number | string;
255
+ glyphOrientationVertical?: number | string;
256
+ glyphRef?: number | string;
257
+ gradientTransform?: string;
258
+ gradientUnits?: string;
259
+ hanging?: number | string;
260
+ horizAdvX?: number | string;
261
+ horizOriginX?: number | string;
262
+ ideographic?: number | string;
263
+ imageRendering?: number | string;
264
+ in2?: number | string;
265
+ in?: string;
266
+ intercept?: number | string;
267
+ k1?: number | string;
268
+ k2?: number | string;
269
+ k3?: number | string;
270
+ k4?: number | string;
271
+ k?: number | string;
272
+ kernelMatrix?: number | string;
273
+ kernelUnitLength?: number | string;
274
+ kerning?: number | string;
275
+ keyPoints?: number | string;
276
+ keySplines?: number | string;
277
+ keyTimes?: number | string;
278
+ lengthAdjust?: number | string;
279
+ letterSpacing?: number | string;
280
+ lightingColor?: number | string;
281
+ limitingConeAngle?: number | string;
282
+ local?: number | string;
283
+ markerEnd?: string;
284
+ markerHeight?: number | string;
285
+ markerMid?: string;
286
+ markerStart?: string;
287
+ markerUnits?: number | string;
288
+ markerWidth?: number | string;
289
+ mask?: string;
290
+ maskContentUnits?: number | string;
291
+ maskUnits?: number | string;
292
+ mathematical?: number | string;
293
+ mode?: number | string;
294
+ numOctaves?: number | string;
295
+ offset?: number | string;
296
+ opacity?: number | string;
297
+ operator?: number | string;
298
+ order?: number | string;
299
+ orient?: number | string;
300
+ orientation?: number | string;
301
+ origin?: number | string;
302
+ overflow?: number | string;
303
+ overlinePosition?: number | string;
304
+ overlineThickness?: number | string;
305
+ paintOrder?: number | string;
306
+ panose1?: number | string;
307
+ pathLength?: number | string;
308
+ patternContentUnits?: string;
309
+ patternTransform?: number | string;
310
+ patternUnits?: string;
311
+ pointerEvents?: number | string;
312
+ points?: string;
313
+ pointsAtX?: number | string;
314
+ pointsAtY?: number | string;
315
+ pointsAtZ?: number | string;
316
+ preserveAlpha?: number | string;
317
+ preserveAspectRatio?: string;
318
+ primitiveUnits?: number | string;
319
+ r?: number | string;
320
+ radius?: number | string;
321
+ refX?: number | string;
322
+ refY?: number | string;
323
+ renderingIntent?: number | string;
324
+ repeatCount?: number | string;
325
+ repeatDur?: number | string;
326
+ requiredExtensions?: number | string;
327
+ requiredFeatures?: number | string;
328
+ restart?: number | string;
329
+ result?: string;
330
+ rotate?: number | string;
331
+ rx?: number | string;
332
+ ry?: number | string;
333
+ scale?: number | string;
334
+ seed?: number | string;
335
+ shapeRendering?: number | string;
336
+ slope?: number | string;
337
+ spacing?: number | string;
338
+ specularConstant?: number | string;
339
+ specularExponent?: number | string;
340
+ speed?: number | string;
341
+ spreadMethod?: string;
342
+ startOffset?: number | string;
343
+ stdDeviation?: number | string;
344
+ stemh?: number | string;
345
+ stemv?: number | string;
346
+ stitchTiles?: number | string;
347
+ stopColor?: string;
348
+ stopOpacity?: number | string;
349
+ strikethroughPosition?: number | string;
350
+ strikethroughThickness?: number | string;
351
+ string?: number | string;
352
+ stroke?: string;
353
+ strokeDasharray?: string | number;
354
+ strokeDashoffset?: string | number;
355
+ strokeLinecap?: "butt" | "round" | "square" | "inherit";
356
+ strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
357
+ strokeMiterlimit?: string;
358
+ strokeOpacity?: number | string;
359
+ strokeWidth?: number | string;
360
+ surfaceScale?: number | string;
361
+ systemLanguage?: number | string;
362
+ tableValues?: number | string;
363
+ targetX?: number | string;
364
+ targetY?: number | string;
365
+ textAnchor?: string;
366
+ textDecoration?: number | string;
367
+ textLength?: number | string;
368
+ textRendering?: number | string;
369
+ to?: number | string;
370
+ transform?: string;
371
+ u1?: number | string;
372
+ u2?: number | string;
373
+ underlinePosition?: number | string;
374
+ underlineThickness?: number | string;
375
+ unicode?: number | string;
376
+ unicodeBidi?: number | string;
377
+ unicodeRange?: number | string;
378
+ unitsPerEm?: number | string;
379
+ vAlphabetic?: number | string;
380
+ values?: string;
381
+ vectorEffect?: number | string;
382
+ version?: string;
383
+ vertAdvY?: number | string;
384
+ vertOriginX?: number | string;
385
+ vertOriginY?: number | string;
386
+ vHanging?: number | string;
387
+ vIdeographic?: number | string;
388
+ viewBox?: string;
389
+ viewTarget?: number | string;
390
+ visibility?: number | string;
391
+ vMathematical?: number | string;
392
+ widths?: number | string;
393
+ wordSpacing?: number | string;
394
+ writingMode?: number | string;
395
+ x1?: number | string;
396
+ x2?: number | string;
397
+ x?: number | string;
398
+ xChannelSelector?: string;
399
+ xHeight?: number | string;
400
+ xlinkActuate?: string;
401
+ xlinkArcrole?: string;
402
+ xlinkHref?: string;
403
+ xlinkRole?: string;
404
+ xlinkShow?: string;
405
+ xlinkTitle?: string;
406
+ xlinkType?: string;
407
+ xmlBase?: string;
408
+ xmlLang?: string;
409
+ xmlns?: string;
410
+ xmlnsXlink?: string;
411
+ xmlSpace?: string;
412
+ y1?: number | string;
413
+ y2?: number | string;
414
+ y?: number | string;
415
+ yChannelSelector?: string;
416
+ z?: number | string;
417
+ zoomAndPan?: string;
418
+ }
419
+
420
+ interface PathAttributes {
421
+ d: string;
422
+ }
423
+
424
+ interface EventHandler<E extends Event> {
425
+ (event: E): void;
426
+ }
427
+
428
+ type ClipboardEventHandler = EventHandler<ClipboardEvent>;
429
+ type CompositionEventHandler = EventHandler<CompositionEvent>;
430
+ type DragEventHandler = EventHandler<DragEvent>;
431
+ type FocusEventHandler = EventHandler<FocusEvent>;
432
+ type KeyboardEventHandler = EventHandler<KeyboardEvent>;
433
+ type MouseEventHandler = EventHandler<MouseEvent>;
434
+ type TouchEventHandler = EventHandler<TouchEvent>;
435
+ type UIEventHandler = EventHandler<UIEvent>;
436
+ type WheelEventHandler = EventHandler<WheelEvent>;
437
+ type AnimationEventHandler = EventHandler<AnimationEvent>;
438
+ type TransitionEventHandler = EventHandler<TransitionEvent>;
439
+ type GenericEventHandler = EventHandler<Event>;
440
+ type PointerEventHandler = EventHandler<PointerEvent>;
441
+
442
+ interface DOMAttributes extends preact.PreactDOMAttributes {
443
+ // Image Events
444
+ onLoad?: GenericEventHandler;
445
+ onError?: GenericEventHandler;
446
+ onLoadCapture?: GenericEventHandler;
447
+
448
+ // Clipboard Events
449
+ onCopy?: ClipboardEventHandler;
450
+ onCopyCapture?: ClipboardEventHandler;
451
+ onCut?: ClipboardEventHandler;
452
+ onCutCapture?: ClipboardEventHandler;
453
+ onPaste?: ClipboardEventHandler;
454
+ onPasteCapture?: ClipboardEventHandler;
455
+
456
+ // Composition Events
457
+ onCompositionEnd?: CompositionEventHandler;
458
+ onCompositionEndCapture?: CompositionEventHandler;
459
+ onCompositionStart?: CompositionEventHandler;
460
+ onCompositionStartCapture?: CompositionEventHandler;
461
+ onCompositionUpdate?: CompositionEventHandler;
462
+ onCompositionUpdateCapture?: CompositionEventHandler;
463
+
464
+ // Focus Events
465
+ onFocus?: FocusEventHandler;
466
+ onFocusCapture?: FocusEventHandler;
467
+ onBlur?: FocusEventHandler;
468
+ onBlurCapture?: FocusEventHandler;
469
+
470
+ // Form Events
471
+ onChange?: GenericEventHandler;
472
+ onChangeCapture?: GenericEventHandler;
473
+ onInput?: GenericEventHandler;
474
+ onInputCapture?: GenericEventHandler;
475
+ onSearch?: GenericEventHandler;
476
+ onSearchCapture?: GenericEventHandler;
477
+ onSubmit?: GenericEventHandler;
478
+ onSubmitCapture?: GenericEventHandler;
479
+ onInvalid?: GenericEventHandler;
480
+
481
+ // Keyboard Events
482
+ onKeyDown?: KeyboardEventHandler;
483
+ onKeyDownCapture?: KeyboardEventHandler;
484
+ onKeyPress?: KeyboardEventHandler;
485
+ onKeyPressCapture?: KeyboardEventHandler;
486
+ onKeyUp?: KeyboardEventHandler;
487
+ onKeyUpCapture?: KeyboardEventHandler;
488
+
489
+ // Media Events
490
+ onAbort?: GenericEventHandler;
491
+ onAbortCapture?: GenericEventHandler;
492
+ onCanPlay?: GenericEventHandler;
493
+ onCanPlayCapture?: GenericEventHandler;
494
+ onCanPlayThrough?: GenericEventHandler;
495
+ onCanPlayThroughCapture?: GenericEventHandler;
496
+ onDurationChange?: GenericEventHandler;
497
+ onDurationChangeCapture?: GenericEventHandler;
498
+ onEmptied?: GenericEventHandler;
499
+ onEmptiedCapture?: GenericEventHandler;
500
+ onEncrypted?: GenericEventHandler;
501
+ onEncryptedCapture?: GenericEventHandler;
502
+ onEnded?: GenericEventHandler;
503
+ onEndedCapture?: GenericEventHandler;
504
+ onLoadedData?: GenericEventHandler;
505
+ onLoadedDataCapture?: GenericEventHandler;
506
+ onLoadedMetadata?: GenericEventHandler;
507
+ onLoadedMetadataCapture?: GenericEventHandler;
508
+ onLoadStart?: GenericEventHandler;
509
+ onLoadStartCapture?: GenericEventHandler;
510
+ onPause?: GenericEventHandler;
511
+ onPauseCapture?: GenericEventHandler;
512
+ onPlay?: GenericEventHandler;
513
+ onPlayCapture?: GenericEventHandler;
514
+ onPlaying?: GenericEventHandler;
515
+ onPlayingCapture?: GenericEventHandler;
516
+ onProgress?: GenericEventHandler;
517
+ onProgressCapture?: GenericEventHandler;
518
+ onRateChange?: GenericEventHandler;
519
+ onRateChangeCapture?: GenericEventHandler;
520
+ onSeeked?: GenericEventHandler;
521
+ onSeekedCapture?: GenericEventHandler;
522
+ onSeeking?: GenericEventHandler;
523
+ onSeekingCapture?: GenericEventHandler;
524
+ onStalled?: GenericEventHandler;
525
+ onStalledCapture?: GenericEventHandler;
526
+ onSuspend?: GenericEventHandler;
527
+ onSuspendCapture?: GenericEventHandler;
528
+ onTimeUpdate?: GenericEventHandler;
529
+ onTimeUpdateCapture?: GenericEventHandler;
530
+ onVolumeChange?: GenericEventHandler;
531
+ onVolumeChangeCapture?: GenericEventHandler;
532
+ onWaiting?: GenericEventHandler;
533
+ onWaitingCapture?: GenericEventHandler;
534
+
535
+ // MouseEvents
536
+ onClick?: MouseEventHandler;
537
+ onClickCapture?: MouseEventHandler;
538
+ onContextMenu?: MouseEventHandler;
539
+ onContextMenuCapture?: MouseEventHandler;
540
+ onDblClick?: MouseEventHandler;
541
+ onDblClickCapture?: MouseEventHandler;
542
+ onDrag?: DragEventHandler;
543
+ onDragCapture?: DragEventHandler;
544
+ onDragEnd?: DragEventHandler;
545
+ onDragEndCapture?: DragEventHandler;
546
+ onDragEnter?: DragEventHandler;
547
+ onDragEnterCapture?: DragEventHandler;
548
+ onDragExit?: DragEventHandler;
549
+ onDragExitCapture?: DragEventHandler;
550
+ onDragLeave?: DragEventHandler;
551
+ onDragLeaveCapture?: DragEventHandler;
552
+ onDragOver?: DragEventHandler;
553
+ onDragOverCapture?: DragEventHandler;
554
+ onDragStart?: DragEventHandler;
555
+ onDragStartCapture?: DragEventHandler;
556
+ onDrop?: DragEventHandler;
557
+ onDropCapture?: DragEventHandler;
558
+ onMouseDown?: MouseEventHandler;
559
+ onMouseDownCapture?: MouseEventHandler;
560
+ onMouseEnter?: MouseEventHandler;
561
+ onMouseEnterCapture?: MouseEventHandler;
562
+ onMouseLeave?: MouseEventHandler;
563
+ onMouseLeaveCapture?: MouseEventHandler;
564
+ onMouseMove?: MouseEventHandler;
565
+ onMouseMoveCapture?: MouseEventHandler;
566
+ onMouseOut?: MouseEventHandler;
567
+ onMouseOutCapture?: MouseEventHandler;
568
+ onMouseOver?: MouseEventHandler;
569
+ onMouseOverCapture?: MouseEventHandler;
570
+ onMouseUp?: MouseEventHandler;
571
+ onMouseUpCapture?: MouseEventHandler;
572
+
573
+ // Selection Events
574
+ onSelect?: GenericEventHandler;
575
+ onSelectCapture?: GenericEventHandler;
576
+
577
+ // Touch Events
578
+ onTouchCancel?: TouchEventHandler;
579
+ onTouchCancelCapture?: TouchEventHandler;
580
+ onTouchEnd?: TouchEventHandler;
581
+ onTouchEndCapture?: TouchEventHandler;
582
+ onTouchMove?: TouchEventHandler;
583
+ onTouchMoveCapture?: TouchEventHandler;
584
+ onTouchStart?: TouchEventHandler;
585
+ onTouchStartCapture?: TouchEventHandler;
586
+
587
+ // Pointer Events
588
+ onPointerOver?: PointerEventHandler;
589
+ onPointerOverCapture?: PointerEventHandler;
590
+ onPointerEnter?: PointerEventHandler;
591
+ onPointerEnterCapture?: PointerEventHandler;
592
+ onPointerDown?: PointerEventHandler;
593
+ onPointerDownCapture?: PointerEventHandler;
594
+ onPointerMove?: PointerEventHandler;
595
+ onPointerMoveCapture?: PointerEventHandler;
596
+ onPointerUp?: PointerEventHandler;
597
+ onPointerUpCapture?: PointerEventHandler;
598
+ onPointerCancel?: PointerEventHandler;
599
+ onPointerCancelCapture?: PointerEventHandler;
600
+ onPointerOut?: PointerEventHandler;
601
+ onPointerOutCapture?: PointerEventHandler;
602
+ onPointerLeave?: PointerEventHandler;
603
+ onPointerLeaveCapture?: PointerEventHandler;
604
+ onGotPointerCapture?: PointerEventHandler;
605
+ onGotPointerCaptureCapture?: PointerEventHandler;
606
+ onLostPointerCapture?: PointerEventHandler;
607
+ onLostPointerCaptureCapture?: PointerEventHandler;
608
+
609
+ // UI Events
610
+ onScroll?: UIEventHandler;
611
+ onScrollCapture?: UIEventHandler;
612
+
613
+ // Wheel Events
614
+ onWheel?: WheelEventHandler;
615
+ onWheelCapture?: WheelEventHandler;
616
+
617
+ // Animation Events
618
+ onAnimationStart?: AnimationEventHandler;
619
+ onAnimationStartCapture?: AnimationEventHandler;
620
+ onAnimationEnd?: AnimationEventHandler;
621
+ onAnimationEndCapture?: AnimationEventHandler;
622
+ onAnimationIteration?: AnimationEventHandler;
623
+ onAnimationIterationCapture?: AnimationEventHandler;
624
+
625
+ // Transition Events
626
+ onTransitionEnd?: TransitionEventHandler;
627
+ onTransitionEndCapture?: TransitionEventHandler;
628
+ }
629
+
630
+ interface HTMLAttributes extends preact.PreactHTMLAttributes, DOMAttributes {
631
+ // Standard HTML Attributes
632
+ accept?: string;
633
+ acceptCharset?: string;
634
+ accessKey?: string;
635
+ action?: string;
636
+ allowFullScreen?: boolean;
637
+ allowTransparency?: boolean;
638
+ alt?: string;
639
+ async?: boolean;
640
+ autocomplete?: string;
641
+ autofocus?: boolean;
642
+ autoPlay?: boolean;
643
+ capture?: boolean;
644
+ cellPadding?: number | string;
645
+ cellSpacing?: number | string;
646
+ charSet?: string;
647
+ challenge?: string;
648
+ checked?: boolean;
649
+ class?: string;
650
+ className?: string;
651
+ cols?: number;
652
+ colSpan?: number;
653
+ content?: string;
654
+ contentEditable?: boolean;
655
+ contextMenu?: string;
656
+ controls?: boolean;
657
+ controlsList?: string;
658
+ coords?: string;
659
+ crossOrigin?: string;
660
+ data?: string;
661
+ dateTime?: string;
662
+ default?: boolean;
663
+ defer?: boolean;
664
+ dir?: string;
665
+ disabled?: boolean;
666
+ download?: any;
667
+ draggable?: boolean;
668
+ encType?: string;
669
+ form?: string;
670
+ formAction?: string;
671
+ formEncType?: string;
672
+ formMethod?: string;
673
+ formNoValidate?: boolean;
674
+ formTarget?: string;
675
+ frameBorder?: number | string;
676
+ headers?: string;
677
+ height?: number | string;
678
+ hidden?: boolean;
679
+ high?: number;
680
+ href?: string;
681
+ hrefLang?: string;
682
+ for?: string;
683
+ httpEquiv?: string;
684
+ icon?: string;
685
+ id?: string;
686
+ inputMode?: string;
687
+ integrity?: string;
688
+ is?: string;
689
+ keyParams?: string;
690
+ keyType?: string;
691
+ kind?: string;
692
+ label?: string;
693
+ lang?: string;
694
+ list?: string;
695
+ loop?: boolean;
696
+ low?: number;
697
+ manifest?: string;
698
+ marginHeight?: number;
699
+ marginWidth?: number;
700
+ max?: number | string;
701
+ maxLength?: number;
702
+ media?: string;
703
+ mediaGroup?: string;
704
+ method?: string;
705
+ min?: number | string;
706
+ minLength?: number;
707
+ multiple?: boolean;
708
+ muted?: boolean;
709
+ name?: string;
710
+ noValidate?: boolean;
711
+ open?: boolean;
712
+ optimum?: number;
713
+ pattern?: string;
714
+ placeholder?: string;
715
+ playsInline?: boolean;
716
+ poster?: string;
717
+ preload?: string;
718
+ radioGroup?: string;
719
+ readOnly?: boolean;
720
+ rel?: string;
721
+ required?: boolean;
722
+ role?: string;
723
+ rows?: number;
724
+ rowSpan?: number;
725
+ sandbox?: string;
726
+ scope?: string;
727
+ scoped?: boolean;
728
+ scrolling?: string;
729
+ seamless?: boolean;
730
+ selected?: boolean;
731
+ shape?: string;
732
+ size?: number;
733
+ sizes?: string;
734
+ slot?: string;
735
+ span?: number;
736
+ spellcheck?: boolean;
737
+ src?: string;
738
+ srcset?: string;
739
+ srcDoc?: string;
740
+ srcLang?: string;
741
+ srcSet?: string;
742
+ start?: number;
743
+ step?: number | string;
744
+ style?: any;
745
+ summary?: string;
746
+ tabIndex?: number;
747
+ target?: string;
748
+ title?: string;
749
+ type?: string;
750
+ useMap?: string;
751
+ value?: string | string[] | number;
752
+ width?: number | string;
753
+ wmode?: string;
754
+ wrap?: string;
755
+
756
+ // RDFa Attributes
757
+ about?: string;
758
+ datatype?: string;
759
+ inlist?: any;
760
+ prefix?: string;
761
+ property?: string;
762
+ resource?: string;
763
+ typeof?: string;
764
+ vocab?: string;
765
+ }
766
+
767
+ interface IntrinsicElements {
768
+ // HTML
769
+ a: HTMLAttributes;
770
+ abbr: HTMLAttributes;
771
+ address: HTMLAttributes;
772
+ area: HTMLAttributes;
773
+ article: HTMLAttributes;
774
+ aside: HTMLAttributes;
775
+ audio: HTMLAttributes;
776
+ b: HTMLAttributes;
777
+ base: HTMLAttributes;
778
+ bdi: HTMLAttributes;
779
+ bdo: HTMLAttributes;
780
+ big: HTMLAttributes;
781
+ blockquote: HTMLAttributes;
782
+ body: HTMLAttributes;
783
+ br: HTMLAttributes;
784
+ button: HTMLAttributes;
785
+ canvas: HTMLAttributes;
786
+ caption: HTMLAttributes;
787
+ cite: HTMLAttributes;
788
+ code: HTMLAttributes;
789
+ col: HTMLAttributes;
790
+ colgroup: HTMLAttributes;
791
+ data: HTMLAttributes;
792
+ datalist: HTMLAttributes;
793
+ dd: HTMLAttributes;
794
+ del: HTMLAttributes;
795
+ details: HTMLAttributes;
796
+ dfn: HTMLAttributes;
797
+ dialog: HTMLAttributes;
798
+ div: HTMLAttributes;
799
+ dl: HTMLAttributes;
800
+ dt: HTMLAttributes;
801
+ em: HTMLAttributes;
802
+ embed: HTMLAttributes;
803
+ fieldset: HTMLAttributes;
804
+ figcaption: HTMLAttributes;
805
+ figure: HTMLAttributes;
806
+ footer: HTMLAttributes;
807
+ form: HTMLAttributes;
808
+ h1: HTMLAttributes;
809
+ h2: HTMLAttributes;
810
+ h3: HTMLAttributes;
811
+ h4: HTMLAttributes;
812
+ h5: HTMLAttributes;
813
+ h6: HTMLAttributes;
814
+ head: HTMLAttributes;
815
+ header: HTMLAttributes;
816
+ hr: HTMLAttributes;
817
+ html: HTMLAttributes;
818
+ i: HTMLAttributes;
819
+ iframe: HTMLAttributes;
820
+ img: HTMLAttributes;
821
+ input: HTMLAttributes;
822
+ ins: HTMLAttributes;
823
+ kbd: HTMLAttributes;
824
+ keygen: HTMLAttributes;
825
+ label: HTMLAttributes;
826
+ legend: HTMLAttributes;
827
+ li: HTMLAttributes;
828
+ link: HTMLAttributes;
829
+ main: HTMLAttributes;
830
+ map: HTMLAttributes;
831
+ mark: HTMLAttributes;
832
+ menu: HTMLAttributes;
833
+ menuitem: HTMLAttributes;
834
+ meta: HTMLAttributes;
835
+ meter: HTMLAttributes;
836
+ nav: HTMLAttributes;
837
+ noscript: HTMLAttributes;
838
+ object: HTMLAttributes;
839
+ ol: HTMLAttributes;
840
+ optgroup: HTMLAttributes;
841
+ option: HTMLAttributes;
842
+ output: HTMLAttributes;
843
+ p: HTMLAttributes;
844
+ param: HTMLAttributes;
845
+ picture: HTMLAttributes;
846
+ pre: HTMLAttributes;
847
+ progress: HTMLAttributes;
848
+ q: HTMLAttributes;
849
+ rp: HTMLAttributes;
850
+ rt: HTMLAttributes;
851
+ ruby: HTMLAttributes;
852
+ s: HTMLAttributes;
853
+ samp: HTMLAttributes;
854
+ script: HTMLAttributes;
855
+ section: HTMLAttributes;
856
+ select: HTMLAttributes;
857
+ slot: HTMLAttributes;
858
+ small: HTMLAttributes;
859
+ source: HTMLAttributes;
860
+ span: HTMLAttributes;
861
+ strong: HTMLAttributes;
862
+ style: HTMLAttributes;
863
+ sub: HTMLAttributes;
864
+ summary: HTMLAttributes;
865
+ sup: HTMLAttributes;
866
+ table: HTMLAttributes;
867
+ tbody: HTMLAttributes;
868
+ td: HTMLAttributes;
869
+ textarea: HTMLAttributes;
870
+ tfoot: HTMLAttributes;
871
+ th: HTMLAttributes;
872
+ thead: HTMLAttributes;
873
+ time: HTMLAttributes;
874
+ title: HTMLAttributes;
875
+ tr: HTMLAttributes;
876
+ track: HTMLAttributes;
877
+ u: HTMLAttributes;
878
+ ul: HTMLAttributes;
879
+ "var": HTMLAttributes;
880
+ video: HTMLAttributes;
881
+ wbr: HTMLAttributes;
882
+
883
+ //SVG
884
+ svg: SVGAttributes;
885
+ animate: SVGAttributes;
886
+ circle: SVGAttributes;
887
+ clipPath: SVGAttributes;
888
+ defs: SVGAttributes;
889
+ desc: SVGAttributes;
890
+ ellipse: SVGAttributes;
891
+ feBlend: SVGAttributes;
892
+ feColorMatrix: SVGAttributes;
893
+ feComponentTransfer: SVGAttributes;
894
+ feComposite: SVGAttributes;
895
+ feConvolveMatrix: SVGAttributes;
896
+ feDiffuseLighting: SVGAttributes;
897
+ feDisplacementMap: SVGAttributes;
898
+ feFlood: SVGAttributes;
899
+ feGaussianBlur: SVGAttributes;
900
+ feImage: SVGAttributes;
901
+ feMerge: SVGAttributes;
902
+ feMergeNode: SVGAttributes;
903
+ feMorphology: SVGAttributes;
904
+ feOffset: SVGAttributes;
905
+ feSpecularLighting: SVGAttributes;
906
+ feTile: SVGAttributes;
907
+ feTurbulence: SVGAttributes;
908
+ filter: SVGAttributes;
909
+ foreignObject: SVGAttributes;
910
+ g: SVGAttributes;
911
+ image: SVGAttributes;
912
+ line: SVGAttributes;
913
+ linearGradient: SVGAttributes;
914
+ marker: SVGAttributes;
915
+ mask: SVGAttributes;
916
+ path: SVGAttributes;
917
+ pattern: SVGAttributes;
918
+ polygon: SVGAttributes;
919
+ polyline: SVGAttributes;
920
+ radialGradient: SVGAttributes;
921
+ rect: SVGAttributes;
922
+ stop: SVGAttributes;
923
+ symbol: SVGAttributes;
924
+ text: SVGAttributes;
925
+ tspan: SVGAttributes;
926
+ use: SVGAttributes;
927
+ }
928
+ }
125
929
  }
126
930
 
127
931
  type Defaultize<Props, Defaults> =
@@ -865,6 +1669,7 @@ declare global {
865
1669
  circle: SVGAttributes;
866
1670
  clipPath: SVGAttributes;
867
1671
  defs: SVGAttributes;
1672
+ desc: SVGAttributes;
868
1673
  ellipse: SVGAttributes;
869
1674
  feBlend: SVGAttributes;
870
1675
  feColorMatrix: SVGAttributes;