@weavour/react 0.1.1 → 0.1.4

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
@@ -17,3 +17,8 @@ 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 `enableOrganizationBlocks={false}` to hide organization-block saving and reuse.
22
+ The prop updates live without remounting. It defaults to enabled for organization
23
+ mounts; the saved dashboard disable remains authoritative. Existing email content
24
+ 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"];
6
+ var liveKeys = ["theme", "locale", "mergeTags", "allowedBlocks", "enableAi", "aiPaidOrigin", "enableTemplates", "enableAutosave", "enableEmailAudit", "enableOrganizationBlocks"];
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.1",
2
+ "version": "0.1.4",
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.1"
33
+ "@weavour/editor": "0.1.4"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^18.3.1 || ^19.0.0"