@tamagui/cli 1.74.4 → 1.74.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.
Files changed (59) hide show
  1. package/dist/cli.js +0 -15
  2. package/dist/cli.js.map +1 -1
  3. package/dist/cli.native.js +0 -15
  4. package/dist/cli.native.js.map +1 -1
  5. package/dist/dev.js +3 -3
  6. package/dist/dev.js.map +1 -1
  7. package/dist/dev.native.js +3 -3
  8. package/dist/dev.native.js.map +1 -1
  9. package/package.json +10 -39
  10. package/src/cli.ts +0 -18
  11. package/types/dev.d.ts.map +1 -1
  12. package/src/dev/clientInjectPlugin.ts +0 -112
  13. package/src/dev/createDevServer.ts +0 -250
  14. package/src/dev/types.ts +0 -1
  15. package/src/dev.ts +0 -520
  16. package/src/test.ts +0 -12
  17. package/src/utils/constants.ts +0 -1
  18. package/src/vendor/debugger-app/index.d.ts +0 -2
  19. package/src/vendor/debugger-app/index.js +0 -3
  20. package/src/vendor/debugger-app/public/index.html +0 -49
  21. package/src/vendor/debugger-app/src/assets/blue-icon.png +0 -0
  22. package/src/vendor/debugger-app/src/assets/gray-icon.png +0 -0
  23. package/src/vendor/debugger-app/src/assets/orange-icon.png +0 -0
  24. package/src/vendor/debugger-app/src/debuggerWorker.js +0 -84
  25. package/src/vendor/debugger-app/src/index.css +0 -37
  26. package/src/vendor/debugger-app/src/index.js +0 -199
  27. package/src/vendor/debugger-app/webpack.config.cjs +0 -73
  28. package/src/vendor/repack/dev-server/src/createServer.ts +0 -155
  29. package/src/vendor/repack/dev-server/src/img/favicon.ico +0 -0
  30. package/src/vendor/repack/dev-server/src/index.ts +0 -2
  31. package/src/vendor/repack/dev-server/src/plugins/api/apiPlugin.ts +0 -50
  32. package/src/vendor/repack/dev-server/src/plugins/api/index.ts +0 -1
  33. package/src/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.ts +0 -84
  34. package/src/vendor/repack/dev-server/src/plugins/compiler/index.ts +0 -2
  35. package/src/vendor/repack/dev-server/src/plugins/compiler/types.ts +0 -37
  36. package/src/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.ts +0 -107
  37. package/src/vendor/repack/dev-server/src/plugins/devtools/index.ts +0 -1
  38. package/src/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.ts +0 -14
  39. package/src/vendor/repack/dev-server/src/plugins/favicon/index.ts +0 -1
  40. package/src/vendor/repack/dev-server/src/plugins/multipart/index.ts +0 -2
  41. package/src/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.ts +0 -77
  42. package/src/vendor/repack/dev-server/src/plugins/multipart/types.ts +0 -13
  43. package/src/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.ts +0 -233
  44. package/src/vendor/repack/dev-server/src/plugins/symbolicate/index.ts +0 -3
  45. package/src/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.ts +0 -48
  46. package/src/vendor/repack/dev-server/src/plugins/symbolicate/types.ts +0 -71
  47. package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.ts +0 -74
  48. package/src/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.ts +0 -60
  49. package/src/vendor/repack/dev-server/src/plugins/wss/index.ts +0 -3
  50. package/src/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.ts +0 -158
  51. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.ts +0 -69
  52. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.ts +0 -134
  53. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.ts +0 -74
  54. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.ts +0 -205
  55. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.ts +0 -97
  56. package/src/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.ts +0 -401
  57. package/src/vendor/repack/dev-server/src/plugins/wss/types.ts +0 -17
  58. package/src/vendor/repack/dev-server/src/plugins/wss/wssPlugin.ts +0 -73
  59. package/src/vendor/repack/dev-server/src/types.ts +0 -206
