@uapkg/diagnostics-format 1.3.0 → 1.3.2

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 (145) hide show
  1. package/dist/contracts/FormatterTypes.d.ts +13 -10
  2. package/dist/contracts/FormatterTypes.d.ts.map +1 -1
  3. package/dist/contracts/FormatterTypes.js +1 -2
  4. package/dist/defaults/defaultFormatters.d.ts +5 -2
  5. package/dist/defaults/defaultFormatters.d.ts.map +1 -1
  6. package/dist/defaults/defaultFormatters.js +30 -23
  7. package/dist/defaults/defaultFormatters.js.map +1 -1
  8. package/dist/formatters/PlainTextFormatter.d.ts +5 -2
  9. package/dist/formatters/PlainTextFormatter.d.ts.map +1 -1
  10. package/dist/formatters/PlainTextFormatter.js +13 -12
  11. package/dist/formatters/PlainTextFormatter.js.map +1 -1
  12. package/dist/formatters/config/configFormatters.d.ts +5 -2
  13. package/dist/formatters/config/configFormatters.d.ts.map +1 -1
  14. package/dist/formatters/config/configFormatters.js +50 -56
  15. package/dist/formatters/config/configFormatters.js.map +1 -1
  16. package/dist/formatters/installer/installerFormatters.d.ts +5 -2
  17. package/dist/formatters/installer/installerFormatters.d.ts.map +1 -1
  18. package/dist/formatters/installer/installerFormatters.js +51 -47
  19. package/dist/formatters/installer/installerFormatters.js.map +1 -1
  20. package/dist/formatters/manifest/manifestFormatters.d.ts +5 -2
  21. package/dist/formatters/manifest/manifestFormatters.d.ts.map +1 -1
  22. package/dist/formatters/manifest/manifestFormatters.js +40 -45
  23. package/dist/formatters/manifest/manifestFormatters.js.map +1 -1
  24. package/dist/formatters/pack/packFormatters.d.ts +5 -2
  25. package/dist/formatters/pack/packFormatters.d.ts.map +1 -1
  26. package/dist/formatters/pack/packFormatters.js +9 -9
  27. package/dist/formatters/pack/packFormatters.js.map +1 -1
  28. package/dist/formatters/postinstall/postinstallFormatters.d.ts +5 -2
  29. package/dist/formatters/postinstall/postinstallFormatters.d.ts.map +1 -1
  30. package/dist/formatters/postinstall/postinstallFormatters.js +35 -36
  31. package/dist/formatters/postinstall/postinstallFormatters.js.map +1 -1
  32. package/dist/formatters/publishing/publishingFormatters.d.ts +14 -0
  33. package/dist/formatters/publishing/publishingFormatters.d.ts.map +1 -0
  34. package/dist/formatters/publishing/publishingFormatters.js +45 -0
  35. package/dist/formatters/publishing/publishingFormatters.js.map +1 -0
  36. package/dist/formatters/registry/registryFormatters.d.ts +5 -2
  37. package/dist/formatters/registry/registryFormatters.d.ts.map +1 -1
  38. package/dist/formatters/registry/registryFormatters.js +33 -34
  39. package/dist/formatters/registry/registryFormatters.js.map +1 -1
  40. package/dist/formatters/registryTools/registryToolsFormatters.d.ts +5 -2
  41. package/dist/formatters/registryTools/registryToolsFormatters.d.ts.map +1 -1
  42. package/dist/formatters/registryTools/registryToolsFormatters.js +160 -135
  43. package/dist/formatters/registryTools/registryToolsFormatters.js.map +1 -1
  44. package/dist/formatters/resolver/resolverFormatters.d.ts +5 -2
  45. package/dist/formatters/resolver/resolverFormatters.d.ts.map +1 -1
  46. package/dist/formatters/resolver/resolverFormatters.js +20 -18
  47. package/dist/formatters/resolver/resolverFormatters.js.map +1 -1
  48. package/dist/formatters/safety/safetyFormatters.d.ts +5 -2
  49. package/dist/formatters/safety/safetyFormatters.d.ts.map +1 -1
  50. package/dist/formatters/safety/safetyFormatters.js +28 -26
  51. package/dist/formatters/safety/safetyFormatters.js.map +1 -1
  52. package/dist/formatters/spec/specFormatters.d.ts +5 -2
  53. package/dist/formatters/spec/specFormatters.d.ts.map +1 -1
  54. package/dist/formatters/spec/specFormatters.js +32 -19
  55. package/dist/formatters/spec/specFormatters.js.map +1 -1
  56. package/dist/index.d.ts +15 -14
  57. package/dist/index.js +15 -16
  58. package/dist/ink/components/configInkComponents.d.ts +5 -2
  59. package/dist/ink/components/configInkComponents.d.ts.map +1 -1
  60. package/dist/ink/components/configInkComponents.js +93 -18
  61. package/dist/ink/components/configInkComponents.js.map +1 -1
  62. package/dist/ink/components/installerInkComponents.d.ts +5 -2
  63. package/dist/ink/components/installerInkComponents.d.ts.map +1 -1
  64. package/dist/ink/components/installerInkComponents.js +170 -24
  65. package/dist/ink/components/installerInkComponents.js.map +1 -1
  66. package/dist/ink/components/manifestInkComponents.d.ts +5 -2
  67. package/dist/ink/components/manifestInkComponents.d.ts.map +1 -1
  68. package/dist/ink/components/manifestInkComponents.js +139 -34
  69. package/dist/ink/components/manifestInkComponents.js.map +1 -1
  70. package/dist/ink/components/packInkComponents.d.ts +5 -2
  71. package/dist/ink/components/packInkComponents.d.ts.map +1 -1
  72. package/dist/ink/components/packInkComponents.js +22 -7
  73. package/dist/ink/components/packInkComponents.js.map +1 -1
  74. package/dist/ink/components/postinstallInkComponents.d.ts +5 -2
  75. package/dist/ink/components/postinstallInkComponents.d.ts.map +1 -1
  76. package/dist/ink/components/postinstallInkComponents.js +124 -21
  77. package/dist/ink/components/postinstallInkComponents.js.map +1 -1
  78. package/dist/ink/components/publishingInkComponents.d.ts +6 -0
  79. package/dist/ink/components/publishingInkComponents.d.ts.map +1 -0
  80. package/dist/ink/components/publishingInkComponents.js +55 -0
  81. package/dist/ink/components/publishingInkComponents.js.map +1 -0
  82. package/dist/ink/components/registryInkComponents.d.ts +5 -2
  83. package/dist/ink/components/registryInkComponents.d.ts.map +1 -1
  84. package/dist/ink/components/registryInkComponents.js +109 -24
  85. package/dist/ink/components/registryInkComponents.js.map +1 -1
  86. package/dist/ink/components/resolverInkComponents.d.ts +5 -2
  87. package/dist/ink/components/resolverInkComponents.d.ts.map +1 -1
  88. package/dist/ink/components/resolverInkComponents.js +97 -18
  89. package/dist/ink/components/resolverInkComponents.js.map +1 -1
  90. package/dist/ink/components/safetyInkComponents.d.ts +5 -2
  91. package/dist/ink/components/safetyInkComponents.d.ts.map +1 -1
  92. package/dist/ink/components/safetyInkComponents.js +72 -12
  93. package/dist/ink/components/safetyInkComponents.js.map +1 -1
  94. package/dist/ink/components/specInkComponents.d.ts +5 -2
  95. package/dist/ink/components/specInkComponents.d.ts.map +1 -1
  96. package/dist/ink/components/specInkComponents.js +44 -12
  97. package/dist/ink/components/specInkComponents.js.map +1 -1
  98. package/dist/ink/contracts/InkTypes.d.ts +15 -9
  99. package/dist/ink/contracts/InkTypes.d.ts.map +1 -1
  100. package/dist/ink/contracts/InkTypes.js +1 -2
  101. package/dist/ink/defaults/defaultInkComponents.d.ts +5 -2
  102. package/dist/ink/defaults/defaultInkComponents.d.ts.map +1 -1
  103. package/dist/ink/defaults/defaultInkComponents.js +35 -28
  104. package/dist/ink/defaults/defaultInkComponents.js.map +1 -1
  105. package/dist/ink/index.d.ts +17 -16
  106. package/dist/ink/index.js +17 -28
  107. package/dist/ink/primitives/HintLine.d.ts +7 -4
  108. package/dist/ink/primitives/HintLine.d.ts.map +1 -1
  109. package/dist/ink/primitives/HintLine.js +22 -9
  110. package/dist/ink/primitives/HintLine.js.map +1 -1
  111. package/dist/ink/primitives/PlainTextBody.d.ts +6 -3
  112. package/dist/ink/primitives/PlainTextBody.d.ts.map +1 -1
  113. package/dist/ink/primitives/PlainTextBody.js +13 -8
  114. package/dist/ink/primitives/PlainTextBody.js.map +1 -1
  115. package/dist/ink/primitives/SeverityBadge.d.ts +8 -5
  116. package/dist/ink/primitives/SeverityBadge.d.ts.map +1 -1
  117. package/dist/ink/primitives/SeverityBadge.js +28 -11
  118. package/dist/ink/primitives/SeverityBadge.js.map +1 -1
  119. package/dist/ink/registry/DiagnosticInkRegistry.d.ts +11 -8
  120. package/dist/ink/registry/DiagnosticInkRegistry.d.ts.map +1 -1
  121. package/dist/ink/registry/DiagnosticInkRegistry.js +32 -29
  122. package/dist/ink/registry/DiagnosticInkRegistry.js.map +1 -1
  123. package/dist/ink/views/DiagnosticView.d.ts +10 -7
  124. package/dist/ink/views/DiagnosticView.d.ts.map +1 -1
  125. package/dist/ink/views/DiagnosticView.js +42 -17
  126. package/dist/ink/views/DiagnosticView.js.map +1 -1
  127. package/dist/ink/views/DiagnosticsListView.d.ts +10 -7
  128. package/dist/ink/views/DiagnosticsListView.d.ts.map +1 -1
  129. package/dist/ink/views/DiagnosticsListView.js +24 -16
  130. package/dist/ink/views/DiagnosticsListView.js.map +1 -1
  131. package/dist/registry/FormatterRegistry.d.ts +18 -15
  132. package/dist/registry/FormatterRegistry.d.ts.map +1 -1
  133. package/dist/registry/FormatterRegistry.js +38 -40
  134. package/dist/registry/FormatterRegistry.js.map +1 -1
  135. package/dist/utils/indent.d.ts +5 -2
  136. package/dist/utils/indent.d.ts.map +1 -1
  137. package/dist/utils/indent.js +9 -8
  138. package/dist/utils/indent.js.map +1 -1
  139. package/package.json +15 -17
  140. package/dist/contracts/FormatterTypes.js.map +0 -1
  141. package/dist/index.d.ts.map +0 -1
  142. package/dist/index.js.map +0 -1
  143. package/dist/ink/contracts/InkTypes.js.map +0 -1
  144. package/dist/ink/index.d.ts.map +0 -1
  145. package/dist/ink/index.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
