@atlaskit/editor-plugin-synced-block 5.2.2 → 5.3.1
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/CHANGELOG.md +24 -0
- package/dist/cjs/editor-commands/index.js +33 -1
- package/dist/cjs/editor-commands/utils.js +20 -0
- package/dist/cjs/ui/SyncBlockLabel.js +103 -9
- package/dist/cjs/ui/SyncBlockRefresher.js +18 -4
- package/dist/cjs/ui/SyncBlockRendererWrapper.js +6 -2
- package/dist/cjs/ui/SyncedLocationDropdown.js +14 -11
- package/dist/cjs/ui/floating-toolbar.js +19 -1
- package/dist/es2019/editor-commands/index.js +34 -0
- package/dist/es2019/editor-commands/utils.js +14 -0
- package/dist/es2019/ui/SyncBlockLabel.js +96 -7
- package/dist/es2019/ui/SyncBlockRefresher.js +18 -4
- package/dist/es2019/ui/SyncBlockRendererWrapper.js +6 -2
- package/dist/es2019/ui/SyncedLocationDropdown.js +14 -11
- package/dist/es2019/ui/floating-toolbar.js +18 -2
- package/dist/esm/editor-commands/index.js +32 -0
- package/dist/esm/editor-commands/utils.js +14 -0
- package/dist/esm/ui/SyncBlockLabel.js +100 -8
- package/dist/esm/ui/SyncBlockRefresher.js +18 -4
- package/dist/esm/ui/SyncBlockRendererWrapper.js +6 -2
- package/dist/esm/ui/SyncedLocationDropdown.js +14 -11
- package/dist/esm/ui/floating-toolbar.js +20 -2
- package/dist/types/editor-commands/index.d.ts +5 -0
- package/dist/types/editor-commands/utils.d.ts +2 -0
- package/dist/types/syncedBlockPluginType.d.ts +1 -1
- package/dist/types/ui/SyncBlockLabel.d.ts +4 -1
- package/dist/types/ui/SyncBlockRendererWrapper.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/index.d.ts +5 -0
- package/dist/types-ts4.5/editor-commands/utils.d.ts +2 -0
- package/dist/types-ts4.5/syncedBlockPluginType.d.ts +1 -1
- package/dist/types-ts4.5/ui/SyncBlockLabel.d.ts +4 -1
- package/dist/types-ts4.5/ui/SyncBlockRendererWrapper.d.ts +1 -1
- package/package.json +7 -6
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type IntlShape } from 'react-intl-next';
|
|
3
|
+
export declare const formatElapsedTime: (isoDate: string, intl: IntlShape) => string;
|
|
2
4
|
type SyncBlockLabelProps = {
|
|
5
|
+
contentUpdatedAt?: string;
|
|
3
6
|
isSource: boolean;
|
|
4
7
|
localId: string;
|
|
5
8
|
useFetchSyncBlockTitle?: () => string | undefined;
|
|
6
9
|
};
|
|
7
|
-
export declare const SyncBlockLabel: React.MemoExoticComponent<({ isSource, useFetchSyncBlockTitle, localId, }: SyncBlockLabelProps) => React.JSX.Element>;
|
|
10
|
+
export declare const SyncBlockLabel: React.MemoExoticComponent<({ isSource, useFetchSyncBlockTitle, localId, contentUpdatedAt, }: SyncBlockLabelProps) => React.JSX.Element>;
|
|
8
11
|
export {};
|
|
@@ -9,5 +9,5 @@ type Props = {
|
|
|
9
9
|
useFetchSyncBlockData: () => UseFetchSyncBlockDataResult;
|
|
10
10
|
useFetchSyncBlockTitle: () => string | undefined;
|
|
11
11
|
};
|
|
12
|
-
export declare const SyncBlockRendererWrapper: React.MemoExoticComponent<({ syncedBlockRenderer, useFetchSyncBlockData,
|
|
12
|
+
export declare const SyncBlockRendererWrapper: React.MemoExoticComponent<({ syncedBlockRenderer, useFetchSyncBlockData, useFetchSyncBlockTitle, localId, api, }: Props) => React.JSX.Element>;
|
|
13
13
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/adf-schema": "^51.5.0",
|
|
32
|
-
"@atlaskit/button": "23.9.
|
|
33
|
-
"@atlaskit/dropdown-menu": "16.4.
|
|
32
|
+
"@atlaskit/button": "23.9.5",
|
|
33
|
+
"@atlaskit/dropdown-menu": "16.4.3",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-block-menu": "^6.0.0",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
43
|
-
"@atlaskit/editor-synced-block-provider": "^3.
|
|
43
|
+
"@atlaskit/editor-synced-block-provider": "^3.13.0",
|
|
44
44
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
45
45
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
46
46
|
"@atlaskit/flag": "^17.8.0",
|
|
47
|
-
"@atlaskit/icon": "
|
|
47
|
+
"@atlaskit/icon": "30.0.0",
|
|
48
48
|
"@atlaskit/icon-lab": "^5.14.0",
|
|
49
49
|
"@atlaskit/logo": "^19.10.0",
|
|
50
50
|
"@atlaskit/lozenge": "^13.3.0",
|
|
@@ -52,13 +52,14 @@
|
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/primitives": "^17.1.0",
|
|
54
54
|
"@atlaskit/spinner": "19.0.9",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
56
56
|
"@atlaskit/tokens": "10.1.0",
|
|
57
57
|
"@atlaskit/tooltip": "^20.14.0",
|
|
58
58
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
59
59
|
"@babel/runtime": "^7.0.0",
|
|
60
60
|
"@compiled/react": "^0.18.6",
|
|
61
61
|
"bind-event-listener": "^3.0.0",
|
|
62
|
+
"date-fns": "^2.17.0",
|
|
62
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|