@atlaskit/editor-core 177.0.0 → 177.0.1

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 (230) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/labs/next/full-page.js +2 -4
  3. package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
  4. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
  5. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -3
  6. package/dist/cjs/plugins/card/styles.js +1 -3
  7. package/dist/cjs/plugins/code-block/styles.js +2 -4
  8. package/dist/cjs/plugins/collab-edit/styles.js +2 -4
  9. package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
  10. package/dist/cjs/plugins/date/styles.js +1 -3
  11. package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -3
  12. package/dist/cjs/plugins/expand/ui/styles.js +14 -16
  13. package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
  14. package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
  15. package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
  16. package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
  17. package/dist/cjs/plugins/extension/ui/styles.js +1 -3
  18. package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
  19. package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
  20. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +1 -3
  21. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
  22. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +1 -3
  23. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
  24. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +3 -5
  25. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
  26. package/dist/cjs/plugins/grid/styles.js +1 -3
  27. package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
  28. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -5
  29. package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
  30. package/dist/cjs/plugins/layout/styles.js +1 -3
  31. package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
  32. package/dist/cjs/plugins/media/styles.js +1 -3
  33. package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
  34. package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
  35. package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
  36. package/dist/cjs/plugins/mentions/styles.js +1 -3
  37. package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
  38. package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
  39. package/dist/cjs/plugins/panel/styles.js +1 -3
  40. package/dist/cjs/plugins/placeholder/styles.js +1 -3
  41. package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
  42. package/dist/cjs/plugins/rule/styles.js +1 -3
  43. package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
  44. package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
  45. package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -3
  46. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +1 -3
  47. package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +7 -9
  48. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -3
  49. package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
  50. package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
  51. package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
  52. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
  53. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
  54. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
  55. package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
  56. package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
  57. package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
  58. package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -3
  59. package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
  60. package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
  61. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
  62. package/dist/cjs/ui/ContentStyles/index.js +1 -3
  63. package/dist/cjs/ui/ContextPanel/index.js +1 -3
  64. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
  65. package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
  66. package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
  67. package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
  68. package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
  69. package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
  70. package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
  71. package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
  72. package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
  73. package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
  74. package/dist/cjs/ui/WithFlash/index.js +2 -4
  75. package/dist/cjs/ui/styles.js +2 -4
  76. package/dist/cjs/version-wrapper.js +1 -1
  77. package/dist/cjs/version.json +1 -1
  78. package/dist/es2019/labs/next/full-page.js +2 -3
  79. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  80. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  81. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -5
  82. package/dist/es2019/plugins/card/styles.js +6 -7
  83. package/dist/es2019/plugins/code-block/styles.js +8 -9
  84. package/dist/es2019/plugins/collab-edit/styles.js +2 -3
  85. package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
  86. package/dist/es2019/plugins/date/styles.js +1 -2
  87. package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -3
  88. package/dist/es2019/plugins/expand/ui/styles.js +14 -15
  89. package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  90. package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  91. package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
  92. package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
  93. package/dist/es2019/plugins/extension/ui/styles.js +2 -3
  94. package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
  95. package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
  96. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +1 -2
  97. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  98. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  99. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
  100. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +3 -4
  101. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
  102. package/dist/es2019/plugins/grid/styles.js +2 -3
  103. package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
  104. package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -5
  105. package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
  106. package/dist/es2019/plugins/layout/styles.js +4 -5
  107. package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
  108. package/dist/es2019/plugins/media/styles.js +10 -11
  109. package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  110. package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
  111. package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  112. package/dist/es2019/plugins/mentions/styles.js +4 -5
  113. package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
  114. package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
  115. package/dist/es2019/plugins/panel/styles.js +4 -5
  116. package/dist/es2019/plugins/placeholder/styles.js +1 -2
  117. package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
  118. package/dist/es2019/plugins/rule/styles.js +1 -2
  119. package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
  120. package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
  121. package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  122. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -2
  123. package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -9
  124. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -3
  125. package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
  126. package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
  127. package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
  128. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
  129. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
  130. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
  131. package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
  132. package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  133. package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
  134. package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  135. package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  136. package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
  137. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
  138. package/dist/es2019/ui/ContentStyles/index.js +1 -2
  139. package/dist/es2019/ui/ContextPanel/index.js +1 -2
  140. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
  141. package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  142. package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
  143. package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  144. package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  145. package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
  146. package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
  147. package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
  148. package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
  149. package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
  150. package/dist/es2019/ui/WithFlash/index.js +3 -4
  151. package/dist/es2019/ui/styles.js +3 -4
  152. package/dist/es2019/version-wrapper.js +1 -1
  153. package/dist/es2019/version.json +1 -1
  154. package/dist/esm/labs/next/full-page.js +2 -3
  155. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
  156. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
  157. package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -2
  158. package/dist/esm/plugins/card/styles.js +1 -2
  159. package/dist/esm/plugins/code-block/styles.js +2 -3
  160. package/dist/esm/plugins/collab-edit/styles.js +2 -3
  161. package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
  162. package/dist/esm/plugins/date/styles.js +1 -2
  163. package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
  164. package/dist/esm/plugins/expand/ui/styles.js +14 -15
  165. package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
  166. package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
  167. package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
  168. package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
  169. package/dist/esm/plugins/extension/ui/styles.js +1 -2
  170. package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
  171. package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
  172. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +1 -2
  173. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
  174. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
  175. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
  176. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +3 -4
  177. package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
  178. package/dist/esm/plugins/grid/styles.js +1 -2
  179. package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
  180. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -4
  181. package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
  182. package/dist/esm/plugins/layout/styles.js +1 -2
  183. package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
  184. package/dist/esm/plugins/media/styles.js +1 -2
  185. package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
  186. package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
  187. package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
  188. package/dist/esm/plugins/mentions/styles.js +1 -2
  189. package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
  190. package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
  191. package/dist/esm/plugins/panel/styles.js +1 -2
  192. package/dist/esm/plugins/placeholder/styles.js +1 -2
  193. package/dist/esm/plugins/placeholder-text/styles.js +1 -2
  194. package/dist/esm/plugins/rule/styles.js +1 -2
  195. package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
  196. package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
  197. package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -2
  198. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +1 -2
  199. package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +7 -8
  200. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
  201. package/dist/esm/plugins/unsupported-content/styles.js +1 -2
  202. package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
  203. package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
  204. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
  205. package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
  206. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
  207. package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
  208. package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
  209. package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
  210. package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
  211. package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
  212. package/dist/esm/ui/ConfigPanel/Header.js +2 -3
  213. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
  214. package/dist/esm/ui/ContentStyles/index.js +1 -2
  215. package/dist/esm/ui/ContextPanel/index.js +1 -2
  216. package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
  217. package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
  218. package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
  219. package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
  220. package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
  221. package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
  222. package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
  223. package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
  224. package/dist/esm/ui/PanelTextInput/styles.js +2 -3
  225. package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
  226. package/dist/esm/ui/WithFlash/index.js +2 -3
  227. package/dist/esm/ui/styles.js +2 -3
  228. package/dist/esm/version-wrapper.js +1 -1
  229. package/dist/esm/version.json +1 -1
  230. package/package.json +4 -4
