@tamagui/web 1.81.1 → 1.81.2

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.
@@ -17,8 +17,11 @@ __export(Configuration_exports, {
17
17
  Configuration: () => Configuration
18
18
  });
19
19
  module.exports = __toCommonJS(Configuration_exports);
20
- var import_ComponentContext = require("../contexts/ComponentContext"), import_jsx_runtime = require("react/jsx-runtime");
21
- const Configuration = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...props });
20
+ var import_react = require("react"), import_ComponentContext = require("../contexts/ComponentContext"), import_jsx_runtime = require("react/jsx-runtime");
21
+ const Configuration = (props) => {
22
+ const current = (0, import_react.useContext)(import_ComponentContext.ComponentContext);
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...current, ...props });
24
+ };
22
25
  // Annotate the CommonJS export names for ESM import in node:
23
26
  0 && (module.exports = {
24
27
  Configuration
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/views/Configuration.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAiC,yCASxB;AADF,MAAM,gBAAgB,CAAC,UACrB,4CAAC,yCAAiB,UAAjB,EAA2B,GAAG,OAAO;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B,kBAE3B,0BAAiC,yCAUxB;AAFF,MAAM,gBAAgB,CAAC,UAA8B;AAC1D,QAAM,cAAU,yBAAW,wCAAgB;AAC3C,SAAO,4CAAC,yCAAiB,UAAjB,EAA2B,GAAG,SAAU,GAAG,OAAO;AAC5D;",
5
5
  "names": []
6
6
  }
@@ -18,8 +18,11 @@ __export(Configuration_exports, {
18
18
  Configuration: () => Configuration
19
19
  });
20
20
  module.exports = __toCommonJS(Configuration_exports);
21
- var import_ComponentContext = require("../contexts/ComponentContext"), import_jsx_runtime = require("react/jsx-runtime");
22
- const Configuration = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...props });
21
+ var import_react = require("react"), import_ComponentContext = require("../contexts/ComponentContext"), import_jsx_runtime = require("react/jsx-runtime");
22
+ const Configuration = (props) => {
23
+ const current = (0, import_react.useContext)(import_ComponentContext.ComponentContext);
24
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, { ...current, ...props });
25
+ };
23
26
  // Annotate the CommonJS export names for ESM import in node:
