@atlaskit/react-ufo 1.1.0 → 2.0.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 +24 -0
- package/README.md +5 -0
- package/additional-payload/package.json +15 -0
- package/bundle-eval-timing/package.json +15 -0
- package/coinflip/package.json +15 -0
- package/common/package.json +5 -5
- package/config/package.json +15 -0
- package/create-payload/package.json +15 -0
- package/create-post-interaction-log-payload/package.json +15 -0
- package/custom-data/package.json +15 -0
- package/custom-mark/package.json +15 -0
- package/custom-spans/package.json +15 -0
- package/custom-timings/package.json +15 -0
- package/dist/cjs/additional-payload/index.js +25 -0
- package/dist/cjs/additional-payload/utils/cache-hit-ratio/index.js +69 -0
- package/dist/cjs/additional-payload/utils/lighthouse-metrics/cls/index.js +53 -0
- package/dist/cjs/additional-payload/utils/lighthouse-metrics/const.js +10 -0
- package/dist/cjs/additional-payload/utils/lighthouse-metrics/index.js +29 -0
- package/dist/cjs/additional-payload/utils/lighthouse-metrics/tbt/index.js +25 -0
- package/dist/cjs/additional-payload/utils/lighthouse-metrics/utils/buffer/index.js +38 -0
- package/dist/cjs/additional-payload/utils/lighthouse-metrics/utils/observer/index.js +37 -0
- package/dist/cjs/bundle-eval-timing/index.js +48 -0
- package/dist/cjs/coinflip/index.js +22 -0
- package/dist/cjs/common/common/types.js +5 -0
- package/dist/cjs/common/constants.js +7 -0
- package/dist/cjs/common/index.js +1 -0
- package/dist/cjs/common/vc/types.js +11 -0
- package/dist/cjs/config/index.js +222 -0
- package/dist/cjs/create-payload/common/types.js +1 -0
- package/dist/cjs/create-payload/common/utils/index.js +15 -0
- package/dist/cjs/create-payload/index.js +784 -0
- package/dist/cjs/create-post-interaction-log-payload/index.js +207 -0
- package/dist/cjs/custom-data/index.js +31 -0
- package/dist/cjs/custom-data/types.js +5 -0
- package/dist/cjs/custom-mark/index.js +45 -0
- package/dist/cjs/custom-spans/index.js +14 -0
- package/dist/cjs/custom-timings/index.js +65 -0
- package/dist/cjs/experience-trace-id-context/index.js +40 -0
- package/dist/cjs/experience-trace-id-context/types.js +1 -0
- package/dist/cjs/experience-trace-id-context/utils/make-trace-http-request-headers/index.js +12 -0
- package/dist/cjs/feature-flags-accessed/common/constants.js +7 -0
- package/dist/cjs/feature-flags-accessed/common/types.js +5 -0
- package/dist/cjs/feature-flags-accessed/common/utils/index.js +38 -0
- package/dist/cjs/feature-flags-accessed/index.js +32 -0
- package/dist/cjs/generate-id/index.js +12 -0
- package/dist/cjs/global-error-handler/index.js +74 -0
- package/dist/cjs/hidden-timing/index.js +94 -0
- package/dist/cjs/initial-page-load-extra-timing/index.js +49 -0
- package/dist/cjs/interaction-context/index.js +14 -0
- package/dist/cjs/interaction-id-context/index.js +27 -0
- package/dist/cjs/interaction-metrics/common/constants.js +8 -0
- package/dist/cjs/interaction-metrics/index.js +810 -1
- package/dist/cjs/interaction-metrics/post-interaction-log.js +190 -0
- package/dist/cjs/interaction-metrics-init/index.js +89 -0
- package/dist/cjs/label/UFOLabel.js +45 -0
- package/dist/cjs/label/index.js +9 -0
- package/dist/cjs/load-hold/UFOLoadHold.js +76 -0
- package/dist/cjs/load-hold/index.js +9 -0
- package/dist/cjs/placeholder/Placeholder.js +34 -0
- package/dist/cjs/placeholder/index.js +9 -0
- package/dist/cjs/placeholder/loosely-lazy/index.js +19 -0
- package/dist/cjs/placeholder/loosely-lazy/lazy-suspense.js +80 -0
- package/dist/cjs/placeholder/loosely-lazy/types.js +5 -0
- package/dist/cjs/placeholder/loosely-lazy/wait-context.js +15 -0
- package/dist/cjs/resource-timing/common/types.js +1 -0
- package/dist/cjs/resource-timing/common/utils/config.js +70 -0
- package/dist/cjs/resource-timing/common/utils/resource-timing-buffer.js +111 -0
- package/dist/cjs/resource-timing/index.js +26 -0
- package/dist/cjs/resource-timing/main.js +141 -0
- package/dist/cjs/resource-timing/utils.js +10 -0
- package/dist/cjs/round-number/index.js +11 -0
- package/dist/cjs/route-name/index.js +12 -0
- package/dist/cjs/route-name-context/index.js +11 -0
- package/dist/cjs/segment/index.js +9 -0
- package/dist/cjs/segment/segment-highlight.js +40 -0
- package/dist/cjs/segment/segment.js +247 -0
- package/dist/cjs/set-interaction-error/index.js +17 -0
- package/dist/cjs/short-id/index.js +15 -0
- package/dist/cjs/ssr/index.js +70 -0
- package/dist/cjs/trace-interaction/index.js +48 -0
- package/dist/cjs/trace-pageload/index.js +58 -0
- package/dist/cjs/trace-press/index.js +34 -0
- package/dist/cjs/trace-redirect/index.js +17 -0
- package/dist/cjs/trace-transition/index.js +60 -0
- package/dist/cjs/trace-transition/utils/generate-span-id/index.js +11 -0
- package/dist/cjs/trace-transition/utils/set-interaction-active-trace/index.js +11 -0
- package/dist/cjs/typing-performance-tracing/index.js +262 -0
- package/dist/cjs/use-press-tracing/index.js +19 -0
- package/dist/cjs/vc/index.js +15 -0
- package/dist/cjs/vc/vc-observer/attachAbortListeners.js +40 -0
- package/dist/cjs/vc/vc-observer/getViewport.js +27 -0
- package/dist/cjs/vc/vc-observer/index.js +562 -0
- package/dist/cjs/vc/vc-observer/media-wrapper/index.js +15 -0
- package/dist/cjs/vc/vc-observer/media-wrapper/vc-utils.js +16 -0
- package/dist/cjs/vc/vc-observer/observers/index.js +270 -0
- package/dist/cjs/vc/vc-observer/observers/ssr-placeholders/index.js +183 -0
- package/dist/cjs/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/bindAbortListeners.js +22 -0
- package/dist/cjs/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/collectSSRPlaceholderDimensions.js +20 -0
- package/dist/cjs/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/index.js +19 -0
- package/dist/cjs/vc/vc-observer/observers/types.js +5 -0
- package/dist/es2019/additional-payload/index.js +2 -0
- package/dist/es2019/additional-payload/utils/cache-hit-ratio/index.js +63 -0
- package/dist/es2019/additional-payload/utils/lighthouse-metrics/cls/index.js +33 -0
- package/dist/es2019/additional-payload/utils/lighthouse-metrics/const.js +4 -0
- package/dist/es2019/additional-payload/utils/lighthouse-metrics/index.js +23 -0
- package/dist/es2019/additional-payload/utils/lighthouse-metrics/tbt/index.js +15 -0
- package/dist/es2019/additional-payload/utils/lighthouse-metrics/utils/buffer/index.js +23 -0
- package/dist/es2019/additional-payload/utils/lighthouse-metrics/utils/observer/index.js +31 -0
- package/dist/es2019/bundle-eval-timing/index.js +43 -0
- package/dist/es2019/coinflip/index.js +16 -0
- package/dist/es2019/common/common/types.js +1 -0
- package/dist/es2019/common/constants.js +1 -0
- package/dist/es2019/common/vc/types.js +5 -0
- package/dist/es2019/config/index.js +215 -0
- package/dist/es2019/create-payload/common/types.js +0 -0
- package/dist/es2019/create-payload/common/utils/index.js +8 -0
- package/dist/es2019/create-payload/index.js +792 -0
- package/dist/es2019/create-post-interaction-log-payload/index.js +188 -0
- package/dist/es2019/custom-data/index.js +24 -0
- package/dist/es2019/custom-data/types.js +1 -0
- package/dist/es2019/custom-mark/index.js +38 -0
- package/dist/es2019/custom-spans/index.js +6 -0
- package/dist/es2019/custom-timings/index.js +57 -0
- package/dist/es2019/experience-trace-id-context/index.js +31 -0
- package/dist/es2019/experience-trace-id-context/types.js +0 -0
- package/dist/es2019/experience-trace-id-context/utils/make-trace-http-request-headers/index.js +4 -0
- package/dist/es2019/feature-flags-accessed/common/constants.js +1 -0
- package/dist/es2019/feature-flags-accessed/common/types.js +1 -0
- package/dist/es2019/feature-flags-accessed/common/utils/index.js +24 -0
- package/dist/es2019/feature-flags-accessed/index.js +21 -0
- package/dist/es2019/generate-id/index.js +6 -0
- package/dist/es2019/global-error-handler/index.js +64 -0
- package/dist/es2019/hidden-timing/index.js +87 -0
- package/dist/es2019/initial-page-load-extra-timing/index.js +43 -0
- package/dist/es2019/interaction-context/index.js +6 -0
- package/dist/es2019/interaction-id-context/index.js +18 -0
- package/dist/es2019/interaction-metrics/common/constants.js +2 -0
- package/dist/es2019/interaction-metrics/index.js +736 -0
- package/dist/es2019/interaction-metrics/post-interaction-log.js +158 -0
- package/dist/es2019/interaction-metrics-init/index.js +72 -0
- package/dist/es2019/label/UFOLabel.js +34 -0
- package/dist/es2019/label/index.js +2 -0
- package/dist/es2019/load-hold/UFOLoadHold.js +66 -0
- package/dist/es2019/load-hold/index.js +2 -0
- package/dist/es2019/placeholder/Placeholder.js +25 -0
- package/dist/es2019/placeholder/index.js +2 -0
- package/dist/es2019/placeholder/loosely-lazy/index.js +2 -0
- package/dist/es2019/placeholder/loosely-lazy/lazy-suspense.js +63 -0
- package/dist/es2019/placeholder/loosely-lazy/types.js +1 -0
- package/dist/es2019/placeholder/loosely-lazy/wait-context.js +5 -0
- package/dist/es2019/resource-timing/common/types.js +0 -0
- package/dist/es2019/resource-timing/common/utils/config.js +44 -0
- package/dist/es2019/resource-timing/common/utils/resource-timing-buffer.js +88 -0
- package/dist/es2019/resource-timing/index.js +3 -0
- package/dist/es2019/resource-timing/main.js +130 -0
- package/dist/es2019/resource-timing/utils.js +4 -0
- package/dist/es2019/round-number/index.js +4 -0
- package/dist/es2019/route-name/index.js +6 -0
- package/dist/es2019/route-name-context/index.js +5 -0
- package/dist/es2019/segment/index.js +2 -0
- package/dist/es2019/segment/segment-highlight.js +27 -0
- package/dist/es2019/segment/segment.js +218 -0
- package/dist/es2019/set-interaction-error/index.js +11 -0
- package/dist/es2019/short-id/index.js +8 -0
- package/dist/es2019/ssr/index.js +54 -0
- package/dist/es2019/trace-interaction/index.js +41 -0
- package/dist/es2019/trace-pageload/index.js +48 -0
- package/dist/es2019/trace-press/index.js +27 -0
- package/dist/es2019/trace-redirect/index.js +10 -0
- package/dist/es2019/trace-transition/index.js +48 -0
- package/dist/es2019/trace-transition/utils/generate-span-id/index.js +1 -0
- package/dist/es2019/trace-transition/utils/set-interaction-active-trace/index.js +5 -0
- package/dist/es2019/typing-performance-tracing/index.js +255 -0
- package/dist/es2019/use-press-tracing/index.js +12 -0
- package/dist/es2019/vc/index.js +8 -0
- package/dist/es2019/vc/vc-observer/attachAbortListeners.js +34 -0
- package/dist/es2019/vc/vc-observer/getViewport.js +18 -0
- package/dist/es2019/vc/vc-observer/index.js +522 -0
- package/dist/es2019/vc/vc-observer/media-wrapper/index.js +9 -0
- package/dist/es2019/vc/vc-observer/media-wrapper/vc-utils.js +10 -0
- package/dist/es2019/vc/vc-observer/observers/index.js +231 -0
- package/dist/es2019/vc/vc-observer/observers/ssr-placeholders/index.js +146 -0
- package/dist/es2019/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/bindAbortListeners.js +16 -0
- package/dist/es2019/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/collectSSRPlaceholderDimensions.js +14 -0
- package/dist/es2019/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/index.js +2 -0
- package/dist/es2019/vc/vc-observer/observers/types.js +1 -0
- package/dist/esm/additional-payload/index.js +2 -0
- package/dist/esm/additional-payload/utils/cache-hit-ratio/index.js +63 -0
- package/dist/esm/additional-payload/utils/lighthouse-metrics/cls/index.js +47 -0
- package/dist/esm/additional-payload/utils/lighthouse-metrics/cls/types.js +0 -0
- package/dist/esm/additional-payload/utils/lighthouse-metrics/const.js +4 -0
- package/dist/esm/additional-payload/utils/lighthouse-metrics/index.js +22 -0
- package/dist/esm/additional-payload/utils/lighthouse-metrics/tbt/index.js +19 -0
- package/dist/esm/additional-payload/utils/lighthouse-metrics/utils/buffer/index.js +31 -0
- package/dist/esm/additional-payload/utils/lighthouse-metrics/utils/observer/index.js +31 -0
- package/dist/esm/bundle-eval-timing/index.js +41 -0
- package/dist/esm/coinflip/index.js +16 -0
- package/dist/esm/common/common/types.js +1 -0
- package/dist/esm/common/constants.js +1 -0
- package/dist/esm/common/index.js +0 -0
- package/dist/esm/common/vc/types.js +5 -0
- package/dist/esm/config/index.js +206 -0
- package/dist/esm/create-payload/common/types.js +0 -0
- package/dist/esm/create-payload/common/utils/index.js +8 -0
- package/dist/esm/create-payload/index.js +774 -0
- package/dist/esm/create-post-interaction-log-payload/index.js +200 -0
- package/dist/esm/custom-data/index.js +23 -0
- package/dist/esm/custom-data/types.js +1 -0
- package/dist/esm/custom-mark/index.js +36 -0
- package/dist/esm/custom-spans/index.js +8 -0
- package/dist/esm/custom-timings/index.js +56 -0
- package/dist/esm/experience-trace-id-context/index.js +34 -0
- package/dist/esm/experience-trace-id-context/types.js +0 -0
- package/dist/esm/experience-trace-id-context/utils/make-trace-http-request-headers/index.js +6 -0
- package/dist/esm/feature-flags-accessed/common/constants.js +1 -0
- package/dist/esm/feature-flags-accessed/common/types.js +1 -0
- package/dist/esm/feature-flags-accessed/common/utils/index.js +31 -0
- package/dist/esm/feature-flags-accessed/index.js +21 -0
- package/dist/esm/generate-id/index.js +6 -0
- package/dist/esm/global-error-handler/index.js +67 -0
- package/dist/esm/hidden-timing/index.js +87 -0
- package/dist/esm/initial-page-load-extra-timing/index.js +42 -0
- package/dist/esm/interaction-context/index.js +6 -0
- package/dist/esm/interaction-id-context/index.js +22 -0
- package/dist/esm/interaction-metrics/common/constants.js +2 -0
- package/dist/esm/interaction-metrics/index.js +773 -0
- package/dist/esm/interaction-metrics/post-interaction-log.js +184 -0
- package/dist/esm/interaction-metrics-init/index.js +77 -0
- package/dist/esm/label/UFOLabel.js +36 -0
- package/dist/esm/label/index.js +2 -0
- package/dist/esm/load-hold/UFOLoadHold.js +66 -0
- package/dist/esm/load-hold/index.js +2 -0
- package/dist/esm/placeholder/Placeholder.js +25 -0
- package/dist/esm/placeholder/index.js +2 -0
- package/dist/esm/placeholder/loosely-lazy/index.js +2 -0
- package/dist/esm/placeholder/loosely-lazy/lazy-suspense.js +70 -0
- package/dist/esm/placeholder/loosely-lazy/types.js +1 -0
- package/dist/esm/placeholder/loosely-lazy/wait-context.js +9 -0
- package/dist/esm/resource-timing/common/types.js +0 -0
- package/dist/esm/resource-timing/common/utils/config.js +62 -0
- package/dist/esm/resource-timing/common/utils/resource-timing-buffer.js +104 -0
- package/dist/esm/resource-timing/index.js +3 -0
- package/dist/esm/resource-timing/main.js +134 -0
- package/dist/esm/resource-timing/utils.js +4 -0
- package/dist/esm/round-number/index.js +5 -0
- package/dist/esm/route-name/index.js +6 -0
- package/dist/esm/route-name-context/index.js +5 -0
- package/dist/esm/segment/index.js +2 -0
- package/dist/esm/segment/segment-highlight.js +30 -0
- package/dist/esm/segment/segment.js +235 -0
- package/dist/esm/set-interaction-error/index.js +11 -0
- package/dist/esm/short-id/index.js +9 -0
- package/dist/esm/ssr/index.js +59 -0
- package/dist/esm/trace-interaction/index.js +41 -0
- package/dist/esm/trace-pageload/index.js +50 -0
- package/dist/esm/trace-press/index.js +27 -0
- package/dist/esm/trace-redirect/index.js +10 -0
- package/dist/esm/trace-transition/index.js +49 -0
- package/dist/esm/trace-transition/utils/generate-span-id/index.js +5 -0
- package/dist/esm/trace-transition/utils/set-interaction-active-trace/index.js +5 -0
- package/dist/esm/typing-performance-tracing/index.js +255 -0
- package/dist/esm/use-press-tracing/index.js +12 -0
- package/dist/esm/vc/index.js +9 -0
- package/dist/esm/vc/vc-observer/attachAbortListeners.js +34 -0
- package/dist/esm/vc/vc-observer/getViewport.js +20 -0
- package/dist/esm/vc/vc-observer/index.js +555 -0
- package/dist/esm/vc/vc-observer/media-wrapper/index.js +7 -0
- package/dist/esm/vc/vc-observer/media-wrapper/vc-utils.js +10 -0
- package/dist/esm/vc/vc-observer/observers/index.js +263 -0
- package/dist/esm/vc/vc-observer/observers/ssr-placeholders/index.js +176 -0
- package/dist/esm/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/bindAbortListeners.js +16 -0
- package/dist/esm/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/collectSSRPlaceholderDimensions.js +14 -0
- package/dist/esm/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/index.js +2 -0
- package/dist/esm/vc/vc-observer/observers/types.js +1 -0
- package/dist/types/additional-payload/index.d.ts +2 -0
- package/dist/types/additional-payload/utils/cache-hit-ratio/index.d.ts +8 -0
- package/dist/types/additional-payload/utils/lighthouse-metrics/cls/index.d.ts +2 -0
- package/dist/types/additional-payload/utils/lighthouse-metrics/cls/types.d.ts +3 -0
- package/dist/types/additional-payload/utils/lighthouse-metrics/const.d.ts +5 -0
- package/dist/types/additional-payload/utils/lighthouse-metrics/index.d.ts +7 -0
- package/dist/types/additional-payload/utils/lighthouse-metrics/tbt/index.d.ts +5 -0
- package/dist/types/additional-payload/utils/lighthouse-metrics/utils/buffer/index.d.ts +13 -0
- package/dist/types/additional-payload/utils/lighthouse-metrics/utils/observer/index.d.ts +2 -0
- package/dist/types/bundle-eval-timing/index.d.ts +16 -0
- package/dist/types/coinflip/index.d.ts +8 -0
- package/dist/types/common/common/types.d.ts +201 -0
- package/dist/types/common/constants.d.ts +1 -0
- package/dist/types/common/index.d.ts +5 -0
- package/dist/types/common/vc/types.d.ts +91 -0
- package/dist/types/config/index.d.ts +91 -0
- package/dist/types/create-payload/common/types.d.ts +4 -0
- package/dist/types/create-payload/common/utils/index.d.ts +3 -0
- package/dist/types/create-payload/index.d.ts +2969 -0
- package/dist/types/create-post-interaction-log-payload/index.d.ts +45 -0
- package/dist/types/custom-data/index.d.ts +5 -0
- package/dist/types/custom-data/types.d.ts +4 -0
- package/dist/types/custom-mark/index.d.ts +10 -0
- package/dist/types/custom-spans/index.d.ts +1 -0
- package/dist/types/custom-timings/index.d.ts +19 -0
- package/dist/types/experience-trace-id-context/index.d.ts +10 -0
- package/dist/types/experience-trace-id-context/types.d.ts +8 -0
- package/dist/types/experience-trace-id-context/utils/make-trace-http-request-headers/index.d.ts +4 -0
- package/dist/types/feature-flags-accessed/common/constants.d.ts +1 -0
- package/dist/types/feature-flags-accessed/common/types.d.ts +2 -0
- package/dist/types/feature-flags-accessed/common/utils/index.d.ts +3 -0
- package/dist/types/feature-flags-accessed/index.d.ts +14 -0
- package/dist/types/generate-id/index.d.ts +2 -0
- package/dist/types/global-error-handler/index.d.ts +3 -0
- package/dist/types/hidden-timing/index.d.ts +7 -0
- package/dist/types/initial-page-load-extra-timing/index.d.ts +9 -0
- package/dist/types/interaction-context/index.d.ts +33 -0
- package/dist/types/interaction-id-context/index.d.ts +9 -0
- package/dist/types/interaction-metrics/common/constants.d.ts +3 -0
- package/dist/types/interaction-metrics/index.d.ts +65 -1
- package/dist/types/interaction-metrics/post-interaction-log.d.ts +69 -0
- package/dist/types/interaction-metrics-init/index.d.ts +11 -0
- package/dist/types/label/UFOLabel.d.ts +13 -0
- package/dist/types/label/index.d.ts +2 -0
- package/dist/types/load-hold/UFOLoadHold.d.ts +53 -0
- package/dist/types/load-hold/index.d.ts +2 -0
- package/dist/types/placeholder/Placeholder.d.ts +13 -0
- package/dist/types/placeholder/index.d.ts +2 -0
- package/dist/types/placeholder/loosely-lazy/index.d.ts +3 -0
- package/dist/types/placeholder/loosely-lazy/lazy-suspense.d.ts +6 -0
- package/dist/types/placeholder/loosely-lazy/types.d.ts +20 -0
- package/dist/types/placeholder/loosely-lazy/wait-context.d.ts +3 -0
- package/dist/types/resource-timing/common/types.d.ts +41 -0
- package/dist/types/resource-timing/common/utils/config.d.ts +3 -0
- package/dist/types/resource-timing/common/utils/resource-timing-buffer.d.ts +11 -0
- package/dist/types/resource-timing/index.d.ts +4 -0
- package/dist/types/resource-timing/main.d.ts +2 -0
- package/dist/types/resource-timing/utils.d.ts +1 -0
- package/dist/types/round-number/index.d.ts +1 -0
- package/dist/types/route-name/index.d.ts +4 -0
- package/dist/types/route-name-context/index.d.ts +5 -0
- package/dist/types/segment/index.d.ts +2 -0
- package/dist/types/segment/segment-highlight.d.ts +6 -0
- package/dist/types/segment/segment.d.ts +8 -0
- package/dist/types/set-interaction-error/index.d.ts +4 -0
- package/dist/types/short-id/index.d.ts +1 -0
- package/dist/types/ssr/index.d.ts +21 -0
- package/dist/types/trace-interaction/index.d.ts +2 -0
- package/dist/types/trace-pageload/index.d.ts +2 -0
- package/dist/types/trace-press/index.d.ts +1 -0
- package/dist/types/trace-redirect/index.d.ts +1 -0
- package/dist/types/trace-transition/index.d.ts +2 -0
- package/dist/types/trace-transition/utils/generate-span-id/index.d.ts +1 -0
- package/dist/types/trace-transition/utils/set-interaction-active-trace/index.d.ts +1 -0
- package/dist/types/typing-performance-tracing/index.d.ts +2 -0
- package/dist/types/use-press-tracing/index.d.ts +1 -0
- package/dist/types/vc/index.d.ts +2 -0
- package/dist/types/vc/vc-observer/attachAbortListeners.d.ts +6 -0
- package/dist/types/vc/vc-observer/getViewport.d.ts +2 -0
- package/dist/types/vc/vc-observer/index.d.ts +98 -0
- package/dist/types/vc/vc-observer/media-wrapper/index.d.ts +7 -0
- package/dist/types/vc/vc-observer/media-wrapper/vc-utils.d.ts +1 -0
- package/dist/types/vc/vc-observer/observers/index.d.ts +39 -0
- package/dist/types/vc/vc-observer/observers/ssr-placeholders/index.d.ts +23 -0
- package/dist/types/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/bindAbortListeners.d.ts +1 -0
- package/dist/types/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/collectSSRPlaceholderDimensions.d.ts +1 -0
- package/dist/types/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/index.d.ts +2 -0
- package/dist/types/vc/vc-observer/observers/types.d.ts +11 -0
- package/dist/types-ts4.5/additional-payload/index.d.ts +2 -0
- package/dist/types-ts4.5/additional-payload/utils/cache-hit-ratio/index.d.ts +8 -0
- package/dist/types-ts4.5/additional-payload/utils/lighthouse-metrics/cls/index.d.ts +2 -0
- package/dist/types-ts4.5/additional-payload/utils/lighthouse-metrics/cls/types.d.ts +3 -0
- package/dist/types-ts4.5/additional-payload/utils/lighthouse-metrics/const.d.ts +5 -0
- package/dist/types-ts4.5/additional-payload/utils/lighthouse-metrics/index.d.ts +7 -0
- package/dist/types-ts4.5/additional-payload/utils/lighthouse-metrics/tbt/index.d.ts +5 -0
- package/dist/types-ts4.5/additional-payload/utils/lighthouse-metrics/utils/buffer/index.d.ts +13 -0
- package/dist/types-ts4.5/additional-payload/utils/lighthouse-metrics/utils/observer/index.d.ts +2 -0
- package/dist/types-ts4.5/bundle-eval-timing/index.d.ts +16 -0
- package/dist/types-ts4.5/coinflip/index.d.ts +8 -0
- package/dist/types-ts4.5/common/common/types.d.ts +201 -0
- package/dist/types-ts4.5/common/constants.d.ts +1 -0
- package/dist/types-ts4.5/common/index.d.ts +5 -0
- package/dist/types-ts4.5/common/vc/types.d.ts +91 -0
- package/dist/types-ts4.5/config/index.d.ts +95 -0
- package/dist/types-ts4.5/create-payload/common/types.d.ts +4 -0
- package/dist/types-ts4.5/create-payload/common/utils/index.d.ts +3 -0
- package/dist/types-ts4.5/create-payload/index.d.ts +2969 -0
- package/dist/types-ts4.5/create-post-interaction-log-payload/index.d.ts +45 -0
- package/dist/types-ts4.5/custom-data/index.d.ts +5 -0
- package/dist/types-ts4.5/custom-data/types.d.ts +4 -0
- package/dist/types-ts4.5/custom-mark/index.d.ts +10 -0
- package/dist/types-ts4.5/custom-spans/index.d.ts +1 -0
- package/dist/types-ts4.5/custom-timings/index.d.ts +19 -0
- package/dist/types-ts4.5/experience-trace-id-context/index.d.ts +10 -0
- package/dist/types-ts4.5/experience-trace-id-context/types.d.ts +8 -0
- package/dist/types-ts4.5/experience-trace-id-context/utils/make-trace-http-request-headers/index.d.ts +4 -0
- package/dist/types-ts4.5/feature-flags-accessed/common/constants.d.ts +1 -0
- package/dist/types-ts4.5/feature-flags-accessed/common/types.d.ts +2 -0
- package/dist/types-ts4.5/feature-flags-accessed/common/utils/index.d.ts +3 -0
- package/dist/types-ts4.5/feature-flags-accessed/index.d.ts +14 -0
- package/dist/types-ts4.5/generate-id/index.d.ts +2 -0
- package/dist/types-ts4.5/global-error-handler/index.d.ts +3 -0
- package/dist/types-ts4.5/hidden-timing/index.d.ts +7 -0
- package/dist/types-ts4.5/initial-page-load-extra-timing/index.d.ts +9 -0
- package/dist/types-ts4.5/interaction-context/index.d.ts +33 -0
- package/dist/types-ts4.5/interaction-id-context/index.d.ts +9 -0
- package/dist/types-ts4.5/interaction-metrics/common/constants.d.ts +3 -0
- package/dist/types-ts4.5/interaction-metrics/index.d.ts +65 -1
- package/dist/types-ts4.5/interaction-metrics/post-interaction-log.d.ts +69 -0
- package/dist/types-ts4.5/interaction-metrics-init/index.d.ts +11 -0
- package/dist/types-ts4.5/label/UFOLabel.d.ts +13 -0
- package/dist/types-ts4.5/label/index.d.ts +2 -0
- package/dist/types-ts4.5/load-hold/UFOLoadHold.d.ts +53 -0
- package/dist/types-ts4.5/load-hold/index.d.ts +2 -0
- package/dist/types-ts4.5/placeholder/Placeholder.d.ts +13 -0
- package/dist/types-ts4.5/placeholder/index.d.ts +2 -0
- package/dist/types-ts4.5/placeholder/loosely-lazy/index.d.ts +3 -0
- package/dist/types-ts4.5/placeholder/loosely-lazy/lazy-suspense.d.ts +6 -0
- package/dist/types-ts4.5/placeholder/loosely-lazy/types.d.ts +20 -0
- package/dist/types-ts4.5/placeholder/loosely-lazy/wait-context.d.ts +3 -0
- package/dist/types-ts4.5/resource-timing/common/types.d.ts +41 -0
- package/dist/types-ts4.5/resource-timing/common/utils/config.d.ts +3 -0
- package/dist/types-ts4.5/resource-timing/common/utils/resource-timing-buffer.d.ts +11 -0
- package/dist/types-ts4.5/resource-timing/index.d.ts +4 -0
- package/dist/types-ts4.5/resource-timing/main.d.ts +2 -0
- package/dist/types-ts4.5/resource-timing/utils.d.ts +1 -0
- package/dist/types-ts4.5/round-number/index.d.ts +1 -0
- package/dist/types-ts4.5/route-name/index.d.ts +4 -0
- package/dist/types-ts4.5/route-name-context/index.d.ts +5 -0
- package/dist/types-ts4.5/segment/index.d.ts +2 -0
- package/dist/types-ts4.5/segment/segment-highlight.d.ts +6 -0
- package/dist/types-ts4.5/segment/segment.d.ts +8 -0
- package/dist/types-ts4.5/set-interaction-error/index.d.ts +4 -0
- package/dist/types-ts4.5/short-id/index.d.ts +1 -0
- package/dist/types-ts4.5/ssr/index.d.ts +21 -0
- package/dist/types-ts4.5/trace-interaction/index.d.ts +2 -0
- package/dist/types-ts4.5/trace-pageload/index.d.ts +2 -0
- package/dist/types-ts4.5/trace-press/index.d.ts +1 -0
- package/dist/types-ts4.5/trace-redirect/index.d.ts +1 -0
- package/dist/types-ts4.5/trace-transition/index.d.ts +2 -0
- package/dist/types-ts4.5/trace-transition/utils/generate-span-id/index.d.ts +1 -0
- package/dist/types-ts4.5/trace-transition/utils/set-interaction-active-trace/index.d.ts +1 -0
- package/dist/types-ts4.5/typing-performance-tracing/index.d.ts +2 -0
- package/dist/types-ts4.5/use-press-tracing/index.d.ts +1 -0
- package/dist/types-ts4.5/vc/index.d.ts +2 -0
- package/dist/types-ts4.5/vc/vc-observer/attachAbortListeners.d.ts +6 -0
- package/dist/types-ts4.5/vc/vc-observer/getViewport.d.ts +2 -0
- package/dist/types-ts4.5/vc/vc-observer/index.d.ts +98 -0
- package/dist/types-ts4.5/vc/vc-observer/media-wrapper/index.d.ts +7 -0
- package/dist/types-ts4.5/vc/vc-observer/media-wrapper/vc-utils.d.ts +1 -0
- package/dist/types-ts4.5/vc/vc-observer/observers/index.d.ts +39 -0
- package/dist/types-ts4.5/vc/vc-observer/observers/ssr-placeholders/index.d.ts +23 -0
- package/dist/types-ts4.5/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/bindAbortListeners.d.ts +1 -0
- package/dist/types-ts4.5/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/collectSSRPlaceholderDimensions.d.ts +1 -0
- package/dist/types-ts4.5/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/index.d.ts +2 -0
- package/dist/types-ts4.5/vc/vc-observer/observers/types.d.ts +11 -0
- package/experience-trace-id-context/package.json +15 -0
- package/feature-flags-accessed/package.json +15 -0
- package/generate-id/package.json +15 -0
- package/global-error-handler/package.json +15 -0
- package/hidden-timing/package.json +15 -0
- package/initial-page-load-extra-timing/package.json +15 -0
- package/interaction-context/package.json +15 -0
- package/interaction-id-context/package.json +15 -0
- package/interaction-metrics-init/package.json +15 -0
- package/label/package.json +15 -0
- package/load-hold/package.json +15 -0
- package/package.json +55 -3
- package/placeholder/package.json +15 -0
- package/resource-timing/package.json +15 -0
- package/round-number/package.json +15 -0
- package/route-name/package.json +15 -0
- package/route-name-context/package.json +15 -0
- package/segment/package.json +15 -0
- package/set-interaction-error/package.json +15 -0
- package/short-id/package.json +15 -0
- package/ssr/package.json +15 -0
- package/ssr-scripts/package.json +15 -0
- package/trace-interaction/package.json +15 -0
- package/trace-pageload/package.json +15 -0
- package/trace-press/package.json +15 -0
- package/trace-redirect/package.json +15 -0
- package/trace-transition/package.json +15 -0
- package/typing-performance-tracing/package.json +15 -0
- package/use-press-tracing/package.json +15 -0
- package/vc/media/package.json +15 -0
- package/vc/package.json +15 -0
- package/dist/types/common/types.d.ts +0 -17
- package/dist/types-ts4.5/common/types.d.ts +0 -17
- /package/dist/cjs/{common → additional-payload/utils/lighthouse-metrics/cls}/types.js +0 -0
- /package/dist/es2019/{common → additional-payload/utils/lighthouse-metrics/cls}/types.js +0 -0
- /package/dist/{esm/common/types.js → es2019/common/index.js} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type FeatureFlagValue = boolean | string | number | Record<any, any>;
|
|
2
|
+
export type ReportedTiming = {
|
|
3
|
+
startTime: number;
|
|
4
|
+
duration: number;
|
|
5
|
+
};
|
|
6
|
+
export type ReportedTimings = {
|
|
7
|
+
[key: string]: ReportedTiming;
|
|
8
|
+
};
|
|
9
|
+
export type SSRFeatureFlags = {
|
|
10
|
+
[key: string]: FeatureFlagValue;
|
|
11
|
+
};
|
|
12
|
+
export type SSRConfig = {
|
|
13
|
+
getDoneMark: () => number | null;
|
|
14
|
+
getFeatureFlags: () => SSRFeatureFlags | null;
|
|
15
|
+
getTimings?: () => ReportedTimings | null;
|
|
16
|
+
};
|
|
17
|
+
export declare function configure(ssrConfig: SSRConfig): void;
|
|
18
|
+
export declare function getSSRTimings(): ReportedTimings;
|
|
19
|
+
export declare function getSSRSuccess(): boolean;
|
|
20
|
+
export declare function getSSRDoneTime(): number | undefined;
|
|
21
|
+
export declare function getSSRFeatureFlags(): SSRFeatureFlags | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function traceUFOPress(name: string, timestamp?: number): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function traceUFORedirect(fromUfoName: string, nextUfoName: string, nextRouteName: string, time: number): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateSpanId: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setInteractionActiveTrace: (newId: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function usePressTracing(name: string): (timeStamp?: number) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type UnbindFn } from 'bind-event-listener';
|
|
2
|
+
import { AbortEvent } from '../../common/vc/types';
|
|
3
|
+
export declare const attachAbortListeners: (window: Window, initialViewPort: {
|
|
4
|
+
w: number;
|
|
5
|
+
h: number;
|
|
6
|
+
}, callback: (key: keyof typeof AbortEvent, time: number) => void) => UnbindFn[];
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { type UnbindFn } from 'bind-event-listener';
|
|
2
|
+
import type { ComponentsLogType, VCAbortReasonType, VCEntryType, VCIgnoreReason, VCRatioType, VCRawDataType, VCResult } from '../../common/vc/types';
|
|
3
|
+
import { Observers, type SelectorConfig } from './observers';
|
|
4
|
+
type GetVCResultType = {
|
|
5
|
+
start: number;
|
|
6
|
+
stop: number;
|
|
7
|
+
tti: number;
|
|
8
|
+
prefix?: string;
|
|
9
|
+
ssr?: number;
|
|
10
|
+
vc?: VCRawDataType | null;
|
|
11
|
+
};
|
|
12
|
+
export type VCObserverOptions = {
|
|
13
|
+
heatmapSize?: number | undefined;
|
|
14
|
+
oldDomUpdates?: boolean | undefined;
|
|
15
|
+
devToolsEnabled?: boolean | undefined;
|
|
16
|
+
selectorConfig?: SelectorConfig | undefined;
|
|
17
|
+
isPostInteraction?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare class VCObserver {
|
|
20
|
+
abortReason: VCAbortReasonType;
|
|
21
|
+
outOfBoundaryInfo: string;
|
|
22
|
+
/** config * */
|
|
23
|
+
static VCParts: string[];
|
|
24
|
+
viewport: {
|
|
25
|
+
w: number;
|
|
26
|
+
h: number;
|
|
27
|
+
};
|
|
28
|
+
arraySize: number;
|
|
29
|
+
heatmap: number[][];
|
|
30
|
+
ssrInclusiveHeatmap: number[][];
|
|
31
|
+
componentsLog: ComponentsLogType;
|
|
32
|
+
vcRatios: VCRatioType;
|
|
33
|
+
active: boolean;
|
|
34
|
+
totalTime: number;
|
|
35
|
+
startTime: number;
|
|
36
|
+
observers: Observers;
|
|
37
|
+
private _startMeasureTimestamp;
|
|
38
|
+
ssr: {
|
|
39
|
+
reactRendered: number;
|
|
40
|
+
};
|
|
41
|
+
devToolsEnabled: boolean;
|
|
42
|
+
oldDomUpdatesEnabled: boolean;
|
|
43
|
+
unbind: UnbindFn[];
|
|
44
|
+
isPostInteraction?: boolean;
|
|
45
|
+
constructor(options: VCObserverOptions);
|
|
46
|
+
start({ startTime }: {
|
|
47
|
+
startTime: number;
|
|
48
|
+
}): void;
|
|
49
|
+
stop(): void;
|
|
50
|
+
getAbortReasonInfo: () => string | null;
|
|
51
|
+
getVCRawData: () => VCRawDataType | null;
|
|
52
|
+
getIgnoredElements(componentsLog: ComponentsLogType): {
|
|
53
|
+
targetName: string;
|
|
54
|
+
ignoreReason: VCIgnoreReason | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
getVCResult: ({ start, stop, tti, prefix, ssr, vc }: GetVCResultType) => VCResult;
|
|
57
|
+
static calculateVC({ heatmap, ssr, componentsLog, viewport, }: {
|
|
58
|
+
heatmap: number[][];
|
|
59
|
+
ssr?: number;
|
|
60
|
+
componentsLog: ComponentsLogType;
|
|
61
|
+
viewport: {
|
|
62
|
+
w: number;
|
|
63
|
+
h: number;
|
|
64
|
+
};
|
|
65
|
+
}): {
|
|
66
|
+
VC: {
|
|
67
|
+
[key: string]: number | null;
|
|
68
|
+
};
|
|
69
|
+
VCBox: {
|
|
70
|
+
[key: string]: string[] | null;
|
|
71
|
+
};
|
|
72
|
+
VCEntries: {
|
|
73
|
+
abs: number[][];
|
|
74
|
+
rel: VCEntryType[];
|
|
75
|
+
};
|
|
76
|
+
totalPainted: number;
|
|
77
|
+
};
|
|
78
|
+
setSSRElement(element: HTMLElement): void;
|
|
79
|
+
setReactRootRenderStart(startTime?: number): void;
|
|
80
|
+
setReactRootRenderStop(stopTime?: number): void;
|
|
81
|
+
private handleUpdate;
|
|
82
|
+
private setAbortReason;
|
|
83
|
+
private resetState;
|
|
84
|
+
private getCleanHeatmap;
|
|
85
|
+
private setViewportSize;
|
|
86
|
+
private mapPixelsToHeatmap;
|
|
87
|
+
private getElementRatio;
|
|
88
|
+
private applyChangesToHeatMap;
|
|
89
|
+
static makeVCReturnObj<T>(): {
|
|
90
|
+
[key: string]: T | null;
|
|
91
|
+
};
|
|
92
|
+
private abortReasonCallback;
|
|
93
|
+
private attachAbortListeners;
|
|
94
|
+
private detachAbortListeners;
|
|
95
|
+
private measureStart;
|
|
96
|
+
private measureStop;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isContainedWithinMediaWrapper: (node: Node | null) => boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { BrowserObservers, Callback } from './types';
|
|
2
|
+
export type SelectorConfig = {
|
|
3
|
+
id: boolean;
|
|
4
|
+
testId: boolean;
|
|
5
|
+
role: boolean;
|
|
6
|
+
className: boolean;
|
|
7
|
+
dataVC?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type ConstructorOptions = {
|
|
10
|
+
selectorConfig: SelectorConfig;
|
|
11
|
+
};
|
|
12
|
+
export declare class Observers implements BrowserObservers {
|
|
13
|
+
private intersectionObserver;
|
|
14
|
+
private mutationObserver;
|
|
15
|
+
private observedMutations;
|
|
16
|
+
private elementsInView;
|
|
17
|
+
private callbacks;
|
|
18
|
+
private totalTime;
|
|
19
|
+
private _startMeasureTimestamp;
|
|
20
|
+
private ssrPlaceholderHandler;
|
|
21
|
+
private ssr;
|
|
22
|
+
private selectorConfig;
|
|
23
|
+
constructor(opts: ConstructorOptions);
|
|
24
|
+
isBrowserSupported(): boolean;
|
|
25
|
+
observe(): void;
|
|
26
|
+
disconnect(): void;
|
|
27
|
+
subscribeResults: (cb: Callback) => void;
|
|
28
|
+
getTotalTime(): number;
|
|
29
|
+
setReactRootElement(element: HTMLElement): void;
|
|
30
|
+
setReactRootRenderStart(startTime?: number): void;
|
|
31
|
+
setReactRootRenderStop(stopTime?: number): void;
|
|
32
|
+
private observeElement;
|
|
33
|
+
private getMutationObserver;
|
|
34
|
+
private getElementName;
|
|
35
|
+
private getIntersectionObserver;
|
|
36
|
+
private measureStart;
|
|
37
|
+
private measureStop;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class SSRPlaceholderHandlers {
|
|
2
|
+
private staticPlaceholders;
|
|
3
|
+
private callbacks;
|
|
4
|
+
private getSizeCallbacks;
|
|
5
|
+
private reactValidateCallbacks;
|
|
6
|
+
private intersectionObserver;
|
|
7
|
+
constructor();
|
|
8
|
+
clear(): void;
|
|
9
|
+
isPlaceholder(element: HTMLElement): boolean;
|
|
10
|
+
isPlaceholderReplacement(element: HTMLElement): boolean;
|
|
11
|
+
isPlaceholderIgnored(element: HTMLElement): boolean;
|
|
12
|
+
findNearestPlaceholderContainerIfIgnored(element: HTMLElement): HTMLElement;
|
|
13
|
+
checkIfExistedAndSizeMatching(el: HTMLElement): Promise<unknown>;
|
|
14
|
+
getSize(el: HTMLElement): Promise<unknown>;
|
|
15
|
+
validateReactComponentMatchToPlaceholder(el: HTMLElement): Promise<unknown>;
|
|
16
|
+
hasSameSizePosition(rect: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
} | undefined, boundingClientRect: DOMRectReadOnly): boolean;
|
|
22
|
+
intersectionObserverCallback: ({ target, boundingClientRect }: IntersectionObserverEntry) => void;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function bindAbortListeners(document: Document, window: Window): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function collectSSRPlaceholderDimensions(document: Document, window: Window): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VCIgnoreReason } from '../../../common/vc/types';
|
|
2
|
+
export type Callback = (time: number, box: DOMRectReadOnly, targetName: string, node: HTMLElement, ignoreReason?: VCIgnoreReason) => void;
|
|
3
|
+
export type MutationRecordWithTimestamp = MutationRecord & {
|
|
4
|
+
timestamp?: number;
|
|
5
|
+
};
|
|
6
|
+
export interface BrowserObservers {
|
|
7
|
+
observe: () => void;
|
|
8
|
+
disconnect: () => void;
|
|
9
|
+
subscribeResults: (cb: Callback) => void;
|
|
10
|
+
getTotalTime: () => number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/experience-trace-id-context",
|
|
3
|
+
"main": "../dist/cjs/experience-trace-id-context/index.js",
|
|
4
|
+
"module": "../dist/esm/experience-trace-id-context/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/experience-trace-id-context/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/experience-trace-id-context/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/experience-trace-id-context/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/feature-flags-accessed",
|
|
3
|
+
"main": "../dist/cjs/feature-flags-accessed/index.js",
|
|
4
|
+
"module": "../dist/esm/feature-flags-accessed/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/feature-flags-accessed/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/feature-flags-accessed/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/feature-flags-accessed/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/generate-id",
|
|
3
|
+
"main": "../dist/cjs/generate-id/index.js",
|
|
4
|
+
"module": "../dist/esm/generate-id/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/generate-id/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/generate-id/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/generate-id/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/global-error-handler",
|
|
3
|
+
"main": "../dist/cjs/global-error-handler/index.js",
|
|
4
|
+
"module": "../dist/esm/global-error-handler/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/global-error-handler/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/global-error-handler/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/global-error-handler/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/hidden-timing",
|
|
3
|
+
"main": "../dist/cjs/hidden-timing/index.js",
|
|
4
|
+
"module": "../dist/esm/hidden-timing/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/hidden-timing/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/hidden-timing/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/hidden-timing/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/initial-page-load-extra-timing",
|
|
3
|
+
"main": "../dist/cjs/initial-page-load-extra-timing/index.js",
|
|
4
|
+
"module": "../dist/esm/initial-page-load-extra-timing/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/initial-page-load-extra-timing/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/initial-page-load-extra-timing/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/initial-page-load-extra-timing/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/interaction-context",
|
|
3
|
+
"main": "../dist/cjs/interaction-context/index.js",
|
|
4
|
+
"module": "../dist/esm/interaction-context/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/interaction-context/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/interaction-context/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/interaction-context/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/interaction-id-context",
|
|
3
|
+
"main": "../dist/cjs/interaction-id-context/index.js",
|
|
4
|
+
"module": "../dist/esm/interaction-id-context/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/interaction-id-context/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/interaction-id-context/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/interaction-id-context/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/interaction-metrics-init",
|
|
3
|
+
"main": "../dist/cjs/interaction-metrics-init/index.js",
|
|
4
|
+
"module": "../dist/esm/interaction-metrics-init/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/interaction-metrics-init/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/interaction-metrics-init/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/interaction-metrics-init/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/label",
|
|
3
|
+
"main": "../dist/cjs/label/index.js",
|
|
4
|
+
"module": "../dist/esm/label/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/label/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/label/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/label/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/load-hold",
|
|
3
|
+
"main": "../dist/cjs/load-hold/index.js",
|
|
4
|
+
"module": "../dist/esm/load-hold/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/load-hold/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/load-hold/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/load-hold/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,17 +27,64 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"atlaskit:src": "src/index.ts",
|
|
29
29
|
"af:exports": {
|
|
30
|
-
"./
|
|
30
|
+
"./additional-payload": "./src/additional-payload/index.ts",
|
|
31
|
+
"./bundle-eval-timing": "./src/bundle-eval-timing/index.ts",
|
|
32
|
+
"./coinflip": "./src/coinflip/index.ts",
|
|
33
|
+
"./common": "./src/common/index.ts",
|
|
34
|
+
"./config": "./src/config/index.ts",
|
|
35
|
+
"./create-payload": "./src/create-payload/index.ts",
|
|
36
|
+
"./create-post-interaction-log-payload": "./src/create-post-interaction-log-payload/index.ts",
|
|
37
|
+
"./custom-data": "./src/custom-data/index.ts",
|
|
38
|
+
"./custom-mark": "./src/custom-mark/index.ts",
|
|
39
|
+
"./custom-spans": "./src/custom-spans/index.ts",
|
|
40
|
+
"./custom-timings": "./src/custom-timings/index.ts",
|
|
41
|
+
"./experience-trace-id-context": "./src/experience-trace-id-context/index.ts",
|
|
42
|
+
"./feature-flags-accessed": "./src/feature-flags-accessed/index.ts",
|
|
43
|
+
"./generate-id": "./src/generate-id/index.ts",
|
|
44
|
+
"./global-error-handler": "./src/global-error-handler/index.ts",
|
|
45
|
+
"./hidden-timing": "./src/hidden-timing/index.ts",
|
|
46
|
+
"./initial-page-load-extra-timing": "./src/initial-page-load-extra-timing/index.ts",
|
|
47
|
+
"./interaction-context": "./src/interaction-context/index.ts",
|
|
48
|
+
"./interaction-id-context": "./src/interaction-id-context/index.ts",
|
|
31
49
|
"./interaction-metrics": "./src/interaction-metrics/index.ts",
|
|
50
|
+
"./interaction-metrics-init": "./src/interaction-metrics-init/index.ts",
|
|
51
|
+
"./label": "./src/label/index.ts",
|
|
52
|
+
"./load-hold": "./src/load-hold/index.ts",
|
|
53
|
+
"./placeholder": "./src/placeholder/index.ts",
|
|
54
|
+
"./resource-timing": "./src/resource-timing/index.ts",
|
|
55
|
+
"./round-number": "./src/round-number/index.ts",
|
|
56
|
+
"./route-name": "./src/route-name/index.ts",
|
|
57
|
+
"./route-name-context": "./src/route-name-context/index.ts",
|
|
58
|
+
"./segment": "./src/segment/index.ts",
|
|
59
|
+
"./set-interaction-error": "./src/set-interaction-error/index.ts",
|
|
60
|
+
"./short-id": "./src/short-id/index.ts",
|
|
61
|
+
"./ssr": "./src/ssr/index.ts",
|
|
62
|
+
"./ssr-scripts": "./src/vc/vc-observer/observers/ssr-placeholders/ssr-scripts/index.ts",
|
|
63
|
+
"./trace-interaction": "./src/trace-interaction/index.ts",
|
|
64
|
+
"./trace-pageload": "./src/trace-pageload/index.ts",
|
|
65
|
+
"./trace-press": "./src/trace-press/index.ts",
|
|
66
|
+
"./trace-redirect": "./src/trace-redirect/index.ts",
|
|
67
|
+
"./trace-transition": "./src/trace-transition/index.ts",
|
|
68
|
+
"./typing-performance-tracing": "./src/typing-performance-tracing/index.ts",
|
|
69
|
+
"./use-press-tracing": "./src/use-press-tracing/index.ts",
|
|
70
|
+
"./vc": "./src/vc/index.ts",
|
|
71
|
+
"./vc/media": "./src/vc/vc-observer/media-wrapper/index.tsx",
|
|
32
72
|
".": "./src/index.ts"
|
|
33
73
|
},
|
|
34
74
|
"dependencies": {
|
|
35
|
-
"@
|
|
75
|
+
"@atlaskit/interaction-context": "^2.1.0",
|
|
76
|
+
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
77
|
+
"@babel/runtime": "^7.0.0",
|
|
78
|
+
"bind-event-listener": "^3.0.0",
|
|
79
|
+
"bowser-ultralight": "^1.0.6",
|
|
80
|
+
"scheduler": "0.19.1",
|
|
81
|
+
"uuid": "^3.1.0"
|
|
36
82
|
},
|
|
37
83
|
"peerDependencies": {
|
|
38
84
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
39
85
|
},
|
|
40
86
|
"devDependencies": {
|
|
87
|
+
"@atlassian/a11y-jest-testing": "*",
|
|
41
88
|
"@testing-library/react": "^12.1.5"
|
|
42
89
|
},
|
|
43
90
|
"techstack": {
|
|
@@ -74,5 +121,10 @@
|
|
|
74
121
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
75
122
|
]
|
|
76
123
|
}
|
|
124
|
+
},
|
|
125
|
+
"platform-feature-flags": {
|
|
126
|
+
"no_ssr_placeholder_check_when_not_intersecting": {
|
|
127
|
+
"type": "boolean"
|
|
128
|
+
}
|
|
77
129
|
}
|
|
78
130
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/placeholder",
|
|
3
|
+
"main": "../dist/cjs/placeholder/index.js",
|
|
4
|
+
"module": "../dist/esm/placeholder/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/placeholder/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/placeholder/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/placeholder/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/resource-timing",
|
|
3
|
+
"main": "../dist/cjs/resource-timing/index.js",
|
|
4
|
+
"module": "../dist/esm/resource-timing/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/resource-timing/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/resource-timing/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/resource-timing/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/round-number",
|
|
3
|
+
"main": "../dist/cjs/round-number/index.js",
|
|
4
|
+
"module": "../dist/esm/round-number/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/round-number/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/round-number/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/round-number/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/route-name",
|
|
3
|
+
"main": "../dist/cjs/route-name/index.js",
|
|
4
|
+
"module": "../dist/esm/route-name/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/route-name/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/route-name/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/route-name/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/route-name-context",
|
|
3
|
+
"main": "../dist/cjs/route-name-context/index.js",
|
|
4
|
+
"module": "../dist/esm/route-name-context/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/route-name-context/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/route-name-context/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/route-name-context/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/react-ufo/segment",
|
|
3
|
+
"main": "../dist/cjs/segment/index.js",
|
|
4
|
+
"module": "../dist/esm/segment/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/segment/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/segment/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.4": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/segment/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|