@arcgis/lumina-compiler 5.0.0-next.7 → 5.0.0-next.71
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 +11 -14
- package/dist/context/typeScript.d.ts +1 -1
- package/dist/dependencies/arcgisCore.d.ts +1 -1
- package/dist/dependencies/discover.d.ts +3 -3
- package/dist/dependencies/index.d.ts +1 -1
- package/dist/dependencies/loaders.d.ts +3 -3
- package/dist/dependencies/lumina.d.ts +2 -2
- package/dist/dependencies/stencil.d.ts +2 -2
- package/dist/dependencies/testSetupFiles.d.ts +1 -1
- package/dist/dependencies/updateLumina.d.ts +5 -4
- package/dist/docs/config.d.ts +1 -1
- package/dist/docs/index.d.ts +1 -1
- package/dist/docs/stencilDocsJson.d.ts +1 -1
- package/dist/docs/vsCodeCustomData/index.d.ts +1 -1
- package/dist/docs/vsCodeCustomData/utils.d.ts +1 -1
- package/dist/docs/webTypes/index.d.ts +1 -1
- package/dist/docs/webTypes/utils.d.ts +1 -1
- package/dist/entrypoints/addNonLazyImports.d.ts +1 -1
- package/dist/entrypoints/config.d.ts +0 -1
- package/dist/entrypoints/dtsUtils.d.ts +2 -2
- package/dist/entrypoints/findUtils.d.ts +1 -1
- package/dist/entrypoints/handleComponentImports.d.ts +1 -1
- package/dist/entrypoints/pathMapping.d.ts +1 -1
- package/dist/entrypoints/resolveTagName.d.ts +3 -3
- package/dist/extractor/LuminaApiExtractor.d.ts +63 -0
- package/dist/extractor/apiJsonUtils.d.ts +2 -1
- package/dist/extractor/declaration.d.ts +3 -3
- package/dist/extractor/helpers/event.d.ts +1 -2
- package/dist/extractor/helpers/method.d.ts +1 -8
- package/dist/extractor/helpers/property.d.ts +2 -7
- package/dist/extractor/helpers/resolveType.d.ts +1 -1
- package/dist/extractor/index.d.ts +4 -2
- package/dist/frameworkTypes/index.d.ts +1 -1
- package/dist/frameworkTypes/utils.d.ts +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1609 -1671
- package/dist/jsxToLitHtml/autoAddNothing.d.ts +2 -2
- package/dist/jsxToLitHtml/comments.d.ts +2 -2
- package/dist/jsxToLitHtml/convertProps.d.ts +4 -4
- package/dist/jsxToLitHtml/imports.d.ts +4 -9
- package/dist/jsxToLitHtml/importsConfig.d.ts +8 -1
- package/dist/jsxToLitHtml/index.d.ts +1 -1
- package/dist/jsxToLitHtml/inferPropType.d.ts +1 -1
- package/dist/jsxToLitHtml/insertRepeatCall.d.ts +1 -1
- package/dist/jsxToLitHtml/jsxVisitor.d.ts +2 -2
- package/dist/jsxToLitHtml/templateParts.d.ts +1 -1
- package/dist/jsxToLitHtml/throwOnImportingExternalized.d.ts +1 -1
- package/dist/jsxToLitHtml/types.d.ts +2 -2
- package/dist/loader/css.d.ts +3 -3
- package/dist/loader/index.d.ts +1 -1
- package/dist/loader/lazy.d.ts +3 -3
- package/dist/plugins/buildCdn.d.ts +2 -2
- package/dist/plugins/buildWebApp.d.ts +1 -1
- package/dist/plugins/buildWrappers.d.ts +1 -1
- package/dist/plugins/configureVite.d.ts +2 -2
- package/dist/plugins/externalizeDependencies.d.ts +1 -1
- package/dist/plugins/handleDynamicAssets.d.ts +1 -1
- package/dist/plugins/handleStaticAssets.d.ts +1 -1
- package/dist/plugins/loadLitCss.d.ts +1 -1
- package/dist/plugins/printTotalBuildSize.d.ts +1 -1
- package/dist/plugins/provideAssets.d.ts +3 -3
- package/dist/plugins/setAssetsPath.d.ts +1 -1
- package/dist/plugins/updatePackageJson.d.ts +1 -1
- package/dist/publicTypes.d.ts +14 -10
- package/dist/puppeteerTesting/globalSetup.d.ts +2 -2
- package/dist/puppeteerTesting/index.d.ts +7 -7
- package/dist/puppeteerTesting/index.js +11 -11
- package/dist/puppeteerTesting/puppeteer/element.d.ts +4 -4
- package/dist/puppeteerTesting/puppeteer/events.d.ts +2 -2
- package/dist/puppeteerTesting/puppeteer/page.d.ts +1 -1
- package/dist/puppeteerTesting/puppeteer/types.d.ts +3 -3
- package/dist/puppeteerTesting/vitest/types.d.ts +1 -1
- package/dist/testing/index.d.ts +4 -4
- package/dist/testing/mount.d.ts +1 -1
- package/dist/tests/utils.d.ts +2 -2
- package/dist/transformers/index.d.ts +1 -1
- package/dist/transformers/injectRuntimeOptions.d.ts +1 -1
- package/dist/transformers/members.d.ts +1 -1
- package/dist/transformers/property.d.ts +2 -2
- package/dist/transformers/propertyOptions.d.ts +2 -2
- package/dist/transformers/utils.d.ts +2 -2
- package/dist/types/astTransformers.d.ts +1 -1
- package/dist/types/hideInternalLitElement.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/liftSetterTypes.d.ts +1 -1
- package/dist/types/textTransformers.d.ts +1 -1
- package/dist/types/transformComponentMembers.d.ts +1 -1
- package/dist/useLumina.d.ts +1 -1
- package/package.json +9 -9
- package/dist/extractor/extractor.d.ts +0 -54
- package/dist/testing/vitestTypes.d.ts +0 -8
- package/dist/transformers/internalTypeScriptApis.d.ts +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as ts } from 'typescript';
|
|
2
|
-
import { FileTransformContext } from '../publicTypes';
|
|
3
|
-
import { ParsedPropertyDecorator } from './property';
|
|
2
|
+
import { FileTransformContext } from '../publicTypes.ts';
|
|
3
|
+
import { ParsedPropertyDecorator } from './property.ts';
|
|
4
4
|
import { ApiCustomElementField } from '@arcgis/api-extractor';
|
|
5
5
|
/**
|
|
6
6
|
* In Stencil, the compiler uses type checking to determine if the inferred
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as ts } from 'typescript';
|
|
2
|
-
import { FileTransformContext, FileTransformer } from '../publicTypes';
|
|
3
|
-
import { CompilerContext } from '../context';
|
|
2
|
+
import { FileTransformContext, FileTransformer } from '../publicTypes.ts';
|
|
3
|
+
import { CompilerContext } from '../context/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Run a chain of transformers on a TypeScript .tsx or .d.ts file and return
|
|
6
6
|
* the resulting source file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CompilerContext } from '../context';
|
|
1
|
+
import { CompilerContext } from '../context/index.ts';
|
|
2
2
|
import { PluginOptions } from 'vite-plugin-dts';
|
|
3
3
|
export declare function runAstDtsTransformers(context: CompilerContext): NonNullable<PluginOptions["resolvers"]>[number];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
|
-
import { CompilerContext } from '../context';
|
|
2
|
+
import { CompilerContext } from '../context/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Generate TypeScript definition files for the files in the project.
|
|
5
5
|
* There is a corresponding .d.ts file emitted for each source .ts and .tsx file.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompilerContext } from '../context';
|
|
1
|
+
import { CompilerContext } from '../context/index.ts';
|
|
2
2
|
import { PluginOptions } from 'vite-plugin-dts';
|
|
3
3
|
export declare const runTextDtsTransformers: (context: CompilerContext) => PluginOptions["beforeWriteFile"];
|
|
4
4
|
export declare const isTestFile: (id: string) => boolean;
|
package/dist/useLumina.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina-compiler",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcgis/api-extractor": "5.0.0-next.
|
|
22
|
-
"@arcgis/components-build-utils": "5.0.0-next.
|
|
23
|
-
"@arcgis/toolkit": "~5.0.0-next.
|
|
21
|
+
"@arcgis/api-extractor": "5.0.0-next.71",
|
|
22
|
+
"@arcgis/components-build-utils": "5.0.0-next.71",
|
|
23
|
+
"@arcgis/toolkit": "~5.0.0-next.71",
|
|
24
24
|
"chalk": "^5.4.1",
|
|
25
|
-
"esbuild": "^0.25.
|
|
25
|
+
"esbuild": "^0.25.12",
|
|
26
26
|
"glob": "^11.0.3",
|
|
27
27
|
"js-beautify": "^1.15.4",
|
|
28
28
|
"mime-types": "^3.0.1",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"vite-plugin-dts": "^4.5.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@arcgis/lumina": "~5.0.0-next.
|
|
33
|
+
"@arcgis/lumina": "~5.0.0-next.71",
|
|
34
34
|
"lit": "^3.3.0",
|
|
35
|
-
"typescript": "~5.
|
|
36
|
-
"vite": "^7.
|
|
37
|
-
"vitest": "^
|
|
35
|
+
"typescript": "~5.9.3",
|
|
36
|
+
"vite": "^7.2.2",
|
|
37
|
+
"vitest": "^4.0.8"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"vitest": {
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { default as ts } from 'typescript';
|
|
2
|
-
import { ApiExtractor, ApiAttribute, ApiClassMethod, ApiCustomElementDeclaration, ApiCustomElementField, ApiCustomElementMember, ApiDeclaration, ApiEvent, ApiExport, ApiJson, ApiModule, ApiReference, CopyDocDefinitions } from '@arcgis/api-extractor';
|
|
3
|
-
import { CompilerContext } from '../context';
|
|
4
|
-
export declare class LuminaApiExtractor extends ApiExtractor {
|
|
5
|
-
context: CompilerContext;
|
|
6
|
-
protected isPathOnly: boolean;
|
|
7
|
-
constructor(context: CompilerContext, isPathOnly: boolean);
|
|
8
|
-
protected localCssImports?: Set<string>;
|
|
9
|
-
protected localDeclaredComponents: Map<string, string>;
|
|
10
|
-
protected indexedComponents: Map<string, ApiCustomElementDeclaration>;
|
|
11
|
-
protected apiComponent: ApiCustomElementDeclaration;
|
|
12
|
-
protected pairedSetter: ts.SetAccessorDeclaration | undefined;
|
|
13
|
-
protected copyDocDefinitions: CopyDocDefinitions | undefined;
|
|
14
|
-
extract(files: readonly ts.SourceFile[]): ApiJson;
|
|
15
|
-
protected extractModules(files: readonly ts.SourceFile[]): ApiModule[];
|
|
16
|
-
protected extractDeclarations(module: ts.SourceFile): ApiDeclaration[];
|
|
17
|
-
protected extractDeclaration(statement: ts.Statement): ApiDeclaration | undefined;
|
|
18
|
-
protected collectCssImports(node: ts.ImportDeclaration): void;
|
|
19
|
-
protected extractComponentDeclaration(node: ts.ClassDeclaration): ApiCustomElementDeclaration | undefined;
|
|
20
|
-
protected extractComponentMembers(node: ts.ClassDeclaration): ApiCustomElementMember[];
|
|
21
|
-
protected extractComponentMember(node: ts.ClassElement, name: string | undefined): ApiCustomElementMember | undefined;
|
|
22
|
-
protected extractComponentField(node: ts.AccessorDeclaration | ts.PropertyDeclaration, name: string): ApiCustomElementField | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Based on a `non-@property()` property, extract a public event if it is one.
|
|
25
|
-
*/
|
|
26
|
-
protected extractComponentEvent(node: ts.PropertyDeclaration, name: string): ApiEvent | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* When doing full API extraction, extract additional details for a field.
|
|
29
|
-
*/
|
|
30
|
-
protected extractComponentFieldDetails(node: ts.AccessorDeclaration | ts.PropertyDeclaration, property: ApiCustomElementField): void;
|
|
31
|
-
static loggedBooleanWarning: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Find the properties given to the `@property()` decorator.
|
|
34
|
-
*/
|
|
35
|
-
protected findPropertyOptions(member: ts.AccessorDeclaration | ts.PropertyDeclaration): readonly ts.ObjectLiteralElementLike[] | undefined;
|
|
36
|
-
protected extractComponentMethod(node: ts.MethodDeclaration, name: string): ApiClassMethod | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* Infer attributes based on public component members.
|
|
39
|
-
*/
|
|
40
|
-
protected inferAttributes(members: ApiCustomElementMember[]): ApiAttribute[];
|
|
41
|
-
protected inferExport(declaration: ApiDeclaration): ApiExport | undefined;
|
|
42
|
-
protected inferCustomElementExport(declaration: ApiCustomElementDeclaration): ApiExport;
|
|
43
|
-
/**
|
|
44
|
-
* Inherit public members from a superclass. For this to work, the superclass
|
|
45
|
-
* needs to be in a a file named like a component
|
|
46
|
-
* (src/components/name/name.tsx), even if it is not a standalone component.
|
|
47
|
-
*/
|
|
48
|
-
protected inheritMembers(component: ApiCustomElementDeclaration, modules: ApiModule[], superClass?: ApiReference, existingMembers?: Set<string>, existingAttributes?: Set<string>, existingEvents?: Set<string>): void;
|
|
49
|
-
private _resolvedInheritance;
|
|
50
|
-
/**
|
|
51
|
-
* Based on the superclass name, find the actual declaration in the modules.
|
|
52
|
-
*/
|
|
53
|
-
protected resolveInheritance(superClassName: string, modules: ApiModule[]): ApiCustomElementDeclaration | undefined;
|
|
54
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type VitestBrowserModeProvider = "playwright" | "preview" | "webdriverio" | (string & {}) | undefined;
|
|
2
|
-
export type VitestPartialConfig = {
|
|
3
|
-
globalSetup?: string[] | string;
|
|
4
|
-
runner?: string;
|
|
5
|
-
include?: string[];
|
|
6
|
-
environment?: "edge-runtime" | "happy-dom" | "jsdom" | "node" | (Record<never, never> & string);
|
|
7
|
-
forceRerunTriggers?: string[];
|
|
8
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { default as ts } from 'typescript';
|
|
2
|
-
import { TransformResult } from 'vite';
|
|
3
|
-
type SourceMap = Extract<NonNullable<TransformResult["map"]>, {
|
|
4
|
-
file: string;
|
|
5
|
-
}>;
|
|
6
|
-
export type UndocumentedTypeScript = {
|
|
7
|
-
readonly createSourceMapGenerator?: (host: ts.CompilerHost, basename: string, sourceRoot: string, dirname: string, compilerOptions: ts.CompilerOptions) => SourceMapGenerator;
|
|
8
|
-
readonly createTextWriter?: (newLine: string) => EmitTextWriter;
|
|
9
|
-
readonly getNewLineCharacter?: (options: ts.CompilerOptions) => string;
|
|
10
|
-
readonly createPrinter: (
|
|
11
|
-
/**
|
|
12
|
-
* Printer has undocumented options for printing source maps:
|
|
13
|
-
* https://github.com/microsoft/TypeScript/blob/7319968e90600102892a79142fb804bcbe384160/src/compiler/types.ts#L9689C18-L9707
|
|
14
|
-
*/
|
|
15
|
-
options: ts.CompilerOptions & ts.PrinterOptions) => ReturnType<typeof ts.createPrinter> & UndocumentedPrinter;
|
|
16
|
-
};
|
|
17
|
-
type SourceMapGenerator = {
|
|
18
|
-
readonly toJSON: () => SourceMap;
|
|
19
|
-
};
|
|
20
|
-
type UndocumentedPrinter = {
|
|
21
|
-
readonly writeFile?: (writeFile: ts.SourceFile, writer: EmitTextWriter, sourceMapGenerator: SourceMapGenerator | undefined) => void;
|
|
22
|
-
writeNode?(hint: ts.EmitHint, node: ts.TypeNode, sourceFile: undefined, output: EmitTextWriter): void;
|
|
23
|
-
writeNode?(hint: ts.EmitHint, node: Node, sourceFile: ts.SourceFile, output: EmitTextWriter): void;
|
|
24
|
-
};
|
|
25
|
-
type EmitTextWriter = {
|
|
26
|
-
readonly getText: () => string;
|
|
27
|
-
readonly clear: () => void;
|
|
28
|
-
};
|
|
29
|
-
export declare const undocumentedTs: Required<UndocumentedTypeScript>;
|
|
30
|
-
export declare function getPrinter(compilerOptions: ts.CompilerOptions): ReturnType<typeof ts.createPrinter> & UndocumentedPrinter;
|
|
31
|
-
export {};
|