@cocreate/render 1.24.5 → 1.24.7
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/demo/fetch.string.html +1 -1
- package/demo/index.html +1 -1
- package/demo/render.array.html +1 -1
- package/demo/render.html +1 -1
- package/demo/render.object.html +1 -1
- package/demo/renderKey.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/index.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.24.7](https://github.com/CoCreate-app/CoCreate-render/compare/v1.24.6...v1.24.7) (2023-05-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* issue with two or more placeholders rendering ([5db3937](https://github.com/CoCreate-app/CoCreate-render/commit/5db3937b142f37d565a30c1cd882cda39fb76133))
|
|
7
|
+
|
|
8
|
+
## [1.24.6](https://github.com/CoCreate-app/CoCreate-render/compare/v1.24.5...v1.24.6) (2023-05-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update manifest.json to manifest.webmanifest ([597cbc9](https://github.com/CoCreate-app/CoCreate-render/commit/597cbc9db8649d6e479929ecf770514998728300))
|
|
14
|
+
|
|
1
15
|
## [1.24.5](https://github.com/CoCreate-app/CoCreate-render/compare/v1.24.4...v1.24.5) (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/render",
|
|
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/demo/fetch.string.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- CoCreate Favicon -->
|
|
6
6
|
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
7
|
-
<link rel="manifest" href="/manifest.
|
|
7
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
8
8
|
</head>
|
|
9
9
|
<style>
|
|
10
10
|
.template{display:none}
|
package/demo/index.html
CHANGED
package/demo/render.array.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- CoCreate Favicon -->
|
|
6
6
|
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
7
|
-
<link rel="manifest" href="/manifest.
|
|
7
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
8
8
|
</head>
|
|
9
9
|
<style>
|
|
10
10
|
.template{display:none}
|
package/demo/render.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- CoCreate Favicon -->
|
|
6
6
|
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
7
|
-
<link rel="manifest" href="/manifest.
|
|
7
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
8
8
|
</head>
|
|
9
9
|
<style>
|
|
10
10
|
.template{display:none}
|
package/demo/render.object.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- CoCreate Favicon -->
|
|
6
6
|
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
7
|
-
<link rel="manifest" href="/manifest.
|
|
7
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
8
8
|
</head>
|
|
9
9
|
<style>
|
|
10
10
|
.template{display:none}
|
package/demo/renderKey.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<!-- CoCreate Favicon -->
|
|
8
8
|
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
9
|
-
<link rel="manifest" href="/manifest.
|
|
9
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
10
10
|
</head>
|
|
11
11
|
|
|
12
12
|
<body class="padding:20px">
|
package/docs/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<!-- CoCreate CSS -->
|
|
16
16
|
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
|
|
17
17
|
<link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true" />
|
|
18
|
-
<link rel="manifest" href="/manifest.
|
|
18
|
+
<link rel="manifest" href="/manifest.webmanifest">
|
|
19
19
|
</head>
|
|
20
20
|
|
|
21
21
|
<body>
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -57,7 +57,7 @@ const CoCreateRender = {
|
|
|
57
57
|
},
|
|
58
58
|
|
|
59
59
|
__replaceValue: function(data, inputValue, renderKey, el) {
|
|
60
|
-
let outputValue =
|
|
60
|
+
let outputValue = inputValue;
|
|
61
61
|
let placeholders = inputValue.match(/{{([A-Za-z0-9_.,\[\]\- ]*)}}/g);
|
|
62
62
|
if (placeholders) {
|
|
63
63
|
for (let placeholder of placeholders) {
|
|
@@ -67,7 +67,7 @@ const CoCreateRender = {
|
|
|
67
67
|
if (typeof(value) == "object")
|
|
68
68
|
value = this.generateString(value)
|
|
69
69
|
|
|
70
|
-
outputValue =
|
|
70
|
+
outputValue = outputValue.replace(placeholder, value);
|
|
71
71
|
} else if (renderKey && placeholder.includes(`{{${renderKey}.`)) {
|
|
72
72
|
outputValue = '';
|
|
73
73
|
}
|
|
@@ -271,6 +271,8 @@ const CoCreateRender = {
|
|
|
271
271
|
else
|
|
272
272
|
that.renderMap(attr, attr.value, renderArray, renderKey)
|
|
273
273
|
|
|
274
|
+
if (attr_name == 'modal-src' && data.document.name == 'Contacts')
|
|
275
|
+
console.log(attr_name)
|
|
274
276
|
if (placeholder && !isRenderKey){
|
|
275
277
|
let temp = placeholder.placeholder;
|
|
276
278
|
// let updateData
|