@@ -15,8 +15,6 @@ var _constants = require("@atlaskit/theme/constants");
15
15
 
16
16
  var _colors = require("@atlaskit/theme/colors");
17
17
 
18
- var _tokens = require("@atlaskit/tokens");
19
-
20
18
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
21
19
 
22
20
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
@@ -25,11 +23,11 @@ var buttonContent = (0, _react.css)(_templateObject || (_templateObject = (0, _t
25
23
  exports.buttonContent = buttonContent;
26
24
  var wrapper = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-right: 0;\n"])));
27
25
  exports.wrapper = wrapper;
28
- var confirmationPopup = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n overflow: auto;\n max-height: none;\n height: 410px;\n width: 280px;\n"])), (0, _tokens.token)('elevation.surface.overlay', '#fff'), (0, _constants.borderRadius)(), (0, _tokens.token)('elevation.shadow.overlay', "0 4px 8px -2px ".concat(_colors.N60A, ", 0 0 1px ").concat(_colors.N60A)));
26
+ var confirmationPopup = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n overflow: auto;\n max-height: none;\n height: 410px;\n width: 280px;\n"])), "var(--ds-surface-overlay, #fff)", (0, _constants.borderRadius)(), "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N60A, ", 0 0 1px ").concat(_colors.N60A), ")"));
29
27
  exports.confirmationPopup = confirmationPopup;
30
- var confirmationText = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", ";\n word-spacing: 4px;\n line-height: 22px;\n color: ", ";\n margin-top: 30px;\n padding: 20px;\n & > div {\n width: 240px;\n }\n & > div:first-of-type {\n margin-bottom: 12px;\n }\n & > div:nth-of-type(2) {\n margin-bottom: 20px;\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(14), (0, _tokens.token)('color.text.subtle', _colors.N400));
28
+ var confirmationText = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", ";\n word-spacing: 4px;\n line-height: 22px;\n color: ", ";\n margin-top: 30px;\n padding: 20px;\n & > div {\n width: 240px;\n }\n & > div:first-of-type {\n margin-bottom: 12px;\n }\n & > div:nth-of-type(2) {\n margin-bottom: 20px;\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-text-subtle, ".concat(_colors.N400, ")"));
31
29
  exports.confirmationText = confirmationText;
32
- var confirmationHeader = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n height: 100px;\n width: 100%;\n display: inline-block;\n"])), (0, _tokens.token)('color.background.discovery.bold', _colors.P400));
30
+ var confirmationHeader = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n height: 100px;\n width: 100%;\n display: inline-block;\n"])), "var(--ds-background-discovery-bold, ".concat(_colors.P400, ")"));
33
31
  exports.confirmationHeader = confirmationHeader;
34
32
  var confirmationImg = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n width: 100px;\n display: block;\n margin: 25px auto 0 auto;\n"])));
35
33
  exports.confirmationImg = confirmationImg;
@@ -29,16 +29,14 @@ var _react2 = require("@emotion/react");
29
29
 
30
30
  var _colors = require("@atlaskit/theme/colors");
31
31
 
32
- var _tokens = require("@atlaskit/tokens");
33
-
34
32
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
35
33
 
36
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
37
35
 
38
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
37
 
40
- var pulseBackground = (0, _react2.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 50% {\n background-color: ", ";\n }\n"])), (0, _tokens.token)('color.blanket.danger', _colors.R100));
41
- var pulseBackgroundReverse = (0, _react2.keyframes)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n background-color: ", ";\n }\n 50% {\n background-color: auto;\n }\n 100% {\n background-color: ", ";\n }\n"])), (0, _tokens.token)('color.blanket.danger', _colors.R100), (0, _tokens.token)('color.blanket.danger', _colors.R100));
38
+ var pulseBackground = (0, _react2.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 50% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(_colors.R100, ")"));
39
+ var pulseBackgroundReverse = (0, _react2.keyframes)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n background-color: ", ";\n }\n 50% {\n background-color: auto;\n }\n 100% {\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, ".concat(_colors.R100, ")"), "var(--ds-blanket-danger, ".concat(_colors.R100, ")"));
42
40
  var flashWrapper = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n &.-flash > div {\n animation: 0.25s ease-in-out ", ";\n }\n\n & > div {\n animation: 'none';\n }\n"])), pulseBackgroundReverse);
43
41
  var flashWrapperAnimated = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n & > div {\n animation: 0.25s ease-in-out ", ";\n }\n"])), flashWrapper, pulseBackground);
44
42
 
@@ -27,8 +27,6 @@ var _react = require("@emotion/react");
27
27
 
28
28
  var _colors = require("@atlaskit/theme/colors");
29
29
 
30
- var _tokens = require("@atlaskit/tokens");
31
-
32
30
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
33
31
 
34
32
  var _scrollbar = require("@atlaskit/editor-shared-styles/scrollbar");
@@ -37,7 +35,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
37
35
 
38
36
  var buttonGroupStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n\n & > div {\n display: flex;\n }\n"])));
39
37
  exports.buttonGroupStyle = buttonGroupStyle;
40
- var separatorStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])), (0, _tokens.token)('color.border', _colors.N30));
38
+ var separatorStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])), "var(--ds-border, ".concat(_colors.N30, ")"));
41
39
  exports.separatorStyles = separatorStyles;
