refactor: merge themes into components (#2388)

This commit is contained in:
Mo
2023-08-06 08:52:19 -05:00
committed by GitHub
parent 1d60af0243
commit d2f8a36f19
33 changed files with 117 additions and 150 deletions

View File

@@ -1,6 +1,6 @@
import { HeadlessSuperConverter } from '@/Components/SuperEditor/Tools/HeadlessSuperConverter'
import {
SNComponent,
ComponentItem,
ComponentMutator,
AppDataField,
ApplicationService,
@@ -26,7 +26,7 @@ export class DesktopManager
implements DesktopManagerInterface, DesktopClientRequiresWebMethods
{
updateObservers: {
callback: (component: SNComponent) => void
callback: (component: ComponentItem) => void
}[] = []
dataLoaded = false
@@ -204,7 +204,7 @@ export class DesktopManager
).getValue()
for (const observer of this.updateObservers) {
observer.callback(updatedComponent as SNComponent)
observer.callback(updatedComponent as ComponentItem)
}
}
}