@rbxts/app-forge 0.7.2-prototype.12 → 0.7.2-prototype.14

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.
@@ -25,7 +25,12 @@ local function App(props)
25
25
  _result = _result[_condition] ~= nil
26
26
  end
27
27
  if _result then
28
- error(`Duplicate registered App name "{props.name} in same Group name {props.group}". ` .. `App names must be globally unique.`, 2)
28
+ local _exp = props.name
29
+ local _condition = props.group
30
+ if not (_condition ~= "" and _condition) then
31
+ _condition = "None"
32
+ end
33
+ error(`Duplicate registered App name "{_exp} in same Group name {_condition}". ` .. `App names must be globally unique.`, 2)
29
34
  end
30
35
  local _value = props.name
31
36
  if not (_value ~= "" and _value) then
@@ -43,13 +48,18 @@ local function App(props)
43
48
  if not (_condition ~= "" and _condition) then
44
49
  _condition = "None"
45
50
  end
46
- local _arg1 = {
51
+ local _object = {
47
52
  constructor = constructor,
48
- renderGroup = props.group,
49
- visible = props.visible,
50
- rules = props.rules,
51
53
  }
52
- _result_1[_condition] = _arg1
54
+ local _left = "renderGroup"
55
+ local _condition_1 = props.group
56
+ if not (_condition_1 ~= "" and _condition_1) then
57
+ _condition_1 = "None"
58
+ end
59
+ _object[_left] = _condition_1
60
+ _object.visible = props.visible
61
+ _object.rules = props.rules
62
+ _result_1[_condition] = _object
53
63
  end
54
64
  return constructor
55
65
  end
package/out/renders.d.ts CHANGED
@@ -4,6 +4,6 @@ import Rules from "./ruleEngine";
4
4
  export default class Renders extends Rules {
5
5
  private __px;
6
6
  constructor();
7
- private Render;
7
+ Render: (props: Types.Props.Main) => void;
8
8
  protected initalize(props: Types.Props.Main, target?: GuiObject | Instance, root?: GuiObject | Instance): Vide.Node;
9
9
  }
package/out/renders.luau CHANGED
@@ -30,11 +30,11 @@ do
30
30
  function Renders:constructor()
31
31
  super.constructor(self)
32
32
  self.__px = false
33
- end
34
- function Renders:Render(props)
35
- print(props)
36
- print(AppRegistry)
37
- print(AppSources)
33
+ self.Render = function(props)
34
+ print(props)
35
+ print(AppRegistry)
36
+ print(AppSources)
37
+ end
38
38
  end
39
39
  function Renders:initalize(props, target, root)
40
40
  if not self.__px then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.7.2-prototype.12",
3
+ "version": "0.7.2-prototype.14",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",