twilio-professional-services / plugin-email

15 stars 8 forks source link

Update for Flex UI 2.0 #18

Open JasonPan opened 1 year ago

JasonPan commented 1 year ago

Thanks for this great example - any chance we can get an updated version of this for Flex UI 2.0? I'm trying myself but would be great to have a sample to start with

JasonPan commented 1 year ago

Actually, I figured out, leaving it here if it helps anyone

  1. Follow the plug migration steps here
  2. Bump react, react-dom and react-test-renderer version to 17.0.2
  3. Bump @twilio/flex-ui to 2.0.2
  4. Change in MarkdownMessageBubble.jsx:
    // import { Utils, withTheme } from '@twilio/flex-ui';
    import { Utils } from '@twilio/flex-ui-core';
    import { withTheme } from '@twilio/flex-ui';
  5. Deploy using the $ twilio flex:plugins:deploy tool (follow steps here)
vinirico-fcard commented 1 year ago

Hi, JasonPan, how did you manage to get this working with Flex UI 2.0?

I followed plug migration, but what command I would use to bump to specific version of these packages? Could you share which version of node, twilio cli and flex plugin cli are you using too? I receive different warnings and errors depending on the version I am using

andresmmujica commented 1 year ago

@vinirico-fcard I haven't done it myself but Jason probably is referring to update the version at the corresponding lines in the package.json file

vinirico-fcard commented 1 year ago

@andresmmujica , thank you Andres! I will give it a try.