@livepreso/react-plugin-textfield 0.4.2 → 0.4.4
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 +24 -0
- package/CHANGELOG.md +13 -1
- package/index.js +6 -1
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livepreso/react-plugin-textfield",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.4.4",
|
|
6
|
+
"tag": "@livepreso/react-plugin-textfield_v0.4.4",
|
|
7
|
+
"date": "Wed, 06 May 2026 23:36:35 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "De-dupe tokens before providing to the text editor"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"version": "0.4.3",
|
|
18
|
+
"tag": "@livepreso/react-plugin-textfield_v0.4.3",
|
|
19
|
+
"date": "Thu, 12 Mar 2026 02:50:05 GMT",
|
|
20
|
+
"comments": {
|
|
21
|
+
"dependency": [
|
|
22
|
+
{
|
|
23
|
+
"comment": "Updating dependency \"@livepreso/content-react\" to `2.2.1`"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
4
28
|
{
|
|
5
29
|
"version": "0.4.2",
|
|
6
30
|
"tag": "@livepreso/react-plugin-textfield_v0.4.2",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log - @livepreso/react-plugin-textfield
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 06 May 2026 23:36:35 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.4.4
|
|
6
|
+
Wed, 06 May 2026 23:36:35 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- De-dupe tokens before providing to the text editor
|
|
11
|
+
|
|
12
|
+
## 0.4.3
|
|
13
|
+
Thu, 12 Mar 2026 02:50:05 GMT
|
|
14
|
+
|
|
15
|
+
_Version update only_
|
|
4
16
|
|
|
5
17
|
## 0.4.2
|
|
6
18
|
Tue, 24 Feb 2026 21:01:56 GMT
|
package/index.js
CHANGED
|
@@ -54,7 +54,7 @@ function EditableTextField({
|
|
|
54
54
|
isEditable,
|
|
55
55
|
textStyles,
|
|
56
56
|
colors,
|
|
57
|
-
tokens,
|
|
57
|
+
tokens: allTokens = [],
|
|
58
58
|
toolbarConfig = DEFAULT_TOOLBAR_CONFIG,
|
|
59
59
|
tableToolbarConfig = DEFAULT_TABLE_TOOLBAR_CONFIG,
|
|
60
60
|
maskSelector,
|
|
@@ -73,6 +73,11 @@ function EditableTextField({
|
|
|
73
73
|
const { isUserTemplateLibrary } = useSlide();
|
|
74
74
|
const [textColor, setTextColor] = useState(null);
|
|
75
75
|
const initialValue = useRef(value);
|
|
76
|
+
const tokens = allTokens.reduce((acc, token) => {
|
|
77
|
+
const { id } = token;
|
|
78
|
+
if (acc.some((accToken) => accToken.id === id)) return acc;
|
|
79
|
+
return [...acc, token];
|
|
80
|
+
}, []);
|
|
76
81
|
|
|
77
82
|
const isReallyPresoManager = isPresomanager && !isUserTemplateLibrary;
|
|
78
83
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livepreso/react-plugin-textfield",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
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.2.
|
|
61
|
+
"@livepreso/content-react": "2.2.1"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": ""
|