@tamagui/start-transition 1.114.4 → 1.115.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.
@@ -0,0 +1,29 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ startTransition: () => startTransition
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ var import_react = require("react");
27
+ const startTransition = callback => {
28
+ (0, import_react.startTransition)(callback);
29
+ };
@@ -1,4 +1,4 @@
1
- var import_index = require("./index");
1
+ var import_index = require("./index.cjs");
2
2
  describe("startTransition", () => {
3
3
  it("should call the callback directly if TAMAGUI_TARGET is not web", () => {
4
4
  process.env.TAMAGUI_TARGET = "native";
@@ -9,5 +9,4 @@ describe("startTransition", () => {
9
9
  const callback = jest.fn();
10
10
  (0, import_index.startTransition)(callback), expect(callback).not.toHaveBeenCalled();
11
11
  });
12
- });
13
- //# sourceMappingURL=index.test.js.map
12
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/start-transition",
3
- "version": "1.114.4",
3
+ "version": "1.115.1",
4
4
  "source": "src/index.ts",
5
5
  "license": "MIT",
6
6
  "types": "./types/index.d.ts",
@@ -14,16 +14,18 @@
14
14
  "exports": {
15
15
  "./package.json": "./package.json",
16
16
  ".": {
17
+ "react-native": "./dist/cjs/index.native.js",
17
18
  "types": "./types/index.d.ts",
18
19
  "import": "./dist/esm/index.mjs",
19
- "require": "./dist/cjs/index.js"
20
+ "require": "./dist/cjs/index.cjs",
21
+ "default": "./dist/cjs/index.native.js"
20
22
  }
21
23
  },
22
24
  "dependencies": {
23
25
  "react": "^18.2.0 || ^19.0.0"
24
26
  },
25
27
  "devDependencies": {
26
- "@tamagui/build": "1.114.4"
28
+ "@tamagui/build": "1.115.1"
27
29
  },
28
30
  "scripts": {
29
31
  "build": "tamagui-build",
package/dist/cjs/index.js DELETED
@@ -1,24 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var src_exports = {};
16
- __export(src_exports, {
17
- startTransition: () => startTransition
18
- });
19
- module.exports = __toCommonJS(src_exports);
20
- var import_react = require("react");
21
- const startTransition = (callback) => {
22
- (0, import_react.startTransition)(callback);
23
- };
24
- //# sourceMappingURL=index.js.map
File without changes