@arcgis/api-extractor 4.33.0-next.65 → 4.33.0-next.67

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/apiJson.d.ts CHANGED
@@ -817,16 +817,15 @@ export type ApiCustomElementField = ApiClassField & {
817
817
  */
818
818
  docsTags?: ApiDocsTag[];
819
819
  /**
820
- * Whether field has both getter and setter, and their types are different.
821
- * The actual getter type is not included in the api.json at the moment, but
822
- * can be added if that information is needed.
820
+ * If getter type differs from setter type, this property will
821
+ * contain the getter type.
823
822
  *
824
- * @default false
823
+ * @default undefined
825
824
  *
826
825
  * @remarks
827
826
  * Not present in vanilla custom-elements-manifest.
828
827
  */
829
- getterTypeDiffers?: boolean;
828
+ getterType?: Pick<ApiType, "text">;
830
829
  /**
831
830
  * For some properties, we show them as read-only in the docs and in the
832
831
  * typings but don't actually enforce read-only at runtime.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import o from "typescript";
2
2
  import { path as d } from "@arcgis/components-build-utils";
3
- const p = "@arcgis/api-extractor", f = "4.33.0-next.65", g = (t) => t.kind === "method", S = (t) => t.kind === "field";
3
+ const p = "@arcgis/api-extractor", f = "4.33.0-next.67", g = (t) => t.kind === "method", S = (t) => t.kind === "field";
4
4
  function u(t, i) {
5
- const e = t.path.split("/"), s = e.pop(), r = e.join("/"), a = i.path.split("/"), l = a.pop(), n = a.join("/");
6
- return r === n ? s < l ? -1 : 1 : r.startsWith(n) ? 1 : n.startsWith(r) || r < n ? -1 : 1;
5
+ const e = t.path.split("/"), r = e.pop(), s = e.join("/"), a = i.path.split("/"), l = a.pop(), n = a.join("/");
6
+ return s === n ? r < l ? -1 : 1 : s.startsWith(n) ? 1 : n.startsWith(s) || s < n ? -1 : 1;
7
7
  }
8
8
  const k = "global:";
9
9
  class y {
@@ -25,8 +25,8 @@ class y {
25
25
  }
26
26
  extractModules(i) {
27
27
  const e = [];
28
- for (const s of i)
29
- this.file = s, e.push(this.extractModule(s));
28
+ for (const r of i)
29
+ this.file = r, e.push(this.extractModule(r));
30
30
  return this.options.isFullApiExtraction && e.sort(u), e;
31
31
  }
32
32
  extractModule(i) {
@@ -37,10 +37,10 @@ class y {
37
37
  exports: void 0
38
38
  };
39
39
  this.apiModule = e;
40
- const s = this.extractDeclarations(i);
41
- if (e.declarations = s, this.options.isFullApiExtraction) {
42
- const r = this.inferExports(s);
43
- r.length > 0 && (e.exports = r);
40
+ const r = this.extractDeclarations(i);
41
+ if (e.declarations = r, this.options.isFullApiExtraction) {
42
+ const s = this.inferExports(r);
43
+ s.length > 0 && (e.exports = s);
44
44
  }
45
45
  return e;
46
46
  }
@@ -49,9 +49,9 @@ class y {
49
49
  */
50
50
  extractDeclarations(i) {
51
51
  const e = [];
52
- for (const s of i.statements) {
53
- const r = this.extractDeclaration(s);
54
- r !== void 0 && e.push(r);
52
+ for (const r of i.statements) {
53
+ const s = this.extractDeclaration(r);
54
+ s !== void 0 && e.push(s);
55
55
  }
56
56
  return e;
57
57
  }
@@ -60,9 +60,9 @@ class y {
60
60
  */
61
61
  inferExports(i) {
62
62
  const e = [];
63
- for (const s of i) {
64
- const r = this.inferExport(s);
65
- r !== void 0 && e.push(r);
63
+ for (const r of i) {
64
+ const s = this.inferExport(r);
65
+ s !== void 0 && e.push(s);
66
66
  }
67
67
  return e;
68
68
  }
@@ -72,8 +72,8 @@ const E = (t) => t.modifiers?.some?.(
72
72
  ) ?? !1;
73
73
  function v(t, i, e) {
74
74
  if (!i.default && "initializer" in t && t.initializer) {
75
- const s = c(t.initializer);
76
- x(s) && (i.default = s.getText(e));
75
+ const r = c(t.initializer);
76
+ x(r) && (i.default = r.getText(e));
77
77
  }
78
78
  }
79
79
  const x = (t) => o.isLiteralExpression(t) || t.kind === o.SyntaxKind.TrueKeyword || t.kind === o.SyntaxKind.FalseKeyword || o.isPrefixUnaryExpression(t) && o.isLiteralExpression(t.operand);
@@ -81,7 +81,7 @@ function c(t) {
81
81
  return o.isSatisfiesExpression(t) || o.isParenthesizedExpression(t) ? c(t.expression) : t;
82
82
  }
83
83
  function K(t) {
84
- if (o.isIdentifier(t) || o.isStringLiteralLike(t))
84
+ if (t !== void 0 && (o.isIdentifier(t) || o.isStringLiteralLike(t)))
85
85
  return t.text;
86
86
  }
87
87
  export {
@@ -1,9 +1,12 @@
1
1
  import { default as ts } from 'typescript';
2
2
  import { ApiPropertyLike } from '../apiJson';
3
+ /**
4
+ * Check if a member has a static, private, or protected modifier.
5
+ */
3
6
  export declare const hasIgnoredModifier: (member: ts.ClassElement) => boolean;
4
7
  export declare function setDefaultFromInitializer(node: ts.AccessorDeclaration | ts.PropertyDeclaration, property: ApiPropertyLike, sourceFile: ts.SourceFile): void;
5
8
  /**
6
9
  * Convert property name node into a string. Converts Identifier and
7
10
  * StringLiteralLike nodes. The rest return undefined.
8
11
  */
9
- export declare function getMemberName(name: ts.PropertyName): string | undefined;
12
+ export declare function getMemberName(name?: ts.PropertyName): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/api-extractor",
3
- "version": "4.33.0-next.65",
3
+ "version": "4.33.0-next.67",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -14,8 +14,8 @@
14
14
  ],
15
15
  "license": "SEE LICENSE IN LICENSE.md",
16
16
  "dependencies": {
17
- "@arcgis/components-build-utils": "4.33.0-next.65",
18
- "@arcgis/components-utils": "4.33.0-next.65",
17
+ "@arcgis/components-build-utils": "4.33.0-next.67",
18
+ "@arcgis/components-utils": "4.33.0-next.67",
19
19
  "tslib": "^2.7.0",
20
20
  "typescript": "~5.6.3"
21
21
  }