ux4g-components-web 1.1.0 → 1.1.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.
@@ -1,40 +1,17 @@
1
1
  /**
2
2
  * UX4G Runtime Module
3
3
  *
4
- * Framework-agnostic runtime that encapsulates all interactive behaviors
5
- * previously delivered via CDN scripts (ux4g.js, ux4g-custom.js).
6
- *
7
- * Behaviors: dropdown toggling, modal management, tooltip positioning,
8
- * accordion expand/collapse, carousel sliding, drawer open/close.
4
+ * Framework-agnostic runtime that encapsulates ALL interactive behaviors
5
+ * from the vendor CDN scripts (ux4g.js + ux4g-custom.js).
9
6
  *
10
7
  * Uses a singleton guard (window.__UX4G_RUNTIME_INITIALIZED__) to ensure
11
- * initialization happens exactly once, even when multiple components import
12
- * the bootstrap module.
8
+ * initialization happens exactly once.
13
9
  */
14
10
  declare global {
15
11
  interface Window {
16
12
  __UX4G_RUNTIME_INITIALIZED__?: boolean;
13
+ __ux4gInitRaf?: number;
17
14
  }
18
15
  }
19
- /**
20
- * Initialize the UX4G runtime.
21
- *
22
- * Encapsulates all interactive behaviors from the CDN scripts (ux4g.js, ux4g-custom.js):
23
- * - Dropdown toggling
24
- * - Modal management (open/close/escape/backdrop click)
25
- * - Tooltip positioning (show/hide on hover/focus)
26
- * - Accordion expand/collapse
27
- * - Carousel sliding (next/prev)
28
- * - Drawer open/close
29
- *
30
- * Uses a singleton guard to ensure initialization happens exactly once.
31
- * Safe for SSR — no-ops when window/document are unavailable.
32
- */
33
16
  export declare function initRuntime(): void;
34
- /**
35
- * Destroy the UX4G runtime.
36
- *
37
- * Resets the singleton guard and removes all event listeners.
38
- * Useful for testing and SSR cleanup.
39
- */
40
17
  export declare function destroyRuntime(): void;