@atlaskit/editor-plugin-table 17.3.22 → 17.3.24
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 +12 -0
- package/dist/cjs/pm-plugins/table-anchor-names/plugin.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -3
- package/dist/es2019/pm-plugins/table-anchor-names/plugin.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/esm/pm-plugins/table-anchor-names/plugin.js +1 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -3
- package/dist/types/tablePluginType.d.ts +2 -2
- package/dist/types-ts4.5/tablePluginType.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -58,7 +58,7 @@ var createTableAnchorDecorations = function createTableAnchorDecorations(state)
|
|
|
58
58
|
var shouldAddAnchorNameInDecoration = !(0, _styles.isCSSAttrAnchorSupported)() && (0, _styles.isCSSAnchorSupported)() && (0, _platformFeatureFlags.fg)('platform_editor_table_sticky_header_patch_8');
|
|
59
59
|
var attributes = {
|
|
60
60
|
'data-node-anchor': anchorName,
|
|
61
|
-
|
|
61
|
+
style: "anchor-name: ".concat(anchorName, ";")
|
|
62
62
|
};
|
|
63
63
|
decs.push(_view.Decoration.node(pos, pos + node.nodeSize, shouldAddAnchorNameInDecoration ? attributes : {
|
|
64
64
|
'data-node-anchor': anchorName
|
|
@@ -91,9 +91,8 @@ var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
|
91
91
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
92
92
|
top: thisRowSticky ? "3px" : undefined,
|
|
93
93
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
94
|
-
paddingTop: thisRowSticky
|
|
95
|
-
|
|
96
|
-
? "".concat(_consts.tableControlsSpacing - 2, "px") : undefined
|
|
94
|
+
paddingTop: thisRowSticky ? // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
95
|
+
"".concat(_consts.tableControlsSpacing - 2, "px") : undefined
|
|
97
96
|
}
|
|
98
97
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
99
98
|
"aria-label": formatMessage(_messages.tableMessages.rowControl),
|
|
@@ -43,7 +43,7 @@ const createTableAnchorDecorations = state => {
|
|
|
43
43
|
const shouldAddAnchorNameInDecoration = !isCSSAttrAnchorSupported() && isCSSAnchorSupported() && fg('platform_editor_table_sticky_header_patch_8');
|
|
44
44
|
const attributes = {
|
|
45
45
|
'data-node-anchor': anchorName,
|
|
46
|
-
|
|
46
|
+
style: `anchor-name: ${anchorName};`
|
|
47
47
|
};
|
|
48
48
|
decs.push(Decoration.node(pos, pos + node.nodeSize, shouldAddAnchorNameInDecoration ? attributes : {
|
|
49
49
|
'data-node-anchor': anchorName
|
|
@@ -72,9 +72,9 @@ class RowControlsComponent extends Component {
|
|
|
72
72
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
73
73
|
top: thisRowSticky ? `3px` : undefined,
|
|
74
74
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
75
|
-
paddingTop: thisRowSticky
|
|
75
|
+
paddingTop: thisRowSticky ?
|
|
76
76
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
77
|
-
|
|
77
|
+
`${tableControlsSpacing - 2}px` : undefined
|
|
78
78
|
}
|
|
79
79
|
}, /*#__PURE__*/React.createElement("button", {
|
|
80
80
|
"aria-label": formatMessage(messages.rowControl),
|
|
@@ -51,7 +51,7 @@ var createTableAnchorDecorations = function createTableAnchorDecorations(state)
|
|
|
51
51
|
var shouldAddAnchorNameInDecoration = !isCSSAttrAnchorSupported() && isCSSAnchorSupported() && fg('platform_editor_table_sticky_header_patch_8');
|
|
52
52
|
var attributes = {
|
|
53
53
|
'data-node-anchor': anchorName,
|
|
54
|
-
|
|
54
|
+
style: "anchor-name: ".concat(anchorName, ";")
|
|
55
55
|
};
|
|
56
56
|
decs.push(Decoration.node(pos, pos + node.nodeSize, shouldAddAnchorNameInDecoration ? attributes : {
|
|
57
57
|
'data-node-anchor': anchorName
|
|
@@ -82,9 +82,8 @@ var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
83
83
|
top: thisRowSticky ? "3px" : undefined,
|
|
84
84
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
85
|
-
paddingTop: thisRowSticky
|
|
86
|
-
|
|
87
|
-
? "".concat(tableControlsSpacing - 2, "px") : undefined
|
|
85
|
+
paddingTop: thisRowSticky ? // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
86
|
+
"".concat(tableControlsSpacing - 2, "px") : undefined
|
|
88
87
|
}
|
|
89
88
|
}, /*#__PURE__*/React.createElement("button", {
|
|
90
89
|
"aria-label": formatMessage(messages.rowControl),
|
|
@@ -27,7 +27,7 @@ export interface TablePluginOptions {
|
|
|
27
27
|
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
28
28
|
* Deprecating this prop to enable drag and drop in tables by default.
|
|
29
29
|
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
30
|
-
|
|
30
|
+
**/
|
|
31
31
|
dragAndDropEnabled?: boolean;
|
|
32
32
|
fullWidthEnabled?: boolean;
|
|
33
33
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
@@ -37,7 +37,7 @@ export interface TablePluginOptions {
|
|
|
37
37
|
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
38
38
|
* Deprecating this prop to enable table scaling by default
|
|
39
39
|
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
40
|
-
|
|
40
|
+
**/
|
|
41
41
|
isTableScalingEnabled?: boolean;
|
|
42
42
|
maxWidthEnabled?: boolean;
|
|
43
43
|
tableOptions: PluginConfig;
|
|
@@ -27,7 +27,7 @@ export interface TablePluginOptions {
|
|
|
27
27
|
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
28
28
|
* Deprecating this prop to enable drag and drop in tables by default.
|
|
29
29
|
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
30
|
-
|
|
30
|
+
**/
|
|
31
31
|
dragAndDropEnabled?: boolean;
|
|
32
32
|
fullWidthEnabled?: boolean;
|
|
33
33
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
@@ -37,7 +37,7 @@ export interface TablePluginOptions {
|
|
|
37
37
|
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
|
|
38
38
|
* Deprecating this prop to enable table scaling by default
|
|
39
39
|
* See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
|
|
40
|
-
|
|
40
|
+
**/
|
|
41
41
|
isTableScalingEnabled?: boolean;
|
|
42
42
|
maxWidthEnabled?: boolean;
|
|
43
43
|
tableOptions: PluginConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "17.3.
|
|
3
|
+
"version": "17.3.24",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^7.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^7.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "10.1.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "10.1.6",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^7.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^14.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^4.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
58
|
"@atlaskit/primitives": "^18.0.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^29.1.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.2.0",
|
|
62
62
|
"@atlaskit/tokens": "^11.0.0",
|
|
63
63
|
"@atlaskit/tooltip": "^20.14.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uuid": "^3.1.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atlaskit/editor-common": "^111.
|
|
73
|
+
"@atlaskit/editor-common": "^111.17.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
76
|
"react-intl-next": "npm:react-intl@^5.18.1"
|