@rbxts/app-forge 0.2.0 → 0.2.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.
package/README.md CHANGED
@@ -110,6 +110,12 @@ export default class SideButtons extends Args {
110
110
  this.Forge // This is the AppForge Manager Created
111
111
  this.name // The Name given on Element Creation
112
112
  this.props // Props passed through Render
113
+ this.bind // This is the visible Bind
114
+
115
+ // Also I added px into the this.props table for you just requires my other lib so you can do this
116
+ const { px } = this.props
117
+
118
+ px.map((s) => (1 * s))
113
119
  ```
114
120
 
115
121
  You never manually `new` apps — AppForge constructs them automatically.
@@ -2,7 +2,6 @@ import { usePx } from "@rbxts/loners-pretty-react-hooks";
2
2
  import React from "@rbxts/react";
3
3
  import type Types from "./types";
4
4
  import type AppForge from ".";
5
- import ReactRoblox from "@rbxts/react-roblox";
6
5
  export declare const AppRegistry: Map<string, Types.AppRegistry>;
7
6
  export declare function App(props: Types.AppRegistryProps): <T extends new (props: Types.MainProps) => Args>(constructor: T) => T;
8
7
  export declare abstract class Args {
@@ -10,7 +9,6 @@ export declare abstract class Args {
10
9
  readonly props: AppProps & {
11
10
  px: ReturnType<typeof usePx>;
12
11
  };
13
- readonly root: ReactRoblox.Root | undefined;
14
12
  readonly bind: React.Binding<boolean>;
15
13
  readonly name: AppNames[number];
16
14
  constructor(props: Types.MainProps);
@@ -26,7 +26,6 @@ do
26
26
  Args = {}
27
27
  function Args:constructor(props)
28
28
  local _binding = props
29
- local root = _binding.root
30
29
  local target = _binding.target
31
30
  local forge = _binding.forge
32
31
  local name = _binding.name
@@ -35,7 +34,6 @@ do
35
34
  end
36
35
  local px = usePx(target)
37
36
  self.Forge = forge
38
- self.root = root
39
37
  local _object = table.clone(props)
40
38
  setmetatable(_object, nil)
41
39
  _object.px = px
package/out/types.d.ts CHANGED
@@ -10,13 +10,12 @@ declare namespace Types {
10
10
  };
11
11
 
12
12
  type MainProps = (
13
- | { name: AppNames[number]; names?: undefined }
14
- | { names: AppNames[number][]; name?: undefined }
13
+ | { name?: AppNames[number]; names?: undefined }
14
+ | { names?: AppNames[number][]; name?: undefined }
15
15
  ) & {
16
16
  props: AppProps;
17
17
  forge: AppForge;
18
18
  target?: GuiObject | Camera;
19
- root?: ReactRoblox.Root;
20
19
  };
21
20
 
22
21
  type AppRegistry = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "An App Manager for react",
5
5
  "main": "out/init.lua",
6
6
  "packageManager": "bun@1.3.1",