@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.
Files changed (33) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/editor-commands/index.js +33 -1
  3. package/dist/cjs/editor-commands/utils.js +20 -0
  4. package/dist/cjs/ui/SyncBlockLabel.js +103 -9
  5. package/dist/cjs/ui/SyncBlockRefresher.js +18 -4
  6. package/dist/cjs/ui/SyncBlockRendererWrapper.js +6 -2
  7. package/dist/cjs/ui/SyncedLocationDropdown.js +14 -11
  8. package/dist/cjs/ui/floating-toolbar.js +19 -1
  9. package/dist/es2019/editor-commands/index.js +34 -0
  10. package/dist/es2019/editor-commands/utils.js +14 -0
  11. package/dist/es2019/ui/SyncBlockLabel.js +96 -7
  12. package/dist/es2019/ui/SyncBlockRefresher.js +18 -4
  13. package/dist/es2019/ui/SyncBlockRendererWrapper.js +6 -2
  14. package/dist/es2019/ui/SyncedLocationDropdown.js +14 -11
  15. package/dist/es2019/ui/floating-toolbar.js +18 -2
  16. package/dist/esm/editor-commands/index.js +32 -0
  17. package/dist/esm/editor-commands/utils.js +14 -0
  18. package/dist/esm/ui/SyncBlockLabel.js +100 -8
  19. package/dist/esm/ui/SyncBlockRefresher.js +18 -4
  20. package/dist/esm/ui/SyncBlockRendererWrapper.js +6 -2
  21. package/dist/esm/ui/SyncedLocationDropdown.js +14 -11
  22. package/dist/esm/ui/floating-toolbar.js +20 -2
  23. package/dist/types/editor-commands/index.d.ts +5 -0
  24. package/dist/types/editor-commands/utils.d.ts +2 -0
  25. package/dist/types/syncedBlockPluginType.d.ts +1 -1
  26. package/dist/types/ui/SyncBlockLabel.d.ts +4 -1
  27. package/dist/types/ui/SyncBlockRendererWrapper.d.ts +1 -1
  28. package/dist/types-ts4.5/editor-commands/index.d.ts +5 -0
  29. package/dist/types-ts4.5/editor-commands/utils.d.ts +2 -0
  30. package/dist/types-ts4.5/syncedBlockPluginType.d.ts +1 -1
  31. package/dist/types-ts4.5/ui/SyncBlockLabel.d.ts +4 -1
  32. package/dist/types-ts4.5/ui/SyncBlockRendererWrapper.d.ts +1 -1
  33. 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, localId, useFetchSyncBlockTitle, api, }: Props) => React.JSX.Element>;
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.2.2",
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.4",
33
- "@atlaskit/dropdown-menu": "16.4.2",
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.12.0",
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": "29.4.2",
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.28.0",
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": {