@arcgis/lumina-compiler 4.34.0-next.133 → 4.34.0-next.134
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/dist/context/index.d.ts +5 -0
- package/dist/dependencies/discover.d.ts +2 -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 +1213 -1162
- package/dist/loader/index.d.ts +1 -1
- package/dist/loader/lazy.d.ts +1 -1
- package/package.json +5 -5
package/dist/context/index.d.ts
CHANGED
|
@@ -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,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;
|