@tamagui/use-window-dimensions 1.135.4 → 1.135.5
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/helpers.native.js +23 -19
- package/dist/cjs/helpers.native.js.map +1 -6
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +32 -21
- package/dist/cjs/index.native.js.map +1 -6
- package/dist/cjs/initialValue.native.js +17 -15
- package/dist/cjs/initialValue.native.js.map +1 -6
- package/dist/cjs/types.native.js +9 -5
- package/dist/cjs/types.native.js.map +1 -6
- package/package.json +4 -3
- package/types/helpers.d.ts.map +2 -4
- package/types/helpers.native.d.ts.map +2 -4
- package/types/index.d.ts.map +1 -1
- package/types/initialValue.d.ts.map +2 -3
- package/types/types.d.ts.map +2 -4
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
16
23
|
var helpers_native_exports = {};
|
|
17
24
|
__export(helpers_native_exports, {
|
|
18
25
|
getWindowSize: () => getWindowSize,
|
|
@@ -23,21 +30,18 @@ var import_react_native = require("react-native");
|
|
|
23
30
|
function getWindowSize() {
|
|
24
31
|
return import_react_native.Dimensions.get("window");
|
|
25
32
|
}
|
|
26
|
-
var cbs = /* @__PURE__ */
|
|
27
|
-
import_react_native.Dimensions.addEventListener("change", function(param) {
|
|
28
|
-
var {
|
|
29
|
-
|
|
33
|
+
var cbs = /* @__PURE__ */new Set();
|
|
34
|
+
import_react_native.Dimensions.addEventListener("change", function (param) {
|
|
35
|
+
var {
|
|
36
|
+
window
|
|
37
|
+
} = param;
|
|
38
|
+
cbs.forEach(function (cb) {
|
|
30
39
|
return cb(window);
|
|
31
40
|
});
|
|
32
41
|
});
|
|
33
42
|
function subscribe(cb) {
|
|
34
|
-
return cbs.add(cb), function() {
|
|
43
|
+
return cbs.add(cb), function () {
|
|
35
44
|
return cbs.delete(cb);
|
|
36
45
|
};
|
|
37
46
|
}
|
|
38
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
-
0 && (module.exports = {
|
|
40
|
-
getWindowSize,
|
|
41
|
-
subscribe
|
|
42
|
-
});
|
|
43
47
|
//# sourceMappingURL=helpers.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/helpers.native.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA2B;AACpB,SAAS,gBAAgB;AAC5B,SAAO,+BAAW,IAAI,QAAQ;AAClC;AACA,IAAI,MAAM,oBAAI,IAAI;AAClB,+BAAW,iBAAiB,UAAU,SAAS,OAAO;AAClD,MAAI,EAAE,OAAO,IAAI;AACjB,MAAI,QAAQ,SAAS,IAAI;AACrB,WAAO,GAAG,MAAM;AAAA,EACpB,CAAC;AACL,CAAC;AACM,SAAS,UAAU,IAAI;AAC1B,aAAI,IAAI,EAAE,GACH,WAAW;AACd,WAAO,IAAI,OAAO,EAAE;AAAA,EACxB;AACJ;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["helpers_native_exports","__export","getWindowSize","subscribe","module","exports","__toCommonJS","import_react_native","require","Dimensions","get","cbs","Set","addEventListener","param","window","forEach","cb","add","delete"],"sources":["../../src/helpers.native.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,sBAAA;AAAA,IAAAO,mBAAA,GAA2BC,OAAA;AACpB,SAASN,cAAA,EAAgB;EAC5B,OAAOK,mBAAA,CAAAE,UAAA,CAAWC,GAAA,CAAI,QAAQ;AAClC;AACA,IAAIC,GAAA,GAAM,mBAAIC,GAAA,CAAI;AAClBL,mBAAA,CAAAE,UAAA,CAAWI,gBAAA,CAAiB,UAAU,UAASC,KAAA,EAAO;EAClD,IAAI;IAAEC;EAAO,IAAID,KAAA;EACjBH,GAAA,CAAIK,OAAA,CAAQ,UAASC,EAAA,EAAI;IACrB,OAAOA,EAAA,CAAGF,MAAM;EACpB,CAAC;AACL,CAAC;AACM,SAASZ,UAAUc,EAAA,EAAI;EAC1B,OAAAN,GAAA,CAAIO,GAAA,CAAID,EAAE,GACH,YAAW;IACd,OAAON,GAAA,CAAIQ,MAAA,CAAOF,EAAE;EACxB;AACJ","ignoreList":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
useWindowDimensions: () => useWindowDimensions
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(index_exports);
|
|
38
|
-
var import_react = __toESM(require("react")),
|
|
38
|
+
var import_react = __toESM(require("react"), 1),
|
|
39
39
|
import_constants = require("@tamagui/constants"),
|
|
40
40
|
import_helpers = require("./helpers.cjs"),
|
|
41
41
|
import_initialValue = require("./initialValue.cjs"),
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,7 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
useWindowDimensions: () => useWindowDimensions
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
var import_react = __toESM(require("react")), import_constants = require("@tamagui/constants"), import_helpers = require("./helpers"), import_initialValue = require("./initialValue"), import_initialValue2 = require("./initialValue");
|
|
29
|
+
var import_react = __toESM(require("react"), 1), import_constants = require("@tamagui/constants"), import_helpers = require("./helpers"), import_initialValue = require("./initialValue"), import_initialValue2 = require("./initialValue");
|
|
30
30
|
function useWindowDimensions({
|
|
31
31
|
serverValue = import_initialValue.initialValue
|
|
32
32
|
} = {}) {
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAClB,mBAAsB,+BAEtB,iBAAyC,sBAEzC,sBAA6B,2BAE7BA,uBAAiD;AAE1C,SAAS,oBAAoB;AAAA,EAClC,cAAc;AAChB,IAAkC,CAAC,GAAe;AAChD,SAAO,aAAAC,QAAM;AAAA,IAAqB;AAAA,IAAW;AAAA,IAAe,MAC1D,yBAAQ,kBAAc,8BAAc;AAAA,EACtC;AACF;",
|
|
5
5
|
"names": ["import_initialValue", "React"]
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,42 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
16
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
23
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
24
|
// file that has been converted to a CommonJS file using a Babel-
|
|
19
25
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
26
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
24
34
|
var index_exports = {};
|
|
25
35
|
__export(index_exports, {
|
|
26
36
|
configureInitialWindowDimensions: () => import_initialValue2.configureInitialWindowDimensions,
|
|
27
37
|
useWindowDimensions: () => useWindowDimensions
|
|
28
38
|
});
|
|
29
39
|
module.exports = __toCommonJS(index_exports);
|
|
30
|
-
var import_react = __toESM(require("react")
|
|
40
|
+
var import_react = __toESM(require("react"), 1),
|
|
41
|
+
import_constants = require("@tamagui/constants"),
|
|
42
|
+
import_helpers = require("./helpers.native.js"),
|
|
43
|
+
import_initialValue = require("./initialValue.native.js"),
|
|
44
|
+
import_initialValue2 = require("./initialValue.native.js");
|
|
31
45
|
function useWindowDimensions() {
|
|
32
|
-
var {
|
|
33
|
-
|
|
46
|
+
var {
|
|
47
|
+
serverValue = import_initialValue.initialValue
|
|
48
|
+
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
49
|
+
return import_react.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function () {
|
|
34
50
|
return import_constants.isWeb ? serverValue : (0, import_helpers.getWindowSize)();
|
|
35
51
|
});
|
|
36
52
|
}
|
|
37
|
-
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
configureInitialWindowDimensions,
|
|
40
|
-
useWindowDimensions
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
|
53
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAClB,mBAAsB,+BACtB,iBAAyC,sBACzC,sBAA6B,2BAC7BA,uBAAiD;AAC1C,SAAS,sBAAsB;AAClC,MAAI,EAAE,cAAc,iCAAa,IAAI,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAS,UAAU,CAAC,IAAI,CAAC;AACvG,SAAO,aAAAC,QAAM,qBAAqB,0BAAW,8BAAe,WAAW;AACnE,WAAO,yBAAQ,kBAAc,8BAAc;AAAA,EAC/C,CAAC;AACL;",
|
|
5
|
-
"names": ["import_initialValue", "React"]
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","configureInitialWindowDimensions","import_initialValue2","useWindowDimensions","module","exports","import_react","__toESM","require","import_constants","import_helpers","import_initialValue","serverValue","initialValue","arguments","length","default","useSyncExternalStore","subscribe","getWindowSize","isWeb"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,gCAAA,EAAAA,CAAA,KAAAC,oBAAA,CAAAD,gCAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAX,YAAkB,CAAAK,aAAA;AASX,IAAAO,YAAS,GAAAC,OAAA,CAAAC,OAAoB;EAAAC,gBAAA,GAAAD,OAAA;EAAAE,cAAA,GAAAF,OAAA;EAAAG,mBAAA,GAAAH,OAAA;EAAAN,oBAAA,GAAAM,OAAA;AAAA,SAClCL,mBAAcA,CAAA;EAChB,IAAmC;IAAeS,WAAA,GAAAD,mBAAA,CAAAE;EAAA,IAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EAChD,OAAOR,YAAA,CAAAU,OAAA,CAAMC,oBAAA,CAAAP,cAAA,CAAAQ,SAAA,EAAAR,cAAA,CAAAS,aAAA;IAAqB,OAAAV,gBAAA,CAAAW,KAAA,GAAAR,WAAA,OAAAF,cAAA,CAAAS,aAAA;EAAA,EAAW;AAAA","ignoreList":[]}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
16
23
|
var initialValue_exports = {};
|
|
17
24
|
__export(initialValue_exports, {
|
|
18
25
|
configureInitialWindowDimensions: () => configureInitialWindowDimensions,
|
|
@@ -28,9 +35,4 @@ var initialValue = {
|
|
|
28
35
|
function configureInitialWindowDimensions(next) {
|
|
29
36
|
Object.assign(initialValue, next);
|
|
30
37
|
}
|
|
31
|
-
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
configureInitialWindowDimensions,
|
|
34
|
-
initialValue
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=initialValue.js.map
|
|
38
|
+
//# sourceMappingURL=initialValue.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/initialValue.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEW,IAAI,eAAe;AAAA,EAC1B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AACf;AACO,SAAS,iCAAiC,MAAM;AACnD,SAAO,OAAO,cAAc,IAAI;AACpC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","initialValue_exports","__export","configureInitialWindowDimensions","initialValue","module","exports","width","height","scale","fontScale","next","Object","assign"],"sources":["../../src/initialValue.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,gCAAA,EAAAA,CAAA,KAAAA,gCAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAKOC,MAAM,CAAAC,OAAA,GAAAV,YAA2B,CAAAK,oBAAA;AAAA,IACtCG,YAAO;EACPG,KAAA,KAAQ;EACRC,MAAA,EAAO;EACPC,KAAA;EACFC,SAAA;AAEO;AACL,SAAOP,gCAAyBA,CAAAQ,IAAA;EAClCC,MAAA,CAAAC,MAAA,CAAAT,YAAA,EAAAO,IAAA","ignoreList":[]}
|
package/dist/cjs/types.native.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
10
12
|
return to;
|
|
11
13
|
};
|
|
12
|
-
var __toCommonJS =
|
|
14
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
+
value: !0
|
|
16
|
+
}), mod);
|
|
13
17
|
var types_exports = {};
|
|
14
18
|
module.exports = __toCommonJS(types_exports);
|
|
15
|
-
//# sourceMappingURL=types.js.map
|
|
19
|
+
//# sourceMappingURL=types.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/types.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;AAAA;AAAA;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/use-window-dimensions",
|
|
3
|
-
"version": "1.135.
|
|
3
|
+
"version": "1.135.5",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"types": "./types/index.d.ts",
|
|
5
6
|
"main": "dist/cjs",
|
|
6
7
|
"module": "dist/esm",
|
|
@@ -31,10 +32,10 @@
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@tamagui/constants": "1.135.
|
|
35
|
+
"@tamagui/constants": "1.135.5"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@tamagui/build": "1.135.
|
|
38
|
+
"@tamagui/build": "1.135.5",
|
|
38
39
|
"react": "*",
|
|
39
40
|
"react-native": "^0.79.2"
|
|
40
41
|
},
|
package/types/helpers.d.ts.map
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAEA,cAAc,YAAY,0BAA0B
|
|
3
|
-
"names": [
|
|
4
|
-
"cb: WindowSizeListener"
|
|
5
|
-
],
|
|
2
|
+
"mappings": "AAEA,cAAc,YAAY,0BAA0B;AAKpD,OAAO,iBAAS,iBAAiB;AAwDjC,OAAO,iBAAS,UAAU,IAAI",
|
|
3
|
+
"names": [],
|
|
6
4
|
"sources": [
|
|
7
5
|
"src/helpers.ts"
|
|
8
6
|
],
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AACA,cAAc,YAAY,0BAA0B
|
|
3
|
-
"names": [
|
|
4
|
-
"cb: WindowSizeListener"
|
|
5
|
-
],
|
|
2
|
+
"mappings": "AACA,cAAc,YAAY,0BAA0B;AAEpD,OAAO,iBAAS,iBAAiB;AAUjC,OAAO,iBAAS,UAAU,IAAI",
|
|
3
|
+
"names": [],
|
|
6
4
|
"sources": [
|
|
7
5
|
"src/helpers.native.ts"
|
|
8
6
|
],
|
package/types/index.d.ts.map
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAIA,cAAc,kBAAkB
|
|
2
|
+
"mappings": "AAIA,cAAc,kBAAkB;AAGhC,SAAS,wCAAwC;AAEjD,OAAO,iBAAS,oBAAoB,EAClC,gBACC;CAAE,cAAc;IAAoB",
|
|
3
3
|
"names": [],
|
|
4
4
|
"sources": [
|
|
5
5
|
"src/index.ts"
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,cAAc,kBAAkB
|
|
2
|
+
"mappings": "AAAA,cAAc,kBAAkB;;;;AAKhC,OAAO,cAAMA,cAAc;AAO3B,OAAO,iBAAS,iCAAiC,MAAM",
|
|
3
3
|
"names": [
|
|
4
|
-
"initialValue: WindowSize"
|
|
5
|
-
"next: WindowSize"
|
|
4
|
+
"initialValue: WindowSize"
|
|
6
5
|
],
|
|
7
6
|
"sources": [
|
|
8
7
|
"src/initialValue.ts"
|
package/types/types.d.ts.map
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,cAAc,kBAAkB
|
|
3
|
-
"names": [
|
|
4
|
-
"size: WindowSize"
|
|
5
|
-
],
|
|
2
|
+
"mappings": "AAAA,cAAc,kBAAkB;AAEhC,YAAY,OAAO;CACjB;CACA;;AAGF,YAAY,aAAa;AAEzB,YAAY,sBAAsB,MAAM",
|
|
3
|
+
"names": [],
|
|
6
4
|
"sources": [
|
|
7
5
|
"src/types.ts"
|
|
8
6
|
],
|