@panphora/clayjs 1.5.3 → 1.6.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 +5 -3
- package/THIRD-PARTY-NOTICES.md +6 -0
- package/dist/clay.standalone.js +14965 -10714
- package/package.json +9 -4
- package/src/core/conflict-download.js +91 -0
- package/src/core/conflict-notice.js +720 -0
- package/src/core/conflict-presentation.js +301 -0
- package/src/core/save-conflict-notice.js +2 -192
- package/src/core/save-feedback.js +6 -0
- package/src/core/save.js +53 -1
- package/src/core/snapshot.js +21 -0
- package/src/core/stale-host-notice.js +21 -24
- package/src/core/unsaved-warning.js +35 -10
- package/src/lib/content-dom.js +4 -2
- package/src/lib/dirty-gate.js +9 -0
- package/src/lib/unsaved-state.js +55 -0
- package/src/loader-logic.js +26 -15
- package/src/loader.js +4 -3
- package/src/plugins/ai-edit.js +489 -179
- package/src/plugins/cms.js +12 -0
- package/src/plugins/indicator.js +35 -16
- package/src/plugins/quickcrop.js +103 -0
- package/src/plugins/richclay.js +21 -0
- package/src/plugins/source.js +13 -6
- package/src/plugins/wire.js +4 -0
- package/src/sync/conflict-revert.js +1138 -0
- package/src/sync/conflicts.js +159 -0
- package/src/sync/live-sync.js +130 -109
- package/src/sync/presence.js +42 -36
- package/src/sync/section-notice.js +53 -28
- package/src/ui/bevel-controls.js +277 -0
- package/src/ui/bevel-dialog.js +112 -0
- package/src/ui/bevel.js +247 -0
- package/src/ui/dialogs.js +63 -86
- package/src/ui/index.js +22 -11
- package/src/ui/modal.js +80 -387
- package/src/ui/skins/cms-toggle.js +15 -0
- package/src/ui/skins/cms.js +4 -0
- package/src/ui/skins/quickcrop.js +4 -0
- package/src/ui/skins/richclay.js +4 -0
- package/src/ui/toast.js +116 -401
- package/src/ui/vendor-skin.js +65 -0
- package/src/vendor/hyper-morph.vendor.js +4 -4
- package/src/vendor/quickcrop.vendor.js +14 -8
- package/src/vendor/richclay.vendor.js +22 -41
package/README.md
CHANGED
|
@@ -51,10 +51,12 @@ 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`, `quickcrop`, `upload`, `wire`, `
|
|
55
|
-
|
|
56
|
-
the CMS uses it for `data-hcms-crop` image fields.
|
|
54
|
+
- `?plugins=` — add optional plugins: `sync`, `cms`, `undo`, `sortable`, `indicator`, `ai-edit`, `quickcrop`, `upload`, `wire`, `demo`.
|
|
55
|
+
In edit mode `richclay` and `source` load by default. `ai-edit` brings `wire` with it.
|
|
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).
|
|
58
|
+
One `exclude=` takes a comma list, e.g. `?exclude=source,richclay`; a second `exclude=` is ignored.
|
|
59
|
+
Excluding `wire` turns `ai-edit` off too.
|
|
58
60
|
- `?editmode=false` — force view mode (URL param wins over everything else).
|
|
59
61
|
|
|
60
62
|
Edit mode is decided in this order: the `?editmode` param, then a `viewonly` attribute
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -46,6 +46,12 @@ or carry third-party code, and keep their original licenses.
|
|
|
46
46
|
- Copyright (c) 2017 Indrashish Ghosh
|
|
47
47
|
- https://github.com/ghosh/Micromodal
|
|
48
48
|
|
|
49
|
+
## Phosphor Icons (MIT)
|
|
50
|
+
|
|
51
|
+
- File: the eye icon in src/core/conflict-notice.js
|
|
52
|
+
- Copyright (c) 2020 Phosphor Icons
|
|
53
|
+
- https://github.com/phosphor-icons/core
|
|
54
|
+
|
|
49
55
|
## First-party vendored modules
|
|
50
56
|
|
|
51
57
|
The remaining files in src/vendor/ (hypercms, hyper-morph, hyper-undo, quickcrop,
|