@tamagui/native 3.0.0-beta.1648.1 → 3.0.0-beta.1670.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.
- package/dist/cjs/nativeMenuContext.cjs +3 -1
- package/dist/cjs/nativeMenuContext.native.cjs +6 -1
- package/dist/cjs/nativeMenuContext.native.js +6 -1
- package/dist/cjs/nativeMenuContext.native.js.map +1 -1
- package/dist/esm/nativeMenuContext.mjs +3 -1
- package/dist/esm/nativeMenuContext.mjs.map +1 -1
- package/dist/esm/nativeMenuContext.native.js +6 -1
- package/dist/esm/nativeMenuContext.native.js.map +1 -1
- package/package.json +5 -5
- package/src/nativeMenuContext.ts +7 -1
- package/types/nativeMenuContext.d.ts.map +2 -2
|
@@ -22,4 +22,6 @@ var nativeMenuContext_exports = {};
|
|
|
22
22
|
__export(nativeMenuContext_exports, { NativeMenuContext: () => NativeMenuContext });
|
|
23
23
|
module.exports = __toCommonJS(nativeMenuContext_exports);
|
|
24
24
|
var import_react = require("react");
|
|
25
|
-
const
|
|
25
|
+
const KEY = "__tamagui_native_menu_context__";
|
|
26
|
+
const g = globalThis;
|
|
27
|
+
const NativeMenuContext = g[KEY] ??= (0, import_react.createContext)(false);
|
|
@@ -24,4 +24,9 @@ var nativeMenuContext_exports = {};
|
|
|
24
24
|
__export(nativeMenuContext_exports, { NativeMenuContext: () => NativeMenuContext });
|
|
25
25
|
module.exports = __toCommonJS(nativeMenuContext_exports);
|
|
26
26
|
var import_react = require("react");
|
|
27
|
-
var
|
|
27
|
+
var _g;
|
|
28
|
+
var _KEY;
|
|
29
|
+
var KEY = "__tamagui_native_menu_context__";
|
|
30
|
+
var g = globalThis;
|
|
31
|
+
var _;
|
|
32
|
+
var NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, import_react.createContext)(false);
|
|
@@ -24,6 +24,11 @@ var nativeMenuContext_exports = {};
|
|
|
24
24
|
__export(nativeMenuContext_exports, { NativeMenuContext: () => NativeMenuContext });
|
|
25
25
|
module.exports = __toCommonJS(nativeMenuContext_exports);
|
|
26
26
|
var import_react = require("react");
|
|
27
|
-
var
|
|
27
|
+
var _g;
|
|
28
|
+
var _KEY;
|
|
29
|
+
var KEY = "__tamagui_native_menu_context__";
|
|
30
|
+
var g = globalThis;
|
|
31
|
+
var _;
|
|
32
|
+
var NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, import_react.createContext)(false);
|
|
28
33
|
|
|
29
34
|
//# sourceMappingURL=nativeMenuContext.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeMenuContext.native.js","names":[],"sources":["cjs/nativeMenuContext.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar nativeMenuContext_exports = {};\n__export(nativeMenuContext_exports, {\n NativeMenuContext: () => NativeMenuContext\n});\nmodule.exports = __toCommonJS(nativeMenuContext_exports);\nvar import_react = require(\"react\");\nvar NativeMenuContext = (0, import_react.createContext)(false);\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,yBAAyB,kBAC3B,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,qBAAqB,GAAG,aAAa,cAAa,CAAE,KAAK"}
|
|
1
|
+
{"version":3,"file":"nativeMenuContext.native.js","names":[],"sources":["cjs/nativeMenuContext.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar nativeMenuContext_exports = {};\n__export(nativeMenuContext_exports, {\n NativeMenuContext: () => NativeMenuContext\n});\nmodule.exports = __toCommonJS(nativeMenuContext_exports);\nvar import_react = require(\"react\");\nvar _g;\nvar _KEY;\nvar KEY = \"__tamagui_native_menu_context__\";\nvar g = globalThis;\nvar _;\nvar NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, import_react.createContext)(false);\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,yBAAyB,kBAC3B,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI;AACJ,IAAI;AACJ,IAAI,MAAM;AACV,IAAI,IAAI;AACR,IAAI;AACJ,IAAI,qBAAqB,KAAK,KAAK,EAAC,CAAE,OAAO,UAAU,QAAQ,MAAM,KAAK,IAAI,IAAI,GAAG,SAAS,GAAG,aAAa,cAAa,CAAE,KAAK"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const KEY = "__tamagui_native_menu_context__";
|
|
4
|
+
const g = globalThis;
|
|
5
|
+
const NativeMenuContext = g[KEY] ??= createContext(false);
|
|
4
6
|
|
|
5
7
|
export { NativeMenuContext };
|
|
6
8
|
//# sourceMappingURL=nativeMenuContext.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeMenuContext.js","names":[],"sources":["esm/nativeMenuContext.js"],"sourcesContent":["import { createContext } from \"react\";\nconst NativeMenuContext = createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,MAAM,oBAAoB,cAAc,KAAK"}
|
|
1
|
+
{"version":3,"file":"nativeMenuContext.js","names":[],"sources":["esm/nativeMenuContext.js"],"sourcesContent":["import { createContext } from \"react\";\nconst KEY = \"__tamagui_native_menu_context__\";\nconst g = globalThis;\nconst NativeMenuContext = g[KEY] ??= createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,oBAAoB,EAAE,SAAS,cAAc,KAAK"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _g;
|
|
4
|
+
var _KEY;
|
|
5
|
+
var KEY = "__tamagui_native_menu_context__";
|
|
6
|
+
var g = globalThis;
|
|
7
|
+
var _;
|
|
8
|
+
var NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = createContext(false);
|
|
4
9
|
|
|
5
10
|
export { NativeMenuContext };
|
|
6
11
|
//# sourceMappingURL=nativeMenuContext.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeMenuContext.native.js","names":[],"sources":["esm/nativeMenuContext.native.js"],"sourcesContent":["import { createContext } from \"react\";\nvar NativeMenuContext = createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,IAAI,
|
|
1
|
+
{"version":3,"file":"nativeMenuContext.native.js","names":[],"sources":["esm/nativeMenuContext.native.js"],"sourcesContent":["import { createContext } from \"react\";\nvar _g;\nvar _KEY;\nvar KEY = \"__tamagui_native_menu_context__\";\nvar g = globalThis;\nvar _;\nvar NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = createContext(false);\nexport {\n NativeMenuContext\n};\n//# sourceMappingURL=nativeMenuContext.js.map\n"],"mappings":";;;AACA,IAAI;AACJ,IAAI;AACJ,IAAI,MAAM;AACV,IAAI,IAAI;AACR,IAAI;AACJ,IAAI,qBAAqB,KAAK,KAAK,EAAC,CAAE,OAAO,UAAU,QAAQ,MAAM,KAAK,IAAI,IAAI,GAAG,QAAQ,cAAc,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/native",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1670.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Native setup modules for Tamagui - portals, gesture handler, worklets, and more",
|
|
6
6
|
"type": "module",
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
"clean:build": "tamagui-build clean:build"
|
|
183
183
|
},
|
|
184
184
|
"dependencies": {
|
|
185
|
-
"@tamagui/compose-refs": "3.0.0-beta.
|
|
186
|
-
"@tamagui/react-native-types": "3.0.0-beta.
|
|
185
|
+
"@tamagui/compose-refs": "3.0.0-beta.1670.1",
|
|
186
|
+
"@tamagui/react-native-types": "3.0.0-beta.1670.1"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@expo/ui": "~57.0.12",
|
|
190
|
-
"@tamagui/build": "3.0.0-beta.
|
|
190
|
+
"@tamagui/build": "3.0.0-beta.1670.1",
|
|
191
191
|
"burnt": "^0.13.0",
|
|
192
192
|
"react": "19.2.3",
|
|
193
193
|
"react-native": "0.86.2",
|
|
@@ -253,5 +253,5 @@
|
|
|
253
253
|
"url": "git+https://github.com/tamagui/tamagui.git",
|
|
254
254
|
"directory": "code/core/native"
|
|
255
255
|
},
|
|
256
|
-
"releaseSourceCommit": "
|
|
256
|
+
"releaseSourceCommit": "23b9b37ef498bb7ebe306138c1d635a807db8ac1"
|
|
257
257
|
}
|
package/src/nativeMenuContext.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type React from 'react'
|
|
2
2
|
import { createContext } from 'react'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// one context per runtime: core reads it and the menu packages provide it, so a
|
|
5
|
+
// second copy of this module (a bundled core, a duplicated install) must not
|
|
6
|
+
// split them into two contexts that never see each other
|
|
7
|
+
const KEY = '__tamagui_native_menu_context__'
|
|
8
|
+
const g = globalThis as typeof globalThis & { [KEY]?: React.Context<boolean> }
|
|
9
|
+
|
|
10
|
+
export const NativeMenuContext: React.Context<boolean> = (g[KEY] ??= createContext(false))
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
2
|
+
"mappings": "AAAA,YAAY,WAAW;AASvB,OAAO,cAAM,mBAAmB,MAAM",
|
|
3
3
|
"names": [],
|
|
4
4
|
"sources": [
|
|
5
5
|
"src/nativeMenuContext.ts"
|
|
6
6
|
],
|
|
7
7
|
"version": 3,
|
|
8
8
|
"sourcesContent": [
|
|
9
|
-
"import type React from 'react'\nimport { createContext } from 'react'\n\nexport const NativeMenuContext: React.Context<boolean> = createContext(false)\n"
|
|
9
|
+
"import type React from 'react'\nimport { createContext } from 'react'\n\n// one context per runtime: core reads it and the menu packages provide it, so a\n// second copy of this module (a bundled core, a duplicated install) must not\n// split them into two contexts that never see each other\nconst KEY = '__tamagui_native_menu_context__'\nconst g = globalThis as typeof globalThis & { [KEY]?: React.Context<boolean> }\n\nexport const NativeMenuContext: React.Context<boolean> = (g[KEY] ??= createContext(false))\n"
|
|
10
10
|
]
|
|
11
11
|
}
|