@atlaskit/editor-plugin-highlight 1.8.0 → 1.9.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/plugin.js +11 -3
  3. package/dist/cjs/ui/FloatingToolbarHighlightColor.js +98 -0
  4. package/dist/cjs/ui/PrimaryToolbarHighlightColor.js +107 -0
  5. package/dist/cjs/ui/ToolbarHighlightColor.js +3 -1
  6. package/dist/cjs/ui/shared/PaletteDropdown.js +61 -0
  7. package/dist/cjs/ui/shared/useDropdownEvents.js +55 -0
  8. package/dist/es2019/plugin.js +11 -3
  9. package/dist/es2019/ui/FloatingToolbarHighlightColor.js +89 -0
  10. package/dist/es2019/ui/PrimaryToolbarHighlightColor.js +104 -0
  11. package/dist/es2019/ui/ToolbarHighlightColor.js +3 -1
  12. package/dist/es2019/ui/shared/PaletteDropdown.js +57 -0
  13. package/dist/es2019/ui/shared/useDropdownEvents.js +46 -0
  14. package/dist/esm/plugin.js +11 -3
  15. package/dist/esm/ui/FloatingToolbarHighlightColor.js +90 -0
  16. package/dist/esm/ui/PrimaryToolbarHighlightColor.js +99 -0
  17. package/dist/esm/ui/ToolbarHighlightColor.js +3 -1
  18. package/dist/esm/ui/shared/PaletteDropdown.js +54 -0
  19. package/dist/esm/ui/shared/useDropdownEvents.js +48 -0
  20. package/dist/types/ui/FloatingToolbarHighlightColor.d.ts +24 -0
  21. package/dist/types/ui/PrimaryToolbarHighlightColor.d.ts +24 -0
  22. package/dist/types/ui/shared/PaletteDropdown.d.ts +14 -0
  23. package/dist/types/ui/shared/useDropdownEvents.d.ts +19 -0
  24. package/dist/types-ts4.5/ui/FloatingToolbarHighlightColor.d.ts +24 -0
  25. package/dist/types-ts4.5/ui/PrimaryToolbarHighlightColor.d.ts +24 -0
  26. package/dist/types-ts4.5/ui/shared/PaletteDropdown.d.ts +14 -0
  27. package/dist/types-ts4.5/ui/shared/useDropdownEvents.d.ts +19 -0
  28. package/package.json +46 -17
  29. /package/dist/cjs/ui/{EditorHighlightIcon.js → shared/EditorHighlightIcon.js} +0 -0
  30. /package/dist/es2019/ui/{EditorHighlightIcon.js → shared/EditorHighlightIcon.js} +0 -0
  31. /package/dist/esm/ui/{EditorHighlightIcon.js → shared/EditorHighlightIcon.js} +0 -0
  32. /package/dist/types/ui/{EditorHighlightIcon.d.ts → shared/EditorHighlightIcon.d.ts} +0 -0
  33. /package/dist/types-ts4.5/ui/{EditorHighlightIcon.d.ts → shared/EditorHighlightIcon.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,16 +24,21 @@
24
24
  "types": "dist/types/index.d.ts",
25
25
  "typesVersions": {
26
26
  ">=4.5 <5.4": {
27
- "*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
27
+ "*": [
28
+ "dist/types-ts4.5/*",
29
+ "dist/types-ts4.5/index.d.ts"
30
+ ]
28
31
  }
29
32
  },
30
- "sideEffects": ["*.compiled.css"],
33
+ "sideEffects": [
34
+ "*.compiled.css"
35
+ ],
31
36
  "atlaskit:src": "src/index.ts",
32
37
  "af:exports": {
33
38
  ".": "./src/index.ts"
34
39
  },
35
40
  "dependencies": {
36
- "@atlaskit/editor-common": "^82.6.0",
41
+ "@atlaskit/editor-common": "^82.9.0",
37
42
  "@atlaskit/editor-palette": "1.6.0",
38
43
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
39
44
  "@atlaskit/editor-plugin-background-color": "^1.1.0",
@@ -42,9 +47,9 @@
42
47
  "@atlaskit/editor-prosemirror": "4.0.1",
43
48
  "@atlaskit/editor-shared-styles": "^2.12.0",
44
49
  "@atlaskit/editor-tables": "^2.7.4",
45
- "@atlaskit/icon": "^22.3.0",
50
+ "@atlaskit/icon": "^22.4.0",
46
51
  "@atlaskit/platform-feature-flags": "^0.2.0",
47
- "@atlaskit/primitives": "^7.2.0",
52
+ "@atlaskit/primitives": "^8.0.0",
48
53
  "@babel/runtime": "^7.0.0",
49
54
  "@emotion/react": "^11.7.1"
50
55
  },
@@ -53,34 +58,58 @@
53
58
  "react-intl-next": "npm:react-intl@^5.18.1"
54
59
  },
55
60
  "devDependencies": {
56
- "@atlaskit/tokens": "^1.50.0",
61
+ "@atlaskit/tokens": "^1.51.0",
57
62
  "typescript": "~5.4.2"
58
63
  },
59
64
  "techstack": {
60
65
  "@atlassian/frontend": {
61
- "import-structure": ["atlassian-conventions"],
62
- "circular-dependencies": ["file-and-folder-level"]
66
+ "import-structure": [
67
+ "atlassian-conventions"
68
+ ],
69
+ "circular-dependencies": [
70
+ "file-and-folder-level"
71
+ ]
63
72
  },
64
73
  "@repo/internal": {
65
74
  "dom-events": "use-bind-event-listener",
66
- "analytics": ["analytics-next"],
67
- "design-tokens": ["color"],
68
- "theming": ["react-context"],
69
- "ui-components": ["lite-mode"],
70
- "deprecation": ["no-deprecated-imports"],
71
- "styling": ["static", "compiled"],
72
- "imports": ["import-no-extraneous-disable-for-examples-and-docs"]
75
+ "analytics": [
76
+ "analytics-next"
77
+ ],
78
+ "design-tokens": [
79
+ "color"
80
+ ],
81
+ "theming": [
82
+ "react-context"
83
+ ],
84
+ "ui-components": [
85
+ "lite-mode"
86
+ ],
87
+ "deprecation": [
88
+ "no-deprecated-imports"
89
+ ],
90
+ "styling": [
91
+ "static",
92
+ "compiled"
93
+ ],
94
+ "imports": [
95
+ "import-no-extraneous-disable-for-examples-and-docs"
96
+ ]
73
97
  }
74
98
  },
75
99
  "stricter": {
76
100
  "no-unused-dependencies": {
77
101
  "checkDevDependencies": true,
78
- "exclude": ["@atlaskit/tokens"]
102
+ "exclude": [
103
+ "@atlaskit/tokens"
104
+ ]
79
105
  }
80
106
  },
81
107
  "platform-feature-flags": {
82
108
  "platform.editor.dynamic-palette-borders": {
83
109
  "type": "boolean"
110
+ },
111
+ "platform.editor.refactor-highlight-toolbar_mo0pj": {
112
+ "type": "boolean"
84
113
  }
85
114
  }
86
115
  }