@atlaskit/editor-core 219.9.6 → 219.9.7

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 (63) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
  3. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +31 -0
  4. package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +36 -0
  5. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +8 -14
  6. package/dist/cjs/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
  7. package/dist/cjs/ui/Appearance/Chromeless-compiled.js +40 -0
  8. package/dist/cjs/ui/Appearance/Chromeless-emotion.js +91 -0
  9. package/dist/cjs/ui/Appearance/Chromeless.js +21 -81
  10. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
  11. package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
  12. package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +33 -0
  13. package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +35 -0
  14. package/dist/cjs/ui/PluginSlot/index.js +10 -15
  15. package/dist/cjs/version-wrapper.js +1 -1
  16. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
  17. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +19 -0
  18. package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +26 -0
  19. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +6 -13
  20. package/dist/es2019/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
  21. package/dist/es2019/ui/Appearance/Chromeless-compiled.js +32 -0
  22. package/dist/es2019/ui/Appearance/Chromeless-emotion.js +82 -0
  23. package/dist/es2019/ui/Appearance/Chromeless.js +17 -82
  24. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
  25. package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
  26. package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +21 -0
  27. package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +25 -0
  28. package/dist/es2019/ui/PluginSlot/index.js +8 -14
  29. package/dist/es2019/version-wrapper.js +1 -1
  30. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
  31. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +22 -0
  32. package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +30 -0
  33. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +8 -13
  34. package/dist/esm/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
  35. package/dist/esm/ui/Appearance/Chromeless-compiled.js +33 -0
  36. package/dist/esm/ui/Appearance/Chromeless-emotion.js +85 -0
  37. package/dist/esm/ui/Appearance/Chromeless.js +19 -81
  38. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
  39. package/dist/esm/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
  40. package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +24 -0
  41. package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +29 -0
  42. package/dist/esm/ui/PluginSlot/index.js +10 -14
  43. package/dist/esm/version-wrapper.js +1 -1
  44. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +10 -0
  45. package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +12 -0
  46. package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -6
  47. package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +18 -0
  48. package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +18 -0
  49. package/dist/types/ui/Appearance/Chromeless.d.ts +10 -14
  50. package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +12 -0
  51. package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +12 -0
  52. package/dist/types/ui/PluginSlot/index.d.ts +0 -4
  53. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +10 -0
  54. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +12 -0
  55. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -6
  56. package/dist/types-ts4.5/ui/Appearance/Chromeless-compiled.d.ts +18 -0
  57. package/dist/types-ts4.5/ui/Appearance/Chromeless-emotion.d.ts +18 -0
  58. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +10 -14
  59. package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-compiled.d.ts +12 -0
  60. package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-emotion.d.ts +12 -0
  61. package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +0 -4
  62. package/editor-core.docs.tsx +55 -53
  63. package/package.json +10 -10
@@ -1,7 +1,3 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import React from 'react';
6
2
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
7
3
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
@@ -5,64 +5,66 @@
5
5
 
6
6
  import path from 'path';
7
7
 
8
- import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
8
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
9
9
 
10
10
  import packageJson from './package.json';
11
11
 
12
12
  const packagePath = path.resolve(__dirname);
13
13
 
