@tamagui/conditional-hooks 2.0.0-rc.25-1773314599635 → 2.0.0-rc.26
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/index.js +32 -12
- package/dist/esm/index.js +17 -34
- package/dist/esm/index.js.map +1 -6
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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);
|
|
15
21
|
var index_exports = {};
|
|
16
22
|
__export(index_exports, {
|
|
17
23
|
conditionalCallback: () => conditionalCallback,
|
|
@@ -31,6 +37,20 @@ __export(index_exports, {
|
|
|
31
37
|
conditionalTransition: () => conditionalTransition
|
|
32
38
|
});
|
|
33
39
|
module.exports = __toCommonJS(index_exports);
|
|
34
|
-
var import_constants = require("@tamagui/constants"),
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
var import_constants = require("@tamagui/constants"),
|
|
41
|
+
import_react = require("react");
|
|
42
|
+
const conditionalCallback = import_react.useCallback,
|
|
43
|
+
conditionalContext = import_react.useContext,
|
|
44
|
+
conditionalDebugValue = import_react.useDebugValue,
|
|
45
|
+
conditionalDeferredValue = import_react.useDeferredValue,
|
|
46
|
+
conditionalEffect = import_react.useEffect,
|
|
47
|
+
conditionalId = import_react.useId,
|
|
48
|
+
conditionalImperativeHandle = import_react.useImperativeHandle,
|
|
49
|
+
conditionalInsertionEffect = import_react.useInsertionEffect,
|
|
50
|
+
conditionalLayoutEffect = import_constants.useIsomorphicLayoutEffect,
|
|
51
|
+
conditionalMemo = import_react.useMemo,
|
|
52
|
+
conditionalReducer = import_react.useReducer,
|
|
53
|
+
conditionalRef = import_react.useRef,
|
|
54
|
+
conditionalState = import_react.useState,
|
|
55
|
+
conditionalSyncExternalStore = import_react.useSyncExternalStore,
|
|
56
|
+
conditionalTransition = import_react.useTransition;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
import { useIsomorphicLayoutEffect } from "@tamagui/constants";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
useContext,
|
|
5
|
-
useDebugValue,
|
|
6
|
-
useDeferredValue,
|
|
7
|
-
useEffect,
|
|
8
|
-
useId,
|
|
9
|
-
useImperativeHandle,
|
|
10
|
-
useInsertionEffect,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
conditionalCallback,
|
|
21
|
-
conditionalContext,
|
|
22
|
-
conditionalDebugValue,
|
|
23
|
-
conditionalDeferredValue,
|
|
24
|
-
conditionalEffect,
|
|
25
|
-
conditionalId,
|
|
26
|
-
conditionalImperativeHandle,
|
|
27
|
-
conditionalInsertionEffect,
|
|
28
|
-
conditionalLayoutEffect,
|
|
29
|
-
conditionalMemo,
|
|
30
|
-
conditionalReducer,
|
|
31
|
-
conditionalRef,
|
|
32
|
-
conditionalState,
|
|
33
|
-
conditionalSyncExternalStore,
|
|
34
|
-
conditionalTransition
|
|
35
|
-
};
|
|
2
|
+
import { useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition } from "react";
|
|
3
|
+
const conditionalCallback = useCallback,
|
|
4
|
+
conditionalContext = useContext,
|
|
5
|
+
conditionalDebugValue = useDebugValue,
|
|
6
|
+
conditionalDeferredValue = useDeferredValue,
|
|
7
|
+
conditionalEffect = useEffect,
|
|
8
|
+
conditionalId = useId,
|
|
9
|
+
conditionalImperativeHandle = useImperativeHandle,
|
|
10
|
+
conditionalInsertionEffect = useInsertionEffect,
|
|
11
|
+
conditionalLayoutEffect = useIsomorphicLayoutEffect,
|
|
12
|
+
conditionalMemo = useMemo,
|
|
13
|
+
conditionalReducer = useReducer,
|
|
14
|
+
conditionalRef = useRef,
|
|
15
|
+
conditionalState = useState,
|
|
16
|
+
conditionalSyncExternalStore = useSyncExternalStore,
|
|
17
|
+
conditionalTransition = useTransition;
|
|
18
|
+
export { conditionalCallback, conditionalContext, conditionalDebugValue, conditionalDeferredValue, conditionalEffect, conditionalId, conditionalImperativeHandle, conditionalInsertionEffect, conditionalLayoutEffect, conditionalMemo, conditionalReducer, conditionalRef, conditionalState, conditionalSyncExternalStore, conditionalTransition };
|
|
36
19
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,iCAAiC;AAC1C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAiBA,MAAM,sBAAsB,aACtB,qBAAqB,YACrB,wBAAwB,eACxB,2BAA2B,kBAC3B,oBAAoB,WACpB,gBAAgB,OAChB,8BAA8B,qBAC9B,6BAA6B,oBAC7B,0BAA0B,2BAC1B,kBAAkB,SAClB,qBAAqB,YACrB,iBAAiB,QACjB,mBAAmB,UACnB,+BAA+B,sBAC/B,wBAAwB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["useIsomorphicLayoutEffect","useCallback","useContext","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useMemo","useReducer","useRef","useState","useSyncExternalStore","useTransition","conditionalCallback","conditionalContext","conditionalDebugValue","conditionalDeferredValue","conditionalEffect","conditionalId","conditionalImperativeHandle","conditionalInsertionEffect","conditionalLayoutEffect","conditionalMemo","conditionalReducer","conditionalRef","conditionalState","conditionalSyncExternalStore","conditionalTransition"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,yBAAA,QAAiC;AAC1C,SACEC,WAAA,EACAC,UAAA,EACAC,aAAA,EACAC,gBAAA,EACAC,SAAA,EACAC,KAAA,EACAC,mBAAA,EACAC,kBAAA,EACAC,OAAA,EACAC,UAAA,EACAC,MAAA,EACAC,QAAA,EACAC,oBAAA,EACAC,aAAA,QACK;AAiBA,MAAMC,mBAAA,GAAsBd,WAAA;EACtBe,kBAAA,GAAqBd,UAAA;EACrBe,qBAAA,GAAwBd,aAAA;EACxBe,wBAAA,GAA2Bd,gBAAA;EAC3Be,iBAAA,GAAoBd,SAAA;EACpBe,aAAA,GAAgBd,KAAA;EAChBe,2BAAA,GAA8Bd,mBAAA;EAC9Be,0BAAA,GAA6Bd,kBAAA;EAC7Be,uBAAA,GAA0BvB,yBAAA;EAC1BwB,eAAA,GAAkBf,OAAA;EAClBgB,kBAAA,GAAqBf,UAAA;EACrBgB,cAAA,GAAiBf,MAAA;EACjBgB,gBAAA,GAAmBf,QAAA;EACnBgB,4BAAA,GAA+Bf,oBAAA;EAC/BgB,qBAAA,GAAwBf,aAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/conditional-hooks",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.26",
|
|
4
4
|
"files": [
|
|
5
5
|
"src",
|
|
6
6
|
"types",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"clean:build": "tamagui-build clean:build"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tamagui/constants": "2.0.0-rc.
|
|
36
|
+
"@tamagui/constants": "2.0.0-rc.26"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@tamagui/build": "2.0.0-rc.
|
|
39
|
+
"@tamagui/build": "2.0.0-rc.26",
|
|
40
40
|
"react": ">=19"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|