@atlaskit/editor-core 193.28.5 → 193.28.10

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/architecture/0003-explicit-plugin-dependencies.md +1 -1
  3. package/dist/cjs/presets/default.js +5 -1
  4. package/dist/cjs/test-utils.js +1 -3
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/es2019/presets/default.js +4 -1
  7. package/dist/es2019/test-utils.js +1 -3
  8. package/dist/es2019/version-wrapper.js +1 -1
  9. package/dist/esm/presets/default.js +5 -1
  10. package/dist/esm/test-utils.js +1 -3
  11. package/dist/esm/version-wrapper.js +1 -1
  12. package/dist/types/composable-editor/editor-internal.d.ts +2 -1
  13. package/dist/types/create-editor/ReactEditorView.d.ts +2 -2
  14. package/dist/types/create-editor/create-preset.d.ts +46 -46
  15. package/dist/types/presets/context.d.ts +2 -2
  16. package/dist/types/presets/default.d.ts +18 -18
  17. package/dist/types/presets/universal.d.ts +46 -46
  18. package/dist/types/presets/useUniversalPreset.d.ts +46 -46
  19. package/dist/types/test-utils.d.ts +2 -2
  20. package/dist/types/types/editor-props.d.ts +3 -3
  21. package/dist/types/use-preset.d.ts +5 -6
  22. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
  23. package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +2 -2
  24. package/dist/types-ts4.5/create-editor/create-preset.d.ts +122 -122
  25. package/dist/types-ts4.5/presets/context.d.ts +2 -2
  26. package/dist/types-ts4.5/presets/default.d.ts +30 -30
  27. package/dist/types-ts4.5/presets/universal.d.ts +122 -122
  28. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +122 -122
  29. package/dist/types-ts4.5/test-utils.d.ts +2 -2
  30. package/dist/types-ts4.5/types/editor-props.d.ts +3 -3
  31. package/dist/types-ts4.5/use-preset.d.ts +5 -10
  32. package/package.json +8 -12
  33. package/tsconfig.json +1 -2
@@ -3,9 +3,9 @@ import type { ActivityProvider } from '@atlaskit/activity-provider';
3
3
  import type { CardOptions } from '@atlaskit/editor-common/card';
4
4
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
5
5
  import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
6
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
6
+ import type { AllEditorPresetPluginTypes, AllPluginNames, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
7
7
  import type { ContextIdentifierProvider, Providers, SearchProvider } from '@atlaskit/editor-common/provider-factory';
8
- import type { AllEditorPresetPluginTypes, FeedbackInfo, LinkingOptions, QuickInsertOptions, TextFormattingOptions, Transformer } from '@atlaskit/editor-common/types';
8
+ import type { FeedbackInfo, LinkingOptions, QuickInsertOptions, TextFormattingOptions, Transformer } from '@atlaskit/editor-common/types';
9
9
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
10
10
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
11
11
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
@@ -168,7 +168,7 @@ export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps,
168
168
  };
169
169
  }
