@superleapai/flow-ui 2.2.8 → 2.2.10

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,12 +1,12 @@
1
1
  /**
2
- * @superleapai/flow-ui v2.2.2
2
+ * @superleapai/flow-ui v2.2.9
3
3
  * A reusable design system for building multi-step forms
4
4
  *
5
5
  * Copyright (c) 2024-present SuperLeap
6
6
  * Licensed under MIT
7
7
  *
8
8
  * Build: development
9
- * Date: 2026-02-12T10:47:05.105Z
9
+ * Date: 2026-02-16T06:02:03.445Z
10
10
  *
11
11
  * For documentation and examples, visit:
12
12
  * https://github.com/superleap/superleap-flow
@@ -2742,8 +2742,7 @@
2742
2742
 
2743
2743
  _config = mergeConfig(DEFAULT_CONFIG, config);
2744
2744
 
2745
- // Create SDK instance immediately during init
2746
- // Check for both global function and class constructor
2745
+ // Create SDK instance using the SDK factory if available
2747
2746
  if (typeof global.createSuperLeapSDK === "function") {
2748
2747
  _sdkInstance = global.createSuperLeapSDK(_config);
2749
2748
  } else if (typeof global.SuperLeapSDK === "function") {
@@ -2757,8 +2756,8 @@
2757
2756
  }
2758
2757
 
2759
2758
  /**
2760
- * Get the SDK instance. Returns the instance created during init().
2761
- * Returns null if init() was not called or the SDK script is not loaded (components can show empty state).
2759
+ * Get the SDK instance.
2760
+ * Returns null if init() was not called or the SDK script is not loaded.
2762
2761
  *
2763
2762
  * @returns {SuperLeapSDK|null} SDK instance or null
2764
2763
  */
@@ -16807,7 +16806,9 @@
16807
16806
  if (isStandalone && !client.isAvailable()) {
16808
16807
  // Auto-init with default config for standalone testing
16809
16808
  client.init(client.getDefaultConfig());
16810
- console.log("[Superleap-Flow] SDK auto-initialized for standalone mode");
16809
+ console.log(
16810
+ "[Superleap-Flow] SDK auto-initialized for standalone mode"
16811
+ );
16811
16812
  }
16812
16813
  }
16813
16814
 
@@ -16823,7 +16824,7 @@
16823
16824
  },
16824
16825
  });
16825
16826
  document.dispatchEvent(event);
16826
- console.log("[Superleap-Flow] Library ready - v2.2.2");
16827
+ console.log("[Superleap-Flow] Library ready - v2.2.9");
16827
16828
  }
16828
16829
 
16829
16830
  // Wait for DOM to be ready before dispatching event