@rbxts/app-forge 0.7.2-alpha.2 → 0.7.2-alpha.21

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.
Files changed (51) hide show
  1. package/README.md +35 -192
  2. package/out/{vide/classes → classes}/renders.d.ts +5 -3
  3. package/out/{vide/classes → classes}/renders.luau +3 -1
  4. package/out/{vide/classes → classes}/rules/exclusiveGroup.d.ts +1 -1
  5. package/out/{vide/classes → classes}/rules/index.d.ts +1 -1
  6. package/out/{react → classes}/rules/parent.d.ts +1 -1
  7. package/out/{vide/classes → classes}/rules/parent.luau +1 -0
  8. package/out/{vide/context.d.ts → context.d.ts} +1 -1
  9. package/out/{vide/debug → debug}/debugger.luau +1 -1
  10. package/out/{vide/decorator.d.ts → decorator.d.ts} +1 -1
  11. package/out/{vide/decorator.luau → decorator.luau} +0 -6
  12. package/out/global.d.ts +1 -1
  13. package/out/{vide/hooks → hooks}/useAppContext.d.ts +1 -1
  14. package/out/{vide/hooks → hooks}/usePx.luau +0 -5
  15. package/out/index.d.ts +5 -11
  16. package/out/init.luau +6 -14
  17. package/out/{vide/index.d.ts → main.d.ts} +2 -2
  18. package/out/{vide/init.luau → main.luau} +35 -10
  19. package/out/{vide/types.d.ts → types.d.ts} +9 -9
  20. package/package.json +4 -10
  21. package/out/react/container.d.ts +0 -10
  22. package/out/react/container.luau +0 -60
  23. package/out/react/context.d.ts +0 -7
  24. package/out/react/context.luau +0 -12
  25. package/out/react/decorator.d.ts +0 -14
  26. package/out/react/decorator.luau +0 -51
  27. package/out/react/helpers.d.ts +0 -6
  28. package/out/react/helpers.luau +0 -74
  29. package/out/react/hooks/useAppContext.d.ts +0 -5
  30. package/out/react/hooks/useAppContext.luau +0 -16
  31. package/out/react/hooks/usePx.d.ts +0 -15
  32. package/out/react/hooks/usePx.luau +0 -117
  33. package/out/react/index.d.ts +0 -44
  34. package/out/react/init.luau +0 -123
  35. package/out/react/rules/index.d.ts +0 -6
  36. package/out/react/rules/init.luau +0 -27
  37. package/out/react/rules/parent.luau +0 -42
  38. package/out/react/types.d.ts +0 -44
  39. package/out/vide/classes/rules/parent.d.ts +0 -2
  40. /package/out/{vide/classes → classes}/rules/exclusiveGroup.luau +0 -0
  41. /package/out/{vide/classes → classes}/rules/init.luau +0 -0
  42. /package/out/{vide/context.luau → context.luau} +0 -0
  43. /package/out/{vide/debug → debug}/debugger.d.ts +0 -0
  44. /package/out/{vide/debug → debug}/index.d.ts +0 -0
  45. /package/out/{vide/debug → debug}/init.luau +0 -0
  46. /package/out/{vide/debug → debug}/logger.d.ts +0 -0
  47. /package/out/{vide/debug → debug}/logger.luau +0 -0
  48. /package/out/{vide/hooks → hooks}/useAppContext.luau +0 -0
  49. /package/out/{vide/hooks → hooks}/useEventListener.d.ts +0 -0
  50. /package/out/{vide/hooks → hooks}/useEventListener.luau +0 -0
  51. /package/out/{vide/hooks → hooks}/usePx.d.ts +0 -0
@@ -1,27 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- -- Types
4
- -- Rules
5
- local ParentRule = TS.import(script, script, "parent").default
6
- local RulesManager
7
- do
8
- RulesManager = setmetatable({}, {
9
- __tostring = function()
10
- return "RulesManager"
11
- end,
12
- })
13
- RulesManager.__index = RulesManager
14
- function RulesManager.new(...)
15
- local self = setmetatable({}, RulesManager)
16
- return self:constructor(...) or self
17
- end
18
- function RulesManager:constructor(forge)
19
- self.forge = forge
20
- end
21
- function RulesManager:applyRules(name)
22
- ParentRule(name, self.forge)
23
- end
24
- end
25
- return {
26
- default = RulesManager,
27
- }
@@ -1,42 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- -- Types
4
- -- Components
5
- local AppRegistry = TS.import(script, script.Parent.Parent, "decorator").AppRegistry
6
- local function ParentRule(entry, forge)
7
- local children = {}
8
- -- ▼ ReadonlyMap.forEach ▼
9
- local _callback = function(app, name)
10
- local rules = app.rules
11
- if not rules then
12
- return nil
13
- end
14
- local _condition = rules.parent
15
- if _condition ~= "" and _condition then
16
- _condition = rules.parent == entry
17
- end
18
- if _condition ~= "" and _condition then
19
- local _binds = forge.binds
20
- local _entry = entry
21
- if not _binds[_entry] then
22
- local _name = name
23
- table.insert(children, _name)
24
- end
25
- end
26
- end
27
- for _k, _v in AppRegistry do
28
- _callback(_v, _k, AppRegistry)
29
- end
30
- -- ▲ ReadonlyMap.forEach ▲
31
- -- ▼ ReadonlyArray.forEach ▼
32
- local _callback_1 = function(name)
33
- return forge:close(name)
34
- end
35
- for _k, _v in children do
36
- _callback_1(_v, _k - 1, children)
37
- end
38
- -- ▲ ReadonlyArray.forEach ▲
39
- end
40
- return {
41
- default = ParentRule,
42
- }
@@ -1,44 +0,0 @@
1
- // Types
2
- import type { Args } from "./decorator";
3
- import type AppForge from ".";
4
-
5
- declare namespace Types {
6
- type AppRegistryProps = {
7
- name: AppNames;
8
- visible?: boolean;
9
- rules?: Rules.All;
10
- };
11
-
12
- type NameProps =
13
- | { name?: AppNames; names?: undefined }
14
- | { names?: AppNames[]; name?: undefined };
15
-
16
- type MainProps = {
17
- props: AppProps;
18
- forge: AppForge;
19
- target?: GuiObject | Camera;
20
- };
21
-
22
- type ClassProps = AppProps & {
23
- forge: AppForge;
24
- px: ReturnType<typeof import("@rbxts/loners-pretty-react-hooks").usePx>;
25
- };
26
-
27
- type AppRegistry = {
28
- constructor: new (props: MainProps) => Args;
29
- visible?: boolean;
30
- rules?: Rules.All;
31
- };
32
-
33
- namespace Rules {
34
- type All = {
35
- parent?: AppNames;
36
- };
37
- }
38
- }
39
-
40
- export type MainProps = Types.MainProps;
41
- export type NameProps = Types.NameProps;
42
- export type ClassProps = Types.ClassProps;
43
-
44
- export default Types;
@@ -1,2 +0,0 @@
1
- import type AppForge from "../..";
2
- export default function ParentRule(entry: AppNames, forge: AppForge): void;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes