@apify/docusaurus-plugin-typedoc-api 4.4.6 → 4.4.7

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.
@@ -32,7 +32,7 @@ class InheritanceGraph {
32
32
 
33
33
  /**
34
34
  * Resolves the inheritance relationships between the objects.
35
- *
35
+ *
36
36
  * Adds the inherited symbols to the descendants, and sets the `extendedTypes` / `extendedBy` properties.
37
37
  * The symbol inheritance works transitively, so if `A` inherits from `B` and `B` inherits from `C`, then `A` inherits from `C`.
38
38
  *
@@ -55,8 +55,8 @@ class InheritanceGraph {
55
55
 
56
56
  /**
57
57
  * Given two TypeDoc objects, resolves the inherited symbols between them.
58
- * This method injects the ancestors' symbols into the descendants.
59
- *
58
+ * This method injects the ancestors' symbols into the descendants.
59
+ *
60
60
  * In case the descendant already has a symbol with the same name, the symbol is not injected.
61
61
  * @param ancestor The ancestor object.
62
62
  * @param descendant The descendant object.
@@ -97,14 +97,14 @@ class InheritanceGraph {
97
97
  title: groupName
98
98
  });
99
99
  }
100
- ownChild = _objectSpread(_objectSpread({}, inheritedChild), {}, {
100
+ ownChild = JSON.parse(JSON.stringify(_objectSpread(_objectSpread({}, inheritedChild), {}, {
101
101
  id: childId,
102
102
  inheritedFrom: inheritedChild.inheritedFrom ?? {
103
103
  name: `${ancestor.name}.${inheritedChild.name}`,
104
104
  target: inheritedChild.id,
105
105
  type: 'reference'
106
106
  }
107
- });
107
+ })));
108
108
  descendant.children.push(ownChild);
109
109
  }
110
110
  if (!ownChild.comment?.summary?.[0]?.text) {
@@ -128,10 +128,10 @@ class InheritanceGraph {
128
128
 
129
129
  /**
130
130
  * Returns the topological order of the inheritance graph.
131
- *
131
+ *
132
132
  * The topological order puts the ancestors before their descendants.
133
133
  * This ensures that all the ancestors are processed before the descendants.
134
- * @returns
134
+ * @returns
135
135
  */
136
136
  getTopologicalOrder() {
137
137
  const visited = new Set();
@@ -1 +1 @@
1
- {"version":3,"file":"inheritance.js","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GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC5C,MAAM,IAAI,CAAC,IAAI,EAAE;AACjB;AACA,QAAQ,OAAO;AACf,OAAO;AACP,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC5B,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE;AAC7D,QAAQ,KAAK,CAAC,KAAK,CAAC,CAAC;AACrB,OAAO;AACP,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvB,KAAK,CAAC;AACN,IAAI,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE;AAC7C,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;AAClB,KAAK;AACL,IAAI,OAAO,KAAK,CAAC,OAAO,EAAE,CAAC;AAC3B,GAAG;AACH;;;;"}
1
+ {"version":3,"file":"inheritance.js","sources":["../../../src/plugin/python/inheritance.ts"],"sourcesContent":null,"names":["getGroupName","sortChildren"],"mappings":";;;;AACO,MAAM,gBAAgB,CAAC;AAC9B,EAAE,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;AACpB,EAAE,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;AACvB,EAAE,gBAAgB,CAAC;AACnB,EAAE,WAAW,CAAC,gBAAgB,EAAE;AAChC,IAAI,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC7C,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,eAAe,CAAC,UAAU,EAAE,KAAK,EAAE;AACrC,IAAI,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;AACzD,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC9B,IAA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,CAAC,IAAI,CAAC,CAAC;AAClB,KAAK;AACL,IAAI,OAAO,KAAK,CAAC,OAAO,EAAE,CAAC;AAC3B,GAAG;AACH;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docusaurus-plugin-typedoc-api",
3
- "version": "4.4.6",
3
+ "version": "4.4.7",
4
4
  "description": "Docusaurus plugin that provides source code API documentation powered by TypeDoc. ",
5
5
  "keywords": [
6
6
  "docusaurus",
@@ -35,7 +35,7 @@ export class InheritanceGraph {
35
35
 
36
36
  /**
37
37
  * Resolves the inheritance relationships between the objects.
38
- *
38
+ *
39
39
  * Adds the inherited symbols to the descendants, and sets the `extendedTypes` / `extendedBy` properties.
40
40
  * The symbol inheritance works transitively, so if `A` inherits from `B` and `B` inherits from `C`, then `A` inherits from `C`.
41
41
  *
@@ -61,15 +61,15 @@ export class InheritanceGraph {
61
61
 
62
62
  /**
63
63
  * Given two TypeDoc objects, resolves the inherited symbols between them.
64
- * This method injects the ancestors' symbols into the descendants.
65
- *
64
+ * This method injects the ancestors' symbols into the descendants.
65
+ *
66
66
  * In case the descendant already has a symbol with the same name, the symbol is not injected.
67
67
  * @param ancestor The ancestor object.
68
68
  * @param descendant The descendant object.
69
69
  */
70
70
  protected resolveInheritedSymbols(ancestor: TypeDocObject, descendant: TypeDocObject) {
71
71
  descendant.children ??= [];
72
-
72
+
73
73
  descendant.extendedTypes = [
74
74
  ...(descendant.extendedTypes ?? []),
75
75
  {
@@ -78,7 +78,7 @@ export class InheritanceGraph {
78
78
  type: 'reference',
79
79
  },
80
80
  ];
81
-
81
+
82
82
  ancestor.extendedBy = [
83
83
  ...(ancestor.extendedBy ?? []),
84
84
  {
@@ -87,10 +87,10 @@ export class InheritanceGraph {
87
87
  type: 'reference',
88
88
  },
89
89
  ];
90
-
90
+
91
91
  for (const inheritedChild of ancestor.children ?? []) {
92
92
  let ownChild = descendant.children?.find((x) => x.name === inheritedChild.name);
93
-
93
+
94
94
  if (ownChild) {
95
95
  ownChild.overwrites = {
96
96
  name: `${ancestor.name}.${inheritedChild.name}`,
@@ -99,16 +99,16 @@ export class InheritanceGraph {
99
99
  };
100
100
  } else {
101
101
  const childId = this.symbolIdResolver.getNewId();
102
-
102
+
103
103
  const { groupName } = getGroupName(inheritedChild);
104
104
  if (!groupName) {
105
105
  throw new Error(
106
106
  `Couldn't resolve the group name for ${inheritedChild.name} (inherited child of ${ancestor.name})`,
107
107
  );
108
108
  }
109
-
109
+
110
110
  const group = descendant.groups?.find((g) => g.title === groupName);
111
-
111
+
112
112
  if (group) {
113
113
  group.children.push(childId);
114
114
  } else {
@@ -117,8 +117,8 @@ export class InheritanceGraph {
117
117
  title: groupName,
118
118
  });
119
119
  }
120
-
121
- ownChild = {
120
+
121
+ ownChild = JSON.parse(JSON.stringify({
122
122
  ...inheritedChild,
123
123
  id: childId,
124
124
  inheritedFrom: inheritedChild.inheritedFrom ?? {
@@ -126,12 +126,12 @@ export class InheritanceGraph {
126
126
  target: inheritedChild.id,
127
127
  type: 'reference',
128
128
  },
129
- };
129
+ })) as TypeDocObject;
130
130
 
131
131
  descendant.children.push(ownChild);
132
132
  }
133
133
 
134
-
134
+
135
135
  if (!ownChild.comment?.summary?.[0]?.text) {
136
136
  for (const key of Object.keys(inheritedChild)) {
137
137
  if (!['id','inheritedFrom','overwrites','sources'].includes(key)) {
@@ -156,10 +156,10 @@ export class InheritanceGraph {
156
156
 
157
157
  /**
158
158
  * Returns the topological order of the inheritance graph.
159
- *
159
+ *
160
160
  * The topological order puts the ancestors before their descendants.
161
161
  * This ensures that all the ancestors are processed before the descendants.
162
- * @returns
162
+ * @returns
163
163
  */
164
164
  protected getTopologicalOrder(): TypeDocObject[] {
165
165
  const visited = new Set<TypeDocObject['name']>();