@livepreso/react-plugin-textfield 0.1.1 → 0.1.2
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/.rush/temp/shrinkwrap-deps.json +1 -1
- package/CHANGELOG.json +12 -0
- package/CHANGELOG.md +8 -1
- package/index.js +9 -0
- package/package.json +1 -1
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"/@tiptap/extension-bold@3.0.9(@tiptap/core@3.0.9)": "sha512-rVULIFt9ZO+fO5ty9zuC3HwY3knxUw7q9JBztpKPfQQCuIJ+iQnOfB8NtI3L8hxVSxhIR1pqr8B3S/8vlpXbVg==",
|
|
134
134
|
"/@tiptap/extension-bubble-menu@3.0.9(@tiptap/core@3.0.9)(@tiptap/pm@3.0.9)": "sha512-fZQfdSbKJl3J+Yi+s8NrcLBgXHOaGVD4g+vn+orTPUlZdG9FWvEoon8DexOdK9OvYnW6QMM7kS8whOgpogVyUQ==",
|
|
135
135
|
"/@tiptap/extension-document@3.0.9(@tiptap/core@3.0.9)": "sha512-DB/R5e6QvuGhY8EhCkfNjR2xQfz/TOWoxfQGhDuy5U+oK3WBwCcHq9t5+nbSCMHtKfi/i49aHKDvv7TQCpuP0w==",
|
|
136
|
-
"/@tiptap/extension-floating-menu@3.4.
|
|
136
|
+
"/@tiptap/extension-floating-menu@3.4.6(@tiptap/core@3.0.9)(@tiptap/pm@3.0.9)": "sha512-4Y0GbnPd2ET4Z/Co7mcX8Dx2t+ox+6bolIAil378r20mTPTVL09vHWK9OhbGxlxkhbJ158CeKBqsZh4cO824qg==",
|
|
137
137
|
"/@tiptap/extension-hard-break@3.0.9(@tiptap/core@3.0.9)": "sha512-PWNYsUwVsMWt/R5/OWjfGb+7DQT0DvH+1owBimRq0pWZepg8qkz1jdPGgsRmUFyERRsXeEpgj3VaQfrgbyUfrA==",
|
|
138
138
|
"/@tiptap/extension-heading@3.0.9(@tiptap/core@3.0.9)": "sha512-LRLCIt87fvDZ5CdkinzhkCwRz5ax6FlsjJzG32MJ3wXyvVslqeLXBvH28JFUZEyzgcd/SnYmYxnef5+yvAX61g==",
|
|
139
139
|
"/@tiptap/extension-image@3.0.9(@tiptap/core@3.0.9)": "sha512-/2igN/oIF58zqX5fcg00bf6qGLcQyXHysl5I8GiurkvO95d+SQTlYbJneSRUpt6CgrUKbhRnMBPVubmapgg+Zw==",
|
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livepreso/react-plugin-textfield",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.2",
|
|
6
|
+
"tag": "@livepreso/react-plugin-textfield_v0.1.2",
|
|
7
|
+
"date": "Mon, 27 Oct 2025 00:19:05 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Add user editability check"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.1.1",
|
|
6
18
|
"tag": "@livepreso/react-plugin-textfield_v0.1.1",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @livepreso/react-plugin-textfield
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 27 Oct 2025 00:19:05 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.1.2
|
|
6
|
+
Mon, 27 Oct 2025 00:19:05 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Add user editability check
|
|
4
11
|
|
|
5
12
|
## 0.1.1
|
|
6
13
|
Wed, 01 Oct 2025 02:27:21 GMT
|
package/index.js
CHANGED
|
@@ -268,9 +268,18 @@ function CMSValField({ id, children, ...props }) {
|
|
|
268
268
|
const [cmsValue, setCMSValue] = useCMSVal(id);
|
|
269
269
|
const value = !isThumbnailScreenshot && cmsValue;
|
|
270
270
|
|
|
271
|
+
// Check if the app allows editing this field. If the function doesn't exist
|
|
272
|
+
// assume it's ok.
|
|
273
|
+
const userCanEdit =
|
|
274
|
+
isUserTemplate ||
|
|
275
|
+
isUserTemplateLibrary ||
|
|
276
|
+
(Bridge.CMSVals?.canEditKey?.(id) ?? true);
|
|
277
|
+
|
|
271
278
|
const isEditable =
|
|
272
279
|
props.isEditable &&
|
|
280
|
+
userCanEdit &&
|
|
273
281
|
(isPresomanager || isUserTemplateLibrary || isUserTemplate);
|
|
282
|
+
|
|
274
283
|
return (
|
|
275
284
|
<EditableTextField
|
|
276
285
|
{...props}
|