@livepreso/react-plugin-textfield 0.4.3 → 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 CHANGED
@@ -1,6 +1,18 @@
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
+ },
4
16
  {
5
17
  "version": "0.4.3",
6
18
  "tag": "@livepreso/react-plugin-textfield_v0.4.3",
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 Thu, 12 Mar 2026 02:50:05 GMT and should not be manually modified.
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
4
11
 
5
12
  ## 0.4.3
6
13
  Thu, 12 Mar 2026 02:50:05 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",
3
+ "version": "0.4.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {