@adhese/sdk 1.0.1 → 1.0.2
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 +6 -0
- package/dist/cjs/main.cjs +3 -4
- package/dist/cjs/main.cjs.map +1 -1
- package/dist/cjs/main.composables.cjs +4 -0
- package/dist/cjs/main.composables.cjs.map +1 -1
- package/dist/cjs/main.utils.cjs +1 -12
- package/dist/cjs/main.utils.cjs.map +1 -1
- package/dist/cjs/package.json.cjs +1 -1
- package/dist/main.composables.js +4 -0
- package/dist/main.composables.js.map +1 -1
- package/dist/main.js +4 -5
- package/dist/main.js.map +1 -1
- package/dist/main.utils.js +2 -13
- package/dist/main.utils.js.map +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @adhese/sdk
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ce4a2c0: Fix fetching of initialSlots and dom slots on init not being handled properly causing issues with debug mode not being recognized when set in the URL or when in preview mode
|
|
8
|
+
|
|
3
9
|
## 1.0.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/main.cjs
CHANGED
|
@@ -27,7 +27,6 @@ function createAdhese(options) {
|
|
|
27
27
|
viewabilityTracking: true,
|
|
28
28
|
...options
|
|
29
29
|
};
|
|
30
|
-
main_utils.setupLogging(mergedOptions);
|
|
31
30
|
const hooks$1 = hooks.createGlobalHooks();
|
|
32
31
|
const context = sdkShared.reactive({
|
|
33
32
|
location: mergedOptions.location,
|
|
@@ -101,14 +100,14 @@ function createAdhese(options) {
|
|
|
101
100
|
}
|
|
102
101
|
context.dispose = dispose;
|
|
103
102
|
hooks$1.onInit(async () => {
|
|
104
|
-
var _a2;
|
|
105
103
|
await sdkShared.awaitTimeout(0);
|
|
106
104
|
if ((slotManager$1.getAll().length ?? 0) > 0)
|
|
107
105
|
await main_utils.fetchAllUnrenderedSlots(context.getAll()).catch(logger.logger.error);
|
|
108
106
|
if (mergedOptions.findDomSlotsOnLoad)
|
|
109
107
|
await (context == null ? void 0 : context.findDomSlots());
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
logger.logger.debug("Created Adhese SDK instance", {
|
|
109
|
+
mergedOptions
|
|
110
|
+
});
|
|
112
111
|
if (!scope.active)
|
|
113
112
|
dispose();
|
|
114
113
|
});
|
package/dist/cjs/main.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.cjs","sources":["../../src/main.ts"],"sourcesContent":["import { awaitTimeout, createEventManager, effectScope, omit, reactive, watch } from '@adhese/sdk-shared';\nimport { version } from '../package.json';\nimport { createSlotManager } from './slotManager/slotManager';\nimport { useConsent } from './consent/consent';\nimport { fetchAllUnrenderedSlots
|
|
1
|
+
{"version":3,"file":"main.cjs","sources":["../../src/main.ts"],"sourcesContent":["import { awaitTimeout, createEventManager, effectScope, omit, reactive, watch } from '@adhese/sdk-shared';\nimport { version } from '../package.json';\nimport { createSlotManager } from './slotManager/slotManager';\nimport { useConsent } from './consent/consent';\nimport { fetchAllUnrenderedSlots } from './main.utils';\nimport type {\n Adhese,\n AdheseContextStateWithPlugins,\n AdheseOptions,\n AdhesePlugin,\n MergedOptions,\n} from './main.types';\nimport { logger } from './logger/logger';\nimport { useMainDebugMode, useMainParameters, useMainQueryDetector } from './main.composables';\nimport { createGlobalHooks } from './hooks';\n\nimport type { AdheseSlot, AdheseSlotOptions } from './slot/slot.types';\n\n/**\n * Creates an Adhese instance. This instance is your main entry point to the Adhese API.\n *\n * @param options {AdheseOptions} The options to create the Adhese instance with. See the {@link AdheseOptions} type for more information.\n *\n * @return Adhese The Adhese instance.\n */\nexport function createAdhese<T extends ReadonlyArray<AdhesePlugin>>(options: AdheseOptions<T>): Adhese<T> {\n const scope = effectScope();\n\n return scope.run(() => {\n const mergedOptions: MergedOptions = {\n host: `https://ads-${options.account}.adhese.com`,\n poolHost: `https://pool-${options.account}.adhese.com`,\n location: 'homepage',\n requestType: 'POST',\n debug: false,\n initialSlots: [],\n findDomSlotsOnLoad: false,\n consent: false,\n logReferrer: true,\n logUrl: true,\n eagerRendering: false,\n viewabilityTracking: true,\n ...options,\n };\n\n const hooks = createGlobalHooks();\n\n const context = reactive<AdheseContextStateWithPlugins<T>>({\n location: mergedOptions.location,\n consent: mergedOptions.consent,\n debug: mergedOptions.debug,\n options: mergedOptions,\n logger,\n isDisposed: false,\n parameters: new Map(),\n events: createEventManager(),\n slots: new Map(),\n device: 'unknown',\n hooks,\n plugins: {},\n dispose,\n findDomSlots,\n getAll,\n get,\n addSlot,\n });\n\n for (const [index, plugin] of options.plugins?.entries() ?? []) {\n const data = plugin(context, {\n index,\n version,\n hooks,\n });\n\n const name = data.name as keyof typeof context.plugins;\n context.plugins[name] = omit(data, ['name']) as typeof context.plugins[typeof name];\n }\n\n watch(() => context.location, (newLocation) => {\n context.events?.locationChange.dispatch(newLocation);\n });\n\n useMainParameters(context, mergedOptions);\n\n const slotManager = createSlotManager({\n initialSlots: mergedOptions.initialSlots,\n context,\n });\n\n function getAll(): ReadonlyArray<AdheseSlot> {\n return slotManager.getAll() ?? [];\n }\n context.getAll = getAll;\n\n function get(name: string): AdheseSlot | undefined {\n return slotManager.get(name);\n }\n context.get = get;\n\n function addSlot(slotOptions: AdheseSlotOptions): Readonly<AdheseSlot> {\n return slotManager.add(slotOptions);\n }\n context.addSlot = addSlot;\n\n async function findDomSlots(): Promise<ReadonlyArray<AdheseSlot>> {\n const domSlots = (await slotManager.findDomSlots() ?? []).filter(slot => !slot.lazyLoading);\n\n if (domSlots.length <= 0)\n return [];\n\n await fetchAllUnrenderedSlots(context.getAll());\n\n return domSlots;\n }\n context.findDomSlots = findDomSlots;\n\n useMainDebugMode(context);\n\n useMainQueryDetector(mergedOptions, context);\n\n useConsent(context);\n\n function dispose(): void {\n context.isDisposed = true;\n\n slotManager.dispose();\n context.parameters?.clear();\n context.events?.dispose();\n\n hooks.runOnDispose();\n hooks.clearAll();\n\n scope.stop();\n }\n context.dispose = dispose;\n\n hooks.onInit(async () => {\n await awaitTimeout(0);\n\n if ((slotManager.getAll().length ?? 0) > 0)\n await fetchAllUnrenderedSlots(context.getAll()).catch(logger.error);\n\n if (mergedOptions.findDomSlotsOnLoad)\n await context?.findDomSlots();\n\n logger.debug('Created Adhese SDK instance', {\n mergedOptions,\n });\n\n if (!scope.active)\n dispose();\n });\n\n hooks.runOnInit();\n\n return context as Adhese<T>;\n })!;\n}\n"],"names":["effectScope","hooks","createGlobalHooks","reactive","logger","createEventManager","version","omit","watch","_a","useMainParameters","slotManager","createSlotManager","fetchAllUnrenderedSlots","useMainDebugMode","useMainQueryDetector","useConsent","awaitTimeout"],"mappings":";;;;;;;;;;AAyBO,SAAS,aAAoD,SAAsC;AACxG,QAAM,QAAQA,UAAAA;AAEP,SAAA,MAAM,IAAI,MAAM;;AACrB,UAAM,gBAA+B;AAAA,MACnC,MAAM,eAAe,QAAQ,OAAO;AAAA,MACpC,UAAU,gBAAgB,QAAQ,OAAO;AAAA,MACzC,UAAU;AAAA,MACV,aAAa;AAAA,MACb,OAAO;AAAA,MACP,cAAc,CAAC;AAAA,MACf,oBAAoB;AAAA,MACpB,SAAS;AAAA,MACT,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,qBAAqB;AAAA,MACrB,GAAG;AAAA,IAAA;AAGL,UAAMC,UAAQC,MAAAA;AAEd,UAAM,UAAUC,UAAAA,SAA2C;AAAA,MACzD,UAAU,cAAc;AAAA,MACxB,SAAS,cAAc;AAAA,MACvB,OAAO,cAAc;AAAA,MACrB,SAAS;AAAA,MAAA,QACTC,OAAA;AAAA,MACA,YAAY;AAAA,MACZ,gCAAgB,IAAI;AAAA,MACpB,QAAQC,UAAAA,mBAAmB;AAAA,MAC3B,2BAAW,IAAI;AAAA,MACf,QAA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B;;AACvB,cAAQ,aAAa;AAErBL,oBAAY,QAAQ;AACpB,OAAAF,MAAA,QAAQ,eAAR,gBAAAA,IAAoB;AACpB,oBAAQ,WAAR,mBAAgB;AAEhBR,cAAM,aAAa;AACnBA,cAAM,SAAS;AAEf,YAAM,KAAK;AAAA,IACb;AACA,YAAQ,UAAU;AAElBA,YAAM,OAAO,YAAY;AACvB,YAAMgB,UAAAA,aAAa,CAAC;AAEpB,WAAKN,cAAY,OAAS,EAAA,UAAU,KAAK;AACvC,cAAME,WAAAA,wBAAwB,QAAQ,OAAA,CAAQ,EAAE,MAAMT,OAAAA,OAAO,KAAK;AAEpE,UAAI,cAAc;AAChB,eAAM,mCAAS;AAEjBA,aAAA,OAAO,MAAM,+BAA+B;AAAA,QAC1C;AAAA,MAAA,CACD;AAED,UAAI,CAAC,MAAM;AACD;IAAA,CACX;AAEDH,YAAM,UAAU;AAET,WAAA;AAAA,EAAA,CACR;AACH;;"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const sdkShared = require("@adhese/sdk-shared");
|
|
4
4
|
const queryDetector = require("./queryDetector/queryDetector.cjs");
|
|
5
|
+
const main_utils = require("./main.utils.cjs");
|
|
5
6
|
function useMainQueryDetector(mergedOptions, context) {
|
|
6
7
|
const [device] = queryDetector.useQueryDetector(context, mergedOptions.queries);
|
|
7
8
|
sdkShared.watch(device, async (newDevice) => {
|
|
@@ -13,6 +14,9 @@ function useMainQueryDetector(mergedOptions, context) {
|
|
|
13
14
|
}, { immediate: true });
|
|
14
15
|
}
|
|
15
16
|
function useMainDebugMode(context) {
|
|
17
|
+
if (window.location.search.includes("adhese_debug=true") || main_utils.isPreviewMode()) {
|
|
18
|
+
context.debug = true;
|
|
19
|
+
}
|
|
16
20
|
sdkShared.watch(() => context.debug, async (newDebug) => {
|
|
17
21
|
var _a, _b;
|
|
18
22
|
if (newDebug) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.composables.cjs","sources":["../../src/main.composables.ts"],"sourcesContent":["import { watch } from '@adhese/sdk-shared';\nimport type { AdheseContextState, MergedOptions } from './main.types';\nimport { useQueryDetector } from './queryDetector/queryDetector';\n\nexport function useMainQueryDetector(mergedOptions: MergedOptions, context: AdheseContextState): void {\n const [device] = useQueryDetector(context, mergedOptions.queries);\n watch(device, async (newDevice) => {\n context.device = newDevice;\n\n context.parameters?.set('dt', newDevice);\n context.parameters?.set('br', newDevice);\n\n await Promise.allSettled(context.getAll().map(slot => slot.request()));\n }, { immediate: true });\n}\n\nexport function useMainDebugMode(context: AdheseContextState): void {\n watch(() => context.debug, async (newDebug) => {\n if (newDebug) {\n context.logger.setMinLogLevelThreshold('debug');\n context.logger.debug('Debug mode enabled');\n context.events?.debugChange.dispatch(true);\n }\n else {\n context.logger.debug('Debug mode disabled');\n context.logger.setMinLogLevelThreshold('info');\n context.events?.debugChange.dispatch(false);\n }\n }, {\n immediate: true,\n });\n\n context.hooks.onDispose(() => {\n context.logger.resetLogs();\n context.logger.info('Adhese instance disposed');\n });\n}\n\nexport function useMainParameters(context: AdheseContextState, options: MergedOptions): void {\n const parameters = new Map<string, string | ReadonlyArray<string>>();\n\n if (options.logReferrer)\n parameters.set('re', btoa(document.referrer));\n\n if (options.logUrl)\n parameters.set('ur', btoa(window.location.href));\n\n for (const [key, value] of Object.entries({\n ...options.parameters ?? {},\n rn: Math.round(Math.random() * 10_000).toString(),\n }))\n parameters.set(key, value);\n\n context.parameters = parameters;\n\n watch(\n () => context.parameters,\n (newParameters) => {\n context.events?.parametersChange.dispatch(newParameters);\n },\n {\n deep: true,\n },\n );\n}\n"],"names":["useQueryDetector","watch"],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.composables.cjs","sources":["../../src/main.composables.ts"],"sourcesContent":["import { watch } from '@adhese/sdk-shared';\nimport type { AdheseContextState, MergedOptions } from './main.types';\nimport { useQueryDetector } from './queryDetector/queryDetector';\nimport { isPreviewMode } from './main.utils';\n\nexport function useMainQueryDetector(mergedOptions: MergedOptions, context: AdheseContextState): void {\n const [device] = useQueryDetector(context, mergedOptions.queries);\n watch(device, async (newDevice) => {\n context.device = newDevice;\n\n context.parameters?.set('dt', newDevice);\n context.parameters?.set('br', newDevice);\n\n await Promise.allSettled(context.getAll().map(slot => slot.request()));\n }, { immediate: true });\n}\n\nexport function useMainDebugMode(context: AdheseContextState): void {\n if (window.location.search.includes('adhese_debug=true') || isPreviewMode()) {\n context.debug = true;\n }\n\n watch(() => context.debug, async (newDebug) => {\n if (newDebug) {\n context.logger.setMinLogLevelThreshold('debug');\n context.logger.debug('Debug mode enabled');\n context.events?.debugChange.dispatch(true);\n }\n else {\n context.logger.debug('Debug mode disabled');\n context.logger.setMinLogLevelThreshold('info');\n context.events?.debugChange.dispatch(false);\n }\n }, {\n immediate: true,\n });\n\n context.hooks.onDispose(() => {\n context.logger.resetLogs();\n context.logger.info('Adhese instance disposed');\n });\n}\n\nexport function useMainParameters(context: AdheseContextState, options: MergedOptions): void {\n const parameters = new Map<string, string | ReadonlyArray<string>>();\n\n if (options.logReferrer)\n parameters.set('re', btoa(document.referrer));\n\n if (options.logUrl)\n parameters.set('ur', btoa(window.location.href));\n\n for (const [key, value] of Object.entries({\n ...options.parameters ?? {},\n rn: Math.round(Math.random() * 10_000).toString(),\n }))\n parameters.set(key, value);\n\n context.parameters = parameters;\n\n watch(\n () => context.parameters,\n (newParameters) => {\n context.events?.parametersChange.dispatch(newParameters);\n },\n {\n deep: true,\n },\n );\n}\n"],"names":["useQueryDetector","watch","isPreviewMode"],"mappings":";;;;;AAKgB,SAAA,qBAAqB,eAA8B,SAAmC;AACpG,QAAM,CAAC,MAAM,IAAIA,cAAAA,iBAAiB,SAAS,cAAc,OAAO;AAC1DC,kBAAA,QAAQ,OAAO,cAAc;;AACjC,YAAQ,SAAS;AAET,kBAAA,eAAA,mBAAY,IAAI,MAAM;AACtB,kBAAA,eAAA,mBAAY,IAAI,MA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AA,mBAAQ,iBAAiB,SAAS;AAAA,IAC5C;AAAA,IACA;AAAA,MACE,MAAM;AAAA,IACR;AAAA,EAAA;AAEJ;;;;"}
|
package/dist/cjs/main.utils.cjs
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const logger = require("./logger/logger.cjs");
|
|
4
|
-
function setupLogging(mergedOptions) {
|
|
5
|
-
if (mergedOptions.debug || window.location.search.includes("adhese_debug=true")) {
|
|
6
|
-
logger.logger.setMinLogLevelThreshold("debug");
|
|
7
|
-
logger.logger.debug("Debug logging enabled");
|
|
8
|
-
}
|
|
9
|
-
logger.logger.debug("Created Adhese SDK instance", {
|
|
10
|
-
mergedOptions
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
3
|
function isPreviewMode() {
|
|
14
4
|
return window.location.search.includes("adhesePreviewCreativeId");
|
|
15
5
|
}
|
|
@@ -17,9 +7,8 @@ async function fetchAllUnrenderedSlots(slots) {
|
|
|
17
7
|
const filteredSlots = slots.filter((slot) => !slot.lazyLoading && !slot.data);
|
|
18
8
|
if (filteredSlots.length === 0)
|
|
19
9
|
return;
|
|
20
|
-
await Promise.
|
|
10
|
+
await Promise.all(filteredSlots.map((slot) => slot.request));
|
|
21
11
|
}
|
|
22
12
|
exports.fetchAllUnrenderedSlots = fetchAllUnrenderedSlots;
|
|
23
13
|
exports.isPreviewMode = isPreviewMode;
|
|
24
|
-
exports.setupLogging = setupLogging;
|
|
25
14
|
//# sourceMappingURL=main.utils.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.utils.cjs","sources":["../../src/main.utils.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"main.utils.cjs","sources":["../../src/main.utils.ts"],"sourcesContent":["import type { AdheseSlot } from './slot/slot.types';\n\n/**\n * Checks if the current page is in preview mode.\n */\nexport function isPreviewMode(): boolean {\n return window.location.search.includes('adhesePreviewCreativeId');\n}\n\nexport async function fetchAllUnrenderedSlots(slots: ReadonlyArray<AdheseSlot>): Promise<void> {\n const filteredSlots = slots.filter(slot => !slot.lazyLoading && !slot.data);\n\n if (filteredSlots.length === 0)\n return;\n\n await Promise.all(filteredSlots.map(slot => slot.request));\n}\n"],"names":[],"mappings":";;AAKO,SAAS,gBAAyB;AACvC,SAAO,OAAO,SAAS,OAAO,SAAS,yBAAyB;AAClE;AAEA,eAAsB,wBAAwB,OAAiD;AACvF,QAAA,gBAAgB,MAAM,OAAO,CAAA,SAAQ,CAAC,KAAK,eAAe,CAAC,KAAK,IAAI;AAE1E,MAAI,cAAc,WAAW;AAC3B;AAEF,QAAM,QAAQ,IAAI,cAAc,IAAI,CAAQ,SAAA,KAAK,OAAO,CAAC;AAC3D;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const name = "@adhese/sdk";
|
|
4
|
-
const version = "1.0.
|
|
4
|
+
const version = "1.0.2";
|
|
5
5
|
exports.name = name;
|
|
6
6
|
exports.version = version;
|
|
7
7
|
//# sourceMappingURL=package.json.cjs.map
|
package/dist/main.composables.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { watch } from "@adhese/sdk-shared";
|
|
2
2
|
import { useQueryDetector } from "./queryDetector/queryDetector.js";
|
|
3
|
+
import { isPreviewMode } from "./main.utils.js";
|
|
3
4
|
function useMainQueryDetector(mergedOptions, context) {
|
|
4
5
|
const [device] = useQueryDetector(context, mergedOptions.queries);
|
|
5
6
|
watch(device, async (newDevice) => {
|
|
@@ -11,6 +12,9 @@ function useMainQueryDetector(mergedOptions, context) {
|
|
|
11
12
|
}, { immediate: true });
|
|
12
13
|
}
|
|
13
14
|
function useMainDebugMode(context) {
|
|
15
|
+
if (window.location.search.includes("adhese_debug=true") || isPreviewMode()) {
|
|
16
|
+
context.debug = true;
|
|
17
|
+
}
|
|
14
18
|
watch(() => context.debug, async (newDebug) => {
|
|
15
19
|
var _a, _b;
|
|
16
20
|
if (newDebug) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.composables.js","sources":["../src/main.composables.ts"],"sourcesContent":["import { watch } from '@adhese/sdk-shared';\nimport type { AdheseContextState, MergedOptions } from './main.types';\nimport { useQueryDetector } from './queryDetector/queryDetector';\n\nexport function useMainQueryDetector(mergedOptions: MergedOptions, context: AdheseContextState): void {\n const [device] = useQueryDetector(context, mergedOptions.queries);\n watch(device, async (newDevice) => {\n context.device = newDevice;\n\n context.parameters?.set('dt', newDevice);\n context.parameters?.set('br', newDevice);\n\n await Promise.allSettled(context.getAll().map(slot => slot.request()));\n }, { immediate: true });\n}\n\nexport function useMainDebugMode(context: AdheseContextState): void {\n watch(() => context.debug, async (newDebug) => {\n if (newDebug) {\n context.logger.setMinLogLevelThreshold('debug');\n context.logger.debug('Debug mode enabled');\n context.events?.debugChange.dispatch(true);\n }\n else {\n context.logger.debug('Debug mode disabled');\n context.logger.setMinLogLevelThreshold('info');\n context.events?.debugChange.dispatch(false);\n }\n }, {\n immediate: true,\n });\n\n context.hooks.onDispose(() => {\n context.logger.resetLogs();\n context.logger.info('Adhese instance disposed');\n });\n}\n\nexport function useMainParameters(context: AdheseContextState, options: MergedOptions): void {\n const parameters = new Map<string, string | ReadonlyArray<string>>();\n\n if (options.logReferrer)\n parameters.set('re', btoa(document.referrer));\n\n if (options.logUrl)\n parameters.set('ur', btoa(window.location.href));\n\n for (const [key, value] of Object.entries({\n ...options.parameters ?? {},\n rn: Math.round(Math.random() * 10_000).toString(),\n }))\n parameters.set(key, value);\n\n context.parameters = parameters;\n\n watch(\n () => context.parameters,\n (newParameters) => {\n context.events?.parametersChange.dispatch(newParameters);\n },\n {\n deep: true,\n },\n );\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.composables.js","sources":["../src/main.composables.ts"],"sourcesContent":["import { watch } from '@adhese/sdk-shared';\nimport type { AdheseContextState, MergedOptions } from './main.types';\nimport { useQueryDetector } from './queryDetector/queryDetector';\nimport { isPreviewMode } from './main.utils';\n\nexport function useMainQueryDetector(mergedOptions: MergedOptions, context: AdheseContextState): void {\n const [device] = useQueryDetector(context, mergedOptions.queries);\n watch(device, async (newDevice) => {\n context.device = newDevice;\n\n context.parameters?.set('dt', newDevice);\n context.parameters?.set('br', newDevice);\n\n await Promise.allSettled(context.getAll().map(slot => slot.request()));\n }, { immediate: true });\n}\n\nexport function useMainDebugMode(context: AdheseContextState): void {\n if (window.location.search.includes('adhese_debug=true') || isPreviewMode()) {\n context.debug = true;\n }\n\n watch(() => context.debug, async (newDebug) => {\n if (newDebug) {\n context.logger.setMinLogLevelThreshold('debug');\n context.logger.debug('Debug mode enabled');\n context.events?.debugChange.dispatch(true);\n }\n else {\n context.logger.debug('Debug mode disabled');\n context.logger.setMinLogLevelThreshold('info');\n context.events?.debugChange.dispatch(false);\n }\n }, {\n immediate: true,\n });\n\n context.hooks.onDispose(() => {\n context.logger.resetLogs();\n context.logger.info('Adhese instance disposed');\n });\n}\n\nexport function useMainParameters(context: AdheseContextState, options: MergedOptions): void {\n const parameters = new Map<string, string | ReadonlyArray<string>>();\n\n if (options.logReferrer)\n parameters.set('re', btoa(document.referrer));\n\n if (options.logUrl)\n parameters.set('ur', btoa(window.location.href));\n\n for (const [key, value] of Object.entries({\n ...options.parameters ?? {},\n rn: Math.round(Math.random() * 10_000).toString(),\n }))\n parameters.set(key, value);\n\n context.parameters = parameters;\n\n watch(\n () => context.parameters,\n (newParameters) => {\n context.events?.parametersChange.dispatch(newParameters);\n },\n {\n deep: true,\n },\n );\n}\n"],"names":[],"mappings":";;;AAKgB,SAAA,qBAAqB,eAA8B,SAAmC;AACpG,QAAM,CAAC,MAAM,IAAI,iBAAiB,SAAS,cAAc,OAAO;AAC1D,QAAA,QAAQ,OAAO,cAAc;;AACjC,YAAQ,SAAS;AAET,k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;AAAA,IACd,CAAC,kBAAkB;;AACT,oBAAA,WAAA,mBAAQ,iBAAiB,SAAS;AAAA,IAC5C;AAAA,IACA;AAAA,MACE,MAAM;AAAA,IACR;AAAA,EAAA;AAEJ;"}
|
package/dist/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import { effectScope, reactive, createEventManager, omit, watch, awaitTimeout }
|
|
|
2
2
|
import { version } from "./package.json.js";
|
|
3
3
|
import { createSlotManager } from "./slotManager/slotManager.js";
|
|
4
4
|
import { useConsent } from "./consent/consent.js";
|
|
5
|
-
import {
|
|
5
|
+
import { fetchAllUnrenderedSlots } from "./main.utils.js";
|
|
6
6
|
import { logger } from "./logger/logger.js";
|
|
7
7
|
import { useMainParameters, useMainDebugMode, useMainQueryDetector } from "./main.composables.js";
|
|
8
8
|
import { createGlobalHooks } from "./hooks.js";
|
|
@@ -25,7 +25,6 @@ function createAdhese(options) {
|
|
|
25
25
|
viewabilityTracking: true,
|
|
26
26
|
...options
|
|
27
27
|
};
|
|
28
|
-
setupLogging(mergedOptions);
|
|
29
28
|
const hooks = createGlobalHooks();
|
|
30
29
|
const context = reactive({
|
|
31
30
|
location: mergedOptions.location,
|
|
@@ -99,14 +98,14 @@ function createAdhese(options) {
|
|
|
99
98
|
}
|
|
100
99
|
context.dispose = dispose;
|
|
101
100
|
hooks.onInit(async () => {
|
|
102
|
-
var _a2;
|
|
103
101
|
await awaitTimeout(0);
|
|
104
102
|
if ((slotManager.getAll().length ?? 0) > 0)
|
|
105
103
|
await fetchAllUnrenderedSlots(context.getAll()).catch(logger.error);
|
|
106
104
|
if (mergedOptions.findDomSlotsOnLoad)
|
|
107
105
|
await (context == null ? void 0 : context.findDomSlots());
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
logger.debug("Created Adhese SDK instance", {
|
|
107
|
+
mergedOptions
|
|
108
|
+
});
|
|
110
109
|
if (!scope.active)
|
|
111
110
|
dispose();
|
|
112
111
|
});
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/main.ts"],"sourcesContent":["import { awaitTimeout, createEventManager, effectScope, omit, reactive, watch } from '@adhese/sdk-shared';\nimport { version } from '../package.json';\nimport { createSlotManager } from './slotManager/slotManager';\nimport { useConsent } from './consent/consent';\nimport { fetchAllUnrenderedSlots
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/main.ts"],"sourcesContent":["import { awaitTimeout, createEventManager, effectScope, omit, reactive, watch } from '@adhese/sdk-shared';\nimport { version } from '../package.json';\nimport { createSlotManager } from './slotManager/slotManager';\nimport { useConsent } from './consent/consent';\nimport { fetchAllUnrenderedSlots } from './main.utils';\nimport type {\n Adhese,\n AdheseContextStateWithPlugins,\n AdheseOptions,\n AdhesePlugin,\n MergedOptions,\n} from './main.types';\nimport { logger } from './logger/logger';\nimport { useMainDebugMode, useMainParameters, useMainQueryDetector } from './main.composables';\nimport { createGlobalHooks } from './hooks';\n\nimport type { AdheseSlot, AdheseSlotOptions } from './slot/slot.types';\n\n/**\n * Creates an Adhese instance. This instance is your main entry point to the Adhese API.\n *\n * @param options {AdheseOptions} The options to create the Adhese instance with. See the {@link AdheseOptions} type for more information.\n *\n * @return Adhese The Adhese instance.\n */\nexport function createAdhese<T extends ReadonlyArray<AdhesePlugin>>(options: AdheseOptions<T>): Adhese<T> {\n const scope = effectScope();\n\n return scope.run(() => {\n const mergedOptions: MergedOptions = {\n host: `https://ads-${options.account}.adhese.com`,\n poolHost: `https://pool-${options.account}.adhese.com`,\n location: 'homepage',\n requestType: 'POST',\n debug: false,\n initialSlots: [],\n findDomSlotsOnLoad: false,\n consent: false,\n logReferrer: true,\n logUrl: true,\n eagerRendering: false,\n viewabilityTracking: true,\n ...options,\n };\n\n const hooks = createGlobalHooks();\n\n const context = reactive<AdheseContextStateWithPlugins<T>>({\n location: mergedOptions.location,\n consent: mergedOptions.consent,\n debug: mergedOptions.debug,\n options: mergedOptions,\n logger,\n isDisposed: false,\n parameters: new Map(),\n events: createEventManager(),\n slots: new Map(),\n device: 'unknown',\n hooks,\n plugins: {},\n dispose,\n findDomSlots,\n getAll,\n get,\n addSlot,\n });\n\n for (const [index, plugin] of options.plugins?.entries() ?? []) {\n const data = plugin(context, {\n index,\n version,\n hooks,\n });\n\n const name = data.name as keyof typeof context.plugins;\n context.plugins[name] = omit(data, ['name']) as typeof context.plugins[typeof name];\n }\n\n watch(() => context.location, (newLocation) => {\n context.events?.locationChange.dispatch(newLocation);\n });\n\n useMainParameters(context, mergedOptions);\n\n const slotManager = createSlotManager({\n initialSlots: mergedOptions.initialSlots,\n context,\n });\n\n function getAll(): ReadonlyArray<AdheseSlot> {\n return slotManager.getAll() ?? [];\n }\n context.getAll = getAll;\n\n function get(name: string): AdheseSlot | undefined {\n return slotManager.get(name);\n }\n context.get = get;\n\n function addSlot(slotOptions: AdheseSlotOptions): Readonly<AdheseSlot> {\n return slotManager.add(slotOptions);\n }\n context.addSlot = addSlot;\n\n async function findDomSlots(): Promise<ReadonlyArray<AdheseSlot>> {\n const domSlots = (await slotManager.findDomSlots() ?? []).filter(slot => !slot.lazyLoading);\n\n if (domSlots.length <= 0)\n return [];\n\n await fetchAllUnrenderedSlots(context.getAll());\n\n return domSlots;\n }\n context.findDomSlots = findDomSlots;\n\n useMainDebugMode(context);\n\n useMainQueryDetector(mergedOptions, context);\n\n useConsent(context);\n\n function dispose(): void {\n context.isDisposed = true;\n\n slotManager.dispose();\n context.parameters?.clear();\n context.events?.dispose();\n\n hooks.runOnDispose();\n hooks.clearAll();\n\n scope.stop();\n }\n context.dispose = dispose;\n\n hooks.onInit(async () => {\n await awaitTimeout(0);\n\n if ((slotManager.getAll().length ?? 0) > 0)\n await fetchAllUnrenderedSlots(context.getAll()).catch(logger.error);\n\n if (mergedOptions.findDomSlotsOnLoad)\n await context?.findDomSlots();\n\n logger.debug('Created Adhese SDK instance', {\n mergedOptions,\n });\n\n if (!scope.active)\n dispose();\n });\n\n hooks.runOnInit();\n\n return context as Adhese<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"./logger/logger.js";
|
|
2
|
-
function setupLogging(mergedOptions) {
|
|
3
|
-
if (mergedOptions.debug || window.location.search.includes("adhese_debug=true")) {
|
|
4
|
-
logger.setMinLogLevelThreshold("debug");
|
|
5
|
-
logger.debug("Debug logging enabled");
|
|
6
|
-
}
|
|
7
|
-
logger.debug("Created Adhese SDK instance", {
|
|
8
|
-
mergedOptions
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
1
|
function isPreviewMode() {
|
|
12
2
|
return window.location.search.includes("adhesePreviewCreativeId");
|
|
13
3
|
}
|
|
@@ -15,11 +5,10 @@ async function fetchAllUnrenderedSlots(slots) {
|
|
|
15
5
|
const filteredSlots = slots.filter((slot) => !slot.lazyLoading && !slot.data);
|
|
16
6
|
if (filteredSlots.length === 0)
|
|
17
7
|
return;
|
|
18
|
-
await Promise.
|
|
8
|
+
await Promise.all(filteredSlots.map((slot) => slot.request));
|
|
19
9
|
}
|
|
20
10
|
export {
|
|
21
11
|
fetchAllUnrenderedSlots,
|
|
22
|
-
isPreviewMode
|
|
23
|
-
setupLogging
|
|
12
|
+
isPreviewMode
|
|
24
13
|
};
|
|
25
14
|
//# sourceMappingURL=main.utils.js.map
|
package/dist/main.utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.utils.js","sources":["../src/main.utils.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"main.utils.js","sources":["../src/main.utils.ts"],"sourcesContent":["import type { AdheseSlot } from './slot/slot.types';\n\n/**\n * Checks if the current page is in preview mode.\n */\nexport function isPreviewMode(): boolean {\n return window.location.search.includes('adhesePreviewCreativeId');\n}\n\nexport async function fetchAllUnrenderedSlots(slots: ReadonlyArray<AdheseSlot>): Promise<void> {\n const filteredSlots = slots.filter(slot => !slot.lazyLoading && !slot.data);\n\n if (filteredSlots.length === 0)\n return;\n\n await Promise.all(filteredSlots.map(slot => slot.request));\n}\n"],"names":[],"mappings":"AAKO,SAAS,gBAAyB;AACvC,SAAO,OAAO,SAAS,OAAO,SAAS,yBAAyB;AAClE;AAEA,eAAsB,wBAAwB,OAAiD;AACvF,QAAA,gBAAgB,MAAM,OAAO,CAAA,SAAQ,CAAC,KAAK,eAAe,CAAC,KAAK,IAAI;AAE1E,MAAI,cAAc,WAAW;AAC3B;AAEF,QAAM,QAAQ,IAAI,cAAc,IAAI,CAAQ,SAAA,KAAK,OAAO,CAAC;AAC3D;"}
|
package/dist/package.json.js
CHANGED