42
40
  var wrapperStyle = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n\n > div,\n > span {\n display: flex;\n }\n\n > div > div {\n display: flex;\n }\n\n margin-left: 0;\n min-width: auto;\n"])));
43
41
  exports.wrapperStyle = wrapperStyle;
@@ -52,7 +50,7 @@ exports.buttonContentStyle = buttonContentStyle;
52
50
  var buttonContentReducedSpacingStyle = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n padding: 8px;\n"]))); // Taken from the style of inline dialog components
53
51
 
54
52
  exports.buttonContentReducedSpacingStyle = buttonContentReducedSpacingStyle;
55
- var dropShadow = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: ", ";\n"])), (0, _tokens.token)('elevation.shadow.overlay', "0 0 1px rgba(9, 30, 66, 0.31),\n 0 4px 8px -2px rgba(9, 30, 66, 0.25)"));
53
+ var dropShadow = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: ", ";\n"])), "var(--ds-shadow-overlay, ".concat("0 0 1px rgba(9, 30, 66, 0.31),\n 0 4px 8px -2px rgba(9, 30, 66, 0.25)", ")"));
56
54
  exports.dropShadow = dropShadow;
57
55
  var clickSelectWrapperStyle = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n user-select: all;\n"])));
58
56
  exports.clickSelectWrapperStyle = clickSelectWrapperStyle;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "177.0.0";
9
+ var version = "177.0.1";
10
10
  exports.version = version;
11
11
 
