@conform-to/react 1.8.2 → 1.9.1

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Conform view adapter for react",
4
4
  "homepage": "https://conform.guide",
5
5
  "license": "MIT",
6
- "version": "1.8.2",
6
+ "version": "1.9.1",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.mjs",
9
9
  "types": "./dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "url": "https://github.com/edmundhung/conform/issues"
42
42
  },
43
43
  "dependencies": {
44
- "@conform-to/dom": "1.8.2"
44
+ "@conform-to/dom": "1.9.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.17.8",
@@ -50,6 +50,7 @@
50
50
  "@babel/preset-typescript": "^7.20.2",
51
51
  "@rollup/plugin-babel": "^5.3.1",
52
52
  "@rollup/plugin-node-resolve": "^13.3.0",
53
+ "@standard-schema/spec": "^1.0.0",
53
54
  "@types/react": "^18.2.43",
54
55
  "@types/react-dom": "^18.3.5",
55
56
  "react": "^18.2.0",
@@ -1,15 +0,0 @@
1
- export declare const FormContext: import("react").Context<{
2
- observer: {
3
- onFieldUpdate(callback: (event: {
4
- type: "input" | "reset" | "mutation";
5
- target: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
6
- }) => void): () => void;
7
- onFormUpdate(callback: (event: {
8
- type: "submit" | "input" | "reset" | "mutation";
9
- target: HTMLFormElement;
10
- submitter?: HTMLInputElement | HTMLButtonElement | null;
11
- }) => void): () => void;
12
- dispose(): void;
13
- };
14
- }>;
15
- //# sourceMappingURL=context.d.ts.map
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var react = require('react');
6
- var dom = require('@conform-to/dom');
7
-
8
- var FormContext = /*#__PURE__*/react.createContext({
9
- observer: dom.unstable_createGlobalFormsObserver()
10
- });
11
-
12
- exports.FormContext = FormContext;
@@ -1,8 +0,0 @@
1
- import { createContext } from 'react';
2
- import { unstable_createGlobalFormsObserver } from '@conform-to/dom';
3
-
4
- var FormContext = /*#__PURE__*/createContext({
5
- observer: unstable_createGlobalFormsObserver()
6
- });
7
-
8
- export { FormContext };