@arcgis/lumina-compiler 4.34.0-next.98 → 5.0.0-next.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.
- package/LICENSE.md +1 -1
- package/README.md +2 -14
- package/dist/context/index.d.ts +9 -0
- package/dist/dependencies/arcgisCore.d.ts +1 -1
- package/dist/dependencies/discover.d.ts +2 -1
- package/dist/dependencies/lumina.d.ts +1 -1
- package/dist/dependencies/stencil.d.ts +1 -1
- package/dist/dependencies/testSetupFiles.d.ts +1 -0
- package/dist/entrypoints/resolveTagName.d.ts +1 -1
- package/dist/frameworkTypes/preact.d.ts +1 -0
- package/dist/frameworkTypes/preact10.d.ts +10 -0
- package/dist/index.js +1894 -1782
- package/dist/jsxToLitHtml/types.d.ts +2 -0
- package/dist/loader/index.d.ts +1 -1
- package/dist/loader/lazy.d.ts +1 -1
- package/dist/logger-hJvg0JOj.js +34 -0
- package/dist/plugins/buildCdn.d.ts +6 -0
- package/dist/plugins/loadLitCss.d.ts +1 -1
- package/dist/publicTypes.d.ts +26 -6
- package/dist/puppeteerTesting/globalSetup.d.ts +1 -1
- package/dist/puppeteerTesting/index.js +1 -1
- package/dist/testing/failOnConsole.d.ts +6 -0
- package/dist/testing/index.js +79 -60
- package/dist/testing/mount.d.ts +2 -2
- package/dist/transformers/injectRuntimeOptions.d.ts +2 -2
- package/dist/transformers/utils.d.ts +2 -1
- package/package.json +6 -7
- package/dist/logger-KpGU2b3R.js +0 -28
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -8,18 +8,6 @@ It is not intended to be used directly, but rather used as a dependency by other
|
|
|
8
8
|
|
|
9
9
|
## License
|
|
10
10
|
|
|
11
|
-
COPYRIGHT ©
|
|
11
|
+
COPYRIGHT © Esri
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
This material is licensed for use under the [Esri Master License Agreement (MLA)](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf), and is bound by the terms of that agreement.
|
|
16
|
-
You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
|
|
17
|
-
|
|
18
|
-
For additional information, contact:
|
|
19
|
-
Environmental Systems Research Institute, Inc.
|
|
20
|
-
Attn: Contracts and Legal Services Department
|
|
21
|
-
380 New York Street
|
|
22
|
-
Redlands, California, USA 92373
|
|
23
|
-
USA
|
|
24
|
-
|
|
25
|
-
email: legal@esri.com
|
|
13
|
+
This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package.
|
package/dist/context/index.d.ts
CHANGED
|
@@ -105,6 +105,15 @@ export declare class CompilerContext {
|
|
|
105
105
|
* JSDoc tag.
|
|
106
106
|
*/
|
|
107
107
|
privateApiJson: ApiJson;
|
|
108
|
+
/**
|
|
109
|
+
* Resolves once api.json is first generated.
|
|
110
|
+
* @private
|
|
111
|
+
*/
|
|
112
|
+
readonly apiJsonDeferred: Deferred<void>;
|
|
113
|
+
/**
|
|
114
|
+
* In some test environments, api.json will never be produced.
|
|
115
|
+
*/
|
|
116
|
+
apiJsonEnabled: boolean;
|
|
108
117
|
/**
|
|
109
118
|
* @private
|
|
110
119
|
*/
|
|
@@ -27,4 +27,4 @@ export declare const hasCore: boolean;
|
|
|
27
27
|
* - for external users, having both storybook and docs use the ESM CDN means
|
|
28
28
|
* they benefit from caching the ESM CDN across both sites
|
|
29
29
|
*/
|
|
30
|
-
export declare function produceArcgisCoreTags(baseUrl: string, mode: DependencyInjectionMode): Promise<DependencyInjectionResult[]>;
|
|
30
|
+
export declare function produceArcgisCoreTags(baseUrl: string, mode: DependencyInjectionMode, preferNext: boolean): Promise<DependencyInjectionResult[]>;
|
|
@@ -19,6 +19,7 @@ export type ResolvedDependencyComponent = ModulePath & {
|
|
|
19
19
|
* big deal as we will then play safe and leave jsx properties as properties.
|
|
20
20
|
*/
|
|
21
21
|
readonly propToAttribute: Readonly<Record<string, string>>;
|
|
22
|
+
requiredProperties?: Set<string>;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* Read information about our web component dependencies. This will be used to:
|
|
@@ -59,7 +60,7 @@ export declare function findPackageComponents(packageName: string, cwd?: string)
|
|
|
59
60
|
*/
|
|
60
61
|
export declare function manifestToDependencyComponents(manifest: Partial<ApiJson>, dependency: Omit<ModulePath, "moduleName"> & {
|
|
61
62
|
readonly getImportPath: (tagName: string) => string;
|
|
62
|
-
}): ResolvedDependencyComponents["components"];
|
|
63
|
+
}, computeRequiredProperties?: boolean): ResolvedDependencyComponents["components"];
|
|
63
64
|
export declare const webTypesToDependencyComponents: (webTypes: Partial<WebTypes>, dependency: Omit<ModulePath, "moduleName"> & {
|
|
64
65
|
readonly packageRoot: string | undefined;
|
|
65
66
|
readonly getImportPath: (tagName: string) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DependencyInjectionMode, DependencyInjectionResult } from './utils';
|
|
2
2
|
import { ResolvedDependencyComponents } from './discover';
|
|
3
|
-
export declare function makeLuminaLoader(baseUrl: string, dependency: ResolvedDependencyComponents, mode: DependencyInjectionMode, index: number): Promise<DependencyInjectionResult>;
|
|
3
|
+
export declare function makeLuminaLoader(baseUrl: string, dependency: ResolvedDependencyComponents, mode: DependencyInjectionMode, index: number, preferNext: boolean): Promise<DependencyInjectionResult>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DependencyInjectionMode, DependencyInjectionResult } from './utils';
|
|
2
2
|
import { ResolvedDependencyComponents } from './discover';
|
|
3
|
-
export declare function makeStencilLoader(baseUrl: string, dependency: ResolvedDependencyComponents, mode: DependencyInjectionMode, index: number): Promise<DependencyInjectionResult[]>;
|
|
3
|
+
export declare function makeStencilLoader(baseUrl: string, dependency: ResolvedDependencyComponents, mode: DependencyInjectionMode, index: number, preferNext: boolean): Promise<DependencyInjectionResult[]>;
|
|
4
4
|
export declare function findCdnFiles(packageDirectory: string): Promise<{
|
|
5
5
|
readonly cdnName: string;
|
|
6
6
|
readonly hasCss: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CompilerContext } from '../context';
|
|
2
2
|
export declare const testSetupFileName = "/@arcgis/lumina-compiler/testSetupFile";
|
|
3
|
+
export declare const testSetupFileRegex: RegExp;
|
|
3
4
|
export declare const testSetupFileNames: string[];
|
|
4
5
|
/**
|
|
5
6
|
* Get the entrypoint code for lazy-loading all components and their
|
|
@@ -7,7 +7,7 @@ import { CompilerContext } from '../context';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function resolveTagName(context: CompilerContext, tagName: string, fileName: string): ModulePath | undefined;
|
|
9
9
|
export declare function modulePathToString(resolvedPath: ModulePath, distRelativeCwd: string): string;
|
|
10
|
-
export declare function getLocalDefinedComponentsFromApiJson(context: Pick<CompilerContext, "_localDefinedComponents" | "privateApiJson">): Readonly<Record<string, ResolvedDependencyComponent>>;
|
|
10
|
+
export declare function getLocalDefinedComponentsFromApiJson(context: Pick<CompilerContext, "_localDefinedComponents" | "privateApiJson" | "viteCommand">): Readonly<Record<string, ResolvedDependencyComponent>>;
|
|
11
11
|
export declare const exportsForTests: {
|
|
12
12
|
modulePathToString: typeof modulePathToString;
|
|
13
13
|
};
|
|
@@ -2,5 +2,6 @@ import { ApiCustomElementDeclaration } from '@arcgis/api-extractor';
|
|
|
2
2
|
/**
|
|
3
3
|
* @see https://github.com/preactjs/preact/issues/1180#issuecomment-643681851
|
|
4
4
|
* @see https://github.com/preactjs/preact/pull/1448/files
|
|
5
|
+
* @see https://github.com/esri/calcite-design-system/issues/9494
|
|
5
6
|
*/
|
|
6
7
|
export declare function generatePreactTypes(components: ApiCustomElementDeclaration[]): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApiCustomElementDeclaration } from '@arcgis/api-extractor';
|
|
2
|
+
/**
|
|
3
|
+
* Typings for Preact 10 and earlier.
|
|
4
|
+
* Preact 11 had a breaking change requiring separate typings.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/preactjs/preact/issues/4903
|
|
7
|
+
* @deprecated These are exposed for internal consumption only. Drop once Home App
|
|
8
|
+
* updates to Preact 11.
|
|
9
|
+
*/
|
|
10
|
+
export declare function generatePreact10Types(components: ApiCustomElementDeclaration[]): string;
|