@tamagui/start-transition 2.7.7 → 3.0.0-beta.643.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.
@@ -1,31 +1,28 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
19
20
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
22
  var index_exports = {};
24
- __export(index_exports, {
25
- startTransition: () => startTransition
26
- });
23
+ __export(index_exports, { startTransition: () => startTransition });
27
24
  module.exports = __toCommonJS(index_exports);
28
25
  var import_react = require("react");
29
- const startTransition = callback => {
30
- (0, import_react.startTransition)(callback);
31
- };
26
+ const startTransition = (callback) => {
27
+ (0, import_react.startTransition)(callback);
28
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var index_exports = {};
25
+ __export(index_exports, { startTransition: () => startTransition });
26
+ module.exports = __toCommonJS(index_exports);
27
+ require("react");
28
+ var startTransition = function(callback) {
29
+ callback();
30
+ };
@@ -1,34 +1,32 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var index_exports = {};
26
- __export(index_exports, {
27
- startTransition: () => startTransition
28
- });
25
+ __export(index_exports, { startTransition: () => startTransition });
29
26
  module.exports = __toCommonJS(index_exports);
30
27
  require("react");
31
- var startTransition = function (callback) {
32
- callback();
28
+ var startTransition = function(callback) {
29
+ callback();
33
30
  };
31
+
34
32
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["to","__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","startTransition","module","exports","require","callback"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;EAAA;EAAA,OAAAA,EAAA;AAAA;AAAA,IAAAC,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAwD;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAEjDC,MAAM,CAAAC,OAAA,GAAAT,YAAmB,CAAAK,aAA6C;AAC3EK,OAAI,QAAQ;AAEV,IAAAH,eAAS,YAAAA,CAAAI,QAAA;EAAAA,QACJ;AAEL","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.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\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, { startTransition: () => startTransition });\nmodule.exports = __toCommonJS(index_exports);\nrequire(\"react\");\nvar startTransition = function(callback) {\n\tcallback();\n};\n//# sourceMappingURL=index.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;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe,EAAE,uBAAuB,gBAAgB,CAAC;AAClE,OAAO,UAAU,aAAa,aAAa;AAC3C,QAAQ,OAAO;AACf,IAAI,kBAAkB,SAAS,UAAU;CACxC,SAAS;AACV"}
package/dist/esm/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import { startTransition as startTransition$1 } from "react";
2
- const startTransition = callback => {
3
- startTransition$1(callback);
2
+
3
+ const startTransition = (callback) => {
4
+ startTransition$1(callback);
4
5
  };
6
+
5
7
  export { startTransition };
6
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["startTransition","startTransition$1","callback"],"sources":["index.mjs"],"sourcesContent":["import { startTransition as startTransition$1 } from \"react\";\n\nconst startTransition = (callback) => {\n\tstartTransition$1(callback);\n};\n\nexport { startTransition };"],"mappings":"AAAA,SAASA,eAAe,IAAIC,iBAAiB,QAAQ,OAAO;AAE5D,MAAMD,eAAe,GAAIE,QAAQ,IAAK;EACrCD,iBAAiB,CAACC,QAAQ,CAAC;AAC5B,CAAC;AAED,SAASF,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { startTransition as startTransition$1 } from \"react\";\n\nconst startTransition = (callback) => {\n\tstartTransition$1(callback);\n};\n\nexport { startTransition };"],"mappings":";;;AAEA,MAAM,mBAAmB,aAAa;CACrC,kBAAkB,QAAQ;AAC3B"}
@@ -1,6 +1,8 @@
1
1
  import { startTransition as startTransition$1 } from "react";
2
- const startTransition = callback => {
3
- startTransition$1(callback);
2
+
3
+ const startTransition = (callback) => {
4
+ startTransition$1(callback);
4
5
  };
6
+
5
7
  export { startTransition };
6
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["startTransition","startTransition$1","callback"],"sources":["index.mjs"],"sourcesContent":["import { startTransition as startTransition$1 } from \"react\";\n\nconst startTransition = (callback) => {\n\tstartTransition$1(callback);\n};\n\nexport { startTransition };"],"mappings":"AAAA,SAASA,eAAe,IAAIC,iBAAiB,QAAQ,OAAO;AAE5D,MAAMD,eAAe,GAAIE,QAAQ,IAAK;EACrCD,iBAAiB,CAACC,QAAQ,CAAC;AAC5B,CAAC;AAED,SAASF,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { startTransition as startTransition$1 } from \"react\";\n\nconst startTransition = (callback) => {\n\tstartTransition$1(callback);\n};\n\nexport { startTransition };"],"mappings":";;;AAEA,MAAM,mBAAmB,aAAa;CACrC,kBAAkB,QAAQ;AAC3B"}
@@ -1,5 +1,6 @@
1
- var startTransition = function (callback) {
2
- callback();
1
+ var startTransition = function(callback) {
2
+ callback();
3
3
  };
4
+
4
5
  export { startTransition };
5
6
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["startTransition","callback"],"sources":["index.native.js"],"sourcesContent":["\n\nvar startTransition = function(callback) {\n\tcallback();\n};\n\nexport { startTransition };"],"mappings":"AAEA,IAAIA,eAAe,GAAG,SAAAA,CAASC,QAAQ,EAAE;EACxCA,QAAQ,CAAC,CAAC;AACX,CAAC;AAED,SAASD,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["\n\nvar startTransition = function(callback) {\n\tcallback();\n};\n\nexport { startTransition };"],"mappings":";AAEA,IAAI,kBAAkB,SAAS,UAAU;CACxC,SAAS;AACV"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/start-transition",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -35,7 +35,7 @@
35
35
  "clean:build": "tamagui-build clean:build"
36
36
  },