14
- const documentation: ComponentStructuredContentSource[] = [
15
- {
16
- name: 'Editor Core',
17
- description: 'A package contains Atlassian editor core functionality',
18
- status: 'general-availability',
19
- import: {
20
- name: 'Editor',
21
- package: '@atlaskit/editor-core',
22
- type: 'named',
23
- packagePath,
24
- packageJson,
25
- },
26
- usageGuidelines: [
27
- 'Use the comment appearance when the editor is not the primary focus (e.g. comments on a page); use full-page or full-width when the editor is the main focus; use chromeless when you need complete control over the editor UI; use mobile for mobile web.',
28
- 'Configure features via presets (default, universal, or custom). Always include basePlugin; use usePreset or similar memoization so the preset is stable across re-renders.',
29
- 'Use ComposableEditor with a preset; provide providers (e.g. mentionProvider) when the editor needs context from your app.',
30
- ],
31
- contentGuidelines: [],
32
- accessibilityGuidelines: [],
33
- keywords: ['editor', 'editor-core', 'atlaskit'],
34
- categories: ['editor'],
35
- examples: [
36
- {
37
- name: 'Basic composable editor',
38
- description: 'Minimal ComposableEditor with preset.',
39
- source: path.resolve(packagePath, './examples/1-basic-composable-editor.tsx'),
40
- },
41
- {
42
- name: 'Comment editor',
43
- description: 'Comment appearance composable editor.',
44
- source: path.resolve(packagePath, './examples/1-comment-editor-component-composable.tsx'),
45
- },
46
- {
47
- name: 'Full page editor',
48
- description: 'Full-page appearance composable editor.',
49
- source: path.resolve(packagePath, './examples/1-full-page-editor-composable.tsx'),
14
+ const documentation: StructuredContentSource = {
15
+ components: [
16
+ {
17
+ name: 'Editor Core',
18
+ description: 'A package contains Atlassian editor core functionality',
19
+ status: 'general-availability',
20
+ import: {
21
+ name: 'Editor',
22
+ package: '@atlaskit/editor-core',
23
+ type: 'named',
24
+ packagePath,
25
+ packageJson,
50
26
  },
51
- {
52
- name: 'Chromeless editor',
53
- description: 'Chromeless appearance with custom UI.',
54
- source: path.resolve(
55
- packagePath,
56
- './examples/1-chromeless-editor-component-composable.tsx',
57
- ),
58
- },
59
- {
60
- name: 'Collapsed editor',
61
- description: 'Async collapsed editor (labs).',
62
- source: path.resolve(packagePath, './examples/1-labs-async-collapsed-editor.tsx'),
63
- },
64
- ],
65
- },
66
- ];
27
+ usageGuidelines: [
28
+ 'Use the comment appearance when the editor is not the primary focus (e.g. comments on a page); use full-page or full-width when the editor is the main focus; use chromeless when you need complete control over the editor UI; use mobile for mobile web.',
29
+ 'Configure features via presets (default, universal, or custom). Always include basePlugin; use usePreset or similar memoization so the preset is stable across re-renders.',
30
+ 'Use ComposableEditor with a preset; provide providers (e.g. mentionProvider) when the editor needs context from your app.',
31
+ ],
32
+ contentGuidelines: [],
33
+ accessibilityGuidelines: [],
34
+ keywords: ['editor', 'editor-core', 'atlaskit'],
35
+ categories: ['editor'],
36
+ examples: [
37
+ {
38
+ name: 'Basic composable editor',
39
+ description: 'Minimal ComposableEditor with preset.',
40
+ source: path.resolve(packagePath, './examples/1-basic-composable-editor.tsx'),
41
+ },
42
+ {
43
+ name: 'Comment editor',
44
+ description: 'Comment appearance composable editor.',
45
+ source: path.resolve(packagePath, './examples/1-comment-editor-component-composable.tsx'),
46
+ },
47
+ {
48
+ name: 'Full page editor',
49
+ description: 'Full-page appearance composable editor.',
50
+ source: path.resolve(packagePath, './examples/1-full-page-editor-composable.tsx'),
51
+ },
52
+ {
53
+ name: 'Chromeless editor',
54
+ description: 'Chromeless appearance with custom UI.',
55
+ source: path.resolve(
56
+ packagePath,
57
+ './examples/1-chromeless-editor-component-composable.tsx',
58
+ ),
59
+ },
60
+ {
61
+ name: 'Collapsed editor',
62
+ description: 'Async collapsed editor (labs).',
63
+ source: path.resolve(packagePath, './examples/1-labs-async-collapsed-editor.tsx'),
64
+ },
65
+ ],
66
+ },
67
+ ],
68
+ };
67
69
 
68
70
  export default documentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "219.9.6",
3
+ "version": "219.9.7",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@atlaskit/activity-provider": "^2.6.0",
49
- "@atlaskit/adf-schema": "^52.13.0",
49
+ "@atlaskit/adf-schema": "^52.14.0",
50
50
  "@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
51
51
  "@atlaskit/analytics-namespaced-context": "^7.3.0",
52
52
  "@atlaskit/analytics-next": "^11.2.0",
@@ -74,9 +74,9 @@
74
74
  "@atlaskit/platform-feature-flags-react": "^0.5.0",
75
75
  "@atlaskit/react-ufo": "^6.0.0",
76
76
  "@atlaskit/task-decision": "^20.1.0",
77
- "@atlaskit/tmp-editor-statsig": "^82.4.0",
77
+ "@atlaskit/tmp-editor-statsig": "^82.5.0",
78
78
  "@atlaskit/tokens": "^13.0.0",
79
- "@atlaskit/tooltip": "^22.2.0",
79
+ "@atlaskit/tooltip": "^22.3.0",
80
80
  "@atlaskit/width-detector": "^5.1.0",
81
81
  "@babel/runtime": "^7.0.0",
82
82
  "@compiled/react": "^0.20.0",
@@ -92,7 +92,7 @@
92
92
  "uuid": "^3.1.0"
93
93
  },
94
94
  "peerDependencies": {
95
- "@atlaskit/editor-common": "^114.41.0",
95
+ "@atlaskit/editor-common": "^114.45.0",
96
96
  "@atlaskit/link-provider": "^4.4.0",
97
97
  "@atlaskit/media-core": "^37.1.0",
98
98
  "react": "^18.2.0",
@@ -103,12 +103,12 @@
103
103
  "@af/editor-libra": "workspace:^",
104
104
  "@af/suppress-react-warnings": "workspace:^",
105
105
  "@af/visual-regression": "workspace:^",
106
- "@atlaskit/adf-utils": "^19.30.0",
106
+ "@atlaskit/adf-utils": "^19.31.0",
107
107
  "@atlaskit/analytics-listeners": "^10.1.0",
108
108
  "@atlaskit/code": "^17.5.0",
109
109
  "@atlaskit/collab-provider": "^19.0.0",
110
- "@atlaskit/editor-plugin-annotation": "^10.4.0",
111
- "@atlaskit/editor-plugin-card": "^16.9.0",
110
+ "@atlaskit/editor-plugin-annotation": "^10.5.0",
111
+ "@atlaskit/editor-plugin-card": "^16.10.0",
112
112
  "@atlaskit/editor-plugin-list": "^12.1.0",
113
113
  "@atlaskit/editor-plugin-paste": "^11.2.0",
114
114
  "@atlaskit/editor-test-helpers": "workspace:^",
@@ -117,8 +117,8 @@
117
117
  "@atlaskit/logo": "^20.1.0",
118
118
  "@atlaskit/media-core": "^37.1.0",
119
119
  "@atlaskit/media-integration-test-helpers": "workspace:^",
120
- "@atlaskit/media-test-helpers": "^41.1.0",
121
- "@atlaskit/modal-dialog": "^15.1.0",
120
+ "@atlaskit/media-test-helpers": "^41.2.0",
121
+ "@atlaskit/modal-dialog": "^15.2.0",
122
122
  "@atlaskit/popper": "^7.2.0",
123
123
  "@atlaskit/portal": "^5.5.0",
124
124
  "@atlaskit/renderer": "^131.1.0",