Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon-docs: Fix React Profiler in source snippets #19004

Merged
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions code/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
'<rootDir>/addons',
'<rootDir>/frameworks',
'<rootDir>/lib',
'<rootDir>/renderers',
'<rootDir>/examples/official-storybook',
'<rootDir>/examples/react-ts',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Alert.__docgenInfo = {
\\"value\\": \\"'static'\\",
\\"computed\\": false
},
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"enum\\",
\\"value\\": [{
Expand All @@ -46,14 +47,14 @@ Alert.__docgenInfo = {
\\"computed\\": false
}]
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
},
\\"type\\": {
\\"defaultValue\\": {
\\"value\\": \\"'warning'\\",
\\"computed\\": false
},
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"enum\\",
\\"value\\": [{
Expand All @@ -70,29 +71,28 @@ Alert.__docgenInfo = {
\\"computed\\": false
}]
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
},
\\"message\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": true,
\\"description\\": \\"\\"
\\"required\\": true
},
\\"blank\\": {
\\"description\\": \\"No background or border if static alert\\",
\\"type\\": {
\\"name\\": \\"bool\\"
},
\\"required\\": false,
\\"description\\": \\"No background or border if static alert\\"
\\"required\\": false
},
\\"icon\\": {
\\"description\\": \\"Allows icon override, accepts material icon name\\",
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": false,
\\"description\\": \\"Allows icon override, accepts material icon name\\"
\\"required\\": false
}
}
};"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Test.__docgenInfo = {
\\"displayName\\": \\"Test\\",
\\"props\\": {
\\"test\\": {
\\"description\\": \\"Please work...\\",
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": false,
\\"description\\": \\"Please work...\\"
\\"required\\": false
}
}
};"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ MyBox.__docgenInfo = {
\\"displayName\\": \\"MyBox\\",
\\"props\\": {
\\"bg\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
}
}
};"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,36 @@ Alert.__docgenInfo = {
\\"value\\": \\"'primary'\\",
\\"computed\\": false
},
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
},
\\"dismissible\\": {
\\"defaultValue\\": {
\\"value\\": \\"false\\",
\\"computed\\": false
},
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"bool\\"
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
},
\\"icon\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"elementType\\"
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
},
\\"classes\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"object\\"
},
\\"required\\": true,
\\"description\\": \\"\\"
\\"required\\": true
}
}
};"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Credits.__docgenInfo = {
\\"displayName\\": \\"Credits\\",
\\"props\\": {
\\"areas\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"arrayOf\\",
\\"value\\": {
Expand All @@ -39,8 +40,7 @@ Credits.__docgenInfo = {
}
}
},
\\"required\\": true,
\\"description\\": \\"\\"
\\"required\\": true
}
}
};"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`react component properties 9556-ts-react-default-exports 1`] = `
"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
"function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

/* eslint-disable react/button-has-type */
import React from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ iconButton.__docgenInfo = {
\\"value\\": \\"'primary'\\",
\\"computed\\": false
},
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ Button.__docgenInfo = {
\\"displayName\\": \\"Button\\",
\\"props\\": {
\\"label\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"string\\"
},
\\"required\\": true,
\\"description\\": \\"\\"
\\"required\\": true
},
\\"onClick\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"func\\"
},
\\"required\\": true,
\\"description\\": \\"\\"
\\"required\\": true
}
}
};"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ CCTable.__docgenInfo = {
\\"displayName\\": \\"CCTable\\",
\\"props\\": {
\\"heads\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"array\\"
},
\\"required\\": true,
\\"description\\": \\"\\"
\\"required\\": true
},
\\"onAddClick\\": {
\\"description\\": \\"\\",
\\"type\\": {
\\"name\\": \\"func\\"
},
\\"required\\": false,
\\"description\\": \\"\\"
\\"required\\": false
}
}
};"
Expand Down
Loading