@arcgis/lumina-compiler 4.34.0-next.9 → 4.34.0-next.91

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/README.md CHANGED
@@ -12,10 +12,14 @@ COPYRIGHT © 2025 Esri
12
12
 
13
13
  All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
14
14
 
15
- This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement. You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
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.
16
17
 
17
- See use restrictions at <http://www.esri.com/legal/pdfs/mla_e204_e300/english>
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
18
24
 
19
- For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA
20
-
21
- email: contracts@esri.com
25
+ email: legal@esri.com
@@ -11,7 +11,7 @@ import { CustomElementInterdependencies } from '../entrypoints/config';
11
11
  import { getCompilerOptionsForPrinter } from '../transformers';
12
12
  import { getPrinter } from '../transformers/internalTypeScriptApis';
13
13
  import { getLocalDefinedComponentsFromApiJson } from '../entrypoints/resolveTagName';
14
- import { Deferred } from '@arcgis/components-utils';
14
+ import { Deferred } from '@arcgis/toolkit/promise';
15
15
  export declare class CompilerContext {
16
16
  /**
17
17
  * The path to the resolved TypeScript configuration
@@ -267,7 +267,8 @@ export declare class CompilerContext {
267
267
  */
268
268
  _globalHydratedCssString: string;
269
269
  /**
270
- * Contents of the bundled global CSS file
270
+ * Contents of the bundled global CSS file. The string is JSON-encoded so that
271
+ * it can be injected into a JavaScript file as a string literal.
271
272
  *
272
273
  * @private
273
274
  */
@@ -1,6 +1,7 @@
1
1
  import { ModulePath } from '../extractor/helpers/resolveType';
2
2
  import { WebTypes } from '../docs/webTypes/types';
3
3
  import { ApiJson } from '@arcgis/api-extractor';
4
+ import { LuminaOptions } from '../publicTypes';
4
5
  export type ResolvedDependencyComponents = {
5
6
  readonly packageName: string;
6
7
  readonly type: "@arcgis/lumina" | "stencil" | "unknown";
@@ -45,7 +46,7 @@ export type ResolvedDependencyComponent = ModulePath & {
45
46
  * If this does not work for one of your dependencies, provide a custom resolver
46
47
  * to autoAddImports() or useLumina().
47
48
  */
48
- export declare function initializeComponentDependencies(cwd?: string): Promise<readonly ResolvedDependencyComponents[]>;
49
+ export declare function initializeComponentDependencies(cwd?: string, options?: LuminaOptions): Promise<readonly ResolvedDependencyComponents[]>;
49
50
  export declare function retrieveComponentDependencies(): readonly ResolvedDependencyComponents[];
50
51
  export declare function retrieveFlatComponentDependencies(): ResolvedDependencyComponents["components"];
51
52
  export declare let componentDependenciesPromise: Promise<readonly ResolvedDependencyComponents[]> | undefined;
@@ -1,7 +1,7 @@
1
1
  import { DependencyInjectionMode, DependencyInjectionResult } from './utils';
2
2
  import { ResolvedDependencyComponents } from './discover';
3
3
  export declare function makeStencilLoader(baseUrl: string, dependency: ResolvedDependencyComponents, mode: DependencyInjectionMode, index: number): Promise<DependencyInjectionResult[]>;
4
- export declare function findCdnFiles(distDirectory: string): Promise<{
4
+ export declare function findCdnFiles(packageDirectory: string): Promise<{
5
5
  readonly cdnName: string;
6
6
  readonly hasCss: boolean;
7
7
  } | undefined>;
@@ -1,7 +1,7 @@
1
1
  import { ResolvedDependencyComponents } from './discover';
2
- import { BrowserConfigOptions } from 'vitest/node';
3
- export declare function updateLuminaTs(dependencies: readonly ResolvedDependencyComponents[], srcDir: string, hasCore: boolean, browserProvider?: BrowserConfigOptions["provider"], packageJson?: import('@arcgis/components-build-utils').MiniPackageJson): Promise<boolean>;
4
- declare function produceLuminaTs(dependencies: readonly ResolvedDependencyComponents[], hasCore: boolean, browserProvider?: BrowserConfigOptions["provider"], packageJson?: import('@arcgis/components-build-utils').MiniPackageJson): string;
2
+ import { VitestBrowserModeProvider } from '../testing/vitestTypes';
3
+ export declare function updateLuminaTs(dependencies: readonly ResolvedDependencyComponents[], srcDir: string, hasCore: boolean, browserProvider?: VitestBrowserModeProvider, packageJson?: import('@arcgis/components-build-utils').MiniPackageJson): Promise<boolean>;
4
+ declare function produceLuminaTs(dependencies: readonly ResolvedDependencyComponents[], hasCore: boolean, browserProvider?: VitestBrowserModeProvider, packageJson?: import('@arcgis/components-build-utils').MiniPackageJson): string;
5
5
  export declare const exportsForTests: {
6
6
  produceLuminaTs: typeof produceLuminaTs;
7
7
  };
@@ -5,7 +5,7 @@ import { CompilerContext } from '../context';
5
5
  * Automatically add imports as appropriate for all referenced internally defined
6
6
  * and externally defined custom elements
7
7
  */
8
- export declare function resolveTagName(context: CompilerContext, tagName: string, fileName: string): ModulePath;
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
10
  export declare function getLocalDefinedComponentsFromApiJson(context: Pick<CompilerContext, "_localDefinedComponents" | "privateApiJson">): Readonly<Record<string, ResolvedDependencyComponent>>;
11
11
  export declare const exportsForTests: {