uploadcare / react-file-uploader

MIT License
9 stars 0 forks source link

How to resolve the warning for transitive dependency #42

Closed devendraprasad1984 closed 3 months ago

devendraprasad1984 commented 3 months ago

Question

We are using following 2 packages from upload care i.e. "@uploadcare/react-uploader": "^0.6.1" "@uploadcare/upload-client": "^6.14.1"

We are getting following warning, please advice how to resolve

[INFO] npm WARN deprecated @uploadcare/blocks@0.46.3: The@uploadcare/blockspackage has been renamed to@uploadcare/file-uploader. Please migrate to the new package to continue receiving updates and support. You can find the migration guide here: https://uploadcare.com/docs/file-uploader/migration-to-1.x/

Regards DP (devendraprasad1984@gmail.com)

nd0ut commented 3 months ago

Hey @devendraprasad1984,

Thanks for the feedback!

We're planning to release @uploadcare/react-uploader v1 in a few days. There won't be any breaking changes to the React Component API, but there will be some changes to the style selectors.

I'll tag you here once it's released.

In the meantime, you can safely use the current version.

egordidenko commented 3 months ago

Hello @devendraprasad1984,

We have just released the new version of@uploadcare/react-uploader.

If you suddenly have difficulties with integration or any other problems. Please let me know. We will definitely help you.

devendraprasad1984 commented 3 months ago

Hi,

It has class names changes eg lc-simple-btn to uc-simple-btn, is there a simple way where I can inject my custom css at specific dom nodes in ucare dom, so to avoid any future styling issues.

At the moment, I had to use style overrides for specific classes / dom nodes

Regards DP

devendraprasad1984 commented 3 months ago

Hi,

It has class names changes eg lc-simple-btn to uc-simple-btn, is there a simple way where I can inject my custom css at specific dom nodes in ucare dom, so to avoid any future styling issues.

At the moment, I had to use style overrides for specific classes / dom nodes

Regards DP

Hi,

It has class names changes eg lc-simple-btn to uc-simple-btn, is there a simple way where I can inject my custom css at specific dom nodes in ucare dom, so to avoid any future styling issues.

At the moment, I had to use style overrides for specific classes / dom nodes

Regards DP

egordidenko commented 3 months ago

Hello @devendraprasad1984

Thank you for your question. 
 Yes, we have indeed renamed all prefixes that started with lr to uc. You can read the migration guide in more detail.

We had a major first major release for core file-uploader, so you can be sure that the interface will remain unchanged in future minor releases.

So that you can overwrite styles. For example, you can globally access the desired selector and overwrite it.

uc-file-uploader-regular uc-simple-btn {
  display: none;
}