acode-plugin-types 1.11.7-patch.1

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 (79) hide show
  1. package/README.md +8 -0
  2. package/index.d.ts +91 -0
  3. package/package.json +26 -0
  4. package/src/ace/index.d.ts +1 -0
  5. package/src/ace/modelist.d.ts +22 -0
  6. package/src/acode.d.ts +437 -0
  7. package/src/components/collapsibleList.d.ts +11 -0
  8. package/src/components/contextMenu.d.ts +66 -0
  9. package/src/components/index.d.ts +10 -0
  10. package/src/components/inputhints.d.ts +45 -0
  11. package/src/components/page.d.ts +22 -0
  12. package/src/components/palette.d.ts +21 -0
  13. package/src/components/sideButton.d.ts +35 -0
  14. package/src/components/terminal/index.d.ts +1 -0
  15. package/src/components/terminal/terminalManager.d.ts +113 -0
  16. package/src/components/toast.d.ts +20 -0
  17. package/src/components/tutorial.d.ts +13 -0
  18. package/src/components/webComponents/index.d.ts +1 -0
  19. package/src/components/webComponents/wcPage.d.ts +85 -0
  20. package/src/dialogs/alert.d.ts +15 -0
  21. package/src/dialogs/box.d.ts +45 -0
  22. package/src/dialogs/color.d.ts +15 -0
  23. package/src/dialogs/confirm.d.ts +16 -0
  24. package/src/dialogs/index.d.ts +8 -0
  25. package/src/dialogs/loader.d.ts +44 -0
  26. package/src/dialogs/multiPrompt.d.ts +16 -0
  27. package/src/dialogs/prompt.d.ts +47 -0
  28. package/src/dialogs/select.d.ts +66 -0
  29. package/src/fileSystem.d.ts +113 -0
  30. package/src/handlers/index.d.ts +3 -0
  31. package/src/handlers/intent.d.ts +47 -0
  32. package/src/handlers/keyboard.d.ts +30 -0
  33. package/src/handlers/windowResize.d.ts +13 -0
  34. package/src/index.d.ts +12 -0
  35. package/src/lib/actionStack.d.ts +60 -0
  36. package/src/lib/editorFile.d.ts +344 -0
  37. package/src/lib/editorManager.d.ts +127 -0
  38. package/src/lib/fileList.d.ts +70 -0
  39. package/src/lib/fonts.d.ts +29 -0
  40. package/src/lib/index.d.ts +9 -0
  41. package/src/lib/openFolder.d.ts +102 -0
  42. package/src/lib/projects.d.ts +28 -0
  43. package/src/lib/selectionMenu.d.ts +19 -0
  44. package/src/lib/settings.d.ts +155 -0
  45. package/src/pages/fileBrowser/fileBrowser.d.ts +65 -0
  46. package/src/pages/fileBrowser/index.d.ts +1 -0
  47. package/src/pages/index.d.ts +1 -0
  48. package/src/plugins/customtabs/CustomTabs.d.ts +57 -0
  49. package/src/plugins/customtabs/index.d.ts +1 -0
  50. package/src/plugins/index.d.ts +4 -0
  51. package/src/plugins/system/System.d.ts +550 -0
  52. package/src/plugins/system/index.d.ts +1 -0
  53. package/src/plugins/terminal/Executor.d.ts +155 -0
  54. package/src/plugins/terminal/Terminal.d.ts +123 -0
  55. package/src/plugins/terminal/index.d.ts +2 -0
  56. package/src/plugins/websocket/WebSocket.d.ts +224 -0
  57. package/src/plugins/websocket/index.d.ts +1 -0
  58. package/src/sideBarApps.d.ts +39 -0
  59. package/src/test.ts +517 -0
  60. package/src/theme/builder.d.ts +188 -0
  61. package/src/theme/index.d.ts +2 -0
  62. package/src/theme/list.d.ts +29 -0
  63. package/src/utils/KeyboardEvent.d.ts +19 -0
  64. package/src/utils/Url.d.ts +65 -0
  65. package/src/utils/color.d.ts +51 -0
  66. package/src/utils/encodings.d.ts +24 -0
  67. package/src/utils/helpers.d.ts +102 -0
  68. package/src/utils/index.d.ts +5 -0
  69. package/types/ace/VERSION +1 -0
  70. package/types/ace/ace-modes.d.ts +1724 -0
  71. package/types/ace/index.d.ts +1176 -0
  72. package/types/ace/types/ace-ext.d.ts +720 -0
  73. package/types/ace/types/ace-lib.d.ts +302 -0
  74. package/types/ace/types/ace-modules.d.ts +5293 -0
  75. package/types/ace/types/ace-snippets.d.ts +406 -0
  76. package/types/ace/types/ace-theme.d.ts +437 -0
  77. package/types/html-tag-js.d.ts +680 -0
  78. package/types/require.d.ts +412 -0
  79. package/types/xterm.d.ts +1908 -0
