{"_id":"@plugdash/sharepost","_rev":"6-1d74a655fa1adbd8208209aa74dad035","name":"@plugdash/sharepost","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@plugdash/sharepost","version":"0.1.0","keywords":["emdash","emdash-plugin","sharepost","social-sharing","share-buttons"],"license":"MIT","_id":"@plugdash/sharepost@0.1.0","maintainers":[{"name":"abhinav061","email":"abhinav061@gmail.com"}],"dist":{"shasum":"f9a43969ee828d81d071202e90161bc4ea135fa6","tarball":"https://registry.npmjs.org/@plugdash/sharepost/-/sharepost-0.1.0.tgz","fileCount":12,"integrity":"sha512-7u0xfHZCMpJnVp0Vdb4mVT7+uwbDkz5AyRWKq0RNQhn3+BHFc8x4jrZ95i1E4+AEMEzm4NU1jdzKCYZsHpEqjw==","signatures":[{"sig":"MEUCIQDZ9kLY0NouHgP9NMzYzwGRMW59QjF+ODLdz03FUsbU7AIgBDDOrLQTuRNau/+IjJGB4ASlHVRGJAnEG85MldBjQ3g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39532},"main":"./dist/index.mjs","type":"module","_from":"file:plugdash-sharepost-0.1.0.tgz","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./sandbox":{"import":"./dist/sandbox-entry.mjs"},"./ShareButtons.astro":"./src/ShareButtons.astro"},"scripts":{"test":"vitest run","build":"tsdown src/index.ts src/sandbox-entry.ts --dts.eager","typecheck":"tsc --noEmit"},"_npmUser":{"name":"abhinav061","email":"abhinav061@gmail.com"},"_resolved":"/private/var/folders/6y/57bqcl410dl_xsbfbpkrgv500000gn/T/df09e676f75c4a68a0a7d9f6736531c5/plugdash-sharepost-0.1.0.tgz","_integrity":"sha512-7u0xfHZCMpJnVp0Vdb4mVT7+uwbDkz5AyRWKq0RNQhn3+BHFc8x4jrZ95i1E4+AEMEzm4NU1jdzKCYZsHpEqjw==","_npmVersion":"11.11.0","description":"Share buttons without 200KB of JavaScript - generates sharing URLs for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email on publish","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","@plugdash/types":"0.0.0","@plugdash/testing":"0.0.0"},"peerDependencies":{"emdash":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sharepost_0.1.0_1775374817074_0.7509926772354001","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@plugdash/sharepost","version":"0.2.0","keywords":["emdash","emdash-plugin","sharepost","social-sharing","share-buttons"],"license":"MIT","_id":"@plugdash/sharepost@0.2.0","maintainers":[{"name":"abhinav061","email":"abhinav061@gmail.com"}],"homepage":"https://github.com/plugdash/plugdash#readme","bugs":{"url":"https://github.com/plugdash/plugdash/issues"},"dist":{"shasum":"c7b180775aa918ab31184bb78d887b7c65b21d29","tarball":"https://registry.npmjs.org/@plugdash/sharepost/-/sharepost-0.2.0.tgz","fileCount":12,"integrity":"sha512-oQkimzD89xGe3TK/Oid1T+SLK4PtjKYbQbjuc8i1TBGhii5c0e+iUqyNObZfqlsceCLQNloRxQHGOt4FFvWepA==","signatures":[{"sig":"MEQCICFLGc4jamlke/4rpCALL3PcVpljO9dk3u+mqIGs7djaAiB13OsUtLZh/frCxDGlxzeGb9AGeJVU3+o1W0il9eBDBQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@plugdash%2fsharepost@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":56100},"main":"./dist/index.mjs","type":"module","_from":"file:plugdash-sharepost-0.2.0.tgz","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./sandbox":{"import":"./dist/sandbox-entry.mjs"},"./ShareButtons.astro":"./src/ShareButtons.astro"},"scripts":{"test":"vitest run","build":"tsdown src/index.ts src/sandbox-entry.ts --dts.eager","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:fdb77e06-0a87-47ca-8f12-e845d535617c"}},"_resolved":"/tmp/7ec73e94789653041b826c55880f8811/plugdash-sharepost-0.2.0.tgz","_integrity":"sha512-oQkimzD89xGe3TK/Oid1T+SLK4PtjKYbQbjuc8i1TBGhii5c0e+iUqyNObZfqlsceCLQNloRxQHGOt4FFvWepA==","repository":{"url":"git+https://github.com/plugdash/plugdash.git","type":"git","directory":"packages/sharepost"},"_npmVersion":"11.5.1","description":"Share buttons without 200KB of JavaScript - generates sharing URLs for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email on publish","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","@plugdash/types":"0.0.0","@plugdash/testing":"0.0.0"},"peerDependencies":{"emdash":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sharepost_0.2.0_1775416193065_0.8156937884706317","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@plugdash/sharepost","version":"0.2.2","keywords":["emdash","emdash-plugin","sharepost","social-sharing","share-buttons"],"license":"MIT","_id":"@plugdash/sharepost@0.2.2","maintainers":[{"name":"abhinav061","email":"abhinav061@gmail.com"}],"homepage":"https://github.com/plugdash/plugdash#readme","bugs":{"url":"https://github.com/plugdash/plugdash/issues"},"dist":{"shasum":"dad27ffcd37147eb442fcd616258e996a35c9ca8","tarball":"https://registry.npmjs.org/@plugdash/sharepost/-/sharepost-0.2.2.tgz","fileCount":16,"integrity":"sha512-wjKesEFfbr0yA1WQ47X6ddCXF+GN7bBrC90Kj/WRnYzAozznmI74GyahB6eBkfTaVyBmCwU7PKGpBrCe7ZX0Xg==","signatures":[{"sig":"MEQCIHNozrHbgwb/knc5HhGzkAIEZSgWU309DGzQO4WPfN1LAiAOmFlINBKTGsjBcfWUaU1eoAnjIGazHmWjJMh6jn9+eA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@plugdash%2fsharepost@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57107},"main":"./dist/index.mjs","type":"module","_from":"file:plugdash-sharepost-0.2.2.tgz","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./utils":{"types":"./dist/utils.d.mts","import":"./dist/utils.mjs"},"./sandbox":{"import":"./dist/sandbox-entry.mjs"},"./ShareButtons.astro":"./src/ShareButtons.astro"},"scripts":{"test":"vitest run","build":"tsdown src/index.ts src/sandbox-entry.ts src/utils.ts --dts.eager","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:fdb77e06-0a87-47ca-8f12-e845d535617c"}},"_resolved":"/tmp/c6fadaabb80f2c8473a8a005ad8a97e2/plugdash-sharepost-0.2.2.tgz","_integrity":"sha512-wjKesEFfbr0yA1WQ47X6ddCXF+GN7bBrC90Kj/WRnYzAozznmI74GyahB6eBkfTaVyBmCwU7PKGpBrCe7ZX0Xg==","repository":{"url":"git+https://github.com/plugdash/plugdash.git","type":"git","directory":"packages/sharepost"},"_npmVersion":"11.5.1","description":"Share buttons without 200KB of JavaScript - generates sharing URLs for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email on publish","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","@plugdash/types":"0.0.0","@plugdash/testing":"0.0.0"},"peerDependencies":{"emdash":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/sharepost_0.2.2_1775586100061_0.8069341261914471","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@plugdash/sharepost","version":"0.2.3","keywords":["emdash","emdash-plugin","sharepost","social-sharing","share-buttons"],"license":"MIT","_id":"@plugdash/sharepost@0.2.3","maintainers":[{"name":"abhinav061","email":"abhinav061@gmail.com"}],"homepage":"https://github.com/plugdash/plugdash#readme","bugs":{"url":"https://github.com/plugdash/plugdash/issues"},"dist":{"shasum":"88d28d24231ff852d3ceef5122b30a16d3a3c25f","tarball":"https://registry.npmjs.org/@plugdash/sharepost/-/sharepost-0.2.3.tgz","fileCount":16,"integrity":"sha512-SZbju0tVHvVgiyxn/n5ypD3AB0wCdXAMlLY2eUJ506g+4+23Hm5zfofMhLgXHRKb6GLyJfIO8ApD5bOyY/M/Ew==","signatures":[{"sig":"MEUCID7kAb54rBCSQF++kKEC9G7ry+ND6fnqMp+q0/l5+5u6AiEAh4s1rIzJ2HfZoPhHpIU93/klgILPz65j8yhw9k3h/eM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGX+Q+0zu0MC3B7ZE8YtNqVh5LMWF/aCOXA6tA8gwVuTAiAdkU/qEs6L/8Enh6tMOV1DrEpfME1xKgM9IUbJrtW8oA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@plugdash%2fsharepost@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":75055},"main":"./dist/index.mjs","type":"module","_from":"file:plugdash-sharepost-0.2.3.tgz","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./utils":{"types":"./dist/utils.d.mts","import":"./dist/utils.mjs"},"./sandbox":{"import":"./dist/sandbox-entry.mjs"},"./ShareButtons.astro":"./src/ShareButtons.astro"},"scripts":{"test":"vitest run","build":"tsdown src/index.ts --dts.eager && tsdown src/sandbox-entry.ts --dts.eager --no-clean && tsdown src/utils.ts --dts.eager --no-clean","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:fdb77e06-0a87-47ca-8f12-e845d535617c"}},"_resolved":"/tmp/572352d13cd7fb9eacb69005017ae23d/plugdash-sharepost-0.2.3.tgz","_integrity":"sha512-SZbju0tVHvVgiyxn/n5ypD3AB0wCdXAMlLY2eUJ506g+4+23Hm5zfofMhLgXHRKb6GLyJfIO8ApD5bOyY/M/Ew==","repository":{"url":"git+https://github.com/plugdash/plugdash.git","type":"git","directory":"packages/sharepost"},"_npmVersion":"11.5.1","description":"Share buttons without 200KB of JavaScript - generates sharing URLs for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email on publish","directories":{},"_nodeVersion":"22.23.2","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","@plugdash/types":"0.0.0","@plugdash/testing":"0.0.0"},"peerDependencies":{"emdash":">=0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/sharepost_0.2.3_1790352197228_0.8197593044377165","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@plugdash/sharepost","version":"0.2.4","keywords":["emdash","emdash-plugin","sharepost","social-sharing","share-buttons"],"license":"MIT","_id":"@plugdash/sharepost@0.2.4","maintainers":[{"name":"abhinav061","email":"abhinav061@gmail.com"}],"homepage":"https://github.com/plugdash/plugdash#readme","bugs":{"url":"https://github.com/plugdash/plugdash/issues"},"dist":{"shasum":"07969a3375ba628b7463ebbccbe584d9b2072e5e","tarball":"https://registry.npmjs.org/@plugdash/sharepost/-/sharepost-0.2.4.tgz","fileCount":16,"integrity":"sha512-EgPC98U0M2mkKu3pPlbs3KjWJFQ8vE03Tw80NZdEsNT5vcBWd2piFK9SwucrH9mpB+wVivk7+tNLSf9TEnDdBw==","signatures":[{"sig":"MEUCIEy30Yd47dJS+2MELm9pbx9GcY9BTXLpYnKd9iX7QhEHAiEA/KVzNTS6sKOLTAqfTiumXrfpTmxFFFtEcs91/giialU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIAjyn/dkAnW5ka027L0q4yaFg8pRnABktL6DmVxlBS60AiEAtPdQOuIJAxvZyBl4/lmkHRduVZO8KOp6/x8jwn1ClWY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@plugdash%2fsharepost@0.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":75203},"main":"./dist/index.mjs","type":"module","_from":"file:plugdash-sharepost-0.2.4.tgz","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./utils":{"types":"./dist/utils.d.mts","import":"./dist/utils.mjs"},"./sandbox":{"import":"./dist/sandbox-entry.mjs"},"./ShareButtons.astro":"./src/ShareButtons.astro"},"scripts":{"test":"vitest run","build":"tsdown src/index.ts --dts.eager && tsdown src/sandbox-entry.ts --dts.eager --no-clean && tsdown src/utils.ts --dts.eager --no-clean","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:fdb77e06-0a87-47ca-8f12-e845d535617c"}},"_resolved":"/tmp/1b34f79357cc6c949c2f6b37f1cf34fe/plugdash-sharepost-0.2.4.tgz","_integrity":"sha512-EgPC98U0M2mkKu3pPlbs3KjWJFQ8vE03Tw80NZdEsNT5vcBWd2piFK9SwucrH9mpB+wVivk7+tNLSf9TEnDdBw==","repository":{"url":"git+https://github.com/plugdash/plugdash.git","type":"git","directory":"packages/sharepost"},"_npmVersion":"11.5.1","description":"Share buttons without 200KB of JavaScript - generates sharing URLs for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email on publish","directories":{},"_nodeVersion":"22.23.2","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","@plugdash/types":"0.0.0","@plugdash/testing":"0.0.0"},"peerDependencies":{"emdash":">=0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/sharepost_0.2.4_1790409401017_0.35678788945991124","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"@plugdash/sharepost@0.3.0","bugs":{"url":"https://github.com/plugdash/plugdash/issues"},"dist":{"shasum":"85926dbbac83f8d93960a9d502c4fa32c0dc776d","tarball":"https://registry.npmjs.org/@plugdash/sharepost/-/sharepost-0.3.0.tgz","fileCount":12,"integrity":"sha512-uXG0KRVfwqRX5gzAtPIk9AUcxrj5tELsu6Oc7nQgMuG9tkjCcXsxkmwnut25FPCR24RbBF0DUKR3GDHYR/MzUA==","signatures":[{"sig":"MEYCIQD6VI9zZ6ca6zpovs3Uu3Gb8TZOKPnJV7Ni6BA0bRqqZAIhALxM5KK7qFBqEUVjrq+CGlnjO19sEvQ825gCIABohBvI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCqk1VbxasmVHph8SlflgYMpqM2Tb7tpUo5W2GIR0DZLAIhAKct3Kj70u2o0aGG7J6Z0km9+YRSYPuwebf50Bi1RszB"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@plugdash%2fsharepost@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30326},"main":"./dist/index.mjs","name":"@plugdash/sharepost","type":"module","_from":"file:plugdash-sharepost-0.3.0.tgz","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./utils":{"types":"./dist/utils.d.mts","import":"./dist/utils.mjs"},"./ShareButtons.astro":"./src/ShareButtons.astro"},"license":"MIT","scripts":{"test":"vitest run","build":"tsdown src/index.ts src/utils.ts --dts.eager","typecheck":"tsc --noEmit"},"version":"0.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"fdb77e06-0a87-47ca-8f12-e845d535617c"}},"homepage":"https://github.com/plugdash/plugdash#readme","keywords":["emdash","emdash-plugin","share-buttons","sharepost","social-sharing"],"_resolved":"/tmp/8391c2a72790cbab7dd57e4ecf617f95/plugdash-sharepost-0.3.0.tgz","_integrity":"sha512-uXG0KRVfwqRX5gzAtPIk9AUcxrj5tELsu6Oc7nQgMuG9tkjCcXsxkmwnut25FPCR24RbBF0DUKR3GDHYR/MzUA==","repository":{"url":"git+https://github.com/plugdash/plugdash.git","type":"git","directory":"packages/sharepost"},"_npmVersion":"11.5.1","description":"Share buttons without 200KB of JavaScript - builds sharing links for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email at render time","directories":{},"maintainers":[{"name":"abhinav061","email":"abhinav061@gmail.com"}],"_nodeVersion":"22.23.3","_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.0.0","@plugdash/types":"0.0.0","@plugdash/testing":"0.0.0"},"peerDependencies":{"emdash":">=0.13.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sharepost_0.3.0_1790936840689_0.8664260349528456"}}},"time":{"created":"2026-04-05T07:40:16.987Z","modified":"2026-10-02T10:27:21.140Z","0.1.0":"2026-04-05T07:40:17.231Z","0.2.0":"2026-04-05T19:09:53.223Z","0.2.2":"2026-04-07T18:21:40.216Z","0.2.3":"2026-09-25T16:03:17.325Z","0.2.4":"2026-09-26T07:56:41.112Z","0.3.0":"2026-10-02T10:27:20.762Z"},"bugs":{"url":"https://github.com/plugdash/plugdash/issues"},"license":"MIT","homepage":"https://github.com/plugdash/plugdash#readme","keywords":["emdash","emdash-plugin","share-buttons","sharepost","social-sharing"],"repository":{"url":"git+https://github.com/plugdash/plugdash.git","type":"git","directory":"packages/sharepost"},"description":"Share buttons without 200KB of JavaScript - builds sharing links for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email at render time","maintainers":[{"name":"abhinav061","email":"abhinav061@gmail.com"}],"readme":"# @plugdash/sharepost\n\nAdding share buttons to a blog post should not require loading a third-party script.\nBuilds sharing links for Twitter/X, LinkedIn, WhatsApp, Bluesky, and email when the\npage renders, from the current URL and the post title. Ships `ShareButtons.astro` - a\nzero-JavaScript component that renders share links as plain anchor tags. No hooks, no\ndatabase reads or writes.\nThe EmDash equivalent of [Social Warfare](https://warfareplugins.com/) / [AddToAny](https://wordpress.org/plugins/add-to-any/) (basic tier).\n\n## Install\n\n```bash\npnpm add @plugdash/sharepost\n```\n\n## Register\n\nNothing to register. `sharepostPlugin()` still exists as a no-op so older\n`astro.config.mjs` files keep working, but it is deprecated and ignores its options.\n\nSet `site` in `astro.config.mjs` so links use your public domain behind a proxy or CDN.\nWithout it, links use the origin of the incoming request.\n\n```js\n// astro.config.mjs\nimport { defineConfig } from \"astro/config\";\nimport emdash from \"emdash/astro\";\n\nexport default defineConfig({\n\tsite: \"https://example.com\",\n\tintegrations: [emdash({})],\n});\n```\n\n## Companion component\n\n```astro\n---\nimport ShareButtons from \"@plugdash/sharepost/ShareButtons.astro\";\n---\n\n<ShareButtons post={post} via=\"yourhandle\" />\n```\n\n### Props\n\n| Prop        | Type                                                                   | Default                              | Description                                           |\n| ----------- | ---------------------------------------------------------------------- | ------------------------------------ | ----------------------------------------------------- |\n| post        | `Record<string, unknown>`                                              | none                                 | Post from `getEmDashEntry()`. Only used for the title |\n| url         | `string`                                                               | current page, as an absolute URL     | URL to share                                          |\n| title       | `string`                                                               | `post.data.title`                    | Share text                                            |\n| via         | `string`                                                               | none                                 | X/Twitter handle without the @, X link only           |\n| hashtags    | `string[]`                                                             | none                                 | X/Twitter hashtags without #, X link only             |\n| platforms   | `Array<\"twitter\" \\| \"linkedin\" \\| \"whatsapp\" \\| \"bluesky\" \\| \"email\">` | `[\"twitter\", \"linkedin\", \"bluesky\"]` | Which buttons to show                                 |\n| variant     | `\"circle\" \\| \"pill\" \\| \"ghost\" \\| \"filled\"`                            | `\"circle\"`                           | Visual style                                          |\n| size        | `\"sm\" \\| \"md\" \\| \"lg\"`                                                 | `\"md\"`                               | Button size                                           |\n| theme       | `\"auto\" \\| \"dark\" \\| \"light\"`                                          | `\"auto\"`                             | Color theme                                           |\n| attribution | `boolean`                                                              | `false`                              | Show \"by plugdash\" link                               |\n| class       | `string`                                                               | `\"\"`                                 | Additional CSS class                                  |\n\n### CSS custom properties\n\n| Token                          | Default                               | Description        |\n| ------------------------------ | ------------------------------------- | ------------------ |\n| `--plugdash-engage-gap`        | `0.375rem`                            | Button spacing     |\n| `--plugdash-engage-size`       | `2rem`                                | Circle button size |\n| `--plugdash-engage-radius`     | `9999px`                              | Border radius      |\n| `--plugdash-engage-border`     | `rgb(from currentColor r g b / 0.15)` | Border color       |\n| `--plugdash-engage-bg`         | `rgb(from currentColor r g b / 0.04)` | Background         |\n| `--plugdash-engage-bg-hover`   | `rgb(from currentColor r g b / 0.08)` | Hover background   |\n| `--plugdash-engage-transition` | `150ms ease`                          | Transition timing  |\n| `--plugdash-accent`            | `#6366f1`                             | Filled variant bg  |\n| `--plugdash-accent-fg`         | `#ffffff`                             | Filled variant fg  |\n| `--plugdash-font-ui`           | `\"Lexend\", system-ui, sans-serif`     | UI font family     |\n\n## Platform hover colours\n\nEach button tints to its platform brand colour on hover by default.\n\n| Platform  | Default hover colour | CSS variable                      |\n| --------- | -------------------- | --------------------------------- |\n| X/Twitter | `#1d9bf0`            | `--plugdash-share-twitter-color`  |\n| LinkedIn  | `#0a66c2`            | `--plugdash-share-linkedin-color` |\n| Bluesky   | `#0085ff`            | `--plugdash-share-bluesky-color`  |\n| WhatsApp  | `#25d366`            | `--plugdash-share-whatsapp-color` |\n| Email     | `--plugdash-accent`  | `--plugdash-share-email-color`    |\n\nOverride a platform's colour via the CSS variable:\n\n```css\n:root {\n\t--plugdash-share-twitter-color: #000000; /* X black branding */\n\t--plugdash-share-linkedin-color: #004182;\n}\n```\n\nOr target the per-platform class directly for custom hover treatments:\n\n```css\n.plugdash-share-btn--bluesky:hover {\n\tbackground: #0085ff;\n\tcolor: #fff;\n}\n```\n\n## What it does\n\n- Builds the share links in the component on each render (about 0.007 ms for five links)\n- Uses `url` if given, else the current page URL resolved against `Astro.site` or the request origin\n- Reads the title from `title`, else `post.data.title`\n- Encodes titles and URLs, so `& \" <` are safe\n- Truncates the title to 200 chars for X only\n- Appends `via` and `hashtags` to the X link only\n\n## What it does not do\n\n- Does not make external HTTP calls - all URLs are constructed locally\n- Does not require client-side JavaScript - share links are plain anchor tags\n- Does not track share clicks - that is analytics territory\n- Does not write to content or metadata, and registers no hooks\n- Does not create Open Graph images - see @plugdash/socialcard for that\n","readmeFilename":"README.md"}