@dotcms/uve 26.11.18-1 → 26.11.18-1-next.3156

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/README.md CHANGED
@@ -7,7 +7,7 @@ The `@dotcms/uve` SDK adds live editing to your JavaScript app using the dotCMS
7
7
  With `@dotcms/uve`, framework SDKs are able to:
8
8
  - Make pages and contentlets editable
9
9
  - Respond to editor events (content updates, mode changes)
10
- - Trigger modal or inline editing experiences
10
+ - Open content in the editor's side panel, or edit fields inline
11
11
  - Sync app routing with the dotCMS editor
12
12
 
13
13
  ## Table of Contents
@@ -334,7 +334,7 @@ sub.unsubscribe();
334
334
 
335
335
  ### `editContentlet(contentlet)`
336
336
 
337
- `editContentlet` is a function that opens the dotCMS modal editor for any contentlet in or out of the page area.
337
+ `editContentlet` is a function that opens any contentlet, in or out of the page area, in a side panel over the page, in the editor its content type uses. The page refreshes after every save.
338
338
 
339
339
  | Input | Type | Required | Description |
340
340
  | ------------ | ------------------ | -------- | -------------------------------- |
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@dotcms/uve",
3
- "version": "26.11.18-1",
3
+ "version": "26.11.18-1-next.3156",
4
4
  "description": "Official JavaScript library for interacting with Universal Visual Editor (UVE)",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dotCMS/core.git#main"
8
8
  },
9
9
  "peerDependencies": {
10
- "@dotcms/types": "26.11.18-1"
10
+ "@dotcms/types": "26.11.18-1-next.3156"
11
11
  },
12
12
  "devDependencies": {
13
- "@dotcms/types": "26.11.18-1"
13
+ "@dotcms/types": "26.11.18-1-next.3156"
14
14
  },
15
15
  "keywords": [
16
16
  "dotCMS",
package/public.cjs.js CHANGED
@@ -1591,7 +1591,9 @@ function sendMessageToUVE(message) {
1591
1591
  /**
1592
1592
  * You can use this function to edit a contentlet in the editor.
1593
1593
  *
1594
- * Calling this function inside the editor, will prompt the UVE to open a dialog to edit the contentlet.
1594
+ * Calling this function inside the editor makes the UVE open the contentlet in a side panel over the
1595
+ * page, in the editor its content type uses. The page refreshes after every save, and the panel stays
1596
+ * open until the author closes it.
1595
1597
  *
1596
1598
  * @export
1597
1599
  * @template T
@@ -1680,10 +1682,12 @@ function enableBlockEditorInline(contentlet, fieldName) {
1680
1682
  initInlineEditing('BLOCK_EDITOR', data);
1681
1683
  }
1682
1684
  /**
1683
- * Opens the contentlet creation panel for the given content type without adding it to the page.
1685
+ * Opens a create form for the given content type in a side panel over the page, in the editor the
1686
+ * content type uses, without adding the new contentlet to the page.
1684
1687
  *
1685
1688
  * This function is intended for use cases where you want to create a contentlet in the system
1686
- * (e.g., for widgets that auto-pull content) without dropping it onto the current page layout.
1689
+ * (e.g., for widgets that auto-pull content) without dropping it onto the current page layout. The
1690
+ * page refreshes after every save.
1687
1691
  *
1688
1692
  * @export
1689
1693
  * @param {string} contentType - The content type variable or structure inode to create a contentlet for.
package/public.esm.js CHANGED
@@ -1589,7 +1589,9 @@ function sendMessageToUVE(message) {
1589
1589
  /**
1590
1590
  * You can use this function to edit a contentlet in the editor.
1591
1591
  *
1592
- * Calling this function inside the editor, will prompt the UVE to open a dialog to edit the contentlet.
1592
+ * Calling this function inside the editor makes the UVE open the contentlet in a side panel over the
1593
+ * page, in the editor its content type uses. The page refreshes after every save, and the panel stays
1594
+ * open until the author closes it.
1593
1595
  *
1594
1596
  * @export
1595
1597
  * @template T
@@ -1678,10 +1680,12 @@ function enableBlockEditorInline(contentlet, fieldName) {
1678
1680
  initInlineEditing('BLOCK_EDITOR', data);
1679
1681
  }
1680
1682
  /**
1681
- * Opens the contentlet creation panel for the given content type without adding it to the page.
1683
+ * Opens a create form for the given content type in a side panel over the page, in the editor the
1684
+ * content type uses, without adding the new contentlet to the page.
1682
1685
  *
1683
1686
  * This function is intended for use cases where you want to create a contentlet in the system
1684
- * (e.g., for widgets that auto-pull content) without dropping it onto the current page layout.
1687
+ * (e.g., for widgets that auto-pull content) without dropping it onto the current page layout. The
1688
+ * page refreshes after every save.
1685
1689
  *
1686
1690
  * @export
1687
1691
  * @param {string} contentType - The content type variable or structure inode to create a contentlet for.
@@ -20,7 +20,9 @@ export declare function sendMessageToUVE<T = unknown>(message: DotCMSUVEMessage<
20
20
  /**
21
21
  * You can use this function to edit a contentlet in the editor.
22
22
  *
23
- * Calling this function inside the editor, will prompt the UVE to open a dialog to edit the contentlet.
23
+ * Calling this function inside the editor makes the UVE open the contentlet in a side panel over the
24
+ * page, in the editor its content type uses. The page refreshes after every save, and the panel stays
25
+ * open until the author closes it.
24
26
  *
25
27
  * @export
26
28
  * @template T
@@ -61,10 +63,12 @@ export declare function initInlineEditing(type: DotCMSInlineEditingType, data?:
61
63
  */
62
64
  export declare function enableBlockEditorInline<T extends DotCMSBasicContentlet>(contentlet: T extends DotCMSBasicContentlet ? T : never, fieldName: keyof T): void;
63
65
  /**
64
- * Opens the contentlet creation panel for the given content type without adding it to the page.
66
+ * Opens a create form for the given content type in a side panel over the page, in the editor the
67
+ * content type uses, without adding the new contentlet to the page.
65
68
  *
66
69
  * This function is intended for use cases where you want to create a contentlet in the system
67
- * (e.g., for widgets that auto-pull content) without dropping it onto the current page layout.
70
+ * (e.g., for widgets that auto-pull content) without dropping it onto the current page layout. The
71
+ * page refreshes after every save.
68
72
  *
69
73
  * @export
70
74
  * @param {string} contentType - The content type variable or structure inode to create a contentlet for.