@atlaskit/editor-plugin-grid 10.1.15 → 10.2.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.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/entry-points/gridPlugin.js +12 -0
- package/dist/cjs/entry-points/gridPluginType.js +1 -0
- package/dist/cjs/entry-points/types.js +1 -0
- package/dist/cjs/gridPlugin.js +1 -11
- package/dist/es2019/entry-points/gridPlugin.js +2 -0
- package/dist/es2019/entry-points/gridPluginType.js +0 -0
- package/dist/es2019/entry-points/types.js +0 -0
- package/dist/es2019/gridPlugin.js +1 -11
- package/dist/esm/entry-points/gridPlugin.js +2 -0
- package/dist/esm/entry-points/gridPluginType.js +0 -0
- package/dist/esm/entry-points/types.js +0 -0
- package/dist/esm/gridPlugin.js +1 -11
- package/dist/types/entry-points/gridPlugin.d.ts +1 -0
- package/dist/types/entry-points/gridPluginType.d.ts +1 -0
- package/dist/types/entry-points/types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/gridPlugin.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/gridPluginType.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -0
- package/gridPlugin/package.json +17 -0
- package/gridPluginType/package.json +17 -0
- package/package.json +5 -5
- package/types/package.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-grid
|
|
2
2
|
|
|
3
|
+
## 10.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c61ad86da2b49`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c61ad86da2b49) -
|
|
8
|
+
Clean up `platform_editor_remove_grid_init_reflow` experiment.
|
|
9
|
+
- Remove `expValEquals` gate check from `ContentComponent` in `editor-plugin-grid`, keeping the
|
|
10
|
+
treatment branch (`isEnabled=true`) logic permanently
|
|
11
|
+
- Remove unused `expValEquals` import from `gridPlugin.tsx`
|
|
12
|
+
- Remove `platform_editor_remove_grid_init_reflow` type definition and config entries from
|
|
13
|
+
`tmp-editor-statsig` experiments-config
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 10.2.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [`acbb2aa5cc917`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/acbb2aa5cc917) -
|
|
22
|
+
Autofix: add explicit package exports (barrel removal)
|
|
23
|
+
|
|
3
24
|
## 10.1.15
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "gridPlugin", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _gridPlugin.gridPlugin;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _gridPlugin = require("../gridPlugin");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/cjs/gridPlugin.js
CHANGED
|
@@ -15,7 +15,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
15
15
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
16
16
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
19
|
|
|
21
20
|
var GRID_SIZE = exports.GRID_SIZE = 12;
|
|
@@ -140,18 +139,9 @@ var ContentComponent = function ContentComponent(_ref4) {
|
|
|
140
139
|
visible = _useSharedPluginState.visible,
|
|
141
140
|
gridType = _useSharedPluginState.gridType,
|
|
142
141
|
highlight = _useSharedPluginState.highlight;
|
|
143
|
-
if (visible
|
|
142
|
+
if (!visible || !highlight) {
|
|
144
143
|
return null;
|
|
145
144
|
}
|
|
146
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
|
|
147
|
-
if (!visible || !highlight) {
|
|
148
|
-
return null;
|
|
149
|
-
}
|
|
150
|
-
} else {
|
|
151
|
-
if (visible === undefined || !highlight) {
|
|
152
|
-
return null;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
145
|
return /*#__PURE__*/_react.default.createElement(ThemedGrid, {
|
|
156
146
|
shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
|
|
157
147
|
editorWidth: width !== null && width !== void 0 ? width : _editorSharedStyles.akEditorFullPageMaxWidth
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
8
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
9
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { akEditorBreakoutPadding, akEditorFullPageMaxWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
export const GRID_SIZE = 12;
|
|
13
12
|
const key = new PluginKey('gridPlugin');
|
|
14
13
|
const createDisplayGrid = view => props => {
|
|
@@ -135,18 +134,9 @@ const ContentComponent = ({
|
|
|
135
134
|
gridType,
|
|
136
135
|
highlight
|
|
137
136
|
} = useSharedPluginStateWithSelector(api, ['width', 'grid'], selector);
|
|
138
|
-
if (visible
|
|
137
|
+
if (!visible || !highlight) {
|
|
139
138
|
return null;
|
|
140
139
|
}
|
|
141
|
-
if (expValEquals('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
|
|
142
|
-
if (!visible || !highlight) {
|
|
143
|
-
return null;
|
|
144
|
-
}
|
|
145
|
-
} else {
|
|
146
|
-
if (visible === undefined || !highlight) {
|
|
147
|
-
return null;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
140
|
return /*#__PURE__*/React.createElement(ThemedGrid, {
|
|
151
141
|
shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
|
|
152
142
|
editorWidth: width !== null && width !== void 0 ? width : akEditorFullPageMaxWidth
|
|
File without changes
|
|
File without changes
|
package/dist/esm/gridPlugin.js
CHANGED
|
@@ -10,7 +10,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
10
10
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
11
11
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import { akEditorBreakoutPadding, akEditorFullPageMaxWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
13
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
export var GRID_SIZE = 12;
|
|
15
14
|
var key = new PluginKey('gridPlugin');
|
|
16
15
|
var createDisplayGrid = function createDisplayGrid(view) {
|
|
@@ -133,18 +132,9 @@ var ContentComponent = function ContentComponent(_ref4) {
|
|
|
133
132
|
visible = _useSharedPluginState.visible,
|
|
134
133
|
gridType = _useSharedPluginState.gridType,
|
|
135
134
|
highlight = _useSharedPluginState.highlight;
|
|
136
|
-
if (visible
|
|
135
|
+
if (!visible || !highlight) {
|
|
137
136
|
return null;
|
|
138
137
|
}
|
|
139
|
-
if (expValEquals('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
|
|
140
|
-
if (!visible || !highlight) {
|
|
141
|
-
return null;
|
|
142
|
-
}
|
|
143
|
-
} else {
|
|
144
|
-
if (visible === undefined || !highlight) {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
138
|
return /*#__PURE__*/React.createElement(ThemedGrid, {
|
|
149
139
|
shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
|
|
150
140
|
editorWidth: width !== null && width !== void 0 ? width : akEditorFullPageMaxWidth
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { gridPlugin } from '../gridPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GridPlugin, GridPluginDependencies, GridPluginSharedState, GridPluginActions, GridPluginConfiguration, } from '../gridPluginType';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CreateDisplayGrid, Highlights, GridPluginOptions, GridPluginState, } from '../types/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { gridPlugin } from '../gridPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GridPlugin, GridPluginDependencies, GridPluginSharedState, GridPluginActions, GridPluginConfiguration, } from '../gridPluginType';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CreateDisplayGrid, Highlights, GridPluginOptions, GridPluginState, } from '../types/index';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-grid/gridPlugin",
|
|
3
|
+
"main": "../dist/cjs/entry-points/gridPlugin.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/gridPlugin.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/gridPlugin.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/gridPlugin.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/gridPlugin.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-grid/gridPluginType",
|
|
3
|
+
"main": "../dist/cjs/entry-points/gridPluginType.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/gridPluginType.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/gridPluginType.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/gridPluginType.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/gridPluginType.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-grid",
|
|
3
|
-
"version": "10.1
|
|
3
|
+
"version": "10.2.1",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/editor-plugin-width": "^11.
|
|
24
|
+
"@atlaskit/editor-plugin-width": "^11.1.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
26
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
27
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
26
|
+
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^81.0.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"@emotion/react": "^11.7.1",
|
|
30
30
|
"classnames": "^2.2.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^114.
|
|
33
|
+
"@atlaskit/editor-common": "^114.32.0",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0"
|
|
36
36
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-grid/types",
|
|
3
|
+
"main": "../dist/cjs/entry-points/types.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/types.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/types.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|