@livepreso/react-plugin-textfield 0.5.1 → 0.5.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/CHANGELOG.json +17 -0
- package/CHANGELOG.md +8 -1
- package/index.js +4 -3
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livepreso/react-plugin-textfield",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.5.2",
|
|
6
|
+
"tag": "@livepreso/react-plugin-textfield_v0.5.2",
|
|
7
|
+
"date": "Tue, 08 Sep 2026 00:30:21 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Provide slidePath when getting values from CMSVals"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"dependency": [
|
|
15
|
+
{
|
|
16
|
+
"comment": "Updating dependency \"@livepreso/content-react\" to `2.3.0`"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
4
21
|
{
|
|
5
22
|
"version": "0.5.1",
|
|
6
23
|
"tag": "@livepreso/react-plugin-textfield_v0.5.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 Tue, 08 Sep 2026 00:30:21 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.5.2
|
|
6
|
+
Tue, 08 Sep 2026 00:30:21 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Provide slidePath when getting values from CMSVals
|
|
4
11
|
|
|
5
12
|
## 0.5.1
|
|
6
13
|
Thu, 03 Sep 2026 03:12:08 GMT
|
package/index.js
CHANGED
|
@@ -342,17 +342,18 @@ function PrepEditableField({ id, prepId = id, children, isCompany, ...props }) {
|
|
|
342
342
|
|
|
343
343
|
function CMSValField({ id, children, ...props }) {
|
|
344
344
|
const { isPresomanager, isThumbnailScreenshot } = useModes();
|
|
345
|
-
const { isUserTemplateLibrary, isUserTemplate } = useSlide();
|
|
345
|
+
const { isUserTemplateLibrary, isUserTemplate, slidePath } = useSlide();
|
|
346
346
|
|
|
347
347
|
const [cmsValue, setCMSValue] = useCMSVal(id);
|
|
348
348
|
const value = !isThumbnailScreenshot && cmsValue;
|
|
349
349
|
|
|
350
350
|
// Check if the app allows editing this field. If the function doesn't exist
|
|
351
|
-
// assume it's ok.
|
|
351
|
+
// assume it's ok. Pass calling slide's slidePath so the key resolves against
|
|
352
|
+
// this slide rather than presenter's current slide.
|
|
352
353
|
const userCanEdit =
|
|
353
354
|
isUserTemplate ||
|
|
354
355
|
isUserTemplateLibrary ||
|
|
355
|
-
(Bridge.CMSVals?.canEditKey?.(id) ?? true);
|
|
356
|
+
(Bridge.CMSVals?.canEditKey?.(id, { slidePath }) ?? true);
|
|
356
357
|
|
|
357
358
|
const isEditable =
|
|
358
359
|
props.isEditable &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livepreso/react-plugin-textfield",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@tiptap/extension-mention": "~3.20.0",
|
|
59
59
|
"@tiptap/suggestion": "~3.20.0",
|
|
60
60
|
"fuse.js": "~7.1.0",
|
|
61
|
-
"@livepreso/content-react": "2.
|
|
61
|
+
"@livepreso/content-react": "2.3.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": ""
|