@coveo/atomic 3.32.0 → 3.32.1-pre.71214e819a
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/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/components/analytics-config.js +12 -9
- package/dist/atomic/components/analytics-config.js.map +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +2 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +2 -2
- package/dist/atomic/components/components/common/interface/analytics-config.js +3 -3
- package/dist/atomic/components/components/common/interface/interface-controller.js +2 -2
- package/dist/atomic/components/global/environment.js +8 -6
- package/dist/atomic/{p-46fde99e.js → p-86e97fc1.js} +2 -2
- package/dist/atomic/p-86e97fc1.js.map +1 -0
- package/dist/atomic/{p-e4d40520.entry.js → p-8e3b547d.entry.js} +2 -2
- package/dist/atomic/{p-f7aec269.entry.js → p-a0ca5495.entry.js} +2 -2
- package/dist/atomic/{p-08d25f69.entry.js → p-c6fdb9b5.entry.js} +2 -2
- package/dist/cjs/{analytics-config-0b6570dc.js → analytics-config-4866cfa5.js} +13 -10
- package/dist/cjs/analytics-config-4866cfa5.js.map +1 -0
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/{analytics-config-199b995b.js → analytics-config-5f403e17.js} +13 -10
- package/dist/esm/analytics-config-5f403e17.js.map +1 -0
- package/dist/esm/atomic-insight-interface.entry.js +2 -2
- package/dist/esm/atomic-recs-interface.entry.js +2 -2
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/common/interface/interface-controller.d.ts +1 -1
- package/dist/types/global/environment.d.ts +5 -3
- package/docs/atomic-docs.json +1 -1
- package/package.json +3 -3
- package/dist/atomic/p-46fde99e.js.map +0 -1
- package/dist/cjs/analytics-config-0b6570dc.js.map +0 -1
- package/dist/esm/analytics-config-199b995b.js.map +0 -1
- /package/dist/atomic/{p-e4d40520.entry.js.map → p-8e3b547d.entry.js.map} +0 -0
- /package/dist/atomic/{p-f7aec269.entry.js.map → p-a0ca5495.entry.js.map} +0 -0
- /package/dist/atomic/{p-08d25f69.entry.js.map → p-c6fdb9b5.entry.js.map} +0 -0
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-757bc886.js');
|
|
6
6
|
const initQueue = require('./init-queue-a18aa323.js');
|
|
7
7
|
const insight = require('@coveo/headless/insight');
|
|
8
|
-
const analyticsConfig = require('./analytics-config-
|
|
8
|
+
const analyticsConfig = require('./analytics-config-4866cfa5.js');
|
|
9
9
|
const propsUtils = require('./props-utils-1e4ba1b0.js');
|
|
10
10
|
const replaceBreakpoint = require('./replace-breakpoint-9e1c0efa.js');
|
|
11
11
|
const store = require('./store-82abd941.js');
|
|
12
12
|
const insightLayout = require('./insight-layout-355a94dd.js');
|
|
13
13
|
require('./dayjs.min-8b80e6d1.js');
|
|
14
14
|
require('./_commonjsHelpers-b3309d7b.js');
|
|
15
|
-
require('./purify-85b542e2.js');
|
|
16
15
|
require('@coveo/headless');
|
|
16
|
+
require('./purify-85b542e2.js');
|
|
17
17
|
require('@coveo/bueno');
|
|
18
18
|
require('./utils-7153ae6b.js');
|
|
19
19
|
require('./dom-utils-d4790328.js');
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-757bc886.js');
|
|
6
6
|
const initQueue = require('./init-queue-a18aa323.js');
|
|
7
7
|
const recommendation = require('@coveo/headless/recommendation');
|
|
8
|
-
const analyticsConfig = require('./analytics-config-
|
|
8
|
+
const analyticsConfig = require('./analytics-config-4866cfa5.js');
|
|
9
9
|
const propsUtils = require('./props-utils-1e4ba1b0.js');
|
|
10
10
|
const store = require('./store-82abd941.js');
|
|
11
11
|
require('./dayjs.min-8b80e6d1.js');
|
|
12
12
|
require('./_commonjsHelpers-b3309d7b.js');
|
|
13
|
-
require('./purify-85b542e2.js');
|
|
14
13
|
require('@coveo/headless');
|
|
14
|
+
require('./purify-85b542e2.js');
|
|
15
15
|
require('@coveo/bueno');
|
|
16
16
|
require('./utils-7153ae6b.js');
|
|
17
17
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-757bc886.js');
|
|
6
6
|
const initQueue = require('./init-queue-a18aa323.js');
|
|
7
7
|
const headless = require('@coveo/headless');
|
|
8
|
-
const analyticsConfig = require('./analytics-config-
|
|
8
|
+
const analyticsConfig = require('./analytics-config-4866cfa5.js');
|
|
9
9
|
const localStorageUtils = require('./local-storage-utils-380ce22b.js');
|
|
10
10
|
const propsUtils = require('./props-utils-1e4ba1b0.js');
|
|
11
11
|
const searchLayout = require('./search-layout-419e7eb4.js');
|
package/dist/cjs/version.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
module.exports.headlessVersion = '3.28.
|
|
2
|
-
module.exports.atomicVersion = '3.32.
|
|
1
|
+
module.exports.headlessVersion = '3.28.1-pre.71214e819a';
|
|
2
|
+
module.exports.atomicVersion = '3.32.1-pre.71214e819a';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as dayjs } from './dayjs.min-d04628c6.js';
|
|
2
|
+
import { VERSION } from '@coveo/headless';
|
|
2
3
|
import { h } from './index-3f35faca.js';
|
|
3
4
|
import { D as DOMPurify } from './purify-c7ebd240.js';
|
|
4
|
-
import { VERSION } from '@coveo/headless';
|
|
5
5
|
|
|
6
6
|
const isString = obj => typeof obj === 'string';
|
|
7
7
|
const defer = () => {
|
|
@@ -2154,17 +2154,20 @@ instance.createInstance = I18n.createInstance;
|
|
|
2154
2154
|
function getWindow() {
|
|
2155
2155
|
return window;
|
|
2156
2156
|
}
|
|
2157
|
-
function getAtomicEnvironment() {
|
|
2157
|
+
function getAtomicEnvironment(headlessVersion) {
|
|
2158
2158
|
return {
|
|
2159
|
-
version: "3.32.
|
|
2160
|
-
headlessVersion
|
|
2159
|
+
version: "3.32.1-pre.71214e819a",
|
|
2160
|
+
headlessVersion,
|
|
2161
2161
|
};
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function getAtomicVersion() {
|
|
2164
|
+
return getAtomicEnvironment('').version;
|
|
2165
|
+
}
|
|
2166
|
+
function setCoveoGlobal(globalVariableName, headlessVersion) {
|
|
2164
2167
|
if (getWindow()[globalVariableName]) {
|
|
2165
2168
|
return;
|
|
2166
2169
|
}
|
|
2167
|
-
getWindow()[globalVariableName] = getAtomicEnvironment();
|
|
2170
|
+
getWindow()[globalVariableName] = getAtomicEnvironment(headlessVersion);
|
|
2168
2171
|
}
|
|
2169
2172
|
|
|
2170
2173
|
const locales = {
|
|
@@ -2795,7 +2798,7 @@ class CommonAtomicInterfaceHelper {
|
|
|
2795
2798
|
constructor(atomicInterface, globalVariableName) {
|
|
2796
2799
|
this.atomicInterface = atomicInterface;
|
|
2797
2800
|
this.hangingComponentsInitialization = [];
|
|
2798
|
-
setCoveoGlobal(globalVariableName);
|
|
2801
|
+
setCoveoGlobal(VERSION, globalVariableName);
|
|
2799
2802
|
const { connectedCallback: originalConnectedCallback, render: originalRender, } = atomicInterface;
|
|
2800
2803
|
atomicInterface.connectedCallback = () => {
|
|
2801
2804
|
this.i18nPromise = init18n(atomicInterface);
|
|
@@ -2880,7 +2883,7 @@ function augmentWithExternalMiddleware(event, payload, config) {
|
|
|
2880
2883
|
}
|
|
2881
2884
|
function augmentAnalyticsWithAtomicVersion(payload) {
|
|
2882
2885
|
if (payload.customData) {
|
|
2883
|
-
payload.customData.coveoAtomicVersion =
|
|
2886
|
+
payload.customData.coveoAtomicVersion = getAtomicVersion();
|
|
2884
2887
|
}
|
|
2885
2888
|
return payload;
|
|
2886
2889
|
}
|
|
@@ -2894,7 +2897,7 @@ const versionMatcher = /^(\d+\.\d+\.\d+)/;
|
|
|
2894
2897
|
function augmentAnalyticsConfigWithAtomicVersion() {
|
|
2895
2898
|
return {
|
|
2896
2899
|
source: {
|
|
2897
|
-
'@coveo/atomic': versionMatcher.exec(
|
|
2900
|
+
'@coveo/atomic': versionMatcher.exec(getAtomicVersion())?.[0] || '0.0.0',
|
|
2898
2901
|
},
|
|
2899
2902
|
};
|
|
2900
2903
|
}
|
|
@@ -2912,4 +2915,4 @@ function getNextAnalyticsConfig(searchEngineConfig, enabled) {
|
|
|
2912
2915
|
|
|
2913
2916
|
export { CommonAtomicInterfaceHelper as C, augmentWithExternalMiddleware as a, augmentAnalyticsWithAtomicVersion as b, augmentAnalyticsConfigWithDocument as c, augmentAnalyticsConfigWithAtomicVersion as d, getNextAnalyticsConfig as g, instance as i, mismatchedInterfaceAndEnginePropError as m };
|
|
2914
2917
|
|
|
2915
|
-
//# sourceMappingURL=analytics-config-
|
|
2918
|
+
//# sourceMappingURL=analytics-config-5f403e17.js.map
|