@arcgis/codemod 6.0.0-next.3 → 6.0.0-next.31
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/chunks/classification.js +168 -126
- package/dist/chunks/cli.js +394 -228
- package/dist/chunks/codemod5.js +0 -1
- package/dist/chunks/codemod7.js +1214 -1232
- package/dist/chunks/componentAudit.js +272 -0
- package/dist/chunks/format.js +140 -112
- package/dist/chunks/index.js +1087 -312
- package/dist/chunks/index2.js +112 -99
- package/dist/chunks/index3.js +351 -0
- package/dist/chunks/legacyCompatibility.js +210 -0
- package/dist/chunks/sync.js +146 -142
- package/dist/chunks/syncMarkdown.js +42 -0
- package/dist/chunks/useProjectInstance.js +27 -24
- package/package.json +8 -5
- package/dist/chunks/hardcodedBehavior.js +0 -63
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import i from "typescript";
|
|
2
|
-
import { findPath as s } from "@arcgis/node-toolkit/file";
|
|
3
|
-
import { path as d } from "@arcgis/node-toolkit/path";
|
|
4
|
-
import { retrievePackageJson as u } from "@arcgis/node-toolkit/packageJson";
|
|
5
|
-
function h(e) {
|
|
6
|
-
return typeof e == "string" ? e : e.map((t) => t.kind === i.SyntaxKind.JSDocText ? t.text : g(t.getText())).join("");
|
|
7
|
-
}
|
|
8
|
-
function D(e) {
|
|
9
|
-
return e === void 0 ? void 0 : p(i.displayPartsToString([...e]));
|
|
10
|
-
}
|
|
11
|
-
function p(e) {
|
|
12
|
-
return e.replace(
|
|
13
|
-
/\{@link(?:code|plain)?\s+([\s\S]*?)\}/gu,
|
|
14
|
-
(t, n) => c(n)
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
function g(e) {
|
|
18
|
-
const t = /^\{@link(?:code|plain)?\s+([\s\S]*?)\}$/u.exec(e)?.[1];
|
|
19
|
-
return t === void 0 ? e : c(t);
|
|
20
|
-
}
|
|
21
|
-
function c(e) {
|
|
22
|
-
const t = e.trim().replace(/^(\S+)\s+([/:#!.])/u, "$1$2"), n = t.indexOf("|");
|
|
23
|
-
if (n !== -1)
|
|
24
|
-
return t.slice(n + 1).trim() || t.slice(0, n).trim();
|
|
25
|
-
const [r, ...a] = t.split(/\s+/u);
|
|
26
|
-
return a.join(" ") || r;
|
|
27
|
-
}
|
|
28
|
-
function S(e, t) {
|
|
29
|
-
const n = s("package.json", e);
|
|
30
|
-
return n === void 0 ? t : u(d.dirname(n)).name ?? t;
|
|
31
|
-
}
|
|
32
|
-
const o = {
|
|
33
|
-
excludedPackageNames: /* @__PURE__ */ new Set([
|
|
34
|
-
"@arcgis/charts-components-react",
|
|
35
|
-
"@arcgis/coding-components-react",
|
|
36
|
-
"@arcgis/components-build-utils",
|
|
37
|
-
"@arcgis/map-components-react",
|
|
38
|
-
"@arcgis/portal-components-react",
|
|
39
|
-
"@arcgis-test/lit-components-react"
|
|
40
|
-
]),
|
|
41
|
-
excludedDefinitionPathFragments: ["test-package"],
|
|
42
|
-
ignoreDeprecatedApis: ["getReactWrapperOptions"],
|
|
43
|
-
ignoredDeprecationsByIncludes: ["React wrappers are not needed in React 19 or above"]
|
|
44
|
-
};
|
|
45
|
-
function k(e) {
|
|
46
|
-
return e !== void 0 && o.excludedPackageNames.has(e);
|
|
47
|
-
}
|
|
48
|
-
function P(e) {
|
|
49
|
-
return o.excludedDefinitionPathFragments.some(
|
|
50
|
-
(t) => e.includes(t)
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
function v(e, t) {
|
|
54
|
-
return o.ignoreDeprecatedApis.some((n) => n === e) || t != null && o.ignoredDeprecationsByIncludes.some((n) => t.includes(n));
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
v as a,
|
|
58
|
-
h as b,
|
|
59
|
-
D as c,
|
|
60
|
-
P as d,
|
|
61
|
-
S as g,
|
|
62
|
-
k as s
|
|
63
|
-
};
|