{"_id":"@dbmdz/mirador-sharebuttons","_rev":"6-ef3ba38738873ce9afd28c2fe7b8ea81","name":"@dbmdz/mirador-sharebuttons","description":"Adds extra buttons for sharing things on different social media platforms.","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@dbmdz/mirador-sharebuttons","version":"1.0.0","description":"Adds extra buttons for sharing things on different social media platforms.","keywords":["iiif","mirador"],"license":"MIT","author":{"name":"Matthias Lindinger"},"main":"shareButtons.js","repository":{"type":"git","url":"git+https://github.com/dbmdz/mirador-plugins.git"},"scripts":{"lint":"gulp lint","minify":"gulp minify","prepublishOnly":"npm run minify"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/dbmdz/mirador-plugins/issues"},"homepage":"https://github.com/dbmdz/mirador-plugins#readme","_id":"@dbmdz/mirador-sharebuttons@1.0.0","_shasum":"850ad2de45c21d897313736558b3044145ed3162","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.1","_npmUser":{"name":"morpheus-87","email":"m.lindinger@live.de"},"dist":{"shasum":"850ad2de45c21d897313736558b3044145ed3162","tarball":"https://registry.npmjs.org/@dbmdz/mirador-sharebuttons/-/mirador-sharebuttons-1.0.0.tgz","integrity":"sha512-DzYlJxoiLFwsm9w8EKfIcu0mI/MBeKsXHGSU28aEXaEorOYkDrTak1ccqvBR/gOV2+D6BeV+cWjw6VuZ/306Yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDXUg7Asdh9bjDFu+ObQeEIaHetKcjTNIqt+Z9iUirBpAiEAxaV6T+xzR+Fwjx8O7lsjVNgvWtT0ug5+oAQCoaCwheU="}]},"maintainers":[{"name":"morpheus-87","email":"m.lindinger@live.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mirador-sharebuttons-1.0.0.tgz_1513771015178_0.025089913746342063"},"directories":{}},"1.0.1":{"name":"@dbmdz/mirador-sharebuttons","version":"1.0.1","description":"Adds extra buttons for sharing things on different social media platforms.","keywords":["iiif","mirador"],"license":"MIT","author":{"name":"Matthias Lindinger"},"main":"shareButtons.js","repository":{"type":"git","url":"git+https://github.com/dbmdz/mirador-plugins.git"},"scripts":{"lint":"gulp lint","minify":"gulp minify","prepublishOnly":"npm run minify"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/dbmdz/mirador-plugins/issues"},"homepage":"https://github.com/dbmdz/mirador-plugins#readme","_id":"@dbmdz/mirador-sharebuttons@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"morpheus-87","email":"m.lindinger@live.de"},"dist":{"integrity":"sha512-dNNwCqIrO8KA60eSvBBtrflK14NvXVqBCTcdWPnB7AIPLqpq/XYNT23DlMu/+s1tuy+46yvg5M7J6CzZRBrJ3A==","shasum":"bc2d1b7057f3421ec3d4a6f47788357cb0a136df","tarball":"https://registry.npmjs.org/@dbmdz/mirador-sharebuttons/-/mirador-sharebuttons-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG9B4Wks9PAFzzcmwbhO9pV3gGE6H0O0Dk+OZF7OtdPPAiAGZSeZEOtLnBZdKmjbt80dJk+tQnyhoe5rWqXciPGRnw=="}]},"maintainers":[{"name":"jbaiter","email":"johannes.baiter@gmail.com"},{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"morpheus-87","email":"m.lindinger@live.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mirador-sharebuttons-1.0.1.tgz_1516178752862_0.038132492220029235"},"directories":{}},"1.0.2":{"name":"@dbmdz/mirador-sharebuttons","version":"1.0.2","description":"Adds extra buttons for sharing things on different social media platforms.","keywords":["iiif","mirador"],"license":"MIT","author":{"name":"Matthias Lindinger"},"main":"shareButtons.js","repository":{"type":"git","url":"git+https://github.com/dbmdz/mirador-plugins.git"},"scripts":{"lint":"gulp lint","minify":"gulp minify","prepublishOnly":"npm run minify"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/dbmdz/mirador-plugins/issues"},"homepage":"https://github.com/dbmdz/mirador-plugins#readme","_id":"@dbmdz/mirador-sharebuttons@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"8.9.4","_npmUser":{"name":"morpheus-87","email":"m.lindinger@live.de"},"dist":{"integrity":"sha512-M0T2TV8i13ykNS9fVChduI7WcWrUvKS2zWE5imXE/xGfjbha2OlmqY3M0N+mqOEQqvdTsSdNwY8mBoCFOH1/vw==","shasum":"d820dc77034d84d3e1e1ca2e90adf98cf8d10d35","tarball":"https://registry.npmjs.org/@dbmdz/mirador-sharebuttons/-/mirador-sharebuttons-1.0.2.tgz","fileCount":7,"unpackedSize":13147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLxgJCRA9TVsSAnZWagAAQtAP/2a/L3IbDX5dg5k43Nc7\n6/En2Ekc5U5kJlkJrLfEYLthFGurg+Jl0gDWkIjkNXYk/Byv5uECJ04JC5gS\nKybBDNsKctmcnoyqVO34N47E+nZS9oMMVFnclhjAvcmr26bYJlewiAjTZxFT\nezZBZjFPcPfKEYmtB+Fnp1D7UTPwyK/QAjqyVIAa7zBs6dG5a48EgLhD12eM\nXgCuUvBKcLY2F44YabkgJ+DkA3uGTxFfh48PbfeSPrm9QWfkbb5Uq8MWRYKi\njyTupFglxxYaG8H2QzLPlZY4dl9q7YDv8ECJ8LtAGjyHkJPZbHa0XgXtrF9D\nbMMlLmK4Zr6FdobkoGHha+2d5dXZc3HZysSYYCRpQd0JIVUGM+2YI/Zq6HzV\nJpZiLntKP77hYsSm8VrV5oBFMk7aN0YgktyaiCoOLwq+6GAefW01H9lLIBCj\nexSeTEgNOm3tMlGJ00KCSryGQ7Kq+67vfxUqlLJ/mtOdD2A/FABX1yYTMfGh\nhE0lS0IQgrm8qwW9PBQZqWRunhcDawHEWNjlA8J9RWmeNkmwE23ueWc3WrDt\nvV1WwAxc53MFWi/gRpXEQGOhvbEZ3IgHGjigaF8AtLH0vwC2hVHXZdtahXij\nTsi400ConBMNUJKhRsAny7guqV2U4JBehCZ7d5tCdu1+NxYCylvCHw5CI0OF\nUgbi\r\n=6KF/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFr1XbBIqGc+P83V26IwSMe85345KdSP1L6Zmulu80UQAiAt2/1zL/nxs7PcN2Vw8KltYO1LiFacEOKoKCvV8hrT9g=="}]},"maintainers":[{"name":"jbaiter","email":"johannes.baiter@gmail.com"},{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"morpheus-87","email":"m.lindinger@live.de"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mirador-sharebuttons_1.0.2_1546590216678_0.2497602884933423"},"_hasShrinkwrap":false}},"readme":"# Share buttons\n\n[![NPM](https://img.shields.io/npm/v/@dbmdz/mirador-sharebuttons.svg)](https://www.npmjs.com/package/@dbmdz/mirador-sharebuttons)\n[![Maven Central](https://img.shields.io/maven-central/v/org.webjars.npm/dbmdz__mirador-sharebuttons.svg)](http://search.maven.org/search?q=a:dbmdz__mirador-sharebuttons)\n\nProvides functions for adding additional buttons that allow sharing content across different social media platforms.\n\n**NOTE:** This plugin is just a library, it does nothing by just including it.\n\n## Installation\n\nYou can find production-ready build artifacts in the [releases section](https://github.com/dbmdz/mirador-plugins/releases).\n\nAlternatively, you can use `npm` to install the artifacts:\n\n```sh\n$ npm install @dbmdz/mirador-sharebuttons\n```\n\nIf you have a Java Web-Application managed with `mvn`, there is also a WebJar, which can be included as follows:\n\n```xml\n<dependency>\n  <groupId>org.webjars.npm</groupId>\n  <artifactId>dbmdz__mirador-sharebuttons</artifactId>\n  <version>{set to current version}</version>\n</dependency>\n```\n\n## Usage\n\n### Including\n\nEnable the plugin by including the CSS and the JavaScript (**after** loading Mirador):\n\n```html\n<link rel=\"stylesheet\" type=\"text/css\" href=\"<url to the plugin>/shareButtons.min.css\" />\n...\n<script src=\"<url to the plugin>/shareButtons.min.js\"></script>\n```\n\n### Provided functions\n\n#### init(showExternalLinkInfo) → {void}\n\nRegisters some needed `Handlebars` helpers and sets a variable.\n\nParameters:\n\n| Name                 | Type    | Description                                                                                               | Default |\n|----------------------|---------|-----------------------------------------------------------------------------------------------------------|---------|\n| showExternalLinkInfo | Boolean | Display an info that the website containing the Mirador instance is left by clicking on the share buttons | false   |\n\n#### injectButtonsToDom(targetSelector, position) → {void}\n\nInjects the buttons to the target selector element in the given position.\n\nParameters:\n\n| Name           | Type   | Description                                                  | Default      |\n|----------------|--------|--------------------------------------------------------------|--------------|\n| targetSelector | String | The selector for the element that should contain the buttons |              |\n| position       | String | The position of the buttons within the containing element    | \"afterbegin\" |\n\n#### updateButtonLinks(data) → {void}\n\nUpdates the button links with the given parameters.\n\nParameters:\n\n| Name              | Type   | Description                            |\n|-------------------|--------|----------------------------------------|\n| data              | Object | The data for the links                 |\n| data.attribution  | String | The attribution of the link to share   |\n| data.label        | String | The label of the link to share         |\n| data.link         | String | The link itself                        |\n| data.thumbnailUrl | String | The thumbnail url of the link to share |\n","maintainers":[{"email":"matthias.lindinger@bsb-muenchen.de","name":"dbmdz-deployment"},{"email":"m.lindinger@live.de","name":"morpheus-87"},{"email":"marcus@bitzl.com","name":"marcus.bitzl"},{"email":"johannes.baiter@gmail.com","name":"jbaiter"}],"time":{"modified":"2022-06-12T16:57:44.066Z","created":"2017-12-20T11:56:56.566Z","1.0.0":"2017-12-20T11:56:56.566Z","1.0.1":"2018-01-17T08:45:53.759Z","1.0.2":"2019-01-04T08:23:36.915Z"},"homepage":"https://github.com/dbmdz/mirador-plugins#readme","keywords":["iiif","mirador"],"repository":{"type":"git","url":"git+https://github.com/dbmdz/mirador-plugins.git"},"author":{"name":"Matthias Lindinger"},"bugs":{"url":"https://github.com/dbmdz/mirador-plugins/issues"},"license":"MIT","readmeFilename":"README.md"}