{"_id":"@cogizmo/cogizmo","_rev":"11-e85d9daf56a7eb1954cb6a433ad0fd4a","time":{"0.6.1-alpha":"2019-01-30T20:14:32.614Z","created":"2019-01-30T20:15:52.153Z","0.6.2-alpha":"2019-01-30T20:15:52.513Z","modified":"2022-04-05T00:11:09.901Z","0.6.2-alpha.2":"2019-02-01T22:52:59.061Z","0.6.2":"2019-02-05T13:56:23.551Z","0.6.3":"2019-02-05T14:04:05.227Z","0.6.4":"2019-02-05T14:16:40.484Z"},"name":"@cogizmo/cogizmo","dist-tags":{"latest":"0.6.4","next":"0.6.2-alpha.2"},"versions":{"0.6.2-alpha":{"name":"@cogizmo/cogizmo","version":"0.6.2-alpha","description":"Convenience SuperClass for Custom Elements","main":"cogizmo.mjs","scripts":{"pretest":"rimraf ./log","test":"npm run test:chrome && npm run test:firefox","test:chrome":"nightwatch --config ./test/nightwatch.json --env chrome ./test/test-module/unit.js","test:firefox":"nightwatch --config ./test/nightwatch.json --env firefox ./test/test-module/unit.js"},"repository":{"type":"git","url":"git+https://github.com/cogizmo/cogizmo.git"},"keywords":["web-components","custom-elements","javascript","js","vanilla-js"],"author":{"name":"Donald Lee Atkinson","email":"fuzzicallogic@outlook.com"},"license":"ISC","bugs":{"url":"https://github.com/cogizmo/cogizmo/issues"},"homepage":"https://github.com/cogizmo/cogizmo#README.md","devDependencies":{"chromedriver":"^2.45.0","finalhandler":"^1.1.1","geckodriver":"^1.14.1","nightwatch":"^1.0.18","selenium-server":"^3.141.59","serve-static":"^1.13.2"},"publishConfig":{"access":"public"},"_id":"@cogizmo/cogizmo@0.6.2-alpha","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"},"dist":{"integrity":"sha512-QVrQzyGSDQIDIbylhcQRneZwEXQug+bNjGkOFZ+QNAfGGYsDw5fN5Nb2fgjPkPgjqVYm9k4ee2ejg8eP6MqxxA==","shasum":"93f50dac27f4f0d651d9bc8af1bd9c7c2657fda3","tarball":"https://registry.npmjs.org/@cogizmo/cogizmo/-/cogizmo-0.6.2-alpha.tgz","fileCount":21,"unpackedSize":50565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUgX4CRA9TVsSAnZWagAA7poP/0WBfwPiB/QygCSFi65F\nOfWoFtxc46ZHrMKnJ+7AP2a7jG71yteKUtOGVAfYvsZ9Axf9WkWdssJMgPhF\nnoNZdsp/dWKE8ivfIJxYja4K3ATn1VgPiYm/HJ8HPkPmhJ5GdySPZjR6Fmsk\ngGtiLooR6ph8otT7ST3N4jgcUJhy7EPfUKnBdRDzkhSrOvfW/p7DKrZyl/iy\nW4YFUVMP4CqoithqCb1Z2KzqaIuaq00dI5sPydDW3R1vCEz91grX/7RJnrkv\nkjbFgJR1gq0CJ5L/M4mOORh9fj1n4ui0DC/WpnnZLIZGSdtL6T7cUeGj9pJY\n14WdlJbwPGBCXkNQe/stBXLDtK4JhF0u/SW322p4ZUbZ2LZi7N8Ij2yguHJ3\nkjUgs3xiRKPzXMiOQcJTB/7jBQ6hoMcg5fZCbK7uIruPwhuLKzM+lRJ4fvJD\novAph7P/+cjQasqZSDSb31PLbNVp6m8R0TqL7OuSNGY1RBcOiXKEK6FjtR2i\nfPe4bY7quzSziHhZ7fq7S8eF5ea/YFAX0gcetgl+8GYofxRgYxCCr6pc9YiR\nnZwnrnMtIMepRAeyebm5MRCRnsaGUYeSLEZKe6zcJ9j24VbxzDKtlD7ptV9v\nQ3sjBsmuU2NBmmLAIhNoFYLArCyGoZHgFiIBpLcuuDk2ROqyQLPzHg9B3KK4\n3vMZ\r\n=ilTs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiAvh+q/swolVbbybf/SZuDZpTQBIELNKe2nPngtegxwIgbZMFZMDRx/Eye65U0ZHH/1BOoKNVj2Z/uOARITH8UtY="}]},"maintainers":[{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogizmo_0.6.2-alpha_1548879352330_0.4858993487957812"},"_hasShrinkwrap":false},"0.6.2-alpha.2":{"name":"@cogizmo/cogizmo","version":"0.6.2-alpha.2","description":"Convenience SuperClass for Custom Elements","main":"cogizmo.mjs","scripts":{"pretest":"rimraf ./log","test":"npm run test:chrome && npm run test:firefox","test:chrome":"nightwatch --config ./test/nightwatch.json --env chrome ./test/test-module/unit.js","test:firefox":"nightwatch --config ./test/nightwatch.json --env firefox ./test/test-module/unit.js"},"repository":{"type":"git","url":"git+https://github.com/cogizmo/cogizmo.git"},"keywords":["web-components","custom-elements","javascript","js","vanilla-js"],"author":{"name":"Donald Lee Atkinson","email":"fuzzicallogic@outlook.com"},"license":"ISC","bugs":{"url":"https://github.com/cogizmo/cogizmo/issues"},"homepage":"https://github.com/cogizmo/cogizmo#README.md","devDependencies":{"chromedriver":"^2.45.0","finalhandler":"^1.1.1","geckodriver":"^1.14.1","nightwatch":"^1.0.18","selenium-server":"^3.141.59","serve-static":"^1.13.2"},"publishConfig":{"access":"public"},"readme":"# Cogizmo\r\nCogizmo is a convenience SuperClass for vanilla `<custom-elements>` (Web Component). This is primarily used to load external `<template>`, stylesheets and other assets so that your `<custom-element>` does not have to know the server filesystem architecture.\r\n\r\n## Usage\r\n\r\n1. Make a Custom Element class that extends Component\r\n\r\n    ***MyComponent.js***\r\n    ```\r\n    class MyComponent extends Cogizmo {\r\n        // Component implementation details\r\n    }\r\n    ```\r\n\r\n2. Start the resource linking and component registration\r\n\r\n    ***MyComponent.js***\r\n    ```\r\n    MyComponent.manage();\r\n    ```\r\n\r\n### Installation\r\nInstallation is very simple. Just place the required files in a web accessible directory.\r\n\r\n1. Install Cogizmo to a web accessible directory.\r\n2. Add Cogizmo to your document's `<head>` element.\r\n\r\n    1. If you are using the module form (preferred), use:\r\n        ```\r\n        <script src=\"path/to/Cogizmo.mjs\" type=\"module\"></script>\r\n        ```\r\n    2. If you are using the non-module form, use:\r\n        ```\r\n        <script src=\"path/to/Cogizmo.js\"></script>\r\n        ```\r\n3. If using webcomponents polyfill, Cogizmo script must come after the polyfill.\r\n\r\n### For Compatibility\r\nSome browsers do not have the complete WebComponents spec implemented. As a result, some browsers may require the webcomponents polyfills. Webcomponents polyfill is a smart polyfill that only includes features that are not yet implemented.\r\n\r\n1. Add `<script src=\"path/to/webcomponents.js\"></script>` to document `<head>`\r\n\r\n## Features\r\n\r\n### External Templates\r\nUsing an external template file is as simple as placing a template.html file in your web component's root path. When `MyComponent.manage()` is called, it will automatically load the template and attach it to your class for attachment at construction time. *You did remember to call `super()`, didn't you?*\r\n\r\n***template.html***\r\n```\r\n<template>\r\n    <!-- Template details -->\r\n</template>\r\n```\r\n\r\n### External Stylesheet\r\nExternal Stylesheets may be used by placing a `<link>` in your `<template>`. `MyComponent.manage()` auto-inspects the `<template>` and attaches the CSS to your class' internal template property.\r\n\r\n***template.html***\r\n```\r\n<template>\r\n    <link rel=\"stylesheet\" href=\"path/to/stylesheet.css\">\r\n    <!-- Template details -->\r\n</template>\r\n```\r\n\r\n### Customizable `<element-name>`\r\nUnforunately, the web component spec does not allow for multiple instances of the same `ComponentClass` to use the same `<element-name>`. This can be a problem as web components gain wider adoption. Future custom elements may extend, consume or otherwise depend upon earlier elements and version compatibility may become an issue if these code consumers rely on different versions of the same control. Cogizmo allows preemptive renaming of elements by use of a `tagname` custom attribute.\r\n\r\n*This requires no changes or conformance to your custom element's code.*\r\n\r\n***application.html***\r\n```\r\n<html>\r\n<head>\r\n    <script src=\"path/to/webcomponents-loader.js\"></script>\r\n    <script src=\"path/to/Cogizmo.js\"></script>\r\n\r\n    <script src=\"path/to/MyComponent.js\" tagname=\"a-b-c\"></script>\r\n</head>\r\n<body>\r\n    <!-- Will render and work correctly. -->\r\n    <a-b-c></a-b-c>\r\n\r\n    <!-- Will no longer work. -->\r\n    <my-component></my-component>\r\n</body>\r\n</html>\r\n```\r\n\r\n### Custom Element Registration\r\nAutomatically calls `customElements.define()` for your `<custom-element>` utilizing the `MyComponent.is` property.\r\n\r\n## Web Component Compatibility\r\n\r\nCogizmo can be loaded as a module or non-module with ease. Module form is the preferred method. However, some browsers have not fully implemented ES Modules. Additionally, many custom elements may be written without the ability to digest modules. As a result, Cogizmo has a number of loading options to allow the greatest compatibility, forward and backward.\r\n\r\n### Browser Fallback Support\r\n\r\nIf you must support several browsing environments, it is typically better to add both the module and non-module form to your document.\r\n\r\n```\r\n<script src=\"path/to/Cogizmo.mjs\" type=\"module\"></script>\r\n<script src=\"path/to/Cogizmo.js\" nomodule></script>\r\n```\r\n\r\nThis allows module enabled browsers to ignore the non-module, while out of date browsers will automatically ignore the module.\r\n\r\n### Supporting Non-module Custom Elements with Cogizmo Module\r\n\r\nEven if very few or none of your custom elements are ES Modules, you can still use Cogizmo as a module. When loaded, Cogizmo looks for the `use-global` attribute on its script tag. This method does not conflict with fallback support.\r\n\r\n```\r\n<script src=\"path/to/Cogizmo.mjs\" type=\"module\" use-global></script>\r\n<!-- Can still access Cogizmo from window/global object. -->\r\n<script src=\"path/to/MyComponent.js\"></script>\r\n```\r\n\r\n","readmeFilename":"README.md","_id":"@cogizmo/cogizmo@0.6.2-alpha.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"},"dist":{"integrity":"sha512-6M9D5pTOQQHdIEXT0sTQP4gPmTjaiJ1TiteAohy4/nH82QmGJ4G6Nx9xqMvWneEUXZQAxOWzaICmtTyW/gUONA==","shasum":"f6a119b1ca0b7b3b5a97a8c0fdb4d3e68134b2e2","tarball":"https://registry.npmjs.org/@cogizmo/cogizmo/-/cogizmo-0.6.2-alpha.2.tgz","fileCount":21,"unpackedSize":50567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVM3LCRA9TVsSAnZWagAAwyEQAJhj07sRJKpNPdslVI76\nGBdJtE5YLeh05J1Bcuenc6NIN2b6jz6+3HM4c9arH/4uA2ltEr8GxIzJsMa+\ngyhaQPijkBDZYe3ZJVGCiexgkwOegBH8WqGa6V3OXJSGRMuDJhQLkflCcuD7\naFDIxLz8E/H2bP1UReERndoP+P3pjDWzU1Zi+GqBEsSmFp8N8ixB21KL/Rev\nq32oz06y0lzG1GEq6dloOhv37a6KHYQ4oeAwDDFB1GSsD1MeP0Bf1T61nJ7B\nL8DtR8V0CKOjbqWwdDSU80Wy5tAAYsmTHU3KWUfxMK9pcSPmrH0e939jRzRy\nx/QTuBG/fX4g7FHrPi/ouxDBZFhq056FnYWWNTFmKGoXcbfiAXWKLpkwsLPS\n5P6p3mlOGxHMsJzCVMG0jWNsSDvxh8JxqwCurt/kg8uApn2p5UGAvm1eI7LW\nFxXU83onXPzfOxBxOjBEq0PPCVJzWj10zHRyBSEgR1TPwDHTMij1OzN+8eRY\n7PE/B4t2/ZgbpfJYZJlDfSxT39TlmTPn/dOZobZOhhEYKSZgGGaCTlhhVYXp\niKTKGeyVjQPhPzg5xLpnK+YHkzjobtiMiuz/PfUMqMFt725K4XMhiXaVG8Gn\n/efhnuV5xJeb/cHs8saT8U6RxnF6JoPzPM0+Zbmvmip40rsn5RhPcgVMUQ94\n6kQG\r\n=5d0t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+tOm39trRU436lVgi1gX2ZzEdhOMBCy4CjMKd9LbRvgIhAJlGbFtyiIO2o4PV9DxToXyPJy6togkas9iIvKF3Dx3I"}]},"maintainers":[{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogizmo_0.6.2-alpha.2_1549061578950_0.4489601742954079"},"_hasShrinkwrap":false},"0.6.2":{"name":"@cogizmo/cogizmo","version":"0.6.2","description":"Convenience SuperClass for Custom Elements","main":"cogizmo.mjs","scripts":{"pretest":"rimraf ./log","test":"npm run test:chrome","test:chrome":"nightwatch --config ./test/nightwatch.json --env chrome ./test/test-module/unit.js","test:firefox":"nightwatch --config ./test/nightwatch.json --env firefox ./test/test-module/unit.js","test:all":"npm run test:chrome && npm run test:firefox","postversion":"npm publish","postpublish":"cpy \"./package.json\" \"../src\" && cd .. && npm run git:pkg && npm run git:push"},"repository":{"type":"git","url":"git+https://github.com/cogizmo/cogizmo.git"},"keywords":["web-components","custom-elements","javascript","js","vanilla-js"],"author":{"name":"Donald Lee Atkinson","email":"fuzzicallogic@outlook.com"},"license":"ISC","bugs":{"url":"https://github.com/cogizmo/cogizmo/issues"},"homepage":"https://github.com/cogizmo/cogizmo#README.md","devDependencies":{"chromedriver":"^2.45.0","finalhandler":"^1.1.1","geckodriver":"^1.14.1","nightwatch":"^1.0.18","selenium-server":"^3.141.59","serve-static":"^1.13.2"},"publishConfig":{"access":"public"},"_id":"@cogizmo/cogizmo@0.6.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"},"dist":{"integrity":"sha512-k1ax1lhURS/LiN/cDOFIvQ1aa/uxLaPqih6qDfwaTJWTFtyoxRW41s313DuUVjhFlS6KJeae+MvMKmu7xy0Y/Q==","shasum":"7ef64c748a0e3088d4ba378a6f384fc73f746725","tarball":"https://registry.npmjs.org/@cogizmo/cogizmo/-/cogizmo-0.6.2.tgz","fileCount":15,"unpackedSize":45125,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWZYHCRA9TVsSAnZWagAAHJMP/15k7wqLEOl1qBd6rJvO\ngXF/gGRBQp+fwkQA3gwiEGlJTHBmlUcK0WXuzPuFPx961SX363GoFy7K/ink\niApWoqOOczjlewE+DsrAFtuFhdPTKjuixylojAvxEshe9rYQ2hVpsYJdETwy\n637Wh8HQZHQfbfg0hKvx1ta3X6CJCSHsjUicuWd0OisZRBbpxC8NZIUUM3DW\npyWYDHkn7eHgb7735X+Hc9uc+Y45B4ScIo0lb7f2HabHtsM8DX2HfcSIaINU\n7+1jwUWfn5Tiz0qSjlsKUZ9PDIT+rnu6NrTFdXEK97bKll42kjGfzvr/B70x\nPZS7cX2gxBl5CuCdrij6LFcwzZGA4RD73pipwEGC1HVFHumz4VQ2nBNFb6AG\nGGC3t1m4K/bZEqmJzZES3zBZmIHZEZpnpy9NiOGjt7IYD+C2swM4jnWO1wA4\nKXjARce0z482J7y0F9Y85KRcb5P0AorCy01geNTz/CgFlaCw75HlLmsNbl2+\nQiL1AcJwZnJdnFZRN+waE3S7j/8M+yMbQ5v+bHHeSFp6oBphaTmqGo6zZzyM\nDeLYhBmPWDf34Q75CTWwHpmgbvFRnu6Nlxa1sLRPiIMHUo5cvzIg7BKVI7sf\nKOXv22CnffGA4ms6n3O07tBdsivH/dnJro11Eyp3UoTag6vI7BXfj8d+kpNj\nFPWw\r\n=PQcF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ58l+sP8BAf7bCWdCWgK7x4b12NzUdvpr1uX3sjl0swIhAMvNL4XHrutWYGYVcD+H6SO+/pF4VM/x22OnWnfPOFH8"}]},"maintainers":[{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogizmo_0.6.2_1549374983427_0.512013079260891"},"_hasShrinkwrap":false},"0.6.3":{"name":"@cogizmo/cogizmo","version":"0.6.3","description":"Convenience SuperClass for Custom Elements","main":"cogizmo.mjs","scripts":{"pretest":"rimraf ./log","test":"npm run test:chrome","test:chrome":"nightwatch --config ./test/nightwatch.json --env chrome ./test/test-module/unit.js","test:firefox":"nightwatch --config ./test/nightwatch.json --env firefox ./test/test-module/unit.js","test:all":"npm run test:chrome && npm run test:firefox","postversion":"npm publish","postpublish":"cpy \"./package.json\" \"../src\" && cd .. && npm run git:pkg && npm run git:push"},"repository":{"type":"git","url":"git+https://github.com/cogizmo/cogizmo.git"},"keywords":["web-components","custom-elements","javascript","js","vanilla-js"],"author":{"name":"Donald Lee Atkinson","email":"fuzzicallogic@outlook.com"},"license":"ISC","bugs":{"url":"https://github.com/cogizmo/cogizmo/issues"},"homepage":"https://github.com/cogizmo/cogizmo#README.md","devDependencies":{"chromedriver":"^2.45.0","finalhandler":"^1.1.1","geckodriver":"^1.14.1","nightwatch":"^1.0.18","selenium-server":"^3.141.59","serve-static":"^1.13.2"},"publishConfig":{"access":"public"},"_id":"@cogizmo/cogizmo@0.6.3","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"},"dist":{"integrity":"sha512-TxO/znDlHm/zUN9FW+mEqJfP0VMsQnCBvRo7wvqL/Df3MKSPojR2ZXi860VxHSPLqoxPuxI/TExhole8KkG1OA==","shasum":"53c80934aa6f53755f983545cd3c288f71f98b14","tarball":"https://registry.npmjs.org/@cogizmo/cogizmo/-/cogizmo-0.6.3.tgz","fileCount":18,"unpackedSize":46557,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWZfVCRA9TVsSAnZWagAAXnUQAIdTBkNrtVlbmTNyjrfX\nBjGcKnUyp+UMek+9tujFPSDJqEBgjxuoWmzS0r7KoYxYEizPyTEXNONZJS5/\n/k8/1bx1ygystq88Va3h4x4pKqhciNCt8LWj0jIu/qM8XjRr3D+8iw/0xj4B\nFKJpsnX3h7x6l7yfIcfp5eCHIEXNboavDyqAIpd2pfK5zXId+D1+ffzAVdOw\nmnk5KQA+DU5qlTwEGEBmiAHnJZwuPOEshEJVHIyrFxhIOIrOYq+Rmu9VDYd/\nYWXwHbppni8hGGh1s4Z4a0CBND9X848skAouT1VM1lPl1kceUDEB7/CUd6Fi\n9DX9GHyulqrdOsCPAoUf4kkIGLeyqVNuoBEtGlgchLBuRdD+Thp/B9nvpGp4\nYgPAoH+RCCugtuTOXdYpipy1GsRKbNv1OjSzrz5F75EOPnbzTReuerOIlD2F\nZeBoHFndBEj5MPlVHOl6pFfADqRCSZCUX3PmuYgmjH5mgXABNidnJdXlRp3b\n+DWeMhdBH4mkgpD8a97mT6/YLtcN3AtYBuLktHtqTPF/knvwgCGUlppYAI2w\njilmJcsnefsTmU0fvbhUzin8TW8vmEs7o3NuYvojxWM6PajtOFY3owtVzTXw\nbh7BRDwdc/20JPlqvpww5Ci5y686BsJUx2FhAQbrp8UallISCIhmBbCvxkp5\nyhrz\r\n=tLwE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9tIB59AU/m4yI6ni0Ft/jjib4hdf7n+D2KE2itxH7fAiAaBHGRtU80Ba604IyOS/BpxU7AKJj2frNOb4H6w6MwOQ=="}]},"maintainers":[{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogizmo_0.6.3_1549375445104_0.5030364157267329"},"_hasShrinkwrap":false},"0.6.4":{"name":"@cogizmo/cogizmo","version":"0.6.4","description":"Convenience SuperClass for Custom Elements","main":"cogizmo.mjs","scripts":{"pretest":"rimraf ./log","test":"npm run test:chrome","test:chrome":"nightwatch --config ./test/nightwatch.json --env chrome ./test/test-module/unit.js","test:firefox":"nightwatch --config ./test/nightwatch.json --env firefox ./test/test-module/unit.js","test:all":"npm run test:chrome && npm run test:firefox","postversion":"npm publish","postpublish":"cpy \"./package.json\" \"../src\" && cd .. && npm run git:pkg && npm run git:push"},"repository":{"type":"git","url":"git+https://github.com/cogizmo/cogizmo.git"},"keywords":["web-components","custom-elements","javascript","js","vanilla-js"],"author":{"name":"Donald Lee Atkinson","email":"fuzzicallogic@outlook.com"},"license":"ISC","bugs":{"url":"https://github.com/cogizmo/cogizmo/issues"},"homepage":"https://github.com/cogizmo/cogizmo#README.md","devDependencies":{"chromedriver":"^2.45.0","finalhandler":"^1.1.1","geckodriver":"^1.14.1","nightwatch":"^1.0.18","selenium-server":"^3.141.59","serve-static":"^1.13.2"},"publishConfig":{"access":"public"},"_id":"@cogizmo/cogizmo@0.6.4","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"},"dist":{"integrity":"sha512-s346Xy+YDHkVtCrqqTVfZyJ9Eb3oUyRTOipQwO87AFyRlFMnVscYddflZ4lgWjBxDWsh84XhFC/e0Th/qyhSUQ==","shasum":"dcefc0cca96b80c4f083ff3ac99f43bedfcb6f6c","tarball":"https://registry.npmjs.org/@cogizmo/cogizmo/-/cogizmo-0.6.4.tgz","fileCount":18,"unpackedSize":46557,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWZrICRA9TVsSAnZWagAA0dQQAIfgtFJJJxJjR2MEOlp+\niWPqifjiGh/wKHdqazN+icPzb/HS7P1/WV+468DutZpZBUQ0WI2S3BwVkXgx\nh7Rj+fQyxaWtGOtVf8RZxKU/PT3uHFFL/wxvUypCCURUMEkKujnDA8pxNXmt\nbaAXl7qp3KCVeyw2xY7fJUTSFAETYOreDgUt5EH+hgAN7L8gszlg8pKy2iK/\nqZxOKmgUSF5Iu4TqTvgEudqZUfCC2rvdzlzk/2My4cRl7qWGNP5jFA1QEfX8\nJOUy0xTSROJ64PLeLObdFF70UDNKayXftVkWGdP53hTsAAsF9gZs7cmW1V8f\nlhkeIfwuvkE+XYtBsMbvnbpj9Ijg7u8q5G66c1ixm3i8n6PLvjMzv+OEd1os\nPLwY5GBkDUxE09NZYdMsBlfiFhQImgHFLzp19aF4RHHFvuUXZBCTFXqzK/Cn\nKKOIAg/qRsiPBjJDeZYgwaeWRW/fL+tf3P+2URV5RlFXgXhsIJt/EvsH/q5v\nAgKCQ2pVyFhE7+gfaBlGVzRTcxuOmjTwiR5ebafF3xgrz/N1AZizTYTtnsCW\n+XVoqn6z+woUwAPmjuTbk9mHQ09EIIyT69JDoF+k07OWdyLvZTskjS0HITAd\nHazig6ZBEh5Bz3RjyurkPomJdyHq13mVh8p6my7TwjFC3+ZJO692dOl2zkIy\nPHxj\r\n=iu8E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAE0cnqs5BDo5pWjd8eZKmKIfaBiwweNpW0p5rZXgdGvAiBmEM3dzUJFXRhgnhJRuIFWN+Q348j+QltaaJwNCCzwgw=="}]},"maintainers":[{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogizmo_0.6.4_1549376200394_0.95423395912547"},"_hasShrinkwrap":false}},"maintainers":[{"name":"fuzzicallogic","email":"fuzzicallogic@outlook.com"}],"description":"Convenience SuperClass for Custom Elements","homepage":"https://github.com/cogizmo/cogizmo#README.md","keywords":["web-components","custom-elements","javascript","js","vanilla-js"],"repository":{"type":"git","url":"git+https://github.com/cogizmo/cogizmo.git"},"author":{"name":"Donald Lee Atkinson","email":"fuzzicallogic@outlook.com"},"bugs":{"url":"https://github.com/cogizmo/cogizmo/issues"},"license":"ISC","readme":"# Cogizmo\r\nCogizmo is a convenience SuperClass for vanilla `<custom-elements>` (Web Component). This is primarily used to load external `<template>`, stylesheets and other assets so that your `<custom-element>` does not have to know the server filesystem architecture.\r\n\r\n## Usage\r\n\r\n1. Make a Custom Element class that extends Component\r\n\r\n    ***MyComponent.js***\r\n    ```\r\n    class MyComponent extends Cogizmo {\r\n        // Component implementation details\r\n    }\r\n    ```\r\n\r\n2. Start the resource linking and component registration\r\n\r\n    ***MyComponent.js***\r\n    ```\r\n    MyComponent.manage();\r\n    ```\r\n\r\n### Installation\r\nInstallation is very simple. Just place the required files in a web accessible directory.\r\n\r\n1. Install Cogizmo to a web accessible directory.\r\n2. Add Cogizmo to your document's `<head>` element.\r\n\r\n    1. If you are using the module form (preferred), use:\r\n        ```\r\n        <script src=\"path/to/Cogizmo.mjs\" type=\"module\"></script>\r\n        ```\r\n    2. If you are using the non-module form, use:\r\n        ```\r\n        <script src=\"path/to/Cogizmo.js\"></script>\r\n        ```\r\n3. If using webcomponents polyfill, Cogizmo script must come after the polyfill.\r\n\r\n### For Compatibility\r\nSome browsers do not have the complete WebComponents spec implemented. As a result, some browsers may require the webcomponents polyfills. Webcomponents polyfill is a smart polyfill that only includes features that are not yet implemented.\r\n\r\n1. Add `<script src=\"path/to/webcomponents.js\"></script>` to document `<head>`\r\n\r\n## Features\r\n\r\n### External Templates\r\nUsing an external template file is as simple as placing a template.html file in your web component's root path. When `MyComponent.manage()` is called, it will automatically load the template and attach it to your class for attachment at construction time. *You did remember to call `super()`, didn't you?*\r\n\r\n***template.html***\r\n```\r\n<template>\r\n    <!-- Template details -->\r\n</template>\r\n```\r\n\r\n### External Stylesheet\r\nExternal Stylesheets may be used by placing a `<link>` in your `<template>`. `MyComponent.manage()` auto-inspects the `<template>` and attaches the CSS to your class' internal template property.\r\n\r\n***template.html***\r\n```\r\n<template>\r\n    <link rel=\"stylesheet\" href=\"path/to/stylesheet.css\">\r\n    <!-- Template details -->\r\n</template>\r\n```\r\n\r\n### Customizable `<element-name>`\r\nUnforunately, the web component spec does not allow for multiple instances of the same `ComponentClass` to use the same `<element-name>`. This can be a problem as web components gain wider adoption. Future custom elements may extend, consume or otherwise depend upon earlier elements and version compatibility may become an issue if these code consumers rely on different versions of the same control. Cogizmo allows preemptive renaming of elements by use of a `tagname` custom attribute.\r\n\r\n*This requires no changes or conformance to your custom element's code.*\r\n\r\n***application.html***\r\n```\r\n<html>\r\n<head>\r\n    <script src=\"path/to/webcomponents-loader.js\"></script>\r\n    <script src=\"path/to/Cogizmo.js\"></script>\r\n\r\n    <script src=\"path/to/MyComponent.js\" tagname=\"a-b-c\"></script>\r\n</head>\r\n<body>\r\n    <!-- Will render and work correctly. -->\r\n    <a-b-c></a-b-c>\r\n\r\n    <!-- Will no longer work. -->\r\n    <my-component></my-component>\r\n</body>\r\n</html>\r\n```\r\n\r\n### Custom Element Registration\r\nAutomatically calls `customElements.define()` for your `<custom-element>` utilizing the `MyComponent.is` property.\r\n\r\n## Web Component Compatibility\r\n\r\nCogizmo can be loaded as a module or non-module with ease. Module form is the preferred method. However, some browsers have not fully implemented ES Modules. Additionally, many custom elements may be written without the ability to digest modules. As a result, Cogizmo has a number of loading options to allow the greatest compatibility, forward and backward.\r\n\r\n### Browser Fallback Support\r\n\r\nIf you must support several browsing environments, it is typically better to add both the module and non-module form to your document.\r\n\r\n```\r\n<script src=\"path/to/Cogizmo.mjs\" type=\"module\"></script>\r\n<script src=\"path/to/Cogizmo.js\" nomodule></script>\r\n```\r\n\r\nThis allows module enabled browsers to ignore the non-module, while out of date browsers will automatically ignore the module.\r\n\r\n### Supporting Non-module Custom Elements with Cogizmo Module\r\n\r\nEven if very few or none of your custom elements are ES Modules, you can still use Cogizmo as a module. When loaded, Cogizmo looks for the `use-global` attribute on its script tag. This method does not conflict with fallback support.\r\n\r\n```\r\n<script src=\"path/to/Cogizmo.mjs\" type=\"module\" use-global></script>\r\n<!-- Can still access Cogizmo from window/global object. -->\r\n<script src=\"path/to/MyComponent.js\"></script>\r\n```\r\n\r\n","readmeFilename":"README.md"}