@arcgis/lumina-compiler 5.2.0-next.6 → 5.2.0-next.60

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.
Files changed (104) hide show
  1. package/README.md +2 -2
  2. package/dist/context/index.d.ts +158 -296
  3. package/dist/context/types.d.ts +18 -34
  4. package/dist/defaultAssetsUrl.d.ts +6 -6
  5. package/dist/dependencies/discover.d.ts +43 -35
  6. package/dist/dependencies/updateLumina.d.ts +10 -11
  7. package/dist/docs/vsCodeCustomData/types.d.ts +5 -42
  8. package/dist/docs/webTypes/types.d.ts +5 -76
  9. package/dist/index.d.ts +20 -20
  10. package/dist/index.js +1404 -1412
  11. package/dist/jsxToLitHtml/config.d.ts +93 -121
  12. package/dist/{logger-C9XakOcA.js → logger-edpIalAo.js} +1 -1
  13. package/dist/options.d.ts +675 -0
  14. package/dist/puppeteerTesting/index.d.ts +18 -11
  15. package/dist/puppeteerTesting/index.js +105 -8
  16. package/dist/puppeteerTesting/puppeteer/element.d.ts +250 -217
  17. package/dist/puppeteerTesting/puppeteer/events.d.ts +15 -21
  18. package/dist/puppeteerTesting/puppeteer/page.d.ts +8 -5
  19. package/dist/puppeteerTesting/puppeteer/types.d.ts +130 -132
  20. package/dist/puppeteerTesting/vitest/matchers/index.d.ts +33 -30
  21. package/dist/testing/index.d.ts +4 -11
  22. package/dist/testing/mount.d.ts +113 -93
  23. package/dist/testing/wrapController.d.ts +5 -11
  24. package/dist/useLumina.d.ts +5 -2
  25. package/package.json +22 -11
  26. package/dist/context/logger.d.ts +0 -8
  27. package/dist/context/typeScript.d.ts +0 -6
  28. package/dist/context/utils.d.ts +0 -4
  29. package/dist/dependencies/arcgisCore.d.ts +0 -30
  30. package/dist/dependencies/index.d.ts +0 -12
  31. package/dist/dependencies/loaders.d.ts +0 -5
  32. package/dist/dependencies/lumina.d.ts +0 -3
  33. package/dist/dependencies/stencil.d.ts +0 -17
  34. package/dist/dependencies/testSetupFiles.d.ts +0 -13
  35. package/dist/dependencies/utils.d.ts +0 -15
  36. package/dist/docs/config.d.ts +0 -9
  37. package/dist/docs/index.d.ts +0 -10
  38. package/dist/docs/stencilDocsJson.d.ts +0 -130
  39. package/dist/docs/types.d.ts +0 -1
  40. package/dist/docs/vsCodeCustomData/index.d.ts +0 -16
  41. package/dist/docs/vsCodeCustomData/utils.d.ts +0 -3
  42. package/dist/docs/webTypes/description.d.ts +0 -2
  43. package/dist/docs/webTypes/index.d.ts +0 -19
  44. package/dist/docs/webTypes/utils.d.ts +0 -6
  45. package/dist/entrypoints/addNonLazyImports.d.ts +0 -13
  46. package/dist/entrypoints/config.d.ts +0 -17
  47. package/dist/entrypoints/dtsUtils.d.ts +0 -19
  48. package/dist/entrypoints/findUtils.d.ts +0 -6
  49. package/dist/entrypoints/handleComponentImports.d.ts +0 -13
  50. package/dist/entrypoints/resolveTagName.d.ts +0 -18
  51. package/dist/jsxToLitHtml/autoAddNothing.d.ts +0 -8
  52. package/dist/jsxToLitHtml/comments.d.ts +0 -19
  53. package/dist/jsxToLitHtml/convertProps.d.ts +0 -10
  54. package/dist/jsxToLitHtml/imports.d.ts +0 -27
  55. package/dist/jsxToLitHtml/importsConfig.d.ts +0 -17
  56. package/dist/jsxToLitHtml/index.d.ts +0 -20
  57. package/dist/jsxToLitHtml/inferPropType.d.ts +0 -40
  58. package/dist/jsxToLitHtml/insertRepeatCall.d.ts +0 -51
  59. package/dist/jsxToLitHtml/jsxVisitor.d.ts +0 -15
  60. package/dist/jsxToLitHtml/templateParts.d.ts +0 -17
  61. package/dist/jsxToLitHtml/throwOnImportingExternalized.d.ts +0 -10
  62. package/dist/jsxToLitHtml/types.d.ts +0 -74
  63. package/dist/jsxToLitHtml/utils.d.ts +0 -14
  64. package/dist/loader/css.d.ts +0 -20
  65. package/dist/loader/extractor.d.ts +0 -2
  66. package/dist/loader/index.d.ts +0 -21
  67. package/dist/loader/lazy.d.ts +0 -21
  68. package/dist/loader/storybookApiJson.d.ts +0 -6
  69. package/dist/plugins/buildCdn.d.ts +0 -73
  70. package/dist/plugins/buildWebApp.d.ts +0 -3
  71. package/dist/plugins/buildWrappers.d.ts +0 -4
  72. package/dist/plugins/configureVite.d.ts +0 -20
  73. package/dist/plugins/externalizeDependencies.d.ts +0 -30
  74. package/dist/plugins/handleDynamicAssets.d.ts +0 -8
  75. package/dist/plugins/handleStaticAssets.d.ts +0 -9
  76. package/dist/plugins/loadLitCss.d.ts +0 -127
  77. package/dist/plugins/printTotalBuildSize.d.ts +0 -7
  78. package/dist/plugins/provideAssets.d.ts +0 -35
  79. package/dist/plugins/setAssetsPath.d.ts +0 -10
  80. package/dist/plugins/updatePackageJson.d.ts +0 -14
  81. package/dist/publicTypes.d.ts +0 -653
  82. package/dist/puppeteerTesting/globalSetup.d.ts +0 -73
  83. package/dist/puppeteerTesting/injected.d.ts +0 -8
  84. package/dist/puppeteerTesting/puppeteer/browser.d.ts +0 -6
  85. package/dist/puppeteerTesting/vitest/matchers/attributes.d.ts +0 -4
  86. package/dist/puppeteerTesting/vitest/matchers/classList.d.ts +0 -4
  87. package/dist/puppeteerTesting/vitest/matchers/events.d.ts +0 -7
  88. package/dist/puppeteerTesting/vitest/matchers/text.d.ts +0 -2
  89. package/dist/puppeteerTesting/vitest/matchers/utils.d.ts +0 -1
  90. package/dist/puppeteerTesting/vitest/runner.d.ts +0 -19
  91. package/dist/puppeteerTesting/vitest/setupFile.d.ts +0 -1
  92. package/dist/puppeteerTesting/vitest/types.d.ts +0 -6
  93. package/dist/testing/failOnConsole.d.ts +0 -6
  94. package/dist/testing/setupFile.d.ts +0 -1
  95. package/dist/testing/snapshotSerializer.d.ts +0 -12
  96. package/dist/tests/utils.d.ts +0 -4
  97. package/dist/transformers/customElementDeclaration.d.ts +0 -2
  98. package/dist/transformers/index.d.ts +0 -20
  99. package/dist/transformers/injectRuntimeOptions.d.ts +0 -18
  100. package/dist/transformers/liftDecorators.d.ts +0 -21
  101. package/dist/transformers/members.d.ts +0 -10
  102. package/dist/transformers/property.d.ts +0 -10
  103. package/dist/transformers/propertyOptions.d.ts +0 -110
  104. package/dist/transformers/utils.d.ts +0 -9