@@ -1,206 +0,0 @@
1
- import { FastifyLoggerInstance } from 'fastify'
2
-
3
- import type { CompilerDelegate } from './plugins/compiler'
4
- import type { SymbolicatorDelegate } from './plugins/symbolicate'
5
- import type { HmrDelegate } from './plugins/wss'
6
-
7
- export type { CompilerDelegate } from './plugins/compiler'
8
- export type {
9
- SymbolicatorDelegate,
10
- ReactNativeStackFrame,
11
- InputStackFrame,
12
- StackFrame,
13
- CodeFrame,
14
- SymbolicatorResults,
15
- } from './plugins/symbolicate'
16
- export type { HmrDelegate } from './plugins/wss'
17
-
18
- export namespace Server {
19
- /** Development server configuration. */
20
- export interface Config {
21
- /** Development server options to configure e.g: `port`, `host` etc. */
22
- options: Options
23
-
24
- /** Function to create a delegate, which implements crucial functionalities. */
25
- delegate: (context: DelegateContext) => Delegate
26
- }
27
-
28
- /** Development server options. */
29
- export interface Options {
30
- /** Root directory of the project. */
31
- rootDir: string
32
-
33
- /** Port under which to run the development server. */
34
- port: number
35
-
36
- /**
37
- * Hostname or IP address under which to run the development server.
38
- * When left unspecified, it will listen on all available network interfaces, similarly to listening on '0.0.0.0'.
39
- */
40
- host?: string
41
-
42
- /** Options for running the server as HTTPS. If `undefined`, the server will run as HTTP. */
43
- https?: {
44
- /** Path to certificate when running server as HTTPS. */
45
- cert?: string
46
-
47
- /** Path to certificate key when running server as HTTPS. */
48
- key?: string
49
- }
50
- }
51
-
52
- /**
53
- * A complete delegate with implementations for all server functionalities.
54
- */
55
- export interface Delegate {
56
- hotFiles: {
57
- getSource: (path: string) => string
58
- }
59
-
60
- /** A compiler delegate. */
61
- compiler: CompilerDelegate
62
-
63
- /** A symbolicator delegate. */
64
- symbolicator: SymbolicatorDelegate
65
-
66
- /** A logger delegate. */
67
- logger: LoggerDelegate
68
-
69
- /** An HMR delegate. */
70
- hmr: HmrDelegate
71
-
72
- /** An messages delegate. */
73
- messages: MessagesDelegate
74
-
75
- /** An API delegate. */
76
- api?: Api.Delegate
77
- }
78
-
79
- /**
80
- * A delegate context used in `delegate` builder in {@link Config}.
81
- *
82
- * Allows to emit logs, notify about compilation events and broadcast events to connected clients.
83
- */
84
- export interface DelegateContext {
85
- /** A logger instance, useful for emitting logs from the delegate. */
86
- log: FastifyLoggerInstance
87
-
88
- /** Send notification about compilation start for given `platform`. */
89
- notifyBuildStart: (platform: string) => void
90
-
91
- /** Send notification about compilation end for given `platform`. */
92
- notifyBuildEnd: (platform: string) => void
93
-
94
- /**
95
- * Broadcast arbitrary event to all connected HMR clients for given `platform`.
96
- *
97
- * @param event Arbitrary event to broadcast.
98
- * @param platform Platform of the clients to which broadcast should be sent.
99
- * @param clientIds Ids of the client to which broadcast should be sent.
100
- * If `undefined` the broadcast will be sent to all connected clients for the given `platform`.
101
- */
102
- broadcastToHmrClients: <E = any>(
103
- event: E,
104
- platform: string,
105
- clientIds?: string[]
106
- ) => void
107
-
108
- /**
109
- * Broadcast arbitrary method-like event to all connected message clients.
110
- *
111
- * @param event Arbitrary method-like event to broadcast.
112
- */
113
- broadcastToMessageClients: <
114
- E extends { method: string; params?: Record<string, any> }
115
- >(
116
- event: E
117
- ) => void
118
- }
119
-
120
- /**
121
- * Delegate with implementation for logging functions.
122
- */
123
- export interface LoggerDelegate {
124
- /**
125
- * Callback for when a new log is emitted.
126
- *
127
- * @param log An object with log data.
128
- */
129
- onMessage: (log: any) => void
130
- }
131
-
132
- /**
133
- * Delegate with implementation for messages used in route handlers.
134
- */
135
- export interface MessagesDelegate {
136
- /** Get message to send as a reply for `GET /` route. */
137
- getHello: () => Object
138
-
139
- /** Get message to send as a reply for `GET /status` route. */
140
- getStatus: () => string
141
- }
142
-
143
- export namespace Api {
144
- /** A compilation asset representation for API clients. */
145
- export interface Asset {
146
- name: string
147
- size: number
148
- [key: string]: any
149
- }
150
-
151
- /** A compilation stats representation for API clients. */
152
- export interface CompilationStats {
153
- [key: string]: any
154
- }
155
-
156
- /**
157
- * Delegate with implementation for API endpoints.
158
- */
159
- export interface Delegate {
160
- /** Get all platforms - either with already existing compilations or all supported platforms. */
161
- getPlatforms: () => Promise<string[]>
162
-
163
- /**
164
- * Get all assets from compilation for given platform.
165
- * Should return `[]` if the compilation does not exists for given platform.
166
- */
167
- getAssets: (platform: string) => Promise<Asset[]>
168
-
169
- /**
170
- * Get compilation stats for a given platform.
171
- * Should return `null` if the compilation does not exists for given platform.
172
- */
173
- getCompilationStats: (platform: string) => Promise<CompilationStats | null>
174
- }
175
- }
176
- }
177
-
178
- /** Representation of the compilation progress. */
179
- export interface ProgressData {
180
- /** Number of modules built. */
181
- completed: number
182
-
183
- /** Total number of modules detect as part of compilation. */
184
- total: number
185
- }
186
-
187
- /**
188
- * Type representing a function to send the progress.
189
- *
190
- * Used by {@link CompilerDelegate} in `getAsset` function to send the compilation
191
- * progress to the client who requested the asset.
192
- */
193
- export type SendProgress = (data: ProgressData) => void
194
-
195
- /**
196
- * Internal types. Do not use.
197
- *
198
- * @internal
199
- */
200
- export namespace Internal {
201
- export enum EventTypes {
202
- BuildStart = 'BuildStart',
203
- BuildEnd = 'BuildEnd',
204
- HmrEvent = 'HmrEvent',
205
- }
206
- }