1
- export type { DiagnosticFormatterFn, FormatterMap, IFormatterRegistry } from './contracts/FormatterTypes.js';
2
- export { defaultFormatters } from './defaults/defaultFormatters.js';
3
- export { installerFormatters } from './formatters/installer/installerFormatters.js';
4
- export { manifestFormatters } from './formatters/manifest/manifestFormatters.js';
5
- export { formatPlainText } from './formatters/PlainTextFormatter.js';
6
- export { postinstallFormatters } from './formatters/postinstall/postinstallFormatters.js';
7
- export { registryFormatters } from './formatters/registry/registryFormatters.js';
8
- export { registryToolsFormatters } from './formatters/registryTools/registryToolsFormatters.js';
9
- export { resolverFormatters } from './formatters/resolver/resolverFormatters.js';
10
- export { safetyFormatters } from './formatters/safety/safetyFormatters.js';
11
- export { specFormatters } from './formatters/spec/specFormatters.js';
12
- export { createFormatterRegistry, FormatterRegistry } from './registry/FormatterRegistry.js';
13
- export { bulletList, indent } from './utils/indent.js';
14
- //# sourceMappingURL=index.d.ts.map
1
+ import { DiagnosticFormatterFn, FormatterMap, IFormatterRegistry } from "./contracts/FormatterTypes.js";
2
+ import { defaultFormatters } from "./defaults/defaultFormatters.js";
3
+ import { formatPlainText } from "./formatters/PlainTextFormatter.js";
4
+ import { installerFormatters } from "./formatters/installer/installerFormatters.js";
5
+ import { manifestFormatters } from "./formatters/manifest/manifestFormatters.js";
6
+ import { postinstallFormatters } from "./formatters/postinstall/postinstallFormatters.js";
7
+ import { formatPublishRequestFailed, publishingFormatters } from "./formatters/publishing/publishingFormatters.js";
8
+ import { registryFormatters } from "./formatters/registry/registryFormatters.js";
9
+ import { registryToolsFormatters } from "./formatters/registryTools/registryToolsFormatters.js";
10
+ import { resolverFormatters } from "./formatters/resolver/resolverFormatters.js";
11
+ import { safetyFormatters } from "./formatters/safety/safetyFormatters.js";
12
+ import { specFormatters } from "./formatters/spec/specFormatters.js";
13
+ import { FormatterRegistry, createFormatterRegistry } from "./registry/FormatterRegistry.js";
14
+ import { bulletList, indent } from "./utils/indent.js";
15
+ export { type DiagnosticFormatterFn, type FormatterMap, FormatterRegistry, type IFormatterRegistry, bulletList, createFormatterRegistry, defaultFormatters, formatPlainText, formatPublishRequestFailed, indent, installerFormatters, manifestFormatters, postinstallFormatters, publishingFormatters, registryFormatters, registryToolsFormatters, resolverFormatters, safetyFormatters, specFormatters };
package/dist/index.js CHANGED
@@ -1,16 +1,15 @@
1
- // ---------------------------------------------------------------------------
2
- // @uapkg/diagnostics-format — public API
3
- // ---------------------------------------------------------------------------
4
- export { defaultFormatters } from './defaults/defaultFormatters.js';
5
- export { installerFormatters } from './formatters/installer/installerFormatters.js';
6
- export { manifestFormatters } from './formatters/manifest/manifestFormatters.js';
7
- export { formatPlainText } from './formatters/PlainTextFormatter.js';
8
- export { postinstallFormatters } from './formatters/postinstall/postinstallFormatters.js';
9
- export { registryFormatters } from './formatters/registry/registryFormatters.js';
10
- export { registryToolsFormatters } from './formatters/registryTools/registryToolsFormatters.js';
11
- export { resolverFormatters } from './formatters/resolver/resolverFormatters.js';
12
- export { safetyFormatters } from './formatters/safety/safetyFormatters.js';
13
- export { specFormatters } from './formatters/spec/specFormatters.js';
14
- export { createFormatterRegistry, FormatterRegistry } from './registry/FormatterRegistry.js';
15
- export { bulletList, indent } from './utils/indent.js';
16
- //# sourceMappingURL=index.js.map
1
+ import { installerFormatters } from "./formatters/installer/installerFormatters.js";
2
+ import { manifestFormatters } from "./formatters/manifest/manifestFormatters.js";
3
+ import { postinstallFormatters } from "./formatters/postinstall/postinstallFormatters.js";
4
+ import { formatPublishRequestFailed, publishingFormatters } from "./formatters/publishing/publishingFormatters.js";
5
+ import { registryFormatters } from "./formatters/registry/registryFormatters.js";
6
+ import { registryToolsFormatters } from "./formatters/registryTools/registryToolsFormatters.js";
7
+ import { resolverFormatters } from "./formatters/resolver/resolverFormatters.js";
8
+ import { safetyFormatters } from "./formatters/safety/safetyFormatters.js";
9
+ import { specFormatters } from "./formatters/spec/specFormatters.js";
10
+ import { defaultFormatters } from "./defaults/defaultFormatters.js";
11
+ import { formatPlainText } from "./formatters/PlainTextFormatter.js";
12
+ import { FormatterRegistry, createFormatterRegistry } from "./registry/FormatterRegistry.js";
13
+ import { bulletList, indent } from "./utils/indent.js";
14
+
15
+ export { FormatterRegistry, bulletList, createFormatterRegistry, defaultFormatters, formatPlainText, formatPublishRequestFailed, indent, installerFormatters, manifestFormatters, postinstallFormatters, publishingFormatters, registryFormatters, registryToolsFormatters, resolverFormatters, safetyFormatters, specFormatters };
@@ -1,3 +1,6 @@
1
- import type { DiagnosticInkComponentMap } from '../contracts/InkTypes.js';
2
- export declare const configInkComponents: DiagnosticInkComponentMap;
1
+ import { DiagnosticInkComponentMap } from "../contracts/InkTypes.js";
2
+ //#region src/ink/components/configInkComponents.d.ts
3
+ declare const configInkComponents: DiagnosticInkComponentMap;
4
+ //#endregion
5
+ export { configInkComponents };
3
6
  //# sourceMappingURL=configInkComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configInkComponents.d.ts","sourceRoot":"","sources":["../../../src/ink/components/configInkComponents.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAuB,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAiE/F,eAAO,MAAM,mBAAmB,EAAE,yBAMjC,CAAC"}
