@atlaskit/native-embeds-common 2.6.0 → 2.6.2

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,41 @@
1
1
  # @atlaskit/native-embeds-common
2
2
 
3
+ ## 2.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee7d8e25afa75`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee7d8e25afa75) -
8
+ DXAI-1824: Refine AVPViz native embeds with a borderless raised frame, a loading skeleton matching
9
+ Viz Bifrost (announced as a "Loading chart" progress bar), and a single chart title. Enforce
10
+ native presentation parameters after Smart Link resolution, including fullscreen. Native URL
11
+ matching remains behind `platform_avp_viz_confluence_native_embed`.
12
+
13
+ Add a Static data / Dynamic data selector to the AVPViz native header. It is lazy-loaded and only
14
+ appears after the child negotiates `avpviz-data-fetch-v1`, so older children keep their own
15
+ selector. A local `useNativeEmbedChannel` hook validates state from the experience-scoped
16
+ child-command subscription and owns feature negotiation, connection sessions, and connection
17
+ timeouts. The data-fetch hook owns selection rules and pending state; the dropdown renders the
18
+ reported state and sends selections through it. Export the shared protocol from
19
+ `@atlassian/native-embeds-avpviz-experience/data-fetch-protocol`. Show the loading label, without
20
+ a mode icon, when no strategy is displayed. The selector's chunk is only downloaded once the child
21
+ agrees to the feature. Errors are the trigger's accessible description and appear on the option
22
+ they affect.
23
+
24
+ Core gains an opt-in `frameElevation: 'raised'` UI config and exposes the agreed-features promise
25
+ and experience-scoped child-command subscription on `ActionContext`. The additional context
26
+ capabilities and generic child-command events are enabled by
27
+ `platform_avp_viz_confluence_native_embed`; gate-off preserves the existing manifest dispatch and
28
+ action context.
29
+
30
+ Preserve the raised chart frame shadow in editor mode by allowing its host wrappers to overflow.
31
+ Keep content clipping inside the frame and preserve the editor selection ring.
32
+
33
+ ## 2.6.1
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies
38
+
3
39
  ## 2.6.0
4
40
 
5
41
  ### Minor Changes
@@ -188,6 +188,14 @@ var nativeEmbedAlignmentStyles = exports.nativeEmbedAlignmentStyles = (0, _react
188
188
  float: 'right',
189
189
  margin: "".concat(wrapGap, " auto ").concat(wrapGap, " ").concat(wrapGap, " !important")
190
190
  },
191
+ // Raised frames own their shadow and content clipping. The editor overflow wrapper and
192
+ // left/right alignment containers must let that shadow paint outside the frame bounds.
193
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Target host wrappers only when the experience opts into a raised frame
194
+ '.extension-overflow-wrapper:not(.with-body):has([data-native-embed-frame-elevation="raised"]), .extension-container:has([data-native-embed-frame-elevation="raised"]), .ak-renderer-extension:has([data-native-embed-frame-elevation="raised"])': {
195
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Override editor-owned overflow styles regardless of injection order
196
+ overflow: 'visible !important',
197
+ borderRadius: "var(--ds-radius-large, 8px)"
198
+ },
191
199
  // Suppress the hover box-shadow on the extension container for all native embeds.
192
200
  // Native embeds provide their own chrome so the generic extension hover ring is not appropriate.
193
201
  // The selection ring (from .ak-editor-selected-node) is also applied as a box-shadow,
@@ -181,6 +181,14 @@ export const nativeEmbedAlignmentStyles = css({
181
181
  float: 'right',
182
182
  margin: `${wrapGap} auto ${wrapGap} ${wrapGap} !important`
183
183
  },
184
+ // Raised frames own their shadow and content clipping. The editor overflow wrapper and
185
+ // left/right alignment containers must let that shadow paint outside the frame bounds.
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Target host wrappers only when the experience opts into a raised frame
187
+ '.extension-overflow-wrapper:not(.with-body):has([data-native-embed-frame-elevation="raised"]), .extension-container:has([data-native-embed-frame-elevation="raised"]), .ak-renderer-extension:has([data-native-embed-frame-elevation="raised"])': {
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Override editor-owned overflow styles regardless of injection order
189
+ overflow: 'visible !important',
190
+ borderRadius: "var(--ds-radius-large, 8px)"
191
+ },
184
192
  // Suppress the hover box-shadow on the extension container for all native embeds.
185
193
  // Native embeds provide their own chrome so the generic extension hover ring is not appropriate.
186
194
  // The selection ring (from .ak-editor-selected-node) is also applied as a box-shadow,
@@ -181,6 +181,14 @@ export var nativeEmbedAlignmentStyles = css({
181
181
  float: 'right',
182
182
  margin: "".concat(wrapGap, " auto ").concat(wrapGap, " ").concat(wrapGap, " !important")
183
183
  },
184
+ // Raised frames own their shadow and content clipping. The editor overflow wrapper and
185
+ // left/right alignment containers must let that shadow paint outside the frame bounds.
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Target host wrappers only when the experience opts into a raised frame
187
+ '.extension-overflow-wrapper:not(.with-body):has([data-native-embed-frame-elevation="raised"]), .extension-container:has([data-native-embed-frame-elevation="raised"]), .ak-renderer-extension:has([data-native-embed-frame-elevation="raised"])': {
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Override editor-owned overflow styles regardless of injection order
189
+ overflow: 'visible !important',
190
+ borderRadius: "var(--ds-radius-large, 8px)"
191
+ },
184
192
  // Suppress the hover box-shadow on the extension container for all native embeds.
185
193
  // Native embeds provide their own chrome so the generic extension hover ring is not appropriate.
186
194
  // The selection ring (from .ak-editor-selected-node) is also applied as a box-shadow,
package/package.json CHANGED
@@ -17,8 +17,8 @@
17
17
  "atlaskit:src": "src/index.ts",
18
18
  "dependencies": {
19
19
  "@atlaskit/button": "^25.4.0",
20
- "@atlaskit/editor-common": "^126.2.0",
21
- "@atlaskit/editor-plugin-local-id": "^20.0.0",
20
+ "@atlaskit/editor-common": "^127.1.0",
21
+ "@atlaskit/editor-plugin-local-id": "^21.0.0",
22
22
  "@atlaskit/editor-prosemirror": "^9.0.0",
23
23
  "@atlaskit/heading": "^8.0.0",
24
24
  "@atlaskit/icon": "^38.0.0",
@@ -44,7 +44,7 @@
44
44
  "react-intl": "^7.0.0"
45
45
  },
46
46
  "name": "@atlaskit/native-embeds-common",
47
- "version": "2.6.0",
47
+ "version": "2.6.2",
48
48
  "description": "A shared package for native embeds to be used across experiences and plugin",
49
49
  "author": "Atlassian Pty Ltd",
50
50
  "license": "Apache-2.0",