dragble-angular-editor 1.0.5 → 1.0.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 +3 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -384,7 +384,7 @@ The `id` you pass to `connectMCP()` is a **Bring Your Own ID (BYOI)** that maps
|
|
|
384
384
|
|
|
385
385
|
**Why these rules?**
|
|
386
386
|
|
|
387
|
-
- The `id` is used in database lookups
|
|
387
|
+
- The `id` is used in database lookups and URL paths — special characters or extreme lengths would break routing
|
|
388
388
|
- Same `id` = resume the same session. Random UUIDs mean every page refresh creates a new session and loses AI context
|
|
389
389
|
- Short IDs (< 8 chars) are too easy to guess, long IDs (> 128 chars) waste storage
|
|
390
390
|
|
|
@@ -400,28 +400,9 @@ editor.connectMCP({ id: "tenant_42_invoice_template_v3" }); // tenant + entity
|
|
|
400
400
|
editor.connectMCP({ id: crypto.randomUUID() });
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
-
### Storage modes (compliance)
|
|
404
|
-
|
|
405
|
-
Choose how much of the session lives on Dragble's servers:
|
|
406
|
-
|
|
407
|
-
| Mode | Persistence | Use case |
|
|
408
|
-
| ---------------- | ------------------------- | ------------------------------------------------------- |
|
|
409
|
-
| `full` (default) | Metadata + design content | Standard SaaS; survives refresh, restart, device switch |
|
|
410
|
-
| `metadata-only` | Metadata only | Audit logs without storing customer content |
|
|
411
|
-
| `memory-only` | None — RAM only | HIPAA / SOC2 / strict data residency |
|
|
412
|
-
|
|
413
|
-
```typescript
|
|
414
|
-
editor.connectMCP({
|
|
415
|
-
id: "user-42-doc-99",
|
|
416
|
-
storage: "full", // default — best UX, refresh + cross-device resume
|
|
417
|
-
// "metadata-only" // audit metadata only, no design content persisted
|
|
418
|
-
// "memory-only" // nothing persisted (HIPAA / SOC2 / data residency)
|
|
419
|
-
});
|
|
420
|
-
```
|
|
421
|
-
|
|
422
403
|
### Disconnecting
|
|
423
404
|
|
|
424
|
-
`disconnectMCP()` permanently destroys the session — the
|
|
405
|
+
`disconnectMCP()` permanently destroys the session — the session cannot be reopened:
|
|
425
406
|
|
|
426
407
|
```typescript
|
|
427
408
|
const { destroyed } = await editor.disconnectMCP();
|
|
@@ -440,7 +421,7 @@ Idle sessions are reaped after 2 hours of inactivity. Active sessions never expi
|
|
|
440
421
|
|
|
441
422
|
| Method | Returns |
|
|
442
423
|
| -------------------------------------------------- | ----------------------------------------------------------------------- |
|
|
443
|
-
| `editor.connectMCP({ id,
|
|
424
|
+
| `editor.connectMCP({ id, editorMode? })` | `{ sessionId, resumed? }` |
|
|
444
425
|
| `editor.disconnectMCP()` | `{ destroyed }` — permanently deletes session |
|
|
445
426
|
| `editor.getPairingCode()` | `{ code, expiresAt }` — generate a pairing code for end-user AI clients |
|
|
446
427
|
| `editor.endPairing()` | `{ revoked }` — invalidate the active pairing code |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dragble-angular-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "AI-powered Angular email editor component. Drag-and-drop email builder for creating responsive email templates and newsletters. Build HTML emails visually with Dragble.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|