@stencil/core 2.19.3 → 2.21.0

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 (73) hide show
  1. package/cli/config-flags.d.ts +16 -16
  2. package/cli/index.cjs +6 -4
  3. package/cli/index.js +6 -4
  4. package/cli/package.json +1 -1
  5. package/compiler/lib.dom.d.ts +434 -251
  6. package/compiler/lib.dom.iterable.d.ts +7 -13
  7. package/compiler/lib.es2015.collection.d.ts +62 -1
  8. package/compiler/lib.es2015.promise.d.ts +9 -4
  9. package/compiler/lib.es2015.proxy.d.ts +91 -2
  10. package/compiler/lib.es2015.reflect.d.ts +25 -2
  11. package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
  12. package/compiler/lib.es2017.intl.d.ts +16 -1
  13. package/compiler/lib.es2019.d.ts +1 -0
  14. package/compiler/lib.es2019.intl.d.ts +25 -0
  15. package/compiler/lib.es2020.intl.d.ts +31 -6
  16. package/compiler/lib.es2021.intl.d.ts +11 -3
  17. package/compiler/lib.es2022.d.ts +1 -0
  18. package/compiler/lib.es2022.error.d.ts +2 -2
  19. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  20. package/compiler/lib.es5.d.ts +39 -14
  21. package/compiler/lib.esnext.intl.d.ts +5 -1
  22. package/compiler/lib.webworker.d.ts +318 -55
  23. package/compiler/lib.webworker.iterable.d.ts +11 -3
  24. package/compiler/package.json +1 -1
  25. package/compiler/stencil.d.ts +1 -23
  26. package/compiler/stencil.js +6307 -5165
  27. package/compiler/stencil.min.js +2 -2
  28. package/compiler/sys/in-memory-fs.d.ts +3 -3
  29. package/compiler/transpile.d.ts +32 -0
  30. package/dependencies.json +3 -1
  31. package/dev-server/client/app-error.d.ts +1 -1
  32. package/dev-server/client/index.js +1 -1
  33. package/dev-server/client/package.json +1 -1
  34. package/dev-server/connector.html +2 -2
  35. package/dev-server/index.js +1 -1
  36. package/dev-server/open-in-editor-api.js +1 -1
  37. package/dev-server/package.json +1 -1
  38. package/dev-server/server-process.js +2 -2
  39. package/internal/app-data/package.json +1 -1
  40. package/internal/client/css-shim.js +2 -2
  41. package/internal/client/dom.js +1 -1
  42. package/internal/client/index.js +8 -2
  43. package/internal/client/package.json +1 -1
  44. package/internal/client/patch-browser.js +1 -1
  45. package/internal/client/patch-esm.js +1 -1
  46. package/internal/client/polyfills/css-shim.js +1 -1
  47. package/internal/client/shadow-css.js +1 -1
  48. package/internal/hydrate/index.js +2 -2
  49. package/internal/hydrate/package.json +1 -1
  50. package/internal/hydrate/runner.d.ts +1 -1
  51. package/internal/hydrate/runner.js +4 -4
  52. package/internal/package.json +1 -1
  53. package/internal/stencil-private.d.ts +37 -37
  54. package/internal/stencil-public-compiler.d.ts +26 -26
  55. package/internal/stencil-public-runtime.d.ts +39 -3
  56. package/internal/testing/package.json +1 -1
  57. package/mock-doc/index.cjs +6 -6
  58. package/mock-doc/index.d.ts +2 -2
  59. package/mock-doc/index.js +6 -6
  60. package/mock-doc/package.json +1 -1
  61. package/package.json +17 -17
  62. package/screenshot/package.json +1 -1
  63. package/sys/node/autoprefixer.js +1 -1
  64. package/sys/node/glob.js +1 -1
  65. package/sys/node/index.js +29 -42
  66. package/sys/node/package.json +1 -1
  67. package/sys/node/prompts.js +1 -1
  68. package/sys/node/worker.js +1 -1
  69. package/testing/index.js +30 -22
  70. package/testing/jest/jest-preprocessor.d.ts +3 -3
  71. package/testing/package.json +1 -1
  72. package/testing/puppeteer/puppeteer-declarations.d.ts +5 -5
  73. package/testing/testing-utils.d.ts +1 -1
@@ -26,6 +26,14 @@ interface Cache {
26
26
  addAll(requests: Iterable<RequestInfo>): Promise<void>;
27
27
  }
28
28
 
29
+ interface CanvasPath {
30
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
31
+ }
32
+
33
+ interface CanvasPathDrawingStyles {
34
+ setLineDash(segments: Iterable<number>): void;
35
+ }
36
+
29
37
  interface DOMStringList {
30
38
  [Symbol.iterator](): IterableIterator<string>;
31
39
  }
@@ -59,7 +67,7 @@ interface Headers {
59
67
 
60
68
  interface IDBDatabase {
61
69
  /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
62
- transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
70
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
63
71
  }
64
72
 
65
73
  interface IDBObjectStore {
@@ -103,8 +111,8 @@ interface WEBGL_draw_buffers {
103
111
  interface WEBGL_multi_draw {
104
112
  multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
105
113
  multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
106
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
107
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
114
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
115
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
108
116
  }
109
117
 
110
118
  interface WebGL2RenderingContextBase {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/compiler",
3
- "version": "2.19.3",
3
+ "version": "2.21.0",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",
@@ -1,27 +1,5 @@
1
1
  import { Compiler, CompilerBuildResults, CompilerSystem, CompilerWatcher, CompileScriptMinifyOptions, Config, Diagnostic, LoadConfigInit, LoadConfigResults, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, PlatformPath, PrerenderResults, PrerenderStartOptions, TranspileOptions, TranspileResults } from '../internal/index';
2
- /**
3
- * The `transpile()` function inputs source code as a string, with various options
4
- * within the second argument. The function is stateless and returns a `Promise` of the
5
- * results, including diagnostics and the transpiled code. The `transpile()` function
6
- * does not handle any bundling, minifying, or precompiling any CSS preprocessing like
7
- * Sass or Less. The `transpileSync()` equivalent is available so the same function
8
- * it can be called synchronously. However, TypeScript must be already loaded within
9
- * the global for it to work, where as the async `transpile()` function will load
10
- * TypeScript automatically.
11
- *
12
- * Since TypeScript is used, the source code will transpile from TypeScript to JavaScript,
13
- * and does not require Babel presets. Additionally, the results includes an `imports`
14
- * array of all the import paths found in the source file. The transpile options can be
15
- * used to set the `module` format, such as `cjs`, and JavaScript `target` version, such
16
- * as `es2017`.
17
- */
18
- export declare const transpile: (code: string, opts?: TranspileOptions) => Promise<TranspileResults>;
19
- /**
20
- * Synchronous equivalent of the `transpile()` function. When used in a browser
21
- * environment, TypeScript must already be available globally, where as the async
22
- * `transpile()` function will load TypeScript automatically.
23
- */
24
- export declare const transpileSync: (code: string, opts?: TranspileOptions) => TranspileResults;
2
+ export { transpile, transpileSync } from './transpile';
25
3
  /**
26
4
  * The compiler is the utility that brings together many tools to build optimized components,
27
5
  * such as a transpiler, bundler, and minifier, along with many internal optimizations to