@cocreate/render 1.32.0 → 1.33.0
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 +12 -0
- package/package.json +6 -6
- package/src/index.js +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [1.33.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.32.0...v1.33.0) (2023-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* use action.form and action.params ([90f9428](https://github.com/CoCreate-app/CoCreate-render/commit/90f9428a5c87473d51aec4111b15a0f194f46cb1))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* update dependecies for th latest features and bug fixes ([733e8cf](https://github.com/CoCreate-app/CoCreate-render/commit/733e8cfa7b601c2c5b494fb132588a67f6d6f433))
|
|
12
|
+
|
|
1
13
|
# [1.32.0](https://github.com/CoCreate-app/CoCreate-render/compare/v1.31.0...v1.32.0) (2023-11-16)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/render",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "A simple render component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"render",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.12.
|
|
62
|
-
"@cocreate/api": "^1.15.
|
|
63
|
-
"@cocreate/element-prototype": "^1.13.
|
|
64
|
-
"@cocreate/observer": "^1.
|
|
65
|
-
"@cocreate/utils": "^1.27.
|
|
61
|
+
"@cocreate/actions": "^1.12.4",
|
|
62
|
+
"@cocreate/api": "^1.15.12",
|
|
63
|
+
"@cocreate/element-prototype": "^1.13.2",
|
|
64
|
+
"@cocreate/observer": "^1.12.0",
|
|
65
|
+
"@cocreate/utils": "^1.27.4"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/index.js
CHANGED
|
@@ -652,9 +652,12 @@ function getRenderValue(node, data, key, renderAs) {
|
|
|
652
652
|
return value
|
|
653
653
|
}
|
|
654
654
|
|
|
655
|
-
async function renderKey(
|
|
655
|
+
async function renderKey(action) {
|
|
656
656
|
// TODO: custom render-keys
|
|
657
|
-
|
|
657
|
+
let element = action.element
|
|
658
|
+
let form = action.form || document
|
|
659
|
+
let params = action.params
|
|
660
|
+
|
|
658
661
|
if (!params)
|
|
659
662
|
params = 'render-key'
|
|
660
663
|
|
|
@@ -683,7 +686,7 @@ async function renderKey(element, params) {
|
|
|
683
686
|
Actions.init({
|
|
684
687
|
name: "renderKey",
|
|
685
688
|
callback: (action) => {
|
|
686
|
-
renderKey(action
|
|
689
|
+
renderKey(action);
|
|
687
690
|
}
|
|
688
691
|
});
|
|
689
692
|
|