@cocreate/element-prototype
Advanced tools
Comparing version 1.1.24 to 1.2.0
@@ -0,1 +1,8 @@ | ||
# [1.2.0](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.1.24...v1.2.0) (2022-12-12) | ||
### Features | ||
* add @cocreate/utils for getAttributes ([dc888aa](https://github.com/CoCreate-app/CoCreate-element-prototype/commit/dc888aab1317b448add2723515bbf74681c2d547)) | ||
## [1.1.24](https://github.com/CoCreate-app/CoCreate-element-prototype/compare/v1.1.23...v1.1.24) (2022-12-11) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/element-prototype", | ||
"version": "1.1.24", | ||
"version": "1.2.0", | ||
"description": "A simple element-prototype component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", | ||
@@ -64,6 +64,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@cocreate/crud-client": "^1.16.7", | ||
"@cocreate/docs": "^1.4.17", | ||
"@cocreate/hosting": "^1.6.16" | ||
"@cocreate/docs": "^1.4.18", | ||
"@cocreate/hosting": "^1.6.17", | ||
"@cocreate/utils": "^1.16.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import crud from '@cocreate/crud-client'; | ||
import {getAttributes} from '@cocreate/utils'; | ||
@@ -23,3 +23,5 @@ | ||
if (el.tagName == 'INPUT' || el.tagName == 'TEXTAREA' || el.tagName == 'SELECT') { | ||
const {isCrdt} = crud.getAttributes(el); | ||
let {isCrdt} = getAttributes(el) | ||
if (isCrdt == null || isCrdt == undefined) | ||
isCrdt = el.getAttribute('crdt') | ||
if (isCrdt == "true" || el.type === 'file') return; | ||
@@ -26,0 +28,0 @@ |
41185
351
+ Added@cocreate/utils@^1.16.0
- Removed@cocreate/crud-client@^1.16.7
Updated@cocreate/docs@^1.4.18
Updated@cocreate/hosting@^1.6.17