@drip-apex/sdk 0.2.0 → 0.3.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/dist/bundle-report.json +52 -52
- package/dist/drip.cjs +22 -1
- package/dist/drip.cjs.map +2 -2
- package/dist/drip.debug.js +1 -1
- package/dist/drip.debug.js.map +1 -1
- package/dist/drip.heatmap.js +1 -1
- package/dist/drip.heatmap.js.map +1 -1
- package/dist/drip.js +1 -1
- package/dist/drip.js.map +1 -1
- package/dist/drip.live.js +1 -1
- package/dist/drip.live.js.map +1 -1
- package/dist/drip.mjs +22 -1
- package/dist/drip.mjs.map +2 -2
- package/dist/metafiles/drip.cjs.meta.json +7 -7
- package/dist/metafiles/drip.debug.meta.json +7 -7
- package/dist/metafiles/drip.heatmap.meta.json +7 -7
- package/dist/metafiles/drip.live.meta.json +7 -7
- package/dist/metafiles/drip.meta.json +7 -7
- package/dist/metafiles/drip.mjs.meta.json +7 -7
- package/dist/metafiles/index.meta.json +7 -7
- package/dist/react/index.js +22 -1
- package/dist/react/index.js.map +2 -2
- package/dist/sri.json +12 -12
- package/dist/types/consent-evaluation.d.ts +2 -1
- package/dist/types/early-interaction-capture.d.ts +1 -1
- package/dist/types/inline-bootstrap.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/config-runtime.ts +1 -0
- package/src/consent-evaluation-borlabs.test.ts +41 -0
- package/src/consent-evaluation.ts +14 -1
- package/src/early-interaction-capture.ts +1 -1
- package/src/inline-bootstrap.ts +1 -1
- package/src/types.ts +1 -1
package/dist/bundle-report.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"gzipBytes": 40000
|
|
15
15
|
},
|
|
16
16
|
"liveDeltaFromBaseline": {
|
|
17
|
-
"rawBytes":
|
|
18
|
-
"gzipBytes":
|
|
17
|
+
"rawBytes": 5368,
|
|
18
|
+
"gzipBytes": 1973
|
|
19
19
|
},
|
|
20
20
|
"targetMet": false,
|
|
21
21
|
"artifacts": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"define.cjs": {
|
|
30
30
|
"rawBytes": 4423,
|
|
31
31
|
"gzipBytes": 1594,
|
|
32
|
-
"rawDeltaFromFull": -
|
|
33
|
-
"gzipDeltaFromFull": -
|
|
32
|
+
"rawDeltaFromFull": -437798,
|
|
33
|
+
"gzipDeltaFromFull": -130601,
|
|
34
34
|
"topContributors": [
|
|
35
35
|
{
|
|
36
36
|
"input": "src/define.ts",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"define.mjs": {
|
|
42
42
|
"rawBytes": 3450,
|
|
43
43
|
"gzipBytes": 1256,
|
|
44
|
-
"rawDeltaFromFull": -
|
|
45
|
-
"gzipDeltaFromFull": -
|
|
44
|
+
"rawDeltaFromFull": -438771,
|
|
45
|
+
"gzipDeltaFromFull": -130939,
|
|
46
46
|
"topContributors": [
|
|
47
47
|
{
|
|
48
48
|
"input": "src/define.ts",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
"drip.cjs": {
|
|
54
|
-
"rawBytes":
|
|
55
|
-
"gzipBytes":
|
|
56
|
-
"rawDeltaFromFull":
|
|
57
|
-
"gzipDeltaFromFull":
|
|
54
|
+
"rawBytes": 748813,
|
|
55
|
+
"gzipBytes": 162369,
|
|
56
|
+
"rawDeltaFromFull": 306592,
|
|
57
|
+
"gzipDeltaFromFull": 30174,
|
|
58
58
|
"topContributors": [
|
|
59
59
|
{
|
|
60
60
|
"input": "src/assignment-runtime.ts",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"input": "src/config-runtime.ts",
|
|
73
|
-
"bytes":
|
|
73
|
+
"bytes": 47188
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"input": "src/shopify-cart.ts",
|
|
@@ -139,10 +139,10 @@
|
|
|
139
139
|
]
|
|
140
140
|
},
|
|
141
141
|
"drip.debug.js": {
|
|
142
|
-
"rawBytes":
|
|
143
|
-
"gzipBytes":
|
|
142
|
+
"rawBytes": 442227,
|
|
143
|
+
"gzipBytes": 132197,
|
|
144
144
|
"rawDeltaFromFull": 6,
|
|
145
|
-
"gzipDeltaFromFull":
|
|
145
|
+
"gzipDeltaFromFull": 2,
|
|
146
146
|
"topContributors": [
|
|
147
147
|
{
|
|
148
148
|
"input": "src/assignment-runtime.ts",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
"input": "src/config-runtime.ts",
|
|
165
|
-
"bytes":
|
|
165
|
+
"bytes": 24038
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"input": "src/public-api.ts",
|
|
@@ -227,10 +227,10 @@
|
|
|
227
227
|
]
|
|
228
228
|
},
|
|
229
229
|
"drip.heatmap.js": {
|
|
230
|
-
"rawBytes":
|
|
231
|
-
"gzipBytes":
|
|
230
|
+
"rawBytes": 350459,
|
|
231
|
+
"gzipBytes": 104740,
|
|
232
232
|
"rawDeltaFromFull": -91762,
|
|
233
|
-
"gzipDeltaFromFull": -
|
|
233
|
+
"gzipDeltaFromFull": -27455,
|
|
234
234
|
"topContributors": [
|
|
235
235
|
{
|
|
236
236
|
"input": "src/assignment-runtime.ts",
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"input": "src/config-runtime.ts",
|
|
249
|
-
"bytes":
|
|
249
|
+
"bytes": 22451
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"input": "src/public-api.ts",
|
|
@@ -309,14 +309,14 @@
|
|
|
309
309
|
"bytes": 4762
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
|
-
"input": "src/
|
|
313
|
-
"bytes":
|
|
312
|
+
"input": "src/consent-evaluation.ts",
|
|
313
|
+
"bytes": 4232
|
|
314
314
|
}
|
|
315
315
|
]
|
|
316
316
|
},
|
|
317
317
|
"drip.js": {
|
|
318
|
-
"rawBytes":
|
|
319
|
-
"gzipBytes":
|
|
318
|
+
"rawBytes": 442221,
|
|
319
|
+
"gzipBytes": 132195,
|
|
320
320
|
"rawDeltaFromFull": 0,
|
|
321
321
|
"gzipDeltaFromFull": 0,
|
|
322
322
|
"topContributors": [
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
"input": "src/config-runtime.ts",
|
|
341
|
-
"bytes":
|
|
341
|
+
"bytes": 24038
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
"input": "src/public-api.ts",
|
|
@@ -403,10 +403,10 @@
|
|
|
403
403
|
]
|
|
404
404
|
},
|
|
405
405
|
"drip.live.js": {
|
|
406
|
-
"rawBytes":
|
|
407
|
-
"gzipBytes":
|
|
406
|
+
"rawBytes": 344010,
|
|
407
|
+
"gzipBytes": 103113,
|
|
408
408
|
"rawDeltaFromFull": -98211,
|
|
409
|
-
"gzipDeltaFromFull": -
|
|
409
|
+
"gzipDeltaFromFull": -29082,
|
|
410
410
|
"topContributors": [
|
|
411
411
|
{
|
|
412
412
|
"input": "src/assignment-runtime.ts",
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
424
|
"input": "src/config-runtime.ts",
|
|
425
|
-
"bytes":
|
|
425
|
+
"bytes": 22451
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
"input": "src/public-api.ts",
|
|
@@ -481,20 +481,20 @@
|
|
|
481
481
|
"bytes": 4762
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
|
-
"input": "src/
|
|
485
|
-
"bytes":
|
|
484
|
+
"input": "src/consent-evaluation.ts",
|
|
485
|
+
"bytes": 4232
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
|
-
"input": "src/
|
|
489
|
-
"bytes":
|
|
488
|
+
"input": "src/early-interaction-capture.ts",
|
|
489
|
+
"bytes": 4067
|
|
490
490
|
}
|
|
491
491
|
]
|
|
492
492
|
},
|
|
493
493
|
"drip.mjs": {
|
|
494
|
-
"rawBytes":
|
|
495
|
-
"gzipBytes":
|
|
496
|
-
"rawDeltaFromFull":
|
|
497
|
-
"gzipDeltaFromFull":
|
|
494
|
+
"rawBytes": 747405,
|
|
495
|
+
"gzipBytes": 162074,
|
|
496
|
+
"rawDeltaFromFull": 305184,
|
|
497
|
+
"gzipDeltaFromFull": 29879,
|
|
498
498
|
"topContributors": [
|
|
499
499
|
{
|
|
500
500
|
"input": "src/assignment-runtime.ts",
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
"input": "src/config-runtime.ts",
|
|
513
|
-
"bytes":
|
|
513
|
+
"bytes": 47188
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
516
|
"input": "src/shopify-cart.ts",
|
|
@@ -581,8 +581,8 @@
|
|
|
581
581
|
"drip.replay-recorder.js": {
|
|
582
582
|
"rawBytes": 191115,
|
|
583
583
|
"gzipBytes": 60056,
|
|
584
|
-
"rawDeltaFromFull": -
|
|
585
|
-
"gzipDeltaFromFull": -
|
|
584
|
+
"rawDeltaFromFull": -251106,
|
|
585
|
+
"gzipDeltaFromFull": -72139,
|
|
586
586
|
"topContributors": [
|
|
587
587
|
{
|
|
588
588
|
"input": "../../node_modules/rrweb/dist/rrweb.js",
|
|
@@ -609,8 +609,8 @@
|
|
|
609
609
|
"editor.js": {
|
|
610
610
|
"rawBytes": 121189,
|
|
611
611
|
"gzipBytes": 36534,
|
|
612
|
-
"rawDeltaFromFull": -
|
|
613
|
-
"gzipDeltaFromFull": -
|
|
612
|
+
"rawDeltaFromFull": -321032,
|
|
613
|
+
"gzipDeltaFromFull": -95661,
|
|
614
614
|
"topContributors": [
|
|
615
615
|
{
|
|
616
616
|
"input": "src/editor/view.ts",
|
|
@@ -697,8 +697,8 @@
|
|
|
697
697
|
"flags.cjs": {
|
|
698
698
|
"rawBytes": 64416,
|
|
699
699
|
"gzipBytes": 16021,
|
|
700
|
-
"rawDeltaFromFull": -
|
|
701
|
-
"gzipDeltaFromFull": -
|
|
700
|
+
"rawDeltaFromFull": -377805,
|
|
701
|
+
"gzipDeltaFromFull": -116174,
|
|
702
702
|
"topContributors": [
|
|
703
703
|
{
|
|
704
704
|
"input": "src/targeting.ts",
|
|
@@ -753,8 +753,8 @@
|
|
|
753
753
|
"flags.mjs": {
|
|
754
754
|
"rawBytes": 63408,
|
|
755
755
|
"gzipBytes": 15662,
|
|
756
|
-
"rawDeltaFromFull": -
|
|
757
|
-
"gzipDeltaFromFull": -
|
|
756
|
+
"rawDeltaFromFull": -378813,
|
|
757
|
+
"gzipDeltaFromFull": -116533,
|
|
758
758
|
"topContributors": [
|
|
759
759
|
{
|
|
760
760
|
"input": "src/targeting.ts",
|
|
@@ -809,8 +809,8 @@
|
|
|
809
809
|
"index.mjs": {
|
|
810
810
|
"rawBytes": 28478,
|
|
811
811
|
"gzipBytes": 6112,
|
|
812
|
-
"rawDeltaFromFull": -
|
|
813
|
-
"gzipDeltaFromFull": -
|
|
812
|
+
"rawDeltaFromFull": -413743,
|
|
813
|
+
"gzipDeltaFromFull": -126083,
|
|
814
814
|
"topContributors": [
|
|
815
815
|
{
|
|
816
816
|
"input": "src/commerce-gift.ts",
|
|
@@ -831,10 +831,10 @@
|
|
|
831
831
|
]
|
|
832
832
|
},
|
|
833
833
|
"react/index.js": {
|
|
834
|
-
"rawBytes":
|
|
835
|
-
"gzipBytes":
|
|
836
|
-
"rawDeltaFromFull":
|
|
837
|
-
"gzipDeltaFromFull":
|
|
834
|
+
"rawBytes": 774994,
|
|
835
|
+
"gzipBytes": 167555,
|
|
836
|
+
"rawDeltaFromFull": 332773,
|
|
837
|
+
"gzipDeltaFromFull": 35360,
|
|
838
838
|
"topContributors": [
|
|
839
839
|
{
|
|
840
840
|
"input": "src/assignment-runtime.ts",
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
},
|
|
851
851
|
{
|
|
852
852
|
"input": "src/config-runtime.ts",
|
|
853
|
-
"bytes":
|
|
853
|
+
"bytes": 49051
|
|
854
854
|
},
|
|
855
855
|
{
|
|
856
856
|
"input": "src/shopify-cart.ts",
|
package/dist/drip.cjs
CHANGED
|
@@ -1237,6 +1237,7 @@ function readConsentCookie(name) {
|
|
|
1237
1237
|
function readConfiguredConsent(provider, requiredGroup, getter) {
|
|
1238
1238
|
const root = globalThis;
|
|
1239
1239
|
if (provider === "cookiescript") return readCookieScriptConsent(requiredGroup);
|
|
1240
|
+
if (provider === "borlabs") return readBorlabsConsent(requiredGroup);
|
|
1240
1241
|
if (provider === "usercentrics") {
|
|
1241
1242
|
const uc = root.UC_UI ?? root.window?.UC_UI;
|
|
1242
1243
|
if (typeof uc?.getServicesBaseInfo !== "function") return null;
|
|
@@ -1289,6 +1290,26 @@ function readConfiguredConsent(provider, requiredGroup, getter) {
|
|
|
1289
1290
|
}
|
|
1290
1291
|
return null;
|
|
1291
1292
|
}
|
|
1293
|
+
function readBorlabsConsent(requiredGroup) {
|
|
1294
|
+
const root = globalThis;
|
|
1295
|
+
const borlabs = root.BorlabsCookie ?? root.window?.BorlabsCookie;
|
|
1296
|
+
if (!borlabs) return null;
|
|
1297
|
+
const required = requiredGroup?.trim() || "statistics";
|
|
1298
|
+
const consents = borlabs.Consents;
|
|
1299
|
+
try {
|
|
1300
|
+
if (typeof consents?.hasConsent === "function" && consents.hasConsent(required)) return true;
|
|
1301
|
+
} catch {
|
|
1302
|
+
}
|
|
1303
|
+
try {
|
|
1304
|
+
if (typeof consents?.hasConsentForServiceGroup === "function") return Boolean(consents.hasConsentForServiceGroup(required));
|
|
1305
|
+
} catch {
|
|
1306
|
+
}
|
|
1307
|
+
try {
|
|
1308
|
+
if (typeof borlabs.checkCookieConsent === "function") return Boolean(borlabs.checkCookieConsent(required));
|
|
1309
|
+
} catch {
|
|
1310
|
+
}
|
|
1311
|
+
return null;
|
|
1312
|
+
}
|
|
1292
1313
|
function readCookieScriptConsent(requiredGroup) {
|
|
1293
1314
|
const root = globalThis;
|
|
1294
1315
|
const requested = (requiredGroup?.trim() || "analytics").toLowerCase();
|
|
@@ -18246,7 +18267,7 @@ function shouldPollConfiguredConsent5(config) {
|
|
|
18246
18267
|
const consent = config.consentMode;
|
|
18247
18268
|
if (!consent?.enabled || state.consentGranted) return false;
|
|
18248
18269
|
if (consent.provider && EVENT_DRIVEN_CONSENT_PROVIDERS5.has(consent.provider)) return false;
|
|
18249
|
-
return consent.provider === "custom" || consent.provider === "pandectes" || consent.provider === "cookiescript" || typeof consent.getter === "string";
|
|
18270
|
+
return consent.provider === "custom" || consent.provider === "pandectes" || consent.provider === "cookiescript" || consent.provider === "borlabs" || typeof consent.getter === "string";
|
|
18250
18271
|
}
|
|
18251
18272
|
function installConsentChangeListeners2(config) {
|
|
18252
18273
|
if (!config.consentMode?.enabled || typeof window === "undefined") return null;
|