## Description - chore: add SVGR to appsmith-icon package - add processing for custom icons - update date-fns Changes are necessary for [this EE PR](https://github.com/appsmithorg/appsmith-ee/pull/5448). ## Automation /ok-to-test tags="@tag.Sanity" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/11551127644> > Commit: 44fd968044ad5a5ca173c565b3b0c1d6f030cd1e > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11551127644&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` > Spec: > <hr>Mon, 28 Oct 2024 10:11:55 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Introduced `AIAvatarCustomIcon` component for enhanced icon customization. - Added `CustomIcons` documentation in Storybook for better visibility of custom icons. - **Improvements** - Updated multiple icon components to accept SVG properties, enhancing flexibility and reusability. - Enhanced type safety for `IconCmp` and `ThumbnailCmp` properties across various interfaces. - Expanded functionality in the `generateStories` function to include stories for custom icons. - **Chores** - Improved import statements and export structures for better code organization. - Extended cleanup functionality to ensure directories are properly managed. - Modified the `generateComponents` function to utilize a more robust SVG-to-React transformation process. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
29 lines
1.0 KiB
JSON
29 lines
1.0 KiB
JSON
{
|
|
"name": "appsmith-icons",
|
|
"version": "1.0.0",
|
|
"author": "Valera Melnikov <valera@appsmith.com>, Pawan Kumar <pawan@appsmith.com>",
|
|
"license": "MIT",
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"build": "yarn cleanup && figmagic && yarn optimize-icons && yarn generate-components && yarn generate-index && yarn generate-stories && yarn prettier . --write --log-level=silent",
|
|
"cleanup": "npx ts-node ./src/utils/cleanup.ts",
|
|
"optimize-icons": "npx ts-node ./src/utils/optimizeIcons.ts",
|
|
"generate-components": "npx ts-node ./src/utils/generateComponents.ts",
|
|
"generate-index": "npx ts-node ./src/utils/generateIndex.ts",
|
|
"generate-stories": "npx ts-node ./src/utils/generateStories.ts",
|
|
"lint": "yarn g:lint",
|
|
"prettier": "yarn g:prettier"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@svgr/core": "^8.1.0",
|
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
"fast-glob": "^3.3.2",
|
|
"figmagic": "^4.5.13",
|
|
"fs-extra": "^11.2.0",
|
|
"svgo": "^3.2.0"
|
|
}
|
|
}
|