@panphora/clayjs 1.9.2 → 1.11.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 +3 -3
- package/dist/clay.standalone.js +9701 -6938
- package/entries/clay-router.js +38 -0
- package/entries/sap.js +6 -6
- package/package.json +2 -2
- package/packed-contract.json +1 -0
- package/src/attrs/add-from.js +72 -0
- package/src/attrs/save-freeze.js +12 -2
- package/src/core/conflict-notice.js +2 -5
- package/src/core/conflict-presentation.js +42 -0
- package/src/core/save-core.js +22 -0
- package/src/core/save.js +11 -2
- package/src/core/snapshot.js +4 -1
- package/src/core/source-map.js +1 -1
- package/src/lib/mutation.js +28 -4
- package/src/lib/person-face.js +16 -0
- package/src/lib/region-capabilities.js +1 -0
- package/src/lib/region-policy.js +10 -3
- package/src/lib/root-attrs.js +28 -0
- package/src/live/checkpoint.js +106 -0
- package/src/live/fast-lane.js +590 -0
- package/src/live/local-lane.js +582 -0
- package/src/live/ops.js +291 -0
- package/src/live/server-lane.js +84 -0
- package/src/live/store.js +291 -0
- package/src/live/stream-bridge.js +60 -0
- package/src/loader-logic.js +7 -2
- package/src/loader.js +2 -0
- package/src/plugins/live.js +446 -0
- package/src/plugins/people.js +3 -14
- package/src/plugins/sortable.js +3 -1
- package/src/route/route.js +188 -0
- package/src/standalone.js +1 -0
- package/src/sync/conflict-revert.js +2 -3
- package/src/sync/editing-marker.js +172 -0
- package/src/sync/editing-path.js +46 -0
- package/src/sync/editing-sender.js +100 -0
- package/src/sync/live-sync.js +85 -19
- package/src/sync/presence.js +16 -44
- package/src/sync/stream.js +16 -5
- package/src/vendor/hyper-morph.vendor.js +6 -4
- package/src/sync/section-notice.js +0 -254
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Site, tutorial, and docs: [clayjs.com](https://clayjs.com)** · hosted platform: [hyperclay.com](https://hyperclay.com)
|
|
4
4
|
|
|
5
|
-
Self-saving
|
|
5
|
+
Self-saving malleable documents from one classic `<script>`. Load `clay.js` on a page and it
|
|
6
6
|
becomes editable in place, snapshots its own DOM, and saves that DOM back to the file it
|
|
7
7
|
came from. No build step, no framework, no account.
|
|
8
8
|
|
|
@@ -51,7 +51,7 @@ query params on the script URL:
|
|
|
51
51
|
<script src="https://clayjs.com/v1/clay.js?plugins=sync,cms&exclude=indicator"></script>
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
- `?plugins=` — add optional plugins: `sync`, `cms`, `undo`, `sortable`, `indicator`, `ai-edit`, `quickcrop`, `upload`, `wire`, `demo`.
|
|
54
|
+
- `?plugins=` — add optional plugins: `sync`, `live`, `cms`, `undo`, `sortable`, `indicator`, `ai-edit`, `quickcrop`, `upload`, `wire`, `demo`.
|
|
55
55
|
In edit mode `richclay` and `source` load by default. `ai-edit` brings `wire` with it.
|
|
56
56
|
`cms` brings `quickcrop` with it, because the CMS uses it for `data-hcms-crop` image fields.
|
|
57
57
|
- `?exclude=` — drop a plugin that would otherwise load (a default, or one another plugin pulled in).
|
|
@@ -137,7 +137,7 @@ attribute:
|
|
|
137
137
|
```
|
|
138
138
|
|
|
139
139
|
Tokens: `no-save`, `no-snapshot`, `no-trigger-autosave`, `no-dirty`, `no-watch`, `no-undo`,
|
|
140
|
-
`no-data`, `editor-ui`, `freeze`. `no-data` excludes a subtree from content-aware reads without
|
|
140
|
+
`no-data`, `editor-ui`, `freeze`, `live`. `no-data` excludes a subtree from content-aware reads without
|
|
141
141
|
changing save, watch, snapshot, or undo behavior. `editor-ui` combines `no-data`, `no-save`,
|
|
142
142
|
`no-snapshot`, `no-watch`, and `no-undo` for live editing controls. Native DOM queries still see
|
|
143
143
|
both markers. Add `autosave` to `<html>` to save automatically on change.
|