@atlaskit/editor-plugin-synced-block 28.0.10 → 28.0.11

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 CHANGED
@@ -35,7 +35,6 @@ src/
35
35
  │ removeSyncedBlock, removeSyncedBlockAtPos, unsync
36
36
  ├── nodeviews/
37
37
  │ ├── syncedBlock.tsx # NodeView for reference (syncBlock) — read-only, fetches from BE
38
- │ ├── lazySyncedBlock.tsx # Lazy-loaded wrapper for syncedBlock (EDITOR-6928)
39
38
  │ └── bodiedSyncedBlock.tsx # NodeView for source (bodiedSyncBlock) — nested editor with content
40
39
  ├── pm-plugins/
41
40
  │ ├── main.ts # Core state machine: lifecycle, creation, deletion, cache,
@@ -104,7 +103,7 @@ from outside the plugin lifecycle:
104
103
 
105
104
  **Reference rendering** (flow through the code):
106
105
 
107
- 1. `nodeviews/syncedBlock.tsx` (or `lazySyncedBlock.tsx`) mounts for each `syncBlock` node
106
+ 1. `nodeviews/syncedBlock.tsx` mounts for each `syncBlock` node
108
107
  2. Calls `referenceManager.fetchSyncBlocksData(nodes)` → batched/deduped Block Service fetch
109
108
  3. Renders content via nested renderer from `editor-synced-block-renderer`
110
109
  4. Subscribes via `referenceManager.subscribeToSyncBlock(...)` — AGG WebSocket (Confluence) or Relay
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 28.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6e0fa99ec8f01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e0fa99ec8f01) -
8
+ Delete unreachable source files
9
+ - Updated dependencies
10
+
3
11
  ## 28.0.10
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "28.0.10",
3
+ "version": "28.0.11",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/platform-feature-flags": "^2.2.0",
54
54
  "@atlaskit/primitives": "^22.6.0",
55
55
  "@atlaskit/spinner": "20.4.4",
56
- "@atlaskit/tmp-editor-statsig": "^251.0.0",
56
+ "@atlaskit/tmp-editor-statsig": "^252.0.0",
57
57
  "@atlaskit/tokens": "20.9.0",
58
58
  "@atlaskit/tooltip": "^24.4.0",
59
59
  "@atlaskit/visually-hidden": "^4.4.0",
@@ -65,11 +65,12 @@
65
65
  "memoize-one": "^6.0.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "@atlaskit/editor-common": "^134.4.0",
68
+ "@atlaskit/editor-common": "^134.5.0",
69
69
  "react": "^18.2.0 || ^19.2.0",
70
70
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
71
71
  },
72
72
  "devDependencies": {
73
+ "@atlaskit/editor-common": "^134.5.0",
73
74
  "react": "^19.2.0",
74
75
  "react-intl": "^7.0.0",
75
76
  "typescript": "npm:@typescript/typescript6@^6.0.2"
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.lazySyncBlockView = void 0;
8
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
- var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
10
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
11
- var lazySyncBlockView = exports.lazySyncBlockView = function lazySyncBlockView(props) {
12
- return (0, _lazyNodeView.withLazyLoading)({
13
- nodeName: 'syncBlock',
14
- getNodeViewOptions: function getNodeViewOptions() {},
15
- loader: function loader() {
16
- var result = Promise.resolve().then(function () {
17
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-plugin-synced-block-nodeview" */
18
- './syncedBlock'));
19
- }).then(function (_ref) {
20
- var syncBlockNodeView = _ref.syncBlockNodeView;
21
- return syncBlockNodeView(props);
22
- });
23
- return result;
24
- }
25
- });
26
- };
@@ -1,16 +0,0 @@
1
- import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
2
- export const lazySyncBlockView = props => {
3
- return withLazyLoading({
4
- nodeName: 'syncBlock',
5
- getNodeViewOptions: () => {},
6
- loader: () => {
7
- const result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-synced-block-nodeview" */
8
- './syncedBlock').then(({
9
- syncBlockNodeView
10
- }) => {
11
- return syncBlockNodeView(props);
12
- });
13
- return result;
14
- }
15
- });
16
- };
@@ -1,15 +0,0 @@
1
- import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
2
- export var lazySyncBlockView = function lazySyncBlockView(props) {
3
- return withLazyLoading({
4
- nodeName: 'syncBlock',
5
- getNodeViewOptions: function getNodeViewOptions() {},
6
- loader: function loader() {
7
- var result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-synced-block-nodeview" */
8
- './syncedBlock').then(function (_ref) {
9
- var syncBlockNodeView = _ref.syncBlockNodeView;
10
- return syncBlockNodeView(props);
11
- });
12
- return result;
13
- }
14
- });
15
- };
@@ -1,3 +0,0 @@
1
- import type { NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view/types';
2
- import type { SyncBlockNodeViewProperties } from './syncedBlock';
3
- export declare const lazySyncBlockView: (props: SyncBlockNodeViewProperties) => NodeViewConstructor;