@sanity/ui 2.1.15-canary.0 → 2.1.15-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +19 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -199,7 +199,16 @@ var freeze = function(obj) {
|
|
|
199
199
|
}
|
|
200
200
|
return DOMRectReadOnly2.prototype.toJSON = function() {
|
|
201
201
|
var _a = this, x = _a.x, y = _a.y, top = _a.top, right = _a.right, bottom = _a.bottom, left = _a.left, width = _a.width, height = _a.height;
|
|
202
|
-
return {
|
|
202
|
+
return {
|
|
203
|
+
x,
|
|
204
|
+
y,
|
|
205
|
+
top,
|
|
206
|
+
right,
|
|
207
|
+
bottom,
|
|
208
|
+
left,
|
|
209
|
+
width,
|
|
210
|
+
height
|
|
211
|
+
};
|
|
203
212
|
}, DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
204
213
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
205
214
|
}, DOMRectReadOnly2;
|
|
@@ -311,7 +320,9 @@ var freeze = function(obj) {
|
|
|
311
320
|
});
|
|
312
321
|
}, queueMicroTask = function(callback) {
|
|
313
322
|
if (!trigger) {
|
|
314
|
-
var toggle_1 = 0, el_1 = document.createTextNode(""), config = {
|
|
323
|
+
var toggle_1 = 0, el_1 = document.createTextNode(""), config = {
|
|
324
|
+
characterData: !0
|
|
325
|
+
};
|
|
315
326
|
new MutationObserver(function() {
|
|
316
327
|
return notify();
|
|
317
328
|
}).observe(el_1, config), trigger = function() {
|
|
@@ -325,22 +336,12 @@ var freeze = function(obj) {
|
|
|
325
336
|
});
|
|
326
337
|
}, watching = 0, isWatching = function() {
|
|
327
338
|
return !!watching;
|
|
328
|
-
}, CATCH_PERIOD = 250, observerConfig = {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
"animationiteration",
|
|
335
|
-
"keyup",
|
|
336
|
-
"keydown",
|
|
337
|
-
"mouseup",
|
|
338
|
-
"mousedown",
|
|
339
|
-
"mouseover",
|
|
340
|
-
"mouseout",
|
|
341
|
-
"blur",
|
|
342
|
-
"focus"
|
|
343
|
-
], time = function(timeout) {
|
|
339
|
+
}, CATCH_PERIOD = 250, observerConfig = {
|
|
340
|
+
attributes: !0,
|
|
341
|
+
characterData: !0,
|
|
342
|
+
childList: !0,
|
|
343
|
+
subtree: !0
|
|
344
|
+
}, events = ["resize", "load", "transitionend", "animationend", "animationstart", "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", "mouseout", "blur", "focus"], time = function(timeout) {
|
|
344
345
|
return timeout === void 0 && (timeout = 0), Date.now() + timeout;
|
|
345
346
|
}, scheduled = !1, Scheduler = function() {
|
|
346
347
|
function Scheduler2() {
|