@threadlabs/looma 0.43.0 → 0.43.1

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.
Files changed (37) hide show
  1. package/components/ui-card/ui-card.html +6 -6
  2. package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
  3. package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
  4. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +1 -0
  5. package/dist/index.js +1 -1
  6. package/docs/README.md +2 -2
  7. package/docs/card.html +2 -6
  8. package/docs/card.js +7 -37
  9. package/docs/catalog.json +214 -10
  10. package/docs/catalog.mjs +1 -1
  11. package/docs/customizer-render.mjs +7 -6
  12. package/docs/customizer.js +2 -7
  13. package/docs/documentation.css +3 -7
  14. package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
  15. package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
  16. package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
  17. package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
  18. package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
  19. package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
  20. package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
  21. package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
  22. package/docs/index.d.ts +1 -1
  23. package/docs/local-server.mjs +2 -5
  24. package/docs/pastoral.svg +54 -0
  25. package/docs/portrait.svg +15 -0
  26. package/docs/render.mjs +33 -3
  27. package/docs/site.mjs +22 -54
  28. package/package.json +1 -1
  29. package/styles/ui-card.css +6 -6
  30. package/vanilla/UiEditorTableOverlay.js +50 -36
  31. package/vue/UiCard.vue +6 -6
  32. package/vue/UiEditorTableOverlay.d.ts +11 -1
  33. package/vue/UiEditorTableOverlay.vue +98 -63
  34. package/vue/chunks/UiCard.js +1 -1
  35. package/vue/chunks/UiEditorTableOverlay.js +41 -13
  36. package/vue/components.css +54 -53
  37. package/docs/preview.js +0 -22
@@ -179,16 +179,16 @@
179
179
  }
180
180
 
181
181
  :host([size="sm"]) {
182
- inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
183
- max-inline-size: min(22rem, calc(100vw - var(--ui-space-2) * 2));
182
+ inline-size: min(22rem, 100%, calc(100vw - var(--ui-space-2) * 2));
183
+ max-inline-size: min(22rem, 100%, calc(100vw - var(--ui-space-2) * 2));
184
184
  }
185
185
  :host([size="md"]) {
186
- inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
187
- max-inline-size: min(28rem, calc(100vw - var(--ui-space-2) * 2));
186
+ inline-size: min(28rem, 100%, calc(100vw - var(--ui-space-2) * 2));
187
+ max-inline-size: min(28rem, 100%, calc(100vw - var(--ui-space-2) * 2));
188
188
  }
189
189
  :host([size="lg"]) {
190
- inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
191
- max-inline-size: min(36rem, calc(100vw - var(--ui-space-2) * 2));
190
+ inline-size: min(36rem, 100%, calc(100vw - var(--ui-space-2) * 2));
191
+ max-inline-size: min(36rem, 100%, calc(100vw - var(--ui-space-2) * 2));
192
192
  }
193
193
 
194
194
  /* A component that sets its display still honours the hidden attribute on its root. */
@@ -35,6 +35,9 @@ export function connect(host) {
35
35
  }
36
36
  };
37
37
  const stop = host.effect(() => {
38
+ // The deferred DOM pass cannot track these reads for the effect.
39
+ void host.props.open.value;
40
+ void host.props.anchorRect.value;
38
41
  if (!authoredLabel) element.setAttribute("aria-label", String(host.props.label.value || "Mentions"));
39
42
  const items = (Array.isArray(host.props.items.value) ? host.props.items.value : []).slice(0, 20);
40
43
  host.state.rows = items.map((item) => ({ ...item, initials: item.initials ?? String(item.label).slice(0, 2).toUpperCase() }));
@@ -43,6 +43,10 @@ export function connect(host) {
43
43
  }
44
44
  };
45
45
  const stop = host.effect(() => {
46
+ // The deferred DOM pass cannot track these reads for the effect.
47
+ void host.props.open.value;
48
+ void host.props.anchorRect.value;
49
+ void host.props.query.value;
46
50
  const items = Array.isArray(host.props.items.value) ? host.props.items.value : [];
47
51
  if (!authoredLabel) element.setAttribute("aria-label", String(host.props.label.value || "Insert block"));
48
52
  host.state.rows = items.map((item) => ({ ...item, value: String(item.value ?? item.title) }));
@@ -107,6 +107,7 @@
107
107
  ></event>
108
108
  </defs>
109
109
  <div aria-label="Table controls" from:hidden="not $open">
110
+ <slot></slot>
110
111
  <div class="rows">
111
112
  <div
112
113
  $each="control of $rows"