@@ -1,11 +1,10 @@
1
- import { ResolvedDependencyComponents } from './discover.ts';
2
- export declare function updateLuminaTs(dependencies: readonly ResolvedDependencyComponents[], srcDir: string,
3
- /** Preserved positional argument for compatibility because codemod was passing it */
4
- _unused?: never,
5
- /** Preserved positional argument for compatibility because codemod was passing it */
6
- _unused2?: never, packageJson?: import('@arcgis/components-build-utils').PackageJson): Promise<boolean>;
7
- declare function produceLuminaTs(dependencies: readonly ResolvedDependencyComponents[], packageJson?: import('@arcgis/components-build-utils').PackageJson): string;
8
- export declare const exportsForTests: {
9
- produceLuminaTs: typeof produceLuminaTs;
10
- };
11
- export {};
1
+ import type { ResolvedDependencyComponents } from "./discover.js";
2
+ import type { PackageJson } from "@arcgis/node-toolkit/packageJson";
3
+
4
+ /**
5
+ * @param dependencies
6
+ * @param srcDir
7
+ * @param packageJson
8
+ * @internal
9
+ */
10
+ export function updateLuminaTs(dependencies: readonly ResolvedDependencyComponents[], srcDir: string, packageJson?: PackageJson): Promise<boolean>;
@@ -1,43 +1,6 @@
1
1
  export type VsCodeDocOptions = {
2
- /** @default "docs/vscode.html-custom-data.json" */
3
- htmlFileName?: string;
4
- /** @default "docs/vscode.css-custom-data.json" */
5
- cssFileName?: string;
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
- /** @default "docs/web-types.json" */
3
- webTypesFileName?: string;
4
- /** Adds an icon link to the web-types.json **/
5
- defaultIcon?: string;
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 './dependencies/discover.ts';
2
- import { updateLuminaTs } from './dependencies/updateLumina.ts';
3
- export { useLumina } from './useLumina.ts';
4
- export type * from './publicTypes.ts';
5
- export { inferCdnUrl } from './defaultAssetsUrl.ts';
6
- export type { CompilerContext } from './context/index.ts';
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 @arcgis/stencil-to-lumina codemod
11
+ * These are exposed only for usage by the \@arcgis/stencil-to-lumina codemod
9
12
  *
10
- * @private
13
+ * @internal
11
14
  */
12
- export declare const exportsForCodemod: {
15
+ export const exportsForCodemod: {
13
16
  initializeComponentDependencies: typeof initializeComponentDependencies;
14
17
  updateLuminaTs: typeof updateLuminaTs;
15
- propertyToAttributeMappings: {
16
- readonly common: Required<import('./jsxToLitHtml/config.ts').ElementPropertyToAttributeMappings>;
17
- readonly perElement: Record<string, import('./jsxToLitHtml/config.ts').ElementPropertyToAttributeMappings | undefined>;
18
- };
19
- nativeEvents: Set<string>;
20
- svgElements: Set<string>;
21
- mathMlElements: Set<string>;
22
- alwaysAttributes: Set<string>;
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
+ };