Skip to content

Commit

Permalink
Patched export and stage
Browse files Browse the repository at this point in the history
  • Loading branch information
David Di Biase authored and David Di Biase committed Sep 20, 2022
1 parent 4db72f6 commit f4d4af7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/share/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Added CJS and SSR support.

Updated to Solid 1.3

1.0.0
1.0.1

Updated to Solid 1.5.5, corrected/simplified exports and types. Updated README with docs and definition.
4 changes: 2 additions & 2 deletions packages/share/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ yarn add @solid-primitives/share
```ts
import createSocialShare, { twitter } from "@solid-promitives/share";

const [share, close] = createSocialShare({
const [share, close] = createSocialShare(() => ({
title: "SolidJS.com",
url: "https://www.solidjs.com",
description: "Simple and performant reactivity!"
});
}));
share(twitter);
```

Expand Down
2 changes: 1 addition & 1 deletion packages/share/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solid-primitives/share",
"version": "1.0.0",
"version": "1.0.1",
"description": "Primitives to help with sharing content on social media and beyond.",
"author": "David Di Biase <dave.dibiase@gmail.com",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion packages/share/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from "./primitive";
import createSocialShare from "./primitive";

export * from "./networks";
export default createSocialShare;
1 change: 1 addition & 0 deletions packages/share/src/primitive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Accessor, createSignal } from "solid-js";
/**
* A primitive for sharing on social media and beyond.
*
* @param options A list of options to configure your sharing functionality.
* @param {network} Network Network that the share should occur on
* @param {url} string The URL to be shared
* @param {title} string Title of the content that is being shared
Expand Down

0 comments on commit f4d4af7

Please sign in to comment.