From 3a735ce17f51f42fc6845cc3ee6724bb23638d83 Mon Sep 17 00:00:00 2001 From: Mathias Vagni Date: Wed, 19 Jul 2023 08:58:23 +0200 Subject: [PATCH] minor fixes --- .npmrc | 1 + README.md | 4 ++-- package-lock.json | 27 ++++++++++++++------------- package.json | 20 ++++++++++---------- pages/index.tsx | 1 - 5 files changed, 27 insertions(+), 26 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..449691b --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +save-exact=true \ No newline at end of file diff --git a/README.md b/README.md index 7a59129..97f36cf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Example NextJS Advanced Contact Form -This NextJS app shows how to build a contact form using Plain's [Custom Timeline Entries](https://docs.plain.com/recipes/custom-timeline-entry-upsert) and [Typescript SDK](https://www.npmjs.com/package/@team-plain/typescript-sdk). +This NextJS app shows how to build a contact form using Plain's [Custom Timeline Entries](https://www.plain.com/docs/custom-timeline-entries) and [Typescript SDK](https://www.npmjs.com/package/@team-plain/typescript-sdk). Using this contact form you will be able to quickly prioritise customers in Plain by what they are getting in touch about and how urgent it is. @@ -23,7 +23,7 @@ This is meant as a starting point that you can customise to specifically fit you ### Running the example: -You will need an API key from Plain first. [Check out our docs](https://docs.plain.com/core-api/authentication) on how to generate an API key. +You will need an API key from Plain first. [Check out our docs](https://www.plain.com/docs/graphql-api/authentication) on how to generate an API key. For this demo you will need to grant the API key the following permissions: diff --git a/package-lock.json b/package-lock.json index a1836cc..2a3c15b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,20 +8,20 @@ "name": "@team-plain/example-nextjs-advanced-contact-form", "version": "0.1.0", "dependencies": { - "@radix-ui/react-checkbox": "^1.0.3", - "@radix-ui/react-icons": "^1.3.0", - "@radix-ui/react-select": "^1.2.1", - "@team-plain/typescript-sdk": "2.4.0", - "@types/lodash": "^4.14.194", - "@types/ua-parser-js": "^0.7.36", - "assert-ts": "^0.3.4", - "csstype": "^3.1.2", + "@radix-ui/react-checkbox": "1.0.3", + "@radix-ui/react-icons": "1.3.0", + "@radix-ui/react-select": "1.2.1", + "@team-plain/typescript-sdk": "2.11.0", + "@types/lodash": "4.14.194", + "@types/ua-parser-js": "0.7.36", + "assert-ts": "0.3.4", + "csstype": "3.1.2", "next": "13.3.2", "prettier": "2.8.8", "react": "18.2.0", "react-dom": "18.2.0", - "react-hot-toast": "^2.4.1", - "ua-parser-js": "^1.0.35" + "react-hot-toast": "2.4.1", + "ua-parser-js": "1.0.35" }, "devDependencies": { "@types/node": "18.16.3", @@ -755,9 +755,10 @@ } }, "node_modules/@team-plain/typescript-sdk": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@team-plain/typescript-sdk/-/typescript-sdk-2.4.0.tgz", - "integrity": "sha512-cFXrOSkAUlUxSb7x35rg3G3KsQkmqDHKV4V9hcdMijv6sPXQf42otb6d2lyaBjTGt0WJ8BGLaPdbpr385QO10w==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@team-plain/typescript-sdk/-/typescript-sdk-2.11.0.tgz", + "integrity": "sha512-abNYIOD50WvUCwo6TS1jFgTm40Y3mkAGTo4DcoVnOdGT6hVR3+/Iygmt2AkLJ6E0SMirFd7DDnEFilLl7dz/rw==", + "hasInstallScript": true, "dependencies": { "@graphql-typed-document-node/core": "^3.2.0", "axios": "^1.4.0", diff --git a/package.json b/package.json index e130985..c007109 100644 --- a/package.json +++ b/package.json @@ -10,20 +10,20 @@ "typecheck": "tsc" }, "dependencies": { - "@radix-ui/react-checkbox": "^1.0.3", - "@radix-ui/react-icons": "^1.3.0", - "@radix-ui/react-select": "^1.2.1", - "@team-plain/typescript-sdk": "2.4.0", - "@types/lodash": "^4.14.194", - "@types/ua-parser-js": "^0.7.36", - "assert-ts": "^0.3.4", - "csstype": "^3.1.2", + "@radix-ui/react-checkbox": "1.0.3", + "@radix-ui/react-icons": "1.3.0", + "@radix-ui/react-select": "1.2.1", + "@team-plain/typescript-sdk": "2.11.0", + "@types/lodash": "4.14.194", + "@types/ua-parser-js": "0.7.36", + "assert-ts": "0.3.4", + "csstype": "3.1.2", "next": "13.3.2", "prettier": "2.8.8", "react": "18.2.0", "react-dom": "18.2.0", - "react-hot-toast": "^2.4.1", - "ua-parser-js": "^1.0.35" + "react-hot-toast": "2.4.1", + "ua-parser-js": "1.0.35" }, "devDependencies": { "@types/node": "18.16.3", diff --git a/pages/index.tsx b/pages/index.tsx index fa828b6..d61aac8 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -8,7 +8,6 @@ const Home: NextPage = () => { <> Custom Timeline Entries NextJS Example -