@atlaskit/editor-plugin-table 11.1.5 → 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 CHANGED
@@ -1,5 +1,47 @@
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
+
3
45
  ## 11.1.5
4
46
 
5
47
  ### 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "11.1.5",
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.3.0",
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.5.0",
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": {
@@ -741,8 +741,7 @@ export const getToolbarConfig =
741
741
  );
742
742
  },
743
743
  },
744
- ...(extensionApi &&
745
- extensionState?.extensionProvider
744
+ ...(extensionApi && extensionState?.extensionProvider
746
745
  ? [{ type: 'separator' }]
747
746
  : []),
748
747
  {
@@ -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
- }
@@ -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
- }
@@ -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
- }