@atlaskit/editor-plugin-collab-edit 1.1.4 → 1.1.6

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-collab-edit
2
2
 
3
+ ## 1.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#82308](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82308) [`26970b6663ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/26970b6663ae) - Register the custom prosemirror within the collab PM plugin
8
+
9
+ ## 1.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679) [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) - ED-22553 Updating adf-schema version to 35.6.0
14
+ - Updated dependencies
15
+
3
16
  ## 1.1.4
4
17
 
5
18
  ### Patch Changes
@@ -3,11 +3,55 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "AddColumnStep", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _customSteps.AddColumnStep;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "AnalyticsStep", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _steps.AnalyticsStep;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "InsertTypeAheadStep", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _steps.InsertTypeAheadStep;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "LinkMetaStep", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _steps.LinkMetaStep;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "OverrideDocumentStep", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _steps.OverrideDocumentStep;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "SetAttrsStep", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _steps.SetAttrsStep;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "TableSortStep", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _customSteps.TableSortStep;
46
+ }
47
+ });
6
48
  exports.createPlugin = void 0;
7
49
  var _analytics = require("@atlaskit/editor-common/analytics");
8
50
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
9
51
  var _analytics2 = require("../../analytics");
10
52
  var _initialize = require("../../events/initialize");
53
+ var _customSteps = require("@atlaskit/custom-steps");
54
+ var _steps = require("@atlaskit/adf-schema/steps");
11
55
  var _pluginKey = require("./plugin-key");
12
56
  var _pluginState = require("./plugin-state");
13
57
  var createPlugin = exports.createPlugin = function createPlugin(dispatch, providerFactory, providerResolver, collabProviderCallback, options, featureFlags, pluginInjectionApi) {
package/dist/cjs/utils.js CHANGED
@@ -26,7 +26,7 @@ var findPointers = exports.findPointers = function findPointers(id, decorations)
26
26
  };
27
27
  function style(options) {
28
28
  var color = options && options.color || 'black';
29
- return "border-left: 1px solid ".concat(color, "; border-right: 1px solid ").concat(color, "; margin-right: -2px;");
29
+ return "border-right: 2px solid ".concat(color, "; margin-right: -2px;");
30
30
  }
