@atlaskit/native-embeds-common 2.2.5 → 2.2.6

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/native-embeds-common
2
2
 
3
+ ## 2.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`89392d1eb49c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/89392d1eb49c1) -
8
+ [fix] Keep native embeds and their resize handles aligned within old and new panel resize
9
+ boundaries, with a dynamic-config kill switch for rollback.
10
+ - Updated dependencies
11
+
3
12
  ## 2.2.5
4
13
 
5
14
  ### Patch Changes
@@ -134,6 +134,17 @@ var nativeEmbedAlignmentStyles = exports.nativeEmbedAlignmentStyles = (0, _react
134
134
  paddingLeft: '0 !important',
135
135
  paddingRight: '0 !important'
136
136
  },
137
+ // Panel divider resizing can temporarily rebuild panel content before the
138
+ // native embed plugin re-syncs data-native-embed-nested. Support both the
139
+ // panel wrapper used by the old style and the content wrapper introduced by
140
+ // the new style, but only while the native embed containment kill switch is off.
141
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- DOM ancestry fallback for transient missing data-native-embed-nested
142
+ '.ProseMirror .ak-editor-panel .extension-container:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .ProseMirror .ak-editor-panel__content .extension-container:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .fabric-editor--full-width-mode:not(:has(#chromeless-editor)) .ak-editor-panel .extension-container.block:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .fabric-editor--full-width-mode:not(:has(#chromeless-editor)) .ak-editor-panel__content .extension-container.block:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width])': {
143
+ width: 'auto !important',
144
+ maxWidth: 'var(--native-embed-width) !important',
145
+ paddingLeft: '0 !important',
146
+ paddingRight: '0 !important'
147
+ },
137
148
  // Override the extension wrapper's width so alignment margins take effect.
138
149
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Target extension wrappers by data attribute
139
150
  '.extension-container:has([data-native-embed-alignment="left"]), .ak-renderer-extension:has([data-native-embed-alignment="left"])': {
@@ -127,6 +127,17 @@ export const nativeEmbedAlignmentStyles = css({
127
127
  paddingLeft: '0 !important',
128
128
  paddingRight: '0 !important'
129
129
  },
130
+ // Panel divider resizing can temporarily rebuild panel content before the
131
+ // native embed plugin re-syncs data-native-embed-nested. Support both the
132
+ // panel wrapper used by the old style and the content wrapper introduced by
133
+ // the new style, but only while the native embed containment kill switch is off.
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- DOM ancestry fallback for transient missing data-native-embed-nested
135
+ '.ProseMirror .ak-editor-panel .extension-container:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .ProseMirror .ak-editor-panel__content .extension-container:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .fabric-editor--full-width-mode:not(:has(#chromeless-editor)) .ak-editor-panel .extension-container.block:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .fabric-editor--full-width-mode:not(:has(#chromeless-editor)) .ak-editor-panel__content .extension-container.block:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width])': {
136
+ width: 'auto !important',
137
+ maxWidth: 'var(--native-embed-width) !important',
138
+ paddingLeft: '0 !important',
139
+ paddingRight: '0 !important'
140
+ },
130
141
  // Override the extension wrapper's width so alignment margins take effect.
131
142
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Target extension wrappers by data attribute
132
143
  '.extension-container:has([data-native-embed-alignment="left"]), .ak-renderer-extension:has([data-native-embed-alignment="left"])': {
@@ -127,6 +127,17 @@ export var nativeEmbedAlignmentStyles = css({
127
127
  paddingLeft: '0 !important',
128
128
  paddingRight: '0 !important'
129
129
  },
130
+ // Panel divider resizing can temporarily rebuild panel content before the
131
+ // native embed plugin re-syncs data-native-embed-nested. Support both the
132
+ // panel wrapper used by the old style and the content wrapper introduced by
133
+ // the new style, but only while the native embed containment kill switch is off.
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- DOM ancestry fallback for transient missing data-native-embed-nested
135
+ '.ProseMirror .ak-editor-panel .extension-container:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .ProseMirror .ak-editor-panel__content .extension-container:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .fabric-editor--full-width-mode:not(:has(#chromeless-editor)) .ak-editor-panel .extension-container.block:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width]), .fabric-editor--full-width-mode:not(:has(#chromeless-editor)) .ak-editor-panel__content .extension-container.block:has([data-native-embed-panel-resize-containment="true"]):has([data-native-embed-alignment]):has([data-native-embed-width])': {
136
+ width: 'auto !important',
137
+ maxWidth: 'var(--native-embed-width) !important',
138
+ paddingLeft: '0 !important',
139
+ paddingRight: '0 !important'
140
+ },
130
141
  // Override the extension wrapper's width so alignment margins take effect.
131
142
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Target extension wrappers by data attribute
132
143
  '.extension-container:has([data-native-embed-alignment="left"]), .ak-renderer-extension:has([data-native-embed-alignment="left"])': {
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "atlaskit:src": "src/index.ts",
18
18
  "dependencies": {
19
19
  "@atlaskit/button": "^24.3.0",
20
- "@atlaskit/editor-common": "^116.39.0",
20
+ "@atlaskit/editor-common": "^116.40.0",
21
21
  "@atlaskit/editor-plugin-local-id": "^10.1.0",
22
22
  "@atlaskit/editor-prosemirror": "^8.0.0",
23
23
  "@atlaskit/heading": "^6.2.0",
@@ -82,7 +82,7 @@
82
82
  }
83
83
  },
84
84
  "name": "@atlaskit/native-embeds-common",
85
- "version": "2.2.5",
85
+ "version": "2.2.6",
86
86
  "description": "A shared package for native embeds to be used across experiences and plugin",
87
87
  "author": "Atlassian Pty Ltd",
88
88
  "license": "Apache-2.0",