@syntrologie/runtime-sdk 2.8.0-canary.64 → 2.8.0-canary.65

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.
@@ -20679,7 +20679,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
20679
20679
  }
20680
20680
 
20681
20681
  // src/version.ts
20682
- var SDK_VERSION = "2.8.0-canary.64";
20682
+ var SDK_VERSION = "2.8.0-canary.65";
20683
20683
 
20684
20684
  // src/types.ts
20685
20685
  var SDK_SCHEMA_VERSION = "2.0";
@@ -37037,32 +37037,7 @@ ${cssRules}
37037
37037
  // Capture performance metrics
37038
37038
  capture_performance: true,
37039
37039
  // Enable web vitals
37040
- enable_recording_console_log: true,
37041
- // Bootstrap callback for when flags are loaded
37042
- loaded: (ph) => {
37043
- if (enableFeatureFlags && this.featureFlagsCallback) {
37044
- ph.onFeatureFlags(() => {
37045
- const allFlags = this.getAllFeatureFlags();
37046
- if (allFlags && this.featureFlagsCallback) {
37047
- this.featureFlagsCallback(allFlags);
37048
- }
37049
- });
37050
- const existingFlags = this.getAllFeatureFlags();
37051
- if (existingFlags && Object.keys(existingFlags).length > 0) {
37052
- this.featureFlagsCallback(existingFlags);
37053
- }
37054
- }
37055
- if (this.captureCallback) {
37056
- ph.on("eventCaptured", (...args) => {
37057
- const data = args[0];
37058
- const eventName = typeof data === "string" ? data : data?.event;
37059
- const properties = typeof data === "string" ? void 0 : data?.properties;
37060
- if (typeof eventName === "string") {
37061
- this.captureCallback?.(eventName, properties);
37062
- }
37063
- });
37064
- }
37065
- }
37040
+ enable_recording_console_log: true
37066
37041
  };
37067
37042
  const result = Jo.init(
37068
37043
  options.apiKey,
@@ -37072,6 +37047,28 @@ ${cssRules}
37072
37047
  if (result) {
37073
37048
  this.client = result;
37074
37049
  }
37050
+ if (this.captureCallback && this.client) {
37051
+ this.client.on("eventCaptured", (...args) => {
37052
+ const data = args[0];
37053
+ const eventName = typeof data === "string" ? data : data?.event;
37054
+ const properties = typeof data === "string" ? void 0 : data?.properties;
37055
+ if (typeof eventName === "string") {
37056
+ this.captureCallback?.(eventName, properties);
37057
+ }
37058
+ });
37059
+ }
37060
+ if (enableFeatureFlags && this.featureFlagsCallback && this.client) {
37061
+ this.client.onFeatureFlags(() => {
37062
+ const allFlags = this.getAllFeatureFlags();
37063
+ if (allFlags && this.featureFlagsCallback) {
37064
+ this.featureFlagsCallback(allFlags);
37065
+ }
37066
+ });
37067
+ const existingFlags = this.getAllFeatureFlags();
37068
+ if (existingFlags && Object.keys(existingFlags).length > 0) {
37069
+ this.featureFlagsCallback(existingFlags);
37070
+ }
37071
+ }
37075
37072
  if (this.rrwebCallback && this.client) {
37076
37073
  this.setupRRWebIntercept();
37077
37074
  }
@@ -42143,7 +42140,7 @@ ${cssRules}
42143
42140
  }
42144
42141
 
42145
42142
  // src/index.ts
42146
- var RUNTIME_SDK_BUILD = true ? `${"2026-04-13T06:17:12.836Z"} (${"04de87d27a6"})` : "dev";
42143
+ var RUNTIME_SDK_BUILD = true ? `${"2026-04-13T17:37:13.929Z"} (${"e3f2c1dda1d"})` : "dev";
42147
42144
  if (typeof window !== "undefined") {
42148
42145
  console.log(`[Syntro Runtime] Build: ${RUNTIME_SDK_BUILD}`);
42149
42146
  const existing = window.SynOS;