dragble-angular-editor 1.0.5 → 1.0.7

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.
Files changed (2) hide show
  1. package/README.md +3 -22
  2. package/package.json +2 -2
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, URL paths, and storage keys — special characters or extreme lengths would break routing
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 database record is deleted and the session cannot be reopened:
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, storage?, editorMode? })` | `{ sessionId, storageMode?, resumed? }` |
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.5",
3
+ "version": "1.0.7",
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",
@@ -95,7 +95,7 @@
95
95
  },
96
96
  "homepage": "https://docs.dragble.com",
97
97
  "dependencies": {
98
- "dragble-types": "latest"
98
+ "dragble-types": "^1.0.7"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "@angular/common": ">=17.0.0",