@arcgis/lumina-compiler 5.2.0-next.4 → 5.2.0-next.41

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 (103) hide show
  1. package/dist/context/index.d.ts +158 -296
  2. package/dist/context/types.d.ts +18 -34
  3. package/dist/defaultAssetsUrl.d.ts +6 -6
  4. package/dist/dependencies/discover.d.ts +43 -35
  5. package/dist/dependencies/updateLumina.d.ts +10 -11
  6. package/dist/docs/vsCodeCustomData/types.d.ts +5 -42
  7. package/dist/docs/webTypes/types.d.ts +5 -76
  8. package/dist/index.d.ts +20 -20
  9. package/dist/index.js +1404 -1412
  10. package/dist/jsxToLitHtml/config.d.ts +93 -121
  11. package/dist/{logger-C9XakOcA.js → logger-edpIalAo.js} +1 -1
  12. package/dist/options.d.ts +675 -0
  13. package/dist/puppeteerTesting/index.d.ts +18 -11
  14. package/dist/puppeteerTesting/index.js +105 -8
  15. package/dist/puppeteerTesting/puppeteer/element.d.ts +250 -217
  16. package/dist/puppeteerTesting/puppeteer/events.d.ts +15 -21
  17. package/dist/puppeteerTesting/puppeteer/page.d.ts +8 -5
  18. package/dist/puppeteerTesting/puppeteer/types.d.ts +130 -132
  19. package/dist/puppeteerTesting/vitest/matchers/index.d.ts +33 -30
  20. package/dist/testing/index.d.ts +4 -11
  21. package/dist/testing/mount.d.ts +113 -93
  22. package/dist/testing/wrapController.d.ts +5 -11
  23. package/dist/useLumina.d.ts +5 -2
  24. package/package.json +22 -11
  25. package/dist/context/logger.d.ts +0 -8
  26. package/dist/context/typeScript.d.ts +0 -6
  27. package/dist/context/utils.d.ts +0 -4
  28. package/dist/dependencies/arcgisCore.d.ts +0 -30
  29. package/dist/dependencies/index.d.ts +0 -12
  30. package/dist/dependencies/loaders.d.ts +0 -5
  31. package/dist/dependencies/lumina.d.ts +0 -3
  32. package/dist/dependencies/stencil.d.ts +0 -17
  33. package/dist/dependencies/testSetupFiles.d.ts +0 -13
  34. package/dist/dependencies/utils.d.ts +0 -15
  35. package/dist/docs/config.d.ts +0 -9
  36. package/dist/docs/index.d.ts +0 -10
  37. package/dist/docs/stencilDocsJson.d.ts +0 -130
  38. package/dist/docs/types.d.ts +0 -1
  39. package/dist/docs/vsCodeCustomData/index.d.ts +0 -16
  40. package/dist/docs/vsCodeCustomData/utils.d.ts +0 -3
  41. package/dist/docs/webTypes/description.d.ts +0 -2
  42. package/dist/docs/webTypes/index.d.ts +0 -19
  43. package/dist/docs/webTypes/utils.d.ts +0 -6
  44. package/dist/entrypoints/addNonLazyImports.d.ts +0 -13
  45. package/dist/entrypoints/config.d.ts +0 -17
  46. package/dist/entrypoints/dtsUtils.d.ts +0 -19
  47. package/dist/entrypoints/findUtils.d.ts +0 -6
  48. package/dist/entrypoints/handleComponentImports.d.ts +0 -13
  49. package/dist/entrypoints/resolveTagName.d.ts +0 -18
  50. package/dist/jsxToLitHtml/autoAddNothing.d.ts +0 -8
  51. package/dist/jsxToLitHtml/comments.d.ts +0 -19
  52. package/dist/jsxToLitHtml/convertProps.d.ts +0 -10
  53. package/dist/jsxToLitHtml/imports.d.ts +0 -27
  54. package/dist/jsxToLitHtml/importsConfig.d.ts +0 -17
  55. package/dist/jsxToLitHtml/index.d.ts +0 -20
  56. package/dist/jsxToLitHtml/inferPropType.d.ts +0 -40
  57. package/dist/jsxToLitHtml/insertRepeatCall.d.ts +0 -51
  58. package/dist/jsxToLitHtml/jsxVisitor.d.ts +0 -15
  59. package/dist/jsxToLitHtml/templateParts.d.ts +0 -17
  60. package/dist/jsxToLitHtml/throwOnImportingExternalized.d.ts +0 -10
  61. package/dist/jsxToLitHtml/types.d.ts +0 -74
  62. package/dist/jsxToLitHtml/utils.d.ts +0 -14
  63. package/dist/loader/css.d.ts +0 -20
  64. package/dist/loader/extractor.d.ts +0 -2
  65. package/dist/loader/index.d.ts +0 -21
  66. package/dist/loader/lazy.d.ts +0 -21
  67. package/dist/loader/storybookApiJson.d.ts +0 -6
  68. package/dist/plugins/buildCdn.d.ts +0 -73
  69. package/dist/plugins/buildWebApp.d.ts +0 -3
  70. package/dist/plugins/buildWrappers.d.ts +0 -4
  71. package/dist/plugins/configureVite.d.ts +0 -20
  72. package/dist/plugins/externalizeDependencies.d.ts +0 -30
  73. package/dist/plugins/handleDynamicAssets.d.ts +0 -8
  74. package/dist/plugins/handleStaticAssets.d.ts +0 -9
  75. package/dist/plugins/loadLitCss.d.ts +0 -127
  76. package/dist/plugins/printTotalBuildSize.d.ts +0 -7
  77. package/dist/plugins/provideAssets.d.ts +0 -35
  78. package/dist/plugins/setAssetsPath.d.ts +0 -10
  79. package/dist/plugins/updatePackageJson.d.ts +0 -14
  80. package/dist/publicTypes.d.ts +0 -653
  81. package/dist/puppeteerTesting/globalSetup.d.ts +0 -73
  82. package/dist/puppeteerTesting/injected.d.ts +0 -8
  83. package/dist/puppeteerTesting/puppeteer/browser.d.ts +0 -6
  84. package/dist/puppeteerTesting/vitest/matchers/attributes.d.ts +0 -4
  85. package/dist/puppeteerTesting/vitest/matchers/classList.d.ts +0 -4
  86. package/dist/puppeteerTesting/vitest/matchers/events.d.ts +0 -7
  87. package/dist/puppeteerTesting/vitest/matchers/text.d.ts +0 -2
  88. package/dist/puppeteerTesting/vitest/matchers/utils.d.ts +0 -1
  89. package/dist/puppeteerTesting/vitest/runner.d.ts +0 -19
  90. package/dist/puppeteerTesting/vitest/setupFile.d.ts +0 -1
  91. package/dist/puppeteerTesting/vitest/types.d.ts +0 -6
  92. package/dist/testing/failOnConsole.d.ts +0 -6
  93. package/dist/testing/setupFile.d.ts +0 -1
  94. package/dist/testing/snapshotSerializer.d.ts +0 -12
  95. package/dist/tests/utils.d.ts +0 -4
  96. package/dist/transformers/customElementDeclaration.d.ts +0 -2
  97. package/dist/transformers/index.d.ts +0 -20
  98. package/dist/transformers/injectRuntimeOptions.d.ts +0 -18
  99. package/dist/transformers/liftDecorators.d.ts +0 -21
  100. package/dist/transformers/members.d.ts +0 -10
  101. package/dist/transformers/property.d.ts +0 -10
  102. package/dist/transformers/propertyOptions.d.ts +0 -110
  103. package/dist/transformers/utils.d.ts +0 -9
@@ -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
+ };