@cobre-npm/ds-v3 0.166.0 → 0.168.0

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * CobreBankLogo — renders a bank or blockchain logo image from the static assets
3
- * CDN, resolving the bank name as a tooltip. Use to display an institution logo
3
+ * CDN, with the bank name provided by the host app as a tooltip. Use to display an institution logo
4
4
  * inside lists, tables and detail views. Falls back to an UNKNOWN logo when the
5
5
  * image fails to load.
6
6
  */
@@ -19,6 +19,7 @@ interface Props {
19
19
  noOptionsIcon?: string;
20
20
  clearable?: boolean;
21
21
  id?: string;
22
+ bankLogoKey?: string;
22
23
  }
23
24
  declare var __VLS_8: {
24
25
  option: never;
@@ -70,6 +71,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
70
71
  clearable: boolean;
71
72
  labelOptional: string;
72
73
  noOptionsIcon: string;
74
+ bankLogoKey: string;
73
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
74
76
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
75
77
  export default _default;
@@ -65,6 +65,8 @@ export interface Field {
65
65
  /** Custom component rendered for the selected option in a select. */
66
66
  selectedOptionSlot?: Component;
67
67
  multiple?: boolean;
68
+ /** Option field a select reads the bank logo id from (see CobreSelect `bankLogoKey`). */
69
+ bankLogoKey?: string;
68
70
  /** Tooltip text shown next to the field label. */
69
71
  labelTooltip?: string;
70
72
  /** Informational helper text shown for the field. */
@@ -1,9 +1,3 @@
1
- /**
2
- * Map of bank identifier codes to human-readable bank names (re-exported from banksList).
3
- * @deprecated Resolve names with `@cobre-npm/library-portal-core/financialInstitutions` in the host app
4
- * and pass them through the `bankName` prop of `CobreBankLogo`.
5
- */
6
- export { banks } from './banksList';
7
1
  /** Base URL of the S3 bucket hosting Cobre portal static assets (images, icons, etc.). */
8
2
  export declare const STATIC_ASSETS_BASE_URL = "https://cobre-portal-static-assets-prod.s3.us-east-1.amazonaws.com";
9
3
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.166.0",
3
+ "version": "0.168.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.0.4",
6
6
  "engines": {
@@ -1,143 +0,0 @@
1
- /**
2
- * Lookup map of Colombian bank/PSE participant codes (e.g. `PR_COL_1001`) to display names.
3
- * @deprecated Financial institution names come from `@cobre-npm/library-portal-core/financialInstitutions`,
4
- * resolved by the host app. Pass the resolved name through the `bankName` prop of `CobreBankLogo`
5
- * instead of relying on this list. Kept only as a fallback for consumers that have not migrated.
6
- */
7
- export declare const banks: {
8
- PR_COL_COBRE: string;
9
- PR_COL_1558: string;
10
- PR_COL_1040: string;
11
- PR_COL_1052: string;
12
- PR_COL_1805: string;
13
- PR_COL_1032: string;
14
- PR_COL_1819: string;
15
- PR_COL_1066: string;
16
- PR_COL_1051: string;
17
- PR_COL_1001: string;
18
- PR_COL_1059: string;
19
- PR_COL_1023: string;
20
- PR_COL_1062: string;
21
- PR_COL_1063: string;
22
- PR_COL_1012: string;
23
- PR_COL_1071: string;
24
- PR_COL_1047: string;
25
- PR_COL_1060: string;
26
- PR_COL_1002: string;
27
- PR_COL_1065: string;
28
- PR_COL_1069: string;
29
- PR_COL_1303: string;
30
- PR_COL_1053: string;
31
- PR_COL_1031: string;
32
- PR_COL_1007: string;
33
- PR_COL_1061: string;
34
- PR_COL_1013: string;
35
- PR_COL_1042: string;
36
- PR_COL_1808: string;
37
- PR_COL_1009: string;
38
- PR_COL_1812: string;
39
- PR_COL_1370: string;
40
- PR_COL_1292: string;
41
- PR_COL_1291: string;
42
- PR_COL_1283: string;
43
- PR_COL_1289: string;
44
- PR_COL_1551: string;
45
- PR_COL_1802: string;
46
- PR_COL_1121: string;
47
- PR_COL_1814: string;
48
- PR_COL_1637: string;
49
- PR_COL_1006: string;
50
- PR_COL_1286: string;
51
- PR_COL_1070: string;
52
- PR_COL_1067: string;
53
- PR_COL_1801: string;
54
- PR_COL_1507: string;
55
- PR_COL_1809: string;
56
- PR_COL_1560: string;
57
- PR_COL_1803: string;
58
- PR_COL_1811: string;
59
- PR_COL_1813: string;
60
- PR_COL_1019: string;
61
- PR_COL_1804: string;
62
- PR_MEX_COBRE: string;
63
- PR_MEX_COBRE2: string;
64
- PR_GLOBAL_COBRE: string;
65
- PR_MEX_138: string;
66
- PR_MEX_133: string;
67
- PR_MEX_062: string;
68
- PR_MEX_661: string;
69
- PR_MEX_706: string;
70
- PR_MEX_659: string;
71
- PR_MEX_128: string;
72
- PR_MEX_127: string;
73
- PR_MEX_030: string;
74
- PR_MEX_002: string;
75
- PR_MEX_154: string;
76
- PR_MEX_160: string;
77
- PR_MEX_137: string;
78
- PR_MEX_152: string;
79
- PR_MEX_106: string;
80
- PR_MEX_159: string;
81
- PR_MEX_147: string;
82
- PR_MEX_072: string;
83
- PR_MEX_058: string;
84
- PR_MEX_060: string;
85
- PR_MEX_129: string;
86
- PR_MEX_145: string;
87
- PR_MEX_012: string;
88
- PR_MEX_112: string;
89
- PR_MEX_677: string;
90
- PR_MEX_683: string;
91
- PR_MEX_630: string;
92
- PR_MEX_124: string;
93
- PR_MEX_631: string;
94
- PR_MEX_143: string;
95
- PR_MEX_903: string;
96
- PR_MEX_130: string;
97
- PR_MEX_140: string;
98
- PR_MEX_652: string;
99
- PR_MEX_680: string;
100
- PR_MEX_723: string;
101
- PR_MEX_151: string;
102
- PR_MEX_616: string;
103
- PR_MEX_634: string;
104
- PR_MEX_689: string;
105
- PR_MEX_685: string;
106
- PR_MEX_601: string;
107
- PR_MEX_021: string;
108
- PR_MEX_155: string;
109
- PR_MEX_036: string;
110
- PR_MEX_902: string;
111
- PR_MEX_150: string;
112
- PR_MEX_136: string;
113
- PR_MEX_686: string;
114
- PR_MEX_059: string;
115
- PR_MEX_110: string;
116
- PR_MEX_653: string;
117
- PR_MEX_670: string;
118
- PR_MEX_602: string;
119
- PR_MEX_722: string;
120
- PR_MEX_042: string;
121
- PR_MEX_158: string;
122
- PR_MEX_600: string;
123
- PR_MEX_108: string;
124
- PR_MEX_132: string;
125
- PR_MEX_638: string;
126
- PR_MEX_710: string;
127
- PR_MEX_148: string;
128
- PR_MEX_620: string;
129
- PR_MEX_642: string;
130
- PR_MEX_156: string;
131
- PR_MEX_014: string;
132
- PR_MEX_044: string;
133
- PR_MEX_157: string;
134
- PR_MEX_646: string;
135
- PR_MEX_703: string;
136
- PR_MEX_684: string;
137
- PR_MEX_656: string;
138
- PR_MEX_617: string;
139
- PR_MEX_605: string;
140
- PR_MEX_113: string;
141
- PR_MEX_608: string;
142
- PR_MEX_141: string;
143
- };