@atlaskit/embedded-confluence 4.3.2 → 4.3.3
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 +2 -6
- package/dist/embedded-confluence-bundle.js +4 -4
- package/dist/tti-polyfill.js +1 -1
- package/dist/web-vitals.js +1 -1
- package/package.json +1 -1
package/dist/tti-polyfill.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonpEmbeddedConfluence=window.webpackJsonpEmbeddedConfluence||[]).push([[1],{
|
|
1
|
+
(window.webpackJsonpEmbeddedConfluence=window.webpackJsonpEmbeddedConfluence||[]).push([[1],{252:function(t,e,n){(function(n){var r;!function(){var o="undefined"!=typeof window&&window===this?this:void 0!==n&&null!=n?n:this,i="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function a(){a=function(){},o.Symbol||(o.Symbol=u)}var s=0;function u(t){return"jscomp_symbol_"+(t||"")+s++}function c(){a();var t=o.Symbol.iterator;t||(t=o.Symbol.iterator=o.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&i(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return f(this)}}),c=function(){}}function f(t){var e=0;return function(t){return c(),(t={next:t})[o.Symbol.iterator]=function(){return this},t}((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))}function d(t){c();var e=t[Symbol.iterator];return e?e.call(t):f(t)}function l(t){if(!(t instanceof Array)){t=d(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}var p=0;var h="img script iframe link audio video source".split(" ");function m(t,e){for(var n=(t=d(t)).next();!n.done;n=t.next())if(n=n.value,e.includes(n.nodeName.toLowerCase())||m(n.children,e))return!0;return!1}function v(t,e){if(2<t.length)return performance.now();for(var n=[],r=(e=d(e)).next();!r.done;r=e.next())r=r.value,n.push({timestamp:r.start,type:"requestStart"}),n.push({timestamp:r.end,type:"requestEnd"});for(r=(e=d(t)).next();!r.done;r=e.next())n.push({timestamp:r.value,type:"requestStart"});for(n.sort((function(t,e){return t.timestamp-e.timestamp})),t=t.length,e=n.length-1;0<=e;e--)switch(r=n[e],r.type){case"requestStart":t--;break;case"requestEnd":if(2<++t)return r.timestamp;break;default:throw Error("Internal Error: This should never happen")}return 0}function y(t){t=t||{},this.w=!!t.useMutationObserver,this.u=t.minValue||null,t=window.__tti&&window.__tti.e;var e=window.__tti&&window.__tti.o;this.a=t?t.map((function(t){return{start:t.startTime,end:t.startTime+t.duration}})):[],e&&e.disconnect(),this.b=[],this.f=new Map,this.j=null,this.v=-1/0,this.i=!1,this.h=this.c=this.s=null,function(t,e){var n=XMLHttpRequest.prototype.send,r=p++;XMLHttpRequest.prototype.send=function(o){for(var i=[],a=0;a<arguments.length;++a)i[a-0]=arguments[a];var s=this;return t(r),this.addEventListener("readystatechange",(function(){4===s.readyState&&e(r)})),n.apply(this,i)}}(this.m.bind(this),this.l.bind(this)),function(t,e){var n=fetch;fetch=function(r){for(var o=[],i=0;i<arguments.length;++i)o[i-0]=arguments[i];return new Promise((function(r,i){var a=p++;t(a),n.apply(null,[].concat(l(o))).then((function(t){e(a),r(t)}),(function(t){e(t),i(t)}))}))}}(this.m.bind(this),this.l.bind(this)),function(t){t.c=new PerformanceObserver((function(e){for(var n=(e=d(e.getEntries())).next();!n.done;n=e.next())if("resource"===(n=n.value).entryType&&(t.b.push({start:n.fetchStart,end:n.responseEnd}),b(t,v(t.g,t.b)+5e3)),"longtask"===n.entryType){var r=n.startTime+n.duration;t.a.push({start:n.startTime,end:r}),b(t,r+5e3)}})),t.c.observe({entryTypes:["longtask","resource"]})}(this),this.w&&(this.h=function(t){var e=new MutationObserver((function(e){for(var n=(e=d(e)).next();!n.done;n=e.next())("childList"==(n=n.value).type&&m(n.addedNodes,h)||"attributes"==n.type&&h.includes(n.target.tagName.toLowerCase()))&&t(n)}));return e.observe(document,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["href","src"]}),e}(this.B.bind(this)))}function w(t){t.i=!0;var e=0<t.a.length?t.a[t.a.length-1].end:0,n=v(t.g,t.b);b(t,Math.max(n+5e3,e))}function b(t,e){!t.i||t.v>e||(clearTimeout(t.j),t.j=setTimeout((function(){var e=performance.timing.navigationStart,n=v(t.g,t.b);e=(window.a&&window.a.A?1e3*window.a.A().C-e:0)||performance.timing.domContentLoadedEventEnd-e;if(t.u)var r=t.u;else performance.timing.domContentLoadedEventEnd?r=(r=performance.timing).domContentLoadedEventEnd-r.navigationStart:r=null;var o=performance.now();null===r&&b(t,Math.max(n+5e3,o+1e3));var i=t.a;5e3>o-n?n=null:n=5e3>o-(n=i.length?i[i.length-1].end:e)?null:Math.max(n,r),n&&(t.s(n),clearTimeout(t.j),t.i=!1,t.c&&t.c.disconnect(),t.h&&t.h.disconnect()),b(t,performance.now()+1e3)}),e-performance.now()),t.v=e)}y.prototype.getFirstConsistentlyInteractive=function(){var t=this;return new Promise((function(e){t.s=e,"complete"==document.readyState?w(t):window.addEventListener("load",(function(){w(t)}))}))},y.prototype.m=function(t){this.f.set(t,performance.now())},y.prototype.l=function(t){this.f.delete(t)},y.prototype.B=function(){b(this,performance.now()+5e3)},o.Object.defineProperties(y.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(l(this.f.values()))}}});var g={getFirstConsistentlyInteractive:function(t){return t=t||{},"PerformanceLongTaskTiming"in window?new y(t).getFirstConsistentlyInteractive():Promise.resolve(null)}};t.exports?t.exports=g:void 0===(r=function(){return g}.apply(e,[]))||(t.exports=r)}()}).call(this,n(94))}}]);
|
package/dist/web-vitals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonpEmbeddedConfluence=window.webpackJsonpEmbeddedConfluence||[]).push([[2],{
|
|
1
|
+
(window.webpackJsonpEmbeddedConfluence=window.webpackJsonpEmbeddedConfluence||[]).push([[2],{251:function(e,n,t){"use strict";t.r(n),t.d(n,"getCLS",(function(){return y})),t.d(n,"getFCP",(function(){return g})),t.d(n,"getFID",(function(){return C})),t.d(n,"getLCP",(function(){return k})),t.d(n,"getTTFB",(function(){return D}));var i,r,a,o,u=function(e,n){return{name:e,value:void 0===n?-1:n,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var t=new PerformanceObserver((function(e){return e.getEntries().map(n)}));return t.observe({type:e,buffered:!0}),t}}catch(e){}},f=function(e,n){var t=function t(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),n&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0)))};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},s=function(e){addEventListener("pageshow",(function(n){n.persisted&&e(n)}),!0)},d=function(e,n,t){var i;return function(r){n.value>=0&&(r||t)&&(n.delta=n.value-(i||0),(n.delta||void 0===i)&&(i=n.value,e(n)))}},m=-1,v=function(){return"hidden"===document.visibilityState?0:1/0},p=function(){f((function(e){var n=e.timeStamp;m=n}),!0)},l=function(){return m<0&&(m=v(),p(),s((function(){setTimeout((function(){m=v(),p()}),0)}))),{get firstHiddenTime(){return m}}},g=function(e,n){var t,i=l(),r=u("FCP"),a=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),t(!0)))},o=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",a);(o||f)&&(t=d(e,r,n),o&&a(o),s((function(i){r=u("FCP"),t=d(e,r,n),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,t(!0)}))}))})))},T=!1,h=-1,y=function(e,n){T||(g((function(e){h=e.value})),T=!0);var t,i=function(n){h>-1&&e(n)},r=u("CLS",0),a=0,o=[],m=function(e){if(!e.hadRecentInput){var n=o[0],i=o[o.length-1];a&&e.startTime-i.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>r.value&&(r.value=a,r.entries=o,t())}},v=c("layout-shift",m);v&&(t=d(i,r,n),f((function(){v.takeRecords().map(m),t(!0)})),s((function(){a=0,h=-1,r=u("CLS",0),t=d(i,r,n)})))},E={passive:!0,capture:!0},w=new Date,L=function(e,n){i||(i=n,r=e,a=new Date,F(removeEventListener),S())},S=function(){if(r>=0&&r<a-w){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+r};o.forEach((function(n){n(e)})),o=[]}},b=function(e){if(e.cancelable){var n=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){L(e,n),r()},i=function(){r()},r=function(){removeEventListener("pointerup",t,E),removeEventListener("pointercancel",i,E)};addEventListener("pointerup",t,E),addEventListener("pointercancel",i,E)}(n,e):L(n,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(n){return e(n,b,E)}))},C=function(e,n){var t,a=l(),m=u("FID"),v=function(e){e.startTime<a.firstHiddenTime&&(m.value=e.processingStart-e.startTime,m.entries.push(e),t(!0))},p=c("first-input",v);t=d(e,m,n),p&&f((function(){p.takeRecords().map(v),p.disconnect()}),!0),p&&s((function(){var a;m=u("FID"),t=d(e,m,n),o=[],r=-1,i=null,F(addEventListener),a=v,o.push(a),S()}))},P={},k=function(e,n){var t,i=l(),r=u("LCP"),a=function(e){var n=e.startTime;n<i.firstHiddenTime&&(r.value=n,r.entries.push(e),t())},o=c("largest-contentful-paint",a);if(o){t=d(e,r,n);var m=function(){P[r.id]||(o.takeRecords().map(a),o.disconnect(),P[r.id]=!0,t(!0))};["keydown","click"].forEach((function(e){addEventListener(e,m,{once:!0,capture:!0})})),f(m,!0),s((function(i){r=u("LCP"),t=d(e,r,n),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,P[r.id]=!0,t(!0)}))}))}))}},D=function(e){var n,t=u("TTFB");n=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,n={entryType:"navigation",startTime:0};for(var t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n}();if(t.value=t.delta=n.responseStart,t.value<0||t.value>performance.now())return;t.entries=[n],e(t)}catch(e){}},"complete"===document.readyState?setTimeout(n,0):addEventListener("load",(function(){return setTimeout(n,0)}))}}}]);
|