Skip to content

Commit f47a734

Browse files
committed
Update require paths to packages
1 parent 5ad3545 commit f47a734

File tree

97 files changed

+180
-158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+180
-158
lines changed

example/ArrayControls.story.luau

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
local React = require("@pkg/React")
2-
local ReactRoblox = require("@pkg/ReactRoblox")
3-
local Sift = require("@pkg/Sift")
1+
local React = require("@pkg/react")
2+
local ReactRoblox = require("@pkg/react-roblox")
3+
local Sift = require("@pkg/sift")
44

55
local fonts = Sift.Array.sort(Enum.Font:GetEnumItems(), function(a: Enum.Font, z: Enum.Font)
66
return a.Name < z.Name

example/Button.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local Roact = require("@pkg/Roact")
1+
local Roact = require("@pkg/roact")
22

33
export type Props = {
44
text: string,

example/Button.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local Button = require("./Button")
2-
local Roact = require("@pkg/Roact")
2+
local Roact = require("@pkg/roact")
33

44
return {
55
summary = "A generic button component that can be used anywhere",

example/ButtonWithControls.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local Roact = require("@pkg/Roact")
1+
local Roact = require("@pkg/roact")
22

33
export type Props = {
44
text: string,

example/ButtonWithControls.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local ButtonWithControls = require("./ButtonWithControls")
2-
local Roact = require("@pkg/Roact")
2+
local Roact = require("@pkg/roact")
33

44
local controls = {
55
isDisabled = false,

example/CanvasTests/AutomaticSize.story.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local React = require("@pkg/react")
2+
local ReactRoblox = require("@pkg/react-roblox")
33

44
return {
55
summary = "AutoamticSize test for the story preview",

example/CanvasTests/AutomaticSizeExceedsBounds.story.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local React = require("@pkg/react")
2+
local ReactRoblox = require("@pkg/react-roblox")
33

44
return {
55
summary = "AutoamticSize test using a height that exceeds the story preview",

example/CanvasTests/Offset.story.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local React = require("@pkg/react")
2+
local ReactRoblox = require("@pkg/react-roblox")
33

44
return {
55
summary = "Offset test for the story preview",

example/CanvasTests/Resizing.story.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local RunService = game:GetService("RunService")
22

3-
local React = require("@pkg/React")
4-
local ReactRoblox = require("@pkg/ReactRoblox")
3+
local React = require("@pkg/react")
4+
local ReactRoblox = require("@pkg/react-roblox")
55

66
local RESIZE_DURATION = 3 -- seconds
77
local MAX_SIZE = 2000 -- px

example/CanvasTests/Scale.story.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local React = require("@pkg/react")
2+
local ReactRoblox = require("@pkg/react-roblox")
33

44
return {
55
summary = "Scale test for the story preview",

example/CanvasTests/ScrollingFrame.story.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local React = require("@pkg/react")
2+
local ReactRoblox = require("@pkg/react-roblox")
33

44
return {
55
summary = "ScrollingFrame test for the story preview",

example/Counter.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local Roact = require("@pkg/Roact")
1+
local Roact = require("@pkg/roact")
22

33
local Counter = Roact.Component:extend("Counter")
44

example/Counter.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local Counter = require("./Counter")
2-
local Roact = require("@pkg/Roact")
2+
local Roact = require("@pkg/roact")
33

44
local controls = {
55
increment = 1,

example/Hoarcekat.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local Roact = require("@pkg/Roact")
1+
local Roact = require("@pkg/roact")
22

33
return function(target: Instance)
44
local root = Roact.createElement("TextLabel", {

example/ReactCounter.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
export type Props = {
44
increment: number,

example/ReactCounter.story.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22
local ReactCounter = require("./ReactCounter")
3-
local ReactRoblox = require("@pkg/ReactRoblox")
3+
local ReactRoblox = require("@pkg/react-roblox")
44

55
local controls = {
66
increment = 1,

src/About/AboutView.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local BuildInfo = require("@root/About/BuildInfo")
44
local RobloxProfile = require("@root/About/RobloxProfile")

src/About/AboutView.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local AboutView = require("./AboutView")
44
local ContextProviders = require("@root/Common/ContextProviders")

src/About/BuildInfo.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local nextLayoutOrder = require("@root/Common/nextLayoutOrder")
44
local useTheme = require("@root/Common/useTheme")

src/About/RobloxProfile.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local Players = game:GetService("Players")
22

3-
local React = require("@pkg/React")
4-
local ReactSpring = require("@pkg/ReactSpring")
3+
local React = require("@pkg/react")
4+
local ReactSpring = require("@pkg/react-spring")
55

66
local nextLayoutOrder = require("@root/Common/nextLayoutOrder")
77
local useTheme = require("@root/Common/useTheme")

src/About/RobloxProfile.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local ContextProviders = require("@root/Common/ContextProviders")
44
local MockPlugin = require("@root/Testing/MockPlugin")

src/Common/Branding.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22
local Sprite = require("@root/Common/Sprite")
33
local assets = require("@root/assets")
44
local useTheme = require("@root/Common/useTheme")

src/Common/Branding.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local Branding = require("./Branding")
44
local ContextProviders = require("@root/Common/ContextProviders")

src/Common/ContextProviders.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local ContextStack = require("@root/Common/ContextStack")
44
local NavigationContext = require("@root/Navigation/NavigationContext")

src/Common/ContextStack.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
export type Props = {
44
providers: { React.ReactElement<any, any> },

src/Common/ScrollingFrame.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local Sift = require("@pkg/Sift")
1+
local React = require("@pkg/react")
2+
local Sift = require("@pkg/sift")
33
local useTheme = require("@root/Common/useTheme")
44

55
export type Props = {

src/Common/ScrollingFrame.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local ContextProviders = require("@root/Common/ContextProviders")
44
local MockPlugin = require("@root/Testing/MockPlugin")

src/Common/Sprite.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
export type Props = {
44
image: {

src/Common/Sprite.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22
local Sprite = require("./Sprite")
33
local assets = require("@root/assets")
44

src/Common/mapRanges.spec.luau

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
local JestGlobals = require("@pkg/JestGlobals")
1+
local JestGlobals = require("@pkg/jest-globals")
2+
23
local mapRanges = require("./mapRanges")
34

45
local expect = JestGlobals.expect

src/Common/useEvent.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local function useEvent(event: RBXScriptSignal, callback: (...any) -> ())
44
React.useEffect(function()

src/Common/useEvent.spec.luau

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
local JestGlobals = require("@pkg/JestGlobals")
2-
local React = require("@pkg/React")
3-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local JestGlobals = require("@pkg/jest-globals")
2+
3+
local React = require("@pkg/react")
4+
local ReactRoblox = require("@pkg/react-roblox")
45
local useEvent = require("./useEvent")
56

67
local afterEach = JestGlobals.afterEach

src/Common/usePrevious.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local function usePrevious(value: any)
44
local previous = React.useRef(nil)

src/Common/usePrevious.spec.luau

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
local JestGlobals = require("@pkg/JestGlobals")
2-
local React = require("@pkg/React")
3-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local JestGlobals = require("@pkg/jest-globals")
2+
3+
local React = require("@pkg/react")
4+
local ReactRoblox = require("@pkg/react-roblox")
45
local useEvent = require("@root/Common/useEvent")
56
local usePrevious = require("./usePrevious")
67

src/Common/useTheme.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local SettingsContext = require("@root/UserSettings/SettingsContext")
44
local themes = require("@root/themes")

src/Common/useZoom.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local ZOOM_INCREMENT = 0.25
44

src/Common/useZoom.spec.luau

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
local JestGlobals = require("@pkg/JestGlobals")
2-
local React = require("@pkg/React")
3-
local ReactRoblox = require("@pkg/ReactRoblox")
1+
local JestGlobals = require("@pkg/jest-globals")
2+
3+
local React = require("@pkg/react")
4+
local ReactRoblox = require("@pkg/react-roblox")
45
local useEvent = require("@root/Common/useEvent")
56
local useZoom = require("./useZoom")
67

src/Explorer/Component.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local Component = require("./Component")
44
local ContextProviders = require("@root/Common/ContextProviders")

src/Explorer/Component/Directory.luau

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
local React = require("@pkg/React")
2-
local ReactSpring = require("@pkg/ReactSpring")
1+
local React = require("@pkg/react")
2+
local ReactSpring = require("@pkg/react-spring")
3+
34
local Sprite = require("@root/Common/Sprite")
45
local assets = require("@root/assets")
56
local constants = require("@root/constants")

src/Explorer/Component/Story.luau

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
local React = require("@pkg/React")
2-
local ReactSpring = require("@pkg/ReactSpring")
1+
local React = require("@pkg/react")
2+
local ReactSpring = require("@pkg/react-spring")
3+
34
local Sprite = require("@root/Common/Sprite")
45
local assets = require("@root/assets")
56
local constants = require("@root/constants")

src/Explorer/Component/init.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local Directory = require("./Directory")
2-
local React = require("@pkg/React")
3-
local Sift = require("@pkg/Sift")
2+
local React = require("@pkg/react")
3+
local Sift = require("@pkg/sift")
44
local Story = require("./Story")
55
local filterComponentTreeNode = require("@root/Explorer/filterComponentTreeNode")
66
local types = require("@root/Explorer/types")

src/Explorer/filterComponentTreeNode.spec.luau

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
local JestGlobals = require("@pkg/JestGlobals")
1+
local JestGlobals = require("@pkg/jest-globals")
2+
23
local filterComponentTreeNode = require("./filterComponentTreeNode")
34
local types = require("./types")
45

src/Explorer/getTreeDescendants.spec.luau

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
local JestGlobals = require("@pkg/JestGlobals")
1+
local JestGlobals = require("@pkg/jest-globals")
2+
23
local getTreeDescendants = require("./getTreeDescendants")
34

45
local expect = JestGlobals.expect

src/Explorer/init.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local Component = require("./Component")
2-
local React = require("@pkg/React")
2+
local React = require("@pkg/react")
33
local types = require("./types")
44

55
local e = React.createElement

src/Explorer/types.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local Storyteller = require("@pkg/Storyteller")
1+
local Storyteller = require("@pkg/storyteller")
22

33
type LoadedStorybook = Storyteller.LoadedStorybook
44

src/Forms/Button.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local Sift = require("@pkg/Sift")
1+
local React = require("@pkg/react")
2+
local Sift = require("@pkg/sift")
33
local useTheme = require("@root/Common/useTheme")
44

55
local e = React.createElement

src/Forms/Button.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local Button = require("./Button")
44
local ContextProviders = require("@root/Common/ContextProviders")

src/Forms/Checkbox.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22
local useTheme = require("@root/Common/useTheme")
33

44
export type Props = {

src/Forms/Checkbox.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local Checkbox = require("./Checkbox")
44
local ContextProviders = require("@root/Common/ContextProviders")

src/Forms/Dropdown.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22
local useTheme = require("@root/Common/useTheme")
33

44
export type Props = {

src/Forms/Dropdown.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local ContextProviders = require("@root/Common/ContextProviders")
44
local Dropdown = require("@root/Forms/Dropdown")

src/Forms/InputField.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local React = require("@pkg/React")
2-
local Sift = require("@pkg/Sift")
1+
local React = require("@pkg/react")
2+
local Sift = require("@pkg/sift")
33
local useTheme = require("@root/Common/useTheme")
44

55
local e = React.createElement

src/Forms/InputField.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local ContextProviders = require("@root/Common/ContextProviders")
44
local InputField = require("./InputField")

src/Forms/Searchbar.luau

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
local InputField = require("@root/Forms/InputField")
2-
local React = require("@pkg/React")
3-
local ReactSpring = require("@pkg/ReactSpring")
4-
local Sift = require("@pkg/Sift")
2+
local React = require("@pkg/react")
3+
local ReactSpring = require("@pkg/react-spring")
4+
5+
local Sift = require("@pkg/sift")
56
local Sprite = require("@root/Common/Sprite")
67
local assets = require("@root/assets")
78
local constants = require("@root/constants")

src/Forms/Searchbar.story.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local React = require("@pkg/React")
1+
local React = require("@pkg/react")
22

33
local ContextProviders = require("@root/Common/ContextProviders")
44
local MockPlugin = require("@root/Testing/MockPlugin")

0 commit comments

Comments
 (0)