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/test.native.js
CHANGED
|
@@ -30185,6 +30185,64 @@ var require_helpers_native4 = __commonJS({
|
|
|
30185
30185
|
}
|
|
30186
30186
|
});
|
|
30187
30187
|
|
|
30188
|
+
// ../../core/use-window-dimensions/dist/cjs/initialValue.native.js
|
|
30189
|
+
var require_initialValue_native = __commonJS({
|
|
30190
|
+
"../../core/use-window-dimensions/dist/cjs/initialValue.native.js"(exports2, module2) {
|
|
30191
|
+
"use strict";
|
|
30192
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30193
|
+
for (var name in all) __defProp2(target, name, {
|
|
30194
|
+
get: all[name],
|
|
30195
|
+
enumerable: !0
|
|
30196
|
+
});
|
|
30197
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30198
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30199
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30200
|
+
for (var _loop = function() {
|
|
30201
|
+
var key = _step.value;
|
|
30202
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
30203
|
+
get: function() {
|
|
30204
|
+
return from[key];
|
|
30205
|
+
},
|
|
30206
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
30207
|
+
});
|
|
30208
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
30209
|
+
} catch (err) {
|
|
30210
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
30211
|
+
} finally {
|
|
30212
|
+
try {
|
|
30213
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
30214
|
+
} finally {
|
|
30215
|
+
if (_didIteratorError)
|
|
30216
|
+
throw _iteratorError;
|
|
30217
|
+
}
|
|
30218
|
+
}
|
|
30219
|
+
return to;
|
|
30220
|
+
}, __toCommonJS2 = function(mod) {
|
|
30221
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30222
|
+
value: !0
|
|
30223
|
+
}), mod);
|
|
30224
|
+
}, initialValue_exports = {};
|
|
30225
|
+
__export2(initialValue_exports, {
|
|
30226
|
+
configureInitialWindowDimensions: function() {
|
|
30227
|
+
return configureInitialWindowDimensions2;
|
|
30228
|
+
},
|
|
30229
|
+
initialValue: function() {
|
|
30230
|
+
return initialValue;
|
|
30231
|
+
}
|
|
30232
|
+
});
|
|
30233
|
+
module2.exports = __toCommonJS2(initialValue_exports);
|
|
30234
|
+
var initialValue = {
|
|
30235
|
+
width: 800,
|
|
30236
|
+
height: 600,
|
|
30237
|
+
scale: 1,
|
|
30238
|
+
fontScale: 1
|
|
30239
|
+
};
|
|
30240
|
+
function configureInitialWindowDimensions2(next) {
|
|
30241
|
+
Object.assign(initialValue, next);
|
|
30242
|
+
}
|
|
30243
|
+
}
|
|
30244
|
+
});
|
|
30245
|
+
|
|
30188
30246
|
// ../../core/use-window-dimensions/dist/cjs/index.native.js
|
|
30189
30247
|
var require_index_native75 = __commonJS({
|
|
30190
30248
|
"../../core/use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
|
|
@@ -30236,24 +30294,16 @@ var require_index_native75 = __commonJS({
|
|
|
30236
30294
|
}, index_exports2 = {};
|
|
30237
30295
|
__export2(index_exports2, {
|
|
30238
30296
|
configureInitialWindowDimensions: function() {
|
|
30239
|
-
return configureInitialWindowDimensions;
|
|
30297
|
+
return import_initialValue2.configureInitialWindowDimensions;
|
|
30240
30298
|
},
|
|
30241
30299
|
useWindowDimensions: function() {
|
|
30242
30300
|
return useWindowDimensions;
|
|
30243
30301
|
}
|
|
30244
30302
|
});
|
|
30245
30303
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30246
|
-
var import_react3 = __toESM2(require("react")), import_constants4 = require_index_native6(), import_helpers = require_helpers_native4(),
|
|
30247
|
-
width: 800,
|
|
30248
|
-
height: 600,
|
|
30249
|
-
scale: 1,
|
|
30250
|
-
fontScale: 1
|
|
30251
|
-
};
|
|
30252
|
-
function configureInitialWindowDimensions(next) {
|
|
30253
|
-
Object.assign(initialValue, next);
|
|
30254
|
-
}
|
|
30304
|
+
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();
|
|
30255
30305
|
function useWindowDimensions() {
|
|
30256
|
-
var { serverValue = initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30306
|
+
var { serverValue = import_initialValue.initialValue } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
30257
30307
|
return import_react3.default.useSyncExternalStore(import_helpers.subscribe, import_helpers.getWindowSize, function() {
|
|
30258
30308
|
return import_constants4.isWeb ? serverValue : (0, import_helpers.getWindowSize)();
|
|
30259
30309
|
});
|