@atlaskit/editor-core 221.5.11 → 221.5.13

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 (22) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +22 -0
  3. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -1
  4. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +6 -2
  5. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +36 -2
  6. package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +47 -1
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +22 -0
  9. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -1
  10. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +8 -4
  11. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +34 -0
  12. package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +46 -0
  13. package/dist/es2019/version-wrapper.js +1 -1
  14. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +22 -0
  15. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -1
  16. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +8 -4
  17. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +35 -1
  18. package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +46 -0
  19. package/dist/esm/version-wrapper.js +1 -1
  20. package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +7 -0
  21. package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +7 -0
  22. package/package.json +6 -3
@@ -152,6 +152,52 @@ export var tableContentModeStyles = css({
152
152
  width: 'unset !important'
153
153
  }
154
154
  });
155
+
156
+ /**
157
+ * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
158
+ * If you need to make changes here, also update the corresponding style in
159
+ * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
160
+ * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
161
+ */
162
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/volt-strict-mode/no-multiple-exports
163
+ export var tableContentModeNestedTableStyles = css({
164
+ // Reset the base `margin-right: -1px` (ED-16212) that clips content-mode tables by 1px.
165
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
166
+ '.ProseMirror .pm-table-wrapper table[data-initial-width-mode="content"]': {
167
+ maxWidth: 'none',
168
+ marginRight: 0
169
+ },
170
+ // Let the resizer/wrapper chain grow to content width before the max-width cap.
171
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
172
+ '.resizer-item:has(table[data-initial-width-mode="content"]), .pm-table-container:has(> .pm-table-wrapper > table[data-initial-width-mode="content"]), .pm-table-wrapper:has(> table[data-initial-width-mode="content"])': {
173
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
174
+ width: 'max-content !important',
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
176
+ maxWidth: 'var(--ak-editor-table-max-width) !important'
177
+ },
178
+ // Nested content-mode table: size to content, reset base max-width and margin.
179
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
180
+ '.ProseMirror table[data-initial-width-mode="content"] > tbody > tr > :is(th, td) .pm-table-container > .pm-table-wrapper > table': {
181
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
182
+ width: 'max-content !important',
183
+ maxWidth: 'none',
184
+ marginRight: 0
185
+ },
186
+ // Stop nested table col widths from constraining parent table measurement.
187
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
188
+ '.ProseMirror table[data-initial-width-mode="content"] > tbody > tr > :is(th, td) .pm-table-container > .pm-table-wrapper > table > colgroup > col': {
189
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
190
+ width: 'unset !important'
191
+ },
192
+ // Let the nested table container/wrapper grow to content width before the cap.
193
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
194
+ '.ProseMirror table[data-initial-width-mode="content"] > tbody > tr > :is(th, td) .pm-table-container, .ProseMirror table[data-initial-width-mode="content"] > tbody > tr > :is(th, td) .pm-table-container > .pm-table-wrapper': {
195
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
196
+ width: 'max-content !important',
197
+ maxWidth: 'none',
198
+ overflowX: 'visible'
199
+ }
200
+ });
155
201
  /**
156
202
  * SSR-safe rounded corners for the outermost table cells.
157
203
  *
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "221.5.10";
3
+ export var version = "221.5.12";
@@ -129,3 +129,10 @@ export declare const pragmaticResizerStylesSyncedBlock: SerializedStyles;
129
129
  * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
130
130
  */
131
131
  export declare const pragmaticResizerStylesWithReducedEditorGutter: SerializedStyles;
132
+ /**
133
+ * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
134
+ * If you need to make changes here, also update the corresponding style in
135
+ * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
136
+ * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
137
+ */
138
+ export declare const pragmaticResizerStylesPanelAndRule: SerializedStyles;
@@ -48,6 +48,13 @@ export declare const tableEmptyRowStyles: SerializedStyles;
48
48
  * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
49
49
  */
50
50
  export declare const tableContentModeStyles: SerializedStyles;
51
+ /**
52
+ * @deprecated This style has been migrated to Compiled CSS, under experiment platform_editor_core_static_css
53
+ * If you need to make changes here, also update the corresponding style in
54
+ * packages/editor/editor-core/src/ui/EditorContentContainer/EditorContentContainer-compiled.tsx
55
+ * See EDITOR-7600 for more details: https://hello.jira.atlassian.cloud/jira/browse/EDITOR-7600
56
+ */
57
+ export declare const tableContentModeNestedTableStyles: SerializedStyles;
51
58
  /**
52
59
  * SSR-safe rounded corners for the outermost table cells.
53
60
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "221.5.11",
3
+ "version": "221.5.13",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -85,7 +85,7 @@
85
85
  "uuid": "^3.1.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@atlaskit/editor-common": "^116.20.0",
88
+ "@atlaskit/editor-common": "^116.21.0",
89
89
  "@atlaskit/link-provider": "^5.1.0",
90
90
  "@atlaskit/media-core": "^38.0.0",
91
91
  "react": "^18.2.0",
@@ -114,7 +114,7 @@
114
114
  "@atlaskit/modal-dialog": "^16.1.0",
115
115
  "@atlaskit/popper": "^8.2.0",
116
116
  "@atlaskit/portal": "^6.1.0",
117
- "@atlaskit/renderer": "^133.7.0",
117
+ "@atlaskit/renderer": "^133.8.0",
118
118
  "@atlaskit/section-message": "^9.2.0",
119
119
  "@atlaskit/synchrony-test-helpers": "workspace:^",
120
120
  "@atlaskit/toggle": "^17.1.0",
@@ -188,6 +188,9 @@
188
188
  "platform_editor_table_auto_convert_fix": {
189
189
  "type": "boolean"
190
190
  },
191
+ "platform_editor_table_nested_renderer_fix": {
192
+ "type": "boolean"
193
+ },
191
194
  "platform_editor_toolbar_mode_override": {
192
195
  "type": "boolean"
193
196
  },