@coveo/shopify 1.7.3-pre.f7120f5ae4 → 1.7.3

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.
@@ -1,7 +1,7 @@
1
- import { CommerceEngineOptions } from '@coveo/headless/commerce';
2
- export type * from '../types';
1
+ import { type CommerceEngineOptions } from '@coveo/headless/commerce';
3
2
  export * from '@coveo/headless/commerce';
4
3
  export * from '../constants';
4
+ export type * from '../types';
5
5
  export * from '../utilities';
6
6
  export interface BuildShopifyCommerceEngineOptions {
7
7
  commerceEngineOptions: CommerceEngineOptions;
@@ -1,8 +1,8 @@
1
- import { SearchEngineOptions } from '@coveo/headless';
2
- export { COVEO_SHOPIFY_CONFIG_KEY } from '../constants';
3
- export type * from '../types';
1
+ import { type SearchEngineOptions } from '@coveo/headless';
4
2
  export * from '@coveo/headless';
5
3
  export * from '../constants';
4
+ export { COVEO_SHOPIFY_CONFIG_KEY } from '../constants';
5
+ export type * from '../types';
6
6
  export * from '../utilities';
7
7
  export interface BuildShopifySearchEngineOptions {
8
8
  searchEngineOptions: SearchEngineOptions;
@@ -1,9 +1,9 @@
1
1
  import { buildSearchEngine } from '@coveo/headless';
2
2
  import { COVEO_SHOPIFY_CONFIG_KEY } from '../constants';
3
3
  import { publishCustomShopifyEvent } from '../utilities/shopify';
4
- export { COVEO_SHOPIFY_CONFIG_KEY } from '../constants';
5
4
  export * from '@coveo/headless';
6
5
  export * from '../constants';
6
+ export { COVEO_SHOPIFY_CONFIG_KEY } from '../constants';
7
7
  export * from '../utilities';
8
8
  /**
9
9
  * Builds the search engine for a Shopify store.
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommerceEngineOptions } from '@coveo/headless/commerce';
1
+ import type { CommerceEngineOptions } from '@coveo/headless/commerce';
2
2
  export interface AppProxyOptions {
3
3
  appProxyUrl?: string;
4
4
  marketId: string;
@@ -1,4 +1,4 @@
1
- import { AppProxyOptions, CoveoShopifyOptions } from '../types';
1
+ import type { AppProxyOptions, CoveoShopifyOptions } from '../types';
2
2
  /**
3
3
  * Fetches configuration from the app proxy.
4
4
  *
@@ -1,5 +1,5 @@
1
+ export * from '../constants';
1
2
  export type * from '../types';
2
- export { publishCustomShopifyEvent } from './shopify';
3
3
  export * from './app-proxy';
4
4
  export * from './init';
5
- export * from '../constants';
5
+ export { publishCustomShopifyEvent } from './shopify';
@@ -1,4 +1,4 @@
1
- export { publishCustomShopifyEvent } from './shopify';
1
+ export * from '../constants';
2
2
  export * from './app-proxy';
3
3
  export * from './init';
4
- export * from '../constants';
4
+ export { publishCustomShopifyEvent } from './shopify';
@@ -1,2 +1,2 @@
1
- import { CoveoShopifyOptions } from '../types';
1
+ import type { CoveoShopifyOptions } from '../types';
2
2
  export declare function init(options: CoveoShopifyOptions): void;
@@ -1,4 +1,4 @@
1
- import { CoveoShopifyCustomEvent } from '../types';
1
+ import type { CoveoShopifyCustomEvent } from '../types';
2
2
  export type { CoveoShopifyCustomEvent } from '../types';
3
3
  declare global {
4
4
  interface Window {
@@ -16,12 +16,8 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- // src/utilities/shopify.ts
20
- function publishCustomShopifyEvent(key, customData) {
21
- if (typeof window.Shopify?.analytics?.publish === "function") {
22
- window.Shopify.analytics.publish(key, customData);
23
- }
24
- }
19
+ // src/constants.ts
20
+ var COVEO_SHOPIFY_CONFIG_KEY = "coveo_shopify_config";
25
21
 
26
22
  // src/utilities/memoize.ts
27
23
  function memoize(fn, getCacheKey) {
@@ -79,8 +75,12 @@ function clearAppProxyCache() {
79
75
  import { getAnalyticsNextApiBaseUrl } from "@coveo/headless";
80
76
  import { createRelay } from "@coveo/relay";
81
77
 
82
- // src/constants.ts
83
- var COVEO_SHOPIFY_CONFIG_KEY = "coveo_shopify_config";
78
+ // src/utilities/shopify.ts
79
+ function publishCustomShopifyEvent(key, customData) {
80
+ if (typeof window.Shopify?.analytics?.publish === "function") {
81
+ window.Shopify.analytics.publish(key, customData);
82
+ }
83
+ }
84
84
 
85
85
  // src/utilities/init.ts
86
86
  function init(options) {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "main": "./dist/headless.esm.js",
9
9
  "module": "./dist/headless.esm.js",
10
10
  "license": "Apache-2.0",
11
- "version": "1.7.3-pre.f7120f5ae4",
11
+ "version": "1.7.3",
12
12
  "files": [
13
13
  "dist/"
14
14
  ],
@@ -58,11 +58,11 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@coveo/ci": "1.0.0",
61
- "vitest": "3.2.3"
61
+ "vitest": "3.2.1"
62
62
  },
63
63
  "dependencies": {
64
64
  "@coveo/relay": "1.2.5",
65
- "@coveo/headless": "3.27.3-pre.f7120f5ae4",
65
+ "@coveo/headless": "3.27.3",
66
66
  "uuid": "^11.0.0"
67
67
  },
68
68
  "engines": {