@wix/himalaya-cli 0.1923.0 → 0.1925.0
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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +15 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{7b5b94cbbae6c2c9b65f737c8563257a05a25e513a05019c062da27cf98cfa6f.bin → c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba.bin} +1 -1
- package/dist/browser-plane/sw.js +10 -10
- package/dist/cli.mjs +124 -70
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +8 -3
- package/guides/designing-himi-screens.md +1 -0
- package/package.json +2 -2
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -110,6 +110,13 @@ export interface GradientStop {
|
|
|
110
110
|
token: TokenName;
|
|
111
111
|
at?: number;
|
|
112
112
|
}
|
|
113
|
+
/** What `Modifiers.paintPath` resolves to: scoped color tokens (hex values), a background color token and an
|
|
114
|
+
* inline gradient whose stops may name those tokens. */
|
|
115
|
+
export interface Paint {
|
|
116
|
+
colors?: Record<string, string>;
|
|
117
|
+
background?: TokenRef;
|
|
118
|
+
gradient?: Gradient;
|
|
119
|
+
}
|
|
113
120
|
/** #1053 — an INLINE, self-contained gradient (no `gradients` registry entry, so an
|
|
114
121
|
* embed host that can't register tokens can still paint one). Used by the `gradient`
|
|
115
122
|
* modifier (background paint) and the `mask` modifier (alpha mask — the material-
|
|
@@ -161,6 +168,10 @@ export interface Modifiers {
|
|
|
161
168
|
/** #6256 — "tap": a tap inside this node that no control handles dismisses the software keyboard
|
|
162
169
|
* (RN `keyboardShouldPersistTaps="handled"`); controls keep their taps. Unknown ⇒ off. */
|
|
163
170
|
keyboardDismiss?: string;
|
|
171
|
+
/** A `$service:`/`$app:` path to a {@link Paint} a worker computes at run time. Its colors merge over the
|
|
172
|
+
* literal `theme.colors`; its background and gradient win over the literal ones. Unresolved or not an
|
|
173
|
+
* object ⇒ the literal paint. */
|
|
174
|
+
paintPath?: string;
|
|
164
175
|
padding?: EdgeInsets;
|
|
165
176
|
background?: TokenRef;
|
|
166
177
|
cornerRadius?: number;
|
|
@@ -190,9 +201,10 @@ export interface Modifiers {
|
|
|
190
201
|
* `box-sizing: border-box`): a node shorter than it grows to it with its content at the top; a taller one keeps
|
|
191
202
|
* its own height. `0`/absent = no floor. */
|
|
192
203
|
minHeight?: number;
|
|
193
|
-
/** In an HStack
|
|
194
|
-
* does (CSS `align-self: stretch`); its content keeps its own alignment inside it.
|
|
195
|
-
*
|
|
204
|
+
/** Fill the parent's height. In an HStack the node takes the row's height, as a color bar beside a booking or a
|
|
205
|
+
* rule between columns does (CSS `align-self: stretch`); its content keeps its own alignment inside it.
|
|
206
|
+
* Elsewhere Compose `fillMaxHeight`, SwiftUI `.frame(maxHeight: .infinity)`, web `height: 100%`. A literal
|
|
207
|
+
* `height` wins. Fills only under a bounded parent: inside a scroll the node keeps its content height. */
|
|
196
208
|
fillMaxHeight?: boolean;
|
|
197
209
|
/** Flex weight along the parent stack's MAIN axis (HStack = width, VStack =
|
|
198
210
|
* height). The stack measures its intrinsic (unweighted) children first, then
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts
CHANGED
|
@@ -1341,6 +1341,9 @@ export declare const screenDescriptorSchema: {
|
|
|
1341
1341
|
readonly keyboardDismiss: {
|
|
1342
1342
|
readonly type: "string";
|
|
1343
1343
|
};
|
|
1344
|
+
readonly paintPath: {
|
|
1345
|
+
readonly type: "string";
|
|
1346
|
+
};
|
|
1344
1347
|
readonly ambientMotion: {
|
|
1345
1348
|
readonly type: "object";
|
|
1346
1349
|
readonly additionalProperties: false;
|
|
@@ -3043,6 +3046,9 @@ export declare const widgetSnapshotSchema: {
|
|
|
3043
3046
|
readonly keyboardDismiss: {
|
|
3044
3047
|
readonly type: "string";
|
|
3045
3048
|
};
|
|
3049
|
+
readonly paintPath: {
|
|
3050
|
+
readonly type: "string";
|
|
3051
|
+
};
|
|
3046
3052
|
readonly ambientMotion: {
|
|
3047
3053
|
readonly type: "object";
|
|
3048
3054
|
readonly additionalProperties: false;
|
|
@@ -9802,6 +9802,7 @@ var screenDescriptorSchema = {
|
|
|
9802
9802
|
imagePreview: { type: "string" },
|
|
9803
9803
|
topInset: { type: "string" },
|
|
9804
9804
|
keyboardDismiss: { type: "string" },
|
|
9805
|
+
paintPath: { type: "string" },
|
|
9805
9806
|
ambientMotion: {
|
|
9806
9807
|
type: "object",
|
|
9807
9808
|
additionalProperties: false,
|
|
@@ -7762,6 +7762,7 @@ var screenDescriptorSchema = {
|
|
|
7762
7762
|
imagePreview: { type: "string" },
|
|
7763
7763
|
topInset: { type: "string" },
|
|
7764
7764
|
keyboardDismiss: { type: "string" },
|
|
7765
|
+
paintPath: { type: "string" },
|
|
7765
7766
|
ambientMotion: {
|
|
7766
7767
|
type: "object",
|
|
7767
7768
|
additionalProperties: false,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2813201
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 24320
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-BvlUwkGg.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba",
|
|
85
|
+
"file": "preview-deferred/c519812171d71155719a8b4a26cd4e98fc4676d8fef66c107b0cc29d5e11a7ba.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|