diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index a0dfc609..3ca73908 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -1745,6 +1745,8 @@ https://cdn.jsdelivr.net/npm/plyr@3.6.12/dist/plyr.css https://cdn.jsdelivr.net/npm/plyr@3.6.12/dist/plyr.min.js https://cdn.jsdelivr.net/npm/raven-js@3.27.2/dist/raven.min.js https://cdn.jsdelivr.net/npm/react-lifecycles-compat@3.0.4/react-lifecycles-compat.min.js +https://cdn.jsdelivr.net/npm/search-insights@1.8.0/dist/search-insights.min.js +https://cdn.jsdelivr.net/npm/search-insights@2.2.1/dist/search-insights.min.js https://cdn.jsdelivr.net/npm/swiper@6.8.4/swiper-bundle.min.css https://cdn.jsdelivr.net/npm/swiper@6.8.4/swiper-bundle.min.js https://cdn.jsdelivr.net/npm/swiper@7.4.1/swiper-bundle.min.css diff --git a/core/mappings.js b/core/mappings.js index 402cac64..e8560d72 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -601,6 +601,7 @@ mappings.cdn = { 'redux@{version}/dist/redux.': resources.redux, 'react-dom@{version}/umd/react-dom.production.min.js': resources.reactDOM, 'react@{version}/umd/react.production.min.js': resources.react, + 'search-insights@{version}/dist/search-insights.': resources.searchInsights, 'select2@{version}/': resources.select2, 'swiper@{version}/swiper-bundle.css': resources.swiperCSS, 'swiper@{version}/swiper-bundle.min.css': resources.swiperCSS, diff --git a/core/resources.js b/core/resources.js index 93b97134..21cae902 100644 --- a/core/resources.js +++ b/core/resources.js @@ -862,6 +862,10 @@ var resources = { 'scriptaculous': { 'path': 'resources/scriptaculous/{version}/scriptaculous.jsm' }, + // Search Insights + 'searchInsights': { + 'path': 'resources/search-insights/{version}/search-insights.min.jsm' + }, // Select2 (Bundle) 'select2': { 'path': 'resources/select2/{version}/' diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 77b2e3de..7ec3ba08 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -341,6 +341,8 @@ targets.setLastVersion = function (type, version) { if (type.startsWith('/rickshaw/1.')) return '1.7.1'; if (type.startsWith('/script.js/2.')) return '2.5.9'; if (type.startsWith('/scriptaculous/1.')) return '1.9.0'; + if (type.startsWith('/search-insights/1.')) return '1.8.0'; + if (type.startsWith('/search-insights/2.')) return '2.2.1'; if (type.startsWith('/select2/3.')) return '3.5.4'; if (type.startsWith('/select2/4.')) return '4.0.13'; if (type.startsWith('/semantic-ui/2.')) return '2.4.1'; @@ -419,6 +421,7 @@ targets.determineResourceName = function (filename) { }; const ListOfFiles = { + 'search-insights.min.jsm': 'Search Insights', 'fork-awesome.min.css': 'Fork Awesome', 'foundation-icons.min.css': 'Foundation Icon Fonts', 'jquery.timeago.min.jsm': 'jquery-timeago', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index bdde428f..2e030296 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -42,6 +42,10 @@
  • algoliasearch -> cdn.jsdelivr.net (#843)
  • hogan.js -> cdn.jsdelivr.net (#843)
  • +

    Added

    +
    diff --git a/resources/search-insights/1.8.0/search-insights.min.jsm b/resources/search-insights/1.8.0/search-insights.min.jsm new file mode 100644 index 00000000..c0e23c9a --- /dev/null +++ b/resources/search-insights/1.8.0/search-insights.min.jsm @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).AlgoliaAnalytics={})}(this,function(e){"use strict";var t=function(){try{return Boolean(navigator.cookieEnabled)}catch(e){return!1}},r=function(){try{return Boolean(navigator.sendBeacon)}catch(e){return!1}},n=function(){try{return Boolean(XMLHttpRequest)}catch(e){return!1}},o=function(e){return void 0===e},i=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e},a=function(e){return"function"==typeof e};var c="insights-js (1.8.0)";var u=["de","us"],h=2592e6;var p,f,l,d,w=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},b="_ALGOLIA",y=function(e,t,r){var n=new Date;n.setTime(n.getTime()+r);var o="expires="+n.toUTCString();document.cookie=e+"="+t+";"+o+";path=/"},v=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n0;)r[n]=arguments[n+1];e&&a(t[e])?t[e].apply(t,r):console.warn("The method `"+e+"` doesn't exist.")}),o=e[r];o.queue=o.queue||[];var i=o.queue;i.forEach(function(e){var t=[].slice.call(e),r=t[0],o=t.slice(1);n.apply(void 0,[r].concat(o))}),i.push=function(e){var t=[].slice.call(e),r=t[0],o=t.slice(1);n.apply(void 0,[r].concat(o))}}}function D(e){var t=new g({requestFn:e});return"undefined"!=typeof window&&k.call(t,window),t}var E=D(function(){if(r())return I;if(n())return m;throw new Error("Could not find a supported HTTP request client in this environment.")}());e.createInsightsClient=D,e.default=E,Object.defineProperty(e,"__esModule",{value:!0})}); diff --git a/resources/search-insights/2.2.1/search-insights.min.jsm b/resources/search-insights/2.2.1/search-insights.min.jsm new file mode 100644 index 00000000..b22086d7 --- /dev/null +++ b/resources/search-insights/2.2.1/search-insights.min.jsm @@ -0,0 +1 @@ +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).AlgoliaAnalytics={})}(this,function(e){"use strict";var n=function(){try{return Boolean(navigator.cookieEnabled)}catch(e){return!1}},t=function(){try{return Boolean(navigator.sendBeacon)}catch(e){return!1}},i=function(){try{return Boolean(XMLHttpRequest)}catch(e){return!1}},o=function(e){return void 0===e},r=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e},a=function(e){return"function"==typeof e};function u(e){return function(n){var t=this;if(!this._userHasOptedOut){if(!this._hasCredentials)throw new Error("Before calling any methods on the analytics, you first need to call the 'init' function with appId and apiKey parameters");var i=n.map(function(e){var n,i,r=e.filters,s=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o0;)t[i]=arguments[i+1];e&&a(n[e])?n[e].apply(n,t):console.warn("The method `"+e+"` doesn't exist.")}),o=e[t];o.queue=o.queue||[];var r=o.queue;r.forEach(function(e){var n=[].slice.call(e),t=n[0],o=n.slice(1);i.apply(void 0,[t].concat(o))}),r.push=function(e){var n=[].slice.call(e),t=n[0],o=n.slice(1);i.apply(void 0,[t].concat(o))}}}function m(e){var n=new x({requestFn:e});return"undefined"!=typeof window&&T.call(n,window),n}var j=m(function(){if(t())return w;if(i())return _;throw new Error("Could not find a supported HTTP request client in this environment.")}());e.createInsightsClient=m,e.default=j,Object.defineProperty(e,"__esModule",{value:!0})});