@livepreso/content-react 1.1.1 → 2.0.0

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.
@@ -1,12 +1,12 @@
1
1
  {
2
- "../../content/content-react": "../../content/content-react:LI4QvLCR+A7lRqOhNBgyXxl132hAY0Q+y0icexYILvQ=:",
2
+ "../../content/content-react": "../../content/content-react:XmxDs7X4WpXF4hPVH0e0bk4E1Y1ROL8SvJkqJVymIyk=:",
3
3
  "/@ampproject/remapping@2.3.0": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
4
4
  "/@babel/code-frame@7.26.2": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",
5
5
  "/@babel/code-frame@7.27.1": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
6
6
  "/@babel/compat-data@7.26.2": "sha512-Z0WgzSEa+aUcdiJuCIqgujCshpMWgUpgOxXotrYPSA53hA3qopNaqcJpyr0hVb1FeWdnqFA35/fUtXgBK8srQg==",
7
7
  "/@babel/core@7.26.0": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==",
8
8
  "/@babel/generator@7.26.2": "sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==",
9
- "/@babel/generator@7.28.0": "sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==",
9
+ "/@babel/generator@7.28.3": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==",
10
10
  "/@babel/helper-annotate-as-pure@7.25.9": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==",
11
11
  "/@babel/helper-compilation-targets@7.25.9": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==",
12
12
  "/@babel/helper-globals@7.28.0": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
@@ -19,7 +19,7 @@
19
19
  "/@babel/helper-validator-identifier@7.27.1": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
20
20
  "/@babel/helper-validator-option@7.25.9": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==",
21
21
  "/@babel/helpers@7.26.0": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==",
22
- "/@babel/parser@7.28.0": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==",
22
+ "/@babel/parser@7.28.4": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==",
23
23
  "/@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.26.0)": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==",
24
24
  "/@babel/plugin-transform-react-display-name@7.25.9(@babel/core@7.26.0)": "sha512-KJfMlYIUxQB1CJfO3e0+h0ZHWOTLCPP115Awhaz8U0Zpq36Gl/cXlpoyMRnUWlhNUBAzldnCiAZNvCDj7CrKxQ==",
25
25
  "/@babel/plugin-transform-react-jsx-development@7.25.9(@babel/core@7.26.0)": "sha512-9mj6rm7XVYs4mdLIpbZnHOYdpW42uoiBCTVowg7sP1thUOiANgMb4UtpRivR0pp5iL+ocvUv7X4mZgFRpJEzGw==",
@@ -28,9 +28,9 @@
28
28
  "/@babel/preset-react@7.25.9(@babel/core@7.26.0)": "sha512-D3to0uSPiWE7rBrdIICCd0tJSIGpLaaGptna2+w7Pft5xMqLpA1sz99DK5TZ1TjGbdQ/VI1eCSZ06dv3lT4JOw==",
29
29
  "/@babel/template@7.25.9": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==",
30
30
  "/@babel/template@7.27.2": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==",
31
- "/@babel/traverse@7.28.0": "sha512-mGe7UK5wWyh0bKRfupsUchrQGqvDbZDbKJw+kcRGSmdHVYrv+ltd0pnpDTVpiTqnaBru9iEvA8pz8W46v0Amwg==",
31
+ "/@babel/traverse@7.28.4": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==",
32
32
  "/@babel/types@7.26.0": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==",
33
- "/@babel/types@7.28.2": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==",
33
+ "/@babel/types@7.28.4": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==",
34
34
  "/@eslint-community/eslint-utils@4.4.1(eslint@9.15.0)": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==",
35
35
  "/@eslint-community/regexpp@4.12.1": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",
36
36
  "/@eslint/config-array@0.19.0": "sha512-zdHg2FPIFNKPdcHWtiNT+jEFCHYVplAXRDlQDyqy0zGx/q2parwh7brGJSiTxRk/TSMkbM//zt/f5CHgyTyaSQ==",
@@ -50,7 +50,7 @@
50
50
  "/@jridgewell/set-array@1.2.1": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
51
51
  "/@jridgewell/sourcemap-codec@1.5.0": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
52
52
  "/@jridgewell/trace-mapping@0.3.25": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
53
- "/@jridgewell/trace-mapping@0.3.30": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==",
53
+ "/@jridgewell/trace-mapping@0.3.31": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
54
54
  "/@types/estree@1.0.6": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
55
55
  "/@types/json-schema@7.0.15": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
56
56
  "/acorn-jsx@5.3.2(acorn@8.14.0)": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
package/CHANGELOG.json CHANGED
@@ -1,6 +1,23 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
3
  "entries": [
4
+ {
5
+ "version": "2.0.0",
6
+ "tag": "@livepreso/content-react_v2.0.0",
7
+ "date": "Fri, 12 Sep 2025 02:07:08 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Add ability to filter toolbar options passed to the React Plugin TextField component, and supply custom toolbar options."
12
+ }
13
+ ],
14
+ "major": [
15
+ {
16
+ "comment": "react-plugin-textfield replace component toolbar option with custom, this uses a render function instead of supplying a component and componentProps. Also fixed tests."
17
+ }
18
+ ]
19
+ }
20
+ },
4
21
  {
5
22
  "version": "1.1.1",
6
23
  "tag": "@livepreso/content-react_v1.1.1",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,17 @@
1
1
  # Change Log - @livepreso/content-react
2
2
 
3
- This log was last generated on Mon, 25 Aug 2025 09:37:11 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 12 Sep 2025 02:07:08 GMT and should not be manually modified.
4
+
5
+ ## 2.0.0
6
+ Fri, 12 Sep 2025 02:07:08 GMT
7
+
8
+ ### Breaking changes
9
+
10
+ - react-plugin-textfield replace component toolbar option with custom, this uses a render function instead of supplying a component and componentProps. Also fixed tests.
11
+
12
+ ### Patches
13
+
14
+ - Add ability to filter toolbar options passed to the React Plugin TextField component, and supply custom toolbar options.
4
15
 
5
16
  ## 1.1.1
6
17
  Mon, 25 Aug 2025 09:37:11 GMT
@@ -4,16 +4,16 @@ import { useSlideContext } from "./use-slide-context.js";
4
4
  import { useSlide, useSlideModel } from "./slide.js";
5
5
  import { useModes } from "./use-modes.js";
6
6
 
7
- function useUserTemplateCMS(name) {
7
+ function useUserTemplateCMS(id) {
8
8
  const { slideID, presentationKey, isUserTemplate, isUserTemplateLibrary } =
9
9
  useSlide();
10
10
 
11
11
  let contextKey;
12
12
 
13
13
  if (isUserTemplate) {
14
- contextKey = `_userTemplateCMSvals.${slideID}--${name}-${presentationKey}`;
14
+ contextKey = `_userTemplateCMSvals.${slideID}--${id}-${presentationKey}`;
15
15
  } else if (isUserTemplateLibrary) {
16
- contextKey = `_userTemplateCMSvals.${presentationKey}--${name}`;
16
+ contextKey = `_userTemplateCMSvals.${presentationKey}--${id}`;
17
17
  }
18
18
 
19
19
  const [obj, setValue] = useSlideContext(
@@ -32,15 +32,15 @@ function useUserTemplateCMS(name) {
32
32
  ];
33
33
  }
34
34
 
35
- function useDefaultCMSValueFromPresomanager(name, { slidePath = null } = {}) {
35
+ function useDefaultCMSValueFromPresomanager(id, { slidePath = null } = {}) {
36
36
  const { isPresomanager } = useModes();
37
37
  const model = useSlideModel({ slidePath });
38
38
 
39
39
  let key;
40
40
  if (model.autoAdjunctID) {
41
- key = `${name}-autoadjunct-${model.autoAdjunctID}`;
41
+ key = `${id}-autoadjunct-${model.autoAdjunctID}`;
42
42
  } else {
43
- key = name;
43
+ key = id;
44
44
  }
45
45
 
46
46
  const [cmsVals] = useSlideContext(
@@ -53,12 +53,12 @@ function useDefaultCMSValueFromPresomanager(name, { slidePath = null } = {}) {
53
53
  return cmsVals?.find?.((c) => c.key === key)?.value ?? null;
54
54
  }
55
55
 
56
- export function useCMSVal(name, { enabled = true, slidePath = null } = {}) {
56
+ export function useCMSVal(id, { enabled = true, slidePath = null } = {}) {
57
57
  const { entered, entering } = useTransitions();
58
58
  const { isPresomanager, isEmptyPreview } = useModes();
59
59
  const { isUserTemplate, isUserTemplateLibrary } = useSlide();
60
- const [userTemplateValue, setUserTemplateValue] = useUserTemplateCMS(name);
61
- const defaultFromPM = useDefaultCMSValueFromPresomanager(name, { slidePath });
60
+ const [userTemplateValue, setUserTemplateValue] = useUserTemplateCMS(id);
61
+ const defaultFromPM = useDefaultCMSValueFromPresomanager(id, { slidePath });
62
62
 
63
63
  // We need to make sure we aren't trying to call this bridge command
64
64
  // (which can be specific to this slide) while it's being removed,
@@ -66,7 +66,7 @@ export function useCMSVal(name, { enabled = true, slidePath = null } = {}) {
66
66
  const isActiveSlide = entered || entering;
67
67
 
68
68
  const getCmsVal = useCallback(() => {
69
- if (!enabled || !name || !isActiveSlide) {
69
+ if (!enabled || !id || !isActiveSlide) {
70
70
  return undefined;
71
71
  }
72
72
 
@@ -78,10 +78,10 @@ export function useCMSVal(name, { enabled = true, slidePath = null } = {}) {
78
78
  return defaultFromPM;
79
79
  }
80
80
 
81
- return Bridge.CMSVals.get(name, { slidePath });
81
+ return Bridge.CMSVals.get(id, { slidePath });
82
82
  }, [
83
83
  enabled,
84
- name,
84
+ id,
85
85
  defaultFromPM,
86
86
  isUserTemplate,
87
87
  isUserTemplateLibrary,
@@ -95,7 +95,7 @@ export function useCMSVal(name, { enabled = true, slidePath = null } = {}) {
95
95
  if (isUserTemplate) {
96
96
  setUserTemplateValue(value);
97
97
  } else {
98
- Bridge.CMSVals.set(name, value, { slidePath });
98
+ Bridge.CMSVals.set(id, value, { slidePath });
99
99
  }
100
100
  setCMSValue(value);
101
101
  }
@@ -106,7 +106,7 @@ export function useCMSVal(name, { enabled = true, slidePath = null } = {}) {
106
106
  }
107
107
 
108
108
  function onCMSValChanged(key, newValue) {
109
- const fullKey = Bridge.CMSVals.getFullKey(name, { slidePath });
109
+ const fullKey = Bridge.CMSVals.getFullKey(id, { slidePath });
110
110
 
111
111
  if (key !== fullKey) {
112
112
  return;
@@ -120,7 +120,7 @@ export function useCMSVal(name, { enabled = true, slidePath = null } = {}) {
120
120
  return () => {
121
121
  Bridge.presenter.getPresentation().off("cmsValChanged", onCMSValChanged);
122
122
  };
123
- }, [enabled, name, getCmsVal]);
123
+ }, [enabled, id, getCmsVal]);
124
124
 
125
125
  return [value, updateCMSVal];
126
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livepreso/content-react",
3
- "version": "1.1.1",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {