unpoly-rails 3.8.0 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/unpoly/unpoly-migrate.js +151 -96
- data/assets/unpoly/unpoly-migrate.min.js +1 -1
- data/assets/unpoly/unpoly.css +5 -1
- data/assets/unpoly/unpoly.es6.js +242 -239
- data/assets/unpoly/unpoly.es6.min.js +1 -1
- data/assets/unpoly/unpoly.js +237 -234
- data/assets/unpoly/unpoly.min.css +1 -1
- data/assets/unpoly/unpoly.min.js +1 -1
- data/lib/unpoly/rails/controller.rb +4 -2
- data/lib/unpoly/rails/request_echo_headers.rb +4 -2
- data/lib/unpoly/rails/request_method_cookie.rb +4 -2
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c1e0f71ada21392d778afe64b9bfb7ed2b495c9d2d4a7973d665e6f99c397b
|
4
|
+
data.tar.gz: cb220c5418937ddb3b410b3ff7faf8a9a76f1600feb4e378ea61a08426f99d63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5509a646c9b670ca295c80fa72147e17878aea0b996feb77800400f6cd0abc455dede0fd446634befe19021fbf714b14882cb33861883e5f872dc379d73eeb53
|
7
|
+
data.tar.gz: a93767ae96294e4cc78fefb618daa0d775e04716e82134afe07bf8cd03874ea9151512fd9af28cf1caacebadf2ff7b1d3f6a435556822f1f9e8e774376a86c70
|
@@ -208,7 +208,7 @@ up.migrate = (function () {
|
|
208
208
|
fixKey,
|
209
209
|
warn,
|
210
210
|
loaded: true,
|
211
|
-
config
|
211
|
+
config,
|
212
212
|
};
|
213
213
|
})();
|
214
214
|
|
@@ -217,6 +217,17 @@ up.migrate = (function () {
|
|
217
217
|
/* 2 */
|
218
218
|
/***/ (() => {
|
219
219
|
|
220
|
+
up.Config.prototype.patch = function (patch) {
|
221
|
+
let doPatch = patch.bind(this, this);
|
222
|
+
doPatch();
|
223
|
+
document.addEventListener('up:framework:reset', doPatch);
|
224
|
+
};
|
225
|
+
|
226
|
+
|
227
|
+
/***/ }),
|
228
|
+
/* 3 */
|
229
|
+
/***/ (() => {
|
230
|
+
|
220
231
|
up.util.only = function (object, ...keys) {
|
221
232
|
up.migrate.deprecated('up.util.only(object, ...keys)', 'up.util.pick(object, keys)');
|
222
233
|
return up.util.pick(object, keys);
|
@@ -279,7 +290,7 @@ up.util.microtask = window.queueMicrotask;
|
|
279
290
|
|
280
291
|
|
281
292
|
/***/ }),
|
282
|
-
/*
|
293
|
+
/* 4 */
|
283
294
|
/***/ (() => {
|
284
295
|
|
285
296
|
class DeprecatedCannotCompile extends up.Error {
|
@@ -291,7 +302,7 @@ Object.defineProperty(up, 'CannotCompile', { get: function () {
|
|
291
302
|
|
292
303
|
|
293
304
|
/***/ }),
|
294
|
-
/*
|
305
|
+
/* 5 */
|
295
306
|
/***/ (() => {
|
296
307
|
|
297
308
|
up.browser.loadPage = function (...args) {
|
@@ -305,7 +316,7 @@ up.browser.isSupported = function (...args) {
|
|
305
316
|
|
306
317
|
|
307
318
|
/***/ }),
|
308
|
-
/*
|
319
|
+
/* 6 */
|
309
320
|
/***/ (() => {
|
310
321
|
|
311
322
|
up.element.first = function (...args) {
|
@@ -366,7 +377,7 @@ up.element.isDetached = function (element) {
|
|
366
377
|
|
367
378
|
|
368
379
|
/***/ }),
|
369
|
-
/*
|
380
|
+
/* 7 */
|
370
381
|
/***/ (() => {
|
371
382
|
|
372
383
|
up.migrate.renamedPackage('bus', 'event');
|
@@ -396,7 +407,7 @@ up.$off = function (...definitionArgs) {
|
|
396
407
|
|
397
408
|
|
398
409
|
/***/ }),
|
399
|
-
/*
|
410
|
+
/* 8 */
|
400
411
|
/***/ (() => {
|
401
412
|
|
402
413
|
const u = up.util;
|
@@ -452,13 +463,15 @@ up.migrate.processCompilerPassMeta = function (meta, response) {
|
|
452
463
|
|
453
464
|
|
454
465
|
/***/ }),
|
455
|
-
/*
|
466
|
+
/* 9 */
|
456
467
|
/***/ (() => {
|
457
468
|
|
458
|
-
up.
|
459
|
-
up.migrate.renamedProperty(
|
460
|
-
up.migrate.renamedProperty(
|
461
|
-
up.migrate.renamedProperty(
|
469
|
+
up.form.config.patch(function (config) {
|
470
|
+
up.migrate.renamedProperty(config, 'fields', 'fieldSelectors');
|
471
|
+
up.migrate.renamedProperty(config, 'submitButtons', 'submitButtonSelectors');
|
472
|
+
up.migrate.renamedProperty(config, 'validateTargets', 'groupSelectors');
|
473
|
+
up.migrate.renamedProperty(config, 'observeDelay', 'watchInputDelay');
|
474
|
+
});
|
462
475
|
up.migrate.migratedFormGroupSelectors = function () {
|
463
476
|
return up.form.config.groupSelectors.map((originalSelector) => {
|
464
477
|
let migratedSelector = originalSelector.replace(/:has\((:origin|&)\)$/, '');
|
@@ -485,24 +498,28 @@ up.observe = function (...args) {
|
|
485
498
|
|
486
499
|
|
487
500
|
/***/ }),
|
488
|
-
/*
|
501
|
+
/* 10 */
|
489
502
|
/***/ (() => {
|
490
503
|
|
491
504
|
const u = up.util;
|
492
505
|
up.migrate.renamedPackage('flow', 'fragment');
|
493
506
|
up.migrate.renamedPackage('dom', 'fragment');
|
494
|
-
up.
|
507
|
+
up.fragment.config.patch(function (config) {
|
508
|
+
up.migrate.renamedProperty(config, 'fallbacks', 'mainTargets');
|
509
|
+
});
|
495
510
|
up.migrate.handleResponseDocOptions = docOptions => up.migrate.fixKey(docOptions, 'html', 'document');
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
511
|
+
up.fragment.config.patch(function (config) {
|
512
|
+
let matchAroundOriginDeprecated = () => up.migrate.deprecated('up.fragment.config.matchAroundOrigin', 'up.fragment.config.match');
|
513
|
+
Object.defineProperty(config, 'matchAroundOrigin', {
|
514
|
+
get: function () {
|
515
|
+
matchAroundOriginDeprecated();
|
516
|
+
return this.match === 'closest';
|
517
|
+
},
|
518
|
+
set: function (value) {
|
519
|
+
matchAroundOriginDeprecated();
|
520
|
+
this.match = value ? 'region' : 'first';
|
521
|
+
}
|
522
|
+
});
|
506
523
|
});
|
507
524
|
up.replace = function (target, url, options) {
|
508
525
|
up.migrate.deprecated('up.replace(target, url)', 'up.navigate(target, { url })');
|
@@ -615,19 +632,21 @@ up.migrate.resolveOrigin = function (target, { origin } = {}) {
|
|
615
632
|
});
|
616
633
|
};
|
617
634
|
up.migrate.removedEvent('up:fragment:kept', 'up:fragment:keep');
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
635
|
+
up.fragment.config.patch(function () {
|
636
|
+
this.runScriptsValue = this.runScripts;
|
637
|
+
this.runScriptsSet = false;
|
638
|
+
Object.defineProperty(this, 'runScripts', {
|
639
|
+
get() {
|
640
|
+
return this.runScriptsValue;
|
641
|
+
},
|
642
|
+
set(value) {
|
643
|
+
this.runScriptsValue = value;
|
644
|
+
this.runScriptsSet = true;
|
645
|
+
}
|
646
|
+
});
|
628
647
|
});
|
629
648
|
up.on('up:framework:boot', function () {
|
630
|
-
if (!runScriptsSet) {
|
649
|
+
if (!up.fragment.config.runScriptsSet) {
|
631
650
|
up.migrate.warn('Scripts within fragments are now executed. Configure up.fragment.config.runScripts to remove this warning.');
|
632
651
|
}
|
633
652
|
});
|
@@ -642,17 +661,19 @@ up.compiler('[up-keep]', function (element) {
|
|
642
661
|
|
643
662
|
|
644
663
|
/***/ }),
|
645
|
-
/*
|
664
|
+
/* 11 */
|
646
665
|
/***/ (() => {
|
647
666
|
|
648
667
|
up.migrate.renamedEvent('up:app:booted', 'up:framework:booted');
|
649
668
|
|
650
669
|
|
651
670
|
/***/ }),
|
652
|
-
/*
|
671
|
+
/* 12 */
|
653
672
|
/***/ (() => {
|
654
673
|
|
655
|
-
up.
|
674
|
+
up.history.config.patch(function (config) {
|
675
|
+
up.migrate.renamedProperty(config, 'popTargets', 'restoreTargets');
|
676
|
+
});
|
656
677
|
up.history.url = function () {
|
657
678
|
up.migrate.deprecated('up.history.url()', 'up.history.location');
|
658
679
|
return up.history.location;
|
@@ -663,19 +684,21 @@ up.migrate.renamedEvent('up:history:restore', 'up:location:changed');
|
|
663
684
|
up.migrate.renamedEvent('up:history:restored', 'up:location:changed');
|
664
685
|
up.migrate.renamedEvent('up:history:replaced', 'up:location:changed');
|
665
686
|
up.migrate.removedEvent('up:fragment:kept', 'up:fragment:keep');
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
687
|
+
up.history.config.patch(function () {
|
688
|
+
this.updateMetaTagsValue = this.updateMetaTags;
|
689
|
+
this.updateMetaTagsSet = false;
|
690
|
+
Object.defineProperty(this, 'updateMetaTags', {
|
691
|
+
get() {
|
692
|
+
return this.updateMetaTagsValue;
|
693
|
+
},
|
694
|
+
set(value) {
|
695
|
+
this.updateMetaTagsValue = value;
|
696
|
+
this.updateMetaTagsSet = true;
|
697
|
+
}
|
698
|
+
});
|
676
699
|
});
|
677
700
|
up.on('up:framework:boot', function () {
|
678
|
-
if (!updateMetaTagsSet) {
|
701
|
+
if (!up.history.config.updateMetaTagsSet) {
|
679
702
|
up.migrate.warn('Meta tags in the <head> are now updated automatically. Configure up.history.config.updateMetaTags to remove this warning.');
|
680
703
|
}
|
681
704
|
});
|
@@ -689,15 +712,17 @@ up.migrate.warnOfHungryMetaTags = function (metaTags) {
|
|
689
712
|
|
690
713
|
|
691
714
|
/***/ }),
|
692
|
-
/*
|
715
|
+
/* 13 */
|
693
716
|
/***/ (() => {
|
694
717
|
|
695
718
|
up.migrate.renamedPackage('navigation', 'feedback');
|
696
|
-
up.
|
719
|
+
up.feedback.config.patch(function (config) {
|
720
|
+
up.migrate.renamedProperty(config, 'navs', 'navSelectors');
|
721
|
+
});
|
697
722
|
|
698
723
|
|
699
724
|
/***/ }),
|
700
|
-
/*
|
725
|
+
/* 14 */
|
701
726
|
/***/ (() => {
|
702
727
|
|
703
728
|
const followSelectorFn = up.link.config.selectorFn('followSelectors');
|
@@ -778,19 +803,37 @@ up.migrate.transformAttribute('up-restore-scroll', function (link, restoreScroll
|
|
778
803
|
break;
|
779
804
|
}
|
780
805
|
});
|
781
|
-
up.migrate.targetMacro('up-dash', { 'up-preload': '', 'up-instant': '' }, () => up.migrate.deprecated('
|
806
|
+
up.migrate.targetMacro('up-dash', { 'up-preload': '', 'up-instant': '' }, () => up.migrate.deprecated('[up-dash]', 'up.link.config.instantSelectors and up.link.config.preloadSelectors'));
|
782
807
|
up.migrate.renamedAttribute('up-delay', 'up-preload-delay', { scope: preloadSelectorFn });
|
783
|
-
|
784
|
-
|
808
|
+
let preloadEnabledRef;
|
809
|
+
up.link.config.patch(function (config) {
|
810
|
+
config.preloadEnabled = true;
|
811
|
+
preloadEnabledRef = up.migrate.removedProperty(config, 'preloadEnabled', 'The configuration up.link.config.preloadEnabled has been removed. To disable preloading, prevent up:link:preload instead.');
|
812
|
+
});
|
785
813
|
up.on('up:link:preload', function (event) {
|
786
814
|
if (!preloadEnabledRef[0]) {
|
787
815
|
event.preventDefault();
|
788
816
|
}
|
789
817
|
});
|
818
|
+
const LEGACY_UP_HREF_FOLLOW_SELECTOR = '[up-href]:not([up-follow], [up-poll], [up-defer], [up-expand])';
|
819
|
+
up.link.config.patch(function (config) {
|
820
|
+
config.clickableSelectors.push(LEGACY_UP_HREF_FOLLOW_SELECTOR);
|
821
|
+
config.followSelectors.push(LEGACY_UP_HREF_FOLLOW_SELECTOR);
|
822
|
+
});
|
823
|
+
up.compiler(LEGACY_UP_HREF_FOLLOW_SELECTOR, function (element) {
|
824
|
+
up.migrate.warn('Following links with only [up-href] has been deprecated. You must now also set an [up-follow] on the same link (found in %o).', element);
|
825
|
+
});
|
826
|
+
const LEGACY_UP_INSTANT_FOLLOW_INTENT_SELECTOR = `[up-instant]:is(a[href], ${LEGACY_UP_HREF_FOLLOW_SELECTOR})`;
|
827
|
+
up.link.config.patch(function (config) {
|
828
|
+
config.followSelectors.push(LEGACY_UP_INSTANT_FOLLOW_INTENT_SELECTOR);
|
829
|
+
});
|
830
|
+
up.compiler(LEGACY_UP_HREF_FOLLOW_SELECTOR, function (element) {
|
831
|
+
up.migrate.warn('Following links with only [up-instant] has been deprecated. You must now also set an [up-follow] on the same link (found in %o).', element);
|
832
|
+
});
|
790
833
|
|
791
834
|
|
792
835
|
/***/ }),
|
793
|
-
/*
|
836
|
+
/* 15 */
|
794
837
|
/***/ (() => {
|
795
838
|
|
796
839
|
up.migrate.handleLayerOptions = function (options) {
|
@@ -837,7 +880,7 @@ Object.defineProperty(up.Layer.prototype, 'historyVisible', { get: function () {
|
|
837
880
|
|
838
881
|
|
839
882
|
/***/ }),
|
840
|
-
/*
|
883
|
+
/* 16 */
|
841
884
|
/***/ (() => {
|
842
885
|
|
843
886
|
const FLAVORS_ERROR = new Error('up.modal.flavors has been removed without direct replacement. You may give new layers a { class } or modify layer elements on up:layer:open.');
|
@@ -891,12 +934,12 @@ up.migrate.renamedEvent('up:modal:open', 'up:layer:open');
|
|
891
934
|
up.migrate.renamedEvent('up:modal:opened', 'up:layer:opened');
|
892
935
|
up.migrate.renamedEvent('up:modal:close', 'up:layer:dismiss');
|
893
936
|
up.migrate.renamedEvent('up:modal:closed', 'up:layer:dismissed');
|
894
|
-
up.migrate.targetMacro('up-modal', { 'up-layer': 'new modal' }, () => up.migrate.deprecated('
|
895
|
-
up.migrate.targetMacro('up-drawer', { 'up-layer': 'new drawer' }, () => up.migrate.deprecated('
|
937
|
+
up.migrate.targetMacro('up-modal', { 'up-layer': 'new modal' }, () => up.migrate.deprecated('[up-modal]', '[up-layer="new modal"]'));
|
938
|
+
up.migrate.targetMacro('up-drawer', { 'up-layer': 'new drawer' }, () => up.migrate.deprecated('[up-drawer]', '[up-layer="new drawer"]'));
|
896
939
|
|
897
940
|
|
898
941
|
/***/ }),
|
899
|
-
/*
|
942
|
+
/* 17 */
|
900
943
|
/***/ (() => {
|
901
944
|
|
902
945
|
up.popup = {
|
@@ -944,7 +987,7 @@ up.migrate.targetMacro('up-popup', { 'up-layer': 'new popup' }, () => up.migrate
|
|
944
987
|
|
945
988
|
|
946
989
|
/***/ }),
|
947
|
-
/*
|
990
|
+
/* 18 */
|
948
991
|
/***/ (() => {
|
949
992
|
|
950
993
|
up.macro('[up-tooltip]', function (opener) {
|
@@ -954,7 +997,7 @@ up.macro('[up-tooltip]', function (opener) {
|
|
954
997
|
|
955
998
|
|
956
999
|
/***/ }),
|
957
|
-
/*
|
1000
|
+
/* 19 */
|
958
1001
|
/***/ (() => {
|
959
1002
|
|
960
1003
|
up.migrate.clearCacheFromXHR = function (xhr) {
|
@@ -984,7 +1027,7 @@ up.migrate.titleFromXHR = function (xhr) {
|
|
984
1027
|
|
985
1028
|
|
986
1029
|
/***/ }),
|
987
|
-
/*
|
1030
|
+
/* 20 */
|
988
1031
|
/***/ (() => {
|
989
1032
|
|
990
1033
|
const u = up.util;
|
@@ -999,24 +1042,28 @@ up.migrate.renamedEvent('up:proxy:slow', 'up:network:late');
|
|
999
1042
|
up.migrate.renamedEvent('up:proxy:recover', 'up:network:recover');
|
1000
1043
|
up.migrate.renamedEvent('up:request:late', 'up:network:late');
|
1001
1044
|
up.migrate.renamedEvent('up:request:recover', 'up:network:recover');
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1045
|
+
up.network.config.patch(function (config) {
|
1046
|
+
const preloadDelayMoved = () => up.migrate.deprecated('up.proxy.config.preloadDelay', 'up.link.config.preloadDelay');
|
1047
|
+
Object.defineProperty(config, 'preloadDelay', {
|
1048
|
+
get() {
|
1049
|
+
preloadDelayMoved();
|
1050
|
+
return up.link.config.preloadDelay;
|
1051
|
+
},
|
1052
|
+
set(value) {
|
1053
|
+
preloadDelayMoved();
|
1054
|
+
up.link.config.preloadDelay = value;
|
1055
|
+
}
|
1056
|
+
});
|
1057
|
+
});
|
1058
|
+
up.network.config.patch(function (config) {
|
1059
|
+
up.migrate.renamedProperty(config, 'maxRequests', 'concurrency');
|
1060
|
+
up.migrate.renamedProperty(config, 'slowDelay', 'badResponseTime');
|
1061
|
+
up.migrate.renamedProperty(config, 'cacheExpiry', 'cacheExpireAge', 'The configuration up.network.config.cacheExpiry has been renamed to up.network.config.cacheExpireAge. Note that Unpoly 3+ automatically reloads cached content after rendering to ensure users always see fresh data ("cache revalidation"). Setting a custom expiry may no longer be necessary.');
|
1062
|
+
up.migrate.renamedProperty(config, 'clearCache', 'expireCache');
|
1063
|
+
up.migrate.forbiddenPropertyValue(config, 'cacheSize', 0, 'Disabling the cache with up.network.config.cacheSize = 0 is no longer supported. To disable automatic caching during navigation, set up.fragment.config.navigateOptions.cache = false instead.');
|
1064
|
+
up.network.config.requestMetaKeys = [];
|
1065
|
+
up.migrate.removedProperty(config, 'requestMetaKeys', 'The configuration up.network.config.requestMetaKeys has been removed. Servers that optimize responses based on request headers should instead set a Vary response header.');
|
1012
1066
|
});
|
1013
|
-
up.migrate.renamedProperty(up.network.config, 'maxRequests', 'concurrency');
|
1014
|
-
up.migrate.renamedProperty(up.network.config, 'slowDelay', 'badResponseTime');
|
1015
|
-
up.migrate.renamedProperty(up.network.config, 'cacheExpiry', 'cacheExpireAge', 'The configuration up.network.config.cacheExpiry has been renamed to up.network.config.cacheExpireAge. Note that Unpoly 3+ automatically reloads cached content after rendering to ensure users always see fresh data ("cache revalidation"). Setting a custom expiry may no longer be necessary.');
|
1016
|
-
up.migrate.renamedProperty(up.network.config, 'clearCache', 'expireCache');
|
1017
|
-
up.migrate.forbiddenPropertyValue(up.network.config, 'cacheSize', 0, 'Disabling the cache with up.network.config.cacheSize = 0 is no longer supported. To disable automatic caching during navigation, set up.fragment.config.navigateOptions.cache = false instead.');
|
1018
|
-
up.network.config.requestMetaKeys = [];
|
1019
|
-
up.migrate.removedProperty(up.network.config, 'requestMetaKeys', 'The configuration up.network.config.requestMetaKeys has been removed. Servers that optimize responses based on request headers should instead set a Vary response header.');
|
1020
1067
|
up.migrate.handleRequestOptions = function (options) {
|
1021
1068
|
up.migrate.fixKey(options, 'clearCache', 'expireCache');
|
1022
1069
|
if (options.solo) {
|
@@ -1072,8 +1119,8 @@ function mayHaveCustomIndicator() {
|
|
1072
1119
|
return u.find(listeners, listener => listener.eventType === 'up:network:late');
|
1073
1120
|
}
|
1074
1121
|
const progressBarDefault = up.network.config.progressBar;
|
1075
|
-
function
|
1076
|
-
|
1122
|
+
up.network.config.patch(function (config) {
|
1123
|
+
config.progressBar = function () {
|
1077
1124
|
if (mayHaveCustomIndicator()) {
|
1078
1125
|
up.migrate.warn('Disabled the default progress bar as may have built a custom loading indicator with your up:network:late listener. Please set up.network.config.progressBar to true or false.');
|
1079
1126
|
return false;
|
@@ -1082,25 +1129,30 @@ function disableProgressBarIfCustomIndicator() {
|
|
1082
1129
|
return progressBarDefault;
|
1083
1130
|
}
|
1084
1131
|
};
|
1085
|
-
}
|
1086
|
-
disableProgressBarIfCustomIndicator();
|
1087
|
-
up.on('up:framework:reset', disableProgressBarIfCustomIndicator);
|
1132
|
+
});
|
1088
1133
|
up.network.shouldReduceRequests = function () {
|
1089
1134
|
up.migrate('up.network.shouldReduceRequests() has been removed without replacement');
|
1090
1135
|
return false;
|
1091
1136
|
};
|
1092
|
-
up.
|
1093
|
-
up.migrate.removedProperty(
|
1137
|
+
up.network.config.patch(function (config) {
|
1138
|
+
up.migrate.removedProperty(config, 'badRTT');
|
1139
|
+
up.migrate.removedProperty(config, 'badDownlink');
|
1140
|
+
});
|
1094
1141
|
|
1095
1142
|
|
1096
1143
|
/***/ }),
|
1097
|
-
/*
|
1144
|
+
/* 21 */
|
1098
1145
|
/***/ (() => {
|
1099
1146
|
|
1100
1147
|
const e = up.element;
|
1101
|
-
up.
|
1148
|
+
up.radio.config.patch(function (config) {
|
1149
|
+
up.migrate.renamedProperty(config, 'hungry', 'hungrySelectors');
|
1150
|
+
});
|
1102
1151
|
up.radio.config.pollEnabled = true;
|
1103
|
-
let pollEnabledRef
|
1152
|
+
let pollEnabledRef;
|
1153
|
+
up.radio.config.patch(function (config) {
|
1154
|
+
pollEnabledRef = up.migrate.removedProperty(config, 'pollEnabled', 'The configuration up.radio.config.pollEnabled has been removed. To disable polling, prevent up:fragment:poll instead.');
|
1155
|
+
});
|
1104
1156
|
up.on('up:fragment:poll', function (event) {
|
1105
1157
|
if (!pollEnabledRef[0]) {
|
1106
1158
|
event.preventDefault();
|
@@ -1119,16 +1171,18 @@ up.compiler('[up-hungry][up-if-history]', function (element) {
|
|
1119
1171
|
|
1120
1172
|
|
1121
1173
|
/***/ }),
|
1122
|
-
/*
|
1174
|
+
/* 22 */
|
1123
1175
|
/***/ (() => {
|
1124
1176
|
|
1125
1177
|
up.migrate.renamedPackage('layout', 'viewport');
|
1126
|
-
up.
|
1127
|
-
up.migrate.renamedProperty(
|
1128
|
-
up.migrate.renamedProperty(
|
1129
|
-
up.migrate.renamedProperty(
|
1130
|
-
up.migrate.renamedProperty(
|
1131
|
-
up.migrate.
|
1178
|
+
up.viewport.config.patch(function (config) {
|
1179
|
+
up.migrate.renamedProperty(config, 'viewports', 'viewportSelectors');
|
1180
|
+
up.migrate.renamedProperty(config, 'fixedTop', 'fixedTopSelectors');
|
1181
|
+
up.migrate.renamedProperty(config, 'fixedBottom', 'fixedBottomSelectors');
|
1182
|
+
up.migrate.renamedProperty(config, 'anchoredRight', 'anchoredRightSelectors');
|
1183
|
+
up.migrate.renamedProperty(config, 'snap', 'revealSnap');
|
1184
|
+
up.migrate.removedProperty(config, 'scrollSpeed');
|
1185
|
+
});
|
1132
1186
|
up.viewport.closest = function (...args) {
|
1133
1187
|
up.migrate.deprecated('up.viewport.closest()', 'up.viewport.get()');
|
1134
1188
|
return up.viewport.get(...args);
|
@@ -1195,6 +1249,7 @@ __webpack_require__(18);
|
|
1195
1249
|
__webpack_require__(19);
|
1196
1250
|
__webpack_require__(20);
|
1197
1251
|
__webpack_require__(21);
|
1252
|
+
__webpack_require__(22);
|
1198
1253
|
up.framework.stopExtension();
|
1199
1254
|
|
1200
1255
|
})();
|