@runtypelabs/persona 3.0.0 → 3.1.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/README.md +2 -2
- package/dist/index.cjs +29 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.global.js +68 -68
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/widget.css +83 -83
- package/package.json +1 -3
- package/src/components/artifact-pane.ts +3 -3
- package/src/components/header-builder.ts +1 -1
- package/src/runtime/host-layout.test.ts +137 -0
- package/src/runtime/host-layout.ts +81 -0
- package/src/runtime/init.test.ts +36 -1
- package/src/runtime/init.ts +1 -1
- package/src/styles/widget.css +83 -83
- package/src/ui.ts +6 -4
- package/src/utils/artifact-gate.ts +1 -1
- package/src/styles/tailwind.css +0 -20
package/README.md
CHANGED
|
@@ -935,7 +935,7 @@ const dropdown = createDropdownMenu({
|
|
|
935
935
|
onSelect: (id) => { /* handle */ },
|
|
936
936
|
anchor: myButton,
|
|
937
937
|
position: 'bottom-right',
|
|
938
|
-
portal: document.querySelector('
|
|
938
|
+
portal: document.querySelector('[data-persona-root]')!,
|
|
939
939
|
});
|
|
940
940
|
// No need to append — portal mode appends automatically
|
|
941
941
|
```
|
|
@@ -2322,6 +2322,6 @@ Add `RUNTYPE_API_KEY` to your environment. The proxy constructs the Runtype payl
|
|
|
2322
2322
|
### Development notes
|
|
2323
2323
|
|
|
2324
2324
|
- The widget streams results using SSE and mirrors the backend `flow_complete`/`step_chunk` events.
|
|
2325
|
-
- Tailwind-esc classes are prefixed with `tvw-` and scoped to
|
|
2325
|
+
- Tailwind-esc classes are prefixed with `tvw-` and scoped to `[data-persona-root]`, so they won't collide with the host page.
|
|
2326
2326
|
- Run `pnpm dev` from the repository root to boot the example proxy (`examples/proxy`) and the vanilla demo (`examples/embedded-app`).
|
|
2327
2327
|
- The proxy prefers port `43111` but automatically selects the next free port if needed.
|