@arcgis/lumina-compiler 4.33.0-next.67 → 4.33.0-next.69

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.
@@ -34,7 +34,7 @@ export declare function checkExplicitPropType(initializer: ts.JsxAttributeValue
34
34
  * explicitly want to overwrite the below prop type inference logic.
35
35
  */
36
36
  export declare function inferPropType(propName: string, initializer: ts.JsxAttributeValue | undefined, tagName: string | typeof dynamicHtmlSymbol | typeof dynamicSvgSymbol): JsxPropType;
37
- declare const specialPropsArray: readonly ["class", "style", "ref", "directives", "key"];
37
+ declare const specialPropsArray: readonly ["class", "style", "ref", "directives", "key", "deferLoad"];
38
38
  type SpecialProp = (typeof specialPropsArray)[number];
39
39
  export type JsxPropType = SpecialProp | "attribute" | "booleanAttribute" | "event" | "property";
40
40
  export {};
@@ -16,6 +16,7 @@ export type JsxContext = {
16
16
  * remove it from the map to not confuse any following resolvers.
17
17
  */
18
18
  readonly customElementsToImport: Set<string>;
19
+ readonly customElementsToImportDeferred: Set<string>;
19
20
  /**
20
21
  * Existing imported modules.
21
22
  *
@@ -64,7 +65,7 @@ export declare const mathMlTag = "mathml";
64
65
  declare const litTagsArray: readonly ["css", "html", "mathml", "staticHtml", "staticSvg", "svg"];
65
66
  export declare const litTags: Set<"html" | "css" | "mathml" | "staticHtml" | "staticSvg" | "svg">;
66
67
  export type LitTag = (typeof litTagsArray)[number];
67
- export declare const jsxImportNames: readonly ["keyed", "ref", "repeat", "live", "css", "html", "mathml", "staticHtml", "staticSvg", "svg", "safeClassMap", "safeStyleMap", "nothing"];
68
+ export declare const jsxImportNames: readonly ["keyed", "ref", "repeat", "live", "css", "html", "mathml", "staticHtml", "staticSvg", "svg", "safeClassMap", "safeStyleMap", "deferLoad", "nothing"];
68
69
  export type JsxImportName = (typeof jsxImportNames)[number];
69
70
  export type JsxHost = ts.JsxElement | ts.JsxFragment | ts.JsxSelfClosingElement;
70
71
  export declare const isJsxHost: (node: ts.Node) => node is JsxHost;
@@ -11,3 +11,4 @@ export declare function safeTrimText(text: string): string;
11
11
  export declare const escapeForTemplateLiteral: (string: string) => string;
12
12
  export declare const shouldQuoteAttributeValue: (value: string) => boolean;
13
13
  export declare const escapeForHtml: (string: string) => string;
14
+ export declare const isCustomElement: (tagName: string | symbol) => tagName is string;
@@ -60,8 +60,8 @@ function E(e) {
60
60
  n = !1;
61
61
  const t = x(
62
62
  /*
63
- * If name is single letter, it was probably minified - thus name not
64
- * stable, thus don't use it. Example: class produced by wrapController()
63
+ * If name is a single letter, it was probably minified - thus is not
64
+ * stable, thus don't use it. Example: class produced by wrapController()
65
65
  */
66
66
  (e.name.length > 1 ? e.name.replaceAll(k, "") : "") || "Test"
67
67
  ), i = t === "test" ? "te-st" : t.includes("-") ? t : `${t}-`;
@@ -1,7 +1,7 @@
1
1
  import { default as ts } from 'typescript';
2
2
  import { FileTransformContext } from '../publicTypes';
3
3
  import { LiftedDecorators } from './liftDecorators';
4
- export declare function transformProperty(context: FileTransformContext, property: ts.AccessorDeclaration | ts.PropertyDeclaration, className: string | undefined, sourceFile: ts.SourceFile, liftedDecorators?: LiftedDecorators): ts.ClassElement;
4
+ export declare function transformProperty(context: FileTransformContext, property: ts.AccessorDeclaration | ts.PropertyDeclaration, className: string | undefined, sourceFile: ts.SourceFile, liftedDecorators: LiftedDecorators): ts.ClassElement;
5
5
  export type ParsedPropertyDecorator = {
6
6
  decorator: ts.Decorator;
7
7
  callExpression: ts.CallExpression;
@@ -108,4 +108,4 @@ import { ApiCustomElementField } from '@arcgis/api-extractor';
108
108
  *
109
109
  * See also https://github.com/runem/lit-analyzer/blob/master/packages/lit-analyzer/src/lib/rules/no-incompatible-property-type.ts
110
110
  */
111
- export declare function transformPropertyOptions(property: ts.AccessorDeclaration | ts.PropertyDeclaration, decorator: ParsedPropertyDecorator, context: FileTransformContext, sourceFile: ts.SourceFile, apiProperty: ApiCustomElementField | undefined): ts.ObjectLiteralExpression | undefined;
111
+ export declare function transformPropertyOptions(property: ts.AccessorDeclaration | ts.PropertyDeclaration, decorator: ParsedPropertyDecorator, context: FileTransformContext, sourceFile: ts.SourceFile, apiProperty: ApiCustomElementField): ts.ObjectLiteralExpression | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "4.33.0-next.67",
3
+ "version": "4.33.0-next.69",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
- "@arcgis/api-extractor": "4.33.0-next.67",
22
- "@arcgis/components-build-utils": "4.33.0-next.67",
23
- "@arcgis/components-utils": "4.33.0-next.67",
21
+ "@arcgis/api-extractor": "4.33.0-next.69",
22
+ "@arcgis/components-build-utils": "4.33.0-next.69",
23
+ "@arcgis/components-utils": "4.33.0-next.69",
24
24
  "chalk": "^5.3.0",
25
25
  "esbuild": "^0.24.0",
26
26
  "js-beautify": "^1.15.1",
@@ -36,6 +36,6 @@
36
36
  "vitest-fail-on-console": "^0.7.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "@arcgis/lumina": "~4.33.0-next.67"
39
+ "@arcgis/lumina": "~4.33.0-next.69"
40
40
  }
41
41
  }