From eafaf7ae6277030bfb5ea08adc6c6e4a92c541fb Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 13 Oct 2022 17:37:06 +0200 Subject: [PATCH] chore: update astro-reactive-form --- package-lock.json | 14 +++++++------- package.json | 2 +- src/pages/showcase/astro-reactive-form.astro | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 336fbca..574ebd5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "astro": "^1.2.6", "astro-github-stats": "^0.5.0", - "astro-reactive-form": "^0.2.6" + "astro-reactive-form": "^0.3.0" } }, "node_modules/@ampproject/remapping": { @@ -993,9 +993,9 @@ } }, "node_modules/astro-reactive-form": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz", - "integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.3.0.tgz", + "integrity": "sha512-jm4sxUw2pW7rtYOsIqMpPS1ZsvlxzLPhtvpbJGlxDSMmxNxjg/l37Iuj85GPMlsJ5KJHDS7TFZta9kS4l8Nn7Q==", "peerDependencies": { "astro": "^1.0.0" } @@ -6576,9 +6576,9 @@ "requires": {} }, "astro-reactive-form": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz", - "integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.3.0.tgz", + "integrity": "sha512-jm4sxUw2pW7rtYOsIqMpPS1ZsvlxzLPhtvpbJGlxDSMmxNxjg/l37Iuj85GPMlsJ5KJHDS7TFZta9kS4l8Nn7Q==", "requires": {} }, "bail": { diff --git a/package.json b/package.json index a0d51fb..d596031 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,6 @@ "dependencies": { "astro": "^1.2.6", "astro-github-stats": "^0.5.0", - "astro-reactive-form": "^0.2.6" + "astro-reactive-form": "^0.3.0" } } diff --git a/src/pages/showcase/astro-reactive-form.astro b/src/pages/showcase/astro-reactive-form.astro index f2c4bdf..8562716 100644 --- a/src/pages/showcase/astro-reactive-form.astro +++ b/src/pages/showcase/astro-reactive-form.astro @@ -2,7 +2,7 @@ import Layout from "../../layouts/Layout.astro"; import Footer from "../../components/Footer.astro"; import Back from "../../components/Back.astro"; -import { FormControl, FormGroup } from "astro-reactive-form/core"; +import { FormGroup, ControlConfig } from "astro-reactive-form/core"; import Form from "astro-reactive-form"; const simpleForm = new FormGroup([ @@ -18,7 +18,7 @@ const simpleForm = new FormGroup([ }, ]); -const name: FormControl[] = [ +const name: ControlConfig[] = [ { name: "first-name", value: "Ayo", @@ -31,7 +31,7 @@ const name: FormControl[] = [ }, ]; -const characteristics: FormControl[] = [ +const characteristics: ControlConfig[] = [ { name: "is-good-looking", type: "radio",