@syntrologie/runtime-sdk 2.8.0-canary.17 → 2.8.0-canary.19

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.
@@ -112,7 +112,7 @@ export declare function collectBrowserMetadata(): Record<string, string | string
112
112
  * @param options - Initialization options
113
113
  * @returns The initialized SDK components
114
114
  */
115
- declare function init(options: SyntroInitOptions): Promise<SyntroInitResult>;
115
+ declare function init(options: SyntroInitOptions): Promise<SyntroInitResult | undefined>;
116
116
  /**
117
117
  * The Syntro namespace for single-token initialization.
118
118
  */
@@ -755,6 +755,10 @@ var CelebrationEngine = class {
755
755
  this.container = null;
756
756
  }
757
757
  start(container, effect, config) {
758
+ const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
759
+ if (prefersReducedMotion) {
760
+ return;
761
+ }
758
762
  this.container = container;
759
763
  this.effect = effect;
760
764
  this.duration = config.duration;
@@ -3435,7 +3439,7 @@ function getAntiFlickerSnippet(config = {}) {
3435
3439
  }
3436
3440
 
3437
3441
  // src/version.ts
3438
- var SDK_VERSION = "2.8.0-canary.17";
3442
+ var SDK_VERSION = "2.8.0-canary.19";
3439
3443
 
3440
3444
  // src/types.ts
3441
3445
  var SDK_SCHEMA_VERSION = "2.0";
@@ -10980,6 +10984,19 @@ function collectBrowserMetadata() {
10980
10984
  return attrs;
10981
10985
  }
10982
10986
  async function init(options) {
10987
+ var _a2;
10988
+ try {
10989
+ return await _initCore(options);
10990
+ } catch (err) {
10991
+ const message = err instanceof Error ? err.message : String(err);
10992
+ console.warn("[Syntrologie] SDK initialization failed:", message);
10993
+ if (typeof document !== "undefined") {
10994
+ (_a2 = document.getElementById("syntrologie-anti-flicker")) == null ? void 0 : _a2.remove();
10995
+ }
10996
+ return void 0;
10997
+ }
10998
+ }
10999
+ async function _initCore(options) {
10983
11000
  var _a2, _b, _c, _d, _e, _f;
10984
11001
  initLogger();
10985
11002
  debug("Syntro Bootstrap", "====== INIT ======");
@@ -11113,6 +11130,9 @@ async function init(options) {
11113
11130
  // undefined falls back to adapter default
11114
11131
  // Enable PostHog feature flags for segment membership
11115
11132
  enableFeatureFlags: true,
11133
+ // Disable session recording in debug/dev mode (mock telemetry doesn't
11134
+ // support the PostHog recorder extension, causing console errors)
11135
+ sessionRecording: payload.d ? false : true,
11116
11136
  // Wire up callback for when flags are loaded (Phase 2)
11117
11137
  onFeatureFlagsLoaded,
11118
11138
  // Wire up event capture to feed into event processor
@@ -11415,4 +11435,4 @@ export {
11415
11435
  encodeToken,
11416
11436
  Syntro
11417
11437
  };
11418
- //# sourceMappingURL=chunk-DVM3G5H6.js.map
11438
+ //# sourceMappingURL=chunk-G5H6KTQR.js.map