@weavour/react 0.1.2 → 0.1.5
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 +9 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,3 +17,12 @@ keyed remount. Imports are SSR safe; the bundle preserves its `use client` bound
|
|
|
17
17
|
The hosted editor and services remain private. Your application handles delivery.
|
|
18
18
|
Full API, identity/scoping rules, examples and release compatibility:
|
|
19
19
|
<https://github.com/weavour/editor-sdk>
|
|
20
|
+
|
|
21
|
+
Use `enableTestEmail={false}` to hide the toolbar test button. It is visible by
|
|
22
|
+
default and updates live without remounting. Your application can keep its own
|
|
23
|
+
export and delivery flow. Hiding the button closes an open editor test dialog.
|
|
24
|
+
|
|
25
|
+
Use `enableOrganizationBlocks={false}` to hide organization-block saving and reuse.
|
|
26
|
+
The prop updates live without remounting. It defaults to enabled for organization
|
|
27
|
+
mounts; the saved dashboard disable remains authoritative. Existing email content
|
|
28
|
+
and saved blocks are retained. See the core SDK reference for full configuration.
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// packages/react/src/index.tsx
|
|
4
4
|
import { forwardRef, createElement, useEffect, useImperativeHandle, useRef } from "react";
|
|
5
5
|
import { mount, EditorError } from "@weavour/editor";
|
|
6
|
-
var liveKeys = ["theme", "locale", "mergeTags", "allowedBlocks", "enableAi", "aiPaidOrigin", "enableTemplates", "enableAutosave", "enableEmailAudit"];
|
|
6
|
+
var liveKeys = ["theme", "locale", "mergeTags", "allowedBlocks", "enableAi", "aiPaidOrigin", "enableTemplates", "enableAutosave", "enableEmailAudit", "enableOrganizationBlocks", "enableTestEmail"];
|
|
7
7
|
var mountKeys = ["editorKey", "userId", "organizationId", "document", "emailDocument", "subject", "preheader", "draftId", "editorUrl", "apiUrl", "editorConfig", "demo"];
|
|
8
8
|
var WeavourEditor = forwardRef(function WeavourEditor2(props, ref) {
|
|
9
9
|
const container = useRef(null);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.5",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@weavour/editor": "0.1.
|
|
33
|
+
"@weavour/editor": "0.1.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^18.3.1 || ^19.0.0"
|