@saywright/vite 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @saywright/vite
2
2
 
3
- The Vite plugin for [Saywright](https://www.npmjs.com/package/saywright), the studio where you point at your running web app, say what to change, and keep or undo the result.
3
+ The Vite plugin for [Saywright](https://www.npmjs.com/package/@saywright/studio), the studio where you point at your running web app, say what to change, and keep or undo the result.
4
4
 
5
5
  With the plugin, each element you point at in the studio is traced to the exact file, line and column that wrote it, and your app can record sessions from its own tab. It runs on the development server only: production builds are untouched.
6
6
 
@@ -9,7 +9,7 @@ With the plugin, each element you point at in the studio is traced to the exact
9
9
  The quickest way is to let Saywright do it. It installs the plugin with your app's package manager and adds it to your Vite config:
10
10
 
11
11
  ```bash
12
- npx saywright connect path/to/your-app
12
+ npx @saywright/studio connect path/to/your-app
13
13
  ```
14
14
 
15
15
  Or by hand:
@@ -29,7 +29,7 @@ export default defineConfig({
29
29
  });
30
30
  ```
31
31
 
32
- Then start your app as usual, start the studio with `npx saywright`, and open your app in it.
32
+ Then start your app as usual, start the studio with `npx @saywright/studio`, and open your app in it.
33
33
 
34
34
  ## Options
35
35
 
@@ -61,7 +61,7 @@ saywright({
61
61
 
62
62
  - **Vite 4 or newer** (the peer range is `vite >=4`) and **Node.js 22.18 or newer, or 24.11 or newer**.
63
63
  - **React** apps get exact locations from the JSX. In other apps on Vite (Vue, Svelte…), the plugin still connects the app to the studio and records sessions, and the studio finds an element's source through the framework's development information.
64
- - **Updating.** The plugin and the studio are updated separately. When the two can't work together, the studio says which one to update: `npm i -D @saywright/vite@latest` in your app, or `npx saywright@latest`.
64
+ - **Updating.** The plugin and the studio are updated separately. When the two can't work together, the studio says which one to update: `npm i -D @saywright/vite@latest` in your app, or `npx @saywright/studio@latest`.
65
65
 
66
66
  For tools that talk to the studio or read its sessions, `@saywright/vite/protocol` exports the messages, the session events and `PROTOCOL_VERSION`, with their types.
67
67
 
package/dist/bridge.js CHANGED
@@ -6461,7 +6461,7 @@ function start() {
6461
6461
  v: 1,
6462
6462
  oldest: 1
6463
6463
  });
6464
- if (side && side !== mismatch) console.warn(side === "plugin" ? "[saywright] This app’s Saywright plugin is older than the studio: run npm i -D @saywright/vite@latest and restart the dev server." : "[saywright] The Saywright studio is older than this app’s plugin: update Saywright (npx saywright@latest).");
6464
+ if (side && side !== mismatch) console.warn(side === "plugin" ? "[saywright] This app’s Saywright plugin is older than the studio: run npm i -D @saywright/vite@latest and restart the dev server." : "[saywright] The Saywright studio is older than this app’s plugin: update Saywright (npx @saywright/studio@latest).");
6465
6465
  mismatch = side;
6466
6466
  post({
6467
6467
  type: "ready",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saywright/vite",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Vite plugin for Saywright: traces every element of your running React app to its file and line, so you can point at it and say what to change. Dev server only.",
5
5
  "keywords": [
6
6
  "vite",