The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix default side bar opening state when entering a page, and fix anchor parsing for h3 and h4
Joshen Lim5c28e099e54f
diff --git a/apps/temp-docs/components/CustomMDX/CustomMDX.utils.ts b/apps/temp-docs/components/CustomMDX/CustomMDX.utils.tsnew file mode 100644index 00000000000..3d4ba64ab3d--- /dev/null+++ b/apps/temp-docs/components/CustomMDX/CustomMDX.utils.ts@@ -0,0 +1,16 @@+export const getAnchor = (text: any): string | undefined => {+ if (typeof text !== 'string') {+ return undefined+ } else {+ const [anchor] = text.match(/{#[a-z-]*}/g) || []+ return anchor !== undefined ? anchor.slice(2, anchor.length - 1) : undefined+ }+}++export const removeAnchor = (text: any) => {+ if (typeof text !== 'string') {+ return text+ } else {+ return text.slice(0, text.indexOf('{#'))+ }+}diff --git a/apps/temp-docs/components/CustomMDX/H3.tsx b/apps/temp-docs/components/CustomMDX/H3.tsxnew file mode 100644index 00000000000..1586391c30a--- /dev/null+++ b/apps/temp-docs/components/CustomMDX/H3.tsx@@ -0,0 +1,17 @@+import { getAnchor, removeAnchor } from './CustomMDX.utils'++const H3 = ({ children }) => {+ const anchor = getAnchor(children)+ const link = `#${anchor}`+ return (+ <h3 id={anchor} className="group">+ {removeAnchor(children)}+ {anchor && (+ <a href={link} className="opacity-0 group-hover:opacity-100 transition">+ #+ </a>+ )}+ </h3>+ )+}+export default H3diff --git a/apps/temp-docs/components/CustomMDX/H4.tsx b/apps/temp-docs/components/CustomMDX/H4.tsxnew file mode 100644index 00000000000..294d257d6b4--- /dev/null+++ b/apps/temp-docs/components/CustomMDX/H4.tsx@@ -0,0 +1,17 @@+import { getAnchor, removeAnchor } from './CustomMDX.utils'++const H4 = ({ children }) => {+ const anchor = getAnchor(children)+ const link = `#${anchor}`+ return (+ <h4 id={anchor} className="group">+ {removeAnchor(children)}+ {anchor && (+ <a href={link} className="opacity-0 group-hover:opacity-100 transition">+ #+ </a>+ )}+ </h4>+ )+}+export default H4diff --git a/apps/temp-docs/components/CustomMDX/index.tsx b/apps/temp-docs/components/CustomMDX/index.tsxnew file mode 100644index 00000000000..5a537049aa3--- /dev/null+++ b/apps/temp-docs/components/CustomMDX/index.tsx@@ -0,0 +1,4 @@+import H3 from './H3'+import H4 from './H4'++export { H3, H4 }diff --git a/apps/temp-docs/components/index.tsx b/apps/temp-docs/components/index.tsxindex 6cd95898b90..06b795d6029 100644--- a/apps/temp-docs/components/index.tsx+++ b/apps/temp-docs/components/index.tsx@@ -4,8 +4,11 @@ import { Tabs, Alert } from 'ui'import CodeBlock from './CodeBlock/CodeBlock'import ButtonCard from './ButtonCard'+import { H3, H4 } from './CustomMDX'const components = {+ h3: H3,+ h4: H4,Alert,ButtonCard,Tabs,diff --git a/apps/temp-docs/components/nav/NavBar.tsx b/apps/temp-docs/components/nav/NavBar.tsxindex 7435520a6c0..b37bc089417 100644--- a/apps/temp-docs/components/nav/NavBar.tsx+++ b/apps/temp-docs/components/nav/NavBar.tsx@@ -13,7 +13,7 @@ const NavBar = ({ currentPage }: { currentPage: string }) => {}, [isDarkMode])const pageLinks = [- { text: 'Guides', link: '/docs' },+ { text: 'Guides', link: '/' },{ text: 'Reference', link: '/reference' },]diff --git a/apps/temp-docs/components/nav/SideBar.tsx b/apps/temp-docs/components/nav/SideBar.tsxindex 10bdcad9495..6ef6efd2357 100644--- a/apps/temp-docs/components/nav/SideBar.tsx+++ b/apps/temp-docs/components/nav/SideBar.tsx@@ -4,9 +4,36 @@ import { IconChevronRight } from '~/../../packages/ui'import { NavMenuGroup, NavMenuSection } from './Nav.constants'import * as Accordion from '@radix-ui/react-accordion'-const SideBar = ({ menuItems }: { menuItems: any }) => {+const SideBar = ({ menuItems = [] }: { menuItems: any }) => {const { asPath } = useRouter()+ const currentSection: NavMenuGroup = menuItems.find((group) => {+ const foundItem = group.items.find((section) => {+ if (section.items.length > 0) {+ const foundSubItem = section.items.find((item) => {+ if (item.url === asPath) return item+ })+ if (foundSubItem) return section+ } else {+ if (section.url === asPath) return section+ }+ })+ if (foundItem) return group+ })++ const currentSubSection: NavMenuSection =+ currentSection !== undefined+ ? currentSection.items.find((section) => {+ if (section.items.length === 0) {+ return undefined+ } else {+ return section.items.find((item) => {+ if (item.url === asPath) return item+ })+ }+ })+ : undefined+return (<divclassName="dark:bg-scale-200 dark:border-scale-400 sidebar-width sticky top-0 flex@@ -15,7 +42,7 @@ const SideBar = ({ menuItems }: { menuItems: any }) => {<Accordion.Rootcollapsibletype="single"- defaultValue={menuItems[0].label}+ defaultValue={currentSection?.label}className="w-full space-y-0.5">{menuItems.map((group: NavMenuGroup) => (@@ -39,7 +66,7 @@ const SideBar = ({ menuItems }: { menuItems: any }) => {<divkey={section.name}className={[- 'py-1.5 px-5 rounded text-sm',+ 'py-1.5 px-5 rounded text-sm transition',`${section.url === asPath? 'bg-scale-400 text-brand-900'@@ -59,6 +86,7 @@ const SideBar = ({ menuItems }: { menuItems: any }) => {key={section.name}type="single"className="space-y-0.5"+ defaultValue={currentSubSection?.name}><Accordion.Item value={section.name}><Accordion.Trigger className="flex items-center space-x-2 px-4 py-1.5">@@ -77,7 +105,14 @@ const SideBar = ({ menuItems }: { menuItems: any }) => {<a><divkey={item.name}- className="py-1.5 px-9 text-sm text-scale-1100 hover:text-scale-1200 transition"+ className={[+ 'py-1.5 ml-4 px-5 rounded text-sm transition',+ `${+ item.url === asPath+ ? 'bg-scale-400 text-brand-900'+ : 'text-scale-1100 hover:text-scale-1200'+ }`,+ ].join(' ')}>{item.name}</div>diff --git a/apps/temp-docs/docs/guides/api.mdx b/apps/temp-docs/docs/guides/api.mdxindex b4e3e48bd09..0f0c67e93c6 100644--- a/apps/temp-docs/docs/guides/api.mdx+++ b/apps/temp-docs/docs/guides/api.mdx@@ -7,7 +7,7 @@ sidebar_label: Overviewimport Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-import useBaseUrl from '@docusaurus/useBaseUrl'+// import useBaseUrl from '@docusaurus/useBaseUrl'## Overview@@ -89,12 +89,7 @@ This creates a corresponding route `todos` which can accept `GET`, `POST`, `PATC1. Click **Save**.<video width="99%" muted playsInline controls="true">- <source- src={useBaseUrl('/videos/api/api-create-table-sm.mp4')}- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/api/api-create-table-sm.mp4" type="video/mp4" muted playsInline /></video></TabItem>@@ -121,12 +116,7 @@ Every Supabase project has a unique API URL. Your API is secured behind an API g3. Find your API `URL`, `anon`, and `service_role` keys on this page.<video width="99%" muted playsInline controls="true">- <source- src={useBaseUrl('/videos/api/api-url-and-key.mp4')}- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/api/api-url-and-key.mp4" type="video/mp4" muted playsInline /></video>The REST API and the GraphQL API are both accessible through this URL:@@ -155,12 +145,7 @@ Let's view the documentation for a `countries` table which we created in our dat3. Switch between the JavaScript and the cURL docs using the tabs.<video width="99%" muted playsInline controls="true">- <source- src={useBaseUrl('/videos/api/api-docs.mp4')}- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/api/api-docs.mp4" type="video/mp4" muted playsInline /></video>#### GraphQL@@ -317,12 +302,7 @@ By default Realtime is disabled on your database. Let's turn on Realtime for the4. Control which tables broadcast changes by selecting **Source** and toggling each table.<video width="99%" muted playsInline controls="true">- <source- src={useBaseUrl('/videos/api/api-realtime.mp4')}- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/api/api-realtime.mp4" type="video/mp4" muted playsInline /></video></TabItem>@@ -348,10 +328,7 @@ const handleInserts = (payload) => {}// Listen to inserts-const { data: todos, error } = await supabase- .from('todos')- .on('INSERT', handleInserts)- .subscribe()+const { data: todos, error } = await supabase.from('todos').on('INSERT', handleInserts).subscribe()```Use [subscribe()](/docs/reference/javascript/subscribe) to listen to database changes.diff --git a/apps/temp-docs/layouts/Default.tsx b/apps/temp-docs/layouts/Default.tsxindex 9b430714ccd..d15f7b876dd 100644--- a/apps/temp-docs/layouts/Default.tsx+++ b/apps/temp-docs/layouts/Default.tsx@@ -27,7 +27,7 @@ const Layout = ({}}, [])- console.log('default')+ console.log('default', currentPage)return (<>diff --git a/apps/temp-docs/next.config.mjs b/apps/temp-docs/next.config.mjsindex 2faf39081a5..77073668d05 100644--- a/apps/temp-docs/next.config.mjs+++ b/apps/temp-docs/next.config.mjs@@ -2,6 +2,7 @@ import nextMdx from '@next/mdx'import bundleAnalyzer from '@next/bundle-analyzer'import remarkGfm from 'remark-gfm'+import admonitions from 'remark-admonitions'import rehypeSlug from 'rehype-slug'import withTM from 'next-transpile-modules'@@ -23,12 +24,10 @@ const withMDX = nextMdx({remarkPlugins: [// [// remarkCodeHike,- // {- // theme: codeHikeTheme,- // autoImport: false,- // },+ // { theme: codeHikeTheme, autoImport: false },// ],remarkGfm,+ [admonitions, {}],],rehypePlugins: [rehypeSlug],// This is required for `MDXProvider` componentdiff --git a/apps/temp-docs/package.json b/apps/temp-docs/package.jsonindex 5c41bc23e17..16a4b5a0822 100644--- a/apps/temp-docs/package.json+++ b/apps/temp-docs/package.json@@ -55,6 +55,7 @@"react-markdown": "^8.0.3","react-syntax-highlighter": "^15.3.1","remark": "^14.0.2",+ "remark-admonitions": "^1.2.1","remark-html": "^15.0.0","remark-mdx": "^2.0.0-rc.2","remark-prism": "^1.3.6",diff --git a/apps/temp-docs/pages/[...slug].tsx b/apps/temp-docs/pages/[...slug].tsxindex f978034071a..11b9d0b2996 100644--- a/apps/temp-docs/pages/[...slug].tsx+++ b/apps/temp-docs/pages/[...slug].tsx@@ -27,7 +27,7 @@ export default function Doc({case '/guides':case '/guides/local-development':case /\/guides\/[a-zA-Z]*\/[a-zA-Z\-]*/.test(asPath) && asPath:- page = 'Guides'+ page = 'Docs'breakcase asPath.includes('/reference') && asPath:page = 'Reference'diff --git a/package-lock.json b/package-lock.jsonindex 73fdb4c2014..d376a791afb 100644--- a/package-lock.json+++ b/package-lock.json@@ -62,6 +62,7 @@"react-markdown": "^8.0.3","react-syntax-highlighter": "^15.3.1","remark": "^14.0.2",+ "remark-admonitions": "^1.2.1","remark-html": "^15.0.0","remark-mdx": "^2.0.0-rc.2","remark-prism": "^1.3.6",@@ -30103,6 +30104,83 @@"jsesc": "bin/jsesc"}},+ "node_modules/rehype-parse": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/rehype-parse/-/rehype-parse-6.0.2.tgz",+ "integrity": "sha512-0S3CpvpTAgGmnz8kiCyFLGuW5yA4OQhyNTm/nwPopZ7+PI11WnGl1TTWTGv/2hPEe/g2jRLlhVVSsoDH8waRug==",+ "dependencies": {+ "hast-util-from-parse5": "^5.0.0",+ "parse5": "^5.0.0",+ "xtend": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/rehype-parse/node_modules/ccount": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz",+ "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/rehype-parse/node_modules/comma-separated-tokens": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz",+ "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/rehype-parse/node_modules/hast-util-from-parse5": {+ "version": "5.0.3",+ "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-5.0.3.tgz",+ "integrity": "sha512-gOc8UB99F6eWVWFtM9jUikjN7QkWxB3nY0df5Z0Zq1/Nkwl5V4hAAsl0tmwlgWl/1shlTF8DnNYLO8X6wRV9pA==",+ "dependencies": {+ "ccount": "^1.0.3",+ "hastscript": "^5.0.0",+ "property-information": "^5.0.0",+ "web-namespaces": "^1.1.2",+ "xtend": "^4.0.1"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/rehype-parse/node_modules/hastscript": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-5.1.2.tgz",+ "integrity": "sha512-WlztFuK+Lrvi3EggsqOkQ52rKbxkXL3RwB6t5lwoa8QLMemoWfBuL43eDrwOamJyR7uKQKdmKYaBH1NZBiIRrQ==",+ "dependencies": {+ "comma-separated-tokens": "^1.0.0",+ "hast-util-parse-selector": "^2.0.0",+ "property-information": "^5.0.0",+ "space-separated-tokens": "^1.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/rehype-parse/node_modules/parse5": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz",+ "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug=="+ },+ "node_modules/rehype-parse/node_modules/space-separated-tokens": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz",+ "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },"node_modules/rehype-slug": {"version": "5.0.1","resolved": "https://registry.npmjs.org/rehype-slug/-/rehype-slug-5.0.1.tgz",@@ -30145,6 +30223,147 @@"url": "https://opencollective.com/unified"}},+ "node_modules/remark-admonitions": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/remark-admonitions/-/remark-admonitions-1.2.1.tgz",+ "integrity": "sha512-Ji6p68VDvD+H1oS95Fdx9Ar5WA2wcDA4kwrrhVU7fGctC6+d3uiMICu7w7/2Xld+lnU7/gi+432+rRbup5S8ow==",+ "dependencies": {+ "rehype-parse": "^6.0.2",+ "unified": "^8.4.2",+ "unist-util-visit": "^2.0.1"+ }+ },+ "node_modules/remark-admonitions/node_modules/bail": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz",+ "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/remark-admonitions/node_modules/is-buffer": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz",+ "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/remark-admonitions/node_modules/is-plain-obj": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",+ "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/remark-admonitions/node_modules/trough": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz",+ "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/remark-admonitions/node_modules/unified": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/unified/-/unified-8.4.2.tgz",+ "integrity": "sha512-JCrmN13jI4+h9UAyKEoGcDZV+i1E7BLFuG7OsaDvTXI5P0qhHX+vZO/kOhz9jn8HGENDKbwSeB0nVOg4gVStGA==",+ "dependencies": {+ "bail": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^2.0.0",+ "trough": "^1.0.0",+ "vfile": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-admonitions/node_modules/unist-util-stringify-position": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",+ "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",+ "dependencies": {+ "@types/unist": "^2.0.2"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-admonitions/node_modules/unist-util-visit": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz",+ "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "unist-util-is": "^4.0.0",+ "unist-util-visit-parents": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-admonitions/node_modules/unist-util-visit-parents": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz",+ "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "unist-util-is": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-admonitions/node_modules/vfile": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz",+ "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "is-buffer": "^2.0.0",+ "unist-util-stringify-position": "^2.0.0",+ "vfile-message": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-admonitions/node_modules/vfile-message": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz",+ "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "unist-util-stringify-position": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },"node_modules/remark-external-links": {"version": "8.0.0","resolved": "https://registry.npmjs.org/remark-external-links/-/remark-external-links-8.0.0.tgz",@@ -58898,6 +59117,61 @@}}},+ "rehype-parse": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/rehype-parse/-/rehype-parse-6.0.2.tgz",+ "integrity": "sha512-0S3CpvpTAgGmnz8kiCyFLGuW5yA4OQhyNTm/nwPopZ7+PI11WnGl1TTWTGv/2hPEe/g2jRLlhVVSsoDH8waRug==",+ "requires": {+ "hast-util-from-parse5": "^5.0.0",+ "parse5": "^5.0.0",+ "xtend": "^4.0.0"+ },+ "dependencies": {+ "ccount": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.1.0.tgz",+ "integrity": "sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg=="+ },+ "comma-separated-tokens": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz",+ "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw=="+ },+ "hast-util-from-parse5": {+ "version": "5.0.3",+ "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-5.0.3.tgz",+ "integrity": "sha512-gOc8UB99F6eWVWFtM9jUikjN7QkWxB3nY0df5Z0Zq1/Nkwl5V4hAAsl0tmwlgWl/1shlTF8DnNYLO8X6wRV9pA==",+ "requires": {+ "ccount": "^1.0.3",+ "hastscript": "^5.0.0",+ "property-information": "^5.0.0",+ "web-namespaces": "^1.1.2",+ "xtend": "^4.0.1"+ }+ },+ "hastscript": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-5.1.2.tgz",+ "integrity": "sha512-WlztFuK+Lrvi3EggsqOkQ52rKbxkXL3RwB6t5lwoa8QLMemoWfBuL43eDrwOamJyR7uKQKdmKYaBH1NZBiIRrQ==",+ "requires": {+ "comma-separated-tokens": "^1.0.0",+ "hast-util-parse-selector": "^2.0.0",+ "property-information": "^5.0.0",+ "space-separated-tokens": "^1.0.0"+ }+ },+ "parse5": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz",+ "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug=="+ },+ "space-separated-tokens": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz",+ "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA=="+ }+ }+ },"rehype-slug": {"version": "5.0.1","resolved": "https://registry.npmjs.org/rehype-slug/-/rehype-slug-5.0.1.tgz",@@ -58941,6 +59215,97 @@}}},+ "remark-admonitions": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/remark-admonitions/-/remark-admonitions-1.2.1.tgz",+ "integrity": "sha512-Ji6p68VDvD+H1oS95Fdx9Ar5WA2wcDA4kwrrhVU7fGctC6+d3uiMICu7w7/2Xld+lnU7/gi+432+rRbup5S8ow==",+ "requires": {+ "rehype-parse": "^6.0.2",+ "unified": "^8.4.2",+ "unist-util-visit": "^2.0.1"+ },+ "dependencies": {+ "bail": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.5.tgz",+ "integrity": "sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ=="+ },+ "is-buffer": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz",+ "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ=="+ },+ "is-plain-obj": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",+ "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA=="+ },+ "trough": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz",+ "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA=="+ },+ "unified": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/unified/-/unified-8.4.2.tgz",+ "integrity": "sha512-JCrmN13jI4+h9UAyKEoGcDZV+i1E7BLFuG7OsaDvTXI5P0qhHX+vZO/kOhz9jn8HGENDKbwSeB0nVOg4gVStGA==",+ "requires": {+ "bail": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^2.0.0",+ "trough": "^1.0.0",+ "vfile": "^4.0.0"+ }+ },+ "unist-util-stringify-position": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz",+ "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==",+ "requires": {+ "@types/unist": "^2.0.2"+ }+ },+ "unist-util-visit": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-2.0.3.tgz",+ "integrity": "sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==",+ "requires": {+ "@types/unist": "^2.0.0",+ "unist-util-is": "^4.0.0",+ "unist-util-visit-parents": "^3.0.0"+ }+ },+ "unist-util-visit-parents": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-3.1.1.tgz",+ "integrity": "sha512-1KROIZWo6bcMrZEwiH2UrXDyalAa0uqzWCxCJj6lPOvTve2WkfgCytoDTPaMnodXh1WrXOq0haVYHj99ynJlsg==",+ "requires": {+ "@types/unist": "^2.0.0",+ "unist-util-is": "^4.0.0"+ }+ },+ "vfile": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-4.2.1.tgz",+ "integrity": "sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==",+ "requires": {+ "@types/unist": "^2.0.0",+ "is-buffer": "^2.0.0",+ "unist-util-stringify-position": "^2.0.0",+ "vfile-message": "^2.0.0"+ }+ },+ "vfile-message": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz",+ "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==",+ "requires": {+ "@types/unist": "^2.0.0",+ "unist-util-stringify-position": "^2.0.0"+ }+ }+ }+ },"remark-external-links": {"version": "8.0.0","resolved": "https://registry.npmjs.org/remark-external-links/-/remark-external-links-8.0.0.tgz",@@ -61422,7 +61787,7 @@"@mdx-js/loader": "^1.6.22","@mdx-js/react": "^1.6.22","@next/mdx": "^12.0.4",- "@radix-ui/react-accordion": "*",+ "@radix-ui/react-accordion": "^1.0.1","@tailwindcss/typography": "^0.4.1","@types/node": "^17.0.12","@types/react": "17.0.39",@@ -61450,6 +61815,7 @@"react-markdown": "^8.0.3","react-syntax-highlighter": "^15.3.1","remark": "^14.0.2",+ "remark-admonitions": "*","remark-html": "^15.0.0","remark-mdx": "^2.0.0-rc.2","remark-prism": "^1.3.6",