1
+ {"version":3,"file":"configInkComponents.d.ts","names":[],"sources":["../../../src/ink/components/configInkComponents.tsx"],"mappings":";;cA0Ea,qBAAqB"}
@@ -1,30 +1,105 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from 'ink';
1
+ import { Box, Text } from "ink";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+
4
+ //#region src/ink/components/configInkComponents.tsx
3
5
  function ConfigInvalidJson({ diagnostic }) {
4
- const data = diagnostic.data;
5
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["File: ", _jsx(Text, { color: "cyan", children: data.filePath })] }), _jsx(Text, { color: "gray", children: data.reason })] }));
6
+ const data = diagnostic.data;
7
+ return /* @__PURE__ */ jsxs(Box, {
8
+ flexDirection: "column",
9
+ children: [/* @__PURE__ */ jsxs(Text, { children: ["File: ", /* @__PURE__ */ jsx(Text, {
10
+ color: "cyan",
11
+ children: data.filePath
12
+ })] }), /* @__PURE__ */ jsx(Text, {
13
+ color: "gray",
14
+ children: data.reason
15
+ })]
16
+ });
6
17
  }
7
18
  function ConfigTypeMismatch({ diagnostic }) {
8
- const data = diagnostic.data;
9
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Path: ", _jsx(Text, { color: "cyan", children: data.path })] }), _jsxs(Text, { children: ["Expected: ", _jsx(Text, { color: "yellow", children: data.expectedType }), " | Actual:", ' ', _jsx(Text, { color: "yellow", children: data.actualType })] }), _jsxs(Text, { color: "gray", children: ["Source: ", data.source] }), data.filePath ? _jsxs(Text, { color: "gray", children: ["File: ", data.filePath] }) : null] }));
19
+ const data = diagnostic.data;
20
+ return /* @__PURE__ */ jsxs(Box, {
21
+ flexDirection: "column",
22
+ children: [
23
+ /* @__PURE__ */ jsxs(Text, { children: ["Path: ", /* @__PURE__ */ jsx(Text, {
24
+ color: "cyan",
25
+ children: data.path
26
+ })] }),
27
+ /* @__PURE__ */ jsxs(Text, { children: [
28
+ "Expected: ",
29
+ /* @__PURE__ */ jsx(Text, {
30
+ color: "yellow",
31
+ children: data.expectedType
32
+ }),
33
+ " | Actual:",
34
+ " ",
35
+ /* @__PURE__ */ jsx(Text, {
36
+ color: "yellow",
37
+ children: data.actualType
38
+ })
39
+ ] }),
40
+ /* @__PURE__ */ jsxs(Text, {
41
+ color: "gray",
42
+ children: ["Source: ", data.source]
43
+ }),
44
+ data.filePath ? /* @__PURE__ */ jsxs(Text, {
45
+ color: "gray",
46
+ children: ["File: ", data.filePath]
47
+ }) : null
48
+ ]
49
+ });
10
50
  }
