@cocreate/text 1.17.6 → 1.17.8

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.17.8](https://github.com/CoCreate-app/CoCreate-text/compare/v1.17.7...v1.17.8) (2022-09-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * config renameed to CoCreateConfig ([ba8e4d4](https://github.com/CoCreate-app/CoCreate-text/commit/ba8e4d4175b3c97663caebde7b8f2d53ddd816af))
7
+
8
+ ## [1.17.7](https://github.com/CoCreate-app/CoCreate-text/compare/v1.17.6...v1.17.7) (2022-09-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * removed setClassStyle ([972a5c7](https://github.com/CoCreate-app/CoCreate-text/commit/972a5c75b5df9d4f59dac9c0ee87184a84a8a5bc))
14
+
1
15
  ## [1.17.6](https://github.com/CoCreate-app/CoCreate-text/compare/v1.17.5...v1.17.6) (2022-09-01)
2
16
 
3
17
 
package/demo/demos.html CHANGED
@@ -29,7 +29,7 @@
29
29
  </div>
30
30
  </form>
31
31
  <script>
32
- var config = {
32
+ var CoCreateConfig = {
33
33
  apiKey: '2061acef-0451-4545-f754-60cf8160', // Your apiKey can be retrived after signing up at https://cocreate.app
34
34
  organization_id: '5ff747727005da1c272740ab', // Your organization_id can be retrived after signing up at https://cocreate.app
35
35
  host: 'general.cocreate.app' // Points to socket server. If not defined it will use the url in web browser by default
@@ -195,7 +195,7 @@
195
195
  </footer>
196
196
  </div>
197
197
  <script>
198
- var config = {
198
+ var CoCreateConfig = {
199
199
  apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
200
200
  organization_id: '5de0387b12e200ea63204d6c',
201
201
  host: 'wss://ws.cocreate.app'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.17.6",
3
+ "version": "1.17.8",
4
4
  "description": "A simple text component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "text",
package/src/index.js CHANGED
@@ -5,7 +5,7 @@ import crdt from '@cocreate/crdt';
5
5
  import cursors from '@cocreate/cursors';
6
6
  import uuid from '@cocreate/uuid';
7
7
  import {updateDom} from './updateDom';
8
- import {insertAdjacentElement, removeElement, setInnerText, setAttribute, removeAttribute, setClass, setStyle, setClassStyle, replaceInnerText} from './updateText';
8
+ import {insertAdjacentElement, removeElement, setInnerText, setAttribute, removeAttribute, setClass, setStyle, replaceInnerText} from './updateText';
9
9
  import {getSelection, processSelection} from '@cocreate/selection';
10
10
  import action from '@cocreate/actions';
11
11
  import './saveDomText';
@@ -424,4 +424,4 @@ action.init({
424
424
 
425
425
  init();
426
426
 
427
- export default {initElements, initElement, updateText, updateElement, _addEventListeners, insertAdjacentElement, removeElement, setInnerText, setAttribute, removeAttribute, setClass, setStyle, setClassStyle, replaceInnerText};
427
+ export default {initElements, initElement, updateText, updateElement, _addEventListeners, insertAdjacentElement, removeElement, setInnerText, setAttribute, removeAttribute, setClass, setStyle, replaceInnerText};