@surfside/ads 3.8.0-8a8ac3f4.0 → 3.8.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/lib/cjs/BuildInfo.js +1 -1
- package/lib/cjs/ScriptStart.js +106 -0
- package/lib/cjs/ScriptStart.js.map +1 -0
- package/lib/cjs/index.app.script.js +6 -0
- package/lib/cjs/index.app.script.js.map +1 -0
- package/lib/cjs/index.script.js +2 -100
- package/lib/cjs/index.script.js.map +1 -1
- package/lib/esm/BuildInfo.js +1 -1
- package/lib/esm/ScriptStart.js +102 -0
- package/lib/esm/ScriptStart.js.map +1 -0
- package/lib/esm/index.app.script.js +4 -0
- package/lib/esm/index.app.script.js.map +1 -0
- package/lib/esm/index.script.js +2 -100
- package/lib/esm/index.script.js.map +1 -1
- package/lib/types/ScriptStart.d.ts +4 -0
- package/lib/types/index.app.script.d.ts +1 -0
- package/package.json +4 -4
package/lib/cjs/BuildInfo.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VersionInfo = void 0;
|
|
4
4
|
exports.VersionInfo = {
|
|
5
5
|
'buildBranch': 'HEAD',
|
|
6
|
-
'buildHash': '
|
|
6
|
+
'buildHash': '99981f9',
|
|
7
7
|
'buildVer': '3.8.0-eb18f2a.0'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=BuildInfo.js.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunWhenDocumentReady = RunWhenDocumentReady;
|
|
4
|
+
exports.StartSurfAdsScript = StartSurfAdsScript;
|
|
5
|
+
const ads_core_1 = require("@surfside/ads-core");
|
|
6
|
+
const Init_1 = require("./Init");
|
|
7
|
+
const edge = '//cdn.surfside.io/sdk/1.0.0/edge.js';
|
|
8
|
+
const searchHasString = (str) => typeof globalThis.window !== 'undefined' &&
|
|
9
|
+
globalThis.window.location.search.toLowerCase().includes(str);
|
|
10
|
+
function GetSafeUrl(relativeUrl) {
|
|
11
|
+
/* Already has the Protocol included */
|
|
12
|
+
if (relativeUrl.includes('://')) {
|
|
13
|
+
return relativeUrl;
|
|
14
|
+
}
|
|
15
|
+
/* Check if protocol begins with // or not */
|
|
16
|
+
const slashes = relativeUrl.startsWith('//') ? '' : '//';
|
|
17
|
+
let protocol = globalThis.location.protocol;
|
|
18
|
+
if (!protocol.startsWith('http')) {
|
|
19
|
+
protocol = 'https:';
|
|
20
|
+
}
|
|
21
|
+
return `${protocol}${slashes}${relativeUrl}`;
|
|
22
|
+
}
|
|
23
|
+
function appendEdge() {
|
|
24
|
+
const wind = globalThis.window;
|
|
25
|
+
if (wind.surf === undefined) {
|
|
26
|
+
const url = GetSafeUrl(edge);
|
|
27
|
+
wind.surfContext = wind.surfContext ?? [];
|
|
28
|
+
wind.surfContext.push('surf');
|
|
29
|
+
wind.surf = function surfadsEventHandler(...args) {
|
|
30
|
+
if (wind.surf === undefined) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
(wind.surf.q = wind.surf.q ?? []).push(args);
|
|
34
|
+
};
|
|
35
|
+
wind.surf.q = wind.surf.q ?? [];
|
|
36
|
+
const script = globalThis.document.createElement('script');
|
|
37
|
+
script.src = url;
|
|
38
|
+
script.async = true;
|
|
39
|
+
globalThis.document.head.appendChild(script);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function RunWhenDocumentReady(run) {
|
|
43
|
+
if (globalThis.document.readyState === 'loading') {
|
|
44
|
+
globalThis.window.addEventListener('DOMContentLoaded', run);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
run();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function StartSurfAdsScript(overrides) {
|
|
51
|
+
const isDebug = (0, ads_core_1.PageParamIsTrue)(globalThis.window.location.search, ads_core_1.DEBUG_PARAM);
|
|
52
|
+
const isTelemetryEnabled = isDebug && searchHasString('surf_telemetry=true');
|
|
53
|
+
const logger = isDebug ? (0, ads_core_1.InitLogger)(true) : undefined;
|
|
54
|
+
const monkeyPatchHistory = (name, newFunc) => {
|
|
55
|
+
const existing = globalThis.window[`surf_monkey_${name}_patched`];
|
|
56
|
+
if (existing !== undefined) {
|
|
57
|
+
return existing;
|
|
58
|
+
}
|
|
59
|
+
const oldFunc = globalThis.history[name];
|
|
60
|
+
globalThis.window[`surf_monkey_${name}`] = oldFunc;
|
|
61
|
+
const patched = (...p) => newFunc(oldFunc, ...p);
|
|
62
|
+
globalThis.window[`surf_monkey_${name}_patched`] = patched;
|
|
63
|
+
return patched;
|
|
64
|
+
};
|
|
65
|
+
try {
|
|
66
|
+
globalThis.history.replaceState = monkeyPatchHistory('replaceState', (oldFunc, ...args) => {
|
|
67
|
+
logger?.info('Intercepting replaceState');
|
|
68
|
+
oldFunc.call(globalThis.window.history, ...args);
|
|
69
|
+
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
70
|
+
});
|
|
71
|
+
globalThis.history.pushState = monkeyPatchHistory('pushState', (oldFunc, ...args) => {
|
|
72
|
+
logger?.info('Intercepting pushState');
|
|
73
|
+
oldFunc.call(globalThis.window.history, ...args);
|
|
74
|
+
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
catch (e) {
|
|
78
|
+
logger?.error('Unable to monkey patch the history functions', e);
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
logger?.info('Loading digital SDK');
|
|
82
|
+
appendEdge();
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
logger?.error('Failed to initialize digital SDK! Got', e);
|
|
86
|
+
}
|
|
87
|
+
try {
|
|
88
|
+
logger?.info('Starting up Surfside Ads');
|
|
89
|
+
(0, Init_1.LoadSurfAds)({
|
|
90
|
+
logger,
|
|
91
|
+
telemetry: isTelemetryEnabled,
|
|
92
|
+
overrides: {
|
|
93
|
+
services: {
|
|
94
|
+
...overrides,
|
|
95
|
+
requestBids: (config, requestBids) => (0, ads_core_1.Ok)((0, ads_core_1.WrapBidRequestDebouncerIfEnabled)(logger, config.configuration, config.windowInfo, requestBids))
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
isDebug
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
logger?.error('Failed to initialize Surfside Ads! Got ', e);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
;
|
|
106
|
+
//# sourceMappingURL=ScriptStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptStart.js","sourceRoot":"../@surfside-ads/","sources":["ScriptStart.ts"],"names":[],"mappings":";;AAkDA,oDAMC;AAID,gDAqEC;AAjID,iDAM4B;AAE5B,iCAAqC;AAErC,MAAM,IAAI,GAAG,qCAAqC,CAAC;AAEnD,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,CACpC,OAAO,UAAU,CAAC,MAAM,KAAK,WAAW;IACxC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAElE,SAAS,UAAU,CAAC,WAAmB;IACnC,uCAAuC;IACvC,IAAI,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,WAAW,CAAC;IACvB,CAAC;IACD,6CAA6C;IAC7C,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACzD,IAAI,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAC5C,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC/B,QAAQ,GAAG,QAAQ,CAA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AAC;QACT,MAAM,EAAE,KAAK,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;IAChE,CAAC;AACL,CAAC;AAAA,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const ads_core_1 = require("@surfside/ads-core");
|
|
4
|
+
const ScriptStart_1 = require("./ScriptStart");
|
|
5
|
+
(0, ScriptStart_1.RunWhenDocumentReady)(() => (0, ScriptStart_1.StartSurfAdsScript)({ startRequest: (0, ads_core_1.AppOnlyStartRequest)((0, ads_core_1.ReadHostAppBundle)()) }));
|
|
6
|
+
//# sourceMappingURL=index.app.script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.app.script.js","sourceRoot":"../@surfside-ads/","sources":["index.app.script.ts"],"names":[],"mappings":";;AAAA,iDAA4E;AAC5E,+CAAyE;AAEzE,IAAA,kCAAoB,EAAC,GAAG,EAAE,CAAC,IAAA,gCAAkB,EAAC,EAAE,YAAY,EAAE,IAAA,8BAAmB,EAAC,IAAA,4BAAiB,GAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
package/lib/cjs/index.script.js
CHANGED
|
@@ -1,103 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const edge = '//cdn.surfside.io/sdk/1.0.0/edge.js';
|
|
6
|
-
const searchHasString = (str) => typeof globalThis.window !== 'undefined' &&
|
|
7
|
-
globalThis.window.location.search.toLowerCase().includes(str);
|
|
8
|
-
function GetSafeUrl(relativeUrl) {
|
|
9
|
-
/* Already has the Protocol included */
|
|
10
|
-
if (relativeUrl.includes('://')) {
|
|
11
|
-
return relativeUrl;
|
|
12
|
-
}
|
|
13
|
-
/* Check if protocol begins with // or not */
|
|
14
|
-
const slashes = relativeUrl.startsWith('//') ? '' : '//';
|
|
15
|
-
let protocol = globalThis.location.protocol;
|
|
16
|
-
if (!protocol.startsWith('http')) {
|
|
17
|
-
protocol = 'https:';
|
|
18
|
-
}
|
|
19
|
-
return `${protocol}${slashes}${relativeUrl}`;
|
|
20
|
-
}
|
|
21
|
-
function appendEdge() {
|
|
22
|
-
const wind = globalThis.window;
|
|
23
|
-
if (wind.surf === undefined) {
|
|
24
|
-
const url = GetSafeUrl(edge);
|
|
25
|
-
wind.surfContext = wind.surfContext ?? [];
|
|
26
|
-
wind.surfContext.push('surf');
|
|
27
|
-
wind.surf = function surfadsEventHandler(...args) {
|
|
28
|
-
if (wind.surf === undefined) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
(wind.surf.q = wind.surf.q ?? []).push(args);
|
|
32
|
-
};
|
|
33
|
-
wind.surf.q = wind.surf.q ?? [];
|
|
34
|
-
const script = globalThis.document.createElement('script');
|
|
35
|
-
script.src = url;
|
|
36
|
-
script.async = true;
|
|
37
|
-
globalThis.document.head.appendChild(script);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (globalThis.document.readyState === 'loading') {
|
|
41
|
-
globalThis.window.addEventListener('DOMContentLoaded', () => {
|
|
42
|
-
start();
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
start();
|
|
47
|
-
}
|
|
48
|
-
function start() {
|
|
49
|
-
const isDebug = searchHasString('surf_debug=true');
|
|
50
|
-
const isTelemetryEnabled = isDebug && searchHasString('surf_telemetry=true');
|
|
51
|
-
const logger = isDebug ? (0, ads_core_1.InitLogger)(true) : undefined;
|
|
52
|
-
const monkeyPatchHistory = (name, newFunc) => {
|
|
53
|
-
const existing = globalThis.window[`surf_monkey_${name}_patched`];
|
|
54
|
-
if (existing !== undefined) {
|
|
55
|
-
return existing;
|
|
56
|
-
}
|
|
57
|
-
const oldFunc = globalThis.history[name];
|
|
58
|
-
globalThis.window[`surf_monkey_${name}`] = oldFunc;
|
|
59
|
-
const patched = (...p) => newFunc(oldFunc, ...p);
|
|
60
|
-
globalThis.window[`surf_monkey_${name}_patched`] = patched;
|
|
61
|
-
return patched;
|
|
62
|
-
};
|
|
63
|
-
try {
|
|
64
|
-
globalThis.history.replaceState = monkeyPatchHistory('replaceState', (oldFunc, ...args) => {
|
|
65
|
-
logger?.info('Intercepting replaceState');
|
|
66
|
-
oldFunc.call(globalThis.window.history, ...args);
|
|
67
|
-
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
68
|
-
});
|
|
69
|
-
globalThis.history.pushState = monkeyPatchHistory('pushState', (oldFunc, ...args) => {
|
|
70
|
-
logger?.info('Intercepting pushState');
|
|
71
|
-
oldFunc.call(globalThis.window.history, ...args);
|
|
72
|
-
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
catch (e) {
|
|
76
|
-
logger?.error('Unable to monkey patch the history functions', e);
|
|
77
|
-
}
|
|
78
|
-
try {
|
|
79
|
-
logger?.info('Loading digital SDK');
|
|
80
|
-
appendEdge();
|
|
81
|
-
}
|
|
82
|
-
catch (e) {
|
|
83
|
-
logger?.error('Failed to initialize digital SDK! Got', e);
|
|
84
|
-
}
|
|
85
|
-
try {
|
|
86
|
-
logger?.info('Starting up Surfside Ads');
|
|
87
|
-
(0, Init_1.LoadSurfAds)({
|
|
88
|
-
logger,
|
|
89
|
-
telemetry: isTelemetryEnabled,
|
|
90
|
-
overrides: {
|
|
91
|
-
services: {
|
|
92
|
-
requestBids: (config, requestBids) => (0, ads_core_1.Ok)((0, ads_core_1.WrapBidRequestDebouncerIfEnabled)(logger, config.configuration, config.windowInfo, requestBids))
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
isDebug
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
catch (e) {
|
|
99
|
-
logger?.error('Failed to initialize Surfside Ads! Got ', e);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
;
|
|
3
|
+
const ScriptStart_1 = require("./ScriptStart");
|
|
4
|
+
(0, ScriptStart_1.RunWhenDocumentReady)(() => (0, ScriptStart_1.StartSurfAdsScript)());
|
|
103
5
|
//# sourceMappingURL=index.script.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.script.js","sourceRoot":"../@surfside-ads/","sources":["index.script.ts"],"names":[],"mappings":";;AAAA
|
|
1
|
+
{"version":3,"file":"index.script.js","sourceRoot":"../@surfside-ads/","sources":["index.script.ts"],"names":[],"mappings":";;AAAA,+CAAyE;AAEzE,IAAA,kCAAoB,EAAC,GAAG,EAAE,CAAC,IAAA,gCAAkB,GAAE,CAAC,CAAC"}
|
package/lib/esm/BuildInfo.js
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { DEBUG_PARAM, InitLogger, Ok, PageParamIsTrue, WrapBidRequestDebouncerIfEnabled } from '@surfside/ads-core';
|
|
2
|
+
import { LoadSurfAds } from './Init';
|
|
3
|
+
const edge = '//cdn.surfside.io/sdk/1.0.0/edge.js';
|
|
4
|
+
const searchHasString = (str) => typeof globalThis.window !== 'undefined' &&
|
|
5
|
+
globalThis.window.location.search.toLowerCase().includes(str);
|
|
6
|
+
function GetSafeUrl(relativeUrl) {
|
|
7
|
+
/* Already has the Protocol included */
|
|
8
|
+
if (relativeUrl.includes('://')) {
|
|
9
|
+
return relativeUrl;
|
|
10
|
+
}
|
|
11
|
+
/* Check if protocol begins with // or not */
|
|
12
|
+
const slashes = relativeUrl.startsWith('//') ? '' : '//';
|
|
13
|
+
let protocol = globalThis.location.protocol;
|
|
14
|
+
if (!protocol.startsWith('http')) {
|
|
15
|
+
protocol = 'https:';
|
|
16
|
+
}
|
|
17
|
+
return `${protocol}${slashes}${relativeUrl}`;
|
|
18
|
+
}
|
|
19
|
+
function appendEdge() {
|
|
20
|
+
const wind = globalThis.window;
|
|
21
|
+
if (wind.surf === undefined) {
|
|
22
|
+
const url = GetSafeUrl(edge);
|
|
23
|
+
wind.surfContext = wind.surfContext ?? [];
|
|
24
|
+
wind.surfContext.push('surf');
|
|
25
|
+
wind.surf = function surfadsEventHandler(...args) {
|
|
26
|
+
if (wind.surf === undefined) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
(wind.surf.q = wind.surf.q ?? []).push(args);
|
|
30
|
+
};
|
|
31
|
+
wind.surf.q = wind.surf.q ?? [];
|
|
32
|
+
const script = globalThis.document.createElement('script');
|
|
33
|
+
script.src = url;
|
|
34
|
+
script.async = true;
|
|
35
|
+
globalThis.document.head.appendChild(script);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export function RunWhenDocumentReady(run) {
|
|
39
|
+
if (globalThis.document.readyState === 'loading') {
|
|
40
|
+
globalThis.window.addEventListener('DOMContentLoaded', run);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
run();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export function StartSurfAdsScript(overrides) {
|
|
47
|
+
const isDebug = PageParamIsTrue(globalThis.window.location.search, DEBUG_PARAM);
|
|
48
|
+
const isTelemetryEnabled = isDebug && searchHasString('surf_telemetry=true');
|
|
49
|
+
const logger = isDebug ? InitLogger(true) : undefined;
|
|
50
|
+
const monkeyPatchHistory = (name, newFunc) => {
|
|
51
|
+
const existing = globalThis.window[`surf_monkey_${name}_patched`];
|
|
52
|
+
if (existing !== undefined) {
|
|
53
|
+
return existing;
|
|
54
|
+
}
|
|
55
|
+
const oldFunc = globalThis.history[name];
|
|
56
|
+
globalThis.window[`surf_monkey_${name}`] = oldFunc;
|
|
57
|
+
const patched = (...p) => newFunc(oldFunc, ...p);
|
|
58
|
+
globalThis.window[`surf_monkey_${name}_patched`] = patched;
|
|
59
|
+
return patched;
|
|
60
|
+
};
|
|
61
|
+
try {
|
|
62
|
+
globalThis.history.replaceState = monkeyPatchHistory('replaceState', (oldFunc, ...args) => {
|
|
63
|
+
logger?.info('Intercepting replaceState');
|
|
64
|
+
oldFunc.call(globalThis.window.history, ...args);
|
|
65
|
+
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
66
|
+
});
|
|
67
|
+
globalThis.history.pushState = monkeyPatchHistory('pushState', (oldFunc, ...args) => {
|
|
68
|
+
logger?.info('Intercepting pushState');
|
|
69
|
+
oldFunc.call(globalThis.window.history, ...args);
|
|
70
|
+
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
catch (e) {
|
|
74
|
+
logger?.error('Unable to monkey patch the history functions', e);
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
logger?.info('Loading digital SDK');
|
|
78
|
+
appendEdge();
|
|
79
|
+
}
|
|
80
|
+
catch (e) {
|
|
81
|
+
logger?.error('Failed to initialize digital SDK! Got', e);
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
logger?.info('Starting up Surfside Ads');
|
|
85
|
+
LoadSurfAds({
|
|
86
|
+
logger,
|
|
87
|
+
telemetry: isTelemetryEnabled,
|
|
88
|
+
overrides: {
|
|
89
|
+
services: {
|
|
90
|
+
...overrides,
|
|
91
|
+
requestBids: (config, requestBids) => Ok(WrapBidRequestDebouncerIfEnabled(logger, config.configuration, config.windowInfo, requestBids))
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
isDebug
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
catch (e) {
|
|
98
|
+
logger?.error('Failed to initialize Surfside Ads! Got ', e);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
;
|
|
102
|
+
//# sourceMappingURL=ScriptStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptStart.js","sourceRoot":"../@surfside-ads/","sources":["ScriptStart.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,UAAU,EACV,EAAE,EACF,eAAe,EACf,gCAAgC,EACnC,MAAM,oBAAoB,CAAC;AAE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,MAAM,EAAE,KAAK,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,CAAC;QACD,MAAM,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACpC,UAAU,EAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,EAAE,KAAK,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,IAAI,CAAC;QACD,MAAM,EAAE,IAAI,CAAC,0BAA0B,CAAC,CAAC;QACzC,WAAW,CAAC;YACR,MAAM;YACN,SAAS,EAAE,kBAAkB;YAC7B,SAAS,EAAE;gBACP,QAAQ,EAAE;oBACN,GAAG,SAAS;oBACZ,WAAW,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC,gCAAgC,CACrE,MAAM,EACN,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,UAAU,EACjB,WAAW,CACd,CAAC;iBACL;aACJ;YACD,OAAO;SACV,CAAC,CAAC;IACP,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,EAAE,KAAK,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;IAChE,CAAC;AACL,CAAC;AAAA,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AppOnlyStartRequest, ReadHostAppBundle } from '@surfside/ads-core';
|
|
2
|
+
import { RunWhenDocumentReady, StartSurfAdsScript } from './ScriptStart';
|
|
3
|
+
RunWhenDocumentReady(() => StartSurfAdsScript({ startRequest: AppOnlyStartRequest(ReadHostAppBundle()) }));
|
|
4
|
+
//# sourceMappingURL=index.app.script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.app.script.js","sourceRoot":"../@surfside-ads/","sources":["index.app.script.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEzE,oBAAoB,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,EAAE,YAAY,EAAE,mBAAmB,CAAC,iBAAiB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
package/lib/esm/index.script.js
CHANGED
|
@@ -1,101 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const edge = '//cdn.surfside.io/sdk/1.0.0/edge.js';
|
|
4
|
-
const searchHasString = (str) => typeof globalThis.window !== 'undefined' &&
|
|
5
|
-
globalThis.window.location.search.toLowerCase().includes(str);
|
|
6
|
-
function GetSafeUrl(relativeUrl) {
|
|
7
|
-
/* Already has the Protocol included */
|
|
8
|
-
if (relativeUrl.includes('://')) {
|
|
9
|
-
return relativeUrl;
|
|
10
|
-
}
|
|
11
|
-
/* Check if protocol begins with // or not */
|
|
12
|
-
const slashes = relativeUrl.startsWith('//') ? '' : '//';
|
|
13
|
-
let protocol = globalThis.location.protocol;
|
|
14
|
-
if (!protocol.startsWith('http')) {
|
|
15
|
-
protocol = 'https:';
|
|
16
|
-
}
|
|
17
|
-
return `${protocol}${slashes}${relativeUrl}`;
|
|
18
|
-
}
|
|
19
|
-
function appendEdge() {
|
|
20
|
-
const wind = globalThis.window;
|
|
21
|
-
if (wind.surf === undefined) {
|
|
22
|
-
const url = GetSafeUrl(edge);
|
|
23
|
-
wind.surfContext = wind.surfContext ?? [];
|
|
24
|
-
wind.surfContext.push('surf');
|
|
25
|
-
wind.surf = function surfadsEventHandler(...args) {
|
|
26
|
-
if (wind.surf === undefined) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
(wind.surf.q = wind.surf.q ?? []).push(args);
|
|
30
|
-
};
|
|
31
|
-
wind.surf.q = wind.surf.q ?? [];
|
|
32
|
-
const script = globalThis.document.createElement('script');
|
|
33
|
-
script.src = url;
|
|
34
|
-
script.async = true;
|
|
35
|
-
globalThis.document.head.appendChild(script);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (globalThis.document.readyState === 'loading') {
|
|
39
|
-
globalThis.window.addEventListener('DOMContentLoaded', () => {
|
|
40
|
-
start();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
start();
|
|
45
|
-
}
|
|
46
|
-
function start() {
|
|
47
|
-
const isDebug = searchHasString('surf_debug=true');
|
|
48
|
-
const isTelemetryEnabled = isDebug && searchHasString('surf_telemetry=true');
|
|
49
|
-
const logger = isDebug ? InitLogger(true) : undefined;
|
|
50
|
-
const monkeyPatchHistory = (name, newFunc) => {
|
|
51
|
-
const existing = globalThis.window[`surf_monkey_${name}_patched`];
|
|
52
|
-
if (existing !== undefined) {
|
|
53
|
-
return existing;
|
|
54
|
-
}
|
|
55
|
-
const oldFunc = globalThis.history[name];
|
|
56
|
-
globalThis.window[`surf_monkey_${name}`] = oldFunc;
|
|
57
|
-
const patched = (...p) => newFunc(oldFunc, ...p);
|
|
58
|
-
globalThis.window[`surf_monkey_${name}_patched`] = patched;
|
|
59
|
-
return patched;
|
|
60
|
-
};
|
|
61
|
-
try {
|
|
62
|
-
globalThis.history.replaceState = monkeyPatchHistory('replaceState', (oldFunc, ...args) => {
|
|
63
|
-
logger?.info('Intercepting replaceState');
|
|
64
|
-
oldFunc.call(globalThis.window.history, ...args);
|
|
65
|
-
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
66
|
-
});
|
|
67
|
-
globalThis.history.pushState = monkeyPatchHistory('pushState', (oldFunc, ...args) => {
|
|
68
|
-
logger?.info('Intercepting pushState');
|
|
69
|
-
oldFunc.call(globalThis.window.history, ...args);
|
|
70
|
-
globalThis.window.dispatchEvent(new Event('monkeyHistoryReplace'));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
catch (e) {
|
|
74
|
-
logger?.error('Unable to monkey patch the history functions', e);
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
logger?.info('Loading digital SDK');
|
|
78
|
-
appendEdge();
|
|
79
|
-
}
|
|
80
|
-
catch (e) {
|
|
81
|
-
logger?.error('Failed to initialize digital SDK! Got', e);
|
|
82
|
-
}
|
|
83
|
-
try {
|
|
84
|
-
logger?.info('Starting up Surfside Ads');
|
|
85
|
-
LoadSurfAds({
|
|
86
|
-
logger,
|
|
87
|
-
telemetry: isTelemetryEnabled,
|
|
88
|
-
overrides: {
|
|
89
|
-
services: {
|
|
90
|
-
requestBids: (config, requestBids) => Ok(WrapBidRequestDebouncerIfEnabled(logger, config.configuration, config.windowInfo, requestBids))
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
isDebug
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
catch (e) {
|
|
97
|
-
logger?.error('Failed to initialize Surfside Ads! Got ', e);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
;
|
|
1
|
+
import { RunWhenDocumentReady, StartSurfAdsScript } from './ScriptStart';
|
|
2
|
+
RunWhenDocumentReady(() => StartSurfAdsScript());
|
|
101
3
|
//# sourceMappingURL=index.script.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.script.js","sourceRoot":"../@surfside-ads/","sources":["index.script.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.script.js","sourceRoot":"../@surfside-ads/","sources":["index.script.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEzE,oBAAoB,CAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ISurfAdsWebConfigurationOverrides } from '@surfside/ads-core-web';
|
|
2
|
+
export declare function RunWhenDocumentReady(run: () => void): void;
|
|
3
|
+
export type ScriptServiceOverrides = Partial<Pick<ISurfAdsWebConfigurationOverrides, 'startRequest'>>;
|
|
4
|
+
export declare function StartSurfAdsScript(overrides?: ScriptServiceOverrides): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@surfside/ads",
|
|
3
|
-
"version": "3.8.0
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"module": "./lib/esm/index.module.js",
|
|
5
5
|
"main": "./lib/cjs/index.module.js",
|
|
6
6
|
"types": "./lib/types/index.module.d.ts",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"typescript": "^5"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@surfside/ads-core": "2.8.0
|
|
39
|
-
"@surfside/ads-core-mock": "0.8.0
|
|
40
|
-
"@surfside/ads-core-web": "0.8.0
|
|
38
|
+
"@surfside/ads-core": "2.8.0",
|
|
39
|
+
"@surfside/ads-core-mock": "0.8.0",
|
|
40
|
+
"@surfside/ads-core-web": "0.8.0"
|
|
41
41
|
}
|
|
42
42
|
}
|