@threadlabs/looma 0.53.14 → 0.53.15

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.
@@ -58,6 +58,8 @@
58
58
  <prop name="align" type="keyword" values="center, start" default="center"
59
59
  >Content alignment. start lays the content out like a list option: from the start edge, with start-aligned text.</prop>
60
60
  <prop name="stretch" type="boolean" default="false">Fills the inline size of its container.</prop>
61
+ <prop name="fit" type="boolean" default="false"
62
+ >Keeps a card action at its content width, constrained to the available space. Other boxed actions already size to their content.</prop>
61
63
  <prop name="type" type="keyword" values="button, submit, reset" default="button"
62
64
  >The button's type, as on a native button. button by default, so it never submits a form by accident. A link has no type.</prop>
63
65
  <prop name="href" type="string"
@@ -351,6 +353,15 @@
351
353
  :host[data-appearance="card"][size="lg"] {
352
354
  min-block-size: max(var(--ui-control-min-block-size), var(--ui-control-size-lg));
353
355
  }
356
+ :host[data-appearance="card"][size="sm"] {
357
+ min-block-size: var(--ui-control-size-sm);
358
+ gap: var(--ui-space-2) !important;
359
+ }
360
+ :host([fit])[data-appearance="card"] {
361
+ inline-size: fit-content;
362
+ min-inline-size: 0;
363
+ max-inline-size: 100%;
364
+ }
354
365
  :host[data-appearance="card"]:has(.card-icon:empty) {
355
366
  grid-template-columns: minmax(0, 1fr) auto;
356
367
  }
@@ -64,6 +64,8 @@
64
64
  >An application caret action was chosen.</event>
65
65
  <event name="upload-error" type="object"><prop name="error" type="unknown" required></prop><prop name="file" type="unknown" required></prop>An upload
66
66
  failed; authored content is retained.</event>
67
+ <event name="file-delete-error" type="object"><prop name="error" type="unknown" required></prop><prop name="file" type="unknown" required></prop>A permanent
68
+ file deletion failed; its block is restored.</event>
67
69
  <event name="image-activate" type="object" open><prop name="src" type="string" required></prop><prop
68
70
  name="trigger"
69
71
  type="keyword"
@@ -91,9 +93,16 @@
91
93
  image before insertion.</request>
92
94
  <request name="file-upload" type="object"><prop name="file" type="unknown" required></prop><returns
93
95
  type="object({ href: string, name: string, size: number, contentType: string, ... })"
94
- ></returns>Retain a file before inserting its movable file block. The block shows an SVG file icon, filename and size; activating the whole block follows its retained URL.</request>
96
+ ></returns>Retain a file before inserting its movable file block. The block shows an SVG file icon, filename and size; activating the whole block follows
97
+ its retained URL.</request>
95
98
  <request name="code-languages" returns="object({ ... })"
96
99
  >The code grammar catalog chosen before creation. null keeps the built-in lazy catalog; an empty record disables highlighting.</request>
100
+ <request name="file-delete-confirm" type="object"><prop name="file" type="unknown" required></prop><returns
101
+ type="object({ confirmed: boolean })"
102
+ ></returns>Confirm permanent deletion. Return false or null to keep the file and block.</request>
103
+ <request name="file-delete" type="object"><prop name="file" type="unknown" required></prop><returns type="object({ deleted: boolean })"></returns>Delete the
104
+ retained original after confirmation. The editor removes its block optimistically; rejection restores it. File presentation uses attachment:href reference
105
+ entries so undo can restore a disabled deleted-file block.</request>
97
106
  <request name="image-delivery" returns="unknown"
98
107
  >The host's synchronous source and rendition policy, resolved before the editor mounts. This transient policy is never persisted.</request>
99
108
  </defs>