11
51
  function ConfigUnknownKey({ diagnostic }) {
12
- const data = diagnostic.data;
13
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Key: ", _jsx(Text, { color: "cyan", children: data.path })] }), _jsxs(Text, { color: "gray", children: ["Source: ", data.source] }), data.filePath ? _jsxs(Text, { color: "gray", children: ["File: ", data.filePath] }) : null] }));
52
+ const data = diagnostic.data;
53
+ return /* @__PURE__ */ jsxs(Box, {
54
+ flexDirection: "column",
55
+ children: [
56
+ /* @__PURE__ */ jsxs(Text, { children: ["Key: ", /* @__PURE__ */ jsx(Text, {
57
+ color: "cyan",
58
+ children: data.path
59
+ })] }),
60
+ /* @__PURE__ */ jsxs(Text, {
61
+ color: "gray",
62
+ children: ["Source: ", data.source]
63
+ }),
64
+ data.filePath ? /* @__PURE__ */ jsxs(Text, {
65
+ color: "gray",
66
+ children: ["File: ", data.filePath]
67
+ }) : null
68
+ ]
69
+ });
14
70
  }
15
71
  function ConfigUnresolvedDefaultRegistry({ diagnostic }) {
16
- const data = diagnostic.data;
17
- return (_jsxs(Text, { children: ["Default registry ", _jsx(Text, { color: "yellow", children: data.registryName }), " is not defined in registries."] }));
72
+ const data = diagnostic.data;
73
+ return /* @__PURE__ */ jsxs(Text, { children: [
74
+ "Default registry ",
75
+ /* @__PURE__ */ jsx(Text, {
76
+ color: "yellow",
77
+ children: data.registryName
78
+ }),
79
+ " is not defined in registries."
80
+ ] });
18
81
  }
19
82
  function ConfigInvalidValue({ diagnostic }) {
20
- const data = diagnostic.data;
21
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Path: ", _jsx(Text, { color: "cyan", children: data.path })] }), _jsx(Text, { color: "gray", children: data.rule })] }));
83
+ const data = diagnostic.data;
84
+ return /* @__PURE__ */ jsxs(Box, {
85
+ flexDirection: "column",
86
+ children: [/* @__PURE__ */ jsxs(Text, { children: ["Path: ", /* @__PURE__ */ jsx(Text, {
87
+ color: "cyan",
88
+ children: data.path
89
+ })] }), /* @__PURE__ */ jsx(Text, {
90
+ color: "gray",
91
+ children: data.rule
92
+ })]
93
+ });
22
94
  }
