From edd7e4effe7c4d5098adbaed05cef9f4521f7602 Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 6 Sep 2022 05:50:01 +0200 Subject: [PATCH] Added: in-view v0.6.1 (#1127) --- THIRD_PARTY.txt | 1 + audit/audit.sh | 2 ++ core/mappings.js | 1 + core/resources.js | 4 ++++ modules/internal/targets.js | 2 ++ pages/updates/updates.html | 1 + resources/in-view/0.6.1/in-view.min.jsm | 6 ++++++ 7 files changed, 17 insertions(+) create mode 100644 resources/in-view/0.6.1/in-view.min.jsm diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index 2c2f763f..716decc3 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -1833,6 +1833,7 @@ https://cdn.jsdelivr.net/npm/@findify/bundle@7.1.57/dist/search.js https://cdn.jsdelivr.net/npm/@findify/bundle@7.1.57/dist/sentry.js https://cdn.jsdelivr.net/npm/@findify/bundle@7.1.57/dist/styles.css https://cdn.jsdelivr.net/npm/instantsearch.css@7.4.5/themes/algolia-min.css +https://cdn.jsdelivr.net/npm/in-view@0.6.1/dist/in-view.min.js https://cdn.jsdelivr.net/npm/leaflet.featuregroup.subgroup@1.0.2/dist/leaflet.featuregroup.subgroup.js https://cdn.jsdelivr.net/npm/ngx-bootstrap@6.2.0/datepicker/bs-datepicker.css https://cdn.jsdelivr.net/npm/ngx-bootstrap@7.1.2/datepicker/bs-datepicker.css diff --git a/audit/audit.sh b/audit/audit.sh index 0014c9a0..f7219b60 100755 --- a/audit/audit.sh +++ b/audit/audit.sh @@ -718,6 +718,8 @@ function create_url() { url="$CLOUDFLARE/$folder/$version/moment-with-langs.min.js" elif [ "$folder" = "react-intl" ]; then url="$JSDELIVR/npm/react-intl@$version/react-intl.iife.min.js" + elif [ "$folder" = "in-view" ]; then + url="$JSDELIVR/npm/in-view@$version/dist/in-view.min.js" # -------------------------------------------------------------------------- else if [ "$subfile" = "$jfile" ]; then diff --git a/core/mappings.js b/core/mappings.js index 1944dce2..2397cbc7 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -610,6 +610,7 @@ mappings.cdn = { 'instantsearch.js@{version}/dist/instantsearch.production.': resources.InstantSearchJS, 'instantsearch.js@{version}': resources.InstantSearchJS, 'instantsearch.css@{version}': resources.InstantSearchCSS, + 'in-view@{version}/dist/in-view.min.js': resources.inView, 'jquery@{version}/dist/jquery.': resources.jQuery, 'jquery@{version}/dist/jquery.min.': resources.jQuery, 'jquery.scrollto@{version}/jquery.scrollTo.': resources.jQueryScrollTo, diff --git a/core/resources.js b/core/resources.js index 4923ae15..db8266a6 100644 --- a/core/resources.js +++ b/core/resources.js @@ -506,6 +506,10 @@ var resources = { 'InstantSearchCSS': { 'path': 'resources/instantsearch.css/{version}/algolia-min.css' }, + // in-view [Deprecated] + 'inView': { + 'path': 'resources/in-view/{version}/in-view.min.jsm' + }, // iScroll [Deprecated] 'iScroll': { 'path': 'resources/iScroll/{version}/iscroll.min.jsm' diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 61af1a54..7801b90c 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -240,6 +240,7 @@ targets.setLastVersion = function (type, version) { if (type.startsWith('/instantsearch.css/7.')) return '7.4.5'; if (type.startsWith('/instantsearch.js/3.')) return '3.7.0'; if (type.startsWith('/instantsearch.js/4.')) return '4.45.0'; + if (type.startsWith('/in-view/0.')) return '0.6.1'; if (type.startsWith('/iScroll/5.')) return '5.2.0'; if (type.startsWith('/izimodal/1.')) return '1.6.1'; if (type.startsWith('/jets/0.')) return '0.14.1'; @@ -481,6 +482,7 @@ targets.determineResourceName = function (filename) { }; const ListOfFiles = { + 'in-view.min.jsm': 'in-view', 'jquery.minicolors.min.jsm': 'jquery-minicolors (JS)', 'jquery.minicolors.min.css': 'jquery-minicolors (CSS)', 'jquery.Jcrop.min.jsm': 'jquery-jcrop (JS)', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 447752df..dc39d92e 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -41,6 +41,7 @@
diff --git a/resources/in-view/0.6.1/in-view.min.jsm b/resources/in-view/0.6.1/in-view.min.jsm new file mode 100644 index 00000000..d5616325 --- /dev/null +++ b/resources/in-view/0.6.1/in-view.min.jsm @@ -0,0 +1,6 @@ +/*! + * in-view 0.6.1 - Get notified when a DOM element enters or exits the viewport. + * Copyright (c) 2016 Cam Wiegert - https://camwiegert.github.io/in-view + * License: MIT + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.inView=e():t.inView=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(2),o=r(i);t.exports=o["default"]},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),o=r(i),u=n(3),f=r(u),s=n(4),c=function(){if("undefined"!=typeof window){var t=100,e=["scroll","resize","load"],n={history:[]},r={offset:{},threshold:0,test:s.inViewport},i=(0,o["default"])(function(){n.history.forEach(function(t){n[t].check()})},t);e.forEach(function(t){return addEventListener(t,i)}),window.MutationObserver&&addEventListener("DOMContentLoaded",function(){new MutationObserver(i).observe(document.body,{attributes:!0,childList:!0,subtree:!0})});var u=function(t){if("string"==typeof t){var e=[].slice.call(document.querySelectorAll(t));return n.history.indexOf(t)>-1?n[t].elements=e:(n[t]=(0,f["default"])(e,r),n.history.push(t)),n[t]}};return u.offset=function(t){if(void 0===t)return r.offset;var e=function(t){return"number"==typeof t};return["top","right","bottom","left"].forEach(e(t)?function(e){return r.offset[e]=t}:function(n){return e(t[n])?r.offset[n]=t[n]:null}),r.offset},u.threshold=function(t){return"number"==typeof t&&t>=0&&t<=1?r.threshold=t:r.threshold},u.test=function(t){return"function"==typeof t?r.test=t:r.test},u.is=function(t){return r.test(t,r)},u.offset(0),u}};e["default"]=c()},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n-1,o=n&&!i,u=!n&&i;o&&(t.current.push(e),t.emit("enter",e)),u&&(t.current.splice(r,1),t.emit("exit",e))}),this}},{key:"on",value:function(t,e){return this.handlers[t].push(e),this}},{key:"once",value:function(t,e){return this.singles[t].unshift(e),this}},{key:"emit",value:function(t,e){for(;this.singles[t].length;)this.singles[t].pop()(e);for(var n=this.handlers[t].length;--n>-1;)this.handlers[t][n](e);return this}}]),t}();e["default"]=function(t,e){return new i(t,e)}},function(t,e){"use strict";function n(t,e){var n=t.getBoundingClientRect(),r=n.top,i=n.right,o=n.bottom,u=n.left,f=n.width,s=n.height,c={t:o,r:window.innerWidth-u,b:window.innerHeight-r,l:i},a={x:e.threshold*f,y:e.threshold*s};return c.t>e.offset.top+a.y&&c.r>e.offset.right+a.x&&c.b>e.offset.bottom+a.y&&c.l>e.offset.left+a.x}Object.defineProperty(e,"__esModule",{value:!0}),e.inViewport=n},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){var r=n(5),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e,n){function r(t,e,n){function r(e){var n=x,r=m;return x=m=void 0,E=e,w=t.apply(r,n)}function a(t){return E=t,j=setTimeout(h,e),M?r(t):w}function l(t){var n=t-O,r=t-E,i=e-n;return _?c(i,g-r):i}function d(t){var n=t-O,r=t-E;return void 0===O||n>=e||n<0||_&&r>=g}function h(){var t=o();return d(t)?p(t):void(j=setTimeout(h,l(t)))}function p(t){return j=void 0,T&&x?r(t):(x=m=void 0,w)}function v(){void 0!==j&&clearTimeout(j),E=0,x=O=m=j=void 0}function y(){return void 0===j?w:p(o())}function b(){var t=o(),n=d(t);if(x=arguments,m=this,O=t,n){if(void 0===j)return a(O);if(_)return j=setTimeout(h,e),r(O)}return void 0===j&&(j=setTimeout(h,e)),w}var x,m,g,w,j,O,E=0,M=!1,_=!1,T=!0;if("function"!=typeof t)throw new TypeError(f);return e=u(e)||0,i(n)&&(M=!!n.leading,_="maxWait"in n,g=_?s(u(n.maxWait)||0,e):g,T="trailing"in n?!!n.trailing:T),b.cancel=v,b.flush=y,b}var i=n(1),o=n(8),u=n(10),f="Expected a function",s=Math.max,c=Math.min;t.exports=r},function(t,e,n){var r=n(6),i=function(){return r.Date.now()};t.exports=i},function(t,e,n){function r(t,e,n){var r=!0,f=!0;if("function"!=typeof t)throw new TypeError(u);return o(n)&&(r="leading"in n?!!n.leading:r,f="trailing"in n?!!n.trailing:f),i(t,e,{leading:r,maxWait:e,trailing:f})}var i=n(7),o=n(1),u="Expected a function";t.exports=r},function(t,e){function n(t){return t}t.exports=n}])}); \ No newline at end of file