tamagui 1.131.2 → 1.131.3
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/native.js +61 -11
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +61 -11
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -30876,6 +30876,64 @@ var require_helpers_native4 = __commonJS({
|
|
|
30876
30876
|
}
|
|
30877
30877
|
});
|
|
30878
30878
|
|
|
30879
|
+
// ../../core/use-window-dimensions/dist/cjs/initialValue.native.js
|
|
30880
|
+
var require_initialValue_native = __commonJS({
|
|
30881
|
+
"../../core/use-window-dimensions/dist/cjs/initialValue.native.js"(exports2, module2) {
|
|
30882
|
+
"use strict";
|
|
30883
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30884
|
+
for (var name in all) __defProp2(target, name, {
|
|
30885
|
+
get: all[name],
|
|
30886
|
+
enumerable: !0
|
|
30887
|
+
});
|
|
30888
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30889
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30890
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30891
|
+
for (var _loop = function() {
|
|
30892
|
+
var key = _step.value;
|
|
30893
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
30894
|
+
get: function() {
|
|
30895
|
+
return from[key];
|
|
30896
|
+
},
|
|
30897
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
30898
|
+
});
|
|
30899
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
30900
|
+
} catch (err) {
|
|
30901
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
30902
|
+
} finally {
|
|
30903
|
+
try {
|
|
30904
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
30905
|
+
} finally {
|
|
30906
|
+
if (_didIteratorError)
|
|
30907
|
+
throw _iteratorError;
|
|
30908
|
+
}
|
|
30909
|
+
}
|
|
30910
|
+
return to;
|
|
30911
|
+
}, __toCommonJS2 = function(mod) {
|
|
30912
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30913
|
+
value: !0
|
|
30914
|
+
}), mod);
|
|
30915
|
+
}, initialValue_exports = {};
|
|
30916
|
+
__export2(initialValue_exports, {
|
|
30917
|
+
configureInitialWindowDimensions: function() {
|
|
30918
|
+
return configureInitialWindowDimensions2;
|
|
30919
|
+
},
|
|
30920
|
+
initialValue: function() {
|
|
30921
|
+
return initialValue;
|
|
30922
|
+
}
|
|
30923
|
+
});
|
|
30924
|
+
module2.exports = __toCommonJS2(initialValue_exports);
|
|
30925
|
+
var initialValue = {
|
|
30926
|
+
width: 800,
|
|
30927
|
+
height: 600,
|
|
30928
|
+
scale: 1,
|
|
30929
|
+
fontScale: 1
|
|
30930
|
+
};
|
|
30931
|
+
function configureInitialWindowDimensions2(next) {
|
|
30932
|
+
Object.assign(initialValue, next);
|
|
30933
|
+
}
|
|
30934
|
+
}
|
|
30935
|
+
});
|
|
30936
|
+
|
|
30879
30937
|
// ../../core/use-window-dimensions/dist/cjs/index.native.js
|
|
30880
30938
|
var require_index_native75 = __commonJS({
|
|
30881
30939
|
"../../core/use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -30927,24 +30985,16 @@ var require_index_native75 = __commonJS({
|
|
|
30927
30985
|
}, index_exports2 = {};
|
|
30928
30986
|
__export2(index_exports2, {
|
|
30929
30987
|
configureInitialWindowDimensions: function() {
|
|
30930
|
-
return configureInitialWindowDimensions;
|
|
30988
|
+
return import_initialValue2.configureInitialWindowDimensions;
|
|
30931
30989
|
},
|
|
30932
30990
|
useWindowDimensions: function() {
|
|
30933
30991
|
return useWindowDimensions;
|
|
30934
30992
|
}
|
|
30935
30993
|
});
|
|
30936
30994
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30937
|
-
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(),
|
|
30938
|
-
width: 800,
|
|
30939
|
-
height: 600,
|
|
30940
|
-
scale: 1,
|
|
30941
|
-
fontScale: 1
|
|
30942
|
-
};
|
|
30943
|
-
function configureInitialWindowDimensions(next) {
|
|
30944
|
-
Object.assign(initialValue, next);
|
|
30945
|
-
}
|
|
30995
|
+
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(), import_initialValue = require_initialValue_native(), import_initialValue2 = require_initialValue_native();
|
|
30946
30996
|
function useWindowDimensions() {
|
|
30947
|
-
var { serverValue = initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30997
|
+
var { serverValue = import_initialValue.initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30948
30998
|
return import_react3.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function() {
|
|
30949
30999
|
return import_constants4.isWeb ? serverValue : (0, import_helpers.getWindowSize)();
|
|
30950
31000
|
});
|