@reventlessdev/reventless-ui-slots 3.0.0-alpha.3 → 3.0.0-alpha.4
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 +4 -2
- package/package.json +2 -2
- package/src/ReventlessSlots.res +1 -1
- package/src/ReventlessSlots.resi +7 -2
- package/src/index.d.ts +7 -2
package/README.md
CHANGED
|
@@ -173,8 +173,10 @@ state. `open` drills into the row.
|
|
|
173
173
|
the same row-slot payload above. Both, and not just the ids, because a list's
|
|
174
174
|
window is replaced page by page: a row picked on page 1 is gone from `rows` by
|
|
175
175
|
the time the caller is on page 3, and a bar whose job is to name what is in it
|
|
176
|
-
cannot look one up. `run`
|
|
177
|
-
|
|
176
|
+
cannot look one up. `run` opens the command's form with the picked ids already in
|
|
177
|
+
place, and takes nothing: the region has exactly one command, settled before the
|
|
178
|
+
payload was built, so a renderer naming it would be repeating a decision it
|
|
179
|
+
cannot check.
|
|
178
180
|
|
|
179
181
|
## What a slot may not do
|
|
180
182
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-ui-slots",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.4",
|
|
4
4
|
"description": "Types and one runtime helper for writing custom renderers into the regions of Reventless AutoUI's standard view modes.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"react-dom": "^18.3.1",
|
|
55
55
|
"rescript": "^12.3.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d65285daddaf66f75ff759d31596a0aee84cd3cb"
|
|
58
58
|
}
|
package/src/ReventlessSlots.res
CHANGED
package/src/ReventlessSlots.resi
CHANGED
|
@@ -57,8 +57,13 @@ type viewPayload = {
|
|
|
57
57
|
is to name what is in it cannot look one up. So the rows travel, each as
|
|
58
58
|
the same `rowPayload` a per-row region is handed. */
|
|
59
59
|
picked?: array<rowPayload>,
|
|
60
|
-
/** Start the region's one command,
|
|
61
|
-
|
|
60
|
+
/** Start the region's one command, with the picked rows already in it.
|
|
61
|
+
|
|
62
|
+
Takes nothing. A region has exactly one command by construction, and which
|
|
63
|
+
one it is was settled before this payload was built — naming it here would
|
|
64
|
+
be a second copy of a decision made once, and a renderer has no honest way
|
|
65
|
+
to know the name it would be passing. */
|
|
66
|
+
run?: unit => unit,
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
/** React's `createElement`, as the shell handed it over. */
|
package/src/index.d.ts
CHANGED
|
@@ -63,8 +63,13 @@ export interface ViewPayload<Row = Record<string, unknown>> {
|
|
|
63
63
|
* name what is in it cannot look one up. So the rows travel, each as the same
|
|
64
64
|
* `RowPayload` a per-row region is handed. */
|
|
65
65
|
picked?: RowPayload<Row>[]
|
|
66
|
-
/** Start the region's one command,
|
|
67
|
-
|
|
66
|
+
/** Start the region's one command, with the picked rows already in it.
|
|
67
|
+
*
|
|
68
|
+
* Takes nothing. A region has exactly one command by construction, and which
|
|
69
|
+
* one it is was settled before this payload was built — naming it here would
|
|
70
|
+
* be a second copy of a decision made once, and a renderer has no honest way
|
|
71
|
+
* to know the name it would be passing. */
|
|
72
|
+
run?: () => void
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
/** Anything React will render. Deliberately structural — the package declares no
|