From 2cbd0cca1c2d5effe49b6917200b62118db2b68f Mon Sep 17 00:00:00 2001 From: Nina Ceban Ciocanu Date: Mon, 19 Aug 2024 20:09:16 +0300 Subject: [PATCH] Adding personalization monitors to Web SDK (#1142) --- bundlesize.json | 14 ++-- sandbox/public/index.html | 8 ++ .../Personalization/createFetchDataHandler.js | 38 ++++++++- .../createViewChangeHandler.js | 13 +++- .../Personalization/flicker/index.js | 77 +++++++++++-------- .../handlers/createProcessPropositions.js | 33 ++++++-- .../handlers/createProcessRedirect.js | 9 +++ .../handlers/injectCreateProposition.js | 3 - src/components/Personalization/index.js | 7 +- src/core/createLogger.js | 13 ++++ .../createFetchDataHandler.spec.js | 4 +- .../createViewChangeHandler.spec.js | 5 +- .../createProcessPropositions.spec.js | 14 +++- .../handlers/createProcessRedirect.spec.js | 5 +- .../Personalization/topLevel/buildAlloy.js | 2 + .../Personalization/topLevel/buildMocks.js | 6 ++ 16 files changed, 197 insertions(+), 54 deletions(-) diff --git a/bundlesize.json b/bundlesize.json index a77b9b509..a34a27a74 100644 --- a/bundlesize.json +++ b/bundlesize.json @@ -5,13 +5,13 @@ "brotiliSize": 133 }, "dist/alloy.js": { - "uncompressedSize": 578928, - "gzippedSize": 88244, - "brotiliSize": 68739 + "uncompressedSize": 583092, + "gzippedSize": 89038, + "brotiliSize": 69312 }, "dist/alloy.min.js": { - "uncompressedSize": 119915, - "gzippedSize": 39760, - "brotiliSize": 34596 + "uncompressedSize": 122217, + "gzippedSize": 40474, + "brotiliSize": 35152 } -} \ No newline at end of file +} diff --git a/sandbox/public/index.html b/sandbox/public/index.html index 0b711f48b..bd725cbe5 100755 --- a/sandbox/public/index.html +++ b/sandbox/public/index.html @@ -15,6 +15,14 @@