@weavour/react 0.1.4 → 0.1.6

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
@@ -18,6 +18,10 @@ 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
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
+
21
25
  Use `enableOrganizationBlocks={false}` to hide organization-block saving and reuse.
22
26
  The prop updates live without remounting. It defaults to enabled for organization
23
27
  mounts; the saved dashboard disable remains authoritative. Existing email content
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", "enableOrganizationBlocks"];
6
+ var liveKeys = ["theme", "locale", "mergeTags", "displayConditions", "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);
@@ -54,7 +54,7 @@ var WeavourEditor = forwardRef(function WeavourEditor2(props, ref) {
54
54
  };
55
55
  }, []);
56
56
  useEffect(() => {
57
- const config = { mergeTags: props.mergeTags };
57
+ const config = { mergeTags: props.mergeTags, displayConditions: props.displayConditions };
58
58
  for (const key of liveKeys) if (Object.hasOwn(props, key)) Object.assign(config, { [key]: props[key] });
59
59
  const serialized = JSON.stringify(config);
60
60
  if (serialized !== previousLive.current) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.4",
2
+ "version": "0.1.6",
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.4"
33
+ "@weavour/editor": "0.1.6"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^18.3.1 || ^19.0.0"