Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🤖 updates README.me and package info #1

Merged
merged 6 commits into from
Dec 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: 🤖 updates README.me and package info
fredcido committed Dec 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3007c391ea940c82ce26cb1d9c3bea587e11af6d
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ Make sure you have a [Miro application](https://developers.miro.com/docs/build-y
- [useInfo](./src/useInfo/useInfo.md) - Get [Miro board info](https://developers.miro.com/docs/websdk-reference-board#getinfo).
- [useOnlineUsers](./src/useOnlineUsers/useOnlineUsers.md) - Get [online users](https://developers.miro.com/docs/websdk-reference-board#getonlineusers) in a Miro board.
- [useSelectedItems](./src/useSelectedItems/useSelectedItems.md) - List [selected items](https://developers.miro.com/docs/websdk-reference-board#getselection) with possible predicate filter.
- [useSession](./src/useSession/useSession.md) - Interact with [Miro session](https://developers.miro.com/docs/websdk-reference-session).
- [useStorage](./src/useStorage/useStorage.md) - Interact with [Miro storage](https://developers.miro.com/docs/websdk-reference-storage).
- [useViewport](./src/useViewport/useViewport.md) - Interact with [Miro viewport](https://developers.miro.com/docs/websdk-reference-viewport).

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -37,12 +37,12 @@
"author": "Miro Platform WebSDK",
"repository": {
"type": "git",
"url": "https://github.com/miroapp-dev/miro-react-hooks"
"url": "https://github.com/miroapp/miro-react-hooks"
},
"bugs": {
"url": "https://github.com/miroapp-dev/miro-react-hooks/issues"
"url": "https://github.com/miroapp/miro-react-hooks/issues"
},
"homepage": "https://github.com/miroapp-dev/miro-react-hooks#readme",
"homepage": "https://github.com/miroapp/miro-react-hooks#readme",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
3 changes: 2 additions & 1 deletion src/context.tsx
Original file line number Diff line number Diff line change
@@ -8,5 +8,6 @@ export type MiroContextType = {
export const MiroContext = createContext<MiroContextType>({});

export const MiroProvider: FC<PropsWithChildren<MiroContextType>> = ({ children, miro }) => {
return <MiroContext.Provider value={{ miro }}>{children}</MiroContext.Provider>;
const miroInstance = miro ?? globalThis.miro;
return <MiroContext.Provider value={{ miro: miroInstance }}>{children}</MiroContext.Provider>;
};