File tree 2 files changed +4
-4
lines changed
scopes/compositions/compositions/ui/compositions-panel
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export function CompositionsPanel({
87
87
// listen to the mounter for live control updates
88
88
useEffect ( ( ) => {
89
89
function onLiveControlsSetup ( e : MessageEvent < LiveControlReadyEventData > ) {
90
- if ( ! e . data || e . data . type !== 'composition-controls:ready' ) return ( ) => { } ;
90
+ if ( ! e . data || e . data . type !== 'composition-live- controls:ready' ) return ( ) => { } ;
91
91
const { controls, values, timestamp } = JSON . parse ( JSON . stringify ( e . data . payload ) ) ;
92
92
const iframeWindow = e . source ;
93
93
setMounter ( iframeWindow as Window ) ;
@@ -106,7 +106,7 @@ export function CompositionsPanel({
106
106
( key : string , value : any ) => {
107
107
if ( mounter ) {
108
108
const data : LiveControlUpdateEventData = {
109
- type : 'composition-controls:update' ,
109
+ type : 'composition-live- controls:update' ,
110
110
payload : {
111
111
key,
112
112
value : JSON . parse ( JSON . stringify ( value ) ) ,
Original file line number Diff line number Diff line change 1
1
// TODO: put the whole file into a sharable Bit component for custom preview mounters
2
2
3
3
export type LiveControlUpdateEventData = {
4
- type : 'composition-controls:update' ;
4
+ type : 'composition-live- controls:update' ;
5
5
payload : {
6
6
key : string ;
7
7
value : any ;
@@ -10,7 +10,7 @@ export type LiveControlUpdateEventData = {
10
10
} ;
11
11
12
12
export type LiveControlReadyEventData = {
13
- type : 'composition-controls:ready' ;
13
+ type : 'composition-live- controls:ready' ;
14
14
payload : {
15
15
controls : Array < Control > ;
16
16
values : Record < string , any > ;
You can’t perform that action at this time.
0 commit comments