@atlaskit/rovo-triggers 6.0.0 → 6.0.1
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 +7 -0
- package/dist/cjs/common/utils/post-message-to-pubsub/index.js +1 -1
- package/dist/es2019/common/utils/post-message-to-pubsub/index.js +1 -1
- package/dist/esm/common/utils/post-message-to-pubsub/index.js +1 -1
- package/dist/types/types.d.ts +5 -0
- package/dist/types-ts4.5/types.d.ts +5 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 6.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`736a48a613fb6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/736a48a613fb6) -
|
|
8
|
+
Allow Rovo postMessage events from Jira's atlassian.cloud host.
|
|
9
|
+
|
|
3
10
|
## 6.0.0
|
|
4
11
|
|
|
5
12
|
### Major Changes
|
|
@@ -13,7 +13,7 @@ var _main = require("../../../main");
|
|
|
13
13
|
var ROVO_POST_MESSAGE_EVENT_TYPE = exports.ROVO_POST_MESSAGE_EVENT_TYPE = 'rovo-post-message';
|
|
14
14
|
var ROVO_POST_MESSAGE_ACK_EVENT_TYPE = exports.ROVO_POST_MESSAGE_ACK_EVENT_TYPE = 'rovo-post-message-ack';
|
|
15
15
|
// allow subdomains of these domains
|
|
16
|
-
var allowedSubdomains = ['.jira-dev.com', '.atlassian.com', '.atlassian.net', '.atl-paas.net'];
|
|
16
|
+
var allowedSubdomains = ['.jira-dev.com', '.jira.atlassian.cloud', '.atlassian.com', '.atlassian.net', '.atl-paas.net'];
|
|
17
17
|
var allowedOrigins = ['bitbucket.org', 'trello.com'];
|
|
18
18
|
var isAllowedOrigin = exports.isAllowedOrigin = function isAllowedOrigin(origin) {
|
|
19
19
|
if (!origin) {
|
|
@@ -5,7 +5,7 @@ import { usePublish } from '../../../main';
|
|
|
5
5
|
export const ROVO_POST_MESSAGE_EVENT_TYPE = 'rovo-post-message';
|
|
6
6
|
export const ROVO_POST_MESSAGE_ACK_EVENT_TYPE = 'rovo-post-message-ack';
|
|
7
7
|
// allow subdomains of these domains
|
|
8
|
-
const allowedSubdomains = ['.jira-dev.com', '.atlassian.com', '.atlassian.net', '.atl-paas.net'];
|
|
8
|
+
const allowedSubdomains = ['.jira-dev.com', '.jira.atlassian.cloud', '.atlassian.com', '.atlassian.net', '.atl-paas.net'];
|
|
9
9
|
const allowedOrigins = ['bitbucket.org', 'trello.com'];
|
|
10
10
|
export const isAllowedOrigin = origin => {
|
|
11
11
|
if (!origin) {
|
|
@@ -6,7 +6,7 @@ import { usePublish } from '../../../main';
|
|
|
6
6
|
export var ROVO_POST_MESSAGE_EVENT_TYPE = 'rovo-post-message';
|
|
7
7
|
export var ROVO_POST_MESSAGE_ACK_EVENT_TYPE = 'rovo-post-message-ack';
|
|
8
8
|
// allow subdomains of these domains
|
|
9
|
-
var allowedSubdomains = ['.jira-dev.com', '.atlassian.com', '.atlassian.net', '.atl-paas.net'];
|
|
9
|
+
var allowedSubdomains = ['.jira-dev.com', '.jira.atlassian.cloud', '.atlassian.com', '.atlassian.net', '.atl-paas.net'];
|
|
10
10
|
var allowedOrigins = ['bitbucket.org', 'trello.com'];
|
|
11
11
|
export var isAllowedOrigin = function isAllowedOrigin(origin) {
|
|
12
12
|
if (!origin) {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -228,6 +228,11 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
228
228
|
agentName?: string;
|
|
229
229
|
agentIdentityAccountId?: string;
|
|
230
230
|
avatarUrl?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Optional files to attach to the chat input alongside the prompt.
|
|
233
|
+
* Gated by the enable_rovo_static_prompt_file_uploads experiment.
|
|
234
|
+
*/
|
|
235
|
+
files?: UploadedFile[];
|
|
231
236
|
} & PlaceholderParam>;
|
|
232
237
|
/** Inserts URLs as inline nodes into the chat input
|
|
233
238
|
* - URLs are deduplicated against existing content
|
|
@@ -228,6 +228,11 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
228
228
|
agentName?: string;
|
|
229
229
|
agentIdentityAccountId?: string;
|
|
230
230
|
avatarUrl?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Optional files to attach to the chat input alongside the prompt.
|
|
233
|
+
* Gated by the enable_rovo_static_prompt_file_uploads experiment.
|
|
234
|
+
*/
|
|
235
|
+
files?: UploadedFile[];
|
|
231
236
|
} & PlaceholderParam>;
|
|
232
237
|
/** Inserts URLs as inline nodes into the chat input
|
|
233
238
|
* - URLs are deduplicated against existing content
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
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": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"atlaskit:src": "src/index.ts",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^52.
|
|
39
|
+
"@atlaskit/adf-schema": "^52.9.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"bind-event-listener": "^3.0.0"
|