@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 +9 -4
- package/components/ui-site-header/ui-site-header.html +4 -0
- package/dist/index.js +1 -1
- package/docs/README.md +5 -3
- package/docs/catalog.json +2218 -31
- package/docs/catalog.mjs +2 -2
- package/docs/example-invocations.mjs +63 -0
- package/docs/framework-examples.d.mts +3 -1
- package/docs/framework-examples.mjs +158 -77
- package/docs/render.mjs +2 -2
- package/docs/site.mjs +3 -1
- package/package.json +2 -3
- package/styles/ui-site-header.css +4 -0
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
|
|
8
|
-
pnpm add -D
|
|
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`.
|
|
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
|
|