@atlaskit/editor-plugin-rule 3.0.3 → 3.0.4
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 +8 -0
- package/dist/cjs/rulePlugin.js +2 -1
- package/dist/es2019/rulePlugin.js +3 -2
- package/dist/esm/rulePlugin.js +3 -2
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-rule
|
|
2
2
|
|
|
3
|
+
## 3.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`57b19274b9fdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57b19274b9fdd) -
|
|
8
|
+
EDITOR-1373 Bump adf-schema version
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 3.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/rulePlugin.js
CHANGED
|
@@ -10,6 +10,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
10
10
|
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
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var _commands = require("./pm-plugins/commands");
|
|
14
15
|
var _inputRule = _interopRequireDefault(require("./pm-plugins/input-rule"));
|
|
15
16
|
var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
|
|
@@ -27,7 +28,7 @@ var rulePlugin = exports.rulePlugin = function rulePlugin(_ref) {
|
|
|
27
28
|
nodes: function nodes() {
|
|
28
29
|
return [{
|
|
29
30
|
name: 'rule',
|
|
30
|
-
node: _adfSchema.rule
|
|
31
|
+
node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.ruleWithLocalId : _adfSchema.rule
|
|
31
32
|
}];
|
|
32
33
|
},
|
|
33
34
|
actions: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { rule } from '@atlaskit/adf-schema';
|
|
2
|
+
import { rule, ruleWithLocalId } 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 { IconDivider } from '@atlaskit/editor-common/quick-insert';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { insertHorizontalRule } from './pm-plugins/commands';
|
|
7
8
|
// Ignored via go/ees005
|
|
8
9
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -19,7 +20,7 @@ export const rulePlugin = ({
|
|
|
19
20
|
nodes() {
|
|
20
21
|
return [{
|
|
21
22
|
name: 'rule',
|
|
22
|
-
node: rule
|
|
23
|
+
node: fg('platform_editor_adf_with_localid') ? ruleWithLocalId : rule
|
|
23
24
|
}];
|
|
24
25
|
},
|
|
25
26
|
actions: {
|
package/dist/esm/rulePlugin.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { rule } from '@atlaskit/adf-schema';
|
|
2
|
+
import { rule, ruleWithLocalId } 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 { IconDivider } from '@atlaskit/editor-common/quick-insert';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { insertHorizontalRule } from './pm-plugins/commands';
|
|
7
8
|
// Ignored via go/ees005
|
|
8
9
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -18,7 +19,7 @@ export var rulePlugin = function rulePlugin(_ref) {
|
|
|
18
19
|
nodes: function nodes() {
|
|
19
20
|
return [{
|
|
20
21
|
name: 'rule',
|
|
21
|
-
node: rule
|
|
22
|
+
node: fg('platform_editor_adf_with_localid') ? ruleWithLocalId : rule
|
|
22
23
|
}];
|
|
23
24
|
},
|
|
24
25
|
actions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-rule",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Rule plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
".": "./src/index.ts"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
33
|
+
"@atlaskit/adf-schema": "^50.2.1",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
36
|
-
"@atlaskit/
|
|
36
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
37
|
+
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
37
38
|
"@babel/runtime": "^7.0.0"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
|
-
"@atlaskit/editor-common": "^107.
|
|
41
|
+
"@atlaskit/editor-common": "^107.26.0",
|
|
41
42
|
"react": "^18.2.0",
|
|
42
43
|
"react-dom": "^18.2.0"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@testing-library/react": "^13.4.0"
|
|
46
|
-
"typescript": "~5.4.2"
|
|
46
|
+
"@testing-library/react": "^13.4.0"
|
|
47
47
|
},
|
|
48
48
|
"techstack": {
|
|
49
49
|
"@atlassian/frontend": {
|
|
@@ -79,5 +79,10 @@
|
|
|
79
79
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
+
},
|
|
83
|
+
"platform-feature-flags": {
|
|
84
|
+
"platform_editor_adf_with_localid": {
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
}
|