@pioneer-platform/pioneer-react 0.2.46 → 0.2.47

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 (57) hide show
  1. package/dist/index.js +163952 -215421
  2. package/dist/{index_7b095b99.js → index_003befba.js} +1312 -1122
  3. package/dist/{index_9a2fa5ba.js → index_0364269a.js} +3 -3
  4. package/dist/{index_0233ab6e.js → index_0e37f5ff.js} +1 -1
  5. package/dist/{index_e21338b4.js → index_167c5f7a.js} +3 -3
  6. package/dist/{index_f1c394c8.js → index_1990afbf.js} +4 -4
  7. package/dist/{index_343f9468.js → index_29e62962.js} +4 -4
  8. package/dist/{index_cd7b7000.js → index_2cbf1530.js} +6 -6
  9. package/dist/{index_3d7082d3.js → index_310b7772.js} +9 -9
  10. package/dist/{index_fd3a5ec6.js → index_354cce52.js} +3 -3
  11. package/dist/{index_a2c6091a.js → index_37894947.js} +3 -3
  12. package/dist/{index_66933ca6.js → index_3891b298.js} +1 -1
  13. package/dist/{index_bfe24110.js → index_3a6b0cd3.js} +3 -3
  14. package/dist/{index_0e190af0.js → index_4a548214.js} +8 -8
  15. package/dist/{index_8f7f1311.js → index_542dbb9a.js} +4 -4
  16. package/dist/{index_dce9b56f.js → index_547d2868.js} +4 -4
  17. package/dist/{index_8ef2dd82.js → index_61a33920.js} +6 -6
  18. package/dist/{index_be8c55cd.js → index_674ffbfa.js} +9 -9
  19. package/dist/{index_192f4d2e.js → index_6d2a3e5c.js} +2 -6
  20. package/dist/{index_a47b2b71.js → index_7382dec1.js} +5 -5
  21. package/dist/{index_d0632736.js → index_7a1bb0b1.js} +8 -8
  22. package/dist/{index_5eb2fe9f.js → index_7c12bb44.js} +1 -1
  23. package/dist/{index_52e88303.js → index_85b01410.js} +6 -6
  24. package/dist/{index_c964d4f9.js → index_8b9255eb.js} +10 -10
  25. package/dist/{index_8c886fbb.js → index_a4f5a15a.js} +19 -19
  26. package/dist/{index_d910f98e.js → index_a682c1a8.js} +1 -3
  27. package/dist/{index_b9f8fd38.js → index_a6b45215.js} +3 -7
  28. package/dist/{index_af178090.js → index_ae6c3b10.js} +3 -3
  29. package/dist/{index_50faa3fa.js → index_b21f58b7.js} +4 -4
  30. package/dist/{index_66728978.js → index_b3022c1a.js} +5 -5
  31. package/dist/{index_41dc30a7.js → index_bd7e0d56.js} +2 -2
  32. package/dist/{index_394e6e8f.js → index_c8ebd6e3.js} +11 -11
  33. package/dist/{index_a46ee29a.js → index_ca633a1c.js} +7 -7
  34. package/dist/{index_1af9af9e.js → index_d8e757ba.js} +3 -3
  35. package/dist/{index_ada459da.js → index_e168f4c0.js} +7 -7
  36. package/dist/{index_8edb57a9.js → index_e233a036.js} +1 -1
  37. package/dist/{index_98d1dfc6.js → index_e57ba5a5.js} +3 -3
  38. package/dist/{index_05b89cc8.js → index_f19b5fe5.js} +3 -3
  39. package/dist/{index_d7d50cc6.js → index_f3922fc1.js} +3 -3
  40. package/dist/{index_92a17a5e.js → index_f80541a0.js} +25 -38
  41. package/dist/{index_2c508270.js → index_f9d1a3bf.js} +1 -3
  42. package/dist/{index_df76109e.js → index_f9d461d1.js} +3 -3
  43. package/package.json +1 -2
  44. package/src/lib/context/Pioneer/sdk/connect.ts +11 -11
  45. package/dist/index_0a85a2ce.js +0 -25
  46. package/dist/index_10812439.js +0 -25
  47. package/dist/index_1098f328.js +0 -12913
  48. package/dist/index_180735b4.js +0 -22872
  49. package/dist/index_24fdd0ba.js +0 -130
  50. package/dist/index_36ed5d98.js +0 -2856
  51. package/dist/index_3d5897c4.js +0 -1115
  52. package/dist/index_a591ed33.js +0 -446
  53. package/dist/index_ab332746.js +0 -121
  54. package/dist/index_b19211e4.js +0 -112
  55. package/dist/index_b2e7cbe3.js +0 -11003
  56. package/dist/index_ccf11e2f.js +0 -65
  57. package/dist/index_d8a5e2ef.js +0 -116