24
27
  0 && (module.exports = {
25
28
  Configuration
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/views/Configuration.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAiC,yCASxB;AADF,MAAM,gBAAgB,CAAC,UACrB,4CAAC,yCAAiB,UAAjB,EAA2B,GAAG,OAAO;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B,kBAE3B,0BAAiC,yCAUxB;AAFF,MAAM,gBAAgB,CAAC,UAA8B;AAC1D,QAAM,cAAU,yBAAW,wCAAgB;AAC3C,SAAO,4CAAC,yCAAiB,UAAjB,EAA2B,GAAG,SAAU,GAAG,OAAO;AAC5D;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,10 @@
1
+ import { useContext } from "react";
1
2
  import { ComponentContext } from "../contexts/ComponentContext";
2
3
  import { jsx } from "react/jsx-runtime";
3
- const Configuration = (props) => /* @__PURE__ */ jsx(ComponentContext.Provider, { ...props });
4
+ const Configuration = (props) => {
5
+ const current = useContext(ComponentContext);
6
+ return /* @__PURE__ */ jsx(ComponentContext.Provider, { ...current, ...props });
7
+ };
4
8
  export {
5
9
  Configuration
6
10
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/views/Configuration.tsx"],
4
- "mappings": "AAAA,SAAS,wBAAwB;AASxB;AADF,MAAM,gBAAgB,CAAC,UACrB,oBAAC,iBAAiB,UAAjB,EAA2B,GAAG,OAAO;",
4
+ "mappings": "AAAA,SAAS,kBAAkB;AAE3B,SAAS,wBAAwB;AAUxB;AAFF,MAAM,gBAAgB,CAAC,UAA8B;AAC1D,QAAM,UAAU,WAAW,gBAAgB;AAC3C,SAAO,oBAAC,iBAAiB,UAAjB,EAA2B,GAAG,SAAU,GAAG,OAAO;AAC5D;",
5
5
  "names": []
6
6
  }
@@ -1,6 +1,10 @@
1
+ import { useContext } from "react";
1
2
  import { ComponentContext } from "../contexts/ComponentContext";
2
3
  import { jsx } from "react/jsx-runtime";
3
- const Configuration = (props) => /* @__PURE__ */ jsx(ComponentContext.Provider, { ...props });
4
+ const Configuration = (props) => {
5
+ const current = useContext(ComponentContext);
6
+ return /* @__PURE__ */ jsx(ComponentContext.Provider, { ...current, ...props });
7
+ };
4
8
  export {
5
9
  Configuration
6
10
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/views/Configuration.tsx"],
4
- "mappings": "AAAA,SAAS,wBAAwB;AASxB;AADF,MAAM,gBAAgB,CAAC,UACrB,oBAAC,iBAAiB,UAAjB,EAA2B,GAAG,OAAO;",
4
+ "mappings": "AAAA,SAAS,kBAAkB;AAE3B,SAAS,wBAAwB;AAUxB;AAFF,MAAM,gBAAgB,CAAC,UAA8B;AAC1D,QAAM,UAAU,WAAW,gBAAgB;AAC3C,SAAO,oBAAC,iBAAiB,UAAjB,EAA2B,GAAG,SAAU,GAAG,OAAO;AAC5D;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/web",
3
- "version": "1.81.1",
3
+ "version": "1.81.2",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -27,20 +27,20 @@
27
27
  "reset.css"
28
28
  ],
29
29
  "dependencies": {
30
- "@tamagui/compose-refs": "1.81.1",
31
- "@tamagui/constants": "1.81.1",
32
- "@tamagui/helpers": "1.81.1",
33
- "@tamagui/normalize-css-color": "1.81.1",
34
- "@tamagui/timer": "1.81.1",
35
- "@tamagui/use-did-finish-ssr": "1.81.1",
36
- "@tamagui/use-event": "1.81.1",
37
- "@tamagui/use-force-update": "1.81.1"
30
+ "@tamagui/compose-refs": "1.81.2",
31
+ "@tamagui/constants": "1.81.2",
32
+ "@tamagui/helpers": "1.81.2",
33
+ "@tamagui/normalize-css-color": "1.81.2",
34
+ "@tamagui/timer": "1.81.2",
35
+ "@tamagui/use-did-finish-ssr": "1.81.2",
36
+ "@tamagui/use-event": "1.81.2",
37
+ "@tamagui/use-force-update": "1.81.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "*"
41
41
  },
42
42
  "devDependencies": {
43
- "@tamagui/build": "1.81.1",
43
+ "@tamagui/build": "1.81.2",
44
44
  "@testing-library/react": "^14.0.0",
45
45
  "csstype": "^3.0.10",
46
46
  "react": "^18.2.0",
@@ -1,3 +1,5 @@
1
+ import { useContext } from 'react'
2
+
1
3
  import { ComponentContext } from '../contexts/ComponentContext'
2
4
  import type { AnimationDriver } from '../types'
3
5
 
@@ -7,5 +9,6 @@ interface ConfigurationProps {
7
9
  }
8
10
 
9
11
  export const Configuration = (props: ConfigurationProps) => {
10
- return <ComponentContext.Provider {...props} />
12
+ const current = useContext(ComponentContext)
13
+ return <ComponentContext.Provider {...current} {...props} />
11
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../src/views/Configuration.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,UAAU,kBAAkB;IAC1B,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAEtD,CAAA"}
1
+ {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../src/views/Configuration.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,UAAU,kBAAkB;IAC1B,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAGtD,CAAA"}