Skip to content

Commit 6f9cea7

Browse files
committed
Bump package version
1 parent c1b51b7 commit 6f9cea7

5 files changed

Lines changed: 25 additions & 31 deletions

File tree

Binary file not shown.

plugins/google-sheets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@tanstack/react-query": "^5.81.5",
1515
"classnames": "^2.5.1",
16-
"framer-plugin": "^3.5.0-beta.0",
16+
"framer-plugin": "^3.5.2",
1717
"react": "^18.3.1",
1818
"react-dom": "^18.3.1",
1919
"react-error-boundary": "^6.0.0",

plugins/google-sheets/src/App.tsx

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,28 +101,32 @@ export function AuthenticatedApp({ pluginContext, setContext }: AuthenticatedApp
101101
}
102102
}
103103

104-
showUI()
104+
void showUI()
105105
}, [sheetTitle, hasSheet, isSheetPending])
106106

107107
useEffect(() => {
108-
framer.setMenu([
109-
{
110-
label: `View ${sheetTitle} in Google Sheets`,
111-
visible: Boolean(spreadsheetId),
112-
onAction: () => {
113-
if (!spreadsheetId) return
114-
window.open(`https://docs.google.com/spreadsheets/d/${spreadsheetId}/edit`, "_blank")
108+
framer
109+
.setMenu([
110+
{
111+
label: `View ${sheetTitle ?? ""} in Google Sheets`,
112+
visible: Boolean(spreadsheetId),
113+
onAction: () => {
114+
if (!spreadsheetId) return
115+
window.open(`https://docs.google.com/spreadsheets/d/${spreadsheetId}/edit`, "_blank")
116+
},
115117
},
116-
},
117-
{ type: "separator" },
118-
{
119-
label: "Log Out",
120-
onAction: async () => {
121-
await auth.logout()
118+
{ type: "separator" },
119+
{
120+
label: "Log Out",
121+
onAction: () => {
122+
void auth.logout()
123+
},
122124
},
123-
},
124-
])
125-
}, [spreadsheetId])
125+
])
126+
.catch((e: unknown) => {
127+
console.error(e)
128+
})
129+
}, [sheetTitle, spreadsheetId])
126130

127131
if (!spreadsheetId || sheetTitle === null) {
128132
return (
@@ -209,7 +213,7 @@ export function App({ pluginContext }: AppProps) {
209213
}),
210214
})
211215

212-
await framer.closePlugin()
216+
void framer.closePlugin()
213217
}
214218

215219
void task()

plugins/google-sheets/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ try {
3535
)
3636
} catch (e) {
3737
const message = e instanceof Error ? e.message : String(e)
38-
await framer.closePlugin(message, { variant: "error" })
38+
void framer.closePlugin(message, { variant: "error" })
3939
}

yarn.lock

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4685,16 +4685,6 @@ __metadata:
46854685
languageName: node
46864686
linkType: hard
46874687

4688-
"framer-plugin@npm:^3.5.0-beta.0":
4689-
version: 3.5.0-beta.0
4690-
resolution: "framer-plugin@npm:3.5.0-beta.0"
4691-
peerDependencies:
4692-
react: ^18.2.0
4693-
react-dom: ^18.2.0
4694-
checksum: 10/788a8394aa03e61a2904847960b0c3b3c193d36ca12d74d9f709e02639d502c2c0d716557800cbb271f61c3dc5b93abe16b426c4b2a63d42db7482443e859fda
4695-
languageName: node
4696-
linkType: hard
4697-
46984688
"fs-minipass@npm:^3.0.0":
46994689
version: 3.0.3
47004690
resolution: "fs-minipass@npm:3.0.3"
@@ -4821,7 +4811,7 @@ __metadata:
48214811
"@types/react": "npm:^18.3.23"
48224812
"@types/react-dom": "npm:^18.3.7"
48234813
classnames: "npm:^2.5.1"
4824-
framer-plugin: "npm:^3.5.0-beta.0"
4814+
framer-plugin: "npm:^3.5.2"
48254815
react: "npm:^18.3.1"
48264816
react-dom: "npm:^18.3.1"
48274817
react-error-boundary: "npm:^6.0.0"

0 commit comments

Comments
 (0)