@arcgis/lumina-compiler 5.2.0-next.4 → 5.2.0-next.40
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 +158 -296
- package/dist/context/types.d.ts +18 -34
- package/dist/defaultAssetsUrl.d.ts +6 -6
- package/dist/dependencies/discover.d.ts +43 -35
- package/dist/dependencies/updateLumina.d.ts +10 -11
- package/dist/docs/vsCodeCustomData/types.d.ts +5 -42
- package/dist/docs/webTypes/types.d.ts +5 -76
- package/dist/index.d.ts +20 -20
- package/dist/index.js +1404 -1412
- package/dist/jsxToLitHtml/config.d.ts +93 -121
- package/dist/{logger-C9XakOcA.js → logger-edpIalAo.js} +1 -1
- package/dist/options.d.ts +675 -0
- package/dist/puppeteerTesting/index.d.ts +18 -11
- package/dist/puppeteerTesting/index.js +105 -8
- package/dist/puppeteerTesting/puppeteer/element.d.ts +250 -217
- package/dist/puppeteerTesting/puppeteer/events.d.ts +15 -21
- package/dist/puppeteerTesting/puppeteer/page.d.ts +8 -5
- package/dist/puppeteerTesting/puppeteer/types.d.ts +130 -132
- package/dist/puppeteerTesting/vitest/matchers/index.d.ts +33 -30
- package/dist/testing/index.d.ts +4 -11
- package/dist/testing/mount.d.ts +113 -93
- package/dist/testing/wrapController.d.ts +5 -11
- package/dist/useLumina.d.ts +5 -2
- package/package.json +20 -9
- package/dist/context/logger.d.ts +0 -8
- package/dist/context/typeScript.d.ts +0 -6
- package/dist/context/utils.d.ts +0 -4
- package/dist/dependencies/arcgisCore.d.ts +0 -30
- package/dist/dependencies/index.d.ts +0 -12
- package/dist/dependencies/loaders.d.ts +0 -5
- package/dist/dependencies/lumina.d.ts +0 -3
- package/dist/dependencies/stencil.d.ts +0 -17
- package/dist/dependencies/testSetupFiles.d.ts +0 -13
- package/dist/dependencies/utils.d.ts +0 -15
- package/dist/docs/config.d.ts +0 -9
- package/dist/docs/index.d.ts +0 -10
- package/dist/docs/stencilDocsJson.d.ts +0 -130
- package/dist/docs/types.d.ts +0 -1
- package/dist/docs/vsCodeCustomData/index.d.ts +0 -16
- package/dist/docs/vsCodeCustomData/utils.d.ts +0 -3
- package/dist/docs/webTypes/description.d.ts +0 -2
- package/dist/docs/webTypes/index.d.ts +0 -19
- package/dist/docs/webTypes/utils.d.ts +0 -6
- package/dist/entrypoints/addNonLazyImports.d.ts +0 -13
- package/dist/entrypoints/config.d.ts +0 -17
- package/dist/entrypoints/dtsUtils.d.ts +0 -19
- package/dist/entrypoints/findUtils.d.ts +0 -6
- package/dist/entrypoints/handleComponentImports.d.ts +0 -13
- package/dist/entrypoints/resolveTagName.d.ts +0 -18
- package/dist/jsxToLitHtml/autoAddNothing.d.ts +0 -8
- package/dist/jsxToLitHtml/comments.d.ts +0 -19
- package/dist/jsxToLitHtml/convertProps.d.ts +0 -10
- package/dist/jsxToLitHtml/imports.d.ts +0 -27
- package/dist/jsxToLitHtml/importsConfig.d.ts +0 -17
- package/dist/jsxToLitHtml/index.d.ts +0 -20
- package/dist/jsxToLitHtml/inferPropType.d.ts +0 -40
- package/dist/jsxToLitHtml/insertRepeatCall.d.ts +0 -51
- package/dist/jsxToLitHtml/jsxVisitor.d.ts +0 -15
- package/dist/jsxToLitHtml/templateParts.d.ts +0 -17
- package/dist/jsxToLitHtml/throwOnImportingExternalized.d.ts +0 -10
- package/dist/jsxToLitHtml/types.d.ts +0 -74
- package/dist/jsxToLitHtml/utils.d.ts +0 -14
- package/dist/loader/css.d.ts +0 -20
- package/dist/loader/extractor.d.ts +0 -2
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/lazy.d.ts +0 -21
- package/dist/loader/storybookApiJson.d.ts +0 -6
- package/dist/plugins/buildCdn.d.ts +0 -73
- package/dist/plugins/buildWebApp.d.ts +0 -3
- package/dist/plugins/buildWrappers.d.ts +0 -4
- package/dist/plugins/configureVite.d.ts +0 -20
- package/dist/plugins/externalizeDependencies.d.ts +0 -30
- package/dist/plugins/handleDynamicAssets.d.ts +0 -8
- package/dist/plugins/handleStaticAssets.d.ts +0 -9
- package/dist/plugins/loadLitCss.d.ts +0 -127
- package/dist/plugins/printTotalBuildSize.d.ts +0 -7
- package/dist/plugins/provideAssets.d.ts +0 -35
- package/dist/plugins/setAssetsPath.d.ts +0 -10
- package/dist/plugins/updatePackageJson.d.ts +0 -14
- package/dist/publicTypes.d.ts +0 -653
- package/dist/puppeteerTesting/globalSetup.d.ts +0 -73
- package/dist/puppeteerTesting/injected.d.ts +0 -8
- package/dist/puppeteerTesting/puppeteer/browser.d.ts +0 -6
- package/dist/puppeteerTesting/vitest/matchers/attributes.d.ts +0 -4
- package/dist/puppeteerTesting/vitest/matchers/classList.d.ts +0 -4
- package/dist/puppeteerTesting/vitest/matchers/events.d.ts +0 -7
- package/dist/puppeteerTesting/vitest/matchers/text.d.ts +0 -2
- package/dist/puppeteerTesting/vitest/matchers/utils.d.ts +0 -1
- package/dist/puppeteerTesting/vitest/runner.d.ts +0 -19
- package/dist/puppeteerTesting/vitest/setupFile.d.ts +0 -1
- package/dist/puppeteerTesting/vitest/types.d.ts +0 -6
- package/dist/testing/failOnConsole.d.ts +0 -6
- package/dist/testing/setupFile.d.ts +0 -1
- package/dist/testing/snapshotSerializer.d.ts +0 -12
- package/dist/tests/utils.d.ts +0 -4
- package/dist/transformers/customElementDeclaration.d.ts +0 -2
- package/dist/transformers/index.d.ts +0 -20
- package/dist/transformers/injectRuntimeOptions.d.ts +0 -18
- package/dist/transformers/liftDecorators.d.ts +0 -21
- package/dist/transformers/members.d.ts +0 -10
- package/dist/transformers/property.d.ts +0 -10
- package/dist/transformers/propertyOptions.d.ts +0 -110
- package/dist/transformers/utils.d.ts +0 -9
|
@@ -1,43 +1,6 @@
|
|
|
1
1
|
export type VsCodeDocOptions = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export type VsCodeHtmlDocs = {
|
|
8
|
-
$schema: string;
|
|
9
|
-
version: number;
|
|
10
|
-
tags: VsCodeTag[];
|
|
11
|
-
};
|
|
12
|
-
export type VsCodeCssDocs = {
|
|
13
|
-
$schema: string;
|
|
14
|
-
version: number;
|
|
15
|
-
properties: VsCodeCssProperty[];
|
|
16
|
-
pseudoElements: VsCodeCssProperty[];
|
|
17
|
-
};
|
|
18
|
-
export type VsCodeTag = {
|
|
19
|
-
name: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
attributes?: VsCodeTagAttribute[];
|
|
22
|
-
references?: VsCodeReference[];
|
|
23
|
-
};
|
|
24
|
-
type VsCodeCssProperty = {
|
|
25
|
-
name: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
values?: VsCodeValue[];
|
|
28
|
-
references?: VsCodeReference[];
|
|
29
|
-
};
|
|
30
|
-
export type VsCodeTagAttribute = {
|
|
31
|
-
name: string;
|
|
32
|
-
description?: string;
|
|
33
|
-
values?: VsCodeValue[];
|
|
34
|
-
references?: VsCodeReference[];
|
|
35
|
-
};
|
|
36
|
-
export type VsCodeValue = {
|
|
37
|
-
name: string;
|
|
38
|
-
};
|
|
39
|
-
type VsCodeReference = {
|
|
40
|
-
name: string;
|
|
41
|
-
url: string;
|
|
42
|
-
};
|
|
43
|
-
export {};
|
|
2
|
+
/** @default "docs/vscode.html-custom-data.json" */
|
|
3
|
+
htmlFileName?: string;
|
|
4
|
+
/** @default "docs/vscode.css-custom-data.json" */
|
|
5
|
+
cssFileName?: string;
|
|
6
|
+
};
|
|
@@ -1,77 +1,6 @@
|
|
|
1
1
|
export type WebTypesOptions = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* "web-types.json" has TypeScript definitions, but those are in a package that
|
|
9
|
-
* has a bunch of Vue dependencies, which we don't want. Opened an issue:
|
|
10
|
-
* https://github.com/JetBrains/web-types/issues/83
|
|
11
|
-
*/
|
|
12
|
-
export type WebTypes = {
|
|
13
|
-
["$schema"]: string;
|
|
14
|
-
name: string;
|
|
15
|
-
version: string;
|
|
16
|
-
["description-markup"]: "html" | "markdown" | "none";
|
|
17
|
-
["default-icon"]?: string;
|
|
18
|
-
contributions?: {
|
|
19
|
-
html?: {
|
|
20
|
-
elements?: readonly WebTypesElement[];
|
|
21
|
-
tags?: readonly WebTypesElement[];
|
|
22
|
-
};
|
|
23
|
-
css?: {
|
|
24
|
-
properties?: WebTypesCssProperty[];
|
|
25
|
-
["pseudo-elements"]?: WebTypesPseudoElement[];
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export type WebTypesElement = {
|
|
30
|
-
name: string;
|
|
31
|
-
description: string;
|
|
32
|
-
["doc-url"]?: string;
|
|
33
|
-
attributes: WebTypesAttribute[];
|
|
34
|
-
slots?: WebTypesSlot[];
|
|
35
|
-
js?: WebTypesJsProperties;
|
|
36
|
-
};
|
|
37
|
-
export type WebTypesAttribute = {
|
|
38
|
-
name: string;
|
|
39
|
-
description?: string;
|
|
40
|
-
default?: string;
|
|
41
|
-
value: WebTypesValue;
|
|
42
|
-
required?: boolean;
|
|
43
|
-
};
|
|
44
|
-
type WebTypesSlot = {
|
|
45
|
-
name?: string;
|
|
46
|
-
description?: string;
|
|
47
|
-
};
|
|
48
|
-
type WebTypesValue = {
|
|
49
|
-
type?: string[] | string;
|
|
50
|
-
};
|
|
51
|
-
type WebTypesJsProperties = {
|
|
52
|
-
properties: WebTypesJsProperty[];
|
|
53
|
-
events: WebTypesEvent[];
|
|
54
|
-
};
|
|
55
|
-
export type WebTypesJsProperty = {
|
|
56
|
-
name: string;
|
|
57
|
-
description?: string;
|
|
58
|
-
type?: string;
|
|
59
|
-
default?: string;
|
|
60
|
-
};
|
|
61
|
-
export type WebTypesEvent = {
|
|
62
|
-
name: string;
|
|
63
|
-
type?: string;
|
|
64
|
-
description?: string;
|
|
65
|
-
};
|
|
66
|
-
export type WebTypesPseudoElement = {
|
|
67
|
-
name: string;
|
|
68
|
-
description?: string;
|
|
69
|
-
docUrl?: string;
|
|
70
|
-
arguments?: boolean;
|
|
71
|
-
deprecated?: boolean;
|
|
72
|
-
};
|
|
73
|
-
export type WebTypesCssProperty = {
|
|
74
|
-
name: string;
|
|
75
|
-
description?: string;
|
|
76
|
-
};
|
|
77
|
-
export {};
|
|
2
|
+
/** @default "docs/web-types.json" */
|
|
3
|
+
webTypesFileName?: string;
|
|
4
|
+
/** Adds an icon link to the web-types.json */
|
|
5
|
+
defaultIcon?: string;
|
|
6
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { initializeComponentDependencies } from
|
|
2
|
-
import { updateLuminaTs } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
export type
|
|
1
|
+
import type { initializeComponentDependencies } from "./dependencies/discover.js";
|
|
2
|
+
import type { updateLuminaTs } from "./dependencies/updateLumina.js";
|
|
3
|
+
import type { alwaysAttributes, htmlAlwaysAttributes, mathMlElements, nativeAlwaysAttributes, nativeEvents, propertyToAttributeMappings, svgElements } from "./jsxToLitHtml/config.js";
|
|
4
|
+
|
|
5
|
+
export { useLumina } from "./useLumina.js";
|
|
6
|
+
export type * from "./options.js";
|
|
7
|
+
export { inferCdnUrl } from "./defaultAssetsUrl.js";
|
|
8
|
+
export { type CompilerContext } from "./context/index.js";
|
|
9
|
+
|
|
7
10
|
/**
|
|
8
|
-
* These are exposed only for usage by the
|
|
11
|
+
* These are exposed only for usage by the \@arcgis/stencil-to-lumina codemod
|
|
9
12
|
*
|
|
10
|
-
* @
|
|
13
|
+
* @internal
|
|
11
14
|
*/
|
|
12
|
-
export
|
|
15
|
+
export const exportsForCodemod: {
|
|
13
16
|
initializeComponentDependencies: typeof initializeComponentDependencies;
|
|
14
17
|
updateLuminaTs: typeof updateLuminaTs;
|
|
15
|
-
propertyToAttributeMappings:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
nativeAlwaysAttributes: Set<string>;
|
|
24
|
-
htmlAlwaysAttributes: Record<string, Set<string> | undefined>;
|
|
25
|
-
};
|
|
18
|
+
propertyToAttributeMappings: typeof propertyToAttributeMappings;
|
|
19
|
+
nativeEvents: typeof nativeEvents;
|
|
20
|
+
svgElements: typeof svgElements;
|
|
21
|
+
mathMlElements: typeof mathMlElements;
|
|
22
|
+
alwaysAttributes: typeof alwaysAttributes;
|
|
23
|
+
nativeAlwaysAttributes: typeof nativeAlwaysAttributes;
|
|
24
|
+
htmlAlwaysAttributes: typeof htmlAlwaysAttributes;
|
|
25
|
+
};
|