@tamagui/web 3.0.14 → 3.0.16

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": "@tamagui/web",
3
- "version": "3.0.14",
3
+ "version": "3.0.16",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Nate Wienert"
@@ -100,23 +100,23 @@
100
100
  "test:web": "vitest --typecheck --run"
101
101
  },
102
102
  "dependencies": {
103
- "@tamagui/animation-helpers": "3.0.14",
104
- "@tamagui/compose-refs": "3.0.14",
105
- "@tamagui/constants": "3.0.14",
106
- "@tamagui/dom": "3.0.14",
107
- "@tamagui/helpers": "3.0.14",
108
- "@tamagui/is-equal-shallow": "3.0.14",
109
- "@tamagui/native": "3.0.14",
110
- "@tamagui/normalize-css-color": "3.0.14",
111
- "@tamagui/react-native-types": "3.0.14",
112
- "@tamagui/style-grammar": "3.0.14",
113
- "@tamagui/types": "3.0.14",
114
- "@tamagui/use-did-finish-ssr": "3.0.14",
115
- "@tamagui/use-event": "3.0.14",
116
- "@tamagui/use-force-update": "3.0.14"
103
+ "@tamagui/animation-helpers": "3.0.16",
104
+ "@tamagui/compose-refs": "3.0.16",
105
+ "@tamagui/constants": "3.0.16",
106
+ "@tamagui/dom": "3.0.16",
107
+ "@tamagui/helpers": "3.0.16",
108
+ "@tamagui/is-equal-shallow": "3.0.16",
109
+ "@tamagui/native": "3.0.16",
110
+ "@tamagui/normalize-css-color": "3.0.16",
111
+ "@tamagui/react-native-types": "3.0.16",
112
+ "@tamagui/style-grammar": "3.0.16",
113
+ "@tamagui/types": "3.0.16",
114
+ "@tamagui/use-did-finish-ssr": "3.0.16",
115
+ "@tamagui/use-event": "3.0.16",
116
+ "@tamagui/use-force-update": "3.0.16"
117
117
  },
118
118
  "devDependencies": {
119
- "@tamagui/build": "3.0.14",
119
+ "@tamagui/build": "3.0.16",
120
120
  "@testing-library/react": "^16.1.0",
121
121
  "csstype": "^3.0.10",
122
122
  "react": "19.2.3",
@@ -133,5 +133,5 @@
133
133
  "./dist/cjs": "./dist/esm/index.native.js",
134
134
  "./theme-update": "./dist/esm/theme-update.native.js"
135
135
  },
136
- "releaseSourceCommit": "61a8bd09550319d14c141581a8e4bb286a9795a6"
136
+ "releaseSourceCommit": "615595788ab0077217b078ff402c4620f4f17db7"
137
137
  }
@@ -914,10 +914,9 @@ export function createComponent<
914
914
  stateRef.current.nativeActiveState = canNativeUpdate ? themeState?.name : undefined
915
915
 
916
916
  // push one state's full computed style. keys pushed earlier but absent
917
- // from this style commit as null — reset-to-default, exactly what a real
918
- // re-render's style diff does when a key disappears (media flip dropping
919
- // a $sm style, a removed prop) — and the engine unsticks them from
920
- // nativeProps_DEPRECATED so future React renders can set them again.
917
+ // from this style commit as null, resetting them to defaults just as a
918
+ // real re-render does when a key disappears (media flip dropping a $sm
919
+ // style, a removed prop).
921
920
  // nulled keys stay in nativePushedKeys: engine state tables retain them,
922
921
  // so every later cold push must keep nulling until a value returns.
923
922
  const pushViewState = canNativeUpdate
@@ -1021,12 +1020,9 @@ export function createComponent<
1021
1020
  }
1022
1021
  : undefined
1023
1022
 
1024
- // a real render supersedes everything pushed since: its style is the
1025
- // truth React commits, and RN's nativeProps_DEPRECATED merge refreshes
1026
- // shared keys from it. the one hazard is a previously-pushed key this
1027
- // render dropped — RN's merge would resurrect the stale value — so
1028
- // re-push the fresh style (with nulls for dropped keys) right behind
1029
- // React's own commit.
1023
+ // a real render supersedes everything pushed since. explicitly reset
1024
+ // previously-pushed keys absent from this render's style, then commit
1025
+ // the fresh style right behind React's own commit.
1030
1026
  if (canNativeUpdate && stateRef.current.nativeLink) {
1031
1027
  const sr = stateRef.current
1032
1028
  const style = splitStyles.style as Record<string, unknown> | undefined
@@ -1 +1 @@
1
- {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAwC/D,OAAO,KAAK,EASV,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EAOf,MAAM,SAAS,CAAA;AAahB,KAAK,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAA;AAEpF,eAAO,MAAM,kBAAkB,wBAA+B,CAAA;AAuK9D,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,EACnD,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,SAAS,GAAG,KAAK,EACjB,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,YAAY,EAAE,YAAY,wEA0kE3B"}
1
+ {"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAwC/D,OAAO,KAAK,EASV,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EAOf,MAAM,SAAS,CAAA;AAahB,KAAK,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAA;AAEpF,eAAO,MAAM,kBAAkB,wBAA+B,CAAA;AAuK9D,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,EACnD,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,SAAS,GAAG,KAAK,EACjB,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,YAAY,EAAE,YAAY,wEAskE3B"}