File tree Expand file tree Collapse file tree
packages/ui-voip/src/experimental/AppActionButtons Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ export type {
55 AppButtonInteractionHandler ,
66 MediaCallAppActionDescriptor ,
77 MediaCallAppActionsContextValue ,
8- MediaCallWidgetState as MediaCallState ,
8+ MediaCallWidgetState ,
99} from './context/MediaCallAppActionsContext' ;
Original file line number Diff line number Diff line change @@ -21,12 +21,16 @@ export default {
2121 Resume : 'Resume' ,
2222 Show_chat : 'Show chat' ,
2323 Hide_chat : 'Hide chat' ,
24+ Screen_sharing : 'Screen sharing' ,
25+ Screen_sharing_off : 'Screen sharing off' ,
26+ Forward : 'Forward' ,
27+ Voice_call__user__hangup : 'Hang up {{user}}' ,
2428 } )
2529 . buildStoryDecorator ( ) ,
26- ( Story , { args } ) => (
30+ ( Story ) => (
2731 < MockedMediaCallAppActionsProvider >
2832 < MockedMediaCallProvider state = 'ongoing' >
29- < Story { ... args } />
33+ < Story />
3034 </ MockedMediaCallProvider >
3135 </ MockedMediaCallAppActionsProvider >
3236 ) ,
Original file line number Diff line number Diff line change @@ -82,13 +82,13 @@ const stateAwareActions: MediaCallAppActionDescriptor[] = [
8282const handleInteraction : AppButtonInteractionHandler = async ( { button, sessionState } ) => {
8383 switch ( button . actionId ) {
8484 case 'always-visible' :
85- return { update : { label : `Clicked in state ${ sessionState . callId } ` , actionId : 'default' } } ;
85+ return { update : { label : `Clicked with call id ${ sessionState . callId } ` , actionId : 'default' } } ;
8686 case 'new-only' :
8787 case 'ringing-states' :
8888 case 'calling-states' :
8989 case 'ongoing-only' :
9090 case 'danger-action' :
91- return { update : { label : `Clicked in state ${ sessionState . callId } (filtered)` } } ;
91+ return { update : { label : `Clicked with call id ${ sessionState . callId } (filtered)` } } ;
9292 default :
9393 return undefined ;
9494 }
@@ -146,8 +146,6 @@ const meta = {
146146 decorators : [
147147 mockedContexts ,
148148 ( Story , { args } ) => (
149- // key forces a full remount whenever the initial-state arg changes,
150- // so the widget always starts fresh from the selected state.
151149 < MockedMediaCallAppActionsProvider actions = { stateAwareActions } handleInteraction = { handleInteraction } >
152150 < MockedMediaCallProvider state = { args . state } transferredBy = { args . transferredBy } >
153151 < Story />
You can’t perform that action at this time.
0 commit comments