@absmartly/sdk-plugins 1.0.1
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/README.md +1101 -0
- package/dist/absmartly-cookie.min.js +1 -0
- package/dist/absmartly-dom-changes-core.min.js +1 -0
- package/dist/absmartly-dom-changes-lite.min.js +1 -0
- package/dist/absmartly-overrides-full.min.js +1 -0
- package/dist/absmartly-overrides-lite.min.js +1 -0
- package/dist/absmartly-sdk-plugins.min.js +1 -0
- package/dist/absmartly-vitals.min.js +1 -0
- package/es/cookies/CookiePlugin.js +410 -0
- package/es/cookies/CookiePlugin.js.map +1 -0
- package/es/cookies/index.js +2 -0
- package/es/cookies/index.js.map +1 -0
- package/es/core/DOMChangesPluginLite.js +1124 -0
- package/es/core/DOMChangesPluginLite.js.map +1 -0
- package/es/core/DOMManipulatorLite.js +410 -0
- package/es/core/DOMManipulatorLite.js.map +1 -0
- package/es/core/ExposureTracker.js +501 -0
- package/es/core/ExposureTracker.js.map +1 -0
- package/es/core/HTMLInjector.js +333 -0
- package/es/core/HTMLInjector.js.map +1 -0
- package/es/core/PendingChangeManager.js +440 -0
- package/es/core/PendingChangeManager.js.map +1 -0
- package/es/core/StyleSheetManager.js +78 -0
- package/es/core/StyleSheetManager.js.map +1 -0
- package/es/entries/cookie-only.js +10 -0
- package/es/entries/cookie-only.js.map +1 -0
- package/es/entries/dom-only.js +13 -0
- package/es/entries/dom-only.js.map +1 -0
- package/es/entries/dom-with-overrides-full.js +19 -0
- package/es/entries/dom-with-overrides-full.js.map +1 -0
- package/es/entries/dom-with-overrides-lite.js +15 -0
- package/es/entries/dom-with-overrides-lite.js.map +1 -0
- package/es/entries/overrides-full-only.js +15 -0
- package/es/entries/overrides-full-only.js.map +1 -0
- package/es/entries/overrides-lite-only.js +12 -0
- package/es/entries/overrides-lite-only.js.map +1 -0
- package/es/entries/vitals-only.js +10 -0
- package/es/entries/vitals-only.js.map +1 -0
- package/es/index.js +17 -0
- package/es/index.js.map +1 -0
- package/es/overrides/BrowserCookieAdapter.js +76 -0
- package/es/overrides/BrowserCookieAdapter.js.map +1 -0
- package/es/overrides/OverridesPlugin.js +903 -0
- package/es/overrides/OverridesPlugin.js.map +1 -0
- package/es/overrides/OverridesPluginFull.js +32 -0
- package/es/overrides/OverridesPluginFull.js.map +1 -0
- package/es/overrides/OverridesPluginLite.js +352 -0
- package/es/overrides/OverridesPluginLite.js.map +1 -0
- package/es/overrides/index.js +4 -0
- package/es/overrides/index.js.map +1 -0
- package/es/overrides/types.js +2 -0
- package/es/overrides/types.js.map +1 -0
- package/es/parsers/VariantExtractor.js +570 -0
- package/es/parsers/VariantExtractor.js.map +1 -0
- package/es/types/index.js +2 -0
- package/es/types/index.js.map +1 -0
- package/es/utils/URLMatcher.js +114 -0
- package/es/utils/URLMatcher.js.map +1 -0
- package/es/utils/debug.js +184 -0
- package/es/utils/debug.js.map +1 -0
- package/es/vitals/WebVitalsPlugin.js +379 -0
- package/es/vitals/WebVitalsPlugin.js.map +1 -0
- package/es/vitals/index.js +2 -0
- package/es/vitals/index.js.map +1 -0
- package/lib/cookies/CookiePlugin.d.ts +55 -0
- package/lib/cookies/CookiePlugin.js +413 -0
- package/lib/cookies/CookiePlugin.js.map +1 -0
- package/lib/cookies/index.d.ts +2 -0
- package/lib/cookies/index.js +6 -0
- package/lib/cookies/index.js.map +1 -0
- package/lib/core/DOMChangesPluginLite.d.ts +89 -0
- package/lib/core/DOMChangesPluginLite.js +1127 -0
- package/lib/core/DOMChangesPluginLite.js.map +1 -0
- package/lib/core/DOMManipulatorLite.d.ts +21 -0
- package/lib/core/DOMManipulatorLite.js +413 -0
- package/lib/core/DOMManipulatorLite.js.map +1 -0
- package/lib/core/ExposureTracker.d.ts +81 -0
- package/lib/core/ExposureTracker.js +504 -0
- package/lib/core/ExposureTracker.js.map +1 -0
- package/lib/core/HTMLInjector.d.ts +19 -0
- package/lib/core/HTMLInjector.js +336 -0
- package/lib/core/HTMLInjector.js.map +1 -0
- package/lib/core/PendingChangeManager.d.ts +31 -0
- package/lib/core/PendingChangeManager.js +443 -0
- package/lib/core/PendingChangeManager.js.map +1 -0
- package/lib/core/StyleSheetManager.d.ts +16 -0
- package/lib/core/StyleSheetManager.js +81 -0
- package/lib/core/StyleSheetManager.js.map +1 -0
- package/lib/entries/cookie-only.d.ts +8 -0
- package/lib/entries/cookie-only.js +12 -0
- package/lib/entries/cookie-only.js.map +1 -0
- package/lib/entries/dom-only.d.ts +9 -0
- package/lib/entries/dom-only.js +29 -0
- package/lib/entries/dom-only.js.map +1 -0
- package/lib/entries/dom-with-overrides-full.d.ts +15 -0
- package/lib/entries/dom-with-overrides-full.js +39 -0
- package/lib/entries/dom-with-overrides-full.js.map +1 -0
- package/lib/entries/dom-with-overrides-lite.d.ts +11 -0
- package/lib/entries/dom-with-overrides-lite.js +32 -0
- package/lib/entries/dom-with-overrides-lite.js.map +1 -0
- package/lib/entries/overrides-full-only.d.ts +11 -0
- package/lib/entries/overrides-full-only.js +33 -0
- package/lib/entries/overrides-full-only.js.map +1 -0
- package/lib/entries/overrides-lite-only.d.ts +8 -0
- package/lib/entries/overrides-lite-only.js +28 -0
- package/lib/entries/overrides-lite-only.js.map +1 -0
- package/lib/entries/vitals-only.d.ts +8 -0
- package/lib/entries/vitals-only.js +12 -0
- package/lib/entries/vitals-only.js.map +1 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +34 -0
- package/lib/index.js.map +1 -0
- package/lib/overrides/BrowserCookieAdapter.d.ts +6 -0
- package/lib/overrides/BrowserCookieAdapter.js +79 -0
- package/lib/overrides/BrowserCookieAdapter.js.map +1 -0
- package/lib/overrides/OverridesPlugin.d.ts +33 -0
- package/lib/overrides/OverridesPlugin.js +906 -0
- package/lib/overrides/OverridesPlugin.js.map +1 -0
- package/lib/overrides/OverridesPluginFull.d.ts +9 -0
- package/lib/overrides/OverridesPluginFull.js +35 -0
- package/lib/overrides/OverridesPluginFull.js.map +1 -0
- package/lib/overrides/OverridesPluginLite.d.ts +27 -0
- package/lib/overrides/OverridesPluginLite.js +355 -0
- package/lib/overrides/OverridesPluginLite.js.map +1 -0
- package/lib/overrides/index.d.ts +3 -0
- package/lib/overrides/index.js +23 -0
- package/lib/overrides/index.js.map +1 -0
- package/lib/overrides/types.d.ts +43 -0
- package/lib/overrides/types.js +3 -0
- package/lib/overrides/types.js.map +1 -0
- package/lib/parsers/VariantExtractor.d.ts +49 -0
- package/lib/parsers/VariantExtractor.js +573 -0
- package/lib/parsers/VariantExtractor.js.map +1 -0
- package/lib/types/index.d.ts +177 -0
- package/lib/types/index.js +3 -0
- package/lib/types/index.js.map +1 -0
- package/lib/utils/URLMatcher.d.ts +20 -0
- package/lib/utils/URLMatcher.js +117 -0
- package/lib/utils/URLMatcher.js.map +1 -0
- package/lib/utils/debug.d.ts +41 -0
- package/lib/utils/debug.js +195 -0
- package/lib/utils/debug.js.map +1 -0
- package/lib/vitals/WebVitalsPlugin.d.ts +37 -0
- package/lib/vitals/WebVitalsPlugin.js +382 -0
- package/lib/vitals/WebVitalsPlugin.js.map +1 -0
- package/lib/vitals/index.d.ts +2 -0
- package/lib/vitals/index.js +6 -0
- package/lib/vitals/index.js.map +1 -0
- package/package.json +94 -0
- package/types/cookies/CookiePlugin.d.ts +55 -0
- package/types/cookies/index.d.ts +2 -0
- package/types/core/DOMChangesPluginLite.d.ts +89 -0
- package/types/core/DOMManipulatorLite.d.ts +21 -0
- package/types/core/ExposureTracker.d.ts +81 -0
- package/types/core/HTMLInjector.d.ts +19 -0
- package/types/core/PendingChangeManager.d.ts +31 -0
- package/types/core/StyleSheetManager.d.ts +16 -0
- package/types/entries/cookie-only.d.ts +8 -0
- package/types/entries/dom-only.d.ts +9 -0
- package/types/entries/dom-with-overrides-full.d.ts +15 -0
- package/types/entries/dom-with-overrides-lite.d.ts +11 -0
- package/types/entries/overrides-full-only.d.ts +11 -0
- package/types/entries/overrides-lite-only.d.ts +8 -0
- package/types/entries/vitals-only.d.ts +8 -0
- package/types/index.d.ts +13 -0
- package/types/overrides/BrowserCookieAdapter.d.ts +6 -0
- package/types/overrides/OverridesPlugin.d.ts +33 -0
- package/types/overrides/OverridesPluginFull.d.ts +9 -0
- package/types/overrides/OverridesPluginLite.d.ts +27 -0
- package/types/overrides/index.d.ts +3 -0
- package/types/overrides/types.d.ts +43 -0
- package/types/parsers/VariantExtractor.d.ts +49 -0
- package/types/types/index.d.ts +177 -0
- package/types/utils/URLMatcher.d.ts +20 -0
- package/types/utils/debug.d.ts +41 -0
- package/types/vitals/WebVitalsPlugin.d.ts +37 -0
- package/types/vitals/index.d.ts +2 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.WebVitalsPlugin = exports.CookiePlugin = exports.BrowserCookieAdapter = exports.OverridesPlugin = exports.OverridesPluginFull = exports.DOMChangesPlugin = exports.DOMChangesPluginLite = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Entry point for DOM Changes Plugin + Overrides Full
|
|
20
|
+
* Full bundle - DOM manipulation + full override capabilities with API support
|
|
21
|
+
*/
|
|
22
|
+
var DOMChangesPluginLite_1 = require("../core/DOMChangesPluginLite");
|
|
23
|
+
Object.defineProperty(exports, "DOMChangesPluginLite", { enumerable: true, get: function () { return DOMChangesPluginLite_1.DOMChangesPluginLite; } });
|
|
24
|
+
Object.defineProperty(exports, "DOMChangesPlugin", { enumerable: true, get: function () { return DOMChangesPluginLite_1.DOMChangesPluginLite; } });
|
|
25
|
+
var OverridesPluginFull_1 = require("../overrides/OverridesPluginFull");
|
|
26
|
+
Object.defineProperty(exports, "OverridesPluginFull", { enumerable: true, get: function () { return OverridesPluginFull_1.OverridesPluginFull; } });
|
|
27
|
+
Object.defineProperty(exports, "OverridesPlugin", { enumerable: true, get: function () { return OverridesPluginFull_1.OverridesPluginFull; } });
|
|
28
|
+
var BrowserCookieAdapter_1 = require("../overrides/BrowserCookieAdapter");
|
|
29
|
+
Object.defineProperty(exports, "BrowserCookieAdapter", { enumerable: true, get: function () { return BrowserCookieAdapter_1.BrowserCookieAdapter; } });
|
|
30
|
+
var CookiePlugin_1 = require("../cookies/CookiePlugin");
|
|
31
|
+
Object.defineProperty(exports, "CookiePlugin", { enumerable: true, get: function () { return CookiePlugin_1.CookiePlugin; } });
|
|
32
|
+
var WebVitalsPlugin_1 = require("../vitals/WebVitalsPlugin");
|
|
33
|
+
Object.defineProperty(exports, "WebVitalsPlugin", { enumerable: true, get: function () { return WebVitalsPlugin_1.WebVitalsPlugin; } });
|
|
34
|
+
// Re-export types
|
|
35
|
+
__exportStar(require("../types"), exports);
|
|
36
|
+
__exportStar(require("../overrides/types"), exports);
|
|
37
|
+
// Default export for UMD builds
|
|
38
|
+
exports.default = DOMChangesPluginLite_1.DOMChangesPluginLite;
|
|
39
|
+
//# sourceMappingURL=dom-with-overrides-full.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-with-overrides-full.js","sourceRoot":"","sources":["../../src/entries/dom-with-overrides-full.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,qEAAoE;AAYlE,qGAZO,2CAAoB,OAYP;AACI,iGAbjB,2CAAoB,OAaa;AAZ1C,wEAAuE;AAarE,oGAbO,yCAAmB,OAaP;AACI,gGAdhB,yCAAmB,OAcY;AAbxC,0EAAyE;AAcvE,qGAdO,2CAAoB,OAcP;AAbtB,wDAAuD;AAcrD,6FAdO,2BAAY,OAcP;AAbd,6DAA4D;AAc1D,gGAdO,iCAAe,OAcP;AAZjB,kBAAkB;AAClB,2CAAyB;AACzB,qDAAmC;AAanC,gCAAgC;AAChC,kBAAe,2CAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry point for DOM Changes Plugin + Overrides Lite
|
|
3
|
+
* Medium bundle - DOM manipulation + lightweight override detection
|
|
4
|
+
*/
|
|
5
|
+
import { DOMChangesPluginLite } from '../core/DOMChangesPluginLite';
|
|
6
|
+
import { OverridesPluginLite } from '../overrides/OverridesPluginLite';
|
|
7
|
+
export * from '../types';
|
|
8
|
+
export * from '../overrides/types';
|
|
9
|
+
export { DOMChangesPluginLite, OverridesPluginLite };
|
|
10
|
+
export { DOMChangesPluginLite as DOMChangesPlugin };
|
|
11
|
+
export default DOMChangesPluginLite;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.DOMChangesPlugin = exports.OverridesPluginLite = exports.DOMChangesPluginLite = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Entry point for DOM Changes Plugin + Overrides Lite
|
|
20
|
+
* Medium bundle - DOM manipulation + lightweight override detection
|
|
21
|
+
*/
|
|
22
|
+
var DOMChangesPluginLite_1 = require("../core/DOMChangesPluginLite");
|
|
23
|
+
Object.defineProperty(exports, "DOMChangesPluginLite", { enumerable: true, get: function () { return DOMChangesPluginLite_1.DOMChangesPluginLite; } });
|
|
24
|
+
Object.defineProperty(exports, "DOMChangesPlugin", { enumerable: true, get: function () { return DOMChangesPluginLite_1.DOMChangesPluginLite; } });
|
|
25
|
+
var OverridesPluginLite_1 = require("../overrides/OverridesPluginLite");
|
|
26
|
+
Object.defineProperty(exports, "OverridesPluginLite", { enumerable: true, get: function () { return OverridesPluginLite_1.OverridesPluginLite; } });
|
|
27
|
+
// Re-export types
|
|
28
|
+
__exportStar(require("../types"), exports);
|
|
29
|
+
__exportStar(require("../overrides/types"), exports);
|
|
30
|
+
// Default export for UMD builds
|
|
31
|
+
exports.default = DOMChangesPluginLite_1.DOMChangesPluginLite;
|
|
32
|
+
//# sourceMappingURL=dom-with-overrides-lite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-with-overrides-lite.js","sourceRoot":"","sources":["../../src/entries/dom-with-overrides-lite.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,qEAAoE;AAQ3D,qGARA,2CAAoB,OAQA;AACI,iGATxB,2CAAoB,OASoB;AARjD,wEAAuE;AAOxC,oGAPtB,yCAAmB,OAOsB;AALlD,kBAAkB;AAClB,2CAAyB;AACzB,qDAAmC;AAMnC,gCAAgC;AAChC,kBAAe,2CAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry point for Overrides Full Plugin only
|
|
3
|
+
* Full override capabilities with API support, no DOM manipulation
|
|
4
|
+
*/
|
|
5
|
+
import { OverridesPluginFull } from '../overrides/OverridesPluginFull';
|
|
6
|
+
import { BrowserCookieAdapter } from '../overrides/BrowserCookieAdapter';
|
|
7
|
+
import { CookiePlugin } from '../cookies/CookiePlugin';
|
|
8
|
+
export * from '../overrides/types';
|
|
9
|
+
export { OverridesPluginFull, OverridesPluginFull as OverridesPlugin, // Alias for backward compatibility
|
|
10
|
+
BrowserCookieAdapter, CookiePlugin, };
|
|
11
|
+
export default OverridesPluginFull;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CookiePlugin = exports.BrowserCookieAdapter = exports.OverridesPlugin = exports.OverridesPluginFull = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Entry point for Overrides Full Plugin only
|
|
20
|
+
* Full override capabilities with API support, no DOM manipulation
|
|
21
|
+
*/
|
|
22
|
+
var OverridesPluginFull_1 = require("../overrides/OverridesPluginFull");
|
|
23
|
+
Object.defineProperty(exports, "OverridesPluginFull", { enumerable: true, get: function () { return OverridesPluginFull_1.OverridesPluginFull; } });
|
|
24
|
+
Object.defineProperty(exports, "OverridesPlugin", { enumerable: true, get: function () { return OverridesPluginFull_1.OverridesPluginFull; } });
|
|
25
|
+
var BrowserCookieAdapter_1 = require("../overrides/BrowserCookieAdapter");
|
|
26
|
+
Object.defineProperty(exports, "BrowserCookieAdapter", { enumerable: true, get: function () { return BrowserCookieAdapter_1.BrowserCookieAdapter; } });
|
|
27
|
+
var CookiePlugin_1 = require("../cookies/CookiePlugin");
|
|
28
|
+
Object.defineProperty(exports, "CookiePlugin", { enumerable: true, get: function () { return CookiePlugin_1.CookiePlugin; } });
|
|
29
|
+
// Re-export types
|
|
30
|
+
__exportStar(require("../overrides/types"), exports);
|
|
31
|
+
// Default export for UMD builds
|
|
32
|
+
exports.default = OverridesPluginFull_1.OverridesPluginFull;
|
|
33
|
+
//# sourceMappingURL=overrides-full-only.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overrides-full-only.js","sourceRoot":"","sources":["../../src/entries/overrides-full-only.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,wEAAuE;AASrE,oGATO,yCAAmB,OASP;AACI,gGAVhB,yCAAmB,OAUY;AATxC,0EAAyE;AAUvE,qGAVO,2CAAoB,OAUP;AATtB,wDAAuD;AAUrD,6FAVO,2BAAY,OAUP;AARd,kBAAkB;AAClB,qDAAmC;AAUnC,gCAAgC;AAChC,kBAAe,yCAAmB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry point for Overrides Lite Plugin only
|
|
3
|
+
* Minimal bundle - just lightweight override detection and application
|
|
4
|
+
*/
|
|
5
|
+
import { OverridesPluginLite } from '../overrides/OverridesPluginLite';
|
|
6
|
+
export * from '../overrides/types';
|
|
7
|
+
export { OverridesPluginLite };
|
|
8
|
+
export default OverridesPluginLite;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.OverridesPluginLite = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* Entry point for Overrides Lite Plugin only
|
|
20
|
+
* Minimal bundle - just lightweight override detection and application
|
|
21
|
+
*/
|
|
22
|
+
var OverridesPluginLite_1 = require("../overrides/OverridesPluginLite");
|
|
23
|
+
Object.defineProperty(exports, "OverridesPluginLite", { enumerable: true, get: function () { return OverridesPluginLite_1.OverridesPluginLite; } });
|
|
24
|
+
// Re-export types
|
|
25
|
+
__exportStar(require("../overrides/types"), exports);
|
|
26
|
+
// Default export for UMD builds
|
|
27
|
+
exports.default = OverridesPluginLite_1.OverridesPluginLite;
|
|
28
|
+
//# sourceMappingURL=overrides-lite-only.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overrides-lite-only.js","sourceRoot":"","sources":["../../src/entries/overrides-lite-only.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,wEAAuE;AAM9D,oGANA,yCAAmB,OAMA;AAJ5B,kBAAkB;AAClB,qDAAmC;AAKnC,gCAAgC;AAChC,kBAAe,yCAAmB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entry point for WebVitalsPlugin only
|
|
3
|
+
* Standalone web vitals and page metrics tracking
|
|
4
|
+
*/
|
|
5
|
+
import { WebVitalsPlugin } from '../vitals/WebVitalsPlugin';
|
|
6
|
+
export type { WebVitalsPluginOptions, Metric } from '../vitals/WebVitalsPlugin';
|
|
7
|
+
export { WebVitalsPlugin };
|
|
8
|
+
export default WebVitalsPlugin;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebVitalsPlugin = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Entry point for WebVitalsPlugin only
|
|
6
|
+
* Standalone web vitals and page metrics tracking
|
|
7
|
+
*/
|
|
8
|
+
var WebVitalsPlugin_1 = require("../vitals/WebVitalsPlugin");
|
|
9
|
+
Object.defineProperty(exports, "WebVitalsPlugin", { enumerable: true, get: function () { return WebVitalsPlugin_1.WebVitalsPlugin; } });
|
|
10
|
+
// Default export for UMD builds
|
|
11
|
+
exports.default = WebVitalsPlugin_1.WebVitalsPlugin;
|
|
12
|
+
//# sourceMappingURL=vitals-only.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitals-only.js","sourceRoot":"","sources":["../../src/entries/vitals-only.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,6DAA4D;AAMnD,gGANA,iCAAe,OAMA;AAExB,gCAAgC;AAChC,kBAAe,iCAAe,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DOMChangesPluginLite } from './core/DOMChangesPluginLite';
|
|
2
|
+
import { OverridesPlugin } from './overrides/OverridesPlugin';
|
|
3
|
+
import { BrowserCookieAdapter } from './overrides/BrowserCookieAdapter';
|
|
4
|
+
import { CookiePlugin } from './cookies/CookiePlugin';
|
|
5
|
+
import { WebVitalsPlugin } from './vitals/WebVitalsPlugin';
|
|
6
|
+
export * from './types';
|
|
7
|
+
export * from './overrides/types';
|
|
8
|
+
export type { CookiePluginOptions } from './cookies/CookiePlugin';
|
|
9
|
+
export type { WebVitalsPluginOptions, Metric } from './vitals/WebVitalsPlugin';
|
|
10
|
+
export { DOMChangesPluginLite, DOMChangesPluginLite as DOMChangesPlugin, // Alias for backward compatibility
|
|
11
|
+
OverridesPlugin, // Legacy export - this is the original full-featured version
|
|
12
|
+
BrowserCookieAdapter, CookiePlugin, WebVitalsPlugin, };
|
|
13
|
+
export default DOMChangesPluginLite;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.WebVitalsPlugin = exports.CookiePlugin = exports.BrowserCookieAdapter = exports.OverridesPlugin = exports.DOMChangesPlugin = exports.DOMChangesPluginLite = void 0;
|
|
18
|
+
var DOMChangesPluginLite_1 = require("./core/DOMChangesPluginLite");
|
|
19
|
+
Object.defineProperty(exports, "DOMChangesPluginLite", { enumerable: true, get: function () { return DOMChangesPluginLite_1.DOMChangesPluginLite; } });
|
|
20
|
+
Object.defineProperty(exports, "DOMChangesPlugin", { enumerable: true, get: function () { return DOMChangesPluginLite_1.DOMChangesPluginLite; } });
|
|
21
|
+
var OverridesPlugin_1 = require("./overrides/OverridesPlugin");
|
|
22
|
+
Object.defineProperty(exports, "OverridesPlugin", { enumerable: true, get: function () { return OverridesPlugin_1.OverridesPlugin; } });
|
|
23
|
+
var BrowserCookieAdapter_1 = require("./overrides/BrowserCookieAdapter");
|
|
24
|
+
Object.defineProperty(exports, "BrowserCookieAdapter", { enumerable: true, get: function () { return BrowserCookieAdapter_1.BrowserCookieAdapter; } });
|
|
25
|
+
var CookiePlugin_1 = require("./cookies/CookiePlugin");
|
|
26
|
+
Object.defineProperty(exports, "CookiePlugin", { enumerable: true, get: function () { return CookiePlugin_1.CookiePlugin; } });
|
|
27
|
+
var WebVitalsPlugin_1 = require("./vitals/WebVitalsPlugin");
|
|
28
|
+
Object.defineProperty(exports, "WebVitalsPlugin", { enumerable: true, get: function () { return WebVitalsPlugin_1.WebVitalsPlugin; } });
|
|
29
|
+
// Re-export types for convenience
|
|
30
|
+
__exportStar(require("./types"), exports);
|
|
31
|
+
__exportStar(require("./overrides/types"), exports);
|
|
32
|
+
// Default export for UMD builds (backward compatibility)
|
|
33
|
+
exports.default = DOMChangesPluginLite_1.DOMChangesPluginLite;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oEAAmE;AAgBjE,qGAhBO,2CAAoB,OAgBP;AACI,iGAjBjB,2CAAoB,OAiBa;AAhB1C,+DAA8D;AAiB5D,gGAjBO,iCAAe,OAiBP;AAhBjB,yEAAwE;AAiBtE,qGAjBO,2CAAoB,OAiBP;AAhBtB,uDAAsD;AAiBpD,6FAjBO,2BAAY,OAiBP;AAhBd,4DAA2D;AAiBzD,gGAjBO,iCAAe,OAiBP;AAfjB,kCAAkC;AAClC,0CAAwB;AACxB,oDAAkC;AAgBlC,yDAAyD;AACzD,kBAAe,2CAAoB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CookieAdapter, CookieOptions } from './types';
|
|
2
|
+
export declare class BrowserCookieAdapter implements CookieAdapter {
|
|
3
|
+
get(name: string): string | null;
|
|
4
|
+
set(name: string, value: string, options?: CookieOptions): void;
|
|
5
|
+
delete(name: string, options?: CookieOptions): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __values = (this && this.__values) || function(o) {
|
|
14
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
15
|
+
if (m) return m.call(o);
|
|
16
|
+
if (o && typeof o.length === "number") return {
|
|
17
|
+
next: function () {
|
|
18
|
+
if (o && i >= o.length) o = void 0;
|
|
19
|
+
return { value: o && o[i++], done: !o };
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.BrowserCookieAdapter = void 0;
|
|
26
|
+
var BrowserCookieAdapter = /** @class */ (function () {
|
|
27
|
+
function BrowserCookieAdapter() {
|
|
28
|
+
}
|
|
29
|
+
BrowserCookieAdapter.prototype.get = function (name) {
|
|
30
|
+
var e_1, _a;
|
|
31
|
+
var nameEQ = name + '=';
|
|
32
|
+
var cookies = document.cookie.split(';');
|
|
33
|
+
try {
|
|
34
|
+
for (var cookies_1 = __values(cookies), cookies_1_1 = cookies_1.next(); !cookies_1_1.done; cookies_1_1 = cookies_1.next()) {
|
|
35
|
+
var cookie = cookies_1_1.value;
|
|
36
|
+
cookie = cookie.trim();
|
|
37
|
+
if (cookie.indexOf(nameEQ) === 0) {
|
|
38
|
+
return decodeURIComponent(cookie.substring(nameEQ.length));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
43
|
+
finally {
|
|
44
|
+
try {
|
|
45
|
+
if (cookies_1_1 && !cookies_1_1.done && (_a = cookies_1.return)) _a.call(cookies_1);
|
|
46
|
+
}
|
|
47
|
+
finally { if (e_1) throw e_1.error; }
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
BrowserCookieAdapter.prototype.set = function (name, value, options) {
|
|
52
|
+
var cookieString = "".concat(name, "=").concat(encodeURIComponent(value));
|
|
53
|
+
if (options) {
|
|
54
|
+
if (options.path) {
|
|
55
|
+
cookieString += "; path=".concat(options.path);
|
|
56
|
+
}
|
|
57
|
+
if (options.domain) {
|
|
58
|
+
cookieString += "; domain=".concat(options.domain);
|
|
59
|
+
}
|
|
60
|
+
if (options.maxAge !== undefined) {
|
|
61
|
+
cookieString += "; max-age=".concat(options.maxAge);
|
|
62
|
+
}
|
|
63
|
+
if (options.secure) {
|
|
64
|
+
cookieString += '; secure';
|
|
65
|
+
}
|
|
66
|
+
if (options.sameSite) {
|
|
67
|
+
cookieString += "; samesite=".concat(options.sameSite);
|
|
68
|
+
}
|
|
69
|
+
// Note: httpOnly cannot be set from browser JavaScript
|
|
70
|
+
}
|
|
71
|
+
document.cookie = cookieString;
|
|
72
|
+
};
|
|
73
|
+
BrowserCookieAdapter.prototype.delete = function (name, options) {
|
|
74
|
+
this.set(name, '', __assign(__assign({}, options), { maxAge: 0 }));
|
|
75
|
+
};
|
|
76
|
+
return BrowserCookieAdapter;
|
|
77
|
+
}());
|
|
78
|
+
exports.BrowserCookieAdapter = BrowserCookieAdapter;
|
|
79
|
+
//# sourceMappingURL=BrowserCookieAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserCookieAdapter.js","sourceRoot":"","sources":["../../src/overrides/BrowserCookieAdapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA;IAAA;IA2CA,CAAC;IA1CC,kCAAG,GAAH,UAAI,IAAY;;QACd,IAAM,MAAM,GAAG,IAAI,GAAG,GAAG,CAAC;QAC1B,IAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;YAE3C,KAAmB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA,qDAAE,CAAC;gBAAxB,IAAI,MAAM,oBAAA;gBACb,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;gBACvB,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;oBACjC,OAAO,kBAAkB,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC7D,CAAC;YACH,CAAC;;;;;;;;;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kCAAG,GAAH,UAAI,IAAY,EAAE,KAAa,EAAE,OAAuB;QACtD,IAAI,YAAY,GAAG,UAAG,IAAI,cAAI,kBAAkB,CAAC,KAAK,CAAC,CAAE,CAAC;QAE1D,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;gBACjB,YAAY,IAAI,iBAAU,OAAO,CAAC,IAAI,CAAE,CAAC;YAC3C,CAAC;YACD,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;gBACnB,YAAY,IAAI,mBAAY,OAAO,CAAC,MAAM,CAAE,CAAC;YAC/C,CAAC;YACD,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;gBACjC,YAAY,IAAI,oBAAa,OAAO,CAAC,MAAM,CAAE,CAAC;YAChD,CAAC;YACD,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;gBACnB,YAAY,IAAI,UAAU,CAAC;YAC7B,CAAC;YACD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACrB,YAAY,IAAI,qBAAc,OAAO,CAAC,QAAQ,CAAE,CAAC;YACnD,CAAC;YACD,uDAAuD;QACzD,CAAC;QAED,QAAQ,CAAC,MAAM,GAAG,YAAY,CAAC;IACjC,CAAC;IAED,qCAAM,GAAN,UAAO,IAAY,EAAE,OAAuB;QAC1C,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,wBAAO,OAAO,KAAE,MAAM,EAAE,CAAC,IAAG,CAAC;IAChD,CAAC;IACH,2BAAC;AAAD,CAAC,AA3CD,IA2CC;AA3CY,oDAAoB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Full-featured version of OverridesPlugin
|
|
3
|
+
* Extends OverridesPluginLite with API fetching for non-running experiments
|
|
4
|
+
* Supports server-side rendering, cookie adapters, and dev environments
|
|
5
|
+
*/
|
|
6
|
+
import { OverridesPluginLite } from './OverridesPluginLite';
|
|
7
|
+
import { OverridesPluginConfig, CookieAdapter } from './types';
|
|
8
|
+
export declare class OverridesPlugin extends OverridesPluginLite {
|
|
9
|
+
protected fullConfig: Required<Omit<OverridesPluginConfig, 'cookieName' | 'url' | 'cookieAdapter'>> & {
|
|
10
|
+
cookieName?: string;
|
|
11
|
+
url?: string | URL;
|
|
12
|
+
cookieAdapter?: CookieAdapter;
|
|
13
|
+
};
|
|
14
|
+
protected isServerSide: boolean;
|
|
15
|
+
private onExperimentsAddedCallbacks;
|
|
16
|
+
constructor(config: OverridesPluginConfig);
|
|
17
|
+
ready(): Promise<void>;
|
|
18
|
+
initialize(): Promise<void>;
|
|
19
|
+
private getOverrides;
|
|
20
|
+
private getEnhancedQueryStringOverrides;
|
|
21
|
+
private getEnhancedCookieOverrides;
|
|
22
|
+
private parseEnhancedCookieValue;
|
|
23
|
+
private persistEnhancedOverridesToCookie;
|
|
24
|
+
private applyOverridesWithFetching;
|
|
25
|
+
private fetchFromAPI;
|
|
26
|
+
private fetchFromDevSDK;
|
|
27
|
+
private injectExperimentsIntoContext;
|
|
28
|
+
onExperimentsAdded(callback: () => void): void;
|
|
29
|
+
private notifyExperimentsAdded;
|
|
30
|
+
protected registerWithContext(): void;
|
|
31
|
+
protected unregisterFromContext(): void;
|
|
32
|
+
destroy(): void;
|
|
33
|
+
}
|