one 2.7.4 → 2.7.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/android/src/main/java/com/margelo/nitro/one/HybridOneFonts.kt +23 -8
- package/android/src/main/java/com/margelo/nitro/one/HybridOneSpeechSynthesis.kt +8 -4
- package/android/src/main/java/dev/onejs/onenative/OneNativeComposeNodeView.kt +3 -2
- package/android/src/main/java/dev/onejs/onenative/OneNativePagerManager.kt +2 -0
- package/dist/cjs/platform/compose.android.cjs +1 -1
- package/dist/cjs/platform/compose.android.js +1 -1
- package/dist/cjs/platform/compose.android.js.map +1 -1
- package/dist/cjs/platform/generated/Controls.native.cjs +6 -6
- package/dist/cjs/platform/generated/Controls.native.js +6 -6
- package/dist/cjs/platform/generated/Controls.native.js.map +1 -1
- package/dist/esm/platform/compose.android.js +1 -1
- package/dist/esm/platform/compose.android.js.map +1 -1
- package/dist/esm/platform/generated/Controls.native.js +6 -6
- package/dist/esm/platform/generated/Controls.native.js.map +1 -1
- package/package.json +15 -15
- package/src/platform/compose.android.tsx +5 -1
- package/src/platform/generated/Controls.native.tsx +6 -6
- package/types/platform/compose.android.d.ts.map +1 -1
|
@@ -312,7 +312,7 @@ function Toggle(param) {
|
|
|
312
312
|
}
|
|
313
313
|
(0, import_swiftui.assertSwiftUIValue)("ToggleStyle", toggleStyle, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
314
314
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
315
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
315
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
316
316
|
onIsOnChange(event.value);
|
|
317
317
|
}, revision);
|
|
318
318
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_OneNativeToggleNativeComponent.default, {
|
|
@@ -355,7 +355,7 @@ function Slider(param) {
|
|
|
355
355
|
if (value1 < minimumValue || value1 > maximumValue) throw new Error("Slider value must be within minimumValue and maximumValue");
|
|
356
356
|
}
|
|
357
357
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
358
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
358
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
359
359
|
onValueChange(event.value);
|
|
360
360
|
}, revision);
|
|
361
361
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_OneNativeSliderNativeComponent.default, {
|
|
@@ -403,7 +403,7 @@ function Stepper(param) {
|
|
|
403
403
|
if (value1 < minimumValue || value1 > maximumValue) throw new Error("Stepper value must be within minimumValue and maximumValue");
|
|
404
404
|
}
|
|
405
405
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
406
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
406
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
407
407
|
onValueChange(event.value);
|
|
408
408
|
}, revision);
|
|
409
409
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_OneNativeStepperNativeComponent.default, {
|
|
@@ -1270,7 +1270,7 @@ function TextField(param) {
|
|
|
1270
1270
|
if (textInputAutocapitalization) (0, import_swiftui.assertSwiftUIValue)("TextInputAutocapitalization", textInputAutocapitalization, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1271
1271
|
(0, import_swiftui.assertSwiftUIValue)("Axis", axis, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1272
1272
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
1273
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
1273
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
1274
1274
|
onTextChange(event.value);
|
|
1275
1275
|
}, revision);
|
|
1276
1276
|
if (focused !== void 0 && (swiftStyle === null || swiftStyle === void 0 ? void 0 : swiftStyle.focused) !== void 0) throw new Error("TextField focus is controlled by both focused and swiftStyle.focused");
|
|
@@ -1336,7 +1336,7 @@ function SecureField(param) {
|
|
|
1336
1336
|
if (submitLabel) (0, import_swiftui.assertSwiftUIValue)("SubmitLabel", submitLabel, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1337
1337
|
if (textInputAutocapitalization) (0, import_swiftui.assertSwiftUIValue)("TextInputAutocapitalization", textInputAutocapitalization, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1338
1338
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
1339
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
1339
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
1340
1340
|
onTextChange(event.value);
|
|
1341
1341
|
}, revision);
|
|
1342
1342
|
if (focused !== void 0 && (swiftStyle === null || swiftStyle === void 0 ? void 0 : swiftStyle.focused) !== void 0) throw new Error("SecureField focus is controlled by both focused and swiftStyle.focused");
|
|
@@ -1399,7 +1399,7 @@ function TextEditor(param) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
if (textInputAutocapitalization) (0, import_swiftui.assertSwiftUIValue)("TextInputAutocapitalization", textInputAutocapitalization, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1401
1401
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
1402
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
1402
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
1403
1403
|
onTextChange(event.value);
|
|
1404
1404
|
}, revision);
|
|
1405
1405
|
if (focused !== void 0 && (swiftStyle === null || swiftStyle === void 0 ? void 0 : swiftStyle.focused) !== void 0) throw new Error("TextEditor focus is controlled by both focused and swiftStyle.focused");
|
|
@@ -312,7 +312,7 @@ function Toggle(param) {
|
|
|
312
312
|
}
|
|
313
313
|
(0, import_swiftui.assertSwiftUIValue)("ToggleStyle", toggleStyle, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
314
314
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
315
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
315
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
316
316
|
onIsOnChange(event.value);
|
|
317
317
|
}, revision);
|
|
318
318
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_OneNativeToggleNativeComponent.default, {
|
|
@@ -355,7 +355,7 @@ function Slider(param) {
|
|
|
355
355
|
if (value1 < minimumValue || value1 > maximumValue) throw new Error("Slider value must be within minimumValue and maximumValue");
|
|
356
356
|
}
|
|
357
357
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
358
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
358
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
359
359
|
onValueChange(event.value);
|
|
360
360
|
}, revision);
|
|
361
361
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_OneNativeSliderNativeComponent.default, {
|
|
@@ -403,7 +403,7 @@ function Stepper(param) {
|
|
|
403
403
|
if (value1 < minimumValue || value1 > maximumValue) throw new Error("Stepper value must be within minimumValue and maximumValue");
|
|
404
404
|
}
|
|
405
405
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
406
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
406
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
407
407
|
onValueChange(event.value);
|
|
408
408
|
}, revision);
|
|
409
409
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_OneNativeStepperNativeComponent.default, {
|
|
@@ -1270,7 +1270,7 @@ function TextField(param) {
|
|
|
1270
1270
|
if (textInputAutocapitalization) (0, import_swiftui.assertSwiftUIValue)("TextInputAutocapitalization", textInputAutocapitalization, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1271
1271
|
(0, import_swiftui.assertSwiftUIValue)("Axis", axis, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1272
1272
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
1273
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
1273
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
1274
1274
|
onTextChange(event.value);
|
|
1275
1275
|
}, revision);
|
|
1276
1276
|
if (focused !== void 0 && (swiftStyle === null || swiftStyle === void 0 ? void 0 : swiftStyle.focused) !== void 0) throw new Error("TextField focus is controlled by both focused and swiftStyle.focused");
|
|
@@ -1336,7 +1336,7 @@ function SecureField(param) {
|
|
|
1336
1336
|
if (submitLabel) (0, import_swiftui.assertSwiftUIValue)("SubmitLabel", submitLabel, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1337
1337
|
if (textInputAutocapitalization) (0, import_swiftui.assertSwiftUIValue)("TextInputAutocapitalization", textInputAutocapitalization, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1338
1338
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
1339
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
1339
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
1340
1340
|
onTextChange(event.value);
|
|
1341
1341
|
}, revision);
|
|
1342
1342
|
if (focused !== void 0 && (swiftStyle === null || swiftStyle === void 0 ? void 0 : swiftStyle.focused) !== void 0) throw new Error("SecureField focus is controlled by both focused and swiftStyle.focused");
|
|
@@ -1399,7 +1399,7 @@ function TextEditor(param) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
if (textInputAutocapitalization) (0, import_swiftui.assertSwiftUIValue)("TextInputAutocapitalization", textInputAutocapitalization, Number.parseFloat(String(import_react_native.Platform.Version)));
|
|
1401
1401
|
var controlled = (0, import_controlled.useControlled)(function(event) {
|
|
1402
|
-
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(
|
|
1402
|
+
syncHandle === null || syncHandle === void 0 ? void 0 : syncHandle.set(syncHandle.get());
|
|
1403
1403
|
onTextChange(event.value);
|
|
1404
1404
|
}, revision);
|
|
1405
1405
|
if (focused !== void 0 && (swiftStyle === null || swiftStyle === void 0 ? void 0 : swiftStyle.focused) !== void 0) throw new Error("TextEditor focus is controlled by both focused and swiftStyle.focused");
|