{"_id":"@agilukm/vue-h5p","_rev":"3-5275b326413e031967160bf8ff5944ea","name":"@agilukm/vue-h5p","dist-tags":{"latest":"0.3.2"},"versions":{"0.3.0":{"name":"@agilukm/vue-h5p","version":"0.3.0","description":"Vue.js Component for displaying h5p content, based on h5p-standalone","bugs":{"url":"https://github.com/technowledgy/vue-h5p/issues"},"scripts":{"build":"yarn build:frame && vite build","build:frame":"vite build --mode frame","lint":"eslint --max-warnings=0 --ext .js --ext .vue .","pre-version":"yarn test && yarn lint && yarn build","release":"release-it","serve":"yarn build:frame && vite","test":"jest"},"dependencies":{"toposort-class":"^1.0.1"},"devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-env":"^7.15.0","@vue/eslint-config-standard":"^6.1.0","@vue/test-utils":"1.2.2","@vue/vue2-jest":"^27.0.0-alpha.1","core-js":"^3.16.2","coveralls":"^3.1.1","eslint":"^7.32.0","eslint-plugin-import":"^2.24.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","eslint-plugin-standard":"^5.0.0","eslint-plugin-vue":"^7.16.0","flush-promises":"^1.0.2","jest":"^27.0.6","jest-fetch-mock":"^3.0.3","jest-serializer-vue":"^2.0.2","jest-watch-typeahead":"^0.6.4","regenerator-runtime":"^0.13.9","release-it":"^14.11.5","rollup-plugin-copy":"^3.4.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-string":"^3.0.0","vite":"^2.5.0","vite-plugin-vue2":"^1.8.1","vue":"^2.6.14","vue-template-compiler":"^2.6.14"},"homepage":"https://github.com/technowledgy/vue-h5p#readme","keywords":["component","vue","h5p"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/technowledgy/vue-h5p.git"},"type":"module","main":"dist/cjs/vue-h5p.js","exports":{".":{"require":"dist/cjs/vue-h5p.js","default":"dist/es/vue-h5p.js"}},"module":"dist/es/vue-h5p.js","directories":{"example":"example","test":"tests"},"author":"","gitHead":"e462d458cbe988c6626ce96586349bacd7e9d398","_id":"@agilukm/vue-h5p@0.3.0","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-G1Lm4UVTM+859W9tlTKcVMmE0k8nwsSDDCzCGwrjdIBHbaqeS7T6rOrIoOwEVE8UPylh7uJWDpLA2Nh1HGo0yg==","shasum":"7a459f8d3bc7acebcdbf7fb8dfbfaf7ec9b9738c","tarball":"https://registry.npmjs.org/@agilukm/vue-h5p/-/vue-h5p-0.3.0.tgz","fileCount":3,"unpackedSize":6379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLfPqCRA9TVsSAnZWagAA1oUP/1qbZ1yoqv/ZM2i+QvUz\nKEuf9qJpO6DRcHDSlpkH9YAb0BsLmbYwTH3M6Ls3v1kmZxTysu42bymU7+Kb\nmQ0oN2cILHTC0k6GUfXTEOyw5Zng4Cnk7hAvcZOXRvDpjfiSYpnkH3tlzFKM\nPQvgasth4eWdEpV3F3hwaRjo8rA96sQK93v6+m4L+A232jveq6XrYrzW3llN\n3gwrZAjeqwLi2GX/6Dnnr0v9n13mtEFUHqhnN3A6UlyLNmzOTWe5xkaznh0U\nf950Xq/TOqsUx9p8PdE0X5KQWielyQ2V76tcGFU83ROs6ppLyHYOqGXxVj9P\n63pzjge5X+rJ3eTvnSArds2RhmJBFNu/SQpndzMGBGGTF01IVAvl3lEVlf27\nICXVOOS7OQvZkdxDXJWr7FI+OhpdKYCgSY7YQvxkMndrdtCwupP/CBba92zZ\nQVq6n71bIdBYvcU4Ojo4VIGVLCKRg5tNXsMVE5LRaANW1N4oqf1+0GjfVnVY\nifofyjWsYT1WFh6wlQbaZ1AS1Pra9TZmfzoO2ebCVEB9SAyI6dXM31dZxVtX\nnSz3G2NChqamcIj8Mk1HBrr+07XEcteyY9ay4hcDsuILt7l+2rSmcHDrZ5Md\nFV86aoX2tcIvsSRMq0vmUAU6nGVCmUds3aNhzT8r6nFXjVXEHQzN3S9vChiO\npuBc\r\n=WyRr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfMYjC9C26rWGASw7u7fCDwhVUoYUrLkagPu6a1yjkOgIhAPFxRmvlDpSWkK1OnPrxHiEzwUYA5lFKrweAAnodOs4z"}]},"_npmUser":{"name":"agilukm","email":"agilukm07@gmail.com"},"maintainers":[{"name":"agilukm","email":"agilukm07@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-h5p_0.3.0_1630401514676_0.05415323768765301"},"_hasShrinkwrap":false},"0.3.1":{"name":"@agilukm/vue-h5p","version":"0.3.1","description":"Vue.js Component for displaying h5p content, based on h5p-standalone","bugs":{"url":"https://github.com/technowledgy/vue-h5p/issues"},"scripts":{"build":"yarn build:frame && vite build","build:frame":"vite build --mode frame","lint":"eslint --max-warnings=0 --ext .js --ext .vue .","pre-version":"yarn test && yarn lint && yarn build","release":"release-it","serve":"yarn build:frame && vite","test":"jest"},"dependencies":{"toposort-class":"^1.0.1"},"devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-env":"^7.15.0","@vue/eslint-config-standard":"^6.1.0","@vue/test-utils":"1.2.2","@vue/vue2-jest":"^27.0.0-alpha.1","core-js":"^3.16.2","coveralls":"^3.1.1","eslint":"^7.32.0","eslint-plugin-import":"^2.24.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","eslint-plugin-standard":"^5.0.0","eslint-plugin-vue":"^7.16.0","flush-promises":"^1.0.2","jest":"^27.0.6","jest-fetch-mock":"^3.0.3","jest-serializer-vue":"^2.0.2","jest-watch-typeahead":"^0.6.4","regenerator-runtime":"^0.13.9","release-it":"^14.11.5","rollup-plugin-copy":"^3.4.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-string":"^3.0.0","vite":"^2.5.0","vite-plugin-vue2":"^1.8.1","vue":"^2.6.14","vue-template-compiler":"^2.6.14"},"homepage":"https://github.com/technowledgy/vue-h5p#readme","keywords":["component","vue","h5p"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agilukm/vue-h5p.git"},"type":"module","main":"dist/cjs/vue-h5p.js","exports":{".":{"require":"dist/cjs/vue-h5p.js","default":"dist/es/vue-h5p.js"}},"module":"dist/es/vue-h5p.js","directories":{"example":"example","test":"tests"},"author":"","gitHead":"47d8373b218fbe50725f223abd335a9531a8cc64","_id":"@agilukm/vue-h5p@0.3.1","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-1DC1ht5KpXha55IXN82KGv244qlfw8sZ9MYnC/Cv4BTWon58PjZnJaYoyYbkiBiNKRtfky4HK3cqsc8Coo+r8A==","shasum":"756d7ed6692050d10a058a0a3f8752b6d3b4c900","tarball":"https://registry.npmjs.org/@agilukm/vue-h5p/-/vue-h5p-0.3.1.tgz","fileCount":3,"unpackedSize":6374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLfUZCRA9TVsSAnZWagAAKAgP/1DZPnC+IG+18+obza7Z\nz6SM3Hlslgsfk1M0Sz8uIfRRVAY0pc3qWBZEktkMJ2iNCVQsOlCokbyicysf\nrzb/8eN1wi4MKSIFCuyidrxqP79Gp3wfUkuYzSUL6XhFwaHeIJAa3pP5/p5q\nX6BkpBCCMjgwldOTA6svD7NjDMGpG+ebVz1JrNKpgEtSCnVTeUVYXAkDGx5E\n1J8/DW8Xiy6DMw/jt0NTwT6wefQpf/ODTWRKQPnVVg2ER8dXPsYTfiXU186r\nSNyBdb48/PoqDj6405N92wVxMLFGydGb39tKBPxoznkIq4shTWKT8Kq3IkOO\njHTh3f24AFyvQ7BuEWyiwfX56rVVib+t8MynfWgelY6Mgyjkz0kQw1XKYStG\nEbnFcz7PeeYeWYapkl4D0kmKQH6LIkRDAEBPE6w6c7gYHKrx4CMklO7IsCYg\n9/LU+hgV+o0cpRxGV6091iiu2yPia6np4zN7CerTg2eBsl4YFpGleiNqP1J+\nTr/jXdMnSHIoPlb2zw35ksse9nqo5WBMN7BqpWgOkiPh0+1kPRW4wR4MmItk\n6ZQnGrnLnbA+PAq3jbRbgkO1y27zD5YSza/Hnoe9yfE0/Q+TK6zTW0zjDxno\nFud4lzLcZcJX+cAMWAc27wFREJEPjM5mQnvKgmTzfZ5ubOTF15beP54e2+wt\n9Bqq\r\n=99DE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbLucJVg5CxZxhI6kT1q280hFF5mnS5nY1AkBIlwJlqAiA9hn3edmp5efX1HdOtaAfaDLlpRis4zf5ElwK7CetW0g=="}]},"_npmUser":{"name":"agilukm","email":"agilukm07@gmail.com"},"maintainers":[{"name":"agilukm","email":"agilukm07@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-h5p_0.3.1_1630401817570_0.17866763679893105"},"_hasShrinkwrap":false},"0.3.2":{"name":"@agilukm/vue-h5p","version":"0.3.2","description":"Vue.js Component for displaying h5p content, based on h5p-standalone","bugs":{"url":"https://github.com/technowledgy/vue-h5p/issues"},"scripts":{"build":"yarn build:frame && vite build","build:frame":"vite build --mode frame","lint":"eslint --max-warnings=0 --ext .js --ext .vue .","pre-version":"yarn test && yarn lint && yarn build","release":"release-it","serve":"yarn build:frame && vite","test":"jest"},"dependencies":{"toposort-class":"^1.0.1"},"devDependencies":{"@babel/eslint-parser":"^7.15.0","@babel/preset-env":"^7.15.0","@vue/eslint-config-standard":"^6.1.0","@vue/test-utils":"1.2.2","@vue/vue2-jest":"^27.0.0-alpha.1","core-js":"^3.16.2","coveralls":"^3.1.1","eslint":"^7.32.0","eslint-plugin-import":"^2.24.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","eslint-plugin-standard":"^5.0.0","eslint-plugin-vue":"^7.16.0","flush-promises":"^1.0.2","jest":"^27.0.6","jest-fetch-mock":"^3.0.3","jest-serializer-vue":"^2.0.2","jest-watch-typeahead":"^0.6.4","regenerator-runtime":"^0.13.9","release-it":"^14.11.5","rollup-plugin-copy":"^3.4.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-string":"^3.0.0","vite":"^2.5.0","vite-plugin-vue2":"^1.8.1","vue":"^2.6.14","vue-template-compiler":"^2.6.14"},"homepage":"https://github.com/technowledgy/vue-h5p#readme","keywords":["component","vue","h5p"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agilukm/vue-h5p.git"},"type":"module","main":"dist/cjs/vue-h5p.js","exports":{".":{"require":"dist/cjs/vue-h5p.js","default":"dist/es/vue-h5p.js"}},"module":"dist/es/vue-h5p.js","directories":{"example":"example","test":"tests"},"author":"","gitHead":"47d8373b218fbe50725f223abd335a9531a8cc64","_id":"@agilukm/vue-h5p@0.3.2","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-UB2WaML9z06tnysVr5iAokgKgfdIGsHOvWTLzNd796jlab8AnDvqAj2GnCh5KtNdqPJ9kHhfl4erx71Bi8j8iA==","shasum":"084bcd2d047a2a6c6b3344686d1e45c153544592","tarball":"https://registry.npmjs.org/@agilukm/vue-h5p/-/vue-h5p-0.3.2.tgz","fileCount":8,"unpackedSize":1090458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLftOCRA9TVsSAnZWagAAvKMP/11KxHW/nY5/31/il9+B\ngBYCd+LzmOitolTLB4PDHPbly/1HEjSJiHPiUoWyKdL/M+eP0RL2aryetgHg\nl8OzBSt10dHbQSdyaAoAm33Cm/XSySS+eCVA4mKnkmUzj12WpgTH9MvHIA6S\nJcyFRjH/DauQS6B05gxTlL+r/qocFFqalgW7J7cmSCt507TYYH4aS22Sw2So\n0hM9rfeGdZAa71Cm+2IAh3wKE8DpcqpyMa6MHwooUaYvcSXEdojA6FQry5G7\nSdQK6AdpxYHUkS8Yv5JZY/00gz8gnwvfvP3Tj/9M6b6MD76UITW4yIlhjgtI\nL938Fz3OjgIzQ70y8/+0CSzav98uCxQV2FPrJKNAinhxiMSBiPPRl46JSZ1Y\nZBz6UMFu0U690ne51GsuGbYQoQ2eeEoPr3N1E1CkB0Az6yJxVBdMrGgJvUeK\nMVuPssRY1stw7ShmnzYrW/pJ9KKUexIsvaJXIonxtgoyN/yy4bZyeodc4cw2\nNC/Fxjz+uNEIiOzwPhuil8nIkznspCrvQJzg8mMa2M3mtG3yVGZaBdMvHzLm\nPPUmFSDX38J0FGn56xgyTzjy4RhCiNZOTOCT2AVzp0D25/iDwsThraONuIfT\nOQFFOLiW3G1tN6JKuVcnqsJxXDTqvUnylHj1TPBnUU6/yrdjHEXSjCRRN2An\nEdsd\r\n=1Pyk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUqnJJlUT/xBW9S7SJCVfKrEIvAQP7xkUBsQulMN4Y4AIgNRewLaQHbP2jcSjdmHZm/nGHcgOePyj2x31crpRaOXk="}]},"_npmUser":{"name":"agilukm","email":"agilukm07@gmail.com"},"maintainers":[{"name":"agilukm","email":"agilukm07@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-h5p_0.3.2_1630403406074_0.47099718244879507"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-31T09:18:34.597Z","0.3.0":"2021-08-31T09:18:34.804Z","modified":"2022-04-04T11:59:47.000Z","0.3.1":"2021-08-31T09:23:37.691Z","0.3.2":"2021-08-31T09:50:06.267Z"},"maintainers":[{"name":"agilukm","email":"agilukm07@gmail.com"}],"description":"Vue.js Component for displaying h5p content, based on h5p-standalone","homepage":"https://github.com/technowledgy/vue-h5p#readme","keywords":["component","vue","h5p"],"repository":{"type":"git","url":"git+https://github.com/agilukm/vue-h5p.git"},"bugs":{"url":"https://github.com/technowledgy/vue-h5p/issues"},"license":"MIT","readme":"<div align=\"center\">\n\n[![Travis (.org)](https://img.shields.io/travis/technowledgy/vue-h5p)](https://travis-ci.org/technowledgy/vue-h5p)\n[![Coveralls github](https://img.shields.io/coveralls/github/technowledgy/vue-h5p)](https://coveralls.io/github/technowledgy/vue-h5p)\n[![Depfu](https://img.shields.io/depfu/technowledgy/vue-h5p)](https://depfu.com/repos/github/technowledgy/vue-h5p)\n[![NPM](https://img.shields.io/npm/l/vue-h5p)](https://github.com/technowledgy/vue-h5p/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/vue-h5p)](https://www.npmjs.com/package/vue-h5p)\n\n</div>\n\n# vue-h5p\n\nA vue h5p component for displaying H5P content standalone, inspired by [tunapanda/h5p-standalone](https://github.com/tunapanda/h5p-standalone).\n\n## Installation\n\n### With module loader\n\n`npm install vue-h5p`\n\nor\n\n`yarn add vue-h5p`\n\nin your component:\n\n```\n<template>\n  <h5p src=\"path/to/h5p-content\" :l10n=\"translations\" @xapi=\"handleXAPIEvent\">\n    Loading...\n    <template #error>\n      Resource not available. :(\n    </template>\n  </h5p>\n</template>\n\n<script>\nimport h5p from 'vue-h5p'\nimport translations from './translations'\n\nexport default {\n  components: {\n    h5p\n  },\n  computed: {\n    translations () {\n      return translations\n    }\n  },\n  methods: {\n    handleXAPIEvent (ev) {\n      console.log('H5P emitted X-API event')\n    }\n  }\n}\n</script>\n```\n\n### Props\n\nThe component accepts the following props:\n\n|Prop           | Required | Type          | Default | Description|\n|---------------|----------|---------------|---------|------------|\n|src            |yes       |String         |-        |Path to the h5p content|\n|l10n           |no        |Object         |{}       |UI translations|\n|embed          |no        |String         |''       |Set embedCode and enable embed button|\n|resize         |no        |String         |''       |Set resizeCode|\n|export         |no        |String         |''       |Set exportUrl and enable export button|\n|copyright      |no        |Boolean        |false    |Enable copyright button|\n|icon           |no        |Boolean        |false    |Enable H5P icon|\n|fullscreen     |no        |Boolean        |false    |Enable fullscreen button|\n\nSee https://h5p.org/creating-your-own-h5p-plugin for translation strings.\n\nNOTE: UI translations are not reactive. You have to manually trigger a rerender for translation changes to take effect (e.g. by binding :key to your locale).\n\n### Events\n\nAll events emitted by H5P are emitted by vue-h5p, event names are the H5P [event type](https://h5p.org/events), payload is the event data.\n\n### Slots\n\nYou can use the default slot to render a placeholder while the content is loading.\n\nThe named slot \"error\" is rendered if a request to get the h5p JSON files fails, the slot-scope provides failed request as \"error\" object.\n\n## Development\n\nPut your extracted h5p content into public/h5p, files are served by vue-dev-server.\n\nServe the example using\n\n`yarn example`\n\nWrite code, commit changes using conventional commits.\n\nPrepare release with\n\n`yarn pre-version`\n","readmeFilename":"README.md"}