@arcgis/lumina-compiler 4.31.0-next.97 → 4.31.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/dist/chunk-6XNX5V4L.js +1 -0
- package/dist/context/utils.d.ts +1 -1
- package/dist/dependencies/index.d.ts +2 -1
- package/dist/dependencies/loaders.d.ts +2 -1
- package/dist/dependencies/updateLumina.d.ts +1 -1
- package/dist/dependencies/utils.d.ts +1 -0
- package/dist/entrypoints/dtsUtils.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +73 -72
- package/dist/jsxToLitHtml/config.d.ts +54 -5
- package/dist/jsxToLitHtml/imports.d.ts +1 -0
- package/dist/jsxToLitHtml/inferPropType.d.ts +1 -1
- package/dist/jsxToLitHtml/templateParts.d.ts +2 -2
- package/dist/jsxToLitHtml/types.d.ts +8 -8
- package/dist/jsxToLitHtml/utils.d.ts +0 -1
- package/dist/plugins/loadLitCss.d.ts +1 -1
- package/dist/plugins/updatePackageJson.d.ts +1 -1
- package/dist/puppeteerTesting/globalSetup.js +11 -0
- package/dist/puppeteerTesting/index.d.ts +13 -0
- package/dist/puppeteerTesting/index.js +6 -0
- package/dist/{puppeteer-testing → puppeteerTesting}/puppeteer/element.d.ts +4 -4
- package/dist/{puppeteer-testing → puppeteerTesting}/puppeteer/events.d.ts +7 -7
- package/dist/{puppeteer-testing → puppeteerTesting}/puppeteer/page.d.ts +1 -1
- package/dist/{puppeteer-testing → puppeteerTesting}/puppeteer/types.d.ts +23 -3
- package/dist/{puppeteer-testing → puppeteerTesting}/vitest/matchers/index.d.ts +2 -9
- package/dist/{puppeteer-testing → puppeteerTesting}/vitest/runner.d.ts +6 -5
- package/dist/puppeteerTesting/vitest/runner.js +1 -0
- package/dist/puppeteerTesting/vitest/types.d.ts +5 -0
- package/dist/testing/index.js +1 -1
- package/dist/testing/mount.d.ts +2 -2
- package/dist/types/liftSetterTypes.d.ts +1 -1
- package/package.json +10 -46
- package/dist/chunk-BQ4U6HQL.js +0 -1
- package/dist/puppeteer-testing/globalSetup.js +0 -11
- package/dist/puppeteer-testing/index.d.ts +0 -9
- package/dist/puppeteer-testing/index.js +0 -6
- package/dist/utils/packageJson.d.ts +0 -24
- package/dist/utils/path.d.ts +0 -25
- package/dist/utils/path.spec.d.ts +0 -1
- /package/dist/{puppeteer-testing → puppeteerTesting}/globalSetup.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/injected.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/puppeteer/browser.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/vitest/matchers/attributes.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/vitest/matchers/classList.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/vitest/matchers/events.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/vitest/matchers/text.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/vitest/matchers/utils.d.ts +0 -0
- /package/dist/{puppeteer-testing → puppeteerTesting}/vitest/setupFile.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{inject as t}from"vitest";var n=new Proxy({},{get(r,e){return t(e)},set(){throw new Error("Injected object is read-only")}});var s=globalThis;export{n as a,s as b};
|
package/dist/context/utils.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare function loadTypeScriptConfig(tsConfigPath?: string): {
|
|
|
10
10
|
readonly path: string;
|
|
11
11
|
readonly config: ts.ParsedCommandLine;
|
|
12
12
|
};
|
|
13
|
-
export declare function inferPreamble(packageJson?: import("
|
|
13
|
+
export declare function inferPreamble(packageJson?: import("@arcgis/components-build-utils").MiniPackageJson): string;
|
|
14
14
|
export declare const preambleToComment: (preamble: string) => string;
|
|
15
15
|
export declare const throwOnReadBeforeSet: (createdDuring: string) => PropertyDecorator;
|
|
16
16
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Plugin } from "vite";
|
|
1
|
+
import type { IndexHtmlTransformContext, Plugin } from "vite";
|
|
2
2
|
import type { CompilerContext } from "../context";
|
|
3
|
+
export declare const doLoadersApply: (context: CompilerContext, htmlContext?: IndexHtmlTransformContext) => boolean;
|
|
3
4
|
/**
|
|
4
5
|
* In serve mode, augment index.html by adding the necessary script tags for
|
|
5
6
|
* each web component dependency.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { CompilerContext } from "../context";
|
|
2
2
|
import { type ResolvedDependencyComponents } from "./discover";
|
|
3
3
|
import type { DependencyInjectionResult } from "./utils";
|
|
4
|
-
export declare const serveOnlyDependencies: WeakMap<CompilerContext, Promise<readonly ResolvedDependencyComponents[]>>;
|
|
5
4
|
export declare function makeLoaders(context: CompilerContext): Promise<DependencyInjectionResult[]>;
|
|
6
5
|
export declare const silenceLitWarnings: {
|
|
6
|
+
optimizableImports: never[];
|
|
7
7
|
javascriptCode: string[];
|
|
8
8
|
};
|
|
9
|
+
export declare function computeServeOnlyDependencies(context: CompilerContext): Promise<readonly ResolvedDependencyComponents[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResolvedDependencyComponents } from "./discover";
|
|
2
2
|
import type { BrowserConfigOptions } from "vitest/node";
|
|
3
3
|
export declare function updateLuminaTs(dependencies: readonly ResolvedDependencyComponents[], srcDir: string, hasCore: boolean, browserProvider?: BrowserConfigOptions["provider"]): Promise<void>;
|
|
4
|
-
declare function produceLuminaTs(dependencies: readonly ResolvedDependencyComponents[], hasCore: boolean, browserProvider?: BrowserConfigOptions["provider"], packageJson?: import("
|
|
4
|
+
declare function produceLuminaTs(dependencies: readonly ResolvedDependencyComponents[], hasCore: boolean, browserProvider?: BrowserConfigOptions["provider"], packageJson?: import("@arcgis/components-build-utils").MiniPackageJson): string;
|
|
5
5
|
export declare const exportsForTests: {
|
|
6
6
|
produceLuminaTs: typeof produceLuminaTs;
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DeclarationTextTransformer } from "../publicTypes";
|
|
2
|
-
import { path } from "
|
|
2
|
+
import { path } from "@arcgis/components-build-utils";
|
|
3
3
|
import type { CompilerContext } from "../context";
|
|
4
4
|
export declare const rewriteDtsComponentFileNames: DeclarationTextTransformer;
|
|
5
5
|
export declare const rePath: RegExp;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,8 +15,9 @@ export declare const exportsForCodemod: {
|
|
|
15
15
|
initializeComponentDependencies: typeof initializeComponentDependencies;
|
|
16
16
|
updateLuminaTs: typeof updateLuminaTs;
|
|
17
17
|
propertyToAttributeMappings: {
|
|
18
|
-
common: import("./jsxToLitHtml/config").ElementPropertyToAttributeMappings;
|
|
19
|
-
perElement: Record<string, import("./jsxToLitHtml/config").ElementPropertyToAttributeMappings | undefined>;
|
|
18
|
+
readonly common: import("./jsxToLitHtml/config").ElementPropertyToAttributeMappings;
|
|
19
|
+
readonly perElement: Record<string, import("./jsxToLitHtml/config").ElementPropertyToAttributeMappings | undefined>;
|
|
20
|
+
readonly ambiguousReflectedProperties: ["value", "defaultValue"];
|
|
20
21
|
};
|
|
21
22
|
findDeclaredComponents: typeof findDeclaredComponents;
|
|
22
23
|
nativeEvents: Set<string>;
|