-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1057 from techmatters/CHI-1287-upgrade_cli
CHI-1287: Upgrade CLI & deps
- Loading branch information
Showing
12 changed files
with
2,517 additions
and
2,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install the Twilio CLI and plugins | ||
run: npm install [email protected].0 -g && twilio plugins:install @twilio-labs/[email protected].2 | ||
run: npm install [email protected].2 -g && twilio plugins:install @twilio-labs/[email protected].3 | ||
- name: Create Temp Files | ||
run: | | ||
touch ./public/appConfig.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
|
||
# Build Flex-plugins | ||
- name: Install the Twilio CLI and plugins | ||
run: npm install [email protected].0 -g && twilio plugins:install @twilio-labs/[email protected].2 | ||
run: npm install [email protected].2 -g && twilio plugins:install @twilio-labs/[email protected].3 | ||
- name: Install hrm-form-definitions Packages | ||
run: npm ci | ||
working-directory: ./hrm-form-definitions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
plugin-hrm-form/src/components/twilioComponentWorkaround.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Button as TwilioButton, IconButton as TwilioIconButton } from '@twilio/flex-ui'; | ||
|
||
/** | ||
* This is a workaround for an issue seen starting in @twilio/flex-ui v2.0.0-beta.3 | ||
* Twilio Buttons were failing on type checks because it thought their props has a mandatory 'css' property, which it doesn't | ||
* This workaround does some TS back flips to create the same type with the 'css' property explicitly omitted, which shuts the TS compiler up | ||
* Just use this instead of the Twilio UI button as long as the issue persists | ||
*/ | ||
|
||
type extractGeneric<Type> = Type extends React.FC<infer X> ? X : never; | ||
type ButtonProps = extractGeneric<typeof TwilioButton>; | ||
export const Button: React.FC<Omit<ButtonProps, 'css'>> = TwilioButton; | ||
|
||
type IconButtonProps = extractGeneric<typeof TwilioIconButton>; | ||
export const IconButton: React.FC<Omit<IconButtonProps, 'css'>> = TwilioIconButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters