@arcgis/lumina-compiler 5.0.0-next.6 → 5.0.0-next.61
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 +2 -5
- package/dist/dependencies/updateLumina.d.ts +4 -3
- package/dist/entrypoints/config.d.ts +0 -1
- package/dist/extractor/{extractor.d.ts → LuminaApiExtractor.d.ts} +29 -20
- package/dist/extractor/apiJsonUtils.d.ts +2 -1
- package/dist/extractor/declaration.d.ts +2 -2
- package/dist/extractor/helpers/event.d.ts +0 -1
- package/dist/extractor/helpers/method.d.ts +0 -7
- package/dist/extractor/helpers/property.d.ts +1 -6
- package/dist/extractor/index.d.ts +3 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1529 -1643
- package/dist/loader/css.d.ts +2 -2
- package/dist/loader/lazy.d.ts +1 -1
- package/dist/publicTypes.d.ts +11 -7
- package/dist/puppeteerTesting/globalSetup.d.ts +2 -2
- package/dist/puppeteerTesting/index.js +2 -2
- package/dist/testing/mount.d.ts +1 -1
- package/package.json +9 -9
- package/dist/testing/vitestTypes.d.ts +0 -8
- package/dist/transformers/internalTypeScriptApis.d.ts +0 -31
package/dist/loader/css.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CompilerContext } from '../context';
|
|
2
|
-
export declare function addGlobalCss(context: CompilerContext): string;
|
|
2
|
+
export declare function addGlobalCss(context: Pick<CompilerContext, "_globalHydratedCssString" | "apiJsonComponents" | "dir" | "isInStorybook" | "options" | "shouldMinify" | "viteCommand">): string;
|
|
3
3
|
export declare const defaultHydratedAttribute = "hydrated";
|
|
4
4
|
/**
|
|
5
5
|
* Auto-inject the CSS when in dev server or when building for CDN to remove the
|
|
@@ -8,7 +8,7 @@ export declare const defaultHydratedAttribute = "hydrated";
|
|
|
8
8
|
*
|
|
9
9
|
* @see https://discord.com/channels/1012791295170859069/1274527043614150708
|
|
10
10
|
*/
|
|
11
|
-
export declare function getGlobalCssInjectionCode(globalCssString: string | undefined, context: CompilerContext): string;
|
|
11
|
+
export declare function getGlobalCssInjectionCode(globalCssString: string | undefined, context: Pick<CompilerContext, "_globalHydratedCssString" | "shouldMinify">): string;
|
|
12
12
|
/**a
|
|
13
13
|
* Get a CSS string that can be printed into a .css file
|
|
14
14
|
*
|
package/dist/loader/lazy.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ApiCustomElementDeclaration } from '@arcgis/api-extractor';
|
|
|
8
8
|
* generate a small metadata structure for each component. This will be
|
|
9
9
|
* inserted into the root index.ts file in the package
|
|
10
10
|
*/
|
|
11
|
-
export declare function buildLoaderJs(context: CompilerContext): string;
|
|
11
|
+
export declare function buildLoaderJs(context: Pick<CompilerContext, "_globalHydratedCssString" | "apiJson" | "apiJsonComponents" | "dir" | "hmrEnabled" | "isInStorybook" | "options" | "privateApiJson" | "shouldMinify" | "viteCommand">): string;
|
|
12
12
|
export declare const loaderDts = "import \"./index\";\nexport declare const defineCustomElements: import(\"@arcgis/lumina\").DefineCustomElements;";
|
|
13
13
|
/**
|
|
14
14
|
* For each component, build as compact definition as possible of all the public
|
package/dist/publicTypes.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { WebTypesOptions } from './docs/webTypes/types';
|
|
|
7
7
|
import { VsCodeDocOptions } from './docs/vsCodeCustomData/types';
|
|
8
8
|
import { DependencyManagementOptions as BaseDependencyManagementOptions } from '@arcgis/components-build-utils';
|
|
9
9
|
import { ApiJson, ApiModule, CopyDocDefinitions } from '@arcgis/api-extractor';
|
|
10
|
-
import { LuminaApiExtractor } from './extractor/
|
|
10
|
+
import { LuminaApiExtractor } from './extractor/LuminaApiExtractor';
|
|
11
11
|
/**
|
|
12
12
|
* `useLumina()` returns an array of Vite plugins. The array additionally
|
|
13
13
|
* has a `context` property for accessing the compiler context.
|
|
@@ -39,7 +39,7 @@ export type LuminaOptions = {
|
|
|
39
39
|
*
|
|
40
40
|
* @deprecated
|
|
41
41
|
* For new projects, use Vitest browser mode instead of Puppeteer.
|
|
42
|
-
* See documentation: https://qawebgis.esri.com/
|
|
42
|
+
* See documentation: https://qawebgis.esri.com/references/lumina/testing
|
|
43
43
|
*/
|
|
44
44
|
readonly puppeteerTesting?: PuppeteerTestingOptions;
|
|
45
45
|
/**
|
|
@@ -190,7 +190,7 @@ export type WrappersOptions = React18WrapperOptions;
|
|
|
190
190
|
/**
|
|
191
191
|
* Options for creating React 18 wrapper.
|
|
192
192
|
*
|
|
193
|
-
* Documentation: https://qawebgis.esri.com/
|
|
193
|
+
* Documentation: https://qawebgis.esri.com/references/lumina/build#build-wrappers
|
|
194
194
|
*/
|
|
195
195
|
export type React18WrapperOptions = {
|
|
196
196
|
readonly type: "react18";
|
|
@@ -262,14 +262,14 @@ export type DetailedExtraDependency = {
|
|
|
262
262
|
/**
|
|
263
263
|
* @deprecated
|
|
264
264
|
* For new projects, use Vitest browser mode instead of Puppeteer.
|
|
265
|
-
* See documentation: https://qawebgis.esri.com/
|
|
265
|
+
* See documentation: https://qawebgis.esri.com/references/lumina/testing
|
|
266
266
|
*/
|
|
267
267
|
export type PuppeteerTestingOptions = {
|
|
268
268
|
/**
|
|
269
269
|
* @default false
|
|
270
270
|
* @deprecated
|
|
271
271
|
* For new projects, use Vitest browser mode instead of Puppeteer.
|
|
272
|
-
* See documentation: https://qawebgis.esri.com/
|
|
272
|
+
* See documentation: https://qawebgis.esri.com/references/lumina/testing
|
|
273
273
|
*/
|
|
274
274
|
readonly enabled?: boolean;
|
|
275
275
|
/**
|
|
@@ -318,7 +318,7 @@ export type GenerateDocumentationOptions = {
|
|
|
318
318
|
* Set this to "https://developers.arcgis.com/javascript/latest/storybook/map-components/".
|
|
319
319
|
* This will produce URLs like
|
|
320
320
|
* "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-area-measurement-2d--demo&singleStory=true"
|
|
321
|
-
* @see https://qawebgis.esri.com/
|
|
321
|
+
* @see https://qawebgis.esri.com/references/support-packages/storybook
|
|
322
322
|
*/
|
|
323
323
|
readonly publicStoryUrlPrefix?: string;
|
|
324
324
|
/**
|
|
@@ -486,6 +486,10 @@ export type CssHandlingOptions = {
|
|
|
486
486
|
* do not need a separate `<link>` tag. In the NPM build, users will need to
|
|
487
487
|
* manually apply these styles as appropriate in their bundler (either via
|
|
488
488
|
* import statement, or via `<link>` tag or etc).
|
|
489
|
+
*
|
|
490
|
+
* @example
|
|
491
|
+
* // If relative path is provided, it is relative to the root directory.
|
|
492
|
+
* "./src/styles/global.css"
|
|
489
493
|
*/
|
|
490
494
|
globalStylesPath?: string;
|
|
491
495
|
/**
|
|
@@ -687,7 +691,7 @@ export type LintingOptions = {
|
|
|
687
691
|
* technical limitations. Instead, this rule exists to enforce them at
|
|
688
692
|
* build-time.
|
|
689
693
|
*
|
|
690
|
-
* [Documentation](https://qawebgis.esri.com/
|
|
694
|
+
* [Documentation](https://qawebgis.esri.com/references/lumina/properties#string-properties)
|
|
691
695
|
*/
|
|
692
696
|
mustIncludeAllRequiredProperties?: string[];
|
|
693
697
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TestProject } from 'vitest/node';
|
|
2
2
|
import { ConnectOptions } from 'puppeteer';
|
|
3
3
|
declare module "vitest" {
|
|
4
4
|
interface ProvidedContext {
|
|
@@ -60,7 +60,7 @@ declare module "vitest" {
|
|
|
60
60
|
* to provide Puppeteer integration only temporary to ease the Stencil
|
|
61
61
|
* migration, so optimizing it too much is not a goal.
|
|
62
62
|
*/
|
|
63
|
-
export declare function setup(context:
|
|
63
|
+
export declare function setup(context: TestProject): Promise<() => Promise<void>>;
|
|
64
64
|
export type PuppeteerViteGlobals = {
|
|
65
65
|
/**
|
|
66
66
|
* Helps lumina-compiler dev server know that is it running for Puppeteer
|
|
@@ -1022,14 +1022,14 @@ const Q = (s, e, t) => {
|
|
|
1022
1022
|
message: () => `expected to ${t ? "not " : ""}have css class "${e}"`,
|
|
1023
1023
|
pass: t
|
|
1024
1024
|
};
|
|
1025
|
-
}, F = (s, e) => {
|
|
1025
|
+
}, F = ((s, e) => {
|
|
1026
1026
|
f(s, "toHaveClasses");
|
|
1027
1027
|
const t = e.every((n) => s.classList.contains(n));
|
|
1028
1028
|
return {
|
|
1029
1029
|
message: () => `expected to ${t ? "not " : ""}have css classes "${e.join(" ")}", but className is "${s.className}"`,
|
|
1030
1030
|
pass: t
|
|
1031
1031
|
};
|
|
1032
|
-
}, te = (s, e) => {
|
|
1032
|
+
}), te = (s, e) => {
|
|
1033
1033
|
f(s, "toMatchClasses");
|
|
1034
1034
|
let { pass: t } = F(s, e);
|
|
1035
1035
|
return t && (t = e.length === s.classList.length), {
|
package/dist/testing/mount.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export type RenderOptions<Component extends HTMLElement = HTMLElement> = {
|
|
|
82
82
|
* Render Lit Element in a test environment.
|
|
83
83
|
*
|
|
84
84
|
* See documentation:
|
|
85
|
-
* https://qawebgis.esri.com/
|
|
85
|
+
* https://qawebgis.esri.com/references/lumina/testing
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```tsx
|
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.61",
|
|
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.61",
|
|
22
|
+
"@arcgis/components-build-utils": "5.0.0-next.61",
|
|
23
|
+
"@arcgis/toolkit": "~5.0.0-next.61",
|
|
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.61",
|
|
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,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 {};
|