23
- export const configInkComponents = {
24
- CONFIG_INVALID_JSON: ConfigInvalidJson,
25
- CONFIG_TYPE_MISMATCH: ConfigTypeMismatch,
26
- CONFIG_UNKNOWN_KEY: ConfigUnknownKey,
27
- CONFIG_UNRESOLVED_DEFAULT_REGISTRY: ConfigUnresolvedDefaultRegistry,
28
- CONFIG_INVALID_VALUE: ConfigInvalidValue,
95
+ const configInkComponents = {
96
+ CONFIG_INVALID_JSON: ConfigInvalidJson,
97
+ CONFIG_TYPE_MISMATCH: ConfigTypeMismatch,
98
+ CONFIG_UNKNOWN_KEY: ConfigUnknownKey,
99
+ CONFIG_UNRESOLVED_DEFAULT_REGISTRY: ConfigUnresolvedDefaultRegistry,
100
+ CONFIG_INVALID_VALUE: ConfigInvalidValue
29
101
  };
102
+
103
+ //#endregion
104
+ export { configInkComponents };
30
105
  //# sourceMappingURL=configInkComponents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configInkComponents.js","sourceRoot":"","sources":["../../../src/ink/components/configInkComponents.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM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C,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,IAAI,GAAQ,IACrC,EACP,MAAC,IAAI,IAAC,KAAK,EAAC,MAAM,yBAAU,IAAI,CAAC,MAAM,IAAQ,EAC9C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAC,IAAI,IAAC,KAAK,EAAC,MAAM,uBAAQ,IAAI,CAAC,QAAQ,IAAQ,CAAC,CAAC,CAAC,IAAI,IACnE,CACP,CAAC;AACJ,CAAC;AAED,SAAS,+BAA+B,CAAC,EAAE,UAAU,EAAuB;IAC1E,MAAM,IAAI,GAAI,UAAwD,CAAC,IAAI,CAAC;IAC5E,OAAO,CACL,MAAC,IAAI,oCACc,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,YAAE,IAAI,CAAC,YAAY,GAAQ,sCAC3D,CACR,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,EAAE,UAAU,EAAuB;IAC7D,MAAM,IAAI,GAAI,UAA2C,CAAC,IAAI,CAAC;IAC/D,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,MAAC,IAAI,yBACG,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,IAAI,GAAQ,IACtC,EACP,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,IAAI,GAAQ,IACjC,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAA8B;IAC5D,mBAAmB,EAAE,iBAAiB;IACtC,oBAAoB,EAAE,kBAAkB;IACxC,kBAAkB,EAAE,gBAAgB;IACpC,kCAAkC,EAAE,+BAA+B;IACnE,oBAAoB,EAAE,kBAAkB;CACzC,CAAC"}
1
+ {"version":3,"file":"configInkComponents.js","names":[],"sources":["../../../src/ink/components/configInkComponents.tsx"],"sourcesContent":["import type {\n ConfigInvalidJsonDiagnostic,\n ConfigInvalidValueDiagnostic,\n ConfigTypeMismatchDiagnostic,\n ConfigUnknownKeyDiagnostic,\n ConfigUnresolvedDefaultRegistryDiagnostic,\n} from '@uapkg/diagnostics';\nimport { Box, Text } from 'ink';\nimport type { ReactElement } from 'react';\nimport type { DiagnosticBodyProps, DiagnosticInkComponentMap } from '../contracts/InkTypes.js';\n\nfunction ConfigInvalidJson({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as ConfigInvalidJsonDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n File: <Text color=\"cyan\">{data.filePath}</Text>\n </Text>\n <Text color=\"gray\">{data.reason}</Text>\n </Box>\n );\n}\n\nfunction ConfigTypeMismatch({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as ConfigTypeMismatchDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Path: <Text color=\"cyan\">{data.path}</Text>\n </Text>\n <Text>\n Expected: <Text color=\"yellow\">{data.expectedType}</Text> | Actual:{' '}\n <Text color=\"yellow\">{data.actualType}</Text>\n </Text>\n <Text color=\"gray\">Source: {data.source}</Text>\n {data.filePath ? <Text color=\"gray\">File: {data.filePath}</Text> : null}\n </Box>\n );\n}\n\nfunction ConfigUnknownKey({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as ConfigUnknownKeyDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Key: <Text color=\"cyan\">{data.path}</Text>\n </Text>\n <Text color=\"gray\">Source: {data.source}</Text>\n {data.filePath ? <Text color=\"gray\">File: {data.filePath}</Text> : null}\n </Box>\n );\n}\n\nfunction ConfigUnresolvedDefaultRegistry({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as ConfigUnresolvedDefaultRegistryDiagnostic).data;\n return (\n <Text>\n Default registry <Text color=\"yellow\">{data.registryName}</Text> is not defined in registries.\n </Text>\n );\n}\n\nfunction ConfigInvalidValue({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as ConfigInvalidValueDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Path: <Text color=\"cyan\">{data.path}</Text>\n </Text>\n <Text color=\"gray\">{data.rule}</Text>\n </Box>\n );\n}\n\nexport const configInkComponents: DiagnosticInkComponentMap = {\n CONFIG_INVALID_JSON: ConfigInvalidJson,\n CONFIG_TYPE_MISMATCH: ConfigTypeMismatch,\n CONFIG_UNKNOWN_KEY: ConfigUnknownKey,\n CONFIG_UNRESOLVED_DEFAULT_REGISTRY: ConfigUnresolvedDefaultRegistry,\n CONFIG_INVALID_VALUE: ConfigInvalidValue,\n};\n"],"mappings":";;;;AAWA,SAAS,kBAAkB,EAAE,cAAiD;CAC5E,MAAM,OAAQ,WAA2C;CACzD,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB,CACE,qBAAC,MAAD,aAAM,UACE,oBAAC,MAAD;GAAM,OAAM;aAAQ,KAAK;EAAe,EAC1C,MACN,oBAAC,MAAD;GAAM,OAAM;aAAQ,KAAK;EAAa,EACnC;;AAET;AAEA,SAAS,mBAAmB,EAAE,cAAiD;CAC7E,MAAM,OAAQ,WAA4C;CAC1D,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB;GACE,qBAAC,MAAD,aAAM,UACE,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAW,EACtC;GACN,qBAAC,MAAD;IAAM;IACM,oBAAC,MAAD;KAAM,OAAM;eAAU,KAAK;IAAmB;IAAC;IAAW;IACpE,oBAAC,MAAD;KAAM,OAAM;eAAU,KAAK;IAAiB;GACxC;GACN,qBAAC,MAAD;IAAM,OAAM;cAAZ,CAAmB,YAAS,KAAK,MAAa;;GAC7C,KAAK,WAAW,qBAAC,MAAD;IAAM,OAAM;cAAZ,CAAmB,UAAO,KAAK,QAAe;QAAI;EAChE;;AAET;AAEA,SAAS,iBAAiB,EAAE,cAAiD;CAC3E,MAAM,OAAQ,WAA0C;CACxD,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB;GACE,qBAAC,MAAD,aAAM,SACC,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAW,EACrC;GACN,qBAAC,MAAD;IAAM,OAAM;cAAZ,CAAmB,YAAS,KAAK,MAAa;;GAC7C,KAAK,WAAW,qBAAC,MAAD;IAAM,OAAM;cAAZ,CAAmB,UAAO,KAAK,QAAe;QAAI;EAChE;;AAET;AAEA,SAAS,gCAAgC,EAAE,cAAiD;CAC1F,MAAM,OAAQ,WAAyD;CACvE,OACE,qBAAC,MAAD;EAAM;EACa,oBAAC,MAAD;GAAM,OAAM;aAAU,KAAK;EAAmB;EAAC;CAC5D;AAEV;AAEA,SAAS,mBAAmB,EAAE,cAAiD;CAC7E,MAAM,OAAQ,WAA4C;CAC1D,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB,CACE,qBAAC,MAAD,aAAM,UACE,oBAAC,MAAD;GAAM,OAAM;aAAQ,KAAK;EAAW,EACtC,MACN,oBAAC,MAAD;GAAM,OAAM;aAAQ,KAAK;EAAW,EACjC;;AAET;AAEA,MAAa,sBAAiD;CAC5D,qBAAqB;CACrB,sBAAsB;CACtB,oBAAoB;CACpB,oCAAoC;CACpC,sBAAsB;AACxB"}
@@ -1,3 +1,6 @@
1
- import type { DiagnosticInkComponentMap } from '../contracts/InkTypes.js';
2
- export declare const installerInkComponents: DiagnosticInkComponentMap;
1
+ import { DiagnosticInkComponentMap } from "../contracts/InkTypes.js";
2
+ //#region src/ink/components/installerInkComponents.d.ts
3
+ declare const installerInkComponents: DiagnosticInkComponentMap;
4
+ //#endregion
5
+ export { installerInkComponents };
3
6
  //# sourceMappingURL=installerInkComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installerInkComponents.d.ts","sourceRoot":"","sources":["../../../src/ink/components/installerInkComponents.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAuB,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AA6G/F,eAAO,MAAM,sBAAsB,EAAE,yBAQpC,CAAC"}
1
+ {"version":3,"file":"installerInkComponents.d.ts","names":[],"sources":["../../../src/ink/components/installerInkComponents.tsx"],"mappings":";;cAwHa,wBAAwB"}
@@ -1,40 +1,186 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from 'ink';
1
+ import { Box, Text } from "ink";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+
4
+ //#region src/ink/components/installerInkComponents.tsx
3
5
  function DownloadFailed({ diagnostic }) {
4
- const data = diagnostic.data;
5
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Downloading ", _jsx(Text, { color: "cyan", children: data.packageName }), " failed on attempt", ' ', _jsx(Text, { color: "yellow", children: data.attempt }), "."] }), _jsxs(Text, { children: ["URL: ", _jsx(Text, { color: "gray", children: data.url })] }), _jsx(Text, { color: "gray", children: data.reason })] }));
6
+ const data = diagnostic.data;
7
+ return /* @__PURE__ */ jsxs(Box, {
8
+ flexDirection: "column",
9
+ children: [
10
+ /* @__PURE__ */ jsxs(Text, { children: [
11
+ "Downloading ",
12
+ /* @__PURE__ */ jsx(Text, {
13
+ color: "cyan",
14
+ children: data.packageName
15
+ }),
16
+ " failed on attempt",
17
+ " ",
18
+ /* @__PURE__ */ jsx(Text, {
19
+ color: "yellow",
20
+ children: data.attempt
21
+ }),
22
+ "."
23
+ ] }),
24
+ /* @__PURE__ */ jsxs(Text, { children: ["URL: ", /* @__PURE__ */ jsx(Text, {
25
+ color: "gray",
26
+ children: data.url
27
+ })] }),
28
+ /* @__PURE__ */ jsx(Text, {
29
+ color: "gray",
30
+ children: data.reason
31
+ })
32
+ ]
33
+ });
6
34
  }
7
35
  function DownloadHttpStatus({ diagnostic }) {
8
- const data = diagnostic.data;
9
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: data.packageName }), " returned HTTP ", _jsx(Text, { color: "yellow", children: data.status }), "."] }), _jsxs(Text, { children: ["URL: ", _jsx(Text, { color: "gray", children: data.url })] })] }));
36
+ const data = diagnostic.data;
37
+ return /* @__PURE__ */ jsxs(Box, {
38
+ flexDirection: "column",
39
+ children: [/* @__PURE__ */ jsxs(Text, { children: [
40
+ /* @__PURE__ */ jsx(Text, {
41
+ color: "cyan",
42
+ children: data.packageName
43
+ }),
44
+ " returned HTTP ",
45
+ /* @__PURE__ */ jsx(Text, {
46
+ color: "yellow",
47
+ children: data.status
48
+ }),
49
+ "."
50
+ ] }), /* @__PURE__ */ jsxs(Text, { children: ["URL: ", /* @__PURE__ */ jsx(Text, {
51
+ color: "gray",
52
+ children: data.url
53
+ })] })]
54
+ });
10
55
  }
