@atlaskit/editor-plugin-base 1.5.0 → 1.6.0

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-base
2
2
 
3
+ ## 1.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
8
+ [`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
9
+ Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.5.0
4
16
 
5
17
  ### Minor Changes
@@ -11,7 +11,6 @@ var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _commands = require("@atlaskit/editor-prosemirror/commands");
13
13
  var _history = require("@atlaskit/editor-prosemirror/history");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _commands2 = require("./commands");
16
15
  var _disableSpellChecking = _interopRequireDefault(require("./pm-plugins/disable-spell-checking"));
17
16
  var _filterSteps = _interopRequireDefault(require("./pm-plugins/filter-steps"));
@@ -111,13 +110,12 @@ var basePlugin = function basePlugin(_ref) {
111
110
  return plugins;
112
111
  },
113
112
  nodes: function nodes() {
114
- var paragraphNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? _adfSchema.paragraphStage0 : _adfSchema.paragraph;
115
113
  return [{
116
114
  name: 'doc',
117
115
  node: _adfSchema.doc
118
116
  }, {
119
117
  name: 'paragraph',
120
- node: paragraphNode
118
+ node: _adfSchema.paragraph
121
119
  }, {
122
120
  name: 'text',
123
121
  node: _adfSchema.text
@@ -1,8 +1,7 @@
1
- import { doc, paragraph, paragraphStage0, text } from '@atlaskit/adf-schema';
1
+ import { doc, paragraph, text } from '@atlaskit/adf-schema';
2
2
  import { keymap } from '@atlaskit/editor-common/keymaps';
3
3
  import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
4
4
  import { history } from '@atlaskit/editor-prosemirror/history';
5
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
5
  import { setKeyboardHeight } from './commands';
7
6
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
8
7
  import filterStepsPlugin from './pm-plugins/filter-steps';
@@ -86,13 +85,12 @@ const basePlugin = ({
86
85
  return plugins;
87
86
  },
88
87
  nodes() {
89
- const paragraphNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? paragraphStage0 : paragraph;
90
88
  return [{
91
89
  name: 'doc',
92
90
  node: doc
93
91
  }, {
94
92
  name: 'paragraph',
95
- node: paragraphNode
93
+ node: paragraph
96
94
  }, {
97
95
  name: 'text',
98
96
  node: text
@@ -1,11 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { doc, paragraph, paragraphStage0, text } from '@atlaskit/adf-schema';
4
+ import { doc, paragraph, text } from '@atlaskit/adf-schema';
5
5
  import { keymap } from '@atlaskit/editor-common/keymaps';
6
6
  import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
7
7
  import { history } from '@atlaskit/editor-prosemirror/history';
8
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
8
  import { setKeyboardHeight } from './commands';
10
9
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
11
10
  import filterStepsPlugin from './pm-plugins/filter-steps';
@@ -101,13 +100,12 @@ var basePlugin = function basePlugin(_ref) {
101
100
  return plugins;
102
101
  },
103
102
  nodes: function nodes() {
104
- var paragraphNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? paragraphStage0 : paragraph;
105
103
  return [{
106
104
  name: 'doc',
107
105
  node: doc
108
106
  }, {
109
107
  name: 'paragraph',
110
- node: paragraphNode
108
+ node: paragraph
111
109
  }, {
112
110
  name: 'text',
113
111
  node: text
package/package.json CHANGED
@@ -1,83 +1,77 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-base",
3
- "version": "1.5.0",
4
- "description": "Base plugin for @atlaskit/editor-core",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Editor: Lego",
12
- "singleton": true,
13
- "releaseModel": "continuous",
14
- "runReact18": false
15
- },
16
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
- "main": "dist/cjs/index.js",
18
- "module": "dist/esm/index.js",
19
- "module:es2019": "dist/es2019/index.js",
20
- "types": "dist/types/index.d.ts",
21
- "typesVersions": {
22
- ">=4.5 <4.9": {
23
- "*": [
24
- "dist/types-ts4.5/*",
25
- "dist/types-ts4.5/index.d.ts"
26
- ]
27
- }
28
- },
29
- "sideEffects": false,
30
- "atlaskit:src": "src/index.ts",
31
- "af:exports": {
32
- ".": "./src/index.ts"
33
- },
34
- "dependencies": {
35
- "@atlaskit/adf-schema": "^36.10.7",
36
- "@atlaskit/editor-common": "^82.3.0",
37
- "@atlaskit/editor-plugin-context-identifier": "^1.1.0",
38
- "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
39
- "@atlaskit/editor-prosemirror": "4.0.1",
40
- "@atlaskit/platform-feature-flags": "^0.2.5",
41
- "@babel/runtime": "^7.0.0"
42
- },
43
- "techstack": {
44
- "@atlassian/frontend": {
45
- "import-structure": [
46
- "atlassian-conventions"
47
- ],
48
- "circular-dependencies": [
49
- "file-and-folder-level"
50
- ]
51
- },
52
- "@repo/internal": {
53
- "dom-events": "use-bind-event-listener",
54
- "analytics": [
55
- "analytics-next"
56
- ],
57
- "design-tokens": [
58
- "color"
59
- ],
60
- "theming": [
61
- "react-context"
62
- ],
63
- "ui-components": [
64
- "lite-mode"
65
- ],
66
- "deprecation": "no-deprecated-imports",
67
- "styling": [
68
- "emotion",
69
- "emotion"
70
- ]
71
- }
72
- },
73
- "platform-feature-flags": {
74
- "platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g": {
75
- "type": "boolean"
76
- }
77
- },
78
- "stricter": {
79
- "no-unused-dependencies": {
80
- "checkDevDependencies": true
81
- }
82
- }
83
- }
2
+ "name": "@atlaskit/editor-plugin-base",
3
+ "version": "1.6.0",
4
+ "description": "Base plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor: Lego",
12
+ "singleton": true,
13
+ "releaseModel": "continuous",
14
+ "runReact18": false
15
+ },
16
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "module:es2019": "dist/es2019/index.js",
20
+ "types": "dist/types/index.d.ts",
21
+ "typesVersions": {
22
+ ">=4.5 <4.9": {
23
+ "*": [
24
+ "dist/types-ts4.5/*",
25
+ "dist/types-ts4.5/index.d.ts"
26
+ ]
27
+ }
28
+ },
29
+ "sideEffects": false,
30
+ "atlaskit:src": "src/index.ts",
31
+ "af:exports": {
32
+ ".": "./src/index.ts"
33
+ },
34
+ "dependencies": {
35
+ "@atlaskit/adf-schema": "^37.0.0",
36
+ "@atlaskit/editor-common": "^82.12.0",
37
+ "@atlaskit/editor-plugin-context-identifier": "^1.1.0",
38
+ "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
39
+ "@atlaskit/editor-prosemirror": "4.0.1",
40
+ "@babel/runtime": "^7.0.0"
41
+ },
42
+ "techstack": {
43
+ "@atlassian/frontend": {
44
+ "import-structure": [
45
+ "atlassian-conventions"
46
+ ],
47
+ "circular-dependencies": [
48
+ "file-and-folder-level"
49
+ ]
50
+ },
51
+ "@repo/internal": {
52
+ "dom-events": "use-bind-event-listener",
53
+ "analytics": [
54
+ "analytics-next"
55
+ ],
56
+ "design-tokens": [
57
+ "color"
58
+ ],
59
+ "theming": [
60
+ "react-context"
61
+ ],
62
+ "ui-components": [
63
+ "lite-mode"
64
+ ],
65
+ "deprecation": "no-deprecated-imports",
66
+ "styling": [
67
+ "emotion",
68
+ "emotion"
69
+ ]
70
+ }
71
+ },
72
+ "stricter": {
73
+ "no-unused-dependencies": {
74
+ "checkDevDependencies": true
75
+ }
76
+ }
77
+ }
package/tsconfig.app.json CHANGED
@@ -40,9 +40,6 @@
40
40
  },
41
41
  {
42
42
  "path": "../editor-plugin-feature-flags/tsconfig.app.json"
43
- },
44
- {
45
- "path": "../../platform/feature-flags/tsconfig.app.json"
46
43
  }
47
44
  ]
48
45
  }