@atlaskit/editor-core 236.0.2 → 236.0.4

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 (23) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +2 -1
  3. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -14
  4. package/dist/cjs/version-wrapper.js +1 -1
  5. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +2 -1
  6. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -14
  7. package/dist/es2019/version-wrapper.js +1 -1
  8. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +2 -1
  9. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -14
  10. package/dist/esm/version-wrapper.js +1 -1
  11. package/package.json +4 -7
  12. package/dist/cjs/ui/EditorContentContainer/styles/contributorTagStyles.js +0 -80
  13. package/dist/cjs/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +0 -29
  14. package/dist/cjs/ui/EditorContentContainer/styles/ruleWithAttrs.js +0 -92
  15. package/dist/es2019/ui/EditorContentContainer/styles/contributorTagStyles.js +0 -74
  16. package/dist/es2019/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +0 -23
  17. package/dist/es2019/ui/EditorContentContainer/styles/ruleWithAttrs.js +0 -86
  18. package/dist/esm/ui/EditorContentContainer/styles/contributorTagStyles.js +0 -74
  19. package/dist/esm/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +0 -23
  20. package/dist/esm/ui/EditorContentContainer/styles/ruleWithAttrs.js +0 -86
  21. package/dist/types/ui/EditorContentContainer/styles/contributorTagStyles.d.ts +0 -12
  22. package/dist/types/ui/EditorContentContainer/styles/extensionBreakoutStyles.d.ts +0 -8
  23. package/dist/types/ui/EditorContentContainer/styles/ruleWithAttrs.d.ts +0 -2
@@ -1,23 +0,0 @@
1
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
2
- @repo/internal/deprecations/deprecation-ticket-required,
3
- @atlaskit/ui-styling-standard/no-exported-styles */
4
-
5
- import { css } from '@emotion/react';
6
- // copied from packages/editor/editor-shared-styles/src/consts/consts.ts
7
- var blockNodesVerticalMargin = '0.75rem';
8
-
9
- /**
10
- * @deprecated This style has been migrated to Compiled CSS.
11
- * If you need to make changes here, also update the corresponding style in
12
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
13
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
14
- */
15
- export var extensionWithBreakoutStyles = css({
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
17
- '.fabric-editor-breakout-mark': {
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
19
- '&:has([data-prosemirror-node-name="extension"]), &:has([data-prosemirror-node-name="bodiedExtension"]), &:has([data-prosemirror-node-name="multiBodiedExtension"])': {
20
- margin: "".concat(blockNodesVerticalMargin, " 0")
21
- }
22
- }
23
- });
@@ -1,86 +0,0 @@
1
- /* eslint-disable @atlaskit/design-system/use-tokens-shape,
2
- @repo/internal/deprecations/deprecation-ticket-required,
3
- @atlaskit/ui-styling-standard/no-exported-styles */
4
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled */
5
-
6
- import { css } from '@emotion/react';
7
- var dashedStrokeMask = 'linear-gradient(to right, black 0, black 4px, transparent 4px, transparent 10px)';
8
- var fadeStrokeMask = 'linear-gradient(to right, transparent 0%, black 27.4%, black 74%, transparent 100%)';
9
-
10
- // dotted strokes
11
- var dottedStrokeMaskSmall = 'radial-gradient(circle at center, black 0.5px, transparent 0.6px)';
12
- var dottedStrokeMaskMedium = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
13
- var dottedStrokeMaskLarge = 'radial-gradient(circle at center, black 1.5px, transparent 1.6px)';
14
-
15
- // sketch strokes
16
- var sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
17
- var sketchStrokeMaskSmall = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
18
- var sketchStrokeMaskMedium = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
19
- var sketchStrokeMaskLarge = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
20
-
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
22
- export var ruleWithAttrsStyles = css({
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
24
- '.ProseMirror hr[data-color]': {
25
- backgroundColor: 'var(--custom-palette-color)'
26
- },
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
28
- '.ProseMirror hr[data-style="dashed"]': {
29
- maskImage: dashedStrokeMask,
30
- maskRepeat: 'repeat-x',
31
- maskSize: '10px 100%'
32
- },
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
34
- '.ProseMirror hr[data-style="dotted"]': {
35
- maskImage: dottedStrokeMaskMedium,
36
- maskPosition: 'center',
37
- maskRepeat: 'repeat-x',
38
- maskSize: '6px 2px'
39
- },
40
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
41
- '.ProseMirror hr[data-style="sketch"]': {
42
- height: "calc(2px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
43
- maskImage: sketchStrokeMaskMedium,
44
- maskPosition: 'center',
45
- maskRepeat: 'repeat-x',
46
- maskSize: '233px 7px',
47
- paddingTop: 0,
48
- paddingBottom: 0
49
- },
50
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
51
- '.ProseMirror hr[data-style="fade"]': {
52
- maskImage: fadeStrokeMask,
53
- maskRepeat: 'no-repeat',
54
- maskSize: '100% 100%'
55
- },
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
57
- '.ProseMirror hr[data-weight="1"]': {
58
- height: '1px'
59
- },
60
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
61
- '.ProseMirror hr[data-weight="3"]': {
62
- height: '3px'
63
- },
64
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
65
- '.ProseMirror hr[data-style="dotted"][data-weight="1"]': {
66
- maskImage: dottedStrokeMaskSmall,
67
- maskSize: '6px 1px'
68
- },
69
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
70
- '.ProseMirror hr[data-style="dotted"][data-weight="3"]': {
71
- maskImage: dottedStrokeMaskLarge,
72
- maskSize: '6px 3px'
73
- },
74
- // Sketch needs a mask per weight because CSS cannot change the SVG stroke width.
75
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
76
- '.ProseMirror hr[data-style="sketch"][data-weight="1"]': {
77
- height: "calc(1px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
78
- maskImage: sketchStrokeMaskSmall
79
- },
80
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
81
- '.ProseMirror hr[data-style="sketch"][data-weight="3"]': {
82
- height: "calc(3px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
83
- maskImage: sketchStrokeMaskLarge,
84
- maskSize: '233px 8px'
85
- }
86
- });
@@ -1,12 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- /**
3
- * Fade-and-rise for the contributor tags `editor-plugin-show-diff` draws above a change, plus the
4
- * hidden state it starts from — an inline `opacity` would outrank this rule, so both ends live here.
5
- *
6
- * Keyed on the literals the plugin writes (`CONTRIBUTOR_TAG_CLASS`,
7
- * `CONTRIBUTOR_TAG_REVEALED_ATTRIBUTE`), so rename in step. Keep in sync with the
8
- * `contributorTagStyles` entry in `EditorContentContainer-compiled.tsx`.
9
- *
10
- * Gated behind `confluence_ncs_step_diffing_version_history`, where the tags render.
11
- */
12
- export declare const contributorTagStyles: SerializedStyles;
@@ -1,8 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- /**
3
- * @deprecated This style has been migrated to Compiled CSS.
4
- * If you need to make changes here, also update the corresponding style in
5
- * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
6
- * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
7
- */
8
- export declare const extensionWithBreakoutStyles: SerializedStyles;
@@ -1,2 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- export declare const ruleWithAttrsStyles: SerializedStyles;