File tree Expand file tree Collapse file tree 7 files changed +25
-25
lines changed Expand file tree Collapse file tree 7 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { isDesktop } from "@utils/desktopTools";
4
4
5
5
import { WindowActions } from "@components/window/WindowActions" ;
6
6
import { ToolBar } from "@components/window/ToolBar" ;
7
- import { Pallete } from "@components/window/Pallete " ;
7
+ import { Palette } from "@components/window/Palette " ;
8
8
9
9
import "./style.css" ;
10
10
@@ -33,7 +33,7 @@ export function AppBar({
33
33
34
34
< ToolBar tools = { tools } />
35
35
36
- < Pallete generateSuggestions = { generateSuggestions } />
36
+ < Palette generateSuggestions = { generateSuggestions } />
37
37
38
38
< div className = "root-app-extra-title" >
39
39
< span >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { DynamicIcon } from "@components/commons/DynamicIcon";
7
7
8
8
import "./style.css" ;
9
9
10
- export function Pallete ( {
10
+ export function Palette ( {
11
11
generateSuggestions,
12
12
} : {
13
13
generateSuggestions : ( query : string ) => Suggestion [ ] ;
@@ -28,7 +28,7 @@ export function Pallete({
28
28
>
29
29
< Input
30
30
value = { query }
31
- placeholder = "App Pallete "
31
+ placeholder = "App Palette "
32
32
onChange = { ( e ) => setQuery ( e . target . value ) }
33
33
/>
34
34
File renamed without changes.
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { useNodeFactoryContext } from "@utils/nodeFactory";
13
13
import { useNodeSystemContext } from "@utils/nodeSystem" ;
14
14
import { useNodeHistoryContext } from "@utils/nodeHistory" ;
15
15
import { usePromptContext } from "@utils/prompt" ;
16
- import { usePalleteContext } from "@utils/pallete " ;
16
+ import { usePaletteContext } from "@utils/palette " ;
17
17
import { useVariablesContext } from "@utils/variables" ;
18
18
import { loadProject , saveProject } from "@utils/engineTools" ;
19
19
import { packProject } from "@utils/packerTools" ;
@@ -24,7 +24,7 @@ import {
24
24
getBreadcrumb ,
25
25
getWindowTools ,
26
26
loadExistingId ,
27
- updatePalleteRegistry ,
27
+ updatePaletteRegistry ,
28
28
} from "@utils/projectTools" ;
29
29
30
30
const createAppDataContext = ( ) => {
@@ -69,7 +69,7 @@ const createAppDataContext = () => {
69
69
const {
70
70
addSuggestion,
71
71
generateSuggestions,
72
- } = usePalleteContext ( ) ! ;
72
+ } = usePaletteContext ( ) ! ;
73
73
74
74
const {
75
75
newNode,
@@ -193,7 +193,7 @@ const createAppDataContext = () => {
193
193
] ) ;
194
194
195
195
useEffect ( ( ) => {
196
- updatePalleteRegistry (
196
+ updatePaletteRegistry (
197
197
addSuggestion ,
198
198
openNode ,
199
199
entries ,
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ import {
8
8
9
9
import type { Suggestion } from "@defs/UI" ;
10
10
11
- function createPalleteContext ( ) {
12
- const PalleteContext = createContext < {
11
+ function createPaletteContext ( ) {
12
+ const PaletteContext = createContext < {
13
13
addSuggestion : ( suggestion : Suggestion , group : string ) => void ;
14
14
generateSuggestions : ( query : string ) => Suggestion [ ] ;
15
15
} | undefined > ( undefined ) ;
16
16
17
- const PalleteProvider = ( { children } : {
17
+ const PaletteProvider = ( { children } : {
18
18
children : ReactNode ;
19
19
} ) => {
20
20
const [ keys , setKeys ] = useState < {
@@ -88,24 +88,24 @@ function createPalleteContext() {
88
88
} ;
89
89
90
90
return ( < >
91
- < PalleteContext . Provider value = { exposed } >
91
+ < PaletteContext . Provider value = { exposed } >
92
92
{ children }
93
- </ PalleteContext . Provider >
93
+ </ PaletteContext . Provider >
94
94
</ > ) ;
95
95
}
96
96
97
- const usePalleteContext = ( ) => {
98
- return useContext ( PalleteContext ) ;
97
+ const usePaletteContext = ( ) => {
98
+ return useContext ( PaletteContext ) ;
99
99
}
100
100
101
101
return {
102
- PalleteProvider ,
103
- usePalleteContext
102
+ PaletteProvider ,
103
+ usePaletteContext
104
104
}
105
105
}
106
106
107
107
export const {
108
- PalleteProvider ,
109
- usePalleteContext
110
- } = createPalleteContext ( ) ;
108
+ PaletteProvider ,
109
+ usePaletteContext
110
+ } = createPaletteContext ( ) ;
111
111
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ const setupProjectTools = () => {
95
95
] ;
96
96
} ;
97
97
98
- const updatePalleteRegistry = (
98
+ const updatePaletteRegistry = (
99
99
addSuggestion : ( suggestion : Suggestion , group : string ) => void ,
100
100
openNode : ( nodeId : string , topLevel ?: boolean ) => void ,
101
101
entries : string [ ] ,
@@ -171,14 +171,14 @@ const setupProjectTools = () => {
171
171
getWindowTools,
172
172
getBreadcrumb,
173
173
loadExistingId,
174
- updatePalleteRegistry ,
174
+ updatePaletteRegistry ,
175
175
} ;
176
176
}
177
177
178
178
export const {
179
179
getWindowTools,
180
180
getBreadcrumb,
181
181
loadExistingId,
182
- updatePalleteRegistry ,
182
+ updatePaletteRegistry ,
183
183
} = setupProjectTools ( ) ;
184
184
Original file line number Diff line number Diff line change 1
1
import type { JSX , ReactNode } from "react" ;
2
2
3
3
import { PromptProvider } from "@utils/prompt" ;
4
- import { PalleteProvider } from "@utils/pallete " ;
4
+ import { PaletteProvider } from "@utils/palette " ;
5
5
import { VariablesProvider } from "@utils/variables" ;
6
6
import { NodeSystemProvider } from "@utils/nodeSystem" ;
7
7
import { NodeHistoryProvider } from "@utils/nodeHistory" ;
@@ -19,7 +19,7 @@ export function RootProvider({ children }: {
19
19
const providers : ProviderType [ ] = [
20
20
UnsavedChangesProvider ,
21
21
PromptProvider ,
22
- PalleteProvider ,
22
+ PaletteProvider ,
23
23
VariablesProvider ,
24
24
NodeSystemProvider ,
25
25
NodeHistoryProvider ,
You can’t perform that action at this time.
0 commit comments