Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion plugins/hubspot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@tanstack/react-query": "^5.81.5",
"classnames": "^2.5.1",
"framer-plugin": "^3.3.2",
"framer-plugin": "^3.5.2",
"motion": "^12.23.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
15 changes: 14 additions & 1 deletion plugins/hubspot/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const routes: Route[] = [
path: "/canvas",
element: CanvasMenuPage,
size: {
height: 546,
height: 561,
},
children: [
{
Expand Down Expand Up @@ -186,6 +186,19 @@ export function App() {
return
}

void framer.setMenu([
{
label: "Log Out",
visible: true,
onAction: () => {
auth.logout()
Comment thread
elmarburke marked this conversation as resolved.
framer.closePlugin(
"To fully remove the integration, uninstall the Framer app from the HubSpot integrations dashboard."
)
},
},
])

if (isInCMSModes) {
return handleCMSModes()
}
Expand Down
3 changes: 2 additions & 1 deletion plugins/hubspot/src/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ function getFieldDataEntryInput(field: ManagedCollectionFieldInput, value: unkno
}

case "collectionReference":
case "multiCollectionReference": {
case "multiCollectionReference":
case "array": {
// TODO: Implement
return undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const PageErrorBoundaryFallback = ({ children }: PropsWithChildren) => (
void framer.closePlugin()
}}
>
logout
log out
</a>
.
</span>
Expand Down
2 changes: 1 addition & 1 deletion plugins/hubspot/src/pages/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function AuthPage() {
</p>
</div>
</div>
<Button className="w-full mt-auto" onClick={login} isLoading={isLoading} variant="secondary">
<Button className="w-full" onClick={login} isLoading={isLoading} variant="secondary">
Log In
</Button>
</main>
Expand Down
2 changes: 1 addition & 1 deletion plugins/hubspot/src/pages/canvas/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function AccountPage() {
<p>{user.hub_id}</p>
</div>
<button className="framer-button-destructive w-full" onClick={handleLogout}>
Logout
Log Out
</button>
</main>
)
Expand Down
2 changes: 1 addition & 1 deletion plugins/hubspot/src/pages/canvas/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function MenuPage() {

return (
<main>
<div className="col-lg items-center pt-[30px] pb-15">
<div className="col-lg items-center py-[30px]">
<Logo />
<div className="col items-center">
<h6>Welcome to HubSpot</h6>
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4928,7 +4928,7 @@ __metadata:
"@types/react": "npm:^18.3.23"
"@types/react-dom": "npm:^18.3.7"
classnames: "npm:^2.5.1"
framer-plugin: "npm:^3.3.2"
framer-plugin: "npm:^3.5.2"
motion: "npm:^12.23.0"
react: "npm:^18.3.1"
react-dom: "npm:^18.3.1"
Expand Down
Loading