11
56
  function NetworkTimeout({ diagnostic }) {
12
- const data = diagnostic.data;
13
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Timed out after ", _jsxs(Text, { color: "yellow", children: [data.timeoutSeconds, "s"] }), " fetching", ' ', _jsx(Text, { color: "cyan", children: data.packageName }), "."] }), _jsxs(Text, { children: ["URL: ", _jsx(Text, { color: "gray", children: data.url })] })] }));
57
+ const data = diagnostic.data;
58
+ return /* @__PURE__ */ jsxs(Box, {
59
+ flexDirection: "column",
60
+ children: [/* @__PURE__ */ jsxs(Text, { children: [
61
+ "Timed out after ",
62
+ /* @__PURE__ */ jsxs(Text, {
63
+ color: "yellow",
64
+ children: [data.timeoutSeconds, "s"]
65
+ }),
66
+ " fetching",
67
+ " ",
68
+ /* @__PURE__ */ jsx(Text, {
69
+ color: "cyan",
70
+ children: data.packageName
71
+ }),
72
+ "."
73
+ ] }), /* @__PURE__ */ jsxs(Text, { children: ["URL: ", /* @__PURE__ */ jsx(Text, {
74
+ color: "gray",
75
+ children: data.url
76
+ })] })]
77
+ });
14
78
  }
15
79
  function NetworkRetriesExhausted({ diagnostic }) {
16
- const data = diagnostic.data;
17
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Gave up on ", _jsx(Text, { color: "cyan", children: data.packageName }), " after ", _jsx(Text, { color: "yellow", children: data.attempts }), ' ', "attempts."] }), _jsxs(Text, { children: ["URL: ", _jsx(Text, { color: "gray", children: data.url })] })] }));
80
+ const data = diagnostic.data;
81
+ return /* @__PURE__ */ jsxs(Box, {
82
+ flexDirection: "column",
83
+ children: [/* @__PURE__ */ jsxs(Text, { children: [
84
+ "Gave up on ",
85
+ /* @__PURE__ */ jsx(Text, {
86
+ color: "cyan",
87
+ children: data.packageName
88
+ }),
89
+ " after ",
90
+ /* @__PURE__ */ jsx(Text, {
91
+ color: "yellow",
92
+ children: data.attempts
93
+ }),
94
+ " ",
95
+ "attempts."
96
+ ] }), /* @__PURE__ */ jsxs(Text, { children: ["URL: ", /* @__PURE__ */ jsx(Text, {
97
+ color: "gray",
98
+ children: data.url
99
+ })] })]
100
+ });
18
101
  }
19
102
  function IntegrityMismatch({ diagnostic }) {
20
- const data = diagnostic.data;
21
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Integrity mismatch for ", _jsx(Text, { color: "cyan", children: data.packageName }), "."] }), _jsxs(Text, { children: ["Expected: ", _jsx(Text, { color: "gray", children: data.expected })] }), _jsxs(Text, { children: ["Actual: ", _jsx(Text, { color: "yellow", children: data.actual })] })] }));
103
+ const data = diagnostic.data;
104
+ return /* @__PURE__ */ jsxs(Box, {
105
+ flexDirection: "column",
106
+ children: [
107
+ /* @__PURE__ */ jsxs(Text, { children: [
108
+ "Integrity mismatch for ",
109
+ /* @__PURE__ */ jsx(Text, {
110
+ color: "cyan",
111
+ children: data.packageName
112
+ }),
113
+ "."
114
+ ] }),
115
+ /* @__PURE__ */ jsxs(Text, { children: ["Expected: ", /* @__PURE__ */ jsx(Text, {
116
+ color: "gray",
117
+ children: data.expected
118
+ })] }),
119
+ /* @__PURE__ */ jsxs(Text, { children: ["Actual: ", /* @__PURE__ */ jsx(Text, {
120
+ color: "yellow",
121
+ children: data.actual
122
+ })] })
123
+ ]
124
+ });
22
125
  }
