UNPKG

@servicenow/ui-renderer-snabbdom

Version:

Snabbdom renderer for UI Framework on Next Experience

61 lines (47 loc) 2.67 kB
/** * Copyright (c) 2020 ServiceNow, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _init = require("snabbdom/build/package/init"); var _class = require("snabbdom/build/package/modules/class"); var _style = require("snabbdom/build/package/modules/style"); var _eventlisteners = require("snabbdom/build/package/modules/eventlisteners"); var _attributes = require("snabbdom/build/package/modules/attributes"); var _dataset = require("snabbdom/build/package/modules/dataset"); var _snabbdomSignature = require("snabbdom-signature"); var _modules = require("../modules"); var _accessibilityDecorator = _interopRequireDefault(require("./accessibilityDecorator")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } // TODO (webpack v5): drop the `build/package/` part of these import paths. // Snabbdom>=1 uses the package.json#exports field that webpack v4 doesn't know // about // // https://github.com/webpack/webpack/issues/9509 // https://webpack.js.org/guides/package-exports/ // NOTE: aria module must be before attrs module var patch = (0, _init.init)([_modules.props, _class.classModule, _style.styleModule, _eventlisteners.eventListenersModule, _modules.aria, _attributes.attributesModule, _dataset.datasetModule, _modules.ref, _snabbdomSignature.denyUnlessSigned]); var _default = process.env.UNSAFE_ENABLE_SNABBDOM_ACCESSIBILITY ? (0, _accessibilityDecorator["default"])(patch) : patch; exports["default"] = _default; //# sourceMappingURL=patch.js.map