@panphora/clayjs 1.5.3 → 1.6.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 (46) hide show
  1. package/README.md +5 -3
  2. package/THIRD-PARTY-NOTICES.md +6 -0
  3. package/dist/clay.standalone.js +15041 -10657
  4. package/package.json +9 -4
  5. package/src/core/conflict-download.js +91 -0
  6. package/src/core/conflict-notice.js +720 -0
  7. package/src/core/conflict-presentation.js +301 -0
  8. package/src/core/save-conflict-notice.js +2 -192
  9. package/src/core/save-core.js +35 -2
  10. package/src/core/save-feedback.js +6 -0
  11. package/src/core/save.js +157 -3
  12. package/src/core/snapshot.js +21 -0
  13. package/src/core/stale-host-notice.js +21 -24
  14. package/src/core/unsaved-warning.js +64 -16
  15. package/src/lib/content-dom.js +4 -2
  16. package/src/lib/dirty-gate.js +37 -1
  17. package/src/lib/unsaved-state.js +55 -0
  18. package/src/loader-logic.js +26 -15
  19. package/src/loader.js +10 -3
  20. package/src/plugins/ai-edit.js +489 -179
  21. package/src/plugins/cms.js +12 -0
  22. package/src/plugins/indicator.js +35 -16
  23. package/src/plugins/quickcrop.js +103 -0
  24. package/src/plugins/richclay.js +21 -0
  25. package/src/plugins/source.js +13 -6
  26. package/src/plugins/wire.js +4 -0
  27. package/src/sync/conflict-revert.js +1138 -0
  28. package/src/sync/conflicts.js +159 -0
  29. package/src/sync/live-sync.js +130 -109
  30. package/src/sync/presence.js +42 -36
  31. package/src/sync/section-notice.js +53 -28
  32. package/src/ui/bevel-controls.js +277 -0
  33. package/src/ui/bevel-dialog.js +112 -0
  34. package/src/ui/bevel.js +247 -0
  35. package/src/ui/dialogs.js +63 -86
  36. package/src/ui/index.js +22 -11
  37. package/src/ui/modal.js +80 -387
  38. package/src/ui/skins/cms-toggle.js +15 -0
  39. package/src/ui/skins/cms.js +4 -0
  40. package/src/ui/skins/quickcrop.js +4 -0
  41. package/src/ui/skins/richclay.js +4 -0
  42. package/src/ui/toast.js +116 -401
  43. package/src/ui/vendor-skin.js +65 -0
  44. package/src/vendor/hyper-morph.vendor.js +4 -4
  45. package/src/vendor/quickcrop.vendor.js +14 -8
  46. 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`, `ai-edit`, `demo`.
55
- Only `richclay` loads by default, and only in edit mode. `cms` brings `quickcrop` with it, because
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
@@ -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,