23
126
  function ExtractionFailed({ diagnostic }) {
24
- const data = diagnostic.data;
25
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Extraction of ", _jsx(Text, { color: "cyan", children: data.packageName }), " failed."] }), _jsxs(Text, { children: ["Path: ", _jsx(Text, { color: "gray", children: data.path })] }), _jsx(Text, { color: "gray", children: data.reason })] }));
127
+ const data = diagnostic.data;
128
+ return /* @__PURE__ */ jsxs(Box, {
129
+ flexDirection: "column",
130
+ children: [
131
+ /* @__PURE__ */ jsxs(Text, { children: [
132
+ "Extraction of ",
133
+ /* @__PURE__ */ jsx(Text, {
134
+ color: "cyan",
135
+ children: data.packageName
136
+ }),
137
+ " failed."
138
+ ] }),
139
+ /* @__PURE__ */ jsxs(Text, { children: ["Path: ", /* @__PURE__ */ jsx(Text, {
140
+ color: "gray",
141
+ children: data.path
142
+ })] }),
143
+ /* @__PURE__ */ jsx(Text, {
144
+ color: "gray",
145
+ children: data.reason
146
+ })
147
+ ]
148
+ });
26
149
  }
27
150
  function DiskRemoveFailed({ diagnostic }) {
28
- const data = diagnostic.data;
29
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["Could not remove ", _jsx(Text, { color: "cyan", children: data.packageName }), " from disk."] }), _jsxs(Text, { children: ["Path: ", _jsx(Text, { color: "gray", children: data.path })] }), _jsx(Text, { color: "gray", children: data.reason })] }));
151
+ const data = diagnostic.data;
152
+ return /* @__PURE__ */ jsxs(Box, {
153
+ flexDirection: "column",
154
+ children: [
155
+ /* @__PURE__ */ jsxs(Text, { children: [
156
+ "Could not remove ",
157
+ /* @__PURE__ */ jsx(Text, {
158
+ color: "cyan",
159
+ children: data.packageName
160
+ }),
161
+ " from disk."
162
+ ] }),
163
+ /* @__PURE__ */ jsxs(Text, { children: ["Path: ", /* @__PURE__ */ jsx(Text, {
164
+ color: "gray",
165
+ children: data.path
166
+ })] }),
167
+ /* @__PURE__ */ jsx(Text, {
168
+ color: "gray",
169
+ children: data.reason
170
+ })
171
+ ]
172
+ });
30
173
  }
