@rbxts/app-forge 0.4.8 → 0.5.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.
package/out/helpers.luau CHANGED
@@ -5,11 +5,13 @@ local usePx = TS.import(script, TS.getModule(script, "@rbxts", "loners-pretty-vi
5
5
  -- Types
6
6
  local __px = false
7
7
  local function Render(props)
8
- local names = props.names
9
- local name = props.name
10
- local forge = props.forge
8
+ local _binding = props
9
+ local config = _binding.config
10
+ local name = _binding.name
11
+ local names = _binding.names
12
+ local forge = _binding.forge
11
13
  if not __px then
12
- local _exp = usePx()
14
+ local _exp = usePx(config.px.target, config.px.resolution, config.px.minScale)
13
15
  __px = true
14
16
  local _ = __px
15
17
  end
package/out/types.d.ts CHANGED
@@ -16,7 +16,13 @@ declare namespace Types {
16
16
  type MainProps = {
17
17
  props: AppProps;
18
18
  forge: AppForge;
19
- target?: GuiObject | Camera;
19
+ config: {
20
+ px: {
21
+ target?: GuiObject | Camera;
22
+ resolution?: Vector2;
23
+ minScale?: number;
24
+ };
25
+ };
20
26
  };
21
27
 
22
28
  type ClassProps = AppProps & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.4.8",
3
+ "version": "0.5.0",
4
4
  "description": "An App Manager for react",
5
5
  "main": "out/init.lua",
6
6
  "packageManager": "bun@1.3.1",
@@ -45,8 +45,8 @@
45
45
  "@rbxts/set-timeout": "^1.1.2"
46
46
  },
47
47
  "peerDependencies": {
48
- "@rbxts/loners-pretty-vide-utils": "^0.0.6",
49
- "@rbxts/object-utils": "^1.0.4",
48
+ "@rbxts/loners-pretty-vide-utils": "^0.0.8",
49
+ "@rbxts/object-utils": "*",
50
50
  "@rbxts/vide": "^0.5.7"
51
51
  }
52
52
  }