Twilio Flex 2.0 - Which versions of Paste and Paste Icons are usable #3562
-
Good morning, We have started developing a plugin on Twilio Flex 2.0 and are using the Paste library. We have tried using the latest version but it breaks the project so we are currently using the following versions - "@twilio-paste/core": "^10.14.0", What is the maximum/latest versions that can be used? Kind Regards, Shaun |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Hello Shaun, The latest versions of the Paste packages are included in the
You can install these packages using the following commands: # yarn
yarn add @twilio-paste/core @twilio-paste/icons
# npm
npm install @twilio-paste/core @twilio-paste/icons Please note that there are some actions needed when upgrading to these versions. For example, in Core 18.0.0, you need to ensure that all the missing peer dependencies are correctly installed if you are using a package from Paste in isolation. Also, if you are using the deprecated light/dark named design tokens, you will need to update your references to the new weak/strong named design tokens. In Core 19.0.0, you need to ensure I hope this helps! If you have any other questions, feel free to ask. Kind Regards, [Your Name] Here are some similar discussions:
|
Beta Was this translation helpful? Give feedback.
-
We tend to see people be just fine with the very latest of both Paste Packages, Core and Icons. The problem comes with the way package managers differ in resolving minimum version numbers for a given install. This is made more difficult with a plugin depending directly on Paste, and Flex UI, which depends on another version of Paste. It causes installs to be tricky. I believe Plugins are still technically independent applications. So the way folks have unblocked themselves from mismatches with the Flex UI dependency is with a combination of setting overrides for npm or resolutions for yarn and pnpm, to say "hey, no, I really want these versions of Paste" and if using npm also setting You just have to make sure your plugin, when resolving installed packages, only installs one version of Paste Core and Icons, and only installs the latest, by explicitly overriding them. |
Beta Was this translation helpful? Give feedback.
-
Hi Si, Thanks for the speedy feedback and advice, much appreciated. Kind Regards, |
Beta Was this translation helpful? Give feedback.
Hi @ShaunHalliday
We tend to see people be just fine with the very latest of both Paste Packages, Core and Icons. The problem comes with the way package managers differ in resolving minimum version numbers for a given install. This is made more difficult with a plugin depending directly on Paste, and Flex UI, which depends on another version of Paste. It causes installs to be tricky.
I believe Plugins are still technically independent applications. So the way folks have unblocked themselves from mismatches with the Flex UI dependency is with a combination of setting overrides for npm or resolutions for yarn and pnpm, to say "hey, no, I really want these versions of Paste" and if using npm…