wix-style-processor
Advanced tools
Comparing version 3.0.126 to 3.0.127
export interface IWixService { | ||
getStyleParams(): Promise<{}[]>; | ||
listenToStyleParamsChange(cb: any): void; | ||
listenToSettingsUpdated(cb: any): void; | ||
isEditorMode(): boolean; | ||
@@ -6,0 +5,0 @@ isPreviewMode(): boolean; |
@@ -7,3 +7,2 @@ import { IWixService } from './types'; | ||
listenToStyleParamsChange(cb: any): void; | ||
listenToSettingsUpdated(cb: any): void; | ||
isEditorMode(): boolean; | ||
@@ -10,0 +9,0 @@ isPreviewMode(): boolean; |
@@ -17,5 +17,2 @@ var WixService = /** @class */ (function () { | ||
}; | ||
WixService.prototype.listenToSettingsUpdated = function (cb) { | ||
this.Wix.addEventListener(this.Wix.Events.SETTINGS_UPDATED, cb); | ||
}; | ||
WixService.prototype.isEditorMode = function () { | ||
@@ -22,0 +19,0 @@ return this.Wix.Utils.getViewMode() === 'editor'; |
export interface IWixService { | ||
getStyleParams(): Promise<{}[]>; | ||
listenToStyleParamsChange(cb: any): void; | ||
listenToSettingsUpdated(cb: any): void; | ||
isEditorMode(): boolean; | ||
@@ -6,0 +5,0 @@ isPreviewMode(): boolean; |
@@ -7,3 +7,2 @@ import { IWixService } from './types'; | ||
listenToStyleParamsChange(cb: any): void; | ||
listenToSettingsUpdated(cb: any): void; | ||
isEditorMode(): boolean; | ||
@@ -10,0 +9,0 @@ isPreviewMode(): boolean; |
@@ -19,5 +19,2 @@ "use strict"; | ||
}; | ||
WixService.prototype.listenToSettingsUpdated = function (cb) { | ||
this.Wix.addEventListener(this.Wix.Events.SETTINGS_UPDATED, cb); | ||
}; | ||
WixService.prototype.isEditorMode = function () { | ||
@@ -24,0 +21,0 @@ return this.Wix.Utils.getViewMode() === 'editor'; |
@@ -5,3 +5,3 @@ { | ||
"description": "An alternative Wix Styles TPA processor", | ||
"version": "3.0.126", | ||
"version": "3.0.127", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "Eran Shabi", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
415167
6505