@atlaskit/editor-plugin-expand 4.2.3 → 4.2.5

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,17 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 4.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.2.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 4.2.3
4
16
 
5
17
  ### Patch Changes
@@ -11,6 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
13
13
  var _utils = require("@atlaskit/editor-common/utils");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _commands = require("./commands");
15
16
  var _keymap = require("./pm-plugins/keymap");
16
17
  var _main = require("./pm-plugins/main");
@@ -27,10 +28,10 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
27
28
  nodes: function nodes() {
28
29
  return [{
29
30
  name: 'expand',
30
- node: _adfSchema.expandWithNestedExpand
31
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.expandWithNestedExpandLocalId : _adfSchema.expandWithNestedExpand
31
32
  }, {
32
33
  name: 'nestedExpand',
33
- node: _adfSchema.nestedExpand
34
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.nestedExpandWithLocalId : _adfSchema.nestedExpand
34
35
  }];
35
36
  },
36
37
  actions: {
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { expandWithNestedExpand, nestedExpand } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, expandWithNestedExpandLocalId, nestedExpand, nestedExpandWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpandWithMatch } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -21,10 +22,10 @@ export let expandPlugin = ({
21
22
  nodes() {
22
23
  return [{
23
24
  name: 'expand',
24
- node: expandWithNestedExpand
25
+ node: fg('platform_editor_adf_with_localid') ? expandWithNestedExpandLocalId : expandWithNestedExpand
25
26
  }, {
26
27
  name: 'nestedExpand',
27
- node: nestedExpand
28
+ node: fg('platform_editor_adf_with_localid') ? nestedExpandWithLocalId : nestedExpand
28
29
  }];
29
30
  },
30
31
  actions: {
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { expandWithNestedExpand, nestedExpand } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, expandWithNestedExpandLocalId, nestedExpand, nestedExpandWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpandWithMatch as _toggleExpandWithMatch } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -21,10 +22,10 @@ export var expandPlugin = function expandPlugin(_ref) {
21
22
  nodes: function nodes() {
22
23
  return [{
23
24
  name: 'expand',
24
- node: expandWithNestedExpand
25
+ node: fg('platform_editor_adf_with_localid') ? expandWithNestedExpandLocalId : expandWithNestedExpand
25
26
  }, {
26
27
  name: 'nestedExpand',
27
- node: nestedExpand
28
+ node: fg('platform_editor_adf_with_localid') ? nestedExpandWithLocalId : nestedExpand
28
29
  }];
29
30
  },
30
31
  actions: {
@@ -1,3 +1,3 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
2
  export declare const pluginKey: PluginKey<any>;
3
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").ExpandPluginState | ((state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState)) => import("prosemirror-state").SafeStateField<import("../..").ExpandPluginState>, createCommand: <A = import("../../types").ExpandPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState;
3
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").ExpandPluginState | ((state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState)) => import("prosemirror-state").SafeStateField<import("../..").ExpandPluginState>, createCommand: <A = import("../../types").ExpandPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState;
@@ -1,3 +1,3 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
2
  export declare const pluginKey: PluginKey<any>;
3
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").ExpandPluginState | ((state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState)) => import("prosemirror-state").SafeStateField<import("../..").ExpandPluginState>, createCommand: <A = import("../../types").ExpandPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState;
3
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").ExpandPluginState | ((state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState)) => import("prosemirror-state").SafeStateField<import("../..").ExpandPluginState>, createCommand: <A = import("../../types").ExpandPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").ExpandPluginState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "4.2.3",
3
+ "version": "4.2.5",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^50.2.0",
36
- "@atlaskit/button": "^23.3.0",
36
+ "@atlaskit/button": "^23.4.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^3.0.0",
39
39
  "@atlaskit/editor-plugin-editor-disabled": "^3.0.0",
@@ -41,11 +41,11 @@
41
41
  "@atlaskit/editor-plugin-selection": "^3.0.0",
42
42
  "@atlaskit/editor-plugin-selection-marker": "^3.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
- "@atlaskit/editor-shared-styles": "^3.5.0",
44
+ "@atlaskit/editor-shared-styles": "^3.6.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
- "@atlaskit/icon": "^27.9.0",
46
+ "@atlaskit/icon": "^27.12.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^9.22.0",
48
+ "@atlaskit/tmp-editor-statsig": "^11.0.0",
49
49
  "@atlaskit/tokens": "^6.0.0",
50
50
  "@atlaskit/tooltip": "^20.4.0",
51
51
  "@babel/runtime": "^7.0.0",
@@ -54,7 +54,7 @@
54
54
  "w3c-keyname": "^2.1.8"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^107.16.0",
57
+ "@atlaskit/editor-common": "^107.25.0",
58
58
  "react": "^18.2.0",
59
59
  "react-dom": "^18.2.0",
60
60
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -64,12 +64,11 @@
64
64
  "@atlaskit/editor-plugin-content-insertion": "^3.1.0",
65
65
  "@atlaskit/editor-plugin-guideline": "^3.0.0",
66
66
  "@atlaskit/editor-plugin-quick-insert": "^3.0.0",
67
- "@atlaskit/editor-plugin-table": "^12.1.0",
67
+ "@atlaskit/editor-plugin-table": "^12.2.0",
68
68
  "@atlaskit/editor-plugin-type-ahead": "^3.1.0",
69
69
  "@atlaskit/editor-plugin-width": "^4.0.0",
70
70
  "@testing-library/react": "^13.4.0",
71
- "react-test-renderer": "^18.2.0",
72
- "typescript": "~5.4.2"
71
+ "react-test-renderer": "^18.2.0"
73
72
  },
74
73
  "techstack": {
75
74
  "@atlassian/frontend": {
@@ -113,6 +112,9 @@
113
112
  },
114
113
  "platform_editor_breakout_resizing_hello_release": {
115
114
  "type": "boolean"
115
+ },
116
+ "platform_editor_adf_with_localid": {
117
+ "type": "boolean"
116
118
  }
117
119
  }
118
120
  }