@atlaskit/rovo-triggers 6.0.1 → 6.0.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,16 @@
1
1
  # @atlaskit/rovo-triggers
2
2
 
3
+ ## 6.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7c271eb122a53`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7c271eb122a53) -
8
+ Pass isViewMode property through for slides and database contexts. Previously isViewMode was only
9
+ passed through for editor and whiteboard contexts. Now it flows end-to-end from the read content
10
+ command result through fetchContent, payload data types, and service API types to the backend.
11
+ Also updates getPageContext to return slides-view/slides-edit and database-view/database-edit
12
+ based on isViewMode.
13
+
3
14
  ## 6.0.1
4
15
 
5
16
  ### Patch Changes
@@ -127,6 +127,7 @@ export type SlidesContextPayloadData = {
127
127
  url: string;
128
128
  selectedSlideIndex: number;
129
129
  selectedElementIds: string[];
130
+ isViewMode?: boolean;
130
131
  } | undefined;
131
132
  export type DatabaseContextPayloadData = {
132
133
  contentId: string;
@@ -134,6 +135,7 @@ export type DatabaseContextPayloadData = {
134
135
  title: string;
135
136
  url: string;
136
137
  selectedElementIds?: string[];
138
+ isViewMode?: boolean;
137
139
  } | undefined;
138
140
  /** Partial database context for iframe updates (e.g. selection-only). */
139
141
  export type DatabaseContextUpdatePayloadData = Partial<NonNullable<DatabaseContextPayloadData>>;
@@ -127,6 +127,7 @@ export type SlidesContextPayloadData = {
127
127
  url: string;
128
128
  selectedSlideIndex: number;
129
129
  selectedElementIds: string[];
130
+ isViewMode?: boolean;
130
131
  } | undefined;
131
132
  export type DatabaseContextPayloadData = {
132
133
  contentId: string;
@@ -134,6 +135,7 @@ export type DatabaseContextPayloadData = {
134
135
  title: string;
135
136
  url: string;
136
137
  selectedElementIds?: string[];
138
+ isViewMode?: boolean;
137
139
  } | undefined;
138
140
  /** Partial database context for iframe updates (e.g. selection-only). */
139
141
  export type DatabaseContextUpdatePayloadData = Partial<NonNullable<DatabaseContextPayloadData>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rovo-triggers",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "description": "Provides various trigger events to drive Rovo Chat functionality, such as a publish-subscribe and URL parameter hooks",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {