{"_id":"@servicenow/ui-core","_rev":"43-f748880826a1494c2eaf3335b7d9604a","name":"@servicenow/ui-core","dist-tags":{"orlando":"17.0.1","paris":"18.2.5","rome":"19.4.2","quebec":"19.4.2","latest":"24.1.1","vancouver":"24.1.1"},"versions":{"17.0.0-rc.17":{"name":"@servicenow/ui-core","version":"17.0.0-rc.17","author":"","license":"MIT","_id":"@servicenow/ui-core@17.0.0-rc.17","maintainers":[{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},{"name":"freejeet","email":"freejeet@gmail.com"},{"name":"mdwragg","email":"mdwragg@gmail.com"}],"dist":{"shasum":"05860369e32d37445501ca479e6a66aeef189b3d","tarball":"https://registry.npmjs.org/@servicenow/ui-core/-/ui-core-17.0.0-rc.17.tgz","fileCount":146,"integrity":"sha512-16BBn1knbDtfYqfezTf2Qo8vsv9WUalR+Da2Ra6AgZaLMlEzjpJIAUuamHSYHt81KLJIhH3ZEIqFIymBbpgO6Q==","signatures":[{"sig":"MEYCIQDncmqBiNQF753l0qrgBMOVq9VAWp1cq1fT8728ggcjIwIhAO3u1ryXYP9fJeC9jI+0S3TYjsSmxVyaZlM2SAY1tybz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":412288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeX+qMCRA9TVsSAnZWagAAmpQQAIe9LiGeV1LaaOBl/kLI\nWVc4hgRDxu1Afk1Z6OkkE1krq1xrk6JHlFIFKhHgJV0Io2QrHYqzTr9IopxM\nOmFMn1gMRPA7pGHex5RJvpKCwGKJW2sCoqge/0SOGURO8s+icFeex2UlgWZe\nq8+R/6KQthNMRsl28hxxaL0yOE0rHVkFE5ZpHRDuv75Yt0Gns9pbQBw3QSWl\nU340H0Wi0wbeX2VVBZEa97fR9Jxw3r/WXUcLYMXenYk0bzssXJrNK/GaVQJ1\nvXlZa/A2sTc002Bb9kvSji+Wnf3d65RhfjGmuLvSjE8lc5XUp5XaTvStiLW2\nS98PHEF9OuQ8fwxA/YJV2Ypfndp1vXBIqLUiyJRzjZI310NzEgDOkwEs5++i\nxTGAPIpQ8wCeVU0BfgQmCQKrQTn0w/zxhJ88iWJcq5XHTQ9OHgvmK4xx60QG\nwsDauqB8Q2ezLBhfn2+MEhP9Xra1055YKR7xPZ+uSwW2bzR52ToXRCYyumJ2\nlQ7L/IqO6mHqCLLoB9bBuwI4oejorriLQ75Xk4cfdbCLI+BKuUJ5N3c/Ojda\nQlo91zUEZeUh7fd7KvMIAu0EYXrJaKDsJ7bCbPfwubz1CtZOni9WtweWJ+GX\nEpa4bgV1fGbH/99bd7sPrAiz9O1jsOA2mO6hh/pnVWtZcWxAcXxL/iK9BZlw\n+k6u\r\n=POjQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","_from":"file:ui-core-17.0.0-rc.17.tgz","gitHead":"18350bc1f69a43b5db9c93b10727f7c4f7084c2e","scripts":{"lint":"../../node_modules/.bin/eslint --config ../../.eslintrc.js src","test":"BABEL_ENV=test ../../node_modules/.bin/jest --config=../../jest.config.js","build":"npm run build:prod","verify":"npm run lint && npm run test && npm run docs","document":"../../node_modules/.bin/jsdoc2md --partial ../../docs/header.hbs --files src/{,**/}*.js > api.md","build:dev":"BABEL_ENV=development ../../node_modules/.bin/babel src --out-dir lib --root-mode upward --source-maps --ignore 'src/**/__tests__/**' --verbose","build:prod":"BABEL_ENV=production ../../node_modules/.bin/babel src --out-dir lib --source-maps --root-mode upward --ignore 'src/**/__tests__/**'","build:watch":"BABEL_ENV=development ../../node_modules/.bin/babel src --out-dir lib --watch --root-mode upward --source-maps --ignore 'src/**/__tests__/**'  --verbose","test:coverage":"BABEL_ENV=test ../../node_modules/.bin/jest --config=../../jest.config.js --coverage","prepublishOnly":"npm run verify"},"typings":"typings","_npmUser":{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},"_resolved":"","_integrity":"","deprecated":"Version not supported. Please upgrade to @orlando","_npmVersion":"6.12.1","description":"Core package of the Now Experience UI Framework","directories":{},"_nodeVersion":"13.1.0","dependencies":{"invariant":"2.2.4","sn-polyfills":"17.0.2","@servicenow/ui-runtime":"17.0.0-rc.17","@servicenow/ui-internal":"17.0.0-rc.17","@servicenow/ui-scheduler":"17.0.0-rc.17","@servicenow/ui-effect-helpers":"17.0.0-rc.17","@servicenow/ui-renderer-default":"17.0.0-rc.17"},"_hasShrinkwrap":false,"devDependencies":{"babel-plugin-transform-custom-element-classes":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ui-core_17.0.0-rc.17_1583344267933_0.9119897156628924","host":"s3://npm-registry-packages"}},"17.0.1":{"name":"@servicenow/ui-core","version":"17.0.1","author":"","license":"MIT","_id":"@servicenow/ui-core@17.0.1","maintainers":[{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},{"name":"mdwragg","email":"mdwragg@gmail.com"}],"dist":{"shasum":"0a4b50627fb8046e21ed9bbc914ef1edc4052f6b","tarball":"https://registry.npmjs.org/@servicenow/ui-core/-/ui-core-17.0.1.tgz","fileCount":146,"integrity":"sha512-oP3/pxfki9rve8xo2KrNUIj6wRNUs00YoiKBt/7xEspj0Fn5PmTGrzd+rVEfGCqhl6ag31kToRAx6zauYtk7fg==","signatures":[{"sig":"MEQCIHxVk8L7Zsg8hap3qucNM+CIA3bC+Wcnqeb/qcY7i6/nAiAxs6oVujQIr9eYg9Au8JTX5y2221RcB2pf60LFvvXnPw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":411001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaClLCRA9TVsSAnZWagAAzQwP/RstpAKFdj7h/M3RrVMz\n/0dTMlqLVbgfLAT3jOEU0S72OySDHofucXDoAHnmrG50Ddk/yO1r5wNCwx93\nmUmzcrd7vB3fP2tjj20tAY2A/vWY+CHARNKkwQDb1xeJ7zsNv6VKUXK/f/Hu\n0XYhiZ1cDs5rID8ktBLYZG/EiLtZIynrILKMTgEvvsV4gNTiyoi/VXKcEuVS\ndRnjNZq957ase/90b30SlES2KWmUXPqR8+BVuBvAit1hGRnm5NZWDdohwMe5\nIDF4BwCIZxR46LttznaH8scKrL4HvNnTIrHHLe5GBJdoyAOtVZC4oXycyHHc\nmVePHMA0MuoiHv8W95DqeUQiHNl02Bq7HBHqWz2rC4i7C03HOG8liGw0s5xK\nuxkhxuBTC5EzXJdV+hfnfaqpyD2d/Niolw5jqeJJmSYtSCc8cqbCnAicZdZp\nvVxpvBPUYuJlD/nh//B5i9vstEZtIFdBjenSJpgtFwqzGl008+n31CSN0F3D\n6UGg1gTr7HYkplTP61BC21AquqhP1A4EX1fe0sjOgMqfyQhnUSJOuapCECZU\nFmhSRM4MCSGGFI6QvXqYlVtjuCXly5pi3LlxepQ/B1BKtU6cMwS+1ndim/4r\nh9uIktxNfR3jfhxr0VDv9nPtV6rgjeoxQVYUqw29fl2evfY2uX2Tms+oHIp6\nASeq\r\n=dlRb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","_from":"file:ui-core-17.0.1.tgz","gitHead":"fd38979069b402a47eb2a41093ffd69e55a2cc07","scripts":{"lint":"../../node_modules/.bin/eslint --config ../../.eslintrc.js src","test":"BABEL_ENV=test ../../node_modules/.bin/jest --config=../../jest.config.js","build":"npm run build:prod","verify":"npm run lint && npm run test && npm run docs","document":"../../node_modules/.bin/jsdoc2md --partial ../../docs/header.hbs --files src/{,**/}*.js > api.md","build:dev":"BABEL_ENV=development ../../node_modules/.bin/babel src --out-dir lib --root-mode upward --source-maps --ignore 'src/**/__tests__/**' --verbose","build:prod":"BABEL_ENV=production ../../node_modules/.bin/babel src --out-dir lib --source-maps --root-mode upward --ignore 'src/**/__tests__/**'","build:watch":"BABEL_ENV=development ../../node_modules/.bin/babel src --out-dir lib --watch --root-mode upward --source-maps --ignore 'src/**/__tests__/**'  --verbose","test:coverage":"BABEL_ENV=test ../../node_modules/.bin/jest --config=../../jest.config.js --coverage","prepublishOnly":"npm run verify"},"typings":"typings","_npmUser":{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},"_resolved":"","_integrity":"","_npmVersion":"6.14.2","description":"Core package of the Now Experience UI Framework","directories":{},"_nodeVersion":"13.1.0","dependencies":{"invariant":"2.2.4","sn-polyfills":"17.0.2","@servicenow/ui-runtime":"17.0.1","@servicenow/ui-internal":"17.0.1","@servicenow/ui-scheduler":"17.0.1","@servicenow/ui-effect-helpers":"17.0.1","@servicenow/ui-renderer-default":"17.0.1"},"_hasShrinkwrap":false,"devDependencies":{"babel-plugin-transform-custom-element-classes":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ui-core_17.0.1_1583884618867_0.8495996394054328","host":"s3://npm-registry-packages"}},"18.2.5":{"name":"@servicenow/ui-core","version":"18.2.5","author":"","license":"MIT","_id":"@servicenow/ui-core@18.2.5","maintainers":[{"name":"cuong.tran","email":"cuong.tran@servicenow.com"},{"name":"now-build","email":"buildeng@servicenow.com"},{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},{"name":"mdwragg","email":"mdwragg@gmail.com"}],"dist":{"shasum":"74f9e74e1e7379c8aa21f49d1ea7f6155cb22a46","tarball":"https://registry.npmjs.org/@servicenow/ui-core/-/ui-core-18.2.5.tgz","fileCount":492,"integrity":"sha512-Jd7EltAk0qjszZ7MEEzI1kzPqrA6MGVj9wEWvgaNIS1C2diN5HlUkKW2gcV/q/vA7K2HBvl4eKie2KMALloDhg==","signatures":[{"sig":"MEQCIEFXTL7BrzIRyhDP26Dt5ljz0nN6xCsB9Wr/UHWWDL85AiAyaYde/9iM6Y5kQHi4T2hHMEKCJziTDhrbPm8PevJ0cA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1258925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYRbJCRA9TVsSAnZWagAA5XkP/RqT8+uB20bts1ZKKe0v\nPqaBGqY6CI4rGxFk1MDh43BBh9wbG06qqk6M33a+BaP8aguThqTdQkB50fn2\noXUsiB1N2LybWPUTAfSxcmQT27qm2+prwEIRSb+CFFD6toWq/LuJgvQpfz6v\n6lJuDhnQ4/+uJJ47rWz55rcpbuakickbGtO1Ftx6Xj2W44dE5SNIh9U8mVP3\nQPEynVKmCU3NxAYkPeUd9hyQJLHzrXkY4KSmpiJHXfNPWkacRXeEy+Fg3OBk\nPXEdSO7RNmGnmk8aX0oJ1r0WcuA8td3pZSp1suCndew+yB8pztmStB0GiY1Y\n74eyEL9DpBQAaB2Ra1h5Pzw6Sf0DgfToRylpoNeH5OB5JPyfjMgykGXNtg2b\n8GMzg4edYWxLZJoJ1xYaMY5YZL2H0Uqddm5KlK2KJt7tbrcG4oULATztC5TP\njYLmoX7ePiWczjhRnQMNGOy2N7E61fWLjHojKfuO1d80q9sxJUCUAnPh2off\nZEtu6Zf//NSmrcPnL4LVCJWTlA3WdWCL/FWvTFf1OxGMdOgOYCQVg0EPXuUB\nJTsURm40x1hetjO0o2z3OjLBpI8I1USCyjzN0LBKZHUkRcISJyYMEm4QfDY+\nSD0fHVzdE21MnCI9CBcNb+JO1n9g4yz7gyutSau6pKwPoLQ/HkONzYBD/zLe\nhy/L\r\n=Xm6j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","_from":"file:ui-core-18.2.5.tgz","module":"module/index.js","gitHead":"02dbca17b53121fbaed6b2c31c4cafefd757c4cd","scripts":{"size":"size-limit","test":"npm run test:unit -- --saucelabs && npm run dtslint","build":"npm run build:prod","eslint":"../../node_modules/.bin/eslint --config ../../.eslintrc.js src","verify":"npm run lint && npm run test && npm run docs","dtslint":"dtslint --localTs node_modules/typescript/lib typings","build:js":"../../node_modules/.bin/babel src --root-mode upward --source-maps --ignore 'src/**/__tests__/**'","document":"../../node_modules/.bin/jsdoc2md --partial ../../docs/header.hbs --files 'src/{,**/}*.js' > api.md","build:dev":"BABEL_ENV=development npm run build:lib -- --verbose && BABEL_ENV=development npm run build:module -- --verbose","build:lib":"npm run build:js -- --out-dir lib","test:unit":"../../node_modules/.bin/karma start ../../karma.conf.js","build:prod":"BABEL_ENV=production npm run build:lib && BABEL_ENV=production npm run build:module","build:watch":"BABEL_ENV=development npm run build:js -- --verbose --watch & BABEL_ENV=development npm run build:module -- --verbose --watch","build:module":"BABEL_MODULE=true npm run build:js -- --out-dir module","test:coverage":"npm run test:unit -- --coverage","prettier-eslint":"../../node_modules/.bin/prettier-eslint --list-different --eslint-config-path=../../.eslintrc.js 'src/**/*.js'"},"typings":"typings","_npmUser":{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},"_resolved":"","_integrity":"","size-limit":[{"path":"module/index.js","limit":"50 KB"}],"_npmVersion":"6.14.6","description":"Core package of the Now Experience UI Framework","directories":{},"_nodeVersion":"12.18.3","dependencies":{"immer":"3.1.2","@servicenow/ui-types":"18.2.5","@servicenow/ui-internal":"18.2.5","@servicenow/ui-renderer-default":"18.2.5"},"_hasShrinkwrap":false,"devDependencies":{"lodash":"4.17.4","dtslint":"2.0.0","size-limit":"1.3.7","typescript":"3.7.4","babel-plugin-transform-custom-element-classes":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ui-core_18.2.5_1600198344564_0.10952957163820387","host":"s3://npm-registry-packages"}},"19.4.2":{"name":"@servicenow/ui-core","version":"19.4.2","author":"","license":"MIT","_id":"@servicenow/ui-core@19.4.2","maintainers":[{"name":"mdwragg","email":"mdwragg@gmail.com"},{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},{"name":"now-build","email":"buildeng@servicenow.com"},{"name":"cuong.tran","email":"cuong.tran@servicenow.com"}],"dist":{"shasum":"c01772a2e1cf879260b6d7a54ceb7e44dc510e81","tarball":"https://registry.npmjs.org/@servicenow/ui-core/-/ui-core-19.4.2.tgz","fileCount":572,"integrity":"sha512-0+lcSbBYkDGs44aXwiIArLAkouE56tvsmRVanNZZS6WQKxqZzSawSf94HsIQ6d4QSWV4D+rS1Qz/jBvxJSmK6A==","signatures":[{"sig":"MEUCIQD9NZViayZVKmhvkF12Xy5h1fIgXlyo3srQEsVBl3XamgIgKS4tNXORW/tT93DJwIQAdM8LChApFlw8usCqJ0bJTDM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1605902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCFkdCRA9TVsSAnZWagAAqlIP/A24zkx5T31XGv0PDvSm\nnbZRiCF0z0GTtCSVRCqfqpm2/QKsDil1WV+tBhgrdFv66T/IOdfRzREDjiYV\njLTNXeE8oxuJRzvE4+1B3L449trD+vzkxoSrJ952AUCFoFQDbk0j7rhVmOt6\nquP49A7LtISAmh5+MUtTxbYISdfasLxeMLV991i8BrWXV3/FahfQJXRj+xqP\njzj8bGpxs/cs2Y5Am0bXJJ+dQUbsur6/Ba+5c7C6fD1z/dekKkE2gRS18LbZ\naXZe6xmTBIcrpQSwTw1Zap9pZFQ+Is/WrLSKvlzFmDRWucc0aMiR1fJG4IxW\nKnBbeSk/d7+SPlFNu7kRE3fD/cBZehb6K/wXV0GCtVZJdbPv/QR2IoOuop/8\nnVpDOKBHO5cKoIa5ziXmnEFJwZcQw5kHFwqmDCcHG+v2Tzu7UY7oawx66IEt\nobHPtv4wHs23kjpMMpS5QsgPHIMuM2Cq5grthtTGZ+7M6Hgw4WrNvLg3wVJR\nAFcjbIOIzM22Q6OLBOFNbknDbm931zp8Jq4l4ZC4Hy9xA26id0LWFvlOywEV\nCsQlgLARiZ8fzj0yeSE378PrvWR1j1Mbiz19hCC9mR67B3/2VfZY3ROxuraU\nrf8qNzQTb04y24iI6T9GO0ikBlR/6uGsXI7UMnQlrvW2zaVwKEDrMcC5U6r3\nrORK\r\n=KPZu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","_from":"file:ui-core-19.4.2.tgz","module":"module/index.js","gitHead":"4910885479ca7c0d1ab77df9bd1065f75307ce9c","scripts":{"size":"size-limit","test":"npm run test:unit -- --saucelabs && npm run dtslint","build":"npm run build:prod","eslint":"../../node_modules/.bin/eslint --config ../../.eslintrc.js src","verify":"npm run lint && npm run test && npm run docs","dtslint":"dtslint --localTs node_modules/typescript/lib typings","build:js":"../../node_modules/.bin/babel src --root-mode upward --source-maps --ignore 'src/**/__tests__/**'","document":"../../node_modules/.bin/jsdoc2md --partial ../../docs/header.hbs --files 'src/{,**/}*.js' > api.md","build:dev":"BABEL_ENV=development npm run build:lib -- --verbose && BABEL_ENV=development npm run build:module -- --verbose","build:lib":"npm run build:js -- --out-dir lib","test:unit":"../../node_modules/.bin/karma start ../../karma.conf.js","build:prod":"BABEL_ENV=production npm run build:lib && BABEL_ENV=production npm run build:module","build:watch":"BABEL_ENV=development npm run build:js -- --verbose --watch & BABEL_ENV=development npm run build:module -- --verbose --watch","build:module":"BABEL_MODULE=true npm run build:js -- --out-dir module","test:coverage":"npm run test:unit -- --coverage","prettier-eslint":"../../node_modules/.bin/prettier-eslint --list-different --eslint-config-path=../../.eslintrc.js 'src/**/*.js'"},"typings":"typings","_npmUser":{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},"_resolved":"","_integrity":"","size-limit":[{"path":"module/index.js","limit":"61.5 KB"}],"_npmVersion":"6.14.8","description":"Core package of the Now Experience UI Framework","directories":{},"_nodeVersion":"12.19.0","dependencies":{"immer":"3.1.2","@servicenow/ui-types":"19.4.2","@servicenow/ui-metrics":"19.4.2","@servicenow/ui-internal":"19.4.2","@servicenow/ui-renderer-default":"19.4.2"},"_hasShrinkwrap":false,"devDependencies":{"ajv":"6.10.2","lodash":"4.17.4","dtslint":"2.0.0","size-limit":"1.3.7","typescript":"3.7.4","@babel/plugin-transform-react-jsx":"7.3.0","babel-plugin-transform-custom-element-classes":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ui-core_19.4.2_1611159837424_0.7697178164941341","host":"s3://npm-registry-packages"}},"24.1.1":{"name":"@servicenow/ui-core","version":"24.1.1","author":"","license":"MIT","_id":"@servicenow/ui-core@24.1.1","maintainers":[{"name":"mdwragg","email":"mdwragg@gmail.com"},{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},{"name":"now-build","email":"buildeng@servicenow.com"},{"name":"cuong.tran","email":"cuong.tran@servicenow.com"},{"name":"sdivatia","email":"shaival.divatia@servicenow.com"},{"name":"huichuan","email":"huichuan.cheng@servicenow.com"}],"dist":{"shasum":"5493bd80fee82cbeac67bdf07b4c0c09efb28a9e","tarball":"https://registry.npmjs.org/@servicenow/ui-core/-/ui-core-24.1.1.tgz","fileCount":680,"integrity":"sha512-OC0DvddOUWCFheIbDSdtjBffYbtA2xHx60WYgF0NVeMoLxm4wn2100h7v+O0yMx8sme14EL0B3LprTVC/Dp3zQ==","signatures":[{"sig":"MEYCIQDRR9f26ZcJ9a2c7pYo8FgJo4mo+Q1EEXP8cPoJKh3GFAIhAPlsHEwea5siBIOaPnkDYRL5RflbVvbFq0JK/F1OFVTp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2314780},"main":"lib/index.js","_from":"file:ui-core-24.1.1.tgz","module":"module/index.js","readme":"# @servicenow/ui-core\n\n<a name=\"createCustomElement\nDefine a custom element.module_\"></a>\n\n## createCustomElement\n\nDefine a custom element.\n\n| Param                                  | Type                  | Description                                                                                                  |\n| -------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------ |\n| elementName                            | <code>string</code>   | The tag name of the custom element.                                                                          |\n| config                                 | <code>Object</code>   | The custom element configuration.                                                                            |\n| [config.setInitialState]               | <code>function</code> | Function that returns the initial state for a component.                                                     |\n| [config.properties]                    | <code>Object</code>   | The properties used by a custom element.                                                                     |\n| config.properties.name                 | <code>Object</code>   | The name of the property.                                                                                    |\n| [config.properties.name.default]       | <code>\\*</code>       | The default value of the property.                                                                           |\n| [config.properties.name.computed]      | <code>function</code> | A function that computes the property value.                                                                 |\n| config.properties.name.computed.state  | <code>Object</code>   | The custom element state.                                                                                    |\n| [config.properties.name.onChange]      | <code>function</code> | A function that will be called with the new property value, the previous value, and the `dispatch` function. |\n| [config.properties.name.reflect]       | <code>boolean</code>  | Reflect property change to corresponding attribute.                                                          |\n| [config.properties.name.unstableParse] | <code>boolean</code>  | Parse attribute values when corresponding properties are set.                                                |\n| [config.properties.name.readOnly]      | <code>boolean</code>  | Property cannot be externally set.                                                                           |\n| [config.actions]                       | <code>Object</code>   | The actions the custom element dispatches.                                                                   |\n| config.actions.type                    | <code>Object</code>   | The action type, name.                                                                                       |\n| [config.actions.private]               | <code>boolean</code>  | Indicates if the action is visible outside of the custom element.                                            |\n| [config.actions.handlers]              | <code>Array</code>    | Effect handlers to run when the action type is dispatched.                                                   |\n| config.renderer                        | <code>Object</code>   | The renderer to be used by the custom element.                                                               |\n| config.renderer.type                   | <code>function</code> | The library that renders the view.                                                                           |\n| config.renderer.view                   | <code>function</code> | A function that is executed by onStateChange.                                                                |\n| [config.renderer.transformState]       | <code>function</code> | A function that executes before a component's state is passed to the handler.                                |\n| [config.onDisconnect]                  | <code>function</code> | A function that executes when the custom element is disconnected.                                            |\n| [config.onConnect]                     | <code>function</code> | A function that executes when the custom element is connected.                                               |\n| [config.behaviors]                     | <code>Array</code>    | Behaviors to applied to the custom element.                                                                  |\n\n**Example**\n\n```js\nimport {createCustomElement} from '@servicenow/ui-core';\nimport snabbdom from '@servicenow/ui-renderer-snabbdom';\n\ncreateCustomElement('sn-hello-world', {\n\tproperties: {\n\t\tname: {\n\t\t\tdefault: 'Fred'\n\t\t}\n\t},\n\trenderer: {\n\t\ttype: snabbdom,\n\t\ttransformState({properties}) {\n\t\t\treturn properties;\n\t\t},\n\t\tview: ({name}) => {\n\t\t\treturn <p>Hello {name}!</p>;\n\t\t}\n\t}\n});\n```\n\n## Action Routing\n\nActions will \"bubble\" up the component hierarchy unless they are explictly stopped by `dispatch` meta data, `{stopPropagtion: true}`, or part of the `stopPropagtion` configuration for a component definition.\n\n```javascript\ndispatch('SOMETHING_HAPPENED', {somethingHappened: true}, {stopPropagtion: true});\n```\n\n_OR_\n\n```javascript\ncreateCustomElement('sn-foo', () => null, {\n\tstopPropagtion: ['SOMETHING_HAPPENED']\n});\n```\n","gitHead":"237b54012960572f6b7e84a8b817f54504de648b","scripts":{"size":"size-limit","test":"npm run test:unit -- --saucelabs && npm run dtslint","build":"npm run build:prod","eslint":"../../node_modules/.bin/eslint --config ../../.eslintrc.js src","verify":"npm run lint && npm run test && npm run docs","dtslint":"dtslint --localTs node_modules/typescript/lib typings","build:js":"../../node_modules/.bin/babel src --root-mode upward --source-maps --ignore 'src/**/__tests__/**'","document":"../../node_modules/.bin/jsdoc2md --partial ../../docs/header.hbs --files 'src/{,**/}*.js' > api.md","build:dev":"BABEL_ENV=development npm run build:lib -- --verbose && BABEL_ENV=development npm run build:module -- --verbose","build:lib":"npm run build:js -- --out-dir lib","test:unit":"../../node_modules/.bin/karma start ../../karma.conf.js","build:prod":"BABEL_ENV=production npm run build:lib && BABEL_ENV=production npm run build:module","build:watch":"BABEL_ENV=development npm run build:js -- --verbose --watch & BABEL_ENV=development npm run build:module -- --verbose --watch","build:module":"BABEL_MODULE=true npm run build:js -- --out-dir module","test:coverage":"npm run test:unit -- --coverage"},"typings":"typings","_npmUser":{"name":"crystal.barnes","email":"crystal.barnes@servicenow.com"},"_resolved":"","_integrity":"","size-limit":[{"path":"module/index.js","limit":"70 KB"}],"_npmVersion":"6.14.18","description":"Core package of the UI Framework on Next Experience","directories":{},"_nodeVersion":"14.20.0","dependencies":{"immer":"3.1.2","@servicenow/ui-types":"24.1.1","@servicenow/ui-utils":"24.1.1","@servicenow/ui-config":"24.1.1","@servicenow/ui-metrics":"24.1.1","@servicenow/ui-internal":"24.1.1","@servicenow/ui-renderer-default":"24.1.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ajv":"6.12.6","lodash":"4.17.4","dtslint":"2.0.0","size-limit":"1.3.7","typescript":"3.7.4","@tectonic/test-api":"21.2.0","@babel/plugin-transform-react-jsx":"7.3.0","babel-plugin-transform-custom-element-classes":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ui-core_24.1.1_1691174721026_0.022733841633232332","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-03-04T15:53:01.598Z","modified":"2026-08-27T22:37:10.085Z","17.0.0-rc.15":"2020-03-04T15:53:01.788Z","17.0.0-rc.17":"2020-03-04T17:51:08.093Z","17.0.1":"2020-03-10T23:56:59.028Z","18.2.5":"2020-09-15T19:32:24.783Z","19.4.2":"2021-01-20T16:23:57.635Z","24.1.1":"2023-08-04T18:45:21.214Z"},"license":"MIT","description":"Core package of the UI Framework on Next Experience","maintainers":[{"email":"mdwragg@gmail.com","name":"mdwragg"},{"email":"buildeng@servicenow.com","name":"now-build"},{"email":"cuong.tran@servicenow.com","name":"cuong.tran"},{"email":"shaival.divatia@servicenow.com","name":"sdivatia"},{"email":"huichuan.cheng@servicenow.com","name":"huichuan"},{"email":"kayleigh.french@servicenow.com","name":"kayleigh.french"},{"email":"dannyh.wong@servicenow.com","name":"dwong-servicenow"},{"email":"pooja.chamarthi@servicenow.com","name":"pooja.chamarthi"},{"email":"victor.huerta@servicenow.com","name":"victor.huerta"},{"email":"koppula.phaniprakash@servicenow.com","name":"phaniprakash"},{"email":"rajavenkatesh.sundar@servicenow.com","name":"rajavenkatesh.servicenow"},{"email":"manishkumar.roy@servicenow.com","name":"manishroy-servicenow"},{"email":"savya.alla@servicenow.com","name":"savya.alla"},{"email":"krishna.kumar@servicenow.com","name":"krishnakr1989"},{"email":"richa.srivastava1@servicenow.com","name":"richa.srivastava"},{"email":"aprameya.v@servicenow.com","name":"aprameya.v"},{"email":"jyothsna.kilari@servicenow.com","name":"jyothsna.kilari"}],"readme":"# @servicenow/ui-core\n\n<a name=\"createCustomElement\nDefine a custom element.module_\"></a>\n\n## createCustomElement\nDefine a custom element.\n\n| Param | Type | Description |\n| --- | --- | --- |\n| elementName | <code>string</code> | The tag name of the custom element. |\n| config | <code>Object</code> | The custom element configuration. |\n| [config.initialState] | <code>Object</code> | The initial state for a component. |\n| [config.properties] | <code>Object</code> | The properties used by a custom element. |\n| config.properties.name | <code>Object</code> | The name of the property. |\n| [config.properties.name.default] | <code>\\*</code> | The default value of the property. |\n| [config.properties.name.computed] | <code>function</code> | A function that computes the property value. |\n| config.properties.name.computed.state | <code>Object</code> | The custom element state. |\n| [config.properties.name.onChange] | <code>function</code> | A function that will be called with the new property value, the previous value, and the `dispatch` function. |\n| [config.properties.name.reflect] | <code>boolean</code> | Reflect property change to corresponding attribute. |\n| [config.properties.name.unstableParse] | <code>boolean</code> | Parse attribute values when corresponding properties are set. |\n| [config.properties.name.readOnly] | <code>boolean</code> | Property cannot be externally set. |\n| [config.actions] | <code>Object</code> | The actions the custom element dispatches. |\n| config.actions.type | <code>Object</code> | The action type, name. |\n| [config.actions.private] | <code>boolean</code> | Indicates if the action is visible outside of the custom element. |\n| [config.actions.handlers] | <code>Array</code> | Effect handlers to run when the action type is dispatched. |\n| config.renderer | <code>Object</code> | The renderer to be used by the custom element. |\n| config.renderer.type | <code>function</code> | The library that renders the view. |\n| config.renderer.view | <code>function</code> | A function that is executed by onStateChange. |\n| [config.renderer.transformState] | <code>function</code> | A function that executes before a component's state is passed to the handler. |\n| [config.onDisconnect] | <code>function</code> | A function that executes when the custom element is disconnected. |\n| [config.onConnect] | <code>function</code> | A function that executes when the custom element is connected. |\n| [config.behaviors] | <code>Array</code> | Behaviors to applied to the custom element. |\n\n**Example**\n```js\nimport {createCustomElement} from '@servicenow/ui-core';\nimport snabbdom from '@servicenow/ui-renderer-snabbdom';\n\ncreateCustomElement('sn-hello-world', {\n  properties: {\n    name: {\n      default: 'Fred'\n    }\n  },\n  renderer: {\n    type: snabbdom,\n    transformState({properties}) { return properties; },\n    view: ({name}) => { return <p>Hello {name}!</p>; }\n  }\n});\n```\n\n## Action Routing\nActions will \"bubble\" up the component hierarchy unless they are explictly stopped by `dispatch` meta data, `{stopPropagtion: true}`, or part of the `stopPropagtion` configuration for a component definition.\n\n```javascript\ndispatch('SOMETHING_HAPPENED', {somethingHappened: true}, {stopPropagtion: true});\n```\n\n_OR_\n\n```javascript\ncreateCustomElement('sn-foo', () => null, {\n  stopPropagtion: ['SOMETHING_HAPPENED']\n});\n ```\n","readmeFilename":"README.md"}