@@ -1,65 +0,0 @@
1
- import { g as getDefaultExportFromCjs } from "./index_180735b4.js";
2
- const h = 2147483648;
3
- var t = function(r) {
4
- if (!Array.isArray(r))
5
- throw new Error("Input must be an Array");
6
- if (r.length === 0)
7
- throw new Error("Path must contain at least one level");
8
- for (var e = 0; e < r.length; e++)
9
- if (typeof r[e] != "number")
10
- throw new Error("Path element is not a number");
11
- this.path = r;
12
- };
13
- t.validatePathArray = function(r) {
14
- try {
15
- return t.fromPathArray(r), true;
16
- } catch {
17
- return false;
18
- }
19
- };
20
- t.validateString = function(r, e) {
21
- try {
22
- return t.fromString(r, e), true;
23
- } catch {
24
- return false;
25
- }
26
- };
27
- t.fromPathArray = function(r) {
28
- return new t(r);
29
- };
30
- t.fromString = function(r, e) {
31
- if (/^m\//i.test(r))
32
- r = r.slice(2);
33
- else if (e)
34
- throw new Error("Root element is required");
35
- for (var a = r.split("/"), n = new Array(a.length), o = 0; o < a.length; o++) {
36
- var i = /(\d+)([hH\']?)/.exec(a[o]);
37
- if (i === null)
38
- throw new Error("Invalid input");
39
- if (n[o] = parseInt(i[1], 10), n[o] >= h)
40
- throw new Error("Invalid child index");
41
- if (i[2] === "h" || i[2] === "H" || i[2] === "'")
42
- n[o] += h;
43
- else if (i[2].length != 0)
44
- throw new Error("Invalid modifier");
45
- }
46
- return new t(n);
47
- };
48
- t.prototype.toPathArray = function() {
49
- return this.path;
50
- };
51
- t.prototype.toString = function(r, e) {
52
- for (var a = new Array(this.path.length), n = 0; n < this.path.length; n++) {
53
- var o = this.path[n];
54
- o & h ? a[n] = (o & ~h) + (e ? "h" : "'") : a[n] = o;
55
- }
56
- return (r ? "" : "m/") + a.join("/");
57
- };
58
- t.prototype.inspect = function() {
59
- return "BIPPath <" + this.toString() + ">";
60
- };
61
- var l = t;
62
- const s = /* @__PURE__ */ getDefaultExportFromCjs(l);
63
- export {
64
- s
65
- };
@@ -1,116 +0,0 @@
1
- const t = (e) => {
2
- class r extends Error {
3
- constructor(c, s, n) {
4
- if (super(c || e, n), Object.setPrototypeOf(this, r.prototype), this.name = e, s)
5
- for (const o in s)
6
- this[o] = s[o];
7
- if (n && O(n) && "cause" in n && !("cause" in this)) {
8
- const o = n.cause;
9
- this.cause = o, "stack" in o && (this.stack = this.stack + `
10
- CAUSE: ` + o.stack);
11
- }
12
- }
13
- }
14
- return r;
15
- };
16
- function O(e) {
17
- return typeof e == "object";
18
- }
19
- const _ = t("LockedDeviceError"), x = t("DisconnectedDevice"), N = t("DisconnectedDeviceDuringOperation"), D = t("NetworkDown"), S = t("UserRefusedOnDevice"), C = t("TransportOpenUserCancelled"), A = t("TransportInterfaceNotAvailable"), d = t("TransportRaceCondition"), u = t("TransportWebUSBGestureRequired"), R = t("LedgerAPI4xx"), L = t("LedgerAPI5xx");
20
- var i;
21
- (function(e) {
22
- e.Unknown = "Unknown", e.LocationServicesDisabled = "LocationServicesDisabled", e.LocationServicesUnauthorized = "LocationServicesUnauthorized", e.BluetoothScanStartFailed = "BluetoothScanStartFailed";
23
- })(i || (i = {}));
24
- class U extends Error {
25
- constructor(r, a) {
26
- const c = "TransportError";
27
- super(r || c), this.name = c, this.message = r, this.stack = new Error(r).stack, this.id = a;
28
- }
29
- }
30
- const E = {
31
- ACCESS_CONDITION_NOT_FULFILLED: 38916,
32
- ALGORITHM_NOT_SUPPORTED: 38020,
33
- CLA_NOT_SUPPORTED: 28160,
34
- CODE_BLOCKED: 38976,
35
- CODE_NOT_INITIALIZED: 38914,
36
- COMMAND_INCOMPATIBLE_FILE_STRUCTURE: 27009,
37
- CONDITIONS_OF_USE_NOT_SATISFIED: 27013,
38
- CONTRADICTION_INVALIDATION: 38928,
39
- CONTRADICTION_SECRET_CODE_STATUS: 38920,
40
- CUSTOM_IMAGE_BOOTLOADER: 26159,
41
- CUSTOM_IMAGE_EMPTY: 26158,
42
- FILE_ALREADY_EXISTS: 27273,
43
- FILE_NOT_FOUND: 37892,
44
- GP_AUTH_FAILED: 25344,
45
- HALTED: 28586,
46
- INCONSISTENT_FILE: 37896,
47
- INCORRECT_DATA: 27264,
48
- INCORRECT_LENGTH: 26368,
49
- INCORRECT_P1_P2: 27392,
50
- INS_NOT_SUPPORTED: 27904,
51
- DEVICE_NOT_ONBOARDED: 27911,
52
- DEVICE_NOT_ONBOARDED_2: 26129,
53
- INVALID_KCV: 38021,
54
- INVALID_OFFSET: 37890,
55
- LICENSING: 28482,
56
- LOCKED_DEVICE: 21781,
57
- MAX_VALUE_REACHED: 38992,
58
- MEMORY_PROBLEM: 37440,
59
- MISSING_CRITICAL_PARAMETER: 26624,
60
- NO_EF_SELECTED: 37888,
61
- NOT_ENOUGH_MEMORY_SPACE: 27268,
62
- OK: 36864,
63
- PIN_REMAINING_ATTEMPTS: 25536,
64
- REFERENCED_DATA_NOT_FOUND: 27272,
65
- SECURITY_STATUS_NOT_SATISFIED: 27010,
66
- TECHNICAL_PROBLEM: 28416,
67
- UNKNOWN_APDU: 27906,
68
- USER_REFUSED_ON_DEVICE: 21761,
69
- NOT_ENOUGH_SPACE: 20738
70
- };
71
- function T(e) {
72
- switch (e) {
73
- case 26368:
74
- return "Incorrect length";
75
- case 26624:
76
- return "Missing critical parameter";
77
- case 27010:
78
- return "Security not satisfied (dongle locked or have invalid access rights)";
79
- case 27013:
80
- return "Condition of use not satisfied (denied by the user?)";
81
- case 27264:
82
- return "Invalid data received";
83
- case 27392:
84
- return "Invalid parameter received";
85
- case 21781:
86
- return "Locked device";
87
- }
88
- if (28416 <= e && e <= 28671)
89
- return "Internal error, please report";
90
- }
91
- function I(e) {
92
- const r = Object.keys(E).find((n) => E[n] === e) || "UNKNOWN_ERROR", a = T(e) || r, c = e.toString(16), s = `Ledger device: ${a} (0x${c})`;
93
- if (e === E.LOCKED_DEVICE)
94
- throw new _(s);
95
- this.name = "TransportStatusError", this.message = s, this.stack = new Error(s).stack, this.statusCode = e, this.statusText = r;
96
- }
97
- I.prototype = new Error();
98
- export {
99
- x as DisconnectedDevice,
100
- N as DisconnectedDeviceDuringOperation,
101
- i as HwTransportErrorType,
102
- R as LedgerAPI4xx,
103
- L as LedgerAPI5xx,
104
- _ as LockedDeviceError,
105
- D as NetworkDown,
106
- E as StatusCodes,
107
- U as TransportError,
108
- A as TransportInterfaceNotAvailable,
109
- C as TransportOpenUserCancelled,
110
- d as TransportRaceCondition,
111
- I as TransportStatusError,
112
- u as TransportWebUSBGestureRequired,
113
- S as UserRefusedOnDevice,
114
- t as createCustomErrorClass,
115
- T as getAltStatusMessage
116
- };