@superleapai/flow-ui 2.2.10 → 2.3.0

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