Compare commits
31 Commits
@nhost/vue
...
@nhost/rea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b6df8b9d6 | ||
|
|
a2af5a674d | ||
|
|
c33c1fd6b9 | ||
|
|
041d9b98e3 | ||
|
|
e4b4940397 | ||
|
|
be91f4ed2a | ||
|
|
ec6ba846cf | ||
|
|
d8d8394b3b | ||
|
|
f051a121b2 | ||
|
|
6ed46ce2d4 | ||
|
|
bfb4c1a6cc | ||
|
|
776c8f9237 | ||
|
|
c0773d82e9 | ||
|
|
c46b1383f2 | ||
|
|
beed2eba21 | ||
|
|
70f9610041 | ||
|
|
e91de1088d | ||
|
|
ce1ee40dab | ||
|
|
bd7929f5ed | ||
|
|
2c8559a319 | ||
|
|
bd5ea5ee3a | ||
|
|
3538dbac39 | ||
|
|
03b5cda69a | ||
|
|
4329d04854 | ||
|
|
ca50c5ce0c | ||
|
|
a3271ed014 | ||
|
|
d4fc99a77c | ||
|
|
d90fcf3c24 | ||
|
|
001b3dccec | ||
|
|
cbb1fc5bc8 | ||
|
|
0ec3abf47c |
89
.github/workflows/renovate.yaml
vendored
89
.github/workflows/renovate.yaml
vendored
@@ -1,89 +0,0 @@
|
||||
name: Renovate
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
types: [closed]
|
||||
paths-ignore:
|
||||
- 'assets/**'
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
env:
|
||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||
TURBO_TEAM: nhost
|
||||
|
||||
jobs:
|
||||
renovate-changeset:
|
||||
name: Add changeset
|
||||
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'renovate/')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
# * Install Node and dependencies. Package downloads will be cached for the next jobs.
|
||||
- name: Install Node and dependencies
|
||||
uses: ./.github/actions/install-dependencies
|
||||
with:
|
||||
TURBO_TOKEN: ${{ env.TURBO_TOKEN }}
|
||||
TURBO_TEAM: ${{ env.TURBO_TEAM }}
|
||||
BUILD: 'none'
|
||||
- name: Determine bumps
|
||||
id: bumps
|
||||
run: |
|
||||
LAST_NON_PR_SHA=$(git log --no-merges main origin/${{ github.head_ref }} --format=format:%h -- | head -2 | tail -1)
|
||||
echo "result<<EOF" >> $GITHUB_OUTPUT
|
||||
pnpm recursive list --depth -1 --parseable \
|
||||
--filter='!nhost-root' \
|
||||
--filter=[$LAST_NON_PR_SHA] \
|
||||
| xargs -I@ jq ".name" @/package.json \
|
||||
| sort \
|
||||
| uniq -u \
|
||||
| awk '$0=$0": patch"' \
|
||||
>> $GITHUB_OUTPUT
|
||||
echo 'EOF' >> $GITHUB_OUTPUT
|
||||
- name: Install dictionary
|
||||
if: steps.bumps.outputs.result != ''
|
||||
run: sudo apt-get install wbritish
|
||||
- name: Generate changeset file name
|
||||
id: file_name
|
||||
if: steps.bumps.outputs.result != ''
|
||||
run: |
|
||||
FILE_NAME=$(shuf -n 3 /usr/share/dict/words | tr '\n' '-' | sed 's/-$//' | sed 's/'"'"'s//g' | tr '[:upper:]' '[:lower:]')
|
||||
echo "result=./.changeset/${FILE_NAME}.md" >> $GITHUB_OUTPUT
|
||||
- name: Create changeset file
|
||||
if: steps.bumps.outputs.result != ''
|
||||
run: |
|
||||
cat <<EOF > ${{ steps.file_name.outputs.result }}
|
||||
---
|
||||
${{ steps.bumps.outputs.result }}
|
||||
---
|
||||
|
||||
${{ github.event.pull_request.title }}
|
||||
EOF
|
||||
- name: Create Pull Request
|
||||
id: cpr
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
commit-message: ${{ github.event.pull_request.title }}
|
||||
branch: renovate-changesets
|
||||
delete-branch: true
|
||||
title: 'chore: create changesest from Renovate bumps'
|
||||
labels: |
|
||||
dependencies
|
||||
body: |
|
||||
This PR creates the changesets from the Renovate dependencies that have been merged to main.
|
||||
- name: Enable Pull Request Automerge
|
||||
if: steps.cpr.outputs.pull-request-operation == 'created'
|
||||
uses: peter-evans/enable-pull-request-automerge@v2
|
||||
with:
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
|
||||
- name: Auto approve
|
||||
if: steps.cpr.outputs.pull-request-operation == 'created'
|
||||
uses: juliangruber/approve-pull-request-action@v2
|
||||
with:
|
||||
github-token: ${{ secrets.GH_PAT }}
|
||||
number: ${{ steps.cpr.outputs.pull-request-number }}
|
||||
@@ -1,5 +1,29 @@
|
||||
# @nhost/dashboard
|
||||
|
||||
## 0.13.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- bfb4c1a6: chore(dashboard): remove `useAxios` property
|
||||
- d8d8394b: Dashboard: allow to override hasura admin secret in docker
|
||||
- Updated dependencies [ce1ee40d]
|
||||
- @nhost/nextjs@1.13.16
|
||||
- @nhost/react-apollo@5.0.11
|
||||
|
||||
## 0.13.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- beed2eba: Fix docker entrypoint for dashboard
|
||||
- 2c8559a3: fix(dashboard): refresh project list after deleting a project
|
||||
- 4329d048: chore(dashboard): bump `graphiql` dependencies
|
||||
|
||||
## 0.13.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- cbb1fc5b: chore(dashboard): cleanup GraphQL operations
|
||||
|
||||
## 0.13.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -20,6 +20,7 @@ ENV NEXT_PUBLIC_ENV dev
|
||||
ENV NEXT_PUBLIC_NHOST_PLATFORM false
|
||||
|
||||
# placeholders for URLs, will be replaced on runtime by entrypoint script
|
||||
ENV NEXT_PUBLIC_NHOST_ADMIN_SECRET __NEXT_PUBLIC_NHOST_ADMIN_SECRET__
|
||||
ENV NEXT_PUBLIC_NHOST_AUTH_URL __NEXT_PUBLIC_NHOST_AUTH_URL__
|
||||
ENV NEXT_PUBLIC_NHOST_FUNCTIONS_URL __NEXT_PUBLIC_NHOST_FUNCTIONS_URL__
|
||||
ENV NEXT_PUBLIC_NHOST_GRAPHQL_URL __NEXT_PUBLIC_NHOST_GRAPHQL_URL__
|
||||
|
||||
@@ -3,15 +3,17 @@
|
||||
set -euo pipefail
|
||||
|
||||
# read URLs from env variables (with defaults)
|
||||
NEXT_PUBLIC_NHOST_AUTH_URL="${NEXT_PUBLIC_NHOST_AUTH_URL:-"http://localhost:1337/v1/auth"}"
|
||||
NEXT_PUBLIC_NHOST_FUNCTIONS_URL="${NEXT_PUBLIC_NHOST_FUNCTIONS_URL:-"http://localhost:1337/v1/functions"}"
|
||||
NEXT_PUBLIC_NHOST_GRAPHQL_URL="${NEXT_PUBLIC_NHOST_GRAPHQL_URL:-"http://localhost:1337/v1/graphql"}"
|
||||
NEXT_PUBLIC_NHOST_STORAGE_URL="${NEXT_PUBLIC_NHOST_STORAGE_URL:-"http://localhost:1337/v1/storage"}"
|
||||
NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL="${NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL:-"http://localhost:9695"}"
|
||||
NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL="${NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL:-"http://localhost:9693"}"
|
||||
NEXT_PUBLIC_NHOST_HASURA_API_URL="${NEXT_PUBLIC_NHOST_HASURA_API_URL:-"http://localhost:8080"}"
|
||||
NEXT_PUBLIC_NHOST_ADMIN_SECRET="${NEXT_PUBLIC_NHOST_ADMIN_SECRET:-nhost-admin-secret}"
|
||||
NEXT_PUBLIC_NHOST_AUTH_URL="${NEXT_PUBLIC_NHOST_AUTH_URL:-http://localhost:1337/v1/auth}"
|
||||
NEXT_PUBLIC_NHOST_FUNCTIONS_URL="${NEXT_PUBLIC_NHOST_FUNCTIONS_URL:-http://localhost:1337/v1/functions}"
|
||||
NEXT_PUBLIC_NHOST_GRAPHQL_URL="${NEXT_PUBLIC_NHOST_GRAPHQL_URL:-http://localhost:1337/v1/graphql}"
|
||||
NEXT_PUBLIC_NHOST_STORAGE_URL="${NEXT_PUBLIC_NHOST_STORAGE_URL:-http://localhost:1337/v1/storage}"
|
||||
NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL="${NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL:-http://localhost:9695}"
|
||||
NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL="${NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL:-http://localhost:9693}"
|
||||
NEXT_PUBLIC_NHOST_HASURA_API_URL="${NEXT_PUBLIC_NHOST_HASURA_API_URL:-http://localhost:8080}"
|
||||
|
||||
# replace placeholders
|
||||
find dashboard -type f -exec sed -i "s~__NEXT_PUBLIC_NHOST_ADMIN_SECRET__~${NEXT_PUBLIC_NHOST_ADMIN_SECRET}~g" {} +
|
||||
find dashboard -type f -exec sed -i "s~__NEXT_PUBLIC_NHOST_AUTH_URL__~${NEXT_PUBLIC_NHOST_AUTH_URL}~g" {} +
|
||||
find dashboard -type f -exec sed -i "s~__NEXT_PUBLIC_NHOST_FUNCTIONS_URL__~${NEXT_PUBLIC_NHOST_FUNCTIONS_URL}~g" {} +
|
||||
find dashboard -type f -exec sed -i "s~__NEXT_PUBLIC_NHOST_GRAPHQL_URL__~${NEXT_PUBLIC_NHOST_GRAPHQL_URL}~g" {} +
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/dashboard",
|
||||
"version": "0.13.0",
|
||||
"version": "0.13.3",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
@@ -25,8 +25,8 @@
|
||||
"@emotion/styled": "^11.10.5",
|
||||
"@fontsource/inter": "^4.5.14",
|
||||
"@fontsource/roboto-mono": "^4.5.8",
|
||||
"@graphiql/react": "^0.15.0",
|
||||
"@graphiql/toolkit": "^0.8.0",
|
||||
"@graphiql/react": "^0.17.0",
|
||||
"@graphiql/toolkit": "^0.8.2",
|
||||
"@headlessui/react": "^1.6.5",
|
||||
"@heroicons/react": "^1.0.6",
|
||||
"@hookform/resolvers": "^2.9.10",
|
||||
@@ -37,7 +37,7 @@
|
||||
"@nhost/nextjs": "workspace:*",
|
||||
"@nhost/react-apollo": "workspace:*",
|
||||
"@segment/snippet": "^4.15.3",
|
||||
"@stripe/react-stripe-js": "^1.10.0",
|
||||
"@stripe/react-stripe-js": "^2.0.0",
|
||||
"@stripe/stripe-js": "^1.35.0",
|
||||
"@tailwindcss/forms": "^0.5.3",
|
||||
"@tanstack/react-query": "^4.16.1",
|
||||
@@ -48,7 +48,7 @@
|
||||
"clsx": "^1.2.1",
|
||||
"date-fns": "^2.29.3",
|
||||
"generate-password": "^1.7.0",
|
||||
"graphiql": "^2.2.0",
|
||||
"graphiql": "^2.4.0",
|
||||
"graphql": "^16.6.0",
|
||||
"graphql-request": "^4.3.0",
|
||||
"graphql-tag": "^2.12.6",
|
||||
|
||||
@@ -99,7 +99,6 @@ export function InviteAnnounce() {
|
||||
workspaceMemberInviteId: inviteId,
|
||||
isAccepted: false,
|
||||
},
|
||||
{ useAxios: false },
|
||||
);
|
||||
|
||||
if (ignoreError) {
|
||||
|
||||
@@ -12,8 +12,8 @@ export function WorkspaceInvoices() {
|
||||
|
||||
return (
|
||||
<div className="mt-18">
|
||||
<div className="mx-auto max-w-3xl font-display grid grid-flow-row gap-2 justify-start">
|
||||
<Text className="font-medium text-lg">Invoices</Text>
|
||||
<div className="mx-auto grid max-w-3xl grid-flow-row justify-start gap-2 font-display">
|
||||
<Text className="text-lg font-medium">Invoices</Text>
|
||||
|
||||
<Button
|
||||
variant="outlined"
|
||||
@@ -23,7 +23,6 @@ export function WorkspaceInvoices() {
|
||||
const { res, error } = await nhost.functions.call(
|
||||
'/stripe-create-portal',
|
||||
{ workspaceId: currentWorkspace.id },
|
||||
{ useAxios: false },
|
||||
);
|
||||
|
||||
if (error) {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
fragment GetAppRoles on apps {
|
||||
id
|
||||
slug
|
||||
subdomain
|
||||
name
|
||||
authUserDefaultAllowedRoles
|
||||
authUserDefaultRole
|
||||
}
|
||||
|
||||
query getAppRolesAndPermissions($id: uuid!) {
|
||||
app(id: $id) {
|
||||
...GetAppRoles
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
query getFunctionsLogs($subdomain: String!) {
|
||||
getFunctionLogs(subdomain: $subdomain) {
|
||||
functionPath
|
||||
createdAt
|
||||
message
|
||||
}
|
||||
}
|
||||
|
||||
query getFunctionLog($subdomain: String!, $functionPaths: [String!]) {
|
||||
getFunctionLogs(subdomain: $subdomain, functionPaths: $functionPaths) {
|
||||
functionPath
|
||||
createdAt
|
||||
message
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
query getGravatarSettings($id: uuid!) {
|
||||
app(id: $id) {
|
||||
authGravatarEnabled
|
||||
authGravatarDefault
|
||||
authGravatarRating
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
mutation restoreDatabaseBackup($appId: uuid!, $backupId: uuid!) {
|
||||
restoreDatabaseBackup(appId: $appId, backupId: $backupId)
|
||||
}
|
||||
|
||||
mutation scheduleRestoreDatabaseBackup($appId: uuid!, $backupId: uuid!) {
|
||||
scheduleRestoreDatabaseBackup(appId: $appId, backupId: $backupId)
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
import { useGetApplicationStateQuery } from '@/generated/graphql';
|
||||
import {
|
||||
GetOneUserDocument,
|
||||
useGetApplicationStateQuery,
|
||||
} from '@/generated/graphql';
|
||||
import { ApplicationStatus } from '@/types/application';
|
||||
import { discordAnnounce } from '@/utils/discordAnnounce';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
@@ -30,7 +33,7 @@ export function useCheckProvisioning() {
|
||||
|
||||
async function updateOwnCache() {
|
||||
await client.refetchQueries({
|
||||
include: ['getOneUser'],
|
||||
include: [GetOneUserDocument],
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import SettingsContainer from '@/components/settings/SettingsContainer';
|
||||
import SettingsLayout from '@/components/settings/SettingsLayout';
|
||||
import { useUI } from '@/context/UIContext';
|
||||
import {
|
||||
GetOneUserDocument,
|
||||
useDeleteApplicationMutation,
|
||||
useUpdateAppMutation,
|
||||
} from '@/generated/graphql';
|
||||
@@ -15,7 +16,6 @@ import { discordAnnounce } from '@/utils/discordAnnounce';
|
||||
import { slugifyString } from '@/utils/helpers';
|
||||
import getServerError from '@/utils/settings/getServerError';
|
||||
import { getToastStyleProps } from '@/utils/settings/settingsConstants';
|
||||
import { updateOwnCache } from '@/utils/updateOwnCache';
|
||||
import { useApolloClient } from '@apollo/client';
|
||||
import { yupResolver } from '@hookform/resolvers/yup';
|
||||
import { useRouter } from 'next/router';
|
||||
@@ -42,6 +42,7 @@ export default function SettingsGeneralPage() {
|
||||
const client = useApolloClient();
|
||||
const [deleteApplication] = useDeleteApplicationMutation({
|
||||
variables: { appId: currentApplication?.id },
|
||||
refetchQueries: [GetOneUserDocument],
|
||||
});
|
||||
const { currentWorkspace } = useCurrentWorkspaceAndApplication();
|
||||
const router = useRouter();
|
||||
@@ -134,7 +135,6 @@ export default function SettingsGeneralPage() {
|
||||
getToastStyleProps(),
|
||||
);
|
||||
await router.push('/');
|
||||
await updateOwnCache(client);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -553,8 +553,7 @@ export function NewProjectPageContent({
|
||||
<Text className="font-medium">Warning</Text>{' '}
|
||||
<Text className="font-medium">
|
||||
{submitState.error &&
|
||||
getErrorMessage(submitState.error, 'application')}{' '}
|
||||
asdsda
|
||||
getErrorMessage(submitState.error, 'application')}
|
||||
</Text>
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
2771
dashboard/src/utils/__generated__/graphql.ts
generated
2771
dashboard/src/utils/__generated__/graphql.ts
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,11 @@
|
||||
# @nhost/docs
|
||||
|
||||
## 0.0.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- bfb4c1a6: fix(docs): restore autogenerated `@nhost/nhost-js` docs
|
||||
|
||||
## 0.0.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -10,7 +10,7 @@ In this section:
|
||||
- [Overview](/reference/javascript)
|
||||
- [Authentication](/reference/javascript/auth)
|
||||
- [Storage](/reference/javascript/storage)
|
||||
- [Functions](/reference/javascript/functions)
|
||||
- [Functions](/reference/javascript/nhost-js/functions)
|
||||
- [GraphQL](/reference/javascript/graphql)
|
||||
|
||||
### React
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
---
|
||||
title: call()
|
||||
sidebar_label: call()
|
||||
slug: /reference/javascript/functions/call
|
||||
description: Use `nhost.functions.call` to call (sending a POST request to) a serverless function.
|
||||
custom_edit_url: https://github.com/nhost/nhost/edit/main/packages/nhost-js/src/clients/functions/index.ts#L55
|
||||
---
|
||||
|
||||
# `call()`
|
||||
|
||||
## Overload 1 of 2
|
||||
|
||||
Use `nhost.functions.call` to call (sending a POST request to) a serverless function.
|
||||
|
||||
:::caution Deprecated
|
||||
Axios will be replaced by cross-fetch in the near future. Only the headers configuration will be kept.
|
||||
:::
|
||||
|
||||
### Parameters
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">url</span>** <span className="optional-status">required</span> <code>string</code>
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">data</span>** <span className="optional-status">optional</span> <code>D</code>
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">config</span>** <span className="optional-status">optional</span> <code>AxiosRequestConfig<any> & { useAxios: "true" } & [`NhostFunctionCallConfig`](/reference/javascript/functions/types/nhost-function-call-config) & { useAxios: "true" }</code>
|
||||
|
||||
---
|
||||
|
||||
## Overload 2 of 2
|
||||
|
||||
Use `nhost.functions.call` to call (sending a POST request to) a serverless function.
|
||||
|
||||
```ts
|
||||
await nhost.functions.call('send-welcome-email', {
|
||||
email: 'joe@example.com',
|
||||
name: 'Joe Doe'
|
||||
})
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">url</span>** <span className="optional-status">required</span> <code>string</code>
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">data</span>** <span className="optional-status">required</span> <code>D</code>
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">config</span>** <span className="optional-status">optional</span> <code>[`NhostFunctionCallConfig`](/reference/javascript/functions/types/nhost-function-call-config) & { useAxios: "false" }</code>
|
||||
|
||||
---
|
||||
@@ -1,23 +0,0 @@
|
||||
---
|
||||
title: setAccessToken()
|
||||
sidebar_label: setAccessToken()
|
||||
slug: /reference/javascript/functions/set-access-token
|
||||
description: Use `nhost.functions.setAccessToken` to a set an access token to be used in subsequent functions requests. Note that if you're signin in users with `nhost.auth.signIn()` the access token will be set automatically.
|
||||
custom_edit_url: https://github.com/nhost/nhost/edit/main/packages/nhost-js/src/clients/functions/index.ts#L155
|
||||
---
|
||||
|
||||
# `setAccessToken()`
|
||||
|
||||
Use `nhost.functions.setAccessToken` to a set an access token to be used in subsequent functions requests. Note that if you're signin in users with `nhost.auth.signIn()` the access token will be set automatically.
|
||||
|
||||
```ts
|
||||
nhost.functions.setAccessToken('some-access-token')
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">accessToken</span>** <span className="optional-status">required</span> <code>undefined | string</code>
|
||||
|
||||
---
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
title: NhostFunctionsClient
|
||||
sidebar_label: Functions
|
||||
description: No description provided.
|
||||
slug: /reference/javascript/functions
|
||||
custom_edit_url: https://github.com/nhost/nhost/edit/main/docs/docs/reference/javascript/functions/index.mdx
|
||||
---
|
||||
|
||||
# `NhostFunctionsClient`
|
||||
|
||||
## Parameters
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">params</span>** <span className="optional-status">required</span> [`NhostFunctionsConstructorParams`](/reference/javascript/functions/types/nhost-functions-constructor-params)
|
||||
|
||||
| Property | Type | Required | Notes |
|
||||
| :--------------------------------------------------------------------------------------------- | :------------------ | :------: | :---------------------------------------------------------------------------------------- |
|
||||
| <span className="parameter-name"><span className="light-grey">params.</span>url</span> | <code>string</code> | ✔️ | Serverless Functions endpoint. |
|
||||
| <span className="parameter-name"><span className="light-grey">params.</span>adminSecret</span> | <code>string</code> | | Admin secret. When set, it is sent as an `x-hasura-admin-secret` header for all requests. |
|
||||
|
||||
---
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
title: NhostFunctionCallConfig
|
||||
sidebar_label: NhostFunctionCallConfig
|
||||
description: Subset of RequestInit parameters that are supported by the functions client
|
||||
displayed_sidebar: referenceSidebar
|
||||
custom_edit_url: https://github.com/nhost/nhost/edit/main/packages/nhost-js/src/clients/functions/types.ts#L41
|
||||
---
|
||||
|
||||
# `NhostFunctionCallConfig`
|
||||
|
||||
Subset of RequestInit parameters that are supported by the functions client
|
||||
|
||||
## Parameters
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">headers</span>** <span className="optional-status">optional</span> <code>Record<string, string></code>
|
||||
|
||||
---
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
title: NhostFunctionCallResponse
|
||||
sidebar_label: NhostFunctionCallResponse
|
||||
description: No description provided.
|
||||
displayed_sidebar: referenceSidebar
|
||||
custom_edit_url: https://github.com/nhost/nhost/edit/main/packages/nhost-js/src/clients/functions/types.ts#L15
|
||||
---
|
||||
|
||||
# `NhostFunctionCallResponse`
|
||||
|
||||
```ts
|
||||
type NhostFunctionCallResponse =
|
||||
| { res: { data: T; status: number; statusText: string }; error: null }
|
||||
| { res: null; error: ErrorPayload }
|
||||
```
|
||||
@@ -1,25 +0,0 @@
|
||||
---
|
||||
title: NhostFunctionsConstructorParams
|
||||
sidebar_label: NhostFunctionsConstructorParams
|
||||
description: No description provided.
|
||||
displayed_sidebar: referenceSidebar
|
||||
custom_edit_url: https://github.com/nhost/nhost/edit/main/packages/nhost-js/src/clients/functions/types.ts#L4
|
||||
---
|
||||
|
||||
# `NhostFunctionsConstructorParams`
|
||||
|
||||
## Parameters
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">url</span>** <span className="optional-status">required</span> <code>string</code>
|
||||
|
||||
Serverless Functions endpoint.
|
||||
|
||||
---
|
||||
|
||||
**<span className="parameter-name">adminSecret</span>** <span className="optional-status">optional</span> <code>string</code>
|
||||
|
||||
Admin secret. When set, it is sent as an `x-hasura-admin-secret` header for all requests.
|
||||
|
||||
---
|
||||
@@ -10,7 +10,7 @@ The Nhost JavaScript client is the primary way of interacting with your Nhost pr
|
||||
|
||||
- [Authentication](/reference/javascript/auth)
|
||||
- [Storage](/reference/javascript/storage)
|
||||
- [Functions](/reference/javascript/functions)
|
||||
- [Functions](/reference/javascript/nhost-js/functions)
|
||||
- [GraphQL](/reference/javascript/graphql)
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/docs",
|
||||
"version": "0.0.13",
|
||||
"version": "0.0.14",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"docusaurus": "docusaurus",
|
||||
|
||||
@@ -111,12 +111,12 @@ const sidebars = {
|
||||
label: 'Functions',
|
||||
link: {
|
||||
type: 'doc',
|
||||
id: 'reference/javascript/functions/index'
|
||||
id: 'reference/docgen/javascript/nhost-js/content/nhost-functions-client/index'
|
||||
},
|
||||
items: [
|
||||
{
|
||||
type: 'autogenerated',
|
||||
dirName: 'reference/javascript/functions/content'
|
||||
dirName: 'reference/docgen/javascript/nhost-js/content/nhost-functions-client/content'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @nhost-examples/nextjs
|
||||
|
||||
## 0.1.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- ce1ee40d: fix(nextjs): allow `subdomain`, `region` and service URLs
|
||||
- Updated dependencies [ce1ee40d]
|
||||
- @nhost/nextjs@1.13.16
|
||||
- @nhost/react@2.0.10
|
||||
- @nhost/react-apollo@5.0.11
|
||||
|
||||
## 0.1.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export * from './queries'
|
||||
export const BACKEND_URL = 'http://127.0.0.1:1337'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost-examples/nextjs",
|
||||
"version": "0.1.7",
|
||||
"version": "0.1.8",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
@@ -6,7 +6,6 @@ import { inspect } from '@xstate/inspect'
|
||||
import type { AppProps } from 'next/app'
|
||||
import Head from 'next/head'
|
||||
import NavBar from '../components/NavBar'
|
||||
import { BACKEND_URL } from '../helpers'
|
||||
import '../styles/globals.css?inline'
|
||||
|
||||
const devTools = typeof window !== 'undefined' && !!process.env.NEXT_PUBLIC_DEBUG
|
||||
@@ -16,7 +15,7 @@ if (devTools) {
|
||||
iframe: false
|
||||
})
|
||||
}
|
||||
const nhost = new NhostClient({ backendUrl: BACKEND_URL, devTools })
|
||||
const nhost = new NhostClient({ subdomain: 'localhost', devTools })
|
||||
const title = 'Nhost with NextJs'
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
// * Monorepo-related. See: https://stackoverflow.com/questions/71843247/react-nextjs-type-error-component-cannot-be-used-as-a-jsx-component
|
||||
|
||||
@@ -4,10 +4,9 @@ import { Container, Title } from '@mantine/core'
|
||||
import { getNhostSession, NhostSession, useAccessToken } from '@nhost/nextjs'
|
||||
|
||||
import { authProtected } from '../components/protected-route'
|
||||
import { BACKEND_URL } from '../helpers'
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
const nhostSession = await getNhostSession(BACKEND_URL, context)
|
||||
const nhostSession = await getNhostSession({ subdomain: 'localhost' }, context)
|
||||
return {
|
||||
props: {
|
||||
nhostSession
|
||||
|
||||
@@ -3,10 +3,8 @@ import { GetServerSideProps } from 'next'
|
||||
import { Container, Title } from '@mantine/core'
|
||||
import { getNhostSession, NhostSession, useAccessToken, useAuthenticated } from '@nhost/nextjs'
|
||||
|
||||
import { BACKEND_URL } from '../helpers'
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
const nhostSession = await getNhostSession(BACKEND_URL, context)
|
||||
const nhostSession = await getNhostSession({ subdomain: 'localhost' }, context)
|
||||
return {
|
||||
props: {
|
||||
nhostSession
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/apollo
|
||||
|
||||
## 5.1.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bfb4c1a6]
|
||||
- @nhost/nhost-js@2.1.0
|
||||
|
||||
## 5.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/apollo",
|
||||
"version": "5.0.9",
|
||||
"version": "5.1.0",
|
||||
"description": "Nhost Apollo Client library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/react-apollo
|
||||
|
||||
## 5.0.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @nhost/apollo@5.1.0
|
||||
- @nhost/react@2.0.10
|
||||
|
||||
## 5.0.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-apollo",
|
||||
"version": "5.0.10",
|
||||
"version": "5.0.11",
|
||||
"description": "Nhost React Apollo client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/react-urql
|
||||
|
||||
## 2.0.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @nhost/react@2.0.10
|
||||
|
||||
## 2.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-urql",
|
||||
"version": "2.0.9",
|
||||
"version": "2.0.10",
|
||||
"description": "Nhost React URQL client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/graphql-js
|
||||
|
||||
## 0.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- bfb4c1a6: chore(sdk): remove deprecated `useAxios` property
|
||||
|
||||
## 0.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/graphql-js",
|
||||
"version": "0.0.5",
|
||||
"version": "0.1.0",
|
||||
"description": "Nhost GraphQL client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -47,6 +47,4 @@ export type NhostGraphqlRequestResponse<T = unknown> =
|
||||
/** Subset of RequestInit parameters that are supported by the graphql client */
|
||||
export interface NhostGraphqlRequestConfig {
|
||||
headers?: Record<string, string>
|
||||
/** @deprecated Axios has been replaced by cross-fetch. You should now remove this option. */
|
||||
useAxios?: false
|
||||
}
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/nextjs
|
||||
|
||||
## 1.13.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- ce1ee40d: fix(nextjs): allow `subdomain`, `region` and service URLs
|
||||
- @nhost/react@2.0.10
|
||||
|
||||
## 1.13.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -70,7 +70,10 @@ import {
|
||||
} from '@nhost/nextjs'
|
||||
|
||||
export async function getServerSideProps(context: NextPageContext) {
|
||||
const nhostSession = await getNhostSession('<Your Nhost Backend URL>', context)
|
||||
const nhostSession = await getNhostSession(
|
||||
{ subdomain: '<project_subdomain>', region: '<project_region>' },
|
||||
context
|
||||
)
|
||||
|
||||
return {
|
||||
props: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nextjs",
|
||||
"version": "1.13.15",
|
||||
"version": "1.13.16",
|
||||
"description": "Nhost NextJS library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
AuthMachine,
|
||||
NhostClient,
|
||||
NhostReactClientConstructorParams,
|
||||
NhostSession,
|
||||
NHOST_REFRESH_TOKEN_KEY,
|
||||
VanillaNhostClient
|
||||
@@ -11,21 +12,42 @@ import { StateFrom } from 'xstate'
|
||||
import { waitFor } from 'xstate/lib/waitFor'
|
||||
import { NHOST_SESSION_KEY } from './utils'
|
||||
|
||||
export type CreateServerSideClientParams = Pick<
|
||||
NhostReactClientConstructorParams,
|
||||
'subdomain' | 'region' | 'authUrl' | 'functionsUrl' | 'graphqlUrl' | 'storageUrl'
|
||||
>
|
||||
|
||||
/**
|
||||
* Creates an Nhost client that runs on the server side.
|
||||
* It will try to get the refesh token in cookies, or from the request URL
|
||||
* If a refresh token is found, it uses it to get an up to date access token (JWT) and a user session
|
||||
* This method resolves when the authentication status is known eventually
|
||||
* @param backendUrl
|
||||
* @param context
|
||||
* @param config - An object containing connection information
|
||||
* @param context - Server side context
|
||||
* @returns instance of `NhostClient` that is ready to use on the server side (signed in or signed out)
|
||||
*/
|
||||
export const createServerSideClient = async (
|
||||
backendUrl: string,
|
||||
params: string | CreateServerSideClientParams,
|
||||
context: GetServerSidePropsContext
|
||||
): Promise<NhostClient> => {
|
||||
let clientParams: NhostReactClientConstructorParams
|
||||
|
||||
if (typeof params === 'string') {
|
||||
console.warn(
|
||||
'Deprecation Notice: Backend URL is no longer supported. Please use subdomain + region or individual service URLs.'
|
||||
)
|
||||
|
||||
clientParams = {
|
||||
backendUrl: params
|
||||
}
|
||||
} else {
|
||||
clientParams = {
|
||||
...params
|
||||
}
|
||||
}
|
||||
|
||||
const nhost = new VanillaNhostClient({
|
||||
backendUrl,
|
||||
...clientParams,
|
||||
clientStorageType: 'custom',
|
||||
clientStorage: {
|
||||
getItem: (key) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { NhostSession } from '@nhost/react'
|
||||
import { GetServerSidePropsContext } from 'next'
|
||||
import { createServerSideClient } from './create-server-side-client'
|
||||
import { createServerSideClient, CreateServerSideClientParams } from './create-server-side-client'
|
||||
|
||||
/**
|
||||
* Refreshes the access token if there is any and returns the Nhost session.
|
||||
@@ -10,7 +10,10 @@ import { createServerSideClient } from './create-server-side-client'
|
||||
*
|
||||
* ```js
|
||||
* export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
* const nhostSession = await getNhostSession(BACKEND_URL, context)
|
||||
* const nhostSession = await getNhostSession(
|
||||
* { subdomain: '<project_subdomain>', region: '<project_region>' },
|
||||
* context
|
||||
* )
|
||||
*
|
||||
* return {
|
||||
* props: {
|
||||
@@ -25,7 +28,10 @@ import { createServerSideClient } from './create-server-side-client'
|
||||
*
|
||||
* ```js
|
||||
* export async function getServerSideProps(context: GetServerSidePropsContext) { // or NextPageContext
|
||||
* const nhostSession = await getNhostSession(BACKEND_URL, context)
|
||||
* const nhostSession = await getNhostSession(
|
||||
* { subdomain: '<project_subdomain>', region: '<project_region>' },
|
||||
* context
|
||||
* )
|
||||
*
|
||||
* return {
|
||||
* props: {
|
||||
@@ -40,10 +46,10 @@ import { createServerSideClient } from './create-server-side-client'
|
||||
* @returns Nhost session
|
||||
*/
|
||||
export const getNhostSession = async (
|
||||
backendUrl: string,
|
||||
params: string | CreateServerSideClientParams,
|
||||
context: GetServerSidePropsContext
|
||||
): Promise<NhostSession | null> => {
|
||||
const nhost = await createServerSideClient(backendUrl, context)
|
||||
const nhost = await createServerSideClient(params, context)
|
||||
const { accessToken, refreshToken, user } = nhost.auth.client.interpreter!.getSnapshot().context
|
||||
return nhost.auth.isAuthenticated()
|
||||
? {
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @nhost/nhost-js
|
||||
|
||||
## 2.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- bfb4c1a6: chore(sdk): remove deprecated `useAxios` property
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bfb4c1a6]
|
||||
- @nhost/graphql-js@0.1.0
|
||||
|
||||
## 2.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
10
packages/nhost-js/nhost-js.docgen.json
Normal file
10
packages/nhost-js/nhost-js.docgen.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"title": "Nhost JS",
|
||||
"path": "./.docgen/nhost-js.json",
|
||||
"output": "../../docs/docs/reference/docgen/javascript/nhost-js",
|
||||
"root": "reference/docgen/javascript/nhost-js",
|
||||
"slug": "/reference/javascript/nhost-js",
|
||||
"sidebarConfig": "referenceSidebar",
|
||||
"baseEditUrl": "https://github.com/nhost/nhost/edit/main/packages",
|
||||
"cleanup": true
|
||||
}
|
||||
25
packages/nhost-js/nhost-js.typedoc.json
Normal file
25
packages/nhost-js/nhost-js.typedoc.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"$schema": "https://typedoc.org/schema.json",
|
||||
"entryPoints": ["src/index.ts"],
|
||||
"exclude": ["*.(spec|test).tsx?"],
|
||||
"sort": ["source-order"],
|
||||
"json": "./.docgen/nhost-js.json",
|
||||
"name": "Nhost JS",
|
||||
"readme": "none",
|
||||
"githubPages": false,
|
||||
"cleanOutputDir": false,
|
||||
"excludeInternal": true,
|
||||
"excludePrivate": true,
|
||||
"compilerOptions": {
|
||||
"rootDir": "../..",
|
||||
"paths": {
|
||||
"@nhost/apollo": ["../../integrations/apollo/src/index.ts"],
|
||||
"@nhost/hasura-auth-js": ["../hasura-auth-js/src/index.ts"],
|
||||
"@nhost/hasura-storage-js": ["../hasura-storage-js/src/index.ts"],
|
||||
"@nhost/nhost-js": ["../nhost-js/src/index.ts"],
|
||||
"@nhost/nextjs": ["../nextjs/src/index.ts"],
|
||||
"@nhost/react": ["../react/src/index.ts"],
|
||||
"@nhost/react-apollo": ["../../integrations/react-apollo/src/index.ts"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nhost-js",
|
||||
"version": "2.0.9",
|
||||
"version": "2.1.0",
|
||||
"description": "Nhost JavaScript SDK",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -55,7 +55,9 @@
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
||||
"verify": "run-p prettier lint",
|
||||
"verify:fix": "run-p prettier:fix lint:fix"
|
||||
"verify:fix": "run-p prettier:fix lint:fix",
|
||||
"typedoc": "typedoc --options ./nhost-js.typedoc.json --tsconfig ./typedoc.tsconfig.json",
|
||||
"docgen": "pnpm typedoc && docgen --config ./nhost-js.docgen.json"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nhost/graphql-js": "workspace:*",
|
||||
@@ -64,6 +66,7 @@
|
||||
"isomorphic-unfetch": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nhost/docgen": "workspace:*",
|
||||
"graphql": "16.6.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -38,12 +38,6 @@ export class NhostFunctionsClient {
|
||||
this.adminSecret = adminSecret
|
||||
}
|
||||
|
||||
async call<T = unknown, D = any>(
|
||||
url: string,
|
||||
data: D | null,
|
||||
config?: NhostFunctionCallConfig
|
||||
): Promise<NhostFunctionCallResponse<T>>
|
||||
|
||||
/**
|
||||
* Use `nhost.functions.call` to call (sending a POST request to) a serverless function.
|
||||
*
|
||||
|
||||
@@ -28,6 +28,4 @@ export type NhostFunctionCallResponse<T = unknown> =
|
||||
/** Subset of RequestInit parameters that are supported by the functions client */
|
||||
export interface NhostFunctionCallConfig {
|
||||
headers?: Record<string, string>
|
||||
/** @deprecated Axios has been replaced by cross-fetch. You should now remove this option. */
|
||||
useAxios?: false
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import { NhostClientConstructorParams } from '../utils/types'
|
||||
/**
|
||||
* Creates a client for Storage from either a subdomain or a URL
|
||||
*/
|
||||
export function createStorageClient(params: NhostClientConstructorParams<undefined>) {
|
||||
export function createStorageClient(params: NhostClientConstructorParams) {
|
||||
const storageUrl =
|
||||
'subdomain' in params || 'backendUrl' in params
|
||||
? urlFromSubdomain(params, 'storage')
|
||||
|
||||
6
packages/nhost-js/typedoc.tsconfig.json
Normal file
6
packages/nhost-js/typedoc.tsconfig.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"paths": {}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/react
|
||||
|
||||
## 2.0.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bfb4c1a6]
|
||||
- @nhost/nhost-js@2.1.0
|
||||
|
||||
## 2.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react",
|
||||
"version": "2.0.9",
|
||||
"version": "2.0.10",
|
||||
"description": "Nhost React library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/vue
|
||||
|
||||
## 1.13.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bfb4c1a6]
|
||||
- @nhost/nhost-js@2.1.0
|
||||
|
||||
## 1.13.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/vue",
|
||||
"version": "1.13.15",
|
||||
"version": "1.13.16",
|
||||
"description": "Nhost Vue library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
129
pnpm-lock.yaml
generated
129
pnpm-lock.yaml
generated
@@ -86,8 +86,8 @@ importers:
|
||||
'@emotion/styled': ^11.10.5
|
||||
'@fontsource/inter': ^4.5.14
|
||||
'@fontsource/roboto-mono': ^4.5.8
|
||||
'@graphiql/react': ^0.15.0
|
||||
'@graphiql/toolkit': ^0.8.0
|
||||
'@graphiql/react': ^0.17.0
|
||||
'@graphiql/toolkit': ^0.8.2
|
||||
'@graphql-codegen/cli': ^3.0.0
|
||||
'@graphql-codegen/typescript': ^3.0.0
|
||||
'@graphql-codegen/typescript-graphql-request': ^4.5.1
|
||||
@@ -113,7 +113,7 @@ importers:
|
||||
'@storybook/manager-webpack5': ^6.5.14
|
||||
'@storybook/react': ^6.5.14
|
||||
'@storybook/testing-library': ^0.0.13
|
||||
'@stripe/react-stripe-js': ^1.10.0
|
||||
'@stripe/react-stripe-js': ^2.0.0
|
||||
'@stripe/stripe-js': ^1.35.0
|
||||
'@tailwindcss/forms': ^0.5.3
|
||||
'@tanstack/react-query': ^4.16.1
|
||||
@@ -154,7 +154,7 @@ importers:
|
||||
eslint-plugin-react: ^7.31.11
|
||||
eslint-plugin-react-hooks: ^4.6.0
|
||||
generate-password: ^1.7.0
|
||||
graphiql: ^2.2.0
|
||||
graphiql: ^2.4.0
|
||||
graphql: 16.6.0
|
||||
graphql-request: ^4.3.0
|
||||
graphql-tag: ^2.12.6
|
||||
@@ -212,8 +212,8 @@ importers:
|
||||
'@emotion/styled': 11.10.5_4ahanhknrtlidghakifap67h7q
|
||||
'@fontsource/inter': 4.5.14
|
||||
'@fontsource/roboto-mono': 4.5.8
|
||||
'@graphiql/react': 0.15.0_755ntyjuho6qjwic26h62or3by
|
||||
'@graphiql/toolkit': 0.8.0_7fbl5omhlrpwpn5f5culy6mafe
|
||||
'@graphiql/react': 0.17.0_755ntyjuho6qjwic26h62or3by
|
||||
'@graphiql/toolkit': 0.8.2_7fbl5omhlrpwpn5f5culy6mafe
|
||||
'@headlessui/react': 1.7.4_biqbaboplfbrettd7655fr4n2y
|
||||
'@heroicons/react': 1.0.6_react@18.2.0
|
||||
'@hookform/resolvers': 2.9.10_react-hook-form@7.42.1
|
||||
@@ -224,7 +224,7 @@ importers:
|
||||
'@nhost/nextjs': link:../packages/nextjs
|
||||
'@nhost/react-apollo': link:../integrations/react-apollo
|
||||
'@segment/snippet': 4.15.3
|
||||
'@stripe/react-stripe-js': 1.14.2_mljfwq7caaxrtdqn7u72ntpebq
|
||||
'@stripe/react-stripe-js': 2.0.0_mljfwq7caaxrtdqn7u72ntpebq
|
||||
'@stripe/stripe-js': 1.44.1
|
||||
'@tailwindcss/forms': 0.5.3_tailwindcss@3.2.1
|
||||
'@tanstack/react-query': 4.16.1_biqbaboplfbrettd7655fr4n2y
|
||||
@@ -235,7 +235,7 @@ importers:
|
||||
clsx: 1.2.1
|
||||
date-fns: 2.29.3
|
||||
generate-password: 1.7.0
|
||||
graphiql: 2.2.0_755ntyjuho6qjwic26h62or3by
|
||||
graphiql: 2.4.0_755ntyjuho6qjwic26h62or3by
|
||||
graphql: 16.6.0
|
||||
graphql-request: 4.3.0_rjjjs2nwgns3bcvnnqb5eu5nry
|
||||
graphql-tag: 2.12.6_graphql@16.6.0
|
||||
@@ -1020,6 +1020,7 @@ importers:
|
||||
|
||||
packages/nhost-js:
|
||||
specifiers:
|
||||
'@nhost/docgen': workspace:*
|
||||
'@nhost/graphql-js': workspace:*
|
||||
'@nhost/hasura-auth-js': workspace:*
|
||||
'@nhost/hasura-storage-js': workspace:*
|
||||
@@ -1031,6 +1032,7 @@ importers:
|
||||
'@nhost/hasura-storage-js': link:../hasura-storage-js
|
||||
isomorphic-unfetch: 3.1.0
|
||||
devDependencies:
|
||||
'@nhost/docgen': link:../docgen
|
||||
graphql: 16.6.0
|
||||
|
||||
packages/react:
|
||||
@@ -6451,25 +6453,26 @@ packages:
|
||||
/@gqty/utils/1.0.0:
|
||||
resolution: {integrity: sha512-QJMlzts//d0H5mlekOZgx1a4KsTYXfxmRhhx8g/8mvzdaNVPxhFzCsv3+ljTOzbW3A08qy4jXQPWAMoTefSJDQ==}
|
||||
|
||||
/@graphiql/react/0.15.0_755ntyjuho6qjwic26h62or3by:
|
||||
resolution: {integrity: sha512-kJqkdf6d4Cck05Wt5yCDZXWfs7HZgcpuoWq/v8nOa698qVaNMM3qdG4CpRsZEexku0DSSJzWWuanxd5x+sRcFg==}
|
||||
/@graphiql/react/0.17.0_755ntyjuho6qjwic26h62or3by:
|
||||
resolution: {integrity: sha512-mn8FfucLJzFLQQ5OoJ9U1Dvnva1smOxBL89D2TSM2B6mmDyQIRhFXmjzUTPdsqwpauFiqkDaQZiqX7T/ZPrg/w==}
|
||||
peerDependencies:
|
||||
graphql: ^15.5.0 || ^16.0.0
|
||||
react: ^16.8.0 || ^17.0.0 || ^18.0.0
|
||||
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
|
||||
dependencies:
|
||||
'@graphiql/toolkit': 0.8.0_7fbl5omhlrpwpn5f5culy6mafe
|
||||
'@graphiql/toolkit': 0.8.2_7fbl5omhlrpwpn5f5culy6mafe
|
||||
'@reach/combobox': 0.17.0_biqbaboplfbrettd7655fr4n2y
|
||||
'@reach/dialog': 0.17.0_zula6vjvt3wdocc4mwcxqa6nzi
|
||||
'@reach/listbox': 0.17.0_biqbaboplfbrettd7655fr4n2y
|
||||
'@reach/menu-button': 0.17.0_7i5myeigehqah43i5u7wbekgba
|
||||
'@reach/tooltip': 0.17.0_biqbaboplfbrettd7655fr4n2y
|
||||
'@reach/visually-hidden': 0.17.0_biqbaboplfbrettd7655fr4n2y
|
||||
clsx: 1.2.1
|
||||
codemirror: 5.65.9
|
||||
codemirror-graphql: 2.0.2_xqvzjd2jznjsrt45ytiwcf3lei
|
||||
codemirror-graphql: 2.0.4_xqvzjd2jznjsrt45ytiwcf3lei
|
||||
copy-to-clipboard: 3.3.3
|
||||
graphql: 16.6.0
|
||||
graphql-language-service: 5.1.0_graphql@16.6.0
|
||||
graphql-language-service: 5.1.2_graphql@16.6.0
|
||||
markdown-it: 12.3.2
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0_react@18.2.0
|
||||
@@ -6482,8 +6485,8 @@ packages:
|
||||
- react-is
|
||||
dev: false
|
||||
|
||||
/@graphiql/toolkit/0.8.0_7fbl5omhlrpwpn5f5culy6mafe:
|
||||
resolution: {integrity: sha512-DbMFhEKejpPzB6k8W3Mj+Rl8geXiw49USDF9Wdi06EEk1XLVh1iebDqveYY+4lViITsV4+BeGikxlqi8umfP4g==}
|
||||
/@graphiql/toolkit/0.8.2_7fbl5omhlrpwpn5f5culy6mafe:
|
||||
resolution: {integrity: sha512-FGtXBYTzcPuwfpaC+0BGeriLD6kwTdcF5xugGvjutk5J93Dgy2vw+SkBdbi1QGzz/jooETi1kEtFeDuWTzIG7Q==}
|
||||
peerDependencies:
|
||||
graphql: ^15.5.0 || ^16.0.0
|
||||
graphql-ws: '>= 4.5.0'
|
||||
@@ -6494,7 +6497,7 @@ packages:
|
||||
'@n1ru4l/push-pull-async-iterable-iterator': 3.2.0
|
||||
graphql: 16.6.0
|
||||
graphql-ws: 5.11.2_graphql@16.6.0
|
||||
meros: 1.2.0_@types+node@16.18.11
|
||||
meros: 1.2.1_@types+node@16.18.11
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
dev: false
|
||||
@@ -7845,7 +7848,7 @@ packages:
|
||||
graphql: 16.6.0
|
||||
graphql-ws: 5.11.2_graphql@16.6.0
|
||||
isomorphic-ws: 5.0.0_ws@8.11.0
|
||||
meros: 1.2.0_@types+node@16.18.11
|
||||
meros: 1.2.1_@types+node@16.18.11
|
||||
tslib: 2.5.0
|
||||
value-or-promise: 1.0.12
|
||||
ws: 8.11.0
|
||||
@@ -7873,7 +7876,7 @@ packages:
|
||||
graphql: 16.6.0
|
||||
graphql-ws: 5.11.2_graphql@16.6.0
|
||||
isomorphic-ws: 5.0.0_ws@8.11.0
|
||||
meros: 1.2.0_@types+node@18.11.17
|
||||
meros: 1.2.1_@types+node@18.11.17
|
||||
tslib: 2.5.0
|
||||
value-or-promise: 1.0.12
|
||||
ws: 8.11.0
|
||||
@@ -7901,7 +7904,7 @@ packages:
|
||||
graphql: 16.6.0
|
||||
graphql-ws: 5.11.2_graphql@16.6.0
|
||||
isomorphic-ws: 5.0.0_ws@8.11.0
|
||||
meros: 1.2.0
|
||||
meros: 1.2.1
|
||||
tslib: 2.5.0
|
||||
value-or-promise: 1.0.12
|
||||
ws: 8.11.0
|
||||
@@ -7929,7 +7932,7 @@ packages:
|
||||
graphql: 16.6.0
|
||||
graphql-ws: 5.11.2_graphql@16.6.0
|
||||
isomorphic-ws: 5.0.0_ws@8.11.0
|
||||
meros: 1.2.0_@types+node@16.18.11
|
||||
meros: 1.2.1_@types+node@16.18.11
|
||||
tslib: 2.5.0
|
||||
value-or-promise: 1.0.12
|
||||
ws: 8.11.0
|
||||
@@ -11545,10 +11548,10 @@ packages:
|
||||
resolve-from: 5.0.0
|
||||
dev: true
|
||||
|
||||
/@stripe/react-stripe-js/1.14.2_mljfwq7caaxrtdqn7u72ntpebq:
|
||||
resolution: {integrity: sha512-8dGBdSFldq6dyiYgv3r4tOwS5PGAO/446hodegSKlmWg7NkAl0McopszXJd11A9otGi47v5OzCsljyfHJgnLhw==}
|
||||
/@stripe/react-stripe-js/2.0.0_mljfwq7caaxrtdqn7u72ntpebq:
|
||||
resolution: {integrity: sha512-JEzZlVdJaU9g3sZIcgCUXfHqvmDGF2pBqDVWxTJLAhSBNARp5kyFEoTFQzeCdPwrq3D4ZMJVgc6i6mbUgiXsgQ==}
|
||||
peerDependencies:
|
||||
'@stripe/stripe-js': ^1.42.1
|
||||
'@stripe/stripe-js': ^1.44.1
|
||||
react: ^16.8.0 || ^17.0.0 || ^18.0.0
|
||||
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
|
||||
dependencies:
|
||||
@@ -15040,7 +15043,7 @@ packages:
|
||||
/axios/0.25.0_debug@4.3.4:
|
||||
resolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==}
|
||||
dependencies:
|
||||
follow-redirects: 1.15.2_debug@4.3.4
|
||||
follow-redirects: 1.15.2
|
||||
transitivePeerDependencies:
|
||||
- debug
|
||||
dev: true
|
||||
@@ -16253,8 +16256,8 @@ packages:
|
||||
resolution: {integrity: sha512-NiujjUFB4SwScJq2bwbYUtXbZhBSlY6vYzm++3Q6oC+U+injTqfPYFK8wS9COOmb2lueqp0ZRB4nK1VYeHgNyw==}
|
||||
dev: true
|
||||
|
||||
/codemirror-graphql/2.0.2_xqvzjd2jznjsrt45ytiwcf3lei:
|
||||
resolution: {integrity: sha512-9c1cItR+8lG7thmTnDDQ3zI8YesNKiFCp2BnLFkYWCtdhSSuCUHebU/Vurew6ayyUl8MBCldNx3Ev66QAWM5Kw==}
|
||||
/codemirror-graphql/2.0.4_xqvzjd2jznjsrt45ytiwcf3lei:
|
||||
resolution: {integrity: sha512-u68lfUJv4hESfIZLJUGSWU2+txNrfoT29EEMxNksDBPXjnF41Ivpp/r8rxJBXigNcDOBmjMfKfs1J4L0Jggwrg==}
|
||||
peerDependencies:
|
||||
'@codemirror/language': 6.0.0
|
||||
codemirror: ^5.65.3
|
||||
@@ -16263,7 +16266,7 @@ packages:
|
||||
'@codemirror/language': 6.3.1
|
||||
codemirror: 5.65.9
|
||||
graphql: 16.6.0
|
||||
graphql-language-service: 5.0.6_graphql@16.6.0
|
||||
graphql-language-service: 5.1.2_graphql@16.6.0
|
||||
dev: false
|
||||
|
||||
/codemirror/5.65.9:
|
||||
@@ -20300,19 +20303,6 @@ packages:
|
||||
peerDependenciesMeta:
|
||||
debug:
|
||||
optional: true
|
||||
dev: false
|
||||
|
||||
/follow-redirects/1.15.2_debug@4.3.4:
|
||||
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
||||
engines: {node: '>=4.0'}
|
||||
peerDependencies:
|
||||
debug: '*'
|
||||
peerDependenciesMeta:
|
||||
debug:
|
||||
optional: true
|
||||
dependencies:
|
||||
debug: 4.3.4
|
||||
dev: true
|
||||
|
||||
/for-each/0.3.3:
|
||||
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}
|
||||
@@ -21029,18 +21019,18 @@ packages:
|
||||
resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==}
|
||||
dev: true
|
||||
|
||||
/graphiql/2.2.0_755ntyjuho6qjwic26h62or3by:
|
||||
resolution: {integrity: sha512-w1ujpCKMlkwkoUjeg0HpRiBBTm1WHAjHNkFv1TbMu6trjzz63mQ48GLZlmyQY1yhwmc+diCcvmmAt+AyvKLWWA==}
|
||||
/graphiql/2.4.0_755ntyjuho6qjwic26h62or3by:
|
||||
resolution: {integrity: sha512-lJ6OYDQkhAMZePrz8g6r9vMVmxa4SY9eEzzyJxsgE+jA+6PFKds2e8/tDAaCYfX0HNv84nc7W/th1vsHIdgYiA==}
|
||||
peerDependencies:
|
||||
graphql: ^15.5.0 || ^16.0.0
|
||||
react: ^16.8.0 || ^17.0.0 || ^18.0.0
|
||||
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
|
||||
dependencies:
|
||||
'@graphiql/react': 0.15.0_755ntyjuho6qjwic26h62or3by
|
||||
'@graphiql/toolkit': 0.8.0_7fbl5omhlrpwpn5f5culy6mafe
|
||||
'@graphiql/react': 0.17.0_755ntyjuho6qjwic26h62or3by
|
||||
'@graphiql/toolkit': 0.8.2_7fbl5omhlrpwpn5f5culy6mafe
|
||||
entities: 2.2.0
|
||||
graphql: 16.6.0
|
||||
graphql-language-service: 5.1.0_graphql@16.6.0
|
||||
graphql-language-service: 5.1.2_graphql@16.6.0
|
||||
markdown-it: 12.3.2
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0_react@18.2.0
|
||||
@@ -21204,19 +21194,8 @@ packages:
|
||||
- utf-8-validate
|
||||
dev: true
|
||||
|
||||
/graphql-language-service/5.0.6_graphql@16.6.0:
|
||||
resolution: {integrity: sha512-FjE23aTy45Lr5metxCv3ZgSKEZOzN7ERR+OFC1isV5mHxI0Ob8XxayLTYjQKrs8b3kOpvgTYmSmu6AyXOzYslg==}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
graphql: ^15.5.0 || ^16.0.0
|
||||
dependencies:
|
||||
graphql: 16.6.0
|
||||
nullthrows: 1.1.1
|
||||
vscode-languageserver-types: 3.17.2
|
||||
dev: false
|
||||
|
||||
/graphql-language-service/5.1.0_graphql@16.6.0:
|
||||
resolution: {integrity: sha512-APffigZ/l2me6soek+Yq5Us3HBwmfw4vns4QoqsTePXkK3knVO8rn0uAC6PmTyglb1pmFFPbYaRIzW4wmcnnGQ==}
|
||||
/graphql-language-service/5.1.2_graphql@16.6.0:
|
||||
resolution: {integrity: sha512-oeuztbvd7fwKWZ/GCp0voqgctdIL4BDjTkd/phz1jEyH+pfj6inJWKKIkUJPW5ebWHx+mFsZ00wdE6tiCvW2fA==}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
graphql: ^15.5.0 || ^16.0.0
|
||||
@@ -24032,39 +24011,6 @@ packages:
|
||||
uuid: 9.0.0
|
||||
dev: false
|
||||
|
||||
/meros/1.2.0:
|
||||
resolution: {integrity: sha512-3QRZIS707pZQnijHdhbttXRWwrHhZJ/gzolneoxKVz9N/xmsvY/7Ls8lpnI9gxbgxjcHsAVEW3mgwiZCo6kkJQ==}
|
||||
engines: {node: '>=12'}
|
||||
peerDependencies:
|
||||
'@types/node': '>=12'
|
||||
peerDependenciesMeta:
|
||||
'@types/node':
|
||||
optional: true
|
||||
dev: true
|
||||
|
||||
/meros/1.2.0_@types+node@16.18.11:
|
||||
resolution: {integrity: sha512-3QRZIS707pZQnijHdhbttXRWwrHhZJ/gzolneoxKVz9N/xmsvY/7Ls8lpnI9gxbgxjcHsAVEW3mgwiZCo6kkJQ==}
|
||||
engines: {node: '>=12'}
|
||||
peerDependencies:
|
||||
'@types/node': '>=12'
|
||||
peerDependenciesMeta:
|
||||
'@types/node':
|
||||
optional: true
|
||||
dependencies:
|
||||
'@types/node': 16.18.11
|
||||
|
||||
/meros/1.2.0_@types+node@18.11.17:
|
||||
resolution: {integrity: sha512-3QRZIS707pZQnijHdhbttXRWwrHhZJ/gzolneoxKVz9N/xmsvY/7Ls8lpnI9gxbgxjcHsAVEW3mgwiZCo6kkJQ==}
|
||||
engines: {node: '>=12'}
|
||||
peerDependencies:
|
||||
'@types/node': '>=12'
|
||||
peerDependenciesMeta:
|
||||
'@types/node':
|
||||
optional: true
|
||||
dependencies:
|
||||
'@types/node': 18.11.17
|
||||
dev: true
|
||||
|
||||
/meros/1.2.1:
|
||||
resolution: {integrity: sha512-R2f/jxYqCAGI19KhAvaxSOxALBMkaXWH2a7rOyqQw+ZmizX5bKkEYWLzdhC+U82ZVVPVp6MCXe3EkVligh+12g==}
|
||||
engines: {node: '>=13'}
|
||||
@@ -24085,7 +24031,6 @@ packages:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@types/node': 16.18.11
|
||||
dev: true
|
||||
|
||||
/meros/1.2.1_@types+node@18.11.17:
|
||||
resolution: {integrity: sha512-R2f/jxYqCAGI19KhAvaxSOxALBMkaXWH2a7rOyqQw+ZmizX5bKkEYWLzdhC+U82ZVVPVp6MCXe3EkVligh+12g==}
|
||||
|
||||
Reference in New Issue
Block a user