@tamagui/web 1.9.17 → 1.9.19
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/hooks/useAnimationDriver.js +3 -2
- package/dist/cjs/hooks/useAnimationDriver.js.map +2 -2
- package/dist/esm/hooks/useAnimationDriver.js +3 -2
- package/dist/esm/hooks/useAnimationDriver.js.map +2 -2
- package/dist/esm/hooks/useAnimationDriver.mjs +3 -2
- package/dist/esm/hooks/useAnimationDriver.mjs.map +2 -2
- package/package.json +9 -9
- package/src/hooks/useAnimationDriver.tsx +3 -2
- package/types/hooks/useAnimationDriver.d.ts +2 -2
- package/types/hooks/useAnimationDriver.d.ts.map +1 -1
|
@@ -22,9 +22,10 @@ __export(useAnimationDriver_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(useAnimationDriver_exports);
|
|
24
24
|
var import_react = require("react");
|
|
25
|
-
var import_AnimationDriverContext = require("../contexts/AnimationDriverContext");
|
|
25
|
+
var import_AnimationDriverContext = require("../contexts/AnimationDriverContext.js");
|
|
26
|
+
var import_getAnimationDriver = require("../helpers/getAnimationDriver.js");
|
|
26
27
|
const useAnimationDriver = () => {
|
|
27
|
-
return (0, import_react.useContext)(import_AnimationDriverContext.AnimationDriverContext);
|
|
28
|
+
return (0, import_react.useContext)(import_AnimationDriverContext.AnimationDriverContext) ?? (0, import_getAnimationDriver.getAnimationDriver)();
|
|
28
29
|
};
|
|
29
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
31
|
0 && (module.exports = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/hooks/useAnimationDriver.tsx"],
|
|
4
|
-
"sourcesContent": ["import { useContext } from 'react'\n\nimport { AnimationDriverContext } from '../contexts/AnimationDriverContext'\n\nexport const useAnimationDriver = () => {\n return useContext(AnimationDriverContext)\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAE3B,oCAAuC;
|
|
4
|
+
"sourcesContent": ["import { useContext } from 'react'\n\nimport { AnimationDriverContext } from '../contexts/AnimationDriverContext.js'\nimport { getAnimationDriver } from '../helpers/getAnimationDriver.js'\n\nexport const useAnimationDriver = () => {\n return useContext(AnimationDriverContext) ?? getAnimationDriver()\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAE3B,oCAAuC;AACvC,gCAAmC;AAE5B,MAAM,qBAAqB,MAAM;AACtC,aAAO,yBAAW,oDAAsB,SAAK,8CAAmB;AAClE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { AnimationDriverContext } from "../contexts/AnimationDriverContext";
|
|
2
|
+
import { AnimationDriverContext } from "../contexts/AnimationDriverContext.js";
|
|
3
|
+
import { getAnimationDriver } from "../helpers/getAnimationDriver.js";
|
|
3
4
|
const useAnimationDriver = () => {
|
|
4
|
-
return useContext(AnimationDriverContext);
|
|
5
|
+
return useContext(AnimationDriverContext) ?? getAnimationDriver();
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
7
8
|
useAnimationDriver
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/hooks/useAnimationDriver.tsx"],
|
|
4
|
-
"sourcesContent": ["import { useContext } from 'react'\n\nimport { AnimationDriverContext } from '../contexts/AnimationDriverContext'\n\nexport const useAnimationDriver = () => {\n return useContext(AnimationDriverContext)\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,kBAAkB;AAE3B,SAAS,8BAA8B;
|
|
4
|
+
"sourcesContent": ["import { useContext } from 'react'\n\nimport { AnimationDriverContext } from '../contexts/AnimationDriverContext.js'\nimport { getAnimationDriver } from '../helpers/getAnimationDriver.js'\n\nexport const useAnimationDriver = () => {\n return useContext(AnimationDriverContext) ?? getAnimationDriver()\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,kBAAkB;AAE3B,SAAS,8BAA8B;AACvC,SAAS,0BAA0B;AAE5B,MAAM,qBAAqB,MAAM;AACtC,SAAO,WAAW,sBAAsB,KAAK,mBAAmB;AAClE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { AnimationDriverContext } from "../contexts/AnimationDriverContext";
|
|
2
|
+
import { AnimationDriverContext } from "../contexts/AnimationDriverContext.js";
|
|
3
|
+
import { getAnimationDriver } from "../helpers/getAnimationDriver.js";
|
|
3
4
|
const useAnimationDriver = () => {
|
|
4
|
-
return useContext(AnimationDriverContext);
|
|
5
|
+
return useContext(AnimationDriverContext) ?? getAnimationDriver();
|
|
5
6
|
};
|
|
6
7
|
export {
|
|
7
8
|
useAnimationDriver
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/hooks/useAnimationDriver.tsx"],
|
|
4
|
-
"sourcesContent": ["import { useContext } from 'react'\n\nimport { AnimationDriverContext } from '../contexts/AnimationDriverContext'\n\nexport const useAnimationDriver = () => {\n return useContext(AnimationDriverContext)\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,kBAAkB;AAE3B,SAAS,8BAA8B;
|
|
4
|
+
"sourcesContent": ["import { useContext } from 'react'\n\nimport { AnimationDriverContext } from '../contexts/AnimationDriverContext.js'\nimport { getAnimationDriver } from '../helpers/getAnimationDriver.js'\n\nexport const useAnimationDriver = () => {\n return useContext(AnimationDriverContext) ?? getAnimationDriver()\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,kBAAkB;AAE3B,SAAS,8BAA8B;AACvC,SAAS,0BAA0B;AAE5B,MAAM,qBAAqB,MAAM;AACtC,SAAO,WAAW,sBAAsB,KAAK,mBAAmB;AAClE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.19",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"reset.css"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tamagui/compose-refs": "1.9.
|
|
31
|
-
"@tamagui/constants": "1.9.
|
|
32
|
-
"@tamagui/helpers": "1.9.
|
|
33
|
-
"@tamagui/normalize-css-color": "1.9.
|
|
34
|
-
"@tamagui/use-did-finish-ssr": "1.9.
|
|
35
|
-
"@tamagui/use-event": "1.9.
|
|
36
|
-
"@tamagui/use-force-update": "1.9.
|
|
30
|
+
"@tamagui/compose-refs": "1.9.19",
|
|
31
|
+
"@tamagui/constants": "1.9.19",
|
|
32
|
+
"@tamagui/helpers": "1.9.19",
|
|
33
|
+
"@tamagui/normalize-css-color": "1.9.19",
|
|
34
|
+
"@tamagui/use-did-finish-ssr": "1.9.19",
|
|
35
|
+
"@tamagui/use-event": "1.9.19",
|
|
36
|
+
"@tamagui/use-force-update": "1.9.19"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "*"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tamagui/build": "1.9.
|
|
42
|
+
"@tamagui/build": "1.9.19",
|
|
43
43
|
"@testing-library/react": "^13.4.0",
|
|
44
44
|
"csstype": "^3.0.10",
|
|
45
45
|
"react": "^18.2.0",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useContext } from 'react'
|
|
2
2
|
|
|
3
|
-
import { AnimationDriverContext } from '../contexts/AnimationDriverContext'
|
|
3
|
+
import { AnimationDriverContext } from '../contexts/AnimationDriverContext.js'
|
|
4
|
+
import { getAnimationDriver } from '../helpers/getAnimationDriver.js'
|
|
4
5
|
|
|
5
6
|
export const useAnimationDriver = () => {
|
|
6
|
-
return useContext(AnimationDriverContext)
|
|
7
|
+
return useContext(AnimationDriverContext) ?? getAnimationDriver()
|
|
7
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnimationDriver.d.ts","sourceRoot":"","sources":["../../src/hooks/useAnimationDriver.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAnimationDriver.d.ts","sourceRoot":"","sources":["../../src/hooks/useAnimationDriver.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;EAE9B,CAAA"}
|