12
12
  var nextMajorVersion = function nextMajorVersion() {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "177.0.0",
3
+ "version": "177.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -5,7 +5,6 @@ import rafSchedule from 'raf-schd';
5
5
  import React from 'react';
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { N30 } from '@atlaskit/theme/colors';
8
- import { token } from '@atlaskit/tokens';
9
8
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
10
9
  import { BaseTheme } from '@atlaskit/editor-common/ui';
11
10
  import { akEditorMenuZIndex, akEditorToolbarKeylineHeight } from '@atlaskit/editor-shared-styles';
@@ -93,7 +92,7 @@ const mainToolbar = css`
93
92
  display: flex;
94
93
  height: 80px;
95
94
  flex-shrink: 0;
96
- background-color: ${token('elevation.surface', 'white')};
95
+ background-color: ${"var(--ds-surface, white)"};
97
96
 
98
97
  & object {
99
98
  height: 0 !important;
@@ -101,7 +100,7 @@ const mainToolbar = css`
101
100
  `;
102
101
  const mainToolbarWithKeyline = css`
103
102
  ${mainToolbar}
104
- box-shadow: 0 ${akEditorToolbarKeylineHeight}px 0 0 ${token('color.border', N30)}
103
+ box-shadow: 0 ${akEditorToolbarKeylineHeight}px 0 0 ${`var(--ds-border, ${N30})`}
105
104
  `;
106
105
  const mainToolbarCustomComponentsSlot = css`
107
106
  display: flex;
@@ -1,11 +1,10 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N30 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const triggerWrapper = css`
5
4
  display: flex;
6
5
  `;
7
6
  export const separator = css`
8
- background: ${token('color.border', N30)};
7
+ background: ${`var(--ds-border, ${N30})`};
9
8
  width: 1px;
10
9
  height: 24px;
11
10
  display: inline-block;
@@ -3,10 +3,9 @@ import { css } from '@emotion/react';
3
3
  import { N400 } from '@atlaskit/theme/colors';
4
4
  import { headingsSharedStyles } from '@atlaskit/editor-common/styles';
5
5
  import { shortcutStyle } from '../../../../ui/styles';
6
- import { token } from '@atlaskit/tokens';
7
6
  export const blockTypeMenuItemStyle = (tagName, selected) => {
8
7
  // TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
9
- const selectedStyle = selected ? `${tagName} { color: ${token('color.text', 'white')} !important; }` : '';
8
+ const selectedStyle = selected ? `${tagName} { color: ${"var(--ds-text, white)"} !important; }` : '';
10
9
  return themeProps => css`
11
10
  ${headingsSharedStyles(themeProps)};
12
11
  > {
@@ -27,5 +26,5 @@ export const keyboardShortcut = css`
27
26
  margin-left: 16px;
28
27
  `;
29
28
  export const keyboardShortcutSelect = css`
30
- color: ${token('color.icon', N400)};
29
+ color: ${`var(--ds-icon, ${N400})`};
31
30
  `;
@@ -19,15 +19,14 @@ import { isBreakoutMarkAllowed } from '../utils/is-breakout-mark-allowed';
19
19
  import { getPluginState } from '../plugin-key';
20
20
  import { NodeSelection } from 'prosemirror-state';
21
21
  import { isSupportedNodeForBreakout } from '../utils/is-supported-node';
22
- import { token } from '@atlaskit/tokens';
23
22
  import { layers } from '@atlaskit/theme/constants';
24
23
  const toolbarButtonWrapper = css`
25
24
  && button {
26
- background: ${token('color.background.neutral', N20A)};
27
- color: ${token('color.icon', N300)};
25
+ background: ${`var(--ds-background-neutral, ${N20A})`};
26
+ color: ${`var(--ds-icon, ${N300})`};
28
27
  :hover {
29
- background: ${token('color.background.neutral.hovered', B300)};
30
- color: ${token('color.icon', 'white')} !important;
28
+ background: ${`var(--ds-background-neutral-hovered, ${B300})`};
29
+ color: ${"var(--ds-icon, white)"} !important;
31
30
  }
32
31
  }
33
32
  `;
@@ -3,7 +3,6 @@ import { SelectionStyle, getSelectionStyles, akEditorDeleteBorder, akEditorDelet
3
3
  import { N20 } from '@atlaskit/theme/colors';
4
4
  import { SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
5
5
  import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
6
- import { token } from '@atlaskit/tokens';
7
6
  export const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
8
7
  export const smartCardStyles = css`
9
8
  .${SmartCardSharedCssClassName.INLINE_CARD_CONTAINER} {
@@ -38,7 +37,7 @@ export const smartCardStyles = css`
38
37
  &.danger {
39
38
  .${SmartCardSharedCssClassName.LOADER_WRAPPER} > a {
40
39
  box-shadow: 0 0 0 1px
41
- ${token('color.border.danger', akEditorDeleteBorder)};
40
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
42
41
  /* EDM-1717: box-shadow Safari fix start */
43
42
  z-index: 2;
44
43
  /* EDM-1717: box-shadow Safari fix end */
@@ -50,7 +49,7 @@ export const smartCardStyles = css`
50
49
  .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div {
51
50
  cursor: pointer;
52
51
  &:hover {
53
- background-color: ${token('color.background.neutral.subtle.hovered', N20)};
52
+ background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N20})`};
54
53
  }
55
54
  }
56
55
 
@@ -63,7 +62,7 @@ export const smartCardStyles = css`
63
62
  &.danger {
64
63
  .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div {
65
64
  box-shadow: 0 0 0 1px
66
- ${token('color.border.danger', akEditorDeleteBorder)} !important;
65
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`} !important;
67
66
  }
68
67
  }
