@tamagui/core 1.75.4 → 1.75.6

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/native.js CHANGED
@@ -4078,9 +4078,7 @@ var require_ThemeManager_native = __commonJS({
4078
4078
  return this.updateState(nextState, shouldNotify), nextState;
4079
4079
  }
4080
4080
  updateState(nextState, shouldNotify = !0) {
4081
- this.state = nextState, this._allKeys = null, process.env.NODE_ENV !== "production" && (this._numChangeEventsSent ??= 0, this._numChangeEventsSent++), shouldNotify && queueMicrotask(() => {
4082
- this.notify();
4083
- });
4081
+ this.state = nextState, this._allKeys = null, process.env.NODE_ENV !== "production" && (this._numChangeEventsSent ??= 0, this._numChangeEventsSent++), shouldNotify && this.notify();
4084
4082
  }
4085
4083
  getStateIfChanged(props = this.props, state = this.state, parentManager = this.parentManager) {
4086
4084
  let _ = this.getState(props, parentManager);
@@ -4127,7 +4125,7 @@ var require_ThemeManager_native = __commonJS({
4127
4125
  let nextName = props.reset ? baseName : props.name || "", allComponentThemes = componentManagers.map((x) => (x == null ? void 0 : x.state.name) || "");
4128
4126
  isDirectParentAComponentTheme && allComponentThemes.shift();
4129
4127
  let base = baseName.split(import_constants22.THEME_NAME_SEPARATOR), max = base.length, min = props.componentName && !nextName ? max : 0;
4130
- process.env.NODE_ENV !== "production" && typeof props.debug == "string" && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min, max }));
4128
+ process.env.NODE_ENV !== "production" && typeof props.debug == "string" && typeof window < "u" && (console.groupCollapsed("ThemeManager.getState()"), console.info({ props, baseName, base, min, max }));
4131
4129
  for (let i = max; i >= min; i--) {
4132
4130
  let prefix = base.slice(0, i).join(import_constants22.THEME_NAME_SEPARATOR);
4133
4131
  props.inverse && (prefix = inverseThemeName(prefix));
@@ -4317,9 +4315,9 @@ If this is intended and you are using Tamagui without any themes, you can disabl
4317
4315
  let cur = manager;
4318
4316
  for (; cur; ) {
4319
4317
  if (!cur.parentManager)
4320
- return !0;
4321
- if (cur.parentManager.state.scheme !== cur.state.scheme)
4322
4318
  return !1;
4319
+ if (cur.parentManager.state.scheme !== cur.state.scheme)
4320
+ return !0;
4323
4321
  cur = cur.parentManager;
4324
4322
  }
4325
4323
  }
@@ -4358,14 +4356,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
4358
4356
  }), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme(
4359
4357
  (name, manager, forced) => {
4360
4358
  let force = forced || (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"], shouldTryUpdate = force ?? !!(keys != null && keys.length || isNewTheme);
4361
- process.env.NODE_ENV === "development" && props.debug && console.info(" \u{1F538} onChange", themeManager.id, {
4362
- force,
4363
- shouldTryUpdate,
4364
- props,
4365
- name,
4366
- manager,
4367
- keys
4368
- }), shouldTryUpdate && setThemeState(createState);
4359
+ process.env.NODE_ENV === "development" && props.debug === "verbose" && console.info(" \u{1F538} onChange", themeManager.id, { force, shouldTryUpdate, props, name, manager, keys }), shouldTryUpdate && setThemeState(createState);
4369
4360
  },
4370
4361
  themeManager.id
4371
4362
  );