@atlaskit/editor-plugin-table 11.1.4 → 12.0.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 +51 -0
- package/afm-townsquare/tsconfig.json +108 -0
- package/dist/cjs/ui/toolbar.js +1 -1
- package/dist/es2019/ui/toolbar.js +1 -1
- package/dist/esm/ui/toolbar.js +1 -1
- package/package.json +4 -10
- package/src/ui/toolbar.tsx +1 -3
- package/commands/package.json +0 -17
- package/plugin-key/package.json +0 -17
- package/ui/consts/package.json +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#188604](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188604)
|
|
8
|
+
[`2447351dcf766`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2447351dcf766) - ##
|
|
9
|
+
What? Remove entry-points to table plugin:
|
|
10
|
+
|
|
11
|
+
- `@atlaskit/editor-plugin-table/commands`
|
|
12
|
+
- `@atlaskit/editor-plugin-table/plugin-key`
|
|
13
|
+
- `@atlaskit/editor-plugin-table/ui/consts`
|
|
14
|
+
- `@atlaskit/editor-plugins/table/ui/consts`
|
|
15
|
+
- `@atlaskit/editor-plugins/table/plugin-key`
|
|
16
|
+
- `@atlaskit/editor-plugins/table/commands`
|
|
17
|
+
|
|
18
|
+
## Why?
|
|
19
|
+
|
|
20
|
+
These entry-points allow for dangerous practices by directly manipulating internal prosemirror
|
|
21
|
+
state.
|
|
22
|
+
|
|
23
|
+
This change should not affect most consumers as these should not be used.
|
|
24
|
+
|
|
25
|
+
## How to update
|
|
26
|
+
|
|
27
|
+
Table state can be read and changed via the public plugin interface which is safe and well tested.
|
|
28
|
+
|
|
29
|
+
Example:
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
// Table actions
|
|
33
|
+
editorApi?.table.actions.insertTable(...);
|
|
34
|
+
|
|
35
|
+
// Read the table state
|
|
36
|
+
const tableState = useSharedPluginStateWithSelector(editorApi, ['table'], ({ tableState }) => {
|
|
37
|
+
return { ... };
|
|
38
|
+
})
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
|
|
45
|
+
## 11.1.5
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [#185723](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185723)
|
|
50
|
+
[`751aeb4580469`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/751aeb4580469) -
|
|
51
|
+
ED-28315 clean up fg platform_editor_controls_patch_13
|
|
52
|
+
- Updated dependencies
|
|
53
|
+
|
|
3
54
|
## 11.1.4
|
|
4
55
|
|
|
5
56
|
### Patch Changes
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.townsquare.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../townsquare/tsDist/@atlaskit__editor-plugin-table/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../design-system/button/afm-townsquare/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../custom-steps/afm-townsquare/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../editor-palette/afm-townsquare/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../editor-plugin-accessibility-utils/afm-townsquare/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../editor-plugin-analytics/afm-townsquare/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../editor-plugin-batch-attribute-updates/afm-townsquare/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../editor-plugin-content-insertion/afm-townsquare/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../editor-plugin-editor-viewmode/afm-townsquare/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../editor-plugin-extension/afm-townsquare/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../editor-plugin-guideline/afm-townsquare/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../editor-plugin-interaction/afm-townsquare/tsconfig.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "../../editor-plugin-selection/afm-townsquare/tsconfig.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "../../editor-plugin-width/afm-townsquare/tsconfig.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "../../editor-shared-styles/afm-townsquare/tsconfig.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../editor-tables/afm-townsquare/tsconfig.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "../../../design-system/icon/afm-townsquare/tsconfig.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "../../../design-system/menu/afm-townsquare/tsconfig.json"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "../../../platform/feature-flags/afm-townsquare/tsconfig.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "../../../pragmatic-drag-and-drop/core/afm-townsquare/tsconfig.json"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "../../../pragmatic-drag-and-drop/auto-scroll/afm-townsquare/tsconfig.json"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "../../../pragmatic-drag-and-drop/hitbox/afm-townsquare/tsconfig.json"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "../../../design-system/primitives/afm-townsquare/tsconfig.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "../../../react-ufo/atlaskit/afm-townsquare/tsconfig.json"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "../../../design-system/theme/afm-townsquare/tsconfig.json"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "../../tmp-editor-statsig/afm-townsquare/tsconfig.json"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "../../../design-system/toggle/afm-townsquare/tsconfig.json"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"path": "../../../design-system/tokens/afm-townsquare/tsconfig.json"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "../../../design-system/tooltip/afm-townsquare/tsconfig.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"path": "../../editor-common/afm-townsquare/tsconfig.json"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -545,7 +545,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
-
}].concat((0, _toConsumableArray2.default)(extensionApi && extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider
|
|
548
|
+
}].concat((0, _toConsumableArray2.default)(extensionApi && extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider ? [{
|
|
549
549
|
type: 'separator'
|
|
550
550
|
}] : []), [_objectSpread({
|
|
551
551
|
title: intl.formatMessage(_messages.default.copyToClipboard),
|
|
@@ -515,7 +515,7 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
|
|
|
515
515
|
}
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
}, ...(extensionApi && extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider
|
|
518
|
+
}, ...(extensionApi && extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider ? [{
|
|
519
519
|
type: 'separator'
|
|
520
520
|
}] : []), {
|
|
521
521
|
title: intl.formatMessage(commonMessages.copyToClipboard),
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -538,7 +538,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
|
|
|
538
538
|
}
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
|
-
}].concat(_toConsumableArray(extensionApi && extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider
|
|
541
|
+
}].concat(_toConsumableArray(extensionApi && extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider ? [{
|
|
542
542
|
type: 'separator'
|
|
543
543
|
}] : []), [_objectSpread({
|
|
544
544
|
title: intl.formatMessage(commonMessages.copyToClipboard),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
46
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
47
47
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
48
|
-
"@atlaskit/icon": "^27.
|
|
48
|
+
"@atlaskit/icon": "^27.5.0",
|
|
49
49
|
"@atlaskit/menu": "^8.0.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/theme": "^19.0.0",
|
|
57
57
|
"@atlaskit/tmp-editor-statsig": "^9.8.0",
|
|
58
58
|
"@atlaskit/toggle": "^15.0.0",
|
|
59
|
-
"@atlaskit/tokens": "^5.
|
|
59
|
+
"@atlaskit/tokens": "^5.6.0",
|
|
60
60
|
"@atlaskit/tooltip": "^20.3.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
@@ -78,10 +78,7 @@
|
|
|
78
78
|
"af:exports": {
|
|
79
79
|
"./types": "./src/types/index.ts",
|
|
80
80
|
".": "./src/index.ts",
|
|
81
|
-
"./ui/common-styles": "./src/ui/common-styles.ts"
|
|
82
|
-
"./ui/consts": "./src/ui/consts.ts",
|
|
83
|
-
"./plugin-key": "./src/pm-plugins/plugin-key.ts",
|
|
84
|
-
"./commands": "./src/pm-plugins/commands/index.ts"
|
|
81
|
+
"./ui/common-styles": "./src/ui/common-styles.ts"
|
|
85
82
|
},
|
|
86
83
|
"techstack": {
|
|
87
84
|
"@atlassian/frontend": {
|
|
@@ -151,9 +148,6 @@
|
|
|
151
148
|
"platform_editor_nested_tables_sticky_header_bug": {
|
|
152
149
|
"type": "boolean"
|
|
153
150
|
},
|
|
154
|
-
"platform_editor_controls_patch_13": {
|
|
155
|
-
"type": "boolean"
|
|
156
|
-
},
|
|
157
151
|
"platform_editor_sort_decoration_fix_on_live_page": {
|
|
158
152
|
"type": "boolean"
|
|
159
153
|
},
|
package/src/ui/toolbar.tsx
CHANGED
|
@@ -741,9 +741,7 @@ export const getToolbarConfig =
|
|
|
741
741
|
);
|
|
742
742
|
},
|
|
743
743
|
},
|
|
744
|
-
...(extensionApi &&
|
|
745
|
-
extensionState?.extensionProvider &&
|
|
746
|
-
fg('platform_editor_controls_patch_13')
|
|
744
|
+
...(extensionApi && extensionState?.extensionProvider
|
|
747
745
|
? [{ type: 'separator' }]
|
|
748
746
|
: []),
|
|
749
747
|
{
|
package/commands/package.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/editor-plugin-table/commands",
|
|
3
|
-
"main": "../dist/cjs/pm-plugins/commands/index.js",
|
|
4
|
-
"module": "../dist/esm/pm-plugins/commands/index.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/pm-plugins/commands/index.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../dist/types/pm-plugins/commands/index.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.4": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/pm-plugins/commands/index.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
package/plugin-key/package.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/editor-plugin-table/plugin-key",
|
|
3
|
-
"main": "../dist/cjs/pm-plugins/plugin-key.js",
|
|
4
|
-
"module": "../dist/esm/pm-plugins/plugin-key.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/pm-plugins/plugin-key.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../dist/types/pm-plugins/plugin-key.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.4": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/pm-plugins/plugin-key.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
package/ui/consts/package.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@atlaskit/editor-plugin-table/ui/consts",
|
|
3
|
-
"main": "../../dist/cjs/ui/consts.js",
|
|
4
|
-
"module": "../../dist/esm/ui/consts.js",
|
|
5
|
-
"module:es2019": "../../dist/es2019/ui/consts.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.compiled.css"
|
|
8
|
-
],
|
|
9
|
-
"types": "../../dist/types/ui/consts.d.ts",
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.4": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../../dist/types-ts4.5/ui/consts.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|