PR-500824updating packages.

This commit is contained in:
2025-08-10 05:22:04 +00:00
parent e1617cde03
commit 9210349485
6 changed files with 892 additions and 697 deletions

View File

@ -59,7 +59,23 @@ module.exports = {
"paths": {
"@Components/*": ["Components/*"]
}
},
propFilter: (prop) => {
// Filter out props that might contain Symbol values
if (prop.name && typeof prop.name === 'symbol') {
return false;
}
// Filter out React internal props that might cause issues
if (prop.name && prop.name.startsWith('$$')) {
return false;
}
return true;
}
}
},
docs: {
autodocs: 'tag',
defaultName: 'Docs',
}
};

View File

@ -6,5 +6,24 @@ export const parameters = {
date: /Date$/,
},
},
docs: {
extractArgTypes: (component) => {
// Filter out Symbol values to prevent serialization errors
const argTypes = {};
if (component && component.propTypes) {
Object.keys(component.propTypes).forEach(key => {
const propType = component.propTypes[key];
// Only include non-Symbol values
if (typeof propType !== 'symbol') {
argTypes[key] = propType;
}
});
}
return argTypes;
},
source: {
excludeDecorators: true,
},
},
}
export const tags = ["autodocs"];
export const tags = ["autodocs"];