@cocreate/text 1.17.4 → 1.17.5
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/saveDomText.js +7 -7
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.17.5](https://github.com/CoCreate-app/CoCreate-text/compare/v1.17.4...v1.17.5) (2022-08-31)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* rename variables isBroadcast and isBroadcastSender to broadcast and broadcastSender ([57bcc6f](https://github.com/CoCreate-app/CoCreate-text/commit/57bcc6fc40df63491d24565d987140f0a83593aa))
|
7
|
+
|
1
8
|
## [1.17.4](https://github.com/CoCreate-app/CoCreate-text/compare/v1.17.3...v1.17.4) (2022-08-18)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/saveDomText.js
CHANGED
@@ -4,19 +4,19 @@ import crud from '@cocreate/crud-client';
|
|
4
4
|
import crdt from '@cocreate/crdt';
|
5
5
|
|
6
6
|
function save(btn){
|
7
|
-
const { collection, document_id, name, namespace, room,
|
7
|
+
const { collection, document_id, name, namespace, room, broadcast, broadcastSender, isUpsert} = crud.getAttr(btn);
|
8
8
|
crdt.getText({collection, document_id, name}).then(response => {
|
9
9
|
crud.updateDocument({
|
10
|
-
collection
|
11
|
-
document_id
|
10
|
+
collection,
|
11
|
+
document_id,
|
12
12
|
data: {
|
13
13
|
[name]: response
|
14
14
|
},
|
15
15
|
upsert: isUpsert,
|
16
|
-
namespace
|
17
|
-
room
|
18
|
-
broadcast
|
19
|
-
|
16
|
+
namespace,
|
17
|
+
room,
|
18
|
+
broadcast,
|
19
|
+
broadcastSender
|
20
20
|
});
|
21
21
|
|
22
22
|
document.dispatchEvent(new CustomEvent('savedDomText'));
|