@ada-support/web-storage 0.9.0 → 0.11.0

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.
@@ -11,8 +11,8 @@ jobs:
11
11
  SLACK_USERNAME: "`@ada-support/web-storage` package updates"
12
12
  SLACK_ICON_EMOJI: ":sparkles:"
13
13
  SLACK_COLOR: "#f5e512"
14
- SLACK_TITLE: "Changes to `web-storage` are ready for review"
15
- SLACK_MESSAGE: "Pull request: ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number }}"
14
+ SLACK_TITLE: "Changes have been made to Ada's `web-storage`. Please review the pull request below."
15
+ SLACK_MESSAGE: "${{github.event.pull_request.title}}\n ${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.number }}"
16
16
  SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
17
17
  MSG_MINIMAL: true
18
18
 
@@ -26,3 +26,8 @@ jobs:
26
26
  uses: rtCamp/action-slack-notify@v2
27
27
  env:
28
28
  SLACK_CHANNEL: "#p-cookies-updates-management"
29
+
30
+ - name: "Notify security team"
31
+ uses: rtCamp/action-slack-notify@v2
32
+ env:
33
+ SLACK_CHANNEL: "#t-security"
@@ -107,6 +107,12 @@ border: 1px solid;
107
107
  <td>Persistent</td>
108
108
  </tr>
109
109
  <tr>
110
+ <td>backoffTimeout</td>
111
+ <td>Used to implement Chat reconnection after an interruption.</td>
112
+ <td>Web Storage (functional)</td>
113
+ <td>Persistent</td>
114
+ </tr>
115
+ <tr>
110
116
  <td>chatter</td>
111
117
  <td>Used to identify the user within Ada.</td>
112
118
  <td>Web Storage (functional)</td>
@@ -48,6 +48,10 @@ export interface StorageValueByKey {
48
48
  "previouslyAuthenticated": boolean;
49
49
  /** Used for chatter authentication. */
50
50
  "ada-embed_session-token": string;
51
+ /** Used to implement Chat reconnection after an interruption. */
52
+ "backoffTimeout": number;
53
+ /** Used during Oracle handoffs to indicate whether the agent has sent a request for a secret message. Allows the state to persist between page changes. */
54
+ "secretButton": string;
51
55
  /** Used for chatter authentication. This is stored on Ada domain. */
52
56
  "sessionToken": string;
53
57
  /** Used for Zendesk authentication functionality. */
@@ -6,13 +6,6 @@ exports.THIRD_PARTY_ITEMS = void 0;
6
6
  * but must include in the list: https://static.ada.support/ada-web-storage-list.html
7
7
  */
8
8
  exports.THIRD_PARTY_ITEMS = [
9
- {
10
- keyName: "secretButton",
11
- description: "Used during Oracle handoffs to indicate whether the agent has sent a request for a secret message. Allows the state to persist between page changes.",
12
- type: "Web Storage",
13
- duration: "Persistent",
14
- purpose: ["Functional"]
15
- },
16
9
  {
17
10
  keyName: "vuid",
18
11
  description: "Used by Vimeo to store the user’s usage history (loaded only if a video has been included).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/web-storage",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "A package to provide access to Web Storage API",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -70,6 +70,12 @@ export interface StorageValueByKey {
70
70
  /** Used for chatter authentication. */
71
71
  "ada-embed_session-token": string;
72
72
 
73
+ /** Used to implement Chat reconnection after an interruption. */
74
+ "backoffTimeout": number;
75
+
76
+ /** Used during Oracle handoffs to indicate whether the agent has sent a request for a secret message. Allows the state to persist between page changes. */
77
+ "secretButton": string;
78
+
73
79
  /** Used for chatter authentication. This is stored on Ada domain. */
74
80
  "sessionToken": string;
75
81
 
@@ -11,13 +11,6 @@ interface WebStorageItem {
11
11
  * but must include in the list: https://static.ada.support/ada-web-storage-list.html
12
12
  */
13
13
  export const THIRD_PARTY_ITEMS: WebStorageItem[] = [
14
- {
15
- keyName: "secretButton",
16
- description: "Used during Oracle handoffs to indicate whether the agent has sent a request for a secret message. Allows the state to persist between page changes.",
17
- type: "Web Storage",
18
- duration: "Persistent",
19
- purpose: ["Functional"],
20
- },
21
14
  {
22
15
  keyName: "vuid",
23
16
  description: "Used by Vimeo to store the user’s usage history (loaded only if a video has been included).",