@chengzhiyi/pi-excalidraw 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.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  Hosted v2 Excalidraw package. Migrated from `pi-webapp-excalidraw` diagrams at source HEAD `d87f24e`, including `b01b6bb` persistence/grouping changes. No host-private imports, shared React, direct checkpoint writes, workspace filesystem access, account, collaboration, image attachments or external embeds.
4
4
 
5
+ ## Install and update in pi-webapp
6
+
7
+ This is an **official optional plugin**, published as `@chengzhiyi/pi-excalidraw` on npm. Use a pi-webapp host with the **hosted v2 runtime**: publishing or installing this package does not add that runtime to an older host. In particular, a host branch/release that predates the hosted-v2 migration is not made compatible by this package's publication alone.
8
+
9
+ In a compatible host, open **Plugins**, find the official **Excalidraw** card, choose **Install**, then **Enable**. The card can be listed before installation without downloading the editor or fonts. The published package already contains the editor, React, fonts and other browser assets; end users do not build it or install this repository's development dependencies. Do not install dependencies into the host's root directory as a substitute for the plugin manager.
10
+
11
+ Use **Check updates** and the offered update action for independent plugin updates. Compatible software updates also synchronize already-installed official plugins; they do not install absent plugins or re-enable disabled ones. There is no update-policy selector to configure. Version compatibility, integrity checks and successful checkpoint synchronization still gate activation.
12
+
13
+ An open editor defers the version switch by default. Close it and apply the pending update, or explicitly choose **Update and reopen now** after reviewing the warning that native undo/redo history is reset. Only the plugin's views/runtime are replaced: the host page and AgentSession are retained. Do not interpret a download, a registry tag or a staged npm package as proof that activation succeeded.
14
+
15
+ Disabling or uninstalling retains user workspace `.excalidraw` files and recovery data. Unsaved checkpoints and browser backups are recovery aids, not a replacement for an explicitly saved workspace file. Save important drawings before upgrading. A failed save or lifecycle acknowledgement must be surfaced rather than bypassed by refresh or forced overwrite.
16
+
17
+ The first post-publication documentation patch changes these instructions only; it does not claim new editor features. Release acceptance should install the two actual npm versions through the compatible host and verify staged/immediate update behavior, preserved drawing data and retained host/session identity. Local archive fixtures alone are not evidence of public-registry updates.
18
+
5
19
  ## Build and verification
6
20
 
7
21
  Run from this package using Node 24 (Node 22 with transform-types support also works for tests). Build dependencies and browser test dependency are explicitly pinned in package.json. React/ReactDOM, editor code, lazy chunks, locales, CSS, fonts and notices are shipped inside `dist`; there are **no installed runtime dependencies**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chengzhiyi/pi-excalidraw",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Self-contained hosted v2 Excalidraw plugin for pi-webapp",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,8 +53,8 @@
53
53
  "directory": "packages/excalidraw"
54
54
  },
55
55
  "piRelease": {
56
- "fingerprint": "fbb5547bff4df89457a16f1af49a3e3476e6cdc52044b5c1d1160d3b7829cb18",
57
- "source": "59744894fabacf5cc9ef5182fe8889f2a14f2006"
56
+ "fingerprint": "a5e25eda7092de7c81571a2875d5432617b184ab4d8f50bb22e24b63027bbdb4",
57
+ "source": "3ec771c3a0de3f9d20c1f9947d9c31d36e154a64"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "node scripts/build.mjs",