@builder.io/sdk 1.1.30-1 → 1.1.31-0
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/CHANGELOG.md +3 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +5 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +5 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/classes/animator.class.js +1 -1
- package/dist/src/classes/animator.class.js.map +1 -1
- package/dist/src/functions/server-only-require.function.d.ts +1 -2
- package/dist/src/functions/server-only-require.function.js +5 -7
- package/dist/src/functions/server-only-require.function.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -123,7 +123,7 @@ function assertAllowedPropertyName(name) {
|
|
|
123
123
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
var version = "1.1.30
|
|
126
|
+
var version = "1.1.30";
|
|
127
127
|
|
|
128
128
|
var Subscription = /** @class */ (function () {
|
|
129
129
|
function Subscription(listeners, listener) {
|
|
@@ -385,15 +385,12 @@ var Promise$1 = (typeof Promise !== 'undefined' ? Promise : TinyPromise);
|
|
|
385
385
|
|
|
386
386
|
// Webpack workaround to conditionally require certain external modules
|
|
387
387
|
// only on the server and not bundle them on the client
|
|
388
|
-
var serverOnlyRequire;
|
|
389
|
-
|
|
388
|
+
var serverOnlyRequire = (function () { return null; });
|
|
389
|
+
if (typeof (globalThis === null || globalThis === void 0 ? void 0 : globalThis.require) === 'function' ||
|
|
390
|
+
(typeof window === 'undefined' && typeof require === 'function')) {
|
|
390
391
|
// tslint:disable-next-line:no-eval
|
|
391
392
|
serverOnlyRequire = eval('require');
|
|
392
393
|
}
|
|
393
|
-
catch (err) {
|
|
394
|
-
// all good
|
|
395
|
-
serverOnlyRequire = (function () { return null; });
|
|
396
|
-
}
|
|
397
394
|
var serverOnlyRequire$1 = serverOnlyRequire;
|
|
398
395
|
|
|
399
396
|
function promiseResolve(value) {
|
|
@@ -683,7 +680,7 @@ var Animator = /** @class */ (function () {
|
|
|
683
680
|
triggered &&
|
|
684
681
|
!pendingAnimation &&
|
|
685
682
|
!isScrolledIntoView(element)) {
|
|
686
|
-
// we want to repeat the animation
|
|
683
|
+
// we want to repeat the animation every time the the element is out of view and back again
|
|
687
684
|
triggered = false;
|
|
688
685
|
assign(element.style, animation.steps[0].styles);
|
|
689
686
|
}
|