hivewrite-sdk 1.1.93 → 1.1.95

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
@@ -124,6 +124,7 @@ Initializes and mounts the editor.
124
124
  | `mergeTags` | `array` | No | Array of `{ label, value }` for dynamic content |
125
125
  | `portalTarget` | `string` | No | `'window'` (default) or `'container'`. Controls where dialogs render. |
126
126
  | `autosave` | `number` | No | Autosave interval in seconds (e.g. `120`). Fires `onAutoSave` on that interval only when the design changed since it was loaded or last saved. Requires `callbacks.onAutoSave`. |
127
+ | `warnings` | `object` | No | Optional warning settings. `{ placeholderImages: false }` disables the placeholder-image confirmation on manual save (defaults to `true`). |
127
128
  | `callbacks` | `object` | No | Event hooks for SDK actions |
128
129
 
129
130
  ---
@@ -379,6 +380,24 @@ if (!result.success) {
379
380
  }
380
381
  ```
381
382
 
383
+ ### Placeholder Image Warning
384
+
385
+ Manual saves scan the design for default placeholder images (`placehold.co`, `placeholder.com`, `dummyimage.com`) in image blocks, video posters, TikTok thumbnails, and HTML blocks. If any are found, the editor shows a **non-blocking** confirmation dialog:
386
+
387
+ - **Save Anyway** — continues the save and calls `onSave` as usual.
388
+ - **Go Back & Edit** — cancels the save, keeps the template dirty, and selects the first affected block.
389
+
390
+ This is informational only: it is not a validation error, the save still resolves normally, and `SaveResult.success` is not affected. Autosave never shows the dialog, and programmatic calls to `hivewrite.save()` save without prompting (the confirmation lives in the editor UI).
391
+
392
+ To disable the warning entirely:
393
+
394
+ ```javascript
395
+ hivewrite.init({
396
+ // ...
397
+ warnings: { placeholderImages: false },
398
+ });
399
+ ```
400
+
382
401
  ### Template ID & Version
383
402
 
384
403
  The id/version returned from a successful save are remembered and sent with the next save. You can also set them when opening an existing template: