@react-ui-org/react-ui 0.55.0 → 0.55.1
Sign up to get free protection for your applications and to get access to all the features.
package/.nvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
18
|
@@ -1056,7 +1056,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));
|
|
1056
1056
|
\**************************************************/
|
1057
1057
|
/***/ ((__unused_webpack_module, exports) => {
|
1058
1058
|
|
1059
|
-
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports.transferProps = void 0;\n/**\n * Controls passing of props from the React component to the HTML element\n *\n * Sometimes it is useful to have a mechanism to pass props from the React component to a rendered HTML element.\n * It enables making the component interactive and helps improve its accessibility. However some props should\n * never be passed to the HTML element as it would break things. This function is used to filter out such props.\n *\n * When run in development mode, the function will log the error to the console if any invalid props are passed.\n *\n * @param props The props that were passed to the React component and were not used by it\n * @returns The props to be passed to the HTML element\n */\nconst transferProps = props => {\n const {\n children,\n className,\n contentEditable,\n dangerouslySetInnerHTML,\n ref,\n staticContext,\n style,\n suppressContentEditableWarning,\n ...restProps\n } = props;\n if (true) {\n
|
1059
|
+
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports.transferProps = void 0;\n/**\n * Controls passing of props from the React component to the HTML element\n *\n * Sometimes it is useful to have a mechanism to pass props from the React component to a rendered HTML element.\n * It enables making the component interactive and helps improve its accessibility. However some props should\n * never be passed to the HTML element as it would break things. This function is used to filter out such props.\n *\n * When run in development mode, the function will log the error to the console if any invalid props are passed.\n *\n * @param props The props that were passed to the React component and were not used by it\n * @returns The props to be passed to the HTML element\n */\nconst transferProps = props => {\n const {\n children,\n className,\n contentEditable,\n dangerouslySetInnerHTML,\n ref,\n staticContext,\n style,\n suppressContentEditableWarning,\n ...restProps\n } = props;\n if (true) {\n const invalidProps = ['children',\n // It is always either handled by the component itself or not supported.\n 'className',\n // Classes are set by component authors, changing it arbitrarily might break things.\n 'contentEditable',\n // Components are either interactive or not, changing it arbitrarily might break things.\n 'dangerouslySetInnerHTML',\n // This might break things and allow for XSS attacks.\n 'ref',\n // Forwarding `ref` is hardcoded and documented for each component.\n 'staticContext',\n // In `react-router` (v4, v5) this is used during server side rendering, it makes no sense to pass it to a component.\n 'style',\n // Styles are set by component authors, changing it arbitrarily might break things.\n 'suppressContentEditableWarning' // Since setting `contentEditable` is not allowed, this is not needed.\n ].filter(key => props[key] !== undefined);\n if (invalidProps.length > 0) {\n // eslint-disable-next-line no-console\n console.error(`Invalid prop(s) supplied to the \"transferProps\" function: \"${invalidProps.join('\", \"')}\"`);\n }\n }\n return restProps;\n};\nexports.transferProps = transferProps;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9faGVscGVycy90cmFuc2ZlclByb3BzLmpzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQHJlYWN0LXVpLW9yZy9yZWFjdC11aS8uL3NyYy9jb21wb25lbnRzL19oZWxwZXJzL3RyYW5zZmVyUHJvcHMuanM/ZTQ0MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvbnRyb2xzIHBhc3Npbmcgb2YgcHJvcHMgZnJvbSB0aGUgUmVhY3QgY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gICAnc3R5bGUnLCAvLyBTdHlsZXMgYXJlIHNldCBieSBjb21wb25lbnQgYXV0aG9ycywgY2hhbmdpbmcgaXQgYXJiaXRyYXJpbHkgbWlnaHQgYnJlYWsgdGhpbmdzLlxuICAgICAgJ3N1cHByZXNzQ29udGVudEVkaXRhYmxlV2FybmluZycsIC8vIFNpbmNlIHNldHRpbmcgYGNvbnRlbnRFZGl0YWJsZWAgaXMgbm90IGFsbG93ZWQsIHRoaXMgaXMgbm90IG5lZWRlZC5cbiAgICBdXG4gICAgICAuZmlsdGVyKChrZXkpID0+IHByb3BzW2tleV0gIT09IHVuZGVmaW5lZCk7XG5cbiAgICBpZiAoaW52YWxpZFByb3BzLmxlbmd0aCA+IDApIHtcbiAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1jb25zb2xlXG4gICAgICBjb25zb2xlLmVycm9yKGBJbnZhbGlkIHByb3Aocykgc3VwcGxpZWQgdG8gdGhlIFwidHJhbnNmZXJQcm9wc1wiIGZ1bmN0aW9uOiBcIiR7aW52YWxpZFByb3BzLmpvaW4oJ1wiLCBcIicpfVwiYCk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHJlc3RQcm9wcztcbn07XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/components/_helpers/transferProps.js\n");
|
1060
1060
|
|
1061
1061
|
/***/ }),
|
1062
1062
|
|
package/package.json
CHANGED
@@ -24,7 +24,6 @@ export const transferProps = (props) => {
|
|
24
24
|
} = props;
|
25
25
|
|
26
26
|
if (process.env.NODE_ENV !== 'production') {
|
27
|
-
console.log('props', props);
|
28
27
|
const invalidProps = [
|
29
28
|
'children', // It is always either handled by the component itself or not supported.
|
30
29
|
'className', // Classes are set by component authors, changing it arbitrarily might break things.
|