@berachain/config 0.1.15-beta.5 → 0.1.17-beta.1

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.
@@ -88,6 +88,29 @@ interface EdgeConfigSchema {
88
88
  blockDelayLabel: string;
89
89
  hoursToWarnInAdvance: number;
90
90
  };
91
+ /**
92
+ * User-facing copy for the portfolio BGT → sWBERA migration widget. Every field is optional; the app merges what's provided here over the in-code defaults, so a partial override (e.g. a single step's alertText) leaves everything else intact.
93
+ */
94
+ bgtMigrationWidget?: {
95
+ /**
96
+ * Headline at the top of the widget.
97
+ */
98
+ title?: string;
99
+ /**
100
+ * Sub-copy under the title; each entry renders as its own paragraph.
101
+ */
102
+ description?: string[];
103
+ /**
104
+ * Per-step copy. Each step id is optional; missing steps (and missing fields within a step) fall back to the in-code defaults. Unknown step ids are rejected so a typo cannot silently break a step's copy.
105
+ */
106
+ steps?: {
107
+ claimIncentives?: BgtMigrationStep;
108
+ claimFees?: BgtMigrationStep;
109
+ unboost?: BgtMigrationStep;
110
+ redeemBGT?: BgtMigrationStep;
111
+ stakeBERA?: BgtMigrationStep;
112
+ };
113
+ };
91
114
  };
92
115
  honey: {
93
116
  /**
@@ -137,6 +160,23 @@ interface VaultItem {
137
160
  enabled: DynamicEnabled;
138
161
  _name?: string;
139
162
  }
163
+ /**
164
+ * Copy for a single step in the BGT migration widget. Each field is optional — missing fields fall back to the in-code defaults.
165
+ */
166
+ interface BgtMigrationStep {
167
+ /**
168
+ * Label shown in the stepper sidebar.
169
+ */
170
+ label?: string;
171
+ /**
172
+ * Title shown at the top of the step card.
173
+ */
174
+ title?: string;
175
+ /**
176
+ * Informational text shown in a muted alert row inside the step card.
177
+ */
178
+ alertText?: string;
179
+ }
140
180
  interface BannerItemV2 {
141
181
  text: string;
142
182
  className?: string;
@@ -213,4 +253,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
213
253
  onError?: (error: unknown) => void;
214
254
  }): Promise<EdgeConfigSchema[T] | undefined>;
215
255
 
216
- export { type Address, type AppName, type BannerItemV2, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
256
+ export { type Address, type AppName, type BannerItemV2, type BgtMigrationStep, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
@@ -88,6 +88,29 @@ interface EdgeConfigSchema {
88
88
  blockDelayLabel: string;
89
89
  hoursToWarnInAdvance: number;
90
90
  };
91
+ /**
92
+ * User-facing copy for the portfolio BGT → sWBERA migration widget. Every field is optional; the app merges what's provided here over the in-code defaults, so a partial override (e.g. a single step's alertText) leaves everything else intact.
93
+ */
94
+ bgtMigrationWidget?: {
95
+ /**
96
+ * Headline at the top of the widget.
97
+ */
98
+ title?: string;
99
+ /**
100
+ * Sub-copy under the title; each entry renders as its own paragraph.
101
+ */
102
+ description?: string[];
103
+ /**
104
+ * Per-step copy. Each step id is optional; missing steps (and missing fields within a step) fall back to the in-code defaults. Unknown step ids are rejected so a typo cannot silently break a step's copy.
105
+ */
106
+ steps?: {
107
+ claimIncentives?: BgtMigrationStep;
108
+ claimFees?: BgtMigrationStep;
109
+ unboost?: BgtMigrationStep;
110
+ redeemBGT?: BgtMigrationStep;
111
+ stakeBERA?: BgtMigrationStep;
112
+ };
113
+ };
91
114
  };
92
115
  honey: {
93
116
  /**
@@ -137,6 +160,23 @@ interface VaultItem {
137
160
  enabled: DynamicEnabled;
138
161
  _name?: string;
139
162
  }
163
+ /**
164
+ * Copy for a single step in the BGT migration widget. Each field is optional — missing fields fall back to the in-code defaults.
165
+ */
166
+ interface BgtMigrationStep {
167
+ /**
168
+ * Label shown in the stepper sidebar.
169
+ */
170
+ label?: string;
171
+ /**
172
+ * Title shown at the top of the step card.
173
+ */
174
+ title?: string;
175
+ /**
176
+ * Informational text shown in a muted alert row inside the step card.
177
+ */
178
+ alertText?: string;
179
+ }
140
180
  interface BannerItemV2 {
141
181
  text: string;
142
182
  className?: string;
@@ -213,4 +253,4 @@ declare function safeGetConfig<T extends keyof EdgeConfigSchema>(flagName: T, {
213
253
  onError?: (error: unknown) => void;
214
254
  }): Promise<EdgeConfigSchema[T] | undefined>;
215
255
 
216
- export { type Address, type AppName, type BannerItemV2, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
256
+ export { type Address, type AppName, type BannerItemV2, type BgtMigrationStep, type DynamicEnabled, type EdgeConfigSchema, type LstStakingVaultItem, type MixedBannerItem, type StandardBannerItem, type TokenItem, type VaultItem, isFlagEnabled, safeGetAll, safeGetConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/config",
3
- "version": "0.1.15-beta.5",
3
+ "version": "0.1.17-beta.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",