31
31
  function getAvatarColor(str) {
32
32
  var hash = 0;
@@ -36,7 +36,6 @@ function getAvatarColor(str) {
36
36
  hash = hash & hash;
37
37
  /* eslint-enable no-bitwise */
38
38
  }
39
-
40
39
  var index = Math.abs(hash) % _collab.colors.length;
41
40
  return {
42
41
  index: index,
@@ -2,6 +2,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaski
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { addSynchronyErrorAnalytics } from '../../analytics';
4
4
  import { initialize } from '../../events/initialize';
5
+ export { TableSortStep, AddColumnStep } from '@atlaskit/custom-steps';
6
+ export { InsertTypeAheadStep, SetAttrsStep, AnalyticsStep, LinkMetaStep, OverrideDocumentStep } from '@atlaskit/adf-schema/steps';
5
7
  import { pluginKey } from './plugin-key';
6
8
  import { PluginState } from './plugin-state';
7
9
  export const createPlugin = (dispatch, providerFactory, providerResolver, collabProviderCallback, options, featureFlags, pluginInjectionApi) => {
@@ -7,7 +7,7 @@ export { colors };
7
7
  export const findPointers = (id, decorations) => decorations.find().reduce((arr, deco) => deco.spec.pointer.sessionId === id ? arr.concat(deco) : arr, []);
8
8
  function style(options) {
9
9
  const color = options && options.color || 'black';
10
- return `border-left: 1px solid ${color}; border-right: 1px solid ${color}; margin-right: -2px;`;
10
+ return `border-right: 2px solid ${color}; margin-right: -2px;`;
11
11
  }
12
12
  export function getAvatarColor(str) {
13
13
  let hash = 0;
@@ -17,7 +17,6 @@ export function getAvatarColor(str) {
17
17
  hash = hash & hash;
18
18
  /* eslint-enable no-bitwise */
19
19
  }
20
-
21
20
  const index = Math.abs(hash) % colors.length;
22
21
  return {
23
22
  index,
@@ -2,6 +2,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaski
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import { addSynchronyErrorAnalytics } from '../../analytics';
4
4
  import { initialize } from '../../events/initialize';
5
+ export { TableSortStep, AddColumnStep } from '@atlaskit/custom-steps';
6
+ export { InsertTypeAheadStep, SetAttrsStep, AnalyticsStep, LinkMetaStep, OverrideDocumentStep } from '@atlaskit/adf-schema/steps';
5
7
  import { pluginKey } from './plugin-key';
6
8
  import { PluginState } from './plugin-state';
7
9
  export var createPlugin = function createPlugin(dispatch, providerFactory, providerResolver, collabProviderCallback, options, featureFlags, pluginInjectionApi) {
package/dist/esm/utils.js CHANGED
@@ -12,7 +12,7 @@ export var findPointers = function findPointers(id, decorations) {
12
12
  };
13
13
  function style(options) {
14
14
  var color = options && options.color || 'black';
15
- return "border-left: 1px solid ".concat(color, "; border-right: 1px solid ").concat(color, "; margin-right: -2px;");
15
+ return "border-right: 2px solid ".concat(color, "; margin-right: -2px;");
16
16
  }
17
17
  export function getAvatarColor(str) {
18
18
  var hash = 0;
@@ -22,7 +22,6 @@ export function getAvatarColor(str) {
22
22
  hash = hash & hash;
23
23
  /* eslint-enable no-bitwise */
24
24
  }
25
-
26
25
  var index = Math.abs(hash) % colors.length;
27
26
  return {
28
27
  index: index,
@@ -5,5 +5,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
6
6
  import type { PrivateCollabEditOptions, ProviderCallback } from '../../types';
7
7
  import type { CollabEditPlugin } from '../../types';
8
+ export { TableSortStep, AddColumnStep } from '@atlaskit/custom-steps';
9
+ export { InsertTypeAheadStep, SetAttrsStep, AnalyticsStep, LinkMetaStep, OverrideDocumentStep, } from '@atlaskit/adf-schema/steps';
8
10
  import { PluginState } from './plugin-state';
9
11
  export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, providerResolver: (value: CollabEditProvider) => void, collabProviderCallback: ProviderCallback, options: PrivateCollabEditOptions, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<CollabEditPlugin> | undefined) => SafePlugin<PluginState>;
@@ -5,5 +5,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
6
6
  import type { PrivateCollabEditOptions, ProviderCallback } from '../../types';
7
7
  import type { CollabEditPlugin } from '../../types';
8
+ export { TableSortStep, AddColumnStep } from '@atlaskit/custom-steps';
9
+ export { InsertTypeAheadStep, SetAttrsStep, AnalyticsStep, LinkMetaStep, OverrideDocumentStep, } from '@atlaskit/adf-schema/steps';
8
10
  import { PluginState } from './plugin-state';
9
11
  export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, providerResolver: (value: CollabEditProvider) => void, collabProviderCallback: ProviderCallback, options: PrivateCollabEditOptions, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<CollabEditPlugin> | undefined) => SafePlugin<PluginState>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-collab-edit",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Collab Edit plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,8 +32,10 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/editor-common": "^78.11.0",
36
- "@atlaskit/editor-plugin-analytics": "1.0.3",
35
+ "@atlaskit/adf-schema": "^35.6.0",
36
+ "@atlaskit/custom-steps": "^0.0.15",
37
+ "@atlaskit/editor-common": "^78.14.0",
38
+ "@atlaskit/editor-plugin-analytics": "1.0.4",
37
39
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
38
40
  "@atlaskit/editor-prosemirror": "3.0.0",
39
41
  "@atlaskit/platform-feature-flags": "^0.2.5",
@@ -47,7 +49,6 @@
47
49
  "devDependencies": {
48
50
  "@af/integration-testing": "*",
49
51
  "@af/visual-regression": "*",
50
- "@atlaskit/adf-schema": "^35.5.2",
51
52
  "@atlaskit/editor-plugin-mentions": "^1.0.0",
52
53
  "@atlaskit/editor-plugin-text-formatting": "^1.2.0",
53
54
  "@atlaskit/editor-plugin-type-ahead": "^1.0.0",
@@ -87,11 +88,9 @@
87
88
  "ui-components": [
88
89
  "lite-mode"
89
90
  ],
90
- "deprecation": [
91
- "no-deprecated-imports"
92
- ],
91
+ "deprecation": "no-deprecated-imports",
93
92
  "styling": [
94
- "static",
93
+ "emotion",
95
94
  "emotion"
96
95
  ],
97
96
  "imports": [
@@ -105,4 +104,4 @@
105
104
  "type": "boolean"
106
105
  }
107
106
  }
108
- }
107
+ }