@atlaskit/editor-synced-block-provider 6.4.0 → 6.4.2
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/AGENTS.md +21 -2
- package/CHANGELOG.md +12 -0
- package/package.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -24,7 +24,8 @@ src/
|
|
|
24
24
|
├── store-manager/
|
|
25
25
|
│ ├── syncBlockStoreManager.ts # Parent coordinator for source + reference managers
|
|
26
26
|
│ ├── referenceSyncBlockStoreManager.ts # Reference block lifecycle, cache, subscriptions, flush
|
|
27
|
-
│ └── sourceSyncBlockStoreManager.ts # Source block create, update, delete, flush
|
|
27
|
+
│ └── sourceSyncBlockStoreManager.ts # Source block create, update, delete, flush,
|
|
28
|
+
│ hasPendingCreations(), discardUnpublishedBlocks()
|
|
28
29
|
├── clients/
|
|
29
30
|
│ ├── block-service/
|
|
30
31
|
│ │ ├── blockService.ts # Block service API client (fetch, batch, CRUD)
|
|
@@ -37,7 +38,23 @@ src/
|
|
|
37
38
|
├── providers/
|
|
38
39
|
│ └── block-service/
|
|
39
40
|
│ └── blockServiceAPI.ts # Provider factory and API helpers
|
|
40
|
-
|
|
41
|
+
├── hooks/
|
|
42
|
+
│ ├── useFetchSyncBlockData.ts # React hook: fetch + subscribe to a block instance
|
|
43
|
+
│ ├── useFetchSyncBlockTitle.ts # React hook: fetch source title/url metadata
|
|
44
|
+
│ └── useHandleContentChanges.ts # Wires editor content changes into source manager
|
|
45
|
+
├── common/
|
|
46
|
+
│ ├── consts.ts # Shared constants (debounce timings, etc.)
|
|
47
|
+
│ ├── rebase-transaction.ts # Shared transaction rebase helpers
|
|
48
|
+
│ └── types.ts # Cross-module types
|
|
49
|
+
├── utils/
|
|
50
|
+
│ ├── errorHandling.ts # Error normalisation
|
|
51
|
+
│ ├── experienceTracking.ts # Experience analytics dispatch
|
|
52
|
+
│ ├── resolveSyncBlockInstance.ts # ADF/instance resolution
|
|
53
|
+
│ ├── resourceId.ts # Resource ID parsing/validation
|
|
54
|
+
│ ├── retry.ts # Backoff/retry helpers
|
|
55
|
+
│ ├── utils.ts # Misc helpers
|
|
56
|
+
│ └── validValue.ts # Value validation
|
|
57
|
+
└── types/ # Public types re-exported from index
|
|
41
58
|
```
|
|
42
59
|
|
|
43
60
|
---
|
|
@@ -53,6 +70,8 @@ SyncBlockStoreManager (parent coordinator)
|
|
|
53
70
|
│ ├── updateSyncBlockData(node) → marks isDirty, caches content
|
|
54
71
|
│ ├── flush() → persist all dirty changes to backend
|
|
55
72
|
│ ├── hasUnsavedChanges() → checks isDirty + hasReceivedContentChange
|
|
73
|
+
│ ├── hasPendingCreations() → O(1) pending-creation check (EDITOR-6930)
|
|
74
|
+
│ ├── discardUnpublishedBlocks() → delete unpublished blocks (EDITOR-6473)
|
|
56
75
|
│ └── delete(resourceId) → soft delete with confirmation
|
|
57
76
|
└── ReferenceSyncBlockStoreManager
|
|
58
77
|
├── fetchSyncBlocksData(nodes) → batch fetch with deduplication
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
],
|
|
25
25
|
"atlaskit:src": "src/index.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-utils": "^19.
|
|
27
|
+
"@atlaskit/adf-utils": "^19.29.0",
|
|
28
28
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
29
29
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
30
30
|
"@atlaskit/node-data-provider": "^11.0.0",
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
32
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
32
|
+
"@atlaskit/tmp-editor-statsig": "^76.0.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@compiled/react": "^0.20.0",
|
|
35
35
|
"graphql-ws": "^5.14.2",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"uuid": "^3.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@atlaskit/editor-common": "^114.
|
|
41
|
+
"@atlaskit/editor-common": "^114.20.0",
|
|
42
42
|
"react": "^18.2.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"name": "@atlaskit/editor-synced-block-provider",
|
|
84
|
-
"version": "6.4.
|
|
84
|
+
"version": "6.4.2",
|
|
85
85
|
"description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
|
|
86
86
|
"author": "Atlassian Pty Ltd",
|
|
87
87
|
"license": "Apache-2.0",
|