Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: add new Form components

Jonathan Summers-Muirbba7ab3754f7
diff --git a/studio/components/ui/Forms/AutoSchemaForm.tsx b/studio/components/ui/Forms/AutoSchemaForm.tsx
index bfaac8f7e58..503b5de9a90 100644
--- a/studio/components/ui/Forms/AutoSchemaForm.tsx
+++ b/studio/components/ui/Forms/AutoSchemaForm.tsx
@@ -1,163 +1,134 @@
import { Button, Form, Input, InputNumber, Toggle } from '@supabase/ui'
+
import { useStore } from 'hooks'
import React from 'react'
+import { boolean, number, object, string } from 'yup'
+import {
+ FormActions,
+ FormHeader,
+ FormPanel,
+ FormSection,
+ FormSectionContent,
+ FormSectionLabel,
+} from './'
const AutoSchemaForm = () => {
- const { authConfig, ui } = useStore()
-
- // panel
- const Panel = ({
- children,
- header,
- footer,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- footer?: React.ReactNode
- }) => (
- <div
- className="
- bg-scale-100
- dark:bg-scale-300
-
- border-scale-400 overflow-hidden rounded-md border shadow"
- >
- {header && (
- <div className="bg-scale-100 dark:bg-scale-200 border-scale-400 border-b px-8 py-4">
- {header}
- </div>
- )}
- <div className="space-y-6 py-6">{children}</div>
- {footer}
- </div>
- )
+ const { authConfig } = useStore()
- const Section = ({
- children,
- header,
- }: {
- children: React.ReactNode
- header?: React.ReactNode
- }) => (
- <div className="grid grid-cols-12 gap-6 px-8 py-2">
- {header}
- {children}
- </div>
- )
-
- const SectionLabel = ({ children }: { children: React.ReactNode | string }) => {
- return <label className="text-scale-1200 col-span-12 text-sm lg:col-span-4">{children}</label>
- }
- const SectionContent = ({ children }: { children: React.ReactNode | string }) => {
- return <div className="col-span-12 flex flex-col gap-6 lg:col-span-8">{children}</div>
+ const INITIAL_VALUES = {
+ DISABLE_SIGNUP: !authConfig.config.DISABLE_SIGNUP,
+ JWT_EXP: authConfig.config.JWT_EXP,
+ SITE_URL: authConfig.config.SITE_URL,
+ SECURITY_REFRESH_TOKEN_REUSE_INTERVAL: authConfig.config.SECURITY_REFRESH_TOKEN_REUSE_INTERVAL,
}
+ const schema = object({
+ DISABLE_SIGNUP: boolean().required(),
+ SITE_URL: string().required('Must have a Site URL'),
+ JWT_EXP: number()
+ .max(604800, 'Must be less than 604800')
+ .required('Must have a JWT expiry value'),
+ SECURITY_REFRESH_TOKEN_REUSE_INTERVAL: number()
+ .min(0, 'Must be a value more than 0')
+ .required('Must have a Reuse Interval value'),
+ })
+
return (
<>
<Form
id="auth-config-general-form"
- initialValues={{
- DISABLE_SIGNUP: !authConfig.config.DISABLE_SIGNUP,
- JWT_EXP: authConfig.config.JWT_EXP,
- SITE_URL: authConfig.config.SITE_URL,
- SECURITY_REFRESH_TOKEN_REUSE_INTERVAL:
- authConfig.config.SECURITY_REFRESH_TOKEN_REUSE_INTERVAL,
- }}
- onSubmit={async (values: any, { setSubmitting }: any) => {
- const payload = values
+ initialValues={INITIAL_VALUES}
+ onSubmit={async (values: any, { setSubmitting, resetForm }: any) => {
+ const payload = { ...values }
payload.DISABLE_SIGNUP = !values.DISABLE_SIGNUP
- console.log('payload', payload)
try {
setSubmitting(true)
await authConfig.update(payload)
setSubmitting(false)
+ resetForm({ values: values, initialValues: values })
} catch (error) {
setSubmitting(false)
}
}}
- validate={(values: any) => {
- const errors: any = {}
- // if (!values.jwt_expiry) {
- // errors.jwt_expiry = 'This is required'
- // }
- // if (values.jwt_expiry > 604800) {
- // errors.jwt_expiry =
- // 'The maxiumum allowed is 604,800 seconds. Use a smaller number of seconds.'
- // }
- return errors
- }}
+ validationSchema={schema}
>
- {({ isSubmitting, handleReset, values }: any) => (
- <Panel
- footer={
- <>
+ {({ isSubmitting, handleReset, values, initialValues }: any) => {
+ const hasChanges = JSON.stringify(values) !== JSON.stringify(initialValues)
+ return (
+ <>
+ <Button onClick={() => handleReset()} htmlType="button">
+ reset form
+ </Button>
+ <FormHeader
+ title="General settings"
+ description={`URLs that auth providers are permitted to redirect to post authentication`}
+ />
+
+ <FormPanel
+ disabled={true}
+ footer={
+ <>
+ <FormActions
+ handleReset={handleReset}
+ isSubmitting={isSubmitting}
+ hasChanges={hasChanges}
+ />
+ {hasChanges && 'Need to save changes'}
+ </>
+ }
+ >
+ <FormSection header={<FormSectionLabel>User Signups</FormSectionLabel>}>
+ <FormSectionContent>
+ {/* <div className="flex flex-col justify-between space-y-2">
+ <div className="shimmering-loader mx-1 w-2/3 rounded py-3" />
+ </div>
+ <div className="shimmering-loader mx-1 w-1/3 rounded py-3"></div> */}
+ <Toggle
+ id="DISABLE_SIGNUP"
+ size="small"
+ label="Allow new users to sign up"
+ layout="flex"
+ descriptionText="If this is disabled, new users will not be able to sign up to your application."
+ />
+ </FormSectionContent>
+ </FormSection>
<div className="border-scale-400 border-t"></div>
- <div className="flex justify-end gap-2 py-3 px-6">
- <Button type="default" htmlType="reset" onClick={() => handleReset()}>
- Cancel
- </Button>
- <Button
- loading={isSubmitting}
- type="primary"
- htmlType="submit"
- form="auth-config-general-form"
- >
- Save
- </Button>
- </div>
- </>
- }
- >
- <Section header={<SectionLabel>User Signups</SectionLabel>}>
- <SectionContent>
- <Toggle
- id="DISABLE_SIGNUP"
- size="small"
- className="col-span-8"
- label="Allow new users to sign up"
- layout="flex"
- descriptionText="If this is disabled, new users will not be able to sign up to your application."
- />
- </SectionContent>
- </Section>
- <div className="border-scale-400 border-t"></div>
- <Section header={<SectionLabel>User Sessions</SectionLabel>}>
- <SectionContent>
- {/**
- *
- * permitted redirects
- * for anything on that domain
- *
- * check with @kangming about this
- *
- */}
- <Input
- id="SITE_URL"
- size="small"
- className="col-span-8"
- label="Site URL"
- descriptionText="The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails."
- />
- <InputNumber
- id="JWT_EXP"
- size="small"
- className="col-span-8"
- label="JWT expiry limit"
- descriptionText="How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week)."
- />
- {/* // min 0 */}
- <InputNumber
- id="SECURITY_REFRESH_TOKEN_REUSE_INTERVAL"
- size="small"
- min={0}
- className="col-span-8"
- label="Reuse Interval"
- descriptionText="Time interval where the same refresh token can be used to request for an access token."
- />
- </SectionContent>
- </Section>
- </Panel>
- )}
+ <FormSection header={<FormSectionLabel>User Sessions</FormSectionLabel>}>
+ <FormSectionContent>
+ {/**
+ *
+ * permitted redirects
+ * for anything on that domain
+ *
+ * check with @kangming about this
+ *
+ */}
+ <Input
+ id="SITE_URL"
+ size="small"
+ label="Site URL"
+ descriptionText="The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails."
+ />
+ <InputNumber
+ id="JWT_EXP"
+ size="small"
+ label="JWT expiry limit"
+ descriptionText="How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week)."
+ />
+ {/* // min 0 */}
+ <InputNumber
+ id="SECURITY_REFRESH_TOKEN_REUSE_INTERVAL"
+ size="small"
+ min={0}
+ label="Reuse Interval"
+ descriptionText="Time interval where the same refresh token can be used to request for an access token."
+ />
+ </FormSectionContent>
+ </FormSection>
+ </FormPanel>
+ </>
+ )
+ }}
</Form>
</>
)
diff --git a/studio/components/ui/Forms/FormActions.tsx b/studio/components/ui/Forms/FormActions.tsx
new file mode 100644
index 00000000000..875f4ef5181
--- /dev/null
+++ b/studio/components/ui/Forms/FormActions.tsx
@@ -0,0 +1,35 @@
+import { Button } from '@supabase/ui'
+
+interface Props {
+ /**
+ * Handling a submitting/loading state
+ */
+ isSubmitting?: boolean
+ /**
+ * Handling a reset/cancel of the form
+ */
+ handleReset: () => void
+
+ hasChanges: boolean | undefined
+}
+
+const FormActions = ({ isSubmitting, handleReset, hasChanges = undefined }: Props) => {
+ return (
+ <div className="flex justify-end gap-2 py-3 px-6">
+ <Button type="default" htmlType="reset" onClick={() => handleReset()}>
+ Cancel
+ </Button>
+ <Button
+ disabled={!hasChanges && hasChanges !== undefined}
+ loading={isSubmitting}
+ type="primary"
+ htmlType="submit"
+ form="auth-config-general-form"
+ >
+ Save
+ </Button>
+ </div>
+ )
+}
+
+export { FormActions }
diff --git a/studio/components/ui/Forms/FormPanel.tsx b/studio/components/ui/Forms/FormPanel.tsx
new file mode 100644
index 00000000000..148c686c498
--- /dev/null
+++ b/studio/components/ui/Forms/FormPanel.tsx
@@ -0,0 +1,33 @@
+interface Props {
+ children: React.ReactNode
+ header?: React.ReactNode
+ footer?: React.ReactNode
+ /**
+ * Fades the panel and clicks are disabled
+ */
+ disabled?: boolean
+}
+
+const FormPanel = ({ children, header, footer }: Props) => (
+ <div
+ className="
+ bg-scale-100
+ dark:bg-scale-300
+ border-scale-400 overflow-hidden rounded-md border shadow"
+ >
+ {header && (
+ <div className="bg-scale-100 dark:bg-scale-200 border-scale-400 border-b px-8 py-4">
+ {header}
+ </div>
+ )}
+ <div className="space-y-6 py-6">{children}</div>
+ {footer && (
+ <>
+ <div className="border-scale-400 border-t"></div>
+ {footer}
+ </>
+ )}
+ </div>
+)
+
+export { FormPanel }
diff --git a/studio/components/ui/Forms/FormSection.tsx b/studio/components/ui/Forms/FormSection.tsx
new file mode 100644
index 00000000000..e1a7684672c
--- /dev/null
+++ b/studio/components/ui/Forms/FormSection.tsx
@@ -0,0 +1,21 @@
+const FormSection = ({
+ children,
+ header,
+}: {
+ children: React.ReactNode
+ header?: React.ReactNode
+}) => (
+ <div className="grid grid-cols-12 gap-6 px-8 py-2">
+ {header}
+ {children}
+ </div>
+)
+
+const FormSectionLabel = ({ children }: { children: React.ReactNode | string }) => {
+ return <label className="text-scale-1200 col-span-12 text-sm lg:col-span-4">{children}</label>
+}
+const FormSectionContent = ({ children }: { children: React.ReactNode | string }) => {
+ return <div className="col-span-12 flex flex-col gap-6 lg:col-span-8">{children}</div>
+}
+
+export { FormSection, FormSectionContent, FormSectionLabel }
diff --git a/studio/components/ui/Forms/index.tsx b/studio/components/ui/Forms/index.tsx
index 5e6e7ce4d0b..900d9963b4f 100644
--- a/studio/components/ui/Forms/index.tsx
+++ b/studio/components/ui/Forms/index.tsx
@@ -1,3 +1,6 @@
export * from './FormsContainer'
export * from './AutoSchemaForm'
export * from './FormHeader'
+export * from './FormSection'
+export * from './FormPanel'
+export * from './FormActions'
diff --git a/studio/package-lock.json b/studio/package-lock.json
index 17c481ddec6..e8f58936685 100644
--- a/studio/package-lock.json
+++ b/studio/package-lock.json
@@ -22,7 +22,7 @@
"@supabase/react-data-grid": "^7.1.0-beta.7",
"@supabase/shared-types": "^0.1.18",
"@supabase/supabase-js": "^1.35.3",
- "@supabase/ui": "0.37.0-alpha.55",
+ "@supabase/ui": "0.37.0-alpha.63",
"ajv": "^8.6.3",
"analytics-node": "^3.5.0",
"clipboard": "^2.0.8",
@@ -5152,9 +5152,9 @@
}
},
"node_modules/@react-dnd/asap": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@react-dnd/asap/-/asap-4.0.0.tgz",
- "integrity": "sha512-0XhqJSc6pPoNnf8DhdsPHtUhRzZALVzYMTzRwV4VI6DJNJ/5xxfL9OQUwb8IH5/2x7lSf7nAZrnzUD+16VyOVQ=="
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/@react-dnd/asap/-/asap-4.0.1.tgz",
+ "integrity": "sha512-kLy0PJDDwvwwTXxqTFNAAllPHD73AycE9ypWeln/IguoGBEbvFcPDbCV03G52bEcC5E+YgupBE0VzHGdC8SIXg=="
},
"node_modules/@react-dnd/invariant": {
"version": "2.0.0",
@@ -8311,6 +8311,35 @@
"react-dom": "^16.14 || ^17.0.0"
}
},
+ "node_modules/@supabase/grid/node_modules/react-dnd": {
+ "version": "14.0.5",
+ "resolved": "https://registry.npmjs.org/react-dnd/-/react-dnd-14.0.5.tgz",
+ "integrity": "sha512-9i1jSgbyVw0ELlEVt/NkCUkxy1hmhJOkePoCH713u75vzHGyXhPDm28oLfc2NMSBjZRM1Y+wRjHXJT3sPrTy+A==",
+ "dependencies": {
+ "@react-dnd/invariant": "^2.0.0",
+ "@react-dnd/shallowequal": "^2.0.0",
+ "dnd-core": "14.0.1",
+ "fast-deep-equal": "^3.1.3",
+ "hoist-non-react-statics": "^3.3.2"
+ },
+ "peerDependencies": {
+ "@types/hoist-non-react-statics": ">= 3.3.1",
+ "@types/node": ">= 12",
+ "@types/react": ">= 16",
+ "react": ">= 16.14"
+ },
+ "peerDependenciesMeta": {
+ "@types/hoist-non-react-statics": {
+ "optional": true
+ },
+ "@types/node": {
+ "optional": true
+ },
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@supabase/postgres-meta": {
"version": "0.26.1",
"resolved": "https://registry.npmjs.org/@supabase/postgres-meta/-/postgres-meta-0.26.1.tgz",
@@ -8380,9 +8409,9 @@
}
},
"node_modules/@supabase/ui": {
- "version": "0.37.0-alpha.55",
- "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.37.0-alpha.55.tgz",
- "integrity": "sha512-TInf8ZEnQr0C3PPyCkqvOyrV8KhB2JjCwzdfBKYkMrBEXPYaRKVzAch3ecz4GOsanAHSI0w9t6x6MBAOVVg07w==",
+ "version": "0.37.0-alpha.63",
+ "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.37.0-alpha.63.tgz",
+ "integrity": "sha512-VMFAymtFzdZaviYFvEOfZYKT72A2yq/S023aXsbm0g7NIxedcCBhu60dYS3DlHV0zqzFvkg6b6VHlfRk9sKoEA==",
"dependencies": {
"@headlessui/react": "^1.0.0",
"@mertasan/tailwindcss-variables": "^2.0.1",
@@ -23120,9 +23149,9 @@
}
},
"node_modules/proxy-compare": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.0.2.tgz",
- "integrity": "sha512-3qUXJBariEj3eO90M3Rgqq3+/P5Efl0t/dl9g/1uVzIQmO3M+ql4hvNH3mYdu8H+1zcKv07YvL55tsY74jmH1A=="
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.1.0.tgz",
+ "integrity": "sha512-wapJ3h/w8fRSyPEG0y2WMV+tf9xwvj3nxM6aHVuPEOwKs/t5xLSKZb44ubNTiqq2T6lmEMHEWGMTaU2L6ddaFA=="
},
"node_modules/proxy-from-env": {
"version": "1.1.0",
@@ -23503,35 +23532,6 @@
"react-dom": "^16.9.0 || ^17"
}
},
- "node_modules/react-dnd": {
- "version": "14.0.5",
- "resolved": "https://registry.npmjs.org/react-dnd/-/react-dnd-14.0.5.tgz",
- "integrity": "sha512-9i1jSgbyVw0ELlEVt/NkCUkxy1hmhJOkePoCH713u75vzHGyXhPDm28oLfc2NMSBjZRM1Y+wRjHXJT3sPrTy+A==",
- "dependencies": {
- "@react-dnd/invariant": "^2.0.0",
- "@react-dnd/shallowequal": "^2.0.0",
- "dnd-core": "14.0.1",
- "fast-deep-equal": "^3.1.3",
- "hoist-non-react-statics": "^3.3.2"
- },
- "peerDependencies": {
- "@types/hoist-non-react-statics": ">= 3.3.1",
- "@types/node": ">= 12",
- "@types/react": ">= 16",
- "react": ">= 16.14"
- },
- "peerDependenciesMeta": {
- "@types/hoist-non-react-statics": {
- "optional": true
- },
- "@types/node": {
- "optional": true
- },
- "@types/react": {
- "optional": true
- }
- }
- },
"node_modules/react-dnd-html5-backend": {
"version": "14.1.0",
"resolved": "https://registry.npmjs.org/react-dnd-html5-backend/-/react-dnd-html5-backend-14.1.0.tgz",
@@ -24297,12 +24297,12 @@
}
},
"node_modules/react-tracked": {
- "version": "1.7.6",
- "resolved": "https://registry.npmjs.org/react-tracked/-/react-tracked-1.7.6.tgz",
- "integrity": "sha512-yqfkqj4UZpsadBLIHnPLrc8a0SLgjKoSQrdyipfWeXvLnPl+/AV8MrqRVbNogUJsqHOo+ojlWy2PMxuZPVcPnQ==",
+ "version": "1.7.9",
+ "resolved": "https://registry.npmjs.org/react-tracked/-/react-tracked-1.7.9.tgz",
+ "integrity": "sha512-axBJegjdQbsHizZ0DtEpM4g3sDW1SF5mq9j9bk77mRbcFR+OeBR4vLAqO7E6/DOPeGdDDqLBBIFBy5tmjnOd+A==",
"dependencies": {
- "proxy-compare": "2.0.2",
- "use-context-selector": "1.3.9"
+ "proxy-compare": "2.1.0",
+ "use-context-selector": "1.3.10"
},
"peerDependencies": {
"react": ">=16.8.0",
@@ -24319,6 +24319,25 @@
}
}
},
+ "node_modules/react-tracked/node_modules/use-context-selector": {
+ "version": "1.3.10",
+ "resolved": "https://registry.npmjs.org/use-context-selector/-/use-context-selector-1.3.10.tgz",
+ "integrity": "sha512-xprS9YQ0F56IPTOjev+Lm+TWZD7Pa20+slBeaClt4YtOOoHKFOF3A9Cfr7LDcX2QIZ9VTyxXCnA6/WhL4Cm47g==",
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": "*",
+ "react-native": "*",
+ "scheduler": ">=0.19.0"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ },
+ "react-native": {
+ "optional": true
+ }
+ }
+ },
"node_modules/react-transition-group": {
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.9.0.tgz",
@@ -28362,25 +28381,6 @@
"react": "^16.8.0 || ^17.0.0"
}
},
- "node_modules/use-context-selector": {
- "version": "1.3.9",
- "resolved": "https://registry.npmjs.org/use-context-selector/-/use-context-selector-1.3.9.tgz",
- "integrity": "sha512-YgzRyeFjoJXwFn2qLVAuIbV6EQ8DOuzu3SS/eiCxyAyvBhcn02jYSz8c5v22QQU3LW6Ez/Iyo62kKvS7Kdqt3A==",
- "peerDependencies": {
- "react": ">=16.8.0",
- "react-dom": "*",
- "react-native": "*",
- "scheduler": ">=0.19.0"
- },
- "peerDependenciesMeta": {
- "react-dom": {
- "optional": true
- },
- "react-native": {
- "optional": true
- }
- }
- },
"node_modules/use-isomorphic-layout-effect": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz",
@@ -33934,9 +33934,9 @@
}
},
"@react-dnd/asap": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@react-dnd/asap/-/asap-4.0.0.tgz",
- "integrity": "sha512-0XhqJSc6pPoNnf8DhdsPHtUhRzZALVzYMTzRwV4VI6DJNJ/5xxfL9OQUwb8IH5/2x7lSf7nAZrnzUD+16VyOVQ=="
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/@react-dnd/asap/-/asap-4.0.1.tgz",
+ "integrity": "sha512-kLy0PJDDwvwwTXxqTFNAAllPHD73AycE9ypWeln/IguoGBEbvFcPDbCV03G52bEcC5E+YgupBE0VzHGdC8SIXg=="
},
"@react-dnd/invariant": {
"version": "2.0.0",
@@ -36199,6 +36199,20 @@
"react-tiny-popover": "^6.0.5",
"react-tracked": "^1.7.4",
"scheduler": "^0.20.2"
+ },
+ "dependencies": {
+ "react-dnd": {
+ "version": "14.0.5",
+ "resolved": "https://registry.npmjs.org/react-dnd/-/react-dnd-14.0.5.tgz",
+ "integrity": "sha512-9i1jSgbyVw0ELlEVt/NkCUkxy1hmhJOkePoCH713u75vzHGyXhPDm28oLfc2NMSBjZRM1Y+wRjHXJT3sPrTy+A==",
+ "requires": {
+ "@react-dnd/invariant": "^2.0.0",
+ "@react-dnd/shallowequal": "^2.0.0",
+ "dnd-core": "14.0.1",
+ "fast-deep-equal": "^3.1.3",
+ "hoist-non-react-statics": "^3.3.2"
+ }
+ }
}
},
"@supabase/postgres-meta": {
@@ -36262,9 +36276,9 @@
}
},
"@supabase/ui": {
- "version": "0.37.0-alpha.55",
- "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.37.0-alpha.55.tgz",
- "integrity": "sha512-TInf8ZEnQr0C3PPyCkqvOyrV8KhB2JjCwzdfBKYkMrBEXPYaRKVzAch3ecz4GOsanAHSI0w9t6x6MBAOVVg07w==",
+ "version": "0.37.0-alpha.63",
+ "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.37.0-alpha.63.tgz",
+ "integrity": "sha512-VMFAymtFzdZaviYFvEOfZYKT72A2yq/S023aXsbm0g7NIxedcCBhu60dYS3DlHV0zqzFvkg6b6VHlfRk9sKoEA==",
"requires": {
"@headlessui/react": "^1.0.0",
"@mertasan/tailwindcss-variables": "^2.0.1",
@@ -47701,9 +47715,9 @@
}
},
"proxy-compare": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.0.2.tgz",
- "integrity": "sha512-3qUXJBariEj3eO90M3Rgqq3+/P5Efl0t/dl9g/1uVzIQmO3M+ql4hvNH3mYdu8H+1zcKv07YvL55tsY74jmH1A=="
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-compare/-/proxy-compare-2.1.0.tgz",
+ "integrity": "sha512-wapJ3h/w8fRSyPEG0y2WMV+tf9xwvj3nxM6aHVuPEOwKs/t5xLSKZb44ubNTiqq2T6lmEMHEWGMTaU2L6ddaFA=="
},
"proxy-from-env": {
"version": "1.1.0",
@@ -47997,18 +48011,6 @@
"react-popper": "^2.2.5"
}
},
- "react-dnd": {
- "version": "14.0.5",
- "resolved": "https://registry.npmjs.org/react-dnd/-/react-dnd-14.0.5.tgz",
- "integrity": "sha512-9i1jSgbyVw0ELlEVt/NkCUkxy1hmhJOkePoCH713u75vzHGyXhPDm28oLfc2NMSBjZRM1Y+wRjHXJT3sPrTy+A==",
- "requires": {
- "@react-dnd/invariant": "^2.0.0",
- "@react-dnd/shallowequal": "^2.0.0",
- "dnd-core": "14.0.1",
- "fast-deep-equal": "^3.1.3",
- "hoist-non-react-statics": "^3.3.2"
- }
- },
"react-dnd-html5-backend": {
"version": "14.1.0",
"resolved": "https://registry.npmjs.org/react-dnd-html5-backend/-/react-dnd-html5-backend-14.1.0.tgz",
@@ -48566,12 +48568,20 @@
"requires": {}
},
"react-tracked": {
- "version": "1.7.6",
- "resolved": "https://registry.npmjs.org/react-tracked/-/react-tracked-1.7.6.tgz",
- "integrity": "sha512-yqfkqj4UZpsadBLIHnPLrc8a0SLgjKoSQrdyipfWeXvLnPl+/AV8MrqRVbNogUJsqHOo+ojlWy2PMxuZPVcPnQ==",
+ "version": "1.7.9",
+ "resolved": "https://registry.npmjs.org/react-tracked/-/react-tracked-1.7.9.tgz",
+ "integrity": "sha512-axBJegjdQbsHizZ0DtEpM4g3sDW1SF5mq9j9bk77mRbcFR+OeBR4vLAqO7E6/DOPeGdDDqLBBIFBy5tmjnOd+A==",
"requires": {
- "proxy-compare": "2.0.2",
- "use-context-selector": "1.3.9"
+ "proxy-compare": "2.1.0",
+ "use-context-selector": "1.3.10"
+ },
+ "dependencies": {
+ "use-context-selector": {
+ "version": "1.3.10",
+ "resolved": "https://registry.npmjs.org/use-context-selector/-/use-context-selector-1.3.10.tgz",
+ "integrity": "sha512-xprS9YQ0F56IPTOjev+Lm+TWZD7Pa20+slBeaClt4YtOOoHKFOF3A9Cfr7LDcX2QIZ9VTyxXCnA6/WhL4Cm47g==",
+ "requires": {}
+ }
}
},
"react-transition-group": {
@@ -51629,12 +51639,6 @@
"dev": true,
"requires": {}
},
- "use-context-selector": {
- "version": "1.3.9",
- "resolved": "https://registry.npmjs.org/use-context-selector/-/use-context-selector-1.3.9.tgz",
- "integrity": "sha512-YgzRyeFjoJXwFn2qLVAuIbV6EQ8DOuzu3SS/eiCxyAyvBhcn02jYSz8c5v22QQU3LW6Ez/Iyo62kKvS7Kdqt3A==",
- "requires": {}
- },
"use-isomorphic-layout-effect": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz",
diff --git a/studio/package.json b/studio/package.json
index 80878dd1d51..a532dc6b776 100644
--- a/studio/package.json
+++ b/studio/package.json
@@ -26,7 +26,7 @@
"@supabase/react-data-grid": "^7.1.0-beta.7",
"@supabase/shared-types": "^0.1.18",
"@supabase/supabase-js": "^1.35.3",
- "@supabase/ui": "0.37.0-alpha.55",
+ "@supabase/ui": "0.37.0-alpha.63",
"ajv": "^8.6.3",
"analytics-node": "^3.5.0",
"clipboard": "^2.0.8",
diff --git a/studio/pages/project/[ref]/auth/settings-new.tsx b/studio/pages/project/[ref]/auth/settings-new.tsx
index 8110043c108..05f4da132c5 100644
--- a/studio/pages/project/[ref]/auth/settings-new.tsx
+++ b/studio/pages/project/[ref]/auth/settings-new.tsx
@@ -23,14 +23,7 @@ const PageLayout: NextPageWithLayout = () => {
if (authConfig)
return (
<FormsContainer>
- <div>
- <FormHeader
- title="General settings"
- description={`URLs that auth providers are permitted to redirect to post authentication`}
- />
- <AutoSchemaForm />
- </div>
-
+ <AutoSchemaForm />
<CommaSeperatedString />
<AuthProvidersForm />
</FormsContainer>