37
37
  "devDependencies": {
38
- "@tamagui/build": "2.7.7",
38
+ "@tamagui/build": "3.0.0-beta.643.1",
39
39
  "react": ">=19"
40
40
  },
41
41
  "peerDependencies": {
@@ -1,15 +0,0 @@
1
- var import_index = require("./index.cjs");
2
- describe("startTransition", () => {
3
- it("should call the callback directly if TAMAGUI_TARGET is not web", () => {
4
- process.env.TAMAGUI_TARGET = "native";
5
- const callback = jest.fn();
6
- (0, import_index.startTransition)(callback);
7
- expect(callback).toHaveBeenCalled();
8
- });
9
- it("should proxy to react.startTransition if TAMAGUI_TARGET is web", () => {
10
- process.env.TAMAGUI_TARGET = "web";
11
- const callback = jest.fn();
12
- (0, import_index.startTransition)(callback);
13
- expect(callback).not.toHaveBeenCalled();
14
- });
15
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- var import_index = require("./index.native.js");
4
- describe("startTransition", function () {
5
- it("should call the callback directly if TAMAGUI_TARGET is not web", function () {
6
- process.env.TAMAGUI_TARGET = "native";
7
- var callback = jest.fn();
8
- (0, import_index.startTransition)(callback);
9
- expect(callback).toHaveBeenCalled();
10
- });
11
- it("should proxy to react.startTransition if TAMAGUI_TARGET is web", function () {
12
- process.env.TAMAGUI_TARGET = "web";
13
- var callback = jest.fn();
14
- (0, import_index.startTransition)(callback);
15
- expect(callback).not.toHaveBeenCalled();
16
- });
17
- });
18
- //# sourceMappingURL=index.test.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["import_index","require","describe","it","process","env","TAMAGUI_TARGET","callback","jest","fn","startTransition","expect","toHaveBeenCalled","not"],"sources":["../../src/index.test.js"],"sourcesContent":[null],"mappings":"AAAA;;AAEA,IAAAA,YAAS,GAAAC,OAAA,oBAAyB;AAChCC,QAAG;EACDC,EAAA,iEAA6B;IAC7BC,OAAA,CAAMC,GAAA,CAAAC,cAAgB,GAAG;IACzB,IAAAC,QAAA,GAAAC,IAAA,CAAAC,EAAA;IACA,IAAAT,YAAO,CAAQU,eAAE,EAAAH,QAAiB;IACpCI,MAAC,CAAAJ,QAAA,EAAAK,gBAAA;EAED;EACET,EAAA,iEAA6B;IAC7BC,OAAA,CAAMC,GAAA,CAAAC,cAAgB,GAAG;IACzB,IAAAC,QAAA,GAAAC,IAAA,CAAAC,EAAA;IAEA,IAAAT,YAAO,CAAQU,eAAM,EAAAH,QAAiB;IACxCI,MAAC,CAAAJ,QAAA,EAAAM,GAAA,CAAAD,gBAAA;EACF","ignoreList":[]}
@@ -1,16 +0,0 @@
1
- import { startTransition } from "./index.mjs";
2
- describe("startTransition", () => {
3
- it("should call the callback directly if TAMAGUI_TARGET is not web", () => {
4
- process.env.TAMAGUI_TARGET = "native";
5
- const callback = jest.fn();
6
- startTransition(callback);
7
- expect(callback).toHaveBeenCalled();
8
- });
9
- it("should proxy to react.startTransition if TAMAGUI_TARGET is web", () => {
10
- process.env.TAMAGUI_TARGET = "web";
11
- const callback = jest.fn();
12
- startTransition(callback);
13
- expect(callback).not.toHaveBeenCalled();
14
- });
15
- });
16
- //# sourceMappingURL=index.test.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["startTransition","describe","it","process","env","TAMAGUI_TARGET","callback","jest","fn","expect","toHaveBeenCalled","not"],"sources":["index.test.mjs"],"sourcesContent":["import { startTransition } from \"./index\";\n\ndescribe(\"startTransition\", () => {\n\tit(\"should call the callback directly if TAMAGUI_TARGET is not web\", () => {\n\t\tprocess.env.TAMAGUI_TARGET = \"native\";\n\t\tconst callback = jest.fn();\n\t\tstartTransition(callback);\n\t\texpect(callback).toHaveBeenCalled();\n\t});\n\tit(\"should proxy to react.startTransition if TAMAGUI_TARGET is web\", () => {\n\t\tprocess.env.TAMAGUI_TARGET = \"web\";\n\t\tconst callback = jest.fn();\n\t\tstartTransition(callback);\n\t\texpect(callback).not.toHaveBeenCalled();\n\t});\n});\n\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,aAAS;AAEzCC,QAAQ,CAAC,iBAAiB,EAAE,MAAM;EACjCC,EAAE,CAAC,gEAAgE,EAAE,MAAM;IAC1EC,OAAO,CAACC,GAAG,CAACC,cAAc,GAAG,QAAQ;IACrC,MAAMC,QAAQ,GAAGC,IAAI,CAACC,EAAE,CAAC,CAAC;IAC1BR,eAAe,CAACM,QAAQ,CAAC;IACzBG,MAAM,CAACH,QAAQ,CAAC,CAACI,gBAAgB,CAAC,CAAC;EACpC,CAAC,CAAC;EACFR,EAAE,CAAC,gEAAgE,EAAE,MAAM;IAC1EC,OAAO,CAACC,GAAG,CAACC,cAAc,GAAG,KAAK;IAClC,MAAMC,QAAQ,GAAGC,IAAI,CAACC,EAAE,CAAC,CAAC;IAC1BR,eAAe,CAACM,QAAQ,CAAC;IACzBG,MAAM,CAACH,QAAQ,CAAC,CAACK,GAAG,CAACD,gBAAgB,CAAC,CAAC;EACxC,CAAC,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
@@ -1,16 +0,0 @@
1
- import { startTransition } from "./index.native.js";
2
- describe("startTransition", function () {
3
- it("should call the callback directly if TAMAGUI_TARGET is not web", function () {
4
- process.env.TAMAGUI_TARGET = "native";
5
- var callback = jest.fn();
6
- startTransition(callback);
7
- expect(callback).toHaveBeenCalled();
8
- });
9
- it("should proxy to react.startTransition if TAMAGUI_TARGET is web", function () {
10
- process.env.TAMAGUI_TARGET = "web";
11
- var callback = jest.fn();
12
- startTransition(callback);
13
- expect(callback).not.toHaveBeenCalled();
14
- });
15
- });
16
- //# sourceMappingURL=index.test.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["startTransition","describe","it","process","env","TAMAGUI_TARGET","callback","jest","fn","expect","toHaveBeenCalled","not"],"sources":["index.test.native.js"],"sourcesContent":["import { startTransition } from \"./index\";\n\ndescribe(\"startTransition\", function() {\n\tit(\"should call the callback directly if TAMAGUI_TARGET is not web\", function() {\n\t\tprocess.env.TAMAGUI_TARGET = \"native\";\n\t\tvar callback = jest.fn();\n\t\tstartTransition(callback);\n\t\texpect(callback).toHaveBeenCalled();\n\t});\n\tit(\"should proxy to react.startTransition if TAMAGUI_TARGET is web\", function() {\n\t\tprocess.env.TAMAGUI_TARGET = \"web\";\n\t\tvar callback = jest.fn();\n\t\tstartTransition(callback);\n\t\texpect(callback).not.toHaveBeenCalled();\n\t});\n});\n\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,mBAAS;AAEzCC,QAAQ,CAAC,iBAAiB,EAAE,YAAW;EACtCC,EAAE,CAAC,gEAAgE,EAAE,YAAW;IAC/EC,OAAO,CAACC,GAAG,CAACC,cAAc,GAAG,QAAQ;IACrC,IAAIC,QAAQ,GAAGC,IAAI,CAACC,EAAE,CAAC,CAAC;IACxBR,eAAe,CAACM,QAAQ,CAAC;IACzBG,MAAM,CAACH,QAAQ,CAAC,CAACI,gBAAgB,CAAC,CAAC;EACpC,CAAC,CAAC;EACFR,EAAE,CAAC,gEAAgE,EAAE,YAAW;IAC/EC,OAAO,CAACC,GAAG,CAACC,cAAc,GAAG,KAAK;IAClC,IAAIC,QAAQ,GAAGC,IAAI,CAACC,EAAE,CAAC,CAAC;IACxBR,eAAe,CAACM,QAAQ,CAAC;IACzBG,MAAM,CAACH,QAAQ,CAAC,CAACK,GAAG,CAACD,gBAAgB,CAAC,CAAC;EACxC,CAAC,CAAC;AACH,CAAC,CAAC","ignoreList":[]}
package/src/index.test.js DELETED
@@ -1,18 +0,0 @@
1
- import { startTransition } from './index'
2
-
3
- describe('startTransition', () => {
4
- it('should call the callback directly if TAMAGUI_TARGET is not web', () => {
5
- process.env.TAMAGUI_TARGET = 'native'
6
- const callback = jest.fn()
7
- startTransition(callback)
8
- expect(callback).toHaveBeenCalled()
9
- })
10
-
11
- it('should proxy to react.startTransition if TAMAGUI_TARGET is web', () => {
12
- process.env.TAMAGUI_TARGET = 'web'
13
- const callback = jest.fn()
14
- startTransition(callback)
15
- // Assuming react.startTransition works as expected
16
- expect(callback).not.toHaveBeenCalled()
17
- })
18
- })