31
- export const installerInkComponents = {
32
- DOWNLOAD_FAILED: DownloadFailed,
33
- DOWNLOAD_HTTP_STATUS: DownloadHttpStatus,
34
- NETWORK_TIMEOUT: NetworkTimeout,
35
- NETWORK_RETRIES_EXHAUSTED: NetworkRetriesExhausted,
36
- INTEGRITY_MISMATCH: IntegrityMismatch,
37
- EXTRACTION_FAILED: ExtractionFailed,
38
- DISK_REMOVE_FAILED: DiskRemoveFailed,
174
+ const installerInkComponents = {
175
+ DOWNLOAD_FAILED: DownloadFailed,
176
+ DOWNLOAD_HTTP_STATUS: DownloadHttpStatus,
177
+ NETWORK_TIMEOUT: NetworkTimeout,
178
+ NETWORK_RETRIES_EXHAUSTED: NetworkRetriesExhausted,
179
+ INTEGRITY_MISMATCH: IntegrityMismatch,
180
+ EXTRACTION_FAILED: ExtractionFailed,
181
+ DISK_REMOVE_FAILED: DiskRemoveFailed
39
182
  };
183
+
184
+ //#endregion
185
+ export { installerInkComponents };
40
186
  //# sourceMappingURL=installerInkComponents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"installerInkComponents.js","sourceRoot":"","sources":["../../../src/ink/components/installerInkComponents.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAIhC,SAAS,cAAc,CAAC,EAAE,UAAU,EAAuB;IACzD,MAAM,IAAI,GAAI,UAAuC,CAAC,IAAI,CAAC;IAC3D,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,MAAC,IAAI,+BACS,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,WAAW,GAAQ,wBAAmB,GAAG,EAC9E,KAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,YAAE,IAAI,CAAC,OAAO,GAAQ,SACrC,EACP,MAAC,IAAI,wBACE,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,GAAG,GAAQ,IACpC,EACP,KAAC,IAAI,IAAC,KA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AO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,MAAC,IAAI,oCACc,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,WAAW,GAAQ,mBACxD,EACP,MAAC,IAAI,yBACG,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,IAAI,GAAQ,IACtC,EACP,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,YAAE,IAAI,CAAC,MAAM,GAAQ,IACnC,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAA8B;IAC/D,eAAe,EAAE,cAAc;IAC/B,oBAAoB,EAAE,kBAAkB;IACxC,eAAe,EAAE,cAAc;IAC/B,yBAAyB,EAAE,uBAAuB;IAClD,kBAAkB,EAAE,iBAAiB;IACrC,iBAAiB,EAAE,gBAAgB;IACnC,kBAAkB,EAAE,gBAAgB;CACrC,CAAC"}
1
+ {"version":3,"file":"installerInkComponents.js","names":[],"sources":["../../../src/ink/components/installerInkComponents.tsx"],"sourcesContent":["import type {\n DiskRemoveFailedDiagnostic,\n DownloadFailedDiagnostic,\n DownloadHttpStatusDiagnostic,\n ExtractionFailedDiagnostic,\n IntegrityMismatchDiagnostic,\n NetworkRetriesExhaustedDiagnostic,\n NetworkTimeoutDiagnostic,\n} from '@uapkg/diagnostics';\nimport { Box, Text } from 'ink';\nimport type { ReactElement } from 'react';\nimport type { DiagnosticBodyProps, DiagnosticInkComponentMap } from '../contracts/InkTypes.js';\n\nfunction DownloadFailed({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as DownloadFailedDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Downloading <Text color=\"cyan\">{data.packageName}</Text> failed on attempt{' '}\n <Text color=\"yellow\">{data.attempt}</Text>.\n </Text>\n <Text>\n URL: <Text color=\"gray\">{data.url}</Text>\n </Text>\n <Text color=\"gray\">{data.reason}</Text>\n </Box>\n );\n}\n\nfunction DownloadHttpStatus({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as DownloadHttpStatusDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n <Text color=\"cyan\">{data.packageName}</Text> returned HTTP <Text color=\"yellow\">{data.status}</Text>.\n </Text>\n <Text>\n URL: <Text color=\"gray\">{data.url}</Text>\n </Text>\n </Box>\n );\n}\n\nfunction NetworkTimeout({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as NetworkTimeoutDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Timed out after <Text color=\"yellow\">{data.timeoutSeconds}s</Text> fetching{' '}\n <Text color=\"cyan\">{data.packageName}</Text>.\n </Text>\n <Text>\n URL: <Text color=\"gray\">{data.url}</Text>\n </Text>\n </Box>\n );\n}\n\nfunction NetworkRetriesExhausted({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as NetworkRetriesExhaustedDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Gave up on <Text color=\"cyan\">{data.packageName}</Text> after <Text color=\"yellow\">{data.attempts}</Text>{' '}\n attempts.\n </Text>\n <Text>\n URL: <Text color=\"gray\">{data.url}</Text>\n </Text>\n </Box>\n );\n}\n\nfunction IntegrityMismatch({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as IntegrityMismatchDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Integrity mismatch for <Text color=\"cyan\">{data.packageName}</Text>.\n </Text>\n <Text>\n Expected: <Text color=\"gray\">{data.expected}</Text>\n </Text>\n <Text>\n Actual: <Text color=\"yellow\">{data.actual}</Text>\n </Text>\n </Box>\n );\n}\n\nfunction ExtractionFailed({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as ExtractionFailedDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Extraction of <Text color=\"cyan\">{data.packageName}</Text> failed.\n </Text>\n <Text>\n Path: <Text color=\"gray\">{data.path}</Text>\n </Text>\n <Text color=\"gray\">{data.reason}</Text>\n </Box>\n );\n}\n\nfunction DiskRemoveFailed({ diagnostic }: DiagnosticBodyProps): ReactElement {\n const data = (diagnostic as DiskRemoveFailedDiagnostic).data;\n return (\n <Box flexDirection=\"column\">\n <Text>\n Could not remove <Text color=\"cyan\">{data.packageName}</Text> from disk.\n </Text>\n <Text>\n Path: <Text color=\"gray\">{data.path}</Text>\n </Text>\n <Text color=\"gray\">{data.reason}</Text>\n </Box>\n );\n}\n\nexport const installerInkComponents: DiagnosticInkComponentMap = {\n DOWNLOAD_FAILED: DownloadFailed,\n DOWNLOAD_HTTP_STATUS: DownloadHttpStatus,\n NETWORK_TIMEOUT: NetworkTimeout,\n NETWORK_RETRIES_EXHAUSTED: NetworkRetriesExhausted,\n INTEGRITY_MISMATCH: IntegrityMismatch,\n EXTRACTION_FAILED: ExtractionFailed,\n DISK_REMOVE_FAILED: DiskRemoveFailed,\n};\n"],"mappings":";;;;AAaA,SAAS,eAAe,EAAE,cAAiD;CACzE,MAAM,OAAQ,WAAwC;CACtD,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB;GACE,qBAAC,MAAD;IAAM;IACQ,oBAAC,MAAD;KAAM,OAAM;eAAQ,KAAK;IAAkB;IAAC;IAAmB;IAC3E,oBAAC,MAAD;KAAM,OAAM;eAAU,KAAK;IAAc;IAAC;GACtC;GACN,qBAAC,MAAD,aAAM,SACC,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAU,EACpC;GACN,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAa;EACnC;;AAET;AAEA,SAAS,mBAAmB,EAAE,cAAiD;CAC7E,MAAM,OAAQ,WAA4C;CAC1D,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB,CACE,qBAAC,MAAD;GACE,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAkB;GAAC;GAAe,oBAAC,MAAD;IAAM,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,MAAM,OAAQ,WAA0C;CACxD,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB;GACE,qBAAC,MAAD;IAAM;IACU,oBAAC,MAAD;KAAM,OAAM;eAAQ,KAAK;IAAkB;IAAC;GACtD;GACN,qBAAC,MAAD,aAAM,UACE,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAW,EACtC;GACN,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAa;EACnC;;AAET;AAEA,SAAS,iBAAiB,EAAE,cAAiD;CAC3E,MAAM,OAAQ,WAA0C;CACxD,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB;GACE,qBAAC,MAAD;IAAM;IACa,oBAAC,MAAD;KAAM,OAAM;eAAQ,KAAK;IAAkB;IAAC;GACzD;GACN,qBAAC,MAAD,aAAM,UACE,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAW,EACtC;GACN,oBAAC,MAAD;IAAM,OAAM;cAAQ,KAAK;GAAa;EACnC;;AAET;AAEA,MAAa,yBAAoD;CAC/D,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB,2BAA2B;CAC3B,oBAAoB;CACpB,mBAAmB;CACnB,oBAAoB;AACtB"}
@@ -1,3 +1,6 @@
1
- import type { DiagnosticInkComponentMap } from '../contracts/InkTypes.js';
2
- export declare const manifestInkComponents: DiagnosticInkComponentMap;
1
+ import { DiagnosticInkComponentMap } from "../contracts/InkTypes.js";
2
+ //#region src/ink/components/manifestInkComponents.d.ts
3
+ declare const manifestInkComponents: DiagnosticInkComponentMap;
4
+ //#endregion
5
+ export { manifestInkComponents };
3
6
  //# sourceMappingURL=manifestInkComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifestInkComponents.d.ts","sourceRoot":"","sources":["../../../src/ink/components/manifestInkComponents.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAuB,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAyH/F,eAAO,MAAM,qBAAqB,EAAE,yBAUnC,CAAC"}
1
+ {"version":3,"file":"manifestInkComponents.d.ts","names":[],"sources":["../../../src/ink/components/manifestInkComponents.tsx"],"mappings":";;cAsIa,uBAAuB"}