@threadlabs/looma 0.49.2 → 0.49.4

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/README.md CHANGED
@@ -1,13 +1,17 @@
1
1
  # @threadlabs/looma
2
2
 
3
3
  Looma's components are authored as HTML Next definitions. The HTML Next Vite adapter
4
- converts those definitions in Vue, React and Svelte applications.
4
+ converts those definitions in Vue, React and Svelte applications. In an existing
5
+ Vue/Vite project:
5
6
 
6
7
  ```sh
7
- pnpm add '@threadlabs/looma@>=0.49.0' vue
8
- pnpm add -D '@nextwebwg/html-next-unplugin@>=1.0.0-alpha.76' @vitejs/plugin-vue vite
8
+ pnpm add @threadlabs/looma
9
+ pnpm add -D @nextwebwg/html-next-unplugin
9
10
  ```
10
11
 
12
+ Looma installs its HTML Next runtime automatically. For a new Vue project, also
13
+ install `vue`, `@vitejs/plugin-vue`, `vite`, `vue-tsc` and `typescript`.
14
+
11
15
  ```ts
12
16
  // vite.config.ts
13
17
  import { defineConfig } from "vite";
@@ -34,7 +38,8 @@ The framework-neutral `trackInputModality` helper is available from
34
38
  For React, use `target: "react"` before `react()` from `@vitejs/plugin-react`.
35
39
  For Svelte 5, use `target: "svelte"` before `svelte()` from
36
40
  `@sveltejs/vite-plugin-svelte`. Both import the same prefixed names from
37
- `@threadlabs/looma`. Use HTML Next runtime alpha.74 or later and Vite adapter alpha.76 or later; see the [loading guide](https://threadlabs.studio/looma/getting-started/).
41
+ `@threadlabs/looma`. See the [loading guide](https://threadlabs.studio/looma/getting-started/)
42
+ for framework setup and compatibility requirements.
38
43
 
39
44
  The document editor, compact field, and compact renderer use the same source imports:
40
45
 
@@ -96,6 +96,10 @@
96
96
  color: inherit;
97
97
  text-decoration: none;
98
98
  }
99
+ .brand > :slotted(a) > img, .brand > :slotted(img) {
100
+ max-inline-size: 100%;
101
+ object-fit: contain;
102
+ }
99
103
  .navigation {
100
104
  display: flex !important;
101
105
  flex-wrap: wrap !important;