69
68
  }
@@ -90,12 +89,12 @@ export const smartCardStyles = css`
90
89
  &.danger {
91
90
  .media-card-frame::after {
92
91
  box-shadow: 0 0 0 1px
93
- ${token('color.border.danger', akEditorDeleteBorder)} !important;
94
- background: ${token('color.background.danger', akEditorDeleteBackground)} !important;
92
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`} !important;
93
+ background: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`} !important;
95
94
  }
96
95
  .richMedia-resize-handle-right::after,
97
96
  .richMedia-resize-handle-left::after {
98
- background: ${token('color.border.danger', akEditorDeleteBorder)};
97
+ background: ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
99
98
  }
100
99
  }
101
100
  }
@@ -1,7 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { R75 } from '@atlaskit/theme/colors';
3
3
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorDeleteIconColor, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
4
- import { token } from '@atlaskit/tokens';
5
4
  import { codeBlockClassNames } from './ui/class-names';
6
5
  import { codeBlockSharedStyles } from '@atlaskit/editor-common/styles';
7
6
 
@@ -13,7 +12,7 @@ const GutterDangerOverlay = () => css`
13
12
  left: 0;
14
13
  top: 0;
15
14
  width: 24px;
16
- background-color: ${token('color.blanket.danger', 'none')};
15
+ background-color: ${"var(--ds-blanket-danger, none)"};
17
16
  }
18
17
  `;
19
18
 
@@ -44,29 +43,29 @@ export const codeBlockStyles = props => css`
44
43
  /* Danger when top level node */
45
44
  .ProseMirror .danger.code-block {
46
45
  box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
47
- ${token('color.border.danger', akEditorDeleteBorder)};
46
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
48
47
 
49
48
  .${codeBlockClassNames.gutter} {
50
- background-color: ${token('color.background.danger', R75)};
51
- color: ${token('color.text.danger', akEditorDeleteIconColor)};
49
+ background-color: ${`var(--ds-background-danger, ${R75})`};
50
+ color: ${`var(--ds-text-danger, ${akEditorDeleteIconColor})`};
52
51
  ${GutterDangerOverlay()};
53
52
  }
54
53
 
55
54
  .${codeBlockClassNames.content} {
56
- background-color: ${token('color.blanket.danger', akEditorDeleteBackground)};
55
+ background-color: ${`var(--ds-blanket-danger, ${akEditorDeleteBackground})`};
57
56
  }
58
57
  }
59
58
 
60
59
  /* Danger when nested node */
61
60
  .ProseMirror .danger .code-block {
62
61
  .${codeBlockClassNames.gutter} {
63
- background-color: ${token('color.background.danger', 'rgba(255, 143, 115, 0.5)')};
64
- color: ${token('color.text.danger', akEditorDeleteIconColor)};
62
+ background-color: ${"var(--ds-background-danger, rgba(255, 143, 115, 0.5))"};
63
+ color: ${`var(--ds-text-danger, ${akEditorDeleteIconColor})`};
65
64
  ${GutterDangerOverlay()};
66
65
  }
67
66
 
68
67
  .${codeBlockClassNames.content} {
69
- background-color: ${token('color.blanket.danger', 'rgba(255, 189, 173, 0.5)')};
68
+ background-color: ${"var(--ds-blanket-danger, rgba(255, 189, 173, 0.5))"};
70
69
  }
71
70
  }
72
71
  `;
@@ -2,14 +2,13 @@ import { css } from '@emotion/react';
2
2
  import { TELEPOINTER_DIM_CLASS } from './plugin-state';
3
3
  import { colors } from './utils';
4
4
  import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
5
- import { token } from '@atlaskit/tokens';
6
5
 
7
6
  const telepointerColorStyle = (color, index) => `
8
7
  &.color-${index} {
9
8
  background-color: ${color.selection};
10
9
  &::after {
11
10
  background-color: ${color.solid};
12
- color: ${token('color.text.inverse', '#fff')};
11
+ color: ${"var(--ds-text-inverse, #fff)"};
13
12
  border-color: ${color.solid};
14
13
  }
15
14
  }
