@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.29.1-next.13",
3
+ "version": "0.29.1-next.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -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
- ...(nextConfig?._INTERNAL_SETTINGS_?.autoUpdateSettings && {
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
  });
@@ -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
  };