@@ -0,0 +1,412 @@
1
+ /*
2
+ require-2.1.8.d.ts may be freely distributed under the MIT license.
3
+
4
+ Copyright (c) 2013 Josh Baldwin https://github.com/jbaldwin/require.d.ts
5
+
6
+ Permission is hereby granted, free of charge, to any person
7
+ obtaining a copy of this software and associated documentation
8
+ files (the "Software"), to deal in the Software without
9
+ restriction, including without limitation the rights to use,
10
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the
12
+ Software is furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
25
+ */
26
+
27
+ declare module "module" {
28
+ let mod: {
29
+ config: () => any;
30
+ id: string;
31
+ uri: string;
32
+ };
33
+ export = mod;
34
+ }
35
+
36
+ interface RequireError extends Error {
37
+ /**
38
+ * The error ID that maps to an ID on a web page.
39
+ */
40
+ requireType: string;
41
+
42
+ /**
43
+ * Required modules.
44
+ */
45
+ requireModules: string[] | null;
46
+
47
+ /**
48
+ * The original error, if there is one (might be null).
49
+ */
50
+ originalError: Error;
51
+ }
52
+
53
+ interface RequireShim {
54
+ /**
55
+ * List of dependencies.
56
+ */
57
+ deps?: string[] | undefined;
58
+
59
+ /**
60
+ * Name the module will be exported as.
61
+ */
62
+ exports?: string | undefined;
63
+
64
+ /**
65
+ * Initialize function with all dependcies passed in,
66
+ * if the function returns a value then that value is used
67
+ * as the module export value instead of the object
68
+ * found via the 'exports' string.
69
+ * @param dependencies
70
+ * @return
71
+ */
72
+ init?: ((...dependencies: any[]) => any) | undefined;
73
+ }
74
+
75
+ interface RequireConfig {
76
+ /**
77
+ * The root path to use for all module lookups.
78
+ */
79
+ baseUrl?: string | undefined;
80
+
81
+ /**
82
+ * Path mappings for module names not found directly under
83
+ * baseUrl.
84
+ */
85
+ paths?: { [key: string]: any } | undefined;
86
+
87
+ /**
88
+ * Dictionary of Shim's.
89
+ * Can be of type RequireShim or string[] of dependencies
90
+ */
91
+ shim?: { [key: string]: RequireShim | string[] } | undefined;
92
+
93
+ /**
94
+ * For the given module prefix, instead of loading the
95
+ * module with the given ID, substitude a different
96
+ * module ID.
97
+ *
98
+ * @example
99
+ * requirejs.config({
100
+ * map: {
101
+ * 'some/newmodule': {
102
+ * 'foo': 'foo1.2'
103
+ * },
104
+ * 'some/oldmodule': {
105
+ * 'foo': 'foo1.0'
106
+ * }
107
+ * }
108
+ * });
109
+ */
110
+ map?:
111
+ | {
112
+ [id: string]: {
113
+ [id: string]: string;
114
+ };
115
+ }
116
+ | undefined;
117
+
118
+ /**
119
+ * Allows pointing multiple module IDs to a module ID that contains a bundle of modules.
120
+ *
121
+ * @example
122
+ * requirejs.config({
123
+ * bundles: {
124
+ * 'primary': ['main', 'util', 'text', 'text!template.html'],
125
+ * 'secondary': ['text!secondary.html']
126
+ * }
127
+ * });
128
+ */
129
+ bundles?: { [key: string]: string[] } | undefined;
130
+
131
+ /**
132
+ * AMD configurations, use module.config() to access in
133
+ * define() functions
134
+ */
135
+ config?: { [id: string]: {} } | undefined;
136
+
137
+ /**
138
+ * Configures loading modules from CommonJS packages.
139
+ */
140
+ packages?: {} | undefined;
141
+
142
+ /**
143
+ * The number of seconds to wait before giving up on loading
144
+ * a script. The default is 7 seconds.
145
+ */
146
+ waitSeconds?: number | undefined;
147
+
148
+ /**
149
+ * A name to give to a loading context. This allows require.js
150
+ * to load multiple versions of modules in a page, as long as
151
+ * each top-level require call specifies a unique context string.
152
+ */
153
+ context?: string | undefined;
154
+
155
+ /**
156
+ * An array of dependencies to load.
157
+ */
158
+ deps?: string[] | undefined;
159
+
160
+ /**
161
+ * A function to pass to require that should be require after
162
+ * deps have been loaded.
163
+ * @param modules
164
+ */
165
+ callback?: ((...modules: any[]) => void) | undefined;
166
+
167
+ /**
168
+ * If set to true, an error will be thrown if a script loads
169
+ * that does not call define() or have shim exports string
170
+ * value that can be checked.
171
+ */
172
+ enforceDefine?: boolean | undefined;
173
+
174
+ /**
175
+ * If set to true, document.createElementNS() will be used
176
+ * to create script elements.
177
+ */
178
+ xhtml?: boolean | undefined;
179
+
180
+ /**
181
+ * Extra query string arguments appended to URLs that RequireJS
182
+ * uses to fetch resources. Most useful to cache bust when
183
+ * the browser or server is not configured correctly.
184
+ *
185
+ * As of RequireJS 2.2.0, urlArgs can be a function. If a
186
+ * function, it will receive the module ID and the URL as
187
+ * parameters, and it should return a string that will be added
188
+ * to the end of the URL. Return an empty string if no args.
189
+ * Be sure to take care of adding the '?' or '&' depending on
190
+ * the existing state of the URL.
191
+ *
192
+ * @example
193
+ *
194
+ * urlArgs: "bust=" + (new Date()).getTime()
195
+ *
196
+ * @example
197
+ *
198
+ * requirejs.config({
199
+ * urlArgs: function(id, url) {
200
+ * var args = 'v=1';
201
+ * if (url.indexOf('view.html') !== -1) {
202
+ * args = 'v=2'
203
+ * }
204
+ *
205
+ * return (url.indexOf('?') === -1 ? '?' : '&') + args;
206
+ * }
207
+ * });
208
+ */
209
+ urlArgs?: string | ((id: string, url: string) => string) | undefined;
210
+
211
+ /**
212
+ * Specify the value for the type="" attribute used for script
213
+ * tags inserted into the document by RequireJS. Default is
214
+ * "text/javascript". To use Firefox's JavasScript 1.8
215
+ * features, use "text/javascript;version=1.8".
216
+ */
217
+ scriptType?: string | undefined;
218
+
219
+ /**
220
+ * If set to true, skips the data-main attribute scanning done
221
+ * to start module loading. Useful if RequireJS is embedded in
222
+ * a utility library that may interact with other RequireJS
223
+ * library on the page, and the embedded version should not do
224
+ * data-main loading.
225
+ */
226
+ skipDataMain?: boolean | undefined;
227
+
228
+ /**
229
+ * Allow extending requirejs to support Subresource Integrity
230
+ * (SRI).
231
+ */
232
+ onNodeCreated?:
233
+ | ((
234
+ node: HTMLScriptElement,
235
+ config: RequireConfig,
236
+ moduleName: string,
237
+ url: string,
238
+ ) => void)
239
+ | undefined;
240
+ }
241
+
242
+ // todo: not sure what to do with this guy
243
+ interface RequireModule {
244
+ /** */
245
+ config(): {};
246
+ }
247
+
248
+ /** */
249
+ interface RequireMap {
250
+ /** */
251
+ prefix: string;
252
+
253
+ /** */
254
+ name: string;
255
+
256
+ /** */
257
+ parentMap: RequireMap;
258
+
259
+ /** */
260
+ url: string;
261
+
262
+ /** */
263
+ originalName: string;
264
+
265
+ /** */
266
+ fullName: string;
267
+ }
268
+
269
+ interface Require {
270
+ /**
271
+ * Configure require.js
272
+ */
273
+ config(config: RequireConfig): Require;
274
+
275
+ /**
276
+ * CommonJS require call
277
+ * @param module Module to load
278
+ * @return The loaded module
279
+ */
280
+ (module: string): any;
281
+
282
+ /**
283
+ * Start the main app logic.
284
+ * Callback is optional.
285
+ * Can alternatively use deps and callback.
286
+ * @param modules Required modules to load.
287
+ */
288
+ (modules: string[]): void;
289
+
290
+ /**
291
+ * @see Require()
292
+ * @param ready Called when required modules are ready.
293
+ */
294
+ (modules: string[], ready: Function): void;
295
+
296
+ /**
297
+ * @see http://requirejs.org/docs/api.html#errbacks
298
+ * @param ready Called when required modules are ready.
299
+ */
300
+ (modules: string[], ready: Function, errback: Function): void;
301
+
302
+ /**
303
+ * Generate URLs from require module
304
+ * @param module Module to URL
305
+ * @return URL string
306
+ */
307
+ toUrl(module: string): string;
308
+
309
+ /**
310
+ * Returns true if the module has already been loaded and defined.
311
+ * @param module Module to check
312
+ */
313
+ defined(module: string): boolean;
314
+
315
+ /**
316
+ * Returns true if the module has already been requested or is in the process of loading and should be available at some point.
317
+ * @param module Module to check
318
+ */
319
+ specified(module: string): boolean;
320
+
321
+ /**
322
+ * On Error override
323
+ * @param err
324
+ */
325
+ onError(err: RequireError, errback?: (err: RequireError) => void): void;
326
+
327
+ /**
328
+ * Undefine a module
329
+ * @param module Module to undefine.
330
+ */
331
+ undef(module: string): void;
332
+
333
+ /**
334
+ * Semi-private function, overload in special instance of undef()
335
+ */
336
+ onResourceLoad(
337
+ context: Object,
338
+ map: RequireMap,
339
+ depArray: RequireMap[],
340
+ ): void;
341
+ }
342
+
343
+ interface RequireDefine {
344
+ /**
345
+ * Define Simple Name/Value Pairs
346
+ * @param config Dictionary of Named/Value pairs for the config.
347
+ */
348
+ (config: { [key: string]: any }): void;
349
+
350
+ /**
351
+ * Define function.
352
+ * @param func: The function module.
353
+ */
354
+ (func: () => any): void;
355
+
356
+ /**
357
+ * Define function with dependencies.
358
+ * @param deps List of dependencies module IDs.
359
+ * @param ready Callback function when the dependencies are loaded.
360
+ * callback param deps module dependencies
361
+ * callback return module definition
362
+ */
363
+ (deps: string[], ready: Function): void;
364
+
365
+ /**
366
+ * Define module with simplified CommonJS wrapper.
367
+ * @param ready
368
+ * callback require requirejs instance
369
+ * callback exports exports object
370
+ * callback module module
371
+ * callback return module definition
372
+ */
373
+ (
374
+ ready: (
375
+ require: Require,
376
+ exports: { [key: string]: any },
377
+ module: RequireModule,
378
+ ) => any,
379
+ ): void;
380
+
381
+ /**
382
+ * Define a module with a name and dependencies.
383
+ * @param name The name of the module.
384
+ * @param deps List of dependencies module IDs.
385
+ * @param ready Callback function when the dependencies are loaded.
386
+ * callback deps module dependencies
387
+ * callback return module definition
388
+ */
389
+ (name: string, deps: string[], ready: Function): void;
390
+
391
+ /**
392
+ * Define a module with a name.
393
+ * @param name The name of the module.
394
+ * @param ready Callback function when the dependencies are loaded.
395
+ * callback return module definition
396
+ */
397
+ (name: string, ready: Function): void;
398
+
399
+ /**
400
+ * Used to allow a clear indicator that a global define function (as needed for script src browser loading) conforms
401
+ * to the AMD API, any global define function SHOULD have a property called "amd" whose value is an object.
402
+ * This helps avoid conflict with any other existing JavaScript code that could have defined a define() function
403
+ * that does not conform to the AMD API.
404
+ * define.amd.jQuery is specific to jQuery and indicates that the loader is able to account for multiple version
405
+ * of jQuery being loaded simultaneously.
406
+ */
407
+ amd: Object;
408
+ }
409
+
410
+ // Ambient declarations for 'require' and 'define'
411
+ declare let require: Require;
412
+ declare let define: RequireDefine;