@rango-dev/widget-embedded 0.29.1-next.13 → 0.29.1-next.15
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/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/store/slices/settings.d.ts.map +1 -1
- package/dist/types/config.d.ts +0 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +1 -1
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +1 -1
- package/src/store/slices/settings.ts +4 -1
- package/src/types/config.ts +0 -4
package/package.json
CHANGED
|
@@ -513,7 +513,7 @@ export function ConfirmWalletsModal(props: PropTypes) {
|
|
|
513
513
|
/>
|
|
514
514
|
</ListContainer>
|
|
515
515
|
{!isLastWallet && <Divider size={32} />}
|
|
516
|
-
{isLastWallet && config?.customDestination && (
|
|
516
|
+
{isLastWallet && config?.customDestination !== false && (
|
|
517
517
|
<CustomDestination>
|
|
518
518
|
<CustomCollapsible
|
|
519
519
|
onOpenChange={
|
|
@@ -159,6 +159,8 @@ export const createSettingsSlice: StateCreator<
|
|
|
159
159
|
const isLanguageHidden = isFeatureHidden('language', features);
|
|
160
160
|
const isLiquidityHidden = isFeatureHidden('liquiditySource', features);
|
|
161
161
|
const singleTheme = theme?.singleTheme;
|
|
162
|
+
const autoUpdateSettings =
|
|
163
|
+
nextConfig?.__UNSTABLE_OR_INTERNAL__?.autoUpdateSettings;
|
|
162
164
|
|
|
163
165
|
set({
|
|
164
166
|
...(isThemeHidden && { theme: nextConfig.theme?.mode || 'auto' }),
|
|
@@ -169,7 +171,8 @@ export const createSettingsSlice: StateCreator<
|
|
|
169
171
|
...(isLiquidityHidden && {
|
|
170
172
|
disabledLiquiditySources: nextConfig.liquiditySources || [],
|
|
171
173
|
}),
|
|
172
|
-
...(
|
|
174
|
+
...(autoUpdateSettings && {
|
|
175
|
+
// For the time being, we have added the language; if more are needed later, we can add other parameters.
|
|
173
176
|
language: nextConfig.language || DEFAULT_LANGUAGE,
|
|
174
177
|
}),
|
|
175
178
|
});
|
package/src/types/config.ts
CHANGED
|
@@ -223,10 +223,6 @@ export type WidgetConfig = {
|
|
|
223
223
|
// These are likely to change or remove at anytime. Please use with a caution.
|
|
224
224
|
__UNSTABLE_OR_INTERNAL__?: {
|
|
225
225
|
walletConnectListedDesktopWalletLink?: string;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
// Internal configuration options. Not intended for public use or modification.
|
|
229
|
-
_INTERNAL_SETTINGS_?: {
|
|
230
226
|
autoUpdateSettings?: boolean; // If true, settings will be updated automatically based on the configuration.
|
|
231
227
|
};
|
|
232
228
|
};
|