@cocreate/elements 1.17.8 → 1.17.10
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 +14 -0
- package/CoCreate.config.js +3 -2
- package/package.json +8 -8
- package/src/fetchSrc.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.17.10](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.17.9...v1.17.10) (2023-05-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump [@cocreate](https://github.com/cocreate) dependencies ([efec2e8](https://github.com/CoCreate-app/CoCreate-elements/commit/efec2e88219b6ddb57c3758c99f72e5bcc236e95))
|
|
7
|
+
|
|
8
|
+
## [1.17.9](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.17.8...v1.17.9) (2023-05-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* test src for placeholder ([f3d4f54](https://github.com/CoCreate-app/CoCreate-elements/commit/f3d4f54287a5a333cb4086f6354db796194d3537))
|
|
14
|
+
|
|
1
15
|
## [1.17.8](https://github.com/CoCreate-app/CoCreate-elements/compare/v1.17.7...v1.17.8) (2023-05-01)
|
|
2
16
|
|
|
3
17
|
|
package/CoCreate.config.js
CHANGED
|
@@ -17,9 +17,10 @@ module.exports = {
|
|
|
17
17
|
"general.cocreate.app"
|
|
18
18
|
],
|
|
19
19
|
"directory": "/docs/elements",
|
|
20
|
-
"
|
|
20
|
+
"parentDirectory": "{{parentDirectory}}",
|
|
21
|
+
"content-type": "{{content-type}}",
|
|
21
22
|
"public": "true",
|
|
22
|
-
"website_id": "
|
|
23
|
+
"website_id": "644d4bff8036fb9d1d1fd69c"
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/elements",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.10",
|
|
4
4
|
"description": "Fetch content into any html element by using html5 attributes to query data stored in CoCreate headless CMS. If data is changed it will instantly reflect in html tags as changes are broadcasted in realtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"elements",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"webpack-log": "^3.0.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@cocreate/actions": "^1.8.
|
|
63
|
-
"@cocreate/crud-client": "^1.
|
|
64
|
-
"@cocreate/docs": "^1.7.
|
|
65
|
-
"@cocreate/element-prototype": "^1.8.
|
|
66
|
-
"@cocreate/filter": "^1.19.
|
|
67
|
-
"@cocreate/observer": "^1.7.
|
|
68
|
-
"@cocreate/utils": "^1.20.
|
|
62
|
+
"@cocreate/actions": "^1.8.8",
|
|
63
|
+
"@cocreate/crud-client": "^1.20.4",
|
|
64
|
+
"@cocreate/docs": "^1.7.8",
|
|
65
|
+
"@cocreate/element-prototype": "^1.8.7",
|
|
66
|
+
"@cocreate/filter": "^1.19.7",
|
|
67
|
+
"@cocreate/observer": "^1.7.6",
|
|
68
|
+
"@cocreate/utils": "^1.20.6"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/src/fetchSrc.js
CHANGED
|
@@ -16,6 +16,9 @@ function initElements(elements) {
|
|
|
16
16
|
|
|
17
17
|
async function initElement(element) {
|
|
18
18
|
let src = element.getAttribute('src');
|
|
19
|
+
|
|
20
|
+
if (!src || /{{\s*([\w\W]+)\s*}}/g.test(src))
|
|
21
|
+
return;
|
|
19
22
|
let initialize = initializing.get(element)
|
|
20
23
|
if (!initialize || initialize.src != src){
|
|
21
24
|
initializing.set(element, {src});
|