@builder.io/sdk
Advanced tools
Comparing version 0.0.65 to 0.0.66
export declare class EventCapturer { | ||
events: string[]; | ||
element: EventTarget; | ||
captureEvents: boolean; | ||
usePassive: boolean; | ||
readonly captureEvents: boolean; | ||
observeMutations: boolean; | ||
@@ -7,0 +7,0 @@ private observer?; |
@@ -23,5 +23,5 @@ "use strict"; | ||
this.element = window; | ||
// TODO: take in message to turn this off and on | ||
// TODO: maybe take in message to turn this off and on | ||
// In edit mode likely want to capture everything | ||
// captureEvents = false; | ||
this.captureEvents = false; | ||
this.usePassive = false; | ||
@@ -45,9 +45,2 @@ // FIXME: this causing infinite loop - why? | ||
} | ||
Object.defineProperty(EventCapturer.prototype, "captureEvents", { | ||
get: function () { | ||
return document.body.classList.contains('builder-editing-page'); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
EventCapturer.prototype.getElementForEvent = function (eventName) { | ||
@@ -54,0 +47,0 @@ return eventName === 'resize' || eventName === 'scroll' ? window : this.element; |
{ | ||
"name": "@builder.io/sdk", | ||
"version": "0.0.65", | ||
"version": "0.0.66", | ||
"main": "dist/clients/js/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/clients/js/index.d.ts", |
@@ -25,12 +25,8 @@ import uniqueSelector from 'unique-selector'; | ||
// TODO: take in message to turn this off and on | ||
// TODO: maybe take in message to turn this off and on | ||
// In edit mode likely want to capture everything | ||
// captureEvents = false; | ||
captureEvents = false; | ||
usePassive = false; | ||
get captureEvents() { | ||
return document.body.classList.contains('builder-editing-page'); | ||
} | ||
// FIXME: this causing infinite loop - why? | ||
@@ -37,0 +33,0 @@ observeMutations = false; |
90271
2371