@wix/himalaya-cli 0.1007.0 → 0.1008.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/dev-server/src/builder.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +7 -4
- package/dist/cli.mjs +1787 -851
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +2 -1
- package/guides/component-reference.md +8 -5
- package/guides/recipe-form-submit.md +5 -0
- package/guides/release-notes.md +16 -0
- package/guides/templates.md +3 -1
- package/guides/trim-a-template.md +75 -11
- package/package.json +2 -2
|
@@ -319,6 +319,8 @@ export declare function button(props: {
|
|
|
319
319
|
action: ActionShape;
|
|
320
320
|
style?: string;
|
|
321
321
|
disabled?: boolean;
|
|
322
|
+
/** #3117 — `$service:`/`$item.` bool binding, OR'd with `disabled`/`loading`. */
|
|
323
|
+
disabledPath?: string;
|
|
322
324
|
leadingIcon?: string;
|
|
323
325
|
trailingIcon?: string;
|
|
324
326
|
loading?: boolean;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -650,11 +650,14 @@ export interface ButtonProps {
|
|
|
650
650
|
title: string;
|
|
651
651
|
action: Action;
|
|
652
652
|
style?: string;
|
|
653
|
-
/**
|
|
654
|
-
*
|
|
655
|
-
* `disabled: true` copy — and swap them with complementary `modifiers.hiddenPath` flags
|
|
656
|
-
* (e.g. `canSubmit` / `cannotSubmit`); also guard the action so a stray tap is a no-op. */
|
|
653
|
+
/** LITERAL disabled state. A `"$service:…"` string here fails `validate` (the wire type is
|
|
654
|
+
* bool) — bind `disabledPath` instead. */
|
|
657
655
|
disabled?: boolean;
|
|
656
|
+
/** #3117 — `$service:`/`$item.` binding → a live bool that disables the button while true
|
|
657
|
+
* (e.g. a submit while a request is in flight). Binding-aware. OR'd with `disabled`,
|
|
658
|
+
* `loading` and an enclosing Form's validity: a bound `false` never re-enables a button one
|
|
659
|
+
* of those disabled, and an unresolved binding leaves the literal in charge. */
|
|
660
|
+
disabledPath?: string;
|
|
658
661
|
/** RFC 0034 — capability enrichments. */
|
|
659
662
|
leadingIcon?: IconRef;
|
|
660
663
|
trailingIcon?: IconRef;
|