@@ -33,7 +32,7 @@ export const telepointerStyle = css`
33
32
  top: -14px;
34
33
  font-size: ${relativeFontSizeToBase16(9)};
35
34
  padding: 2px;
36
- color: ${token('color.text.inverse', 'white')};
35
+ color: ${"var(--ds-text-inverse, white)"};
37
36
  left: -1px;
38
37
  border-radius: 2px 2px 2px 0;
39
38
  line-height: initial;
@@ -2,9 +2,8 @@ import { css } from '@emotion/react';
2
2
  import { gridSize } from '@atlaskit/theme/constants';
3
3
  import { N20 } from '@atlaskit/theme/colors';
4
4
  import { akEditorSmallZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
5
- import { token } from '@atlaskit/tokens';
6
5
  export const inviteTeamWrapper = css`
7
- background: ${token('color.background.neutral', N20)};
6
+ background: ${`var(--ds-background-neutral, ${N20})`};
8
7
  border-radius: 50%;
9
8
  min-width: ${gridSize() * 4}px;
10
9
  margin-left: -${gridSize() / 2}px;
@@ -38,11 +37,11 @@ export const badge = color => css`
38
37
  z-index: ${akEditorSmallZIndex};
39
38
  border-radius: 3px;
40
39
  background: ${color};
41
- color: ${token('color.text.inverse', '#fff')};
40
+ color: ${"var(--ds-text-inverse, #fff)"};
42
41
  font-size: ${relativeFontSizeToBase16(9)};
43
42
  line-height: 0;
44
43
  padding-top: 7px;
45
44
  text-align: center;
46
- box-shadow: 0 0 1px ${token('color.border.inverse', '#fff')};
45
+ box-shadow: 0 0 1px ${"var(--ds-border-inverse, #fff)"};
47
46
  box-sizing: border-box;
48
47
  `;
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
3
- import { token } from '@atlaskit/tokens';
4
3
  import { SelectionStyle, getSelectionStyles, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
5
4
  export const dateStyles = css`
6
5
  .${DateSharedCssClassName.DATE_CONTAINER} {
@@ -21,7 +20,7 @@ export const dateStyles = css`
21
20
  .${DateSharedCssClassName.DATE_WRAPPER}
22
21
  > span {
23
22
  box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
24
- ${token('color.border.danger', akEditorDeleteBorder)};
23
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
25
24
  }
26
25
  }
27
26
  `;
@@ -10,7 +10,6 @@ import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
10
10
  import Calendar from '@atlaskit/calendar';
11
11
  import { borderRadius } from '@atlaskit/theme/constants';
12
12
  import { N60A, N0 } from '@atlaskit/theme/colors';
13
- import { token } from '@atlaskit/tokens';
14
13
  import withOuterListeners from '../../../../ui/with-outer-listeners';
15
14
  const PopupWithListeners = withOuterListeners(Popup);
16
15
  import { INPUT_METHOD } from '../../../analytics/types/enums';
@@ -19,8 +18,8 @@ import DatePickerInput from './date-picker-input';
19
18
  const popupContentWrapper = css`
20
19
  padding: 2px;
21
20
  border-radius: ${borderRadius()}px;
22
- box-shadow: ${token('elevation.shadow.overlay', `0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`)};
23
- background-color: ${token('elevation.surface.overlay', N0)};
21
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
22
+ background-color: ${`var(--ds-surface-overlay, ${N0})`};
24
23
  `;
25
24
 
26
25
  class DatePicker extends React.Component {
@@ -2,41 +2,40 @@ import { css } from '@emotion/react';
2
2
  import { themed } from '@atlaskit/theme/components';
3
3
  import { gridSize } from '@atlaskit/theme/constants';
4
4
  import { R50, R300, N40A, N50A, N80A, DN50, R200 } from '@atlaskit/theme/colors';
5
- import { token } from '@atlaskit/tokens';
6
5
  import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
7
6
  import { SelectionStyle, getSelectionStyles, akLayoutGutterOffset, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
7
  import { BreakoutCssClassName } from '../../breakout/constants';
9
8
  import { expandClassNames } from './class-names';
10
9
  const EXPAND_SELECTED_BACKGROUND = themed({
11
- light: token('color.background.neutral.subtle', 'rgba(255, 255, 255, 0.6)'),
12
- dark: token('color.background.neutral.subtle', 'rgba(9, 10, 11, 0.29)')
10
+ light: "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))",
11
+ dark: "var(--ds-background-neutral-subtle, rgba(9, 10, 11, 0.29))"
13
12
  });
14
13
 
15
14
  const EXPAND_ICON_COLOR = props => css`
16
15
  color: ${themed({
17
- light: token('color.icon.subtle', N80A),
18
- dark: token('color.icon.subtle', '#d9dde3')
16
+ light: `var(--ds-icon-subtle, ${N80A})`,
17
+ dark: "var(--ds-icon-subtle, #d9dde3)"
19
18
  })(props)};
20
19
  `;
21
20
 
22
21
  const ACTIVE_STATE_BACKGROUND_COLOR = themed({
23
- dark: token('color.blanket.selected', `#0C294F4B`)
22
+ dark: `var(--ds-blanket-selected, ${`#0C294F4B`})`
24
23
  });
