pulse-rb 1.2.24 → 1.3.1

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,16 @@
1
1
  -- [adapters/windui.lua]
2
2
  -- Wind UI adapter for Pulse components.
3
- -- Injected by the compiler when ui_library = "windui" in layout.rblua.
4
- -- Provides _UIAdapter, _PulseNotify, and Pulse.UI (dynamic element builder).
5
- --
6
- -- Activation: set ui_library = "windui" in src/ui/layout.rblua
7
3
  -- Docs: footagesus.github.io/treehub-web/docs/windui
8
4
  -- Version: 1.6.64-fix (pinned)
9
5
 
6
+ -- Executor loadstring() environments are sandboxed — _G is NOT shared between chunks.
7
+ -- The compiler passes the bundle table (_P) as an argument so we can propagate all
8
+ -- runtime globals into this chunk's own environment before any adapter code runs.
9
+ local _P = ...
10
+ if type(_P) == "table" then
11
+ for _k, _v in pairs(_P) do _G[_k] = _v end
12
+ end
13
+
10
14
  local _WINDUI_URL = "https://github.com/Footagesus/WindUI/releases/download/1.6.64-fix/main.lua"
11
15
  local _PULSE_LOGO = "https://pulse-rb.vercel.app/img/logo.svg"
12
16