@rbxts/app-forge 0.3.4 → 0.3.6

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.
@@ -6,8 +6,9 @@ export declare function App(props: Types.AppRegistryProps): <T extends new (prop
6
6
  export declare abstract class Args {
7
7
  readonly forge: AppForge;
8
8
  readonly props: Types.ClassProps;
9
- readonly bind: React.Binding<boolean>;
10
9
  readonly name: AppNames[number];
10
+ readonly bind: React.Binding<boolean>;
11
+ readonly state: Boolean;
11
12
  constructor(props: Types.NameProps & Types.MainProps);
12
13
  abstract render(): JSX.Element;
13
14
  }
@@ -1,6 +1,5 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
- -- Services
4
3
  -- Packages
5
4
  local usePx = TS.import(script, TS.getModule(script, "@rbxts", "loners-pretty-react-hooks").out).usePx
6
5
  -- Types
@@ -40,6 +39,7 @@ do
40
39
  self.props = _object
41
40
  self.name = name
42
41
  self.bind = forge:getBind(name)
42
+ self.state = self.bind:getValue()
43
43
  end
44
44
  end
45
45
  return {
package/out/rules.luau CHANGED
@@ -49,7 +49,17 @@ do
49
49
  local allNames = Object.keys(AppRegistry)
50
50
  -- ▼ ReadonlyArray.forEach ▼
51
51
  local _callback = function(n)
52
- if not (n ~= "" and n) or n == name then
52
+ local _condition = not (n ~= "" and n)
53
+ if not _condition then
54
+ local _condition_1 = n == name
55
+ if _condition_1 then
56
+ local _loaded = self.appManager.loaded
57
+ local _n = n
58
+ _condition_1 = _loaded[_n]
59
+ end
60
+ _condition = _condition_1
61
+ end
62
+ if _condition then
53
63
  return nil
54
64
  end
55
65
  local _n = n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "An App Manager for react",
5
5
  "main": "out/init.lua",
6
6
  "packageManager": "bun@1.3.1",