@fayz-ai/storefront 0.84.1 → 0.84.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.
@@ -37,6 +37,19 @@ export interface MetaEvent {
37
37
  }
38
38
  /** A storefront event in Meta's words, or null when Meta has no standard event for it. */
39
39
  export declare function metaEventFor(event: StorefrontEvent, currency: string): MetaEvent | null;
40
+ /**
41
+ * fbevents.js (~115 KB) plus the pixel's config (~95 KB) costs ~360 ms of
42
+ * main-thread work on a mid-range phone. Requested during the page's load it
43
+ * lands inside the window PageSpeed's Total Blocking Time is measured in, so
44
+ * it is deferred to the visitor's first interaction (tap, scroll, key) or 3 s
45
+ * after load, whichever comes first.
46
+ *
47
+ * The trade-off, deliberately: a paid visitor who leaves within 3 s without
48
+ * touching the page registers no PageView in Meta. Anyone who interacts or
49
+ * stays 3 s is counted, and nothing they do is lost — `fbq` queues every call
50
+ * until the script runs, PageView included.
51
+ */
52
+ export declare const META_PIXEL_DELAY_MS = 3000;
40
53
  /**
41
54
  * Loads the pixel once per page (browser only) and starts reporting. Calling it
42
55
  * again with the same id is a no-op; with another id, the old listener stops.
@@ -1 +1 @@
1
- {"version":3,"file":"meta-pixel.d.ts","sourceRoot":"","sources":["../../src/analytics/meta-pixel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,eAAe,EAAE,MAAM,OAAO,CAAA;AAElF;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,yBAAyB;IACxC,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,KAAK,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC,GAAG;IAC1C,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;IACzC,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAA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AO,EAAE,CAAA;IAChB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,GAAG,CAAC,EAAE,GAAG,CAAA;QACT,IAAI,CAAC,EAAE,GAAG,CAAA;KACX;CACF;AAED,eAAO,MAAM,aAAa,QAAmB,CAAA;AAE7C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,aAAa,GAAG,WAAW,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,UAAU,CAAA;IACtF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAKD,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAyCvF;AAKD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,OAAO,CAAA;AAqDvC;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAqB/G;AAED,8FAA8F;AAC9F,wBAAgB,iBAAiB,IAAI,IAAI,CAGxC;AAED,iBAAiB;AACjB,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"}
@@ -1,4 +1,4 @@
1
- import { registerStorefrontBlocks, THEME_SCALE_FIELDS, THEME_SCALE_VAR_PREFIX } from './chunk-HRLF5NYO.js';
1
+ import { registerStorefrontBlocks, THEME_SCALE_FIELDS, THEME_SCALE_VAR_PREFIX } from './chunk-JLCF7CPP.js';
2
2
  import { STOREFRONT_SLOTS } from './chunk-MFAU3AWK.js';
3
3
  import { toBlockNodes, routePathParams } from './chunk-BKO2AQ3Q.js';
4
4
  import { listEntityDeclarations, resolveHandle, errorMessage, RESERVED_ENTITY_FIELDS, ENTITY_FIELD_TYPES, handleNameFor, registerHandle, checkBlockConstraints, hasHandle, listHandles, blockRegistry, getBlockMeta, loaderRegistry, listLoaders, isLoaderParamRef, isLoaderPropRef } from '@fayz-ai/core';
@@ -1333,5 +1333,5 @@ ${formatErrors(report.errors)}`;
1333
1333
  }
1334
1334
 
1335
1335
  export { STOREFRONT_COMPONENT_KEYS, STOREFRONT_PAGE_KINDS, STORE_BACKEND_PROVIDERS, STORE_COMMERCE_MODES, STORE_DOCUMENT_KIND, STORE_PAYMENT_METHOD_KINDS, STORE_PAYMENT_MODES, STORE_ROUTE_CHROMES, STORE_ROUTE_KINDS, STORE_SECTIONS, STORE_SECTION_NAMES, exportStore, hydrateStoreDocument, isJsonValue, isRecord, sectionToJsonSchema, slugifyStoreName, validateStore };
1336
- //# sourceMappingURL=chunk-H6IOPA3J.js.map
1337
- //# sourceMappingURL=chunk-H6IOPA3J.js.map
1336
+ //# sourceMappingURL=chunk-6NUBVJJY.js.map
1337
+ //# sourceMappingURL=chunk-6NUBVJJY.js.map