170
170
  export interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithPlugins, EditorProviderProps {
171
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
171
+ preset: EditorPresetBuilder<AllPluginNames[], AllEditorPresetPluginTypes[]>;
172
172
  /**
173
173
  * @deprecated
174
174
  * This prop does nothing and will be removed soon.
@@ -1,11 +1,8 @@
1
1
  import type { DependencyList } from 'react';
2
- import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
3
- import type { AllEditorPresetPluginTypes, ExtractPublicEditorAPI } from '@atlaskit/editor-common/types';
4
- interface PresetAPI<PluginNames extends string[] = [
5
- ], StackPlugins extends AllEditorPresetPluginTypes[] = [
6
- ]> {
7
- editorApi: ExtractPublicEditorAPI<EditorPresetBuilder<PluginNames, StackPlugins>> | undefined;
8
- preset: EditorPresetBuilder<PluginNames, StackPlugins>;
2
+ import { type AllEditorPresetPluginTypes, EditorPresetBuilder, type ExtractPresetAPI } from '@atlaskit/editor-common/preset';
3
+ interface PresetAPI<Preset extends EditorPresetBuilder<any, any>> {
4
+ editorApi: (Preset extends EditorPresetBuilder<any, any> ? ExtractPresetAPI<Preset> : never) | undefined;
5
+ preset: Preset;
9
6
  }
10
7
  /**
11
8
  * Creates a preset.
@@ -40,7 +37,5 @@ interface PresetAPI<PluginNames extends string[] = [
40
37
  * }
41
38
  * ```
42
39
  */
43
- export declare function usePreset<PluginNames extends string[] = [
44
- ], StackPlugins extends AllEditorPresetPluginTypes[] = [
45
- ]>(createPreset: (builder: EditorPresetBuilder) => EditorPresetBuilder<PluginNames, StackPlugins>, dependencies?: DependencyList): PresetAPI<PluginNames, StackPlugins>;
40
+ export declare function usePreset<PluginNames extends string[], StackPlugins extends AllEditorPresetPluginTypes[], Preset extends EditorPresetBuilder<PluginNames, StackPlugins>>(createPreset: (builder: EditorPresetBuilder) => Preset, dependencies?: DependencyList): PresetAPI<Preset>;
46
41
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.28.5",
3
+ "version": "193.28.10",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,13 +45,13 @@
45
45
  "@atlaskit/analytics-next": "^9.3.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^18.0.0",
48
- "@atlaskit/editor-common": "^82.14.0",
48
+ "@atlaskit/editor-common": "^83.0.0",
49
49
  "@atlaskit/editor-json-transformer": "^8.14.0",
50
50
  "@atlaskit/editor-plugins": "^3.3.0",
51
51
  "@atlaskit/editor-prosemirror": "4.0.1",
52
52
  "@atlaskit/editor-shared-styles": "^2.12.0",
53
53
  "@atlaskit/emoji": "^67.6.0",
54
- "@atlaskit/icon": "^22.4.0",
54
+ "@atlaskit/icon": "^22.5.0",
55
55
  "@atlaskit/media-card": "^77.12.0",
56
56
  "@atlaskit/mention": "^23.2.0",
57
57
  "@atlaskit/platform-feature-flags": "^0.2.0",
@@ -81,13 +81,13 @@
81
81
  "react-intl-next": "npm:react-intl@^5.18.1"
82
82
  },
83
83
  "devDependencies": {
84
- "@af/editor-examples-helpers": "0.0.8",
84
+ "@af/editor-examples-helpers": "0.0.10",
85
85
  "@af/editor-libra": "*",
86
86
  "@af/visual-regression": "*",
87
87
  "@atlaskit/adf-utils": "^19.3.0",
88
88
  "@atlaskit/analytics-listeners": "^8.10.0",
89
- "@atlaskit/collab-provider": "9.30.0",
90
- "@atlaskit/editor-plugin-annotation": "1.12.0",
89
+ "@atlaskit/collab-provider": "9.30.1",
90
+ "@atlaskit/editor-plugin-annotation": "1.12.1",
91
91
  "@atlaskit/editor-plugin-card": "^2.1.0",
92
92
  "@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
93
93
  "@atlaskit/editor-plugin-list": "^3.4.0",
@@ -99,7 +99,7 @@
99
99
  "@atlaskit/media-integration-test-helpers": "^3.0.0",
100
100
  "@atlaskit/media-test-helpers": "^33.0.27",
101
101
  "@atlaskit/modal-dialog": "^12.14.0",
102
- "@atlaskit/primitives": "^8.2.0",
102
+ "@atlaskit/primitives": "^9.0.0",
103
103
  "@atlaskit/renderer": "^109.36.0",
104
104
  "@atlaskit/smart-card": "^27.7.0",
105
105
  "@atlaskit/synchrony-test-helpers": "^2.4.0",
@@ -107,7 +107,7 @@
107
107
  "@atlaskit/util-data-test": "^17.9.0",
108
108
  "@atlaskit/visual-regression": "*",
109
109
  "@atlassian/adf-schema-json": "^1.16.0",
110
- "@atlassian/search-provider": "2.4.85",
110
+ "@atlassian/search-provider": "2.4.86",
111
111
  "@emotion/jest": "^11.8.0",
112
112
  "@storybook/addon-knobs": "^5.3.18",
113
113
  "@testing-library/react": "^12.1.5",
@@ -252,10 +252,6 @@
252
252
  "type": "boolean",
253
253
  "referenceOnly": true
254
254
  },
255
- "platform.editor.a11y-column-resizing_emcvz": {
256
- "type": "boolean",
257
- "referenceOnly": "true"
258
- },
259
255
  "platform.editor.paste-markdown-table-in-a-table": {
260
256
  "type": "boolean",
261
257
  "referenceOnly": "true"
package/tsconfig.json CHANGED
@@ -12,7 +12,6 @@
12
12
  "./playwright/**/*.ts"
13
13
  ],
14
14
  "compilerOptions": {
15
- "baseUrl": "./",
16
- "noErrorTruncation": true
15
+ "baseUrl": "./"
17
16
  }
18
17
  }