feeef 0.9.2 → 0.9.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.
@@ -58,6 +58,11 @@ export declare const generatePublicStoreIntegrationTiktokPixel: (tiktokPixel: Ti
58
58
  export declare const generatePublicStoreIntegrationGoogleAnalytics: (googleAnalytics: GoogleAnalyticsIntegration | null | undefined) => PublicGoogleAnalyticsIntegration | null | undefined;
59
59
  export declare const generatePublicStoreIntegrationGoogleSheet: (googleSheet: GoogleSheetsIntegration | null | undefined) => PublicGoogleSheetsIntegration | null | undefined;
60
60
  export declare const generatePublicStoreIntegrationGoogleTags: (googleTags: GoogleTagsIntegration | null | undefined) => PublicGoogleTagsIntegration | null | undefined;
61
+ /**
62
+ * Microsoft Clarity: only the project / tracking id is public (injected in storefront script).
63
+ * Optional apiKey is for Clarity APIs and is never exposed to the public store JSON.
64
+ */
65
+ export declare const generatePublicStoreIntegrationClarity: (clarity: ClarityIntegration | null | undefined) => PublicClarityIntegration | null | undefined;
61
66
  /**
62
67
  * Generates public AI integration data from private integration data.
63
68
  * Only exposes non-sensitive information, keeping the API key private for security.
@@ -136,6 +141,11 @@ export interface PublicGoogleTagsIntegration {
136
141
  id: string;
137
142
  active: boolean;
138
143
  }
144
+ /** Public Clarity data: project id for the tag script only */
145
+ export interface PublicClarityIntegration {
146
+ active: boolean;
147
+ trackingCode: string;
148
+ }
139
149
  export interface PublicAiIntegration {
140
150
  active: boolean;
141
151
  textModel: string;
@@ -182,6 +192,8 @@ export interface PublicStoreIntegrations {
182
192
  googleAnalytics: PublicGoogleAnalyticsIntegration | null;
183
193
  googleSheet: PublicGoogleSheetsIntegration | null;
184
194
  googleTags: PublicGoogleTagsIntegration | null;
195
+ /** Clarity project id for client script only; apiKey is never public */
196
+ clarity: PublicClarityIntegration | null;
185
197
  ai: PublicAiIntegration | null;
186
198
  orderdz: PublicOrderdzIntegration | null;
187
199
  webhooks: PublicWebhooksIntegration | null;
@@ -395,6 +407,18 @@ export interface GoogleTagsIntegration {
395
407
  active: boolean;
396
408
  metadata: Record<string, any>;
397
409
  }
410
+ /**
411
+ * Microsoft Clarity session analytics.
412
+ * trackingCode is the project id (public, used in storefront script).
413
+ * apiKey is optional and used for server-side Clarity APIs only — never sent in publicIntegrations.
414
+ */
415
+ export interface ClarityIntegration {
416
+ active: boolean;
417
+ /** Clarity project id (e.g. wi0wntig7s) */
418
+ trackingCode: string;
419
+ apiKey?: string | null;
420
+ metadata?: Record<string, any>;
421
+ }
398
422
  /**
399
423
  * AI integration configuration for Google AI Studio.
400
424
  */
@@ -617,6 +641,7 @@ export interface StoreIntegrations {
617
641
  googleAnalytics?: GoogleAnalyticsIntegration;
618
642
  googleSheet?: GoogleSheetsIntegration;
619
643
  googleTags?: GoogleTagsIntegration;
644
+ clarity?: ClarityIntegration;
620
645
  ai?: AiIntegration;
621
646
  orderdz?: OrderdzIntegration;
622
647
  webhooks?: WebhooksIntegration;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feeef",
3
3
  "description": "feeef sdk for javascript",
4
- "version": "0.9.2",
4
+ "version": "0.9.3",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
7
7
  "files": [