@conform-to/dom 0.6.2 → 0.6.3

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/intent.js CHANGED
@@ -67,7 +67,8 @@ var list = new Proxy({}, {
67
67
  }
68
68
  });
69
69
  function isSubmitting(intent) {
70
- return intent.slice(0, intent.indexOf('/')) !== 'validate' && parseListCommand(intent) === null;
70
+ var [type] = intent.split('/', 1);
71
+ return type !== 'validate' && type !== 'list';
71
72
  }
72
73
  function getScope(intent) {
73
74
  var _parseListCommand$sco, _parseListCommand;
package/module/intent.js CHANGED
@@ -63,7 +63,8 @@ var list = new Proxy({}, {
63
63
  }
64
64
  });
65
65
  function isSubmitting(intent) {
66
- return intent.slice(0, intent.indexOf('/')) !== 'validate' && parseListCommand(intent) === null;
66
+ var [type] = intent.split('/', 1);
67
+ return type !== 'validate' && type !== 'list';
67
68
  }
68
69
  function getScope(intent) {
69
70
  var _parseListCommand$sco, _parseListCommand;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A set of opinionated helpers built on top of the Constraint Validation API",
4
4
  "homepage": "https://conform.guide",
5
5
  "license": "MIT",
6
- "version": "0.6.2",
6
+ "version": "0.6.3",
7
7
  "main": "index.js",
8
8
  "module": "module/index.js",
9
9
  "repository": {
package/types.d.ts CHANGED
@@ -12,6 +12,6 @@ export type KeysOf<T> = T extends any ? keyof T : never;
12
12
  export type ResolveType<T, K extends KeysOf<T>> = T extends {
13
13
  [k in K]?: any;
14
14
  } ? T[K] : undefined;
15
- export type FieldsetConstraint<Schema extends Record<string, any>> = {
15
+ export type FieldsetConstraint<Schema extends Record<string, any> | undefined> = {
16
16
  [Key in KeysOf<Schema>]?: FieldConstraint<ResolveType<Schema, Key>>;
17
17
  };