Socket
Socket
Sign inDemoInstall

@conform-to/react

Package Overview
Dependencies
4
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.0 to 0.7.1

2

helpers.d.ts

@@ -54,3 +54,3 @@ import { INTENT, VALIDATION_UNDEFINED, VALIDATION_SKIPPED } from '@conform-to/dom';

export declare const hiddenProps: {
hiddenStyle: CSSProperties;
style: CSSProperties;
tabIndex: number;

@@ -57,0 +57,0 @@ 'aria-hidden': boolean;

@@ -13,7 +13,5 @@ 'use strict';

form: config.form,
required: config.required
required: config.required,
autoFocus: config.initialError && Object.entries(config.initialError).length > 0 ? true : undefined
};
if (config.id) {
props.id = config.id;
}
if (options !== null && options !== void 0 && options.ariaAttributes) {

@@ -29,6 +27,11 @@ var _config$error;

}
if (config.initialError && Object.entries(config.initialError).length > 0) {
props.autoFocus = true;
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, props), options !== null && options !== void 0 && options.hidden ? hiddenProps : {});
}
function cleanup(props) {
for (var key in props) {
if (props[key] === undefined) {
delete props[key];
}
}
return options !== null && options !== void 0 && options.hidden ? _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, props), hiddenProps) : props;
return props;
}

@@ -40,3 +43,3 @@ var hiddenProps = {

*/
hiddenStyle: {
style: {
position: 'absolute',

@@ -74,3 +77,3 @@ width: '1px',

}
return props;
return cleanup(props);
}

@@ -82,3 +85,3 @@ function select(config, options) {

});
return props;
return cleanup(props);
}

@@ -91,3 +94,3 @@ function textarea(config, options) {

});
return props;
return cleanup(props);
}

@@ -94,0 +97,0 @@

@@ -281,4 +281,5 @@ 'use strict';

}
} catch (e) {
console.warn(e);
} catch (error) {
// eslint-disable-next-line no-console
console.warn('Client validation failed', error);
}

@@ -488,3 +489,2 @@ }

if (listener !== 'onReset') {
console.log(listener, 'dispatched');
eventDispatched.current[listener] = true;

@@ -519,2 +519,3 @@ }

if (!dom.isFieldElement(_element2)) {
// eslint-disable-next-line no-console
console.warn('Failed to dispatch event; is the input mounted?');

@@ -654,2 +655,3 @@ return;

} else {
// eslint-disable-next-line no-console
console.warn("Found an \"".concat(constraintName, "\" constraint with undefined definition; Please specify it on the validateConstraint API."));

@@ -699,2 +701,3 @@ }

if (field.type !== 'radio') {
// eslint-disable-next-line no-console
console.warn('Repeated field name is not supported.');

@@ -701,0 +704,0 @@ continue;

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "0.7.0",
"version": "0.7.1",
"main": "index.js",

@@ -34,3 +34,3 @@ "module": "index.mjs",

"dependencies": {
"@conform-to/dom": "0.7.0"
"@conform-to/dom": "0.7.1"
},

@@ -37,0 +37,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc