@dotcms/uve 0.0.1-beta.32 → 0.0.1-beta.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/uve",
3
- "version": "0.0.1-beta.32",
3
+ "version": "0.0.1-beta.33",
4
4
  "description": "Official JavaScript library for interacting with Universal Visual Editor (UVE)",
5
5
  "repository": {
6
6
  "type": "git",
package/public.cjs.js CHANGED
@@ -1042,7 +1042,7 @@ function enableBlockEditorInline(contentlet, fieldName) {
1042
1042
  return;
1043
1043
  }
1044
1044
  const data = {
1045
- fieldName,
1045
+ fieldName: fieldName,
1046
1046
  inode: contentlet.inode,
1047
1047
  language: contentlet.languageId,
1048
1048
  contentType: contentlet.contentType,
package/public.esm.js CHANGED
@@ -1040,7 +1040,7 @@ function enableBlockEditorInline(contentlet, fieldName) {
1040
1040
  return;
1041
1041
  }
1042
1042
  const data = {
1043
- fieldName,
1043
+ fieldName: fieldName,
1044
1044
  inode: contentlet.inode,
1045
1045
  language: contentlet.languageId,
1046
1046
  contentType: contentlet.contentType,
@@ -1,4 +1,4 @@
1
- import { Contentlet, DotCMSUVEConfig, DotCMSInlineEditingPayload, DotCMSInlineEditingType, DotCMSBasicContentlet } from '@dotcms/types';
1
+ import { Contentlet, DotCMSInlineEditingPayload, DotCMSInlineEditingType, DotCMSBasicContentlet, DotCMSPageResponse } from '@dotcms/types';
2
2
  import { DotCMSReorderMenuConfig, DotCMSUVEMessage } from '@dotcms/types/internal';
3
3
  /**
4
4
  * Updates the navigation in the editor.
@@ -59,7 +59,7 @@ export declare function initInlineEditing(type: DotCMSInlineEditingType, data?:
59
59
  * @param {string} fieldName
60
60
  * @return {*} {void}
61
61
  */
62
- export declare function enableBlockEditorInline(contentlet: DotCMSBasicContentlet, fieldName: string): void;
62
+ export declare function enableBlockEditorInline<T extends DotCMSBasicContentlet>(contentlet: T extends DotCMSBasicContentlet ? T : never, fieldName: keyof T): void;
63
63
  /**
64
64
  * Initializes the Universal Visual Editor (UVE) with required handlers and event listeners.
65
65
  *
@@ -81,6 +81,6 @@ export declare function enableBlockEditorInline(contentlet: DotCMSBasicContentle
81
81
  * destroyUVESubscriptions();
82
82
  * ```
83
83
  */
84
- export declare function initUVE(config?: DotCMSUVEConfig): {
84
+ export declare function initUVE(config?: DotCMSPageResponse): {
85
85
  destroyUVESubscriptions: () => void;
86
86
  };
@@ -1,4 +1,4 @@
1
- import { DotCMSUVEConfig } from '@dotcms/types';
1
+ import { DotCMSPageResponse } from '@dotcms/types';
2
2
  /**
3
3
  * Sets up scroll event handlers for the window to notify the editor about scroll events.
4
4
  * Adds listeners for both 'scroll' and 'scrollend' events, sending appropriate messages
@@ -44,7 +44,7 @@ export declare function registerUVEEvents(): {
44
44
  * This is typically called after all UVE event handlers and DOM listeners
45
45
  * have been set up successfully.
46
46
  */
47
- export declare function setClientIsReady(config?: DotCMSUVEConfig): void;
47
+ export declare function setClientIsReady(config?: DotCMSPageResponse): void;
48
48
  /**
49
49
  * Listen for block editor inline event.
50
50
  */