-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package rename and sync feature and bugfix from 3acdd2b (#1672)
* sync feature and bugfix from 3acdd2b * chore: update ci tool * chore: fix star script
- Loading branch information
Showing
1,233 changed files
with
4,378 additions
and
3,749 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 |
---|---|---|
|
@@ -82,7 +82,7 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn | ||
- run: yarn workspace ringcentral-integration test | ||
- run: yarn workspace @ringcentral-integration/commons test | ||
commons-branch-release: | ||
needs: integration-test | ||
if: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }} | ||
|
@@ -100,7 +100,7 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn | ||
- run: yarn workspace ringcentral-integration release | ||
- run: yarn workspace @ringcentral-integration/commons release | ||
- name: Commons Branch Release | ||
uses: JamesIves/[email protected] | ||
with: | ||
|
@@ -125,7 +125,7 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn | ||
- run: yarn workspace ringcentral-widgets release | ||
- run: yarn workspace @ringcentral-integration/widgets release | ||
- name: Widgets Branch Release | ||
uses: JamesIves/[email protected] | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
25a535d1b5764390c1d0407963d4bc6bf4a9f3e4 | ||
3acdd2ba8063150decb73c3ba2accf04da2c8f5e |
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
2 changes: 1 addition & 1 deletion
2
packages/engage-voice-widget/components/ActiveCallListPanel/styles.scss
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
127 changes: 127 additions & 0 deletions
127
...ges/engage-voice-widget/components/ActivityCallLogPanel/KeypadCollapse/KeypadCollapse.tsx
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,127 @@ | ||
import React, { FunctionComponent, useState } from 'react'; | ||
|
||
import { | ||
RcDialer, | ||
RcDialerPadSounds, | ||
RcDialPad, | ||
RcDialTextField, | ||
RcFade, | ||
RcIconButton, | ||
RcPaper, | ||
RcTooltip, | ||
} from '@ringcentral/juno'; | ||
import { Close, Keypad } from '@ringcentral/juno/icon'; | ||
import { | ||
Wrapper, | ||
Backdrop, | ||
StyledCollapse, | ||
Footer, | ||
KeyPadCloseButton, | ||
} from './styles/KeyPadWrapper'; | ||
import i18n from './i18n'; | ||
|
||
type keypadProps = { | ||
currentLocale: string; | ||
isKeypadOpen?: boolean; | ||
keypadValue?: string; | ||
setKeypadValue?: (value: string) => void; | ||
setKeypadIsOpen?: (status: boolean) => void; | ||
}; | ||
|
||
export const KeypadCollapse: FunctionComponent<keypadProps> = ({ | ||
currentLocale, | ||
isKeypadOpen, | ||
keypadValue, | ||
setKeypadValue, | ||
setKeypadIsOpen, | ||
}) => { | ||
const [keypadOpenHover, setkeypadOpenHover] = useState(false); | ||
const [forceToolTipHide, setForceToolTipHide] = useState(false); | ||
return ( | ||
<Wrapper open={isKeypadOpen}> | ||
<Backdrop open={isKeypadOpen} data-sign="keypadGreyBackground" /> | ||
<StyledCollapse | ||
in={isKeypadOpen} | ||
collapsedHeight="32px" | ||
open={isKeypadOpen} | ||
onEnter={() => { | ||
setForceToolTipHide(true); | ||
}} | ||
onExited={() => { | ||
setForceToolTipHide(false); | ||
}} | ||
> | ||
<RcPaper elevation={0}> | ||
{isKeypadOpen ? ( | ||
<KeyPadCloseButton> | ||
<RcIconButton | ||
data-sign="keypadCloseButton" | ||
variant="plain" | ||
size="medium" | ||
symbol={Close} | ||
title={i18n.getString('close', currentLocale)} | ||
onClick={() => { | ||
setKeypadIsOpen(false); | ||
setkeypadOpenHover(false); | ||
}} | ||
/> | ||
</KeyPadCloseButton> | ||
) : ( | ||
<RcTooltip | ||
placement="top" | ||
title={i18n.getString('keypad', currentLocale)} | ||
open={keypadOpenHover} | ||
tooltipForceHide={forceToolTipHide} | ||
> | ||
<Footer | ||
onClick={() => { | ||
if (!isKeypadOpen) { | ||
setKeypadIsOpen(true); | ||
} | ||
}} | ||
onMouseOver={() => { | ||
if (!isKeypadOpen) { | ||
setkeypadOpenHover(true); | ||
} | ||
}} | ||
onMouseLeave={() => { | ||
setkeypadOpenHover(false); | ||
}} | ||
keypadOpenHover={keypadOpenHover} | ||
open={isKeypadOpen} | ||
data-sign="keypadOpenButton" | ||
> | ||
<RcIconButton variant="plain" size="small" symbol={Keypad} /> | ||
</Footer> | ||
</RcTooltip> | ||
)} | ||
<RcDialer> | ||
{isKeypadOpen && ( | ||
<RcDialTextField | ||
data-sign="keypadTextField" | ||
value={keypadValue} | ||
align="center" | ||
textVariant="subheading1" | ||
fullWidth | ||
onlyAllowKeypadValue | ||
onChange={setKeypadValue} | ||
autoFocus={isKeypadOpen} | ||
keypadMode | ||
onKeyDown={(e) => { | ||
if ( | ||
e.key === 'Backspace' || | ||
e.key === '-' || | ||
e.key === '\\' | ||
) { | ||
e.preventDefault(); | ||
} | ||
}} | ||
/> | ||
)} | ||
<RcDialPad sounds={RcDialerPadSounds} data-sign="keypadCollapse" /> | ||
</RcDialer> | ||
</RcPaper> | ||
</StyledCollapse> | ||
</Wrapper> | ||
); | ||
}; |
4 changes: 4 additions & 0 deletions
4
packages/engage-voice-widget/components/ActivityCallLogPanel/KeypadCollapse/i18n/en-US.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,4 @@ | ||
export default { | ||
close: 'Close', | ||
keypad: 'Keypad', | ||
}; |
4 changes: 4 additions & 0 deletions
4
packages/engage-voice-widget/components/ActivityCallLogPanel/KeypadCollapse/i18n/index.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,4 @@ | ||
import I18n from '@ringcentral-integration/i18n'; | ||
import loadLocale from './loadLocale'; | ||
|
||
export default new I18n(loadLocale); |
1 change: 1 addition & 0 deletions
1
...ges/engage-voice-widget/components/ActivityCallLogPanel/KeypadCollapse/i18n/loadLocale.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 @@ | ||
/* loadLocale */ |
1 change: 1 addition & 0 deletions
1
packages/engage-voice-widget/components/ActivityCallLogPanel/KeypadCollapse/index.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 @@ | ||
export * from './KeypadCollapse'; |
Oops, something went wrong.