@kitr/forms 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/docs/index.md +2 -2
  2. package/package.json +2 -2
package/docs/index.md CHANGED
@@ -338,7 +338,7 @@ For a rule the schema cannot check, such as "this customer exists", throw `KitrE
338
338
  ```ts
339
339
  // app/actions/invoices/create_invoice.ts
340
340
  import { defineMutation } from '@kitr/actions'
341
- import { KitrError } from 'kitr/app'
341
+ import { KitrError } from '@kitr/kitr/app'
342
342
  import { newInvoiceSchema } from '#app/validators/invoices'
343
343
 
344
344
  const customers = new Set(['grace@acme.com', 'linus@acme.com'])
@@ -780,7 +780,7 @@ Forms run in a DOM test without an app, router or server. Render, type, submit;
780
780
  ```tsx
781
781
  // app/components/invoices/new-invoice-form.test.tsx
782
782
  import { fireEvent, render, screen, waitFor } from '@testing-library/react'
783
- import { KitrError } from 'kitr/app'
783
+ import { KitrError } from '@kitr/kitr/app'
784
784
  import { describe, expect, it, vi } from 'vitest'
785
785
  import { NewInvoiceForm } from './new-invoice-form'
786
786
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitr/forms",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "@kitr/forms: React Hook Form re-exported, plus useSchemaForm, <Form>, <FormField> and server-error mapping.",
5
5
  "kitr": {
6
6
  "name": "forms",
@@ -44,7 +44,7 @@
44
44
  "docs"
45
45
  ],
46
46
  "dependencies": {
47
- "@kitr/core": "0.2.1"
47
+ "@kitr/core": "0.3.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=18.0.0",