@colixsystems/widget-sdk 0.315.1 → 0.315.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.
- package/README.md +5 -1
- package/dist/modal.native.js +5 -2
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -90,7 +90,11 @@ See the design reference for the full architecture: [`docs/architecture/widget-m
|
|
|
90
90
|
|
|
91
91
|
## Status
|
|
92
92
|
|
|
93
|
-
`v0.315.
|
|
93
|
+
`v0.315.2` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
|
|
94
|
+
|
|
95
|
+
### What's new in 0.315.2 (contract 1.255.0)
|
|
96
|
+
|
|
97
|
+
**A `<Modal>` with a form stays usable on Android while the keyboard is up.** The native dialog used to shrink to its title, the focused field and its footer. It now keeps the whole space above the keyboard, and its body scrolls there as it does on iOS. The widget contract is unchanged.
|
|
94
98
|
|
|
95
99
|
### What's new in 0.315.1 (contract 1.255.0)
|
|
96
100
|
|
package/dist/modal.native.js
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
Pressable,
|
|
10
10
|
ScrollView,
|
|
11
11
|
KeyboardAvoidingView,
|
|
12
|
-
Platform,
|
|
13
12
|
} from "react-native";
|
|
14
13
|
import { Text } from "./bounded-text.native.js";
|
|
15
14
|
// Host-provided: the exported app pins it and mounts its provider at the root.
|
|
@@ -21,11 +20,15 @@ import { Overlay } from "./overlay.native.js";
|
|
|
21
20
|
const useSafeAreaInsets = () => React.useContext(SafeAreaInsetsContext);
|
|
22
21
|
|
|
23
22
|
// Wraps the panel only, so the scrim still covers the strip under a raised one.
|
|
23
|
+
// "padding" on both platforms: "height" sets a fixed height the backdrop
|
|
24
|
+
// re-centres, which shrinks a dialog to one field on Android.
|
|
25
|
+
const MODAL_KEYBOARD_BEHAVIOR = "padding";
|
|
26
|
+
|
|
24
27
|
function KeyboardAvoider({ verticalAlign, children }) {
|
|
25
28
|
return React.createElement(
|
|
26
29
|
KeyboardAvoidingView,
|
|
27
30
|
{
|
|
28
|
-
behavior:
|
|
31
|
+
behavior: MODAL_KEYBOARD_BEHAVIOR,
|
|
29
32
|
// Lets a press beside the panel reach the backdrop behind this frame.
|
|
30
33
|
pointerEvents: "box-none",
|
|
31
34
|
style: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colixsystems/widget-sdk",
|
|
3
|
-
"version": "0.315.
|
|
3
|
+
"version": "0.315.2",
|
|
4
4
|
"description": "Common widget interface for AppStudio. Implements WidgetManifest, WidgetContext, property schema, and helper hooks.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/Colix-AB/AppStudio.git",
|
|
8
|
+
"directory": "packages/widget-sdk"
|
|
9
|
+
},
|
|
5
10
|
"homepage": "https://github.com/Colix-AB/AppStudio",
|
|
6
11
|
"type": "module",
|
|
7
12
|
"main": "./dist/index.js",
|