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
7 changes: 5 additions & 2 deletions apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { memo, useState } from 'react'
// End of third-party imports

import { useIsLoggedIn, useIsUserLoading, useUser } from 'common'
import { isFeatureEnabled } from 'common/enabled-features'
import { Button, buttonVariants, cn } from 'ui'
import { AuthenticatedDropdownMenu, CommandMenuTrigger } from 'ui-patterns'
import { getCustomContent } from '../../../lib/custom-content/getCustomContent'
Expand All @@ -16,6 +17,8 @@ import useDropdownMenu from './useDropdownMenu'
const GlobalMobileMenu = dynamic(() => import('./GlobalMobileMenu'))
const TopNavDropdown = dynamic(() => import('./TopNavDropdown'))

const largeLogo = isFeatureEnabled('branding:large_logo')

const TopNavBar: FC = () => {
const isLoggedIn = useIsLoggedIn()
const isUserLoading = useIsUserLoading()
Expand Down Expand Up @@ -121,7 +124,7 @@ const HeaderLogo = memo(() => {
)}
>
<Image
className="hidden dark:block !m-0"
className={cn('hidden dark:block !m-0', largeLogo && 'h-[36px]')}
src={navigationLogo?.dark ?? '/docs/supabase-dark.svg'}
priority={true}
loading="eager"
Expand All @@ -130,7 +133,7 @@ const HeaderLogo = memo(() => {
alt="Supabase wordmark"
/>
<Image
className="block dark:hidden !m-0"
className={cn('block dark:hidden !m-0', largeLogo && 'h-[36px]')}
src={navigationLogo?.light ?? '/docs/supabase-light.svg'}
priority={true}
loading="eager"
Expand Down
202 changes: 198 additions & 4 deletions apps/docs/features/docs/__snapshots__/Reference.typeSpec.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ exports[`TS type spec parsing > matches snapshot 1`] = `
"name": "args",
"type": {
"type": "nameOnly",
"name": "Fn['Args']"
"name": "Args"
},
"comment": {
"shortText": "The arguments to pass to the function call"
Expand Down Expand Up @@ -31634,7 +31634,7 @@ exports[`TS type spec parsing > matches snapshot 1`] = `
"name": "args",
"type": {
"type": "nameOnly",
"name": "Fn['Args']"
"name": "Args"
},
"comment": {
"shortText": "The arguments to pass to the function call"
Expand Down Expand Up @@ -34050,7 +34050,7 @@ exports[`TS type spec parsing > matches snapshot 1`] = `
"ret": {
"type": {
"type": "nameOnly",
"name": "PostgrestTransformBuilder"
"name": "PostgrestFilterBuilder"
}
},
"comment": {
Expand Down Expand Up @@ -35667,7 +35667,7 @@ exports[`TS type spec parsing > matches snapshot 1`] = `
"ret": {
"type": {
"type": "nameOnly",
"name": "PostgrestTransformBuilder"
"name": "PostgrestFilterBuilder"
}
},
"comment": {
Expand Down Expand Up @@ -39399,6 +39399,200 @@ exports[`TS type spec parsing > matches snapshot 1`] = `
}
}
},
"@supabase/storage-js.packages/BlobDownloadBuilder.default.catch": {
"name": "@supabase/storage-js.packages/BlobDownloadBuilder.default.catch",
"params": [
{
"name": "onrejected",
"type": {
"type": "union",
"subTypes": [
{
"type": "literal",
"value": null
},
{
"type": "function",
"params": [
{
"name": "reason",
"type": {
"type": "intrinsic",
"name": "any"
}
}
],
"ret": {
"type": {
"type": "union",
"subTypes": [
{
"type": "nameOnly",
"name": "TResult"
},
{
"type": "nameOnly",
"name": "PromiseLike"
}
]
}
}
}
]
},
"isOptional": true,
"comment": {
"shortText": "The callback to execute when the Promise is rejected."
}
}
],
"ret": {
"type": {
"type": "promise",
"name": "Promise",
"awaited": {
"type": "union",
"subTypes": [
{
"type": "union",
"name": "DownloadResult",
"subTypes": [
{
"type": "object",
"properties": [
{
"name": "data",
"type": {
"type": "nameOnly",
"name": "T"
}
},
{
"name": "error",
"type": {
"type": "literal",
"value": null
}
}
]
},
{
"type": "object",
"properties": [
{
"name": "data",
"type": {
"type": "literal",
"value": null
}
},
{
"name": "error",
"type": {
"type": "nameOnly",
"name": "StorageError"
}
}
]
}
]
},
{
"type": "nameOnly",
"name": "TResult"
}
]
}
}
},
"comment": {
"shortText": "Attaches a callback for only the rejection of the Promise."
}
},
"@supabase/storage-js.packages/BlobDownloadBuilder.default.finally": {
"name": "@supabase/storage-js.packages/BlobDownloadBuilder.default.finally",
"params": [
{
"name": "onfinally",
"type": {
"type": "union",
"subTypes": [
{
"type": "literal",
"value": null
},
{
"type": "function",
"params": [],
"ret": {
"type": {
"type": "intrinsic",
"name": "void"
}
}
}
]
},
"isOptional": true,
"comment": {
"shortText": "The callback to execute when the Promise is settled (fulfilled or rejected)."
}
}
],
"ret": {
"type": {
"type": "promise",
"name": "Promise",
"awaited": {
"type": "union",
"name": "DownloadResult",
"subTypes": [
{
"type": "object",
"properties": [
{
"name": "data",
"type": {
"type": "nameOnly",
"name": "T"
}
},
{
"name": "error",
"type": {
"type": "literal",
"value": null
}
}
]
},
{
"type": "object",
"properties": [
{
"name": "data",
"type": {
"type": "literal",
"value": null
}
},
{
"name": "error",
"type": {
"type": "nameOnly",
"name": "StorageError"
}
}
]
}
]
}
}
},
"comment": {
"shortText": "Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\\nresolved value cannot be modified from the callback."
}
},
"@supabase/storage-js.packages/BlobDownloadBuilder.default.then": {
"name": "@supabase/storage-js.packages/BlobDownloadBuilder.default.then",
"params": [
Expand Down
Loading
Loading