@nrwl/expo 14.4.4 → 14.4.6
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/.eslintrc.json +16 -4
- package/CHANGELOG.md +24 -0
- package/LICENSE +22 -0
- package/README.md +13 -137
- package/executors.json +40 -10
- package/generators.json +0 -5
- package/migrations.json +374 -0
- package/package.json +24 -18
- package/plugins/metro-resolver.js +12 -1
- package/plugins/metro-resolver.js.map +1 -1
- package/plugins/with-nx-webpack.d.ts +1 -1
- package/plugins/with-nx-webpack.js +8 -60
- package/plugins/with-nx-webpack.js.map +1 -1
- package/project.json +10 -50
- package/src/executors/build/build.impl.js +2 -2
- package/src/executors/build/build.impl.js.map +1 -1
- package/src/executors/build/schema.json +8 -4
- package/src/executors/build-android/build-android.impl.js +4 -3
- package/src/executors/build-android/build-android.impl.js.map +1 -1
- package/src/executors/build-android/schema.json +8 -4
- package/src/executors/build-ios/build-ios.impl.js +4 -3
- package/src/executors/build-ios/build-ios.impl.js.map +1 -1
- package/src/executors/build-ios/schema.d.ts +1 -1
- package/src/executors/build-ios/schema.json +8 -4
- package/src/executors/build-list/build-list.impl.js +9 -6
- package/src/executors/build-list/build-list.impl.js.map +1 -1
- package/src/executors/build-list/schema.d.ts +1 -0
- package/src/executors/build-list/schema.json +9 -2
- package/src/executors/build-status/build-status.impl.js +3 -2
- package/src/executors/build-status/build-status.impl.js.map +1 -1
- package/src/executors/build-status/schema.json +3 -1
- package/src/executors/build-web/build-web.impl.js +3 -2
- package/src/executors/build-web/build-web.impl.js.map +1 -1
- package/src/executors/build-web/schema.json +3 -1
- package/src/executors/download/download.impl.js +2 -2
- package/src/executors/download/download.impl.js.map +1 -1
- package/src/executors/download/schema.d.ts +0 -1
- package/src/executors/download/schema.json +5 -2
- package/src/executors/ensure-symlink/ensure-symlink.impl.js +1 -1
- package/src/executors/ensure-symlink/ensure-symlink.impl.js.map +1 -1
- package/src/executors/ensure-symlink/schema.json +2 -0
- package/src/executors/export/compat.js +6 -0
- package/src/executors/export/compat.js.map +1 -0
- package/src/executors/export/export.impl.d.ts +6 -0
- package/src/executors/export/export.impl.js +69 -0
- package/src/executors/export/export.impl.js.map +1 -0
- package/src/executors/export/schema.d.ts +11 -0
- package/src/executors/export/schema.json +48 -0
- package/src/executors/install/compat.d.ts +2 -0
- package/src/executors/install/compat.js +6 -0
- package/src/executors/install/compat.js.map +1 -0
- package/src/executors/install/install.impl.d.ts +7 -0
- package/src/executors/install/install.impl.js +70 -0
- package/src/executors/install/install.impl.js.map +1 -0
- package/src/executors/install/schema.d.ts +7 -0
- package/src/executors/install/schema.json +34 -0
- package/src/executors/prebuild/compat.d.ts +2 -0
- package/src/executors/prebuild/compat.js +6 -0
- package/src/executors/prebuild/compat.js.map +1 -0
- package/src/executors/prebuild/prebuild.impl.d.ts +6 -0
- package/src/executors/{eject/eject.impl.js → prebuild/prebuild.impl.js} +19 -12
- package/src/executors/prebuild/prebuild.impl.js.map +1 -0
- package/src/executors/prebuild/schema.d.ts +10 -0
- package/src/executors/prebuild/schema.json +34 -0
- package/src/executors/publish/publish.impl.js +3 -2
- package/src/executors/publish/publish.impl.js.map +1 -1
- package/src/executors/publish/schema.json +5 -2
- package/src/executors/publish-set/publish-set.impl.js +2 -1
- package/src/executors/publish-set/publish-set.impl.js.map +1 -1
- package/src/executors/publish-set/schema.json +3 -1
- package/src/executors/rollback/rollback.impl.js +2 -1
- package/src/executors/rollback/rollback.impl.js.map +1 -1
- package/src/executors/rollback/schema.json +3 -1
- package/src/executors/run/run.impl.js +11 -11
- package/src/executors/run/run.impl.js.map +1 -1
- package/src/executors/run/schema.d.ts +18 -6
- package/src/executors/run/schema.json +21 -8
- package/src/executors/start/schema.d.ts +12 -4
- package/src/executors/start/schema.json +27 -9
- package/src/executors/start/start.impl.js +8 -12
- package/src/executors/start/start.impl.js.map +1 -1
- package/src/executors/sync-deps/schema.d.ts +2 -1
- package/src/executors/sync-deps/schema.json +17 -3
- package/src/executors/sync-deps/sync-deps.impl.d.ts +2 -2
- package/src/executors/sync-deps/sync-deps.impl.js +14 -9
- package/src/executors/sync-deps/sync-deps.impl.js.map +1 -1
- package/src/executors/update/compat.d.ts +2 -0
- package/src/executors/update/compat.js +6 -0
- package/src/executors/update/compat.js.map +1 -0
- package/src/executors/update/schema.d.ts +15 -0
- package/src/executors/update/schema.json +65 -0
- package/src/executors/update/update.impl.d.ts +6 -0
- package/src/executors/update/update.impl.js +59 -0
- package/src/executors/update/update.impl.js.map +1 -0
- package/src/generators/application/application.js +1 -1
- package/src/generators/application/application.js.map +1 -1
- package/src/generators/application/files/babel.config.js.template +1 -2
- package/src/generators/application/files/package.json.template +1 -10
- package/src/generators/application/files/src/app/App.tsx.template +227 -41
- package/src/generators/application/files/tsconfig.json.template +3 -2
- package/src/generators/application/lib/add-detox.js +1 -1
- package/src/generators/application/lib/add-detox.js.map +1 -1
- package/src/generators/application/lib/add-project.js +39 -16
- package/src/generators/application/lib/add-project.js.map +1 -1
- package/src/generators/application/lib/normalize-options.d.ts +2 -1
- package/src/generators/application/lib/normalize-options.js +4 -2
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/schema.d.ts +2 -0
- package/src/generators/application/schema.json +18 -6
- package/src/generators/component/lib/add-import.js +1 -1
- package/src/generators/component/lib/add-import.js.map +1 -1
- package/src/generators/component/schema.json +6 -5
- package/src/generators/init/init.d.ts +4 -4
- package/src/generators/init/init.js +18 -21
- package/src/generators/init/init.js.map +1 -1
- package/src/generators/init/lib/add-git-ignore-entry.js +1 -1
- package/src/generators/init/lib/add-git-ignore-entry.js.map +1 -1
- package/src/generators/init/lib/gitignore-entries.d.ts +1 -1
- package/src/generators/init/lib/gitignore-entries.js +2 -0
- package/src/generators/init/lib/gitignore-entries.js.map +1 -1
- package/src/generators/init/schema.d.ts +2 -0
- package/src/generators/init/schema.json +13 -2
- package/src/generators/library/files/lib/babel.config.json +17 -0
- package/src/generators/library/lib/normalize-options.js +1 -1
- package/src/generators/library/lib/normalize-options.js.map +1 -1
- package/src/generators/library/library.js +3 -17
- package/src/generators/library/library.js.map +1 -1
- package/src/generators/library/schema.d.ts +1 -1
- package/src/generators/library/schema.json +13 -11
- package/src/migrations/update-14-5-1/add-eas-update-target.d.ts +5 -0
- package/src/migrations/update-14-5-1/add-eas-update-target.js +27 -0
- package/src/migrations/update-14-5-1/add-eas-update-target.js.map +1 -0
- package/src/migrations/update-15-0-3/add-new-expo-cli-targets.d.ts +9 -0
- package/src/migrations/update-15-0-3/add-new-expo-cli-targets.js +66 -0
- package/src/migrations/update-15-0-3/add-new-expo-cli-targets.js.map +1 -0
- package/src/migrations/update-15-0-3/change-jest-preset.d.ts +8 -0
- package/src/migrations/update-15-0-3/change-jest-preset.js +74 -0
- package/src/migrations/update-15-0-3/change-jest-preset.js.map +1 -0
- package/src/utils/add-jest.js +12 -18
- package/src/utils/add-jest.js.map +1 -1
- package/src/utils/add-linting.js +9 -13
- package/src/utils/add-linting.js.map +1 -1
- package/src/utils/ensure-node-modules-symlink.js +5 -5
- package/src/utils/ensure-node-modules-symlink.js.map +1 -1
- package/src/utils/pod-install-task.d.ts +1 -1
- package/src/utils/pod-install-task.js +12 -13
- package/src/utils/pod-install-task.js.map +1 -1
- package/src/utils/versions.d.ts +21 -24
- package/src/utils/versions.js +22 -25
- package/src/utils/versions.js.map +1 -1
- package/tsconfig.spec.json +5 -5
- package/.babelrc +0 -3
- package/src/executors/eject/compat.js +0 -6
- package/src/executors/eject/compat.js.map +0 -1
- package/src/executors/eject/eject.impl.d.ts +0 -6
- package/src/executors/eject/eject.impl.js.map +0 -1
- package/src/executors/eject/schema.d.ts +0 -6
- package/src/executors/eject/schema.json +0 -21
- package/src/generators/application/files/assets/logo.png +0 -0
- package/src/generators/application/files/assets/star.svg +0 -11
- package/src/generators/application/files/src/app/icons/blog.svg +0 -1
- package/src/generators/application/files/src/app/icons/book.svg +0 -1
- package/src/generators/application/files/src/app/icons/checkmark.svg +0 -1
- package/src/generators/application/files/src/app/icons/chevron-right.svg +0 -1
- package/src/generators/application/files/src/app/icons/courses.svg +0 -1
- package/src/generators/application/files/src/app/icons/github.svg +0 -1
- package/src/generators/application/files/src/app/icons/heart.svg +0 -1
- package/src/generators/application/files/src/app/icons/logo.png +0 -0
- package/src/generators/application/files/src/app/icons/nx-cloud.svg +0 -1
- package/src/generators/application/files/src/app/icons/pointer.svg +0 -1
- package/src/generators/application/files/src/app/icons/terminal.svg +0 -1
- package/src/generators/application/files/src/app/icons/vscode.svg +0 -1
- package/src/generators/application/files/src/app/icons/youtube.svg +0 -1
- package/src/generators/library/files/lib/.babelrc.template +0 -3
- package/src/generators/preset/preset.d.ts +0 -4
- package/src/generators/preset/preset.js +0 -18
- package/src/generators/preset/preset.js.map +0 -1
- package/src/generators/preset/schema.d.ts +0 -13
- package/src/generators/preset/schema.json +0 -62
- /package/src/executors/{eject → export}/compat.d.ts +0 -0
|
@@ -8,23 +8,11 @@ import {
|
|
|
8
8
|
Text,
|
|
9
9
|
StatusBar,
|
|
10
10
|
TouchableOpacity,
|
|
11
|
-
Linking
|
|
11
|
+
Linking,
|
|
12
12
|
} from 'react-native';
|
|
13
|
+
import Svg, { Path } from 'react-native-svg';
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
import Book from './icons/book.svg';
|
|
16
|
-
import ChevronRight from './icons/chevron-right.svg';
|
|
17
|
-
import Blog from './icons/blog.svg';
|
|
18
|
-
import Courses from './icons/courses.svg';
|
|
19
|
-
import YouTube from './icons/youtube.svg';
|
|
20
|
-
import Pointer from './icons/pointer.svg';
|
|
21
|
-
import VSCode from './icons/vscode.svg';
|
|
22
|
-
import NxCloud from './icons/nx-cloud.svg';
|
|
23
|
-
import GitHub from './icons/github.svg';
|
|
24
|
-
import Terminal from './icons/terminal.svg';
|
|
25
|
-
import Heart from './icons/heart.svg';
|
|
26
|
-
|
|
27
|
-
const App = () => {
|
|
15
|
+
export const App = () => {
|
|
28
16
|
const [whatsNextYCoord, setWhatsNextYCoord] = useState<number>(0);
|
|
29
17
|
const scrollViewRef = useRef<null | ScrollView>(null);
|
|
30
18
|
|
|
@@ -48,11 +36,20 @@ const App = () => {
|
|
|
48
36
|
<View style={styles.section}>
|
|
49
37
|
<View style={styles.hero}>
|
|
50
38
|
<View style={styles.heroTitle}>
|
|
51
|
-
<
|
|
39
|
+
<Svg
|
|
52
40
|
width={32}
|
|
53
41
|
height={32}
|
|
54
42
|
stroke="hsla(162, 47%, 50%, 1)"
|
|
55
|
-
|
|
43
|
+
fill="none"
|
|
44
|
+
viewBox="0 0 24 24"
|
|
45
|
+
>
|
|
46
|
+
<Path
|
|
47
|
+
strokeLinecap="round"
|
|
48
|
+
strokeLinejoin="round"
|
|
49
|
+
strokeWidth="2"
|
|
50
|
+
d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
|
|
51
|
+
/>
|
|
52
|
+
</Svg>
|
|
56
53
|
<Text style={[styles.textLg, styles.heroTitleText]}>
|
|
57
54
|
You're up and running
|
|
58
55
|
</Text>
|
|
@@ -85,65 +82,156 @@ const App = () => {
|
|
|
85
82
|
)
|
|
86
83
|
}
|
|
87
84
|
>
|
|
88
|
-
<
|
|
85
|
+
<Svg
|
|
86
|
+
width={24}
|
|
87
|
+
height={24}
|
|
88
|
+
stroke="#000000"
|
|
89
|
+
fill="none"
|
|
90
|
+
viewBox="0 0 24 24"
|
|
91
|
+
>
|
|
92
|
+
<Path
|
|
93
|
+
strokeLinecap="round"
|
|
94
|
+
strokeLinejoin="round"
|
|
95
|
+
strokeWidth="2"
|
|
96
|
+
d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"
|
|
97
|
+
/>
|
|
98
|
+
</Svg>
|
|
89
99
|
<View style={styles.listItemTextContainer}>
|
|
90
100
|
<Text style={[styles.textMd]}>Documentation</Text>
|
|
91
101
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
92
102
|
Everything is in there
|
|
93
103
|
</Text>
|
|
94
104
|
</View>
|
|
95
|
-
<
|
|
105
|
+
<Svg
|
|
106
|
+
width={18}
|
|
107
|
+
height={18}
|
|
108
|
+
stroke="#000000"
|
|
109
|
+
fill="none"
|
|
110
|
+
viewBox="0 0 24 24"
|
|
111
|
+
>
|
|
112
|
+
<Path
|
|
113
|
+
strokeLinecap="round"
|
|
114
|
+
strokeLinejoin="round"
|
|
115
|
+
strokeWidth="2"
|
|
116
|
+
d="M9 5l7 7-7 7"
|
|
117
|
+
/>
|
|
118
|
+
</Svg>
|
|
96
119
|
</TouchableOpacity>
|
|
97
120
|
<TouchableOpacity
|
|
98
121
|
style={[styles.listItem, styles.learning]}
|
|
99
122
|
onPress={() =>
|
|
100
|
-
Linking.openURL(
|
|
101
|
-
'https://blog.nrwl.io/?utm_source=nx-project'
|
|
102
|
-
)
|
|
123
|
+
Linking.openURL('https://blog.nrwl.io/?utm_source=nx-project')
|
|
103
124
|
}
|
|
104
125
|
>
|
|
105
|
-
<
|
|
126
|
+
<Svg
|
|
127
|
+
width={24}
|
|
128
|
+
height={24}
|
|
129
|
+
stroke="#000000"
|
|
130
|
+
fill="none"
|
|
131
|
+
viewBox="0 0 24 24"
|
|
132
|
+
>
|
|
133
|
+
<Path
|
|
134
|
+
strokeLinecap="round"
|
|
135
|
+
strokeLinejoin="round"
|
|
136
|
+
strokeWidth="2"
|
|
137
|
+
d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
|
|
138
|
+
/>
|
|
139
|
+
</Svg>
|
|
106
140
|
<View style={styles.listItemTextContainer}>
|
|
107
141
|
<Text style={[styles.textMd]}>Blog</Text>
|
|
108
142
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
109
143
|
Changelog, features & events
|
|
110
144
|
</Text>
|
|
111
145
|
</View>
|
|
112
|
-
<
|
|
146
|
+
<Svg
|
|
147
|
+
width={18}
|
|
148
|
+
height={18}
|
|
149
|
+
stroke="#000000"
|
|
150
|
+
fill="none"
|
|
151
|
+
viewBox="0 0 24 24"
|
|
152
|
+
>
|
|
153
|
+
<Path
|
|
154
|
+
strokeLinecap="round"
|
|
155
|
+
strokeLinejoin="round"
|
|
156
|
+
strokeWidth="2"
|
|
157
|
+
d="M9 5l7 7-7 7"
|
|
158
|
+
/>
|
|
159
|
+
</Svg>
|
|
113
160
|
</TouchableOpacity>
|
|
114
161
|
<TouchableOpacity
|
|
115
162
|
style={[styles.listItem, styles.learning]}
|
|
116
163
|
onPress={() =>
|
|
117
164
|
Linking.openURL(
|
|
118
|
-
'https://www.youtube.com/
|
|
165
|
+
'https://www.youtube.com/@NxDevtools/videos?utm_source=nx-project'
|
|
119
166
|
)
|
|
120
167
|
}
|
|
121
168
|
>
|
|
122
|
-
<
|
|
169
|
+
<Svg width={24} height={24} fill="#000000" viewBox="0 0 24 24">
|
|
170
|
+
<Path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
|
|
171
|
+
</Svg>
|
|
123
172
|
<View style={styles.listItemTextContainer}>
|
|
124
173
|
<Text style={[styles.textMd]}>Youtube channel</Text>
|
|
125
174
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
126
175
|
Nx Show, talks & tutorials
|
|
127
176
|
</Text>
|
|
128
177
|
</View>
|
|
129
|
-
<
|
|
178
|
+
<Svg
|
|
179
|
+
width={18}
|
|
180
|
+
height={18}
|
|
181
|
+
stroke="#000000"
|
|
182
|
+
fill="none"
|
|
183
|
+
viewBox="0 0 24 24"
|
|
184
|
+
>
|
|
185
|
+
<Path
|
|
186
|
+
strokeLinecap="round"
|
|
187
|
+
strokeLinejoin="round"
|
|
188
|
+
strokeWidth="2"
|
|
189
|
+
d="M9 5l7 7-7 7"
|
|
190
|
+
/>
|
|
191
|
+
</Svg>
|
|
130
192
|
</TouchableOpacity>
|
|
131
193
|
<TouchableOpacity
|
|
132
194
|
style={[styles.listItem, styles.learning]}
|
|
133
195
|
onPress={() =>
|
|
134
196
|
Linking.openURL(
|
|
135
|
-
'https://nx.dev/tutorial/
|
|
197
|
+
'https://nx.dev/react-tutorial/1-code-generation?utm_source=nx-project'
|
|
136
198
|
)
|
|
137
199
|
}
|
|
138
200
|
>
|
|
139
|
-
<
|
|
201
|
+
<Svg
|
|
202
|
+
width={24}
|
|
203
|
+
height={24}
|
|
204
|
+
stroke="#000000"
|
|
205
|
+
fill="none"
|
|
206
|
+
viewBox="0 0 24 24"
|
|
207
|
+
>
|
|
208
|
+
<Path
|
|
209
|
+
strokeLinecap="round"
|
|
210
|
+
strokeLinejoin="round"
|
|
211
|
+
strokeWidth="2"
|
|
212
|
+
d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
|
|
213
|
+
/>
|
|
214
|
+
</Svg>
|
|
140
215
|
<View style={styles.listItemTextContainer}>
|
|
141
216
|
<Text style={[styles.textMd]}>Interactive tutorials</Text>
|
|
142
217
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
143
218
|
Create an app, step by step
|
|
144
219
|
</Text>
|
|
145
220
|
</View>
|
|
146
|
-
<
|
|
221
|
+
<Svg
|
|
222
|
+
width={18}
|
|
223
|
+
height={18}
|
|
224
|
+
stroke="#000000"
|
|
225
|
+
fill="none"
|
|
226
|
+
viewBox="0 0 24 24"
|
|
227
|
+
>
|
|
228
|
+
<Path
|
|
229
|
+
strokeLinecap="round"
|
|
230
|
+
strokeLinejoin="round"
|
|
231
|
+
strokeWidth="2"
|
|
232
|
+
d="M9 5l7 7-7 7"
|
|
233
|
+
></Path>
|
|
234
|
+
</Svg>
|
|
147
235
|
</TouchableOpacity>
|
|
148
236
|
<TouchableOpacity
|
|
149
237
|
style={[styles.listItem, styles.learning]}
|
|
@@ -153,14 +241,42 @@ const App = () => {
|
|
|
153
241
|
)
|
|
154
242
|
}
|
|
155
243
|
>
|
|
156
|
-
<
|
|
244
|
+
<Svg
|
|
245
|
+
width={24}
|
|
246
|
+
height={24}
|
|
247
|
+
stroke="#000000"
|
|
248
|
+
fill="none"
|
|
249
|
+
viewBox="0 0 24 24"
|
|
250
|
+
>
|
|
251
|
+
<Path d="M12 14l9-5-9-5-9 5 9 5z"></Path>
|
|
252
|
+
<Path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"></Path>
|
|
253
|
+
<Path
|
|
254
|
+
strokeLinecap="round"
|
|
255
|
+
strokeLinejoin="round"
|
|
256
|
+
strokeWidth="2"
|
|
257
|
+
d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
|
|
258
|
+
></Path>
|
|
259
|
+
</Svg>
|
|
157
260
|
<View style={styles.listItemTextContainer}>
|
|
158
261
|
<Text style={[styles.textMd]}>Video courses</Text>
|
|
159
262
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
160
263
|
Nx custom courses
|
|
161
264
|
</Text>
|
|
162
265
|
</View>
|
|
163
|
-
<
|
|
266
|
+
<Svg
|
|
267
|
+
width={18}
|
|
268
|
+
height={18}
|
|
269
|
+
stroke="#000000"
|
|
270
|
+
fill="none"
|
|
271
|
+
viewBox="0 0 24 24"
|
|
272
|
+
>
|
|
273
|
+
<Path
|
|
274
|
+
strokeLinecap="round"
|
|
275
|
+
strokeLinejoin="round"
|
|
276
|
+
strokeWidth="2"
|
|
277
|
+
d="M9 5l7 7-7 7"
|
|
278
|
+
></Path>
|
|
279
|
+
</Svg>
|
|
164
280
|
</TouchableOpacity>
|
|
165
281
|
</View>
|
|
166
282
|
</View>
|
|
@@ -173,7 +289,14 @@ const App = () => {
|
|
|
173
289
|
}
|
|
174
290
|
>
|
|
175
291
|
<View style={[styles.listItem, styles.shadowBox]}>
|
|
176
|
-
<
|
|
292
|
+
<Svg
|
|
293
|
+
width={48}
|
|
294
|
+
height={48}
|
|
295
|
+
fill="rgba(0, 122, 204, 1)"
|
|
296
|
+
viewBox="0 0 24 24"
|
|
297
|
+
>
|
|
298
|
+
<Path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
|
|
299
|
+
</Svg>
|
|
177
300
|
<View style={styles.listItemTextContainer}>
|
|
178
301
|
<Text
|
|
179
302
|
style={[
|
|
@@ -199,7 +322,16 @@ const App = () => {
|
|
|
199
322
|
>
|
|
200
323
|
<View style={styles.shadowBox}>
|
|
201
324
|
<View style={[styles.listItem, styles.marginBottomMd]}>
|
|
202
|
-
<
|
|
325
|
+
<Svg width={48} height={48} viewBox="0 0 120 120" fill="none">
|
|
326
|
+
<Path
|
|
327
|
+
d="M120 15V30C103.44 30 90 43.44 90 60C90 76.56 76.56 90 60 90C43.44 90 30 103.44 30 120H15C6.72 120 0 113.28 0 105V15C0 6.72 6.72 0 15 0H105C113.28 0 120 6.72 120 15Z"
|
|
328
|
+
fill="#0E2039"
|
|
329
|
+
/>
|
|
330
|
+
<Path
|
|
331
|
+
d="M120 30V105C120 113.28 113.28 120 105 120H30C30 103.44 43.44 90 60 90C76.56 90 90 76.56 90 60C90 43.44 103.44 30 120 30Z"
|
|
332
|
+
fill="white"
|
|
333
|
+
/>
|
|
334
|
+
</Svg>
|
|
203
335
|
<View style={styles.listItemTextContainer}>
|
|
204
336
|
<Text
|
|
205
337
|
style={[
|
|
@@ -228,7 +360,9 @@ const App = () => {
|
|
|
228
360
|
}
|
|
229
361
|
>
|
|
230
362
|
<View style={[styles.listItem, styles.shadowBox]}>
|
|
231
|
-
<
|
|
363
|
+
<Svg width={48} height={48} fill="#000000" viewBox="0 0 24 24">
|
|
364
|
+
<Path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
|
|
365
|
+
</Svg>
|
|
232
366
|
<View style={styles.listItemTextContainer}>
|
|
233
367
|
<Text
|
|
234
368
|
style={[
|
|
@@ -263,7 +397,20 @@ const App = () => {
|
|
|
263
397
|
Here are some things you can do with Nx:
|
|
264
398
|
</Text>
|
|
265
399
|
<View style={styles.listItem}>
|
|
266
|
-
<
|
|
400
|
+
<Svg
|
|
401
|
+
width={24}
|
|
402
|
+
height={24}
|
|
403
|
+
stroke="#000000"
|
|
404
|
+
fill="none"
|
|
405
|
+
viewBox="0 0 24 24"
|
|
406
|
+
>
|
|
407
|
+
<Path
|
|
408
|
+
strokeLinecap="round"
|
|
409
|
+
strokeLinejoin="round"
|
|
410
|
+
strokeWidth="2"
|
|
411
|
+
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
412
|
+
/>
|
|
413
|
+
</Svg>
|
|
267
414
|
<View style={styles.listItemTextContainer}>
|
|
268
415
|
<Text style={styles.textSm}>Add UI library</Text>
|
|
269
416
|
</View>
|
|
@@ -293,20 +440,46 @@ const App = () => {
|
|
|
293
440
|
</Text>
|
|
294
441
|
</View>
|
|
295
442
|
<View style={styles.listItem}>
|
|
296
|
-
<
|
|
443
|
+
<Svg
|
|
444
|
+
width={24}
|
|
445
|
+
height={24}
|
|
446
|
+
stroke="#000000"
|
|
447
|
+
fill="none"
|
|
448
|
+
viewBox="0 0 24 24"
|
|
449
|
+
>
|
|
450
|
+
<Path
|
|
451
|
+
strokeLinecap="round"
|
|
452
|
+
strokeLinejoin="round"
|
|
453
|
+
strokeWidth="2"
|
|
454
|
+
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
455
|
+
/>
|
|
456
|
+
</Svg>
|
|
297
457
|
<View style={styles.listItemTextContainer}>
|
|
298
458
|
<Text style={styles.textSm}>
|
|
299
|
-
View interactive
|
|
459
|
+
View interactive project graph
|
|
300
460
|
</Text>
|
|
301
461
|
</View>
|
|
302
462
|
</View>
|
|
303
463
|
<View style={[styles.codeBlock, styles.marginBottomLg]}>
|
|
304
464
|
<Text style={[styles.textXS, styles.monospace]}>
|
|
305
|
-
nx
|
|
465
|
+
nx graph
|
|
306
466
|
</Text>
|
|
307
467
|
</View>
|
|
308
468
|
<View style={styles.listItem}>
|
|
309
|
-
<
|
|
469
|
+
<Svg
|
|
470
|
+
width={24}
|
|
471
|
+
height={24}
|
|
472
|
+
stroke="#000000"
|
|
473
|
+
fill="none"
|
|
474
|
+
viewBox="0 0 24 24"
|
|
475
|
+
>
|
|
476
|
+
<Path
|
|
477
|
+
strokeLinecap="round"
|
|
478
|
+
strokeLinejoin="round"
|
|
479
|
+
strokeWidth="2"
|
|
480
|
+
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
481
|
+
/>
|
|
482
|
+
</Svg>
|
|
310
483
|
<View style={styles.listItemTextContainer}>
|
|
311
484
|
<Text style={styles.textSm}>Run affected commands</Text>
|
|
312
485
|
</View>
|
|
@@ -349,7 +522,20 @@ const App = () => {
|
|
|
349
522
|
</View>
|
|
350
523
|
<View style={[styles.listItem, styles.love]}>
|
|
351
524
|
<Text style={styles.textSubtle}>Carefully crafted with </Text>
|
|
352
|
-
<
|
|
525
|
+
<Svg
|
|
526
|
+
width={24}
|
|
527
|
+
height={24}
|
|
528
|
+
fill="rgba(252, 165, 165, 1)"
|
|
529
|
+
stroke="none"
|
|
530
|
+
viewBox="0 0 24 24"
|
|
531
|
+
>
|
|
532
|
+
<Path
|
|
533
|
+
strokeLinecap="round"
|
|
534
|
+
strokeLinejoin="round"
|
|
535
|
+
strokeWidth="2"
|
|
536
|
+
d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
|
|
537
|
+
/>
|
|
538
|
+
</Svg>
|
|
353
539
|
</View>
|
|
354
540
|
</View>
|
|
355
541
|
</ScrollView>
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
"jsx": "react-native",
|
|
6
6
|
"lib": ["dom", "esnext"],
|
|
7
7
|
"moduleResolution": "node",
|
|
8
|
-
"noEmit": true,
|
|
9
8
|
"skipLibCheck": true,
|
|
10
9
|
"resolveJsonModule": true,
|
|
11
|
-
"strict": true
|
|
10
|
+
"strict": true,
|
|
11
|
+
"composite": true,
|
|
12
|
+
"declaration": true
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
14
15
|
"../../node_modules/@nrwl/expo/typings/svg.d.ts"
|
|
@@ -9,7 +9,7 @@ function addDetox(host, options) {
|
|
|
9
9
|
if ((options === null || options === void 0 ? void 0 : options.e2eTestRunner) !== 'detox') {
|
|
10
10
|
return () => { };
|
|
11
11
|
}
|
|
12
|
-
return (0, detox_1.detoxApplicationGenerator)(host, Object.assign(Object.assign({}, options), { linter: linter_1.Linter.EsLint,
|
|
12
|
+
return (0, detox_1.detoxApplicationGenerator)(host, Object.assign(Object.assign({}, options), { linter: linter_1.Linter.EsLint, e2eName: `${options.name}-e2e`, e2eDirectory: options.directory, appProject: options.projectName, appDisplayName: options.displayName, appName: options.name, framework: 'expo', setParserOptionsProject: options.setParserOptionsProject }));
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
exports.addDetox = addDetox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-detox.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-detox.ts"],"names":[],"mappings":";;;;AAAA,uCAAwD;AAGxD,yCAAsC;AAEtC,SAAsB,QAAQ,CAAC,IAAU,EAAE,OAAyB;;QAClE,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,MAAK,OAAO,EAAE;YACtC,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;SACjB;QAED,OAAO,IAAA,iCAAyB,EAAC,IAAI,kCAChC,OAAO,KACV,MAAM,EAAE,eAAM,CAAC,MAAM,EACrB,
|
|
1
|
+
{"version":3,"file":"add-detox.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-detox.ts"],"names":[],"mappings":";;;;AAAA,uCAAwD;AAGxD,yCAAsC;AAEtC,SAAsB,QAAQ,CAAC,IAAU,EAAE,OAAyB;;QAClE,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,MAAK,OAAO,EAAE;YACtC,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;SACjB;QAED,OAAO,IAAA,iCAAyB,EAAC,IAAI,kCAChC,OAAO,KACV,MAAM,EAAE,eAAM,CAAC,MAAM,EACrB,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,MAAM,EAC9B,YAAY,EAAE,OAAO,CAAC,SAAS,EAC/B,UAAU,EAAE,OAAO,CAAC,WAAW,EAC/B,cAAc,EAAE,OAAO,CAAC,WAAW,EACnC,OAAO,EAAE,OAAO,CAAC,IAAI,EACrB,SAAS,EAAE,MAAM,EACjB,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,IACxD,CAAC;IACL,CAAC;CAAA;AAhBD,4BAgBC"}
|
|
@@ -3,19 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addProject = void 0;
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
5
|
function addProject(host, options) {
|
|
6
|
-
const
|
|
6
|
+
const projectConfiguration = {
|
|
7
7
|
root: options.appProjectRoot,
|
|
8
8
|
sourceRoot: `${options.appProjectRoot}/src`,
|
|
9
9
|
projectType: 'application',
|
|
10
10
|
targets: Object.assign({}, getTargets(options)),
|
|
11
11
|
tags: options.parsedTags,
|
|
12
12
|
};
|
|
13
|
-
(0, devkit_1.addProjectConfiguration)(host, options.projectName,
|
|
14
|
-
const workspace = (0, devkit_1.readWorkspaceConfiguration)(host);
|
|
15
|
-
if (!workspace.defaultProject) {
|
|
16
|
-
workspace.defaultProject = options.projectName;
|
|
17
|
-
(0, devkit_1.updateWorkspaceConfiguration)(host, workspace);
|
|
18
|
-
}
|
|
13
|
+
(0, devkit_1.addProjectConfiguration)(host, options.projectName, projectConfiguration, options.standaloneConfig);
|
|
19
14
|
}
|
|
20
15
|
exports.addProject = addProject;
|
|
21
16
|
function getTargets(options) {
|
|
@@ -26,15 +21,8 @@ function getTargets(options) {
|
|
|
26
21
|
port: 8081,
|
|
27
22
|
},
|
|
28
23
|
};
|
|
29
|
-
architect.web = {
|
|
30
|
-
executor: '@nrwl/expo:start',
|
|
31
|
-
options: {
|
|
32
|
-
port: 8081,
|
|
33
|
-
webpack: true,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
24
|
architect.serve = {
|
|
37
|
-
executor: '
|
|
25
|
+
executor: 'nx:run-commands',
|
|
38
26
|
options: {
|
|
39
27
|
command: `nx start ${options.name}`,
|
|
40
28
|
},
|
|
@@ -65,18 +53,22 @@ function getTargets(options) {
|
|
|
65
53
|
output: `${options.appProjectRoot}/dist`,
|
|
66
54
|
},
|
|
67
55
|
};
|
|
56
|
+
// @deprecated, no longer supported in @expo/cli
|
|
68
57
|
architect['build-ios'] = {
|
|
69
58
|
executor: '@nrwl/expo:build-ios',
|
|
70
59
|
options: {},
|
|
71
60
|
};
|
|
61
|
+
// @deprecated, no longer supported in @expo/cli
|
|
72
62
|
architect['build-android'] = {
|
|
73
63
|
executor: '@nrwl/expo:build-android',
|
|
74
64
|
options: {},
|
|
75
65
|
};
|
|
66
|
+
// @deprecated, no longer supported in @expo/cli
|
|
76
67
|
architect['build-web'] = {
|
|
77
68
|
executor: '@nrwl/expo:build-web',
|
|
78
69
|
options: {},
|
|
79
70
|
};
|
|
71
|
+
// @deprecated, no longer supported in @expo/cli
|
|
80
72
|
architect['build-status'] = {
|
|
81
73
|
executor: '@nrwl/expo:build-web',
|
|
82
74
|
options: {},
|
|
@@ -89,22 +81,53 @@ function getTargets(options) {
|
|
|
89
81
|
executor: '@nrwl/expo:ensure-symlink',
|
|
90
82
|
options: {},
|
|
91
83
|
};
|
|
84
|
+
// @deprecated, no longer supported in @expo/cli
|
|
92
85
|
architect['publish'] = {
|
|
93
86
|
executor: '@nrwl/expo:publish',
|
|
94
87
|
options: {},
|
|
95
88
|
};
|
|
89
|
+
// @deprecated, no longer supported in @expo/cli
|
|
96
90
|
architect['publish-set'] = {
|
|
97
91
|
executor: '@nrwl/expo:publish-set',
|
|
98
92
|
options: {},
|
|
99
93
|
};
|
|
94
|
+
// @deprecated, no longer supported in @expo/cli
|
|
100
95
|
architect['rollback'] = {
|
|
101
96
|
executor: '@nrwl/expo:rollback',
|
|
102
97
|
options: {},
|
|
103
98
|
};
|
|
99
|
+
architect['prebuild'] = {
|
|
100
|
+
executor: '@nrwl/expo:prebuild',
|
|
101
|
+
options: {},
|
|
102
|
+
};
|
|
103
|
+
// @deprecated, no longer supported in @expo/cli
|
|
104
104
|
architect['eject'] = {
|
|
105
|
-
executor: '
|
|
105
|
+
executor: 'nx:run-commands',
|
|
106
|
+
options: {
|
|
107
|
+
command: `nx prebuild ${options.name}`,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
architect['install'] = {
|
|
111
|
+
executor: '@nrwl/expo:install',
|
|
112
|
+
options: {},
|
|
113
|
+
};
|
|
114
|
+
architect['update'] = {
|
|
115
|
+
executor: '@nrwl/expo:update',
|
|
106
116
|
options: {},
|
|
107
117
|
};
|
|
118
|
+
architect['export'] = {
|
|
119
|
+
executor: '@nrwl/expo:export',
|
|
120
|
+
options: {
|
|
121
|
+
platform: 'all',
|
|
122
|
+
outputDir: `${(0, devkit_1.offsetFromRoot)(options.appProjectRoot)}dist/${options.appProjectRoot}`,
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
architect['export-web'] = {
|
|
126
|
+
executor: '@nrwl/expo:export',
|
|
127
|
+
options: {
|
|
128
|
+
bundler: 'webpack',
|
|
129
|
+
},
|
|
130
|
+
};
|
|
108
131
|
return architect;
|
|
109
132
|
}
|
|
110
133
|
//# sourceMappingURL=add-project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Tree } from '@nrwl/devkit';
|
|
1
2
|
import { Schema } from '../schema';
|
|
2
3
|
export interface NormalizedSchema extends Schema {
|
|
3
4
|
className: string;
|
|
@@ -6,4 +7,4 @@ export interface NormalizedSchema extends Schema {
|
|
|
6
7
|
lowerCaseName: string;
|
|
7
8
|
parsedTags: string[];
|
|
8
9
|
}
|
|
9
|
-
export declare function normalizeOptions(options: Schema): NormalizedSchema;
|
|
10
|
+
export declare function normalizeOptions(host: Tree, options: Schema): NormalizedSchema;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = void 0;
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
function normalizeOptions(host, options) {
|
|
6
7
|
const { fileName, className } = (0, devkit_1.names)(options.name);
|
|
8
|
+
const { appsDir } = (0, devkit_1.getWorkspaceLayout)(host);
|
|
7
9
|
const directoryName = options.directory
|
|
8
10
|
? (0, devkit_1.names)(options.directory).fileName
|
|
9
11
|
: '';
|
|
@@ -11,7 +13,7 @@ function normalizeOptions(options) {
|
|
|
11
13
|
? `${directoryName}/${fileName}`
|
|
12
14
|
: fileName;
|
|
13
15
|
const appProjectName = projectDirectory.replace(new RegExp('/', 'g'), '-');
|
|
14
|
-
const appProjectRoot =
|
|
16
|
+
const appProjectRoot = (0, path_1.join)(appsDir, projectDirectory);
|
|
15
17
|
const parsedTags = options.tags
|
|
16
18
|
? options.tags.split(',').map((s) => s.trim())
|
|
17
19
|
: [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,yCAA+D;AAC/D,+BAA4B;AAW5B,SAAgB,gBAAgB,CAC9B,IAAU,EACV,OAAe;IAEf,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAE7C,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS;QACrC,CAAC,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ;QACnC,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,gBAAgB,GAAG,aAAa;QACpC,CAAC,CAAC,GAAG,aAAa,IAAI,QAAQ,EAAE;QAChC,CAAC,CAAC,QAAQ,CAAC;IAEb,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAE3E,MAAM,cAAc,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;IAEvD,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI;QAC7B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC9C,CAAC,CAAC,EAAE,CAAC;IAEP;;;;;OAKG;IACH,uCACK,OAAO,KACV,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,MAAM,EAChD,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,OAAO,EAC/C,IAAI,EAAE,QAAQ,EACd,SAAS,EACT,aAAa,EAAE,SAAS,CAAC,WAAW,EAAE,EACtC,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,SAAS,EAC7C,WAAW,EAAE,cAAc,EAC3B,cAAc;QACd,UAAU,IACV;AACJ,CAAC;AAxCD,4CAwCC"}
|