@punica/editor 1.11.1 → 1.12.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/package.json
CHANGED
|
@@ -55,11 +55,32 @@ declare module 'punica' {
|
|
|
55
55
|
command?: string;
|
|
56
56
|
menu?: AppBarMenuItem[];
|
|
57
57
|
/**
|
|
58
|
-
* Command id returning
|
|
59
|
-
*
|
|
60
|
-
* which is how a host without the surface
|
|
58
|
+
* Command id returning the summary rendered as the menu header (e.g. the
|
|
59
|
+
* licence state, or who the app is licensed to). Dropped when the
|
|
60
|
+
* command is not registered, which is how a host without the surface
|
|
61
|
+
* stays quiet.
|
|
62
|
+
*
|
|
63
|
+
* A returned string may carry newlines, and each line is rendered as its
|
|
64
|
+
* own row with the first one emphasised — enough for a name over an
|
|
65
|
+
* address. Lines are clipped rather than wrapped, so a long address
|
|
66
|
+
* cannot widen the menu.
|
|
61
67
|
*/
|
|
62
68
|
summaryCommand?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Command id returning the avatar's glyph, at most two characters (a
|
|
71
|
+
* user's initials). Avatar items only.
|
|
72
|
+
*
|
|
73
|
+
* This exists because the glyph is identity and identity is not known
|
|
74
|
+
* when a profile is written: `label` is static, and a host cannot patch
|
|
75
|
+
* one item without re-declaring the whole thing, menu included. So the
|
|
76
|
+
* profile names a command and the host answers it.
|
|
77
|
+
*
|
|
78
|
+
* Called when the item renders and again whenever its menu opens, which
|
|
79
|
+
* is what makes a licence activated mid-session show up. Anything other
|
|
80
|
+
* than a non-empty string leaves the glyph as `label`'s first letter, so
|
|
81
|
+
* a host with no account has nothing to implement.
|
|
82
|
+
*/
|
|
83
|
+
initialsCommand?: string;
|
|
63
84
|
}
|
|
64
85
|
|
|
65
86
|
/** A profile's app bar composition (see `ProfileShellSpec.appBar`). */
|
|
@@ -250,6 +250,12 @@ declare module 'punica' {
|
|
|
250
250
|
value?: string;
|
|
251
251
|
placeholder?: string;
|
|
252
252
|
type?: 'text' | 'password' | 'number' | 'email' | 'url';
|
|
253
|
+
/**
|
|
254
|
+
* A field you type into to narrow a list. The shell puts the shared
|
|
255
|
+
* magnifier in the input's start adornment; `attrs: { search: '' }`
|
|
256
|
+
* does the same thing for a caller on older types.
|
|
257
|
+
*/
|
|
258
|
+
search?: boolean;
|
|
253
259
|
size?: 'small' | 'medium' | 'large';
|
|
254
260
|
fullwidth?: boolean;
|
|
255
261
|
rounded?: boolean;
|