25
24
  const ACTIVE_STATE_BORDER = themed({
26
- dark: `1px solid ${token('color.border.selected', `#4794ff4B`)}`
25
+ dark: `1px solid ${`var(--ds-border-selected, ${`#4794ff4B`})`}`
27
26
  });
28
27
  const ACTIVE_STATE_BORDER_RADIUS = themed({
29
28
  dark: '3px'
30
29
  });
31
30
  const DANGER_STATE_BACKGROUND_COLOR = themed({
32
- light: token('color.background.danger', R50),
33
- dark: token('color.background.danger', '#441C13')
31
+ light: `var(--ds-background-danger, ${R50})`,
32
+ dark: "var(--ds-background-danger, #441C13)"
34
33
  });
35
34
  const DANGER_STATE_BORDER = themed({
36
- dark: `1px solid ${token('color.border.danger', R200)}`
35
+ dark: `1px solid ${`var(--ds-border-danger, ${R200})`}`
37
36
  });
38
37
  const DANGER_STATE_BORDER_COLOR = themed({
39
- light: token('color.border.danger', R300)
38
+ light: `var(--ds-border-danger, ${R300})`
40
39
  });
41
40
  const DANGER_STATE_BORDER_RADIUS = themed({
42
41
  dark: '3px'
@@ -113,8 +112,8 @@ export const expandStyles = props => css`
113
112
  .${expandClassNames.expanded} {
114
113
  background: ${EXPAND_SELECTED_BACKGROUND(props)};
115
114
  border-color: ${themed({
116
- light: token('color.border', N40A),
117
- dark: token('color.border', DN50)
115
+ light: `var(--ds-border, ${N40A})`,
116
+ dark: `var(--ds-border, ${DN50})`
118
117
  })(props)};
119
118
 
120
119
  .${expandClassNames.content} {
@@ -155,8 +154,8 @@ export const expandStyles = props => css`
155
154
 
156
155
  &:hover {
157
156
  border-color: ${themed({
158
- light: token('color.border', N50A),
159
- dark: token('color.border', DN50)
157
+ light: `var(--ds-border, ${N50A})`,
158
+ dark: `var(--ds-border, ${DN50})`
160
159
  })(props)};
161
160
  background: ${EXPAND_SELECTED_BACKGROUND(props)};
162
161
  }
@@ -3,7 +3,6 @@ import { themed } from '@atlaskit/theme/components';
3
3
  import { borderRadius } from '@atlaskit/theme/constants';
4
4
  import { DN30, DN900, N30 } from '@atlaskit/theme/colors';
5
5
  import { wrapperDefault, padding } from '../styles';
6
- import { token } from '@atlaskit/tokens';
7
6
  export const widerLayoutClassName = 'wider-layout';
8
7
  export const wrapperStyle = theme => css`
9
8
  ${wrapperDefault(theme)}
@@ -32,13 +31,13 @@ export const header = css`
32
31
  export const content = theme => css`
33
32
  padding: ${padding}px;
34
33
  background: ${themed({
35
- light: token('elevation.surface', 'white'),
36
- dark: token('elevation.surface', DN30)
34
+ light: "var(--ds-surface, white)",
35
+ dark: `var(--ds-surface, ${DN30})`
37
36
  })(theme)};
38
37
  color: ${themed({
39
- dark: token('color.text', DN900)
38
+ dark: `var(--ds-text, ${DN900})`
40
39
  })(theme)};
41
- border: 1px solid ${token('color.border', N30)};
40
+ border: 1px solid ${`var(--ds-border, ${N30})`};
42
41
  border-radius: ${borderRadius()}px;
43
42
  cursor: initial;
44
43
  `;
@@ -1,7 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { borderRadius } from '@atlaskit/theme/constants';
3
3
  import { wrapperDefault } from '../styles';
4
- import { token } from '@atlaskit/tokens';
5
4
  export const wrapperStyle = theme => css`
6
5
  ${wrapperDefault(theme)}
7
6
 
@@ -23,6 +22,6 @@ export const wrapperStyle = theme => css`
23
22
 
24
23
  &.with-children {
25
24
  padding: 0;
26
- background: ${token('color.background.neutral.subtle', 'white')};
25
+ background: ${"var(--ds-background-neutral-subtle, white)"};
27
26
  }
28
27
  `;
@@ -2,29 +2,28 @@ import { css } from '@emotion/react';
2
2
  import { themed } from '@atlaskit/theme/components';
3
3
  import { borderRadius } from '@atlaskit/theme/constants';
4
4
  import { N20, DN50, DN700, B200, N20A, N70 } from '@atlaskit/theme/colors';
5
- import { token } from '@atlaskit/tokens';
6
5
  import { EXTENSION_PADDING, BODIED_EXT_PADDING } from '@atlaskit/editor-common/styles';
7
6
  export { EXTENSION_PADDING as padding, BODIED_EXT_PADDING };
8
7
  export const wrapperDefault = theme => css`
9
8
  background: ${themed({
10
- light: token('color.background.neutral', N20),
11
- dark: token('color.background.neutral', DN50)
9
+ light: `var(--ds-background-neutral, ${N20})`,
10
+ dark: `var(--ds-background-neutral, ${DN50})`
12
11
  })(theme)};
13
12
  border-radius: ${borderRadius()}px;
14
13
  color: ${themed({
15
- dark: token('color.text', DN700)
14
+ dark: `var(--ds-text, ${DN700})`
16
15
  })(theme)};
17
16
  position: relative;
18
17
  vertical-align: middle;
19
18
 
20
19
  .ProseMirror-selectednode > span > & > .extension-overlay {
21
- box-shadow: inset 0px 0px 0px 2px ${token('color.border.selected', B200)};
20
+ box-shadow: inset 0px 0px 0px 2px ${`var(--ds-border-selected, ${B200})`};
22
21
  opacity: 1;
23
22
  }
24
23
 
25
24
  &.with-overlay {
26
25
  .extension-overlay {
27
- background: ${token('color.background.neutral.hovered', N20A)};
26
+ background: ${`var(--ds-background-neutral-hovered, ${N20A})`};
28
27
  color: transparent;
29
28
  }
30
29
 
@@ -57,7 +56,7 @@ export const placeholderFallbackParams = css`
57
56
  display: inline-block;
58
57
  max-width: 200px;
59
58
  margin-left: 5px;
60
- color: ${token('color.text.subtlest', N70)};
59
+ color: ${`var(--ds-text-subtlest, ${N70})`};
61
60
  text-overflow: ellipsis;
62
61
  white-space: nowrap;
63
62
  overflow: hidden;
@@ -5,7 +5,6 @@ import { G300, N0 } from '@atlaskit/theme/colors';
5
5
  import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
6
6
  import { FormattedMessage } from 'react-intl-next';
7
7
  import { messages } from './messages';
8
- import { token } from '@atlaskit/tokens';
9
8
 
10
9
  const noop = () => {};
11
10
 
@@ -22,10 +21,10 @@ const saveIndicatorContent = css`
22
21
  align-items: center;
23
22
  padding: 6px 12px;
24
23
 
25
- background: ${token('elevation.surface.overlay', N0)};
24
+ background: ${`var(--ds-surface-overlay, ${N0})`};
26
25
 
27
26
  /* E300 */
28
- box-shadow: ${token('elevation.shadow.overlay', `0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)`)};
27
+ box-shadow: ${`var(--ds-shadow-overlay, ${`0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)`})`};
29
28
  border-radius: 16px;
30
29
  `;
31
30
  const saveIndicatorText = css`
@@ -62,7 +61,7 @@ export const SaveIndicator = ({
62
61
  "data-testid": "save-indicator-content"
63
62
  }, jsx(CheckCircleIcon, {
64
63
  label: "Saving",
65
- primaryColor: token('color.icon.success', G300),
64
+ primaryColor: `var(--ds-icon-success, ${G300})`,
66
65
  size: "small"
67
66
  }), jsx("span", {
68
67
  css: saveIndicatorText
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { blockNodesVerticalMargin, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorDeleteBackground, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const extensionStyles = css`
5
4
  .extensionView-content-wrap,
6
5
  .bodiedExtensionView-content-wrap {
@@ -22,8 +21,8 @@ export const extensionStyles = css`
22
21
 
23
22
  &.danger > span > .extension-container {
24
23
  box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
25
- ${token('color.border.danger', akEditorDeleteBorder)};
26
- background-color: ${token('color.background.danger', akEditorDeleteBackground)};
24
+ ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
25
+ background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
27
26
  }
28
27
 
29
28
  &.inline {
@@ -1,6 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { B75 } from '@atlaskit/theme/colors';
3
- import { token } from '@atlaskit/tokens';
4
3
  export const fakeCursorStyles = css`
5
4
  .ProseMirror {
6
5
  .ProseMirror-fake-text-cursor {
@@ -14,14 +13,14 @@ export const fakeCursorStyles = css`
14
13
  display: inline;
15
14
  top: 0;
16
15
  position: absolute;
17
- border-right: 1px solid ${token('color.border', 'rgba(0, 0, 0, 0.4)')};
16
+ border-right: 1px solid ${"var(--ds-border, rgba(0, 0, 0, 0.4))"};
18
17
  }
19
18
 
20
19
  .ProseMirror-fake-text-selection {
21
20
  display: inline;
22
21
  pointer-events: none;
23
22
  position: relative;
24
- background-color: ${token('color.background.selected', B75)};
23
+ background-color: ${`var(--ds-background-selected, ${B75})`};
25
24
  }
26
25
  }
27
26
  `;