@ada-support/web-storage 0.8.2 → 0.9.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<html lang="en">
|
|
2
2
|
<head>
|
|
3
|
-
<title>Ada
|
|
3
|
+
<title>Ada client-side storage</title>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<style>
|
|
6
6
|
body {
|
|
@@ -20,7 +20,7 @@ border: 1px solid;
|
|
|
20
20
|
</style>
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
|
23
|
-
<h1>Ada
|
|
23
|
+
<h1>Ada client-side storage (“cookies”)</h1>
|
|
24
24
|
<table>
|
|
25
25
|
<thead>
|
|
26
26
|
<tr>
|
|
@@ -59,7 +59,7 @@ border: 1px solid;
|
|
|
59
59
|
<td>Persistent</td>
|
|
60
60
|
</tr>
|
|
61
61
|
<tr>
|
|
62
|
-
<td>ada-
|
|
62
|
+
<td>ada-embed_session-token</td>
|
|
63
63
|
<td>Used for chatter authentication.</td>
|
|
64
64
|
<td>Web Storage (functional)</td>
|
|
65
65
|
<td>Persistent</td>
|
|
@@ -35,7 +35,7 @@ function runScript() {
|
|
|
35
35
|
purpose: ["Functional"]
|
|
36
36
|
};
|
|
37
37
|
}), true), third_party_items_1.THIRD_PARTY_ITEMS, true).sort(function (a, b) { return a.keyName.localeCompare(b.keyName); });
|
|
38
|
-
var html = "\n <html lang=\"en\">\n <head>\n <title>Ada
|
|
38
|
+
var html = "\n <html lang=\"en\">\n <head>\n <title>Ada client-side storage</title>\n <meta charset=\"utf-8\">\n <style>\n body {\n font-family: sans-serif;\n }\n \n h1 {\n font-size: 1.4em;\n }\n \n table {\n border-collapse: collapse;\n }\n \n table th, table td {\n text-align: left;\n padding: 10px;\n border: 1px solid;\n } \n </style>\n </head>\n <body>\n <h1>Ada client-side storage (\u201Ccookies\u201D)</h1>\n <table>\n <thead>\n <tr>\n <th>Name</th><th>Description</th><th>Type</th><th>Duration</th>\n <tr>\n </thead>\n <tbody>\n ".concat(records.map(function (record) { return "\n <tr>\n <td>".concat(record.keyName, "</td>\n <td>").concat(record.description, "</td>\n <td>").concat(record.type, " (").concat(record.purpose.map(function (i) { return i.toLocaleLowerCase(); }).join(", "), ")</td>\n <td>").concat(record.duration, "</td>\n </tr>\n "); }).join("\n").trim(), "\n </tbody>\n </table>\n </body>\n </html>\n ")
|
|
39
39
|
.trim()
|
|
40
40
|
.replace(/ {2}/g, "")
|
|
41
41
|
.replace(/\n+/g, "\n");
|
package/dist/storage-keys.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface StorageValueByKey {
|
|
|
47
47
|
/** Used for Zendesk authentication functionality. */
|
|
48
48
|
"previouslyAuthenticated": boolean;
|
|
49
49
|
/** Used for chatter authentication. */
|
|
50
|
-
"ada-
|
|
50
|
+
"ada-embed_session-token": string;
|
|
51
51
|
/** Used for chatter authentication. This is stored on Ada domain. */
|
|
52
52
|
"sessionToken": string;
|
|
53
53
|
/** Used for Zendesk authentication functionality. */
|
package/package.json
CHANGED
package/src/cli/generate-html.ts
CHANGED
|
@@ -41,7 +41,7 @@ function runScript() {
|
|
|
41
41
|
const html = `
|
|
42
42
|
<html lang="en">
|
|
43
43
|
<head>
|
|
44
|
-
<title>Ada
|
|
44
|
+
<title>Ada client-side storage</title>
|
|
45
45
|
<meta charset="utf-8">
|
|
46
46
|
<style>
|
|
47
47
|
body {
|
|
@@ -64,7 +64,7 @@ function runScript() {
|
|
|
64
64
|
</style>
|
|
65
65
|
</head>
|
|
66
66
|
<body>
|
|
67
|
-
<h1>Ada
|
|
67
|
+
<h1>Ada client-side storage (“cookies”)</h1>
|
|
68
68
|
<table>
|
|
69
69
|
<thead>
|
|
70
70
|
<tr>
|
package/src/storage-keys.ts
CHANGED
|
@@ -68,7 +68,7 @@ export interface StorageValueByKey {
|
|
|
68
68
|
"previouslyAuthenticated": boolean;
|
|
69
69
|
|
|
70
70
|
/** Used for chatter authentication. */
|
|
71
|
-
"ada-
|
|
71
|
+
"ada-embed_session-token": string;
|
|
72
72
|
|
|
73
73
|
/** Used for chatter authentication. This is stored on Ada domain. */
|
|
74
74
|
"sessionToken": string;
|